/* The Console workspace: the list panel, the map stage and what sits over it. */

.ds-console { display: grid; grid-template-columns: 22rem minmax(0, 1fr); height: 100%; }
.ds-console-wide { grid-template-columns: minmax(0, 1fr); }

/* ── Panel ──────────────────────────────────────────────────────────────── */
.ds-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--rw-bg-content); border-inline-end: 1px solid var(--rw-divider); }
.ds-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rw-space-2x); padding: var(--rw-space-4x) var(--rw-space-4x) var(--rw-space-2x); }
.ds-panel-head > h2 { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-panel-count { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-panel > .rw-empty { margin: auto 0; }

.ds-attention { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: 46%; border-bottom: 1px solid var(--rw-divider); }
.ds-attn-list { min-height: 0; overflow-y: auto; }
.ds-attn { position: relative; border-top: 1px solid var(--rw-divider); }
.ds-attn.rw-selected { background-color: var(--rw-bg-selected); box-shadow: inset 0 1px 0 var(--rw-border-selected), inset 0 -1px 0 var(--rw-border-selected); }
.ds-attn-main { display: grid; gap: var(--rw-space-1x); width: 100%; padding: var(--rw-space-3x) var(--rw-space-4x); border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ds-attn-main:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-attn-main:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -2px; }
.ds-attn-top { display: flex; align-items: center; gap: var(--rw-space-1x); min-height: var(--rw-space-5x); }
.ds-attn-time { margin-inline-start: auto; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); white-space: nowrap; }
.ds-attn-title { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); font-weight: 600; overflow-wrap: anywhere; }
.ds-attn-meta { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-attn-actions { display: flex; gap: var(--rw-space-1x); padding: 0 var(--rw-space-2x) var(--rw-space-2x); }
.ds-attn > .rw-banner { margin: 0 var(--rw-space-4x) var(--rw-space-3x); }

.ds-moment { display: grid; gap: var(--rw-space-2x); padding: var(--rw-space-3x) var(--rw-space-4x); min-width: 0; }
.ds-moment-nested { margin: 0 var(--rw-space-4x) var(--rw-space-3x); padding: var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); }
.ds-sec > .ds-moment-nested { margin: 0; }
.ds-moment-topic { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-moment-body { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-moment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-1x); }
.ds-moment-actions > .rw-btn-borderless:not(.rw-btn-icon) { padding-inline: var(--rw-space-2x); }
.ds-why { border-block-start: 0; font-size: var(--rw-body-sm-size); }
.ds-why > summary { min-block-size: var(--rw-space-9x); padding: var(--rw-space-2x) 0; color: var(--rw-text-brand); }
.ds-why-body { display: grid; gap: var(--rw-space-2x); padding-bottom: var(--rw-space-1x); line-height: var(--rw-body-md-lh); }
.ds-sources { display: grid; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-sources > li { overflow-wrap: anywhere; }

/* ── In the air ─────────────────────────────────────────────────────────── */
.ds-air { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
.ds-air-tools { display: grid; gap: var(--rw-space-2x); padding: 0 var(--rw-space-4x) var(--rw-space-3x); }
.ds-search { display: flex; gap: var(--rw-space-2x); }
.ds-search > .rw-input { flex: 1; min-width: 0; min-height: var(--rw-space-9x); padding: 0 var(--rw-space-3x); font-size: var(--rw-body-sm-size); }
.ds-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--rw-space-2x); }
.ds-kind { padding: 0 var(--rw-space-2x); font-weight: 400; }
.ds-kind > .ds-glyph { width: var(--rw-space-5x); height: var(--rw-space-5x); }
.ds-families { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); }
.ds-families > .rw-btn { padding: 0 var(--rw-space-3x); font-weight: 400; }
.ds-filter-note { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

.ds-tracks { position: relative; flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--rw-divider); }
.ds-tracks:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: -2px; }
.ds-tracks-pad { position: relative; }
.ds-track {
  position: absolute;
  inset-inline: 0;
  display: flex;
  align-items: center;
  gap: var(--rw-space-3x);
  height: calc(var(--rw-space-12x) + var(--rw-space-2x));
  padding: 0 var(--rw-space-4x) 0 var(--rw-space-3x);
  border-bottom: 1px solid var(--rw-divider);
  cursor: pointer;
}
.ds-track:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-track.rw-selected { background-color: var(--rw-bg-selected); box-shadow: inset 0 1px 0 var(--rw-border-selected), inset 0 -1px 0 var(--rw-border-selected); }
.ds-tracks:focus-visible .ds-track.ds-active { outline: dotted 1px var(--rw-focus-ring); outline-offset: -3px; background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-track.ds-lost { opacity: .6; }
.ds-track-main { display: grid; gap: var(--rw-space-1x); flex: 1; min-width: 0; }
.ds-track-top { display: flex; align-items: baseline; gap: var(--rw-space-2x); min-width: 0; }
/* The name keeps its room; the few words beside it give way first, and are in the tooltip
   and the detail view. */
.ds-track-label { flex: 0 1 auto; min-width: 5rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-track-reason { flex: 0 10000 auto; min-width: 0; font-size: var(--rw-body-xs-size); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-track-sub { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-track-figs { display: grid; gap: var(--rw-space-1x); flex-shrink: 0; justify-items: end; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); white-space: nowrap; }
.ds-track-figs > :last-child { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

/* ── Stage ──────────────────────────────────────────────────────────────── */
.ds-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--rw-bg-app); }
.ds-map { position: absolute; inset: 0; }
.ds-map-note { position: absolute; inset-block-start: var(--rw-space-3x); inset-inline: var(--rw-space-12x); z-index: 4; display: flex; justify-content: center; pointer-events: none; }
.ds-map-note > .rw-banner { max-width: 36rem; pointer-events: auto; box-shadow: var(--rw-shadow-sm); }
.ds-stage-start { position: absolute; inset-block-start: var(--rw-space-3x); inset-inline-start: var(--rw-space-3x); z-index: 4; }
.ds-floating, .ds-floating:hover { background-color: var(--rw-bg-content); border-color: var(--rw-divider); box-shadow: var(--rw-shadow-xs); }

.ds-mapctl { position: absolute; inset-block-end: max(var(--rw-space-8x), calc(var(--ds-foot-end, 0px) + var(--rw-space-2x))); inset-inline-end: var(--rw-space-3x); z-index: 4; display: flex; align-items: flex-end; gap: var(--rw-space-2x); }
.ds-mapctl-group { display: flex; flex-direction: column; border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-md); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-xs); }
.ds-mapctl-group > .rw-btn { border-radius: 0; }
.ds-mapctl-group > .rw-btn + .rw-btn { border-top-color: var(--rw-divider); }
.ds-mapctl-group > .rw-btn:focus-visible { outline-offset: -2px; }
.ds-layers { display: grid; gap: var(--rw-space-3x); width: 15rem; max-height: calc(100dvh - 3rem - var(--rw-space-12x) - var(--rw-space-6x)); overflow-y: auto; overscroll-behavior: contain; padding: var(--rw-space-3x) var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-sm); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-sm); }
.ds-layers-base { display: grid; gap: var(--rw-space-2x); padding-bottom: var(--rw-space-3x); border-bottom: 1px solid var(--rw-divider); }
.ds-layers-label { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-layers-base > .rw-buttonset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-layers-base > .rw-buttonset > .rw-btn { font-weight: 400; }
.ds-layers-note { padding-bottom: var(--rw-space-3x); border-bottom: 1px solid var(--rw-divider); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
/* The aircraft altitude filter, under the air traffic layer (console/traffic-ui.js): two radio
   rows, the ceiling in feet with its quick choices, then what it shows and what it leaves alone. */
.ds-ceiling { display: grid; gap: var(--rw-space-2x); min-width: 0; margin: 0; padding: 0 0 var(--rw-space-3x); border: 0; border-bottom: 1px solid var(--rw-divider); }
.ds-ceiling > legend { float: left; width: 100%; padding: 0; margin-bottom: var(--rw-space-1x); }
.ds-ceiling > .ds-choice { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-ceiling > .ds-choice > input { margin-top: calc((var(--rw-body-sm-size) * var(--rw-body-sm-lh) - var(--rw-space-4x)) / 2); }
.ds-ceiling-value { display: flex; align-items: center; gap: var(--rw-space-2x); padding-inline-start: var(--rw-space-6x); }
.ds-ceiling-value > .rw-input { width: 6.5rem; min-height: var(--rw-space-9x); padding: 0 var(--rw-space-2x); font-size: var(--rw-body-sm-size); }
.ds-ceiling-unit { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-ceiling-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-ceiling-quick > .rw-btn { min-width: 0; padding-inline: 0; font-weight: 400; font-variant-numeric: tabular-nums; }
.ds-ceiling > .rw-field-message, .ds-ceiling-help { font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-ceiling > .rw-field-message, .ds-ceiling-value + .ds-ceiling-help { margin-inline-start: var(--rw-space-6x); }
.ds-ceiling-help { color: var(--rw-text-secondary); }
.ds-ceiling-now { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-ceiling-note { display: grid; gap: var(--rw-space-2x); }

/* The detail drawer covers the end edge of the stage, under the top bar. */
.ds-stage > aside.ds-drawer { position: absolute; z-index: 6; max-width: calc(100% - var(--rw-space-12x)); }
.ds-stage:has(> aside.ds-drawer) .ds-mapctl { inset-inline-end: calc(22rem + var(--rw-space-3x)); }
.ds-stage:has(> aside.ds-drawer) .maplibregl-ctrl-bottom-right { right: 22rem; }
.ds-stage:has(> aside.ds-drawer) .ds-map-note { inset-inline-end: calc(22rem + var(--rw-space-4x)); }

.ds-sure { display: grid; gap: var(--rw-space-2x); }
.ds-sure-text { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rw-space-2x); }
.ds-sure-word { font-weight: 600; }
.ds-evidence { width: 100%; margin-top: var(--rw-space-4x); border-collapse: collapse; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-evidence th { padding: 0 0 var(--rw-space-1x); border-bottom: 1px solid var(--rw-divider); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); font-weight: 600; text-align: start; }
.ds-evidence td { padding: var(--rw-space-2x) 0; border-bottom: 1px solid var(--rw-divider); overflow-wrap: anywhere; }
.ds-evidence tr:last-child > td { border-bottom: 0; }
.ds-evidence .rw-num { padding-inline-start: var(--rw-space-2x); text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-evidence .ds-stale > td { color: var(--rw-text-secondary); }

.ds-rows { display: grid; }
.ds-rows > li + li { border-top: 1px solid var(--rw-divider); }
.ds-rowbtn { display: flex; align-items: center; gap: var(--rw-space-2x); width: 100%; min-height: var(--rw-space-11x); padding: var(--rw-space-2x) 0; border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ds-rowbtn:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-rowbtn:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -1px; }
.ds-rowbtn-text { display: grid; gap: var(--rw-space-1x); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-rowbtn-text > .ds-secondary { font-size: var(--rw-body-sm-size); }
.ds-rowbtn-go { flex-shrink: 0; color: var(--rw-text-brand); font-size: var(--rw-body-sm-size); font-weight: 600; }
.ds-rowbtn-card { padding: var(--rw-space-2x) var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); }
.ds-receiver { display: grid; gap: var(--rw-space-1x); padding: var(--rw-space-2x) 0; }
.ds-receiver > .ds-secondary { padding-inline-start: calc(.625rem + var(--rw-space-2x)); font-size: var(--rw-body-sm-size); }
.ds-plainlist { display: grid; gap: var(--rw-space-2x); }

.ds-subject { display: flex; align-items: center; gap: var(--rw-space-3x); padding: var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); }
.ds-subject > div { display: grid; gap: var(--rw-space-1x); min-width: 0; }
.ds-subject-name { font-weight: 600; overflow-wrap: anywhere; }
.ds-subject .ds-secondary { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-proposal-head { display: flex; flex-wrap: wrap; gap: var(--rw-space-1x); }
.ds-proposal-title { font-size: var(--rw-body-lg-size); line-height: var(--rw-body-lg-lh); overflow-wrap: anywhere; }
.rw-dialog-body .ds-sec { padding-block: var(--rw-space-3x) 0; }
.rw-dialog-body .ds-sec + .ds-sec { border-top: 0; }
.rw-dialog-body .ds-sec > p { line-height: var(--rw-body-lg-lh); overflow-wrap: anywhere; }
.rw-dialog-body .ds-sec > p + .ds-facts { margin-top: var(--rw-space-3x); }

/* ── Map furniture ──────────────────────────────────────────────────────── */
/* Tooltip (guide 6h): neutral-170 ground, white body-xs, .5rem padding, radius md. */
.ds-map-tip { position: absolute; top: 0; left: 0; z-index: 7; display: grid; gap: var(--rw-space-1x); max-width: 16rem; padding: var(--rw-space-2x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-md); background: var(--rw-neutral-170); color: var(--rw-neutral-0); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); pointer-events: none; }
.ds-map-tip-title { font-weight: 600; overflow-wrap: anywhere; }
.ds-map-tip-line { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.maplibregl-map { font: inherit; }
.maplibregl-canvas:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: -2px; }
.maplibregl-ctrl-bottom-left { left: var(--rw-space-1x); bottom: var(--rw-space-1x); }
.maplibregl-ctrl-scale { border-color: var(--rw-neutral-80); background: transparent; color: var(--rw-neutral-60); font-size: var(--rw-body-2xs-size); font-variant-numeric: tabular-nums; }
.maplibregl-ctrl.maplibregl-ctrl-attrib { margin: 0; padding: var(--rw-space-1x) var(--rw-space-2x); border-start-start-radius: var(--rw-radius-md); background: var(--rw-bg-content); color: var(--rw-text-secondary); font-size: var(--rw-body-2xs-size); line-height: var(--rw-body-2xs-lh); }
.maplibregl-ctrl-attrib a { color: var(--rw-text-secondary); }
.maplibregl-ctrl-attrib a:hover { color: var(--rw-text-primary); }

/* Google's map (DESIGN.md 12). Bottom left, Google's logo file as it is: 18 px high (Google
   allows 16 to 19), its own aspect ratio, 10 px clear on the left, the right and above, 5 px
   below; the scale bar sits on top of that clear space. Bottom right, the data attribution
   from the service, in full, wrapping rather than cut, and never within the logo's clear
   space. MapLibre's own attribution hides itself while no source names one. */
.ds-glogo[hidden], .ds-gcredit[hidden] { display: none; }
.maplibregl-ctrl-bottom-left > .ds-glogo { margin: 10px 10px 5px; line-height: 0; pointer-events: none; }
.ds-glogo > img { display: block; width: auto; height: 18px; }
.ds-glogo-words { display: block; padding: 0 var(--rw-space-1x); border-radius: var(--rw-radius-sm); background: var(--rw-bg-content); color: var(--rw-text-primary); font-size: var(--rw-body-xs-size); font-weight: 600; line-height: 18px; }
.ds-map-google .maplibregl-ctrl-bottom-left > .maplibregl-ctrl-scale { margin-bottom: 0; }
.ds-map-satellite .maplibregl-ctrl-scale { background: rgba(22, 21, 19, .55); color: var(--rw-neutral-30); }
.maplibregl-ctrl-bottom-right > .ds-gcredit { margin: 0; padding: var(--rw-space-1x) var(--rw-space-2x); border-start-start-radius: var(--rw-radius-md); background: var(--rw-bg-content); color: var(--rw-text-secondary); font-size: var(--rw-body-2xs-size); line-height: var(--rw-body-2xs-lh); overflow-wrap: anywhere; }
.ds-map-google .maplibregl-ctrl-bottom-right { max-width: calc(100% - 7rem); }
.ds-stage:has(> aside.ds-drawer) .ds-map-google .maplibregl-ctrl-bottom-right { max-width: calc(100% - 29rem); }

/* ── Below 60rem: the list is a bottom sheet over the map ───────────────── */
.ds-sheet { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 5; display: flex; flex-direction: column; max-height: 78%; border-top: 1px solid var(--rw-divider); border-start-start-radius: var(--rw-radius-xl); border-start-end-radius: var(--rw-radius-xl); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-md); }
.ds-sheet-handle { display: grid; justify-items: center; gap: var(--rw-space-2x); width: 100%; min-height: var(--rw-space-12x); padding: var(--rw-space-2x) var(--rw-space-4x) var(--rw-space-3x); border: 0; background: none; color: inherit; cursor: pointer; }
.ds-sheet-handle:focus-visible { outline-offset: -4px; }
.ds-sheet-grip { width: var(--rw-space-10x); height: var(--rw-space-1x); border-radius: var(--rw-radius-sm); background: var(--rw-border-enabled); }
.ds-sheet-summary { display: flex; gap: var(--rw-space-6x); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-sheet-summary strong { color: var(--rw-text-primary); }
.ds-sheet-body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-top: 1px solid var(--rw-divider); }
.ds-sheet-body .ds-attention { flex: none; max-height: none; }
.ds-sheet-body .ds-attn-list { overflow: visible; }
.ds-sheet-body .ds-air { flex: none; }
.ds-sheet-body .ds-tracks { flex: none; height: 42vh; }

@media (max-width: 59.99rem) {
  .ds-mapctl { inset-block-end: max(calc(var(--rw-space-12x) + var(--rw-space-11x)), calc(var(--ds-foot-end, 0px) + var(--rw-space-2x))); }
  .ds-layers { max-height: calc(100dvh - 3rem - var(--rw-space-12x) - var(--rw-space-11x) - var(--rw-space-6x)); }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { bottom: calc(var(--rw-space-12x) + var(--rw-space-6x)); }
  /* An open sheet covers most of the map: Google's logo and attribution stay on the part that
     shows, and the map controls stay under the sheet as before. */
  .ds-stage:has(> .ds-sheet-open) .ds-map-google .maplibregl-ctrl-bottom-left,
  .ds-stage:has(> .ds-sheet-open) .ds-map-google .maplibregl-ctrl-bottom-right { bottom: calc(var(--ds-sheet-h, 78%) + var(--rw-space-1x)); }
  .ds-stage:has(> .ds-sheet-open) .ds-mapctl { inset-block-end: calc(var(--rw-space-12x) + var(--rw-space-11x)); }
  .ds-map-note { inset-inline: var(--rw-space-3x); }
  .ds-search > .rw-input { font-size: var(--rw-body-md-size); }
}

/* ── History ────────────────────────────────────────────────────────────── */
.ds-panel-pad { padding: 0 var(--rw-space-4x) var(--rw-space-3x); }
.ds-history-filters { display: grid; gap: var(--rw-space-3x); padding: 0 var(--rw-space-4x) var(--rw-space-4x); border-bottom: 1px solid var(--rw-divider); }
.ds-history-filters .rw-buttonset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-history-filters .rw-buttonset > .rw-btn { padding: 0 var(--rw-space-1x); font-weight: 400; }
.ds-history-filters .rw-input { min-height: var(--rw-space-9x); padding: 0 var(--rw-space-3x); font-size: var(--rw-body-sm-size); }
.ds-history-filters select.rw-input { padding-inline-end: var(--rw-space-6x); }
.ds-history-filters .rw-field { gap: var(--rw-space-1x); }
.ds-history-selects, .ds-history-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rw-space-2x); }
.ds-history-range { grid-template-columns: minmax(0, 1fr); }
.ds-history-results { flex: 1; min-height: 0; overflow-y: auto; }
.ds-history-results > .rw-empty { padding-block: var(--rw-space-8x); }
.ds-history-panel > .ds-pager, .ds-history-panel > .ds-pager-count { margin-top: auto; }
.ds-flights > li + li, .ds-zone-list > li + li { border-top: 1px solid var(--rw-divider); }
.ds-flight { display: flex; align-items: center; gap: var(--rw-space-3x); width: 100%; min-height: calc(var(--rw-space-12x) + var(--rw-space-2x)); padding: var(--rw-space-2x) var(--rw-space-4x) var(--rw-space-2x) var(--rw-space-3x); border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ds-flight:hover, .ds-zone:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-flight:focus-visible, .ds-zone:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -2px; }
.ds-flight.rw-selected { background-color: var(--rw-bg-selected); box-shadow: inset 0 1px 0 var(--rw-border-selected), inset 0 -1px 0 var(--rw-border-selected); }

.ds-replay { position: absolute; inset-inline: var(--rw-space-4x); inset-block-end: max(var(--rw-space-8x), calc(var(--ds-foot, 0px) + var(--rw-space-2x))); z-index: 5; display: grid; gap: var(--rw-space-3x); max-width: 60rem; margin-inline: auto; padding: var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-sm); }
.ds-replay-idle { justify-items: center; width: max-content; max-width: calc(100% - var(--rw-space-8x)); padding: var(--rw-space-3x) var(--rw-space-4x); }
.ds-replay-head { display: flex; align-items: center; gap: var(--rw-space-3x); min-width: 0; }
.ds-replay-title { display: grid; gap: var(--rw-space-1x); flex: 1; min-width: 0; }
.ds-replay-title > h2 { font-size: var(--rw-body-lg-size); line-height: var(--rw-body-lg-lh); overflow-wrap: anywhere; }
.ds-replay-title > p { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-replay > .ds-facts { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); column-gap: var(--rw-space-6x); }
/* Four facts to a row: each label above its value, so the value has the whole cell (a label beside
   it left "131 ft above ground" and a serial number a sliver to break in). */
.ds-replay > .ds-facts > .ds-fact { grid-template-columns: minmax(0, 1fr); row-gap: var(--rw-space-1x); }
.ds-stage:has(> .ds-replay) .ds-mapctl { inset-block-end: auto; inset-block-start: var(--rw-space-3x); align-items: flex-start; }
.ds-stage:has(> .ds-replay) .maplibregl-ctrl-bottom-left, .ds-stage:has(> .ds-replay) .maplibregl-ctrl-bottom-right { bottom: 0; }

.ds-scrub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-4x); }
.ds-scrub-track { display: grid; gap: var(--rw-space-1x); flex: 1 1 14rem; min-width: 0; }
.ds-scrub-ends { display: flex; justify-content: space-between; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); }
.ds-scrub-now { display: grid; gap: var(--rw-space-1x); justify-items: end; font-size: var(--rw-body-sm-size); white-space: nowrap; }
.ds-scrub-now > .ds-secondary { font-size: var(--rw-body-xs-size); }
.ds-scrub .rw-buttonset > .rw-btn { padding: 0 var(--rw-space-3x); font-weight: 400; }

/* The scrubber is a native range input drawn as the Redwood progress bar: a 6px track at the
   active overlay, the value in text-primary. */
.ds-range { appearance: none; -webkit-appearance: none; width: 100%; height: var(--rw-space-6x); margin: 0; background: transparent; cursor: pointer; }
.ds-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--rw-text-primary) var(--ds-fill, 0%), var(--rw-bg-active) var(--ds-fill, 0%)); }
.ds-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rw-bg-active); }
.ds-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--rw-text-primary); }
.ds-range::-webkit-slider-thumb { -webkit-appearance: none; width: var(--rw-space-4x); height: var(--rw-space-4x); margin-top: calc((6px - var(--rw-space-4x)) / 2); border: 2px solid var(--rw-bg-content); border-radius: 50%; background: var(--rw-text-primary); }
.ds-range::-moz-range-thumb { width: var(--rw-space-3x); height: var(--rw-space-3x); border: 2px solid var(--rw-bg-content); border-radius: 50%; background: var(--rw-text-primary); }
.ds-range:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }

/* ── Zones ──────────────────────────────────────────────────────────────── */
.ds-zones-panel > .rw-empty { margin: 0; }
.ds-zone-list { min-height: 0; overflow-y: auto; border-top: 1px solid var(--rw-divider); }
.ds-zone { display: grid; gap: var(--rw-space-1x); width: 100%; min-height: calc(var(--rw-space-12x) + var(--rw-space-2x)); padding: var(--rw-space-2x) var(--rw-space-4x); border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ds-zone-top { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); min-width: 0; }
.ds-panel-head-back { align-items: center; justify-content: flex-start; padding-inline-start: var(--rw-space-2x); }
.ds-panel-head-back > h2 { min-width: 0; overflow-wrap: anywhere; }
.ds-zone-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ds-zone-fields { display: grid; align-content: start; gap: var(--rw-space-4x); flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--rw-space-4x) var(--rw-space-4x); }
.ds-zone-fields .rw-field > .rw-buttonset { align-self: start; }
.ds-zone-heights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rw-space-3x); }
.ds-vertices { display: grid; font-size: var(--rw-body-sm-size); }
.ds-vertices > li { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); min-height: var(--rw-space-9x); }
.ds-vertices > li + li { border-top: 1px solid var(--rw-divider); }
.ds-zone-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--rw-space-2x); padding: var(--rw-space-3x) var(--rw-space-4x); border-top: 1px solid var(--rw-divider); }
.ds-foot-first { margin-inline-end: auto; }
.ds-drawhint { padding: var(--rw-space-2x) var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-md); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-xs); font-size: var(--rw-body-sm-size); pointer-events: none; }

/* Zones by the batch: import a file, export, make from a template. */
.ds-zone-tools { display: grid; gap: var(--rw-space-2x); }
.ds-zone-tools-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rw-space-2x); }
.ds-zone-tools-row > .rw-btn { justify-content: center; min-width: 0; }
.ds-zone-tools > .rw-banner { justify-self: stretch; }
.ds-dropzone { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--rw-space-2x) var(--rw-space-3x); padding: var(--rw-space-4x); border: 1px dashed var(--rw-border-enabled); border-radius: var(--rw-radius-lg); transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.ds-dropzone > .ds-ico-svg, .ds-dropzone > .ds-ico-font { width: var(--rw-space-6x); height: var(--rw-space-6x); color: var(--rw-text-secondary); }
.ds-dropzone > .rw-btn { grid-column: 1 / -1; justify-self: start; }
.ds-dropzone-text { display: grid; gap: var(--rw-space-1x); min-width: 0; overflow-wrap: anywhere; }
.ds-dropzone-over { border-style: solid; border-color: var(--rw-text-primary); background: var(--rw-bg-hover); }
.ds-dropzone-done { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--rw-space-3x); border-style: solid; border-color: var(--rw-divider); }
.ds-dropzone-done > .rw-btn { grid-column: auto; }
.ds-dropzone-done > .ds-ico-svg, .ds-dropzone-done > .ds-ico-font { color: var(--rw-text-success); }
.ds-stack-tight { display: grid; gap: var(--rw-space-3x); }
.ds-ring { display: grid; gap: var(--rw-space-2x); min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-ring > legend { padding: 0; margin-bottom: var(--rw-space-2x); }
.ds-ring > .rw-help { margin: 0; }
.ds-preview { display: grid; gap: var(--rw-space-2x); }
.ds-preview-head { margin: 0; }
.ds-preview-list { margin: 0 calc(-1 * var(--rw-space-4x)); padding: 0; list-style: none; border-top: 1px solid var(--rw-divider); }
.ds-preview-list > li + li { border-top: 1px solid var(--rw-divider); }
.ds-preview-btn { display: grid; gap: var(--rw-space-1x); width: 100%; min-height: calc(var(--rw-space-12x) + var(--rw-space-2x)); padding: var(--rw-space-2x) var(--rw-space-4x); border: 0; background: none; color: inherit; text-align: start; }
button.ds-preview-btn { cursor: pointer; }
button.ds-preview-btn:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
button.ds-preview-btn:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -2px; }
.ds-preview-btn.rw-selected { background-color: var(--rw-bg-selected); box-shadow: inset 0 1px 0 var(--rw-border-selected), inset 0 -1px 0 var(--rw-border-selected); }
.ds-preview-note { color: var(--rw-text-warning); font-size: var(--rw-body-sm-size); }
/* Why a feature cannot be a zone, and the name of the file, are read in full. */
.ds-preview-bad .ds-track-sub, .ds-dropzone-name { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.ds-dropzone-name { font-weight: 600; }
/* A dry run's rows arrive in the order the map draws their zones in (map.js setPreview). */
.ds-preview-list > li { animation: ds-preview-in 320ms ease-out both; animation-delay: calc(min(var(--i, 0), 12) * 70ms); }
@keyframes ds-preview-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .ds-preview-list > li { animation: none; }
  .ds-dropzone { transition: none; }
}

/* Below 60rem History and Zones stack: the list, or the map with its panel. */
.ds-console-stacked { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.ds-console-stacked > .ds-panel { border-inline-end: 0; }
/* The panel's row is as tall as the panel, up to its share: an auto row with a percentage cap
   on the panel took the panel's whole content height and left a gap above the map. A form
   (drawing a zone, an import, a template) gets a little more of the screen; the map keeps
   enough to show what it draws. */
.ds-console-stacked > .ds-zones-panel { max-height: 100%; border-bottom: 1px solid var(--rw-divider); }
.ds-console-stacked:has(> .ds-zones-panel) { grid-template-rows: fit-content(55%) minmax(12rem, 1fr); }
.ds-console-stacked:has(> .ds-zones-panel .ds-zone-form) { grid-template-rows: fit-content(62%) minmax(12rem, 1fr); }
@media (max-width: 59.99rem) {
  .ds-replay { inset-inline: var(--rw-space-2x); inset-block-end: max(var(--rw-space-2x), calc(var(--ds-foot, 0px) + var(--rw-space-2x))); padding: var(--rw-space-3x); }
  .ds-replay > .ds-facts { display: none; }
}

/* ── Flight restrictions ────────────────────────────────────────────────── */
.ds-restrict-filters { padding-top: var(--rw-space-1x); }
.ds-restrict-filters .rw-buttonset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-restrict-filters > .ds-choice { font-size: var(--rw-body-sm-size); }
.ds-zones-panel > .ds-panel-pad > .rw-buttonset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-zones-panel > .ds-panel-pad > .rw-buttonset > .rw-btn { font-weight: 400; }
.ds-notice { display: grid; gap: var(--rw-space-1x); width: 100%; padding: var(--rw-space-3x) var(--rw-space-4x); border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ds-notice:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-notice:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -2px; }
.ds-notice.rw-selected { background-color: var(--rw-bg-selected); box-shadow: inset 0 1px 0 var(--rw-border-selected), inset 0 -1px 0 var(--rw-border-selected); }
.ds-notice-top { display: flex; align-items: center; gap: var(--rw-space-2x); min-width: 0; }
.ds-notice-number { font-weight: 600; }
.ds-notice-top > .rw-badge:last-child { margin-inline-start: auto; }
.ds-notice-title { font-weight: 600; overflow-wrap: anywhere; }
.ds-notice-line { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-area { display: grid; gap: var(--rw-space-1x); padding: var(--rw-space-2x) 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-area-top { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); font-size: var(--rw-body-md-size); }
/* The notice as published: upper-case telegraphic text, kept as it is, in mono, wrapped. */
.ds-notice-text { margin: 0 0 var(--rw-space-3x); padding: var(--rw-space-3x); border-radius: var(--rw-radius-md); background: var(--rw-bg-muted); font-family: var(--font-oracle-mono); font-size: var(--rw-body-xs-size); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── Weather drawer ─────────────────────────────────────────────────────── */
.ds-weather-drawer { width: 26rem; }
.ds-weather-drawer .ds-drawer-body > .rw-banner { margin-top: var(--rw-space-3x); }
.ds-flying { margin-bottom: var(--rw-space-2x); }
.ds-reasons { display: grid; gap: var(--rw-space-1x); padding-inline-start: var(--rw-space-5x); list-style: disc; line-height: var(--rw-body-lg-lh); }
.ds-forecast td { vertical-align: top; }
/* The coming days in the weather drawer: one row a day, the good days marked at the start. */
.ds-days { display: grid; gap: var(--rw-space-2x); list-style: none; padding: 0; margin: 0; }
.ds-day { padding: var(--rw-space-2x) var(--rw-space-3x); border: 1px solid var(--rw-border-enabled); border-radius: var(--rw-radius-md); }
.ds-day-good { border-inline-start: 3px solid var(--rw-text-success); }
.ds-day-head { display: flex; align-items: baseline; gap: var(--rw-space-2x); flex-wrap: wrap; }
.ds-day-head > :last-child { margin-inline-start: auto; }
.ds-day-summary, .ds-day-figures { margin: var(--rw-space-1x) 0 0; }
.ds-day-reasons { margin-top: var(--rw-space-1x); }
.ds-restrictions, .ds-day-restrictions { display: grid; gap: var(--rw-space-1x); list-style: none; padding: 0; margin: var(--rw-space-1x) 0 0; }
.ds-weather-foot { padding-block: var(--rw-space-3x); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

/* ── Go to ──────────────────────────────────────────────────────────────── */
/* The control on the live map, and the search it opens (Command-K or Control-K): one field,
   one list. The row the arrow keys are on is the list's selection; its glyph keeps its tone. */
.ds-stage-start { display: flex; align-items: center; gap: var(--rw-space-2x); }
.ds-goto-open { gap: var(--rw-space-2x); padding-inline-end: var(--rw-space-2x); font-weight: 400; }
.ds-goto-open > .ds-kbd { margin-inline-start: var(--rw-space-2x); }
.ds-kbd { display: inline-block; min-width: 1.6em; padding: 0 var(--rw-space-1x); border: 1px solid var(--rw-border-enabled); border-radius: var(--rw-radius-sm); color: var(--rw-text-secondary); font-family: inherit; font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); text-align: center; }
dialog.ds-goto { width: 36rem; max-height: min(36rem, 76vh); margin: 12vh auto auto; padding: 0; }
.ds-goto-field { display: flex; align-items: center; gap: var(--rw-space-3x); padding: var(--rw-space-2x) var(--rw-space-4x); border-bottom: 1px solid var(--rw-divider); color: var(--rw-text-secondary); }
.ds-goto-field > .ds-ico-svg { width: var(--rw-space-5x); height: var(--rw-space-5x); }
.ds-goto-input { flex: 1; min-width: 0; height: var(--rw-space-11x); border: 0; background: none; color: var(--rw-text-primary); font: inherit; font-size: var(--rw-body-lg-size); }
.ds-goto-input:focus { outline: none; }
.ds-goto-input::placeholder { color: var(--rw-text-secondary); }
.ds-goto-field:focus-within { box-shadow: inset 0 -1px 0 var(--rw-text-primary); }
.ds-goto-list { flex: 1; min-height: 0; margin: 0; padding: var(--rw-space-1x) 0 var(--rw-space-2x); overflow-y: auto; list-style: none; }
.ds-goto-group { padding: var(--rw-space-3x) var(--rw-space-4x) var(--rw-space-1x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); font-weight: 600; }
.ds-goto-row { display: flex; align-items: center; gap: var(--rw-space-3x); min-height: var(--rw-space-11x); padding: var(--rw-space-1x) var(--rw-space-4x); cursor: pointer; }
.ds-goto-row.ds-active { background-color: var(--rw-bg-selected); box-shadow: inset 2px 0 0 var(--rw-border-selected); }
.ds-goto-mark { display: grid; place-items: center; flex-shrink: 0; width: var(--rw-space-6x); color: var(--rw-text-secondary); }
.ds-goto-mark > .ds-glyph { width: var(--rw-space-5x); height: var(--rw-space-5x); }
.ds-goto-text { display: grid; flex: 1; min-width: 0; }
.ds-goto-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-goto-detail { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-goto-enter { flex-shrink: 0; }
.ds-goto-empty { padding: var(--rw-space-6x) var(--rw-space-4x); color: var(--rw-text-secondary); line-height: var(--rw-body-lg-lh); }
.ds-goto-foot { display: flex; align-items: center; gap: var(--rw-space-1x); padding: var(--rw-space-2x) var(--rw-space-4x); border-top: 1px solid var(--rw-divider); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-goto-foot > .ds-kbd + .ds-kbd { margin-inline-start: 0; }
@media (max-width: 59.99rem) {
  dialog.ds-goto { width: calc(100vw - var(--rw-space-6x)); max-height: calc(100dvh - var(--rw-space-6x)); margin-top: var(--rw-space-3x); }
  .ds-goto-input { font-size: var(--rw-body-md-size); }
  .ds-goto-foot, .ds-goto-enter { display: none; }
}

/* "Set as my start view", at the foot of the layer panel. */
.ds-layers-start { display: grid; gap: var(--rw-space-2x); padding-top: var(--rw-space-3x); border-top: 1px solid var(--rw-divider); }
.ds-layers-start > .rw-btn { justify-self: start; }
.ds-layers-start > .ds-layers-note { padding-bottom: 0; border-bottom: 0; }
.ds-layers-start-now { display: flex; align-items: center; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-layers-start-now > .ds-ico-svg, .ds-start-kept > .ds-ico-svg, .ds-start-saved > .ds-ico-svg { width: var(--rw-space-4x); height: var(--rw-space-4x); color: var(--rw-text-success); flex-shrink: 0; }

/* ── Map start ──────────────────────────────────────────────────────────── */
/* The three choices on the start edge, the map they open on beside them. The chosen one opens
   what it needs: the browser's answer, or the readout of the view under the crosshair. */
.ds-start { display: grid; grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); align-items: start; gap: var(--rw-space-6x); }
.ds-start-choices { display: grid; gap: var(--rw-space-2x); min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-start-option { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--rw-space-3x); padding: var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); }
.ds-start-option > input { width: var(--rw-space-4x); height: var(--rw-space-4x); margin: calc((var(--rw-body-md-size) * var(--rw-body-md-lh) - var(--rw-space-4x)) / 2) 0 0; accent-color: var(--rw-brand-110); }
.ds-start-option > label { font-weight: 600; cursor: pointer; }
.ds-start-chosen { border-color: var(--rw-border-selected); background-color: var(--rw-bg-selected); }
.ds-start-line { grid-column: 2; margin-top: var(--rw-space-1x); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-start-more { grid-column: 2; display: grid; gap: var(--rw-space-2x); margin-top: var(--rw-space-3x); }
.ds-start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-2x); }
.ds-start-fix, .ds-start-kept, .ds-start-saved { display: flex; align-items: flex-start; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-start-fix > .ds-ico-svg { width: var(--rw-space-4x); height: var(--rw-space-4x); flex-shrink: 0; margin-top: 1px; color: var(--rw-brand-70); }
.ds-start-fix-none > .ds-ico-svg { color: var(--rw-text-secondary); }
.ds-start-fix-text { display: grid; gap: var(--rw-space-1x); }
.ds-start-fix-head { font-weight: 600; }
.ds-start-readout { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-start-saved { min-height: var(--rw-space-6x); padding: var(--rw-space-1x) var(--rw-space-1x) 0; }
.ds-start-map { position: relative; height: min(30rem, 62vh); overflow: hidden; border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-app); }
/* The centre of the view the person is choosing: a hairline cross with an open middle, so the
   point under it stays visible. */
.ds-start-cross { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; z-index: 3; width: var(--rw-space-8x); height: var(--rw-space-8x); transform: translate(-50%, -50%); pointer-events: none;
  background:
    linear-gradient(var(--rw-text-primary), var(--rw-text-primary)) center top / 1px 37.5% no-repeat,
    linear-gradient(var(--rw-text-primary), var(--rw-text-primary)) center bottom / 1px 37.5% no-repeat,
    linear-gradient(var(--rw-text-primary), var(--rw-text-primary)) left center / 37.5% 1px no-repeat,
    linear-gradient(var(--rw-text-primary), var(--rw-text-primary)) right center / 37.5% 1px no-repeat;
  opacity: .7; }
@media (max-width: 59.99rem) {
  .ds-start { grid-template-columns: minmax(0, 1fr); gap: var(--rw-space-4x); }
  .ds-start-map { order: -1; height: 16rem; }
}

/* A zone or a notice selected on a phone: a card over the map, above the sheet. */
.ds-peek { position: absolute; inset-inline: var(--rw-space-3x); inset-block-end: calc(var(--rw-space-12x) + var(--rw-space-4x)); z-index: 5; display: flex; align-items: center; gap: var(--rw-space-2x); box-sizing: border-box; min-height: calc(var(--rw-space-12x) + var(--rw-space-6x)); padding: var(--rw-space-3x) var(--rw-space-2x) var(--rw-space-3x) var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-md); }
.ds-peek-text { display: grid; flex: 1; min-width: 0; }
.ds-peek-title { font-weight: 600; overflow-wrap: anywhere; }
.ds-peek-line { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
/* The map's foot (scale, attribution, Google's logo) stays in sight above the card, and the
   controls above the foot. */
.ds-stage:has(> .ds-peek) .maplibregl-ctrl-bottom-left,
.ds-stage:has(> .ds-peek) .maplibregl-ctrl-bottom-right { bottom: calc(var(--rw-space-12x) * 3); }
.ds-stage:has(> .ds-peek) .ds-mapctl { inset-block-end: max(calc(var(--rw-space-12x) * 4 + var(--rw-space-2x)), calc(var(--ds-foot-end, 0px) + var(--rw-space-2x))); }

/* ── Evidence: radio detections, triage, escalation, export (console/evidence-ui.js) ──────── */

/* A section rises in once when its data arrives; it answers the drawer opening, nothing else. */
@keyframes ds-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ds-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ds-swap { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.ds-reveal { animation: ds-rise 240ms cubic-bezier(.2, .7, .2, 1) both; }

.ds-rf-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); margin-bottom: var(--rw-space-3x); }
.ds-rf-list { display: grid; gap: var(--rw-space-4x); margin: 0; padding: 0; list-style: none; }
.ds-rf-sensor { animation: ds-rise 240ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--ds-delay, 0ms); }
.ds-rf-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rw-space-2x); margin-bottom: var(--rw-space-1x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-rf-svg { display: block; width: 100%; height: auto; overflow: visible; border-radius: var(--rw-radius-md); touch-action: pan-y; }
.ds-rf-svg:focus-visible { outline: 2px solid var(--rw-text-primary); outline-offset: 3px; }
.ds-rf-label { fill: var(--rw-text-secondary); font-size: 10px; }
.ds-rf-ground { fill: var(--rw-bg-muted); }
.ds-rf-grid { stroke: var(--rw-divider); stroke-width: .6; }
.ds-rf-plot { animation: ds-draw 520ms cubic-bezier(.3, .6, .2, 1) both; animation-delay: var(--ds-delay, 0ms); }
.ds-rf-dot { fill: var(--rw-text-primary); }
.ds-rf-bar { stroke: var(--rw-brand-110); stroke-width: 1.6; stroke-linecap: round; }
.ds-rf-cursor { stroke: var(--rw-text-primary); stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.ds-rf-readout { min-height: var(--rw-body-sm-lh); margin-top: var(--rw-space-1x); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-sm-lh); }
.ds-rf-axis { display: flex; justify-content: space-between; margin-top: var(--rw-space-2x); padding-inline-start: 20%; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); }

.ds-triage-now { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rw-space-2x) var(--rw-space-3x); }
.ds-triage-now > p { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-triage-badge { display: inline-flex; animation: ds-swap 220ms cubic-bezier(.2, .7, .2, 1) both; }
.ds-triage-note { margin: var(--rw-space-3x) 0 0; padding: var(--rw-space-2x) var(--rw-space-3x); border-inline-start: 2px solid var(--rw-border-enabled); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-triage-actions { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); margin-top: var(--rw-space-3x); }

.ds-escalate-step { display: flex; align-items: center; gap: var(--rw-space-3x); }
.ds-escalate-arrow { width: 2.5rem; height: 1px; background: var(--rw-text-secondary); position: relative; }
.ds-escalate-arrow::after { content: ''; position: absolute; inset-inline-end: -1px; top: -3px; border: 3.5px solid transparent; border-inline-start: 6px solid var(--rw-text-secondary); border-inline-end: 0; }

.ds-more-filters { display: grid; gap: var(--rw-space-2x); }
.ds-more-filters[hidden] { display: none; }
.ds-filter-row { display: grid; grid-template-columns: 3.5rem 1fr; align-items: start; gap: var(--rw-space-2x); }
.ds-filter-label { padding-top: var(--rw-space-1x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

.ds-export { width: min(36rem, calc(100vw - var(--rw-space-6x))); }
.ds-export .rw-dialog-body { display: grid; gap: var(--rw-space-4x); }
.ds-steps { display: grid; gap: var(--rw-space-3x); margin: 0; padding: 0; list-style: none; }
.ds-step { display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: var(--rw-space-3x); color: var(--rw-text-secondary); transition: color 200ms; }
.ds-step-now, .ds-step-done { color: var(--rw-text-primary); }
.ds-step-mark { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--rw-border-enabled); position: relative; transition: background-color 200ms, border-color 200ms; }
.ds-step-now .ds-step-mark { border-color: var(--rw-text-primary); border-inline-end-color: transparent; animation: ds-spin 900ms linear infinite; }
.ds-step-done .ds-step-mark { border-color: var(--rw-text-success); background: var(--rw-text-success); animation: ds-swap 200ms both; }
.ds-step-done .ds-step-mark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--rw-bg-subtle); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes ds-spin { to { transform: rotate(360deg); } }

.ds-package { display: grid; gap: var(--rw-space-3x); padding: var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-muted); }
.ds-package-head { display: flex; align-items: center; gap: var(--rw-space-3x); min-width: 0; }
.ds-package-head > div { min-width: 0; overflow-wrap: anywhere; }
.ds-package-head h3 { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); overflow-wrap: anywhere; word-break: break-all; }
.ds-package-seal { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--rw-text-success); position: relative; animation: ds-swap 260ms cubic-bezier(.2, .7, .2, 1) both; }
.ds-package-seal::after { content: ''; position: absolute; left: 11px; top: 6px; width: 7px; height: 14px; border: solid var(--rw-text-success); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ds-package-bad { border-color: var(--rw-text-danger); }
.ds-package-bad::after { left: 15px; top: 6px; width: 0; height: 14px; border-width: 0 2px 0 0; border-color: var(--rw-text-danger); transform: none; }
.ds-package-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rw-space-3x); margin: 0; }
.ds-package-counts > div { display: grid; gap: 2px; animation: ds-rise 240ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--ds-delay, 0ms); }
.ds-package-counts dt { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-package-counts dd { margin: 0; font-size: var(--rw-body-lg-size); font-weight: 600; }
.ds-package-digest { display: grid; gap: var(--rw-space-1x); }
.ds-package-files > summary { cursor: pointer; font-size: var(--rw-body-sm-size); }
.ds-package-files ul { display: grid; gap: var(--rw-space-1x); margin: var(--rw-space-2x) 0 0; padding: 0; list-style: none; font-size: var(--rw-body-xs-size); }
.ds-package-files li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--rw-space-3x); overflow-wrap: anywhere; }

@media (max-width: 47.99rem) {
  .ds-step { grid-template-columns: 1.25rem 1fr; row-gap: 0; }
  .ds-step > .ds-secondary { grid-column: 2; font-size: var(--rw-body-xs-size); }
  .ds-package-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-package-files li { grid-template-columns: 1fr auto; }
  .ds-package-files li > .ds-mono { display: none; }
}

/* A flight's track events on the replay panel: each one moves the replay to its moment. */
.ds-track-events { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); margin: var(--rw-space-3x) 0 0; padding: 0; list-style: none; }
.ds-track-event { display: inline-flex; align-items: baseline; gap: var(--rw-space-2x); padding: var(--rw-space-1x) var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-md); background: none; color: var(--rw-text-primary); font: inherit; font-size: var(--rw-body-sm-size); cursor: pointer; }
.ds-track-event:hover { background: var(--rw-bg-muted); }
.ds-track-event:focus-visible { outline: 2px solid var(--rw-text-primary); outline-offset: 2px; }
.ds-track-event-word { font-weight: 600; }
.ds-track-event-lost .ds-track-event-word::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-inline-end: var(--rw-space-1x); border: 1.5px solid var(--rw-text-secondary); border-radius: 50%; }
.ds-track-event-acquired .ds-track-event-word::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-inline-end: var(--rw-space-1x); border-radius: 50%; background: var(--rw-text-primary); }

/* This drone, on the replay panel: its judgement and name now, its notes, the watch entries it
   matches, and the operator's actions. The panel sits over the map, so it stays a few lines. */
.ds-replay-judge { display: grid; gap: var(--rw-space-2x); padding-block-start: var(--rw-space-3x); border-block-start: 1px solid var(--rw-divider); }
.ds-replay-judge > h3 { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); font-weight: 800; }
.ds-replay-judge > h3:focus { outline: none; }
.ds-replay-judge > h3:focus-visible { outline: 2px solid var(--rw-text-primary); outline-offset: 2px; }
.ds-judge-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--rw-space-1x) var(--rw-space-2x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-judge-none { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-judge-name { font-weight: 600; overflow-wrap: anywhere; }
.ds-judge-notes { flex-basis: 100%; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); overflow-wrap: anywhere; }
.ds-judge-watch { display: grid; gap: var(--rw-space-1x); margin: 0; padding: 0; list-style: none; }
.ds-judge-watch > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-1x) var(--rw-space-2x); min-width: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-judge-what { overflow-wrap: anywhere; }
.ds-judge-reason { flex: 1 1 12rem; min-width: 0; color: var(--rw-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-judge-actions { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); }
.ds-judge-foot { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
@media (max-width: 59.99rem) {
  .ds-judge-reason, .ds-judge-notes { display: none; }
}

/* ── Radars and cameras ──────────────────────────────────────────────────── */

/* A sensor's coverage: the fan the map draws, small, in neutral ink. */
.ds-fan { flex-shrink: 0; overflow: visible; }
.ds-fan-range { fill: none; stroke: var(--rw-text-secondary); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 2 2; }
.ds-fan-sector { fill: color-mix(in srgb, var(--rw-text-primary) 18%, transparent); stroke: var(--rw-text-primary); stroke-width: 1.25; stroke-linejoin: round; }
.ds-fan-north { stroke: var(--rw-text-secondary); stroke-width: 1.25; stroke-linecap: round; }
.ds-fan-sensor { fill: var(--rw-text-primary); }
.ds-coverage { display: inline-flex; align-items: center; gap: var(--rw-space-2x); }

/* Class probabilities: one bar per class, the most likely in primary ink. The bars move to a
   new judgement over the time between two reports, as the symbols do. */
.ds-classes { display: grid; gap: var(--rw-space-2x); }
.ds-class-bars { display: grid; gap: var(--rw-space-1x); }
.ds-class-bar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; align-items: center; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); color: var(--rw-text-secondary); }
.ds-class-best { color: var(--rw-text-primary); font-weight: 600; }
.ds-class-track { height: var(--rw-space-1x); border-radius: var(--rw-radius-md); background: var(--rw-bg-muted); overflow: hidden; }
.ds-class-fill { display: block; height: 100%; width: var(--p); background: var(--rw-text-secondary); border-radius: inherit; transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.ds-class-best .ds-class-fill { background: var(--rw-text-primary); }
.ds-class-pct { text-align: end; }
.ds-class-rcs { font-size: var(--rw-body-sm-size); }

/* The evidence chain: what joined a track and how. A non-cooperative kind of evidence (seen
   or heard without being told) has a dashed outline, one the object broadcast a solid one. */
.ds-chain-block { display: grid; gap: var(--rw-space-3x); min-width: 0; margin-block: var(--rw-space-4x); }
.ds-chain { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--rw-space-2x); }
.ds-chain-item { display: inline-flex; align-items: center; animation: ds-chain-in 420ms calc(var(--i) * 90ms) both cubic-bezier(.2, .7, .2, 1); }
.ds-chain-item + .ds-chain-item::before { content: '+'; padding-inline: var(--rw-space-2x); color: var(--rw-text-secondary); }
.ds-chain-part { padding: var(--rw-space-1x) var(--rw-space-3x); border: 1px solid var(--rw-text-secondary); border-radius: var(--rw-radius-md); font-size: var(--rw-body-sm-size); font-weight: 600; }
.ds-chain-seen { border-style: dashed; }
@keyframes ds-chain-in { from { opacity: 0; transform: translateX(calc(-1 * var(--rw-space-2x))); } }
.ds-joined { display: grid; gap: var(--rw-space-2x); }
.ds-joined-row { display: flex; align-items: flex-start; gap: var(--rw-space-2x); padding: var(--rw-space-2x) var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); }
.ds-joined-row > .ds-glyph { margin-top: var(--rw-space-half, 2px); }
.ds-joined-text { display: grid; gap: var(--rw-space-1x); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-joined-name { font-weight: 600; }
.ds-joined-text > .ds-secondary { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-gate { display: block; height: 2px; margin-top: var(--rw-space-1x); background: var(--rw-bg-muted); border-radius: var(--rw-radius-md); overflow: hidden; }
.ds-gate-fill { display: block; height: 100%; width: var(--p); background: var(--rw-text-primary); }

/* Merging: the list of tracks that could be the same object, at the top of the drawer. */
.ds-merge { padding: var(--rw-space-3x); margin-block: var(--rw-space-3x); border: 1px solid var(--rw-text-secondary); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); animation: ds-merge-in 260ms both cubic-bezier(.2, .7, .2, 1); }
@keyframes ds-merge-in { from { opacity: 0; transform: translateY(calc(-1 * var(--rw-space-2x))); } }
.ds-merge-head { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); }
.ds-merge-head > h3 { margin: 0; font-size: var(--rw-body-md-size); }
.ds-merge > .ds-secondary { margin-block: var(--rw-space-2x) var(--rw-space-3x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-merge-list .ds-rowbtn { padding-inline: var(--rw-space-2x); border-radius: var(--rw-radius-md); }
.ds-rowbtn-hot { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); box-shadow: inset 2px 0 0 var(--rw-text-primary); }
.ds-merge-dist { flex-shrink: 0; text-align: end; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-merge-pair { display: grid; gap: 0; }
.ds-merge-link { justify-self: start; height: var(--rw-space-5x); margin-inline-start: calc(var(--rw-space-3x) + var(--rw-space-3x)); border-inline-start: 1px dashed var(--rw-text-secondary); }

/* ── Cameras: Look, the strip of pictures, the viewer ─────────────────────
   A cue answers on the stream, so the strip fills in place: a tile names the camera that is
   turning, then the picture slides in at the start. Thumbnails are 16:9 like the cameras. */
.ds-look { display: grid; gap: var(--rw-space-2x); margin-bottom: var(--rw-space-3x); }
.ds-look-buttons { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); }
.ds-look-line { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-look-failed { color: var(--rw-text-warning); }

.ds-media-strip {
  display: flex;
  gap: var(--rw-space-2x);
  margin-inline: calc(-1 * var(--rw-space-4x));
  padding: var(--rw-space-1x) var(--rw-space-4x) var(--rw-space-2x);
  overflow-x: auto;
  overflow-anchor: none;
  scroll-snap-type: x proximity;
  /* Tiles snap to where the padding starts, not to the drawer's edge. */
  scroll-padding-inline: var(--rw-space-4x);
  scrollbar-width: thin;
}
.ds-media-tile { display: grid; gap: 0; flex: 0 0 9.5rem; min-width: 0; scroll-snap-align: start; }
.ds-media-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rw-divider);
  border-radius: var(--rw-radius-md);
  background: var(--rw-bg-muted);
  cursor: zoom-in;
}
.ds-media-thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-media-thumb:hover { border-color: var(--rw-border-enabled); }
.ds-media-thumb:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }
.ds-media-cap { margin-top: var(--rw-space-1x); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); font-variant-numeric: tabular-nums; }
.ds-media-sub { overflow: hidden; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); white-space: nowrap; text-overflow: ellipsis; }

