/* Adapted from the Emby website's modern-theme.css and home.css.
   Local assets keep the results viewer usable without a server or network. */
@font-face {
  font-family: Inter;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}

:root {
  color-scheme: light;
  --bg: #f7f8f9;
  --surface: #fff;
  --surface-2: #f1f3f5;
  --text: #18201d;
  --muted: #626b67;
  --line: rgba(24, 32, 29, .12);
  --accent: #418f3c;
  --accent-text: #367b32;
  --accent-bright: #52b54b;
  --gold: #8b621e;
  --max: 1180px;
  --radius: 18px;
}

/* Emby modern-theme.css tokens, with the same dark surfaces and green accent. */
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #090d0f;
  --surface: #111719;
  --surface-2: #172023;
  --text: #f7f9f8;
  --muted: #a7b2ae;
  --line: rgba(255,255,255,.1);
  --accent: #75d66d;
  --accent-text: #75d66d;
  --accent-bright: #52b54b;
  --gold: #edc17a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}
h1, h2, p { margin-top: 0; }
h1, h2 { color: var(--text); font-weight: 750; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 30;
  padding: 10px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent-text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* The website's fixed, translucent header and centered navigation shell. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(25, 31, 28, .06);
  backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; min-height: 76px; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 24px; color: var(--text); min-width: 0; }
