:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f0f3f7;
  --text: #17202a;
  --muted: #5d6875;
  --border: #d7dde5;
  --accent: #2457d6;
  --focus: #0b63ce;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f141a;
  --surface: #171d25;
  --surface-subtle: #202833;
  --text: #eef2f7;
  --muted: #b4bfcb;
  --border: #394554;
  --accent: #9ab7ff;
  --focus: #9fc5ff;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: var(--accent); }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.hero h1 { margin: .25rem 0 .75rem; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.eyebrow { margin: 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-size: .78rem; }
.lede { max-width: 760px; font-size: 1.12rem; color: var(--muted); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.theme-toggle, .segmented button { border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); color: var(--text); padding: .65rem .8rem; cursor: pointer; }
.theme-toggle { white-space: nowrap; }
main { padding-block: 2rem 4rem; }
.status { padding: 1.25rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); }
.results > header, .limitation, .dashboard, .history-navigation { padding: 1.35rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); }
.results h2 { margin-top: 2.4rem; }
.results > header h2, .limitation h2, .dashboard h2, .history-navigation h2 { margin-top: .3rem; }
.history-navigation { margin-bottom: 1.5rem; }
.history-navigation label { display: block; margin-bottom: .45rem; font-weight: 700; }
.history-navigation select { width: min(100%, 38rem); max-width: 100%; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); color: var(--text); }
.history-navigation p { color: var(--muted); max-width: 780px; }
.dashboard { margin-top: 1.5rem; }
.dashboard-help { color: var(--muted); max-width: 780px; }
.dashboard-controls { display: grid; gap: 1rem; margin: 1.25rem 0; }
.control-label, legend { display: block; margin-bottom: .45rem; font-weight: 700; }
.segmented { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
fieldset { margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--border); border-radius: .75rem; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem 1rem; }
.filter-grid label { display: flex; align-items: center; gap: .45rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
caption { padding: 1rem; text-align: left; color: var(--muted); }
th, td { padding: .75rem 1rem; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
thead th { color: var(--muted); font-size: .82rem; }
.charts { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.chart, .version-card { padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-subtle); }
.chart h3, .version-card h3 { margin-top: 0; }
.chart p { color: var(--muted); font-size: .9rem; }
.chart ul, .version-card ul { list-style: none; padding: 0; margin: 0; }
.chart li + li { margin-top: .95rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
meter, progress { width: 100%; height: 1rem; }
.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.version-card li { margin: .25rem 0; }
.version-card a { display: inline-block; margin-top: .8rem; }
.environment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.environment div { padding: .75rem; background: var(--surface-subtle); border-radius: .65rem; }
.environment dt { color: var(--muted); font-size: .8rem; }
.environment dd { margin: .2rem 0 0; }
.footer { padding: 1.5rem 0 3rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .hero { padding-top: 2.5rem; }
  .hero-layout { flex-direction: column; }
  .theme-toggle { align-self: flex-start; }
  .filter-grid, .version-grid, .environment { grid-template-columns: 1fr; }
  .bar-label { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .segmented { display: grid; grid-template-columns: 1fr; }
  .segmented button { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
