:root {
  color-scheme: light;
  --bg: #f5f1ee;
  --panel: #f5f1ee;
  --panel-2: #d7cdc6;
  --surface: #9d8c80;
  --surface-light: #d1c6be;
  --surface-lighter: #e1d9d4;
  --text: #1a1a1a;
  --label-text: #888582;
  --muted: #1a1a1a;
  --line: rgba(26, 26, 26, .2);
  --accent: #c99642;
  --accent-2: #d8b46a;
  --gold-soft: rgba(216, 180, 106, .18);
  --gold-line: rgba(216, 180, 106, .5);
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

.app {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.panel {
  position: absolute;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  width: min(1232px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  transform: translateX(-50%);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(26, 26, 26, .14);
  border-radius: 0;
  background: rgba(245, 241, 238, .9);
  box-shadow: 0 24px 72px rgba(18, 18, 18, .18), inset 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  scrollbar-color: rgba(157, 140, 128, .72) transparent;
  scrollbar-width: thin;
  transition:
    height 560ms cubic-bezier(.2, .8, .2, 1),
    background-color 260ms ease,
    box-shadow 260ms ease;
  will-change: height;
}

.panel::-webkit-scrollbar {
  width: 8px;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(157, 140, 128, .58);
  background-clip: content-box;
}

.panel::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 140, 128, .82);
  background-clip: content-box;
}

.panel::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.panel::-webkit-scrollbar-corner {
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  transition: margin-bottom 520ms cubic-bezier(.22, .75, .25, 1);
}

@media (min-width: 861px) {
  .panel-content {
    display: grid;
    grid-template-columns: minmax(290px, .75fr) minmax(0, 2.6fr);
    align-items: stretch;
    gap: 18px;
  }

  .panel-content > .control-group:first-child {
    margin-bottom: 0;
  }

  .panel:not(.layout-left) .control-group:has(#jetMakeSelect) > label {
    display: none;
  }

  .panel.is-collapsed .panel-content {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 2.7fr);
    gap: 22px;
  }
}

@media (min-width: 1280px) {
  .panel:not(.layout-left) .panel-content {
    align-items: stretch;
  }

  .panel:not(.layout-left) .panel-content > .control-group:first-child {
    gap: 8px;
  }

  .panel:not(.layout-left) .control-group:has(#jetMakeSelect) {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "primary specs"
      "profile specs";
    align-items: stretch;
    column-gap: 14px;
  }

  .control-group:has(#jetMakeSelect) > label {
    grid-column: 1 / -1;
  }

  .panel:not(.layout-left) .jet-primary-controls {
    grid-area: primary;
  }

  .panel:not(.layout-left) .jet-profile {
    display: grid;
    grid-area: profile;
    grid-template-columns: minmax(0, 1fr) 130px;
    min-height: 174px;
    align-items: stretch;
    background: #d9d6d3;
  }

  .panel:not(.layout-left) .jet-specs-panel {
    display: grid;
    grid-area: specs;
    gap: 0;
  }

  .control-group:has(#jetMakeSelect) .spec-item-wide {
    grid-column: span 2;
  }

  .panel:not(.layout-left) .control-group:has(#jetMakeSelect) .jet-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel:not(.layout-left) .jet-profile-image {
    display: block;
    height: 82.5%;
  }

  .panel:not(.layout-left) .jet-profile .jet-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #d9d6d3;
  }

  .panel:not(.layout-left) .jet-profile .jet-card > div {
    display: grid;
    min-height: 58px;
    align-content: center;
    justify-items: start;
    padding: 8px 14px;
    border-bottom: 0;
    text-align: left;
  }

  .panel:not(.layout-left) .jet-profile .jet-card > div:last-child {
    border-bottom: 0;
  }

  .panel:not(.layout-left) .metrics-tag {
    display: block;
  }

  .panel:not(.layout-left) .spec-item-wide {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    padding: 14px 0 0;
    padding-bottom: 0;
  }

  .panel:not(.layout-left) .airport-input-shell {
    height: 44px;
    min-height: 44px;
  }

  .panel.is-collapsed .control-group:has(#jetMakeSelect) {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: auto;
    grid-template-areas: "primary specs";
    column-gap: 24px;
  }

  .panel.is-collapsed .jet-profile {
    grid-area: auto;
  }

  .panel.is-collapsed .jet-specs-panel {
    display: grid;
    grid-area: specs;
  }

  .panel.is-collapsed .metrics-tag {
    display: block;
  }

  .panel.is-collapsed .spec-item-wide {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    border-bottom-color: rgba(26, 26, 26, .18);
    padding: 14px 0 10px;
  }
}

