:root {
  --bg: #eef1f4;
  --bg2: #e3e6eb;
  --surface: #ffffff;
  --ink: #1b1b1b;
  --muted: #5c646e;
  --line: #ced2d8;
  --accent: #143156;
  --accent2: #6681a5;
  --accent-soft: rgba(20, 49, 86, 0.12);
  --good: #1f8a5b;
  --mid: #c48912;
  --bad: #c44545;
  --shadow: 0 18px 50px rgba(20, 49, 86, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "IBM Plex Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 0%, rgba(102, 129, 165, 0.18), transparent 34%),
    linear-gradient(180deg, #f6f8fb 0%, var(--bg) 48%, var(--bg2) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 42, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.brand h1 b { color: var(--accent); font-weight: 800; }

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.spend-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid);
}

.status-pill.ok .dot { background: var(--good); }
.status-pill.bad .dot { background: var(--bad); }

.spend-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 10px;
}

.spend-box strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.spend-meta { color: var(--muted); }

.spend-reset,
.ghost-mini {
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.spend-reset:hover,
.ghost-mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.card .hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card .hint a {
  color: var(--accent);
  font-weight: 600;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.drop {
  border: 1.5px dashed #b7c3d0;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  background: #f7f9fb;
  cursor: pointer;
  transition: 0.18s;
}

.drop:hover,
.drop.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop strong {
  display: block;
  margin-bottom: 6px;
}

.drop span {
  color: var(--muted);
  font-size: 13px;
}

.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.file-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  font-size: 13px;
}

.file-item .meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.file-item .role {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 49, 86, 0.22);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.file-item button {
  border: 0;
  background: transparent;
  color: var(--bad);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: #f7f9fb;
  border-color: var(--line);
  color: var(--ink);
}

.progress-wrap {
  display: none;
  margin-top: 16px;
}

.progress-wrap.on { display: block; }

.eta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.eta-item {
  padding: 12px 13px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
}

.eta-k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.eta-item strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e5ebf1;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-bar.indeterminate span {
  width: 35%;
  animation: pulse 1.2s ease-in-out infinite;
  transition: none;
}

@keyframes pulse {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(220%); }
}

.msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  display: none;
}

.msg.on { display: block; }
.msg.info { background: #eef5fb; border: 1px solid #c8dceb; }
.msg.ok { background: #eaf7f0; border: 1px solid #b9e2cc; }
.msg.err { background: #fceeee; border: 1px solid #efc3c3; }

.history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

.hist-item {
  padding: 14px;
  border-radius: 14px;
  background: #f7f9fb;
  border: 1px solid var(--line);
}

.hist-item b { display: block; margin-bottom: 4px; }
.hist-item small { color: var(--muted); display: block; margin-bottom: 10px; }

.hist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hist-actions a,
.hist-actions button {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
}

.preview {
  margin-top: 18px;
  display: none;
}

.preview.on { display: block; }

.preview-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.analysis-select {
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

body.is-report {
  overflow: hidden;
  background: #091a30;
}

body.is-report .shell,
body.is-report .app { display: none; }

.report-app {
  height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  color: #fffaf1;
  font-family: Inter, "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(102, 129, 165, 0.24), transparent 31%),
    linear-gradient(135deg, #061222 0%, #0b1e38 45%, #143156 100%);
}

.report-aside {
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,.14);
  background: rgba(6, 18, 34, .82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}

.report-back,
.pill {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.report-back { align-self: flex-start; }
.report-back:hover,
.pill:hover { border-color: rgba(102, 129, 165,.7); }

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.report-brand .mark {
  width: 48px;
  height: 48px;
  font-size: 12px;
}

.report-brand h1 {
  margin: 0;
  font-size: 16px;
}

.report-brand h1 b { color: #94aecf; }
.report-brand small { color: #b8c5d6; font-size: 11px; }

.report-select {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.report-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  padding-right: 4px;
}

.report-nav button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  color: #d8e4f3;
  border: 1px solid transparent;
  font-size: 13px;
}

.report-nav button:hover { background: rgba(255,255,255,.06); }
.report-nav button.active {
  background: rgba(102, 129, 165,.16);
  border-color: rgba(102, 129, 165,.4);
  color: #fff;
}

.report-nav .num {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
}

.report-nav button.active .num { background: #6681A5; color: #071425; }

.report-main { height: 100vh; position: relative; overflow: hidden; }

.report-progress {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: rgba(255,255,255,.08);
  z-index: 40;
}

.report-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6681A5, #cbd8e9);
  transition: .25s;
}

.report-topbar {
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 20;
}

.report-count { font-size: 12px; color: #c7d3e1; }
.report-controls { display: flex; gap: 8px; }

.report-slides {
  height: 100%;
  display: flex;
  transition: transform .5s cubic-bezier(.19,1,.22,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  padding: 88px 42px 36px;
  overflow: auto;
}

.slide-inner { max-width: 1180px; margin: 0 auto; width: 100%; padding-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1.07fr .93fr; gap: 28px; align-items: start; }

.eyebrow {
  color: #94aecf;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}

.title {
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: .96;
  letter-spacing: -.04em;
  margin: 0 0 16px;
}

.title .hl,
.hl { color: #94aecf; }
.subtitle { font-size: 18px; line-height: 1.4; color: #d4dde9; max-width: 900px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.metric {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
}

.metric .k { font-size: 11px; color: #b9c7d7; text-transform: uppercase; letter-spacing: .08em; }
.metric .v { font-size: 22px; font-weight: 800; margin-top: 8px; }
.metric .s { font-size: 11px; color: #c6d1df; margin-top: 5px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.report-app .card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 18px;
  box-shadow: none;
}

.report-app .card h3 { margin: 0 0 8px; font-size: 18px; }
.report-app .card p, .report-app .card li { color: #d1dce9; line-height: 1.45; font-size: 14px; }
.report-app .card.warn { border-color: rgba(255,176,32,.45); background: rgba(255,176,32,.08); }
.report-app .card.danger { border-color: rgba(229,72,77,.45); background: rgba(229,72,77,.08); }
.report-app .card.good { border-color: rgba(54,179,126,.45); background: rgba(54,179,126,.08); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 129, 165,.13);
  border: 1px solid rgba(102, 129, 165,.35);
  color: #cbd8e9;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #6681A5; }

.hero-panel {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
}

.decision { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.decision span {
  display: inline-flex;
  margin-top: 14px;
  background: #6681A5;
  color: #071425;
  padding: 10px 14px;
  border-radius: 14px;
}

.caption { color: #bfcbd9; font-size: 12px; line-height: 1.45; margin-top: 10px; }

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  margin: 12px 0;
}

.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; }
.table th { color: #fff; background: rgba(102, 129, 165,.18); position: sticky; top: 0; }
.table td { color: #d7e1ed; }

.timeline { position: relative; padding-left: 24px; margin: 12px 0; }
.timeline:before {
  content: "";
  position: absolute;
  left: 7px; top: 5px; bottom: 8px;
  width: 2px;
  background: linear-gradient(#6681A5, rgba(255,255,255,.12));
}
.titem { position: relative; padding: 0 0 16px 17px; }
.titem:before {
  content: "";
  position: absolute;
  left: -22px; top: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #6681A5;
}
.titem small { display: block; color: #bfcbd9; margin-top: 4px; line-height: 1.42; }

.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 90px; gap: 12px; align-items: center; font-size: 12px; }
.bar-track { height: 13px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #6681A5, #94aecf); }
.bar-val { text-align: right; font-weight: 700; }

.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.gauge {
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#6681A5 0 var(--deg), rgba(255,255,255,.1) var(--deg) 360deg);
  position: relative;
}
.gauge:after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #0e2440;
}
.gauge div { position: relative; z-index: 1; text-align: center; }
.gauge b { font-size: 22px; }
.gauge small { display: block; color: #c3cedc; font-size: 10px; }

.risk-board { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.risk-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.risk {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.risk:hover { border-color: rgba(102, 129, 165,.4); }
.risk small { color: #bfcbd9; }
.level { height: 100%; min-height: 37px; border-radius: 999px; }
.level.very, .level.high { background: #e5484d; }
.level.med { background: #5eb7ff; }
.focus {
  min-height: 140px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.17);
  border: 1px solid rgba(255,255,255,.14);
}

.docs { display: grid; grid-template-columns: 250px 1fr; gap: 16px; }
.doc-tabs { display: flex; flex-direction: column; gap: 8px; }
.doc-tabs button {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #dce7f2;
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.doc-tabs button.active {
  background: rgba(102, 129, 165,.18);
  border-color: rgba(102, 129, 165,.48);
  color: #fff;
}
.doc-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 16px; }
.chip {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(94,183,255,.12);
  border: 1px solid rgba(94,183,255,.32);
  color: #d9eeff;
}

.callout {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(102, 129, 165,.18), rgba(102, 129, 165,.05));
  border: 1px solid rgba(102, 129, 165,.38);
  color: #e9f2fd;
  line-height: 1.5;
  margin: 14px 0;
}

.note { font-size: 11px; color: #aebdd0; line-height: 1.45; margin-top: 12px; }

.issues { display: flex; flex-direction: column; gap: 10px; }
.issue {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.issue .idx {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(102, 129, 165,.17);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #94aecf;
}
.issue p { margin: 4px 0 0; color: #cad6e4; font-size: 13px; }
.sev { font-size: 10px; font-weight: 800; padding: 6px 8px; border-radius: 999px; text-transform: uppercase; }
.sev.high { background: rgba(229,72,77,.18); color: #ffb3b6; }
.sev.mid { background: rgba(255,176,32,.17); color: #ffd887; }

.badge-good, .badge-warn, .badge-bad {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}
.badge-good { background: rgba(54,179,126,.16); color: #89e1bd; }
.badge-warn { background: rgba(255,176,32,.16); color: #ffd887; }
.badge-bad { background: rgba(229,72,77,.16); color: #ffb3b6; }

.calc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.calc-panel, .result, .status {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
}
.calc .field label { display: flex; justify-content: space-between; font-size: 12px; color: #c9d4e0; margin-bottom: 7px; }
.calc input[type=range] { width: 100%; accent-color: #6681A5; }
.calc input[type=number] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: #fff;
}
.calc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.result span { font-size: 11px; color: #b8c7d8; text-transform: uppercase; }
.result b { display: block; font-size: 18px; margin-top: 6px; }
.status { grid-column: 1 / -1; font-weight: 800; }
.status.good { background: rgba(54,179,126,.14); border-color: rgba(54,179,126,.5); }
.status.warn { background: rgba(255,176,32,.14); border-color: rgba(255,176,32,.5); }
.status.bad { background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.5); }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: inherit;
}
.check input { margin-top: 3px; accent-color: #6681A5; width: 18px; height: 18px; }
.check small { display: block; color: #aebed0; margin-top: 4px; }
.check.done { opacity: .55; }

.sim-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 20px; }
.toggle-list { display: flex; flex-direction: column; gap: 9px; }
.toggle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
}
.toggle small { color: #9fb0c4; }
.switch { position: relative; width: 48px; height: 27px; flex: 0 0 auto; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  cursor: pointer;
}
.slider:after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}
.switch input:checked + .slider { background: #6681A5; }
.switch input:checked + .slider:after { transform: translateX(21px); }
.scorebox {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
}
.score { font-size: 72px; font-weight: 900; letter-spacing: -.07em; color: #94aecf; }
.verdict { font-size: 22px; font-weight: 800; margin-top: 4px; }

.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.source {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.source small { display: block; color: #b6c5d6; margin-top: 5px; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,12,24,.76);
  backdrop-filter: blur(12px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11vh;
}
.modal.on { display: flex; }
.modal-box {
  width: min(720px, 92vw);
  border-radius: 24px;
  background: #102540;
  border: 1px solid rgba(255,255,255,.14);
  padding: 22px;
}
.modal input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 17px;
}
.search-results { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; max-height: 55vh; overflow: auto; }
.search-results button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 900px) {
  .report-app { grid-template-columns: 1fr; }
  .report-aside { display: none; }
  .hero-grid, .risk-board, .calc, .sim-grid, .docs, .metric-grid, .cards, .cards.two, .cards.four, .checklist, .source-grid, .gauge-row {
    grid-template-columns: 1fr;
  }
  .slide { padding: 80px 16px 28px; }
  .bar-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid,
  .eta-row { grid-template-columns: 1fr; }
  .shell { padding: 18px 14px 36px; }
}
