/* Fleet, the organisation's own docks and drones: the Fleet tab's list, the device drawer and
   what a device can do, and Organisation › Fleet. Redwood tokens only (web/DESIGN.md 2 and 26). */

/* ── The Fleet tab ──────────────────────────────────────────────────────── */
.ds-fleet-list { flex: 1 1 0; min-height: 0; overflow-y: auto; border-top: 1px solid var(--rw-divider); }
.ds-fleet-site + .ds-fleet-site { border-top: 1px solid var(--rw-divider); }
.ds-fleet-site-name { padding: var(--rw-space-3x) var(--rw-space-4x) var(--rw-space-1x); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-fleet-rows > .ds-fleet-item + .ds-fleet-item:not(.ds-fleet-child) { border-top: 1px solid var(--rw-divider); }
.ds-fleet-row {
  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-fleet-row:hover { background-image: linear-gradient(var(--rw-bg-hover), var(--rw-bg-hover)); }
.ds-fleet-row:focus-visible { outline: dotted 1px var(--rw-focus-ring); outline-offset: -2px; }
.ds-fleet-row.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-fleet-row > .ds-glyph { flex-shrink: 0; }
/* A drone under its dock: indented on a hairline from the dock's glyph, so the pair reads as one. */
.ds-fleet-child > .ds-fleet-row { position: relative; padding-inline-start: calc(var(--rw-space-3x) + var(--rw-space-8x)); min-height: var(--rw-space-12x); }
.ds-fleet-child > .ds-fleet-row::before {
  content: ''; position: absolute; inset-block: 0 50%; inset-inline-start: calc(var(--rw-space-3x) + var(--rw-space-3x));
  width: var(--rw-space-3x); border-inline-start: 1px solid var(--rw-border-enabled); border-block-end: 1px solid var(--rw-border-enabled);
}
.ds-fleet-row-state { flex-shrink: 0; font-size: var(--rw-body-sm-size); white-space: nowrap; }
.ds-fleet-panel > .ds-panel-pad { padding-bottom: var(--rw-space-3x); }
.ds-fleet-panel > .ds-panel-head > .ds-panel-count { white-space: nowrap; }

/* On a phone the list comes first and the map takes what is left. */
.ds-console-stacked:has(> .ds-fleet-panel) { grid-template-rows: fit-content(58%) minmax(12rem, 1fr); }
.ds-console-stacked > .ds-fleet-panel { max-height: 100%; border-bottom: 1px solid var(--rw-divider); }
.ds-console-stacked > .ds-fleet-panel > .ds-fleet-list { flex: 0 1 auto; }

/* ── The device drawer ──────────────────────────────────────────────────── */
.ds-fleet-rows-inset { margin-inline: calc(-1 * var(--rw-space-4x)); }
.ds-fleet-rows-inset .ds-fleet-row { padding-inline: var(--rw-space-4x); }
.ds-fleet-id { display: inline-flex; align-items: center; gap: var(--rw-space-1x); min-width: 0; overflow-wrap: anywhere; }

/* What it can do: the groups' buttons wrap; why some cannot be used now is said under them,
   once per reason, in the secondary voice. No status colour: a disabled button is not an alarm. */
.ds-fleet-abilities { display: grid; gap: var(--rw-space-4x); }
.ds-fleet-abilities > h3 { margin-bottom: 0; }
.ds-fleet-group { display: grid; gap: var(--rw-space-2x); }
.ds-fleet-group-name { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-fleet-buttons { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x); }
.ds-fleet-buttons > .rw-btn { font-weight: 400; }
.ds-fleet-buttons > .rw-btn.ds-fleet-pressed { border-color: var(--rw-border-selected); background-color: var(--rw-bg-selected); }
.ds-fleet-reason, .ds-fleet-coming { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); overflow-wrap: anywhere; }
.ds-fleet-coming { color: var(--rw-text-primary); }

/* The Dock section: the dock's state as a compact readout, its actions, and the action under way
   with the dock's progress as a 4 px meter in the map's own blue; a reboot is the one action
   drawn apart, at the end of the row. Colour only where the cover is open or at fault. */
.ds-dock-state { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--rw-space-2x) var(--rw-space-4x); margin-block-end: var(--rw-space-3x); }
.ds-dock-fact { display: grid; gap: 2px; min-width: 0; }
.ds-dock-fact-wide { grid-column: 1 / -1; }
.ds-dock-fact > dt { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-dock-fact > dd { margin: 0; font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-dock-tone-warning { color: var(--rw-text-warning); }
.ds-dock-tone-danger { color: var(--rw-text-danger); }
.ds-dock-tone-info { color: var(--rw-text-secondary); }
.ds-dock-buttons { margin-block-end: var(--rw-space-2x); }
/* A cover open outside a flight: how long, with Close the cover beside it; a warning edge once it
   has been open 15 minutes, when the Fleet keeper says so too. */
.ds-dock-open { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rw-space-2x) var(--rw-space-3x); margin-block-end: var(--rw-space-3x);
  padding: var(--rw-space-2x) var(--rw-space-3x); border-radius: var(--rw-radius-md); background: var(--rw-bg-muted); }
.ds-dock-open > p { flex: 1 1 12rem; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-dock-open-long { border-inline-start: 3px solid var(--rw-text-warning); }
.ds-dock-buttons > .ds-dock-reboot { margin-inline-start: auto; }
.ds-dock-note { margin-block-start: var(--rw-space-1x); padding-inline-start: var(--rw-space-2x); border-inline-start: 3px solid var(--rw-text-warning); }
.ds-dock-cmds { display: grid; margin-block-start: var(--rw-space-3x); border-top: 1px solid var(--rw-divider); }
.ds-dock-cmd { display: grid; gap: var(--rw-space-1x); padding-block: var(--rw-space-2x); border-bottom: 1px solid var(--rw-divider); }
.ds-dock-cmd-current { padding: var(--rw-space-3x); margin-block: var(--rw-space-2x); border: 1px solid var(--rw-border-selected); border-radius: var(--rw-radius-md); background: var(--rw-bg-muted); }
.ds-dock-cmd-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rw-space-2x); min-width: 0; }
.ds-dock-cmd-what { font-weight: 600; }
.ds-dock-cmd-when { margin-inline-start: auto; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); }
.ds-dock-progress { display: flex; align-items: center; gap: var(--rw-space-3x); }
.ds-dock-meter { position: relative; flex: 1 1 auto; height: 4px; border-radius: 2px; background: var(--rw-bg-content); overflow: hidden; }
.ds-dock-meter > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--ds-fill, 0%); border-radius: inherit; background: var(--ds-traffic); transition: width 600ms cubic-bezier(.2, .7, .2, 1); }
/* No word from the dock yet: a short band that slides along, until a percent comes. */
.ds-dock-meter > span.ds-dock-meter-waiting { width: 30%; animation: ds-dock-wait 1.6s ease-in-out infinite; }
@keyframes ds-dock-wait { from { inset-inline-start: -30%; } to { inset-inline-start: 100%; } }
.ds-dock-percent { flex-shrink: 0; min-width: 3.5em; text-align: end; font-size: var(--rw-body-sm-size); }
.ds-dock-step, .ds-dock-result, .ds-dock-by { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); overflow-wrap: anywhere; }
.ds-dock-step, .ds-dock-by { color: var(--rw-text-secondary); }
.ds-dock-by { font-size: var(--rw-body-xs-size); }
@media (prefers-reduced-motion: reduce) {
  .ds-dock-meter > span { transition: none; }
  .ds-dock-meter > span.ds-dock-meter-waiting { animation: none; inset-inline-start: 0; }
}
/* The question asked once: the question in bold, then what it does; the service's warnings each
   with a 3 px warning edge, as a fleet brief's findings. */
