/* Minimalist Aerospace Telemetry Redesign Layer (Phase 2)
   Palette: matte obsidian (#0a0d12), 1px hairlines, ice-cyan (#5eead4),
   aerospace blue (#78b5ff), monospace telemetry readouts. */

:root {
  --tm-bg: #0a0d12;
  --tm-surface: rgba(12, 16, 23, 0.84);
  --tm-surface-strong: rgba(10, 14, 20, 0.94);
  --tm-border: rgba(226, 232, 240, 0.12);
  --tm-border-strong: rgba(226, 232, 240, 0.24);
  --tm-text: #eef2f6;
  --tm-text-dim: #94a3b8;
  --tm-cyan: #5eead4;
  --tm-accent: var(--sx-accent);
  --tm-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.atlas .sx-glass {
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.atlas .sx-top {
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.tm-dock {
  position: fixed;
  left: 24px;
  bottom: var(--tm-timeline-clearance, 172px);
  z-index: 36;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.tm-flight {
  position: fixed;
  z-index: 35;
  left: clamp(24px, 5vw, 96px);
  bottom: var(--tm-timeline-clearance, 204px);
  width: min(35vw, 510px);
  padding: 12px 16px;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface-strong);
  color: var(--tm-text);
  pointer-events: auto;
}
.atlas .sx-iconbtn.sx-labeled-button {
  width: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  white-space: nowrap;
  font: 500 12.5px/1.2 var(--sx-font);
}
.sx-action-count { color: var(--tm-accent); }
.tm-exhibit-top {
  position: absolute;
  inset: var(--sx-gutter) var(--sx-gutter) auto;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.tm-exhibit-top button { pointer-events: auto; }
.atlas[data-lunar-scene] > :is(.label-layer, .holo-layer),
.atlas[data-mission-active="yes"] > :is(.label-layer, .holo-layer) { visibility: hidden; }
.tm-exhibit-location { color: var(--tm-text-dim); font-size: 13px; }
.tm-exhibit-reset { margin-left: auto; }
.tm-exhibit-info {
  position: absolute;
  left: var(--sx-gutter);
  bottom: var(--tm-timeline-clearance, 204px);
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--tm-text);
  font-size: 12px;
  pointer-events: auto;
}
.tm-exhibit-info p { margin: 0; }
.tm-moon-controls { display: block; margin-top: 4px; color: var(--tm-text-dim); }
.tm-exhibit-sites { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-exhibit-sites:not(:empty) { padding-top: 8px; }
.tm-exhibit-info[data-relay], .tm-exhibit-info:has(.tm-exhibit-sites) { width: min(354px, 32vw); }
.tm-exhibit-info .tm-lunar-site-name { margin-top: 8px; }
.tm-lunar-enter-surface { margin-top: 8px; }
.tm-exhibit-sites button[aria-pressed="true"] { border-color: var(--tm-accent); background: #19314d; }
.tm-part-instruction { margin: 0 0 8px; color: var(--tm-text-dim); font-size: 12px; }
.atlas .historic-picker { max-width: none; }
.tm-flight summary { cursor: pointer; font-size: 14px; }
.tm-flight svg { display: block; width: 100%; height: clamp(130px, 19vh, 220px); }
.tm-flight small { color: var(--tm-text-dim); }
.tm-flight__craft { offset-distance: 48%; }
.tm-flight__craft--lunar { offset-distance: 0%; }
.tm-flight__craft--lunar.is-playing { animation: tm-flight-progress 6s linear both; }
.tm-flight__actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 6px; }
@keyframes tm-flight-progress { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .tm-flight__craft { animation: none; } }

.tm-dock__label {
  font-family: var(--tm-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tm-text-dim);
  padding-right: 6px;
  border-right: 1px solid var(--tm-border);
}

.tm-dock__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: transparent;
  color: var(--tm-text);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-dock__pill { border-color: rgba(120,181,255,.4); background: #132239; font-size: 14px; }
.tm-dock__label { color: #b7d8ff; font-size: 13px; }
.tm-dock__pill:focus-visible, .tm-dock__pill:hover {
  border-color: var(--tm-accent);
  background: rgba(120, 181, 255, 0.08);
}

.tm-dock__code {
  font-family: var(--tm-mono);
  font-size: 11px;
  color: var(--tm-cyan);
}

.tm-crumb {
  position: fixed;
  top: 72px;
  left: 24px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: var(--tm-text-dim);
  pointer-events: auto;
}

.tm-crumb__btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--tm-text-dim);
  font: inherit;
  cursor: pointer;
}

.tm-crumb__btn:hover {
  color: var(--tm-cyan);
}

.tm-crumb__current {
  color: var(--tm-text);
  font-weight: 500;
}

.tm-crumb__meta {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--tm-border);
  font-family: var(--tm-mono);
  font-size: 11px;
  color: var(--tm-accent);
}

.tm-scale {
  position: fixed;
  left: 24px;
  bottom: 120px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  font-family: var(--tm-mono);
  font-size: 11px;
  color: var(--tm-text-dim);
  pointer-events: none;
}

.tm-scale__bar {
  display: inline-block;
  width: var(--tm-scale-px, 64px);
  height: 6px;
  border-left: 1px solid var(--tm-cyan);
  border-right: 1px solid var(--tm-cyan);
  border-bottom: 1px solid var(--tm-cyan);
}

.tm-drawer {
  position: fixed;
  top: 72px;
  right: 24px;
  bottom: var(--tm-timeline-clearance, 172px);
  width: 368px;
  max-width: calc(100vw - 48px);
  z-index: 38;
  display: flex;
  flex-direction: column;
  background: var(--tm-surface-strong);
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  backdrop-filter: blur(16px);
  color: var(--tm-text);
  overflow-y: auto;
  color-scheme: dark;
  scrollbar-color: #495157 transparent;
  pointer-events: auto;
}

.tm-drawer > * { flex-shrink: 0; }
.tm-drawer.is-collapsed { bottom: auto; }
.tm-drawer.is-collapsed :is(.tm-site, .tm-status-chip, .tm-head__meta) { display: none; }
.tm-viewing-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding-bottom: 9px;
  color: var(--tm-text-dim);
  font-size: 12px;
}
.tm-viewing-time time { font-family: var(--tm-mono); color: var(--tm-text); }
.tm-source { color: var(--tm-cyan); font-size: 12px; }

.tm-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--tm-border);
}

