body.page--flightmap3d {
  margin: 0;
  overflow: hidden;
  background: #05070a;
}

body.is-flightmap-3d-chart-resizing {
  cursor: ns-resize;
  user-select: none;
}

body.page--flightmap3d .main-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

body.page--flightmap3d .main-shell__nav,
body.page--flightmap3d .tra-nav-footer,
body.page--flightmap3d .site-footer,
body.page--flightmap3d .sponsor-banner,
body.page--flightmap3d #cookie-hint {
  display: none !important;
}

body.page--flightmap3d .main-shell__content,
body.page--flightmap3d .view-routing {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.flightmap-3d-root {
  --replay-panel: rgba(17, 24, 39, 0.86);
  --replay-panel-strong: rgba(8, 13, 23, 0.9);
  --replay-border: rgba(255, 255, 255, 0.16);
  --replay-text: #f8fafc;
  --replay-muted: rgba(248, 250, 252, 0.72);
  --replay-accent: #1d87f8;
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #05070a;
  color: var(--replay-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flightmap-3d-viewer,
.flightmap-3d-viewer .cesium-viewer,
.flightmap-3d-viewer .cesium-viewer-cesiumWidgetContainer,
.flightmap-3d-viewer .cesium-widget,
.flightmap-3d-viewer canvas {
  width: 100%;
  height: 100%;
}

.flightmap-3d-viewer .cesium-viewer-bottom {
  bottom: 100px;
}

.flightmap-3d-panel {
  position: absolute;
  top: 8px;
  left: 8px;
  width: min(340px, calc(100vw - 16px));
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  display: flex;
  flex-direction: column;
  background: var(--replay-panel);
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  overflow: hidden;
  z-index: 4;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.flightmap-3d-panel.is-collapsed {
  display: none;
}

.flightmap-3d-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--replay-border);
}

.flightmap-3d-panel__title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.flightmap-3d-panel__subtitle {
  margin-top: 3px;
  color: var(--replay-muted);
  font-size: 12px;
  line-height: 1.2;
}

.flightmap-3d-panel__link,
.flightmap-3d-panel-toggle,
.flightmap-3d-icon-btn,
.flightmap-3d-speed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--replay-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--replay-text);
  cursor: pointer;
}

.flightmap-3d-panel__link {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  text-decoration: none;
}

.flightmap-3d-panel__actions {
  padding: 8px;
  border-bottom: 1px solid var(--replay-border);
}

.flightmap-3d-panel__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--replay-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.flightmap-3d-panel__action:hover,
.flightmap-3d-panel__action:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

.flightmap-3d-search {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid var(--replay-border);
  flex: 0 0 auto;
  min-height: 0;
}

.flightmap-3d-search__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--replay-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.flightmap-3d-search__toggle span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.flightmap-3d-search__toggle-icon {
  color: var(--replay-muted);
  font-size: 11px;
  transition: transform 0.18s ease;
}

.flightmap-3d-search:not(.is-collapsed) .flightmap-3d-search__toggle-icon {
  transform: rotate(180deg);
}

.flightmap-3d-search__content {
  display: grid;
  gap: 7px;
  padding-top: 7px;
}

.flightmap-3d-search__content[hidden] {
  display: none;
}

.flightmap-3d-search__form {
  display: grid;
  gap: 5px;
}

.flightmap-3d-search__form label {
  color: var(--replay-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.flightmap-3d-search__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
}

.flightmap-3d-search__input-row input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--replay-text);
  font: inherit;
  font-size: 12px;
  padding: 7px 9px;
}

.flightmap-3d-search__input-row input::placeholder {
  color: rgba(248, 250, 252, 0.48);
}

.flightmap-3d-search__input-row button,
.flightmap-3d-search-result__load,
.flightmap-3d-track-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--replay-text);
  cursor: pointer;
}

.flightmap-3d-search__input-row button {
  min-height: 34px;
}

.flightmap-3d-search__toggle:hover,
.flightmap-3d-search__toggle:focus-visible,
.flightmap-3d-search__input-row button:hover,
.flightmap-3d-search__input-row button:focus-visible,
.flightmap-3d-search-result__load:hover,
.flightmap-3d-search-result__load:focus-visible,
.flightmap-3d-track-remove:hover,
.flightmap-3d-track-remove:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.flightmap-3d-search__status {
  color: var(--replay-muted);
  font-size: 11px;
  line-height: 1.25;
}

.flightmap-3d-search__status.is-error {
  color: #fecaca;
}