/* A cue on its way holds the place of its picture; the line along its foot runs while the
   camera turns. That is the only motion here, and it says that something is under way. */
.ds-media-pending > .ds-media-wait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px dashed var(--rw-border-enabled);
  border-radius: var(--rw-radius-md);
  background: var(--rw-bg-muted);
}
.ds-media-wait > .ds-glyph { width: var(--rw-space-6x); height: var(--rw-space-6x); }
.ds-media-wait::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 35%;
  height: 2px;
  background: var(--rw-text-primary);
  opacity: 0.55;
  animation: ds-media-scan 1.4s ease-in-out infinite;
}
@keyframes ds-media-scan { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.ds-media-new { animation: ds-media-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ds-media-in { from { opacity: 0; transform: translateX(-0.75rem) scale(0.96); } }

.ds-viewer.rw-dialog { width: min(60rem, calc(100vw - var(--rw-space-8x))); max-width: none; }
.ds-viewer-figure { margin: 0 0 var(--rw-space-3x); overflow: hidden; border-radius: var(--rw-radius-md); background: var(--rw-bg-app); }
.ds-viewer-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; animation: ds-viewer-in 220ms ease-out; }
@keyframes ds-viewer-in { from { opacity: 0.2; } }
.ds-viewer-count { margin-inline-end: auto; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-viewer .rw-dialog-foot { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .ds-media-wait::after, .ds-media-new, .ds-viewer-img { animation: none; }
}
@media (max-width: 47.99rem) {
  .ds-viewer.rw-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .ds-media-tile { flex-basis: 8.5rem; }
}

/* ── Spectrum: an RF sensor's sweeps in its drawer (console/spectrum-ui.js, DESIGN.md 21) ──────── */

/* The drawer widens for the spectrum when asked, on a screen with room for it. */
.ds-stage > aside.ds-drawer { transition: width 280ms cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 80rem) {
  .ds-drawer.ds-drawer-wide { width: 48rem; }
  .ds-stage:has(> aside.ds-drawer-wide) .ds-mapctl { inset-inline-end: calc(48rem + var(--rw-space-3x)); }
  .ds-stage:has(> aside.ds-drawer-wide) .maplibregl-ctrl-bottom-right { right: 48rem; }
  .ds-stage:has(> aside.ds-drawer-wide) .ds-map-note { inset-inline-end: calc(48rem + var(--rw-space-4x)); }
  .ds-stage:has(> aside.ds-drawer-wide) .ds-map-google .maplibregl-ctrl-bottom-right { max-width: calc(100% - 55rem); }
}
.ds-spec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); margin-bottom: var(--rw-space-2x); }
.ds-spec-head > h3 { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
/* Band tabs: Redwood's tab bar, tighter, scrolling sideways when the bands do not fit. */
.ds-spec-tabs { gap: var(--rw-space-3x); margin-inline: calc(-1 * var(--rw-space-4x)); padding-inline: var(--rw-space-4x); scroll-padding-inline: var(--rw-space-4x); }
.ds-spec-tabs > .rw-tab { min-width: 0; min-height: var(--rw-space-10x); font-size: var(--rw-body-sm-size); }
.ds-spec-tabdot { width: 6px; height: 6px; border-radius: 50%; background: var(--rw-text-warning); }
.ds-spec-meta { margin-block: var(--rw-space-3x) var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-sm-lh); }
.ds-spec-view { animation: ds-rise 240ms cubic-bezier(.2, .7, .2, 1) both; }
.ds-spec-plot { display: block; overflow: visible; touch-action: pan-y; }
.ds-spec-plot:focus-visible, .ds-spec-canvas > canvas:focus-visible { outline: 2px solid var(--rw-text-primary); outline-offset: 2px; }
.ds-spec-ground { fill: var(--rw-bg-muted); }
.ds-spec-grid { stroke: var(--rw-divider); stroke-width: .6; }
.ds-spec-label { fill: var(--rw-text-secondary); font-size: 10px; font-variant-numeric: tabular-nums; }
.ds-spec-rangelabel { font-size: 9px; }
.ds-spec-chan { stroke: var(--rw-border-enabled); stroke-width: 1; }
/* Magnitude is the one hue of brand; what the sensor identified as something else is drawn
   dashed and faint; only what it rated drone-like takes the status colour. */
