:root {
  color-scheme: dark;
  --canvas: #141812; --panel: #1b2019; --deep: #11160f; --field: #182016;
  --line: #383f32; --strong-line: #535e46; --text: #e7e8dc; --muted: #adb5a1;
  --quiet: #a2ac95; --accent: #c8d992; --amber: #e4bb8b;
  --body: "DM Sans", Arial, sans-serif;
  --display: "Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --mono: "IBM Plex Mono",Consolas,monospace;
  --masthead-height: 72px;
  scroll-padding-block-start: var(--masthead-height);
  font: 15px/1.45 var(--body); color: var(--text); background: var(--canvas);
}
* { box-sizing: border-box; }
body,h1,h2,h3,p { margin: 0; }
button,input,select { font: inherit; color: inherit; }
a { color: inherit; }
button,select { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:where(button,a,input,select,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead { position: sticky; top: 0; z-index: 2; min-height: var(--masthead-height); padding: 0 clamp(15px,3.1vw,50px); display: flex; align-items: center; border-bottom: 1px solid var(--line); background: #11150f; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { mix-blend-mode: screen; filter: invert(1) sepia(.28) saturate(.72) brightness(.94); }
.brand span { font: 700 29px/1 var(--display); text-transform: uppercase; letter-spacing: .055em; }
.brand-context,.region-box label,.feed-pill,.column-labels,.update-text span,.detail-grid dt { font: 500 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .085em; color: var(--quiet); }
.brand-context { border-left: 1px solid var(--strong-line); padding-left: 20px; margin-left: 20px; }
.back,.refresh,.map-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.back { min-height: 44px; margin-left: auto; padding: 0 12px; border: 1px solid var(--strong-line); border-radius: 3px; background: var(--field); color: var(--text); font: 500 12px var(--mono); text-decoration: none; }
.back svg { color: var(--accent); }
.back:hover,.back:focus-visible { background: #303929; border-color: var(--accent); }
.attribution a:hover { color: var(--accent); }
.back svg,.refresh svg,.search svg,.map-tools svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page { width: min(1560px,100%); margin: 0 auto; padding: clamp(18px,3.3vw,45px); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1,h2,h3 { font-family: var(--display); text-transform: uppercase; }
h1 { font-size: clamp(41px,4vw,64px); line-height: .96; letter-spacing: .014em; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.region-box { display: grid; gap: 5px; }
.region-box select { background: #262d21; border: 1px solid var(--strong-line); border-radius: 3px; min-width: 176px; min-height: 41px; padding: 7px 10px; font-size: 14px; }
.tracker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 30%); border: 1px solid var(--line); background: var(--panel); }
.map-panel,.list-panel { min-width: 0; }
.map-panel { border-right: 1px solid var(--line); }
.panel-heading,.list-heading,.report-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading,.list-heading { min-height: 58px; padding: 12px clamp(13px,1.5vw,23px); }
h2 { font-weight: 600; font-size: clamp(23px,2.05vw,30px); line-height: 1; letter-spacing: .025em; }
.map-title-line { display: flex; align-items: center; gap: 8px; }
.map-sign { font: 24px/1 var(--mono); color: var(--accent); }
.feed-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
.feed-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed-pill.current { color: var(--accent); }
.feed-pill.delayed { color: var(--amber); }
.map-window { position: relative; background: #141c18; border-block: 1px solid var(--line); }
#map { width: 100%; aspect-ratio: 10/7; display: block; }
#map.zoomed { touch-action: none; cursor: grab; }
#map.dragging { cursor: grabbing; }
.marker { cursor: pointer; color: #d5e99f; }
.marker .aircraft { fill: currentColor; stroke: #1d2517; stroke-width: 1.7; stroke-linejoin: round; paint-order: stroke; }
.marker.chosen,.marker:focus-visible { color: #fff1ad; }
.marker .ring { fill: #161d13b8; stroke: currentColor; stroke-width: 1.25; }
.marker text { font: 500 12px var(--mono); fill: #f0efd9; paint-order: stroke; stroke: #152016; stroke-width: 4px; stroke-linejoin: round; }
.map-tools { display: flex; position: absolute; left: 13px; bottom: 13px; border: 1px solid var(--strong-line); background: #161c15ed; }
.map-tools button { min-width: 34px; min-height: 34px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--text); font: 18px var(--mono); }
.map-tools button:last-child { border-right: 0; }
.map-tools button:not(:disabled):hover,.refresh:not(:disabled):hover { background: #303929; }
.map-notice { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); padding: 9px 14px; border: 1px solid var(--strong-line); background: #171d15ed; font-size: 13px; text-align: center; max-width: 78%; width: max-content; }
.report-bar { color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.update-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 11px; min-width: 0; }
.update-text time,.refresh { font: 400 11px/1.4 var(--mono); }
.refresh { flex: none; padding: 6px 9px; min-height: 32px; border: 1px solid var(--strong-line); border-radius: 3px; background: var(--field); }
.details { padding: 16px clamp(13px,1.5vw,23px); min-height: 100px; }
.detail-hint { margin-top: 4px; font-size: 13px; color: var(--muted); }
.details h3 { font-size: 22px; letter-spacing: .025em; line-height: 1.1; }
.detail-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.detail-name span { font-size: 13px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 13px 0 0; }
.detail-grid > div { border-left: 1px solid var(--line); padding-left: 10px; }
.detail-grid > div:first-child { border: 0; padding: 0; }
.detail-grid dd { margin: 4px 0 0; font: 500 12px/1.4 var(--mono); }
.list-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.list-heading { padding-bottom: 10px; }
#flight-count { color: var(--accent); font: 500 13px var(--mono); border: 1px solid var(--strong-line); background: #2b3423; border-radius: 3px; padding: 3px 8px; }
.search { display: flex; align-items: center; gap: 8px; margin: 2px 15px 15px; padding: 8px 10px; background: var(--deep); border: 1px solid var(--line); border-radius: 3px; color: var(--quiet); }
.search:focus-within { border-color: var(--accent); }
.search input { width: 100%; min-width: 0; font-size: 13px; background: none; border: 0; outline: none; min-height: 22px; }
.search input::placeholder { color: #9aab8c; }
.column-labels { display: flex; justify-content: space-between; padding: 9px 16px; background: #20261e; border-block: 1px solid var(--line); }
.flight-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 0; scrollbar-color: #525e47 var(--field); }
.flight-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; }
.flight-row:hover,.flight-row[aria-pressed="true"] { background: #2a3324; }
.flight-row[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.flight-row:focus-visible { outline-offset: -3px; }
.flight-id { display: block; font: 600 20px/1.1 var(--display); letter-spacing: .03em; }
.airline-name { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.airline-name,.flight-id { overflow-wrap: anywhere; }
.flight-alt { font: 400 11px var(--mono); color: var(--muted); }
.list-empty { order: 2; padding: 15px; color: var(--muted); font-size: 13px; }
.list-panel:has(.flight-list:empty) .flight-list { flex: 0; }
.attribution { padding: 15px 0 6px; color: var(--quiet); font-size: 11px; }
.attribution a { text-underline-offset: 3px; }
@media(min-width: 1200px) {
  .tracker { grid-template-columns: minmax(0, 1fr) 340px; }
  .map-window { background: #111911; }
  #map { max-height: 67vh; }
}
@media(max-width: 825px) {
  .tracker { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; }
  .list-panel { border-top: 1px solid var(--line); height: auto; }
  .flight-list { flex: 0 1 auto; max-height: 410px; }
}
@media(max-width: 600px) {
  :root { --masthead-height: 58px; }
  .brand { gap: 7px; }.brand img { width: 32px; height: 32px; }.brand span { font-size: 24px; }
  .brand-context { display: none; }.back { font-size: 11px; }
  .page { padding: 22px 12px 12px; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 15px; margin-bottom: 15px; }
  .page-heading p { font-size: 13px; }
  .region-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .region-box select { min-width: 150px; }
  .panel-heading,.list-heading { min-height: 47px; }
  .feed-pill { font-size: 9px; }
  .map-tools { left: 6px; bottom: 6px; }
  .map-tools button { min-width: 30px; min-height: 30px; }
  .report-bar { padding: 8px 10px; }
  .update-text { display: grid; gap: 0; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .detail-grid > div:nth-child(3) { border: 0; padding: 0; }
  .flight-list { max-height: 52vh; }
}
.view-switch { display: flex; align-items: center; }
.view-switch { gap: 23px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.view-switch button { color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 7px 1px 11px; font: 500 13px var(--body); }
.view-switch button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.board-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(250px,1fr); align-items: start; gap: 16px; }
.board-panel,.airport-summary { background: var(--panel); border: 1px solid var(--line); }
.board-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.board-heading h2 { font-size: clamp(20px,2.2vw,29px); }
.widget-wrap { padding: 12px; }
.widget-credit { margin: 9px 0 0; color: var(--muted); font: 12px/1.4 var(--body); }
.widget-credit a { text-underline-offset: 3px; }
.airport-map { height: clamp(130px,14vw,225px); position: relative; overflow: hidden; background: var(--deep); border-bottom: 1px solid var(--line); }
.airport-map img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.airport-map span { position: absolute; left: 16px; bottom: 11px; padding: 1px 9px; color: var(--accent); font: 700 46px/1 var(--display); letter-spacing: .02em; background: #141812f0; }
.airport-info { padding: 18px; }
.location,.clock-line span { font: 500 10px/1.4 var(--mono); color: var(--quiet); letter-spacing: .09em; text-transform: uppercase; }
.airport-info h2 { margin-top: 5px; line-height: 1.1; }
.clock-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 15px 0; margin: 15px 0 10px; border-block: 1px solid var(--line); }
.clock-line time { font: 500 14px var(--mono); }
.map-link { padding: 6px 0; color: var(--accent); background: none; border: 0; font: 500 13px var(--body); }
.map-link span { margin-left: 5px; }
.outage-actions { position: absolute; width: max-content; max-width: 86%; inset: 44% auto auto 50%; transform: translate(-50%,-50%); padding: 12px 17px; text-align: center; background: #171d15f4; border: 1px solid var(--strong-line); color: var(--muted); }
.outage-actions p { font-size: 13px; }
.map-notice + .outage-actions:not([hidden]) { max-width: min(86%,400px); }
@media(max-width: 825px) {
  .board-layout { grid-template-columns: 1fr; }
  .airport-summary { display: grid; grid-template-columns: 30% 1fr; }
  .airport-map { height: 100%; min-height: 115px; border: 0; }
}
@media(max-width: 600px) {
  .widget-wrap { padding: 6px; }
  .board-heading { padding: 10px; }
  .view-switch { margin-bottom: 11px; }
  .airport-summary { display: block; }
  .airport-map { height: 115px; }
  .airport-info { padding: 12px; }
}
.board-sidebar { display: grid; gap: 16px; }
#widget iframe { display: block; width: 100%; height: 692px; border: 0; border-radius: 4px; background: var(--field); }

.board-external { color: var(--accent); font: 500 12px var(--mono); text-underline-offset: 3px; }
.live-map-panel { border: 1px solid var(--line); background: var(--panel); }
.live-map-panel .panel-heading { border-bottom: 1px solid var(--line); }
.live-frame-wrap { background: var(--deep); }
.live-frame-wrap iframe { display: block; width: 100%; height: clamp(420px,63dvh,770px); border: 0; }
.live-map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font: 400 11px/1.5 var(--mono); }
.live-map-foot a { text-underline-offset: 3px; }
@media(max-width: 600px) {
  .live-frame-wrap iframe { height: clamp(330px,55dvh,600px); }
  .live-map-panel .panel-heading { flex-wrap: wrap; }
  .view-switch { gap: 15px; }
}

.official-boards { padding: clamp(16px,3vw,32px); }
.official-boards p { color: var(--muted); max-width: 46ch; }
.official-board-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.official-board-links a { display: inline-flex; gap: 15px; align-items: center; justify-content: space-between; padding: 10px 14px; min-height: 44px; border: 1px solid var(--strong-line); border-radius: 3px; color: var(--accent); background: var(--field); font-weight: 500; text-decoration: none; }
.official-board-links a:hover { background: #303929; }
