:root {
  --bg: #0a0e15;
  --bg-2: #0d121b;
  --panel: #111723;
  --panel-2: #0e1420;
  --border: #1e2735;
  --border-2: #2a3546;
  --text: #e6e9ef;
  --muted: #8b97a8;
  --faint: #5d6878;
  --accent: #f0b90b;
  --ondo: #5aa9ff;
  --xstock: #b98cff;
  --bstock: #f0b90b;
  --allow: #22c55e;
  --reduce: #f59e0b;
  --block: #ef4444;
  --allow-bg: rgba(34, 197, 94, .14);
  --reduce-bg: rgba(245, 158, 11, .14);
  --block-bg: rgba(239, 68, 68, .14);
  --closure: rgba(148, 163, 184, .08);
  --band: rgba(240, 185, 11, .07);
  --grid: rgba(148, 163, 184, .10);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 40px rgba(0,0,0,.35);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9; --bg-2: #eef1f5; --panel: #ffffff; --panel-2: #f8f9fb; --border: #e3e7ee; --border-2: #d3d9e3;
    --text: #111827; --muted: #5b6676; --faint: #8a94a3; --accent: #c99400;
    --ondo: #1f6fd1; --xstock: #7c4ddb; --bstock: #c99400;
    --allow: #15803d; --reduce: #b45309; --block: #b91c1c;
    --allow-bg: rgba(21,128,61,.10); --reduce-bg: rgba(180,83,9,.10); --block-bg: rgba(185,28,28,.10);
    --closure: rgba(15, 23, 42, .05); --band: rgba(201,148,0,.08); --grid: rgba(15,23,42,.08);
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .92em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; color: var(--text); }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 44px 0 18px; }
.eyebrow { color: var(--accent); font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; }
h1 .hl { color: var(--muted); }
.lede { max-width: 860px; color: var(--muted); font-size: 16.5px; margin: 0 0 24px; }
.lede strong { color: var(--text); }
.pill { display: inline-block; font: 600 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 999px; letter-spacing: .04em; vertical-align: 1px; }
.pill.allow, .v-ALLOW { color: var(--allow); background: var(--allow-bg); }
.pill.reduce, .v-REDUCE { color: var(--reduce); background: var(--reduce-bg); }
.pill.block, .v-BLOCK { color: var(--block); background: var(--block-bg); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); min-height: 118px; }
.kpi .num { font: 600 30px/1.1 var(--mono); letter-spacing: -.02em; }
.kpi .num small { font-size: 15px; color: var(--muted); font-weight: 400; }
.kpi .lbl { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.skeleton { background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); }
.fine { color: var(--faint); font-size: 12.5px; margin: 12px 0 0; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin: 26px 0; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.015em; }
h3 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.panel h3:first-child { margin-top: 0; }
.sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 720px; }
.blurb { margin: 14px 0 8px; font-size: 14.5px; }

/* tabs */
.tabs, .issuer-tabs, .cycle-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button, .issuer-tabs button, .cycle-nav button, .moments button {
  font: 500 13px/1 var(--sans); color: var(--muted); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 11px; cursor: pointer; }
.tabs button:hover, .issuer-tabs button:hover, .moments button:hover, .cycle-nav button:hover { color: var(--text); border-color: var(--border-2); }
.tabs button[aria-selected="true"], .issuer-tabs button[aria-selected="true"], .moments button.on {
  color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
.tabs button .t { font-weight: 600; color: var(--text); }
.issuer-tabs button .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* chart */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--text) 0 4px, transparent 4px 7px); height: 2px; }
.legend i.band { height: 10px; background: var(--band); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); vertical-align: -1px; }
.legend i.shut { height: 10px; background: var(--closure); border: 1px solid var(--border-2); vertical-align: -1px; }
.chart-box { position: relative; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
#chart { display: block; width: 100%; height: 380px; cursor: crosshair; }
#chart text { font: 11px var(--mono); fill: var(--faint); }
#chart .lbl-strong { fill: var(--muted); }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px; padding: 9px 11px; font: 12px/1.45 var(--mono); box-shadow: var(--shadow); min-width: 200px; z-index: 3; }
.tip b { font-family: var(--sans); }
.outcome { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin: 12px 2px 0; }
.outcome b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* decision */
.decision-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.panel { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.when { color: var(--muted); font-size: 12.5px; }
.verdict { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.verdict .big { font: 700 20px/1 var(--mono); padding: 8px 12px; border-radius: 10px; letter-spacing: .02em; }
.verdict .sz { font: 600 18px/1.2 var(--mono); }
.verdict .sz s { color: var(--faint); font-weight: 400; }
.summary { color: var(--text); font-size: 14.5px; margin: 8px 0 12px; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.checks li { display: grid; grid-template-columns: 54px 150px minmax(0,1fr) auto; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: baseline; }
.checks li.bind { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.checks .st { font: 600 10.5px/1 var(--mono); padding: 4px 0; text-align: center; border-radius: 6px; letter-spacing: .04em; }
.st-pass { color: var(--allow); background: var(--allow-bg); }
.st-cut { color: var(--reduce); background: var(--reduce-bg); }
.st-block { color: var(--block); background: var(--block-bg); }
.st-info { color: var(--faint); background: color-mix(in srgb, var(--faint) 12%, transparent); }
.checks .nm { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.checks .cap { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.side .sub { font-size: 13px; }
.moments { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.moments button { text-align: left; line-height: 1.3; }
.moments button small { display: block; color: var(--faint); font: 11px var(--mono); margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; text-align: right; }
.code { max-width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: 12px/1.6 var(--mono); color: var(--text); overflow-x: auto; white-space: pre; margin: 8px 0 0; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.board td.tk { font-weight: 600; }
.board .cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.board .px { font-family: var(--mono); font-size: 12.5px; }
.board .meta { font: 11px var(--mono); color: var(--faint); }
.board .pill { min-width: 62px; text-align: center; }
.board tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cycle-nav { align-items: center; }
.cycle-nav input[type=range] { width: 220px; accent-color: var(--accent); }
.cycle-nav .mono { color: var(--muted); font-size: 12px; }

.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 70px; gap: 10px; align-items: center; margin: 10px 0; font-size: 13px; }
.bar { height: 12px; border-radius: 6px; background: var(--block); }
.bar.g { background: var(--allow); }
.bar-row .v { font-family: var(--mono); text-align: right; font-size: 12.5px; }
.big-stat { font: 600 26px/1.1 var(--mono); margin: 6px 0 2px; }

/* how */
.pipeline { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pipeline li { counter-increment: s; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 14px 46px; position: relative; font-size: 13px; color: var(--muted); }
.pipeline li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font: 600 12px/22px var(--mono); text-align: center; }
.pipeline b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.how-grid > div, .side { min-width: 0; }
.limits { margin-top: 10px; }
.limits ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.limits li { margin: 5px 0; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; padding: 18px 20px 40px; }

@media (max-width: 960px) {
  .decision-grid, .evidence-grid, .how-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .checks li { grid-template-columns: 50px minmax(0,1fr); }
  .checks .nm { grid-column: 2; }
  .checks .dt { grid-column: 1 / -1; }
  .checks .cap { grid-column: 1 / -1; text-align: left; }
  .nav a:not(#repo-link) { display: none; }
  #chart { height: 300px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .card { padding: 16px; }
  .moments { grid-template-columns: 1fr; }
}
