[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", system-ui, sans-serif;
}

.app-shell {
  width: 100%;
  height: 100vh;
  padding-top: 64px;
}

.app-shell > main {
  height: calc(100vh - 64px);
}

.view {
  height: 100%;
}

.ops-header {
  position: fixed;
  z-index: 100;
  gap: 8px;
}

.ops-station-context {
  min-width: 190px;
  max-width: 290px;
  flex: 0 1 290px;
  display: flex;
  align-items: center;
}

.ops-station-context .ops-area-switch {
  width: 100%;
  margin-left: 0;
  grid-template-rows: auto auto;
}

.ops-area-switch {
  position: relative;
}

.ops-area-switch select {
  z-index: 1;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ops-area-switch select:focus-visible {
  outline: 2px solid var(--map-accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.ops-area-switch .station-single-label {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ops-area-switch.is-single svg {
  display: none;
}

.ops-area-switch svg {
  grid-row: 1;
  pointer-events: none;
}

.ops-avatar {
  border: 0;
  cursor: pointer;
}

.ops-header-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ops-header-action {
  height: 38px;
  margin-left: 6px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.ops-header-action:hover,
.ops-header-action:focus-visible {
  background: var(--soft);
}

.ops-header-action svg,
.settings-navigation svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-header-spacer {
  flex: 0 0 clamp(4px, 1vw, 16px);
}

.ops-station-state {
  min-width: 0;
  height: 14px;
  padding: 0;
  grid-column: 1 / 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #b16b00;
  background: transparent;
  font-size: 8px;
  white-space: nowrap;
}

.ops-station-state[data-state="warning"] {
  color: #b16b00;
}

.ops-station-state[data-state="good"] {
  color: #16744a;
}

.ops-station-state[data-state="bad"] {
  color: #c93838;
}

[data-carbon-theme="g100"] .ops-station-state {
  color: #f0b95a;
}

[data-carbon-theme="g100"] .ops-station-state[data-state="good"] {
  color: #71d6a0;
}

.ops-station-state > i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.ops-station-state strong {
  font-weight: 750;
}

.ops-station-state strong::after {
  content: "—";
  margin-left: 4px;
}

.ops-station-state span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 600;
  text-overflow: ellipsis;
}

.ops-header-spacer {
  flex: 1 1 auto;
}

.ops-control-dock.ops-dvr-dock {
  width: min(940px, calc(100% - 36px));
  height: 70px;
  padding: 8px 10px;
  box-sizing: border-box;
  gap: 10px;
}

.ops-dock-map-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.ops-dock-map-controls button {
  width: 44px;
  height: 44px;
}

.ops-control-dock > .ops-dvr-divider {
  width: 1px;
  flex: 0 0 1px;
  background: var(--line);
}

.ops-control-dock > .ops-dvr-divider {
  height: 42px;
  margin: 0 5px;
}

.ops-control-dock .ops-dvr {
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto auto auto auto minmax(280px, 1fr);
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.ops-control-dock .ops-dvr-live,
.ops-control-dock .ops-dvr-play {
  width: auto;
  height: 44px;
  border-radius: 10px;
}

.ops-control-dock .ops-dvr-live {
  min-width: 68px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font: 750 11px "DM Mono", monospace;
}

.ops-dvr-live > i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.ops-dvr-live.is-live {
  color: #16744a;
}

.ops-dvr-live.is-live > i {
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.ops-dvr-live[data-stream-state="degraded"] {
  color: #b16b00;
}

.ops-dvr-live[data-stream-state="offline"] {
  color: #c93838;
}

.ops-dvr-live[data-stream-state="historical"] {
  color: var(--muted);
}

[data-carbon-theme="g100"] .ops-dvr-live.is-live {
  color: #71d6a0;
}

[data-carbon-theme="g100"] .ops-dvr-live[data-stream-state="degraded"] {
  color: #f0b95a;
}

.ops-control-dock .ops-dvr-play {
  min-width: 44px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
}

.ops-dvr-scrub {
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: 27px 17px;
  align-content: center;
}

.ops-session-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ops-session-controls button {
  height: 34px;
  min-width: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 700 10px "DM Mono", monospace;
  cursor: pointer;
}

.ops-playback-speed {
  position: relative;
  display: flex;
  align-items: center;
}

.ops-playback-speed select {
  height: 34px;
  min-width: 52px;
  padding: 0 20px 0 8px;
  border: 0;
  border-radius: 7px;
  appearance: none;
  background: transparent;
  color: var(--muted);
  font: 700 10px "DM Mono", monospace;
  cursor: pointer;
}

.ops-playback-speed select:hover,
.ops-playback-speed select:focus-visible {
  outline: 0;
  background: var(--map-accent-soft);
  color: var(--map-accent);
}

.ops-playback-speed option {
  background: var(--panel);
  color: var(--ink);
}

.ops-playback-speed svg {
  position: absolute;
  right: 6px;
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  pointer-events: none;
}

.ops-session-controls button {
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}

.ops-session-controls svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.ops-session-controls button:hover,
.ops-session-controls button:focus-visible {
  background: var(--map-accent-soft);
  color: var(--map-accent);
}

.ops-session-controls button:disabled {
  cursor: default;
  opacity: .35;
}

.ops-timeline-scale {
  position: relative;
  height: 18px;
  margin: 0 7px;
}

.ops-timeline-scale::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--map-accent) 0 var(--timeline-progress, 100%),
    color-mix(in srgb, var(--muted) 30%, transparent)
      var(--timeline-progress, 100%) 100%
  );
}

.ops-timeline-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ops-timeline-ticks i {
  position: absolute;
  top: 5px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: #0f7bff;
  transform: translateX(-1px);
}

.ops-timeline-ticks i.is-selected {
  display: none;
}

.ops-timeline-scale input {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: grab;
}

.ops-timeline-scale input:active {
  cursor: grabbing;
}

.ops-timeline-scale input:disabled {
  cursor: default;
}

.ops-timeline-scale input::-webkit-slider-runnable-track {
  height: 18px;
  background: transparent;
}

.ops-timeline-scale input::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  appearance: none;
  background: var(--map-accent);
  cursor: grab;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--map-accent) 70%, var(--ink)),
    0 2px 5px rgba(8, 24, 34, .28);
}

.ops-timeline-scale input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.ops-timeline-scale input::-moz-range-track {
  height: 18px;
  background: transparent;
}

.ops-timeline-scale input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--map-accent);
  cursor: grab;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--map-accent) 70%, var(--ink)),
    0 2px 5px rgba(8, 24, 34, .28);
}

.ops-timeline-scale input:active::-moz-range-thumb {
  cursor: grabbing;
}

.ops-timeline-scale input:focus-visible {
  outline: 2px solid var(--map-accent);
  outline-offset: 2px;
  border-radius: 5px;
}

.ops-dvr-times {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--muted);
  font: 600 9px "DM Mono", monospace;
}

.ops-dvr-times #timeline-current-time {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-main {
  height: 100%;
  min-height: 0;
}

.ops-basemap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--map-ground);
}

.ops-basemap .maplibregl-canvas {
  outline: none;
}

.ops-basemap .maplibregl-canvas.is-measuring {
  cursor: crosshair;
}

.ops-measure-readout {
  min-width: 82px;
  padding: 0 8px;
  color: var(--ink);
  font: 650 10px "DM Mono", monospace;
  text-align: center;
  white-space: nowrap;
}

.ops-basemap .maplibregl-ctrl-bottom-left {
  left: 14px;
  bottom: 10px;
}

.ops-basemap .maplibregl-ctrl-scale {
  border-color: var(--muted);
  color: var(--muted);
  background: transparent;
  font: 500 8px "DM Mono", monospace;
}

.ops-aircraft.live-aircraft {
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: auto;
  --heading: 0deg;
  --aircraft-color: var(--map-accent);
  color: var(--aircraft-color);
}

.ops-heading-arrow {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 40px;
  overflow: visible;
  filter: drop-shadow(0 3px 4px rgba(8, 24, 34, .3));
  transform: rotate(var(--heading));
  transform-origin: 50% 50%;
  transition: scale .18s ease;
}

.ops-arrow-body {
  fill: var(--aircraft-color);
  stroke: none;
}

.ops-heading-unknown-mark {
  display: none;
  fill: var(--aircraft-color);
  stroke: none;
}

.ops-aircraft.live-aircraft.heading-unknown .ops-arrow-body {
  display: none;
}

.ops-aircraft.live-aircraft.heading-unknown .ops-heading-unknown-mark {
  display: block;
}

.ops-aircraft.live-aircraft.is-selected .ops-heading-arrow {
  scale: 1.18;
}

.ops-aircraft.live-aircraft.is-stale .ops-heading-arrow {
  opacity: .7;
  filter: grayscale(.55) drop-shadow(0 3px 4px rgba(8, 24, 34, .22));
}

.ops-aircraft.live-aircraft.is-inactive .ops-heading-arrow {
  opacity: .45;
  filter: grayscale(1) drop-shadow(0 2px 3px rgba(8, 24, 34, .18));
}

.ops-aircraft.live-aircraft .ops-marker-halo {
  background: color-mix(in srgb, var(--aircraft-color) 20%, transparent);
}

.ops-aircraft.live-aircraft.is-selected .ops-marker-halo {
  animation-name: aircraft-halo;
}

@keyframes aircraft-halo {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--aircraft-color) 34%, transparent);
  }
  75%,
  100% {
    box-shadow: 0 0 0 17px transparent;
  }
}

.ops-aircraft.live-aircraft:focus-visible {
  outline-color: var(--aircraft-color);
}

.ops-aircraft.live-aircraft .ops-marker-label {
  border: 0;
}

.aircraft-identicon {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--glyph-accent);
  overflow: visible;
}

.aircraft-glyph-background {
  /* Fallbacks prevent an unsupported color-mix() from defaulting SVG fill to black. */
  fill: var(--panel);
  stroke: var(--glyph-accent);
  fill: color-mix(in srgb, var(--glyph-accent) 14%, var(--panel));
  stroke: color-mix(in srgb, var(--glyph-accent) 62%, var(--panel));
  stroke-width: 1.5;
}

.aircraft-glyph-pattern {
  fill: var(--glyph-accent);
  opacity: .78;
}

.aircraft-glyph-silhouette {
  fill: var(--panel);
  stroke: var(--glyph-accent);
  stroke: color-mix(in srgb, var(--glyph-accent) 82%, #07131a);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.ops-aircraft.live-aircraft.is-selected .ops-marker-label {
  opacity: 0;
  transform: translateX(-4px);
}

.ops-aircraft.live-aircraft.is-selected:hover .ops-marker-label {
  opacity: 1;
  transform: translateX(0);
}

.ops-system-marker {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--aircraft-color);
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(7, 19, 26, .2));
}

.ops-system-marker svg {
  display: block;
  width: 28px;
  height: 28px;
}

.ops-system-marker.is-control,
.ops-system-marker.is-control svg {
  width: 32px;
}

.ops-system-origin {
  fill: var(--panel);
  stroke: currentColor;
  stroke-width: 1.8;
}

.ops-system-radio-body {
  fill: var(--panel);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.ops-system-liftoff,
.ops-system-control {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-system-marker span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  width: max-content;
  max-width: 190px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(7, 19, 26, .18);
  font: 600 11px "DM Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity .12s ease, transform .12s ease;
}

.ops-system-marker.is-control span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ops-system-marker:hover span,
.ops-system-marker:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ops-system-marker:focus-visible {
  outline: 2px solid var(--aircraft-color);
  outline-offset: 3px;
}

.ops-station-marker {
  --station-color: #e6a700;
  position: relative;
  z-index: 20;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--station-color);
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(7, 19, 26, .16));
}

.ops-station-radar,
.ops-station-ring,
.ops-station-dot {
  position: absolute;
  border-radius: 50%;
}

.ops-station-radar {
  inset: 0;
}

.ops-station-ring {
  left: 50%;
  top: 50%;
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 6%, transparent);
  transform: translate(-50%, -50%);
}

.ops-station-ring.is-outer {
  width: 52px;
  height: 52px;
  opacity: .7;
}

.ops-station-ring.is-inner {
  width: 30px;
  height: 30px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  opacity: .86;
}

.ops-station-dot {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
  transform: translate(-50%, -50%);
}

.ops-station-marker .ops-station-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: max-content;
  max-width: 150px;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--ink);
  font: 650 9px "DM Mono", monospace;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.ops-station-marker:focus-visible {
  outline: 2px solid var(--station-color);
  outline-offset: 3px;
}

.ops-map-focus-pulse {
  width: 18px;
  height: 18px;
  border: 3px solid var(--target-color, var(--map-accent));
  border-radius: 50%;
  pointer-events: none;
  animation: map-target-pulse 1.15s ease-out both;
}

@keyframes map-target-pulse {
  from {
    opacity: 1;
    transform: scale(.45);
    box-shadow: 0 0 0 0 currentColor;
  }
  to {
    opacity: 0;
    transform: scale(2.7);
    box-shadow: 0 0 0 8px transparent;
  }
}

.ops-drone-panel,
.detail-more-dialog {
  --info-card-label-size: 13px;
  --info-card-value-size: 15px;
  --info-card-label-weight: 500;
  --info-card-value-weight: 600;
  --info-card-metric-label-size: 11px;
  --info-card-metric-value-size: 17px;
  --info-card-metric-label-weight: 500;
  --info-card-metric-value-weight: 600;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.ops-drone-panel {
  top: 18px;
  right: 18px;
  bottom: auto;
  left: auto;
  width: min(420px, calc(100% - 36px));
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: color-mix(
    in srgb,
    var(--aircraft-color) 38%,
    var(--line)
  );
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(7, 19, 26, .28);
  animation: aircraft-card-enter .2s cubic-bezier(.2, .8, .2, 1);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

@keyframes aircraft-card-enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.98);
  }
}

.ops-drone-panel .ops-panel-icon {
  display: none;
}