@media (min-width: 861px) {
  .panel.layout-left {
    top: 24px;
    bottom: auto;
    left: 24px;
    width: min(390px, calc(100vw - 48px));
    transform: none;
  }

  .panel.layout-left .brand {
    margin-bottom: 24px;
  }

  .panel.layout-left .panel-content {
    display: block;
  }

  .panel.layout-left .panel-content > .control-group:first-child {
    margin-bottom: 18px;
  }

  .panel.layout-left .control-group:has(#jetMakeSelect) {
    grid-template-columns: 1fr;
  }

  .panel.layout-left .control-group:has(#jetMakeSelect) > label {
    grid-column: auto;
  }

  .panel.layout-left .control-group:has(#jetMakeSelect) .jet-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel.layout-left .control-group:has(#jetMakeSelect) .spec-item-wide {
    grid-column: 1 / -1;
  }
}

.panel-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: var(--surface-light);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  gap: 5px;
}

.panel-toggle:focus {
  outline: 2px solid rgba(216, 180, 106, .45);
  outline-offset: 2px;
}

.panel-toggle:disabled {
  cursor: default;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  min-width: 1.1em;
  color: var(--accent-2);
  font-weight: 900;
  line-height: 1;
}

.label,
label,
.section-title,
.toggle-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.panel.is-collapsed {
  max-height: 182px;
  overflow: hidden;
  padding-top: 18px;
  padding-bottom: 18px;
}

.panel.is-measuring {
  transition: none !important;
}

.panel.is-measuring * {
  animation: none !important;
  transition: none !important;
}

.panel.is-resizing {
  max-height: none;
  overflow: hidden;
}

.panel.is-resizing.is-collapsed {
  max-height: none;
}

.panel.is-resizing .aircraft-select-grid,
.panel.is-resizing .aircraft-select-field {
  align-self: start;
}

.panel.is-resizing .jet-profile-image {
  animation: none;
  opacity: 0;
  transform: none;
}

.panel.is-collapsed .jet-profile-image {
  animation: none;
  opacity: 0;
  transform: none;
}

.panel.is-collapsed .brand {
  margin-bottom: 18px;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0);
  flex: 0 0 auto;
}

.brand-logo-v1 {
  width: clamp(150px, 16vw, 220px);
  height: 34px;
  object-position: left center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

h1,
h2,
p {
  margin: 0;
}

.panel h1,
.map-topbar h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: 24px;
  line-height: 1.1;
}

.title-mobile {
  display: none;
}

.brand p,
.label,
.eyebrow,
.spec-label {
  color: var(--muted);
  font-size: 10px;
}

.brand p,
.label,
.eyebrow,
.control-group > label,
.section-title,
.toggle-row span,
.airport-result small,
.airport-status,
.reachable li,
.legend,
.spec-label,
.panel-toggle {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: .1em;
}

.label,
.control-group > label,
.section-title,
.toggle-row span,
.legend,
.spec-label {
  color: var(--label-text);
  font-weight: 400;
  text-transform: uppercase;
}

.control-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  transition:
    gap 520ms cubic-bezier(.22, .75, .25, 1),
    margin 520ms cubic-bezier(.22, .75, .25, 1),
    opacity 220ms ease;
}

.control-group:has(#customAirportToggle) {
  display: none;
}

.control-group:has(#jetMakeSelect) {
  margin-bottom: 0;
}