.tm-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--tm-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tm-text-dim);
  margin-bottom: 6px;
}

.tm-code {
  color: var(--tm-cyan);
}

.tm-head__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tm-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tm-close {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: transparent;
  color: var(--tm-text-dim);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.tm-close:hover {
  border-color: var(--tm-border-strong);
  color: var(--tm-text);
}

.tm-site {
  margin: 6px 0 8px;
  font-size: 12px;
  color: var(--tm-text-dim);
}

.tm-status-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(120, 181, 255, 0.35);
  border-radius: 3px;
  background: rgba(120, 181, 255, 0.08);
  font-size: 11px;
  color: var(--tm-accent);
}

.tm-stepper {
  display: flex;
  gap: 4px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--tm-border);
  overflow-x: auto;
}

.tm-step {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: transparent;
  color: var(--tm-text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tm-step.is-active {
  border-color: var(--tm-accent);
  background: rgba(120, 181, 255, 0.1);
  color: var(--tm-text);
}

.tm-step__num {
  font-family: var(--tm-mono);
  font-size: 10px;
  color: var(--tm-cyan);
}

.tm-step__label {
  font-size: 11px;
  white-space: nowrap;
}

.tm-body {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tm-border);
}

.tm-summary {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--tm-text);
}

.tm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.tm-metric {
  padding: 8px 10px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tm-metric[data-source-type="illustrative"] {
  border-style: dashed;
}

.tm-metric__label {
  font-size: 11px;
  color: var(--tm-text-dim);
}

.tm-metric__val {
  font-family: var(--tm-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-text);
}

.tm-metric__foot {
  font-size: 10px;
  color: var(--tm-text-dim);
}

.tm-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px dashed rgba(94, 234, 212, 0.35);
  border-radius: 4px;
  font-size: 11px;
  color: var(--tm-cyan);
}