.ds-dock-ask-lead { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-dock-warnings { display: grid; gap: var(--rw-space-2x); }
.ds-dock-warning { padding: var(--rw-space-2x) var(--rw-space-3x); border-inline-start: 3px solid var(--rw-text-warning); border-radius: var(--rw-radius-sm); background: var(--rw-bg-muted);
  font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); overflow-wrap: anywhere; }

/* ── Organisation › Fleet ───────────────────────────────────────────────── */
.ds-fleet-account { overflow-wrap: anywhere; }
.ds-fleet-health { gap: var(--rw-space-1x); min-width: 9rem; }
.ds-fleet-health .ds-state { white-space: nowrap; }
.ds-fleet-health-detail { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); max-width: 30em; }

dialog.ds-fleet-dialog { width: min(44rem, calc(100vw - 2 * var(--rw-space-4x))); }
.ds-fleet-dialog .ds-fleet-form { grid-template-columns: minmax(0, 1fr); }
.ds-fleet-now { display: grid; gap: var(--rw-space-1x); margin-block-end: var(--rw-space-4x); padding: var(--rw-space-3x) var(--rw-space-4x); border-radius: var(--rw-radius-md); background: var(--rw-bg-muted); }
.ds-fleet-now .ds-secondary { font-size: var(--rw-body-sm-size); }
.ds-fleet-now .ds-fleet-health-detail { max-width: none; }
.ds-fleet-token { display: grid; gap: var(--rw-space-3x); margin: 0; padding: var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); }
.ds-fleet-token > legend { padding-inline: var(--rw-space-1x); }
.ds-fleet-token > .rw-btn { justify-self: start; }
.ds-fleet-onfile { display: grid; gap: var(--rw-space-2x); justify-items: start; }
.ds-fleet-onfile .ds-secondary { font-size: var(--rw-body-sm-size); }

/* Binding a DJI dock: the address, the code shown once, the steps on the controller. The code
   is the one large thing in the dialog, in mono, so it can be read off the screen and typed. */
.ds-fleet-bind, .ds-fleet-bound { display: grid; gap: var(--rw-space-3x); margin-block-start: var(--rw-space-6x); padding-block-start: var(--rw-space-4x); border-top: 1px solid var(--rw-divider); }
.ds-fleet-bind > h3, .ds-fleet-bound > h3 { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-fleet-code { display: grid; gap: var(--rw-space-1x); justify-items: start; padding: var(--rw-space-4x); border: 1px solid var(--rw-border-selected); border-radius: var(--rw-radius-lg); background: var(--rw-bg-muted); }
.ds-fleet-code-value { font-size: var(--rw-heading-md-size); line-height: var(--rw-heading-md-lh); font-weight: 600; letter-spacing: .08em; user-select: all; }
.ds-fleet-code > .ds-secondary { font-size: var(--rw-body-sm-size); }
.ds-fleet-code > .ds-review { margin-top: var(--rw-space-2x); background: var(--rw-bg-content); }
.ds-fleet-expired { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-fleet-steps { display: grid; gap: var(--rw-space-2x); padding-inline-start: var(--rw-space-6x); list-style: decimal; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-fleet-steps > li::marker { font-variant-numeric: tabular-nums; }

.ds-fleet-bound-list { display: grid; }
.ds-fleet-bound-list > li { display: flex; align-items: center; gap: var(--rw-space-3x); padding-block: var(--rw-space-2x); }
.ds-fleet-bound-list > li + li { border-top: 1px solid var(--rw-divider); }
.ds-fleet-bound-list > li > .ds-glyph { flex-shrink: 0; }
.ds-fleet-bound-text { display: grid; gap: var(--rw-space-1x); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-fleet-bound-text > .ds-secondary { font-size: var(--rw-body-sm-size); }
.ds-fleet-bound-list .ds-state { flex-shrink: 0; font-size: var(--rw-body-sm-size); }
.ds-fleet-gone { display: grid; gap: var(--rw-space-1x); padding-inline-start: var(--rw-space-5x); list-style: disc; }

@media (max-width: 40rem) {
  .ds-fleet-bound-list > li { flex-wrap: wrap; }
  .ds-fleet-bound-text { flex-basis: calc(100% - var(--rw-space-12x)); }
  .ds-fleet-bound-list > li > .ds-state { margin-inline-start: calc(var(--rw-space-6x) + var(--rw-space-3x)); }
}

/* ── The Fleet tab's two views ──────────────────────────────────────────── */
.ds-fleet-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; background: var(--rw-bg-app); }
.ds-fleet-views { padding-inline: var(--rw-space-4x); border-bottom: 1px solid var(--rw-divider); background: var(--rw-bg-content); }
.ds-fleet-body { position: relative; min-height: 0; overflow: hidden; }
.ds-fleet-body > .ds-console { height: 100%; }
.ds-fleet-body > aside.ds-drawer { position: absolute; z-index: 6; }

/* ── Status ─────────────────────────────────────────────────────────────── */
/* The ground is the map's: a faint grid the board sits on. Battery and other magnitudes take
   the one hue of magnitude (the brand ramp the map gives ordinary traffic on dark ground);
   status tones appear only for status. */
.ds-fleet-status {
  --ds-fleet-grid: color-mix(in srgb, var(--rw-divider) 45%, transparent);
  position: absolute; inset: 0; overflow-y: auto;
  display: grid; align-content: start; gap: var(--rw-space-4x);
  padding: var(--rw-space-5x) var(--rw-space-6x) var(--rw-space-12x);
  background-color: var(--rw-bg-app);
  background-image: linear-gradient(to right, var(--ds-fleet-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--ds-fleet-grid) 1px, transparent 1px);
  background-size: var(--rw-space-12x) var(--rw-space-12x);
  background-attachment: local;
  transition: padding-inline-end 280ms cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 60rem) { .ds-fleet-body:has(> aside.ds-drawer) > .ds-fleet-status { padding-inline-end: calc(22rem + var(--rw-space-6x)); } }
.ds-fleet-pad { padding: var(--rw-space-4x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); }

/* The live dot: a status dot that, online, sends out one slow ring at a time. */
.ds-live { position: relative; display: inline-block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--rw-text-secondary); }
.ds-live-success { background: var(--rw-text-success); }
.ds-live-warning { background: var(--rw-text-warning); }
.ds-live-danger { background: var(--rw-text-danger); }
.ds-live-on::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--rw-text-success); border-radius: inherit; animation: ds-live 2.8s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes ds-live { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

/* A word that changes cross-fades in place. */
.ds-xfade { animation: ds-xfade 420ms ease-out; }
@keyframes ds-xfade { from { opacity: 0; } }

/* The fleet brief: the Fleet keeper's paragraph first, the largest text of the board's top, at
   a measure a person reads in one go; under it each finding with its next step, side by side as
   far as the width allows. Colour is kept to the findings' start edges and words, as on the
   tiles; the card itself takes the start edge of the worst of them. */
.ds-brief {
  display: grid; align-content: start; gap: var(--rw-space-2x);
  padding: var(--rw-space-4x) var(--rw-space-6x) var(--rw-space-4x) var(--rw-space-5x);
  border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content);
}
.ds-brief-danger { box-shadow: inset 3px 0 0 var(--rw-text-danger); }
.ds-brief-warning { box-shadow: inset 3px 0 0 var(--rw-text-warning); }
.ds-brief-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-1x) var(--rw-space-2x); }
.ds-brief-title { margin: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; color: var(--rw-text-secondary); }
.ds-brief-meta { margin: 0 0 0 auto; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-brief-text {
  margin: 0; max-width: 78ch; font-size: var(--rw-body-lg-size); line-height: 1.55; color: var(--rw-text-primary);
  text-wrap: pretty; animation: ds-xfade 420ms ease-out;
}
.ds-brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-1x) var(--rw-space-4x); margin-inline-start: calc(-1 * var(--rw-space-2x)); }
.ds-brief-morning { margin: 0; padding-inline-start: var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-brief-quiet .ds-brief-text { color: var(--rw-text-secondary); font-size: var(--rw-body-md-size); }

.ds-brief-findings { display: grid; gap: var(--rw-space-2x); margin-top: var(--rw-space-1x); padding-top: var(--rw-space-3x); border-top: 1px solid var(--rw-divider); }
.ds-brief-count { margin: 0; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 400; }
.ds-findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: var(--rw-space-3x) var(--rw-space-6x); margin: 0; padding: 0; list-style: none; }
.ds-finding { position: relative; display: grid; align-content: start; gap: var(--rw-space-1x); min-width: 0; padding-inline-start: var(--rw-space-4x); }
/* The start edge says how much it matters: danger cannot fly, warning needs a look; what is
   for before the next mission is a hairline. */
.ds-finding::before { content: ''; position: absolute; inset-block: 2px; inset-inline-start: 0; width: 3px; border-radius: 2px; background: var(--rw-border-enabled); }
.ds-finding-danger::before { background: var(--rw-text-danger); }
.ds-finding-warning::before { background: var(--rw-text-warning); }
.ds-finding-title { margin: 0; font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); font-weight: 600; overflow-wrap: anywhere; }
.ds-finding-title .rw-badge { margin-inline-end: var(--rw-space-2x); vertical-align: 1px; }
.ds-finding-title .ds-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.ds-finding-title .ds-link:hover { text-decoration-color: currentColor; }
.ds-finding-cause { margin: 0; color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); text-wrap: pretty; }
.ds-finding-next { margin: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); text-wrap: pretty; }
.ds-finding-label { margin-inline-end: var(--rw-space-2x); font-weight: 600; }
.ds-fleet-entering .ds-brief { animation: ds-xfade 420ms ease-out both; }

