:root {
  --bg: #050716;
  --panel: rgba(8, 10, 28, .92);
  --panel2: rgba(5, 8, 22, .88);
  --text: #f8fafc;
  --muted: #aab6ff;
  --soft: rgba(170, 182, 255, .72);
  --border: rgba(124, 122, 255, .28);
  --purple: #7c7aff;
  --green: #84cc16;
  --yellow: #facc15;
  --blue: #38bdf8;
  --red: #ff1f1f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(124,122,255,.32), transparent 22%),
    radial-gradient(circle at 90% 15%, rgba(56,189,248,.10), transparent 30%),
    linear-gradient(135deg, #030513 0%, #080820 55%, #02030b 100%);
  color: var(--text);
  overflow: hidden;
}

.app {
  width: 100vw;
  height: 100vh;
  padding: 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.topBar {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(170px, .42fr) minmax(560px, 1.58fr);
  gap: 14px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(10,12,34,.96), rgba(13,12,39,.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 14px;
  min-height: 192px;
  box-shadow: 0 20px 60px rgba(0,0,0,.34), inset 0 0 42px rgba(124,122,255,.08);
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.mainLogo {
  height: 162px;
  width: auto;
  max-width: 230px;
  max-height: 162px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(124,122,255,.85))
    drop-shadow(0 0 40px rgba(85,83,214,.50));
}

.mainTitle {
  font-size: clamp(30px, 2.55vw, 48px);
  font-weight: 1000;
  letter-spacing: -.065em;
  line-height: .95;
  white-space: nowrap;
}

.airportCode {
  margin-top: 4px;
  font-size: clamp(16px, 1.1vw, 22px);
  font-weight: 700;
  color: var(--muted);
}

.clockBox {
  text-align: right;
  justify-self: stretch;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

#time {
  font-size: clamp(28px, 2.45vw, 48px);
  font-weight: 1000;
  letter-spacing: -.045em;
  line-height: 1;
}

.clockLabel {
  color: #bac4ff;
  font-size: clamp(11px, .74vw, 13px);
  font-weight: 1000;
  letter-spacing: .16em;
  line-height: 1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

#date {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(12px, 0.82vw, 15px);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.zuluTime {
  margin-top: 5px;
  color: #facc15;
  font-size: clamp(12px, .86vw, 16px);
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weatherStrip {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(250px, .95fr) minmax(250px, 1fr);
  grid-column: 3;
  gap: 14px;
  min-width: 0;
  align-items: stretch;
}

.wxCard, .forecastGroup {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 4px;
  box-shadow: none;
  min-width: 0;
}

.forecastGroup {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.wxLabel {
  color: #bac4ff;
  font-weight: 1000;
  letter-spacing: .16em;
  font-size: 11px;
  text-align: center;
  margin-bottom: 8px;
}

.wxLabel.wide { margin-bottom: 8px; }

.wxBadge {
  display: inline-block;
  background: var(--green);
  color: #06100b;
  font-weight: 1000;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 18px;
}

.wxBadge.small { font-size: 11px; padding: 4px 8px; }

.current {
  text-align: center;
  padding-left: 4px;
}

.current .wxLabel {
  font-size: 13px;
  letter-spacing: .12em;
  margin-bottom: 6px;
  white-space: nowrap;
}

.current .wxBadge {
  padding: 5px 10px;
  font-size: clamp(18px, 1.05vw, 22px);
}

.current .wxSub {
  font-size: clamp(13px, .82vw, 17px);
  line-height: 1.02;
  margin-top: 4px;
}

.current #wxFlightCat {
  font-size: clamp(17px, 1.05vw, 22px);
  font-weight: 1000;
  margin-top: 5px;
}

.wxMain {
  margin-top: 8px;
  font-weight: 1000;
  font-size: 19px;
  color: white;
}

.wxMain.yellow { color: var(--yellow); text-align: left; }
.wxMain.green { color: var(--green); }
.wxMain.red { color: var(--red); }

.wxSub {
  color: #dbe4ff;
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

.forecastCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.wxCard.mini {
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: center;
  padding: 7px 5px;
  min-width: 0;
  border-radius: 8px;
  background: rgba(124, 122, 255, .08);
}

.wxTime {
  color: #c4b5fd;
  font-size: clamp(12px, .85vw, 15px);
  font-weight: 1000;
  margin-bottom: 2px;
}

.wxForecastTemp {
  display: inline-block;
  min-width: 66px;
  color: #06100b;
  background: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: clamp(19px, 1.2vw, 25px);
  font-weight: 1000;
  line-height: 1;
}

.wxForecastCat {
  color: #f8fafc;
  font-size: clamp(15px, .94vw, 21px);
  font-weight: 1000;
  line-height: 1;
  margin-top: 5px;
}

.wxForecastWind {
  color: #f8fafc;
  font-size: clamp(10px, .7vw, 13px);
  font-weight: 1000;
  line-height: 1.05;
  margin-top: 3px;
  white-space: nowrap;
}

.wxForecastText {
  margin-top: 3px;
  color: #f8fafc;
  font-size: clamp(10px, .68vw, 13px);
  font-weight: 1000;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forecastUnavailable {
  grid-column: 1 / -1;
}

.other {
  padding-left: 8px;
  padding-right: 4px;
}

.otherWeatherBody {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(82px, auto);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.otherWeatherLeft {
  min-width: 0;
}

.otherWeatherBaro {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  padding-top: 16px;
}

.otherWeatherBaro .baroLabel,
.otherWeatherBaro .baroValue {
  display: block;
}

.other .wxLabel {
  font-size: 12px;
  margin-bottom: 5px;
}

.other .wxMain {
  font-size: clamp(24px, 1.65vw, 32px);
  line-height: 1;
  white-space: nowrap;
}

.other .wxSub {
  font-size: clamp(12px, .78vw, 15px);
  line-height: 1.05;
  margin-top: 4px;
}

.other .sunLines {
  display: inline-grid;
  gap: 2px;
  justify-items: start;
  margin-top: 8px;
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 1000;
  color: #f8fafc;
  line-height: 1;
}

.sunLine {
  display: inline-grid;
  grid-template-columns: 27px auto;
  align-items: center;
  gap: 6px;
  min-height: 21px;
  line-height: 1.05;
  white-space: nowrap;
}

.sunIcon {
  position: relative;
  justify-self: start;
  flex: 0 0 auto;
  width: 25px;
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 255, .55);
  border-radius: 6px;
  background:
    linear-gradient(rgba(219, 228, 255, .9), rgba(219, 228, 255, .9)) center 15px / 19px 2px no-repeat,
    radial-gradient(circle at 50% 42%, rgba(250, 204, 21, .18) 0 8px, transparent 9px),
    rgba(15, 23, 42, .48);
  box-shadow: inset 0 0 9px rgba(124, 122, 255, .22);
}

.sunIcon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #facc15;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, .20),
    0 0 10px rgba(250, 204, 21, .78);
}

.sunIcon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}

.sunriseIcon::after {
  top: 1px;
  border-bottom: 4px solid #84cc16;
}

.sunsetIcon {
  background:
    linear-gradient(rgba(219, 228, 255, .9), rgba(219, 228, 255, .9)) center 12px / 19px 2px no-repeat,
    radial-gradient(circle at 50% 48%, rgba(251, 113, 133, .16) 0 8px, transparent 9px),
    rgba(15, 23, 42, .48);
}

.sunsetIcon::before {
  bottom: 3px;
  background: #fb923c;
  box-shadow:
    0 0 0 2px rgba(251, 146, 60, .20),
    0 0 10px rgba(251, 146, 60, .78);
}

.sunsetIcon::after {
  bottom: 1px;
  border-top: 4px solid #fb7185;
}

.wxGrid {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 1000;
  color: white;
  font-size: clamp(14px, .92vw, 18px);
}

#wxAlt {
  display: inline-grid;
  gap: 2px;
  color: #f8fafc;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.baroLabel {
  color: #bac4ff;
  font-size: clamp(9px, .64vw, 12px);
  font-weight: 1000;
  letter-spacing: .12em;
}

.baroValue {
  color: #f8fafc;
  font-size: clamp(15px, .95vw, 20px);
  font-weight: 1000;
}

main {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.46fr .96fr;
  gap: 14px;
}

.mapPanel, .boardPanel {
  position: relative;
  overflow: hidden;
  background: var(--panel2);
  border: 1px solid rgba(124,122,255,.38);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 0 42px rgba(124,122,255,.10);
}

.mapPanel {
  container-type: inline-size;
}

#map {
  width: 100%;
  height: 100%;
  filter: saturate(1.15) contrast(1.08) brightness(.88);
}

.leaflet-control-attribution { display: none; }

.mapWatermark {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: min(38vw, 520px);
  opacity: .12;
  pointer-events: none;
  filter: drop-shadow(0 0 28px rgba(124,122,255,.70));
}

.mapNotice {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(6,8,20,.88);
  border: 1px solid rgba(250,204,21,.42);
  border-radius: 13px;
  padding: 14px 16px;
  font-weight: 1000;
  color: var(--yellow);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
}

.mapNotice span {
  display: block;
  color: #e5e7eb;
  font-size: .82em;
  font-weight: 700;
  margin-top: 5px;
}

.hidden { display: none; }

.mapBadge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(8,10,28,.90);
  border: 1px solid rgba(124,122,255,.28);
  border-radius: 13px;
  padding: 12px 18px;
  font-weight: 1000;
  color: #c4b5fd;
}

.reservationBoard {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: rgba(5, 7, 28, .98);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}

.reservationTitle {
  padding: clamp(8px, 1.05vh, 13px) clamp(14px, 1.8vw, 24px) clamp(7px, .9vh, 11px);
  border-bottom: 1px solid rgba(124, 122, 255, .2);
  color: #ffffff;
  font-size: clamp(20px, 3.7cqw, 38px);
  font-weight: 1000;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.reservationBoard.visible {
  opacity: 1;
  transform: translateY(0);
}

.reservationSummary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 122, 255, .28);
  background: rgba(17, 18, 55, .62);
}

.reservationSummary article {
  display: grid;
  align-content: center;
  gap: clamp(2px, .45vh, 4px);
  min-width: 0;
  padding: clamp(6px, .9vh, 10px) clamp(12px, 1.7vw, 22px);
  border-right: 1px solid rgba(124, 122, 255, .15);
}

.reservationSummary article:last-child {
  border-right: 0;
}

.reservationSummary span,
.reservationTableHeader {
  color: #bac4ff;
  font-size: clamp(9px, 1.35cqw, 14px);
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reservationSummary strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(22px, 3.3cqw, 40px);
  font-weight: 1000;
  line-height: .95;
  white-space: nowrap;
}

.reservationTableHeader,
.reservationRow {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, .48fr) minmax(0, .74fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .62fr);
  gap: clamp(6px, 1.1cqw, 14px);
  align-items: center;
}

.reservationTableHeader {
  padding: clamp(7px, .9vh, 11px) clamp(10px, 1.35vw, 18px) clamp(6px, .8vh, 10px);
  border-bottom: 1px solid rgba(124, 122, 255, .22);
  background: rgba(8, 12, 34, .72);
}

.reservationRows {
  min-height: 0;
  display: grid;
  grid-auto-rows: max-content;
  gap: clamp(3px, .42vh, 5px);
  align-content: start;
  overflow: hidden;
  padding: clamp(4px, .55vh, 7px) clamp(7px, .95vw, 12px);
  scroll-behavior: auto;
}

