/* Layout: short header, then one tabbed workspace (Dataset / Demo / Download / Method).
   Quiet neutrals and one blue accent; warm hues are reserved for hazard severity. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --subtle: #f6f7f9;
  --ink: #0f1217;
  --ink-2: #4a515d;
  --ink-3: #7a828e;
  --rule: #e5e7eb;
  --rule-2: #d3d7dd;
  --accent: #1d5fd1;
  --accent-ink: #ffffff;
  --accent-soft: #eaf1fc;

  /* severity: validated ordinal ramp, NONE neutral */
  --sev-NONE: #a7abb3;
  --sev-LOW: #eea064;
  --sev-MEDIUM: #d4602a;
  --sev-HIGH: #9e2318;
  --sev-LOW-ink: #3a1a06;

  /* model identity: validated categorical slots */
  --m-qwen: #eb6834;
  --m-sft: #2a78d6;
  --m-hr: #1baf7a;
  --ok: #16825d;
  --bad: #b3261e;

  --screen: #0c0e12;
  --code-bg: #0f1217;
  --code-ink: #d5dae2;
  --code-key: #8db4f0;

  /* font A. For option C swap these two lines to "Noto Sans" / "Noto Sans Mono" */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 8px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f13;
    --subtle: #15181d;
    --ink: #eceef2;
    --ink-2: #b3b9c3;
    --ink-3: #848c98;
    --rule: #262a31;
    --rule-2: #353b44;
    --accent: #6f9ff0;
    --accent-ink: #0d0f13;
    --accent-soft: #17233a;
    --sev-NONE: #6c727c;
    --sev-LOW: #f29a62;
    --sev-MEDIUM: #e06a35;
    --sev-HIGH: #c43a28;
    --m-qwen: #d95926;
    --m-sft: #3987e5;
    --m-hr: #199e70;
    --ok: #3fc495;
    --bad: #f0796b;
    --code-bg: #15181d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f13;
  --subtle: #15181d;
  --ink: #eceef2;
  --ink-2: #b3b9c3;
  --ink-3: #848c98;
  --rule: #262a31;
  --rule-2: #353b44;
  --accent: #6f9ff0;
  --accent-ink: #0d0f13;
  --accent-soft: #17233a;
  --sev-NONE: #6c727c;
  --sev-LOW: #f29a62;
  --sev-MEDIUM: #e06a35;
  --sev-HIGH: #c43a28;
  --m-qwen: #d95926;
  --m-sft: #3987e5;
  --m-hr: #199e70;
  --ok: #3fc495;
  --bad: #f0796b;
  --code-bg: #15181d;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