/* The summary strip: the fleet ring, its legend (each part a filter), the counts by kind. */
.ds-fleet-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-4x) var(--rw-space-8x);
  padding: var(--rw-space-4x) var(--rw-space-6x) var(--rw-space-4x) var(--rw-space-4x);
  border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content);
}
.ds-fleetring-wrap { position: relative; flex: none; width: 7.5rem; height: 7.5rem; }
.ds-fleetring { display: block; width: 100%; height: 100%; }
.ds-fleetring circle { fill: none; }
.ds-fleetring-track { stroke: var(--rw-bg-muted); stroke-width: 7; }
.ds-fleetring-part { stroke-width: 7; cursor: pointer; transition: stroke-dasharray 1000ms cubic-bezier(.2, .7, .2, 1), stroke-dashoffset 1000ms cubic-bezier(.2, .7, .2, 1), opacity 300ms; }
.ds-fleetring-online { stroke: var(--rw-text-success); stroke-opacity: .45; }
.ds-fleetring-flying { stroke: var(--rw-text-success); }
.ds-fleetring-issue { stroke: var(--rw-text-warning); }
.ds-fleetring-offline { stroke: var(--rw-text-danger); }
.ds-fleetring-dim { opacity: .25; }
.ds-fleetring-centre { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; }
.ds-fleetring-total { font-family: var(--font-oracle-mono); font-size: var(--rw-heading-md-size); line-height: var(--rw-heading-md-lh); font-weight: 600; }
.ds-fleetring-unit { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

.ds-fleet-legend { display: grid; gap: var(--rw-space-1x); min-width: 11rem; }
.ds-fleet-part, .ds-fleet-count {
  display: flex; align-items: center; gap: var(--rw-space-2x); min-height: var(--rw-space-8x);
  padding: 0 var(--rw-space-2x); border: 1px solid transparent; border-radius: var(--rw-radius-md);
  background: none; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.ds-fleet-part:hover, .ds-fleet-count:hover { background-color: var(--rw-bg-hover); }
.ds-fleet-part:focus-visible, .ds-fleet-count:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 1px; }
.ds-fleet-part[aria-pressed="true"], .ds-fleet-count[aria-pressed="true"] { border-color: var(--rw-border-selected); background-color: var(--rw-bg-selected); }
.ds-fleet-swatch { flex: none; width: var(--rw-space-3x); height: var(--rw-space-1x); border-radius: 1px; background: var(--rw-text-success); }
.ds-fleet-part-online .ds-fleet-swatch { opacity: .45; }
.ds-fleet-part-issue .ds-fleet-swatch { background: var(--rw-text-warning); }
.ds-fleet-part-offline .ds-fleet-swatch { background: var(--rw-text-danger); }
.ds-fleet-part-label { flex: 1; font-size: var(--rw-body-sm-size); }
.ds-fleet-part-n { min-width: 2ch; font-family: var(--font-oracle-mono); font-size: var(--rw-body-md-size); font-weight: 600; text-align: end; }

.ds-fleet-totals { display: flex; flex-wrap: wrap; gap: var(--rw-space-2x) var(--rw-space-8x); }
.ds-fleet-total { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; column-gap: var(--rw-space-1x); }
.ds-fleet-total-name { grid-row: 1; grid-column: 1 / span 3; padding-inline-start: var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-fleet-total > .ds-fleet-count { grid-row: 2; align-items: baseline; }
.ds-fleet-count-n { font-family: var(--font-oracle-mono); font-size: var(--rw-heading-sm-size); line-height: var(--rw-heading-sm-lh); font-weight: 600; }
.ds-fleet-count-label { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-fleet-count-warning .ds-fleet-count-n { color: var(--rw-text-warning); }
.ds-fleet-fresh { display: flex; align-items: center; gap: var(--rw-space-2x); margin-inline-start: auto; align-self: start; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); white-space: nowrap; }

/* Search, filters and the view. */
.ds-fleet-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-2x); }
.ds-fleet-controls .rw-input { min-height: var(--rw-space-9x); padding-block: 0; font-size: var(--rw-body-sm-size); background-color: var(--rw-bg-content); }
.ds-fleet-controls select.rw-input { width: auto; padding-inline-end: var(--rw-space-8x); }
.ds-fleet-search { position: relative; flex: 0 1 18rem; min-width: 12rem; }
.ds-fleet-search > .rw-input { width: 100%; padding-inline-start: var(--rw-space-9x); }
.ds-fleet-search-icon { position: absolute; inset-block: 0; inset-inline-start: var(--rw-space-3x); display: flex; align-items: center; color: var(--rw-text-secondary); pointer-events: none; }
.ds-fleet-search-icon .ds-ico-svg, .ds-fleet-search-icon .rw-ico { width: var(--rw-space-4x); height: var(--rw-space-4x); font-size: var(--rw-space-4x); }
.ds-fleet-viewset .rw-btn { min-height: var(--rw-space-9x); }
.ds-fleet-attn { min-height: var(--rw-space-9x); font-weight: 400; background-color: var(--rw-bg-content); }
.ds-fleet-attn[aria-pressed="true"] { border-color: var(--rw-border-selected); background-color: var(--rw-bg-selected); }
.ds-fleet-attn-n { margin-inline-start: var(--rw-space-1x); color: var(--rw-text-secondary); }
.ds-fleet-viewset { margin-inline-start: auto; }
.ds-fleet-viewset .rw-btn { font-weight: 400; background-color: var(--rw-bg-content); }
.ds-fleet-viewset .rw-btn[aria-pressed="true"] { background-color: var(--rw-bg-selected); }
.ds-fleet-narrowed { flex-basis: 100%; display: flex; align-items: center; gap: var(--rw-space-2x); color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-fleet-narrowed strong { color: var(--rw-text-primary); font-weight: 600; }
.ds-fleet-sortpick { display: flex; gap: var(--rw-space-1x); }

/* ── The board ──────────────────────────────────────────────────────────── */
.ds-fleet-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: var(--rw-space-4x); }
.ds-tile {
  position: relative; display: grid; align-content: start; gap: var(--rw-space-3x); min-width: 0;
  padding: var(--rw-space-4x) var(--rw-space-4x) var(--rw-space-3x);
  border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); cursor: pointer;
  transition: opacity 700ms ease, filter 700ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.ds-tile:hover { border-color: var(--rw-border-enabled); }