.tm-pending__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tm-cyan);
  flex-shrink: 0;
}

.tm-cta-row {
  display: flex;
  gap: 8px;
}

.tm-cta {
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.tm-cta--primary {
  flex: 1;
  border: 1px solid var(--tm-cyan);
  background: rgba(94, 234, 212, 0.12);
  color: var(--tm-cyan);
}

.tm-cta--primary:hover {
  background: rgba(94, 234, 212, 0.22);
}

.tm-cta--ghost {
  border: 1px solid var(--tm-border);
  background: transparent;
  color: var(--tm-text-dim);
}

.tm-cta--ghost:hover {
  border-color: var(--tm-border-strong);
  color: var(--tm-text);
}

.tm-cta--sm {
  margin-top: 8px;
  font-size: 11px;
  padding: 5px 10px;
}

.tm-acc {
  border-bottom: 1px solid var(--tm-border);
}

.tm-acc__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border: 0;
  background: transparent;
  color: var(--tm-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.tm-acc__body {
  padding: 0 18px 14px;
}

.tm-state-list,
.tm-ach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-ach-list li {
  font-size: 12px;
  line-height: 1.55;
  color: var(--tm-text-dim);
  padding-left: 10px;
  border-left: 1px solid var(--tm-accent);
}

.tm-state-item__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--tm-mono);
  font-size: 11px;
}

.tm-state-item__name {
  font: 600 13px/1.45 var(--sx-font);
}

.tm-state-tag {
  padding: 1px 6px;
  border: 1px solid var(--tm-border);
  border-radius: 3px;
  color: var(--tm-text-dim);
}

.tm-avail--available {
  color: var(--tm-cyan);
}

.tm-avail--pending {
  color: var(--tm-accent);
}

.tm-hotspots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tm-hotspot {
  text-align: left;
  padding: 5px 8px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--tm-text-dim);
  font-size: 11px;
  cursor: pointer;
}

.tm-hotspot.is-active {
  width: 100%;
  border-color: var(--tm-cyan);
  background: rgba(94, 234, 212, 0.08);
  color: var(--tm-text);
}

.tm-hotspot__desc {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--tm-text-dim);
}

.tm-weather-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tm-text-dim);
}

@media (min-width: 1920px) {
  .tm-drawer {
    width: 400px;
  }
}

@media (min-width: 2560px) {
  .tm-drawer {
    width: 440px;
  }
}

/* Phase 2 Issue #16: Chronological 7-event PC timeline strip & narrow-desktop clearance */
:root {
  --tm-timeline-clearance: 204px;
}

.tm-ev-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
  pointer-events: auto;
}

.tm-ev-strip__label {
  flex: 0 0 auto;
  font-family: var(--tm-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--tm-text-dim);
  padding-right: 8px;
  border-right: 1px solid var(--tm-border);
}

.tm-ev-strip__list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.tm-ev-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: rgba(12, 16, 23, 0.78);
  color: var(--tm-text-dim);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tm-ev-btn:hover {
  border-color: var(--tm-border-strong);
  color: var(--tm-text);
  background: rgba(255, 255, 255, 0.04);
}

.tm-ev-btn:focus-visible {
  outline: 2px solid var(--tm-cyan);
  outline-offset: 1px;
  color: var(--tm-text);
}

.tm-ev-btn.is-active {
  border-color: var(--tm-accent);
  background: rgba(120, 181, 255, 0.14);
  color: var(--tm-text);
}

.tm-ev-btn__date {
  font-family: var(--tm-mono);
  font-size: 10px;
  color: var(--tm-cyan);
}

.tm-ev-btn.is-active .tm-ev-btn__date {
  color: var(--tm-accent);
}

