:root {
  --ink: #20343a;
  --ink-soft: #5b6b6f;
  --paper: #edf3f1;
  --surface: #fcfdfd;
  --line: #d0ddda;
  --line-strong: #9eb2ae;
  --gopher: #00add8;
  --gopher-deep: #006f8b;
  --amber: #d48218;
  --graphite: #40575e;
  --teal: #2b7f74;
  --header: #20343a;
  --header-text: #fcfdfd;
  --button: #20343a;
  --button-hover: #31494f;
  --button-text: #fcfdfd;
  --field: #f8fbfa;
  --subtle: #f4f8f7;
  --subtle-hover: #e6efed;
  --segment: #e5eeec;
  --selected: #e2f5f8;
  --error-text: #8f3928;
  --error-surface: #fdf1ed;
  --error-line: #e8b5a8;
  --delta-positive: #a64b2f;
  --delta-negative: #246f66;
  --shadow: 0 12px 30px rgba(32, 52, 58, 0.08);
  --panel-shadow: 0 8px 22px rgba(32, 52, 58, 0.05);
  color-scheme: light;
  font-family: "IBM Plex Sans", sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] {
  --ink: #e4eeee;
  --ink-soft: #a8b8b6;
  --paper: #0f181b;
  --surface: #172429;
  --line: #2c4145;
  --line-strong: #536a6e;
  --gopher: #00add8;
  --gopher-deep: #6bd7ee;
  --amber: #e3a044;
  --graphite: #789197;
  --teal: #52a596;
  --header: #0b1417;
  --header-text: #f4f8f7;
  --button: #00add8;
  --button-hover: #39bde0;
  --button-text: #0d1b1f;
  --field: #111e22;
  --subtle: #142226;
  --subtle-hover: #21343a;
  --segment: #0f1c20;
  --selected: #123641;
  --error-text: #f3b4a5;
  --error-surface: #321d1a;
  --error-line: #704035;
  --delta-positive: #ef9a7d;
  --delta-negative: #66b9aa;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  --panel-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(32, 52, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 52, 58, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

html[data-theme="dark"] body {
  background-image:
    linear-gradient(rgba(228, 238, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 238, 238, 0.035) 1px, transparent 1px);
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--header-text);
  background: var(--header);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  color: var(--header-text);
  background: var(--header);
  border-bottom: 5px solid var(--gopher);
}

.masthead__inner,
.dashboard,
.footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.masthead__inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand__logo {
  width: 59px;
  height: 72px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
}

.brand__byline {
  margin: 6px 0 0;
  color: #b6c9cc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1;
}

.brand__byline a {
  color: #e2edef;
  font-weight: 600;
  text-decoration-color: rgba(226, 237, 239, 0.45);
  text-underline-offset: 2px;
}

.brand__byline a:hover {
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gopher-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.masthead .eyebrow {
  color: #71dff4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.dataset-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d7d9;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

#datasetRange {
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(43, 127, 116, 0.22);
}

.meta-divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #50666c;
}

.header-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.13);
}

.header-action:focus-visible {
  outline: 3px solid rgba(0, 173, 216, 0.42);
  outline-offset: 2px;
}

.header-action svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.theme-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

html[data-theme="light"] .theme-icon--sun,
html[data-theme="dark"] .theme-icon--moon {
  display: none;
}

.dashboard {
  padding: 24px 0 44px;
}

.tip-notice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gopher);
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.tip-notice__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--gopher);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 173, 216, 0.16);
}

.tip-notice strong {
  color: var(--ink);
  font-size: 11px;
}

.tip-notice code {
  padding: 2px 5px;
  color: var(--gopher-deep);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.tip-notice time {
  margin-left: auto;
}

.tip-notice a {
  color: var(--gopher-deep);
  font-weight: 600;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding: 6px;
  overflow-x: auto;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: inherit;
  border-radius: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav a:hover {
  color: var(--ink);
  background: var(--subtle-hover);
}

.section-nav a:focus-visible {
  outline: 2px solid var(--gopher-deep);
  outline-offset: -1px;
}

.section-nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--subtle);
}

.dashboard-section {
  scroll-margin-top: 62px;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.85fr) minmax(160px, 0.85fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.field select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 12px;
  color: var(--ink);
  background-color: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
}

