/* Isolated public simulation styling */
.aegis-visual { color:#eaf7ff; }
.aegis-kicker { color:#74dfd2; font-size:11px; font-weight:800; letter-spacing:.09em; margin-bottom:12px; }
.aegis-status { display:inline-block; padding:7px 11px; border-radius:7px; background:#51401c; color:#ffdb85; font-weight:800; font-size:11px; margin-bottom:13px; }
.aegis-status.is-blocked { background:#532c36; color:#ffadb7; }
.aegis-heading { margin:0 0 16px; font-size:20px; color:#fff; }
.aegis-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:22px; }
.aegis-metric { background:#0c2336; border:1px solid #285268; padding:12px; border-radius:10px; min-width:0; }
.aegis-metric small { display:block; font-size:10px; color:#9abed1; margin-bottom:8px; }
.aegis-metric strong { display:block; font-size:12px; color:#f5fcff; overflow-wrap:anywhere; }
.aegis-timeline { border-left:1px solid #357d81; margin-left:8px; padding-left:19px; }
.aegis-step { position:relative; padding-bottom:20px; animation:aegisVisualIn .4s ease both; }
.aegis-step::before { content:""; position:absolute; left:-25px; top:3px; width:11px; height:11px; border-radius:50%; background:#60e4d4; box-shadow:0 0 0 4px #164c50; }
.aegis-step strong { display:block; color:#fff; font-size:12px; margin-bottom:6px; }
.aegis-step p { color:#a9c9dd; margin:0; font-size:12px; line-height:1.65; }
.aegis-advantage { background:#123c34; border:1px solid #377e69; border-radius:10px; padding:15px; color:#c4f9e9; }
.aegis-advantage strong { color:#75eed7; font-size:11px; }
.aegis-advantage p { margin:7px 0 0; font-size:12px; line-height:1.6; }
.aegis-disclaimer { color:#91b1c7; font-size:11px; line-height:1.5; margin-top:14px; }
#safetyBenefit:not(:empty) { background:#123c34; border-color:#377e69; color:#c4f9e9; }
#safetyBenefit strong { color:#75eed7; }
#safetyBenefit p { margin:8px 0 0; }
@keyframes aegisVisualIn { from {opacity:0;transform:translateY(8px)} to {opacity:1;transform:translateY(0)} }
@media(max-width:650px) { .aegis-metrics {grid-template-columns:1fr;} }
@media(prefers-reduced-motion:reduce) { .aegis-step {animation:none;} }


/* AEGIS PUBLIC CPU STYLES */

.aegis-cpu-display {
  margin: 14px 0 20px;
  padding: 15px;
  background: #0c2336;
  border: 1px solid #285268;
  border-radius: 10px;
  color: #eaf7ff;
}

.aegis-cpu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.aegis-cpu-status {
  font-size: 11px;
  font-weight: 800;
}

.aegis-cpu-track {
  height: 8px;
  background: #294459;
  border-radius: 20px;
  overflow: hidden;
}

.aegis-cpu-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  transition: width .15s ease, background-color .15s ease;
}

.aegis-cpu-explanation {
  margin: 11px 0 0;
  color: #a9c9dd;
  font-size: 12px;
  line-height: 1.6;
}

.aegis-cpu-result {
  margin-top: 17px;
  padding: 14px;
  background: #102c3b;
  border: 1px solid #397c84;
  border-radius: 9px;
}

.aegis-cpu-result strong {
  color: #79ead8;
  font-size: 13px;
}

.aegis-cpu-result p {
  margin: 8px 0 0;
  color: #bad8e8;
  font-size: 12px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .aegis-cpu-fill {
    transition: none;
  }
}


/* AEGIS INLINE PILOT FEEDBACK */

.aegis-form-feedback {
  margin-top: 18px;
  padding: 17px 20px;
  border-radius: 11px;
  border: 1px solid #287b73;
  background: #103d39;
  color: #d1f7ed;
}

.aegis-form-feedback[hidden] {
  display: none !important;
}

.aegis-form-feedback strong {
  display: block;
  color: #76efd9;
  font-size: 15px;
  margin-bottom: 7px;
}

.aegis-form-feedback p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.aegis-form-feedback.error {
  background: #412832;
  border-color: #a45d68;
  color: #ffe0e3;
}

.aegis-form-feedback.error strong {
  color: #ffb6be;
}


/* AEGIS REPORT DOWNLOAD DESIGN */

.aegis-report-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid rgba(125, 235, 216, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #126e78, #139b90);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow: 0 8px 24px rgba(0, 190, 175, 0.16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.aegis-report-download:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 190, 175, 0.27);
}

.aegis-report-download:focus-visible {
  outline: 3px solid #a5fff0;
  outline-offset: 3px;
}

.aegis-report-download:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.aegis-report-download span {
  font-size: 21px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .aegis-report-download {
    transition: none;
  }
}


/* AEGIS SAFETY SPACING AND ALLOWED STATUS */

/* More breathing room above the safety action button */
#evaluate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

/* Explicit green success state */
.aegis-status.is-allowed {
  color: #86efac !important;
  background: rgba(22, 101, 52, 0.28) !important;
  border: 1px solid rgba(74, 222, 128, 0.65) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.10);
}


/* AEGIS DOWNLOADED BUTTON STATE */

.aegis-report-download.is-downloaded,
.aegis-report-download.is-downloaded:hover,
.aegis-report-download.is-downloaded:active {
  background: #153d42 !important;
  border-color: #367a77 !important;
  color: #a7e8db !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
}