.ops-drone-panel .ops-panel-icon.is-station {
  background: color-mix(in srgb, #e6a700 12%, var(--panel));
  color: #e6a700;
}

.ops-station-card-glyph {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 0 6px color-mix(in srgb, currentColor 10%, transparent),
    0 0 0 7.5px currentColor,
    0 0 0 13px color-mix(in srgb, currentColor 6%, transparent),
    0 0 0 14.5px color-mix(in srgb, currentColor 72%, transparent);
}

.ops-drone-panel[data-detail-kind="station"][data-health-state="warning"]
  .ops-panel-status > span {
  color: #a86600;
}

.ops-drone-panel[data-detail-kind="station"][data-health-state="bad"]
  .ops-panel-status > span {
  color: #c93838;
}

.ops-drone-panel .ops-panel-icon .ops-heading-arrow {
  width: 24px;
  height: 29px;
  filter: none;
}

.ops-drone-panel .ops-panel-icon .aircraft-identicon {
  width: 38px;
  height: 38px;
}

.ops-drone-panel[data-detail-kind="flight"]
  .ops-panel-icon .ops-drone-glyph {
  width: 30px;
  height: 30px;
  color: var(--aircraft-color);
  filter: none;
}

.ops-drone-panel[data-detail-kind="flight"]
  .ops-panel-identity > div > .ops-panel-last-seen {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--aircraft-color) 11%,
    var(--panel)
  );
  color: var(--aircraft-color);
  font-size: 11px;
  font-weight: 600;
}

.ops-drone-panel > header {
  min-height: 96px;
  padding: 17px 16px 15px;
}

.ops-drone-panel > header {
  flex: 0 0 auto;
}

.ops-drone-panel > header {
  min-width: 0;
}

.ops-panel-identity,
.ops-panel-identity > div {
  min-width: 0;
}

.ops-panel-identity {
  flex: 1 1 auto;
}

.ops-panel-identity > div {
  overflow: hidden;
}

.ops-panel-identity small {
  font-size: 10px;
}

.ops-panel-identity strong,
.ops-panel-identity > div > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-drone-panel .ops-panel-identity strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.ops-panel-identity > div > span {
  font-size: 12px;
  font-weight: 500;
}

.ops-panel-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ops-panel-extra {
  border-top: 1px solid var(--line);
}

.ops-detail-block {
  padding: 13px 14px 9px;
  border-bottom: 1px solid var(--line);
}

.ops-detail-block:last-child {
  border-bottom: 0;
}

.ops-detail-block h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ops-detail-block.is-module h3::after {
  content: "RID module";
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid var(--glyph-accent);
  border-radius: 999px;
  color: var(--glyph-accent);
  font-size: 9px;
}

.ops-detail-block dl {
  margin: 0;
  padding: 0;
}

.ops-detail-block dl > div {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.ops-detail-block dl > div:last-child {
  border-bottom: 0;
}

.ops-detail-block dt {
  min-width: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--info-card-label-size, 13px);
  font-weight: var(--info-card-label-weight, 500);
  line-height: 1.45;
}

.ops-detail-block dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--info-card-value-size, 15px);
  font-weight: var(--info-card-value-weight, 600);
  line-height: 1.45;
  text-align: right;
}

