/* ADSB1090 1.80 SkyView theme architectures.
 * Do not alter aircraft position, map layers, filters, stream or decoder.
 * ADSB1090 is the existing light operations desk and needs no overrides. */
body[data-operations-theme="radar"] {
  --night:#091710;--night-2:#102820;--paper:#142A21;--canvas:#0D2118;
  --wash:#1B372B;--line:#466759;--line-deep:#557767;--ink:#F0F7E9;
  --muted:#C0D0BE;--teal:#9BE28D;--teal-wash:#244334;--good:#9BE28D;
  --alert:#FF8594;--focus:#F0B65D;--rail-width:310px;--context-width:285px;
  --font-text:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --font-data:ui-monospace,"SFMono-Regular",Consolas,monospace;
  background:#0D2118;color:#F0F7E9;color-scheme:dark;
}
body[data-operations-theme="radar"] .app {grid-template-rows:66px minmax(0,1fr) 34px;}
body[data-operations-theme="radar"] .masthead {
  background:#102820;border-bottom:2px solid #658D63;
}
body[data-operations-theme="radar"] .masthead__link {color:#DDEDD9;}
body[data-operations-theme="radar"] .masthead__link:hover,
body[data-operations-theme="radar"] .masthead__link--active {
  background:#1D422E;color:#F8FFF4;
}
body[data-operations-theme="radar"] .masthead__link--active::after {background:#9BE28D;}
body[data-operations-theme="radar"] .workspace {background:#0D2118;gap:3px;}
body[data-operations-theme="radar"] .traffic,
body[data-operations-theme="radar"] .context {
  background:#142A21;color:#F0F7E9;border-color:#466759;
}
body[data-operations-theme="radar"] :where(.traffic__intro,.context__header,.context__tabs,.traffic__footer,.context__footer) {
  background:#1B372B;border-color:#466759;
}
body[data-operations-theme="radar"] :where(.section-heading,.subheading,.section-subtitle,.context__fineprint,.status-key,.field-row,.airspace-intel__label,.airspace-intel__lead strong) {
  color:#F0F7E9;
}
body[data-operations-theme="radar"] :where(.context__tabs button,.context__tabs button[aria-selected="true"]) {
  color:#DCEFD8;border-bottom-color:#9BE28D;
}
body[data-operations-theme="radar"] :where(.traffic input,.traffic select,.context input,.context select) {
  background:#0B2118;color:#F0F7E9;border-color:#6A8D74;
}
body[data-operations-theme="radar"] :where(.traffic button,.context button) {
  border-radius:2px;color:#EAF6E7;
}
body[data-operations-theme="radar"] :where(.traffic table,.context table) {
  color:#F0F7E9;background:#142A21;
}
body[data-operations-theme="radar"] :where(.traffic th,.traffic td,.context th,.context td) {
  color:#E4F0E0;border-color:#466759;
}
body[data-operations-theme="radar"] :where(.traffic tr:nth-child(even),.context tr:nth-child(even)) {
  background:#1B372B;
}
body[data-operations-theme="radar"] .map-stage__heading,
body[data-operations-theme="radar"] .map-metrics,
body[data-operations-theme="radar"] .map-tool {
  background:#132B21;color:#F0F7E9;border:1px solid #658D63;
  border-radius:2px;box-shadow:none;
}
body[data-operations-theme="radar"] :where(.map-stage__heading strong,.map-stage__heading span,.map-stage__pulse,.map-metrics span) {
  color:#E7F2E3;
}
body[data-operations-theme="radar"] .map-metrics strong {color:#9BE28D;}
body[data-operations-theme="radar"] .statusbar {
  background:#102820;color:#D5E8D1;border-top:1px solid #658D63;
}
body[data-operations-theme="radar"] .statusbar time,
body[data-operations-theme="radar"] .statusbar a {color:#E7F2E3;}

/* PAPER — map is the leading column, with the aircraft ledger to its right.
 * This is intentionally not the original left-list / center-map layout. */
body[data-operations-theme="paper"] {
  --night:#283B40;--night-2:#3D7185;--paper:#FFFCF5;--canvas:#FBF8EE;
  --wash:#F5EFDF;--line:#D6CDBC;--line-deep:#B8AF9F;--ink:#283B40;
  --muted:#4A6267;--teal:#A34127;--teal-wash:#F4E0D3;--good:#24634F;
  --alert:#A22B3D;--focus:#A34127;--rail-width:345px;--context-width:292px;
  --font-text:Georgia,"Iowan Old Style","Times New Roman",serif;
  --font-data:"Cascadia Mono",Consolas,monospace;
  background:#FBF8EE;color:#283B40;color-scheme:light;
}
body[data-operations-theme="paper"] .app {grid-template-rows:76px minmax(0,1fr) 37px;}
body[data-operations-theme="paper"] .masthead {
  background:#F5EFDF;color:#283B40;border-top:4px solid #A34127;
  border-bottom:1px solid #B8AF9F;
}
body[data-operations-theme="paper"] .masthead__brand img {
  filter:brightness(0) saturate(100%);
}
body[data-operations-theme="paper"] .masthead__brand,
body[data-operations-theme="paper"] .masthead__brand-caption,
body[data-operations-theme="paper"] .masthead__brand-caption span {
  color:#283B40;border-color:#B8AF9F;
}
body[data-operations-theme="paper"] .masthead__link {
  color:#283B40;font-family:Georgia,serif;
}
body[data-operations-theme="paper"] .masthead__link--active,
body[data-operations-theme="paper"] .masthead__link:hover {
  background:#F4E0D3;color:#87331B;
}
body[data-operations-theme="paper"] .masthead__link--active::after {background:#A34127;height:2px;}
body[data-operations-theme="paper"] .workspace {
  grid-template-columns:minmax(0,1fr) var(--rail-width) var(--context-width);
  background:#FBF8EE;gap:2px;
}
body[data-operations-theme="paper"] .map-stage {grid-column:1;grid-row:1;}
body[data-operations-theme="paper"] .traffic {
  grid-column:2;grid-row:1;border-right:0;border-left:1px solid #C6BFB0;
}
body[data-operations-theme="paper"] .context {grid-column:3;grid-row:1;}
body[data-operations-theme="paper"] .traffic,
body[data-operations-theme="paper"] .context {
  background:#FFFCF5;color:#283B40;border-color:#D6CDBC;
}
body[data-operations-theme="paper"] .section-heading,
body[data-operations-theme="paper"] .map-stage__heading strong,
body[data-operations-theme="paper"] .context__header {
  font-family:Georgia,"Iowan Old Style",serif;
}
body[data-operations-theme="paper"] :where(.traffic__intro,.context__header,.context__tabs,.traffic__footer,.context__footer) {
  background:#F5EFDF;border-color:#D6CDBC;
}
body[data-operations-theme="paper"] .context__tabs button[aria-selected="true"] {
  border-bottom-color:#A34127;color:#87331B;
}
body[data-operations-theme="paper"] .map-stage__heading,
body[data-operations-theme="paper"] .map-metrics,
body[data-operations-theme="paper"] .map-tool {
  background:#FFFCF5;color:#283B40;border:1px solid #C6BFB0;
  border-radius:0;box-shadow:none;
}
body[data-operations-theme="paper"] .statusbar {
  background:#283B40;color:#F7F3E8;
}
body[data-operations-theme="paper"] .statusbar time,
body[data-operations-theme="paper"] .statusbar a {color:#F7F3E8;}

/* SPECTRUM LAB — high-density engineering panels and compact instrumentation. */
body[data-operations-theme="spectrum"] {
  --night:#262B2E;--night-2:#39413F;--paper:#F9FAF5;--canvas:#E9EBE6;
  --wash:#EEF2ED;--line:#ADB9AF;--line-deep:#899C92;--ink:#262B2E;
  --muted:#485750;--teal:#62439B;--teal-wash:#ECE6F6;--good:#126E64;
  --alert:#A22B3D;--focus:#62439B;--rail-width:285px;--context-width:280px;
  --font-text:"IBM Plex Sans","Segoe UI",system-ui,sans-serif;
  --font-data:"IBM Plex Mono",Consolas,monospace;
  background:#E9EBE6;color:#262B2E;color-scheme:light;
}
body[data-operations-theme="spectrum"] .app {grid-template-rows:53px minmax(0,1fr) 27px;}
body[data-operations-theme="spectrum"] .masthead {
  gap:12px;background:#262B2E;border-bottom:3px solid #62439B;
}
body[data-operations-theme="spectrum"] .masthead__link {
  font:650 12px/1.2 "Segoe UI",system-ui,sans-serif;color:#E3E7E2;
}
body[data-operations-theme="spectrum"] .masthead__link--active::after {background:#A489DD;}
body[data-operations-theme="spectrum"] .workspace {background:#E9EBE6;gap:1px;}
body[data-operations-theme="spectrum"] .traffic,
body[data-operations-theme="spectrum"] .context {
  background:#F9FAF5;border-color:#AAB7AD;
}
body[data-operations-theme="spectrum"] :where(.traffic__intro,.context__header,.context__tabs,.traffic__footer,.context__footer) {
  background:#EEF2ED;border-color:#AAB7AD;
}
body[data-operations-theme="spectrum"] :where(.traffic__intro,.context__header) {
  padding-top:10px;padding-bottom:8px;
}
body[data-operations-theme="spectrum"] :where(.section-heading,.subheading) {
  font:750 13px/1.2 "Segoe UI",system-ui,sans-serif;letter-spacing:0;
}
body[data-operations-theme="spectrum"] .context__tabs button {
  font-size:10px;padding:7px 1px;
}
body[data-operations-theme="spectrum"] .context__tabs button[aria-selected="true"] {
  border-bottom-color:#62439B;color:#4E307D;
}
body[data-operations-theme="spectrum"] :where(.traffic th,.traffic td) {
  padding:6px 7px;font-size:11px;
}
body[data-operations-theme="spectrum"] :where(.traffic tr:nth-child(even),.context tr:nth-child(even)) {
  background:#F0F3EC;
}
body[data-operations-theme="spectrum"] .map-stage__heading,
body[data-operations-theme="spectrum"] .map-metrics,
body[data-operations-theme="spectrum"] .map-tool {
  background:#F9FAF5;border:1px solid #ADB9AF;border-radius:2px;
  box-shadow:none;
}
body[data-operations-theme="spectrum"] .map-metrics strong {
  color:#62439B;font-family:var(--font-data);
}
body[data-operations-theme="spectrum"] .statusbar {
  background:#39413F;color:#F0F3ED;
}
body[data-operations-theme="spectrum"] .statusbar time,
body[data-operations-theme="spectrum"] .statusbar a {color:#F0F3ED;}

@media(max-width:1120px) {
  body[data-operations-theme="paper"] .workspace {
    grid-template-columns:minmax(0,1fr) var(--rail-width);
  }
  body[data-operations-theme="paper"] .context {
    grid-column:auto;grid-row:auto;
  }
}
@media(max-width:760px) {
  body[data-operations-theme="radar"] .app,
  body[data-operations-theme="paper"] .app,
  body[data-operations-theme="spectrum"] .app {
    grid-template-rows:56px minmax(0,1fr) 35px;
  }
  body[data-operations-theme="paper"] .workspace {
    display:block;
  }
  body[data-operations-theme="paper"] .traffic {
    grid-column:auto;grid-row:auto;
  }
  body[data-operations-theme="paper"] .masthead {
    border-top-width:2px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body[data-operations-theme] *,
  body[data-operations-theme] *::before,
  body[data-operations-theme] *::after {
    animation-duration:.01ms!important;transition-duration:.01ms!important;
  }
}
