:root {
  color-scheme: dark;
  --bg: #031016;
  --space: #06161f;
  --ocean: #123f55;
  --ocean-bright: #38b7d4;
  --land: #70d8a4;
  --panel: rgba(4, 18, 25, 0.86);
  --panel-strong: rgba(8, 32, 43, 0.94);
  --glass: rgba(10, 39, 52, 0.56);
  --line: rgba(113, 217, 235, 0.22);
  --line-strong: rgba(113, 217, 235, 0.42);
  --text: #f2fbff;
  --muted: #a9c6cf;
  --cyan: #60e7ff;
  --gold: #ffd66f;
  --green: #7df4be;
  --danger: #ff8a72;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: rgba(10, 31, 41, 0.82);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button:hover,
button:focus-visible {
  border-color: var(--cyan);
  background: rgba(18, 55, 70, 0.95);
  outline: none;
}

.flight-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 183, 212, 0.22), transparent 34%),
    radial-gradient(circle at 72% 74%, rgba(112, 216, 164, 0.11), transparent 32%),
    var(--bg);
}

.map-stage {
  position: relative;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(122, 218, 238, 0.18);
  isolation: isolate;
}

#flight-map {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 12, 0.4), transparent 22%, transparent 72%, rgba(2, 8, 12, 0.58)),
    linear-gradient(0deg, rgba(2, 8, 12, 0.4), transparent 24%, rgba(2, 8, 12, 0.28));
  z-index: 2;
}

.map-controls {
  position: absolute;
  top: 86px;
  right: 18px;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(76px, auto) 44px;
  gap: 8px;
  pointer-events: auto;
}

.map-controls button {
  min-height: 42px;
  border-radius: 8px;
  background: rgba(2, 12, 18, 0.78);
  font-size: 0.95rem;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hud-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.brand {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(2, 10, 15, 0.78);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  pointer-events: auto;
}

.hud-title {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 15, 0.72);
}

.hud-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.hud-chips span {
  border: 1px solid rgba(96, 231, 255, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(2, 12, 18, 0.7);
  color: #dbf8ff;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.map-focus-toggle {
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(6, 26, 35, 0.78);
  color: #e9fbff;
  font-size: 0.78rem;
  font-weight: 950;
  pointer-events: auto;
  white-space: nowrap;
}

.hud-title span,
.panel-kicker,
.flight-card span,
.cockpit-top span {
  display: block;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-title strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

#refresh-flights {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  pointer-events: auto;
}

.flight-card {
  position: absolute;
  left: 18px;
  bottom: 56px;
  z-index: 6;
  width: min(540px, calc(100% - 36px));
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 111, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 214, 111, 0.2), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(96, 231, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(15, 64, 82, 0.9), rgba(3, 17, 25, 0.94) 54%, rgba(9, 42, 36, 0.88)),
    var(--panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), 0 0 34px rgba(96, 231, 255, 0.12);
  transition: opacity 180ms ease, transform 180ms ease;
}

.flight-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(96, 231, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(96, 231, 255, 0.12) 45% 46%, transparent 47% 100%),
    linear-gradient(0deg, transparent 0 58%, rgba(255, 214, 111, 0.08) 59% 60%, transparent 61% 100%);
}

.flight-card[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.map-stage.fly-mode .flight-card {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.flight-card h1 {
  position: relative;
  margin: 6px 0 8px;
  color: #fff5cf;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(255, 214, 111, 0.24);
}

.flight-card p {
  position: relative;
  margin: 0;
  color: #bfd4dc;
  font-size: 0.92rem;
  line-height: 1.45;
}

.flight-stats,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.flight-stats b,
.status-grid b {
  min-width: 0;
  border: 1px solid rgba(122, 218, 238, 0.16);
  border-radius: 8px;
  padding: 9px;
  background: rgba(10, 33, 44, 0.72);
}

.flight-stats span,
.status-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
}

.flight-stats em,
.status-grid em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

.route-progress {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 1.5fr minmax(74px, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #d7f4fb;
  font-size: 0.75rem;
  font-weight: 900;
}

.route-progress > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbf7ff;
  text-transform: none;
  letter-spacing: 0;
}

.route-progress > span:last-child {
  text-align: right;
}

.route-progress i {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(96, 231, 255, 0.18), rgba(96, 231, 255, 0.82), rgba(255, 214, 111, 0.86));
  box-shadow: 0 0 18px rgba(96, 231, 255, 0.32);
}