code { font: 400 .82em var(--mono); background: var(--subtle); border: 1px solid var(--rule); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.inner { max-width: 1120px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.scroll-x { overflow-x: auto; }
.note { color: var(--ink-3); font-size: .85rem; }
.credit { color: var(--ink-3); font-size: .76rem; margin-top: 8px; line-height: 1.45; }
.body { color: var(--ink-2); font-size: .92rem; }
.mt { margin-top: 28px; }
.mt-xl { margin-top: 64px; }

/* ------------------------------------------------------------ top bar + intro */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar-inner { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: auto; }
.toplinks { display: flex; gap: 4px; }
.toplinks a { color: var(--ink-2); font-size: .88rem; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.toplinks a:hover { background: var(--subtle); color: var(--ink); text-decoration: none; }
.toplinks a.soon { color: var(--ink-3); cursor: default; }
.toplinks a.soon:hover { background: none; color: var(--ink-3); }
.toplinks a.soon::after { content: "soon"; font: 500 .62rem var(--mono); margin-left: 5px; padding: 1px 4px; border: 1px solid var(--rule); border-radius: 3px; vertical-align: 1px; }

.intro { padding-block: 48px 40px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.eyebrow { font: 500 .74rem var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.1rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.title-row { display: flex; align-items: center; gap: 14px; }
.title-row img { width: clamp(44px, 5vw, 60px); height: auto; flex: none; }
.subtitle { font-size: 1.15rem; line-height: 1.45; color: var(--ink-2); margin-top: 10px; max-width: 46ch; }
.authors { margin-top: 18px; font-size: .95rem; }
.authors sup, .affil sup { color: var(--ink-3); font-size: .68em; }
.affil { color: var(--ink-3); font-size: .88rem; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--rule-2); color: var(--ink); font-weight: 500; font-size: .9rem; }
.btn:hover { text-decoration: none; background: var(--subtle); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .88; background: var(--ink); }
.keynums { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--r); }
.keynums > div { padding: 14px 16px; }
.keynums > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.keynums > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.keynums dt { font-size: .76rem; color: var(--ink-3); }
.keynums dd { margin: 4px 0 0; font: 500 1.35rem/1.15 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.keynums dd span { display: block; font: 400 .72rem var(--font); color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.keynote { grid-column: 1 / -1; font-size: .72rem; color: var(--ink-3); padding: 8px 16px; border-top: 1px solid var(--rule); background: var(--subtle); border-radius: 0 0 var(--r) var(--r); }

/* ------------------------------------------------------------ tabs */
.tabbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { all: unset; cursor: pointer; padding: 14px 4px 12px; margin-right: 20px; font-size: .93rem; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.panels { padding-block: 40px 72px; }
.panel-head { max-width: 760px; margin-bottom: 28px; }
.panel-head h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.panel-head p { color: var(--ink-2); }
h3 { font-size: 1rem; font-weight: 600; }

/* ------------------------------------------------------------ dataset */
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 14px 28px 14px 0; }
.stats > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.stats dt { font-size: .76rem; color: var(--ink-3); }
.stats dd { margin: 3px 0 0; font: 500 1.25rem/1.2 var(--mono); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats dd span { font: 400 .76rem var(--font); color: var(--ink-3); letter-spacing: 0; }
.splitbar { display: flex; gap: 2px; height: 26px; margin: 16px 0 44px; }
.splitbar div { min-width: max-content; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--subtle); border: 1px solid var(--rule); font: 400 .74rem var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; min-width: 0; }
.splitbar div:first-child { border-radius: 5px 0 0 5px; background: var(--accent-soft); }
.splitbar div:last-child { border-radius: 0 5px 5px 0; }
.splitbar b { font-weight: 500; color: var(--ink); }

.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font: 400 .74rem var(--mono); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.block-head + .note { margin-bottom: 16px; }

.overview-head { margin-top: 36px; margin-bottom: 12px; }
.inspector { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px; border: 1px solid var(--rule); border-radius: var(--r); scroll-margin-top: 110px; }
.anno-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.anno-head h3 { font: 500 1.05rem var(--mono); letter-spacing: -.01em; }
.anno-head span { font-size: .8rem; color: var(--ink-3); }
.field { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.field-k { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 4px; }
.field p { font-size: .9rem; color: var(--ink-2); }
.answer-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.warn-text { font-weight: 500; margin-top: 6px; }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--bg); transition: border-color .15s; }
.tile:hover { border-color: var(--rule-2); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; background: var(--screen); }
.tile-body { padding: 8px 9px 9px; display: grid; gap: 6px; }
.tile-name { font: 400 .72rem/1.25 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.tile-count { font: 400 .7rem var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mix { display: flex; gap: 2px; height: 5px; }
.mix span { height: 100%; min-width: 2px; }
.mix span:first-child { border-radius: 3px 0 0 3px; }
.mix span:last-child { border-radius: 0 3px 3px 0; }
.mix span:only-child { border-radius: 3px; }

.more { margin-top: 18px; }
.more summary { cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.more summary:hover { color: var(--ink); }
.more .scroll-x { margin-top: 10px; }

.defs { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.defs h3 { margin-bottom: 12px; }
.tax { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: .88rem; }
.tax dt { color: var(--ink-2); }
.tax dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tax code { font-size: .72rem; }
.sevdefs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.sevdefs li { display: flex; gap: 12px; align-items: center; }

/* severity chip */
.sev { display: inline-block; min-width: 4.5em; text-align: center; font: 500 .66rem/1 var(--mono); letter-spacing: .04em; padding: 4px 6px; border-radius: 4px; color: #fff; background: var(--sev-NONE); }
.sev[data-sev="LOW"] { background: var(--sev-LOW); color: var(--sev-LOW-ink); }
.sev[data-sev="MEDIUM"] { background: var(--sev-MEDIUM); }
.sev[data-sev="HIGH"] { background: var(--sev-HIGH); }

/* ------------------------------------------------------------ frame player */
.player { display: grid; gap: 8px; }
.screen { position: relative; aspect-ratio: 8 / 5; border-radius: 6px; overflow: hidden; background: var(--screen); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s linear; }
.screen img.on { opacity: 1; }
.frame-tag { position: absolute; top: 8px; left: 8px; font: 500 .7rem/1 var(--mono); color: #fff; background: rgba(0, 0, 0, .55); padding: 5px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 10px; }
.controls .play { all: unset; cursor: pointer; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; }
.controls .play:hover { background: var(--subtle); }
.controls .play:focus-visible { outline: 2px solid var(--accent); }
.controls .play svg { width: 11px; height: 11px; fill: var(--ink); }
.ticks { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tick { all: unset; cursor: pointer; padding-top: 6px; border-top: 2px solid var(--rule); font: 400 .7rem var(--mono); color: var(--ink-3); text-align: left; }
.tick b { font-weight: 500; color: var(--ink-2); margin-right: 5px; }
.tick.on { border-top-color: var(--ink); color: var(--ink-2); }
.tick.on b { color: var(--ink); }
.tick:focus-visible { outline: 2px solid var(--accent); }

/* ------------------------------------------------------------ demo */
.picker { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 26px; }
.group-name { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 7px; }
.group.fail .group-name { color: var(--bad); }
.pair { display: flex; flex-wrap: wrap; gap: 6px; }
.shot { all: unset; box-sizing: border-box; cursor: pointer; width: 112px; border-radius: 5px; overflow: hidden; border: 1px solid var(--rule); background: var(--screen); opacity: .7; transition: opacity .15s; }
.shot img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.shot:hover { opacity: 1; }
.shot[aria-pressed="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.arena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.arena-left { position: sticky; top: 64px; }
.label { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--subtle); display: grid; gap: 8px; }
.label p { font-size: .88rem; color: var(--ink-2); }
.label .case { font-size: .8rem; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--rule); }
.answers { display: grid; gap: 10px; }
.answer { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.answer.ours { border-color: color-mix(in srgb, var(--m-hr) 60%, var(--rule)); }
.answer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.who i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.who small { font: 400 .72rem var(--mono); color: var(--ink-3); }
.pred { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ok { color: var(--ok); font-weight: 600; font-size: .85rem; }
.bad { color: var(--bad); font-weight: 600; font-size: .85rem; }
.trunc { font: 400 .68rem var(--mono); color: var(--ink-3); border: 1px dashed var(--rule-2); border-radius: 4px; padding: 2px 5px; }
.answer-warn { font-weight: 500; }
.answer details summary { cursor: pointer; font-size: .82rem; color: var(--ink-3); }
.answer details summary:hover { color: var(--ink); }
.answer details p { font-size: .86rem; color: var(--ink-2); margin-top: 6px; }
.answer details b { font-weight: 500; color: var(--ink); }

.gauge { display: grid; gap: 4px; }
.gauge-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding-top: 13px; }
.seg { height: 6px; background: var(--rule); }
.seg:first-child { border-radius: 3px 0 0 3px; }
.seg:last-child { border-radius: 0 3px 3px 0; }
.seg.f-NONE { background: var(--sev-NONE); }
.seg.f-LOW { background: var(--sev-LOW); }
.seg.f-MEDIUM { background: var(--sev-MEDIUM); }
.seg.f-HIGH { background: var(--sev-HIGH); }
.gauge-mark { position: absolute; top: 0; width: 25%; text-align: center; font: 500 .58rem/1 var(--mono); letter-spacing: .05em; color: var(--ink-2); }
.gauge-mark::after { content: ""; display: block; margin: 2px auto 0; width: 0; border: 3.5px solid transparent; border-top: 4px solid var(--ink-2); border-bottom: 0; }
.gauge-scale { display: grid; grid-template-columns: repeat(4, 1fr); font: 400 .6rem var(--mono); color: var(--ink-3); }
.gauge-scale span { text-align: center; }
.verdict { font: 400 .74rem var(--mono); color: var(--ink-3); }
.verdict.under { color: var(--bad); }
.verdict.match { color: var(--ok); }

/* ------------------------------------------------------------ download */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dl-grid h3 { margin-bottom: 12px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: .9rem; }
.code { margin: 0; overflow-x: auto; background: var(--code-bg); color: var(--code-ink); border-radius: var(--r); padding: 16px 18px; font: 400 .78rem/1.6 var(--mono); }
.code code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.code .k { color: var(--code-key); }
.bib { position: relative; margin-bottom: 10px; }
.copy { position: absolute; top: 10px; right: 10px; font: 500 .74rem var(--font); padding: 5px 10px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------ tables */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.table thead th { font-weight: 500; font-size: .76rem; color: var(--ink-3); border-bottom-color: var(--rule-2); }
.table .r { text-align: right; padding-left: 12px; padding-right: 0; font-variant-numeric: tabular-nums; }
.table.num { min-width: 720px; font-family: var(--font); }
.table.num td.r { font-family: var(--mono); font-size: .82rem; }
.table tr.grp th { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding-top: 18px; }
.table tr.ours td { background: color-mix(in srgb, var(--m-hr) 9%, var(--bg)); }
.table tr.ours td:first-child { padding-left: 8px; font-weight: 500; }
.table .b { font-weight: 600; }
.table .na { color: var(--ink-3); }
.files td a { font: 400 .82rem var(--mono); }
.files td.r { color: var(--ink-2); }
#crosstab { min-width: 560px; }
#crosstab td.r { font-family: var(--mono); font-size: .8rem; }
.table-title { margin: 40px 0 10px; }
.table-title span { font-weight: 400; font-size: .8rem; color: var(--ink-3); margin-left: 6px; }

/* ------------------------------------------------------------ method & results */
.stages { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stages li { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; }
.stages span { font: 500 .72rem var(--mono); color: var(--ink-3); }
.stages h3 { margin: 4px 0 6px; }
.stages p { font-size: .88rem; color: var(--ink-2); }
.fig { margin: 0; }
.fig img { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.fig figcaption { margin-top: 8px; font-size: .8rem; color: var(--ink-3); }
.figs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; align-items: start; }

.dumbbell { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 20px 6px; }
.db-legend { display: flex; gap: 18px; flex-wrap: wrap; font: 400 .74rem var(--mono); color: var(--ink-2); margin-bottom: 8px; }
.db-legend span { display: inline-flex; align-items: center; gap: 6px; }
.db-legend i { width: 9px; height: 9px; border-radius: 50%; }
.db-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--rule); }
.db-row.axis { border-bottom: 0; min-height: 26px; }
.db-name { font-size: .88rem; font-weight: 500; line-height: 1.25; }
.db-name small { display: block; font: 400 .7rem var(--mono); color: var(--ink-3); }
.db-track { position: relative; height: 28px; margin: 0 48px 0 44px; }
.db-row:not(.axis) .db-track { background: linear-gradient(to right, var(--rule) 1px, transparent 1px) 0 0 / 25% 100%; }
.db-line { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink-3); }
.db-line.good { background: var(--m-hr); opacity: .5; }
.db-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.db-dot::before { content: ""; position: absolute; inset: -8px; }
.db-val { position: absolute; top: 50%; transform: translateY(-50%); font: 400 .76rem var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-val.left { margin-left: -12px; translate: -100% 0; }
.db-val.right { margin-left: 12px; }
.db-tick { position: absolute; top: 4px; translate: -50% 0; font: 400 .68rem var(--mono); color: var(--ink-3); }

/* ------------------------------------------------------------ footer, tooltip */
.footer { border-top: 1px solid var(--rule); padding-block: 22px; font-size: .78rem; color: var(--ink-3); }
.tooltip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--bg); font: 400 .74rem/1.35 var(--mono); padding: 5px 8px; border-radius: 4px; white-space: nowrap; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .intro-grid, .inspector, .arena, .dl-grid, .defs, .figs { grid-template-columns: minmax(0, 1fr); }
  .intro-grid { gap: 28px; }
  .arena-left { position: static; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, auto); row-gap: 0; }
  .stats > div:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { width: calc((100% - 12px) / 3); }
  .group { width: 100%; }
  .stats { grid-template-columns: repeat(2, auto); }
  .stats > div:nth-child(n) { border-left: 0; padding-left: 0; padding-right: 20px; }
  .tax { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tax dd { margin-bottom: 8px; }
  .db-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0; }
  .db-row.axis > div:first-child { display: none; }
  .toplinks a { padding: 6px 6px; }
  .toplinks a.soon::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen img, .tile, .shot { transition: none; }
}
