.retro-story { margin-top: 1rem; }
.retro-story [hidden] { display: none !important; }
.retro-panel { background: #0d1729; border: 1px solid #8eabc333; border-radius: 1rem; overflow: hidden; color: #e4edf8; }
.retro-panel-single { max-width: 48rem; margin-inline: auto; }
.retro-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; background: radial-gradient(ellipse at 30% 50%, #192b42, #0d1729 75%); }
.retro-panel-single .retro-views { grid-template-columns: 1fr; }
.retro-views svg { width: 100%; height: auto; display: block; overflow: visible; }
.retro-panel-single svg { max-height: 460px; }
.retro-views svg + svg { border-left: 1px solid #8eabc333; }
.retro-small { fill: #b5c5da; font-size: 18px; }
.retro-label { fill: #e4edf8; font-size: 22px; font-weight: 550; paint-order: stroke; stroke: #0d1729; stroke-width: 5px; stroke-linejoin: round; }
.retro-tick { fill: #b5c5da; font-size: 19px; }
.retro-earth-text { fill: #89e5d2; }
.retro-mars-text { fill: #ffba9e; }
.retro-earth-orbit { fill: none; stroke: #70d6c055; stroke-width: 2; }
.retro-mars-orbit { fill: none; stroke: #f2a08355; stroke-width: 2; }
.retro-earth-arrow, .retro-mars-arrow { fill: none; stroke: #70d6c0; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.retro-mars-arrow { stroke: #f2a083; }
.retro-ray { stroke: #e2bf7d; stroke-width: 2.5; stroke-dasharray: 7 5; }
.retro-grid { fill: none; stroke: #8eabc344; stroke-width: 1; }
.retro-cursor { stroke: #e4edf8; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .7; }
.retro-track { fill: none; stroke: #e2bf7d; stroke-width: 3; }
.retro-track-backwards { stroke: #f2a083; stroke-width: 4; }
.retro-station { fill: #0d1729; stroke: #e4edf8; stroke-width: 2; }
.retro-observation { min-height: 5rem; padding: .9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.2rem; border-top: 1px solid #8eabc333; }
.retro-observation > span { font-size: .8rem; color: #b5c5da; }
.retro-observation strong { font-size: 1rem; font-weight: 600; }
.retro-observation [data-r="position"] { font-variant-numeric: tabular-nums; }
.retro-controls { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.4rem; background: #0a1424; border-top: 1px solid #8eabc333; }
.retro-transport { display: flex; gap: .5rem; }
.retro-story button { cursor: pointer; border: 1px solid #8eabc366; background: #18283e; padding: .65rem .9rem; min-height: 44px; border-radius: .45rem; color: #e4edf8; font-size: .85rem; }
.retro-story button:hover { background: #263c56; }
.retro-story [data-r="play"] { min-width: 5rem; background: #e2bf7d; color: #0d1729; border-color: transparent; }
.retro-story [data-r="play"]:hover { background: #f2d49e; }
.retro-timeline { flex: 1; min-width: 0; }
.retro-timeline label { display: block; font-size: .8rem; color: #c5d4e7; }
.retro-timeline input { display: block; width: 100%; height: 26px; accent-color: #e2bf7d; cursor: pointer; }
.retro-timeline-ends { display: flex; justify-content: space-between; color: #a5b5cc; font-size: .68rem; }
.retro-events { display: flex; gap: .6rem; flex-wrap: wrap; padding: 0 1.4rem 1rem; }
.retro-panel figcaption { color: #a5b5cc; padding: .9rem 1.4rem 1.1rem; font-size: .8rem; line-height: 1.65; border-top: 1px solid #8eabc322; }
.retro-motion-note { font-size: .85rem; color: var(--t3); max-width: 43rem; margin: -2rem auto 2rem; line-height: 1.7; }
@media (max-width: 48rem) {
  .retro-views { grid-template-columns: 1fr; }
  .retro-views svg + svg { border-left: 0; border-top: 1px solid #8eabc333; }
  .retro-views svg { max-height: 360px; }
  .retro-controls { flex-wrap: wrap; gap: .8rem; padding: 1rem; }
  .retro-timeline { flex-basis: 100%; order: -1; }
  .retro-observation { display: grid; gap: .4rem; padding: 1rem; }
  .retro-events { padding: 0 1rem 1rem; gap: .5rem; }
  .retro-events button { flex-grow: 1; font-size: .8rem; }
  .retro-panel figcaption { padding: 1rem; }
}
@media print {
  .retro-controls, .retro-events, .retro-motion-note { display: none !important; }
  .retro-panel { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