/* What needs a look carries it on its start edge, in the tone of why. */
.ds-tile-attention { box-shadow: inset 3px 0 0 var(--rw-text-warning); }
.ds-tile-offline { box-shadow: inset 3px 0 0 var(--rw-text-danger); opacity: .68; filter: saturate(.35); }
.ds-tile-selected { border-color: var(--rw-border-selected); }
.ds-fleet-entering .ds-tile { animation: ds-tile-in 560ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.ds-fleet-entering .ds-fleet-summary { animation: ds-xfade 420ms ease-out both; }
@keyframes ds-tile-in { from { opacity: 0; transform: translateY(var(--rw-space-3x)); } }

.ds-tile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--rw-space-2x); row-gap: 0; }
.ds-tile-name { min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--rw-body-lg-size); line-height: var(--rw-body-lg-lh); font-weight: 600; text-align: start; overflow-wrap: anywhere; cursor: pointer; }
.ds-tile-name:focus-visible, .ds-tile-drone:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; border-radius: var(--rw-radius-sm); }
.ds-tile-status { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); white-space: nowrap; }
.ds-tile-sub { grid-column: 2 / -1; color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }

.ds-tile-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--rw-space-3x); min-height: 7rem; }
.ds-tile-stage-lone { grid-template-columns: minmax(0, 1fr); }
.ds-tile-drone { display: flex; align-items: center; gap: var(--rw-space-3x); padding: var(--rw-space-1x); border: 0; border-radius: var(--rw-radius-md); background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ds-tile-drone:hover { background-color: var(--rw-bg-hover); }
.ds-tile-drone-text { display: grid; gap: var(--rw-space-1x); min-width: 6.5rem; }
.ds-tile-drone-name { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-tile-drone-state { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); }
.ds-tile-flying .ds-tile-drone-state { color: var(--rw-text-success); }
.ds-tile-battery { display: inline-flex; align-items: center; gap: var(--rw-space-1x); font-family: var(--font-oracle-mono); font-size: var(--rw-heading-xs-size); line-height: var(--rw-heading-xs-lh); font-weight: 600; }
.ds-tile-nodrone { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-tile-battery-stale, .ds-tile-offline .ds-readout > dd { color: var(--rw-text-secondary); }

/* The instrument readouts: label above, figure in mono, like a panel. */
.ds-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--rw-divider); }
.ds-readout { display: grid; gap: 2px; padding: var(--rw-space-2x) var(--rw-space-2x) var(--rw-space-2x) 0; }
.ds-readout + .ds-readout { padding-inline-start: var(--rw-space-3x); border-inline-start: 1px solid var(--rw-divider); }
.ds-readout > dt { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-readout > dd { margin: 0; font-family: var(--font-oracle-mono); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tile-foot { display: grid; gap: var(--rw-space-1x); margin: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-tile-line { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--rw-space-2x); }
.ds-tile-line > dt { color: var(--rw-text-secondary); }
.ds-tile-line > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ds-tile-sw .ds-mono { font-size: var(--rw-body-sm-size); }

/* The drawings: neutral line, the drone in its green, the cover in primary ink. */
.ds-art { display: block; width: 100%; max-width: 12rem; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ds-art-ground { stroke: var(--rw-border-enabled); stroke-width: 1; }
.ds-art-body { stroke: var(--rw-text-secondary); stroke-width: 1.6; }
.ds-art-well { stroke: var(--rw-border-enabled); stroke-width: 1; }
.ds-art-pad { stroke: var(--rw-border-enabled); stroke-width: 1; stroke-dasharray: 2 3; }
.ds-art-stick { stroke: var(--rw-text-secondary); stroke-width: 1.6; }
.ds-art-drone { opacity: 0; transform: translateY(-10px); transition: opacity 600ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1); }
.ds-art-drone path { stroke: var(--rw-text-success); stroke-width: 2.2; }
.ds-art-drone circle { fill: var(--rw-text-success); }
.ds-art-docked .ds-art-drone { opacity: 1; transform: none; }
.ds-art-leaf { transform-box: fill-box; transition: transform 1200ms cubic-bezier(.65, 0, .35, 1); }
.ds-art-leaf path { stroke: var(--rw-text-primary); stroke-width: 3.4; }
.ds-art-leaf-l { transform-origin: left center; }
.ds-art-leaf-r { transform-origin: right center; }
.ds-art-open .ds-art-leaf-l { transform: rotate(-42deg); }
.ds-art-open .ds-art-leaf-r { transform: rotate(42deg); }
/* A cover the dock does not report is drawn dashed: closed, as far as anyone knows. */
.ds-art-unknown .ds-art-leaf path { stroke: var(--rw-text-secondary); stroke-width: 2; stroke-dasharray: 3 5; }

/* The drone's dial. */
.ds-dial { flex: none; width: 6.75rem; height: 6.75rem; overflow: visible; }
.ds-dial circle, .ds-dial path { fill: none; }
.ds-dial-compass { stroke: var(--rw-border-enabled); stroke-width: 1; stroke-dasharray: 1.5 4.6; }
.ds-dial-north { stroke: var(--rw-text-secondary); stroke-width: 1.4; }
.ds-dial-track { stroke: var(--rw-bg-muted); stroke-width: 5; }
.ds-dial-value, .ds-dial-pulse { stroke: var(--ds-traffic); stroke-dasharray: 100; transition: stroke-dashoffset 1100ms cubic-bezier(.2, .7, .2, 1), stroke 300ms ease; }
.ds-dial-value { stroke-width: 5; stroke-linecap: round; }
.ds-dial-pulse { stroke-width: 12; opacity: 0; }
.ds-dial-warning .ds-dial-value, .ds-dial-warning .ds-dial-pulse { stroke: var(--rw-text-warning); }
.ds-dial-danger .ds-dial-value, .ds-dial-danger .ds-dial-pulse { stroke: var(--rw-text-danger); }
.ds-dial-charging .ds-dial-pulse { animation: ds-charge 2.4s ease-in-out infinite; }
@keyframes ds-charge { 0%, 100% { opacity: 0; } 50% { opacity: .22; } }
.ds-dial-craft { transition: transform 900ms cubic-bezier(.2, .7, .2, 1); }
.ds-dial-frame { stroke: var(--rw-text-success); stroke-width: 2.6; stroke-linecap: round; }
.ds-dial-rotor circle { stroke: var(--rw-text-success); stroke-width: 1.4; }
.ds-dial-blade { transform-box: fill-box; transform-origin: center; transform: rotate(45deg); }
.ds-dial-blade path { stroke: var(--rw-text-success); stroke-width: 2; stroke-linecap: round; }
.ds-dial-flying .ds-dial-blade { animation: ds-rotor 420ms linear infinite; }
@keyframes ds-rotor { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ds-dial-nose { fill: var(--rw-text-success); }
.ds-dial-arc { stroke: var(--rw-text-primary); stroke-width: 2.6; stroke-linecap: round; }
.ds-dial-leader { stroke: var(--rw-text-primary); stroke-width: 1.2; stroke-linecap: round; }
.ds-dial-mark { animation: ds-xfade 420ms ease-out; }
.ds-dial-offline .ds-dial-frame, .ds-dial-offline .ds-dial-rotor circle, .ds-dial-offline .ds-dial-blade path { stroke: var(--rw-text-secondary); }
.ds-dial-offline .ds-dial-nose { fill: var(--rw-text-secondary); }

.ds-charging { display: inline-flex; align-items: center; color: var(--rw-text-secondary); }
.ds-charging > svg { width: .7em; height: .95em; fill: currentColor; }

/* ── The table, and its cards ───────────────────────────────────────────── */
.ds-fleet-tablewrap { border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-lg); background: var(--rw-bg-content); overflow-x: auto; }
.ds-fleet-table { width: 100%; }
.ds-fleet-table th { padding-block: 0; vertical-align: bottom; }
.ds-fleet-table td { vertical-align: top; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); white-space: nowrap; }
.ds-fleet-table td .ds-cell-two > .ds-secondary { font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-fleet-table .ds-mono { font-size: var(--rw-body-sm-size); }
.ds-fleet-table th, .ds-fleet-table td { padding-inline: var(--rw-space-3x); }
.ds-fleet-table th:first-child, .ds-fleet-table td:first-child { padding-inline-start: var(--rw-space-4x); }
.ds-fleet-table td.ds-fleet-wrap { min-width: 7rem; max-width: 12rem; white-space: normal; }
.ds-fleet-battery-stale > .ds-num { color: var(--rw-text-secondary); }
.ds-fleet-battery-stale .ds-fleet-meter > span { background: var(--rw-text-secondary); }
.ds-fleet-table tr:last-child > td { border-bottom: 0; }
.ds-sort { display: inline-flex; align-items: center; gap: var(--rw-space-1x); min-height: var(--rw-space-10x); padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: start; white-space: nowrap; cursor: pointer; }
.ds-sort:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }
.ds-sort-mark { display: inline-flex; opacity: 0; transition: opacity 150ms; }
.ds-sort-mark .ds-ico-svg, .ds-sort-mark .rw-ico { width: var(--rw-space-4x); height: var(--rw-space-4x); font-size: var(--rw-space-4x); }
.ds-sort:hover .ds-sort-mark, .ds-sort:focus-visible .ds-sort-mark { opacity: .5; }
.ds-sort-on .ds-sort-mark { opacity: 1; }
.ds-fleet-namecell { position: relative; display: flex; align-items: center; gap: var(--rw-space-2x); min-width: 10rem; }
.ds-fleet-namecell-child { padding-inline-start: var(--rw-space-6x); }
.ds-fleet-namecell-child::before { content: ''; position: absolute; inset-block: -.5rem 50%; inset-inline-start: var(--rw-space-2x); width: var(--rw-space-3x); border-inline-start: 1px solid var(--rw-border-enabled); border-block-end: 1px solid var(--rw-border-enabled); }
.ds-fleet-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.ds-fleet-open:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }
.ds-fleet-status-cell { display: inline-flex; align-items: center; gap: var(--rw-space-2x); }
.ds-fleet-battery { display: inline-flex; align-items: center; gap: var(--rw-space-2x); white-space: nowrap; }
.ds-fleet-meter { position: relative; width: 3.5rem; height: 4px; border-radius: 2px; background: var(--rw-bg-muted); overflow: hidden; }
.ds-fleet-meter > span { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--ds-fill, 0%); border-radius: inherit; background: var(--ds-traffic); transition: width 600ms cubic-bezier(.2, .7, .2, 1); }
.ds-fleet-battery-warning .ds-fleet-meter > span { background: var(--rw-text-warning); }
.ds-fleet-battery-danger .ds-fleet-meter > span { background: var(--rw-text-danger); }
.ds-fleet-battery-warning > .ds-num { color: var(--rw-text-warning); }
.ds-fleet-battery-danger > .ds-num { color: var(--rw-text-danger); }

