/* First Class: flight-phase band and read-out cursor for the pilot panel's Flight profile chart. */
.topbar-player-popup.expanded .topbar-player-chart-card.has-phase-band {
  flex-direction: column;
}
.airshow-phase-band,
.airshow-phase-legend {
  display: none;
}
.topbar-player-chart-card.has-phase-band .airshow-phase-band {
  position: relative;
  display: block;
  height: 22px;
  margin-top: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.apb-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: color-mix(in oklab, var(--phase) 78%, #0b1020);
  box-shadow: inset -1px 0 0 rgba(8, 10, 20, 0.6);
  color: #0b0f1d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.apb-seg b {
  font: inherit;
}
.topbar-player-chart-card.has-phase-band .airshow-phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  color: rgba(226, 233, 245, 0.84);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.airshow-phase-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.airshow-phase-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--phase) 78%, #0b1020);
}
.topbar-player-chart-card.has-phase-band .topbar-player-chart-body {
  cursor: crosshair;
  touch-action: none;
}
.airshow-profile-cursor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.airshow-profile-cursor[hidden] {
  display: none;
}
.apc-line {
  position: absolute;
  width: 1px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.7);
}
.apc-dot {
  position: absolute;
  left: -4.5px;
  top: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #0c101a;
}
.apc-alt {
  background: #6cb8ff;
}
.apc-gs {
  background: #ffc247;
}
.apc-readout {
  position: absolute;
  top: 6px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  padding: 7px 9px 8px;
  border-radius: 7px;
  background: rgba(9, 12, 22, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.apc-time {
  font-size: 14px;
}
.apc-elapsed {
  align-self: end;
  color: rgba(220, 228, 240, 0.72);
  font-size: 11px;
}
.apc-alt-v {
  color: #8cc8ff;
  font-weight: 700;
}
.apc-gs-v {
  color: #ffcf70;
  font-weight: 700;
}
.apc-phase {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.apc-phase::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--phase) 78%, #0b1020);
}
@media (max-height: 520px) {
  /* Phone: the compact panel may grow a little (still above the bottom strip) so band and legend fit unscrolled. */
  .topbar-player-popup:not(.expanded):has(.has-phase-band) {
    max-height: calc(100vh - 100px);
  }
  .topbar-player-popup:not(.expanded) .topbar-player-chart-card.has-phase-band .topbar-player-chart-body {
    height: 74px;
  }
  .topbar-player-chart-card.has-phase-band .airshow-phase-band {
    height: 17px;
    margin-top: 5px;
    border-radius: 4px;
  }
  .apb-seg {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .topbar-player-chart-card.has-phase-band .airshow-phase-legend {
    gap: 2px 10px;
    margin-top: 5px;
    font-size: 10.5px;
  }
  .airshow-phase-legend span {
    gap: 4px;
  }
  .airshow-phase-legend i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
  }
  .apc-readout {
    top: 2px;
    padding: 3px 6px 4px;
    font-size: 10px;
    column-gap: 7px;
    row-gap: 1px;
  }
  .apc-time {
    font-size: 11px;
  }
  .apc-elapsed {
    font-size: 9px;
  }
}
