.viz-root { --surface-1: var(--panel); --text-primary: var(--ink); --text-secondary: var(--ink-2); --text-muted: var(--ink-3); --hair: var(--line); min-height: 100vh; }
body { background: var(--panel); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.top { padding: 22px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 13.5px; }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.crumbs a:hover { color: var(--ink); }
.crumbs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.crumbs .home { margin-right: 6px; color: var(--ink); }
.crumbs .home b { font-weight: 650; }
.pagetabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.pagetabs a { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); text-decoration: none; }
.pagetabs a b { font-size: 14px; font-weight: 640; }
.pagetabs a small { color: var(--ink-2); font-size: 12px; }
.pagetabs a:hover { border-color: var(--line-2); }
.pagetabs a[aria-current="page"] { background: var(--panel); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.top h1 { margin: 26px 0 0; max-width: 22ch; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; font-weight: 620; letter-spacing: -0.02em; }
.lede { margin: 14px 0 0; max-width: 74ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.lede b { color: var(--ink); font-weight: 600; }
.lede a, .findings a { color: var(--ink); }
.findings { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 26px 0 6px; padding: 0; counter-reset: f; }
.findings li { padding: 13px 0 14px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; line-height: 1.5; position: relative; }
.findings li::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.findings li b { color: var(--ink); font-weight: 620; }
.findings li.lead { grid-column: 1 / -1; font-size: 15px; }

.panel { padding: 30px 0 8px; border-top: 1px solid var(--line-2); margin-top: 26px; background: var(--panel); }
.panel-head h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 620; letter-spacing: -0.01em; }
.panel-head .sub { margin: 6px 0 14px; max-width: 80ch; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.note { margin: 12px 0 0; max-width: 84ch; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.note code, .panel code { font: 500 0.92em var(--mono); color: var(--ink); }

.vtabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 34px 0 0; padding: 10px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.vtabs a { display: flex; flex-direction: column; gap: 1px; padding: 9px 13px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; }
.vtabs a b { font-size: 14px; font-weight: 640; }
.vtabs a small { font-size: 12px; color: var(--ink-2); }
.vtabs a:hover { border-color: var(--line-2); }
.vtabs a.on { background: var(--panel); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vtabs a.check { border-style: dashed; background: transparent; }
.vtabs a.check.on { background: var(--panel); }
.version { padding: 26px 0 0; }
.vhead h2 { margin: 0; font-size: 26px; font-weight: 620; letter-spacing: -0.015em; }
.vhead p { margin: 8px 0 0; max-width: 80ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 14px 18px 15px 0; }
.kpi + .kpi { padding-left: 18px; border-left: 1px solid var(--line); }
.kpi .v { font-size: 30px; font-weight: 620; letter-spacing: -0.02em; line-height: 1.1; }
.kpi .v.pos { color: var(--ok); }
.kpi .v.neg { color: var(--bad); }
.kpi .v small { margin-left: 2px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.kpi .l { margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.kpi .t { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

.chart { overflow-x: auto; }
.chart svg { display: block; overflow: visible; max-width: 100%; height: auto; }
.chart svg text { font-family: var(--sans); paint-order: stroke; stroke: var(--surface-1); stroke-width: 3px; stroke-linejoin: round; }
.chart g.grid line { stroke: var(--line); }
.t-ax { font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.t-lab { font-size: 13px; fill: var(--ink-2); }
.t-lab.b { fill: var(--ink); font-weight: 620; }
.t-set { font-size: 12px; fill: var(--ink-3); font-weight: 400; }
.t-val { font-size: 12.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.t-val.b { fill: var(--ink); font-weight: 620; }
.t-ann { font-size: 11.5px; fill: var(--ink-3); }
.t-xv { font-size: 13.5px; fill: var(--ink); font-weight: 640; }
.t-end-v { font-size: 13px; fill: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.t-end { font-size: 13px; fill: var(--ink); }
.t-end.b { font-weight: 620; }
.t-end-q { font-size: 12px; fill: var(--ink-3); }
.t-op { fill: var(--c-op); }
.t-ck { font-size: 14px; fill: var(--ink); font-weight: 640; }
.t-ck-s { font-size: 12px; fill: var(--ink-2); font-weight: 400; }
.chart .gl { stroke: var(--line); }
.chart .zl { stroke: var(--ink-3); }
.chart .sep { stroke: var(--line-2); }
.chart .ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.b { stroke-width: 3; }
.chart .op { fill: none; stroke: var(--c-op); stroke-width: 1.75; stroke-dasharray: 5 4; }
.chart .op-dot { fill: var(--c-op); }
.chart .mk { stroke: var(--surface-1); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: help; }
.chart [data-tip] { cursor: help; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw { width: 10px; height: 10px; border-radius: 50%; }
.legend .lab { display: inline; color: var(--ink); }
.legend .lab small { font-size: inherit; color: var(--ink-3); }
.legend .ln { width: 18px; height: 0; border-top: 2px dashed var(--c-anchor); }
.legend .ln.op { border-top: 2px dashed var(--c-op); }

.table-scroll { overflow-x: auto; margin-top: 8px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.grid th { padding: 8px 12px 8px 0; text-align: right; color: var(--ink-2); font-weight: 600; font-size: 12.5px; vertical-align: bottom; border-bottom: 1px solid var(--line-2); }
table.grid th.l, table.grid td:first-child { text-align: left; }
table.grid td { padding: 9px 12px 9px 0; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid td.l { text-align: left; }
table.grid tr.ref td { color: var(--ink-2); }
table.grid tr.tot td { border-top: 1px solid var(--line-2); }
table.grid .sub { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
table.grid td.na { color: var(--ink-3); }
table.grid th.ck, table.grid td.ck { padding-left: 14px; border-left: 1px dashed var(--line-2); }
.who { display: inline-flex; align-items: flex-start; gap: 9px; }
.who > i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.who > i.m-beam, .legend .sw.m-beam, table.replays td.rp a i.m-beam { border-radius: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.who > i.m-opus, .legend .sw.m-opus, table.replays td.rp :is(a, .off) i.m-opus, .who > i.m-haiku, .legend .sw.m-haiku, table.replays td.rp :is(a, .off) i.m-haiku { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.who > i.m-argon, .legend .sw.m-argon, table.replays td.rp :is(a, .off) i.m-argon { border-radius: 1.5px; }
.who > i.m-glmflash, .legend .sw.m-glmflash, table.replays td.rp :is(a, .off) i.m-glmflash { border-radius: 0; clip-path: polygon(34% 0, 66% 0, 66% 34%, 100% 34%, 100% 66%, 66% 66%, 66% 100%, 34% 100%, 34% 66%, 0 66%, 0 34%, 34% 34%); }
.who > i.m-dsflash, .legend .sw.m-dsflash, table.replays td.rp :is(a, .off) i.m-dsflash { border-radius: 0; clip-path: polygon(0 0, 50% 32%, 100% 0, 100% 100%, 50% 68%, 0 100%); }
.who > i.m-glm, .legend .sw.m-glm, table.replays td.rp :is(a, .off) i.m-glm { border-radius: 0; clip-path: polygon(34% 0, 66% 0, 66% 34%, 100% 34%, 100% 66%, 66% 66%, 66% 100%, 34% 100%, 34% 66%, 0 66%, 0 34%, 34% 34%); }
.who > i.m-kimi, .legend .sw.m-kimi, table.replays td.rp :is(a, .off) i.m-kimi { border-radius: 0; clip-path: polygon(50% 0, 62% 35%, 98% 35%, 69% 57%, 79% 91%, 50% 70%, 21% 91%, 31% 57%, 2% 35%, 38% 35%); }
.who > i.m-qwenmax, .legend .sw.m-qwenmax, table.replays td.rp :is(a, .off) i.m-qwenmax { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.who > i.m-qwen9b, .legend .sw.m-qwen9b, table.replays td.rp :is(a, .off) i.m-qwen9b { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.who > i.m-qwen9bsft, .legend .sw.m-qwen9bsft, table.replays td.rp :is(a, .off) i.m-qwen9bsft { border-radius: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.7L10.8 10.3H1.2Z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.7L10.8 10.3H1.2Z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.who b { font-weight: 620; }
.nw { white-space: nowrap; }
table.replays th { text-align: left; }
table.replays th small { display: block; color: var(--ink-3); font-weight: 500; font-size: 11.5px; }
table.replays tbody th { padding-right: 16px; white-space: nowrap; font-size: 13px; color: var(--ink); }
table.replays td.rp { text-align: left; white-space: nowrap; }
table.replays td.rp a { display: inline-flex; align-items: center; gap: 5px; margin: 0 10px 4px 0; padding: 2px 7px 2px 6px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 12.5px; }
table.replays td.rp a:hover { border-color: var(--line-2); background: var(--panel-2); }
table.replays td.rp :is(a, .off) i { width: 8px; height: 8px; border-radius: 50%; }
table.replays td.rp .off { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 6px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12.5px; cursor: help; }

.cardfig { --halo: var(--panel); margin: 4px 0 0; }
.cardfig svg.chart { max-width: 100%; height: auto; }
.panel-head:not(:has(.sub)) + * { margin-top: 12px; }
table.bgaps, table.bpairs { max-width: 900px; }
h3.minor { margin: 22px 0 0; font-size: 15px; font-weight: 640; }
table.bboard td:first-child { min-width: 210px; }
table.bboard .who .sub { line-height: 1.45; }
table.bpairs tr.ref td:first-child { color: var(--ink-2); }
table.breplays tbody th small { display: block; color: var(--ink-3); font-weight: 450; font-size: 11.5px; }
table.breplays tbody th i.side { margin-right: 7px; vertical-align: 1px; }
table.breplays td.rp small { display: block; margin: 0 0 3px; color: var(--ink-3); font-size: 11.5px; }
table.breplays td.rp .chips { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 6px; }
table.breplays td.rp a { margin: 0; justify-content: flex-start; }
table.breplays td.rp a.lead { box-shadow: inset 0 0 0 1.5px var(--ink); }
i.side { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
i.side.pre_cutoff { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
i.side.post_cutoff { background: var(--ink); }
.vtabs.ladder { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 0; padding: 0; border-bottom: 0; }
.models { margin: 0; padding-left: 18px; max-width: 84ch; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.models li + li { margin-top: 6px; }
ol.models { padding-left: 26px; }
.models b { color: var(--ink); font-weight: 620; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; }
.tools div { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.tools h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 640; color: var(--ink); }
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 30px; font-size: 13.5px; }
.links-grid h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 640; }
.links-grid ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.6; }
.links-grid a, .note a, .foot a, .panel-head a { color: var(--ink); }
.mod { color: var(--ink-3); font-size: 12px; }

.foot { padding: 30px 28px 40px; margin-top: 34px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.foot p { margin: 0 0 6px; max-width: 90ch; }

.tip { position: fixed; z-index: 50; max-width: 300px; padding: 9px 11px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; font-variant-numeric: tabular-nums; }
.tip h6 { margin: 0 0 5px; font-size: 13px; font-weight: 640; }
.tip .r { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.tip .r span:last-child { color: var(--ink); }

body.export .top, body.export .foot { display: none; }
body.export .wrap { padding: 0; }
body.export section.fig { width: 640px; margin: 0; padding: 18px 24px 12px; border: 0; }

@media (max-width: 860px) {
  .findings { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .crumbs { gap: 2px 14px; font-size: 13px; }
  .vtabs { position: static; }
  .top h1 { margin-top: 22px; }
  .lede { font-size: 14.5px; }
  .vtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: 1fr; }
  .kpi .v { font-size: 25px; }
  .kpi { padding-right: 12px; }
  .kpi + .kpi { padding-left: 12px; }
  .kpi:nth-child(3) { padding-left: 0; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  table.stack td { padding: 0; border: 0; text-align: left; }
  table.stack td:first-child { grid-column: 1 / -1; margin-bottom: 2px; }
  table.stack td.full { grid-column: 1 / -1; }
  table.stack td[data-l]::before { content: attr(data-l); display: block; color: var(--ink-3); font-size: 11.5px; }
  table.stack tr.ref td.na { display: none; }
  table.stack.lines tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.stack td.ck { padding-left: 0; border-left: 0; }
  .foot { padding: 24px 16px 32px; }
  .pagetabs { margin-top: 20px; }
  .pagetabs a { flex: 1 1 0; padding: 8px 11px 9px; }
  .pagetabs a b { font-size: 13.5px; }
  .vtabs.ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.bboard td:first-child { min-width: 0; }
  table.breplays thead { display: none; }
  table.breplays, table.breplays tbody, table.breplays tr, table.breplays th, table.breplays td { display: block; width: 100%; }
  table.breplays tr { padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
  table.breplays td { padding: 4px 0 0; border: 0; }
  table.breplays td.rp { white-space: normal; }
  table.breplays td.rp::before { content: attr(data-l); display: block; margin-bottom: 3px; color: var(--ink-2); font-size: 12px; font-weight: 560; }
  table.breplays td.rp .chips { grid-template-columns: repeat(4, max-content); }
}
