/* The published VisualForge site. Tokens are documented in DESIGN.md at the repository root. */
:root {
  --paper: #f3f4fa;
  --surface: #ffffff;
  --ink: #100e2b;
  --ink-2: #2a2851;
  --muted: #575a76;
  --line: #d9dcec;
  --line-strong: #b4b9d4;
  --violet: #5b2ff5;
  --violet-deep: #3b17b5;
  --violet-soft: #ebe7ff;
  --orange: #ff6a13;
  --orange-deep: #b83f00;
  --orange-soft: #ffe8da;
  --danger: #a12626;
  --a: var(--violet);
  --b: var(--orange);
  /* Names the shared board script reads. */
  --panel: var(--surface);
  --text: var(--ink);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 4px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.num, .score, .stat b { font-variant-numeric: tabular-nums; }
small { color: var(--muted); }
[hidden] { display: none !important; }

/* ---- top bar ---- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.mark { display: block; width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-weight: 650; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--violet); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.top form { margin-left: auto; display: flex; }
.top input[type="search"] { width: 15rem; max-width: 100%; }

/* ---- form controls ---- */
input[type="search"], input[type="text"], select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r); padding: 0 12px; height: 44px; width: 100%; min-width: 0;
}
select { padding-right: 8px; }
input:hover, select:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r); border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-deep); border-color: var(--violet-deep); }
.btn.hot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.hot:hover { background: #ff8340; border-color: #ff8340; color: var(--ink); }
.btn small { color: inherit; opacity: .8; font-weight: 500; font-size: .8rem; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.on-dark .btn { border-color: #fff; color: #fff; }
.on-dark .btn:hover { background: #fff; color: var(--ink); }
.on-dark .btn.hot { border-color: var(--orange); color: var(--ink); }
.on-dark .btn.hot:hover { background: #ff8340; }
.on-dark .btn.primary { border-color: var(--violet); color: #fff; }
.on-dark .btn.primary:hover { background: #7b56ff; border-color: #7b56ff; color: #fff; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 3px; background: var(--violet-soft); color: var(--violet-deep); font-size: .74rem; font-weight: 700; vertical-align: 1px; }
.tag.warn { background: var(--orange-soft); color: var(--orange-deep); }
.est { color: var(--orange-deep); font-weight: 800; }

/* ---- headings ---- */
.kicker { margin: 0 0 12px; font-weight: 750; font-size: .95rem; color: var(--violet-deep); letter-spacing: .01em; }
.on-dark .kicker { color: #c9baff; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.03em; margin: 0; }
h1.display { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 900; letter-spacing: -.045em; line-height: .96; }
h1.page { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 850; }
h2.section { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 850; overflow-wrap: anywhere; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 10px 0 0; }
.on-dark .lede { color: #d7d8ee; }
.section { padding: 56px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head p { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.more-link { font-weight: 750; }

/* ---- hero ---- */
.hero { position: relative; background: #0d0b25; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: -20%; width: 58%; height: 150%; background: var(--violet); transform: skewX(-14deg); transform-origin: top; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero.bare .wrap { grid-template-columns: minmax(0, 1fr); }
.hero.bare::before { width: 30%; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero form { display: flex; gap: 10px; margin: 28px 0 14px; max-width: 34rem; }
.hero form input { height: 52px; border-color: #fff; }
.hero form .btn { height: 52px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; padding: 0; list-style: none; }
.stat b { display: block; font-size: 2.1rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat span { color: #c9cbe6; font-size: .9rem; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mosaic a { position: relative; display: block; aspect-ratio: 16 / 11; background: #1d1a45; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; }
.mosaic a:nth-child(3n + 2) { transform: translateY(26px); }
.mosaic a:nth-child(3n + 3) { transform: translateY(-12px); }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mosaic .cap { position: absolute; inset: auto 0 0 0; padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(13, 11, 37, .92)); font-size: .74rem; font-weight: 650; line-height: 1.2; display: flex; justify-content: space-between; gap: 6px; }
.mosaic .cap b { color: var(--orange); font-variant-numeric: tabular-nums; }
.mosaic a:hover { border-color: var(--orange); }

/* ---- page head (inside pages) ---- */
.page-head { padding: 40px 0 22px; }
.crumbs { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---- filter bar ---- */
.filters { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.filters .field { grid-column: span 3; min-width: 0; }
.filters .field.wide { grid-column: span 6; }
.filters .field.narrow { grid-column: span 2; }
.field > label, .field-label { display: block; margin: 0 0 4px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.filters .end { grid-column: span 2; display: flex; }
.filters .end .btn { width: 100%; }
.filters .btn { min-height: 44px; }
.stick { position: sticky; top: 0; z-index: 20; }
.tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tabs button { font: inherit; font-weight: 750; padding: 0 20px; min-height: 42px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.tabs button + button { border-left: 2px solid var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.count { color: var(--muted); }
.count b { color: var(--ink); }

/* ---- combobox ---- */
.combo { position: relative; }
.combo-box { position: relative; }
.combo-box input { padding-right: 38px; }
.combo-clear { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 38px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: var(--r); }
.combo-clear:hover { color: var(--ink); background: var(--violet-soft); }
.combo ul { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 12px 28px rgba(16, 14, 43, .18); }
.combo li { padding: 9px 10px; cursor: pointer; border-radius: 3px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.combo li small { flex: none; }
.combo li.active, .combo li:hover { background: var(--violet-soft); }
.combo li[aria-selected="true"] { font-weight: 800; }
.combo li.note { cursor: default; color: var(--muted); font-size: .88rem; }
.combo li.note:hover { background: transparent; }

/* ---- score cells ---- */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 3.1rem; padding: 3px 9px; border-radius: 3px; font-weight: 850; }
.score.fail { text-decoration: line-through; }
.meter { display: block; height: 8px; background: #e3e5f2; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--violet); }

/* ---- runs list ---- */
.runs { display: grid; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.runs-head, .run-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(7rem, .9fr) repeat(3, minmax(4.5rem, .7fr)) minmax(0, 1.5fr) 11.5rem; gap: 16px; align-items: center; padding: 14px 18px; }
.runs.no-video .runs-head, .runs.no-video .run-row { grid-template-columns: minmax(0, 2.4fr) minmax(7rem, .9fr) repeat(3, minmax(4.5rem, .7fr)) 11.5rem; }
.runs-head { font-size: .84rem; font-weight: 700; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding-top: 10px; padding-bottom: 10px; }
.run-row + .run-row { border-top: 1px solid var(--line); }
.run-row:hover { background: #faf9ff; }
.run-name { font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.2; }
.run-name:hover { color: var(--violet); text-decoration: underline; }
.run-who small { display: block; margin-top: 2px; }
.run-score { display: grid; gap: 6px; }
.run-score b { font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.run-score b small { font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.run-used { display: contents; font-variant-numeric: tabular-nums; }
.run-used small { display: block; }
.run-video { font-size: .92rem; min-width: 0; }
.run-video a { overflow-wrap: anywhere; }
.run-video > a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.run-video small { display: block; }
.run-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cell-label { display: none; }

/* ---- page tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 18px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.tile .shot { position: relative; display: block; aspect-ratio: 16 / 10; background: #e6e8f4; border-bottom: 1.5px solid var(--ink); }
.tile .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile .none { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .88rem; }
.tile .badge { position: absolute; right: 8px; top: 8px; box-shadow: 0 2px 8px rgba(16, 14, 43, .3); }
.tile .info { padding: 12px 14px 14px; display: grid; gap: 4px; font-size: .92rem; align-content: start; flex: 1; }
.tile .info b { font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.tile .who { color: var(--ink-2); font-weight: 650; overflow-wrap: anywhere; }
.tile .who a { color: inherit; }
.tile .used { color: var(--muted); font-variant-numeric: tabular-nums; }
.tile .links { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; font-weight: 700; }
.fp { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.more { display: flex; justify-content: center; margin: 26px 0 8px; }
.empty { padding: 56px 20px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); }
.empty b { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.empty.error { border-color: var(--danger); color: var(--danger); }

/* ---- videos ---- */
.videos { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.video-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--orange); border-radius: 50%; }
.thumb .play::after { content: ""; position: absolute; left: 23px; top: 17px; border-left: 19px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.thumb:hover .play { background: #ff8340; }
.video-row h3 { font-size: 1.5rem; font-weight: 850; }
.video-row h3 a { color: var(--ink); text-decoration: none; }
.video-row h3 a:hover { color: var(--violet); text-decoration: underline; }
.video-row .when { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.video-row .about { margin: 8px 0 0; max-width: 62ch; }
.models { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.models li { padding: 3px 9px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; font-size: .84rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---- panels shared with the board ---- */
.panel { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 26px; margin-bottom: 22px; }
.panel > .head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel h2 { font-size: 1.6rem; font-weight: 850; }
.panel .lede { margin: 6px 0 0; font-size: 1rem; }
.toggle { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--violet); }
.rank { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 2.2rem minmax(9rem, 16rem) minmax(0, 1fr) 4rem; gap: 14px; align-items: center; }
.rank-n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.rank-name { font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.rank-name a, td.who a { color: var(--ink); text-decoration-thickness: 1px; }
.rank-name a:hover, td.who a:hover { color: var(--violet); }
.rank-name small { display: block; font-weight: 400; font-size: .8rem; }
.rank-bar { height: 30px; background: #e3e5f2; border-radius: 2px; overflow: hidden; position: relative; }
.rank-bar span { display: block; height: 100%; }
.rank-bar i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(16, 14, 43, .3); }
.rank-score { font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scale { display: grid; grid-template-columns: 2.2rem minmax(9rem, 16rem) minmax(0, 1fr) 4rem; gap: 14px; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.scale div:nth-child(3) { display: flex; justify-content: space-between; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: .92rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { width: 34px; height: 10px; }
svg.chart { display: block; width: 100%; height: auto; font-family: var(--sans); }
.chart-scroll { overflow-x: auto; }
.chart text { fill: var(--ink); }
.chart .axis text { fill: var(--muted); font-size: 13px; }
.chart .grid { stroke: rgba(16, 14, 43, .12); stroke-width: 1; }
.chart .axis-line { stroke: var(--line-strong); stroke-width: 1.5; }
.chart .label { font-size: 15px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart .axis-title { font-size: 13px; fill: var(--muted); }
.foot { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; }
th, td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .82rem; color: var(--muted); font-weight: 700; white-space: normal; vertical-align: bottom; line-height: 1.2; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td small { display: block; font-size: .78rem; }
tr:last-child td { border-bottom: 0; }
.heat td.cell { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; border: 2px solid var(--surface); border-radius: 3px; min-width: 76px; }
.heat td.best { box-shadow: inset 0 0 0 2px var(--ink); }
.heat td.fail { text-decoration: line-through; }
.heat td.guess { outline: 2px dashed currentColor; outline-offset: -6px; font-weight: 650; }
.heat .gap { width: 14px; padding: 0; border-bottom: 0; }
.heat th.group { color: var(--ink); font-size: .88rem; border-bottom: 0; padding-bottom: 0; }
.heat .who { font-weight: 700; white-space: normal; min-width: 10rem; }
.key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.key b { color: var(--ink); }

/* ---- run page ---- */
.run-hero { background: #0d0b25; color: #fff; }
.run-hero .wrap { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.run-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; overflow-wrap: anywhere; }
.run-hero .who { margin: 12px 0 0; color: #d7d8ee; }
.run-hero .who .tag { background: #2c2570; color: #d8ceff; }
.run-note { margin: 18px 0 0; padding: 12px 16px; max-width: 62ch; border-left: 3px solid var(--orange); background: rgba(255, 255, 255, .06); }
.run-note h2 { margin: 0 0 4px; font-size: .84rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #c9baff; }
.run-note p { margin: 0; color: #fff; white-space: pre-line; overflow-wrap: anywhere; }
.bigscore { text-align: right; }
.bigscore b { display: block; font-size: clamp(3.6rem, 9vw, 6.5rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: var(--orange); font-variant-numeric: tabular-nums; }
.bigscore span { color: #c9cbe6; font-size: .95rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 26px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.facts div { padding: 14px 16px 0 0; }
.facts dt { font-size: .84rem; color: #c9cbe6; }
.facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; color: #c9cbe6; font-weight: 500; font-size: .78rem; letter-spacing: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.criteria { display: grid; gap: 12px; }
.criterion { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 3rem; gap: 12px; align-items: center; }
.criterion b { text-align: right; font-variant-numeric: tabular-nums; }
/* A coding test's bug board: violet is a check passed first time, orange one still failing. */
.cb-test { margin: 0; font-size: 1.35rem; font-weight: 850; overflow-wrap: anywhere; }
.cb-summary { margin: 0 0 6px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cb-group h4 { margin: 16px 0 8px; font-size: .9rem; color: var(--muted); }
.cb-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cb-tile { padding: 10px 12px; border: 1.5px solid; border-radius: var(--r); }
.cb-tile b { display: block; font-weight: 750; }
.cb-tile span { font-size: .84rem; }
.cb-tile.first-try { background: var(--violet); border-color: var(--violet); color: #fff; }
.cb-tile.after-feedback { background: var(--violet-soft); border-color: var(--violet); border-style: dashed; color: var(--violet-deep); }
.cb-tile.failed { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
/* A page repaired after the run: its errors, the model's page beside the repaired one, and the change. */
.repair .cb-test .tag { vertical-align: 4px; }
.repair-label { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.repair-errors { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; }
.repair-errors li { padding: 8px 12px; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 3px; color: var(--orange-deep); font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; }
.repair-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.repair-shots figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.repair-shots figcaption { font-weight: 800; }
.repair-shots .shot { display: block; aspect-ratio: 16 / 10; background: #e6e8f4; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.repair-shots .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.repair-shots .none { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .88rem; }
.repair-label.scores { margin-top: 22px; }
.repair-scores th small { display: block; font-weight: 600; }
.repair-scores tbody tr:first-child td { font-weight: 800; }
.repair-scores td.up { color: var(--violet-deep); font-weight: 800; }
.repair-scores td.down { color: var(--orange-deep); font-weight: 800; }
.repair-note { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.change { margin-top: 18px; }
.change summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--violet-deep); cursor: pointer; }
.change summary:hover { color: var(--violet); }
/* The change scrolls inside its own box; the page never scrolls sideways. */
.diff { margin: 6px 0 0; padding: 10px 0; max-height: 440px; overflow: auto; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-family: var(--mono); font-size: .8rem; line-height: 1.5; }
.diff span { display: block; padding: 0 14px; white-space: pre; min-width: max-content; }
.diff .add { background: var(--violet-soft); color: var(--violet-deep); }
.diff .del { background: var(--orange-soft); color: var(--orange-deep); }
.diff .hunk { color: var(--muted); background: #e3e5f2; }
.side-videos { display: grid; gap: 14px; }
.side-video { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.side-video.bare { grid-template-columns: minmax(0, 1fr); }
.side-video strong { display: block; line-height: 1.2; }
.side-video a.title { color: var(--ink); font-weight: 800; }

/* ---- compare ---- */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: end; }
.pick-side { background: var(--surface); border: 1.5px solid var(--ink); border-top-width: 8px; border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.pick-side.a { border-top-color: var(--a); }
.pick-side.b { border-top-color: var(--b); }
.pick-side h2 { font-size: 1.1rem; font-weight: 850; }
.pick-side.a h2 { color: var(--violet-deep); }
.pick-side.b h2 { color: var(--orange-deep); }
.pick-mid { display: flex; align-items: center; justify-content: center; padding-bottom: 12px; }
.versus { margin-top: 34px; }
.vs-head { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(18rem) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.vs-side { padding: 22px; border-radius: var(--r); color: #fff; display: grid; gap: 6px; align-content: start; }
.vs-side.a { background: var(--a); }
.vs-side.b { background: var(--b); color: var(--ink); }
.vs-side h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 900; letter-spacing: -.035em; overflow-wrap: anywhere; }
.vs-side .tag { background: rgba(255, 255, 255, .22); color: inherit; }
.vs-side.b .tag { background: rgba(16, 14, 43, .14); }
.vs-side .big { font-size: clamp(3rem, 7vw, 5rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; }
.vs-side small { color: inherit; opacity: .85; }
.vs-side a { color: inherit; font-weight: 700; }
.vs-side .rec { margin-top: 8px; font-size: .92rem; }
.vs-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 900; text-align: center; }
.vs-mid .vs { font-size: 1.4rem; letter-spacing: .04em; }
.vs-mid .delta { font-size: .9rem; font-weight: 700; color: var(--muted); }
.duel { border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); margin-top: 22px; }
.duel h3 { padding: 16px 20px 0; font-size: 1.25rem; font-weight: 850; }
.duel-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 20px; }
.duel-row .l, .duel-row .r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.duel-row .l { flex-direction: row; }
.duel-row .l b, .duel-row .r b { flex: none; min-width: 3.6rem; font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.duel-row .r b { text-align: right; }
.duel-row .l b { text-align: left; }
.duel-row .win { font-weight: 900; }
.duel-row .l .win { color: var(--violet-deep); }
.duel-row .r .win { color: var(--orange-deep); }
.duel-row .meter { flex: 1; height: 12px; }
.duel-row .l .meter i { margin-left: auto; background: var(--a); }
.duel-row .r .meter i { background: var(--b); }
.duel-row .mid { text-align: center; font-weight: 700; color: var(--ink-2); }
.duel-group { padding: 14px 20px 0; font-size: .84rem; font-weight: 700; color: var(--muted); }
.duel-list { padding: 8px 0 12px; }
.pair { padding: 26px 0; border-top: 1px solid var(--line); }
.pair:first-child { border-top: 0; }
.pair-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pair-head h3 { font-size: 1.5rem; font-weight: 850; }
.pair-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pair-col { border: 1.5px solid var(--ink); border-top-width: 6px; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pair-col.a { border-top-color: var(--a); }
.pair-col.b { border-top-color: var(--b); }
.pair-col .tile { border: 0; border-radius: 0; }
.pair-col .tile .shot { border-bottom: 1.5px solid var(--line); }
.prompt-note { font-size: .88rem; color: var(--muted); }
.prompt-note.same { color: #14683a; font-weight: 650; }
.prompt-note.differ { color: var(--orange-deep); font-weight: 650; }

/* ---- video page ---- */
.video-hero { background: #0d0b25; color: #fff; }
.video-hero .wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 48px; }
.video-hero.bare .wrap { grid-template-columns: minmax(0, 1fr); }
.video-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; }
.video-hero .when { margin: 0 0 8px; color: #c9cbe6; }
.video-hero .about { margin: 14px 0 0; max-width: 60ch; color: #e6e7f6; font-size: 1.08rem; }
.downloads { width: 100%; }
.downloads td { white-space: normal; }
.downloads a { font-weight: 700; }

.run-hero .crumbs, .run-hero .crumbs a, .video-hero .crumbs, .video-hero .crumbs a { color: #c9cbe6; }
.run-hero .facts { grid-column: 1 / -1; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-weight: 700; }
.side-video .links { margin-top: 4px; }
.duel-note { margin: 0; padding: 4px 20px 18px; color: var(--muted); font-size: .88rem; }

/* ---- footer ---- */
.foot-site { margin-top: 72px; background: #0d0b25; color: #d7d8ee; padding: 34px 0 44px; font-size: .92rem; }
.foot-site .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 40px; }
.foot-site p { margin: 0 0 8px; max-width: 64ch; }
.foot-site a { color: #fff; }
.foot-site strong { color: #fff; }
.foot-site .part-of { margin-top: 16px; }

@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero::before, .hero.bare::before { left: 0; right: 0; width: auto; top: 58%; height: 42%; transform: none; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .mosaic { max-width: 640px; }
  .runs-head { display: none; }
  .run-row { grid-template-columns: minmax(0, 1fr) minmax(7rem, auto); grid-template-areas: "who score" "used used" "video video" "actions actions"; gap: 12px 16px; }
  .runs.no-video .run-row { grid-template-columns: minmax(0, 1fr) minmax(7rem, auto); grid-template-areas: "who score" "used used" "actions actions"; }
  .run-who { grid-area: who; }
  .run-score { grid-area: score; text-align: right; }
  .run-used { grid-area: used; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .run-video { grid-area: video; }
  .run-actions { grid-area: actions; justify-content: flex-start; }
  .cell-label { display: block; color: var(--muted); font-size: .8rem; }
  .filters .field, .filters .field.narrow { grid-column: span 4; }
  .filters .field.wide { grid-column: span 12; }
  .filters .end { grid-column: span 12; }
  .rank-row, .scale { grid-template-columns: 2rem minmax(8rem, 12rem) minmax(0, 1fr) 3.4rem; }
}
@media (max-width: 900px) {
  .video-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .video-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .grid-2, .pair-cols, .repair-shots { grid-template-columns: minmax(0, 1fr); }
  .pick, .vs-head { grid-template-columns: minmax(0, 1fr); }
  .pick-mid { padding-bottom: 0; }
  .vs-mid { flex-direction: row; }
  .run-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .bigscore { text-align: left; }
  .foot-site .wrap { grid-template-columns: minmax(0, 1fr); }
  .stick { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top .wrap { min-height: 0; row-gap: 0; }
  .nav { flex-wrap: wrap; gap: 0; margin: 0; max-width: 100%; }
  .nav a { padding: 10px 8px; }
  .top form { margin-left: 0; width: 100%; }
  .top input[type="search"] { width: 100%; }
  .filters { padding: 12px; }
  .filters .field, .filters .field.narrow { grid-column: span 6; }
  .hero .wrap { padding-top: 40px; padding-bottom: 52px; }
  .hero form { flex-direction: column; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic a:nth-child(n + 5) { display: none; }
  .mosaic a:nth-child(3n + 2), .mosaic a:nth-child(3n + 3) { transform: none; }
  .mosaic a:nth-child(2n) { transform: translateY(18px); }
  .panel { padding: 16px; }
  /* The chart keeps a readable size and scrolls sideways inside its frame instead of shrinking its labels to nothing. */
  .chart-scroll svg.chart { min-width: 680px; }
  .rank-row { grid-template-columns: 1.6rem minmax(0, 1fr) 3rem; }
  .rank-bar { grid-column: 2 / -1; grid-row: 2; }
  .scale { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .scale div:nth-child(2) { display: none; }
  .run-used { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duel-row { grid-template-columns: minmax(0, 1fr) 4.6rem minmax(0, 1fr); gap: 8px; padding: 8px 12px; }
  /* A figure such as "≈103.3 tok/s" is wider than half the row on a small phone: put it above its bar and let it wrap. */
  .duel-row .l, .duel-row .r { align-items: stretch; gap: 4px; }
  .duel-row .l { flex-direction: column; }
  .duel-row .r { flex-direction: column-reverse; }
  .duel-row .meter { flex: none; }
  .duel-row .l b, .duel-row .r b { min-width: 0; font-size: 1rem; overflow-wrap: anywhere; }
  .duel-row .mid { font-size: .8rem; }
  .criterion { grid-template-columns: 5.5rem minmax(0, 1fr) 3.2rem; }
  .side-video { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .mosaic a, .run-row { transition: background-color .12s, border-color .12s, color .12s; }
}

/* A compact workspace within the existing ink-and-signal system. */
.page-head.compact{padding-bottom:24px}.eyebrow{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--violet-deep);margin:0 0 10px}
@media(min-width:901px){.board-workspace .page-head.compact{display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;column-gap:40px;align-items:end;padding:28px 0 24px}.board-workspace .page-head .eyebrow{grid-column:1;margin-bottom:6px}.board-workspace .page-head h1{grid-column:1;font-size:42px;margin:0}.board-workspace .page-head .lede{grid-column:2;grid-row:1/3;margin:0;font-size:15px;max-width:620px}.board-workspace .evidence-note{margin-bottom:16px}.board-workspace .rank-head{padding-top:12px;padding-bottom:12px}.board-workspace .rank-row{min-height:94px}}
.board-controls{border:1.5px solid var(--line-strong);background:var(--surface);padding:18px;margin-bottom:24px;border-radius:4px}.control-primary{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.control-primary>.field{flex:1 1 170px;min-width:0}.control-primary>.wide{flex:1.5 1 220px}.control-primary select{max-width:100%}.board-controls details{margin-top:14px}.board-controls summary{cursor:pointer;font-weight:700;color:var(--ink-2);width:fit-content}.board-controls .filters{border:0;padding:18px 0 0;margin:0;background:transparent;position:static}.evidence-note{border-left:3px solid var(--violet);padding:10px 16px;margin-bottom:22px;font-size:13px;color:var(--muted)}
.board-workspace .rank-list{background:var(--surface);border:1.5px solid var(--ink-2);border-radius:4px;overflow:hidden}.board-workspace .rank-head,.board-workspace .rank-row{display:grid;grid-template-columns:100px minmax(200px,1fr) 130px 130px 165px;align-items:center;gap:16px;padding:14px 20px}.board-workspace .rank-head{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.045em;border-bottom:1px solid var(--line-strong)}.board-workspace .rank-row{border-bottom:1px solid var(--line);min-height:100px}.board-workspace .rank-row:last-child{border:0}.board-workspace .rank-position{font-size:20px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}.board-workspace .rank-model{min-width:0}.board-workspace .rank-model strong{font-size:17px;overflow-wrap:anywhere}.board-workspace .rank-row small{display:block;font-size:12px;color:var(--muted);font-weight:500;line-height:1.5}.board-workspace .rank-model details{margin-top:6px;font-size:12px}.board-workspace .rank-model summary{color:var(--muted);cursor:pointer}.board-workspace .rank-model dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px;margin:12px 0;font-size:12px}.board-workspace .rank-model dd{margin:0;overflow-wrap:anywhere}.board-workspace .rank-score{font-size:30px;font-weight:800;letter-spacing:-.04em;color:var(--violet-deep);font-variant-numeric:tabular-nums}.board-workspace .rank-score small{display:inline;margin-left:5px;letter-spacing:0}.board-workspace .rank-coverage{font-weight:750;font-variant-numeric:tabular-nums}.board-workspace .rank-row .actions{gap:6px;flex-wrap:wrap}.resource-svg{width:100%;height:auto;min-height:200px;font-size:12px;font-family:inherit}.resource-svg circle{cursor:pointer}.resource-svg circle:hover,.resource-svg circle:focus,.resource-svg circle.selected{stroke:var(--ink);stroke-width:3}.point-detail{padding:16px;background:var(--violet-soft);margin:10px 0 20px;min-height:55px}.fine{color:var(--muted);font-size:13px;line-height:1.6}.filter-chips{display:flex;flex-wrap:wrap;gap:6px}.filter-chips .tag{max-width:100%;overflow-wrap:anywhere}.check{font-size:13px;display:flex;gap:7px;align-items:center}.filters .check{grid-column:span 6;min-height:44px}.prose{max-width:900px;padding-bottom:60px}.prose section{border-top:1px solid var(--line-strong);padding:24px 0}.prose p,.prose dd{line-height:1.8;color:var(--muted)}.prose dt{font-weight:750;margin-top:16px}.prose dd{margin:4px 0 0}.prose pre,.prompt-disclosure pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--paper);padding:18px;font-size:13px;max-height:500px;overflow:auto}.edition-record{padding:16px;border-bottom:1px solid var(--line)}.edition-record summary{font-weight:750;cursor:pointer;overflow-wrap:anywhere}.experiment-section{border-top:2px solid var(--ink);padding:28px 0 40px}.experiment-section h2{font-size:32px;margin:8px 0 16px}.experiment-section .tiles{margin-top:24px}.experiment-links{display:flex;gap:8px;flex-wrap:wrap}.prompt-disclosure{padding:15px;border:1px solid var(--line-strong);margin:20px 0}.copy-status{margin-left:12px}.bigscore small{display:block;font-size:12px;line-height:1.5;max-width:340px;margin-top:10px}.run-score>small{font-size:11px;color:var(--muted)}
@media(max-width:900px){.board-workspace .rank-head,.board-workspace .rank-row{grid-template-columns:45px minmax(140px,1fr) 100px 100px;gap:12px;padding:16px}.board-workspace .rank-head>span:last-child{display:none}.board-workspace .rank-row>.actions{grid-column:2/-1}.control-primary>.field{flex-basis:180px}.board-workspace .toolbar{gap:14px;align-items:start;flex-direction:column}}
@media(max-width:640px){.board-controls{padding:14px}.control-primary{gap:12px}.control-primary>.field,.control-primary>.wide{flex-basis:calc(50% - 12px)}.control-primary>.wide{flex-basis:100%}.board-workspace .rank-head{display:none}.board-workspace .rank-row{grid-template-columns:26px minmax(0,1fr) 76px;gap:10px;padding:16px 12px}.board-workspace .rank-model strong{font-size:15px}.board-workspace .rank-score{font-size:26px;text-align:right}.board-workspace .rank-score small{display:block}.board-workspace .rank-coverage{grid-column:2;font-size:13px}.board-workspace .rank-coverage small{display:inline;margin-left:5px}.board-workspace .rank-row>.actions{grid-column:2/-1}.board-workspace .rank-model dl{grid-template-columns:1fr}.board-workspace .tabs{display:flex;flex-wrap:wrap;gap:4px}.board-workspace .tabs button{font-size:12px;padding:10px}.resource-svg{min-width:720px}.resource-svg{max-width:none}#resource-chart,.chart-scroll{overflow-x:auto}.experiment-section h2{font-size:25px}.prose pre{font-size:12px}}

@media(min-width:1100px){.board-workspace .control-primary{display:grid;grid-template-columns:minmax(135px,1fr) minmax(150px,1.25fr) minmax(150px,1.1fr) minmax(225px,1.6fr) 100px;align-items:end}.board-workspace .control-primary>.field{width:100%}}
@media(max-width:640px){.board-workspace .control-track{flex-basis:100%}}

@media(max-width:640px){.board-workspace .page-head{padding-top:24px}.board-workspace .control-primary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.board-workspace .control-primary>.field{width:100%}.board-workspace .control-preset{grid-column:1;grid-row:1}.board-workspace .control-limit{grid-column:2;grid-row:1}.board-workspace .control-primary>.wide{grid-column:1/-1;grid-row:2}.board-workspace .control-edition{grid-column:1;grid-row:3}.board-workspace .control-track{grid-column:2;grid-row:3}.board-workspace .evidence-note{font-size:12px;margin-bottom:16px;padding:8px 12px}}

#resource-table{max-width:100%;overflow-x:auto}.point-label{paint-order:stroke;stroke:white;stroke-width:4px;fill:var(--ink);font-weight:700;pointer-events:none}
.point-name{font-size:13px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;fill:var(--ink);pointer-events:none}.point-name.point-label{fill:var(--violet-deep)}.legend i{width:12px;height:12px;border-radius:50%;flex:none;display:inline-block}.legend i.open{background:var(--surface);border:2.5px solid var(--muted)}
