/* Coding Agent Value Index: one design system, light and dark (D15).
   Solid colours only: zinc neutrals and one emerald accent, reserved for the
   frontier, the answer and active controls. Amber and red mean warning and
   failure, nothing else. Provider swatches are data, not decoration.

   Radius rule: 10px panels and cards; 6px controls and inputs; 4px inline tags
   and the buttons nested in a segmented control; full round only for the switch
   track and filter chips. Data marks (points, swatches, bars) are exempt. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #f4f4f5;
  --surface: #fcfcfd;
  --surface-2: #f1f1f3;
  --surface-3: #e4e4e7;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --text: #18181b;
  --text-2: #45454d;
  --text-3: #62626a;
  --accent: #047857;
  --accent-soft: #e3f4ec;
  --accent-line: #9fd9bf;
  --on-accent: #fcfcfd;
  --amber: #a14b06;
  --amber-soft: #fcefd9;
  --red: #c42525;
  --red-soft: #fbe4e4;
  --knob: #fcfcfd;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.05);
  --shadow-lg: 0 16px 40px -16px rgb(24 24 27 / 0.22);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1680px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --surface: #111113;
    --surface-2: #18181b;
    --surface-3: #232327;
    --line: #232327;
    --line-2: #303036;
    --text: #f4f4f5;
    --text-2: #b4b4bd;
    --text-3: #8f8f99;
    --accent: #34d399;
    --accent-soft: #0f2a20;
    --accent-line: #1d5a43;
    --on-accent: #06150f;
    --amber: #f5b544;
    --amber-soft: #2b2010;
    --red: #f47171;
    --red-soft: #2c1414;
    --knob: #f4f4f5;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #232327;
  --line: #232327;
  --line-2: #303036;
  --text: #f4f4f5;
  --text-2: #b4b4bd;
  --text-3: #8f8f99;
  --accent: #34d399;
  --accent-soft: #0f2a20;
  --accent-line: #1d5a43;
  --on-accent: #06150f;
  --amber: #f5b544;
  --amber-soft: #2b2010;
  --red: #f47171;
  --red-soft: #2c1414;
  --knob: #f4f4f5;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px -16px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 56px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.muted { color: var(--text-2); }
.hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.4; }

/* Phosphor icons are filled paths; every icon slot colours them the same way. */
.icon-btn svg, .btn svg, .n-icon svg, .chev, .search svg, .callout > summary svg, .pill svg { fill: currentColor; flex: none; }

/* -------------------------------------------------------------- top bar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--accent);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: square; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 650; letter-spacing: -0.02em; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--text-3); }
.topbar-tools { display: flex; align-items: center; gap: 8px; }

.fresh {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
/* A real state indicator: grey while loading, accent when fresh, amber when stale. */
.fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.fresh-ok .fresh-dot { background: var(--accent); }
.fresh-stale .fresh-dot { background: var(--amber); }
.fresh-stale { color: var(--amber); border-color: var(--amber); }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: color .15s, border-color .15s, transform .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* ---------------------------------------------------------------- intro */

.intro { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 3.5vw, 32px); max-width: 820px; }
.intro h1 {
  font-size: clamp(30px, 4.8vw, 50px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600;
  text-wrap: balance;
}
.intro h1 .dim { color: var(--text-3); display: inline-block; }
.lede { margin-top: 16px; font-size: clamp(15px, 1.7vw, 17px); color: var(--text-2); max-width: 58ch; }

/* -------------------------------------------------------------- toolbar */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 10px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; z-index: 20;
}
.tool { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tool-axis { flex: 1 1 auto; }
.tool-range { flex: 1 1 320px; }
.tool-label { font-size: 12px; font-weight: 500; color: var(--text-3); padding-left: 6px; white-space: nowrap; }

.seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.seg-scroll { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg button {
  border: 0; background: transparent; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--r-xs); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
/* Not on the selected button: its text is --bg on a --text fill. */
.seg button:hover:not(:disabled):not([aria-pressed="true"]):not([aria-checked="true"]) { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] {
  background: var(--text); color: var(--bg);
}
.seg button:disabled { color: var(--text-3); cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--line-2); }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }

.range { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 160px; }
.range-out {
  font-family: var(--mono); font-size: 13px; font-weight: 600; min-width: 64px; text-align: center;
  padding: 4px 8px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent);
}

/* The filled part of the track is a hard stop: two solid colours, no blend. */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0;
  --fill: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--surface-3) var(--fill));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: var(--knob); border: 2px solid var(--accent); box-shadow: var(--shadow);
  transition: transform .12s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--knob); border: 2px solid var(--accent);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s, transform .15s var(--ease); cursor: pointer; user-select: none;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { width: 14px; height: 14px; }
.count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-xs); display: inline-grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 650; font-family: var(--mono);
}
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; font-weight: 500; justify-self: start; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* A physical push on everything pressable. */
.btn:active, .icon-btn:active, .seg button:active:not(:disabled) { transform: scale(0.97); }

/* Filters popover, built on <details> so it works without script. */
.popover { position: relative; margin-left: auto; }
.popover > summary { list-style: none; }
.popover > summary::-webkit-details-marker { display: none; }
.popover[open] > summary { border-color: var(--accent); background: var(--accent-soft); }
.popover-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(460px, calc(100vw - 2 * var(--gutter)));
  padding: 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  display: grid; gap: 18px; animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.field-label output { font-family: var(--mono); color: var(--accent); font-weight: 600; }
select {
  -webkit-appearance: none; appearance: none;
  padding: 7px 30px 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%238f8f99'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  font-size: 13px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 4px 10px; border-radius: 99px; font-size: 12.5px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { color: var(--text); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips-static li {
  padding: 3px 9px; border-radius: var(--r-sm); font-size: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track {
  width: 34px; height: 20px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none;
  transition: background .15s; border: 1px solid var(--line-2);
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--knob); box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(14px); background: var(--on-accent); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* -------------------------------------------------------------- notices */

.notices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.notices:empty { display: none; }
.notice {
  flex: 1 1 320px; min-width: 0;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; transition: border-color .15s;
}
.notice[open] { flex-basis: 100%; }
.notice > summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none;
  color: var(--text-2);
}
.notice > summary::-webkit-details-marker { display: none; }
.notice > summary b { color: var(--text); }
.notice > summary .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice:hover { border-color: var(--line-2); }
.n-icon { width: 22px; height: 22px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.n-icon svg { width: 13px; height: 13px; }
.notice-warn .n-icon { background: var(--amber-soft); color: var(--amber); }
.notice-warn { border-color: var(--amber-soft); }
.chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.notice-body { padding: 2px 12px 14px 44px; color: var(--text-2); display: grid; gap: 12px; }
.notice-body .chips li { font-size: 12px; }

/* Coverage: a bar without a track, so the length alone carries the number. */
.cov { display: grid; gap: 6px; max-width: 560px; }
.cov-row { display: grid; grid-template-columns: 120px 1fr 130px; align-items: center; gap: 10px; font-size: 12.5px; }
.cov-bar { height: 6px; }
.cov-bar i { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--line-2); }
.cov-row.on .cov-bar i { background: var(--accent); }
.cov-row.on span:first-child { color: var(--text); font-weight: 600; }
.cov-num { white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); text-align: right; }

/* ---------------------------------------------------------------- bento */

.bento {
  display: grid; gap: 16px; margin: 16px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "hero hero a b" "hero hero c c";
}
.card {
  position: relative; overflow: hidden;
  padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .2s var(--ease), border-color .2s;
  display: flex; flex-direction: column; min-width: 0;
}
.card:hover, .card:focus-visible { transform: translateY(-1px); border-color: var(--line-2); }
.card:active { transform: scale(0.99); }
.card[data-card="cheapest"] { grid-area: a; }
.card[data-card="fastest"] { grid-area: b; }
.card[data-card="highest"] { grid-area: c; }
.card-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.card-value { margin-top: 12px; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.card-name { margin-top: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--text-3); }
.card-empty .card-value { color: var(--text-3); }