.airport-status,
.destination-board,
.jet-profile,
.jet-card,
.jet-specs-panel,
.jet-specs,
.spec-item,
.stat-block,
.reachable {
  transition:
    max-height 520ms cubic-bezier(.22, .75, .25, 1),
    min-height 520ms cubic-bezier(.22, .75, .25, 1),
    margin 520ms cubic-bezier(.22, .75, .25, 1),
    padding 520ms cubic-bezier(.22, .75, .25, 1),
    gap 520ms cubic-bezier(.22, .75, .25, 1),
    opacity 220ms ease,
    border-color 220ms ease;
}

.airport-status {
  max-height: 48px;
  overflow: hidden;
}

.destination-board {
  max-height: 230px;
  overflow: hidden;
}

.jet-profile {
  max-height: 260px;
}

.jet-card {
  max-height: 220px;
  overflow: hidden;
}

.jet-specs {
  max-height: 280px;
  overflow: hidden;
}

.spec-item {
  max-height: 72px;
  overflow: hidden;
}

.panel.is-collapsed .panel-content {
  align-items: start;
}

.panel.is-collapsed .panel-content > .control-group:first-child,
.panel.is-collapsed .control-group:has(#jetMakeSelect) {
  margin-bottom: 0;
}

.panel.is-collapsed .airport-status,
.panel.is-collapsed .destination-board,
.panel.is-collapsed .jet-profile,
.panel.is-collapsed .jet-card,
.panel.is-collapsed .jet-specs .spec-item:not(.spec-item-wide),
.panel.is-collapsed .control-group:has(#customAirportToggle),
.panel.is-collapsed .stat-block,
.panel.is-collapsed .reachable {
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.panel.is-collapsed .jet-specs {
  max-height: 72px;
  gap: 0;
}

.panel.is-collapsed .spec-item-wide {
  max-height: 58px;
}

.aircraft-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.jet-primary-controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.jet-profile {
  display: contents;
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
}

.jet-profile-image {
  display: none;
  width: 82.5%;
  height: 144px;
  min-height: 144px;
  justify-self: center;
  align-self: center;
  padding: 10px 14px;
  background-color: transparent;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity 180ms ease;
}

.jet-profile-image.is-empty {
  visibility: hidden;
}

.jet-specs-panel {
  display: contents;
}

.metrics-tag {
  display: none;
  color: var(--label-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.aircraft-select-field {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 8px;
}

label,
.section-title {
  color: var(--label-text);
  font-size: 10px;
  font-weight: 400;
}

select,
input[type="number"],
input[type="search"] {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: var(--surface-lighter);
  color: var(--text);
  font: inherit;
  font-weight: 350;
}

select:focus,
input:focus {
  outline: 2px solid rgba(216, 180, 106, .45);
  outline-offset: 2px;
}

input[type="search"]::-webkit-search-cancel-button {
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 43%, var(--surface-light) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--surface-light) 43% 57%, transparent 57%);
  cursor: pointer;
}

.search-box {
  position: relative;
}

.airport-input-shell {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--surface-lighter);
}

.airport-input-shell:focus-within {
  outline: 2px solid rgba(216, 180, 106, .45);
  outline-offset: 2px;
}

.airport-input-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.airport-input-shell input:focus {
  outline: 0;
}

.airport-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(245, 241, 238, .96);
  box-shadow: 0 18px 48px rgba(18, 42, 51, .16);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.airport-result {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18, 42, 51, .08);
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.airport-result:last-child {
  border-bottom: 0;
}

.airport-result:hover,
.airport-result:focus {
  outline: 0;
  background: var(--gold-soft);
}

.airport-result span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.airport-result strong {
  color: var(--text);
  font-weight: 350;
  white-space: nowrap;
}

.airport-result small {
  color: var(--muted);
  font-size: 10px;
}

.airport-status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.destination-board {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.destination-board-rows {
  display: grid;
  gap: 5px;
}

.destination-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 43px;
  align-items: center;
  padding: 5px 8px;
  background: #d9d6d3;
  cursor: crosshair;
  transition: background-color 180ms ease;
}

.destination-row:hover,
.destination-row:focus-visible,
.destination-row.is-active {
  outline: 0;
  background: #c9c5c1;
}

.hover-destination-marker {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.hover-destination-marker img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(0);
  filter: grayscale(1) saturate(0);
  opacity: 0;
  transition:
    transform 560ms cubic-bezier(.18, .9, .3, 1.3),
    filter 680ms cubic-bezier(.22, .7, .3, 1),
    opacity 420ms ease;
}

.hover-destination-marker img.is-active {
  transform: scale(1);
  filter: grayscale(0) saturate(1);
  opacity: 1;
}

.destination-code-display {
  display: grid;
  grid-template-columns: repeat(var(--flap-count, 3), 22px);
  gap: 2px;
}

.destination-code-display .split-flap-cell {
  border-color: rgba(26, 26, 26, .12);
  background: linear-gradient(to bottom, #777471 0 49%, #696663 51% 100%);
  color: #f0edeb;
}

.destination-code-display .split-flap-cell::after {
  background: rgba(245, 241, 238, .22);
}

.destination-code-display .split-flap-outgoing {
  background: #777471;
}

.destination-code-display .split-flap-incoming {
  background: #696663;
}

.destination-details {
  display: grid;
  min-width: 0;
  gap: 2px;
  animation: destination-reveal 540ms cubic-bezier(.22, .75, .25, 1) calc(var(--row-delay) + 180ms) both;
}

.destination-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-details span {
  color: var(--label-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@keyframes destination-reveal {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jet-value-reveal {
  animation: jet-value-reveal 540ms cubic-bezier(.22, .75, .25, 1) var(--jet-value-delay, 0ms) both;
}

.jet-image-reveal {
  animation: jet-image-reveal 680ms cubic-bezier(.22, .75, .25, 1) both;
}

@keyframes jet-value-reveal {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jet-image-reveal {
  from {
    opacity: 0;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.airport-code-display {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(var(--flap-count, 3), 22px);
  gap: 2px;
  align-content: center;
  padding: 6px 0 6px 8px;
}

.split-flap-cell {
  position: relative;
  display: grid;
  width: 22px;
  height: 32px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(221, 203, 169, .35);
  background: linear-gradient(to bottom, #262626 0 49%, #151515 51% 100%);
  color: #ddcba9;
  perspective: 180px;
}

.split-flap-cell::after {
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  height: 1px;
  background: rgba(221, 203, 169, .28);
  content: "";
  z-index: 4;
}

.split-flap-base,
.split-flap-half > span {
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1;
}

.split-flap-base {
  position: absolute;
  inset: 0;
}

.split-flap-half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  z-index: 3;
}

.split-flap-half > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 32px;
}

.split-flap-outgoing {
  top: 0;
  background: #262626;
  transform-origin: bottom;
  animation: split-flap-fold 640ms cubic-bezier(.45, 0, .65, 1) var(--flap-delay) both;
}

.split-flap-outgoing > span {
  top: 0;
}

.split-flap-incoming {
  bottom: 0;
  background: #151515;
  transform-origin: top;
  animation: split-flap-unfold 640ms cubic-bezier(.25, .7, .3, 1) var(--flap-delay) both;
}

.split-flap-incoming > span {
  bottom: 0;
}

@keyframes split-flap-fold {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: rotateX(0);
  }
  48% {
    opacity: 1;
    box-shadow: 0 12px 12px rgba(0, 0, 0, .45);
    transform: rotateX(-90deg);
  }
  49%,
  100% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
}

@keyframes split-flap-unfold {
  0%,
  49% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  50% {
    opacity: 1;
    box-shadow: 0 -12px 12px rgba(0, 0, 0, .4);
    transform: rotateX(90deg);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: rotateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .split-flap-outgoing,
  .split-flap-incoming {
    animation: none;
  }

  .split-flap-outgoing {
    display: none;
  }

  .destination-details {
    animation: none;
  }

  .jet-value-reveal,
  .jet-image-reveal {
    animation: none;
  }

  .hover-destination-marker img {
    transition: none;
  }
}

.jet-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: var(--surface-light);
}

.stat-block {
  display: none;
}

.jet-card {
  grid-template-columns: repeat(3, 1fr);
}

.jet-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spec-item {
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 26, .18);
  border-radius: 0;
  background: transparent;
}

.spec-item-wide {
  grid-column: 1 / -1;
}

.spec-label {
  display: block;
  color: var(--label-text);
  font-size: 10px;
}

.jet-card strong,
.stat-block strong,
.spec-item strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 350;
}

.jet-card strong {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.spec-item-wide strong {
  margin-top: 0;
}

.spec-item strong {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.toggle-row {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 350;
}

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

.coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coordinate-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.reachable {
  display: none;
  margin-top: 18px;
}

.reachable ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.reachable li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 0;
  background: var(--surface-light);
  color: var(--text);
  font-size: 10px;
}

.reachable span:last-child {
  color: var(--text);
  white-space: nowrap;
}

.map-shell {
  position: absolute;
  inset: 0;
  min-width: 0;
}

.map-topbar {
  position: absolute;
  z-index: 8;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(26, 26, 26, .14);
  border-radius: 0;
  background: rgba(245, 241, 238, .9);
  box-shadow: 0 18px 54px rgba(18, 18, 18, .16), inset 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.map-topbar > div:first-child {
  display: none;
}

.map-topbar h2 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--label-text);
}

.origin-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.coverage-fill {
  width: 16px;
  height: 11px;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 236, 179, .42), rgba(194, 141, 55, .24));
}

.range-line {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6d889, #b9852d);
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071018;
}

#rangeMap {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.maplibregl-ctrl-group {
  border-radius: 0;
  overflow: hidden;
}

.maplibregl-ctrl-attrib {
  color: var(--text);
}

.map-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 241, 238, .96);
  color: var(--text);
  text-align: center;
  font-weight: 350;
}

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

  .panel {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    max-height: min(58vh, 620px);
    transform: none;
    padding: 18px 18px 20px;
  }

  .brand {
    gap: 12px;
    margin-bottom: 18px;
  }

  .panel-content {
    display: grid;
    gap: 18px;
  }

  .control-group {
    gap: 10px;
    margin-bottom: 0;
  }

  .aircraft-select-grid {
    gap: 12px;
  }

  .aircraft-select-field {
    gap: 6px;
  }

  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: inline;
  }

  .panel.is-collapsed {
    padding: 16px;
    max-height: min(42vh, 292px);
  }

  .panel.is-collapsed .brand {
    margin-bottom: 16px;
  }

  .panel.is-collapsed .panel-content {
    gap: 16px;
  }

  .panel.is-collapsed .control-group {
    gap: 10px;
  }

  .panel.is-collapsed .airport-status,
  .panel.is-collapsed .destination-board {
    display: none;
  }

  .panel.is-collapsed .control-group:has(#jetMakeSelect) {
    display: grid;
    gap: 10px;
  }

  .panel.is-collapsed .jet-profile,
  .panel.is-collapsed .jet-specs-panel {
    display: none;
  }

  .panel.is-collapsed .jet-specs-panel {
    max-height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .panel.is-collapsed .metrics-tag {
    display: block;
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
  }

  .panel.is-collapsed .jet-specs {
    grid-template-columns: 1fr;
    max-height: 0;
    gap: 0;
    opacity: 0;
    overflow: hidden;
  }

  .panel.is-collapsed .spec-item-wide {
    border: 0;
    max-height: 0;
    min-height: 0;
    padding: 0;
    opacity: 0;
  }

  .reachable {
    display: none;
  }

  .map-topbar {
    right: 16px;
    bottom: 16px;
    top: auto;
    left: 16px;
    max-width: none;
    padding: 10px 12px;
  }

  .legend {
    justify-content: center;
  }

  .maplibregl-ctrl-group {
    display: none;
  }

  #rangeMap {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 16px;
  }

  .jet-card,
  .coordinate-grid {
    grid-template-columns: 1fr;
  }

  .map-topbar h2 {
    font-size: 22px;
  }
}
