:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #081018;
  color: #edf4f7;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top right, #183147, transparent 35rem), #081018;
}

header, main {
  width: min(74rem, calc(100% - 2rem));
  margin-inline: auto;
}

header { padding: 4rem 0 2rem; }
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -.05em; }
h2, h3 { line-height: 1.2; }
.eyebrow { color: #77e4c8; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

main { display: grid; gap: 1rem; padding-bottom: 4rem; }
section, article {
  border: 1px solid #294352;
  border-radius: 1rem;
  background: rgba(11, 25, 35, .88);
  padding: 1.25rem;
}

.status-panel, .host-grid, .diagnosis-grid, .proposal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

[hidden] { display: none !important; }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-heading h2 { margin-top: .25rem; }
.simulation-panel { border-color: #ffca6c; box-shadow: inset 0 0 0 1px rgba(255, 202, 108, .2); }
.simulation-label {
  display: inline-block;
  margin: 0;
  border-radius: 999px;
  padding: .25rem .65rem;
  background: #ffca6c;
  color: #211705;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.safety-copy { max-width: 28rem; color: #ffdf9d; font-weight: 700; }
.integrity-grid {
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(0, 1fr);
  gap: .5rem 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: #07131c;
}
.integrity-grid dt { color: #a8bdc8; }
.integrity-grid dd { margin: 0; overflow-wrap: anywhere; }
.decision-controls { margin-top: 1.25rem; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
button {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1rem;
  background: #77e4c8;
  color: #06110f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.secondary { background: #263b4a; color: #edf4f7; }
button.danger { background: #ff9d9d; color: #2b0808; }
button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
button:focus-visible { outline: 3px solid #ffca6c; outline-offset: 3px; }

#status[data-kind="loading"], #status[data-kind="running"] { color: #ffca6c; }
#status[data-kind="failed"] { color: #ff8e8e; }
.meta, code { color: #a8bdc8; overflow-wrap: anywhere; }

.fact-list { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .45rem 1rem; }
.fact-list dt { color: #a8bdc8; }
.fact-list dd { margin: 0; overflow-wrap: anywhere; }
.timeline { border-left: 2px solid #77e4c8; padding-left: 1.5rem; }
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  margin-block: .5rem;
  border-left: 3px solid #a8bdc8;
  padding: .5rem .75rem;
  background: #07131c;
}
.check-list li[data-kind="passed"] { border-color: #77e4c8; }
.check-list li[data-kind="failed"] { border-color: #ff8e8e; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  button { transition: transform .15s ease; }
  button:hover { transform: translateY(-1px); }
}
