:root {
  color-scheme: dark;
  --canvas: #111515;
  --panel: #181d1d;
  --raised: #202626;
  --line: #353e3e;
  --ink: #eff4f1;
  --muted: #a9b9b5;
  --signal: #b9f5cb;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button, select { font: inherit; }
button, select, .primary { min-height: 44px; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
.topbar, main, footer { padding-inline: max(24px, calc((100% - 1240px) / 2)); }
.topbar {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line); background: #151919;
}
.brand, .top-end { display: flex; align-items: center; gap: 12px; }
.brand { font: 700 13px var(--mono); letter-spacing: .09em; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--signal); color: #14251a; font-size: 20px; }
.divider { height: 16px; width: 1px; background: var(--line); }
.brand-detail, .private, footer, .eyebrow { color: var(--muted); }
.private, .eyebrow, footer { font: 600 11px var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.private { white-space: nowrap; }
main { min-height: calc(100vh - 130px); padding-block: 42px 72px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.eyebrow span { width: 7px; height: 7px; background: var(--signal); box-shadow: 0 0 12px #b9f5cb55; border-radius: 50%; }
h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 660; }
h2 { font-size: clamp(24px, 3vw, 35px); }
h3 { font-size: 20px; }
.subtitle { margin-top: 9px; font: 12px/1.65 var(--mono); color: var(--muted); }
.controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
select, .quiet, .primary {
  border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink);
  padding: 8px 13px; font-size: 14px; font-weight: 600;
}
select:hover, .quiet:hover { border-color: #81908a; }
.primary { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; background: var(--signal); color: #102219; border-color: var(--signal); }
.primary:hover { background: #d4ffe0; }
.sections { display: flex; flex-wrap: wrap; gap: 5px 22px; border-bottom: 1px solid var(--line); margin: 24px 0 18px; }
.sections a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.sections a:hover { color: var(--signal); }
.panel, .kpis { border: 1px solid var(--line); background: var(--panel); border-radius: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 14px; }
.kpi { padding: 17px 21px 19px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi small, .kpi strong, .kpi span { display: block; }
.kpi small, .kpi span, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.kpi strong { color: var(--signal); margin: 7px 0; font: 700 clamp(25px, 4vw, 43px)/1 var(--mono); }
.chart { padding: 24px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.panel-head select { max-width: 100%; }
.chart .muted { margin-block: 9px 14px; }
.chart svg { display: block; width: 100%; height: clamp(195px, 26vw, 330px); overflow: visible; }
.chart-grid { stroke: var(--line); vector-effect: non-scaling-stroke; }
.chart-trace { fill: none; stroke: var(--signal); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.chart-area { fill: #b9f5cb13; }
.chart-dot { fill: var(--signal); stroke: var(--canvas); stroke-width: 1; }
.chart-labels { display: flex; justify-content: space-between; gap: 3px; color: var(--muted); font: 11px var(--mono); margin-top: 8px; padding-left: 44px; }
.chart-body { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-block: 1px; text-align: right; color: var(--muted); font: 11px var(--mono); }
.chart-readout { margin-top: 13px; font: 12px/1.5 var(--mono); color: var(--signal); }
.chart-slider { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-top: 14px; }
.chart-slider input { accent-color: var(--signal); flex: 1; min-height: 30px; }
.chart-empty { min-height: 190px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center; }
.section { margin-top: 42px; scroll-margin-top: 20px; }
.section-head { margin-bottom: 16px; }
.section > .muted { margin: -7px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { padding: 18px; min-width: 0; }
.card .muted { margin: 7px 0 12px; }
.rows { margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row dt { overflow-wrap: anywhere; }
.row dd { margin: 0; font: 600 13px var(--mono); white-space: nowrap; }
.methodology, details { padding: 16px 18px; }
details { margin-top: 12px; }
summary { min-height: 44px; padding-block: 11px; font-weight: 650; }
.table-tools { margin-bottom: 10px; }
.table-wrap { max-height: 420px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
caption { text-align: left; color: var(--muted); margin-bottom: 6px; }
th { position: sticky; top: 0; background: var(--raised); }
td, th { padding: 8px 12px; border-bottom: 1px solid var(--line); }
td:last-child, th:last-child { text-align: right; }
.login { width: min(560px, 100%); margin: 6vh auto 0; padding: clamp(22px, 5vw, 46px); }
.login h1 { font-size: clamp(32px, 6vw, 55px); }
.login p:not(.eyebrow) { color: var(--muted); line-height: 1.55; margin: 14px 0 22px; }
#status { font-size: 14px; color: var(--muted); line-height: 1.5; }
#status:not(:empty) { margin: 12px 0; }
footer { min-height: 62px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; flex-direction: column; gap: 17px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .topbar, main, footer { padding-inline: 15px; }
  main { padding-block: 25px 46px; }
  .private { display: none; }
  .controls :is(select, button) { padding-inline: 9px; }
  .topbar { min-height: 58px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .chart { padding: 15px; }
  .chart-labels { font-size: 10px; }
  .sections a { font-size: 12px; }
  .sections { gap: 0 12px; margin-top: 14px; }
  .section { margin-top: 30px; }
}