.ds-spec-peak { fill: var(--rw-brand-110); fill-opacity: .55; stroke: var(--rw-text-brand); stroke-width: 1.2; stroke-linejoin: round; }
.ds-spec-peak.is-known { fill-opacity: .22; stroke: var(--rw-text-secondary); stroke-dasharray: 3 2; }
.ds-spec-peak.is-drone { fill: var(--rw-text-warning); fill-opacity: .3; stroke: var(--rw-text-warning); stroke-dasharray: none; }
.ds-spec-peak.is-on { stroke: var(--rw-text-primary); stroke-width: 1.6; fill-opacity: .7; }
.ds-spec-peak.is-drone.is-on { fill-opacity: .45; }
.ds-spec-peak.is-gone { opacity: .5; }
.ds-spec-floor { stroke: var(--rw-text-secondary); stroke-width: 1; }
.ds-spec-tick { stroke: var(--rw-text-secondary); stroke-width: 1; }
.ds-spec-dronemark { fill: var(--rw-text-warning); stroke: var(--rw-bg-subtle); stroke-width: 1; }
.ds-spec-range > line { stroke: var(--rw-border-enabled); stroke-width: 3; stroke-linecap: round; }
.ds-spec-range.is-dji > line { stroke: var(--rw-text-secondary); }
.ds-spec-cursor { stroke: var(--rw-text-primary); stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.ds-spec-fall { position: relative; margin-top: var(--rw-space-1x); }
.ds-spec-times { position: absolute; inset-block: 0; inset-inline-start: 0; width: 34px; white-space: nowrap; display: flex; flex-direction: column; justify-content: space-between; color: var(--rw-text-secondary); font-size: 10px; line-height: 1; text-align: end; pointer-events: none; }
.ds-spec-canvas { position: relative; height: var(--ds-fall-h); overflow: hidden; border-radius: 2px; background: var(--rw-bg-muted); }
.ds-spec-canvas > canvas { display: block; touch-action: pan-y; }
.ds-spec-overlay { position: absolute; inset: 0; pointer-events: none; }
.ds-spec-cell { fill: none; stroke: var(--rw-text-primary); stroke-width: 1; }
.ds-spec-readout { min-height: calc(2 * var(--rw-body-sm-lh)); margin-top: var(--rw-space-2x); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-sm-lh); overflow-wrap: anywhere; }
.ds-spec-drones { display: grid; gap: var(--rw-space-2x); margin: var(--rw-space-2x) 0 0; padding: 0; list-style: none; }
.ds-spec-drones > li { display: flex; align-items: center; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-spec-drone-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ds-spec-drone-label { display: block; font-size: var(--rw-body-xs-size); }
.ds-spec-drones > li > .ds-secondary:last-child { flex: none; font-size: var(--rw-body-xs-size); white-space: nowrap; }
.ds-spec-dronedot { flex: none; width: 8px; height: 8px; transform: rotate(45deg); background: var(--rw-text-warning); }
.ds-spec-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-1x) var(--rw-space-4x); margin-top: var(--rw-space-3x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); }
.ds-spec-key { display: inline-flex; align-items: center; gap: var(--rw-space-2x); white-space: nowrap; }
.ds-spec-ramp { display: inline-flex; overflow: hidden; border-radius: 2px; }
.ds-spec-ramp > i { width: 9px; height: 8px; }
.ds-spec-hatch { width: 14px; height: 8px; border: 1px solid var(--rw-divider); background: repeating-linear-gradient(135deg, var(--rw-neutral-160) 0 1px, transparent 1px 4px); }
.ds-spec-note { margin-top: var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-sm-lh); }
.ds-spec-empty > p { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-spec-empty > p + p { margin-top: var(--rw-space-1x); }
@media (prefers-reduced-motion: reduce) {
  .ds-stage > aside.ds-drawer { transition: none; }
  .ds-spec-view { animation: none; }
}

/* ── Two tracks too close (DESIGN.md §23) ────────────────────────────────────── */
/* The scope: north up, the alert's own track at the centre, the horizontal minimum a dashed
   ring of fixed size, the other track where it is now. Only the line in the alert's tone
   carries status; the ground and the rings are the evidence strips' ink (§16). */
.ds-sep > h3 { display: flex; align-items: baseline; gap: var(--rw-space-2x); }
.ds-sep-live { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); font-weight: 400; }
.ds-scope { display: block; width: 100%; height: auto; margin-bottom: var(--rw-space-3x); overflow: hidden; border-radius: var(--rw-radius-md); }
.ds-scope-ground { fill: var(--rw-bg-muted); }
.ds-scope-axis { stroke: var(--rw-divider); stroke-width: .6; }
.ds-scope-min { fill: none; stroke: var(--rw-text-primary); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 3 3; }
.ds-scope-half { fill: none; stroke: var(--rw-divider); stroke-width: .6; }
.ds-scope-note { fill: var(--rw-text-secondary); font-size: 10px; font-variant-numeric: tabular-nums; }
.ds-scope-trail { fill: none; stroke: var(--rw-text-primary); stroke-opacity: .35; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ds-scope-closest line { stroke: var(--rw-text-primary); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.ds-scope-closest circle { fill: var(--rw-bg-muted); stroke: var(--rw-text-primary); stroke-opacity: .75; stroke-width: 1.2; }
.ds-scope-closest text { fill: var(--rw-text-secondary); font-size: 10px; font-variant-numeric: tabular-nums; }
/* The line draws in from the drone to the other track when the drawer opens (pathLength 1). */
.ds-scope-line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; animation: ds-sep-draw 420ms cubic-bezier(.3, .6, .2, 1) both; }
@keyframes ds-sep-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ds-scope-tag { fill: var(--rw-text-primary); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--rw-bg-muted); stroke-width: 3px; stroke-linejoin: round; }
.ds-scope-tag-far { fill: var(--rw-text-secondary); font-weight: 400; }
.ds-sep-pair { display: grid; gap: var(--rw-space-2x); }
.ds-sep-gone { cursor: default; }
.ds-sep-gone:hover { background-image: none; }
.ds-rule-note { margin-block: calc(-1 * var(--rw-space-1x)) var(--rw-space-1x); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }

/* ── Looked up in public records (DESIGN.md §23) ─────────────────────────────── */
/* Apart from what the object reported: its own heading, a lead that says where from, the
   source and date in the secondary voice. No colour: a lookup is a fact, not a state. */
.ds-lookup-head { display: flex; align-items: center; justify-content: space-between; gap: var(--rw-space-2x); margin-bottom: var(--rw-space-2x); }
.ds-lookup-head > h3, .ds-lookup-head > h2 { margin: 0; font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-lookup-lead { margin-bottom: var(--rw-space-3x); padding-inline-start: var(--rw-space-3x); border-inline-start: 2px dotted var(--rw-border-enabled); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-lookup-foot { margin-top: var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-sm-lh); }
.ds-lookedup { color: var(--rw-text-secondary); }
.ds-lookedup-mark { margin-inline-start: var(--rw-space-2x); padding: 0 var(--rw-space-1x); border: 1px dotted var(--rw-border-enabled); border-radius: var(--rw-radius-md); font-size: var(--rw-body-xs-size); white-space: nowrap; }
.ds-airframe-lookup { border-top: 1px solid var(--rw-divider); }
.ds-airframe-lookup > .ds-lookup { padding: 0; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .ds-scope-line { animation: none; }
}

/* ── The 3D view (DESIGN.md 25) ─────────────────────────────────────────── */
/* The button on the map's controls: its face is the two characters it opens. */
.ds-btn-3d { font-size: var(--rw-body-xs-size); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ds-mapctl-group > .ds-btn-3d { border-top-color: var(--rw-divider); }

/* A large dialog: the viewport less 2rem a side on a wide screen, all of it on a phone. */
dialog.ds-view3d { box-sizing: border-box; display: flex; flex-direction: column; width: calc(100vw - 2 * var(--rw-space-8x)); height: calc(100dvh - 2 * var(--rw-space-8x)); max-width: 120rem; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); box-shadow: var(--rw-shadow-lg); color: var(--rw-text-primary); }
dialog.ds-view3d:not([open]) { display: none; }
.ds-view3d-head { display: flex; flex: none; align-items: center; gap: var(--rw-space-3x); min-height: var(--rw-space-12x); padding: 0 var(--rw-space-2x) 0 var(--rw-space-4x); border-bottom: 1px solid var(--rw-divider); }
.ds-view3d-head > h2 { flex: none; font-size: var(--rw-heading-xs-size); line-height: var(--rw-heading-xs-lh); font-weight: 800; }
.ds-view3d-site { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); white-space: nowrap; text-overflow: ellipsis; }
.ds-view3d-head > .rw-btn { margin-inline-start: auto; }
.ds-view3d-stage { flex: 1 1 auto; }
.ds-view3d-foot { display: flex; flex: none; flex-wrap: wrap; justify-content: space-between; gap: var(--rw-space-1x) var(--rw-space-6x); padding: var(--rw-space-2x) var(--rw-space-4x); border-top: 1px solid var(--rw-divider); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-view3d-foot > p { max-width: 48rem; }
.ds-view3d-foot > p:empty { display: none; }
/* What flies and its labels, drawn over the map at their height (console/map3d.js). */
.ds-view3d-air { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
/* A scale bar means nothing in perspective. */
.ds-map-pitched .maplibregl-ctrl-scale { display: none; }
/* North: the needle turns with the view; pressing it faces north again. */
.ds-compass > svg { width: var(--rw-space-5x); height: var(--rw-space-5x); }
.ds-compass-n { fill: var(--rw-text-primary); }
.ds-compass-s { fill: none; stroke: var(--rw-text-secondary); stroke-width: 1.2; stroke-linejoin: round; }
@media (max-width: 59.99rem) {
  dialog.ds-view3d { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border: 0; border-radius: 0; }
  .ds-view3d-stage .ds-mapctl { inset-block-end: max(var(--rw-space-8x), calc(var(--ds-foot-end, 0px) + var(--rw-space-2x))); }
  .ds-view3d-stage .maplibregl-ctrl-bottom-left, .ds-view3d-stage .maplibregl-ctrl-bottom-right { bottom: var(--rw-space-1x); }
  .ds-view3d-hint { display: none; }
}
