/* Hallmark v2 | Anantam evidence routes | one working canvas per task */
/* Critique: replace stacked legacy panels with focused evidence views and reading structure. */
body:not([data-page='index']) main.container { max-width: 1360px; padding-top: 62px; }
.editorial-head { align-items: end; margin-bottom: 52px; gap: 48px; }
.editorial-head h1 { font-size: var(--title-size); line-height: 1.04; max-width: 16ch; }
.editorial-head p { margin-top: 20px; font-size: var(--lede-size); max-width: 54ch; }
.editorial-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 185px; padding-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.editorial-aside strong { font-family: var(--font-display); font-size: 54px; line-height: 1; font-weight: 400; color: var(--text-primary); }
.editorial-aside a { margin-top: 12px; color: var(--text-secondary); font-size: 12px; }
.evidence-workspace { min-width: 0; margin-top: 32px; }
.workspace-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px; width: fit-content; background: var(--surface-2); border-radius: var(--radius-control); margin-bottom: 28px; }
.workspace-tabs button, .metric-views button { border: 0; border-radius: var(--radius-control); min-height: 44px; padding: 10px 24px; background: transparent; color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.workspace-tabs [aria-selected='true'], .metric-views [aria-pressed='true'] { background: var(--surface-1); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow); }
.workspace-panel { min-width: 0; padding: 32px; background: var(--surface-1); border-radius: var(--radius-surface); }
.workspace-panel > .panel, .workspace-panel > div > .panel { background: transparent; border: 0; padding: 0; margin: 0 0 36px; }
.workspace-panel > :last-child, .workspace-panel > div:last-child > .panel { margin-bottom: 0; }
.workspace-panel h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.workspace-panel .section-head p { font-size: 12px; max-width: 68ch; }
.workspace-panel .table-wrap, .method-article .table-wrap { border: 0; border-radius: 0; }
.workspace-panel th, .workspace-panel td { padding: 16px 14px; }
.workspace-panel table { font-size: 12px; }
.workspace-panel .section-head { margin-bottom: 24px; }
.section-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.workspace-panel .component-bar .bar-fill.series-0 { background: var(--accent); }
.workspace-panel .component-bar .bar-fill.series-1 { background: var(--series-1); }
.workspace-panel .component-bar .bar-fill.series-2 { background: var(--series-3); }
.workspace-panel .component-group { border: 0; }
.evidence-detail { margin-top: 22px; min-width: 0; }
.evidence-detail > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer; font-size: 13px; color: var(--text-secondary); padding: 16px 0; min-height: 48px; }
.evidence-detail > summary::-webkit-details-marker { display: none; }
.evidence-detail > summary > span { font-size: 19px; font-weight: 400; }
.evidence-detail[open] > summary > span { transform: rotate(45deg); }
.evidence-detail[open] > summary { margin-bottom: 14px; }
.evidence-detail:not([open]) > :not(summary) { display: none; }
.evidence-detail > .panel, .evidence-detail > div > .panel { padding: 0; background: transparent; border: 0; }
.evidence-copy { font-size: 13px; color: var(--text-muted); max-width: 78ch; padding-block: 4px 24px; }
.workspace-caveat { max-width: 100ch; padding: 14px 2px; font-size: 12px; }
/* Leaderboard: search, choose a measurement lens, inspect a readable result row. */
.leaderboard-workspace { background: var(--surface-1); border-radius: var(--radius-surface); padding: 32px; }
.explorer-search { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(140px, 190px) minmax(140px, 190px) auto; align-items: end; gap: 20px; }
.explorer-search .search-field { min-width: 0; }
.explorer-search .search-field input { width: 100%; min-width: 0; }
.explorer-search .field input, .explorer-search .field select, .sort-field select { height: 46px; border-radius: 10px; font-size: 13px; }
.explorer-search .button { min-height: 46px; }
.explorer-views { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 32px 0 20px; }
.metric-views { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-control); }
.metric-views button { padding-inline: 20px; }
.sort-field { min-width: 150px; }
#result-count { font-size: 12px; margin-bottom: 16px; }
.leaderboard-workspace .table-wrap { border: 0; border-radius: 0; max-height: none; }
.leaderboard-workspace .focused-table { min-width: 720px; font-size: 13px; table-layout: auto; }
.focused-table th, .focused-table td { padding: 19px 16px; border-bottom: 1px solid var(--grid); background: var(--surface-1); }
.focused-table thead th { font-weight: 450; font-size: 12px; color: var(--text-muted); padding-block: 12px; position: static; }
.focused-table thead button { min-height: 44px; padding: 6px 0; font-size: inherit; }
.focused-table .model-cell { min-width: 280px; padding-inline: 12px 30px; }
.focused-table .model-name { font-size: 15px; font-weight: 500; }
.focused-table .model-provider { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.focused-table .provider-chip { font-size: 12px; background: transparent; padding: 0; border: 0; }
.model-kind { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.mobile-rank { display: none; }
.focused-table .rank { font-size: 13px; color: var(--text-muted); width: 44px; }
.focused-table .score-cell { min-width: 140px; }
.focused-table .score-cell b { font-size: 25px; font-weight: 450; letter-spacing: -.025em; }
.score-confidence { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.compare-check { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.focused-table tr.selected td, .focused-table tr.selected th { background: var(--accent-soft); }
.explorer-foot > p { color: var(--text-muted); font-size: 12px; margin-top: 20px; }
.explorer-foot .evidence-detail { margin-top: 4px; }
body[data-page='leaderboard'] .selection-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); border: 0; border-radius: 18px; padding: 14px 20px; gap: 16px; margin: 0; z-index: 25; }
body[data-page='leaderboard'] .selection-bar .muted { display: none; }
body[data-page='leaderboard'] .selection-bar .primary { background: var(--surface-1); color: var(--text-primary); border: 0; }
body[data-page='leaderboard'] .selection-bar > button { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
body[data-page='leaderboard'] .selection-bar[data-count='0'] { display: none; }
/* Comparison: the policies themselves lead; additional evidence lives in three views. */
.comparison-controls { padding: 24px 0 8px; background: transparent; }
.comparison-selection { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 16px; }
.comparison-selection h2 { font-size: 16px; font-weight: 500; }
.comparison-selection span { font-size: 12px; color: var(--text-muted); }
.compare-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.compare-picker .field { min-width: 0; width: 100%; }
.compare-picker select { width: 100%; max-width: 100%; min-width: 0; }
.optional-models { grid-column: span 2; align-self: end; }
.optional-models > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--text-secondary); font-size: 12px; padding: 10px 18px; border-radius: var(--radius-control); background: var(--surface-2); }
.optional-model-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-top: 16px; }
.optional-models:not([open]) > :not(summary) { display: none; }
.comparison-controls > .note { font-size: 12px; margin-top: 8px; }
#comparison-content > .compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; padding-block: 38px 12px; }
.compare-grid .compare-card { padding: 24px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; }
.compare-card .compare-kind { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.compare-card h2 { font-size: 21px; font-weight: 500; min-height: 58px; overflow-wrap: anywhere; }
.compare-card h2 a { color: var(--text-primary); text-decoration: none; }
.compare-card h2 .name-tail { display: inline-block; }
.compare-card > .metric-value { font-family: var(--font-display); font-size: 82px; line-height: 1.1; font-weight: 400; margin-block: 16px 4px; }
.compare-card > .muted, .compare-card > .metric-note { font-size: 12px; }
.compare-card .metric-list { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.compare-card .metric-row { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; font-size: 12px; }
.compare-card .metric-row dd { font-size: 16px; font-weight: 500; }
/* Model: a specimen page with one result and navigable evidence. */
body[data-page='model'] .profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: center; background: transparent; border: 0; padding: 0; margin-bottom: 36px; }
.profile-head .breadcrumb { display: inline-block; font-size: 12px; margin-bottom: 24px; color: var(--text-muted); }
.profile-head h1 { font-size: var(--title-size); max-width: 22ch; overflow-wrap: anywhere; }
.profile-head .profile-meta { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.profile-head .profile-meta + p { font-size: 12px; max-width: 68ch; }
.profile-head .toolbar { margin-top: 24px; align-items: end; }
.profile-head .score-hero { border: 0; background: transparent; box-shadow: none; padding: 0; text-align: right; min-width: 0; }
.profile-head .score-hero strong { font-family: var(--font-display); font-size: 112px; line-height: 1; font-weight: 400; color: var(--text-primary); }
.profile-head .score-hero > span, .profile-head .score-hero small { font-size: 12px; font-weight: 400; }
.profile-key-facts { display: grid; background: var(--surface-2); border: 0; border-radius: var(--radius-surface); grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px 28px; gap: 20px 40px; margin-block: 36px 40px; }
.profile-key-facts .metric { background: transparent; border: 0; padding: 0; }
.profile-key-facts .metric-value { font-size: 26px; font-weight: 450; }
.profile-key-facts .metric-label { font-size: 12px; }
.profile-key-facts .metric-note { font-size: 12px; }
/* Scenario studio: challenge navigation and one evidence canvas. */
.scenario-studio { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 48px; align-items: start; }
.challenge-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-offset, 100px) + 20px); }
.challenge-nav button { display: flex; align-items: baseline; gap: 12px; text-align: left; border: 0; border-radius: 12px; padding: 14px 12px; min-height: 48px; background: transparent; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.challenge-nav button > span { font-size: 12px; color: var(--text-muted); }
.challenge-nav button[aria-pressed='true'] { background: var(--accent-soft); color: var(--text-primary); font-weight: 600; }
.scenario-canvas { min-width: 0; }
.scenario-columns.button { display: none; }
.scenario-introduction { padding: 0; }
.scenario-introduction > .section-head { display: none; }
.scenario-introduction > .toolbar { align-items: end; gap: 16px; }
.scenario-introduction .field { min-width: 0; }
.scenario-introduction .field:first-child { flex: 1; }
.scenario-introduction .field:first-child select { width: 100%; }
.scenario-introduction input { min-width: 0 !important; width: 100%; }
#scenario-summary { padding: 32px 0 8px; scroll-margin-top: 24px; }
#scenario-summary h2 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.15; }
#scenario-summary > p { color: var(--text-secondary); font-size: 14px; max-width: 68ch; }
#scenario-summary > .note { font-size: 12px; margin-top: 16px; }
#scenario-summary .metrics { display: flex; gap: 48px; border: 0; background: transparent; margin-top: 24px; }
#scenario-summary .metric { border: 0; background: transparent; padding: 0; }
#scenario-summary .metric-value { font-size: 30px; font-weight: 450; }
#scenario-summary .metric-label { font-size: 12px; }
#scenario-summary .metric-note { display: none; }
.scenario-canvas .workspace-panel { padding: 28px 24px; }
.scenario-canvas .workspace-panel .table-wrap { max-width: 100%; }
.scenario-canvas .workspace-panel .model-name { font-size: 12px; }
.scenario-canvas > .evidence-detail > .panel { background: transparent; }
/* Methodology: a guide, with a table of contents and a continuous reading measure. */
.method-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 80px; justify-content: start; align-items: start; margin-top: 64px; }
.method-contents { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-offset, 100px) + 24px); max-height: calc(100svh - var(--header-offset, 100px) - 120px); overflow-y: auto; overscroll-behavior: contain; }
.method-contents > span { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.method-contents a { color: var(--text-secondary); text-decoration: none; font-size: 12px; min-height: 44px; padding: 11px 0; }
.method-article { min-width: 0; }
.method-article .panel.prose { padding: 0 0 64px; margin: 0; border: 0; border-radius: 0; background: transparent; max-width: none; }
.method-article .panel.prose h2 { font-family: var(--font-display); font-size: 36px; font-weight: 400; margin-bottom: 24px; }
.method-article .panel.prose h3 { font-size: 16px; }
.method-article .panel.prose p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); max-width: 72ch; }
.method-article .panel.prose p + p { margin-top: 16px; }
.method-article .panel.prose > .section-head { display: block; }
.method-article .badge { border: 0; background: var(--surface-2); font-size: 12px; }
.method-article .grid2 { display: block; margin-top: 28px; }
.method-article .grid2 > div + div { margin-top: 24px; }
.method-article .pipeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 24px; background: var(--surface-2); border-radius: var(--radius-surface); margin-block: 28px; }
.method-article .pipeline li { padding: 0; border: 0; background: transparent; min-width: 0; }
.method-article .pipeline li::after { display: none; }
.method-article .pipeline strong { font-size: 12px; }
.method-article .pipeline span { font-size: 12px; }
.method-article table { font-size: 12px; }
.method-article th, .method-article td { padding: 16px 12px; }
.method-article caption { text-align: left; font-size: 12px; padding: 0 0 16px; }
.method-article h2[id] { scroll-margin-top: 130px; }
@media (hover:hover) {
  .metric-views button:hover, .workspace-tabs button:hover { color: var(--text-primary); }
  .challenge-nav button:hover { background: var(--surface-2); }
  .method-contents a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 5px; }
}
@media (max-width:1100px) {
  .explorer-search { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .scenario-studio { grid-template-columns: 200px minmax(0,1fr); gap: 28px; }
  .scenario-introduction > .toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .scenario-introduction .field:first-child { grid-column: 1 / -1; }
  .method-layout { grid-template-columns: 180px minmax(0,1fr); gap: 40px; }
}
@media (max-width:700px) {
  body:not([data-page='index']) main.container { padding-top: 38px; }
  .editorial-head { gap: 24px; margin-bottom: 36px; }
  .editorial-head p { margin-top: 16px; }
  .editorial-aside { min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; }
  .editorial-aside strong { font-size: 24px; }
  .editorial-aside a { margin: 0 0 0 8px; }
  .leaderboard-workspace { padding: 22px 16px; }
  .explorer-search { gap: 16px 12px; }
  .explorer-search .search-field { grid-column: 1 / -1; }
  .explorer-search .field select { min-width: 0; width: 100%; }
  .explorer-search #reset-filters { grid-column: 1 / -1; width: fit-content; min-height: 44px; }
  .explorer-views { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 24px; }
  .metric-views { border-radius: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .metric-views button { padding-inline: 10px; font-size: 12px; }
  .sort-field { min-width: 0; }
  .focused-table .model-cell { min-width: 210px; }
  .focused-table th, .focused-table td { padding: 16px 10px; }
  .leaderboard-workspace .focused-table { min-width: 660px; }
  .leaderboard-workspace .focused-table[data-lens='scores'] { min-width: 0; }
  .focused-table[data-lens='scores'] tr > :nth-child(2), .focused-table[data-lens='scores'] tr > :nth-child(5), .focused-table[data-lens='scores'] tr > :nth-child(6) { display: none; }
  .focused-table[data-lens='scores'] .model-cell { min-width: 0; width: auto; padding-inline: 8px; }
  .focused-table[data-lens='scores'] .score-cell { min-width: 0; width: 76px; padding-inline: 6px; }
  .focused-table[data-lens='scores'] tr > :first-child { padding-inline: 0; width: 44px; }
  .focused-table[data-lens='scores'] .model-kind { display: none; }
  .focused-table[data-lens='scores'] .score-confidence { font-size: 12px; white-space: normal; }
  .mobile-rank { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; margin-bottom: 4px; }
  .focused-table .model-name { font-size: 13px; }
  .focused-table .model-provider { align-items: flex-start; flex-direction: column; gap: 5px; }
  /* One row on every phone width: tabs share the row and scroll sideways only on the narrowest screens. */
  .workspace-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-surface); gap: 4px; padding: 4px; width: 100%; }
  .workspace-tabs::-webkit-scrollbar { display: none; }
  .workspace-tabs button { padding-inline: 10px; flex: 1 0 auto; font-size: 12px; }
  .workspace-panel { padding: 24px 16px; }
  .workspace-panel h2 { font-size: 27px; }
  .workspace-panel table { min-width: 520px; }
  .comparison-controls { padding-top: 0; }
  .compare-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .comparison-controls .field { font-size: 12px; }
  #comparison-content > .compare-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-top: 20px; }
  .compare-card h2 { font-size: 16px; min-height: 56px; }
  .compare-card > .metric-value { font-size: 60px; }
  .compare-card .metric-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .compare-card .metric-row { font-size: 12px; }
  .compare-card .metric-row dd { font-size: 13px; }
  .comparison-selection span { font-size: 12px; }
  body[data-page='model'] .profile-head { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .profile-head .score-hero { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
  .profile-head .score-hero strong { font-size: 84px; }
  .profile-head .score-hero small { display: block; }
  .profile-head .score-hero > span { width: 100%; }
  .profile-head .toolbar { display: block; }
  .profile-head .toolbar .button { margin-top: 16px; }
  .profile-head .field select { width: 100%; min-width: 0; max-width: 100%; }
  .profile-key-facts { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 24px 20px; gap: 24px 16px; }
  .profile-key-facts .metric-value { font-size: 24px; }
  .profile-key-facts .metric-note { display: none; }
  .scenario-studio { grid-template-columns: minmax(0,1fr); gap: 0; }
  .challenge-nav { position: static; flex-direction: row; overflow: auto; margin-inline: -22px; padding: 0 22px 20px; gap: 8px; overscroll-behavior-inline: contain; }
  .challenge-nav button { min-width: 170px; max-width: 200px; background: var(--surface-2); padding: 14px; }
  .challenge-nav button > span { display: none; }
  .scenario-introduction > .toolbar { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .scenario-introduction > .toolbar .field { width: 100%; }
  .scenario-introduction select { width: 100%; min-width: 0; }
  #scenario-summary { padding-top: 28px; }
  #scenario-summary h2 { font-size: 34px; }
  #scenario-summary .metrics { gap: 32px; }
  .scenario-canvas .workspace-panel { padding: 24px 16px; }
  .scenario-canvas .workspace-panel .badge { display: none; }
  .scenario-columns.button { display: inline-flex; min-height: 44px; padding: 8px 12px; font-size: 12px; }
  #scenario-ranking:not([data-expanded='true']) table { min-width: 0; }
  #scenario-ranking:not([data-expanded='true']) tr > :nth-child(3), #scenario-ranking:not([data-expanded='true']) tr > :nth-child(n+5) { display: none; }
  #scenario-ranking:not([data-expanded='true']) th, #scenario-ranking:not([data-expanded='true']) td { padding-inline: 7px; }
  #scenario-ranking:not([data-expanded='true']) tr > :first-child { width: 32px; }
  #scenario-ranking:not([data-expanded='true']) tr > :nth-child(4) { width: 64px; text-align: right; }
  #scenario-ranking[data-expanded='true'] table { min-width: 620px; }
  .method-layout { display: block; margin-top: 36px; }
  .method-contents { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 24px; background: var(--surface-2); border-radius: var(--radius-surface); padding: 24px; margin-bottom: 44px; }
  .method-contents > span { grid-column: 1 / -1; }
  .method-contents a { font-size: 12px; }
  .method-article .panel.prose h2 { font-size: 32px; }
  .method-article .panel.prose p { font-size: 13px; }
  .method-article .pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 20px; }
  .method-article .table-wrap { max-width: 100%; }
  .method-article table { min-width: 500px; }
  body[data-page='leaderboard'] .selection-bar { bottom: 16px; flex-wrap: wrap; justify-content: center; padding: 12px; gap: 10px; }
  body[data-page='leaderboard'] .selection-bar > span:first-child { width: 100%; text-align: center; font-size: 12px; }
}
@media print { .workspace-tabs, .challenge-nav, .method-contents, .comparison-controls, .metric-views { display: none; } .workspace-panel[hidden] { display: block !important; } .scenario-studio, .method-layout { display: block; } .evidence-detail > :not(summary) { display: block !important; } }
.mobile-benchmark-filters > summary { min-height:44px; display:flex; align-items:center; font-size:12px; color:var(--text-secondary); cursor:pointer; list-style:none; }
.mobile-benchmark-filters > summary svg { width:18px; height:18px; margin-left:auto; fill:none; stroke:currentColor; stroke-width:1.4; }
.mobile-benchmark-filters[open] > summary svg { transform:rotate(45deg); }
.filter-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; padding-bottom:16px; }
.filter-fields .sort-field { grid-column:1 / -1; }
@media(max-width:700px) {
  .explorer-search .field input, .filter-fields select { font-size:16px; }
  .explorer-search { display:block; }
  .explorer-views { margin:4px 0 12px; gap:0; }
  .metric-views { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; border-radius:12px; gap:0; }
  .metric-views button { font-size:12px; padding:9px 4px; min-height:44px; }
  .leaderboard-workspace #result-count { margin:8px 0; }
  .leaderboard-workspace #selection-status { position:absolute; }
  /* Phones: 12px minimum for secondary labels. */
  .workspace-caveat, .comparison-controls > .note, .model-kind, .score-confidence, .method-article .badge { font-size:12px; }
  /* Phones: extend table model links to a 44px tap area without changing row layout. */
  td .model-name, .compare-card .model-name { display:inline-block; padding-block:14px; margin-block:-14px; }
  /* Phones: fit the model chooser table without hiding the EMBER column off-screen. */
  body[data-page='model'] .table-wrap th, body[data-page='model'] .table-wrap td { padding-inline:8px; }
  body[data-page='model'] td .badge { white-space:normal; padding:0; border:0; background:none; color:var(--text-muted); }
  body[data-page='model'] td .model-name { overflow-wrap:anywhere; }
}
