:root {
  --page: #f7f8fa;
  --surface: #fff;
  --surface-subtle: #fafbfc;
  --text: #212737;
  --text-secondary: #606b7d;
  --text-muted: #697588;
  --border: #e5e8ee;
  --chart-grid: #e7eaf0;
  --accent: #5145cd;
  --accent-soft: #f0eefe;
  --accent-border: #ddd7fd;
  --green: #287863;
  --green-soft: #edf7f2;
  --shadow: 0 2px 4px #18294403, 0 8px 24px #18294404;
  color: var(--text);
  background: var(--page);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --page: #12151c;
  --surface: #1a1e28;
  --surface-subtle: #1e2330;
  --text: #e8ecf5;
  --text-secondary: #a9b2c5;
  --text-muted: #99a5bc;
  --border: #2d3443;
  --chart-grid: #323a4b;
  --accent: #b1a6ff;
  --accent-soft: #2c2945;
  --accent-border: #534976;
  --green: #8bd2b5;
  --green-soft: #1e3630;
  --shadow: 0 4px 20px #00000012;
  color-scheme: dark;
}

body { background: var(--page); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, tr:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
input, select { accent-color: var(--accent); }
svg { flex-shrink: 0; }
button svg { pointer-events: none; }
::selection { background: var(--accent-border); color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 240px; padding: 12px 20px; background: var(--accent); color: var(--surface); border-radius: 6px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; z-index: 20; display: flex; flex-direction: column; padding: 30px 16px 18px; border-right: 1px solid var(--border); background: var(--surface); }
.workspace-brand { display: flex; align-items: center; gap: 11px; margin: 0 9px 47px; font-size: 23px; font-weight: 750; letter-spacing: -1.1px; }
.workspace-brand small { display: block; font-size: 8px; font-weight: 400; color: var(--text-muted); letter-spacing: .04px; margin-top: 3px; white-space: nowrap; }
.brand-light { font-weight: 400; }
.workspace-mark { width: 33px; height: 35px; border-radius: 10px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 8px; background: #5548d4; box-shadow: 0 3px 8px #5548d41a; }
.workspace-mark i { width: 4px; height: 11px; background: #fff; border-radius: 1.5px; transform: skewY(-10deg); }
.workspace-mark i:nth-child(2) { height: 20px; }.workspace-mark i:nth-child(3) { height: 15px; }
.nav-group-label { display: flex; justify-content: space-between; margin: 0 13px 12px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .055em; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; color: var(--text-secondary); background: none; border: 0; text-align: left; min-height: 42px; padding: 10px 13px; border-radius: 7px; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.nav-item:hover { background: var(--surface-subtle); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-dot { display: none; height: 5px; width: 5px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.active .nav-dot { display: block; }
.nav-count { font-size: 10px; margin-left: auto; color: var(--text-muted); background: var(--page); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.source-group-label { margin-top: 36px; }
.source-group-label > span { color: var(--text-muted); font: 10px 'DM Mono', monospace; }
.source-list { display: grid; gap: 5px; }
.source-list a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; font-size: 11px; color: var(--text-secondary); border-radius: 6px; }
.source-list a:hover { background: var(--page); color: var(--text); }
.source-dot { height: 7px; width: 7px; border-radius: 2px; background: #7b8ce1; flex-shrink: 0; }
.source-1 { background: #c39e6d; }.source-2 { background: #61a58a; }
.external-arrow { margin-left: auto; color: var(--text-muted); }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-bottom .nav-item { font-size: 11px; min-height: 35px; }
.snapshot-note { display: flex; align-items: start; gap: 10px; margin: 0 10px 17px; padding: 15px 0 21px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-secondary); }
.snapshot-note .status-dot { margin-top: 4px; flex-shrink: 0; }
.snapshot-note small { display: block; font-size: 10px; color: var(--text-muted); margin-top: 5px; }
.status-dot { background: #489879; width: 6px; height: 6px; box-shadow: 0 0 0 3px #48987912; border-radius: 50%; display: inline-block; }
.status-error { background: #ce7751; }
.workspace-body { margin-left: 224px; }
.workspace-header { min-height: 75px; padding: 0 38px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 13px; color: var(--text-muted); font-size: 11px; }
.breadcrumb span { color: var(--border); font-size: 18px; font-weight: 400; }
.breadcrumb strong { font-weight: 500; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.snapshot-label { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-muted); margin-right: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 9px 13px; font-size: 11px; font-weight: 500; line-height: 1.5; background: none; color: var(--text-secondary); white-space: nowrap; }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 1px 2px #18294405; }
.button-secondary:hover { background: var(--surface-subtle); border-color: var(--text-muted); }
.button-primary { background: #5548d4; border-color: #5548d4; color: #fff; box-shadow: 0 2px 3px #5548d414; }
.button-primary:hover { background: #4436b8; }
.button-primary:disabled { opacity: .6; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 7px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-secondary); }
.icon-button:hover { color: var(--text); background: var(--surface-subtle); border-color: var(--border); }
.workspace main { max-width: 1560px; margin: 0 auto; padding: 0 38px; outline: 0; }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 27px; }
.intro-kicker { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--accent); font-weight: 500; letter-spacing: .025em; }
.intro-kicker > span { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.page-intro h1 { margin: 10px 0 10px; font-size: clamp(23px, 2.1vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -1.15px; }
.page-intro p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.methodology-button { align-self: end; margin-bottom: 1px; font-size: 10px; padding-right: 0; }
.methodology-button:hover { color: var(--accent); }
.summary-strip { display: flex; align-items: center; gap: 23px; padding: 17px 0; border-block: 1px solid var(--border); }
.summary-strip > div { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 10px; }
.summary-strip > div + div { border-left: 1px solid var(--border); padding-left: 23px; }
.summary-strip svg { color: var(--text-muted); margin-right: 3px; }
.summary-strip strong { font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.summary-note { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 9px; margin-left: auto; }
.summary-note svg { color: var(--green); }
.filter-panel { padding: 25px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 20px; }
.filters select, .search, .include-options summary { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); height: 38px; font-size: 11px; box-shadow: 0 1px 2px #18294403; }
.search { max-width: 420px; min-width: 210px; padding: 0 11px; gap: 8px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search > svg { color: var(--text-muted); }
.search input { color: var(--text); font-size: 11px; min-width: 0; padding: 0; }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: var(--text-muted); }
kbd { border: 1px solid var(--border); color: var(--text-muted); background: var(--surface-subtle); border-radius: 4px; font: 10px 'DM Mono', monospace; padding: 2px 5px; }
.search .icon-button { padding: 3px; }
.search:has(.icon-button) kbd { display: none; }
.filters select { min-width: 127px; padding: 0 26px 0 11px; }
.filters select:hover, .include-options summary:hover, .include-options[open] summary { border-color: var(--accent-border); }
.include-options { min-width: 124px; font-size: 11px; }
.include-options summary { padding: 0 12px; gap: 8px; }
.include-options summary span { color: var(--text-muted); }
.filter-count { display: grid; place-items: center; font: 10px 'DM Mono', monospace; height: 16px; min-width: 16px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.include-options-list { background: var(--surface); border-color: var(--border); padding: 8px; top: 45px; border-radius: 9px; box-shadow: 0 10px 36px #17213b18; min-width: 265px; z-index: 25; }
.toggle { color: var(--text-secondary); font-size: 11px; padding: 10px 8px; }
.toggle:hover { background: var(--surface-subtle); }
.toggle input { accent-color: var(--accent); }
.reset-button { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--accent); font-size: 10px; padding: 8px 4px; }
.benchmark-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.benchmark-tabs button { display: flex; align-items: center; gap: 7px; padding: 0 0 13px; background: none; color: var(--text-secondary); font-size: 11px; font-weight: 500; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; }
.benchmark-tabs button:hover { color: var(--accent); }
.benchmark-tabs button.active { color: var(--accent); border-color: var(--accent); }
.benchmark-tabs small { background: var(--border); color: var(--text-secondary); border-radius: 4px; padding: 2px 5px; font-size: 9px; font-weight: 400; }
.benchmark-tabs .active small { background: var(--accent-soft); color: var(--accent); }
.results-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 23px 0 15px; font-size: 10px; color: var(--text-muted); }
.results-context > span:first-child { display: flex; align-items: center; }
.context-providers { margin-left: 3px; }
.results-context strong { color: var(--text-secondary); font-weight: 500; }
.results-context i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); margin: 0 9px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.insight-card { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 11px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 16px 18px; text-align: left; box-shadow: var(--shadow); }
.insight-card:not(:disabled):hover { border-color: var(--accent-border); box-shadow: 0 4px 16px #5145cd0b; }
.insight-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-secondary); }
.insight-label > svg { margin-left: auto; color: var(--text-muted); }
.insight-icon { display: grid; place-items: center; width: 25px; height: 25px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; }
.insight-cost .insight-icon { color: var(--green); background: var(--green-soft); }
.insight-time .insight-icon { color: #947044; background: #b98c5015; }
.insight-model { display: block; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-bottom { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 10px; color: var(--text-muted); }
.insight-bottom > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-bottom strong { color: var(--text-secondary); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; white-space: nowrap; }
.tie-note { font-size: 9px; color: var(--text-muted); }
.landscape-section, .rankings-section { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.landscape-section { margin-bottom: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 23px 17px; }
.panel-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; letter-spacing: -.3px; font-weight: 600; margin: 0; }
.panel-heading p { margin: 7px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.label-pill { display: inline-block; color: var(--text-muted); font-size: 9px; letter-spacing: 0; font-weight: 400; padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-subtle); }
.count-pill { display: inline-block; font: 10px 'DM Mono', monospace; padding: 3px 6px; border-radius: 4px; color: var(--text-muted); background: var(--surface-subtle); border: 1px solid var(--border); }
.chart-corner-note { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 9px; white-space: nowrap; }
.chart-card { background: none; border: 0; border-radius: 0; padding: 0 23px 17px; }
.chart-top { font: 9px 'DM Mono', monospace; color: var(--text-muted); padding-top: 6px; }
.chart-top span:first-child { color: var(--text-muted); }
.chart { height: 330px; margin-top: 10px; }
.chart svg { overflow: visible; }
.chart .recharts-surface { outline: none; }
.chart circle { stroke: var(--surface); stroke-width: 2; }
.chart circle:hover, .chart circle.selected { stroke: var(--text); }
.chart .recharts-scatter-line { opacity: .7; }
.chart-footer { border-top: 0; padding-top: 3px; font-size: 9px; color: var(--text-muted); }
.chart-legend { display: flex; justify-content: center; gap: 4px 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.chart-legend button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid transparent; border-radius: 4px; padding: 4px 5px; font: 10px 'DM Sans', sans-serif; background: none; color: var(--text-secondary); }
.chart-legend button:not(:disabled):hover { background: var(--surface-subtle); border-color: var(--border); color: var(--text); }
.chart-legend i { width: 7px; height: 7px; box-shadow: inset 0 0 0 1px #0000000b; }
.chart-method { color: var(--text-muted); font-size: 9px; text-align: center; margin-top: 9px; }
.chart-tooltip { background: var(--surface); border-color: var(--border); border-radius: 8px; box-shadow: 0 7px 28px #17213b20; color: var(--text); max-width: min(390px, 75vw); font-size: 10px; }
.chart-tooltip strong { color: var(--text); font-size: 12px; }
.chart-tooltip span { color: var(--text-secondary); }
.chart-tooltip-variant { border-color: var(--border); gap: 12px; }
.chart-tooltip-variant.active span { color: var(--accent); }
.chart-empty { color: var(--text-muted); font-size: 12px; }
.rankings-section { margin-bottom: 28px; }
.rankings-section .panel-heading { padding-bottom: 18px; }
.ranking-explainer { border-top: 1px solid var(--border); background: var(--surface-subtle); color: var(--text-muted); font-size: 10px; }
.ranking-explainer summary { display: flex; align-items: center; gap: 6px; padding: 11px 23px; cursor: pointer; list-style: none; }
.ranking-explainer summary::-webkit-details-marker { display: none; }
.ranking-explainer summary::after { content: '+'; margin-left: 5px; }.ranking-explainer[open] summary::after { content: '−'; }
.ranking-explainer summary > span { margin-left: auto; font: 9px 'DM Mono', monospace; }
.ranking-explainer p { margin: 0; padding: 0 23px 14px; line-height: 1.7; max-width: 900px; }
.ranking-options { padding: 0 23px 8px; }
.ranking-tabs { gap: 4px; margin-bottom: 10px; }
.ranking-tabs button { background: var(--surface); border-color: var(--border); color: var(--text-secondary); font-size: 10px; border-radius: 5px; padding: 7px 11px; }
.ranking-tabs button.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.ranking-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.score-method, .ranking-note { color: var(--text-muted); font-size: 10px; margin-bottom: 8px; max-width: 100%; }
.ranking-thresholds label { color: var(--text-secondary); }
.ranking-thresholds input { background: var(--surface-subtle); border-color: var(--border); color: var(--text); height: 36px; }
.table-card { border: 0; border-radius: 0; background: none; box-shadow: none; }
.table-scroll { max-height: 620px; scrollbar-width: thin; }
table { white-space: nowrap; }
thead { background: var(--surface-subtle); }
th { color: var(--text-secondary); border-block: 1px solid var(--border); font-weight: 500; }
th button { font-size: 10px; padding: 14px 16px; width: 100%; }
th button:hover { color: var(--accent); background: var(--accent-soft); }
th[aria-sort='ascending'], th[aria-sort='descending'] { color: var(--accent); }
td { border-color: var(--border); padding: 15px 16px; font-size: 11px; color: var(--text-secondary); }
th:first-child button, td:first-child { padding-left: 23px; }
td:last-child, th:last-child button { padding-right: 23px; }
tbody tr:hover, tbody tr.selected { background: var(--accent-soft); }
tbody tr:focus-visible { outline-offset: -3px; background: var(--accent-soft); }
.model-heading { display: flex; align-items: center; gap: 9px; }
.model-name { color: var(--text); font-size: 12px; font-weight: 500; }
.model-sub { color: var(--text-muted); font-size: 10px; margin-top: 5px; margin-left: 33px; max-width: 370px; overflow: hidden; text-overflow: ellipsis; }
.provider-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; background: color-mix(in srgb, var(--provider-color) 16%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--provider-color) 40%, var(--surface)); font-size: 10px; font-weight: 600; }
.effort-pill { padding: 3px 6px; background: var(--surface-subtle); border: 1px solid var(--border); color: var(--text-muted); font: 9px 'DM Sans', sans-serif; border-radius: 4px; }
.quality-cell { color: var(--text); }
.rank-value { display: inline-block; min-width: 40px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 4px 6px; text-align: center; }
.score-cell { color: var(--accent); font-weight: 500; }
.score-cell sup, .score-method sup { color: var(--accent); }
.good-for-pill { font-size: 9px; padding: 3px 5px; }
.good-for-everyday { background: var(--green-soft); color: var(--green); }
.good-for-quick { background: var(--accent-soft); color: var(--accent); }
.good-for-hard { background: #bf94501a; color: #8b6432; }
[data-theme='dark'] .good-for-hard { color: #e0b784; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); background: var(--surface-subtle); padding: 12px 23px; color: var(--text-muted); font-size: 9px; }
.table-footer kbd { margin-left: 5px; }
.workspace-footer { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); border-top: 1px solid var(--border); margin: 0; padding: 20px 0 30px; font-size: 10px; }
.workspace-footer > span { display: inline-flex; align-items: center; gap: 8px; }
.footer-mark { color: var(--text-secondary); font-size: 16px; font-weight: 700; letter-spacing: -1px; }
.workspace-footer button { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; color: var(--text-muted); font-size: 9px; padding: 6px 0; }
.workspace-footer button:hover { color: var(--accent); }
.workspace-footer a { color: var(--accent); }
.workspace-empty, .workspace-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 340px; padding: 35px 20px; color: var(--text-muted); }
.workspace-empty h2, .workspace-loading h2 { font-size: 20px; font-weight: 500; color: var(--text); letter-spacing: -.6px; margin: 18px 0 0; }
.workspace-empty h3 { font-size: 20px; color: var(--text); font-weight: 500; margin-bottom: 0; }
.workspace-empty p, .workspace-loading p { font-size: 12px; line-height: 1.7; max-width: 390px; margin: 12px 0 23px; }
.empty-icon { display: grid; place-items: center; height: 60px; width: 60px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; color: var(--accent); }
.error-state > svg { color: #bb764e; }
.loading-line { width: 130px; height: 3px; background: var(--accent-soft); position: relative; overflow: hidden; border-radius: 4px; }
.loading-line::after { content: ''; position: absolute; inset: 0 60% 0 0; background: var(--accent); animation: loading 1.4s ease-in-out infinite alternate; }
.loading-panels { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.loading-panels i { height: 100px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
@keyframes loading { to { transform: translateX(150%); } }

dialog { padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 100px #10172f26; max-height: 90dvh; }
dialog::backdrop { background: #12172f42; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-body { min-width: 0; }
.detail-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); height: 100dvh; max-width: 100%; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; overflow-y: auto; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding: 21px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-heading > span { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--text-secondary); }
.detail-dialog .detail { background: none; border: 0; border-radius: 0; position: static; max-height: none; min-height: 0; padding: 25px; overflow: visible; }
.detail-close { display: none; }
.detail-source { color: var(--accent); font: 10px 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; background: var(--accent-soft); border-radius: 4px; padding: 5px 7px; }
.detail h3.detail-title { color: var(--text); font-size: 27px; line-height: 1.2; letter-spacing: -.8px; margin-top: 18px; }
.detail-meta { font-size: 11px; color: var(--text-secondary); line-height: 1.6; }
.metric { background: var(--surface-subtle); border-color: var(--border); border-radius: 7px; padding: 15px 13px; }
.metric .label { color: var(--text-muted); text-transform: none; font: 10px 'DM Sans', sans-serif; letter-spacing: 0; }
.metric strong { color: var(--text); font-size: 23px; letter-spacing: -.7px; }
.metric small { color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.score-metric { border-color: var(--accent-border); background: var(--accent-soft); }
.score-metric strong { color: var(--accent); }
.detail-section { border-color: var(--border); }
.detail-section h4 { color: var(--text-secondary); font-size: 11px; }
.combined-source { color: var(--text); background: var(--surface-subtle); border-color: var(--border); border-radius: 7px; padding: 13px; gap: 7px; }
.combined-source:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.combined-source strong { font-size: 11px; font-weight: 500; }
.combined-source span, .combined-source small { color: var(--text-secondary); font: 10px/1.5 'DM Sans', sans-serif; }
.detail-link { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); border-radius: 6px; font-size: 11px; font-weight: 500; }
.detail-link:hover { background: var(--accent-border); }
.details-list { font: 10px/1.6 'DM Sans', sans-serif; gap: 10px; }
.details-list dt { color: var(--text-muted); }.details-list dd { color: var(--text-secondary); max-width: 210px; }
.raw-details > summary { color: var(--accent); font-size: 11px; }
.raw-record { color: var(--text-secondary); max-height: 400px; }
.raw-record div, .raw-record details { border-color: var(--border); }
.raw-record b, .raw-record summary { color: var(--text-secondary); }
.raw-record span, .raw-record pre { color: var(--text); }
.drawer-actions { padding: 20px 25px; border-top: 1px solid var(--border); background: var(--surface); position: sticky; bottom: 0; }
.drawer-actions .button { width: 100%; padding: 12px; }
.drawer-actions p { font-size: 10px; color: var(--text-muted); text-align: center; margin: 12px 0 0; }
.compare-dialog { width: min(920px, calc(100vw - 40px)); }
.modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px; border-bottom: 1px solid var(--border); }
.modal-heading h2 { font-size: 24px; letter-spacing: -.7px; font-weight: 600; margin: 9px 0 0; }
.modal-heading p { color: var(--text-secondary); font-size: 11px; margin: 9px 0 0; line-height: 1.7; }
.comparison-scroll { overflow-x: auto; }
.comparison-table { table-layout: fixed; min-width: 540px; }
.comparison-table th, .comparison-table td { width: 25%; padding: 22px; text-align: left; white-space: normal; border-bottom: 1px solid var(--border); }
.comparison-table thead { position: static; }
.comparison-table thead th { position: relative; vertical-align: bottom; background: var(--surface-subtle); border-top: 0; font-size: 11px; }
.comparison-table thead strong { color: var(--text); font-size: 16px; font-weight: 500; display: block; letter-spacing: -.4px; line-height: 1.35; margin: 8px 0; }
.comparison-provider { display: block; font-size: 10px; color: var(--text-muted); }
.comparison-table .remove-comparison { position: absolute; top: 6px; right: 6px; width: auto; padding: 4px; }
.comparison-table tbody th { font: 11px 'DM Sans', sans-serif; color: var(--text-secondary); }
.comparison-table tbody small { display: block; color: var(--text-muted); font-size: 9px; margin-top: 5px; }
.comparison-table tbody tr { cursor: default; }
.comparison-table tbody tr:hover { background: none; }
.comparison-table td { font-size: 16px; color: var(--text); }
.comparison-table .best-value { color: var(--green); background: var(--green-soft); }
.comparison-footnote { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--text-muted); margin: 18px 25px; }
.comparison-footnote i { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.comparison-dock { display: flex; align-items: center; gap: 14px; position: fixed; bottom: 22px; left: calc(50% + 112px); transform: translateX(-50%); z-index: 30; width: max-content; max-width: calc(100vw - 290px); border: 1px solid var(--accent-border); border-radius: 10px; padding: 12px 15px; background: var(--surface); box-shadow: 0 8px 44px #151b4030; }
.dock-icon { display: grid; place-items: center; padding: 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.comparison-dock > div { min-width: 0; }
.comparison-dock strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.comparison-dock > div > span { display: block; max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--text-muted); }
.workspace:has(.comparison-dock) .workspace-footer { padding-bottom: 110px; }
.method-dialog { width: min(630px, calc(100vw - 32px)); }
.embed-dialog { width: min(760px, calc(100vw - 32px)); }
.embed-builder { display: grid; gap: 14px; padding: 22px 26px 26px; }
.embed-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.embed-field { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-secondary); }
.embed-note { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.embed-code { display: grid; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.embed-code textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle); color: var(--text); font: 11px/1.6 'DM Mono', monospace; }
.embed-actions { display: flex; gap: 8px; }
.embed-preview { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.method-content { padding: 8px 26px 26px; }
.method-content section { display: flex; gap: 16px; padding: 18px 0; }
.method-content section > span { color: var(--accent); font: 11px 'DM Mono', monospace; padding-top: 3px; }
.method-content h3 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.method-content p { color: var(--text-secondary); font-size: 12px; line-height: 1.8; margin: 0; }

@media (min-width: 1650px) { .workspace main { padding-inline: 50px; }.chart { height: 390px; } }
@media (max-width: 1250px) {
  .sidebar { width: 200px; padding-inline: 12px; }.workspace-body { margin-left: 200px; }
  .workspace-brand { font-size: 21px; margin-inline: 5px; gap: 8px; }.workspace-brand small { font-size: 8px; }
  .workspace main { padding-inline: 26px; }.workspace-header { padding-inline: 26px; }
  .summary-note { display: none; }.summary-strip { gap: 20px; }
  .summary-strip > div + div { padding-left: 20px; }
  .methodology-button { display: none; }.benchmark-tabs { gap: 18px; }
  .insight-card { padding: 14px; }.insight-model { font-size: 15px; }.insight-bottom { font-size: 9px; gap: 5px; }
  .comparison-dock { left: calc(50% + 100px); max-width: calc(100vw - 250px); }
  .chart-corner-note { display: none; }
}
@media (max-width: 1000px) {
  .sidebar { width: 70px; padding: 25px 10px 14px; align-items: center; }
  .workspace-brand { margin: 0 0 35px; }.workspace-brand > span:last-child { display: none; }
  .sidebar nav { width: 100%; }.sidebar .nav-item { font-size: 0; justify-content: center; gap: 0; padding: 11px; }
  .sidebar .nav-item svg { width: 20px; height: 20px; }.sidebar .nav-dot, .sidebar .nav-count { display: none; }
  .sidebar .nav-group-label, .source-list, .snapshot-note, .sidebar .external-arrow { display: none; }
  .workspace-body { margin-left: 70px; }.sidebar-bottom { width: 100%; }
  .comparison-dock { left: calc(50% + 35px); max-width: calc(100vw - 115px); }
  .skip-link { left: 85px; }
  .results-context > span:last-child { font-size: 9px; }
}
@media (max-width: 760px) {
  .workspace main { padding-inline: 20px; }.workspace-header { padding-inline: 20px; }
  .header-actions .snapshot-label { display: none; }
  .summary-strip { gap: 15px; }.summary-strip > div { font-size: 9px; gap: 5px; }
  .summary-strip > div + div { padding-left: 15px; }.summary-strip > div:first-child > svg { display: none; }
  .results-context { flex-wrap: wrap; gap: 7px; }.results-context > span:last-child { width: 100%; }
  .insight-grid { gap: 9px; }.insight-card { padding: 12px; }.insight-label { font-size: 9px; gap: 5px; }
  .insight-label > svg { display: none; }.insight-model { font-size: 13px; }.insight-bottom { flex-wrap: wrap; gap: 7px; }
  .panel-heading { padding-inline: 17px; }.panel-heading p { font-size: 9px; }
  .chart-card { padding-inline: 13px; }.chart { height: 290px; }.chart-top { font-size: 8px; }
  .comparison-dock > div > span { max-width: 180px; }.comparison-dock { gap: 10px; }
  .dock-icon { display: none; }.table-footer > span:last-child { display: none; }
}
@media (max-width: 580px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; justify-content: space-between; padding: 15px 17px; border-right: 0; border-bottom: 1px solid var(--border); }
  .workspace-brand { gap: 8px; margin: 0; font-size: 19px; }.workspace-brand > span:last-child { display: block; }.workspace-brand small { display: none; }
  .workspace-mark { width: 28px; height: 30px; padding: 6px; border-radius: 7px; }.workspace-mark i:nth-child(2) { height: 17px; }
  .sidebar nav { display: flex; width: auto; gap: 3px; }.sidebar .nav-item { margin: 0; padding: 8px; min-height: 34px; }.sidebar .nav-item svg { width: 17px; height: 17px; }
  .sidebar-bottom { display: none; }.workspace-body { margin: 0; }
  .workspace-header { padding: 10px 18px; min-height: 57px; }.breadcrumb { font-size: 10px; gap: 8px; }
  .header-actions { gap: 5px; }.export-button { font-size: 10px; padding: 7px 9px; }.export-button svg { width: 14px; }
  .workspace main { padding-inline: 17px; }.page-intro { padding: 27px 0 22px; }.page-intro h1 { font-size: 27px; letter-spacing: -.9px; max-width: 340px; line-height: 1.17; }
  .intro-kicker { font-size: 9px; }.page-intro p { font-size: 11px; max-width: 280px; }.page-intro h1 { margin-block: 11px; }
  .summary-strip { justify-content: space-between; padding-block: 14px; gap: 10px; }.summary-strip > div { flex-wrap: wrap; row-gap: 3px; }
  .summary-strip > div + div { padding-left: 12px; }.summary-strip > div span { width: 100%; font-size: 8px; }.summary-strip strong { font-size: 18px; }
  .filter-panel { padding-top: 20px; }.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .filters .search { grid-column: 1 / -1; min-width: 0; max-width: none; }.search input { font-size: 16px; }
  .filters select, .search, .include-options summary { height: 44px; }
  .filters select { min-width: 0; width: 100%; }.include-options { grid-column: auto; min-width: 0; }.include-options-list { left: 0; right: auto; min-width: 265px; }
  .reset-button { justify-content: end; }.benchmark-tabs { gap: 19px; margin-inline: -17px; padding-inline: 17px; }.benchmark-tabs button { font-size: 10px; }
  .results-context { margin-top: 20px; font-size: 9px; }.context-providers { display: none; }
  .insight-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }.insight-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; padding: 13px 14px; }
  .insight-label { grid-row: 1 / 3; font-size: 10px; }.insight-model { text-align: right; font-size: 13px; }.insight-bottom { justify-content: end; font-size: 9px; gap: 6px; }.insight-bottom strong { font-size: 10px; }
  .insight-bottom > span { max-width: 110px; }.tie-note { grid-column: 1 / -1; text-align: right; font-size: 8px; }.insight-icon { width: 25px; height: 25px; }
  .panel-heading { padding: 17px 14px 14px; gap: 8px; }.panel-heading h2 { font-size: 14px; gap: 7px; }.label-pill { font-size: 8px; }.panel-heading p { font-size: 10px; line-height: 1.6; }
  .chart { height: 270px; }.chart-top span:last-child { display: none; }.chart-top { font-size: 9px; }.chart-footer { gap: 6px; font-size: 8px; }.chart-method { font-size: 8px; }
  .chart-legend { gap: 3px; justify-content: start; }.chart-legend button { font-size: 9px; }.chart-card { padding: 0 12px 14px; }
  .landscape-section { margin-bottom: 18px; }.rankings-section .panel-heading { align-items: start; }.compare-table-button { padding: 7px; font-size: 9px; }.compare-table-button svg { width: 13px; }
  .ranking-explainer summary { padding: 11px 14px; font-size: 9px; }.ranking-explainer summary > span { display: none; }.ranking-explainer p { padding-inline: 14px; }
  .ranking-options { padding-inline: 14px; }.ranking-tabs button { padding: 7px 9px; }.ranking-thresholds { display: grid; width: 100%; }.ranking-thresholds input { width: 100%; }
  .table-scroll { max-height: 490px; }.table-scroll td:first-child { min-width: 190px; padding-left: 14px; }.table-scroll th:first-child button { padding-left: 14px; }.model-heading { flex-wrap: wrap; gap: 6px; }.model-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }.model-heading .effort-pill { margin-left: 30px; }.model-sub { max-width: 140px; margin-left: 30px; font-size: 9px; }.table-scroll th button { padding-inline: 12px; font-size: 9px; }.table-scroll td { padding-inline: 12px; }.table-footer::after { content: 'Scroll for more →'; white-space: nowrap; }.table-footer { padding: 11px 14px; font-size: 8px; }
  .workspace-footer { display: flex; flex-direction: column; align-items: start; gap: 10px; padding-block: 20px 25px; }
  .comparison-dock { left: 12px; right: 12px; bottom: 12px; transform: none; width: auto; max-width: none; padding: 10px; gap: 8px; }.comparison-dock > div { flex: 1; }.comparison-dock strong { font-size: 10px; }.comparison-dock > div > span { max-width: 125px; font-size: 9px; }.comparison-dock .button { font-size: 10px; padding: 9px 10px; }.comparison-dock .button svg { display: none; }.comparison-dock .icon-button { padding: 4px; }
  .compare-dialog { width: calc(100vw - 20px); max-width: none; }.modal-heading { padding: 20px; }.modal-heading h2 { font-size: 21px; }.comparison-table th, .comparison-table td { padding: 16px; }
  .comparison-footnote { font-size: 9px; line-height: 1.7; margin-inline: 18px; }.comparison-table thead strong { font-size: 14px; }.comparison-table td { font-size: 14px; }
  .skip-link { left: 12px; }.method-content { padding-inline: 20px; }.method-content section { gap: 12px; }
  .workspace-empty h2 { font-size: 18px; }.workspace-empty p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