.flightmap-3d-search__results {
  display: grid;
  gap: 6px;
  max-height: 156px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.flightmap-3d-search__suggestions {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.flightmap-3d-search__suggestions:empty {
  display: none;
}

.flightmap-3d-search__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
  color: var(--replay-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.flightmap-3d-search-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.flightmap-3d-search-result__distance {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.flightmap-3d-search-result__distance img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.flightmap-3d-search-result__main,
.flightmap-3d-search-result__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightmap-3d-search-result__main {
  color: var(--replay-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.flightmap-3d-search-result__meta {
  margin-top: 3px;
  color: var(--replay-muted);
  font-size: 11px;
  line-height: 1.2;
}

.flightmap-3d-search-result__load {
  width: 28px;
  height: 28px;
}

.flightmap-3d-search-result__load[disabled] {
  cursor: default;
  opacity: 0.48;
}

.flightmap-3d-track-remove {
  width: 22px;
  height: 22px;
  color: #fecaca;
}

.flightmap-3d-panel-toggle {
  position: absolute;
  top: 8px;
  left: 356px;
  z-index: 6;
  width: auto;
  max-width: min(180px, calc(100vw - 364px));
  min-width: 40px;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 0 10px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.flightmap-3d-panel-toggle__label {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightmap-3d-root.is-panel-collapsed .flightmap-3d-panel-toggle {
  left: 8px;
  max-width: min(180px, calc(100vw - 16px));
}

.flightmap-3d-panel-toggle:hover,
.flightmap-3d-panel-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.flightmap-3d-tracklist {
  overflow: auto;
  padding: 8px;
  min-height: 0;
}

.flightmap-3d-track-section + .flightmap-3d-track-section {
  margin-top: 10px;
}

.flightmap-3d-track-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 2px 7px;
  color: var(--replay-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flightmap-3d-track-section__header > span:first-child {
  margin-right: auto;
}

.flightmap-3d-track-section__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flightmap-3d-track-section__title i {
  min-width: 13px;
  color: var(--replay-accent);
  text-align: center;
}

.flightmap-3d-track-section__header label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--replay-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.flightmap-3d-track-section__toggle {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--replay-text);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  text-transform: none;
}

.flightmap-3d-track-row {
  display: grid;
  grid-template-columns: 18px 14px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--replay-text);
}

.flightmap-3d-track-row.is-active {
  background: rgba(29, 135, 248, 0.18);
  box-shadow: inset 3px 0 0 var(--replay-accent);
}

.flightmap-3d-track-row + .flightmap-3d-track-row {
  margin-top: 6px;
}

.flightmap-3d-track-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.flightmap-3d-track-color {
  width: 14px;
  height: 8px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.flightmap-3d-track-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.flightmap-3d-track-meta {
  margin-top: 2px;
  color: var(--replay-muted);
  font-size: 11px;
  line-height: 1.2;
}

.flightmap-3d-track-state {
  color: var(--replay-muted);
  text-align: right;
  font-size: 11px;
}

.flightmap-3d-info-stack {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 3;
}

.flightmap-3d-color-control {
  display: grid;
  gap: 8px;
  min-width: 258px;
  padding: 8px 10px;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: var(--replay-panel);
  backdrop-filter: blur(14px);
  color: var(--replay-text);
  font-size: 12px;
  font-weight: 800;
}

.flightmap-3d-color-control__row {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 8px;
}

.flightmap-3d-color-control__label,
.flightmap-3d-legend-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.flightmap-3d-color-control select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.94);
  color: var(--replay-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.flightmap-3d-legend-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--replay-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.flightmap-3d-legend-toggle:hover,
.flightmap-3d-legend-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.flightmap-3d-legend-toggle__icon {
  font-size: 11px;
  color: var(--replay-muted);
}

.flightmap-3d-color-legend[hidden] {
  display: none;
}

.flightmap-3d-color-legend {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--replay-border);
}

.flightmap-3d-color-legend__title {
  color: var(--replay-muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.flightmap-3d-color-legend__items {
  display: grid;
  gap: 6px;
}

.flightmap-3d-color-legend__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 18px;
  color: var(--replay-text);
  font-size: 11px;
  line-height: 1.25;
}

.flightmap-3d-color-legend__swatches {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.flightmap-3d-color-legend__swatch {
  display: inline-block;
  width: 14px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: var(--legend-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flightmap-3d-color-legend__label {
  min-width: 0;
}

.flightmap-3d-readout {
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: var(--replay-panel);
  backdrop-filter: blur(14px);
  text-align: right;
}

.flightmap-3d-readout__time {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.flightmap-3d-readout__metrics {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  color: var(--replay-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.flightmap-3d-nav-control {
  position: static;
  display: grid;
  align-self: flex-end;
  justify-items: center;
  gap: 10px;
  pointer-events: auto;
}

.flightmap-3d-nav-compass {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 250, 252, 0.94);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.flightmap-3d-nav-compass__rings,
.flightmap-3d-nav-compass__rings::before,
.flightmap-3d-nav-compass__rings::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(248, 250, 252, 0.56);
  border-radius: 999px;
  content: "";
}

.flightmap-3d-nav-compass__rings::before {
  inset: 15px;
}

.flightmap-3d-nav-compass__rings::after {
  inset: 31px;
  background:
    linear-gradient(rgba(248, 250, 252, 0.56), rgba(248, 250, 252, 0.56)) center/1px 42px no-repeat,
    linear-gradient(90deg, rgba(248, 250, 252, 0.56), rgba(248, 250, 252, 0.56)) center/42px 1px no-repeat;
}

.flightmap-3d-nav-compass__north {
  position: absolute;
  top: -2px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.flightmap-3d-nav-compass i {
  position: relative;
  z-index: 1;
  font-size: 22px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.46);
}

.flightmap-3d-nav-control__stack {
  display: grid;
  width: 34px;
  border: 1px solid rgba(248, 250, 252, 0.34);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.22);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.flightmap-3d-nav-button {
  display: inline-flex;
  width: 32px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.26);
  background: transparent;
  color: rgba(248, 250, 252, 0.94);
  font-size: 14px;
  cursor: pointer;
}

.flightmap-3d-nav-button:last-child {
  border-bottom: 0;
}

.flightmap-3d-nav-compass:hover,
.flightmap-3d-nav-compass:focus-visible,
.flightmap-3d-nav-button:hover,
.flightmap-3d-nav-button:focus-visible {
  color: #fff;
  outline: none;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.68);
}

.flightmap-3d-chart-wrap {
  position: absolute;
  right: 24px;
  bottom: 56px;
  left: 24px;
  height: 230px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.18), rgba(7, 11, 18, 0.62));
  pointer-events: auto;
}

.flightmap-3d-chart-resize {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: rgba(7, 11, 18, 0.78);
  color: rgba(248, 250, 252, 0.88);
  cursor: ns-resize;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  touch-action: none;
}

.flightmap-3d-chart-resize:hover,
.flightmap-3d-chart-resize:focus-visible {
  color: #fff;
  outline: none;
  border-color: rgba(255, 255, 255, 0.46);
}

.flightmap-3d-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.flightmap-3d-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 34px) minmax(120px, 1fr) 32px 48px 32px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 14px;
  background: rgba(7, 11, 18, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.flightmap-3d-icon-btn,
.flightmap-3d-speed-btn {
  height: 32px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.flightmap-3d-icon-btn[aria-pressed="true"] {
  color: #111827;
  background: #f8fafc;
}

.flightmap-3d-scrubber {
  width: 100%;
  accent-color: var(--replay-accent);
}

.flightmap-3d-speed {
  color: var(--replay-text);
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.flightmap-3d-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--replay-border);
  border-radius: 4px;
  background: var(--replay-panel-strong);
  color: var(--replay-text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.flightmap-3d-status[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .flightmap-3d-root {
    width: 100%;
    max-width: 100%;
  }

  .flightmap-3d-nav-control {
    display: none;
  }

  .flightmap-3d-panel {
    top: 78px;
    right: 0;
    left: 0;
    width: auto;
    max-height: min(54dvh, 430px);
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 4px 4px;
    transform: translateY(0);
  }

  .flightmap-3d-panel.is-collapsed {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    visibility: hidden;
  }

  .flightmap-3d-search {
    gap: 6px;
    padding: 7px 8px;
  }

  .flightmap-3d-search__form {
    gap: 4px;
  }

  .flightmap-3d-search__input-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 5px;
  }

  .flightmap-3d-search__input-row input,
  .flightmap-3d-search__input-row button {
    min-height: 32px;
  }

  .flightmap-3d-search__results,
  .flightmap-3d-search__suggestions {
    max-height: 150px;
    padding-right: 2px;
    touch-action: pan-y;
  }

  .flightmap-3d-search-result {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    gap: 7px;
    min-height: 46px;
    padding: 6px 7px;
  }

  .flightmap-3d-search-result__distance img {
    width: 18px;
    height: 18px;
  }

  .flightmap-3d-search-result__load {
    width: 27px;
    height: 27px;
  }

  .flightmap-3d-panel-toggle {
    position: fixed;
    top: 39px;
    right: 116px;
    left: calc((100vw - 116px) / 2);
    width: auto;
    max-width: none;
    min-width: 0;
    height: 39px;
    min-height: 39px;
    gap: 8px;
    padding: 0 8px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: var(--replay-panel);
    backdrop-filter: blur(14px);
    transform: none;
  }

  .flightmap-3d-root.is-panel-collapsed .flightmap-3d-panel-toggle {
    left: calc((100vw - 116px) / 2);
    max-width: none;
  }

  .flightmap-3d-panel-toggle__label {
    display: inline;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .flightmap-3d-panel-toggle.is-active {
    background: var(--replay-panel-strong);
    color: var(--replay-text);
  }

  .flightmap-3d-info-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 116px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .flightmap-3d-color-control {
    position: relative;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 39px 39px;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 78px;
    padding: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    overflow: visible;
  }

  .flightmap-3d-color-control__row {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: auto minmax(72px, 1fr);
    min-height: 39px;
    gap: 6px;
    padding: 5px 6px;
  }

  .flightmap-3d-color-control select {
    min-width: 0;
  }

  .flightmap-3d-legend-toggle {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 39px;
    justify-content: center;
    padding: 0 8px;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .flightmap-3d-color-legend {
    position: absolute;
    top: 78px;
    left: 0;
    z-index: 5;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--replay-border);
    border-left: 0;
    border-radius: 0 0 4px 0;
    background: var(--replay-panel-strong);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }

  .flightmap-3d-color-legend__item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .flightmap-3d-color-legend__swatch {
    width: 12px;
  }

  .flightmap-3d-readout {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    flex: 0 0 116px;
    align-self: flex-start;
    width: 116px;
    min-width: 0;
    min-height: 78px;
    padding: 7px 8px;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overflow: hidden;
    text-align: left;
  }

  .flightmap-3d-root.is-panel-open .flightmap-3d-readout {
    opacity: 1;
    pointer-events: auto;
  }

  .flightmap-3d-readout__time {
    font-size: 18px;
  }

  .flightmap-3d-readout__metrics {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
  }

  .flightmap-3d-chart-wrap {
    right: 8px;
    bottom: 78px;
    left: 8px;
    height: 160px;
  }

  .flightmap-3d-controls {
    grid-template-columns: repeat(5, 32px) 1fr repeat(3, 30px);
    gap: 5px;
    padding: 6px 8px;
  }

  .flightmap-3d-speed {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .flightmap-3d-color-control__label {
    gap: 0;
    font-size: 0;
  }

  .flightmap-3d-color-control__label i {
    font-size: 13px;
  }

  .flightmap-3d-color-control {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }

  .flightmap-3d-info-stack {
    right: 96px;
  }

  .flightmap-3d-panel-toggle,
  .flightmap-3d-root.is-panel-collapsed .flightmap-3d-panel-toggle {
    right: 96px;
    left: calc((100vw - 96px) / 2);
  }

  .flightmap-3d-readout {
    flex-basis: 96px;
    width: 96px;
    min-width: 0;
    padding: 7px 6px;
  }

  .flightmap-3d-readout__time {
    font-size: 16px;
    white-space: nowrap;
  }

  .flightmap-3d-readout__metrics {
    gap: 5px;
    font-size: 10px;
    line-height: 1.15;
  }
}

@media (max-width: 430px) {
  .flightmap-3d-panel {
    top: 76px;
  }

  .flightmap-3d-panel-toggle {
    top: 38px;
    min-width: 0;
    min-height: 38px;
    gap: 6px;
    padding: 0 8px;
  }

  .flightmap-3d-panel-toggle__label {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flightmap-3d-color-control {
    grid-template-rows: 38px 38px;
    flex-basis: 100%;
    width: 100%;
    min-height: 76px;
    max-width: none;
  }

  .flightmap-3d-color-control__row,
  .flightmap-3d-legend-toggle {
    min-height: 38px;
  }

  .flightmap-3d-color-legend {
    top: 76px;
  }

  .flightmap-3d-readout {
    flex-basis: 96px;
    width: 96px;
    min-width: 0;
    min-height: 76px;
    padding: 7px 6px;
  }

  .flightmap-3d-readout__metrics {
    gap: 5px;
  }
}