.ops-detail-value {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.ops-detail-value.is-identifier {
  overflow-wrap: anywhere;
}

.ops-coordinate {
  max-width: 100%;
  padding: 2px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--map-accent);
  font: inherit;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ops-coordinate-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ops-coordinate-copy {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
}

.ops-coordinate-copy:hover,
.ops-coordinate-copy:focus-visible {
  border-color: var(--map-accent);
  color: var(--map-accent);
}

.ops-detail-value.is-unreported {
  color: var(--muted);
}

.ops-coordinate:hover {
  background: var(--map-accent-soft);
  text-decoration: underline;
}

.ops-coordinate:focus-visible {
  outline: 2px solid var(--map-accent);
  outline-offset: 2px;
}

.ops-panel-data,
.ops-panel-data > div,
.ops-panel-data dd {
  min-width: 0;
}

.ops-panel-data > div {
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.ops-panel-data dd {
  width: auto;
  max-width: none;
  text-align: right;
}

.ops-drone-panel .ops-panel-time {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
}

.ops-drone-panel .ops-panel-time > #detail-history {
  color: var(--aircraft-color);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ops-detail-clock {
  display: grid;
  justify-items: end;
  gap: 1px;
  text-transform: none;
  letter-spacing: normal;
}

.ops-detail-clock time {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.ops-detail-clock small {
  color: var(--muted);
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
}

.ops-drone-panel .ops-panel-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-drone-panel .ops-panel-metrics > div {
  min-height: 72px;
  padding: 11px;
}

.ops-drone-panel .ops-panel-metrics span {
  font-size: var(--info-card-metric-label-size);
  font-weight: var(--info-card-metric-label-weight);
  line-height: 1.25;
}

.ops-drone-panel .ops-panel-metrics strong {
  font-size: var(--info-card-metric-value-size);
  font-weight: var(--info-card-metric-value-weight);
  line-height: 1.2;
}

.ops-drone-panel .ops-panel-status {
  min-height: 48px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
}

.ops-drone-panel .ops-panel-data {
  padding: 9px 16px;
}

.ops-drone-panel .ops-panel-data dt {
  font-size: var(--info-card-label-size);
  font-weight: var(--info-card-label-weight);
  line-height: 1.45;
}

.ops-drone-panel .ops-panel-data dd {
  font-family: inherit;
  font-size: var(--info-card-value-size);
  font-weight: var(--info-card-value-weight);
  line-height: 1.45;
}

.ops-drone-panel[data-detail-kind="station"] .ops-detail-block {
  padding: 9px 16px;
}

.ops-drone-panel[data-detail-kind="station"]
  .ops-detail-block dl > div {
  min-height: 30px;
  padding: 3px 0;
}

.ops-drone-panel button,
.ops-drone-panel .ops-panel-identity small,
.ops-drone-panel .ops-panel-identity strong,
.ops-drone-panel .ops-panel-status,
.ops-drone-panel .ops-panel-metrics strong,
.ops-drone-panel .ops-detail-block h3,
.ops-drone-panel .ops-detail-block dd,
.ops-drone-panel .ops-panel-data dd {
  font-family: inherit;
}

.ops-panel-more {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ops-panel-more button {
  width: auto;
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ops-panel-more button:hover {
  background: var(--soft);
  color: var(--ink);
}

.ops-panel-more button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ops-drone-panel[data-detail-kind="flight"],
.ops-drone-panel[data-detail-kind="event"] {
  width: min(360px, calc(100% - 36px));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(7, 19, 26, .18);
  filter: none;
}

.ops-drone-panel[data-detail-kind="flight"]
  .ops-panel-identity strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.ops-drone-panel[data-detail-kind="flight"]
  .ops-panel-identity > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-drone-panel[data-detail-kind="flight"]
  .ops-panel-metrics > div {
  min-height: 62px;
  padding: 10px 12px;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-metrics span {
  color: var(--muted);
  font-size: var(--info-card-metric-label-size);
  font-weight: var(--info-card-metric-label-weight);
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-metrics strong {
  font-size: var(--info-card-metric-value-size);
  font-weight: var(--info-card-metric-value-weight);
  line-height: 1.2;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-status {
  min-height: 40px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-data {
  padding: 8px 12px;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-data dt {
  font-size: var(--info-card-label-size);
  font-weight: var(--info-card-label-weight);
  line-height: 1.45;
}

.ops-drone-panel[data-detail-kind="flight"] .ops-panel-data dd {
  overflow: hidden;
  font-size: var(--info-card-value-size);
  font-weight: var(--info-card-value-weight);
  line-height: 1.45;
}

.ops-map-attribution {
  z-index: 12;
}

.ops-history-banner {
  position: absolute;
  z-index: 24;
  right: 18px;
  bottom: 18px;
  max-width: min(720px, calc(100% - 36px));
  min-height: 48px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, #9b5f00 42%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, #f5a623 11%, var(--panel));
  color: var(--ink);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(16px);
}

.ops-history-banner > span {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.ops-history-banner strong {
  color: #8a4f00;
  font-size: 12px;
}

[data-carbon-theme="g100"] .ops-history-banner strong {
  color: #ffc067;
}

.ops-history-banner small {
  overflow: hidden;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-history-banner button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.ops-history-banner button:hover {
  border-color: var(--map-accent);
  color: var(--map-accent);
}

.ops-track-rail {
  position: absolute;
  z-index: 23;
  top: 18px;
  left: 18px;
  width: min(360px, calc(100% - 36px));
  max-height: calc(100% - 106px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(16px);
}

.ops-track-heading {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.ops-track-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.ops-track-heading span {
  overflow: hidden;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-track-rail > .ops-map-search {
  position: static;
  z-index: auto;
  width: 100%;
  height: 50px;
  flex: 0 0 50px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ops-track-rail > .ops-map-search:focus-within {
  border-color: var(--line);
  background: var(--soft);
  box-shadow: inset 3px 0 var(--map-accent);
}

.ops-map-canvas.has-open-legend .ops-track-rail {
  max-height: calc(100% - 360px);
}

.ops-track-filters {
  min-height: 44px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.ops-track-filters button {
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.ops-track-filters button:hover,
.ops-track-filters button:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.ops-track-filters button.is-active {
  color: var(--map-accent);
  background: var(--map-accent-soft);
}

.ops-track-actions,
.ops-track-pagination {
  min-height: 36px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px "DM Mono", monospace;
}

.ops-track-actions > span:last-child {
  display: flex;
  gap: 4px;
}

.ops-track-actions button,
.ops-track-pagination button {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 650 9px "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.ops-track-actions button:hover,
.ops-track-actions button:focus-visible,
.ops-track-pagination button:hover:not(:disabled),
.ops-track-pagination button:focus-visible {
  border-color: var(--map-accent);
  color: var(--map-accent);
}

.ops-track-pagination {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.ops-track-pagination button:disabled {
  opacity: .42;
  cursor: default;
}

.ops-track-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ops-track-list > .ops-track-row {
  width: 100%;
  min-width: 0;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ops-track-summary {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ops-track-summary:hover,
.ops-track-summary:focus-visible {
  background: var(--soft);
}

.ops-track-list > .ops-track-row.is-path-visible {
  background: color-mix(in srgb, var(--aircraft-color) 22%, var(--panel));
  box-shadow: inset 4px 0 var(--aircraft-color);
}

.ops-track-list > .ops-track-row.is-path-visible .ops-track-summary {
  background: color-mix(in srgb, var(--aircraft-color) 22%, var(--panel));
  box-shadow: inset 4px 0 var(--aircraft-color);
}

.ops-track-list > .ops-track-row.is-path-visible .ops-track-summary:hover,
.ops-track-list > .ops-track-row.is-path-visible .ops-track-summary:focus-visible {
  background: color-mix(in srgb, var(--aircraft-color) 28%, var(--panel));
}

.ops-track-list > .ops-track-row.is-path-visible
  .ops-track-row-main > strong {
  color: var(--aircraft-color);
}

.ops-track-row-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ops-track-row-main > strong {
  min-width: 0;
  overflow: hidden;
  font: 650 11px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-track-row-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 550 9px "DM Mono", monospace;
}

.ops-track-type {
  max-width: 150px;
  padding: 3px 6px;
  border-radius: 999px;
  overflow: hidden;
  color: var(--map-accent);
  background: color-mix(in srgb, var(--map-accent) 10%, transparent);
  font: 700 8px "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-track-type.is-unavailable {
  color: var(--muted);
  background: var(--soft);
}

.ops-track-signal {
  width: 22px;
  height: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
}

.ops-track-signal i {
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, currentColor 25%, transparent);
}

.ops-track-signal i:nth-child(1) { height: 5px; }
.ops-track-signal i:nth-child(2) { height: 9px; }
.ops-track-signal i:nth-child(3) { height: 13px; }

.ops-track-signal i.is-active {
  background: currentColor;
}

.ops-track-list > p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font: 500 10px/1.5 "DM Mono", monospace;
}

.ops-map-legend {
  position: absolute;
  z-index: 24;
  left: 18px;
  bottom: 52px;
  width: min(250px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(7, 19, 26, .16);
}

.ops-map-legend:not([open]) {
  width: 110px;
  border-radius: 999px;
}

.ops-map-legend:not([open]) summary {
  min-height: 32px;
  padding: 0 10px 0 12px;
  white-space: nowrap;
}

.ops-map-legend summary {
  min-height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.ops-map-legend summary::-webkit-details-marker {
  display: none;
}

.ops-map-legend summary::after {
  content: "⌃";
  color: var(--muted);
  font-size: 12px;
}

.ops-map-legend:not([open]) summary::after {
  content: "⌄";
}

.ops-map-legend-body {
  padding: 2px 14px 14px;
  display: grid;
  gap: 12px;
}

.ops-map-legend-body section {
  display: grid;
  gap: 7px;
}

.ops-map-legend-body h4 {
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.ops-map-legend-body section > span {
  min-height: 17px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 10px;
}

.ops-map-legend-body section > span > i {
  position: relative;
  display: block;
  justify-self: start;
  font-style: normal;
}

.ops-map-legend-body strong {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
}

.ops-map-legend-body em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.legend-direction {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #a8cff8, #176fbd);
}

.legend-direction::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -2px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid #176fbd;
}

.legend-stale,
.legend-dropout {
  width: 30px;
  height: 2px;
  background-repeat: repeat-x;
}

.legend-stale {
  background-image: repeating-linear-gradient(
    90deg,
    #7c858d 0 5px,
    transparent 5px 9px
  );
}

.legend-dropout {
  background-image: repeating-linear-gradient(
    90deg,
    #7c858d 0 3px,
    transparent 3px 5px
  );
}

.legend-beacon-pair,
.legend-marker-pair {
  width: 30px;
  height: 16px;
}

.legend-beacon-pair b,
.legend-marker-pair b {
  position: absolute;
  top: 50%;
  display: block;
  border-radius: 50%;
  transform: translateY(-50%);
}

.legend-beacon-pair b {
  width: 7px;
  height: 7px;
}

.legend-beacon-pair b:first-child {
  left: 5px;
  background: #2785d3;
}

.legend-beacon-pair b:last-child {
  left: 20px;
  background: #d48712;
}

.legend-marker-pair b:first-child {
  left: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid #00a884;
  box-shadow: inset 0 0 0 2px var(--panel);
  background: #00a884;
}

.legend-marker-pair b:last-child {
  left: 19px;
  width: 9px;
  height: 9px;
  border: 2px solid #d98b00;
  box-shadow:
    inset 0 0 0 2px var(--panel),
    0 0 0 2px color-mix(in srgb, #d98b00 32%, transparent);
  background: #d98b00;
}

.ops-map-attribution a {
  color: inherit;
  text-decoration: none;
}

.ops-map-attribution a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ops-map-hint[hidden] {
  display: none !important;
}

.ops-status-strip {
  display: none;
  position: absolute;
  z-index: 10;
  left: 18px;
  bottom: 66px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 91%, transparent);
  box-shadow: var(--floating-shadow);
  backdrop-filter: blur(14px);
}

.ops-status-strip > div {
  min-width: 76px;
  padding: 9px 11px;
  display: grid;
  gap: 2px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.ops-status-strip strong {
  font: 600 13px "DM Mono", monospace;
}

.ops-status-strip span {
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ops-mobile-view-controls,
.ops-mobile-scrim {
  display: none;
}

.hash-value {
  max-width: 185px;
  overflow-wrap: anywhere;
}

.content-view {
  overflow: auto;
  padding: 34px 38px 60px;
  background: var(--paper);
}

.content-heading {
  max-width: 1320px;
  margin: 0 auto 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.content-heading p {
  margin: 0 0 7px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .1em;
}

.content-heading h1 {
  margin: 0 0 5px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.content-heading span {
  color: var(--muted);
  font-size: 12px;
}

.content-card {
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-card > header {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.content-card > header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.content-card > header span {
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.content-button,
.settings-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.content-button:hover,
.settings-actions button:hover {
  border-color: var(--map-accent);
}

.table-scroll {
  overflow: auto;
}

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

.station-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(480px, 1.2fr);
  gap: 18px;
}

.station-grid .content-card {
  width: 100%;
}

.station-manifest {
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 18px;
}

.station-manifest dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.station-manifest dd {
  margin: 0;
  font: 500 11px "DM Mono", monospace;
  overflow-wrap: anywhere;
}

.station-health-heading,
.station-health-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.station-health-summary {
  max-width: 1320px;
  margin: 0 auto 18px;
}

.station-health-summary h2 {
  margin: 0;
  font-size: 18px;
}

.health-station-picker {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.health-station-picker select {
  min-width: 210px;
  min-height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  font: 500 11px "DM Mono", monospace;
}

.health-station-picker .station-single-label {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: 600 11px "DM Mono", monospace;
  text-transform: none;
}

.station-health-grid {
  max-width: 1320px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.health-group {
  width: 100%;
  margin: 0;
}

.health-group-wide {
  grid-column: 1 / -1;
}

.health-group > header {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.health-group > header span {
  display: block;
  margin-top: 4px;
  text-transform: none;
}

.health-group-body {
  padding: 16px;
}

.health-fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.health-fields > div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--panel);
}

.health-fields dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.health-fields dd {
  margin: 0;
  font: 500 11px "DM Mono", monospace;
  overflow-wrap: anywhere;
}

.health-record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.health-record {
  min-width: 0;
  border: 1px solid var(--line);
}

.health-record h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
}

.health-record .health-fields {
  grid-template-columns: 1fr;
}

.receiver-health-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.receiver-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: start;
  gap: 10px;
}

.receiver-picker {
  position: relative;
  min-width: 0;
}

.receiver-picker summary,
.receiver-single-label {
  min-height: 42px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  list-style: none;
}

.receiver-picker summary::-webkit-details-marker {
  display: none;
}

.receiver-picker summary > span:first-child,
.receiver-single-label > span:first-child,
.receiver-option-list button > span:first-child {
  min-width: 0;
  font: 600 11px/1.4 "DM Mono", monospace;
  overflow-wrap: anywhere;
}

.receiver-option-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--floating-shadow);
}

.receiver-option-list button {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.receiver-option-list button:last-child {
  border-bottom: 0;
}

.receiver-option-list button:hover,
.receiver-option-list button[aria-selected="true"] {
  background: var(--soft);
}

.receiver-status {
  flex: 0 0 auto;
  text-transform: uppercase;
}

.receiver-rollup,
.receiver-grid-toggle {
  min-height: 42px;
  white-space: nowrap;
}

.receiver-rollup {
  background: transparent;
  cursor: pointer;
}

.receiver-rollup:disabled {
  cursor: default;
  opacity: 1;
}

.receiver-grid-toggle {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.receiver-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.receiver-compact-grid > button {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.receiver-compact-grid strong,
.receiver-compact-grid > button > span:not(.receiver-status) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receiver-compact-grid > button > span:not(.receiver-status) {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
}

.receiver-compact-grid .receiver-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.firmware-mismatch {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #a26b00;
  background: color-mix(in srgb, #a26b00 8%, var(--panel));
  color: #a26b00;
  font-size: 11px;
  font-weight: 600;
}

.receiver-detail {
  min-width: 0;
  border: 1px solid var(--line);
}

.receiver-detail > header {
  min-height: 48px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.receiver-detail > header > div {
  min-width: 0;
}

.receiver-detail h3 {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.receiver-detail > header span:not(.receiver-status) {
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
}

.receiver-detail .health-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.health-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.debug-mode-panel {
  display: grid;
  gap: 14px;
}

.debug-mode-heading,
.debug-mode-controls,
.debug-mode-downloads {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.debug-mode-heading {
  justify-content: space-between;
}

.debug-mode-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.debug-mode-heading strong {
  font-size: 14px;
}

.debug-mode-heading span,
.debug-mode-readonly {
  color: var(--muted);
  font-size: 11px;
}

.debug-mode-controls label {
  min-width: 130px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font: 600 9px "DM Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.debug-mode-controls select {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.debug-mode-error {
  margin: 0;
  color: #b42318;
  font-size: 11px;
  font-weight: 650;
}

.debug-mode-readonly {
  margin: 0;
}

.debug-mode-downloads a {
  color: var(--map-accent);
  font-size: 11px;
  font-weight: 700;
}

.debug-mode-downloads a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
  opacity: .65;
}

.station-health-raw details {
  padding: 0;
}

.station-health-raw summary {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.station-health-raw summary span {
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.station-health-raw summary:focus-visible,
.health-station-picker select:focus-visible {
  outline: 2px solid var(--map-accent);
  outline-offset: 2px;
}

.station-health-raw pre {
  max-height: 520px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-top: 1px solid var(--line);
  font: 500 10px/1.6 "DM Mono", monospace;
  white-space: pre;
}

.telemetry-export {
  margin-bottom: 18px;
}

.telemetry-export > header > div {
  min-width: 0;
}

.telemetry-export > header span {
  display: block;
  margin-top: 3px;
  text-transform: none;
}

.telemetry-export form {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.telemetry-export label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.telemetry-export input,
.telemetry-export select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 500 11px "DM Mono", monospace;
}

.telemetry-export-status {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.telemetry-export-status progress {
  width: 100%;
}

.telemetry-export-status[data-state="error"] {
  color: #b42318;
}

.telemetry-export-status[data-state="warning"] {
  color: #a26b00;
}

.telemetry-export-status[data-state="complete"] {
  color: #16744a;
}

.telemetry-export-status a {
  color: inherit;
  font-weight: 700;
}

.content-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.table-action {
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--map-accent);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.table-action:hover {
  background: var(--map-accent-soft);
}

.flight-report-dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(780px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(7, 19, 26, .34);
}

.detail-more-dialog {
  box-sizing: border-box;
  min-width: 0;
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(7, 19, 26, .34);
}

.detail-more-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.detail-more-dialog::backdrop {
  background: rgba(7, 19, 26, .58);
  backdrop-filter: blur(2px);
}

.detail-more-dialog > header,
.detail-more-dialog > footer {
  min-width: 0;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-more-dialog > header {
  border-bottom: 1px solid var(--line);
}

.detail-more-dialog > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.detail-more-dialog > header > div {
  min-width: 0;
}

.detail-more-dialog h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.detail-more-dialog header p {
  margin: 0 0 4px;
  color: var(--map-accent);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
}

.detail-more-dialog header span {
  max-width: 100%;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-more-dialog header > button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.detail-more-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-more-dialog .ops-detail-block {
  padding: 16px 18px 12px;
}

.detail-more-dialog .ops-detail-block h3 {
  font-size: 11px;
}

.detail-more-dialog .ops-detail-block dt {
  font-size: var(--info-card-label-size);
  font-weight: var(--info-card-label-weight);
}

.detail-more-dialog .ops-detail-block dd {
  font-size: var(--info-card-value-size);
  font-weight: var(--info-card-value-weight);
}

.map-window-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(7, 19, 26, .38);
}

.map-window-dialog::backdrop {
  background: rgba(7, 19, 26, .5);
  backdrop-filter: blur(3px);
}

.map-window-dialog form {
  display: grid;
  gap: 0;
}

.map-window-dialog header,
.map-window-dialog footer {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-window-dialog header {
  border-bottom: 1px solid var(--line);
}

.map-window-dialog header p {
  margin: 0 0 3px;
  color: var(--map-accent);
  font: 700 9px "DM Mono", monospace;
  letter-spacing: .09em;
}

.map-window-dialog header h2 {
  margin: 0;
  font-size: 19px;
}

.map-window-dialog header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.map-window-dialog label {
  padding: 13px 17px 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.map-window-dialog input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 550 12px "DM Mono", monospace;
}

.map-window-dialog label small {
  font: 500 9px "DM Mono", monospace;
}

.map-window-dialog .form-error {
  min-height: 18px;
  margin: 8px 17px 0;
  color: #b42318;
  font-size: 11px;
}

.map-window-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.map-window-dialog footer button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.map-window-dialog footer button[type="submit"] {
  border-color: var(--map-accent);
  background: var(--map-accent);
  color: #fff;
}

.flight-report-dialog::backdrop {
  background: rgba(7, 19, 26, .58);
  backdrop-filter: blur(2px);
}

.flight-report-dialog > form {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.flight-report-dialog > form > header,
.flight-report-dialog > form > footer {
  flex: 0 0 auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flight-report-dialog > form > header {
  border-bottom: 1px solid var(--line);
}

.flight-report-dialog > form > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.flight-report-dialog header > div {
  min-width: 0;
}

.flight-report-dialog header p {
  margin: 0 0 4px;
  color: var(--map-accent);
  font: 700 9px "DM Mono", monospace;
  letter-spacing: .1em;
}

.flight-report-dialog header h2 {
  margin: 0;
  font-size: 20px;
}

.flight-report-dialog header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.flight-report-body {
  min-height: 0;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.report-field-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font: 600 9px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.report-field-grid input,
.report-field-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

.report-aircraft-scope {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border: 0;
}

.report-aircraft-scope legend {
  width: 100%;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.report-aircraft-scope label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.report-aircraft-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transition: opacity .15s ease;
}

.report-aircraft-option {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--report-track-color);
  background: var(--paper);
  cursor: pointer;
}

.report-aircraft-option:has(input:checked) {
  border-color: var(--report-track-color);
  box-shadow: inset 0 0 0 1px var(--report-track-color);
}

.report-aircraft-glyph {
  width: 34px;
  height: 34px;
  display: block;
}

.report-aircraft-option > span:last-child {
  min-width: 0;
}

.report-aircraft-option strong,
.report-aircraft-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-aircraft-option strong {
  font-size: 12px;
}

.report-aircraft-option small {
  margin-top: 3px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}

.report-aircraft-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.report-attestation {
  border: 1px solid var(--line);
}

.report-attestation summary {
  padding: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.report-attestation .report-field-grid {
  padding: 0 12px 12px;
}

.report-integrity-note {
  padding: 11px 12px;
  border-left: 3px solid var(--map-accent);
  background: var(--map-accent-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.flight-report-status {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  border: 1px solid var(--line);
  font-size: 11px;
}

.flight-report-status progress {
  width: 100%;
}

.flight-report-status[data-state="error"] {
  border-color: #b42318;
  color: #b42318;
}

.flight-report-status[data-state="warning"] {
  border-color: #a26b00;
  color: #a26b00;
}

.flight-report-status[data-state="complete"] {
  border-color: #16744a;
  color: #16744a;
}

.flight-report-downloads {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.flight-report-downloads a {
  color: inherit;
  font-weight: 700;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.counter {
  min-height: 90px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: var(--panel);
}

.counter strong {
  font: 600 22px "DM Mono", monospace;
}

.counter span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.content-status {
  padding: 5px 9px;
  border: 1px solid currentColor;
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .06em;
}

.content-status.good { color: #16744a; }
.content-status.warning { color: #a26b00; }
.content-status.bad { color: #b42318; }

.firmware-boundary {
  max-width: 1320px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #a26b00 55%, var(--line));
  background: color-mix(in srgb, #a26b00 8%, var(--panel));
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.firmware-layout {
  max-width: 1320px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(360px, .85fr);
  gap: 18px;
}

.firmware-layout .content-card {
  width: 100%;
}

.firmware-rollouts td strong,
.firmware-rollouts td small {
  display: block;
}

.firmware-rollouts td small {
  margin-top: 4px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}

.firmware-rollouts tr[aria-selected="true"] {
  background: color-mix(in srgb, var(--map-accent) 9%, var(--panel));
  box-shadow: inset 3px 0 var(--map-accent);
}

.firmware-phase {
  display: inline-flex;
  padding: 3px 6px;
  border: 1px solid currentColor;
  color: #59636a;
  font: 600 8px "DM Mono", monospace;
  letter-spacing: .04em;
  white-space: nowrap;
}

.phase-running,
.phase-downloading,
.phase-installing,
.phase-trial {
  color: #1261a0;
}

.phase-approved,
.phase-confirmed,
.phase-complete {
  color: #16744a;
}

.phase-halted,
.phase-failed,
.phase-rolled_back,
.phase-cancelled {
  color: #b42318;
}

.firmware-empty {
  min-height: 230px;
  padding: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.firmware-summary {
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.firmware-summary > div,
.firmware-assignments article dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.firmware-summary dt,
.firmware-assignments dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.firmware-summary dd,
.firmware-assignments dd {
  min-width: 0;
  margin: 0;
  font: 500 10px "DM Mono", monospace;
  overflow-wrap: anywhere;
}

.firmware-assignments {
  max-height: 330px;
  overflow: auto;
}

.firmware-assignments article {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.firmware-assignments article > header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.firmware-assignments article dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.firmware-audit .wf-table tbody tr {
  cursor: default;
}

.firmware-audit code {
  color: var(--muted);
  font-size: 10px;
}

.settings-card {
  padding-bottom: 20px;
}

.settings-navigation {
  padding: 18px 20px 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-navigation a {
  min-width: 0;
  min-height: 84px;
  padding: 14px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
}

.settings-navigation a:hover,
.settings-navigation a:focus-visible {
  border-color: var(--map-accent);
  background: var(--soft);
}

.settings-navigation svg {
  color: var(--map-accent);
}

.settings-navigation span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-navigation strong {
  font-size: 13px;
}

.settings-navigation small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.settings-card > p {
  max-width: 690px;
  margin: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.settings-actions {
  padding: 20px 20px 0;
  display: flex;
  gap: 10px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--map-accent) 10%, transparent), transparent 42%),
    var(--paper);
}

.login-card {
  width: min(410px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--floating-shadow);
}

.login-card img,
.login-card .login-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
}

.login-card .login-mark {
  fill: none;
  stroke: var(--map-accent);
  stroke-width: 2;
}

.login-card .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .1em;
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.login-copy {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.login-card form,
.login-card label {
  display: grid;
}

.login-card form {
  gap: 16px;
}

.login-card label {
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-card input {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 500 13px "DM Mono", monospace;
}

.login-card input:focus {
  outline: 2px solid var(--map-accent);
  outline-offset: 1px;
}

.login-card .button {
  min-height: 42px;
  border: 1px solid var(--map-accent);
  background: var(--map-accent);
  color: white;
  cursor: pointer;
}

.form-error {
  min-height: 18px;
  margin: -5px 0;
  color: #b42318;
  font-size: 11px;
}

@media (max-width: 900px) {
  .settings-navigation {
    grid-template-columns: 1fr;
  }

  .ops-status-strip {
    display: none;
  }

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

  .station-health-grid {
    grid-template-columns: 1fr;
  }

  .health-group-wide {
    grid-column: auto;
  }

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

  .receiver-picker,
  .receiver-single-label {
    grid-column: 1 / -1;
  }

  .receiver-detail .health-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-export form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .firmware-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1250px) {
  .ops-product-name {
    display: none;
  }

  .ops-brand {
    padding-right: 6px;
  }

  .ops-station-context {
    min-width: 156px;
    flex-basis: 190px;
  }

  .ops-header-action span {
    display: none;
  }

  .ops-control-dock.ops-dvr-dock {
    width: min(900px, calc(100% - 28px));
  }

  .ops-control-dock .ops-dvr {
    grid-template-columns: auto auto auto auto minmax(120px, 1fr);
  }
}

@media (max-width: 720px), (max-height: 540px) and (pointer: coarse) {
  .app-shell {
    padding-top: 56px;
  }

  .app-shell > main {
    height: calc(100vh - 56px);
  }

  .ops-product-name,
  .ops-area-switch {
    display: none;
  }

  .ops-map-search {
    top: 68px;
    left: 12px;
    width: calc(100% - 132px);
  }

  .ops-station-state span {
    display: none;
  }

  .ops-station-state strong::after {
    content: none;
  }

  .ops-header-action {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .ops-track-rail {
    top: 68px;
    left: 12px;
    width: min(320px, calc(100% - 24px));
    max-height: 42vh;
  }

  .ops-control-dock.ops-dvr-dock {
    bottom: 10px;
    width: calc(100% - 20px);
    max-width: none;
    height: 58px;
    min-height: 0;
    padding: 5px;
    display: flex;
    gap: 2px;
  }

  .ops-dock-map-controls {
    justify-content: flex-start;
  }

  .ops-dock-map-controls button {
    width: 32px;
    height: 42px;
  }

  .ops-control-dock > .ops-dvr-divider {
    display: block;
    height: 34px;
    margin-inline: 2px;
  }

  .ops-control-dock .ops-dvr {
    width: auto;
    height: 100%;
    padding: 0;
    grid-template-columns: auto auto minmax(70px, 1fr);
    gap: 2px;
  }

  .ops-control-dock .ops-dvr-live {
    min-width: 42px;
    padding-inline: 4px;
  }

  .ops-control-dock .ops-dvr-play {
    min-width: 32px;
  }

  .ops-control-dock .ops-playback-speed,
  .ops-control-dock .ops-session-controls {
    display: none;
  }

  .ops-dvr-times {
    grid-template-columns: 1fr auto;
    font-size: 8px;
  }

  .ops-dvr-times #timeline-current-time {
    font-size: 9px;
  }

  .ops-map-canvas.has-open-legend .ops-track-rail {
    max-height: min(32vh, 260px);
  }

  .ops-map-legend {
    left: 12px;
    bottom: 80px;
    width: min(250px, calc(100% - 24px));
  }

  .ops-history-banner {
    right: 12px;
    bottom: 76px;
    left: 12px;
    max-width: none;
    flex-wrap: wrap;
  }

  .ops-history-banner > span {
    flex-basis: 100%;
  }

  .ops-history-banner button {
    flex: 1 1 90px;
  }

  .ops-map-attribution,
  .ops-basemap .maplibregl-ctrl-bottom-right {
    bottom: 74px;
  }

  .ops-brand {
    padding-right: 10px;
  }

  .ops-drone-panel {
    top: 68px;
    right: auto;
    bottom: auto;
    left: 12px;
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100vh - 162px);
  }

  .ops-drone-panel .ops-panel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-view {
    padding: 24px 14px 50px;
  }

  .content-heading {
    align-items: flex-start;
  }

  .content-heading-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .content-heading-actions .content-button {
    flex: 1 1 150px;
  }

  .flight-report-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .flight-report-dialog > form > header,
  .flight-report-dialog > form > footer,
  .flight-report-body {
    padding: 13px;
  }

  .report-field-grid,
  .report-aircraft-list,
  .flight-report-status {
    grid-template-columns: 1fr;
  }

  .flight-report-downloads {
    grid-column: auto;
  }

  .station-health-heading {
    align-items: flex-end;
    flex-direction: column;
  }

  .station-health-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-drone-panel .ops-panel-data,
  .ops-drone-panel .ops-panel-extra {
    display: block;
  }

  .detail-more-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .detail-more-dialog > header,
  .detail-more-dialog > footer,
  .detail-more-dialog .ops-detail-block {
    padding-left: 13px;
    padding-right: 13px;
  }

  .detail-more-dialog .ops-detail-block dl > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .health-station-picker,
  .health-station-picker select {
    width: 100%;
  }

  .health-fields {
    grid-template-columns: 1fr;
  }

  .receiver-toolbar {
    grid-template-columns: 1fr;
  }

  .receiver-picker,
  .receiver-single-label {
    grid-column: auto;
  }

  .receiver-rollup,
  .receiver-grid-toggle {
    width: 100%;
  }

  .receiver-detail .health-fields,
  .telemetry-export form,
  .telemetry-export-status {
    grid-template-columns: 1fr;
  }

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

  .station-manifest {
    grid-template-columns: 1fr;
  }

  .firmware-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell {
    height: 100dvh;
    padding-top: 56px;
  }

  .app-shell > main {
    height: calc(100dvh - 56px);
  }

  .ops-map-stage {
    isolation: isolate;
  }

  .ops-mobile-scrim {
    position: absolute;
    z-index: 31;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    border: 0;
    background: rgba(7, 19, 26, .34);
    cursor: pointer;
    backdrop-filter: blur(1.5px);
  }

  .ops-mobile-scrim[hidden] {
    display: none;
  }

  .ops-mobile-view-controls {
    position: absolute;
    z-index: 40;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    height: 60px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    box-shadow: 0 14px 36px rgba(7, 19, 26, .24);
    backdrop-filter: blur(20px);
  }

  .ops-mobile-view-controls button {
    position: relative;
    min-width: 0;
    min-height: 48px;
    padding: 5px 4px 4px;
    display: grid;
    grid-template-rows: 18px auto;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
  }

  .ops-mobile-view-controls button:hover,
  .ops-mobile-view-controls button:focus-visible,
  .ops-mobile-view-controls button.is-active {
    background: var(--map-accent-soft);
    color: var(--map-accent);
  }

  .ops-mobile-view-controls button:focus-visible {
    outline: 2px solid var(--map-accent);
    outline-offset: -2px;
  }

  .ops-mobile-view-controls button:disabled {
    background: transparent;
    color: var(--muted);
    cursor: default;
    opacity: .42;
  }

  .ops-mobile-view-controls button > i {
    position: relative;
    width: 17px;
    height: 17px;
    display: block;
    color: currentColor;
  }

  .ops-mobile-view-controls [data-mobile-panel="map"] > i {
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--panel);
    background: currentColor;
  }

  .ops-mobile-view-controls [data-mobile-panel="tracks"] > i {
    top: 7px;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
  }

  .ops-mobile-view-controls [data-mobile-panel="details"] > i {
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 4px;
  }

  .ops-mobile-view-controls [data-mobile-panel="details"] > i::before,
  .ops-mobile-view-controls [data-mobile-panel="details"] > i::after {
    content: "";
    position: absolute;
    right: 3px;
    left: 3px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .ops-mobile-view-controls [data-mobile-panel="details"] > i::before {
    top: 4px;
  }

  .ops-mobile-view-controls [data-mobile-panel="details"] > i::after {
    bottom: 4px;
  }

  .ops-mobile-view-controls [data-mobile-panel="playback"] > i {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
    transform: translateX(2px);
  }

  .ops-mobile-view-controls #mobile-track-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 8px);
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    border: 2px solid var(--panel);
    border-radius: 999px;
    background: var(--map-accent);
    color: #fff;
    font: 700 8px "DM Mono", monospace;
  }

  .ops-track-rail,
  .ops-drone-panel:not([hidden]),
  .ops-control-dock.ops-dvr-dock {
    display: none;
  }

  .ops-map-stage[data-mobile-panel="tracks"] .ops-track-rail {
    z-index: 35;
    top: auto;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: min(68dvh, calc(100dvh - 144px), 580px);
    display: flex;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(7, 19, 26, .32);
    animation: mobile-sheet-enter .18s cubic-bezier(.2, .8, .2, 1);
  }

  .ops-map-canvas.has-open-legend .ops-track-rail {
    max-height: min(68dvh, calc(100dvh - 144px), 580px);
  }

  .ops-track-heading {
    min-height: 48px;
    flex-basis: 48px;
    padding-inline: 14px;
  }

  .ops-track-heading strong {
    font-size: 16px;
  }

  .ops-track-rail > .ops-map-search {
    min-height: 52px;
  }

  .ops-track-filters button,
  .ops-track-actions button,
  .ops-track-pagination button {
    min-height: 30px;
  }

  .ops-track-list > .ops-track-row {
    height: 68px;
  }

  .ops-map-stage[data-mobile-panel="details"]
    .ops-drone-panel:not([hidden]) {
    z-index: 35;
    top: auto;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
    max-height: min(68dvh, calc(100dvh - 144px), 580px);
    display: flex;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(7, 19, 26, .32);
    animation: mobile-sheet-enter .18s cubic-bezier(.2, .8, .2, 1);
  }

  .ops-drone-panel > header {
    min-height: 82px;
    padding: 14px;
  }

  .ops-drone-panel .ops-panel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-drone-panel .ops-panel-data,
  .ops-drone-panel .ops-panel-extra {
    display: block;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock.ops-dvr-dock {
    z-index: 35;
    top: auto;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 172px;
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(7, 19, 26, .32);
    transform: none;
    animation: mobile-sheet-enter .18s cubic-bezier(.2, .8, .2, 1);
  }

  .ops-map-stage[data-mobile-panel="playback"] .ops-dock-map-controls {
    width: 100%;
    padding-bottom: 8px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-dock-map-controls button {
    width: 42px;
    height: 38px;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock > .ops-dvr-divider {
    display: none;
  }

  .ops-map-stage[data-mobile-panel="playback"] .ops-control-dock .ops-dvr {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto minmax(72px, 1fr) auto;
    grid-template-rows: 42px 48px;
    gap: 5px;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock .ops-dvr-live {
    min-width: 58px;
    height: 40px;
    padding-inline: 7px;
    grid-column: 1;
    grid-row: 1;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock .ops-dvr-play {
    width: 40px;
    min-width: 40px;
    height: 40px;
    grid-column: 2;
    grid-row: 1;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock .ops-session-controls {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  .ops-map-stage[data-mobile-panel="playback"]
    .ops-control-dock .ops-playback-speed {
    display: flex;
    grid-column: 4;
    grid-row: 1;
  }

  .ops-map-stage[data-mobile-panel="playback"] .ops-dvr-scrub {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ops-map-legend {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .ops-history-banner {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .ops-map-attribution,
  .ops-basemap .maplibregl-ctrl-bottom-right {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  @keyframes mobile-sheet-enter {
    from {
      opacity: 0;
      transform: translateY(12px) scale(.985);
    }
  }
}

@media (max-width: 520px) {
  .detail-more-dialog {
    height: calc(100vh - 20px);
  }

  .detail-more-dialog .ops-detail-block dl > div {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2px;
    padding: 8px 0;
  }

  .detail-more-dialog .ops-detail-block dd,
  .detail-more-dialog .ops-coordinate {
    max-width: 100%;
    text-align: left;
  }

  .detail-more-dialog .ops-coordinate-value {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
