body.timeline-replay-map-active .aar-workspace,
body.timeline-replay-map-active .management-screen,
body.timeline-replay-map-active .left-rail,
body.timeline-replay-map-active .right-rail,
body.timeline-replay-map-active .mobile-mode-dock,
body.timeline-replay-map-active .app-session-control {
  display: none !important;
}

body.timeline-replay-map-active .topography-control {
  top: 1rem;
}

.timeline-replay-map-controls {
  position: fixed;
  z-index: 1650;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(900px, calc(100vw - 2rem));
  transform: translateX(-50%);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.timeline-replay-map-controls[hidden] {
  display: none;
}

.replay-map-heading,
.replay-map-actions,
.replay-map-timeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.replay-map-heading {
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.replay-map-heading > div {
  display: grid;
  min-width: 0;
}

.replay-map-heading strong,
.replay-map-heading small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-map-heading strong {
  font-size: 1rem;
}

.replay-map-heading small,
.replay-map-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.replay-map-eyebrow {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-map-timeline time {
  flex: 0 0 185px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.replay-map-timeline input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #fff;
}

.replay-map-actions {
  justify-content: center;
  margin-top: 0.7rem;
}

.replay-map-actions label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
}

.replay-map-actions select {
  width: auto;
  min-width: 76px;
  padding: 0.45rem 1.8rem 0.45rem 0.55rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background-color: #111;
}

.replay-map-status {
  min-width: 175px;
  text-align: right;
}

.replay-map-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 190, 80, 0.55);
  border-radius: 10px;
  background: rgba(80, 45, 0, 0.72);
}

.replay-map-error[hidden] {
  display: none;
}

.replay-map-error button {
  margin-left: auto;
}

@media (max-width: 720px) {
  .timeline-replay-map-controls {
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1rem);
    padding: 0.7rem;
    border-radius: 14px;
  }

  .replay-map-heading .action-button span,
  .replay-map-actions .action-button span,
  .replay-map-heading small {
    display: none;
  }

  .replay-map-timeline {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .replay-map-timeline time {
    flex-basis: auto;
    text-align: center;
  }

  .replay-map-status {
    display: none;
  }
}