/* Give each archived event a column with its date above the mission title. */
@media (min-width: 1000px) {
  .tm-ev-strip__list {
    flex: 1;
    align-items: stretch;
    padding: 3px;
  }

  .tm-ev-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    white-space: normal;
    text-align: start;
    line-height: 1.25;
  }
}

@media (max-width: 1440px) {
  .tm-drawer,
  .tm-crumb {
    top: 78px;
  }

  .tm-drawer {
    width: 344px;
  }

  .tm-ev-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* PR #33 Slice 1: Two-paragraph body overview, 1440x900 bottom particle timeline, event archive drawer & 64px task phase bar */
.archive--body-overview {
  max-height: min(600px, calc(100vh - 208px));
  overflow-y: auto;
  scrollbar-width: thin;
}

.archive__section--intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive__intro-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive__subhead {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tm-accent, #78b5ff);
}

.archive__body-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--tm-text, #eef6ff);
}

.timeline__play {
  display: none !important;
}

.timeline--pc-redesign {
  background: transparent !important;
  border-top: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
}

.tm-particle-tl {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 156px;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  height: auto;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.72) 0%, rgba(8, 14, 26, 0.88) 100%);
  pointer-events: auto;
}

.tm-particle-tl__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.tm-particle-tl__prologue {
  align-self: flex-start;
  padding: 2px 7px;
  border: 1px solid rgba(120, 181, 255, 0.34);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.78);
  color: #eef6ff;
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

