/* Airport traffic only. No backdrop, body lock, or styles applied to other UI. */
.eg-airport-panel {
  --ap-text: #ecf2f4;
  --ap-muted: #a5b9c3;
  --ap-line: #344850;
  --ap-mono: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  position: absolute;
  z-index: 23;
  top: var(--panel-top, 105px);
  right: var(--edge, 16px);
  bottom: var(--navigation-dock-clearance, 55px);
  display: flex;
  flex-direction: column;
  width: min(452px, 46vw);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: linear-gradient(145deg, #142128, #101a20 48%);
  box-shadow: -6px 0 24px #0005;
  color: var(--ap-text);
  font: 13px/1.45 var(--sans, "Space Grotesk", Arial, sans-serif);
  color-scheme: dark;
  isolation: isolate;
}
.eg-airport-panel.eg-ap-viewport { position: fixed; }
.eg-airport-panel[hidden], .eg-airport-panel [hidden] { display: none !important; }
.eg-airport-panel *, .eg-airport-panel *::before, .eg-airport-panel *::after { box-sizing: border-box; }
.eg-airport-panel button, .eg-airport-panel input { font: inherit; color: inherit; }
.eg-airport-panel button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.eg-airport-panel button:focus-visible, .eg-airport-panel input:focus-visible {
  outline: 2px solid #9cdeee;
  outline-offset: -3px;
}
.eg-airport-panel svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.eg-airport-panel .eg-ap-grab { display: none; }
.eg-airport-panel .eg-ap-rail {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px 0 21px;
  min-height: 47px;
}
.eg-airport-panel .eg-ap-eyebrow {
  color: #8dc8d7;
  font: 600 10px/1.3 var(--ap-mono);
  letter-spacing: 1.8px;
}
.eg-airport-panel .eg-ap-close {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #adbec6;
}
.eg-airport-panel .eg-ap-close:hover { background: #243b46; color: #e7f7fc; }
.eg-airport-panel .eg-ap-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none; /* Snapshot updates explicitly preserve a visible row. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #405a65 transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.eg-airport-panel .eg-ap-heading { padding: 7px 21px 15px; }
.eg-airport-panel .eg-ap-codes {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font: 11px/1 var(--ap-mono);
  letter-spacing: 1px;
}
.eg-airport-panel .eg-ap-iata {
  padding: 5px 7px;
  border: 1px solid #365761;
  border-radius: 3px;
  background: #19323c;
  color: #bceaf5;
}
.eg-airport-panel .eg-ap-icao { color: #9cabb2; }
.eg-airport-panel .eg-ap-title {
  margin: 0 0 4px;
  color: var(--ap-text);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -1.3px;
  overflow-wrap: anywhere;
}
.eg-airport-panel .eg-ap-country { margin: 0; color: var(--ap-muted); font-size: 13px; }
.eg-airport-panel .eg-ap-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 21px 14px;
  padding: 12px 0;
  border-block: 1px solid var(--ap-line);
}
.eg-airport-panel .eg-ap-total { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eg-airport-panel .eg-ap-total-number { color: #bfe8f3; font-size: 43px; font-weight: 600; line-height: 1; letter-spacing: -2px; }
.eg-airport-panel .eg-ap-total-label { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.2; }
.eg-airport-panel .eg-ap-radius { display: block; margin-top: 3px; color: var(--ap-muted); font-size: 12px; font-weight: 400; }
.eg-airport-panel .eg-ap-freshness { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; font: 10px/1.3 var(--ap-mono); color: var(--ap-muted); text-align: right; }
.eg-airport-panel .eg-ap-status { display: flex; align-items: center; gap: 5px; color: #8be0c4; }
.eg-airport-panel .eg-ap-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.eg-airport-panel[data-state="loading"] .eg-ap-status { color: #a5c8d6; }
.eg-airport-panel[data-state="stale"] .eg-ap-status,
.eg-airport-panel[data-state="unavailable"] .eg-ap-status { color: #e8cb8e; }
.eg-airport-panel[data-state="unavailable"] .eg-ap-total-number { color: #a7b9c2; }
.eg-airport-panel .eg-ap-time { color: #d9e4e8; font-size: 11px; white-space: nowrap; }
.eg-airport-panel .eg-ap-age { font-size: 9px; }
.eg-airport-panel .eg-ap-search { margin: 0 15px; }
.eg-airport-panel .eg-ap-search-label { display: block; color: #c8d7dd; font-size: 12px; }
.eg-airport-panel .eg-ap-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  margin-top: 6px;
  padding: 0 7px 0 11px;
  border: 1px solid #44606b;
  border-radius: 6px;
  background: #0c161c;
  color: #9cd9e9;
}
.eg-airport-panel .eg-ap-search-field:focus-within { border-color: #8dd9ed; box-shadow: 0 0 0 3px #8dd9ed12; }
.eg-airport-panel .eg-ap-search-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  min-height: 43px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f0f7fa;
  font: 500 14px/1.3 var(--ap-mono);
  letter-spacing: .25px;
  appearance: none;
}
.eg-airport-panel .eg-ap-search-input::placeholder { color: #8da4ae; font: 11px/1.3 var(--sans, Arial, sans-serif); letter-spacing: 0; }
.eg-airport-panel .eg-ap-search-input::-webkit-search-cancel-button { display: none; }
.eg-airport-panel .eg-ap-search-input:focus-visible { outline: none; }
.eg-airport-panel .eg-ap-clear {
  flex-shrink: 0;
  min-height: 35px;
  padding: 5px 9px;
  border: 1px solid #3d525c;
  border-radius: 4px;
  background: #142028;
  color: #d0dfe5;
  font-size: 11px;
}
.eg-airport-panel .eg-ap-clear:hover { background: #23404d; }
.eg-airport-panel .eg-ap-results { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; margin: 12px 15px 9px; }
.eg-airport-panel .eg-ap-result-text { font-size: 12px; font-weight: 600; }
.eg-airport-panel .eg-ap-badge-hint { font-size: 10px; color: #a3b6be; }
.eg-airport-panel .eg-ap-message { margin: 0 15px 10px; padding: 9px 11px; border: 1px solid #45606b; border-radius: 5px; background: #14242d; color: #c3d5dc; font-size: 12px; line-height: 1.5; }
.eg-airport-panel[data-state="stale"] .eg-ap-message,
.eg-airport-panel[data-state="unavailable"] .eg-ap-message { border-color: #615741; color: #e3d3ae; background: #26251d; }
.eg-airport-panel .eg-ap-groups { display: grid; gap: 8px; margin: 0 15px; }
.eg-airport-panel .eg-ap-group { min-width: 0; overflow: hidden; border: 1px solid #31434c; border-radius: 6px; background: #121e24; }
.eg-airport-panel .eg-ap-group-title { margin: 0; font-size: inherit; }
.eg-airport-panel .eg-ap-group-toggle {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto 13px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  border: 0;
  background: #18262d;
  color: #e0e9ec;
  text-align: left;
}
.eg-airport-panel .eg-ap-group-toggle:hover { background: #1e313a; }
.eg-airport-panel .eg-ap-group-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; color: #acd9ed; background: #21353f; }
.eg-airport-panel .eg-ap-group-icon svg { width: 17px; height: 17px; }
.eg-airport-panel .eg-ap-arrival .eg-ap-group-icon { color: #90e5cc; background: #1b3a34; }
.eg-airport-panel .eg-ap-departure .eg-ap-group-icon { color: #c4afe8; background: #302b3b; }
.eg-airport-panel .eg-ap-other .eg-ap-group-icon { color: #bdc9d2; background: #29323d; }
.eg-airport-panel .eg-ap-group-label { min-width: 0; }
.eg-airport-panel .eg-ap-group-label strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.eg-airport-panel .eg-ap-group-note { display: block; margin-top: 3px; color: #a0b2ba; font-size: 10px; font-weight: 400; line-height: 1.3; }
.eg-airport-panel .eg-ap-count { min-width: 25px; padding: 5px 6px; border: 1px solid #40515a; border-radius: 4px; background: #142028; color: #d1dde2; font: 600 11px/1 var(--ap-mono); text-align: center; white-space: nowrap; }
.eg-airport-panel .eg-ap-arrival .eg-ap-count { border-color: #355a50; color: #a2dfca; }
.eg-airport-panel .eg-ap-chevron svg { width: 13px; height: 13px; color: #9bb1ba; transform: rotate(-90deg); }
.eg-airport-panel .eg-ap-group-toggle[aria-expanded="true"] .eg-ap-chevron svg { transform: none; }
.eg-airport-panel .eg-ap-rows { background: #101a20; }
.eg-airport-panel .eg-ap-group-empty { margin: 0; padding: 11px 12px; border-top: 1px solid #26363e; color: var(--ap-muted); font-size: 11px; }
.eg-airport-panel .eg-ap-flight {
  display: grid;
  grid-template-columns: minmax(74px, .85fr) minmax(0, 1.2fr) minmax(70px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid #26363e;
  background: transparent;
  color: #e1edf1;
  text-align: left;
}
.eg-airport-panel .eg-ap-flight:hover { background: #1c313b; }
.eg-airport-panel .eg-ap-flight[aria-pressed="true"] { background: #203945; box-shadow: inset 3px 0 #8ed8ec; }
.eg-airport-panel .eg-ap-flight[aria-disabled="true"] { color: #a0aeb5; cursor: default; }
.eg-airport-panel .eg-ap-ident { min-width: 0; }
.eg-airport-panel .eg-ap-callsign { display: block; color: inherit; font: 600 12px/1.3 var(--ap-mono); letter-spacing: .3px; overflow-wrap: anywhere; }
.eg-airport-panel .eg-ap-registration { display: block; margin-top: 2px; color: var(--ap-muted); font: 9px/1.3 var(--ap-mono); overflow-wrap: anywhere; }
.eg-airport-panel .eg-ap-aircraft { min-width: 0; color: #b0c0c7; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.eg-airport-panel .eg-ap-telemetry { min-width: 0; text-align: right; font: 10px/1.3 var(--ap-mono); color: #d6e7eb; overflow-wrap: anywhere; }
.eg-airport-panel .eg-ap-arrival .eg-ap-telemetry { color: #b0e7d6; }
.eg-airport-panel .eg-ap-distance { display: block; margin-top: 2px; color: #a3b6bd; font-size: 9px; }
.eg-airport-panel .eg-ap-match { padding: 1px 0; border-radius: 2px; background: #294958; color: #c8f2ff; font: inherit; }
.eg-airport-panel .eg-ap-footer { padding: 13px 20px 18px; color: #a9bac2; font-size: 11px; line-height: 1.5; }
.eg-airport-panel .eg-ap-search-help { margin: 7px 0 0; color: #c1d0d7; }
/* A second details card remains accessible; do not close or restyle it. */
@media (min-width: 761px) and (max-width: 1099px) {
  .eg-airport-panel { width: min(420px, 48vw); }
  .eg-airport-panel .eg-ap-title { font-size: 28px; }
  .eg-airport-panel .eg-ap-total-number { font-size: 37px; }
}
@media (max-width: 760px) {
  .eg-airport-panel {
    top: auto;
    right: var(--edge, 8px);
    left: var(--edge, 8px);
    bottom: var(--navigation-dock-clearance, 64px);
    width: auto;
    height: min(44%, 44dvh);
    max-height: calc(100% - var(--mobile-panel-top, 164px) - var(--navigation-dock-clearance, 110px) - 8px);
    border-radius: 12px 12px 8px 8px;
    border-top-color: #425a65;
    box-shadow: 0 -6px 24px #0005;
  }
  .eg-airport-panel .eg-ap-grab { display: block; flex: 0 0 auto; width: 34px; height: 3px; margin: 7px auto 0; border-radius: 5px; background: #536c77; }
  .eg-airport-panel .eg-ap-rail { min-height: 42px; padding: 0 5px 0 16px; }
  .eg-airport-panel .eg-ap-heading { padding: 5px 16px 12px; }
  .eg-airport-panel .eg-ap-title { font-size: 29px; }
  .eg-airport-panel .eg-ap-overview { margin: 0 16px 12px; padding: 10px 0; }
  .eg-airport-panel .eg-ap-total-number { font-size: 39px; }
  .eg-airport-panel .eg-ap-total-label { font-size: 13px; }
  .eg-airport-panel .eg-ap-radius { font-size: 11px; }
  .eg-airport-panel .eg-ap-search, .eg-airport-panel .eg-ap-results, .eg-airport-panel .eg-ap-message, .eg-airport-panel .eg-ap-groups { margin-left: 10px; margin-right: 10px; }
  .eg-airport-panel .eg-ap-search-input { min-height: 46px; font-size: 16px; }
  .eg-airport-panel .eg-ap-clear { min-height: 44px; }
  .eg-airport-panel .eg-ap-group-toggle { min-height: 60px; padding: 9px 10px; gap: 7px; }
  .eg-airport-panel .eg-ap-flight { min-height: 48px; padding: 8px 11px; }
  .eg-airport-panel .eg-ap-footer { padding: 12px 15px calc(15px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .eg-airport-panel .eg-ap-title { font-size: 26px; }
  .eg-airport-panel .eg-ap-overview { gap: 7px; }
  .eg-airport-panel .eg-ap-total { gap: 8px; }
  .eg-airport-panel .eg-ap-total-number { font-size: 34px; }
  .eg-airport-panel .eg-ap-group-label strong { font-size: 12px; }
  .eg-airport-panel .eg-ap-group-note { font-size: 9px; }
  .eg-airport-panel .eg-ap-flight { grid-template-columns: minmax(68px, .85fr) minmax(0, 1fr) minmax(61px, .9fr); gap: 5px; padding-inline: 9px; }
  .eg-airport-panel .eg-ap-callsign { font-size: 11px; }
}
@media (forced-colors: active) {
  .eg-airport-panel, .eg-airport-panel .eg-ap-group, .eg-airport-panel .eg-ap-message,
  .eg-airport-panel .eg-ap-search-field, .eg-airport-panel .eg-ap-count, .eg-airport-panel .eg-ap-clear { border-color: CanvasText; }
  .eg-airport-panel .eg-ap-match { background: Highlight; color: HighlightText; }
  .eg-airport-panel button:focus-visible, .eg-airport-panel input:focus-visible { outline-color: Highlight; }
}

#flight-layers .eg-air-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px 11px;margin:7px 0 3px}.eg-air-controls button,#airport-finder button{font:inherit;cursor:pointer}.eg-air-controls button{color:#b6e9f5;background:#12252d;border:1px solid #35515c;border-radius:4px;padding:5px 8px;font-size:11px}.eg-air-controls label{display:inline-flex;align-items:center;gap:4px;color:#bbcbd0;font-size:11px;cursor:pointer}.eg-air-controls input{accent-color:#82d3e6}#airport-finder{width:min(440px,calc(100vw - 24px));background:#101a20;border:1px solid #405760;border-radius:8px;color:#e4edf0;padding:18px;box-shadow:0 18px 70px #0009}#airport-finder:not([open]){display:none!important}#airport-finder::backdrop{background:#02090dbb}.eg-air-finder-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.eg-air-finder-head h2{font-size:20px;margin:0}#airport-finder-close{border:0;color:#bcccd2;background:transparent;font-size:24px!important;padding:0 4px}#airport-finder label{display:block;font-size:12px;color:#bfced4}#airport-finder-input{display:block;margin:6px 0 10px;width:100%;padding:10px;background:#0c161b;border:1px solid #769fae;border-radius:4px;color:white;font:inherit}#airport-finder-results{max-height:min(48dvh,410px);overflow:auto;overscroll-behavior:contain;font-size:13px}.eg-air-finder-row{display:grid;grid-template-columns:minmax(46px,auto) 1fr;gap:10px;align-items:center;color:#d2dfe5;background:transparent;border:0;border-bottom:1px solid #2a3c44;padding:10px 4px;width:100%;text-align:left}.eg-air-finder-row b{color:#a7d8e7}.eg-air-finder-row:is(:hover,:focus-visible){background:#1c323c}#eu-airport-from-asset[hidden]{display:none!important}

#airport-overlaps{width:min(420px,calc(100vw - 24px));background:#101a20;border:1px solid #405760;border-radius:8px;color:#e4edf0;padding:18px}#airport-overlaps:not([open]){display:none!important}#airport-overlaps::backdrop{background:#02090dbb}#airport-overlaps-list{max-height:55dvh;overflow:auto}#airport-overlaps-close,.eg-restore-map{color:#b6e9f5;background:#12252d;border:1px solid #35515c;border-radius:4px;padding:5px 8px;cursor:pointer}