.brand img { width: 128px; height: auto; flex-shrink: 0; }
.brand-title { border-left: 1px solid var(--line); padding-left: 24px; font-size: 14px; white-space: nowrap; }
.brand strong { font-weight: 750; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .nav-links button { padding: 0; color: #2d3b33; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links button:hover, .nav-links button.active { color: var(--accent-text); }

/* A compact version of the website hero leaves room for benchmark results. */
main { padding-top: 76px; }
.comparison-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 78% 24%, rgba(99, 112, 123, .1), transparent 34%), linear-gradient(145deg, #fff, #f1f3f5);
}
.intro { position: relative; }
.eyebrow { margin: 0 0 13px; color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(40px, 5.5vw, 64px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--accent); }
.hero-lede { max-width: 650px; margin-bottom: 0; color: #59635f; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; }
.comparison-content { padding-block: 32px 72px; }
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(31, 38, 35, .04);
}
.controls > label { flex: 1 1 170px; }
label { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 650; }
select, .quality-toolbar input[type=number] {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(24, 32, 29, .18);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
}
select:disabled { color: var(--muted); background: var(--surface-2); }
.context-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 3px 28px; color: var(--muted); font-size: 10px; }
.results-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 45px rgba(31, 38, 35, .04); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.pill { padding: 5px 10px; border: 1px solid rgba(82, 181, 75, .18); border-radius: 20px; color: var(--accent-text); background: rgba(82, 181, 75, .07); font-size: 10px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
#performance-note { margin-bottom: 0; }

/* Neutral surfaces and green throughput bars follow the website's cards. */
.table-scroll { overflow: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 650; white-space: nowrap; }
td { padding: 20px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf8; }
.bar-heading { width: 24%; min-width: 170px; }
.bar-track { width: 100%; height: 7px; overflow: hidden; border-radius: 7px; background: #e8ebee; }
.bar-fill { height: 100%; min-width: 2px; border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.fps { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.filter-name { font-weight: 750; }
.source-name { display: inline-flex; align-items: center; }
.source-logo { width: 50px; height: auto; }
.display-filter-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.filter-detail { margin-top: 4px; color: var(--muted); font-size: 10px; }
.spread-detail { cursor: help; }
.empty { margin: 22px 0 0; padding: 64px 20px; border: 1px dashed rgba(24, 32, 29, .24); border-radius: 12px; color: var(--muted); background: #fafbfc; text-align: center; }

/* View switches, result actions, and filter checkboxes stay compact. */
button { padding: 8px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.segmented button { white-space: nowrap; }
.segmented button.active, .tabs button.active { color: var(--accent-text); background: #fff; box-shadow: 0 2px 6px rgba(31, 38, 35, .08); }
.quality-toolbar { display: flex; align-items: end; gap: 22px; margin: 24px 0; }
.quality-toolbar label { min-width: 180px; }
.quality-toolbar p { margin-bottom: 8px; }
.quality-toolbar #absolute-gain-control { min-width: 100px; }
.quality-toolbar input[type=number] { width: 90px; }
.quality-view-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.image-navigation { display: flex; flex-shrink: 0; align-self: center; gap: 6px; margin-left: auto; }
.image-navigation button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); color: var(--accent-text); background: #fff; font-size: 25px; line-height: 28px; }
.image-navigation button:disabled { cursor: default; opacity: .35; }
.visibility-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.visibility-row .filter-picker { flex: 1; min-width: 0; margin-bottom: 0; border-bottom: 0; }
.compact-toggle { flex-direction: row; align-items: center; flex-shrink: 0; gap: 7px; margin-top: 26px; color: var(--text); font-size: 11px; }
.compact-toggle input { accent-color: var(--accent); }
.quality-toolbar .gain-control { min-width: 130px; max-width: 150px; }
.gain-control > span { display: flex; justify-content: space-between; gap: 12px; }
.gain-control input { width: 130px; accent-color: var(--accent); }
.filter-picker { margin: 0 0 24px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); }
.filter-picker legend { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.filter-selection-actions { display: inline-flex; gap: 3px; }
.filter-selection-actions button { display: grid; place-items: center; width: 20px; height: 20px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent-text); background: var(--surface); }
.filter-selection-actions button:disabled { cursor: default; opacity: .4; }
.filter-selection-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.filter-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-picker label { flex-direction: row; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: #fafbfc; font-size: 10px; }
.filter-picker input { accent-color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid rgba(24, 32, 29, .18); border-radius: 7px; color: #46534b; background: #fff; font-size: 10px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.action-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); background: #f2f8f1; }
.action-button:disabled { cursor: default; opacity: .45; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tab { display: flex; flex-direction: column; gap: 3px; padding: 1px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.filter-tab > button { text-align: left; font-size: 12px; padding: 3px 12px; border-radius: 6px; }
.filter-tab .result-actions { margin: 0; }
.tabs .action-button { padding: 4px 6px; font-size: 10px; }

/* Native image geometry and all exact/gained difference assets are preserved. */
.image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.image-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-grid.one { grid-template-columns: 1fr; }
.image-card { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.image-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #090c10; }
.image-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 13px 14px; font-size: 11px; }
.metric { color: var(--muted); font-size: 10px; white-space: nowrap; }
.image-card .metric { white-space: normal; }
.quality-settings { padding: 0 14px 12px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.image-card > .result-actions { margin: 0; padding: 0 14px 14px; }
.quality-table td { min-width: 230px; vertical-align: top; }
.quality-table { table-layout: fixed; }
.quality-table .frame-column { width: 64px; min-width: 64px; padding-inline: 8px; white-space: normal; font-variant-numeric: tabular-nums; }
.quality-table tr.selected-frame > .frame-column { color: var(--accent-text); background: rgba(82, 181, 75, .1); font-weight: 750; }
.quality-table img { display: block; width: 100%; max-width: none; }
.quality-table-scroll { max-height: 72vh; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y proximity; }
.quality-table-scroll thead { position: sticky; top: 0; z-index: 5; }
.quality-table-scroll tbody tr { scroll-snap-align: start; }
.quality-note { margin: 20px 0 0; }
.timeline { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.timeline-labels { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.timeline-labels strong { color: var(--text); font-variant-numeric: tabular-nums; }
.timeline input { width: 100%; accent-color: var(--accent); }
.compare-image { position: relative; overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 12px; background: #090c10; }
.compare-image img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.compare-overlay { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-label { position: absolute; top: 12px; z-index: 2; padding: 5px 9px; border-radius: 6px; color: #fff; background: #111b; font-size: 11px; }
.compare-label.left { left: 12px; }
.compare-label.right { right: 12px; }
.compare-info, .single-image-card .image-caption { position: absolute; inset: auto auto 12px 12px; z-index: 4; max-width: calc(100% - 24px); margin: 0; padding: 5px 9px; border-radius: 6px; color: #fff; background: #111b; font-size: 11px; }
.single-image-card .metric, .single-image-info { color: #e0e5e2; }
.single-image-info { font-size: 10px; }
.compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 32px; transform: translateX(-50%); background: transparent; cursor: ew-resize; touch-action: none; }
.compare-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 15px; width: 2px; background: #75d66d; box-shadow: 0 0 5px #0009; }
.compare-divider::after { content: "↔"; position: absolute; top: 50%; left: 1px; width: 30px; height: 38px; transform: translateY(-50%); border: 1px solid #a8e5a3; border-radius: 8px; color: #fff; background: var(--accent-text); box-shadow: 0 2px 12px #0007; font-size: 19px; line-height: 35px; text-align: center; }
.compare-divider:focus-visible { outline: 3px solid #75d66d; outline-offset: -3px; }

details { margin-top: 24px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); font-size: 12px; }
summary { cursor: pointer; font-weight: 650; }
.diagnostic-row { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.diagnostic-row strong { color: var(--gold); }
.diagnostic-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 5px; }

/* Native graph HTML fills the dialog; no viewer-generated replacement graph. */
.execution-dialog { width: min(1000px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); padding: 0; border: 1px solid rgba(24, 32, 29, .24); border-radius: var(--radius); color: var(--text); background: var(--surface); box-shadow: 0 28px 80px rgba(0, 0, 0, .22); }
.execution-dialog::backdrop { background: rgba(15, 23, 19, .6); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dialog-heading h2 { font-size: 18px; letter-spacing: -.025em; }
.dialog-heading button { border: 1px solid rgba(24, 32, 29, .18); color: var(--text); background: #fff; }
#execution-dialog-body { padding: 20px 24px; }
.execution-command { display: block; width: 100%; min-height: 210px; resize: vertical; padding: 14px; border: 1px solid rgba(24, 32, 29, .18); border-radius: 10px; color: var(--text); background: #f7f8f9; font: 12px/1.65 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-tools { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.recorded-settings { margin-top: 18px; }
.recorded-settings pre { color: #46534b; font: 11px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.graph-dialog { width: calc(100vw - 32px); height: calc(100vh - 32px); max-height: none; }
.graph-dialog[open] { display: flex; flex-direction: column; }
.graph-dialog .dialog-heading { flex-shrink: 0; }
.graph-dialog #execution-dialog-body { flex: 1; min-height: 0; padding: 0; }
.execution-graph { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); background: #eef0f2; font-size: 11px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
#system-info { text-align: right; overflow-wrap: anywhere; }
body:not(.publishing-site) .footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body:not(.publishing-site) .footer-tools .theme-toggle { width: 36px; height: 36px; font-size: 22px; }
.configuration-content { padding-block: 52px 72px; }
.configuration-content > h1 { font-size: clamp(36px, 5vw, 52px); }
.configuration-content .results-card h2 { font-size: 24px; margin-bottom: 15px; }
.configuration-values { margin-top: 24px; }
.configuration-table { margin-top: 16px; }
.configuration-table th { width: 34%; white-space: normal; }
.configuration-table th, .configuration-table td { padding: 4px 12px; line-height: 1.35; }
.configuration-table td { overflow-wrap: anywhere; font: 12px/1.35 Consolas, monospace; }
.capabilities-table th, .capabilities-table td { padding: 8px 12px; }
.capabilities-table td { font-size: 11px; vertical-align: top; }
.runtime-status { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.capabilities-table td:nth-child(2) { min-width: 175px; }
.capabilities-table .signal-capability { min-width: 65px; text-align: center; white-space: nowrap; }
.capabilities-table td.signal-capability { font-size: 16px; vertical-align: middle; }
.compact-layout .result-actions, .compact-layout .quality-settings, .compact-layout .filter-detail { display: none; }
.results-card.compact-layout { padding: 14px; }
.compact-layout .section-heading, .compact-layout .quality-view-row { margin-bottom: 14px; }
.compact-layout .quality-toolbar { margin-block: 12px; gap: 14px; }
.compact-layout .filter-picker { padding-bottom: 12px; }
.compact-layout .filter-picker > div { gap: 5px; }
.compact-layout .filter-picker label { padding: 4px 8px; }
.compact-layout .compact-toggle { margin-top: 24px; }
.compact-layout .image-grid { gap: 6px; }
.compact-layout .table-scroll { margin-top: 12px; }
.compact-layout .quality-table th, .compact-layout .quality-table td { padding: 6px; }
.compact-layout .quality-table .frame-column { padding-inline: 5px; }
.compact-layout .image-card { border-radius: 6px; }
.compact-layout .image-caption { position: absolute; inset: auto 0 0; padding: 7px 9px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 10px; }
.compact-layout .image-caption .metric { color: #e0e5e2; font-size: 9px; }
.compact-layout .timeline { margin-top: 12px; padding: 12px; }
.compact-layout .quality-note { margin-top: 12px; font-size: 10px; }
[hidden] { display: none !important; }

@media (max-width: 950px) {
  .section-heading { flex-wrap: wrap; }
  .image-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { gap: 18px; }
  .brand-title { padding-left: 18px; font-size: 12px; }
  .nav { gap: 20px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 90px; }
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 68px; }
  main { padding-top: 68px; }
  .comparison-hero { padding: 44px 0 32px; }
  .comparison-content { padding-block: 24px 52px; }
  .controls { padding: 20px; }
  .results-card { padding: 22px; }
  .graph-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); }
}
@media (max-width: 600px) {
  .nav { gap: 14px; }
  .brand { gap: 12px; }
  .brand img { width: 94px; }
  .brand-title { max-width: 145px; padding-left: 12px; font-size: 11px; white-space: normal; line-height: 1.4; }
  .nav-links { gap: 12px; }
  .nav-links a, .nav-links button { font-size: 11px; }
  .comparison-hero { padding-block: 34px 28px; }
  .controls { gap: 14px; padding: 16px; }
  .context-row { flex-direction: column; gap: 5px; padding-bottom: 20px; }
  .results-card { padding: 18px 14px; }
  .section-heading { gap: 14px; }
  .quality-view-row { gap: 12px; }
  .quality-view-row .segmented { width: auto; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 8px; }
  th, td { padding: 12px; }
  .quality-table td { min-width: 180px; }
  .quality-toolbar { flex-wrap: wrap; align-items: start; gap: 14px; margin-block: 20px; }
  .quality-toolbar label { min-width: 140px; }
  .quality-toolbar p { width: 100%; margin-bottom: 0; }
  .visibility-row { gap: 12px; }
  .compact-toggle { font-size: 10px; }
  .image-grid, .image-grid.three { grid-template-columns: 1fr; }
  .filter-tab { max-width: 100%; }
  .timeline { padding: 16px 12px; }
  .timeline-labels { flex-wrap: wrap; }
  details { padding: 16px; }
  .dialog-heading { padding: 14px 12px; gap: 8px; }
  .dialog-heading h2 { font-size: 15px; }
  #execution-dialog-body { padding: 14px 12px; }
  .execution-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .graph-dialog { max-height: none; }
  .footer-inner { flex-direction: column; gap: 10px; }
  #system-info { text-align: left; }
  body:not(.publishing-site) .footer-actions { align-items: flex-start; }
}
@media (max-width: 390px) {
  .brand-title { max-width: 116px; font-size: 10px; }
  .brand img { width: 82px; }
  .nav { gap: 10px; }
  .nav-links { gap: 9px; }
  .nav-links a, .nav-links button { font-size: 10px; }
}
@media (max-width: 420px) { .brand-title { display: none; } .visibility-row { flex-wrap: wrap; } .compact-toggle { margin: 0 0 12px auto; } .quality-view-row { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Website-sized typography and support cards. */
.nav-links button { color: var(--text); font-size: 15px; }
.brand-title { font-size: 15px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); color: var(--text); background: var(--surface); font-size: 24px; line-height: 1; }
label, .filter-picker legend, .compact-toggle { font-size: 14px; }
select, button { font-size: 14px; }
select { border-color: var(--line); background: var(--surface); }
.muted, .context-row { font-size: 14px; }
.eyebrow { font-size: 12px; }
.hero-lede { color: var(--muted); font-size: 20px; }
.comparison-hero { background: radial-gradient(circle at 78% 24%, rgba(117,214,109,.08), transparent 34%), linear-gradient(145deg, var(--surface), var(--surface-2)); }
.about-content { padding-block: 36px 72px; }
.page-intro { margin-bottom: 28px; }
.page-intro h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.page-intro p:last-child { max-width: 900px; margin-bottom: 0; }
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.support-card { display: flex; flex-direction: column; align-items: start; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: linear-gradient(145deg, var(--surface-2), var(--surface)); text-align: left; font-size: 16px; transition: border-color .18s ease, transform .18s ease; }
.support-card:hover { border-color: rgba(117,214,109,.45); transform: translateY(-3px); }
.support-card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border: 1px solid rgba(117,214,109,.22); border-radius: 14px; color: var(--accent); background: rgba(117,214,109,.1); font-size: 26px; }
.support-card h3 { margin: auto 0 10px; font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
.support-card p { margin-bottom: 16px; color: var(--muted); }
.card-link { color: var(--accent-text); font-size: 14px; font-weight: 650; }
.about-section { max-width: 900px; padding-top: 72px; scroll-margin-top: 20px; }
.about-section h2 { margin-bottom: 24px; font-size: 40px; }
.about-section p, .about-section li { color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.about-section li { margin-bottom: 14px; padding-left: 5px; }
.about-section pre { padding: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.about-section code { color: var(--text); font-size: 14px; }
.results-card table { font-size: 14px; }
.results-card th { font-size: 12px; }
.filter-detail, .runtime-status, .metric, .quality-settings { font-size: 12px; }
.filter-picker label { font-size: 13px; background: var(--surface-2); }
.action-button { color: var(--text); background: var(--surface); border-color: var(--line); font-size: 12px; }
.action-button:hover:not(:disabled) { background: var(--surface-2); }
.segmented button.active, .tabs button.active, .image-navigation button, .image-card, .dialog-heading button { background: var(--surface); }
.dialog-heading button, .recorded-settings pre { color: var(--text); }
.execution-command { background: var(--surface-2); color: var(--text); border-color: var(--line); font-size: 14px; }
.empty { background: var(--surface-2); border-color: var(--line); }
tbody tr:hover { background: var(--surface-2); }
.bar-track { background: var(--surface-2); }
.site-footer { background: var(--surface-2); font-size: 13px; }
:root[data-theme=dark] .site-header { background: rgba(9,13,15,.82); box-shadow: none; }
:root[data-theme=dark] .nav-links button.active, :root[data-theme=dark] .nav-links button:hover { color: var(--accent); }
#performance-panel td { padding: 7px 12px; }
#performance-panel th { padding: 10px 12px; }
#performance-panel .filter-name { display: inline; }
#performance-panel .filter-detail:not(.spread-detail) { display: inline; margin-left: 8px; }
#performance-panel .spread-detail { margin-top: 1px; }
#performance-panel .result-actions { margin-top: 3px; gap: 4px; }
#performance-panel .action-button { padding: 2px 7px; }
#performance-panel .fps { font-size: 21px; }
#subtitle-performance-panel td { padding: 7px 12px; }
#subtitle-performance-panel th { padding: 10px 12px; }
#subtitle-performance-panel .result-actions { margin-top: 3px; gap: 4px; }
#subtitle-performance-panel .action-button { padding: 2px 7px; }
#subtitle-performance-panel .fps { font-size: 21px; }
#subtitle-performance-panel td:first-child { min-width: 150px; }
#subtitle-performance-panel td.pattern-id { min-width: 0; font-weight: 700; white-space: nowrap; }
#performance-panel .isolated-method-detail, #performance-panel .isolated-self-test { display: block; margin: 2px 0 0; }
.benchmark-method { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.benchmark-method summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text); }
.benchmark-method summary::before { content: "▸"; color: var(--accent-text); }
.benchmark-method[open] summary::before { content: "▾"; }
.method-status { padding: 1px 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.benchmark-method p { margin: 14px 0 0; }
.benchmark-method .muted { font-size: 13px; }
.benchmark-method .table-scroll { max-width: 720px; margin-top: 14px; }
#performance-panel .method-table th, #performance-panel .method-table td { padding: 5px 10px; }
.method-table th:not(:first-child), .method-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.method-table .method-median { color: var(--accent-text); font-weight: 650; }
.benchmark-method code { overflow-wrap: anywhere; }
.quality-table .frame-column { width: 40px; min-width: 40px; max-width: 40px; padding-inline: 5px; }
.layout-toggles { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; padding-top: 28px; }
.layout-toggles .compact-toggle { margin: 0; }
.compact-layout .layout-toggles { padding-top: 28px; }
.full-width { width: calc(100% - 40px); max-width: none; }
.curve-tabs { display: flex; align-items: baseline; gap: 14px; }
.curve-tabs .tabs { flex: 1; }
.curve-tabs.with-navigation { align-items: center; margin-bottom: 18px; }
.curve-tabs.with-navigation .tabs { margin-bottom: 0; }
.curve-tabs .image-navigation { align-self: center; }
.tab-side { width: 40px; flex-shrink: 0; color: var(--muted); font-size: 14px; font-weight: 650; }
.timeline-labels { margin-top: 8px; }
.image-card figcaption { font-size: 14px; }
.compact-layout .image-caption, .compact-layout .image-caption .metric { font-size: 12px; }
.configuration-table td { font-size: 14px; }
.capabilities-table td { font-size: 14px; }
.compact-layout .single-image-card .image-caption { inset: auto auto 12px 12px; max-width: calc(100% - 24px); padding: 5px 9px; border-radius: 6px; background: #111b; }
@media (max-width: 1050px) {
  .support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav { gap: 18px; }
  .brand-title { display: none; }
}
@media (max-width: 600px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: 220px; }
  .nav { gap: 10px; }
  .nav-links { gap: 12px; }
  .nav-links button { font-size: 13px; }
  .brand img { width: 82px; }
  .theme-toggle { width: 32px; height: 32px; }
  .section-heading .segmented { margin-left: auto; width: auto; }
  .layout-toggles { padding-top: 0; padding-bottom: 12px; }
  .full-width { width: calc(100% - 16px); }
  .about-section h2 { font-size: 32px; }
  .hero-lede { font-size: 18px; }
}
@media (max-width: 380px) {
  .brand { width: 28px; height: 28px; flex-shrink: 0; overflow: hidden; }
  .brand img { width: 82px; max-width: none; }
}
@media (max-width: 700px) {
  .nav { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding-block: 12px; }
  .brand { grid-column: 1; grid-row: 1; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links button { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
  main { padding-top: 104px; }
}
