:root {
  color-scheme: light;
  --page: #faf9f6;
  --panel: #fff;
  --panel-soft: #f4f3ef;
  --line: #e6e4de;
  --line-strong: #d3d0c7;
  --ink: #252622;
  --ink-2: #64665e;
  --ink-3: #797b73;
  --brand: #bd4b28;
  --brand-soft: #fbefe7;
  --accent-ink: #fff;
  --heat: #315b51;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #191b19;
  --panel: #20231f;
  --panel-soft: #292d28;
  --line: #353b33;
  --line-strong: #50584d;
  --ink: #f1f0e9;
  --ink-2: #b7bdb1;
  --ink-3: #a0aa99;
  --brand: #f5a076;
  --brand-soft: #352a23;
  --heat: #6b9d83;
  --accent-ink: #0d2519;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--page); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
button { transition: background .15s ease, color .15s ease; }
.skip-link { position: fixed; top: -80px; left: 230px; z-index: 100; padding: 12px; background: var(--panel); }
.skip-link:focus { top: 10px; }
.app-shell { margin-left: 212px; }
.topbar { position: fixed; inset: 0 auto 0 0; width: 212px; padding: 35px 18px 24px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; line-height: 1.1; font-weight: 750; letter-spacing: -1.2px; }
.brand-dim { font-weight: 400; }
.brand small { display: block; margin-top: 9px; font-size: 7px; font-weight: 600; letter-spacing: 1.1px; color: var(--ink-3); }
.brand-mark { width: 28px; height: 35px; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; }
.nav-label { margin: 52px 12px 12px; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; color: var(--ink-3); }
.main-tabs { display: flex; flex-direction: column; gap: 6px; }
.nav-tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 7px; color: var(--ink-2); text-align: left; background: transparent; font-size: 13px; }
.nav-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-tab:hover { background: var(--panel-soft); }
.nav-tab.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.repo-link { display: flex; justify-content: space-between; margin: auto 12px 22px; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.repo-link:hover { color: var(--brand); }
.top-actions { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; gap: 6px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); }
.language-switch button { min-width: 32px; height: 27px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font-size: 11px; }
.language-switch button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px #0001; }
.icon-button { width: 32px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink-2); }
.icon-button:hover { background: var(--panel-soft); border-color: var(--line); }
.icon-button svg, .search-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main, footer { max-width: 1380px; margin: 0 auto; padding-inline: clamp(24px, 3.5vw, 56px); }
.page-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 70px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: 1.2px; color: var(--ink-3); }
.page-meta > span > span { margin: 0 12px; color: var(--line-strong); }
.updated-block { display: flex; gap: 8px; letter-spacing: 0; font-size: 11px; }
.updated-block time { color: var(--ink-2); }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 24px; }
.eyebrow { margin: 0 0 9px; color: var(--brand); font-size: 10px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 2.8vw, 39px); line-height: 1.22; font-weight: 650; letter-spacing: -1.4px; }
.intro-copy { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; }
.data-link { display: flex; align-items: center; gap: 22px; flex-shrink: 0; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); text-decoration: none; font-size: 12px; }
.data-link:hover { border-color: var(--brand); color: var(--brand); }
.summary-grid { display: grid; grid-template-columns: .85fr .85fr 1fr 1.4fr; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.summary-card { display: grid; gap: 5px; min-width: 0; padding: 17px 22px; border-right: 1px solid var(--line); }
.summary-card:last-child { border: 0; }
.summary-label { font-size: 11px; color: var(--ink-2); }
.summary-card strong { font-size: 27px; font-weight: 550; letter-spacing: -1px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.summary-card strong.date-range { font-size: 14px; letter-spacing: -.3px; align-self: center; overflow-wrap: anywhere; }
.summary-note { font-size: 10px; color: var(--ink-3); }
.is-hidden { display: none !important; }
.control-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.segmented { display: flex; padding: 3px; gap: 2px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 7px; }
.segmented button { padding: 6px 10px; min-height: 31px; border: 0; border-radius: 4px; background: transparent; font-size: 12px; color: var(--ink-2); }
.segmented button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px #0001; font-weight: 600; }
.metric-tabs { display: flex; gap: 3px; }
.metric-tabs button { border: 1px solid transparent; border-radius: 5px; padding: 7px 9px; font-size: 11px; background: transparent; color: var(--ink-2); white-space: nowrap; }
.metric-tabs button.is-active { border-color: var(--line-strong); color: var(--ink); background: var(--panel); }
.metric-tabs button:hover { background: var(--panel-soft); }
.search-field { display: flex; align-items: center; gap: 8px; margin-left: auto; width: 175px; height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink-3); }
.search-field:focus-within { border-color: var(--brand); }
.search-field svg { flex: 0 0 auto; width: 14px; height: 14px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: var(--ink-3); }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.25px; }
.panel-kicker { margin: 0 0 4px; font-size: 9px; letter-spacing: 1.5px; color: var(--ink-3); }
.table-status-wrap { text-align: right; }
.table-status { display: block; font-size: 11px; color: var(--ink-2); }
.timing-note { display: block; margin-top: 3px; max-width: 300px; color: var(--ink-3); font-size: 10px; }
.table-scroll, .matrix-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board-table { min-width: 890px; }
th { padding: 11px 12px; background: var(--panel-soft); border-bottom: 1px solid var(--line); text-align: right; color: var(--ink-2); font-size: 10px; font-weight: 550; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; color: var(--ink-2); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.board-table tbody tr:hover td { background: var(--panel-soft); }
.rank-cell { width: 48px; text-align: center; color: var(--ink-3); }
.method-cell { min-width: 212px; text-align: left; }
.method-identity { display: flex; align-items: center; gap: 10px; }
.model-mark { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--model-color) 22%, var(--line)); border-radius: 7px; background: color-mix(in srgb, var(--model-color) 7%, var(--panel)); color: var(--model-color); font-size: 10px; font-weight: 750; letter-spacing: -.5px; }
.method-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.method-id { display: block; color: var(--ink-3); margin-top: 1px; font-size: 9px; }
.rank-badge { font-family: var(--mono); font-size: 11px; }
.rank-1 { color: var(--brand); }
.board-table tbody tr:first-child { background: color-mix(in srgb, var(--brand) 3%, var(--panel)); }
.active-score { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--heat) 5%, var(--panel)); }
.metric-sort { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.metric-sort:hover, .metric-sort.is-active { color: var(--brand); }
.metric-sort.is-active::after { content: " " attr(data-arrow); }
.input-chips { display: flex; justify-content: flex-end; gap: 4px; }
.input-chip { border-radius: 3px; padding: 2px 4px; color: var(--ink-3); font-size: 9px; background: var(--panel-soft); }
.input-chip.on { background: color-mix(in srgb, var(--heat) 9%, var(--panel)); color: var(--heat); }
.timing-cell { color: var(--ink); white-space: nowrap; font-family: var(--mono); font-size: 11px; }
.empty-row, .loading-state { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.analysis-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.analysis-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }
.analysis-heading > span { font-size: 11px; color: var(--ink-3); }
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.direction-note { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 10px; }
.direction-arrow { color: var(--heat); font-size: 15px; }
.bar-chart { padding: 20px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(105px, 1.4fr) minmax(40px, 1.6fr) 44px; align-items: center; gap: 10px; }
.bar-label { font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.bar-rank { display: inline-block; width: 22px; color: var(--ink-3); font-family: var(--mono); font-size: 9px; }
.bar-track { height: 8px; background: var(--panel-soft); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--model-color); border-radius: 2px; }
.bar-value { text-align: right; font: 10px var(--mono); }
.bar-scale { display: flex; justify-content: space-between; margin: 0 20px 16px; padding-left: 46%; font: 9px var(--mono); color: var(--ink-3); }
.plot-tag { border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--ink-2); font-size: 9px; }
.runtime-chart { padding: 14px 16px 0; }
.runtime-chart svg { display: block; width: 100%; height: auto; }
.plot-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.plot-label { fill: var(--ink-3); font: 10px var(--sans); }
.plot-name { fill: var(--ink); font: 9px var(--sans); }
.scatter-point { cursor: help; }
.scatter-point circle { stroke: var(--panel); stroke-width: 2; }
.scatter-point:hover circle, .scatter-point:focus circle { stroke: var(--ink); }
.chart-footnote { margin: 6px 20px 17px; color: var(--ink-3); font-size: 10px; line-height: 1.65; }
.metric-guide { margin: 16px 0 24px; border-bottom: 1px solid var(--line); padding-bottom: 13px; color: var(--ink-2); font-size: 12px; }
.metric-guide summary { cursor: pointer; }
#metric-name { margin-left: 12px; color: var(--ink-3); font-size: 11px; }
.metric-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 12px 0; }
.metric-explainer p { margin: 0; font-size: 12px; }
.metric-explainer dl { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.metric-explainer dt { font-size: 10px; color: var(--ink-3); }
.metric-explainer dd { margin: 4px 0 0; font-size: 11px; color: var(--ink); }
.method-feature { display: flex; align-items: flex-start; gap: 18px; padding: 24px; margin: 0 0 26px; background: var(--panel-soft); }
.method-feature-mark { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 18px; font-weight: 600; color: var(--brand); background: var(--panel); }
.method-feature-copy { flex: 1; }
.method-feature-copy h2 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.method-feature-copy p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.method-feature-copy .panel-kicker { font-size: 9px; margin-bottom: 5px; }
.method-feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.method-feature-tags span { padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-2); font-size: 10px; white-space: nowrap; }
.matrix-legend { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-3); }
.matrix-legend i { width: 14px; height: 9px; border-radius: 2px; background: var(--heat); }
.matrix-legend i:nth-of-type(1) { opacity: .15; }.matrix-legend i:nth-of-type(2) { opacity: .35; }.matrix-legend i:nth-of-type(3) { opacity: .6; }
.matrix-scroll { max-height: 720px; }
.matrix-table { min-width: 1050px; }
.matrix-table thead th { position: sticky; top: 0; z-index: 3; height: 65px; vertical-align: bottom; text-align: center; }
.matrix-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 166px; text-align: left; background: var(--panel); }
.matrix-table thead th:first-child { z-index: 4; background: var(--panel-soft); }
.matrix-method { display: block; width: 85px; white-space: normal; font-size: 10px; font-weight: 600; }
.target-name { display: block; font: 11px var(--mono); color: var(--ink); }
.target-meta { display: block; margin-top: 3px; font-size: 9px; color: var(--ink-3); }
.matrix-cell { height: 43px; padding: 4px; text-align: center; }
.matrix-cell button { display: block; width: 100%; height: 34px; border: 0; border-radius: 3px; background: color-mix(in srgb, var(--heat) calc(var(--heat-value) * 100%), var(--panel)); color: var(--heat-text, var(--ink)); font: 10px var(--mono); }
.matrix-cell button:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.matrix-cell.na { color: var(--ink-3); }
.protocol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.protocol-lead { grid-column: 1 / -1; }
.protocol-card { padding: 25px; }
.protocol-card h2 { margin: 8px 0 10px; font-size: 24px; font-weight: 550; }
.protocol-card h3 { margin: 20px 0 12px; font-size: 15px; font-weight: 600; }
.protocol-card p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.protocol-index { color: var(--brand); font: 12px var(--mono); }
.protocol-stamp { margin-top: 18px; display: flex; gap: 10px; font: 9px var(--mono); color: var(--ink-3); }
.definition-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.definition-item { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.definition-item:nth-child(odd) { border-right: 1px solid var(--line); }
.definition-item:nth-last-child(-n+2) { border-bottom: 0; }
.definition-item h3 { margin: 0 0 9px; font-size: 13px; }
.definition-item p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.8; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px 35px; margin-top: 24px; color: var(--ink-3); font-size: 10px; }
footer a { text-decoration: none; font-weight: 600; }
dialog { width: min(580px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--panel); box-shadow: 0 20px 70px #0003; }
dialog::backdrop { background: #151a1666; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); font-size: 20px; }
.dialog-body { padding: 28px; }
.dialog-body .eyebrow { padding-right: 30px; }
.dialog-body h2 { margin: 0; font-size: 21px; padding-right: 18px; overflow-wrap: anywhere; }
.dialog-sub { margin: 8px 0 22px; color: var(--ink-3); font-size: 11px; }
.dialog-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-metric { border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.dialog-metric span { display: block; color: var(--ink-2); font-size: 11px; }
.dialog-metric strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 550; }
.fatal-error { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(450px, 90vw); padding: 18px; z-index: 40; border: 1px solid var(--brand); border-radius: 8px; background: var(--panel); }
.fatal-error p { font-size: 12px; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1700px) { .app-shell { margin-inline: 212px 0; } }
@media (max-width: 1150px) {
  .topbar { width: 180px; padding-inline: 12px; }.app-shell { margin-left: 180px; }.brand { font-size: 21px; }
  main, footer { padding-inline: 24px; }.search-field { width: 150px; }
  .control-row { gap: 8px; }.metric-tabs button { padding-inline: 7px; }
  .method-feature-tags { display: none; }
}
@media (max-width: 900px) {
  .app-shell { margin: 0; }.topbar { position: relative; width: auto; height: auto; padding: 16px 22px 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand small, .nav-label, .repo-link { display: none; }.brand { font-size: 22px; }.brand-mark { height: 27px; }
  .main-tabs { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 20px; }
  .nav-tab { width: auto; border-radius: 0; padding: 9px 0 13px; border-bottom: 2px solid transparent; font-size: 12px; }
  .nav-tab.is-active { background: transparent; border-bottom-color: var(--brand); }.nav-tab svg { width: 16px; }
  .top-actions { border: 0; padding: 0; grid-column: 2; grid-row: 1; }
  .page-meta { min-height: 48px; }.leader-grid { gap: 12px; }.bar-chart { padding: 18px 14px; }
  .protocol-grid { grid-template-columns: 1fr; }.protocol-lead { grid-column: auto; }
  .skip-link { left: 10px; }
}
@media (max-width: 650px) {
  main, footer { padding-inline: 16px; }.topbar { padding-inline: 16px; }.download-link { display: none; }
  .main-tabs { gap: 20px; }.nav-tab { min-height: 44px; }.nav-tab svg { display: none; }
  .page-meta > span { display: none; }.page-meta { justify-content: flex-end; min-height: 40px; }.updated-block { font-size: 10px; }
  .page-intro { padding: 22px 0; gap: 14px; align-items: flex-start; }h1 { font-size: 27px; letter-spacing: -.9px; }.eyebrow { font-size: 9px; }.intro-copy { font-size: 12px; }
  .data-link { display: none; }.summary-grid { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
  .summary-card { padding: 13px 16px; }.summary-card:nth-child(2) { border-right: 0; }.summary-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-card strong { font-size: 24px; }.summary-card strong.date-range { font-size: 12px; }
  .control-row { gap: 10px; }.segmented { order: 0; }.segmented button { min-height: 36px; }
  .search-field { order: 1; width: 140px; height: 43px; margin-left: auto; }.search-field input { font-size: 16px; }
  .metric-tabs { order: 2; width: 100%; gap: 6px; overflow: auto; }.metric-tabs button { min-height: 40px; flex: 1; padding: 5px 8px; }
  .panel-heading { padding: 14px; }.panel-heading h2 { font-size: 14px; }.table-status { font-size: 10px; }.timing-note { max-width: 155px; font-size: 9px; }
  .board-table .method-cell { position: sticky; left: 0; z-index: 2; background: var(--panel); min-width: 182px; }
  .board-table thead .method-cell { background: var(--panel-soft); }.analysis-heading > span { font-size: 10px; }
  .leader-grid { grid-template-columns: 1fr; }.bar-row { grid-template-columns: minmax(120px, 1.4fr) minmax(70px, 1.6fr) 48px; }.bar-label { font-size: 11px; }.bar-chart { gap: 14px; padding: 20px 16px; }
  .metric-explainer { grid-template-columns: 1fr; }.method-feature { gap: 12px; padding: 18px; }.method-feature-mark { width: 32px; height: 32px; font-size: 14px; }.method-feature-copy h2 { font-size: 16px; }
  .definition-list { grid-template-columns: 1fr; }.definition-item:nth-child(odd) { border-right: 0; }.definition-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 360px) {
  .search-field { width: 100%; }.segmented { width: 100%; }.segmented button { flex: 1; }.main-tabs { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
