/* OpenWeights Bench. System fonts only, no external requests. */
:root {
  color-scheme: light dark;
  /* Warm paper, ink, and ONE accent (burnt orange). Everything else is a neutral. */
  --bg: #f7f5f0; --surface: #efece4; --card: #fffefb; --fg: #1b1f24; --muted: #565f68; --border: #dbd6ca; --hair: #e7e3d9;
  --accent: #c2410c; --accent-soft: #fde7d8; --accent-ink: #ffffff;
  --link: #ad380a; --focus: #1d4ed8; --head: #ebe7dd; --banner: #b00020;
  --ok-bg: #d5eadf; --ok-fg: #0d4a2c; --mid-bg: #f6e7b8; --mid-fg: #5a4200;
  --bad-bg: #f6d9d3; --bad-fg: #7a1a10; --na-bg: #e7e3d9; --na-fg: #3a3f45;
  --sz-tiny: #b8400a; --sz-le4: #0072b2; --sz-4-9: #c98600; --sz-9-16: #00875f; --sz-16-35: #b5427f; --sz-gt35: #6a4fb5; --sz-unknown: #6b7480;
  --radius: 12px; --radius-sm: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131719; --surface: #1b2124; --card: #181d20; --fg: #e9e6df; --muted: #a2abb2; --border: #2c3438; --hair: #242b2f;
    --accent: #fb923c; --accent-soft: #3a2314; --accent-ink: #1a0f08;
    --link: #fb923c; --focus: #93c5fd; --head: #212a2e; --banner: #c2102f;
    --ok-bg: #153a28; --ok-fg: #c3efd0; --mid-bg: #3d3010; --mid-fg: #f6e5a6;
    --bad-bg: #4a1c17; --bad-fg: #fbcfc9; --na-bg: #262d31; --na-fg: #d3d8df;
    --sz-tiny: #ff9a66; --sz-le4: #5db3ee; --sz-4-9: #f2b84b; --sz-9-16: #4ccb9f; --sz-16-35: #e48dbb; --sz-gt35: #a995ee; --sz-unknown: #9aa3af;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; font-variant-numeric: tabular-nums;
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.demo-banner { background: var(--banner); color: #fff; text-align: center; padding: .6rem 1rem; font-size: 1.05rem; }
.site-header { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .8rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--card); }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand::before { content: ""; width: .85rem; height: .85rem; border-radius: 3px; background: var(--accent); box-shadow: .35rem .35rem 0 -.1rem var(--accent-soft); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .1rem .15rem; }
.site-header nav a { color: var(--fg); text-decoration: none; padding: .2rem .6rem; border-radius: 999px; font-size: .95rem; }
.site-header nav a:hover { background: var(--accent-soft); }
main { max-width: 76rem; margin: 0 auto; padding: 1.25rem; }
.site-footer { max-width: 76rem; margin: 2rem auto 0; padding: 1rem 1.25rem 2rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .875rem; }
h1 { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em; margin: .5rem 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 2rem 0 .6rem; padding-top: .4rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
h4 { font-size: 1rem; margin: 0 0 .5rem; }
.intro { max-width: 62rem; }
.note, .muted, .crumb { color: var(--muted); font-size: .9rem; }
.empty { font-size: 1.15rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.digest { word-break: break-all; }
ul, ol { padding-left: 1.4rem; max-width: 62rem; }
li { margin: .3rem 0; }
p { max-width: 62rem; }

/* Tables: only the wrapper scrolls, never the page. */
.table-wrap { overflow-x: auto; max-width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: .75rem 0; }
table.board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
.board caption { text-align: left; padding: .5rem .75rem; color: var(--muted); caption-side: top; }
.board th, .board td { padding: .45rem .65rem; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; white-space: nowrap; }
.board thead th { background: var(--head); position: sticky; top: 0; z-index: 1; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid var(--border); }
.board tbody tr:nth-child(even) > * { background: var(--surface); }
.board tbody th { font-weight: 600; }
.board td.num, .board th.num { text-align: right; }
.board td.wrap { white-space: normal; min-width: 16rem; overflow-wrap: anywhere; }
.board .strong { font-weight: 700; }
.board .sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.board .sub.partial { color: var(--bad-fg); font-weight: 600; white-space: normal; max-width: 14rem; margin-left: auto; text-align: right; }
.board .sub.ci { cursor: help; }
.board .sub.judge-resolved, .board .sub.pending, .board .sub.integrity { cursor: help; text-decoration: underline dotted; }
.board .sub.pending, .board .sub.integrity { color: var(--bad-fg); font-weight: 600; }
.board th.sticky0, .board td.sticky0 { position: sticky; left: 0; z-index: 2; min-width: 3.2rem; background: var(--card); }
.board th.sticky { position: sticky; left: 3.2rem; z-index: 2; background: var(--card); border-right: 1px solid var(--border); }
.board thead th.sticky0, .board thead th.sticky { z-index: 3; background: var(--head); }
.board tbody tr:nth-child(even) > .sticky0, .board tbody tr:nth-child(even) > .sticky { background: var(--surface); }
.compact th, .compact td { white-space: normal; }
.board th button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.board th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: .7em; }
.board th[aria-sort="descending"] button::after { content: " \25BC"; font-size: .7em; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 1rem 0 .25rem; }
.filters[hidden] { display: none; }
.filters select { font: inherit; padding: .3rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; max-width: 100%; }
#f-count { color: var(--muted); font-size: .9rem; }

/* The leaderboard breaks out of the prose column and is centred; narrower screens scroll inside the wrapper. */
.board-wrap { width: min(100vw - 2rem, 1500px); max-width: none; margin-left: calc(50% - min(100vw - 2rem, 1500px) / 2); }
.board-wrap .board { font-size: .84rem; }
.board-wrap .board th, .board-wrap .board td { padding: .4rem .45rem; }
.board-wrap .board th.sticky0, .board-wrap .board td.sticky0 { min-width: 2.6rem; }
/* The leaderboard's rank cell can hold a range like "12-35" (about 50px at this size). The Rank column is 4.5rem
   wide and the Model column sticks exactly after it (th.sticky only occurs on the leaderboard), so the two never overlap. */
.board-wrap .board th.rank-col { min-width: 4.5rem; width: 4.5rem; }
.board-wrap .board th.sticky { left: 4.5rem; }
details.howto { margin: .5rem 0; padding: .4rem .8rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
details.howto summary { cursor: pointer; font-weight: 600; }
details.howto p { margin: .5rem 0; }
.items-grid th, .items-grid td { padding: .3rem .5rem; }
.items-grid td.c { text-align: center; }
.flag { display: inline-block; padding: 0 .4rem; border: 1px solid var(--border); border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--na-bg); color: var(--na-fg); }
.flag-disputed, .flag-integrity { background: var(--bad-bg); color: var(--bad-fg); }
.flag a { color: inherit; }

/* Badges carry text, not only colour. */
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid transparent; }
.badge-high, .badge-pass { background: var(--ok-bg); color: var(--ok-fg); }
.badge-medium { background: var(--mid-bg); color: var(--mid-fg); }
.badge-low, .badge-fail { background: var(--bad-bg); color: var(--bad-fg); }
.badge-na { background: var(--na-bg); color: var(--na-fg); }

/* Detail cards. */
dl.card { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0; margin: .5rem 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
dl.card dt, dl.card dd { margin: 0; padding: .45rem .75rem; border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }
dl.card dt { background: var(--surface); color: var(--muted); font-size: .9rem; }
dl.card dt:last-of-type, dl.card dd:last-of-type { border-bottom: 0; }

/* Untrusted model output is shown as plain text only. */
pre { font-family: var(--mono); font-size: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem; margin: .25rem 0 .75rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; }
.label { margin: .6rem 0 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sample { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; }
.judges { list-style: none; padding: 0; }
.judges li { padding: .4rem 0; border-top: 1px dashed var(--border); }
.rationale, .review-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .25rem 0 0; }
figure.review { margin: .75rem 0; padding: .6rem 1rem; border-left: 4px solid var(--border); background: var(--surface); }
figure.review figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.verdict { margin: .25rem 0; font-weight: 600; }
/* A multi-turn item: every turn is a labelled plain-text block. */
.convo { list-style: none; padding: 0; margin: .25rem 0; max-width: none; }
.convo .turn { margin: .3rem 0; }
.convo .role { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
.convo .turn pre { margin: .1rem 0; max-height: 14rem; }
.convo .turn-user pre { border-left: 4px solid var(--accent); }
.convo .turn-assistant pre { border-left: 4px solid var(--muted); }

/* Size-class tabs (plain links, work without JS). */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .5rem; }
.tabs a { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--card); }
.tabs a:hover { border-color: var(--accent); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.tabs .count { font-size: .8em; opacity: .75; }

/* Speed vs quality scatter: inline SVG, colours from CSS variables so light and dark mode both work. */
.chart { margin: 1rem 0; }
.chart-wrap { overflow-x: auto; max-width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
svg.scatter { display: block; width: 100%; min-width: 640px; height: auto; }
.scatter .plot-bg { fill: var(--surface); }
.scatter .grid { stroke: var(--border); stroke-width: 1; }
.scatter .tick, .scatter .axis-label, .scatter .dot-label { fill: var(--fg); font-size: 12px; font-family: inherit; }
.scatter .tick { fill: var(--muted); font-size: 11px; }
.scatter .dot-label { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.scatter a { cursor: pointer; }
.scatter .dot { stroke: var(--bg); stroke-width: 1.5; }
.scatter a:hover .dot, .scatter a:focus .dot { stroke: var(--fg); stroke-width: 2.5; }
.sz-tiny { fill: var(--sz-tiny); } .sz-le4 { fill: var(--sz-le4); } .sz-4-9 { fill: var(--sz-4-9); } .sz-9-16 { fill: var(--sz-9-16); }
.sz-16-35 { fill: var(--sz-16-35); } .sz-gt35 { fill: var(--sz-gt35); } .sz-unknown { fill: var(--sz-unknown); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: .5rem 0; max-width: none; }
.legend li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.swatch { display: inline-block; border-radius: 50%; background: var(--sz-unknown); }
.swatch.sz-tiny { width: 5px; height: 5px; background: var(--sz-tiny); }
.swatch.sz-le4 { width: 8px; height: 8px; background: var(--sz-le4); }
.swatch.sz-4-9 { width: 11px; height: 11px; background: var(--sz-4-9); }
.swatch.sz-9-16 { width: 14px; height: 14px; background: var(--sz-9-16); }
.swatch.sz-16-35 { width: 17px; height: 17px; background: var(--sz-16-35); }
.swatch.sz-gt35 { width: 20px; height: 20px; background: var(--sz-gt35); }
.swatch.sz-unknown { width: 8px; height: 8px; }

/* Pickers: plain GET forms (compare, hardware); they work without JavaScript. */
form.picker { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin: .75rem 0; max-width: 62rem; }
.picker .field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 14rem; min-width: 0; }
.picker label { font-weight: 600; font-size: .9rem; }
.picker select, .picker input { font: inherit; width: 100%; max-width: 100%; padding: .4rem .5rem; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.picker button { font: inherit; font-weight: 700; padding: .45rem 1.2rem; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; }
.compare-box h2 { margin-top: 1rem; font-size: 1.1rem; }
.head-link { display: inline-block; min-width: 1.5rem; min-height: 1.5rem; line-height: 1.5rem; margin-left: .1rem; text-align: center; text-decoration: none; font-size: .9em; }
.cat-list { list-style: none; padding: 0; }
.cat-list li { margin: .8rem 0; padding: .6rem .9rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.diff-items pre { max-height: 14rem; }
.diff-items details > summary { cursor: pointer; font-weight: 600; }

@media (max-width: 640px) {
  main { padding: .9rem; }
  h1 { font-size: 1.45rem; }
  dl.card { grid-template-columns: 1fr; }
  dl.card dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Question explorer: one collapsed answer per model, verdict and score visible on the summary line. */
.answers details.answer { margin: .5rem 0; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.answers details.answer > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.answers .who { font-weight: 700; }
.answers .score { font-variant-numeric: tabular-nums; }
.verdict-line { font-size: 1.1rem; }

/* Headline findings above the leaderboard. */
section.findings { margin: 1rem 0; padding: .4rem 1rem .6rem; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); }
section.findings h2 { margin-top: .4rem; border-top: 0; padding-top: 0; font-size: 1.15rem; }
section.findings ul { margin: .4rem 0; }

/* Model labels: fine-tune of ..., purpose-built kind (model page); the table versions are plain .sub lines. */
.model-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .75rem; max-width: none; }
.tag { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--fg); background: var(--surface); border: 1px solid var(--border); }

/* ---- Dashboard components (home, best, model summary). Charts are server-rendered SVG; no inline styles (CSP). ---- */
.hero { margin: .25rem 0 1rem; }
.hero h1 { font-size: 2.3rem; margin-bottom: .5rem; }
.hero .lead { font-size: 1.1rem; max-width: 46rem; color: var(--muted); margin: 0 0 .5rem; }
.hero .intro { color: var(--muted); font-size: .95rem; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin: 1rem 0; padding: 0; list-style: none; max-width: none; }
.stat-strip li { margin: 0; }
.stat { display: block; height: 100%; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .num.accent { color: var(--accent); }
.stat .what { display: block; margin-top: .15rem; font-size: .8rem; color: var(--muted); }
.stat .what a { color: inherit; }
.judge-note { margin: .75rem 0; padding: .6rem 1rem; background: var(--accent-soft); border-radius: var(--radius); font-size: .92rem; max-width: none; }
.judge-note a { color: var(--fg); }
.panel { margin: 1rem 0; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.panel > h2 { margin: 0 0 .25rem; padding: 0; border: 0; font-size: 1.2rem; }
.panel > .note { margin: .1rem 0 .6rem; }
.panel .chart-wrap { border: 0; border-radius: var(--radius-sm); margin-top: .4rem; }
.section-title { margin: 1.8rem 0 .2rem; padding: 0; border: 0; font-size: 1.25rem; }
.section-sub { margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }

/* Frontier chart: the signature accent line is the best score reachable at each memory size. */
svg.frontier { display: block; width: 100%; min-width: 560px; height: auto; }
.frontier .plot-bg { fill: none; }
.frontier .grid { stroke: var(--hair); stroke-width: 1; }
.frontier .tick, .frontier .axis-label, .frontier .dot-label { fill: var(--muted); font-size: 11px; font-family: inherit; }
.frontier .axis-label { fill: var(--fg); font-size: 12px; }
.frontier .dot-label { fill: var(--fg); paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }
.frontier .fr-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.frontier .fr-area { fill: var(--accent-soft); opacity: .55; stroke: none; }
.frontier .dot { fill: var(--muted); fill-opacity: .45; stroke: var(--card); stroke-width: 1.5; }
.frontier .dot.on { fill: var(--accent); fill-opacity: 1; stroke: var(--card); stroke-width: 2; }
.frontier a { cursor: pointer; }
.frontier a:hover .dot, .frontier a:focus .dot { stroke: var(--fg); stroke-width: 2.5; fill-opacity: 1; }
.legend-line { display: inline-block; width: 1.6rem; height: 0; border-top: 3px solid var(--accent); vertical-align: middle; margin-right: .4rem; }
.legend-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); opacity: .55; margin: 0 .35rem 0 .9rem; }

/* Category leader cards. */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; margin: .5rem 0 1rem; padding: 0; list-style: none; max-width: none; }
.leader-grid li { margin: 0; }
.leader { display: flex; flex-direction: column; height: 100%; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.leader .cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.leader .cat:hover { color: var(--accent); }
.leader .who { margin: .3rem 0 .1rem; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; line-height: 1.25; }
.leader .score { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.leader .score small { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.leader .meta { margin-top: auto; padding-top: .4rem; font-size: .8rem; color: var(--muted); }
.leader.none .who { color: var(--muted); font-weight: 600; }

/* Machine presets. */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .75rem; margin: .5rem 0 1rem; padding: 0; list-style: none; max-width: none; }
.preset-grid li { margin: 0; }
.preset { display: flex; flex-direction: column; height: 100%; padding: .75rem .95rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); }
.preset:hover { border-color: var(--accent); }
.preset .gb { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.preset .gb small { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.preset .device { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.preset .pick { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.preset .pick-score { font-size: .85rem; color: var(--accent); font-weight: 700; }
.preset .pick-score.muted { color: var(--muted); font-weight: 400; }

/* Model page: summary card, chips, category bars, folded sections. */
.model-summary { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 1rem 1.5rem; margin: 1rem 0; padding: 1.1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.model-summary .big { font-size: 3.4rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.model-summary .big small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.model-summary .sub-line { margin: .3rem 0 0; color: var(--muted); font-size: .88rem; max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; padding: 0; list-style: none; max-width: none; }
.chips li { margin: 0; }
.chip { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--fg); font-variant-numeric: tabular-nums; }
.chip.accent { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.model-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .6rem; margin: 0; padding: 0; align-content: start; }
.model-facts div { padding: .5rem .7rem; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-sm); }
.model-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.model-facts dd { margin: 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
svg.catbars { display: block; width: 100%; min-width: 480px; height: auto; }
.catbars .lbl, .catbars .val { fill: var(--fg); font-size: 12px; font-family: inherit; }
.catbars .val { fill: var(--muted); font-variant-numeric: tabular-nums; }
.catbars .track { fill: var(--surface); }
.catbars .bar { fill: var(--accent); }
.catbars .bar.sep { fill: var(--muted); fill-opacity: .6; }
.catbars .bar.partial { fill: var(--muted); fill-opacity: .3; }
.catbars a:hover .lbl, .catbars a:focus .lbl { text-decoration: underline; }
details.fold { margin: 1rem 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
details.fold > summary { cursor: pointer; padding: .8rem 1.1rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; list-style-position: inside; }
details.fold > summary .count { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .5rem; }
details.fold[open] > summary { border-bottom: 1px solid var(--border); }
details.fold > .fold-body { padding: .2rem 1.1rem 1rem; }
details.fold > .fold-body > section > h2:first-child { margin-top: 1rem; }
.fold-body h2 { font-size: 1.1rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .stat .num { font-size: 1.6rem; }
  .model-summary { grid-template-columns: 1fr; }
  .model-summary .big { font-size: 2.8rem; }
  .panel { padding: .8rem; }
}
@media (prefers-color-scheme: dark) {
  .frontier .fr-area { opacity: .35; }
}

/* --- W3 explorer / judges / trust --- */
.explore-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin: 1rem 0 .5rem; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.explore-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.explore-form select { min-width: 8rem; max-width: 100%; padding: .35rem .5rem; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.explore-form .apply { padding: .4rem 1rem; font: inherit; font-weight: 700; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); cursor: pointer; }
.explore-form .apply[hidden] { display: none; }
.explore-count { margin: .25rem 0 .5rem; color: var(--muted); font-size: .9rem; }
.badge-use-yes { background: var(--ok-bg); color: var(--ok-fg); }
.badge-use-cond { background: var(--mid-bg); color: var(--mid-fg); }
.badge-use-no { background: var(--bad-bg); color: var(--bad-fg); }
.badge-use-unknown { background: var(--na-bg); color: var(--na-fg); }
table.heat, table.wall { border-collapse: separate; border-spacing: 0; font-size: .85rem; font-variant-numeric: tabular-nums; }
table.heat th, table.heat td, table.wall th, table.wall td { padding: .35rem .55rem; border-bottom: 1px solid var(--hair); text-align: center; vertical-align: middle; }
table.heat thead th, table.wall thead th { background: var(--head); color: var(--muted); font-size: .78rem; font-weight: 600; }
table.heat th.model { position: sticky; left: 0; z-index: 2; background: var(--card); text-align: left; white-space: nowrap; font-weight: 600; }
table.heat td.heat-high { background: var(--ok-bg); color: var(--ok-fg); }
table.heat td.heat-medium { background: var(--mid-bg); color: var(--mid-fg); }
table.heat td.heat-low { background: var(--bad-bg); color: var(--bad-fg); }
table.heat td.heat-na { background: var(--na-bg); color: var(--na-fg); }
table.wall td { min-width: 1.6rem; padding: .3rem .25rem; }
table.wall td.pass { background: var(--ok-bg); color: var(--ok-fg); }
table.wall td.fail { background: var(--bad-bg); color: var(--bad-fg); }
table.wall td.none { background: var(--na-bg); color: var(--na-fg); }
table.wall th.item { writing-mode: vertical-rl; max-height: 7rem; white-space: nowrap; text-align: left; font-weight: 600; }
table.wall tr.fell th, table.wall tr.fell td { border-top: 2px solid var(--border); font-weight: 700; background: var(--surface); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .75rem 0; }
.pair > * { min-width: 0; padding: .7rem .9rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow-wrap: anywhere; }
.pair .who { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pair .score { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .85rem; margin: 1rem 0; }
.hub-card { display: block; padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.hub-card:hover { border-color: var(--accent); }
.hub-card h2, .hub-card h3 { margin: 0 0 .3rem; padding: 0; border: 0; font-size: 1.1rem; color: var(--link); }
.hub-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.toc { margin: 1rem 0; padding: .8rem 1.1rem .8rem 2.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); columns: 2 18rem; column-gap: 2rem; }
.toc li { margin: .2rem 0; break-inside: avoid; }
.more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
}
