:root {
  color-scheme: light;
  --ink: #27232c;
  --muted: #645e68;
  --wine: #802c44;
  --wine-dark: #622037;
  --figure-border: #802c44;
  --gold: #a2742c;
  --line: #e1dce0;
  --tint: #f8f6f7;
  --blue: #39688e;
  --content: 1160px;
  --page: #ffffff;
  --surface: #ffffff;
  --lead: #4c4650;
  --table-head: #f2eef0;
  --trained: #faf2f5;
  --gain: #eff4f8;
  --button-hover: #f5f0f2;
  --button-ink: #ffffff;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #efedf2;
  --muted: #bcb4c0;
  --wine: #f1a5bb;
  --wine-dark: #ffc6d5;
  --figure-border: #a85a74;
  --gold: #d4ac6a;
  --line: #3c343e;
  --tint: #19171c;
  --blue: #8ebde1;
  --page: #141318;
  --surface: #201d23;
  --lead: #d6cdd8;
  --table-head: #2c252e;
  --trained: #35242e;
  --gain: #1f2c38;
  --button-hover: #352b35;
  --button-ink: #26151e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1.0625rem/1.75 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--wine); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 1.15rem; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2rem, 3.9vw, 3.15rem); letter-spacing: -.04em; font-weight: 700; margin: 1rem 0 1.9rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.032em; margin: 0 0 1.2rem; font-weight: 650; }
h3 { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 .85rem; }
h4 { font-size: 1.15rem; margin: 0; }
sup { font-size: .72em; line-height: 0; }
strong { font-weight: 650; }
figure { margin: 0; }
code, pre { font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; font-size: .88em; }
code { overflow-wrap: anywhere; }
.wrap { max-width: var(--content); margin-inline: auto; width: calc(100% - 64px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 20; padding: .7rem 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav-wrap { width: 100%; margin: 0; padding-inline: 24px; min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.wordmark { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; color: var(--wine); font-size: 1.2rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: nowrap; justify-content: center; justify-self: center; gap: 1.6rem; margin: 0; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover { color: var(--wine); }
.nav-actions { display: flex; align-items: center; justify-self: end; gap: 12px; margin: 0; }
.theme-picker { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.theme-option { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); transition: background .15s ease, color .15s ease; }
.theme-option:hover { color: var(--wine); background: var(--button-hover); }
.theme-option[aria-checked="true"] { color: var(--wine); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgb(0 0 0 / .08); }
.theme-option:focus-visible { outline-offset: 1px; border-radius: 7px; }
.theme-option svg { display: block; flex-shrink: 0; }
.nav-github { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); }
.nav-github:hover { color: var(--wine); border-color: var(--wine); background: var(--button-hover); }
.hero { padding-top: 58px; padding-bottom: 50px; text-align: center; }
.hero-brand { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0 auto 24px; }
.brand-banner { display: block; flex: 0 1 auto; width: 390px; max-width: 80%; margin: 0; background: #fff; border: 10px solid #fff; border-radius: 10px; }
.hero h1 span:not(.visually-hidden) { color: var(--wine); }
.authors { font-size: 1rem; line-height: 1.95; max-width: 1050px; margin: 0 auto 12px; }
.affiliations { font-size: .9rem; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.3rem; margin-bottom: 8px; }
.contributions { font-size: .85rem; color: var(--muted); margin-bottom: 23px; }
.contributions span { margin-inline: .6rem; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.25rem; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: .9rem; line-height: 1.45; font-weight: 600; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.button:hover { background: var(--button-hover); color: var(--wine); border-color: var(--wine); }
.button.primary { background: var(--wine); color: var(--button-ink); border-color: var(--wine); }
.button.primary:hover { background: var(--wine-dark); }
[hidden] { display: none !important; }
.news { border-block: 1px solid var(--line); display: flex; gap: 1.6rem; align-items: baseline; padding-block: 19px; font-size: .9rem; }
.news h2 { font-size: .95rem; margin: 0; white-space: nowrap; letter-spacing: 0; }
.news time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.news p { margin: 0; }
.section { padding-block: 78px; }
.section-tinted { background: var(--tint); border-block: 1px solid var(--line); }
.section-heading { width: 100%; max-width: none; margin-bottom: 32px; }
.eyebrow { font-size: .82rem; color: var(--wine); font-weight: 650; letter-spacing: .095em; text-transform: uppercase; margin-bottom: 13px; }
.section .lead, .method-column p, .buffer dd, .analysis-copy p, .table-notes, .contact p, .case-comparison article > p:last-child, .section figcaption { text-align: justify; text-align-last: left; hyphens: auto; overflow-wrap: break-word; }
.lead { color: var(--lead); font-size: 1.13rem; line-height: 1.8; margin-bottom: 0; }
figcaption { font-size: .875rem; line-height: 1.65; color: var(--muted); padding: 15px 0 0; }
summary { cursor: pointer; font-size: .95rem; font-weight: 600; padding: 15px 0; color: var(--wine); }
details[open] > summary { margin-bottom: 10px; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .875rem; font-variant-numeric: tabular-nums; line-height: 1.5; }
caption { text-align: left; font-weight: 600; padding: 16px 19px; color: var(--muted); font-size: .85rem; }
thead { background: var(--table-head); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .875rem; font-weight: 600; }
tbody th { font-weight: 500; white-space: nowrap; }
td { text-align: right; }
thead th:not(:first-child) { text-align: right; }
tbody tr:last-child > * { border-bottom: 0; }
tr.trained { background: var(--trained); }
tr.trained > * { font-weight: 700; }
tr.trained th { color: var(--wine); box-shadow: inset 3px 0 0 var(--wine); }
tr.trained .overall { color: var(--wine); }
tr.gain { background: var(--gain); }
tr.gain th { font-style: italic; }
.group-heading th { color: var(--muted); background: var(--tint); text-align: left; font-size: .875rem; font-weight: 650; padding-block: 10px; }
.overall { font-weight: 700; }
.table-notes { color: var(--muted); font-size: .875rem; line-height: 1.8; margin: 18px 0 0; max-width: none; }
.table-notes p { margin-bottom: .65rem; }
.paper-figure img { width: 100%; border: 2px solid var(--figure-border); border-radius: 14px; padding: 12px; background: #fff; }
.paper-figure { width: 88%; max-width: 980px; margin: 28px auto 0; }
.cost-table-wrap { margin-top: 32px; }
.cost-table th, .cost-table td { padding-block: 17px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.method-column { min-width: 0; }
.method-column-heading { min-height: 116px; }
.method-column-heading h3 { font-size: 1.25rem; }
.method-column p { color: var(--muted); font-size: 1rem; }
.method-column .paper-figure { width: 100%; margin: 0; }
.method-column .paper-figure img { aspect-ratio: 2 / 1; object-fit: contain; }
.method-details { margin-top: 24px; }
.method-details strong { color: var(--ink); }
.method-details p:last-child { margin-bottom: 0; }
.buffer-list { display: grid; gap: 14px; margin: 24px 0 0; }
.buffer { --buffer-color: var(--blue); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border-left: 3px solid var(--buffer-color); padding-left: 14px; }
.buffer dt { font-size: 1rem; font-weight: 650; line-height: 1.5; }
.buffer dt span { display: block; color: var(--buffer-color); font-size: 1.1rem; }
.buffer dd { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.reinforcement { --buffer-color: var(--gold); }
.history { --buffer-color: var(--wine); }
.expansion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 40px; }
.expansion-copy { min-width: 0; }
.expansion-figure { width: 100%; margin: 0; }
.expansion-table-wrap { border-color: var(--figure-border); border-radius: 14px; }
.expansion-table { min-width: 660px; }
.expansion-table caption { padding: 18px 20px; color: var(--wine); background: var(--tint); font-size: .95rem; }
.expansion-table thead th { white-space: nowrap; }
.expansion-table thead tr:first-child th:not(:first-child) { text-align: center; }
.expansion-table thead .numeric-heading { text-align: right; }
.expansion-table .pool-added { color: var(--muted); }
.expansion-table .pool-total { color: var(--wine); background: var(--trained); }
.expansion-table tbody .pool-total { font-weight: 650; }
.expansion-table .separate-run { border-left: 1px solid var(--line); }
.expansion-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.expansion-table tfoot { color: var(--wine); background: var(--trained); }
.expansion-table tfoot th, .expansion-table tfoot td { border-bottom: 0; border-top: 3px solid var(--figure-border); padding-block: 18px; font-size: .95rem; font-weight: 800; }
.expansion-table tfoot strong { font-weight: 800; }
.scaling-figure { min-width: 0; border: 2px solid var(--figure-border); border-radius: 18px; padding: 28px; background: var(--surface); }
.scaling-figure > figcaption { padding: 0; color: var(--wine); font-size: 1.5rem; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; text-align: left; hyphens: none; }
.scaling-metric { color: var(--muted); font-size: .875rem; margin: 10px 0 26px; }
.scaling-run + .scaling-run { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.scaling-run h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; font-size: 1.0625rem; line-height: 1.5; margin-bottom: 18px; }
.scaling-run h3 > span { font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.stage-flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.stage-flow > li { position: relative; text-align: center; }
.stage-flow > li + li::before { content: ""; position: absolute; top: 43px; left: -30px; width: 32px; height: 10px; background: var(--gold); clip-path: polygon(0 42%, 77% 42%, 77% 0, 100% 50%, 77% 100%, 77% 58%, 0 58%); }
.stage-label, .stage-caption { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.stage-score { display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--wine); margin-block: 3px; }
.stage-base .stage-score { color: var(--muted); }
.scaling-note { margin: 18px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.direct-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 16px; text-align: center; }
.scaling-transition { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.scaling-transition span { display: block; }
.scaling-transition svg { display: block; width: 100%; height: 12px; margin: 7px 0; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.analysis-block + .analysis-block { padding-top: 52px; margin-top: 46px; border-top: 1px solid var(--line); }
.analysis-copy { width: 100%; max-width: none; }
.analysis-copy h3 { font-size: 1.45rem; }
.analysis-copy p { color: var(--muted); }
.case-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 30px; }
.case-comparison article { padding: 28px 30px; border: 1px solid var(--line); border-radius: 8px; }
.case-comparison .case-late { border-color: var(--line); background: var(--trained); }
.case-step { font-size: .9rem; font-weight: 650; color: var(--muted); }
.case-comparison h3 { font-size: 1rem; font-weight: 500; color: var(--muted); }
.case-comparison h3 span { display: block; font-size: 2.8rem; line-height: 1.3; font-weight: 700; color: var(--ink); margin-bottom: 5px; letter-spacing: -.03em; }
.case-late h3 span { color: var(--wine); }
.case-comparison article > p:last-child { margin: 22px 0 0; font-size: .98rem; color: var(--muted); }
.case-details { border-block: 1px solid var(--line); margin-top: 26px; }
.case-details .paper-figure { padding-bottom: 24px; }
.citation-section { background: var(--page); border-top: 1px solid var(--line); }
.citation-heading { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.citation-heading h2 { margin-bottom: 0; }
.citation-prompt { margin: 10px 0 0; font-size: 1rem; color: var(--muted); }
.citation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { margin: 16px 0 7px; min-height: 1.4em; font-size: .9rem; color: var(--wine); }
pre { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 26px; line-height: 1.8; overflow-x: auto; white-space: pre; }
pre code { font-size: inherit; }
.contact { width: 100%; max-width: none; padding-top: 40px; }
.contact a { overflow-wrap: anywhere; }
.contact p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.site-footer { padding-block: 36px; display: flex; flex-wrap: wrap; gap: 10px 25px; align-items: baseline; color: var(--muted); font-size: .85rem; }
.footer-name { font-size: 1rem; font-weight: 700; text-decoration: none; }
.site-footer p { flex: 1; margin: 0; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 900px) {
  .nav-wrap { column-gap: 16px; padding-inline: 20px; }
  nav { gap: 15px; }
  h1 { font-size: 2.5rem; }
  .desktop-break { display: none; }
  .method-grid, .expansion-grid { grid-template-columns: 1fr; gap: 36px; }
  .method-column-heading { min-height: 0; margin-bottom: 22px; }
  .method-column .paper-figure img { aspect-ratio: auto; }
  .method-column + .method-column { border-top: 1px solid var(--line); padding-top: 32px; }
  .scaling-figure { width: 100%; max-width: 600px; justify-self: center; }
  .news { gap: 15px; flex-wrap: wrap; }
  .news p { flex-basis: 100%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 130px; }
  .nav-wrap { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; row-gap: 7px; }
  .nav-wrap nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; justify-self: center; }
  .nav-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 120px; }
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 36px); }
  .nav-wrap { padding-inline: 12px; column-gap: 12px; }
  .nav-actions { margin: 0; justify-self: end; gap: 8px; }
  .theme-option { width: 32px; }
  .wordmark { font-size: 1.05rem; gap: 7px; }
  .wordmark img { width: 26px; height: 26px; }
  nav { gap: clamp(6px, 2.4vw, 14px); padding-top: 4px; }
  nav a { font-size: .85rem; padding-block: 5px; }
  .hero { padding-block: 36px; }
  .hero-brand { margin-bottom: 18px; }
  .brand-banner { width: 300px; max-width: 94%; }
  h1 { font-size: 2rem; line-height: 1.22; margin-bottom: 23px; }
  .authors { font-size: .92rem; line-height: 1.95; }
  .affiliations { display: block; font-size: .85rem; }
  .affiliations span { display: block; margin-top: 6px; }
  .contributions { font-size: .8rem; }
  .button { padding-inline: 16px; font-size: .88rem; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 24px; }
  .paper-figure { width: 96%; }
  .paper-figure img { padding: 7px; border-radius: 11px; }
  h2 { font-size: 1.85rem; }
  .lead { font-size: 1.05rem; }
  .news { padding-block: 17px; gap: 7px 16px; }
  .news h2 { font-size: .9rem; }
  figcaption { display: block; }
  th, td { padding: 12px 14px; }
  .case-comparison { grid-template-columns: 1fr; gap: 24px; }
  .buffer { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding-left: 11px; }
  .scaling-figure { padding: 22px 18px; }
  .stage-flow { gap: 20px; }
  .stage-flow > li + li::before { left: -23px; width: 26px; top: 37px; }
  .direct-flow { gap: 10px; }
  .case-comparison article { padding: 23px; }
  .citation-heading { display: block; }
  .citation-actions { margin-top: 22px; }
  pre { padding: 18px; }
  .site-footer { display: block; padding-block: 28px; }
  .site-footer p { margin: 8px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .theme-option { transition: none; }
}
@media print {
  .site-header, .resource-links, .citation-actions, .site-footer, .skip-link { display: none; }
  :root, html[data-theme="dark"] {
    color-scheme: light;
    --ink: #27232c; --muted: #645e68; --wine: #802c44; --wine-dark: #622037;
    --gold: #a2742c; --blue: #39688e; --line: #e1dce0; --tint: #f8f6f7;
    --page: #fff; --surface: #fff; --lead: #4c4650; --table-head: #f2eef0;
    --trained: #faf2f5; --gain: #eff4f8;
  }
  body { font-size: 11pt; }
  .wrap { width: 100%; }
  .hero, .section { padding-block: 20px; }
  .paper-figure, table { break-inside: avoid; }
  .table-scroll, pre { overflow: visible; }
  .expansion-table { min-width: 0; }
  pre { white-space: pre-wrap; }
}

/* Interactive Figure 1: original model artwork and locally bundled data. */
.interactive-overview { --curve-mixed: #5266ee; --curve-single: #818994; --plot-grid: #e7e1e7; margin-top: 30px; }
html[data-theme="dark"] .interactive-overview { --curve-mixed: #a0adff; --curve-single: #b0aab7; --plot-grid: #39333f; }
.overview-charts { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.chart-panel { min-width: 0; padding: 22px 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.chart-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 5px; margin-bottom: 16px; }
.chart-panel-heading h3 { font-size: 1.0625rem; letter-spacing: -.015em; margin: 0; }
.chart-count, .chart-gain { font-size: .875rem; white-space: nowrap; }
.chart-count { color: var(--muted); }
.chart-gain { color: var(--wine); font-weight: 700; }
.chart-canvas svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.chart-grid { stroke: var(--plot-grid); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-grid-vertical { opacity: .7; }
.frontier-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 8 6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.frontier-label { fill: var(--muted); font-size: 15px; pointer-events: none; }
.chart-axis { stroke: var(--muted); stroke-width: 1.2; }
.axis-label { fill: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.axis-title { fill: var(--ink); font-size: 17px; font-weight: 550; }
.unknown-band { fill: var(--tint); }
.point-hit { fill: transparent; stroke: none; }
.point-disc { fill: #fff; stroke: var(--line); stroke-width: 1; }
.model-point { cursor: pointer; outline: none; }
.model-point image { pointer-events: none; }
.model-point.ours .point-disc { stroke: var(--wine); stroke-width: 2.5; }
.model-point.is-active .point-disc, .model-point:focus-visible .point-disc { stroke: var(--wine); stroke-width: 3; filter: drop-shadow(0 0 4px #802c4430); }
.parameter-group { pointer-events: none; }
.parameter-group-box { fill: var(--wine); fill-opacity: .035; stroke: var(--wine); stroke-opacity: .5; stroke-width: 1.25; stroke-dasharray: 4 4; }
.parameter-group-badge { fill: var(--surface); stroke: var(--wine); stroke-opacity: .65; stroke-width: 1; }
.parameter-group-label { fill: var(--wine); font-size: 14px; font-weight: 650; }
.model-label-leader { fill: none; stroke: var(--wine); stroke-opacity: .65; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.model-label { fill: var(--wine); font-size: 15px; font-weight: 700; pointer-events: none; }
.model-picker { display: flex; align-items: center; gap: 12px; padding: 14px 5px 0; }
.model-picker label { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.model-picker select { min-width: 0; width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 7px 32px 7px 10px; background-color: var(--surface); color: var(--ink); font: inherit; font-size: .875rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23868a93' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.model-picker select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.curve-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.curve-line.mixed { stroke: var(--curve-mixed); }
.curve-line.single { stroke: var(--curve-single); stroke-dasharray: 7 6; }
.curve-dot { fill: var(--surface); stroke-width: 2.5; }
.curve-point { cursor: pointer; outline: none; }
.curve-point.mixed .curve-dot { stroke: var(--curve-mixed); }
.curve-point.single .curve-dot { stroke: var(--curve-single); }
.curve-point.is-active .curve-dot, .curve-point:focus-visible .curve-dot { stroke-width: 4; r: 6px; }
.chart-crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 5; pointer-events: none; }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; padding-top: 14px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend-line { display: inline-block; width: 23px; border-top: 3px solid var(--curve-mixed); }
.legend-line.single { border-color: var(--curve-single); border-top-style: dashed; }
.chart-hint { color: var(--muted); font-size: .875rem; margin: 14px 0 0; }
.interactive-overview figcaption { padding-top: 8px; }
.chart-tooltip { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px) scale(.985); transform-origin: top left; transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms; position: fixed; z-index: 40; width: min(355px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px #17102024; font-size: .875rem; line-height: 1.5; }
.chart-tooltip.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition: opacity 160ms ease, transform 180ms ease, left 120ms ease, top 120ms ease, visibility 0s; }
.chart-tooltip.is-visible > * { animation: tooltip-content-in 100ms ease-out; }
.chart-tooltip.is-pinned { border-color: var(--wine); }
.tooltip-status { margin: 0 0 10px; color: var(--wine); font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.is-comparison .tooltip-status { color: var(--muted); }
.model-point.is-pinned-point .point-disc { stroke: var(--wine); stroke-width: 3; }
@keyframes tooltip-content-in { from { opacity: .45; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: none) and (pointer: coarse) {
  .chart-tooltip.is-pinned, .chart-tooltip.is-comparison { pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chart-tooltip, .chart-tooltip.is-visible { transition: none; transform: none; }
  .chart-tooltip.is-visible > * { animation: none; }
}
.chart-tooltip h4 { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.tooltip-model-heading { display: flex; align-items: center; gap: 11px; }
.tooltip-logo { flex: 0 0 36px; object-fit: contain; padding: 4px; border-radius: 7px; background: #fff; }
.tooltip-source { color: var(--muted); font-size: .8125rem; margin: 0 0 3px; }
.tooltip-subtitle { color: var(--muted); margin: 8px 0 0; }
.tooltip-overall { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 11px 13px; border-radius: 6px; background: var(--trained); color: var(--wine); }
.tooltip-overall strong { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tooltip-metrics { margin: 13px 0 0; }
.tooltip-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.tooltip-metric dt { margin: 0; color: var(--muted); font-size: .8125rem; }
.tooltip-metric dd { margin: 0; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tooltip-metric.mixed dd { color: var(--wine); }
.tooltip-note { font-size: .8125rem; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.tooltip-difference { color: var(--wine); font-weight: 650; margin: 14px 0 0; }
@media (max-width: 1000px) {
  .overview-charts { grid-template-columns: 1fr; }
  .chart-panel { padding: 22px; }
  .performance-panel .chart-canvas { max-width: 740px; margin: auto; }
  .efficiency-panel .chart-canvas { max-width: 510px; margin: auto; }
  .model-picker { max-width: 520px; margin: auto; }
}
@media (max-width: 600px) {
  .chart-panel { padding: 17px 10px; }
  .chart-panel-heading { padding-inline: 5px; }
  .chart-panel-heading h3 { font-size: 1rem; }
  .chart-count, .chart-gain { font-size: .8125rem; }
  .scatter-svg .axis-label { font-size: 23px; }
  .scatter-svg .axis-title { font-size: 24px; }
  .scatter-svg .model-label, .scatter-svg .frontier-label { font-size: 21px; }
  .model-picker { padding-top: 14px; flex-direction: column; align-items: stretch; gap: 5px; }
  .model-picker select { min-height: 44px; }
  .chart-hint { font-size: .8125rem; }
}
@media print {
  .chart-tooltip, .model-picker, .chart-hint { display: none !important; }
  .overview-charts { grid-template-columns: 1.58fr 1fr; }
  .chart-panel { break-inside: avoid; }
  .interactive-overview { --curve-mixed: #5266ee; --curve-single: #818994; --plot-grid: #e7e1e7; }
}

/* Reversible scroll reveals; content stays visible without JS and when printing. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 260ms ease, transform 320ms ease;
  }
  [data-reveal].reveal-ready.is-revealed {
    opacity: 1;
    transform: none;
    transition-duration: var(--reveal-fade, 520ms), var(--reveal-float, 640ms);
    transition-timing-function: ease, cubic-bezier(.2, .65, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal="slow"] {
    --reveal-fade: 760ms;
    --reveal-float: 860ms;
    --reveal-delay: 100ms;
  }
  [data-reveal].reveal-ready:focus-within {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
