:root {
  --bg: #eef3f6;
  --panel: rgba(255, 255, 255, 0.96);
  --line: #d7e1e8;
  --text: #595959;
  --muted: #5e717d;
  --accent: #0d5a91;
  --accent-soft: #e3f0fb;
  --orange: #d97706;
  --shadow: 0 18px 40px rgba(16, 33, 45, 0.1);
  --panel-gap: 18px;
  --header-divider-inset: clamp(18px, 2.6vw, 34px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #eef3f6;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

button {
  font: inherit;
}

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

.app-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 22px clamp(18px, 2.6vw, 34px) 24px;
  flex: 1 0 auto;
}

.topbar {
  background: #d6dbe2;
  border-bottom: 1px solid rgba(171, 181, 192, 0.28);
}

.topbar__inner {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 2.6vw, 34px) 17px;
}

.topbar__inner,
.footerbar__inner {
  min-height: 84px;
}

.topbar__copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar__brand-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar__brand-button:hover,
.topbar__brand-button:focus-visible {
  outline: none;
  filter: brightness(1.02);
}

.topbar__logo {
  display: block;
  width: 430px;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.topbar__logo--desktop {
  display: block;
}

.topbar__logo--mobile {
  display: none;
}

.topbar__controls {
  display: grid;
  align-items: center;
  justify-items: end;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 14px;
}

.topbar__about-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  min-height: 38px;
  background: #a9adb3;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar__about-button:hover,
.topbar__about-button:focus-visible {
  background: #225c7e;
  box-shadow: 0 10px 18px rgba(16, 33, 45, 0.14);
  outline: none;
}

.topbar__social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a9adb3;
  color: #ffffff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar__social-link:hover,
.topbar__social-link:focus-visible {
  background: #225c7e;
  box-shadow: 0 10px 18px rgba(16, 33, 45, 0.14);
  outline: none;
}

.topbar__social-glyph {
  width: 20px;
  height: 20px;
  display: block;
  color: currentColor;
}

.topbar__social-glyph--wordmark {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1;
}

.topbar__social-glyph--linkedin {
  font-size: 1.07rem;
  letter-spacing: -0.03em;
}

.topbar__social-link--header {
  flex: 0 0 auto;
}

h1,
h2,
p,
ul {
  margin: 0.5em;
}

h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.subtitle,
.panel__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.subtitle--status {
  font-size: 0.96rem;
}

.topbar__status {
  margin-top: 0;
  text-align: right;
}

.topbar__status--hidden {
  display: none !important;
}

.topbar__status-strong {
  font-weight: 700;
  color: #225c7e;
}

.footerbar {
  background: #d6dbe2;
  border-top: 1px solid rgba(171, 181, 192, 0.28);
  flex-shrink: 0;
}

.footerbar__inner {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 18px clamp(18px, 2.6vw, 34px) 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}

.footerbar__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footerbar__social-link {
  flex: 0 0 auto;
}

.footerbar__text {
  color: #5e717d;
  font-size: 0.795rem;
  line-height: 1.4;
  text-align: center;
}

.footerbar__copyright,
.footerbar__credit {
  display: inline;
}

.footerbar__brand,
.footerbar__link {
  color: var(--accent);
  font-weight: 700;
}

.footerbar__brand {
  color: inherit;
  font-weight: 400;
}

.footerbar__link {
  text-decoration: none;
}

.footerbar__link:hover,
.footerbar__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 45, 0.48);
  backdrop-filter: blur(3px);
}

.lightbox__dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 225, 232, 0.92);
  box-shadow: 0 24px 52px rgba(16, 33, 45, 0.22);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #a9adb3;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lightbox__close-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.lightbox__close-icon::before,
.lightbox__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.lightbox__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: #0d5a91;
  outline: none;
}

.lightbox__title {
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lightbox__body {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lightbox__body a {
  color: #2a739e;
}

@media (min-width: 721px) {
  .footerbar {
    background: transparent;
    border-top: 0;
  }

  .footerbar__social {
    margin-top: 6px;
  }

  .topbar__inner {
    align-items: center;
    padding-left: clamp(28px, 4vw, 46px);
    padding-right: clamp(28px, 4vw, 46px);
  }

  .topbar__copy {
    flex: 0 0 auto;
    min-width: 320px;
  }

  .topbar__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
    text-align: right;
  }

  .topbar__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100%;
    padding-right: 18px;
    text-align: right;
  }

  .footerbar__inner {
    padding-left: clamp(28px, 4vw, 46px);
    padding-right: clamp(28px, 4vw, 46px);
    gap: 18px;
  }

  .topbar__logo--desktop {
    display: block !important;
    width: 284px;
    max-width: 100%;
  }

  .topbar__logo--mobile {
    display: none !important;
  }
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 380px);
  gap: var(--panel-gap);
  align-items: start;
}

