/* Modelspike 2.0 Theme — Editorial Wire + Decision Tool Aesthetic */
:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --fg: #171e29;
  --muted: #5d6878;
  --border: #d9dee4;
  --border-strong: #171e29;
  --accent: #c22f28;
  --accent-ink: #a02520;
  --ok: #157347;
  --warn: #9a6700;
  --font-display: ui-serif, Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #12161d;
  --surface: #191f29;
  --fg: #e9edf2;
  --muted: #949eae;
  --border: #2a323d;
  --border-strong: #e9edf2;
  --accent: #ff6a5c;
  --accent-ink: #ff6a5c;
  --ok: #3fb950;
  --warn: #d29922;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.right { margin-left: auto; }
.masthead { background: var(--surface); border-bottom: 3px solid var(--border-strong); }
.masthead-in { display: flex; align-items: center; gap: 16px; padding: 14px 0 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg, .brand img { display: block; width: 20px; height: 20px; flex-shrink: 0; border-radius: 4px; }
.tagline { color: var(--muted); font-size: 13px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; overflow-x: auto; max-width: 100%; }
.nav a { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 10px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.theme-toggle { border: 1px solid var(--border); background: none; color: var(--muted); width: 34px; height: 34px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.theme-toggle:hover { color: var(--fg); border-color: var(--border-strong); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); cursor: pointer; }
.btn:hover { background: var(--fg); color: var(--surface); }
.btn.primary { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.pill { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--border-strong); color: var(--fg); }
.pill.closed { color: var(--muted); border-color: var(--border); }
.pill.open, .pill.verify-L2 { border-color: var(--ok); color: var(--ok); }
.pill.unknown, .pill.verify-L1 { border-color: var(--warn); color: var(--warn); }
.hero { padding: 36px 0 0; }
.date-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border-strong); padding-bottom: 10px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 40px; align-items: start; padding-top: 24px; }
.hero h1 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
.hero .sub { margin: 16px 0 0; max-width: 48ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero .sub b { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-box { background: var(--surface); border: 1px solid var(--border-strong); padding: 16px 18px 12px; }
.tool-box-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 6px; }
.tool-box-head .t { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.tool-box-head .u { font-family: var(--font-num); font-size: 12px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.05em; }
.tool-quick-list { list-style: none; margin: 0; padding: 0; }
.tool-quick-list li { border-bottom: 1px solid var(--border); }
.tool-quick-list li:last-child { border-bottom: 0; }
.tool-quick-list a { display: block; padding: 9px 2px; text-decoration: none; }
.tool-quick-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tool-quick-list strong { display: block; font-size: 14px; font-weight: 650; }
.tool-quick-list span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.statline { display: flex; flex-wrap: wrap; margin-top: 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statline > div { flex: 1 1 130px; padding: 14px 18px 12px; border-left: 1px solid var(--border); }
.statline > div:first-child { border-left: 0; padding-left: 2px; }
.statline strong { display: block; font-family: var(--font-num); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.statline span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.section { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--border-strong); padding-bottom: 9px; margin-bottom: 4px; }
.sec-head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.sec-head .note { color: var(--muted); font-size: 12.5px; }
.sec-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.sec-head .more:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.wire-row { display: grid; grid-template-columns: 82px 12px 1fr auto; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--border); text-decoration: none; align-items: start; }
.wire-row:hover { background: var(--surface); }
.wire-when { text-align: right; }
.wire-when .d { font-family: var(--font-num); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wire-when .m { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.flash { width: 9px; height: 9px; margin-top: 7px; background: var(--accent); }
.flash.dim { background: none; border: 1px solid var(--border); }
.wire-main { min-width: 0; }
.wire-main .name { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.wire-row:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.wire-main .change { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 64ch; }
.wire-specs { display: flex; flex-wrap: wrap; margin-top: 7px; font-family: var(--font-num); font-size: 12px; color: var(--muted); }
.wire-specs span { padding: 0 10px; border-left: 1px solid var(--border); }
.wire-specs span:first-child { padding-left: 0; border-left: 0; }
.wire-tail { text-align: right; white-space: nowrap; }
.score { display: inline-block; font-family: var(--font-num); font-size: 13.5px; font-weight: 600; }
.score small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.wire-tail .price { display: block; margin-top: 6px; font-family: var(--font-num); font-size: 12.5px; color: var(--muted); }
.wire.ghost .wire-row { border-bottom-style: dashed; }
.tag-stamp { display: inline-block; border: 2px solid var(--fg); padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wire-tail .tba { display: block; color: var(--muted); font-family: var(--font-num); font-size: 12px; margin-top: 6px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.filterbar label { color: var(--muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.filterbar select { font: inherit; font-size: 13px; border: 0; border-bottom: 1px solid var(--border-strong); background: none; color: var(--fg); padding: 3px 4px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.filter-count { margin-left: auto; color: var(--muted); font-size: 12.5px; font-family: var(--font-num); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.timeline, table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.timeline { min-width: 740px; }
table.timeline th, table.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px 8px; border-bottom: 2px solid var(--border-strong); white-space: nowrap; }
table.data-table tbody th { text-transform: none; letter-spacing: 0; color: var(--fg); font-size: 13.5px; border-bottom: 1px solid var(--border); white-space: normal; min-width: 150px; }
table.timeline td, table.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.timeline tbody tr:hover, table.data-table tbody tr:hover { background: var(--surface); }
.td-date, .td-num, .score-cell { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.td-name a { font-weight: 650; text-decoration: none; font-size: 14px; }
.td-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.self-col { font-weight: 650; color: var(--fg); background: var(--bg); }
.bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.bench-col { padding: 14px 0 8px; border-bottom: 1px solid var(--border); }
.bench-col h3 { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bench-row { display: grid; grid-template-columns: 18px 1fr 72px; gap: 6px 10px; align-items: baseline; margin: 10px 0 14px; }
.bench-row .rank { font-family: var(--font-num); font-size: 12px; color: var(--muted); text-align: right; }
.bench-row .who { font-size: 14px; font-weight: 600; text-decoration: none; }
.bench-row .who:hover { text-decoration: underline; text-underline-offset: 3px; }
.bench-row .val { font-family: var(--font-num); font-size: 13px; text-align: right; font-weight: 600; }
.bench-row .track { grid-column: 1 / 4; height: 4px; background: var(--border); position: relative; }
.bench-row .fill { position: absolute; inset: 0 auto 0 0; background: var(--fg); }
.bench-row .src { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.dirgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.dirgrid a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 8px; border-bottom: 1px solid var(--border); text-decoration: none; }
.dirgrid a:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 20px; }
.dirgrid a:nth-child(even) { padding-left: 20px; }
.dirgrid .t { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.dirgrid .d { grid-column: 1; color: var(--muted); font-size: 14px; }
.dirgrid .go { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); font-size: 18px; }
.dirgrid a:hover { background: var(--surface); }
.dirgrid a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb { margin-top: 22px; font-size: 13px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero { margin-top: 12px; padding-bottom: 20px; border-bottom: 2px solid var(--border-strong); }
.hero-topline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 10px; }
.page-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 14px 0 0; max-width: 72ch; font-size: 16.5px; color: var(--muted); line-height: 1.62; }
.factstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.fact-chip { display: inline-block; padding: 3px 10px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notice-bar { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 14px; }
.verify-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.meta-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.sub-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sub-nav a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 4px 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.sub-nav a:hover { color: var(--fg); border-color: var(--border-strong); }
.panel { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); padding: 22px 24px; }
.panel h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.sub-h { margin: 20px 0 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.body-p { margin: 10px 0; color: var(--fg); font-size: 15px; line-height: 1.65; max-width: 74ch; }
.bullet-list { margin: 8px 0 0; padding-left: 20px; }
.bullet-list li { margin: 7px 0; font-size: 15px; line-height: 1.58; }
.muted-list li { color: var(--muted); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.inline-links a { font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.card-grid { display: grid; gap: 14px; margin-top: 12px; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); background: var(--bg); text-decoration: none; }
.info-card.self { border-color: var(--border-strong); background: var(--surface); }
a.info-card:hover { border-color: var(--border-strong); background: var(--surface); }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.card-meta { font-size: 13px; color: var(--fg); margin-top: 4px; }
.card-go { font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 6px; }
.tile-grid, .compare-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-top: 12px; }
.metric-tile { padding: 14px 16px; border: 1px solid var(--border); background: var(--bg); }
.metric-tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.metric-tile .v { font-size: 20px; font-weight: 700; margin-top: 4px; }
.metric-tile .v small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.unknown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.unknown-cell { padding: 14px 16px; border: 1px dashed var(--border-strong); background: var(--surface); }
.unknown-cell span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.unknown-cell strong { display: block; margin-top: 4px; font-size: 15px; }
.mini-calc { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border-strong); background: var(--bg); }
.mini-calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mini-calc-head a { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.mini-calc-head a:hover { text-decoration: underline; }
.mini-calc-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.mini-calc-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mini-calc-controls label.chk { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 6px; color: var(--fg); cursor: pointer; }
.mini-calc-controls input[type="number"] { width: 120px; padding: 6px 8px; font-family: var(--font-num); font-size: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); }
.mini-calc-out { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }
.mini-calc-out strong { font-size: 22px; color: var(--accent-ink); }
.mbench-row { display: grid; grid-template-columns: minmax(140px, 210px) 1fr minmax(150px, 240px); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mbench-row .bname { font-size: 14px; font-weight: 600; }
.mbench-track { height: 6px; background: var(--border); position: relative; display: block; }
.mbench-fill { position: absolute; inset: 0 auto 0 0; background: var(--fg); }
.mbench-val { text-align: right; font-size: 14px; font-weight: 650; }
.mbench-val .asof { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--muted); }
.code-box { margin-top: 14px; border: 1px solid var(--border-strong); background: var(--bg); }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.copy-btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: var(--fg); color: var(--surface); }
pre.code { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--font-num); font-size: 13px; line-height: 1.55; }
.issue-list { display: grid; gap: 12px; }
.issue-card { padding: 14px 16px; border: 1px solid var(--border); background: var(--bg); }
.issue-title { font-weight: 700; font-size: 15px; }
.chip-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { font-size: 13px; }
.chip-list a, .chip-list li.mono { display: inline-block; padding: 5px 11px; border: 1px solid var(--border); background: var(--bg); text-decoration: none; }
.chip-list a:hover { border-color: var(--border-strong); background: var(--surface); }
.source-list { margin: 8px 0 0; padding-left: 20px; }
.source-list li { margin: 6px 0; font-size: 13.5px; word-break: break-all; }
.about p { max-width: 68ch; color: var(--muted); font-size: 15px; line-height: 1.65; margin: 14px 0 0; }
.faq { margin-top: 14px; border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 13px 2px; font-weight: 650; font-size: 15px; }
.faq summary:hover { color: var(--accent-ink); }
.faq p { margin: 0 0 14px; max-width: 66ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.site-footer { margin-top: 64px; border-top: 3px solid var(--border-strong); background: var(--surface); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; padding: 22px 0 32px; color: var(--muted); font-size: 13px; }
.foot-in .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-in a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-in a:hover { color: var(--fg); }
.foot-in .copy { margin-left: auto; font-family: var(--font-num); font-size: 12.5px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.cmp-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.cmp-swatch-a { background: var(--fg); }
.cmp-swatch-b { background: var(--accent); }
.cmp-bench-list { display: flex; flex-direction: column; }
.cmp-bench-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.cmp-bench-row:last-child { border-bottom: 0; }
.cmp-bench-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cmp-bench-head strong { font-size: 14.5px; }
.cmp-delta { font-size: 12px; font-weight: 650; padding: 2px 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }
.cmp-delta.win-a { border-color: var(--fg); color: var(--fg); }
.cmp-delta.win-b { border-color: var(--accent); color: var(--accent-ink); }
.cmp-delta.tie { border-color: var(--border); color: var(--muted); }
.cmp-bars { display: flex; flex-direction: column; gap: 6px; }
.cmp-bar-line { display: grid; grid-template-columns: minmax(120px, 180px) 1fr minmax(108px, auto); gap: 10px; align-items: center; }
.cmp-bar-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-track { display: block; height: 8px; background: var(--border); position: relative; border-radius: 2px; overflow: hidden; }
.cmp-fill { position: absolute; inset: 0 auto 0 0; }
.cmp-fill-a { background: var(--fg); }
.cmp-fill-b { background: var(--accent); }
.cmp-bar-score { text-align: right; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.cmp-rank { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.cmp-all-link { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.cmp-all-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmp-bench-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.cmp-bench-meta a { text-decoration: underline; text-underline-offset: 2px; }
.cmp-unique-list { list-style: none; margin: 8px 0 0; padding: 0; }
.cmp-unique-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cmp-unique-list li:last-child { border-bottom: 0; }
.cmp-u-name { font-weight: 600; }
.cmp-u-val { font-weight: 650; text-align: right; }
.cmp-u-val small { font-family: var(--font-body); font-weight: 400; font-size: 12px; }

/* Model Page Top-8 Position Bar Chart */
.mrank-box { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--border-strong); background: var(--bg); }
.mrank-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mrank-title { display: block; font-size: 15px; margin-top: 2px; }
.mrank-more { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.mrank-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.mrank-list { display: flex; flex-direction: column; gap: 6px; }
.mrank-gap { font-size: 13px; letter-spacing: 0.2em; padding: 2px 0 2px 34px; }
.mrank-row { display: grid; grid-template-columns: 32px minmax(140px, 210px) 1fr 70px 104px; gap: 10px; align-items: center; padding: 6px 8px; border-left: 3px solid transparent; }
.mrank-row.is-self { background: var(--surface); border-left-color: var(--accent); }
.mrank-pos { font-size: 12px; color: var(--muted); text-align: right; }
.mrank-row.is-self .mrank-pos { color: var(--accent-ink); font-weight: 700; }
.mrank-who { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrank-who a { text-decoration: none; font-weight: 500; }
.mrank-who a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mrank-self-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--accent); color: var(--accent-ink); margin-left: 4px; vertical-align: middle; }
.mrank-track { display: block; height: 8px; background: var(--border); position: relative; border-radius: 2px; overflow: hidden; }
.mrank-fill { position: absolute; inset: 0 auto 0 0; background: var(--muted); }
.mrank-row.is-self .mrank-fill { background: var(--accent); }
.mrank-score { font-size: 13px; font-weight: 650; text-align: right; }
.mrank-price { font-size: 12px; text-align: right; white-space: nowrap; }

/* Interactive Ranked Leaderboards (/benchmarks) */
.lb-shell { padding-top: 18px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.lb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-family: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; }
.lb-tab:hover { color: var(--fg); border-color: var(--border-strong); }
.lb-tab.active { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.lb-tab-n { font-size: 12px; opacity: 0.78; }
.lb-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.lb-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-pill { padding: 5px 11px; font-family: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.lb-pill:hover { color: var(--fg); border-color: var(--border-strong); }
.lb-pill.active { border-color: var(--accent); color: var(--accent-ink); background: var(--bg); }
.lb-count { font-size: 12.5px; }
.lb-calc-link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.lb-calc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-panel-head { margin: 16px 0 12px; }
.lb-panel-head h2 { margin: 0 0 4px; border-bottom: 0; padding-bottom: 0; }
.lb-desc { margin: 0; font-size: 14px; }
.lb-head { display: grid; grid-template-columns: 38px minmax(165px, 230px) 1fr 112px 150px; gap: 12px; padding: 8px 6px; border-bottom: 2px solid var(--border-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lb-head-price, .lb-head-meta { text-align: right; }
.lb-rows { display: flex; flex-direction: column; }
.lb-row { display: grid; grid-template-columns: 38px minmax(165px, 230px) 1fr 112px 150px; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--border); }
.lb-row[hidden] { display: none; }
.lb-row:hover { background: var(--bg); }
.lb-rank { font-size: 13px; font-weight: 700; color: var(--muted); }
.lb-row.is-top1 .lb-rank { color: var(--accent-ink); }
.lb-who { min-width: 0; }
.lb-name { display: block; font-size: 14.5px; font-weight: 650; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.lb-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.lb-open-tag { color: var(--ok); font-weight: 650; }
.lb-bar-cell { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center; }
.lb-track { display: block; height: 10px; background: var(--border); position: relative; border-radius: 2px; overflow: hidden; }
.lb-fill { position: absolute; inset: 0 auto 0 0; background: var(--fg); }
.lb-row.is-top1 .lb-fill { background: var(--accent); }
.lb-score { font-size: 13.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.lb-price { font-size: 12.5px; text-align: right; white-space: nowrap; }
.lb-meta { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.lb-meta a { text-decoration: underline; text-underline-offset: 2px; }
.lb-empty { padding: 20px 6px; font-size: 14px; }
.lb-subtable { margin-bottom: 14px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .tagline { display: none; }
  .nav { order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--border); padding-top: 8px; }
  .theme-toggle { margin-left: auto; }
  .panel { padding: 16px; }
  .wire-row { grid-template-columns: 62px 10px 1fr; }
  .wire-tail { grid-column: 3; text-align: left; margin-top: 6px; }
  .dirgrid { grid-template-columns: 1fr; }
  .dirgrid a:nth-child(odd) { border-right: 0; padding-right: 8px; }
  .dirgrid a:nth-child(even) { padding-left: 8px; }
  .mbench-row { grid-template-columns: 1fr; gap: 6px; }
  .mbench-val { text-align: left; }
  .cmp-bar-line { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .cmp-bar-line .cmp-track { grid-column: 1 / 3; order: 3; }
  .cmp-bar-line .cmp-bar-score { order: 2; }
  .mrank-box { padding: 12px; }
  .mrank-row { grid-template-columns: 28px 1fr auto; gap: 4px 8px; padding: 7px 6px; }
  .mrank-row .mrank-track { grid-column: 1 / 3; order: 4; }
  .mrank-row .mrank-price { grid-column: 3; order: 5; font-size: 12px; }
  .lb-head { display: none; }
  .lb-calc-link { margin-left: 0; }
  .lb-row { grid-template-columns: 32px 1fr; gap: 5px 8px; padding: 11px 2px; }
  .lb-row .lb-bar-cell { grid-column: 1 / 3; grid-template-columns: 1fr auto; }
  .lb-row .lb-price { grid-column: 1 / 3; text-align: left; font-size: 12px; color: var(--fg); }
  .lb-row .lb-price::before { content: "API: "; color: var(--muted); font-family: var(--font-body); }
  .lb-row .lb-meta { grid-column: 1 / 3; text-align: left; }
  .foot-in .copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }