/* ============================================================
   SENTINEL — Operator Dashboard
   Extends style.css. Loads AFTER it. Reuses every token.

   ONE new token (documented, per the hard rules):
     --alert — the RED ALERT state color. Dark theme uses the
     coral already present in the system as the `.x` fail color
     (#E07B6A); light theme uses the existing illustration ink
     accent (#B23A1E). No other new colors anywhere.
   ============================================================ */
:root { --alert: #E07B6A; }
[data-theme='light'] { --alert: #B23A1E; }

/* ===================== FOCUS / A11Y ===================== */
.dash :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

body.dash { background: var(--bg); }

/* ===================== TOP BAR (56px sticky) ===================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__left, .topbar__center, .topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__center { flex: 1; justify-content: center; }
.topbar .brand { justify-self: auto; gap: 8px; }
.topbar .brand__mark { width: 20px; height: 20px; }

.iconbtn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.iconbtn:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.iconbtn svg { width: 16px; height: 16px; }

.env-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.topbar__score {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}
.topbar__score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.topbar__spark { width: 80px; height: 22px; }
.topbar__spark path { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.topbar__score-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  min-width: 44px;
  text-align: right;
}

/* tier badge — quiet / heads / red */
.tier-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}
.tier-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint);
}
.tier-badge--quiet { color: var(--text-muted); }
.tier-badge--quiet::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tier-badge--heads {
  color: var(--accent); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tier-badge--heads::before { background: var(--accent); animation: pulseDot 1.6s ease-in-out infinite; }
.tier-badge--red {
  color: var(--alert); border-color: var(--alert);
  background: color-mix(in srgb, var(--alert) 10%, transparent);
}
.tier-badge--red::before { background: var(--alert); animation: pulseDot 1s ease-in-out infinite; }

.utc-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.avatar:hover { border-color: var(--accent); }

/* ===================== SHELL: RAIL + BOARD ===================== */
.shell { display: flex; align-items: stretch; min-height: calc(100vh - 56px); }

.rail {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  padding: 18px 0 14px;
  transition: width 0.25s ease;
  overflow: hidden;
}
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail__link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}
.rail__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.rail__link:hover { color: var(--text); background: var(--surface); }
.rail__link.is-active { color: var(--text); }
/* accent active indicator — 4px left bar */
.rail__link.is-active::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--accent);
}
.rail__link.is-active svg { color: var(--accent); }
.rail__foot {
  margin-top: auto;
  padding: 14px 20px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* collapsed rail (desktop) */
.shell.is-collapsed .rail { width: 64px; }
.shell.is-collapsed .rail__link { padding: 11px 24px; }
.shell.is-collapsed .rail__label, .shell.is-collapsed .rail__foot { opacity: 0; pointer-events: none; }
.rail__label { transition: opacity 0.2s; }

/* ===================== BOARD GRID ===================== */
.board {
  flex: 1;
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-content: start;
}
.board > section { grid-column: 1 / -1; }

.board__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* ===================== MAP BAND ===================== */
.map-band {
  position: relative;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.map { position: absolute; inset: 0; }
/* keep maplibre canvas under our chrome */
.map-band .maplibregl-ctrl-attrib {
  font-family: var(--font-mono); font-size: 9px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text-faint);
}
.map-band .maplibregl-ctrl-attrib a { color: var(--text-faint); }

.map-fallback[hidden] { display: none; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 60%),
    var(--bg-elev);
}

/* asset markers */
.m-jet, .m-yacht {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  display: block; line-height: 0;
}
.m-jet svg { width: 14px; height: 14px; display: block; transition: transform 0.4s linear; }
.m-jet circle { fill: color-mix(in srgb, var(--bg) 75%, transparent); stroke: var(--accent); stroke-width: 1; }
.m-jet path { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.m-jet:hover circle, .m-jet:focus-visible circle { fill: color-mix(in srgb, var(--accent) 30%, var(--bg)); }
.m-yacht span {
  display: block;
  width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 35%, var(--bg));
  border: 1px solid var(--accent);
  animation: yachtPulse 4s ease-in-out infinite;
}
@keyframes yachtPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); }
  50%       { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* tooltip */
.map-tooltip {
  position: absolute; z-index: 5;
  max-width: 260px;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.map-tooltip__class { color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.map-tooltip__muted { color: var(--text-muted); }

/* heat toggle — top-right of map */
.map__heat {
  position: absolute; top: 12px; right: 12px; z-index: 4;
}

/* map control buttons (ghost-button styling, mono labels) */
.mapbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.mapbtn:hover { color: var(--text); }
.mapbtn.is-on { color: var(--accent); border-color: var(--accent); }
.mapbtn--square { width: 30px; padding: 7px 0; }
.mapbtn svg { width: 14px; height: 14px; }

.map__controls {
  position: absolute; bottom: 34px; right: 12px; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.map__controls-row { display: flex; gap: 6px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
}
.seg__opt {
  padding: 7px 10px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border-right: 1px solid var(--border);
}
.seg__opt:last-child { border-right: 0; }
.seg__opt.is-on { color: var(--accent-ink); background: var(--accent); }
.seg__label {
  align-self: center;
  padding: 0 8px 0 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* live legend — bottom-left */
.map__legend {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.map__legend-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
.map__legend strong { color: var(--text); font-weight: 500; transition: color 0.3s; }
.map__legend strong.is-flash { color: var(--accent); }

/* ===================== KPI CARDS ===================== */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 20px 22px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.kpi__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.kpi__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kpi__big {
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi__spark { width: 110px; height: 34px; flex-shrink: 0; }
.kpi__spark .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.kpi__spark .spark-fill { fill: var(--accent); opacity: 0.12; stroke: none; }
.kpi__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1.6;
}
.kpi__sub .up { color: var(--alert); }
.kpi__sub .down, .kpi__sub .okv { color: var(--accent); }
.kpi__breakdown {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.kpi__breakdown span b { color: var(--text); font-weight: 500; }

/* ===================== SPLIT ROW: FEED (8) + SIGNALS (4) ===================== */
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* --- live receipts feed --- */
.feed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}
.feed__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.feed__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.feed__list { display: flex; flex-direction: column; max-height: 430px; overflow-y: auto; }
.feed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background-color 0.2s;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--surface); }
.feed-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.feed-row__dot--quiet { background: var(--text-faint); }
.feed-row__dot--heads { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.feed-row__dot--red { background: var(--alert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 20%, transparent); }
.feed-row__main { min-width: 0; }
.feed-row__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.005em;
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-row__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 3px;
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-row__time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* calm empty state — generous, quietly confident */
.feed-empty {
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.feed-empty__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  animation: pulseDot 2.6s ease-in-out infinite;
}
.feed-empty__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 26ch;
}
.feed-empty__line em { color: var(--accent); }
.feed-empty__sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- ghost track signal stack --- */
.signals {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}
.signals__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sig {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}
.sig:last-of-type { border-bottom: 0; }
.sig:hover { background: var(--surface); }
.sig__spark { width: 60px; height: 60px; flex-shrink: 0; }
.sig__spark .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.sig__spark .spark-base { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.sig__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.005em;
  display: block;
}
.sig__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
  display: block;
}
.sig__val {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ===================== RECEIPT DRAWER ===================== */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(540px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--accent);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35);
}
.drawer.is-open { transform: translateX(0); }

.drawer__chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer__chrome .chrome-url { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome-tier--alert {
  border-color: var(--alert);
  background: color-mix(in srgb, var(--alert) 12%, transparent);
  color: var(--alert);
}
.chrome-tier--alert .chrome-tier__dot { background: var(--alert); }
.chrome-tier--muted {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text-muted);
}
.chrome-tier--muted .chrome-tier__dot { background: var(--text-faint); animation: none; }
.drawer__close { flex-shrink: 0; }

.drawer__body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.drawer__body .ev-head { padding-bottom: 18px; }
.drawer__body .ev-head__title { font-size: 24px; }
.drawer__body .ev-head__index-value { font-size: 38px; }
.ev-head__index-value--alert { color: var(--alert); }
.pill--stop {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
}

.drawer__foot {
  flex-shrink: 0;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.drawer__foot .ev-foot__hash { line-height: 1.5; }
.drawer__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== TOAST (stub-route notices) ===================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 70;
  transform: translate(-50%, 16px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .shell .rail { width: 64px; }
  .shell .rail__label, .shell .rail__foot { opacity: 0; pointer-events: none; }
  .topbar__score-label { display: none; }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar .brand__word { display: none; }
  .env-pill { display: none; }
  .topbar__spark { display: none; }
  .utc-clock { display: none; }
  .topbar__score { padding: 4px 10px; }

  .board { padding: 16px 14px 88px; gap: 16px; }
  .map-band { height: 360px; }
  .map__controls { bottom: 12px; }
  .map__controls .seg--tail { display: none; }
  .map__legend { left: 10px; bottom: 64px; max-width: 60vw; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr; gap: 16px; }
  .split { gap: 16px; }

  /* rail becomes a bottom sheet/bar */
  .shell { display: block; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 55;
    width: 100%; height: 64px;
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid var(--border-strong);
    padding: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .rail__list {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rail__list li { flex: 1 0 auto; }
  .rail__link {
    flex-direction: column; gap: 5px;
    padding: 10px 14px;
    font-size: 8px;
    letter-spacing: 0.10em;
    align-items: center;
  }
  .rail__link.is-active::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 3px; }
  .rail__label { opacity: 1 !important; pointer-events: auto !important; }
  .rail__foot { display: none; }

  /* drawer becomes full-screen modal */
  .drawer { width: 100vw; border-left: 0; }
  .drawer__body { padding: 20px 18px; }
  .drawer__foot { padding: 14px 18px 18px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  .m-yacht span, .map__legend-dot, .feed-empty__dot,
  .tier-badge--heads::before, .tier-badge--red::before { animation: none !important; }
  .drawer, .drawer-scrim, .m-jet svg { transition: none !important; }
}