.tm-particle-tl__prologue:hover,
.tm-particle-tl__prologue:focus-visible {
  border-color: var(--tm-accent, #78b5ff);
  color: var(--tm-accent, #78b5ff);
}

.tm-particle-tl__track-btn {
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: rgba(214, 232, 255, 0.78);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.tm-particle-tl__track-btn.is-active,
.tm-particle-tl__track-btn:hover {
  color: var(--tm-accent, #78b5ff);
}

.tm-particle-tl__center {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 36px;
  min-width: 0;
}

.tm-particle-tl__scale {
  position: relative;
  height: 20px;
}

.tm-particle-tick {
  position: absolute;
  top: 11px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(214, 232, 255, 0.22);
  transform: translateX(-50%);
}

.tm-particle-tick--major {
  width: 3px;
  height: 3px;
  background: rgba(214, 232, 255, 0.48);
}

.tm-particle-year {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--tm-mono);
  font-size: 9px;
  color: rgba(214, 232, 255, 0.56);
  pointer-events: none;
}

.tm-particle-lane {
  position: relative;
  height: 20px;
  background-image: radial-gradient(circle, rgba(214, 232, 255, 0.22) 1px, transparent 1.2px);
  background-size: 12px 20px;
  background-repeat: repeat-x;
  background-position: 0 center;
  transition: opacity 0.18s ease;
}

.tm-particle-lane.is-dimmed {
  opacity: 0.25;
}

.tm-particle-dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef6ff;
  box-shadow: 0 0 6px rgba(214, 232, 255, 0.45);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.tm-particle-dot:hover,
.tm-particle-dot:focus-visible {
  background: var(--tm-accent, #78b5ff);
  transform: translate(-50%, -50%) scale(1.35);
}

.tm-particle-dot.is-selected {
  width: 8px;
  height: 8px;
  background: var(--tm-accent, #78b5ff);
  box-shadow: 0 0 0 4px rgba(120, 181, 255, 0.26);
}

.tm-particle-dot--world {
  top: 12px;
  background: rgba(214, 232, 255, 0.72);
  border: 1px dashed rgba(120, 181, 255, 0.75);
}

.tm-particle-pill {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border: 1px solid rgba(120, 181, 255, 0.52);
  border-radius: 999px;
  background: rgba(12, 20, 33, 0.88);
  color: #eef6ff;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.tm-particle-cluster {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tm-particle-cluster__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid rgba(120, 181, 255, 0.56);
  border-radius: 999px;
  background: rgba(12, 20, 33, 0.86);
  color: var(--tm-accent, #78b5ff);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tm-particle-popover {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(320px, 80vw);
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 6px;
  background: rgba(12, 20, 33, 0.9);
  backdrop-filter: blur(18px);
  z-index: 40;
}

.tm-particle-popover__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-particle-popover__item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #eef6ff;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.tm-particle-popover__item:hover,
.tm-particle-popover__item:focus-visible {
  border-color: rgba(120, 181, 255, 0.48);
  background: rgba(120, 181, 255, 0.12);
}

.tm-particle-popover__date {
  font-family: var(--tm-mono);
  font-size: 10px;
  color: var(--tm-accent, #78b5ff);
  white-space: nowrap;
}

.tm-particle-popover__more {
  width: 100%;
  margin-top: 6px;
  padding: 5px 6px;
  border: 0;
  border-top: 1px solid rgba(214, 232, 255, 0.12);
  background: transparent;
  color: var(--tm-accent, #78b5ff);
  font-size: 11px;
  text-align: right;
  cursor: pointer;
}

.tm-particle-tl__right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.tm-particle-tl__action {
  padding: 4px 10px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.72);
  color: #eef6ff;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.tm-particle-tl__action.is-active,
.tm-particle-tl__action:hover {
  border-color: var(--tm-accent, #78b5ff);
  color: var(--tm-accent, #78b5ff);
}

.tm-phase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  max-height: 64px;
  padding: 8px 16px;
  background: rgba(12, 20, 33, 0.82);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(214, 232, 255, 0.14);
  pointer-events: auto;
}

.tm-phase-bar__nodes {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}

.tm-phase-bar__node,
.tm-phase-bar__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.76);
  color: #eef6ff;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.tm-phase-bar__node.is-active {
  border-color: var(--tm-accent, #78b5ff);
  background: rgba(120, 181, 255, 0.16);
}

.tm-phase-bar__badge {
  font-size: 10px;
  color: rgba(214, 232, 255, 0.68);
}

.tm-archive-drawer {
  position: absolute;
  top: auto;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(410px, calc(100vw - 48px));
  height: min(520px, calc(100vh - 286px));
  max-height: calc(100vh - 278px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 197, 255, 0.32);
  border-radius: 10px;
  background: rgba(7, 13, 26, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(2, 6, 16, 0.72);
  z-index: 68;
}

@supports not (backdrop-filter: blur(1px)) {
  .tm-archive-drawer,
  .tm-particle-popover {
    background: rgba(12, 20, 33, 0.92);
  }
}

.tm-archive-drawer__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-archive-drawer__title {
  margin: 0;
  font-size: 14px;
  color: #eef6ff;
}

.tm-archive-drawer__count {
  margin-right: auto;
  font-family: var(--tm-mono);
  font-size: 11px;
  color: var(--tm-accent, #78b5ff);
}

.tm-archive-drawer__close,
.tm-archive-chip {
  padding: 3px 8px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.72);
  color: #eef6ff;
  font-size: 11px;
  cursor: pointer;
}

.tm-archive-chip.is-active {
  border-color: var(--tm-accent, #78b5ff);
  background: rgba(120, 181, 255, 0.16);
  color: var(--tm-accent, #78b5ff);
}

.tm-archive-drawer__filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-archive-drawer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tm-archive-drawer__list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 2px 4px 4px 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-archive-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(214, 232, 255, 0.08);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.56);
  color: #eef6ff;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.tm-archive-row:hover {
  border-color: var(--tm-accent, #78b5ff);
}

.tm-archive-row__date {
  font-family: var(--tm-mono);
  font-size: 10px;
  color: var(--tm-accent, #78b5ff);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .tm-particle-dot,
  .tm-particle-lane {
    transition: none !important;
  }
}

/* PR #37 cross-check: keep <=64px phase bar and <=340px right card under 125% font & short viewports (1440x760 / 1366x768) */
.tm-phase-bar {
  height: clamp(52px, 6.8vh, 64px);
  max-height: 64px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.tm-phase-bar__node,
.tm-phase-bar__step {
  line-height: 1.2;
  max-height: 44px;
}

@media (max-height: 780px) {
  .archive--body-overview {
    max-height: calc(100vh - 168px);
  }

  .tm-drawer {
    width: min(340px, 28vw);
  }

  .tm-particle-tl {
    min-height: 96px;
    height: auto;
    padding: 8px 14px 10px;
  }

  .tm-phase-bar {
    min-height: 52px;
    max-height: 60px;
    padding: 6px 14px;
  }
}


.tm-shell > .tm-stepper {
  position: fixed;
  z-index: 42;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  max-width: 88vw;
  pointer-events: auto;
  background: rgba(9,19,32,.94);
  border: 1px solid var(--tm-border);
  border-radius: 8px;
}
.atlas:has(.tm-shell) { --tm-timeline-clearance: 84px !important; }

.tm-flight-tools { display: grid; justify-items: start; gap: 6px; margin-top: 8px; }
.tm-flight-tools small { color: var(--tm-text-dim); line-height: 1.5; }

.tm-flight-marker {
  position: absolute; z-index: 2; left: 0; top: 0; padding: 4px 8px;
  margin: -24px 0 0 7px; color: #d5e9ff; background: rgba(9,18,30,.88);
  border-radius: 4px; pointer-events: none; font-size: 12px;
}
.tm-flight-marker::before {
  content: ""; position: absolute; left: -10px; top: 21px;
  width: 6px; height: 6px; box-sizing: border-box;
  border: 1px solid #9acbff; border-radius: 50%;
}

.atlas[data-visit-opening] :is(.label-layer,.holo-layer) { visibility: hidden; }
.tm-people h3 { margin-top: 20px; }
.tm-crumb__btn { color: #b7d8ff; }

.tm-shell[data-scene="spacecraft-exhibit"] .tm-crumb { top: 24px; }

.tm-people h3:focus { outline: none; }
.atlas:not([data-visit-opening]) .ui-layer.is-visible { animation: visit-interface-in .4s ease-out both; }
@keyframes visit-interface-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .atlas:not([data-visit-opening]) .ui-layer.is-visible { animation-duration: .15s; }
}

.tm-opening {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.tm-opening--statement {
  background: radial-gradient(circle at 50% 48%, #0b1424 0%, #050911 58%, #020408 100%);
}

.tm-opening__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 18% 26%, rgba(214, 232, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 74% 32%, rgba(120, 181, 255, 0.42), transparent),
    radial-gradient(1px 1px at 62% 74%, rgba(214, 232, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 31% 68%, rgba(120, 181, 255, 0.3), transparent);
  animation: tm-dust-breathe 9s ease-in-out infinite alternate;
}

.tm-opening__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.tm-opening__quote {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  font-weight: 400;
  font-size: clamp(24px, 3.1vw, 40px);
  letter-spacing: 0.18em;
  color: #eef6ff;
  text-shadow: 0 0 28px rgba(120, 181, 255, 0.22);
  animation: tm-quote-reveal 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tm-opening__line {
  width: min(320px, 54vw);
  height: 1px;
  margin: 22px 0 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 181, 255, 0.85) 50%, transparent 100%);
  transform-origin: center;
  animation: tm-line-expand 1.1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tm-opening__sub {
  margin: 0;
  font-family: var(--tm-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(214, 232, 255, 0.62);
  animation: tm-fade-up 0.9s 0.65s ease both;
}

.tm-opening__footer {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.tm-opening__prompt {
  padding-left: 0.24em;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(120, 181, 255, 0.86);
  animation: tm-prompt-pulse 2.6s 1.1s ease-in-out infinite both;
}

.tm-opening__skip {
  position: absolute;
  top: 24px;
  right: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(214, 232, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 20, 33, 0.45);
  color: rgba(214, 232, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tm-opening__skip:hover,
.tm-opening__skip:focus-visible {
  border-color: var(--tm-accent, #78b5ff);
  color: #eef6ff;
}

.tm-opening--panorama {
  background: transparent;
}

.tm-panorama-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: tm-panorama-reveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tm-panorama-title__zh {
  margin: 0;
  padding-left: 0.55em;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: 0.55em;
  color: rgba(214, 232, 255, 0.92);
  text-shadow: 0 0 36px rgba(12, 20, 33, 0.85), 0 0 22px rgba(120, 181, 255, 0.26);
}

.tm-panorama-title__en {
  padding-left: 0.48em;
  font-family: var(--tm-mono);
  font-size: 11px;
  letter-spacing: 0.48em;
  color: rgba(120, 181, 255, 0.78);
  text-shadow: 0 0 18px rgba(12, 20, 33, 0.9);
}

.tm-panorama-guide {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  pointer-events: none;
  animation: tm-fade-up 1s 0.55s ease both;
}

.tm-panorama-guide__pulse {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, rgba(120, 181, 255, 0) 0%, rgba(120, 181, 255, 0.95) 100%);
  animation: tm-prompt-pulse 2.2s ease-in-out infinite;
}

.tm-panorama-guide__text {
  padding-left: 0.24em;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(214, 232, 255, 0.86);
  text-shadow: 0 2px 16px rgba(4, 7, 13, 0.95);
}

.tm-opening--flying {
  pointer-events: none;
  background: transparent;
}

.tm-warp-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

@keyframes tm-quote-reveal {
  0% { opacity: 0; letter-spacing: 0.36em; filter: blur(9px); transform: translateY(8px); }
  100% { opacity: 1; letter-spacing: 0.18em; filter: blur(0); transform: translateY(0); }
}

@keyframes tm-line-expand {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes tm-fade-up {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes tm-panorama-reveal {
  0% { opacity: 0; filter: blur(8px); transform: scale(1.05); }
  70% { opacity: 0.95; filter: blur(0); transform: scale(1); }
  100% { opacity: 0.86; filter: blur(0); transform: scale(1); }
}

@keyframes tm-prompt-pulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.96; }
}

@keyframes tm-dust-breathe {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .tm-opening__quote,
  .tm-opening__line,
  .tm-opening__sub,
  .tm-opening__prompt,
  .tm-opening__dust,
  .tm-panorama-title,
  .tm-panorama-guide,
  .tm-panorama-guide__pulse {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Issue #40: Unified 3-tab Story/People/Parts drawer, people story card, collapsed metrics, and task-mode clearance */
.tm-asset-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid rgba(120, 181, 255, 0.48);
  border-radius: 3px;
  background: rgba(120, 181, 255, 0.14);
  color: var(--tm-accent, #78b5ff);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tm-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.tm-tab {
  padding: 5px 8px;
  border: 1px solid rgba(214, 232, 255, 0.14);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.68);
  color: rgba(214, 232, 255, 0.78);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.tm-tab:hover,
.tm-tab:focus-visible {
  border-color: var(--tm-accent, #78b5ff);
  color: #eef6ff;
}

.tm-tab.is-active {
  border-color: var(--tm-accent, #78b5ff);
  background: rgba(120, 181, 255, 0.18);
  color: var(--tm-accent, #78b5ff);
  font-weight: 600;
}

.tm-tech-collapse {
  margin-top: 10px;
  border-top: 1px solid rgba(214, 232, 255, 0.1);
  padding-top: 8px;
}

.tm-tech-toggle {
  width: 100%;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: rgba(214, 232, 255, 0.78);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.tm-tech-toggle:hover,
.tm-tech-toggle:focus-visible {
  color: var(--tm-accent, #78b5ff);
}

.tm-people__name {
  margin: 10px 0 4px;
  font-size: 16px;
  color: #eef6ff;
}

.tm-people__role {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--tm-accent, #78b5ff);
}

.tm-people__block {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-left: 2px solid rgba(120, 181, 255, 0.45);
  background: rgba(12, 20, 33, 0.45);
  border-radius: 0 4px 4px 0;
}

.tm-people__sub {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tm-accent, #78b5ff);
}

.tm-crumb__btn--exit {
  margin-left: 4px;
  border-color: rgba(214, 232, 255, 0.22);
}

/* Auto-hide left satellite rail in task mode so 3D exhibits and flight schematics never collide */
.atlas:has(.tm-shell) .moon-rail {
  display: none !important;
}
/* Issue #50 & #52: Planet physical facts, 16:10 archival people gallery, design highlights, and solar science card */
.archive__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 2px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 232, 255, 0.12);
  border-radius: 6px;
  background: rgba(12, 20, 33, 0.56);
}

.archive__fact dt {
  font-size: 10px;
  color: rgba(214, 232, 255, 0.62);
  margin-bottom: 2px;
}

.archive__fact dd {
  margin: 0;
  font-family: var(--tm-mono);
  font-size: 11px;
  color: var(--tm-accent, #78b5ff);
}

.tm-media-gallery {
  margin: 10px 0 12px;
  padding: 0;
}

.tm-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(120, 181, 255, 0.28);
  border-radius: 6px;
  background: radial-gradient(circle at 50% 35%, #132136 0%, #0a1220 100%);
}

.tm-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-media-fallback {
  width: 100%;
  height: 100%;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.tm-media-fallback__badge {
  align-self: flex-start;
  padding: 2px 6px;
  border: 1px solid rgba(120, 181, 255, 0.48);
  border-radius: 3px;
  font-family: var(--tm-mono);
  font-size: 10px;
  color: var(--tm-accent, #78b5ff);
}

.tm-media-fallback__title {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #eef6ff;
}

.tm-media-fallback__meta {
  font-size: 10px;
  color: rgba(214, 232, 255, 0.62);
}

.tm-media-fallback__link,
.tm-media-caption__link {
  color: var(--tm-accent, #78b5ff);
  font-size: 11px;
  text-decoration: none;
}

.tm-media-nav {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(214, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 20, 33, 0.82);
}

.tm-media-nav__btn {
  border: 0;
  background: transparent;
  color: #eef6ff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tm-media-nav__count {
  font-family: var(--tm-mono);
  font-size: 10px;
  color: rgba(214, 232, 255, 0.8);
}

.tm-media-caption {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-media-caption__text {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(214, 232, 255, 0.86);
}

.tm-media-caption__credit {
  font-size: 10px;
  color: rgba(214, 232, 255, 0.56);
}

.tm-highlight-card,
.tm-moment-quote {
  margin: 10px 0;
  padding: 9px 11px;
  border-left: 2px solid var(--tm-accent, #78b5ff);
  border-radius: 0 5px 5px 0;
  background: rgba(12, 20, 33, 0.58);
}

.tm-highlight-card__title,
.tm-moment-quote__label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tm-accent, #78b5ff);
}

.tm-highlight-card__copy,
.tm-moment-quote__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #eef6ff;
}

.tm-solar-card {
  position: fixed;
  top: 68px;
  right: 24px;
  width: min(350px, calc(100vw - 32px));
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 20, 33, 0.84);
  backdrop-filter: blur(18px);
  z-index: 42;
}

.tm-solar-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tm-solar-card__close {
  padding: 3px 8px;
  border: 1px solid rgba(214, 232, 255, 0.18);
  border-radius: 4px;
  background: rgba(12, 20, 33, 0.72);
  color: #eef6ff;
  font-size: 11px;
  cursor: pointer;
}

.tm-solar-card__title {
  margin: 0;
  font-size: 15px;
  color: #eef6ff;
}

.tm-solar-card__targets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-solar-card__label {
  font-size: 11px;
  color: rgba(214, 232, 255, 0.68);
}

.tm-solar-card__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tm-solar-card__copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #eef6ff;
}

.tm-solar-card__foot {
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(214, 232, 255, 0.56);
}