#route-plane-dot {
  position: absolute;
  top: 50%;
  left: var(--progress, 58%);
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 214, 111, 0.75);
}

.track-strip {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid rgba(96, 231, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(3, 17, 24, 0.58);
}

.track-strip b {
  color: #dff8ff;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.track-strip span {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 6px;
}

.track-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #35d6ff 0%, #35d6ff var(--track-progress, 52%), #ff35d7 var(--track-progress, 52%), #ffd66f 100%);
  box-shadow: 0 0 16px rgba(96, 231, 255, 0.32);
}

.track-strip i {
  position: relative;
  z-index: 1;
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto;
  border-radius: 999px;
  background: #e9fbff;
  box-shadow: 0 0 10px rgba(96, 231, 255, 0.72);
}

.track-strip i:nth-child(3) {
  width: 16px;
  height: 16px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 214, 111, 0.88);
}

.track-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.track-panel div {
  min-width: 0;
  border: 1px solid rgba(96, 231, 255, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: rgba(3, 17, 24, 0.54);
}

.track-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.track-panel b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #eafcff;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.route-detail-grid div,
.mini-readout {
  min-width: 0;
  border: 1px solid rgba(96, 231, 255, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(1, 12, 18, 0.7), rgba(8, 38, 50, 0.48));
}

.route-detail-grid span,
.mini-readout span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-detail-grid b,
.mini-readout b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #eafcff;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-ribbon {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 86px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  pointer-events: none;
}

.tracking-ribbon div {
  min-width: 0;
  border: 1px solid rgba(96, 231, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(2, 12, 18, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.tracking-ribbon span {
  display: block;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tracking-ribbon b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #effcff;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.flight-actions button,
.wide-action {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 950;
}

#fly-with-me,
.wide-action {
  border-color: rgba(255, 214, 111, 0.45);
  background: rgba(72, 53, 14, 0.72);
}

.cockpit {
  position: absolute;
  right: 18px;
  top: 86px;
  bottom: 56px;
  z-index: 7;
  width: min(620px, calc(100% - 36px));
  border: 1px solid rgba(255, 214, 111, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 45, 60, 0.96), rgba(3, 12, 19, 0.97)),
    var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cockpit[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
}

.cockpit-top,
.cockpit-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.cockpit-top button {
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 900;
}

#cockpit-view {
  display: block;
  width: 100%;
  height: calc(100% - 166px);
  min-height: 250px;
}

.cockpit-readout {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(122, 218, 238, 0.14);
}

.cockpit-readout span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sim-readout {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(122, 218, 238, 0.14);
  padding: 8px 12px 10px;
}

.sim-readout b {
  color: var(--gold);
  font-size: 0.86rem;
}

.sim-readout span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.map-footer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #cceaf2;
  font-size: 0.74rem;
  font-weight: 850;
  pointer-events: none;
}

.map-footer span {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(122, 218, 238, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(2, 10, 15, 0.72);
}

.control-panel {
  height: 100vh;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(9, 41, 54, 0.98), rgba(2, 12, 18, 0.98)),
    var(--bg);
}

.panel-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(12, 50, 65, 0.48), rgba(4, 16, 24, 0.9)),
    var(--panel);
  padding: 12px;
  margin-bottom: 10px;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.scope-grid button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 950;
}

.scope-grid button.active,
.flight-row.active {
  border-color: rgba(255, 214, 111, 0.68);
  background: rgba(86, 64, 14, 0.62);
}

.airspace-status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.airspace-status b {
  font-size: 1.35rem;
}