.field select:focus-visible,
.button:focus-visible,
.segmented__button:focus-visible {
  border-color: var(--gopher-deep);
  box-shadow: 0 0 0 3px rgba(0, 173, 216, 0.2);
}

.field select:disabled,
.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.actions {
  display: flex;
  gap: 8px;
}

.button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--button-text);
  background: var(--button);
  border: 1px solid var(--button);
  border-radius: 4px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover:not(:disabled) {
  background: var(--button-hover);
  border-color: var(--button-hover);
}

.button--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: var(--subtle-hover);
}

.button.button--icon {
  position: relative;
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
}

.button--icon[data-feedback]::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  padding: 4px 6px;
  content: attr(data-feedback);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: var(--shadow);
  font-size: 9px;
  white-space: nowrap;
}

.button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.status {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.status--error {
  margin-top: 20px;
  min-height: auto;
  justify-content: flex-start;
  padding: 16px;
  color: var(--error-text);
  background: var(--error-surface);
  border: 1px solid var(--error-line);
  border-radius: 4px;
}

.status__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--gopher-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric {
  position: relative;
  min-height: 126px;
  padding: 19px 20px 17px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--panel-shadow);
}

.metric::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--metric-color);
}

.metric--gopher { --metric-color: var(--gopher); }
.metric--amber { --metric-color: var(--amber); }
.metric--graphite { --metric-color: var(--graphite); }
.metric--teal { --metric-color: var(--teal); }

.metric p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 600;
  line-height: 1.05;
}

.metric span {
  color: var(--ink-soft);
  font-size: 12px;
}

.visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--panel-shadow);
}