.reservationRows.autoScrolling {
  display: block;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.reservationRow {
  min-height: 0;
  padding: clamp(7px, .82vh, 10px) clamp(10px, 1.25vw, 16px);
  border: 1px solid rgba(96, 165, 250, .16);
  border-left: 3px solid rgba(96, 165, 250, .82);
  border-radius: 7px;
  background: rgba(10, 20, 48, .72);
  font-size: clamp(12px, 1.75cqw, 21px);
  line-height: 1.18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.reservationRows.autoScrolling .reservationRow {
  min-height: clamp(38px, 6.2vh, 56px);
}

.reservationRows.autoScrolling .reservationRow + .reservationRow {
  margin-top: clamp(3px, .42vh, 5px);
}

.reservationRow:nth-child(even) {
  background: rgba(27, 17, 54, .72);
  border-color: rgba(168, 85, 247, .18);
  border-left-color: rgba(168, 85, 247, .8);
}

.reservationRow:has(.reservationCountdown.upcoming) {
  background: rgba(42, 34, 18, .78);
  border-color: rgba(250, 204, 21, .22);
  border-left-color: #facc15;
}

.reservationRow:has(.reservationCountdown.in-progress) {
  background: rgba(8, 33, 52, .78);
  border-color: rgba(56, 189, 248, .24);
  border-left-color: #38bdf8;
}

.reservationRow:has(.reservationType.type-discovery) {
  border-left-color: #22d3ee;
}

.reservationRow:has(.reservationType.type-checkride) {
  background: rgba(69, 10, 10, .86);
  border-color: rgba(248, 113, 113, .44);
  border-left-color: #ef4444;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .18), 0 0 22px rgba(239, 68, 68, .18);
}

.reservationRow:has(.reservationType.type-student-solo) {
  border-left-color: #f472b6;
}

.reservationRow:has(.reservationType.type-maintenance) {
  border-left-color: #94a3b8;
}

.reservationTime {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(13px, 1.95cqw, 23px);
  font-weight: 1000;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.reservationTail,
.reservationType {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservationType {
  justify-self: start;
  max-width: 100%;
  border-radius: 999px;
  padding: .32em .62em;
  border: 1px solid rgba(255,255,255,.12);
  font-size: clamp(12px, 1.08cqw, 17px);
  line-height: 1.15;
}

.reservationType.type-dual {
  color: #dbeafe;
  background: rgba(37, 99, 235, .34);
  border-color: rgba(96, 165, 250, .58);
}

.reservationType.type-training {
  color: #1f1300;
  background: #f59e0b;
  border-color: rgba(251, 191, 36, .88);
}

.reservationType.type-rental {
  color: #042f2e;
  background: #14b8a6;
  border-color: rgba(45, 212, 191, .9);
}

.reservationType.type-discovery {
  color: #083344;
  background: #06b6d4;
  border-color: rgba(103, 232, 249, .9);
}

.reservationType.type-student-solo {
  color: #500724;
  background: #f472b6;
  border-color: rgba(251, 207, 232, .95);
}

.reservationType.type-ground {
  color: #1a2e05;
  background: #84cc16;
  border-color: rgba(190, 242, 100, .92);
}

.reservationType.type-maintenance {
  color: #e2e8f0;
  background: #475569;
  border-color: rgba(148, 163, 184, .9);
}

.reservationType.type-checkride {
  color: #fff;
  background: #ef4444;
  border-color: rgba(254, 202, 202, .98);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .28), 0 0 28px rgba(239, 68, 68, .68);
  text-transform: uppercase;
}

.reservationType.type-default {
  color: #e0e7ff;
  background: rgba(100, 116, 139, .4);
}

.reservationPeople,
.reservationInstructor {
  min-width: 0;
  overflow: hidden;
  color: #dbe4ff;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reservationPeople {
  position: relative;
}

.reservationScrollText {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  white-space: nowrap;
}

.reservationPeople.scrollable {
  text-overflow: clip;
}

.reservationPeople.scrollable .reservationScrollText {
  max-width: none;
  min-width: max-content;
  animation: reservationNameScroll var(--scroll-duration, 9s) ease-in-out infinite;
}

@keyframes reservationNameScroll {
  0%, 18% {
    transform: translateX(0);
  }
  48%, 66% {
    transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
  }
  100% {
    transform: translateX(0);
  }
}

.reservationCountdown {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: clamp(72px, 9.5cqw, 104px);
  border-radius: 999px;
  padding: clamp(5px, .7vh, 7px) clamp(8px, 1.1vw, 12px);
  background: #84cc16;
  color: #07111f;
  font-size: clamp(9px, 1.25cqw, 13px);
  font-weight: 1000;
  line-height: 1.15;
  white-space: nowrap;
}

.reservationCountdown.upcoming {
  background: var(--yellow);
}

.reservationCountdown.in-progress {
  background: #38bdf8;
  color: #07111f;
}

.reservationCountdown.ended {
  background: #84cc16;
}

.reservationEmpty {
  align-self: center;
  justify-self: center;
  color: #d7d2ff;
  padding: clamp(18px, 2.2vw, 28px);
  font-size: clamp(18px, 3.2cqw, 38px);
  font-weight: 1000;
  text-align: center;
}

@container (max-width: 620px) {
  .reservationTitle {
    letter-spacing: .05em;
  }

  .reservationTableHeader {
    display: none;
  }

  .reservationSummary span {
    letter-spacing: .06em;
  }

  .reservationRow {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time status"
      "tail type"
      "people instructor";
    gap: 2px 7px;
    align-content: center;
    padding: clamp(4px, .56vh, 6px) 8px;
    font-size: clamp(10px, 2.25cqw, 13px);
    line-height: 1.12;
  }

  .reservationTime {
    grid-area: time;
    font-size: clamp(11px, 2.65cqw, 15px);
    line-height: 1.08;
  }
  .reservationTail { grid-area: tail; }
  .reservationType {
    grid-area: type;
    justify-self: end;
    font-size: clamp(9px, 2.05cqw, 12px);
    padding: .24em .48em;
    line-height: 1.12;
  }
  .reservationPeople {
    grid-area: people;
    font-size: clamp(10px, 2.25cqw, 13px);
  }
  .reservationInstructor {
    grid-area: instructor;
    justify-self: end;
    max-width: 100%;
    font-size: clamp(10px, 2.25cqw, 13px);
  }
  .reservationCountdown {
    grid-area: status;
    min-width: 62px;
    padding: 3px 7px;
    font-size: clamp(8px, 2cqw, 11px);
    line-height: 1.12;
  }
}

.runwayDiagramShape {
  filter: drop-shadow(0 0 8px rgba(15, 23, 42, .9)) drop-shadow(0 0 12px rgba(248, 250, 252, .34));
}

.runwayDiagramCenterline {
  filter: drop-shadow(0 0 5px rgba(15, 23, 42, .85));
}

.runwayEndLabel {
  display: grid;
  place-items: center;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(248, 250, 252, .9);
  background: rgba(15, 23, 42, .84);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  box-shadow:
    0 0 12px rgba(15, 23, 42, .95),
    0 0 16px rgba(248, 250, 252, .22);
}

.boardPanel {
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.boardTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(124,122,255,.15);
}

.boardTitle {
  font-size: clamp(30px, 2.4vw, 44px);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: .95;
}

.boardSub {
  color: var(--muted);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 700;
  margin-top: 7px;
}

.fleetCount {
  background: rgba(124,122,255,.16);
  border: 1px solid rgba(124,122,255,.28);
  color: #d7d2ff;
  font-size: clamp(22px, 1.8vw, 31px);
  font-weight: 1000;
  line-height: 1;
  padding: 12px 15px;
  border-radius: 14px;
}

.boardHeader, .row {
  display: grid;
  grid-template-columns: 1.18fr 1.13fr .48fr .55fr .45fr;
  gap: 12px;
  align-items: center;
}

.boardHeader {
  color: #b8c0ff;
  font-weight: 1000;
  letter-spacing: .12em;
  font-size: clamp(13px, 1.1vw, 17px);
  padding: 14px 8px 13px;
  border-bottom: 1px solid rgba(124,122,255,.18);
}

.rows {
  overflow: hidden;
  padding-top: 8px;
  position: relative;
}

.rows.splitRows {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.pinnedAircraftRows {
  display: grid;
  border-bottom: 1px solid rgba(34, 197, 94, .28);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
  z-index: 1;
}

.pinnedAircraftRows .row {
  background: rgba(34, 197, 94, .09);
  border-radius: 12px;
}

.scrollingAircraftRows {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.row {
  min-height: clamp(54px, 6.5vh, 70px);
  padding: clamp(7px, 1vh, 10px) 8px;
  border-bottom: 1px solid rgba(124,122,255,.10);
  font-size: clamp(16px, 1.32vw, 27px);
}

.row:nth-child(odd) {
  background: rgba(124,122,255,.045);
  border-radius: 12px;
}

.reg {
  font-weight: 1000;
  letter-spacing: .01em;
}

.meta {
  color: #aeb8ff;
  font-weight: 700;
  font-size: .58em;
  margin-top: 3px;
}

.distanceMeta {
  color: #c7d2fe;
  font-weight: 1000;
  font-size: .62em;
  line-height: 1.05;
  margin-top: 2px;
}

.landingNote {
  color: #fde68a;
  font-size: .58em;
  font-weight: 1000;
  margin-top: 4px;
  text-transform: uppercase;
}

.status {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-width: 88px;
  font-weight: 1000;
  font-size: .6em;
  line-height: 1;
  border-radius: 9px;
  padding: 8px 10px;
  color: #07111f;
  white-space: nowrap;
}

.atbase, .offline { background: #77859a; color: white; }
.away-airport { background: #f97316; color: #1f1300; }
.maintenance {
  min-width: 132px;
  background: var(--red);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.airborne { background: var(--blue); }
.training { background: #c084fc; }
.pattern { background: #f0abfc; }
.landing { background: var(--green); }
.taxi { background: var(--yellow); }
.test-flight {
  min-width: 132px;
  background: #facc15;
  color: #1f1300;
  box-shadow: 0 0 16px rgba(250, 204, 21, .35);
}

.squawk {
  display: inline;
  color: #d7d2ff;
  font-weight: 1000;
  font-size: .9em;
  letter-spacing: .02em;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: clamp(12px, .9vw, 16px);
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid rgba(124,122,255,.18);
}

.planeIcon {
  font-size: 24px;
  color: #c4b5fd;
  text-shadow: 0 0 14px rgba(124,122,255,1);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.8));
}

@media (min-width: 1241px) and (max-width: 1320px) {
  .topBar {
    grid-template-columns: minmax(285px, .9fr) minmax(160px, .38fr) minmax(620px, 1.72fr);
    min-height: 172px;
    padding: 10px 12px;
  }

  .mainLogo {
    height: 138px;
    max-height: 138px;
    max-width: 190px;
  }

  .mainTitle {
    font-size: clamp(28px, 2.25vw, 36px);
  }

  #time {
    font-size: clamp(27px, 2.25vw, 38px);
  }

  .weatherStrip {
    grid-template-columns: minmax(118px, .48fr) minmax(250px, .95fr) minmax(240px, .9fr);
    gap: 14px;
  }

  .wxCard, .forecastGroup {
    padding: 4px 3px;
  }

  .forecastCards {
    gap: 5px;
  }
}

@media (max-width: 1240px) {
  .app {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topBar {
    grid-template-columns: minmax(280px, 1fr) minmax(190px, .55fr);
    min-height: 0;
  }

  .mainLogo {
    height: 132px;
    max-height: 132px;
    max-width: 190px;
  }

  .weatherStrip {
    grid-column: 1 / -1;
    height: auto;
    grid-template-columns: minmax(150px, .7fr) minmax(280px, 1fr) minmax(320px, 1fr);
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .app { grid-template-rows: auto minmax(0, 1fr); }
  .topBar { grid-template-columns: minmax(280px, 1.35fr) minmax(170px, .65fr); }
  .clockBox { justify-self: start; text-align: left; }
  .weatherStrip {
    grid-column: 1 / -1;
    height: auto;
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(260px, 1fr) minmax(280px, 1fr);
    gap: 12px;
    min-width: 0;
  }
  main { grid-template-columns: 1.46fr .96fr; grid-template-rows: 1fr; }
}

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

  .app {
    width: 100%;
    min-height: 100vh;
    height: auto;
    padding: 10px;
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .topBar {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
  }

  .identity {
    justify-content: center;
    gap: 12px;
  }

  .mainLogo {
    height: 96px;
    max-height: 96px;
    max-width: 130px;
  }

  .mainTitle {
    font-size: clamp(30px, 10vw, 42px);
  }

  .clockBox {
    justify-self: stretch;
    text-align: center;
  }

  #time {
    font-size: clamp(34px, 12vw, 46px);
  }

  .weatherStrip {
    grid-column: auto;
    grid-template-columns: 1fr;
    height: auto;
    gap: 8px;
  }

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

  .wxCard, .forecastGroup {
    padding: 8px 2px;
  }

  main {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 48vh) auto;
    gap: 10px;
  }

  .mapPanel {
    min-height: 360px;
  }

  .boardPanel {
    min-height: 520px;
  }

  .boardPanel .panelHeader {
    padding: 14px;
  }

  .boardHeader {
    display: none;
  }

  .row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 96px;
    padding: 12px 8px;
    font-size: clamp(17px, 5vw, 22px);
  }

  .row > :nth-child(3),
  .row > :nth-child(4),
  .row > :nth-child(5) {
    font-size: .78em;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .forecastCards {
    grid-template-columns: 1fr;
  }

  .status {
    white-space: normal;
    text-align: center;
  }
}


/* Movie-credit style fleet scroll */
.rows.scrollRows {
  overflow: hidden;
  scroll-behavior: auto;
}

.aircraftScrollTrack {
  will-change: transform;
}

.aircraftScrollSet {
  display: grid;
}

.tempBadge {
  font-size: 26px;
  min-width: 86px;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
}
.sunLines {
  line-height: 1;
}

.tafWind {
  display: block;
  font-weight: 1000;
  color: #f8fafc;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}
.tafSky {
  display: block;
  margin-top: 4px;
  color: #dbe4ff;
  font-weight: 750;
  font-size: 10px;
  line-height: 1.2;
}


.aircraftMarker {
  position: relative;
  width: 126px;
  height: 56px;
  transform-origin: center center;
}

.aircraftMarker .planeSymbol {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 44px;
  height: 48px;
  color: #f5f3ff;
  background: transparent;
  transform: rotate(var(--aircraft-heading, 0deg));
  transform-origin: 50% 50%;
  text-shadow:
    0 0 7px rgba(192,132,252,1),
    0 0 18px rgba(124,58,237,.95),
    0 2px 5px rgba(0,0,0,.90);
  filter: drop-shadow(0 0 10px rgba(192,132,252,.92));
}

.gaPlaneSvg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gaPlaneSvg .gaBody,
.gaPlaneSvg .gaProp {
  fill: currentColor;
}

.gaPlaneSvg .gaCanopy {
  fill: #221047;
  opacity: .78;
}

.aircraftMarker .tailLabel {
  position: absolute;
  top: 17px;
  left: 58px;
  background: rgba(46, 16, 101, .92);
  border: 1px solid rgba(216,180,254,.78);
  border-radius: 8px;
  color: #f5f3ff;
  font-size: 12px;
  font-weight: 1000;
  padding: 3px 7px;
  white-space: nowrap;
  letter-spacing: .03em;
  box-shadow: 0 0 18px rgba(168,85,247,.48);
}

.aircraftMarker .tailLabel::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 12px;
  height: 2px;
  background: rgba(216,180,254,.78);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(168,85,247,.58);
}

.nearbyTrafficMarker {
  opacity: .72;
}

.nearbyTrafficMarker .planeSymbol {
  color: #d1d5db;
  text-shadow:
    0 0 7px rgba(148,163,184,.75),
    0 2px 5px rgba(0,0,0,.90);
  filter: drop-shadow(0 0 7px rgba(148,163,184,.55));
}

.nearbyTrafficMarker .tailLabel {
  background: rgba(31, 41, 55, .86);
  border-color: rgba(156,163,175,.55);
  color: #e5e7eb;
  box-shadow: 0 0 13px rgba(107,114,128,.28);
}

.kbvuMarker {
  display: grid;
  place-items: center;
  width: 92px;
  height: 40px;
}

.kbvuMarker .airportDot {
  width: 14px;
  height: 14px;
  background: #facc15;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(250,204,21,.95);
  margin: 0 auto 4px;
}

.kbvuMarker .airportLabel {
  background: rgba(5, 8, 22, .88);
  border: 1px solid rgba(250,204,21,.65);
  color: #facc15;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 1000;
}

.nearbyAirportMarker {
  display: grid;
  place-items: center;
  width: 80px;
  min-height: 42px;
  pointer-events: none;
}

.nearbyAirportDot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56,189,248,.9);
  margin: 0 auto 3px;
}

.nearbyAirportLabel {
  max-width: 76px;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(56,189,248,.45);
  border-radius: 7px;
  background: rgba(5, 8, 22, .78);
  color: #dff7ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(15,23,42,.82);
}
