:root {
  --ds-bg: var(--ex-vapor-50);
  --ds-bg-2: var(--ex-vapor-100);
  --ds-panel: var(--ex-white);
  --ds-panel-2: #fbfcfb;
  --ds-ink: var(--ex-carbon-900);
  --ds-ink-soft: var(--ex-carbon-700);
  --ds-muted: var(--ex-graphite-600);
  --ds-line: var(--ex-line-200);
  --ds-line-strong: var(--ex-line-300);
  --ds-night: var(--ex-carbon-950);
  --ds-night-2: var(--ex-carbon-800);
  --ds-teal: #007f78;
  --ds-teal-dark: var(--ex-state-live-text);
  --ds-aqua: var(--ex-aqua-500);
  --ds-coral: var(--ex-red-600);
  --ds-amber: var(--ex-amber-500);
  --ds-violet: var(--ex-violet-500);
  --ds-lime: var(--ex-hud-green);
  --ds-red: var(--ex-state-fault-text);
  --ds-success-bg: var(--ex-state-ready-bg);
  --ds-danger-bg: var(--ex-state-fault-bg);
  --ds-radius: var(--ex-radius-surface);
  --ds-shadow: var(--ex-shadow-raised);
  --ds-shadow-soft: var(--ex-shadow-panel);
  --ds-page: min(1100px, calc(100vw - 48px));
  --ex-graphite-400: #97a1a0;
  --ex-sky-100: #dceeff;
  --font-ui: var(--ex-font-sans);
  --font-mono: var(--ex-font-mono);
  --font-data: var(--ex-font-mono);
  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-body: 0.9375rem;
  --ls-label: 0.08em;
  --radius-compact: var(--ex-radius-instrument);
  --radius: var(--ex-radius-surface);
  --radius-round: 999px;
  --control-h: 42px;
  --shadow-sm: var(--ex-shadow-panel);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --surface-app: var(--ex-vapor-50);
  --surface-card: var(--ex-white);
  --surface-panel: var(--ex-vapor-100);
  --surface-hover: var(--ex-vapor-100);
  --text-strong: var(--ex-carbon-950);
  --text-body: var(--ex-carbon-900);
  --text-muted: var(--ex-graphite-600);
  --text-inverse: var(--ex-vapor-50);
  --border-rule: var(--ex-line-200);
  --border-strong: var(--ex-line-300);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  background: var(--surface-app);
  color: var(--ds-ink);
  font-family: var(--ex-font-sans);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--surface-app);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  color-scheme: light;
}

.sillage-icon {
  display: block;
  flex: 0 0 auto;
}

.sillage-workbench {
  display: flex;
  min-height: 100vh;
  background: var(--surface-app);
}

.sillage-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: 65px;
  height: 100vh;
  flex: 0 0 65px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  border-right: 1px solid var(--ex-carbon-700);
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.sillage-rail-brand {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
}

.sillage-rail-brand img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.sillage-room-nav {
  display: grid;
  gap: 6px;
}

.sillage-room-link {
  display: flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: var(--ds-radius);
  color: var(--ex-graphite-400);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.sillage-room-link:hover {
  background: rgba(245, 248, 246, 0.06);
  color: var(--ex-vapor-100);
}

.sillage-room-link.is-active {
  background: var(--ex-carbon-800);
  color: var(--ex-aqua-500);
}

.sillage-room-link.is-disabled {
  cursor: default;
}

.sillage-room-link.is-disabled:hover {
  background: transparent;
  color: var(--ex-graphite-400);
}

.sillage-room-icon {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.sillage-room-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sillage-room-label {
  max-width: 46px;
  overflow: hidden;
  color: currentColor;
  font-family: var(--ex-font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sillage-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.sillage-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 57px;
  min-height: 57px;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ex-carbon-700);
  background: var(--ex-carbon-900);
  color: var(--ex-vapor-50);
}

.sillage-title-block {
  display: grid;
  width: 260px;
  min-width: 260px;
  gap: 0;
  line-height: 1.15;
}

.sillage-breadcrumb {
  overflow: hidden;
  color: var(--ex-graphite-400);
  font-family: var(--ex-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sillage-breadcrumb ol {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sillage-breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.sillage-breadcrumb li:not(:last-child)::after {
  flex: 0 0 auto;
  content: "·";
  color: var(--ex-graphite-500);
}

.sillage-breadcrumb a,
.sillage-breadcrumb span {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sillage-breadcrumb a:hover {
  color: var(--ex-vapor-100);
}

.sillage-breadcrumb [aria-current="page"] {
  color: var(--ex-graphite-300);
}

.sillage-title-block > strong {
  overflow: hidden;
  color: var(--ex-vapor-50);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sillage-topbar-spacer {
  flex: 1 1 auto;
}

.sillage-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--ex-field-500);
  color: var(--ex-white);
  font-family: var(--ex-font-mono);
  font-size: 12px;
  font-weight: 600;
}

.sillage-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.sillage-account-menu summary {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.sillage-account-menu summary::-webkit-details-marker {
  display: none;
}

.sillage-account-menu summary:hover,
.sillage-account-menu[open] summary {
  background: rgba(245, 248, 246, 0.08);
}

.sillage-account-menu summary:focus-visible {
  outline: 2px solid var(--ex-aqua-500);
  outline-offset: 3px;
}

.sillage-account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  display: grid;
  width: 190px;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--ds-radius);
  background: var(--ex-carbon-900);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.sillage-account-popover strong {
  color: var(--ex-vapor-50);
  font-size: 14px;
}

.sillage-account-popover > span {
  margin-bottom: 8px;
  color: var(--ex-graphite-400);
  font-size: 12px;
}

.sillage-account-action {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--ex-radius-instrument);
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.sillage-account-action:hover {
  border-color: var(--ex-aqua-500);
  color: var(--ex-aqua-500);
}

.sillage-subtabs {
  position: sticky;
  top: 57px;
  z-index: 15;
  display: flex;
  min-height: 47px;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 24px 0;
  border-bottom: 1px solid var(--ds-line);
  background: var(--surface-app);
}

.sillage-subtab {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sillage-subtab:hover {
  color: var(--ds-ink);
}

.sillage-subtab.is-active {
  border-bottom-color: var(--ex-aqua-500);
  color: var(--ds-ink);
}

.sillage-subtab.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.sillage-content {
  flex: 1;
  min-width: 0;
  background: var(--surface-app);
}

.app-shell {
  width: var(--ds-page);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.logbook-heading {
  align-items: flex-end;
}

.page-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: 3.65rem;
  line-height: 0.98;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logbook-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ex-white);
  color: var(--ds-muted);
}

.search-control:focus-within {
  border-color: var(--ds-aqua);
  outline: 2px solid rgba(47, 214, 198, 0.22);
  outline-offset: 1px;
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  outline: 0;
}

.logbook-screen {
  padding: 0;
}

.logbook-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.logbook-title {
  flex: 1;
  min-width: 0;
}

.logbook-title h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.logbook-title p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.logbook-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logbook-actions .search-control {
  width: 230px;
  height: var(--control-h);
  min-height: var(--control-h);
  padding: 0 12px;
  box-shadow: none;
}

.logbook-import-button {
  height: var(--control-h);
  min-height: var(--control-h);
  padding: 0 16px;
  border-radius: var(--ds-radius);
  background: var(--ex-carbon-950);
  font-size: 15px;
  font-weight: 600;
}

.primary-button.logbook-import-button {
  font-weight: 600;
}

.logbook-table-wrap {
  overflow: hidden;
  border: 1px solid var(--border-rule);
  border-radius: var(--ds-radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.logbook-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.logbook-col-flight {
  width: 184px;
}

.logbook-col-mode {
  width: 100px;
}

.logbook-col-date {
  width: 208px;
}

.logbook-col-duration {
  width: 138px;
}

.logbook-col-altitude {
  width: 124px;
}

.logbook-col-glide {
  width: 96px;
}

.logbook-col-status {
  width: 181px;
}

.logbook-col-open {
  width: 66px;
}

.logbook-table th {
  padding: 16px 16px 10px;
  color: var(--text-muted);
  font-family: var(--ex-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.logbook-table td {
  height: 49px;
  padding: 13px 16px;
  border-top: 1px solid var(--border-rule);
  color: var(--text-body);
  font-size: 14px;
  white-space: nowrap;
}

.logbook-table tbody tr {
  cursor: pointer;
}

.logbook-table tbody tr:hover {
  background: var(--surface-hover);
}

.logbook-row:focus-visible {
  outline: 2px solid var(--ex-aqua-500);
  outline-offset: -2px;
}

.logbook-flight a {
  color: var(--text-strong);
  font-family: var(--ex-font-mono);
  font-weight: 600;
}

.logbook-mono {
  font-family: var(--ex-font-mono);
  font-variant-numeric: tabular-nums;
}

.logbook-muted {
  color: var(--text-muted);
}

.mode-badge {
  display: inline-grid;
  height: 20px;
  min-width: 39px;
  place-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-family: var(--ex-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mode-badge.is-gld {
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.mode-badge.is-edf {
  border: 1px solid var(--ex-sky-500);
  background: var(--ex-sky-100);
  color: var(--ex-sky-500);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-strong);
  font-family: var(--ex-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ex-graphite-500);
}

.status-dot.is-ready span {
  background: var(--ex-field-500);
}

.status-dot.is-live span {
  background: var(--ex-aqua-500);
}

.status-dot.is-caution span {
  background: var(--ex-amber-500);
}

.status-dot.is-fault span {
  background: var(--ex-red-600);
}

.logbook-open {
  width: 44px;
  color: var(--text-muted);
  text-align: right;
}

.logbook-open a {
  display: inline-grid;
  place-items: center;
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ds-teal-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--ds-aqua), var(--ds-lime));
}

.dashboard-grid,
.content-split,
.charts-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid > *,
.content-split > *,
.charts-grid > * {
  min-width: 0;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  align-items: stretch;
}

.content-split {
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 28px;
}

.charts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.flight-prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.flight-prep-grid > * {
  min-width: 0;
}

.wide-chart {
  grid-column: 1 / -1;
}

.tool-panel,
.stats-panel,
.jump-card,
.import-row {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ds-shadow-soft);
}

.tool-panel {
  padding: 20px;
}

.tool-panel.wide {
  width: min(760px, 100%);
}

.tool-panel h2,
.section-header h2,
.trajectory h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-header span {
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.import-panel {
  position: relative;
  overflow: hidden;
}

.import-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--ds-aqua), var(--ds-lime), var(--ds-amber));
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.stat {
  min-height: 122px;
  padding: 18px;
  border-right: 1px solid var(--ds-line);
  border-bottom: 1px solid var(--ds-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(251, 252, 251, 0.95)),
    var(--ds-panel);
}

.stat span,
.metric-strip span,
.jump-date,
.details-grid dt {
  display: block;
  color: var(--ds-muted);
  font-size: 0.82rem;
}

.stat strong,
.metric-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ds-ink);
  font-size: 2.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.flight-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -8px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 26, 0.12);
  border-radius: var(--ds-radius);
  background: var(--ds-night);
  box-shadow: var(--ds-shadow-soft);
}

.flight-readiness-strip.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -6px;
}

.flight-readiness-strip div {
  min-height: 78px;
  padding: 15px 16px;
  background:
    linear-gradient(180deg, rgba(47, 214, 198, 0.07), transparent),
    var(--ds-night);
}

.flight-readiness-strip span {
  display: block;
  color: rgba(245, 248, 246, 0.6);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.flight-readiness-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ds-lime);
  font-size: 1.02rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prep-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prep-metric {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ex-white);
  box-shadow: var(--ds-shadow-soft);
}

.prep-metric span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prep-metric strong {
  color: var(--ds-ink);
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prep-metric small {
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.82rem;
}

.prep-metric.is-caution strong {
  color: var(--ex-amber-500);
}

.safety-gate {
  border-width: 2px;
  border-color: rgba(242, 162, 58, 0.62);
}

.safety-gate-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ex-amber-500);
}

.safety-gate-title h2 {
  margin: 0;
  color: var(--ds-ink);
}

.safety-gate p {
  margin: 10px 0 14px;
  color: var(--ds-muted);
  line-height: 1.45;
}

.hardware-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.hardware-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-line);
}

.hardware-list div:last-child {
  border-bottom: 0;
}

.hardware-list dt {
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hardware-list dd {
  margin: 0;
  color: var(--ds-ink);
  text-align: right;
}

.prep-checklist {
  margin-top: 18px;
}

.checklist-rows {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ds-line);
  background: var(--ex-white);
}

.checklist-rows li + li {
  margin-top: -1px;
}

.checklist-rows li:first-child {
  border-radius: var(--ds-radius) var(--ds-radius) 0 0;
}

.checklist-rows li:last-child {
  border-radius: 0 0 var(--ds-radius) var(--ds-radius);
}

.checklist-rows svg {
  color: var(--ds-muted);
}

.checklist-rows .is-done svg {
  color: var(--ex-field-500);
}

.checklist-rows .is-active svg {
  color: var(--ex-aqua-500);
}

.checklist-rows .is-blocked svg {
  color: var(--ex-red-600);
}

.checklist-rows span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checklist-rows strong {
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
}

.upload-form {
  display: grid;
  gap: 14px;
}

.upload-drop {
  position: relative;
  display: grid;
  min-height: 198px;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  border: 1px dashed rgba(16, 24, 26, 0.24);
  border-radius: var(--ds-radius);
  background:
    linear-gradient(135deg, rgba(47, 214, 198, 0.12), transparent 45%),
    linear-gradient(315deg, rgba(242, 162, 58, 0.1), transparent 42%),
    var(--ds-panel-2);
  cursor: pointer;
  text-align: center;
}

.upload-drop::before {
  position: absolute;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(47, 214, 198, 0.18);
  transform: rotate(26deg);
}

.upload-drop:hover {
  border-color: var(--ds-aqua);
  background:
    linear-gradient(135deg, rgba(47, 214, 198, 0.16), transparent 45%),
    linear-gradient(315deg, rgba(242, 162, 58, 0.1), transparent 42%),
    #fbfefd;
}

.upload-drop input {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-title,
.upload-hint {
  position: relative;
}

.upload-title {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
}

.upload-hint,
.file-summary,
.empty-state {
  color: var(--ds-muted);
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius);
  cursor: pointer;
  font-weight: 780;
}

.primary-button svg,
.secondary-button svg,
.danger-button svg {
  flex: 0 0 auto;
}

.primary-button {
  background: linear-gradient(135deg, var(--ds-night-2), var(--ds-night));
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 26, 0.2);
}

.primary-button:hover {
  filter: brightness(0.96);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.58;
  box-shadow: none;
}

.secondary-button {
  border-color: var(--ds-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ds-ink);
}

.secondary-button:hover {
  border-color: var(--ds-line-strong);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.danger-button {
  width: 100%;
  background: var(--ds-red);
  color: #fff;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ex-white);
  color: var(--ds-muted);
}

.icon-button:hover {
  border-color: var(--ds-line-strong);
  color: var(--ds-ink);
}

.jump-list,
.import-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.jump-card,
.import-row {
  display: grid;
  min-width: 0;
  padding: 16px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.jump-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.jump-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--ds-radius);
  background: var(--ex-state-live-bg);
  color: var(--ds-teal-dark);
}

.jump-card-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.jump-card:hover,
.import-row:hover {
  border-color: var(--ds-aqua);
  box-shadow: var(--ds-shadow);
  transform: translateY(-1px);
}

.jump-card strong {
  min-width: 0;
  color: var(--ds-ink);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.jump-card span,
.import-row span,
.import-row-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.import-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.import-row-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ds-bg-2);
  color: var(--ds-muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.status.pending {
  background: var(--ex-state-pending-bg);
  color: var(--ex-state-pending-text);
}

.status.processing {
  background: var(--ex-state-caution-bg);
  color: var(--ex-state-caution-text);
}

.status.imported {
  background: var(--ex-state-ready-bg);
  color: var(--ex-state-ready-text);
}

.status.failed {
  background: var(--ex-state-fault-bg);
  color: var(--ex-state-fault-text);
}

.row-chevron {
  display: grid;
  place-items: center;
  color: var(--ds-muted);
}

.flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-panel);
}

.flash.notice {
  border-color: rgba(79, 123, 78, 0.34);
  background: var(--ex-state-ready-bg);
}

.flash.alert {
  border-color: rgba(230, 59, 53, 0.28);
  background: var(--ex-state-fault-bg);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-line);
  box-shadow: var(--ds-shadow-soft);
}

.metric-strip div {
  min-height: 104px;
  padding: 16px;
  background:
    linear-gradient(180deg, #fff, var(--ds-panel-2));
}

.replay-command-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--ds-radius);
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.replay-back-button svg {
  transform: rotate(180deg);
}

.replay-command-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.replay-command-title .eyebrow {
  margin: 0;
  color: var(--ex-graphite-400);
}

.replay-command-title .eyebrow::before {
  display: none;
}

.replay-command-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--ex-vapor-50);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-command-spacer {
  flex: 1 1 auto;
}

.hud-heading {
  align-items: flex-end;
}

.hud-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--ds-muted);
}

.hud-mode-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ex-white);
}

.hud-mode-control span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 4px;
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.hud-mode-control .is-selected {
  background: var(--ex-carbon-950);
  color: var(--ex-hud-green);
}

.hud-mode-control [aria-disabled="true"] {
  opacity: 0.45;
}

.hud-preview {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--ds-radius);
  background: linear-gradient(180deg, #0b1418 0%, #0a1012 52%, #0c0f0e 52%, #070b0d 100%);
  color: var(--ex-hud-green);
  box-shadow: var(--ds-shadow-soft);
}

.hud-compass {
  position: absolute;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ex-hud-green);
  font-family: var(--ex-font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.hud-compass span {
  opacity: 0.48;
}

.hud-compass strong {
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  font-size: 1.12rem;
}

.hud-horizon {
  position: absolute;
  top: 52%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--ex-hud-green);
  opacity: 0.5;
}

.hud-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--ex-hud-green);
  opacity: 0.72;
  transform: translate(-50%, -50%);
}

.hud-waypoint {
  position: absolute;
  top: 34%;
  left: 63%;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--ex-amber-500);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
}

.hud-waypoint svg {
  width: 26px;
  height: 34px;
}

.hud-alert {
  position: absolute;
  top: 12px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ex-amber-500);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.hud-ladder {
  position: absolute;
  top: 50%;
  display: grid;
  gap: 8px;
  color: var(--ex-hud-green);
  font-family: var(--ex-font-mono);
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}

.hud-ladder.is-left {
  left: 40px;
  text-align: left;
}

.hud-ladder.is-right {
  right: 40px;
  text-align: right;
}

.hud-ladder span,
.hud-bottom-data span {
  color: var(--ex-graphite-600);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hud-ladder small {
  font-size: 1rem;
  opacity: 0.45;
}

.hud-ladder strong {
  padding: 2px 8px;
  border: 2px solid currentColor;
  font-size: 1.9rem;
  line-height: 1;
}

.hud-ladder em {
  color: var(--ex-graphite-600);
  font-size: 0.74rem;
  font-style: normal;
}

.hud-bottom-data {
  position: absolute;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 40px;
  font-family: var(--ex-font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
  transform: translateX(-50%);
}

.hud-bottom-data div {
  display: grid;
  gap: 4px;
}

.hud-bottom-data strong {
  font-size: 1.4rem;
  line-height: 1;
}

.hud-bottom-data small,
.hud-bottom-data .is-muted {
  color: var(--ex-graphite-600);
}

.hud-mode-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  color: var(--ex-hud-green);
  font-family: var(--ex-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.hud-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}

.hud-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ds-muted);
  font-family: var(--ex-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hud-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--legend-color);
}

.trajectory {
  margin: 0 0 24px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(47, 214, 198, 0.18);
  border-radius: var(--ds-radius);
  background:
    linear-gradient(180deg, rgba(47, 214, 198, 0.06), transparent 38%),
    var(--ds-night);
  color: var(--ex-vapor-50);
}

.trajectory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.trajectory-header h2 {
  margin: 0;
}

.trajectory-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trajectory-time {
  min-width: 112px;
  color: var(--ex-vapor-50);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.trajectory-icon-button {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(245, 248, 246, 0.2);
  border-radius: 50%;
  background: rgba(245, 248, 246, 0.08);
  color: var(--ex-vapor-50);
  cursor: pointer;
}

.trajectory-icon-button:hover {
  border-color: rgba(47, 214, 198, 0.46);
  background: rgba(47, 214, 198, 0.14);
}

.play-toggle-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.trajectory-play-button.is-playing .play-toggle-icon {
  position: relative;
  width: 12px;
  height: 14px;
  margin-left: 0;
  border: 0;
}

.trajectory-play-button.is-playing .play-toggle-icon::before,
.trajectory-play-button.is-playing .play-toggle-icon::after {
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  content: "";
  border-radius: 1px;
  background: currentColor;
}

.trajectory-play-button.is-playing .play-toggle-icon::before {
  left: 1px;
}

.trajectory-play-button.is-playing .play-toggle-icon::after {
  right: 1px;
}

.play-icon {
  display: grid;
  place-items: center;
}

.trajectory-play-button .is-pause {
  display: none;
}

.trajectory-play-button.is-playing .is-play {
  display: none;
}

.trajectory-play-button.is-playing .is-pause {
  display: grid;
}

.camera-reset-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.camera-reset-icon::before,
.camera-reset-icon::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.camera-reset-icon::before {
  top: 5px;
  left: -4px;
  width: 22px;
  height: 2px;
}

.camera-reset-icon::after {
  top: -4px;
  left: 5px;
  width: 2px;
  height: 22px;
}

.trajectory-scene {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(340px, 56vh, 680px);
  margin: 16px 0 14px;
  border: 1px solid rgba(47, 214, 198, 0.22);
  border-radius: var(--ds-radius);
  background: var(--ds-night);
  cursor: grab;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.trajectory-scene.is-dragging {
  cursor: grabbing;
}

.trajectory-canvas,
.trajectory-scene .cesium-widget,
.trajectory-scene .cesium-widget canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: inherit;
  touch-action: none;
}

.trajectory-notice {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  max-width: min(420px, calc(100% - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(47, 214, 198, 0.28);
  border-radius: var(--ds-radius);
  background: rgba(7, 11, 13, 0.78);
  color: var(--ex-vapor-50);
  font-size: 0.88rem;
}

.scrubber {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--ds-aqua);
}

.video-sync {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.video-sync-header,
.video-sync-controls,
.video-upload-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-sync-header {
  justify-content: space-between;
}

.video-sync-header p {
  max-width: 620px;
  margin: -8px 0 0;
  color: var(--ds-muted);
  font-size: 0.92rem;
}

.video-upload-form {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.video-upload-button {
  position: relative;
  overflow: hidden;
}

.video-upload-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.video-stage {
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-night);
}

.jump-video {
  display: block;
  width: 100%;
  max-height: min(62vh, 680px);
  background: var(--ds-night);
}

.video-sync-controls {
  justify-content: space-between;
  flex-wrap: wrap;
}

.video-exit-form {
  margin: 0;
}

.video-sync-state,
.video-status {
  color: var(--ds-muted);
  font-size: 0.92rem;
}

.video-status {
  margin: 0;
}

.analysis-chart {
  display: block;
  width: 100%;
  height: 320px;
}

.chart-panel[hidden] {
  display: none;
}

.panel-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.details-form {
  display: grid;
  gap: 10px;
}

.details-form label {
  color: var(--ds-muted);
  font-size: 0.82rem;
}

.details-form input,
.details-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-panel-2);
  color: var(--ds-ink);
}

.details-form input:focus,
.details-form textarea:focus {
  outline: 2px solid rgba(47, 214, 198, 0.28);
  outline-offset: 1px;
  border-color: var(--ds-aqua);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.details-grid div {
  padding: 12px;
  border-radius: var(--ds-radius);
  background: var(--ds-bg-2);
}

.details-grid dt {
  margin-bottom: 5px;
}

.details-grid dd {
  margin: 0;
  font-weight: 740;
}

.danger-panel {
  border-color: rgba(184, 35, 24, 0.26);
}

.error-text {
  color: var(--ds-red);
  font-weight: 740;
}

.reference-hero,
.reference-two-column,
.reference-component-grid,
.reference-check-grid {
  display: grid;
  gap: 18px;
}

.reference-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: stretch;
  margin-bottom: 34px;
}

.reference-hero-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(47, 214, 198, 0.22);
  border-radius: var(--ds-radius);
  background:
    linear-gradient(145deg, rgba(47, 214, 198, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(7, 11, 13, 0.92), rgba(7, 11, 13, 0.98)),
    var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.reference-hero-copy .eyebrow {
  color: var(--ex-hud-green);
}

.reference-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: 3.35rem;
  line-height: 0.98;
}

.reference-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(245, 248, 246, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.reference-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.reference-mode-row span {
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 248, 246, 0.18);
  border-radius: 4px;
  background: rgba(245, 248, 246, 0.08);
  color: var(--ex-vapor-50);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0;
  text-align: center;
}

.reference-hero-media {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 26, 0.14);
  border-radius: var(--ds-radius);
  background: var(--ex-carbon-900);
  box-shadow: var(--ds-shadow-soft);
}

.reference-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-hero-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: min(480px, calc(100% - 28px));
  padding: 9px 11px;
  border: 1px solid rgba(245, 248, 246, 0.18);
  border-radius: 4px;
  background: rgba(7, 11, 13, 0.74);
  color: var(--ex-vapor-50);
  font-size: 0.8rem;
}

.reference-section {
  margin-top: 28px;
}

.reference-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reference-swatch-card,
.reference-panel {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ds-shadow-soft);
}

.reference-swatch-card {
  display: grid;
  gap: 7px;
  min-height: 178px;
  padding: 14px;
}

.reference-swatch {
  display: block;
  height: 58px;
  border: 1px solid rgba(16, 24, 26, 0.14);
  border-radius: 4px;
  background: var(--swatch-color);
}

.reference-swatch-card strong,
.reference-swatch-card span,
.reference-swatch-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reference-swatch-card strong {
  font-size: 0.9rem;
}

.reference-swatch-card span:not(.reference-swatch),
.reference-muted {
  color: var(--ds-muted);
  font-size: 0.84rem;
}

.reference-swatch-card p {
  margin: 0;
  color: var(--ds-ink-soft);
  font-size: 0.9rem;
}

.reference-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.reference-component-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reference-check-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reference-panel {
  min-width: 0;
  padding: 20px;
}

.reference-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.reference-panel code {
  color: var(--ds-ink);
  font-size: 0.92em;
}

.reference-type-stack {
  display: grid;
  gap: 12px;
}

.reference-type-stack p {
  margin: 0;
}

.reference-display {
  font-size: 2.2rem;
  font-weight: 820;
  line-height: 1;
}