.layout--has-below-panels .map-panel {
  height: clamp(576px, calc(100vh - 228px), 780px);
  min-height: 576px;
}

.layout__map-column {
  display: grid;
  gap: var(--panel-gap);
  align-content: start;
  min-width: 0;
}

.panel-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--panel-gap);
  align-items: start;
}

.panel-layout-grid[hidden] {
  display: none !important;
}

.panel-layout-column {
  display: grid;
  gap: var(--panel-gap);
  align-content: start;
  min-height: 0;
}

.map-panel,
.panel {
  background: var(--panel);
  border: 1px solid rgba(215, 225, 232, 0.92);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.map-panel {
  position: relative;
  overflow: hidden;
  height: clamp(672px, calc(100vh - 136px), 912px);
  min-height: 672px;
}

.map-panel--custom-height {
  height: auto;
}

.map-panel__controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 650;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.map-panel__button {
  appearance: none;
  border: 1px solid rgba(13, 90, 145, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.98);
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(16, 33, 45, 0.08);
  pointer-events: auto;
}

.map-panel__button:hover,
.map-panel__button:focus-visible {
  filter: brightness(1.02);
  outline: none;
}

.map-panel__resize-handle {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 650;
  width: 106px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(13, 90, 145, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(16, 33, 45, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  cursor: ns-resize;
  touch-action: none;
}

.map-panel__resize-handle:hover,
.map-panel__resize-handle:focus-visible {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 12px 24px rgba(16, 33, 45, 0.16);
  outline: none;
}

.map-panel__resize-handle[hidden] {
  display: none !important;
}

.map-panel__resize-grip {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(13, 90, 145, 0.34);
}

.map-panel--resizing,
.map-panel--resizing * {
  cursor: ns-resize !important;
  user-select: none;
}

.map-panel--scroll-priority .leaflet-container.leaflet-touch-zoom,
.map-panel--scroll-priority .leaflet-container.leaflet-touch-drag,
.map-panel--scroll-priority .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom,
.map-panel--scroll-priority .leaflet-container.leaflet-gesture-handling-touch {
  -ms-touch-action: pan-y pinch-zoom !important;
  touch-action: pan-y pinch-zoom !important;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-panel--custom-height .map {
  height: 100% !important;
  min-height: 0 !important;
}

.notice {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 640;
  width: min(560px, calc(100% - 36px));
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 16px;
  background: #b42318;
  color: #ffffff;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(16, 33, 45, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-hint {
  position: absolute;
  left: 50%;
  bottom: 45px;
  z-index: 635;
  width: auto;
  max-width: calc(100% - 40px);
  padding: 14px 45px 14px 25px;
  min-height: 54px;
  border-radius: 16px;
  background: rgba(56, 56, 56, 0.54);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(16, 33, 45, 0.14);
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-hint[hidden] {
  display: none !important;
}

.map-hint__text {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  font-size: 0.91rem;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
}

.map-hint__text strong {
  font-weight: 700;
  color: #ffffff;
  margin-left: 0.18em;
}

.map-hint__dismiss {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e08515;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 0.9;
  cursor: pointer;
  transform: translateY(-50%);
}

.map-hint__dismiss:hover,
.map-hint__dismiss:focus-visible {
  background: #d1760b;
  outline: none;
}

.map-panel:fullscreen,
.map-panel:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  border-radius: 0;
  margin: 0;
}

.map-panel:fullscreen .map,
.map-panel:-webkit-full-screen .map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-panel:fullscreen .map-panel__resize-handle,
.map-panel:-webkit-full-screen .map-panel__resize-handle {
  display: none !important;
}

.map-panel:fullscreen .map-hint,
.map-panel:-webkit-full-screen .map-hint {
  display: none !important;
}

.sidebar {
  display: grid;
  gap: var(--panel-gap);
  align-content: start;
}

@media (min-width: 1081px) {
  :root {
    --panel-gap: clamp(18px, 1.4vw, 20px);
  }
}

@media (min-width: 1800px) and (max-width: 2399px) and (min-height: 980px) {
  .app-shell,
  .topbar__inner,
  .footerbar__inner {
    width: 100%;
    max-width: none;
  }

  .layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(416px, 494px);
  }
}

@media (min-width: 2400px) and (min-height: 1300px) {
  :root {
    --panel-gap: clamp(36px, 2.2vw, 40px);
  }

  .topbar__inner {
    min-height: clamp(112px, calc(112px + (100vw - 2400px) * 0.35), 168px);
    padding-top: clamp(22px, calc(22px + (100vw - 2400px) * 0.05), 30px);
    padding-bottom: clamp(21px, calc(21px + (100vw - 2400px) * 0.05), 29px);
  }

  .app-shell {
    padding-top: var(--panel-gap);
  }

  .app-shell,
  .topbar__inner,
  .footerbar__inner {
    width: 100%;
    max-width: none;
  }

  .layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(448px, 532px);
  }

  .map-panel {
    height: clamp(1270px, calc(100vh - 72px), 1400px);
    min-height: 1270px;
  }

  .layout--has-below-panels .map-panel {
    height: clamp(1088px, calc(100vh - 128px), 1320px);
    min-height: 1088px;
  }

  .panel {
    padding: 27px;
  }

  .selected-empty,
  .selected-card,
  .rewind-time__card {
    padding: 24px;
  }

  .watch-card,
  .tracker-card {
    padding: 21px;
  }
}

.panel-layout-zone--show-empty.panel-layout-zone--empty::before {
  content: attr(data-empty-label);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px 18px;
  border: 1.5px dashed rgba(13, 90, 145, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.panel-layout-zone--active.panel-layout-zone--show-empty.panel-layout-zone--empty::before {
  border-color: rgba(13, 90, 145, 0.42);
  background: rgba(227, 240, 251, 0.72);
  color: var(--accent);
}

.sidebar__drop-slot {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: calc(2px + var(--sidebar-drop-offset, 0px));
  padding: 10px 16px;
  border: 1.5px dashed rgba(13, 90, 145, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}

.sidebar.panel-layout-zone--active .sidebar__drop-slot {
  border-color: rgba(13, 90, 145, 0.42);
  background: rgba(227, 240, 251, 0.72);
  color: var(--accent);
}

.panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.96)),
    var(--panel);
}

.panel[data-layout-panel="airport-selector"] {
  --watch-balance-gap: 0px;
}

.panel__heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.sidebar > .panel:first-child .panel__heading {
  margin-bottom: 18px;
}

.panel__heading-main {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.panel--movable {
  position: relative;
}

.panel__heading--movable {
  position: static;
}

.panel__heading--movable .panel__heading-main {
  padding-inline: 40px;
}

.panel__drag-handle {
  appearance: none;
  position: absolute;
  top: 3px;
  right: 17px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(94, 113, 125, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  cursor: grab;
  box-shadow: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.panel__drag-handle:hover,
.panel__drag-handle:focus-visible {
  color: var(--accent);
  outline: none;
}

.panel__drag-handle:active {
  cursor: grabbing;
}

.panel__drag-grip {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 8px 0 currentColor,
    8px 0 0 currentColor,
    8px 8px 0 currentColor,
    16px 0 0 currentColor,
    16px 8px 0 currentColor;
}

.panel--drag-source {
  opacity: 0.48;
}

.panel--drop-before {
  position: relative;
}

.panel--drop-before::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 18px;
  right: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(13, 90, 145, 0.9);
  box-shadow: 0 10px 20px rgba(13, 90, 145, 0.14);
}

.panel-layout-zone--drop-end {
  position: relative;
}

.panel-layout-zone--drop-end::after {
  content: "";
  display: block;
  height: 4px;
  margin: 6px 18px 0;
  border-radius: 999px;
  background: rgba(13, 90, 145, 0.9);
  box-shadow: 0 10px 20px rgba(13, 90, 145, 0.14);
}

  .panel h2 {
    font-size: 1em;
    margin-block: 0.3em;
  }

.selected-aircraft {
  display: grid;
  gap: 12px;
}

.rewind-time {
  display: grid;
  gap: 12px;
}

.selected-empty {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.99));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.selected-card {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.97)),
    var(--panel);
  border: 1px solid rgba(215, 225, 232, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(16, 33, 45, 0.05);
  display: grid;
  gap: 14px;
}

.selected-card--interactive {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.selected-card--interactive:hover,
.selected-card--interactive:focus-within {
  border-color: rgba(13, 90, 145, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(16, 33, 45, 0.08);
}

.selected-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(215, 225, 232, 0.84);
}

.selected-card--collapsed .selected-card__head {
  padding-bottom: 0;
  border-bottom: none;
}

.selected-card__head-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.selected-card__identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.selected-card__titles {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.selected-card__code {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.selected-card__name {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.selected-card__chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.selected-card__remove {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.selected-card__remove:hover,
.selected-card__remove:focus-visible {
  background: rgba(249, 239, 225, 0.96);
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: 0 8px 18px rgba(16, 33, 45, 0.08);
  outline: none;
}

.selected-card__remove-icon {
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.selected-card__toggle {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 85, 135, 0.18);
  border-radius: 999px;
  background: #2a739e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.selected-card__toggle:hover,
.selected-card__toggle:focus-visible {
  background: #0d4d7b;
  box-shadow: 0 8px 18px rgba(16, 33, 45, 0.08);
  outline: none;
}

.selected-card__toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.selected-card__toggle.is-expanded {
  background: #e08515;
  border-color: rgba(224, 133, 21, 0.28);
}

.selected-card__toggle.is-expanded:hover,
.selected-card__toggle.is-expanded:focus-visible {
  background: #d1760b;
}

.selected-card__toggle.is-expanded .selected-card__toggle-icon {
  transform: rotate(180deg);
}

.data-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-chip__rewind-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.data-chip__rewind-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid currentColor;
  opacity: 0.95;
}

.data-chip__rewind-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 7px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid currentColor;
}

.data-chip--live {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(13, 90, 145, 0.14);
}

.data-chip--last-live {
  color: #2c5d86;
  background: #e7eef5;
  border-color: rgba(44, 93, 134, 0.16);
}

.data-chip--rewind {
  color: #245d81;
  background: #e8f1f8;
  border-color: rgba(36, 93, 129, 0.18);
}

.data-chip--fixture {
  color: #7c5c30;
  background: #f9efe1;
  border-color: rgba(124, 92, 48, 0.14);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip--air {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-chip--ground {
  background: #f9efe1;
  color: #7c5c30;
}

.selected-card__grid {
  display: grid;
  gap: 10px;
}

.selected-card__location-group {
  display: grid;
  gap: 2px;
}

.selected-card__meta,
.selected-card__status,
.selected-card__route,
.selected-card__position,
.selected-card__callsign,
.selected-card__eta-row,
.selected-card__contact,
.selected-card__source,
.selected-card__summary,
.selected-card__eta-label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.selected-card__inline-label {
  font-weight: 500;
}

.selected-card__status strong,
.selected-card__route strong,
.selected-card__position strong,
.selected-card__callsign strong,
.selected-card__eta-row strong,
.selected-card__contact strong,
.selected-card__source strong {
  color: var(--accent);
  font-weight: 700;
}

.selected-card__eta-row--empty strong {
  color: var(--muted);
}

.selected-card__summary {
  margin: 0;
}

.rewind-time__card {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.97)),
    var(--panel);
  border: 1px solid rgba(215, 225, 232, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(16, 33, 45, 0.05);
  display: grid;
  gap: 10px;
}

.rewind-time__summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rewind-time__summary {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.rewind-time__summary strong {
  color: var(--text);
  font-weight: 700;
}

.rewind-time__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.rewind-time__action {
  appearance: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(13, 90, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rewind-time__action:hover,
.rewind-time__action:focus-visible {
  border-color: rgba(13, 90, 145, 0.28);
  background: rgba(227, 240, 251, 0.82);
  box-shadow: 0 8px 18px rgba(16, 33, 45, 0.08);
  outline: none;
}

.rewind-time__action:disabled {
  cursor: default;
  opacity: 0.46;
  box-shadow: none;
}

.rewind-time__action.is-active {
  background: #2a739e;
  border-color: rgba(0, 85, 135, 0.28);
  color: #ffffff;
}

.rewind-time__action-icon {
  display: block;
}

.rewind-time__action-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
  overflow: visible;
}

.rewind-time__action-icon-svg--clock {
  width: 14.5px;
  height: 14.5px;
}

.rewind-time__action-icon-svg--mode {
  width: 15px;
  height: 15px;
}

.rewind-time__action-icon--play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.rewind-time__action-icon--stop {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
}

.rewind-time__action-icon--loop {
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-0.5px);
}

.rewind-time__empty {
  margin-top: 12px;
}

.rewind-time__slider-wrap {
  padding-inline: 2px;
  margin-bottom: -5px;
}

.rewind-time__slider {
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  touch-action: none;
}

.rewind-time__slider:disabled {
  cursor: default;
  opacity: 0.56;
}

.rewind-time__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #c7cfd7;
}

.rewind-time__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #2a739e;
  box-shadow: none;
}

.rewind-time__slider::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #c7cfd7;
}

.rewind-time__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: #2a739e;
  box-shadow: none;
}

.rewind-time__slider:focus {
  outline: none;
}

.rewind-time__slider:focus::-webkit-slider-thumb,
.rewind-time__slider:focus::-moz-range-thumb {
  outline: none;
  box-shadow: none;
}

@media (pointer: coarse) {
  .rewind-time__slider {
    height: 30px;
  }

  .rewind-time__slider::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
  }

  .rewind-time__slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
}

.rewind-time__scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.rewind-time__scale-label {
  white-space: nowrap;
}

.rewind-time__scale-label:nth-child(2) {
  text-align: center;
}

.rewind-time__scale-label--now {
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.feature-summary {
  display: grid;
  gap: 12px;
}

.watch-card,
.tracker-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.99));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.watch-card {
  display: grid;
  gap: 6px;
}

.watch-summary-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.watch-summary-card:hover,
.watch-summary-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(13, 90, 145, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(16, 33, 45, 0.08);
}

.watch-card--collapsed {
  gap: 10px;
}

.watch-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.watch-card__identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.watch-card__titles {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-bottom: 8px;
}

.watch-card__code {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.watch-card__name {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.watch-card__head-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.watch-card__summary,
.watch-card__row,
.tracker-card__note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.watch-card__summary {
  margin-top: 0;
  font-weight: 400;
  line-height: 1.5;
}

.watch-card__label {
  font-weight: 500;
}

.watch-card__summary strong,
.watch-card__row strong,
.tracker-card__note strong {
  font-weight: 700;
}

.watch-card__summary strong {
  color: inherit;
}

.watch-card__row strong,
.tracker-card__note strong {
  color: var(--accent);
}

.tracker-card {
  display: grid;
  gap: 8px;
}

.tracker-card__countdown {
  color: var(--accent);
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.selected-card--allowance {
  display: grid;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.selected-card__allowance-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.tracker-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tracker-update-countdown {
  color: var(--accent);
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.tracker-update-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tracker-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tracker-mode-badge--slow {
  color: #35556f;
  background: #e8eff4;
  border-color: rgba(53, 85, 111, 0.14);
}

.tracker-mode-badge--super-slow {
  color: #5a4f3a;
  background: #f5efe2;
  border-color: rgba(90, 79, 58, 0.16);
}

.tracker-mode-badge--medium {
  color: #0d5a91;
  background: #e0f0fb;
  border-color: rgba(13, 90, 145, 0.14);
}

.tracker-mode-badge--fast {
  color: #b42318;
  background: #fde7e5;
  border-color: rgba(180, 35, 24, 0.16);
}

.watch-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.watch-actions + .feature-summary {
  margin-top: 0;
}

.watch-config {
  position: relative;
  width: 100%;
}

.watch-config__button,
.watch-alert-button {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 16px;
  background: #2a739e;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 90, 145, 0.18);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.watch-config__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.watch-config__button:hover,
.watch-config__button:focus-visible,
.watch-alert-button:hover,
.watch-alert-button:focus-visible {
  background: #225c7e;
  box-shadow: 0 10px 20px rgba(16, 33, 45, 0.09);
  outline: none;
}

.watch-alert-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: 0 10px 22px rgba(13, 90, 145, 0.12);
}

.watch-config__button-label {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.watch-config__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 720;
  width: min(320px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.98));
  box-shadow: 0 18px 36px rgba(16, 33, 45, 0.14);
  display: grid;
  gap: 14px;
}

.watch-config__menu[hidden] {
  display: none !important;
}

.watch-config__section {
  display: grid;
  gap: 10px;
}

.watch-config__section-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-config__options {
  display: grid;
  gap: 8px;
}

.watch-config__option,
.watch-config__pill {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 250, 252, 0.98);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.watch-config__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.watch-config__option input,
.watch-config__pill input {
  accent-color: var(--accent);
}

.watch-config__option.is-selected,
.watch-config__pill.is-selected {
  border-color: rgba(13, 90, 145, 0.28);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 20px rgba(13, 90, 145, 0.08);
}

.watch-config__option-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.watch-config__options--distance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watch-config__helper {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.watch-config__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.96);
  cursor: pointer;
}

.watch-config__toggle-copy {
  display: grid;
  gap: 2px;
}

.watch-config__toggle-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.watch-config__toggle-state {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.watch-config__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.watch-config__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.watch-config__switch-track {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(181, 191, 201, 0.9);
  transition: background-color 0.18s ease;
}

.watch-config__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 33, 45, 0.18);
  transition: transform 0.18s ease;
}

.watch-config__switch input:checked + .watch-config__switch-track {
  background: #2a739e;
}

.watch-config__switch input:checked + .watch-config__switch-track::after {
  transform: translateX(20px);
}

.watch-config__switch input:focus-visible + .watch-config__switch-track {
  outline: 2px solid rgba(13, 90, 145, 0.26);
  outline-offset: 2px;
}

.watch-config__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
}

.watch-config__pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.watch-config__pill span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.watch-config__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.watch-config__action {
  appearance: none;
  min-width: 74px;
  padding: 9px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a739e 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 90, 145, 0.18);
}

.watch-config__action--secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.98));
  color: var(--accent);
  border: 1px solid rgba(13, 90, 145, 0.16);
  box-shadow: 0 8px 18px rgba(16, 33, 45, 0.08);
}

.watch-config__action:hover,
.watch-config__action:focus-visible {
  filter: brightness(1.04);
  outline: none;
}

.watch-config__action:not(.watch-config__action--secondary):hover,
.watch-config__action:not(.watch-config__action--secondary):focus-visible {
  background: #225c7e;
  filter: none;
}

.feature-summary__empty {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.99));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.feature-summary__note {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.9), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(215, 225, 232, 0.9);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.watch-alert-button--armed {
  background: #e08515;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(224, 133, 21, 0.22);
}

.watch-alert-button--armed:hover,
.watch-alert-button--armed:focus-visible {
  background: #d1760b;
}

.watch-notification {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 90, 145, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(16, 33, 45, 0.18);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.watch-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.watch-notification__title {
  color: #2a739e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-notification__text {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.watch-notification__text strong {
  color: var(--text);
}

.watch-notification__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(224, 133, 21, 0.12);
  color: #b66607;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .watch-notification {
    right: 12px;
    left: 12px;
    bottom: 14px;
    width: auto;
    padding: 12px 14px;
  }
}

.notes-list {
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.45;
}

.leaflet-container {
  background: #dfe8ef;
}

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

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  box-shadow: 0 16px 32px rgba(16, 33, 45, 0.14);
}

.leaflet-popup-content {
  margin: 14px 16px;
}

.leaflet-popup-close-button {
  top: 8px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  color: #5e717d !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  text-align: center;
  font-family: inherit;
  background: rgba(241, 245, 249, 0.96);
  box-shadow: 0 6px 14px rgba(16, 33, 45, 0.1);
}

.leaflet-popup-close-button {
  right: 13px !important;
  top: 13px !important;
}

.leaflet-popup-close-button:hover,
.leaflet-popup-close-button:focus-visible {
  color: var(--accent) !important;
  background: rgba(227, 240, 251, 0.96);
  outline: none;
}

.map-popup {
  display: grid;
  gap: 4px;
  min-width: 224px;
  position: relative;
  padding-right: 40px;
}

.map-popup__add-button {
  appearance: none;
  position: absolute;
  top: -1px;
  right: 33px;
  min-width: 40px;
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #5e717d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 33, 45, 0.1);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-popup__add-button:hover,
.map-popup__add-button:focus-visible {
  color: var(--accent);
  background: rgba(227, 240, 251, 0.96);
  outline: none;
}

.map-popup__add-button.is-active {
  color: #ffffff !important;
  background: var(--orange) !important;
}

.map-popup__add-button-label {
  display: inline-block;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: center;
  transform: translateY(1.5px);
}

.map-popup__title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.map-popup__code {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-popup__details {
  display: grid;
  gap: 3px;
}

.map-popup__row {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.28;
}

.map-popup__label {
  color: var(--text);
  font-weight: 500;
}

.map-popup__value {
  color: var(--accent);
  font-weight: 400;
}

.site-marker {
  width: 18px;
  height: 18px;
  position: relative;
}

.site-marker__core {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.site-marker--primary .site-marker__core {
  background: #dc2626;
}

.site-marker--support .site-marker__core {
  background: var(--accent);
}

.beluga-marker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.plane-icon {
  width: 85px;
  min-height: 52px;
  padding: 6px 8px 6px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 33, 45, 0.2);
  position: relative;
  isolation: isolate;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.plane-icon,
.plane-icon::after,
.plane-icon * {
  pointer-events: none;
}

.plane-icon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) rotate(45deg);
  border-bottom-right-radius: 4px;
}

.plane-icon__badge {
  position: absolute;
  top: -15px;
  right: -4px;
  z-index: 2;
  min-width: 58px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border: 1px solid rgba(214, 224, 231, 0.95);
  box-shadow: 0 8px 18px rgba(16, 33, 45, 0.14);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.plane-icon__code,
.plane-icon__meta {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.plane-icon__code {
  display: block;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  letter-spacing: -0.01em;
  transform: translateY(2px);
}

.plane-icon__meta {
  max-width: 100%;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.plane-icon--air {
  background: linear-gradient(180deg, #2a739e 0%, #2a739e 100%);
}

.plane-icon--ground {
  background: linear-gradient(180deg, #f0a432 0%, var(--orange) 100%);
}

@media (max-width: 1080px) {
  .app-shell {
    padding-top: 14px;
    padding-inline: clamp(22px, 4vw, 40px);
  }

  .layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .layout__map-column {
    display: contents;
  }

  .layout > .layout__map-column,
  .layout > .sidebar {
    width: min(100%, 980px);
    margin-inline: auto;
  }

  .sidebar__drop-slot {
    display: none !important;
  }

  .layout__map-column > .map-panel {
    width: 100%;
  }

  .panel-layout-grid {
    display: none !important;
  }

  .panel__drag-handle {
    display: none !important;
  }

  .topbar__inner {
    display: flex;
    gap: 14px;
  }

  .topbar__controls {
    justify-items: end;
  }

  .map-panel,
  .map {
    min-height: 70vh;
    height: 70vh;
  }
}

@media (min-width: 1081px) {
  .sidebar__drop-slot {
    display: flex;
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  :root {
    --header-divider-inset: clamp(26px, 4.5vw, 46px);
  }

  .app-shell {
    padding-inline: clamp(26px, 4.5vw, 46px);
  }
}

@media (min-width: 1081px) and (max-width: 1380px) {
  .rewind-time__summary-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .rewind-time__summary {
    white-space: normal;
    flex-basis: 100%;
  }

  .rewind-time__actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 21px;
  }

  .topbar__copy {
    min-width: 0;
  }

  .topbar__logo--desktop {
    display: block !important;
    visibility: visible;
    opacity: 1;
    width: min(41.5vw, 335px);
  }

  .topbar__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    min-height: 100%;
    gap: 16px;
    padding-left: 8px;
  }

  .topbar__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100%;
    margin: 0;
    padding-left: 8px;
    text-align: right;
    font-size: 0.9rem;
  }

  .topbar__about-button,
  .topbar__social-link--header {
    background: #a9adb3;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .topbar__about-button:hover,
  .topbar__about-button:focus-visible,
  .topbar__social-link--header:hover,
  .topbar__social-link--header:focus-visible {
    background: #225c7e;
    color: #ffffff;
  }

  .watch-actions {
    justify-items: center;
  }

  .watch-config,
  .watch-alert-button {
    width: min(100%, 500px);
  }

  .topbar--tablet-status-docked {
    background: transparent;
    border-bottom: 0;
  }

  .topbar__inner--tablet-status-docked {
    position: relative;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 54px;
    background: transparent;
    border-bottom: 0;
  }

  .topbar__inner--tablet-status-docked .topbar__copy {
    align-self: center;
    transform: none;
  }

  .topbar__inner--tablet-status-docked .topbar__logo--desktop {
    display: block !important;
    width: min(41.5vw, 335px);
  }

  .topbar--tablet-status-docked .topbar__logo--mobile {
    display: none !important;
  }

  .topbar__controls--tablet-status-docked {
    position: relative;
    align-self: center;
    min-height: 0;
    gap: 12px;
    padding-left: 0;
  }

  .topbar--tablet-status-docked .topbar__about-button,
  .topbar--tablet-status-docked .topbar__social-link--header {
    box-shadow: 0 8px 18px rgba(16, 33, 45, 0.08);
  }

  .topbar__inner--tablet-status-docked .topbar__status {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.1;
  }

  .topbar__inner--tablet-status-docked .topbar__status-strong {
    color: #225c7e;
  }

  .footerbar__inner {
    min-height: 94px;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 20px;
  }

  .footerbar__social {
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .footerbar__text {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .footerbar__copyright,
  .footerbar__credit {
    display: block;
  }
}

@media (min-width: 980px) and (max-width: 1060px) and (min-height: 1280px) and (orientation: portrait) {
  :root {
    --panel-gap: 18px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    align-items: start;
  }

  .layout__map-column {
    display: grid;
  }

  .layout > .layout__map-column,
  .layout > .sidebar {
    width: auto;
    margin-inline: 0;
  }

  .layout__map-column > .map-panel {
    width: 100%;
  }

  .panel-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel__drag-handle {
    display: inline-flex !important;
  }

  .sidebar__drop-slot {
    display: flex !important;
  }

  .map-panel {
    height: clamp(600px, calc(100vh - 280px), 760px);
    min-height: 600px;
  }

  .layout--has-below-panels .map-panel {
    height: clamp(520px, calc(100vh - 390px), 700px);
    min-height: 520px;
  }

  .map {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .watch-summary-card {
    display: none;
  }

  .app-shell {
    width: calc(100vw - 12px);
    padding: 0 0 24px;
  }

  .topbar {
    background: transparent;
    border-bottom: 1px solid rgba(171, 181, 192, 0.28);
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-items: center;
    overflow: hidden;
    background: transparent;
  }

  .topbar__copy {
    width: 100%;
    display: block;
    padding: 21px 16px 12px;
    align-items: initial;
    text-align: center;
    background: transparent;
  }

  .topbar__controls {
    width: 100%;
    text-align: center;
    justify-items: center;
    justify-self: center;
  }

  .topbar__actions {
    display: none !important;
  }

  .topbar__logo--desktop {
    display: block !important;
    width: min(69vw, 308px);
    min-width: 258px;
    max-width: 100%;
    margin: 0 auto;
  }

  .topbar__logo--mobile {
    display: none !important;
  }

  .map-popup__add-button {
    top: -3px;
  }

  .topbar__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    position: relative;
    top: 0;
    margin-bottom: 0;
  }

  .topbar__controls::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(171, 181, 192, 0.18);
    pointer-events: none;
  }

  .topbar__status {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0 auto;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    background: #ffffff;
    border: 0;
    box-shadow: none;
    color: rgba(54, 63, 71, 0.92);
    font-size: 0.88rem;
    line-height: 1;
  }

  .topbar__status-strong {
    color: #225c7e;
  }

  .map-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .map {
    min-height: 330px;
    height: calc(55svh - 15px);
    display: block;
  }

  .map-panel__controls {
    top: 10px;
    bottom: auto;
    right: 10px;
    gap: 6px;
  }

  .map-panel__button {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .map-panel__resize-handle {
    display: none !important;
  }

  .map-hint {
    left: 50%;
    right: auto;
    bottom: 45px;
    width: auto;
    max-width: calc(100% - 40px);
  }

  .watch-config__menu {
    position: static;
    width: 100%;
  }

  .map-popup {
    min-width: 0;
  }

  .panel__heading,
  .panel__heading-main {
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

.panel h2 {
  font-size: 1em;
}

  .footerbar__inner {
    min-height: 58px;
    padding: 18px 16px 24px;
  }

  .footerbar__social {
    gap: 13px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .footerbar__social-link {
    width: 44px;
    height: 44px;
  }

  .footerbar__social .topbar__social-glyph {
    width: 23px;
    height: 23px;
  }

  .footerbar__social .topbar__social-glyph--wordmark {
    font-size: 1.3rem;
  }

  .footerbar__social .topbar__social-glyph--linkedin {
    font-size: 1.22rem;
  }

  .footerbar__text {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .footerbar__copyright,
  .footerbar__credit {
    display: block;
  }

}

@media (min-width: 721px) {
  .map-hint {
    display: none !important;
  }

  .topbar {
    background: transparent;
    border-bottom: 0;
  }

  .topbar__inner {
    position: relative;
    background: transparent;
    border-bottom: 0;
  }

  .topbar__inner::after {
    content: "";
    position: absolute;
    left: var(--header-divider-inset);
    right: var(--header-divider-inset);
    bottom: 0;
    height: 1px;
    background: rgba(137, 145, 154, 0.38);
    pointer-events: none;
  }
}

@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .watch-summary-card {
    display: none;
  }

  .app-shell {
    width: calc(100vw - 12px);
    padding-top: 0;
  }

  .topbar {
    background: transparent;
    border-bottom: 1px solid rgba(171, 181, 192, 0.28);
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    gap: 14px;
    overflow: hidden;
    border-bottom: 0;
    background: transparent;
  }

  .topbar__inner::after {
    display: none;
  }

  .topbar__copy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: left;
    background: transparent;
  }

  .topbar__logo {
    width: min(32vw, 224px);
    min-width: 154px;
    margin: 0;
  }

  .topbar__logo--desktop {
    display: block !important;
  }

  .topbar__logo--mobile {
    display: none !important;
  }

  .topbar__controls {
    display: flex;
    width: auto;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
    min-height: 100%;
    background: transparent;
  }

  .topbar__actions {
    display: none !important;
  }

  .topbar__status {
    display: flex;
    width: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
    color: rgba(54, 63, 71, 0.92);
    font-size: 0.82rem;
    line-height: 1;
  }

  .topbar__status-strong {
    color: #225c7e;
  }

  .map-panel {
    height: 77svh;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .map-panel__resize-handle {
    display: none !important;
  }

  .footerbar__text {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
  }

  .footerbar__copyright,
  .footerbar__credit {
    display: block;
  }
}
