/* Inter Tight 3.004 (SIL OFL 1.1, fonts/OFL.txt), self-hosted: the latin and latin-ext subsets of the variable font
   as Google Fonts serves them, so no page asks a third party for anything. Inter Tight has no Hangul: Korean text
   falls through to the system's Korean fonts after it in --bt-font-ui. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/InterTight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/InterTight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* BenchToward brand guide (owner, 2026-10-31; docs/brand/README.md). Ink and Paper are the text colours, the
     accent #0B84C2 is the same in both themes (rule 1) and is never used for small text (rule 2). */
  --bt-accent: #0B84C2; --bt-ink: #111417; --bt-bg: #F7F7F5;
  --bt-font-ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --fg: var(--bt-ink); --bg: var(--bt-bg); --accent: var(--bt-accent);
  --muted: #5F6672; --line: #E3E3DF; --soft: #F0F0ED;   /* neutrals on the warm light background; muted 5.39:1 */
  --bar-lead: var(--bt-accent); --bar-rest: #c5cbd5;   /* leaderboard bars: rank 1 the accent (owner, 2026-10-31), the rest gray */
  --bar-lead-ci: var(--bt-ink);                 /* rank 1's 95% CI mark: Ink or Paper, 3:1 or more on the bar and on the track */
  /* agent identities (design C, owner 2026-10-29): model evaluator violet, benchmark builder green.
     An agent's color marks only its own work, never rankings, links or selected filters. */
  --evaluator: #8250df; --evaluator-ink: #6639ba; --evaluator-soft: #f9f6ff; --evaluator-line: #d9c8f8;
  --builder: #16a34a; --builder-ink: #15803d; --builder-soft: #f0fdf4; --builder-line: #a6e4bd;
  --preview-ink: #a15c00;
  color-scheme: light dark;
  font-family: var(--bt-font-ui);
}
@media (prefers-color-scheme: dark) {
  :root { --bt-ink: #F2F2EF; --bt-bg: #0E1114;
          --muted: #98a2b3; --line: #2c3340; --soft: #1a2029;
          --bar-rest: #4a5363;
          --evaluator: #b392f0; --evaluator-ink: #c4abf5; --evaluator-soft: #211b33; --evaluator-line: #4a3a75;
          --builder: #4ade80; --builder-ink: #4ade80; --builder-soft: #13241a; --builder-line: #24583a;
          --preview-ink: #f0b45a; }
}
body { margin: 0; color: var(--fg); background: var(--bg); line-height: 1.55; font-weight: 500; }
h1, h2, h3, b, strong { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }
/* Rule 2: links are Ink or Paper, told apart by an underline; the accent marks the underline on hover only. */
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px;
    text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
header.site, footer.site, main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
/* The logo is 26 px high (guide: 24-28 px). Clear space of half the mark's height (about 11 px): the file keeps
   2.4 px around the drawing, the header's padding and the 10 px row gap (the nav wraps under it on phones) add
   the rest. */
header.site { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
header.site .brand { display: block; line-height: 0; text-decoration: none; }
header.site .brand img { display: block; height: 26px; width: auto; }
header.site nav a { margin-left: 18px; color: var(--fg); font-weight: 500; text-decoration: none; }
header.site nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
footer.site { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 0.9rem; }
h1 { font-size: 1.7rem; margin: 28px 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.intro p { max-width: 760px; }
.stats { display: flex; gap: 28px; margin: 20px 0; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px 8px; margin: 22px 0; }
.badge { display: inline-block; font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); vertical-align: middle; }
.badge.preview { color: #a15c00; border-color: #f0c27a; }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 8px 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.kv { width: auto; min-width: 420px; }
pre { background: var(--soft); padding: 12px; overflow-x: auto; font-size: 0.85rem; }
.citation { font-size: 0.9rem; color: var(--muted); }
.filter { margin: 12px 0; }

.goal { font-size: 2rem; margin: 4px 0 8px; }
.bar { height: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; max-width: 640px; }
.bar > div { height: 100%; background: var(--accent); }
.hours { display: flex; gap: 4px; align-items: flex-end; height: 120px; margin: 8px 0 24px; }
.hour { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hour > div { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.hour > span { font-size: 0.7rem; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
h3 { font-size: 1rem; margin: 18px 0 6px; }

.ci { color: var(--muted); font-size: 0.85em; }
.scroll { overflow-x: auto; }
code { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  header.site, footer.site, main { padding-left: 14px; padding-right: 14px; }
  header.site nav a { margin-left: 0; margin-right: 14px; }
  h1 { font-size: 1.35rem; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .card { padding: 2px 12px 6px; }
  table.leaderboard thead { display: none; }
  table.leaderboard, table.leaderboard tbody { display: block; }
  table.leaderboard tr { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    grid-template-areas: "rank model metric" "rank meta metric"; column-gap: 8px; padding: 8px 0;
    border-bottom: 1px solid var(--line); }
  table.leaderboard td { display: block; border: 0; padding: 0; }
  table.leaderboard td.rank { grid-area: rank; color: var(--muted); }
  table.leaderboard td.model { grid-area: model; min-width: 0; }
  table.leaderboard td.metric { grid-area: metric; text-align: right; }
  table.leaderboard td.metric .ci { display: block; }
  table.leaderboard td.tier { grid-area: meta; }
  table.leaderboard td.type, table.leaderboard td.n, table.leaderboard td.cost, table.leaderboard td.date { display: none; }
  .slug { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.kv { min-width: 0; width: 100%; }
  table.kv th { overflow-wrap: anywhere; }
}

/* Home: hero, agent box, modality sections, task cards */
.hero { padding: 8px 0 4px; }
.hero p { max-width: 760px; }
.statline { color: var(--muted); }
.agentbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 14px 0 6px; }
.agentbox code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.agentbox button { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.modality h2 { margin-top: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; color: var(--fg); min-width: 0; text-decoration: none; }
a.tcard:hover { text-decoration: none; border-color: var(--accent); }
.tcard.coming { opacity: 0.7; border-style: dashed; }
.tc-title { font-weight: 600; }
.tcard p { margin: 4px 0; }
.top3 { list-style: none; padding: 0; margin: 10px 0 4px; }
.top3 li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 80px 3.2rem; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.9rem; }
.top3 .rk { color: var(--muted); }
.top3 .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top3 .val { text-align: right; font-variant-numeric: tabular-nums; }
.sbar { position: relative; display: block; height: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar-rest); }
.sbar.lead .fill { background: var(--bar-lead); }
.sbar.lead .whisker { background: var(--bar-lead-ci); opacity: 1; }
.sbar .whisker { position: absolute; top: 2px; bottom: 2px; background: var(--fg); opacity: 0.55; border-radius: 2px; }
.refline { border-top: 1px dashed var(--line); padding-top: 4px; }
.tc-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.recent { padding-left: 18px; }
.recent li { margin: 4px 0; }

/* Task page: breadcrumb, actions, table bars */
.crumbs { margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0 8px; }
.btn { border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; background: var(--soft); color: var(--fg); font-size: 0.9rem; text-decoration: none; }
a.btn:hover { text-decoration: none; border-color: var(--accent); }
.agentbox.inline { margin: 0; padding: 5px 10px; font-size: 0.85rem; }
.agentbox.inline code { font-size: 0.8rem; }
table.leaderboard td.scorecol { width: 140px; vertical-align: middle; }
table.leaderboard td.rank, table.leaderboard td.date { white-space: nowrap; }
table.leaderboard tr.refrow td { color: var(--muted); border-top: 1px dashed var(--line); }
@media (max-width: 640px) {
  table.leaderboard td.scorecol, table.leaderboard th.scorecol { display: none; }
  .agentbox.inline code { overflow-wrap: anywhere; }
}

/* Paper agent: live ticker, /live, /papers, paper pages */
:root { --live: #16a34a; --live-soft: #f0fdf4; }
@media (prefers-color-scheme: dark) { :root { --live: #4ade80; --live-soft: #13241a; } }
.livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: 0.6; margin-right: 6px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .livedot.on { animation: none; } }
.ticker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 14px 0 6px; color: var(--fg); text-decoration: none; }
.ticker.working { border-color: var(--live); background: var(--live-soft); }
.ticker:hover { text-decoration: none; border-color: var(--accent); }
.tk-live { font-weight: 600; color: var(--builder-ink); white-space: nowrap; }
.tk-text { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.tk-go { margin-left: auto; color: var(--fg); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 0.18em; }
.ticker:hover .tk-go { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.agentline { margin: 6px 0 0; overflow-wrap: anywhere; }
.agentline code { font-size: 0.85em; }
.linkbtn { background: none; border: none; padding: 0; color: var(--fg); cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 0.18em; }
.linkbtn:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nowcard { padding: 14px 20px 16px; }
.now-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--builder-ink); }
.now-title { margin: 4px 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.stagebar { display: flex; gap: 4px; margin: 12px 0 6px; }
.stagebar .seg { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.stagebar .seg.done { background: var(--live); }
.stagebar .seg.current { background: var(--live); opacity: 0.45; }
.stagenames { overflow-wrap: anywhere; }
.livelog { background: #0f172a; color: #cbd5e1; border-radius: 8px; padding: 10px 12px; font-size: 0.8rem; min-height: 4.5em; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 3px 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--fg); text-decoration: none; }
.chip.on { border-color: var(--live); color: var(--builder-ink); }
table.papers td.model { overflow-wrap: break-word; }
@media (max-width: 760px) {
  /* one card per paper: a three-column table squeezed titles to a few characters on phones */
  table.papers thead { display: none; }
  table.papers, table.papers tbody, table.papers tr, table.papers td { display: block; width: auto; }
  table.papers tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.papers td { padding: 2px 0; border: none; text-align: left; }
  table.papers td.model > a { display: block; font-weight: 600; }
}
.paper-title { overflow-wrap: anywhere; }
.section-block { margin: 18px 0; }
h2.label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 4px; }
.card.validated { border-color: var(--live); background: var(--live-soft); padding: 10px 20px; }
.cta { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
pre.code { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 0.85rem; }

/* admin tools */
.adminnav { margin: 4px 0 16px; }
.filters input { padding: 4px 6px; margin-right: 6px; }
textarea.sqlbox { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; padding: 8px; box-sizing: border-box; }
/* since-launch daily bars: fixed maximum width so a short history stays readable */
.hours.days .hour { flex: 1 1 0; max-width: 28px; overflow: visible; }
.hours.days .hour > span { white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* stat tiles: values sit on one baseline even when a label wraps */
.stats > div { display: flex; flex-direction: column; }
.stats dt { flex: 1 0 auto; }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; color: var(--fg); font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 0.18em; }
/* task page: how this benchmark is built */
.provenance dl { display: grid; grid-template-columns: 9rem 1fr; gap: 8px 16px; margin: 8px 0 0; }
.provenance dt { color: var(--muted); }
.provenance dd { margin: 0; }
.provenance details ul { margin: 6px 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
@media (max-width: 640px) { .provenance dl { grid-template-columns: 1fr; gap: 2px; } .provenance dd { margin-bottom: 8px; } }
/* benchmark builds (bench agent) on /live and /benchmarks */
.builds.empty { display: none; }
.builds-title { margin: 6px 0 4px; }
.build { padding: 14px 0; border-top: 1px solid var(--line); }
.build-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.build p { margin: 2px 0 0; }
.build .build-bar { max-width: none; margin: 6px 0 2px; }
.build .build-bar > div { background: var(--live); }
.badge.building { border-color: var(--live); color: var(--builder-ink); }
.badge.building .livedot { margin-right: 4px; }
table.benchmarks .badge { white-space: nowrap; }

/* ---------- agent identity (design C) ---------- */
:root { --idle: var(--muted); }
.ag-evaluator { --ag: var(--evaluator); --ag-ink: var(--evaluator-ink); --ag-soft: var(--evaluator-soft); --ag-line: var(--evaluator-line); }
.ag-builder { --ag: var(--builder); --ag-ink: var(--builder-ink); --ag-soft: var(--builder-soft); --ag-line: var(--builder-line); }
.livedot { background: var(--idle); opacity: 1; }
.livedot.on { background: var(--ag, var(--builder)); box-shadow: 0 0 0 3px var(--ag-line, var(--builder-line)); animation: agpulse 1.6s ease-in-out infinite; }
@keyframes agpulse { 0%, 100% { box-shadow: 0 0 0 2px var(--ag-line, var(--builder-line)); opacity: 1; } 50% { box-shadow: 0 0 0 6px transparent; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .livedot.on { animation: none; } }
.badge.preview { color: var(--preview-ink); }

/* /live panels: dot + STATE + agent name, identical for both agents */
.lane { padding: 14px 20px 10px; }
.lane.on { border-color: var(--ag-line); }
.lane-head { display: flex; align-items: center; flex-wrap: wrap; margin: 0; font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.lane-head .livedot { margin-right: 8px; }
.lane-head .state { font-weight: 600; }
.lane-head .sep { margin: 0 6px; }
.lane-head .more { margin-left: auto; letter-spacing: 0; font-size: .85rem; font-weight: 500; }
.lane.on .lane-head .state, .lane.on .lane-head .sep, .lane.on .lane-head .who { color: var(--ag-ink); }
.lane-sum { margin: 6px 0 8px; }
.item { padding: 12px 0; border-top: 1px solid var(--line); }
.item-head { display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.item p { margin: 2px 0 0; }
.item .stagebar { margin: 10px 0 4px; }
.lane .stagebar .seg.done { background: var(--ag); }
.lane .stagebar .seg.current { background: var(--ag); opacity: .45; }
.lane .item.review .stagebar .seg.current { background: transparent; opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ag); }
.lane .build-bar { max-width: none; margin: 6px 0 2px; }
.lane .build-bar > div { background: var(--ag); }
.lane .livelog { margin: 10px 0 0; }
.item.queued .stagebar .seg { background: transparent; box-shadow: inset 0 0 0 1px var(--bar-rest); }
.item.more { padding: 8px 0 4px; font-size: .85rem; }

/* status chips: benchmarks in builder colors, models in evaluator colors */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; line-height: 1.5; padding: 1px 8px; border-radius: 999px;
      border: 1px solid var(--ag-line, var(--builder-line)); color: var(--ag-ink, var(--builder-ink)); background: var(--bg); white-space: nowrap; vertical-align: middle; }
.st.building, .st.evaluating { background: var(--ag-soft, var(--builder-soft)); }
.st.queued { border-color: var(--line); color: var(--muted); }
.st .livedot { width: 6px; height: 6px; margin: 0; box-shadow: none; }
.st .ring { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ag, var(--builder)); }
.st svg { width: 10px; height: 10px; }
.chip.on { border-color: var(--fg); color: var(--fg); font-weight: 600; }

/* home ticker: one line per working agent */
.ticker.working { border-color: var(--ag-line); background: var(--ag-soft); }
.ticker.working:hover { border-color: var(--ag); }
.ticker .tk-live { color: var(--ag-ink, var(--muted)); font-size: .8rem; letter-spacing: .04em; }
.ticker .tk-live .who { font-weight: 500; }
.ticker + .ticker { margin-top: 8px; }

/* nav: the Live dot takes the working agent's color; two dots when both work */
.navdots { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.navdots .livedot { margin: 0; }
.navdots .livedot + .livedot { margin-left: -2px; }

/* progress inside a stage: the current segment fills to --pct (one bar, not two) */
.lane .stagebar .seg.current.partial { opacity: 1; background: linear-gradient(90deg, var(--ag) var(--pct), var(--ag-line) var(--pct)); }
/* the stage being worked on blinks, like the Live dot; still for reduced motion */
.lane .stagebar .seg.live { animation: segpulse 1.6s ease-in-out infinite; }
@keyframes segpulse { 0%, 100% { filter: none; opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .lane .stagebar .seg.live { animation: none; } }
/* admin: rendered SOP and runbook */
.prose { max-width: 860px; }
.prose h1 { font-size: 1.6rem; } .prose h2 { margin-top: 2rem; } .prose h3 { margin-top: 1.5rem; }
.prose table { border-collapse: collapse; margin: 10px 0; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose code { font-size: .85em; } .prose pre { overflow-x: auto; background: var(--soft); padding: 10px; border-radius: 6px; }
