/* Shared benchmark browser. Compact typography around the full case and metric controls. */
:root,
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface-1: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e7ebf1;
  --surface-glass: rgba(255,255,255,.96);
  --video-mat: #11151b;
  --line: #e0e4ea;
  --line-strong: #c0c9d5;
  --text-primary: #1c2533;
  --text-secondary: #4a5668;
  --text-muted: #5b677a;
  --accent: #244e87;
  --accent-ink: #ffffff;
  --accent-soft: #edf2f9;
  --kicker-ink: #244e87;
  --good-text: #246945;
  --warn-text: #9b4c22;
  --bad-text: #b33b3b;
  --series-1: #4275a7;
  --series-2: #bd7752;
  --series-3: #569b84;
  --series-4: #b38b35;
  --series-5: #b15d7b;
  --series-6: #447752;
  --series-7: #797bb0;
  --series-8: #bf6363;
  --shadow-lg: 0 16px 52px rgba(30,43,64,.06);
  --shadow-sm: none;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #13171d;
  --bg-alt: #191e25;
  --surface-1: #1b2028;
  --surface-2: #242b35;
  --surface-3: #343e4a;
  --surface-glass: rgba(19,23,29,.96);
  --line: #333b46;
  --line-strong: #626e7e;
  --text-primary: #f2f4f7;
  --text-secondary: #c3cbd6;
  --text-muted: #a2aebe;
  --accent: #a7c7ee;
  --accent-ink: #182738;
  --accent-soft: #23344a;
  --kicker-ink: #a7c7ee;
  --good-text: #a1d6b3;
  --warn-text: #ecc298;
  --bad-text: #f2a7a7;
  --series-1: #77a9d8;
  --series-2: #d29470;
  --series-3: #8bc4af;
  --series-4: #d8b45d;
  --series-5: #d08fab;
  --series-6: #8ab69b;
  --series-7: #a2a6d4;
  --series-8: #db9797;
  --shadow-lg: none;
  --shadow-sm: none;
  color-scheme: dark;
}
html { scroll-padding-top: 88px; }
body { font-size: 16px; line-height: 1.65; }
h1,h2,h3,h4 { text-wrap: balance; }
p { text-wrap: pretty; }
button,a,select { -webkit-tap-highlight-color: transparent; }
button { font-weight: 550; }
strong { font-weight: 650; }
.container { max-width: 1280px; padding-inline: 40px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Compact publication navigation. */
.topbar { border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-inner { min-height: 66px; gap: 24px; }
.brand { font-size: 15px; font-weight: 650; letter-spacing: -.035em; gap: 9px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border: 0; border-radius: 0; background: none; }
.bm-l1 { width: 14px; height: 14px; border-color: var(--accent); border-width: 1.5px; }
.bm-l2 { width: 14px; height: 14px; border-color: var(--accent); border-width: 1.5px; }
.bm-l3 { display: none; }
.main-nav { gap: 3px; flex-wrap: nowrap; margin-left: auto; }
.main-nav a { padding: 8px 9px; font-size: 12px; font-weight: 500; border-radius: 5px; white-space: nowrap; }
.main-nav a[aria-current="location"] { color: var(--accent); background: var(--accent-soft); }
.topbar-actions { gap: 8px; }
.icon-btn { background: transparent; border-color: var(--line); border-radius: 7px; min-height: 34px; font-weight: 500; }
.theme-label { display: none; }
.mobile-drawer-links a { background: transparent; font-weight: 500; padding: 12px 8px; }
.mobile-drawer-links a:hover { background: var(--surface-2); }

/* The publication comes first; all resources retain their explicit release state. */
.hero { background: var(--bg); padding: 58px 0 0; border-bottom: 0; }
.hero-center { max-width: 1020px; }
.eyebrow-row { margin: 0 0 16px; }
.eyebrow-row .pill { background: none; border: 0; padding: 0; color: var(--text-muted); text-transform: none; letter-spacing: .01em; font-weight: 450; font-size: 13px; }
.hero-title { font-size: clamp(35px,4.6vw,64px); font-weight: 650; letter-spacing: -.055em; line-height: 1.1; color: var(--text-primary); }
.title-two { color: var(--accent); }
.hero-subtitle { max-width: 760px; font-size: 24px; font-weight: 450; line-height: 1.42; margin: 20px auto 12px; letter-spacing: -.026em; color: var(--text-primary); }
.hero-tagline { max-width: 680px; font-size: 15px; line-height: 1.6; font-weight: 400; margin: 0 auto 24px; color: var(--text-secondary); }
.resource-bar { gap: 9px; margin: 0 0 14px; }
.res-pill { border: 1px solid var(--line-strong); border-radius: 7px; padding: 9px 14px; gap: 7px; background: var(--surface-1); font-size: 13px; font-weight: 550; min-height: 40px; }
.res-pill:hover { transform: translateY(-1px); background: var(--surface-2); border-color: var(--accent); }
.res-pill img, .res-pill svg { width: 15px; height: 15px; }
.soon-dot { background: transparent; color: var(--text-muted); font-size: 10px; font-weight: 450; text-transform: none; padding: 0 0 0 2px; border-radius: 0; }
.jump-row { gap: 25px; margin: 18px 0 0; font-size: 13px; }
.paper-text-link { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.paper-text-link:hover { text-decoration-color: currentColor; }
.intro-stage-wrap { margin-top: 34px; max-width: 1136px; }
.intro-card { padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-1); box-shadow: var(--shadow-lg); overflow: hidden; }
.intro-video-frame { border: 0; border-radius: 0; aspect-ratio: 16/9; }
.intro-video-frame video { width: 100%; height: 100%; }
.intro-topbar { margin: 0; padding: 13px 20px; gap: 14px; }
.intro-title-group { gap: 12px; font-size: 13px; }
.intro-title-group strong { font-weight: 550; }
.intro-meta { font-size: 11px; }
.intro-audio-group .btn { min-height: 34px; padding: 5px 10px; font-size: 11px; }
.paper-chapters { padding: 0 20px 12px; color: var(--text-muted); font-size: 12px; }
.paper-chapters summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.paper-chapters[open] summary { margin-bottom: 8px; }
.intro-chapters { gap: 7px; }
.chap-btn { background: transparent; font-size: 11px; font-weight: 450; padding: 7px 9px; border-radius: 5px; }
.chap-btn.active { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent); }
.paper-facts { max-width: 1080px; padding-block: 32px 0; }
.stat-strip { max-width: none; gap: 0; padding: 0 0 35px; border-bottom: 1px solid var(--line); }
.stat-box { border: 0; background: none; border-radius: 0; padding: 4px 18px; text-align: center; }
.stat-box + .stat-box { border-left: 1px solid var(--line); }
.stat-num { font-size: 26px; font-weight: 550; letter-spacing: -.04em; line-height: 1.4; }
.stat-txt { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }

/* Full-width media and aligned reading measures throughout. */
.section { padding: 76px 0; border: 0; }
.section-alt { background: var(--bg-alt); }
.section-head-compact { gap: 24px; margin-bottom: 30px; align-items: flex-end; flex-wrap: nowrap; }
.section-head-compact > div:first-child { flex: 1; min-width: 0; }
.kicker { font-size: 12px; line-height: 1.4; letter-spacing: .025em; text-transform: none; font-weight: 550; margin-bottom: 11px; color: var(--accent); }
.sec-title { font-size: clamp(26px,2.65vw,36px); line-height: 1.2; letter-spacing: -.04em; font-weight: 550; }
.sec-sub { font-size: 15px; line-height: 1.7; max-width: 795px; margin: 14px 0 0; font-weight: 400; }
.sec-sub code { padding: 0; border: 0; background: none; font-family: inherit; font-size: inherit; }
.section-head-compact > .btn { white-space: nowrap; flex: 0 0 auto; }
.btn { font-size: 13px; font-weight: 550; min-height: 39px; padding: 8px 14px; border-radius: 7px; transition: background .2s,color .2s,transform .2s; }
.btn-xs { font-size: 12px; min-height: 35px; padding: 7px 11px; }
.btn-secondary { border-color: var(--line-strong); background: var(--surface-1); }
.btn-ghost { border-color: var(--line); }
.sync-btns { flex-shrink: 0; gap: 7px; }
.coverage-axes { margin: 30px 0; gap: 30px; }
.axis-card { background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 14px; line-height: 1.7; }
.axis-card + .axis-card { border-left: 1px solid var(--line); padding-left: 30px; }
.axis-tag { font-size: 13px; color: var(--text-primary); font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; text-transform: none; }
.axis-card strong { font-weight: 400; color: var(--text-secondary); }
.paper-fig-frame { border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: none; transition: border-color .2s; }
.paper-fig-frame:hover { transform: none; border-color: var(--accent); }
.paper-fig-frame img { border-radius: 0; }
.fig-zoom-hint { top: auto; bottom: 10px; right: 14px; padding: 3px 7px; font-size: 11px; font-weight: 450; background: rgba(255,255,255,.94); color: #4a5668; }

/* A flat control hierarchy: view, example, then agent/level. */
.control-panel { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 23px; }
.control-row { gap: 18px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mode-tabs { gap: 4px; }
.mode-tab { background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 13px; min-height: 39px; padding: 8px 13px; font-weight: 500; }
.mode-tab:hover { background: var(--surface-2); }
.mode-tab.active,.mode-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg-group { background: transparent; padding: 2px; gap: 1px; border-color: var(--line); border-radius: 7px; flex-wrap: wrap; }
.seg-btn { font-size: 12px; font-weight: 500; padding: 7px 11px; min-height: 34px; border-radius: 5px; }
.seg-btn.active,.seg-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.select-compact { font-size: 12px; font-weight: 500; min-height: 35px; border-radius: 7px; background: var(--surface-1); border-color: var(--line); max-width: 100%; }
.task-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(122px,1fr)); gap: 7px; margin-top: 18px; }
.task-btn { background: var(--surface-1); border: 1px solid var(--line); border-radius: 7px; padding: 10px 10px 11px; transition: border-color .2s,background .2s; min-width: 0; }
.task-btn:hover { transform: none; border-color: var(--line-strong); background: var(--surface-2); }
.task-btn.active { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 .4px var(--accent); }
.tb-top { font-size: 10px; font-weight: 500; margin-bottom: 5px; gap: 5px; line-height: 1.3; }
.tb-name { font-size: 12px; font-weight: 550; white-space: normal; line-height: 1.35; min-height: 2.7em; overflow: visible; text-overflow: clip; }
.control-subrow { margin-top: 18px; padding-top: 18px; border-color: var(--line); gap: 11px; }
.control-subrow > .mono { font-family: inherit; }
.agent-chips { gap: 6px; }
.agent-chip { border: 1px solid var(--line); background: transparent; padding: 8px 10px; min-height: 36px; border-radius: 6px; font-size: 12px; font-weight: 450; gap: 7px; }
.agent-chip img { width: 15px; height: 15px; }
.agent-chip.active,.agent-chip[aria-pressed="true"] { background: var(--surface-1); border-color: var(--accent); color: var(--accent); }
.task-mini-bar { border: 0; background: transparent; padding: 0; margin: 26px 0 22px; gap: 18px; font-size: 13px; line-height: 1.75; }
.tmb-brief { min-width: 0; flex: 1 1 400px; max-width: 860px; }
.tmb-brief strong { font-weight: 650; }
.tmb-ref { flex-shrink: 0; }
.tmb-ref img,.tmb-ref video { border: 1px solid var(--line); width: 112px; border-radius: 6px; }
.pill { font-weight: 500; font-size: 11px; }
.pill-accent { background: var(--accent-soft); border-color: var(--line); color: var(--accent); }
.level-pill { background: none; border: 0; padding: 2px 0; border-radius: 0; font-weight: 550; font-size: 12px; gap: 7px; }
.level-pill .dot { width: 6px; height: 6px; }

/* Comparison media share a single frame and type system. */
.clay-matrix-header { grid-template-columns: 162px repeat(3,minmax(0,1fr)); gap: 16px; padding: 0; margin-bottom: 12px; }
.clay-matrix-row { grid-template-columns: 162px repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.clay-row-agent { padding: 12px 0; background: transparent; border: 0; border-radius: 0; gap: 8px; }
.cra-top { font-size: 13px; font-weight: 600; align-items: flex-start; line-height: 1.45; }
.cra-top img { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.cra-meta { font-size: 11px; line-height: 1.5; }
.grid-3,.grid-4 { gap: 18px; }
.vid-card { border: 1px solid var(--line); border-radius: 9px; box-shadow: none; transition: border-color .2s; }
.vid-card:hover { transform: none; border-color: var(--line-strong); }
.vid-head { background: var(--surface-1); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 550; line-height: 1.4; min-height: 36px; flex-wrap: wrap; }
.vid-head .mono { font-size: 10px; }
.vid-box { background: #e8e9eb; }
.clay-eval-foot { padding: 10px 11px 11px; border-top: 0; gap: 7px; }
.cef-row { font-size: 11px; gap: 5px; flex-wrap: wrap; }
.cef-rubric { font-weight: 550; }
.cef-cp { font-size: 10px; }
.cef-track { height: 3px; border-radius: 2px; }
.wipe-stage-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.wipe-viewport { border: 1px solid var(--line); border-radius: 11px; max-width: 1070px; margin-inline: auto; }
.wipe-handle { background: #1c2533; font-weight: 500; }
.vp-badge { font-size: 11px; font-weight: 500; border-radius: 5px; padding: 5px 9px; line-height: 1.35; }
.transport-bar { background: transparent; border: 0; border-radius: 0; margin: 12px auto 0; padding: 0; max-width: 1070px; gap: 12px; }
.timeline-scrub { min-width: 50px; }

/* Results read like a publication, not a dashboard. */
.kpi-row { gap: 32px; margin: 34px 0 38px; }
.kpi-card { padding: 0; border: 0; background: none; border-radius: 0; }
.kpi-card + .kpi-card { padding-left: 32px; border-left: 1px solid var(--line); }
.kpi-num { font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1.25; }
.kpi-title { margin-top: 11px; font-size: 14px; font-weight: 550; }
.kpi-sub { font-size: 12px; line-height: 1.65; margin-top: 5px; max-width: 300px; }
.quant-tabs { gap: 0; margin-bottom: 26px; border-bottom: 1px solid var(--line-strong); }
.quant-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 14px 18px 16px; margin-bottom: -1px; }
.quant-tab.active,.quant-tab[aria-selected="true"] { background: var(--accent-soft); border-bottom-color: var(--accent); }
.qtab-step { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.qtab-name { font-size: 15px; font-weight: 550; margin-top: 3px; }
.lb-card { border: 0; border-radius: 0; padding: 0; background: transparent; margin-bottom: 32px; }
.lb-card-head { gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.lb-card-head h3 { font-size: 19px; font-weight: 550; letter-spacing: -.02em; }
.lb-card-sub { font-size: 12px; max-width: 680px; line-height: 1.65; margin-top: 7px; }
.table-scroll { border: 1px solid var(--line); border-radius: 9px; scrollbar-width: thin; }
.data-table { font-size: 13px; }
.data-table th,.data-table td { padding: 15px 16px; border-color: var(--line); }
.data-table thead th { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 550; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { font-weight: 550; }
.bar-track { height: 5px; width: 74px; border-radius: 2px; }
.bar-fill { border-radius: 2px; }
.chart-legend { font-size: 12px; gap: 16px; margin: 10px 0 15px; }
.legend-item { font-weight: 450; }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; }
.svg-wrap { padding: 20px; background: var(--surface-1); border-radius: 9px; border-color: var(--line); }
.svg-wrap h4 { font-size: 14px; font-weight: 550; margin-bottom: 14px; }
.model-score-cards { gap: 16px; }
.msc-card { border-radius: 9px; }
.msc-head { font-weight: 550; }
.heatmap-table th { font-weight: 550; }
.heatmap-table td.hm-agent { font-weight: 500; }

/* Closing matter. */
.section-compact { padding: 58px 0; }
.bibtex-card { background: none; padding: 0; border: 0; border-radius: 0; max-width: 980px; margin: 0 auto; }
.bibtex-head { margin-bottom: 18px; }
.bibtex-head strong { font-size: 22px; font-weight: 550; letter-spacing: -.025em; }
.bibtex-pre { background: var(--surface-1); border: 1px solid var(--line); border-radius: 9px; padding: 24px; font-size: 12px; line-height: 1.8; }
.site-footer { padding: 28px 0; font-size: 11px; }
.footer-inner { align-items: center; gap: 20px; }
.site-footer strong { font-weight: 600; }
.site-footer a { color: var(--accent); }
.lightbox-box { border-radius: 12px; }
.lightbox-head { padding: 14px 20px; font-size: 14px; font-weight: 550; }

@media (max-width:1120px) {
  .main-nav { display: none; }
  .topbar-actions { margin-left: auto; }
  .icon-btn.mobile-menu-btn { display: inline-flex; }
  .clay-matrix-header { display: grid; grid-template-columns: 140px repeat(3,minmax(0,1fr)); }
  .clay-matrix-row { grid-template-columns: 140px repeat(3,minmax(0,1fr)); }
  .hero-title { font-size: 56px; }
  .hero-subtitle { font-size: 22px; }
  .section-head-compact { flex-wrap: wrap; }
  .section-head-compact > div:first-child { flex-basis: 75%; }
  .task-strip { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
}
@media (max-width:820px) {
  .container { padding-inline: 28px; }
  .hero { padding-top: 46px; }
  .hero-title { font-size: clamp(34px,6.5vw,52px); }
  .hero-subtitle { font-size: 21px; max-width: 640px; }
  .hero-tagline { max-width: 530px; }
  .stat-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stat-box { padding-inline: 10px; }
  .stat-num { font-size: 23px; }
  .stat-txt { font-size: 11px; }
  .section { padding: 56px 0; }
  .sec-title { font-size: 30px; }
  .sec-sub { font-size: 14px; }
  .coverage-axes { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .axis-card { font-size: 12px; }
  .axis-card + .axis-card { padding-left: 18px; }
  .axis-tag { font-size: 12px; }
  .kpi-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .kpi-card + .kpi-card { padding-left: 20px; }
  .kpi-num { font-size: 27px; }
  .kpi-title { font-size: 12px; }
  .kpi-sub { font-size: 11px; }
  .quant-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quant-tab { padding: 12px 10px; }
  .qtab-name { font-size: 13px; }
  .clay-matrix-header { display: none; }
  .clay-matrix-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
  .clay-row-agent { grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 0; flex-wrap: wrap; }
  .cra-meta { font-size: 10px; }
  .grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .vid-head { padding: 9px; }
  .level-pill { font-size: 11px; }
  .cef-row { font-size: 10px; }
  .paper-fig-frame { padding: 14px; }
}
@media (max-width:600px) {
  .container { padding-inline: 20px; }
  .topbar-inner { min-height: 59px; gap: 10px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 20px; }
  .icon-btn { padding: 7px 9px; min-height: 36px; }
  .hero { padding-top: 36px; }
  .eyebrow-row { margin-bottom: 15px; }
  .eyebrow-row .pill { font-size: 11px; }
  .hero-title { font-size: clamp(29px,7.5vw,43px); letter-spacing: -.05em; }
  .hero-subtitle { font-size: 18px; line-height: 1.5; margin: 16px auto 12px; max-width: 390px; }
  .desktop-break { display: none; }
  .hero-tagline { font-size: 13px; max-width: 340px; margin-bottom: 21px; }
  .resource-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-width: 320px; margin-inline: auto; }
  .res-pill { justify-content: center; }
  .res-pill { padding: 8px 11px; gap: 6px; font-size: 12px; min-height: 38px; }
  .soon-dot { font-size: 9px; }
  .jump-row { gap: 20px; font-size: 12px; margin-top: 16px; }
  .intro-stage-wrap { margin-top: 25px; }
  .intro-card { border-radius: 9px; }
  .intro-topbar { padding: 11px 13px; gap: 8px; }
  .intro-title-group { font-size: 11px; gap: 7px; }
  .intro-meta { display: none; }
  .intro-audio-group { gap: 6px; }
  .intro-audio-group .btn { padding: 4px 7px; min-height: 32px; font-size: 10px; }
  .paper-chapters { font-size: 11px; padding: 0 13px 10px; }
  .intro-chapters { display: flex; }
  .paper-facts { padding-top: 25px; }
  .stat-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 0; padding-bottom: 30px; }
  .stat-box { padding: 0 10px; }
  .stat-box:nth-child(3) { border-left: 0; }
  .stat-num { font-size: 25px; }
  .stat-txt { font-size: 11px; }
  .section { padding: 45px 0; }
  .section-head-compact { margin-bottom: 23px; gap: 18px; }
  .section-head-compact > div:first-child { flex-basis: 100%; }
  .kicker { font-size: 11px; margin-bottom: 10px; }
  .sec-title { font-size: 27px; letter-spacing: -.035em; }
  .sec-sub { font-size: 13px; line-height: 1.7; margin-top: 12px; }
  .coverage-axes { grid-template-columns: 1fr; gap: 17px; margin: 24px 0; }
  .axis-card { font-size: 13px; }
  .axis-card + .axis-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 17px; }
  .axis-tag { margin-bottom: 5px; font-size: 12px; }
  .paper-fig-frame { padding: 9px 9px 24px; border-radius: 9px; }
  .fig-zoom-hint { font-size: 10px; bottom: 4px; right: 7px; padding: 2px 4px; }
  .control-row { align-items: flex-start; gap: 13px; padding-bottom: 14px; }
  .mode-tabs { width: 100%; gap: 3px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .mode-tab { white-space: nowrap; font-size: 12px; padding: 8px 11px; min-height: 38px; flex: 0 0 auto; }
  .seg-btn { font-size: 11px; padding: 7px 10px; min-height: 35px; }
  .task-strip { display: flex; overflow-x: auto; gap: 7px; padding: 2px 1px 10px; margin-top: 15px; scrollbar-width: thin; }
  .task-btn { flex: 0 0 132px; padding: 10px; }
  .tb-top { font-size: 10px; }
  .tb-name { font-size: 12px; }
  .agent-chip { padding: 8px 9px; min-height: 37px; font-size: 11px; }
  .agent-chips { gap: 6px; }
  .control-subrow { padding-top: 14px; margin-top: 14px; }
  .task-mini-bar { font-size: 12px; line-height: 1.7; margin: 19px 0; }
  .tmb-ref { width: 100%; justify-content: flex-start; }
  .tmb-ref img,.tmb-ref video { width: 120px; }
  .clay-matrix-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 25px; }
  .clay-row-agent { grid-column: auto; gap: 6px 13px; padding-bottom: 1px; }
  .cra-top { width: 100%; font-size: 13px; }
  .cra-meta { font-size: 11px; }
  .vid-head { padding: 10px 12px; font-size: 12px; min-height: 39px; }
  .vid-head .mono { font-size: 11px; }
  .clay-eval-foot { padding: 10px 12px 12px; }
  .cef-row { font-size: 11px; }
  .cef-cp { font-size: 11px; }
  .grid-3,.grid-4 { grid-template-columns: 1fr; gap: 15px; }
  .vp-badge { font-size: 9px; max-width: calc(50% - 14px); padding: 4px 6px; }
  .vp-tl { top: 8px; left: 7px; }
  .vp-tr { top: 8px; right: 7px; text-align: right; }
  .vp-scores { bottom: 8px; left: 7px; gap: 5px; right: 7px; }
  .vp-scores .vp-badge { max-width: none; }
  .wipe-viewport { border-radius: 9px; }
  .transport-bar { gap: 7px; flex-wrap: wrap; }
  .transport-bar .timeline-scrub { flex-basis: 80px; }
  .transport-bar .mono { font-size: 10px !important; }
  .transport-bar .btn { padding-inline: 9px; }
  .kpi-row { grid-template-columns: 1fr; gap: 22px; margin: 28px 0; }
  .kpi-card { display: grid; grid-template-columns: 142px minmax(0,1fr); column-gap: 15px; }
  .kpi-card + .kpi-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .kpi-num { grid-row: 1/3; font-size: 25px; padding-top: 1px; }
  .kpi-title { font-size: 12px; margin: 0; }
  .kpi-sub { font-size: 11px; line-height: 1.6; max-width: none; }
  .quant-tabs { gap: 0; margin-bottom: 24px; }
  .quant-tab { padding: 12px 8px; }
  .qtab-step { font-size: 9px; }
  .qtab-name { font-size: 11px; line-height: 1.4; }
  .lb-card-head { gap: 13px; margin-bottom: 17px; }
  .lb-card-head h3 { font-size: 17px; }
  .lb-card-sub { font-size: 11px; }
  .data-table { font-size: 12px; }
  .data-table th,.data-table td { padding: 12px; }
  .data-table thead th { font-size: 10px; }
  .dual-charts { grid-template-columns: 1fr; }
  .svg-wrap { padding: 11px; }
  .svg-wrap h4 { font-size: 13px; }
  .bibtex-head strong { font-size: 20px; }
  .bibtex-pre { padding: 17px; font-size: 10px; }
  .footer-inner { gap: 13px; font-size: 11px; line-height: 1.7; }
}
@media (max-width:360px) {
  .container { padding-inline: 16px; }
  .brand { font-size: 12px; gap: 7px; }
  .brand-mark { width: 17px; }
  .topbar-inner { gap: 6px; }
  .topbar-actions { gap: 5px; }
  .icon-btn { padding: 6px 8px; }
  .hero-title { font-size: 29px; }
  .hero-subtitle { font-size: 16px; }
  .res-pill { padding: 8px; font-size: 11px; gap: 5px; }
  .soon-dot { font-size: 8px; padding: 0; }
  .resource-bar { max-width: 270px; margin-inline: auto; }
  .jump-row { gap: 16px; font-size: 11px; }
  .intro-title-group { font-size: 10px; }
  .kpi-card { grid-template-columns: 118px minmax(0,1fr); gap: 10px; }
  .kpi-num { font-size: 22px; }
  .sec-title { font-size: 25px; }
  .mode-tab { font-size: 11px; padding-inline: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}

/* The explorer is a compact secondary destination; homepage design is independent. */
html { scroll-padding-top: 84px; }
.container { max-width: 1400px; padding-inline: 36px; }
.topbar-inner { min-height: 64px; }
.main-nav { gap: 7px; }
.main-nav a { font-size: 13px; padding: 8px 11px; }
.main-nav .project-return { margin-left: 14px; border-left: 1px solid var(--line); padding-left: 22px; color: var(--accent); }
.browser-intro { padding-top: 34px; padding-bottom: 30px; }
.browser-intro .kicker { margin-bottom: 8px; font-size: 11px; }
.browser-intro h1 { margin: 0; font-size: clamp(29px,3vw,40px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; }
.browser-intro > p { margin: 11px 0 14px; max-width: 820px; color: var(--text-secondary); font-size: 14px; }
.browser-scale { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--text-muted); font-size: 11px; }
.browser-scale span { color: var(--line-strong); }
.section { padding: 39px 0 45px; border-top: 1px solid var(--line); }
.section-head-compact { margin-bottom: 22px; gap: 22px; }
.kicker { font-size: 11px; margin-bottom: 7px; }
.sec-title { font-size: clamp(23px,2vw,29px); line-height: 1.2; }
.sec-sub { margin-top: 10px; max-width: 800px; font-size: 13px; line-height: 1.65; }
.control-panel { margin-bottom: 16px; }
.task-strip { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 7px; }
.task-btn { padding: 9px 10px; }
.tb-name { min-height: 2.7em; }
.task-mini-bar { margin-top: 17px; margin-bottom: 20px; gap: 10px 20px; }
.browser-delivery-note { width: 100%; color: var(--text-secondary); font-size: 11px; padding-left: 10px; border-left: 2px solid var(--line-strong); }
.browser-task-context { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-1); }
.browser-task-context summary,.browser-native-scores summary { padding: 10px 13px; cursor: pointer; font-size: 12px; font-weight: 550; color: var(--accent); }
.browser-task-detail { padding: 0 16px 14px; }
.browser-task-detail > p { margin: 6px 0 13px; }
.browser-level-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.browser-level-notes strong { color: var(--text-primary); }
.browser-level-notes p { margin: 5px 0; }
.browser-context-caption { font-size: 11px; color: var(--text-muted); line-height: 1.65; overflow-wrap: anywhere; }
.browser-context-caption code { font-size: 10px; }
.browser-checkpoints { padding-left: 20px; margin: 10px 0 0; }
.browser-checkpoints li { padding-left: 4px; margin-top: 12px; }
.browser-checkpoints p { margin: 3px 0; }
.browser-checkpoints small { color: var(--text-muted); font-size: 11px; }
.browser-native-scores { margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; }
.browser-native-scores .table-scroll { border: 0; border-radius: 0; }
.browser-native-scores .browser-context-caption { margin: 12px; }
.browser-native-scores .data-table th,.browser-native-scores .data-table td { padding: 10px 13px; text-align: left; }
.clay-matrix-header,.clay-matrix-row { grid-template-columns: 158px repeat(3,minmax(0,1fr)); gap: 14px; }
.clay-row-agent { justify-content: flex-start; }
.cra-meta { max-width: 150px; }
.quant-tabs { margin-top: 22px; }
.lb-card-head { margin-bottom: 18px; }
.browser-protocol-section { padding: 26px 0; }
.browser-protocol { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.browser-protocol > summary { cursor: pointer; padding: 15px 20px; color: var(--text-primary); font-size: 14px; font-weight: 550; }
.protocol-summary-note { color: var(--text-muted); font-size: 11px; font-weight: 400; margin-left: 14px; }
.protocol-body { padding: 0 20px 20px; }
.protocol-copy { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 6px 0 16px; }
.protocol-copy p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.75; }
.protocol-copy strong { display: block; color: var(--text-primary); margin-bottom: 5px; }
.protocol-figures { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.protocol-figures button { border: 1px solid var(--line); border-radius: 6px; padding: 0; overflow: hidden; background: var(--surface-1); color: var(--accent); cursor: pointer; text-align: left; }
.protocol-figures img { width: 100%; aspect-ratio: 2/1; object-fit: contain; background: #fff; padding: 10px; }
.protocol-figures span { display: block; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 11px; }
.protocol-figures button:hover { border-color: var(--accent); }
#citation { padding: 30px 0; }
.bibtex-card { max-width: none; }
.bibtex-head { margin-bottom: 13px; }
.bibtex-head strong { font-size: 19px; }
.bibtex-pre { padding: 18px; font-size: 11px; }
.site-footer { padding-block: 23px; }

@media (min-width:960px) {
  .main-nav { display: flex; }
  .icon-btn.mobile-menu-btn { display: none; }
}
@media (max-width:1100px) {
  .task-strip { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
}
@media (max-width:959px) {
  .main-nav { display: none; }
  .icon-btn.mobile-menu-btn { display: inline-flex; }
  .container { padding-inline: 26px; }
  .browser-intro { padding-top: 28px; padding-bottom: 25px; }
  .clay-matrix-header { display: none; }
  .clay-matrix-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .clay-row-agent { grid-column: 1/-1; flex-direction: row; align-items: center; gap: 8px 16px; padding: 0; flex-wrap: wrap; }
  .cra-meta { max-width: none; }
  .browser-protocol .protocol-copy { grid-template-columns: 1fr; gap: 14px; }
  .protocol-figures { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  html { scroll-padding-top: 76px; }
  .container { padding-inline: 18px; }
  .topbar-inner { min-height: 58px; }
  .browser-intro { padding-top: 23px; padding-bottom: 23px; }
  .browser-intro h1 { font-size: 31px; max-width: 290px; }
  .browser-intro > p { font-size: 12px; margin-block: 11px; }
  .browser-scale { font-size: 10px; line-height: 1.7; display: block; }
  .browser-scale span { margin-inline: 5px; }
  .section { padding-block: 29px; }
  .sec-title { font-size: 24px; }
  .sec-sub { font-size: 12px; }
  .section-head-compact { gap: 14px; margin-bottom: 19px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .task-strip { display: flex; }
  .clay-matrix-row { grid-template-columns: 1fr; }
  .clay-row-agent { grid-column: auto; }
  .clay-matrix-row .cra-top { width: 100%; }
  .browser-level-notes { grid-template-columns: 1fr; gap: 9px; }
  .browser-level-notes p { margin-bottom: 3px; }
  .browser-task-detail { padding-inline: 13px; }
  .browser-delivery-note { font-size: 11px; }
  .browser-task-context summary { min-height: 44px; }
  .protocol-summary-note { display: block; margin: 4px 0 0 15px; font-size: 10px; }
  .browser-protocol > summary { padding: 13px; }
  .protocol-body { padding-inline: 13px; padding-bottom: 13px; }
  .protocol-figures { gap: 9px; }
  .protocol-figures span { padding: 9px; font-size: 10px; }
  .browser-native-scores .data-table { min-width: 520px; }
  .browser-protocol-section { padding-block: 20px; }
  .bibtex-pre { font-size: 10px; }
}