.ds-fleet-cards { display: grid; gap: var(--rw-space-2x); }
.ds-fleet-card { display: grid; gap: var(--rw-space-2x); padding: 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); }
.ds-fleet-card.rw-selected { border-color: var(--rw-border-selected); }
.ds-fleet-card-child { margin-inline-start: var(--rw-space-5x); }
.ds-fleet-card-facts { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--rw-space-1x) var(--rw-space-3x); margin: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-fleet-card-facts > div { display: contents; }
.ds-fleet-card-facts dt { color: var(--rw-text-secondary); }
.ds-fleet-card-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 47.99rem) {
  .ds-fleet-status { padding: var(--rw-space-3x) var(--rw-space-4x) var(--rw-space-10x); gap: var(--rw-space-3x); }
  .ds-brief { padding: var(--rw-space-3x) var(--rw-space-4x); }
  .ds-brief-meta { flex-basis: 100%; margin-inline-start: 0; }
  .ds-brief-text { font-size: var(--rw-body-md-size); line-height: 1.5; }
  .ds-fleet-summary { gap: var(--rw-space-3x) var(--rw-space-4x); padding: var(--rw-space-3x); }
  .ds-fleetring-wrap { width: 6rem; height: 6rem; }
  .ds-fleet-legend { flex: 1; min-width: 0; }
  .ds-fleet-totals { flex-basis: 100%; gap: var(--rw-space-2x) var(--rw-space-5x); }
  .ds-fleet-count-n { font-size: var(--rw-heading-xs-size); line-height: var(--rw-heading-xs-lh); }
  .ds-fleet-controls select.rw-input { flex: 1 1 8rem; min-width: 0; }
  .ds-fleet-fresh { order: -1; flex-basis: 100%; margin-inline-start: 0; }
  .ds-fleet-search { flex: 1 1 100%; }
  .ds-fleet-viewset { margin-inline-start: 0; }
  .ds-tile-stage { grid-template-columns: minmax(0, 1fr) auto; min-height: 6rem; }
  .ds-art { max-width: 9rem; }
  .ds-dial { width: 5.75rem; height: 5.75rem; }
  .ds-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-readout:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rw-divider); }
  .ds-readout:nth-child(4) { border-top: 1px solid var(--rw-divider); }
}

