.od {
  --orbit-sky: #a6e9ff;
  --orbit-near: #ffc184;
  --orbit-far: #84dfff;
  --orbit-mars: #ffae92;
}
.od-intro { padding-block: 35px 19px; }
.od-modes, .od-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.od-modes { margin: 0 0 16px; }
.od-modes a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid #527491;
  border-radius: 8px;
  background: #10253b;
  color: #e0f1fb;
  font-size: .87rem;
  font-weight: 650;
  text-decoration: none;
}
.od-modes a:hover { border-color: #8cdbef; }
.od .lab-nav a[aria-current=location],
.od-modes a[aria-current=page] { border-color: #71cee9; background: #204b61; color: #f5fcff; }

.od-visuals, .od-work {
  display: grid;
  grid-template-columns: minmax(0,1.43fr) minmax(0,1fr);
  gap: 18px;
}
.od-work { margin-top: 18px; }
.od-panel-heading {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px 13px;
}
.od-panel-heading p { margin: 4px 0 0; color: #bdd5e7; font-size: .76rem; }
.od select {
  min-height: 39px;
  max-width: 100%;
  border: 1px solid #587b96;
  border-radius: 8px;
  padding: 5px 8px;
  background: #0d263d;
  color: #e7f7ff;
  font-size: .8rem;
}
.od-stage {
  position: relative;
  isolation: isolate;
  margin: 0 14px;
  height: clamp(280px,30vw,426px);
  overflow: hidden;
  border: 1px solid #375774;
  border-radius: 12px;
  background: #080f21;
}
.od-stage#orbit-stage { cursor: grab; touch-action: none; }
.od-stage#orbit-stage.od-dragging { cursor: grabbing; }
.od-stage#orbit-stage:focus-visible { outline: 2px solid #8cdbef; outline-offset: 3px; }
.od-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.od-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 12px 16px 0;
  padding: 0;
  list-style: none;
  color: #cfe3f2;
  font-size: .78rem;
}
.od-key li { display: inline-flex; align-items: center; gap: 7px; }
.od-key i { display: inline-block; width: 19px; border-top: 2px solid #d2e8f7; }
.od-key .od-near { border-color: var(--orbit-near); }
.od-key .od-far, .od-key .od-prograde { border-color: var(--orbit-far); }
.od-key .od-mars { border-color: var(--orbit-mars); }
.od-key .od-prograde, .od-key .od-sightline { border-top-style: dashed; }
.od-key .od-sightline { border-color: #f8debb; }
.od-key .od-station { width: 9px; height: 9px; border: 1px solid #f3d0be; border-radius: 50%; }

.od-caption { margin: 9px 16px 14px; color: #bad0e1; font-size: .77rem; line-height: 1.5; }
.od-readings {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 12px 14px 14px;
  border: 1px solid #3a5973;
  border-radius: 9px;
  background: #0a1b2d;
}
.od-readings div { min-width: 0; padding: 8px 9px; }
.od-readings div + div { border-left: 1px solid #31516b; }
.od-readings dt { color: #bfd4e4; font-size: .7rem; }
.od-readings dd { margin: 4px 0 0; font-size: .91rem; font-weight: 680; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.od-panel-body { padding: 2px 17px 16px; }
.od-timeline { display: flex; gap: 15px; align-items: center; }
.od-timeline .action { min-width: 118px; }
.od-timeline .od-range { flex: 1; min-width: 0; }
.od-range > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: .87rem;
  font-weight: 650;
}
.od-range input { display: block; width: 100%; margin: 2px 0 0; min-height: 39px; accent-color: #74d5ed; touch-action: pan-y; }
.od-range output { color: var(--orbit-sky); font-variant-numeric: tabular-nums; }
.od-range .od-caption { margin: 2px 0 5px; }
.od-parameters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 17px; }
.od-checkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; font-size: .87rem; }
.od-checkbox input { width: 18px; height: 18px; accent-color: #74d5ed; }
.od-actions .action { min-height: 39px; padding: 7px 11px; }
.od-export-mars { margin-top: 10px; }
.od-status { margin: 11px 0 0; color: #b3eaf9; font-size: .81rem; }
.od-status:empty { margin: 0; }
.od-measurements {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #3c5d77;
  background: #0c2136;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}
.od-measurements :is(th,td) { padding: 8px 9px; text-align: start; }
.od-measurements thead th { font-size: .74rem; color: #bed6e8; }
.od-measurements tbody tr { border-top: 1px solid #3c5d77; }
.od-measurements .od-near-text { color: var(--orbit-near); }
.od-measurements .od-far-text { color: var(--orbit-far); }
.od-investigation .od-panel-body > .od-caption { margin-inline: 0; }
.od-comparison { border-top: 1px solid #3c5d77; padding-top: 13px; }
.od-comparison h3 { margin: 0; font-size: .95rem; }
.od-comparison p, .od-instructions, .od-reason, .od-notes { font-size: .84rem; color: #c7dcea; line-height: 1.55; }
.od-comparison p { margin: 6px 0 7px; }
.od-comparison dl { display: flex; gap: 7px; flex-wrap: wrap; justify-content: space-between; margin: 9px 0 0; font-size: .83rem; }
.od-comparison dd { margin: 0; color: var(--orbit-sky); font-weight: 700; }
.od-instructions { padding-left: 1.25rem; margin: 0 0 9px; }
.od-instructions li + li { margin-top: 7px; }
.od-instructions strong { color: #edf8ff; }
.od-reason { border-top: 1px solid #3c5d77; }
.od-reason p { margin: 0; }
.od-notes { padding: 8px 17px; margin-top: 17px; border: 1px solid #3b5e7a; border-radius: 10px; background: #0d2338; }
.od-notes p { margin: 5px 0 8px; }
.od summary { min-height: 33px; padding-block: 6px; cursor: pointer; color: #aeeafc; font-weight: 650; }
.od summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.od-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 930px) {
  .od-visuals, .od-work { grid-template-columns: 1fr; }
  .od-stage { height: clamp(272px,49vw,405px); }
}
@media (max-width: 650px) {
  .od-intro { padding-block: 24px 16px; }
  .od-visuals, .od-work { gap: 12px; }
  .od-work { margin-top: 12px; }
  .od-stage, .od-readings { margin-inline: 10px; }
  .od-panel-heading { padding: 13px 12px 10px; }
  .od-panel-body { padding-inline: 13px; }
  .od select { font-size: 1rem; }
  .od-readings div { padding-inline: 6px; }
  .od-readings dd, .od-readings dt { font-size: .73rem; }
  .od-parameters { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 390px) {
  .od-timeline { align-items: stretch; flex-direction: column; gap: 6px; }
  .od-timeline .action { align-self: start; }
}