/* The answer: the only card with an accent border. */
.card-hero { grid-area: hero; padding: 24px 26px; border-color: var(--accent-line); }
.card-hero:hover, .card-hero:focus-visible { border-color: var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); vertical-align: middle;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.pill svg { width: 12px; height: 12px; }
.pill-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card-qual { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.hero-name { margin-top: 20px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.hero-name .effort { font-size: 0.4em; vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.hero-sub { margin-top: 10px; color: var(--text-2); font-size: 14px; max-width: 520px; }
.hero-sub b { color: var(--text); }
/* Four stat tiles, divided by rules rather than boxed inside the card. */
.hero-stats {
  margin: auto 0 0; padding-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.hero-stats div { padding: 14px 16px 2px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats dt { font-size: 12px; color: var(--text-3); font-weight: 500; }
.hero-stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stats dd small { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.hero-stats .accent dd { color: var(--accent); }
.card-hero.card-empty .hero-name { font-size: 22px; color: var(--text-2); }

/* ---------------------------------------------------------------- panels */

.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.panel {
  padding: 20px; border-radius: var(--r); min-width: 0;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2, .section-head h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.panel-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li[hidden] { display: none; }
.lg { display: inline-block; border-radius: 50%; }
.lg-front { width: 10px; height: 10px; background: var(--accent); }
.lg-tied { width: 8px; height: 8px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.lg-dom { width: 7px; height: 7px; background: var(--text-3); opacity: .5; }
.lg-best { width: 13px; height: 13px; border: 2.5px solid var(--accent); }
.lg-tier { width: 13px; height: 13px; border: 1.5px dashed var(--text-2); }
.lg-curve { width: 14px; height: 0; border-radius: 0; border-top: 2px solid var(--text-3); }

.disclosure { margin-top: 12px; font-size: 13px; }
.disclosure > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--text-3); font-weight: 500; font-size: 12.5px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before {
  content: ""; width: 11px; height: 11px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.disclosure[open] > summary::before { transform: rotate(90deg); }
.disclosure > summary:hover { color: var(--text); }
.disclosure > :not(summary) { margin-top: 10px; }

.bullets { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 13px; }
.bullets li::marker { color: var(--text-3); }
.bullets b { color: var(--text); }

/* ----------------------------------------------------------------- chart */

.chart-panel { display: flex; flex-direction: column; }
.chart-wrap { position: relative; flex: 1; display: flex; align-items: center; }
#chart { width: 100%; height: auto; overflow: visible; }
#chart .grid { stroke: var(--line); stroke-width: 1; }
#chart .axis-tick { fill: var(--text-3); font-size: 13px; font-family: var(--mono); }
#chart .axis-label { fill: var(--text-2); font-size: 12.5px; font-weight: 500; }
#chart .frontier-band { fill: var(--accent); opacity: 0.1; }
#chart .frontier-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#chart .ci { stroke: var(--accent); stroke-width: 1.5; opacity: 0.5; }
#chart .ci-dim { stroke: var(--text-3); opacity: 0.25; }
#chart .pt { cursor: pointer; transition: opacity .15s; }
#chart .pt-front { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
#chart .pt-tied { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
#chart .pt-dominated, #chart .pt-unpriced { fill: var(--text-3); opacity: 0.4; }
#chart .pt-out { opacity: 0.18; }
#chart .pt-hi { stroke: var(--text); stroke-width: 2.5; opacity: 1; r: 8; }
#chart .pt:hover { opacity: 1; }
/* PRODUCT.md §7: the best value is ringed and labelled. One accent, so the ring
   is told apart from the frontier by weight, the pulse and the label. */
#chart .pt-best-ring { fill: none; stroke: var(--accent); stroke-width: 3; }
#chart .pt-best-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(0.8); opacity: .6; } to { transform: scale(2); opacity: 0; } }
/* Effort curves: one per model, quiet until hovered so the frontier leads. */
#chart .curve { fill: none; stroke-width: 1.5; stroke-opacity: 0.45; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; transition: opacity .15s, stroke-opacity .15s; }
#chart .clabel { transition: opacity .15s; }
#chart .clabel text { fill: var(--text-2); font-size: 12.5px; font-weight: 500; }
#chart .clabel-dim text { fill: var(--text-3); }
/* A leader across a dense chart is noise until its model is in focus. */
#chart .leader { fill: none; stroke: var(--text-3); stroke-width: 1; pointer-events: none; opacity: 0; }
#chart .clabel-more { fill: var(--text-3); font-size: 11.5px; }
#chart.focusing [data-model]:not(.in-focus) { opacity: 0.12; }
#chart.focusing .curve.in-focus { stroke-opacity: 1; stroke-width: 2.5; }
#chart.focusing .clabel.in-focus text { fill: var(--text); font-weight: 650; }
#chart.focusing .clabel.in-focus .leader { opacity: 1; }
#chart.focusing .frontier-line { opacity: 0.35; }
#chart.focusing .frontier-band { opacity: 0.04; }
#chart .xhair { pointer-events: none; }
#chart .xhair line { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; }
#chart .xhair text { fill: var(--accent); font-family: var(--mono); font-size: 12.5px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 8px; stroke-linejoin: round; }
/* The top tier is the secondary answer: dashed, no accent, no pulse. */
#chart .pt-tier-ring { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
#chart .pt-tier-label { paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; fill: var(--text-2); font-size: 12px; font-weight: 500; }
#chart .pt-best-label { paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; fill: var(--text); font-size: 13px; font-weight: 650; }

.tooltip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 180px;
  padding: 10px 12px; border-radius: var(--r); font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transform: translate(-50%, calc(-100% - 14px));
}
.tooltip .tt-name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tooltip .tt-grid { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tooltip .tt-grid span:nth-child(odd) { color: var(--text-3); }
.tooltip .tt-grid span:nth-child(even) { text-align: right; font-weight: 600; font-family: var(--mono); font-size: 12px; }
.tooltip .tt-state { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.tooltip-pinned { pointer-events: auto; }
.tooltip .tt-close { margin-left: auto; border: 0; background: none; padding: 0 2px; color: var(--text-3); font-size: 17px; line-height: 1; cursor: pointer; }
.tooltip .tt-close:hover { color: var(--text); }
.tooltip .tt-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------------------------------------------------------------- ladder */

.ladder { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; }
.ladder-row {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; align-items: start;
  padding: 10px 10px 10px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background .12s;
}
.ladder-row:hover { background: var(--surface-2); }
/* The rail: a vertical line through every rung. */
.ladder-row::before {
  content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--line);
}
.ladder-row:first-child::before { top: 18px; }
.ladder-row:last-child::before { bottom: calc(100% - 18px); }
.rung {
  position: relative; z-index: 1; width: 12px; height: 12px; margin: 4px 0 0 5px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-2);
}
/* "You are here" is the hollow accent rung; the answer is the filled one. */
.ladder-on { background: var(--accent-soft); }
.ladder-on:hover { background: var(--accent-soft); }
.ladder-on .rung { border-color: var(--accent); }
.ladder-best .rung { border-color: var(--accent); background: var(--accent); }
.ladder-name { font-weight: 600; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ladder-name .effort { font-weight: 500; }
.ladder-meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-3); }
.ladder-meta .band { font-family: var(--mono); }
.ladder-cost { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }
.ladder-premium .ladder-name { color: var(--text-2); }
.ladder-empty { padding: 16px; color: var(--text-3); font-size: 13px; text-align: center; }

/* ----------------------------------------------------------- spread */

.spread-panel { margin-bottom: 16px; }
.spread, .spread-axis { --cols: minmax(140px, 220px) minmax(0, 1fr) 130px; }
.spread { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.spread-row, .spread-axis { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; }
.spread-row { padding: 6px 8px; border-radius: var(--r-sm); }
.spread-row:hover { background: var(--surface-2); }
.spread-axis { padding: 0 8px 6px; }
.spread-ticks { position: relative; height: 16px; grid-column: 2; }
.spread-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.spread-name { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread-track { position: relative; height: 22px; }
.spread-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.spread-range { position: absolute; top: calc(50% - 1.5px); height: 3px; border-radius: 2px; opacity: .5; }
.spread-dot {
  position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 20px; height: 20px; padding: 0 3px;
  border-radius: 10px; border: 1.5px solid var(--hue); background: var(--surface); color: var(--text);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 1; cursor: pointer;
}
.spread-dot:hover, .spread-dot:focus-visible { background: var(--hue); color: var(--surface); z-index: 9; }
.spread-val { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; color: var(--text-2); }
.spread-more { margin-top: 10px; }
.spread-empty { padding: 14px 8px; color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------ climb */

.climb-panel { margin-bottom: 16px; }
.climb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; margin-bottom: 16px; }
#climb-line { width: 100%; height: auto; overflow: visible; }
#climb-line .grid { stroke: var(--line); stroke-width: 1; }
#climb-line .axis-tick { fill: var(--text-3); font-size: 11.5px; font-family: var(--mono); }
#climb-line .climb-x { font-family: var(--sans); fill: var(--text-2); }
#climb-line .axis-label { fill: var(--text-2); font-size: 12px; font-weight: 500; }
#climb-line .climb-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#climb-line .climb-path-premium { stroke: var(--text-3); stroke-dasharray: 5 4; }
#climb-line .climb-pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
#climb-line .climb-pt-premium { fill: var(--text-3); }
#climb-line .pt-best-ring { fill: none; stroke: var(--accent); stroke-width: 2.5; }
#climb-line .climb-lbl { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; fill: var(--text); font-size: 11.5px; font-weight: 600; font-family: var(--mono); }
.climb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.climb-row {
  display: grid; grid-template-columns: minmax(150px, 240px) 1fr minmax(96px, auto); gap: 4px 14px; align-items: center;
  padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background .12s;
}
.climb-row:hover { background: var(--surface-2); }
.climb-name { font-weight: 600; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.climb-name .effort { font-weight: 500; }
.climb-track { height: 14px; border-radius: var(--r-xs); background: var(--surface-2); overflow: hidden; }
.climb-track i { display: block; height: 100%; border-radius: var(--r-xs); background: var(--accent); transition: width .3s var(--ease); }
.climb-premium .climb-track i { background: var(--text-3); opacity: .45; }
.climb-premium .climb-name { color: var(--text-2); }
.climb-best .climb-track i { box-shadow: inset 0 0 0 2px var(--text); }
.climb-val { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.climb-val small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.climb-table-wrap { max-height: none; }
/* The main table pins its first two columns at fixed widths; this one does not. */
#climb-table th:nth-child(-n+2) { left: auto; width: auto; min-width: 0; box-shadow: none; z-index: 2; }
#climb-table thead th { cursor: default; }
#climb-table td.model { position: static; min-width: 180px; box-shadow: none; }
#climb-table td.from { color: var(--text-2); }
#climb-table tr.climb-premium td { color: var(--text-3); }

/* ----------------------------------------------------------------- table */

.table-head { align-items: center; }
.table-tools { display: flex; align-items: center; gap: 8px; flex: 0 1 380px; min-width: min(280px, 100%); }
.table-tools .search { flex: 1; min-width: 0; }
.table-nav { display: flex; gap: 4px; }
.table-nav .icon-btn svg { width: 14px; height: 14px; }
.table-nav .icon-btn:disabled { opacity: .35; cursor: default; transform: none; }
.flip { transform: scaleX(-1); }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); min-width: min(280px, 100%); flex: 0 1 300px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { width: 14px; height: 14px; color: var(--text-3); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }
.search input::placeholder { color: var(--text-3); opacity: 1; }
.kbd { flex: none; padding: 1px 6px; border-radius: var(--r-xs); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.search:focus-within .kbd { display: none; }

.callout {
  margin-bottom: 16px; border-radius: var(--r-sm); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.callout > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; color: var(--text-2); }
.callout > summary::-webkit-details-marker { display: none; }
.callout > summary b { color: var(--text); }
.callout > summary svg { width: 16px; height: 16px; color: var(--text-3); }
.callout > summary::after { content: "Why?"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.callout[open] > summary::after { content: "Hide"; }
.callout > p { padding: 0 12px 12px 38px; color: var(--text-2); }

.table-wrap {
  overflow: auto; max-height: 72vh; border-radius: var(--r-sm); border: 1px solid var(--line);
  scrollbar-width: thin;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2); color: var(--text-3);
  font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap;
  padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
thead th:hover { color: var(--text); }
thead th[aria-sort]::after { content: " ↓"; color: var(--accent); }
thead th[aria-sort="ascending"]::after { content: " ↑"; }
th.axis-col { color: var(--accent); font-weight: 600; }
th.num, td.num { text-align: right; }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.row { cursor: pointer; transition: background .1s; background: var(--surface); }
tbody tr.row:hover { background: var(--surface-2); }
tbody tr.row-open { background: var(--accent-soft); }
tbody tr.row-open:hover { background: var(--accent-soft); }
tbody tr.row:not(.row-qual) td:not(.model) { color: var(--text-3); }
td.axis-col { background: var(--surface-2); }
tr.row-open td.axis-col { background: transparent; }
td.rank { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
td.model { font-weight: 600; white-space: normal; min-width: 200px; }
/* # and Variant stay pinned while the benchmark columns scroll under them.
   They take the row's own background, so hover and open states still show. */
th:nth-child(1), td.rank { position: sticky; left: 0; width: 44px; min-width: 44px; }
th:nth-child(2), td.model { position: sticky; left: 44px; box-shadow: inset -1px 0 var(--line); }
td.rank, td.model { background: inherit; z-index: 1; }
thead th:nth-child(1), thead th:nth-child(2) { z-index: 3; }
.model-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.released { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.score { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
td.axis-col .score { color: var(--text); font-weight: 650; }
.ci-text { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-left: 3px; }
.harness { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
td.est .score { color: var(--text-3); font-style: italic; }
.est-from { display: block; font-size: 11.5px; color: var(--text-3); }
td.empty { color: var(--text-3); }
td.strong { font-family: var(--mono); font-weight: 600; color: var(--text); }
td.num:not(.rank) { font-family: var(--mono); font-size: 12.5px; }
.empty-row { text-align: center; color: var(--text-3); padding: 32px !important; }

/* Provider swatch: a square legend key, so it never reads as a status dot. */
.swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.effort {
  display: inline-block; padding: 1px 7px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.tag {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--r-xs);
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  background: var(--amber-soft); color: var(--amber); vertical-align: middle;
}
.tag-new { background: var(--surface-3); color: var(--text); }
.tag-best { background: var(--accent); color: var(--on-accent); }
.tag-tier { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.tag-quiet { background: var(--surface-3); color: var(--text-2); font-weight: 500; }
.badge {
  display: inline-flex; padding: 1px 6px; border-radius: var(--r-xs); font-size: 11.5px; font-family: var(--mono); font-weight: 500;
  border: 1px solid var(--line-2); color: var(--text-3);
}
.est-inline { font-family: var(--mono); color: var(--text-3); font-weight: 700; }

/* Provenance, under an expanded row: columns split by rules, not boxes. */
.prov-row > td { padding: 0 !important; background: var(--surface-2); white-space: normal; }
.prov { padding: 16px 20px 20px; display: grid; gap: 16px; }
.prov-lead { font-size: 13px; color: var(--text-2); max-width: 900px; }
.prov-lead b { color: var(--text); }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 20px; }
.prov-item { padding-top: 12px; border-top: 2px solid var(--line-2); font-size: 12.5px; }
.prov-item h4 { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.prov-score { font-size: 20px; font-weight: 600; margin: 4px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.prov-item dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0 0 8px; }
.prov-item dt { color: var(--text-3); }
.prov-item dd { margin: 0; text-align: right; white-space: nowrap; }
.prov-item a { font-size: 12px; font-weight: 600; }
.prov-missing { border-top-style: dashed; color: var(--text-3); }
.prov-missing p { margin-top: 6px; }

/* ----------------------------------------------------- sections, benches */

.section { margin-top: 48px; }
.section-head { margin-bottom: 16px; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bench {
  padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; font-size: 12.5px;
}
.bench-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bench h3 { font-size: 14px; letter-spacing: -0.01em; }
.bench h3 .ver { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 4px; }
.status { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-xs); white-space: nowrap; }
.status-in { color: var(--accent); background: var(--accent-soft); }
.status-out { color: var(--red); background: var(--red-soft); }
.status-guard { color: var(--amber); background: var(--amber-soft); }
.bench-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.bench-stats dt { color: var(--text-3); font-size: 12px; }
.bench-stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.bench-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--text-3); font-size: 12px; }
.bench-fail { color: var(--red); font-size: 12px; }
.bench-out { border-style: dashed; }
.bench .disclosure { margin-top: 0; }
.bench .disclosure p { color: var(--text-2); font-size: 12.5px; }
.bench-guard { grid-column: 1 / -1; padding: 10px 14px; border-radius: var(--r-sm); background: var(--amber-soft); color: var(--amber); font-size: 13px; }

.accordion { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px;
  transition: background .12s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-2); }
.accordion summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px; font-weight: 400; line-height: 1; color: var(--text-3); transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 18px 18px; font-size: 13.5px; color: var(--text-2); max-width: 820px; display: grid; gap: 12px; }
.acc-body b { color: var(--text); }
.refresh-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.refresh-row .hint { margin: 0; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-size: 12.5px; color: var(--text-3);
}

/* Entry: panels rise in once, in reading order, so the answer lands first. */
@media (prefers-reduced-motion: no-preference) {
  .intro, .toolbar, .bento > *, .split > *, .climb-panel, .table-panel, .section { animation: rise .6s var(--ease) both; }
  .toolbar { animation-delay: .04s; }
  .bento > :nth-child(1) { animation-delay: .08s; }
  .bento > :nth-child(2) { animation-delay: .12s; }
  .bento > :nth-child(3) { animation-delay: .16s; }
  .bento > :nth-child(4) { animation-delay: .2s; }
  .split > * { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .split, .climb-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "a b" "c c"; }
}
@media (max-width: 720px) {
  .toolbar { padding: 12px; }
  .tool-axis { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
  .tool-label { padding-left: 2px; }
  .tool-range { flex-wrap: wrap; }
  .popover { margin-left: 0; }
  .popover-panel { position: fixed; top: auto; bottom: 12px; left: 12px; right: auto; width: calc(100vw - 24px); max-height: 75vh; overflow: auto; }
  .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "hero" "a" "b" "c"; }
  .card-value { font-size: 26px; }
  .card-hero { padding: 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .brand-sub { display: none; }
  .fresh-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .panel { padding: 16px; }
  .notice-body { padding-left: 12px; }
  .cov-row { grid-template-columns: 96px 1fr; }
  .cov-num { grid-column: 2; text-align: left; }
  #chart .axis-tick { font-size: 16px; }
  #chart .axis-label { font-size: 16px; }
  #climb-line .axis-tick, #climb-line .climb-lbl, #climb-line .axis-label { font-size: 15px; }
  .footer { flex-direction: column; }
  td.model { min-width: 150px; }
  .table-tools { flex-basis: 100%; }
  .climb-row { grid-template-columns: 1fr auto; }
  .climb-track { grid-column: 1 / -1; grid-row: 2; }
}