.airspace-status em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.coverage-line {
  margin-top: 8px;
  border: 1px solid rgba(96, 231, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgba(4, 18, 25, 0.62);
  color: #cceaf2;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.3;
}

.search-box {
  display: block;
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(122, 218, 238, 0.2);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(2, 12, 18, 0.76);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.search-box input:focus {
  border-color: var(--cyan);
  outline: none;
}

.select-row {
  display: grid;
  grid-template-columns: minmax(84px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(122, 218, 238, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 23, 31, 0.62);
}

.select-row span {
  color: #dceff4;
  font-size: 0.78rem;
  font-weight: 900;
}

.select-row select {
  min-width: 0;
  border: 1px solid rgba(96, 231, 255, 0.18);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(2, 12, 18, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.select-row select:focus {
  border-color: var(--cyan);
  outline: none;
}

.mini-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.empty-list {
  border: 1px solid rgba(255, 214, 111, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(72, 53, 14, 0.24);
  color: #ffe3a0;
  font-size: 0.84rem;
  font-weight: 850;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(122, 218, 238, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 23, 31, 0.62);
  color: #dceff4;
  font-weight: 850;
}

.toggle-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
}

.wide-action {
  width: 100%;
  margin-top: 10px;
}

.zoom-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.zoom-controls button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 950;
  background: rgba(8, 32, 42, 0.74);
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.list-head b {
  color: #e4f9ff;
  font-size: 0.85rem;
}

.flight-list {
  display: grid;
  gap: 8px;
}

.flight-row {
  width: 100%;
  min-height: 76px;
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(16, 55, 69, 0.52), rgba(4, 17, 24, 0.76)),
    rgba(7, 23, 31, 0.62);
}

.flight-row span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.flight-row strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.18;
}

.flight-row em {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sim-panel {
  background:
    linear-gradient(135deg, rgba(96, 231, 255, 0.1), rgba(255, 214, 111, 0.08)),
    rgba(5, 15, 23, 0.76);
}

.sim-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sim-buttons button {
  min-height: 36px;
  border: 1px solid rgba(96, 231, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9fbff;
  font-size: 0.76rem;
  font-weight: 950;
}

.sim-buttons button:hover,
.sim-buttons button:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 214, 111, 0.14);
  outline: none;
}

.theme-strip i {
  display: block;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--swatch);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.theme-block p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .flight-shell {
    display: block;
    min-height: 100vh;
    height: auto;
  }

  .map-stage {
    height: 64vh;
    min-height: 500px;
    border-right: 0;
    border-bottom: 1px solid rgba(122, 218, 238, 0.18);
  }

  .hud-bar {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }

  .brand {
    display: none;
  }

  .hud-title {
    max-width: 210px;
  }

  .hud-chips {
    grid-column: 1 / -1;
  }

  .map-focus-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .flight-shell.map-focus-mode .map-stage {
    height: 100vh;
    min-height: 100vh;
    border-bottom: 0;
  }

  .flight-shell.map-focus-mode .control-panel {
    display: none;
  }

  .flight-shell.map-focus-mode .tracking-ribbon,
  .flight-shell.map-focus-mode .flight-card {
    display: none;
  }

  .map-controls {
    top: 178px;
    right: 10px;
    grid-template-columns: 38px minmax(64px, auto) 38px;
    gap: 6px;
  }

  .map-controls button {
    min-height: 36px;
    font-size: 0.82rem;
    padding: 6px 9px;
  }

  .flight-card {
    left: 10px;
    right: 10px;
    bottom: 46px;
    width: auto;
    padding: 11px;
  }

  .tracking-ribbon {
    left: 10px;
    right: 10px;
    top: 118px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tracking-ribbon div {
    padding: 8px 10px;
  }

  .tracking-ribbon div:nth-child(n+2) {
    display: none;
  }

  .flight-card[aria-hidden="true"] {
    display: none;
  }

  .flight-card h1 {
    font-size: 1.55rem;
  }

  .flight-stats {
    gap: 6px;
  }

  .flight-stats b {
    padding: 7px;
  }

  .flight-stats span {
    font-size: 0.82rem;
  }

  .cockpit {
    left: 10px;
    right: 10px;
    top: 76px;
    bottom: 46px;
    width: auto;
  }

  #cockpit-view {
    height: 190px;
  }

  .map-footer {
    left: 8px;
    right: 8px;
    bottom: 7px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-footer span {
    max-width: none;
    font-size: 0.66rem;
    white-space: normal;
  }

  .control-panel {
    height: auto;
    overflow: visible;
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .map-stage {
    height: 58vh;
    min-height: 450px;
  }

  .hud-title strong {
    font-size: 0.92rem;
  }

  #refresh-flights {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .hud-bar {
    gap: 8px;
  }

  .map-focus-toggle {
    min-width: 86px;
  }

  .map-controls {
    top: 210px;
    right: 8px;
  }

  .flight-actions,
  .scope-grid,
  .sim-buttons {
    grid-template-columns: 1fr;
  }

  .status-grid {
    gap: 6px;
  }

  .status-grid b {
    padding: 7px;
  }
}