.reference-heading {
  color: var(--ds-teal-dark);
  font-size: 1.24rem;
  font-weight: 800;
}

.reference-body {
  max-width: 620px;
  color: var(--ds-muted);
  line-height: 1.55;
}

.reference-mono {
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--ex-carbon-950);
  color: var(--ex-hud-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.reference-token-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.reference-token-list div {
  padding: 12px;
  border-radius: 4px;
  background: var(--ds-bg-2);
}

.reference-token-list dt {
  color: var(--ds-muted);
  font-size: 0.82rem;
}

.reference-token-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.reference-readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--ds-shadow-soft);
}

.reference-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.reference-state.is-ready {
  border-color: rgba(79, 123, 78, 0.26);
  background: rgba(140, 255, 77, 0.18);
  color: #315a26;
}

.reference-state.is-live {
  border-color: rgba(47, 214, 198, 0.34);
  background: rgba(47, 214, 198, 0.14);
  color: var(--ds-teal-dark);
}

.reference-state.is-pending,
.reference-state.is-unknown {
  border-color: var(--ds-line);
  background: var(--ds-bg-2);
  color: var(--ds-muted);
}

.reference-state.is-caution {
  border-color: rgba(242, 162, 58, 0.34);
  background: rgba(242, 162, 58, 0.16);
  color: #7a4b0a;
}

.reference-state.is-fault {
  border-color: rgba(230, 59, 53, 0.28);
  background: rgba(230, 59, 53, 0.12);
  color: var(--ds-red);
}

.reference-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ds-muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.reference-panel-header strong {
  color: var(--ds-teal-dark);
}

.reference-hud-panel {
  background:
    linear-gradient(180deg, rgba(47, 214, 198, 0.08), transparent),
    var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.reference-hud-panel .reference-panel-header {
  color: rgba(245, 248, 246, 0.62);
}

.reference-hud-panel .reference-panel-header strong {
  color: var(--ex-hud-green);
}

.reference-hud-metrics {
  display: grid;
  gap: 10px;
}

.reference-hud-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 248, 246, 0.12);
}

.reference-hud-metrics span {
  color: rgba(245, 248, 246, 0.62);
  font-size: 0.74rem;
  font-weight: 820;
}

.reference-hud-metrics strong {
  color: var(--ex-hud-green);
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reference-hud-alert {
  margin: 16px 0 0;
  color: rgba(245, 248, 246, 0.74);
  font-size: 0.92rem;
}

.reference-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-bg-2);
}

.reference-segmented span {
  min-height: 36px;
  padding: 9px 8px;
  border-radius: 4px;
  color: var(--ds-muted);
  font-size: 0.8rem;
  font-weight: 820;
  text-align: center;
}

.reference-segmented .is-selected {
  background: var(--ex-carbon-950);
  color: var(--ex-hud-green);
}

.reference-mini-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.reference-mini-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ds-line);
}

.reference-mini-metrics span,
.reference-checklist {
  color: var(--ds-muted);
  font-size: 0.84rem;
}

.reference-mini-metrics strong {
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}

.reference-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.reference-checklist li > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ds-line-strong);
}

.reference-checklist li > .is-ready {
  background: var(--ex-hud-green);
}

.reference-checklist li > .is-caution {
  background: var(--ex-amber-500);
}

.reference-table-panel {
  overflow-x: auto;
}

.reference-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.reference-table th,
.reference-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--ds-line);
  text-align: left;
  vertical-align: middle;
}

.reference-table th {
  color: var(--ds-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.reference-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 760;
}

.reference-source-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reference-source-panel p {
  margin: 0;
  color: var(--ds-muted);
  line-height: 1.55;
}

.reference-source-panel code {
  color: var(--ds-ink);
  font-size: 0.92em;
}

.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;
}

.app-shell.is-full-bleed {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 57px);
  margin: 0;
  padding: 0;
}

.room-placeholder {
  display: grid;
  min-height: calc(100vh - 57px);
  place-items: center;
}

.room-placeholder-card {
  width: min(420px, calc(100vw - 48px));
  padding: 24px;
  text-align: center;
}

.room-placeholder-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.room-placeholder-card h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
}

.room-placeholder-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.room-placeholder-card span {
  display: block;
  margin-top: 14px;
  color: var(--ex-graphite-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-page-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.kit-page-header > div:first-child {
  min-width: 0;
  flex: 1;
}

.kit-page-header h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.kit-page-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.flight-prep-screen,
.hud-screen {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.kit-readiness-strip {
  display: grid;
  grid-template-columns: 52px repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--border-rule);
  border-radius: var(--radius);
  background: var(--border-rule);
  box-shadow: var(--shadow-sm);
}

.kit-readiness-mode {
  display: grid;
  min-height: 74px;
  place-items: center;
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.kit-readiness-item {
  min-height: 74px;
  padding: 14px 16px;
  background: var(--surface-card);
}

.kit-readiness-item span {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-readiness-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.2;
}

.kit-readiness-item.is-ready strong { color: var(--ex-field-500); }
.kit-readiness-item.is-live strong { color: var(--ex-aqua-500); }
.kit-readiness-item.is-caution strong,
.kit-readiness-item.is-pending strong { color: var(--ex-amber-500); }

.flight-prep-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.kit-card {
  overflow: hidden;
  border: 1px solid var(--border-rule);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.kit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-rule);
}

.kit-card-header span {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-card-header h2 {
  margin: 3px 0 0;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
}

.kit-card-header strong {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.kit-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
}

.kit-checklist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 12px;
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-rule);
  color: var(--text-body);
}

.kit-checklist li:last-child {
  border-bottom: 0;
}

.kit-checklist svg {
  color: var(--text-muted);
}

.kit-checklist .is-done svg { color: var(--ex-field-500); }
.kit-checklist .is-active svg { color: var(--ex-aqua-500); }
.kit-checklist .is-blocked svg { color: var(--ex-red-600); }

.kit-checklist span {
  min-width: 0;
  font-size: 14px;
}

.kit-checklist strong,
.kit-checklist a,
.kit-checklist em {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kit-checklist a,
.kit-checklist em {
  margin-top: 2px;
}

.kit-checklist a {
  grid-column: 4;
}

.kit-checklist em {
  grid-column: 2 / -1;
}

.flight-prep-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.kit-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kit-metric-tile {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--border-rule);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.kit-metric-tile.is-sunken {
  border-color: var(--ex-carbon-700);
  background: var(--ex-carbon-950);
  box-shadow: none;
}

.kit-metric-tile span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-metric-tile strong {
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kit-metric-tile small {
  margin-left: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.kit-metric-tile.is-ready strong { color: var(--ex-field-500); }
.kit-metric-tile.is-live strong { color: var(--ex-aqua-500); }
.kit-metric-tile.is-caution strong { color: var(--ex-amber-500); }
.ex-dark .kit-metric-tile strong { color: var(--ex-vapor-50); }
.ex-dark .kit-metric-tile.is-ready strong { color: var(--ex-hud-green); }

.kit-safety-gate {
  padding: 16px;
  border: 2px solid var(--ex-amber-500);
  border-radius: var(--radius);
  background: var(--surface-card);
}

.kit-safety-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ex-amber-500);
}

.kit-safety-title span {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-safety-gate p {
  max-width: 360px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kit-safety-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-badge.is-caution {
  border: 1px solid var(--ex-amber-500);
  background: var(--ex-state-caution-bg);
  color: var(--ex-amber-500);
}

.mode-badge.is-neutral {
  border: 1px solid var(--border-rule);
  background: var(--surface-panel);
  color: var(--text-muted);
}

.kit-import-card .upload-form {
  padding: 14px;
}

.kit-import-card .upload-drop {
  min-height: 132px;
}

.hud-kit-header {
  margin-bottom: 16px;
}

.hud-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-rule);
  border-radius: var(--radius);
  background: var(--surface-panel);
}

.hud-mode-control span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-compact);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-mode-control .is-selected {
  background: var(--ex-carbon-900);
  color: var(--ex-vapor-50);
}

.hud-mode-control [aria-disabled="true"] {
  opacity: 0.4;
}

.kit-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.kit-switch i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 1px var(--border-rule);
}

.kit-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.hud-failsafe-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hud-failsafe-checkbox:checked ~ .kit-page-header .kit-switch i {
  background: var(--ex-carbon-900);
}

.hud-failsafe-checkbox:checked ~ .kit-page-header .kit-switch i::after {
  transform: translateX(16px);
  background: var(--ex-aqua-500);
}

.hud-preview-kit {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  max-height: 552px;
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0b1418 0%, #0a1012 52%, #0c0f0e 52%, #070b0d 100%);
}

.hud-normal-state,
.hud-failsafe-state {
  position: absolute;
  inset: 0;
}

.hud-failsafe-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ex-carbon-950);
}

.hud-failsafe-state span {
  color: var(--ex-graphite-600);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hud-failsafe-state small {
  color: #2a3433;
  font-family: var(--font-mono);
  font-size: 11px;
}

.hud-failsafe-checkbox:checked ~ .hud-preview-kit .hud-normal-state { display: none; }
.hud-failsafe-checkbox:checked ~ .hud-preview-kit .hud-failsafe-state { display: flex; }

.replay-kit-screen {
  display: flex;
  min-height: calc(100vh - 57px);
  flex-direction: column;
  background: var(--ex-carbon-950);
  color: var(--ex-vapor-50);
}

.replay-kit-bar {
  display: flex;
  min-height: 71px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ex-carbon-700);
}

.kit-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ex-vapor-50);
  cursor: pointer;
}

.kit-icon-button:hover { background: var(--ex-carbon-800); }
.kit-icon-button.is-solid {
  background: var(--ex-aqua-500);
  color: var(--ex-carbon-950);
}

.is-back-icon { transform: rotate(180deg); }

.replay-kit-id {
  color: var(--ex-vapor-50);
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.replay-kit-spacer { flex: 1; }

.replay-kit-action.secondary-button {
  border-color: var(--ex-carbon-700);
  background: var(--ex-carbon-900);
  color: var(--ex-vapor-50);
  font-weight: 600;
}

.replay-kit-bar .mode-badge.is-gld {
  background: var(--ex-aqua-500);
  color: var(--ex-carbon-950);
}

.replay-kit-bar .mode-badge.is-neutral {
  border-color: var(--ex-carbon-700);
  background: var(--ex-carbon-800);
  color: var(--ex-graphite-300);
}

.replay-kit-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
  min-height: 0;
  padding: 16px;
}

.replay-kit-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.replay-kit-panel,
.replay-events-panel {
  border: 1px solid var(--ex-carbon-700);
  border-radius: var(--radius);
  background: var(--ex-carbon-900);
}

.replay-kit-panel { padding: 14px; }

.replay-kit-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.replay-kit-panel-title span,
.replay-kit-panel-title strong,
.replay-kit-legend span,
.replay-events-panel > span {
  color: var(--ex-graphite-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.replay-kit-panel-title strong {
  letter-spacing: 0;
  text-transform: none;
}

.replay-kit-svg {
  display: block;
  width: 100%;
  height: auto;
}

.replay-grid-line {
  stroke: #21302f;
  stroke-width: 1;
}

.replay-axis-label {
  fill: var(--ex-graphite-600);
  font-family: var(--font-mono);
  font-size: 9px;
}

.replay-altitude-fill { fill: rgba(47, 214, 198, 0.08); }
.replay-altitude-line,
.replay-telemetry-altitude {
  fill: none;
  stroke: var(--ex-aqua-500);
}
.replay-altitude-line { stroke-width: 2; }
.replay-scrub-line {
  stroke: var(--ex-aqua-500);
  stroke-dasharray: 3 4;
  opacity: 0.5;
}
.replay-current-dot {
  fill: var(--ex-hud-green);
  stroke: var(--ex-carbon-950);
  stroke-width: 1.5;
}

.replay-kit-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.replay-kit-legend strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ex-vapor-50);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.replay-kit-legend i {
  width: 10px;
  height: 2px;
}

.replay-kit-legend .is-sky { background: var(--ex-sky-500); }
.replay-kit-legend .is-aqua { background: var(--ex-aqua-500); }
.replay-telemetry-altitude {
  stroke-width: 1.5;
  opacity: 0.5;
}
.replay-telemetry-speed {
  fill: none;
  stroke: var(--ex-sky-500);
  stroke-width: 2;
}
.replay-telemetry-cursor { stroke: var(--ex-hud-green); }

.replay-kit-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.replay-kit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.replay-events-panel { padding: 12px; }
.replay-events-panel > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.replay-events-panel p {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0;
}
.replay-events-panel time {
  width: 42px;
  flex: 0 0 auto;
  color: var(--ex-graphite-400);
  font-family: var(--font-data);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ex-dark .status-dot { color: var(--ex-vapor-50); }

.replay-kit-scrubber {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--ex-carbon-700);
  background: var(--ex-carbon-900);
}

.replay-kit-scrubber time {
  width: 52px;
  color: var(--ex-graphite-400);
  font-family: var(--font-data);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.replay-kit-scrubber .is-current {
  color: var(--ex-hud-green);
  text-align: left;
}

.replay-kit-scrubber input {
  flex: 1;
  accent-color: var(--ex-aqua-500);
}

.replay-analysis-dock {
  padding: 24px;
  background: var(--surface-app);
}

@media (max-width: 920px) {
  :root {
    --ds-page: min(720px, calc(100vw - 28px));
  }

  .sillage-workbench {
    flex-direction: column;
  }

  .sillage-rail {
    position: static;
    width: 100%;
    height: auto;
    flex-basis: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ex-carbon-700);
  }

  .sillage-rail-brand {
    margin: 0 6px 0 0;
    flex: 0 0 auto;
  }

  .sillage-room-nav {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
  }

  .sillage-room-link {
    width: 44px;
    flex: 0 0 auto;
  }

  .sillage-topbar {
    position: static;
    min-height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .sillage-title-block {
    flex: 1 1 220px;
  }

  .sillage-topbar-spacer {
    display: none;
  }

  .sillage-subtabs {
    position: static;
    min-height: auto;
    padding: 8px 14px;
    overflow-x: auto;
  }

  .page-heading,
  .page-actions,
  .logbook-search,
  .upload-actions,
  .video-sync-header,
  .video-sync-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions,
  .logbook-search,
  .search-control {
    width: 100%;
  }

  .logbook-header,
  .logbook-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .logbook-actions,
  .logbook-actions .search-control,
  .logbook-import-button {
    width: 100%;
  }

  .logbook-table-wrap {
    overflow-x: auto;
  }

  .replay-command-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .replay-command-title {
    flex: 1 1 calc(100% - 52px);
  }

  .replay-command-spacer {
    display: none;
  }

  .replay-command-bar > .secondary-button {
    flex: 1 1 160px;
  }

  .hud-mode-control {
    width: 100%;
  }

  .hud-preview {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .hud-compass {
    gap: 14px;
  }

  .hud-ladder.is-left {
    left: 16px;
  }

  .hud-ladder.is-right {
    right: 16px;
  }

  .hud-ladder strong {
    font-size: 1.35rem;
  }

  .hud-waypoint {
    left: 58%;
  }

  .hud-bottom-data {
    right: 16px;
    left: 16px;
    justify-content: center;
    gap: 22px;
    transform: none;
  }

  .video-upload-form {
    justify-content: stretch;
  }

  .page-heading h1 {
    font-size: 2.35rem;
  }

  .dashboard-grid,
  .content-split,
  .charts-grid,
  .flight-prep-grid,
  .flight-readiness-strip,
  .flight-readiness-strip.compact,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .prep-metrics {
    grid-template-columns: 1fr;
  }

  .checklist-rows li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .checklist-rows strong {
    grid-column: 2;
  }

  .jump-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .jump-card .status {
    display: none;
  }

  .stats-panel,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .reference-hero,
  .reference-two-column,
  .reference-component-grid,
  .reference-check-grid {
    grid-template-columns: 1fr;
  }

  .reference-hero-copy,
  .reference-hero-media {
    min-height: 320px;
  }

  .reference-hero-copy {
    padding: 22px;
  }

  .reference-hero-copy h1 {
    font-size: 2.35rem;
  }

  .reference-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip {
    gap: 0;
  }

  .stat strong,
  .metric-strip strong {
    font-size: 1.85rem;
  }
}