.panel--compare {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.compare-header {
  align-items: center;
  padding: 20px 20px 0;
}

.compare-scope {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--segment);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.segmented__button {
  min-width: 110px;
  height: 34px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.segmented__button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(32, 52, 58, 0.16);
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(220px, 480px) auto;
  align-items: end;
  gap: 14px;
  padding: 16px 20px;
  background: var(--subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
}

.compare-side {
  min-width: 0;
  padding: 19px 20px 20px;
  border-top: 4px solid var(--side-color);
}

.compare-side--left {
  --side-color: var(--gopher);
}

.compare-side--right {
  --side-color: var(--amber);
}

.compare-side h3 {
  min-height: 24px;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-side > strong {
  display: block;
  margin-bottom: 17px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1;
}

.compare-side dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.compare-side dl div {
  min-width: 0;
}

.compare-side dt {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.compare-side dd {
  margin: 0;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-delta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 18px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.compare-delta span,
.compare-delta small {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.compare-delta strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 600;
}

.comparison-insight {
  margin: 0;
  padding: 11px 20px;
  color: var(--ink);
  background: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

.comparison-charts {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.comparison-chart {
  min-width: 0;
  padding: 18px 20px 14px;
}

.comparison-chart > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comparison-chart > header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.comparison-chart > header span {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.chart-frame--compare {
  min-width: 0;
  width: 100%;
  height: 410px;
}

.compare-table-wrap {
  width: 100%;
  min-width: 0;
  max-height: 450px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.compare-table {
  min-width: 500px;
  font-size: 12px;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
}

.compare-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.panel--table {
  grid-column: 1 / -1;
  padding-right: 0;
  padding-left: 0;
}

.panel--table .panel__header {
  padding-right: 20px;
  padding-left: 20px;
}

.panel__header {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.panel__tools {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.panel__note {
  margin: -7px 0 10px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.4;
}

.segmented--compact .segmented__button {
  min-width: 74px;
  height: 29px;
  padding: 0 9px;
  font-size: 9px;
}

.segmented--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.panel__context {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: 310px;
}

.chart-frame--large {
  height: 370px;
}

.chart-frame--snapshot {
  height: 370px;
}

.panel--distribution {
  grid-column: 1 / -1;
}

.chart-frame--distribution {
  min-height: 340px;
}

#distributionChart:focus-visible {
  outline: 2px solid var(--gopher-deep);
  outline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:last-child,
td:last-child {
  text-align: left;
}

th {
  color: var(--ink-soft);
  background: var(--subtle);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

td {
  font-variant-numeric: tabular-nums;
}

#releaseTable tr {
  cursor: pointer;
}

#releaseTable tr:hover,
#releaseTable tr[aria-current="true"] {
  background: var(--selected);
}

.release-cell {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.binary-cell {
  max-width: 320px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
}

.delta-positive { color: var(--delta-positive); }
.delta-negative { color: var(--delta-negative); }
.delta-regression { color: var(--delta-positive); }
.delta-improvement { color: var(--delta-negative); }

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 34px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--gopher-deep);
  font-weight: 600;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
}

.footer__links span {
  white-space: nowrap;
}

.footer__disclaimer {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .control-bar {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .visuals {
    grid-template-columns: 1fr 1fr;
  }

  .panel--trend,
  .panel--snapshot,
  .panel--composition,
  .panel--tool,
  .panel--compare,
  .panel--distribution,
  .panel--table {
    grid-column: 1 / -1;
  }

  .compare-table-wrap {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .masthead__inner,
  .dashboard,
  .footer {
    width: min(100% - 28px, 1480px);
  }

  .masthead__inner {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .brand__logo {
    width: 47px;
    height: 58px;
  }

  .dataset-meta {
    width: 100%;
    overflow: hidden;
    font-size: 10px;
  }

  .meta-divider,
  #generatedAt {
    display: none;
  }

  .dashboard {
    padding-top: 14px;
  }

  .tip-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tip-notice time {
    width: calc(100% - 17px);
    margin-left: 17px;
  }

  .control-bar {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 14px;
  }

  .field--platform,
  .actions {
    grid-column: 1 / -1;
  }

  .actions {
    justify-content: stretch;
  }

  .button {
    flex: 1;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 116px;
    padding: 17px 15px 14px;
  }

  .metric strong {
    font-size: 21px;
  }

  .visuals {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel--trend,
  .panel--snapshot,
  .panel--composition,
  .panel--tool,
  .panel--compare,
  .panel--distribution,
  .panel--table {
    grid-column: 1;
  }

  .panel {
    padding: 16px 12px;
  }

  .panel--table {
    padding-right: 0;
    padding-left: 0;
  }

  .panel--compare {
    padding: 0;
  }

  .compare-header {
    align-items: flex-start;
    padding: 16px 12px 0;
  }

  .segmented__button {
    min-width: 88px;
    padding: 0 9px;
  }

  .compare-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
  }

  .compare-summary {
    grid-template-areas:
      "left right"
      "delta delta";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .compare-side--left { grid-area: left; }
  .compare-side--right { grid-area: right; }

  .compare-side {
    padding: 15px 12px;
  }

  .compare-side h3 {
    font-size: 14px;
  }

  .compare-side > strong {
    font-size: 21px;
  }

  .compare-side dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .compare-delta {
    grid-area: delta;
    padding: 12px;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .chart-frame--compare {
    width: 100%;
    height: 360px;
  }

  .comparison-chart {
    padding: 14px 12px;
  }

  .comparison-insight {
    padding-right: 12px;
    padding-left: 12px;
  }

  .panel__tools {
    align-items: flex-end;
  }

  .panel--distribution .panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel--distribution .panel__tools {
    align-items: flex-start;
  }


  .segmented--compact .segmented__button {
    min-width: 66px;
    padding: 0 7px;
  }


  .panel__header {
    min-height: 58px;
    padding-right: 0;
    padding-left: 0;
  }

  .panel--table .panel__header {
    padding-right: 12px;
    padding-left: 12px;
  }

  h2 {
    font-size: 16px;
  }

  .panel__context {
    max-width: 42%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel--distribution .panel__context {
    max-width: 55%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .chart-frame,
  .chart-frame--large {
    height: 300px;
  }

  .chart-frame--snapshot {
    height: 300px;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
  }

  .footer__links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }

  .footer__links span {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 27px;
  }

  .control-bar {
    grid-template-columns: 1fr;
  }

  .field,
  .field--platform,
  .actions {
    grid-column: 1;
  }

  .compare-controls {
    grid-template-columns: 1fr;
  }

  .compare-controls .field {
    grid-column: 1;
  }

  .metric {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status__spinner { animation: none; }
}