/* ── Sending a drone (milestone 2) ──────────────────────────────────────── */

/* The pre-flight checks: the outcome as a badge, the check's name, the service's sentence. A
   block is the only danger; a pass and a note stay quiet. A pilot's reason sits under its warning. */
.ds-checks { display: grid; margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--rw-divider); }
.ds-check { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--rw-space-3x); padding: var(--rw-space-2x) 0; }
.ds-check + .ds-check { border-top: 1px solid var(--rw-divider); }
.ds-check-word { padding-top: 1px; }
.ds-check-text { display: grid; gap: 2px; min-width: 0; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-check-name { font-weight: 600; }
.ds-check-detail { overflow-wrap: anywhere; }
.ds-check-pass .ds-check-detail, .ds-check-info .ds-check-detail { color: var(--rw-text-secondary); }
.ds-check-reason { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-check-ask { margin-top: var(--rw-space-1x); }
.ds-check-ask > .rw-input { width: 100%; font-size: var(--rw-body-sm-size); }
.ds-fly-review-title { font-size: var(--rw-heading-xs-size); line-height: var(--rw-heading-xs-lh); font-weight: 800; overflow-wrap: anywhere; }

/* The small map of a request: north up, the map's own ground and line style. The drone and
   where it holds in its green; the target in primary ink with the 60 m it keeps from it. */
.ds-minimap { margin: 0; max-width: 26rem; }
.ds-minimap svg { display: block; width: 100%; height: auto; }
.ds-minimap-ground { fill: var(--rw-bg-app); stroke: var(--rw-divider); }
.ds-minimap-ring { fill: none; stroke: var(--rw-border-enabled); stroke-dasharray: 2 3; }
.ds-minimap-path { fill: none; stroke: var(--rw-text-success); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linecap: round; }
.ds-minimap-dock rect, .ds-minimap-dock path { fill: none; stroke: var(--rw-text-secondary); stroke-width: 1.6; stroke-linejoin: round; }
.ds-minimap-target circle, .ds-minimap-target path { fill: none; stroke: var(--rw-text-primary); stroke-width: 1.6; stroke-linecap: round; }
.ds-minimap-hold path { fill: none; stroke: var(--rw-text-success); stroke-width: 2; stroke-linecap: round; }
.ds-minimap-hold circle { fill: none; stroke: var(--rw-text-success); stroke-width: 1; }
.ds-minimap-label, .ds-minimap-north text, .ds-minimap-scale text { fill: var(--rw-text-secondary); font-size: 10px; }
.ds-minimap-north path { fill: var(--rw-text-secondary); }
.ds-minimap-scale path { fill: none; stroke: var(--rw-text-secondary); stroke-width: 1.2; }

/* The review dialog: the drones as choices, each with distance and flight time; the checks of
   the one chosen; where it would hold; who launches. */
dialog.ds-fly-dialog { width: min(40rem, calc(100vw - 2 * var(--rw-space-4x))); }
.ds-fly { gap: var(--rw-space-4x); }
.ds-fly-target { font-weight: 600; overflow-wrap: anywhere; }
.ds-fly-options { display: grid; gap: var(--rw-space-2x); margin: 0; padding: 0; border: 0; }
.ds-fly-option {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--rw-space-3x);
  padding: var(--rw-space-2x) var(--rw-space-3x); border: 1px solid var(--rw-divider); border-radius: var(--rw-radius-md); cursor: pointer;
}
.ds-fly-option:hover { border-color: var(--rw-border-enabled); }
.ds-fly-option.rw-selected { border-color: var(--rw-border-selected); background-color: var(--rw-bg-selected); }
.ds-fly-option:has(input:focus-visible) { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }
.ds-fly-option-text { display: grid; gap: 2px; min-width: 0; }
.ds-fly-option-name { font-weight: 600; overflow-wrap: anywhere; }
.ds-fly-option-line { color: var(--rw-text-secondary); font-size: var(--rw-body-sm-size); }
.ds-fly-option-blocked .ds-fly-option-name { color: var(--rw-text-secondary); }
.ds-fly-checks > h3 { margin-bottom: var(--rw-space-2x); font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-fly-plan { font-size: var(--rw-body-sm-size); }
.ds-fly-why { max-width: 22rem; }
.ds-fly-review { display: grid; gap: var(--rw-space-3x); }
.ds-fly-review > h4 { margin-bottom: 0; }
.ds-fly-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--rw-space-1x) var(--rw-space-3x); }
.ds-fly-review-head > h4 { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); }
.ds-fly-review-head > .ds-secondary { font-size: var(--rw-body-xs-size); }
.ds-fly-review-head > .rw-btn { margin-inline-start: auto; }

/* Send a drone, in an alert's drawer: the first suggestion in a line, and the button. */
.ds-send { display: grid; gap: var(--rw-space-2x); justify-items: start; }
.ds-send-line { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }

/* The flight card. Its state is the one word that changes colour, and only for a request that
   waits for a pilot or a flight in trouble. Motion follows a change: the word cross-fades, a
   step fills. Under prefers-reduced-motion they step (base.css). */
.ds-flight-list { display: grid; gap: var(--rw-space-3x); }
/* An article: History's past-flight rows are buttons of the same class (console.css). */
article.ds-flight { display: grid; gap: var(--rw-space-3x); padding: 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); }
.ds-flight-warning { box-shadow: inset 3px 0 0 var(--rw-text-warning); }
.ds-flight-danger { box-shadow: inset 3px 0 0 var(--rw-text-danger); }
.ds-flight-head { display: grid; gap: 2px; }
.ds-flight-state { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; color: var(--rw-text-secondary); }
.ds-flight-up .ds-flight-state:not(.ds-text-danger):not(.ds-text-warning) { color: var(--rw-text-success); }
.ds-flight-title { font-size: var(--rw-body-md-size); line-height: var(--rw-body-md-lh); font-weight: 600; overflow-wrap: anywhere; }
.ds-flight-sub { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); overflow-wrap: anywhere; }
.ds-flight-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.ds-flight-step { display: grid; min-width: 0; }
.ds-flight-step::before { content: ''; height: 4px; border-radius: 2px; background: var(--rw-bg-muted); transition: background-color 600ms ease; }
.ds-flight-step-done::before { background: var(--rw-text-success); opacity: .55; }
.ds-flight-step-current::before { background: var(--rw-text-success); animation: ds-step-fill 700ms cubic-bezier(.2, .7, .2, 1); transform-origin: left center; }
.ds-flight-step-trouble::before { background: var(--rw-text-danger); }
@keyframes ds-step-fill { from { transform: scaleX(0); } }
/* In a drawer's width the readouts go two by two. */
.ds-flight-readouts { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-flight-readouts .ds-readout:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rw-divider); }
.ds-flight-readouts .ds-readout:nth-child(4) { border-top: 1px solid var(--rw-divider); }
.ds-flight-note { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
article.ds-flight .ds-facts { margin: 0; }
.ds-flight-commands { display: grid; gap: var(--rw-space-2x); }
.ds-flight-said { font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); overflow-wrap: anywhere; }
.ds-flight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rw-space-2x); font-size: var(--rw-body-sm-size); }
.ds-flight-links { display: flex; flex-wrap: wrap; gap: var(--rw-space-1x) var(--rw-space-4x); font-size: var(--rw-body-sm-size); }
.ds-flight-past { margin-top: var(--rw-space-2x); }
.ds-flight-row { text-decoration: none; }
.ds-flight-row-state { flex-shrink: 0; }
.ds-flight-log { display: grid; gap: var(--rw-space-2x); margin: 0; padding: 0; list-style: none; font-size: var(--rw-body-sm-size); line-height: var(--rw-body-md-lh); }
.ds-flight-log > li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--rw-space-2x); }
.ds-flight-log > li > span:last-child { overflow-wrap: anywhere; }
.ds-flight-what { display: inline-block; max-width: 22rem; white-space: normal; overflow-wrap: anywhere; }

/* A tile's flight on the board: one line under the dock and its drone, which opens the flight. */
.ds-tile-flight {
  display: grid; gap: 2px; width: 100%; 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-subtle); color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.ds-tile-flight:hover { border-color: var(--rw-border-enabled); }
.ds-tile-flight:focus-visible { outline: 2px solid var(--rw-focus-ring); outline-offset: 2px; }
.ds-tile-flight-state { color: var(--rw-text-success); font-size: var(--rw-body-sm-size); line-height: var(--rw-body-sm-lh); font-weight: 600; }
.ds-tile-flight-warning .ds-tile-flight-state { color: var(--rw-text-warning); }
.ds-tile-flight-danger .ds-tile-flight-state { color: var(--rw-text-danger); }
.ds-tile-flight-what { color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); overflow-wrap: anywhere; }

/* The Flights view: the log as a table on the board's ground. */
.ds-flights .ds-fleet-controls select.rw-input { width: auto; }
.ds-flights-count { flex-basis: auto; margin-inline-start: auto; }
.ds-flights-table .rw-table td { vertical-align: top; }

/* A point's menu on the map: where the person pointed, and what can be done there. */
.ds-pointmenu {
  position: absolute; z-index: 8; left: min(var(--ds-x, 50%), calc(100% - 15rem)); top: min(var(--ds-y, 50%), calc(100% - 7rem)); display: grid; min-width: 14rem; max-width: min(20rem, calc(100% - 2 * var(--rw-space-4x)));
  padding: var(--rw-space-1x) 0; border: 1px solid var(--rw-border-enabled); border-radius: var(--rw-radius-md); background: var(--rw-bg-subtle); box-shadow: var(--rw-shadow-md);
}
.ds-pointmenu-where { padding: var(--rw-space-2x) var(--rw-space-3x) var(--rw-space-1x); color: var(--rw-text-secondary); font-size: var(--rw-body-xs-size); line-height: var(--rw-body-xs-lh); }
.ds-pointmenu-item { min-height: var(--rw-space-10x); padding: var(--rw-space-2x) var(--rw-space-3x); border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ds-pointmenu-item:hover, .ds-pointmenu-item:focus-visible { background-color: var(--rw-bg-hover); outline: none; }

@media (max-width: 47.99rem) {
  .ds-check { grid-template-columns: minmax(0, 1fr); gap: var(--rw-space-1x); }
  .ds-flight { padding: var(--rw-space-3x); }
  .ds-fly-option { grid-template-columns: auto auto minmax(0, 1fr); }
  .ds-fly-option-state { grid-column: 3; }
  .ds-flights-by { display: none; }
  .ds-pointmenu { left: var(--rw-space-4x); right: var(--rw-space-4x); top: auto; bottom: calc(var(--rw-space-12x) * 2); max-width: none; }
}

/* The restriction check's link to the notices that give no area (console/fleet-fly.js). */
.ds-check-more { display: block; margin-top: var(--rw-space-1x); font-size: var(--rw-body-sm-size); }
