@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #eef8f4;
  --muted: #82918d;
  --line: rgba(202, 232, 222, 0.13);
  --panel: rgba(7, 12, 13, 0.73);
  --panel-heavy: rgba(5, 9, 10, 0.9);
  --mint: #57f0cb;
  --amber: #e9ae55;
  --red: #ff7565;
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glass-edge-soft: rgba(255, 255, 255, 0.065);
  --glass-fill: rgba(11, 18, 20, 0.54);
  --glass-fill-heavy: rgba(7, 12, 14, 0.72);
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --page: #020405;
  --surface: rgba(7,12,13,.76);
  --surface-solid: #0a1011;
  --control: rgba(255,255,255,.045);
  --track: rgba(255,255,255,.1);
  --accent: #57f0cb;
  --accent-soft: rgba(87,240,203,.09);
  --route-bg: #030607;
  --shadow: 0 18px 55px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.055);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #15201d; --muted: #66736f; --line: rgba(20,54,46,.14);
  --panel: rgba(255,255,255,.72); --panel-heavy: rgba(245,249,247,.92);
  --glass-edge: rgba(255,255,255,.92); --glass-edge-soft: rgba(20,54,46,.12);
  --glass-fill: rgba(255,255,255,.68); --glass-fill-heavy: rgba(239,246,243,.82);
  --page: #edf3f0; --surface: rgba(255,255,255,.76); --surface-solid: #f8fbfa;
  --control: rgba(20,54,46,.045); --track: rgba(20,54,46,.12); --accent: #087d68;
  --accent-soft: rgba(8,125,104,.09); --route-bg: #e7efec;
  --shadow: 0 16px 46px rgba(42,72,64,.1), inset 0 1px rgba(255,255,255,.9);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); scroll-behavior: smooth; }
body { overflow-x: hidden; overflow-y: auto; }
button, input, select { font: inherit; }
button { color: inherit; }

.experience { position: relative; width: calc(100% - 20px); max-width: 1600px; height: calc(100svh - 142px); min-height: 570px; max-height: 820px; margin: 0 auto 18px; isolation: isolate; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 30px 30px; box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 -1px rgba(255,255,255,.05); background: radial-gradient(circle at 52% 44%, #13201e 0%, #030506 48%, #010202 100%); }
#spaceStage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: 0; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 52% 45%, transparent 32%, rgba(0,0,0,.17) 64%, rgba(0,0,0,.72) 100%), linear-gradient(180deg, rgba(0,0,0,.22), transparent 22%, transparent 70%, rgba(0,0,0,.58)); }
.glass {
  position: absolute;
  border: 1px solid var(--glass-edge-soft);
  background:
    linear-gradient(148deg, rgba(255,255,255,.105) 0%, rgba(255,255,255,.025) 20%, transparent 44%),
    radial-gradient(circle at 18% 0%, rgba(87,240,203,.075), transparent 34%),
    linear-gradient(135deg, var(--glass-fill), var(--glass-fill-heavy));
  box-shadow:
    0 28px 80px rgba(0,0,0,.34),
    0 6px 22px rgba(0,0,0,.22),
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(30px) saturate(1.65) brightness(.92);
  -webkit-backdrop-filter: blur(30px) saturate(1.65) brightness(.92);
}
.glass::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.08), transparent 18%, transparent 72%, rgba(87,240,203,.025));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 1px;
  mask-composite: exclude;
}
.eyebrow { margin: 0 0 7px; color: var(--mint); font: 700 9px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }

.topbar { z-index: 20; top: 78px; left: 18px; right: 18px; height: 62px; border-radius: 20px; display: flex; align-items: center; padding: 0 18px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; width: 260px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(87,240,203,.4); border-radius: 50%; position: relative; box-shadow: 0 0 28px rgba(87,240,203,.1); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; border: 1px solid rgba(87,240,203,.75); border-radius: 50%; transform: rotate(-24deg); }
.brand-mark::before { inset: 7px -4px; }
.brand-mark::after { inset: 13px -7px; }
.brand-mark i { position: absolute; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; top: 5px; right: 3px; box-shadow: 0 0 12px var(--amber); }
.brand strong { display: block; font: 700 13px/1.1 var(--mono); letter-spacing: .11em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font: 400 8px/1 var(--mono); letter-spacing: .12em; }
.live-readout { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #a9b8b4; font: 500 10px/1 var(--mono); letter-spacing: .08em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(233,174,85,.08), 0 0 14px rgba(233,174,85,.5); }
.pulse.live { background: var(--mint); box-shadow: 0 0 0 4px rgba(87,240,203,.08), 0 0 14px rgba(87,240,203,.5); }
.search-box { width: min(280px, 24vw); height: 38px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.2)); box-shadow: inset 0 1px rgba(255,255,255,.055); display: flex; align-items: center; gap: 10px; padding: 0 11px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #596561; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; color: #65736f; font: 9px var(--mono); }
.round-button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 8px 22px rgba(0,0,0,.2); font: 700 12px var(--mono); cursor: pointer; }
.view-toggle { height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 99px; color: #9baaa5; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: inset 0 1px rgba(255,255,255,.08); font: 700 9px var(--mono); letter-spacing: .04em; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.view-toggle:hover, .view-toggle.active { color: #eafff9; border-color: rgba(87,240,203,.34); background: rgba(87,240,203,.13); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 24px rgba(87,240,203,.1); }
.heat-metric-control { height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; display: flex; align-items: center; gap: 7px; color: #65736e; background: rgba(255,255,255,.035); font: 8px var(--mono); }
.heat-metric-control select { border: 0; outline: 0; color: #b8c6c1; background: transparent; font: 8px var(--mono); }

.mode-rail { z-index: 15; left: 18px; top: 154px; bottom: 82px; width: 68px; border-radius: 20px; padding: 13px 6px 8px; display: flex; flex-direction: column; }
.rail-label { margin: 0 0 13px; text-align: center; color: #68736f; font: 8px var(--mono); letter-spacing: .16em; }
.mode-button { position: relative; min-height: 72px; padding: 8px 3px; border: 0; border-radius: 14px; background: transparent; color: #788984; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; cursor: pointer; transition: .2s ease; }
.mode-button:hover { color: var(--ink); background: rgba(255,255,255,.035); }
.mode-button.active { color: var(--mint); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(87,240,203,.07)); box-shadow: inset 0 1px rgba(255,255,255,.08), inset 2px 0 var(--mint), 0 10px 24px rgba(0,0,0,.16); }
.mode-icon { font-size: 21px; font-weight: 300; }
.mode-button small { position: absolute; top: 8px; right: 7px; font: 7px var(--mono); color: #66746f; }
.rail-spacer { flex: 1; }
.weather { border-top: 1px solid var(--line); padding: 13px 2px 2px; text-align: center; }
.weather span { color: #64716d; font-size: 8px; }
.weather strong { display: block; margin-top: 5px; color: var(--mint); font: 700 8px var(--mono); }
.mission-link { text-decoration: none; min-height: 58px; }

.target-drawer { z-index: 14; left: 122px; top: 154px; bottom: 112px; width: 288px; border-radius: 24px; transition: transform .3s ease, opacity .3s ease; overflow: hidden; }
.target-drawer[hidden] { display: none; }
.target-drawer.collapsed { transform: translateX(-310px); opacity: 0; pointer-events: none; }
.drawer-heading { height: 74px; border-bottom: 1px solid var(--line); padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.drawer-heading h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.drawer-heading button { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015)); cursor: pointer; }
.target-list { height: calc(100% - 74px); overflow: auto; padding: 7px; scrollbar-width: thin; scrollbar-color: rgba(87,240,203,.18) transparent; }
.target-row { width: 100%; border: 0; border-bottom: 1px solid rgba(202,232,222,.075); border-radius: 5px; padding: 11px 10px; background: transparent; display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; text-align: left; cursor: pointer; transition: .16s ease; }
.target-row:hover, .target-row[aria-selected="true"] { background: rgba(87,240,203,.065); }
.target-row[aria-selected="true"] { box-shadow: inset 2px 0 var(--mint); }
.target-dot { width: 17px; height: 17px; border-radius: 45% 55% 52% 48%; border: 1px solid rgba(233,174,85,.7); background: radial-gradient(circle at 35% 28%, #9b8260, #332b25 60%, #171614); box-shadow: 0 0 10px rgba(233,174,85,.12); }
.target-row.featured .target-dot { border-color: var(--mint); box-shadow: 0 0 12px rgba(87,240,203,.2); }
.target-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: #dce8e4; }
.target-name small, .target-distance small { display: block; margin-top: 4px; color: #687670; font: 8px var(--mono); }
.target-distance { text-align: right; }
.target-distance strong { color: #aab7b2; font: 400 9px var(--mono); }

.detail-panel { z-index: 15; right: 18px; top: 154px; width: 310px; max-height: calc(100% - 266px); border-radius: 24px; overflow: auto; }
.detail-panel[hidden] { display: none; }
.detail-empty { padding: 24px; }
.detail-empty h2 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.detail-empty p:last-child { color: var(--muted); font-size: 11px; line-height: 1.7; }
.detail-hero { position: relative; min-height: 132px; padding: 20px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 25%, rgba(233,174,85,.13), transparent 42%); }
.detail-hero h2 { margin: 12px 0 3px; max-width: 220px; font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.detail-hero .designation { color: #77847f; font: 9px var(--mono); }
.feature-chip { position: absolute; top: 18px; right: 17px; border: 1px solid rgba(87,240,203,.25); border-radius: 99px; padding: 5px 8px; color: var(--mint); background: rgba(87,240,203,.06); font: 7px var(--mono); letter-spacing: .1em; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.detail-metric { padding: 14px 10px; border-right: 1px solid var(--line); text-align: center; }
.detail-metric:last-child { border-right: 0; }
.detail-metric span { display: block; color: #697570; font-size: 8px; }
.detail-metric strong { display: block; margin-top: 6px; font: 700 11px var(--mono); color: #d6e3df; }
.detail-section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; color: #73807b; font: 700 8px var(--mono); letter-spacing: .14em; }
.orbit-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.orbit-table div { display: flex; justify-content: space-between; gap: 8px; color: #788681; font-size: 9px; }
.orbit-table strong { color: #c1cfca; font: 400 9px var(--mono); }
.quality-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quality-line span { color: #788681; font-size: 9px; }
.quality-pill { border-radius: 99px; padding: 5px 8px; color: var(--mint); background: rgba(87,240,203,.08); font: 7px var(--mono); text-transform: uppercase; }
.source-credit { margin: 9px 0 0; color: #5f6e69; font-size: 8px; line-height: 1.6; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h3 { margin-bottom: 0; }
.spectral-chip { padding: 5px 8px; border: 1px solid rgba(87,240,203,.25); border-radius: 99px; color: var(--mint); background: rgba(87,240,203,.07); font: 700 8px var(--mono); }
.resource-heatmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 12px; }
.resource-cell { min-width: 0; padding: 8px 5px 7px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(255,255,255,.025); text-align: center; }
.resource-cell span { display: block; min-height: 22px; color: #82918c; font-size: 7px; line-height: 1.45; }
.resource-cell i { display: block; position: relative; height: 42px; margin: 5px 5px 7px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.04); }
.resource-cell i::after { content: ''; position: absolute; inset: auto 0 0; height: var(--level); border-radius: 4px; background: linear-gradient(180deg, #57f0cb, #1d7265); box-shadow: 0 0 13px rgba(87,240,203,.2); }
.resource-cell strong { color: #c8d8d3; font: 700 8px var(--mono); }
.spectral-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: #697873; font: 7px var(--mono); }
.inference-note { margin: 10px 0 0; padding-left: 9px; border-left: 2px solid rgba(233,174,85,.45); color: #788680; font-size: 8px; line-height: 1.65; }

.timeline { z-index: 18; left: 98px; right: 18px; bottom: 18px; height: 52px; border-radius: 17px; display: flex; align-items: center; padding: 0 14px; gap: 13px; }
.play-button { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid rgba(87,240,203,.3); border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(87,240,203,.07)); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.22); color: var(--mint); font: 700 12px var(--mono); cursor: pointer; }
.date-block { width: 130px; }
.date-block span, .speed-control span { display: block; color: #66736f; font-size: 8px; }
.date-block strong { display: block; margin-top: 6px; font: 700 11px var(--mono); }
.timeline-track { flex: 1; min-width: 120px; }
.timeline input { width: 100%; height: 2px; accent-color: var(--mint); cursor: pointer; }
.time-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #4f5a57; font: 7px var(--mono); }
.speed-control { width: 80px; }
.speed-control select { width: 100%; margin-top: 4px; border: 0; background: transparent; color: var(--ink); font: 700 10px var(--mono); outline: 0; }
.live-button { height: 28px; padding: 0 10px; border: 1px solid rgba(87,240,203,.3); border-radius: 99px; display: flex; align-items: center; gap: 6px; color: #77847f; background: rgba(255,255,255,.03); font: 700 8px var(--mono); cursor: pointer; }
.live-button i { width: 6px; height: 6px; border-radius: 50%; background: #65716d; }
.live-button.active { color: var(--mint); background: rgba(87,240,203,.08); }.live-button.active i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.history-label { width: 72px; color: #697670; font: 8px var(--mono); text-align: right; }
.timeline .date-block { width: 150px; }.timeline .date-block strong { margin-top: 2px; font-size: 9px; }
.scale-note { position: absolute; z-index: 19; left: 100px; bottom: 78px; display: flex; align-items: center; gap: 14px; color: rgba(170,190,183,.45); font: 7px var(--mono); letter-spacing: .08em; }
.scale-note a { color: rgba(87,240,203,.62); text-decoration: none; transition: color .2s ease; }
.scale-note a:hover, .scale-note a:focus-visible { color: var(--mint); }
.resource-legend { z-index: 20; right: 18px; bottom: 78px; min-width: 470px; min-height: 36px; padding: 9px 12px; border-radius: 13px; display: flex; align-items: center; gap: 8px; }
.resource-legend[hidden] { display: none; }
.resource-legend span { color: #a3b2ad; font: 7px var(--mono); }
.color-axis { width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg,#18364a,#37b9ba 38%,#f2d45c 70%,#ff625f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.resource-legend b { color: #71807a; font: 7px var(--mono); }
.resource-legend small { margin-left: auto; color: #596762; font-size: 7px; }

.sources-dialog { width: min(540px, calc(100vw - 30px)); border: 1px solid rgba(202,232,222,.17); border-radius: 12px; padding: 28px; color: var(--ink); background: rgba(5,9,10,.96); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.sources-dialog::backdrop { background: rgba(0,0,0,.67); backdrop-filter: blur(8px); }
.sources-dialog h2 { margin: 0 0 22px; font-size: 24px; font-weight: 500; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.source-list { display: grid; gap: 8px; }
.source-entry { display: flex; justify-content: space-between; gap: 20px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.source-entry span:last-child { color: var(--mint); font: 8px var(--mono); text-transform: uppercase; }
.dialog-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.loading-screen { position: absolute; z-index: 100; inset: 0; background: radial-gradient(circle at center, #101c1a, #020405 56%); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity .7s ease, visibility .7s; }
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-orbit { width: 76px; height: 76px; position: relative; margin-bottom: 24px; border: 1px solid rgba(87,240,203,.17); border-radius: 50%; animation: spin 6s linear infinite; }
.loading-orbit::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(233,174,85,.22); border-radius: 50%; }
.loading-orbit i { position: absolute; top: 7px; left: 34px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px var(--mint); }
.loading-orbit span { position: absolute; inset: 29px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 25px rgba(233,174,85,.7); }
.loading-screen strong { font-size: 13px; font-weight: 500; }
.loading-bar { width: 170px; height: 1px; margin-top: 20px; overflow: hidden; background: rgba(255,255,255,.08); }
.loading-bar i { display: block; width: 45%; height: 100%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: loading 1.6s ease-in-out infinite; }
.fallback { width: 100%; height: 100%; padding: 12vw; background: radial-gradient(circle at 70% 30%, #182723, #030506 55%); }
.fallback h1 { max-width: 600px; font-size: clamp(36px, 6vw, 80px); letter-spacing: -.05em; }
.fallback p:last-child { max-width: 520px; color: var(--muted); line-height: 1.8; }

/* Compact explorer */
.command-bar{z-index:20;position:absolute;top:78px;left:84px;right:18px;height:50px;border-radius:16px;display:flex;align-items:center;padding:0 10px;gap:10px}.command-bar .live-readout{flex:0 0 auto;margin-right:auto;padding-left:4px}.search-wrap{position:relative;width:min(260px,23vw)}.command-bar .search-box{width:100%;height:32px;border-radius:10px}.search-results{z-index:40;top:38px;left:0;width:310px;max-height:280px;padding:5px;border-radius:13px;overflow:auto}.search-results[hidden]{display:none}.search-result{width:100%;padding:9px;border:0;border-radius:9px;display:flex;justify-content:space-between;gap:12px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.search-result:hover,.search-result:focus-visible{background:var(--accent-soft)}.search-result span{display:block}.search-result small{color:var(--muted);font:7px var(--mono)}.view-segments{height:32px;padding:3px;border:1px solid var(--line);border-radius:10px;display:flex;background:var(--control)}.view-segment{min-width:48px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:700 7px var(--mono);cursor:pointer}.view-segment:hover,.view-segment.active{color:var(--accent);background:var(--accent-soft)}.command-bar .round-button{width:32px;height:32px}.command-bar+.mode-rail{top:78px;left:18px;bottom:78px;width:56px;padding:58px 4px 7px;border-radius:18px}.command-bar+.mode-rail .mode-button{min-height:60px;font-size:8px}.command-bar+.mode-rail .mode-icon{font-size:18px}.command-bar+.mode-rail .mode-button small{top:6px;right:5px}.command-bar~.detail-panel{top:140px;right:18px;width:290px;max-height:calc(100% - 220px);border-radius:18px}.command-bar~.timeline{left:84px;height:44px;border-radius:14px;padding:0 10px}.timeline>strong{width:128px;font:700 8px var(--mono)}.timeline>input{flex:1;min-width:100px}.command-bar~.resource-legend{bottom:70px;min-width:330px}.compact-detail-head{padding:16px;border-bottom:1px solid var(--line)}.compact-detail-head h2{margin:4px 0;font-size:20px}.compact-detail-head span{color:var(--muted);font:8px var(--mono)}.compact-metrics{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}.compact-metrics div{padding:11px 7px;text-align:center;border-inline-end:1px solid var(--line)}.compact-metrics div:last-child{border:0}.compact-metrics span{display:block;color:var(--muted);font-size:7px}.compact-metrics strong{display:block;margin-top:5px;font:700 9px var(--mono)}.resource-index{padding:14px}.resource-index header{display:flex;justify-content:space-between;color:var(--muted);font-size:8px}.resource-index header strong{color:var(--accent);font:700 10px var(--mono)}.index-track{height:7px;margin-top:8px;border-radius:99px;background:linear-gradient(90deg,#18364a,#37b9ba 38%,#f2d45c 70%,#ff625f)}.detail-disclosure{border-bottom:0}.detail-disclosure summary{padding:12px 14px;color:var(--muted);font-size:8px;cursor:pointer}.detail-disclosure .orbit-table{padding:0 14px 14px}.detail-disclosure .source-credit{padding:0 14px 14px}.experience{background:radial-gradient(circle at 52% 44%,#13201e 0%,#030506 48%,#010202 100%)}
html[data-theme="light"] .experience{background:radial-gradient(circle at 52% 44%,#ffffff 0%,#edf3f0 48%,#dde8e4 100%);border-color:rgba(32,70,59,.13)}html[data-theme="light"] .vignette{background:radial-gradient(circle at 52% 45%,transparent 35%,rgba(54,91,80,.04) 70%,rgba(54,91,80,.12) 100%)}html[data-theme="light"] .glass{background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(239,247,244,.7));box-shadow:0 16px 48px rgba(43,75,66,.12),inset 0 1px rgba(255,255,255,.9);backdrop-filter:blur(26px) saturate(1.25)}html[data-theme="light"] .search-box{background:rgba(255,255,255,.52)}html[data-theme="light"] .target-name strong,html[data-theme="light"] .detail-metric strong{color:var(--ink)}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(250%); } }

re8ch-navigator {
  --re8ch-nav-accent: #57f0cb !important;
  --re8ch-nav-bg-rgb: 5 10 12;
  --re8ch-nav-panel-rgb: 12 20 22;
  --re8ch-nav-line: rgba(255,255,255,.1);
  --re8ch-nav-glass-edge: rgba(255,255,255,.13);
}

re8ch-footer {
  display: block;
  position: relative;
  z-index: 5;
  scroll-margin-top: 64px;
  --re8ch-footer-bg: #050809 !important;
  --re8ch-footer-ink: #eef8f4 !important;
  --re8ch-footer-muted: #92a39e !important;
  --re8ch-footer-soft: #66746f !important;
  --re8ch-footer-line: rgba(255,255,255,.1) !important;
  --re8ch-footer-hairline: rgba(255,255,255,.08) !important;
  --re8ch-footer-surface: rgba(255,255,255,.045) !important;
  --re8ch-footer-hover: #57f0cb !important;
}

re8ch-footer .re8ch-footer {
  background:
    radial-gradient(circle at 18% -20%, rgba(87,240,203,.1), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 28%),
    #050809 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}

@media (max-width: 980px) {
  .detail-panel { width: 276px; }
  .search-box { width: 200px; }
  .live-readout { display: none; }
  .heat-metric-control { display: none; }
  .view-toggle { width: 36px; padding: 0; font-size: 0; }
  .view-toggle span { font-size: 14px; }
}

@media (max-width: 760px) {
  .experience { width: calc(100% - 8px); height: calc(100svh - 96px); min-height: 650px; margin-bottom: 10px; border-radius: 0 0 22px 22px; }
  .topbar { top: 74px; left: 8px; right: 8px; height: 58px; padding: 0 12px; border-radius: 18px; }
  .brand { width: auto; margin-right: auto; }
  .brand small, .search-box, .mode-button small { display: none; }
  .mode-rail { left: 8px; right: 8px; top: auto; bottom: 70px; width: auto; height: 54px; padding: 4px 7px; flex-direction: row; align-items: center; }
  .rail-label, .rail-spacer, .weather { display: none; }
  .mode-button { flex: 1; min-height: 48px; flex-direction: row; justify-content: center; gap: 6px; }
  .mode-button.active { box-shadow: inset 0 -2px var(--mint); }
  .mode-icon { font-size: 16px; }
  .target-drawer { left: 8px; right: 8px; top: auto; bottom: 150px; width: auto; height: 230px; transform: translateY(245px); opacity: 0; pointer-events: none; border-radius: 22px; }
  .target-drawer.mobile-open { transform: none; opacity: 1; pointer-events: auto; }
  .target-drawer.collapsed { transform: translateY(245px); }
  .detail-panel { left: 8px; right: 8px; top: auto; bottom: 150px; width: auto; max-height: 48vh; border-radius: 22px; }
  .detail-panel:has(.detail-empty) { display: none; }
  .timeline { left: 8px; right: 8px; bottom: 8px; height: 54px; padding: 0 10px; gap: 8px; }
  .date-block { width: 102px; }
  .time-labels, .speed-control span { display: none; }
  .speed-control { width: 48px; }
  .scale-note { display: none; }
  .resource-legend { left: 8px; right: 8px; bottom: 132px; min-width: 0; flex-wrap: wrap; }
  .resource-legend small { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width:760px){.command-bar{top:70px;left:8px;right:8px;height:46px}.command-bar .live-readout{display:none}.search-wrap{flex:1;width:auto}.view-segments{position:absolute;top:52px;left:0;right:0;justify-content:stretch}.view-segment{flex:1;min-width:0}.command-bar+.mode-rail{left:8px;right:8px;top:auto;bottom:60px;width:auto;height:50px;padding:3px;flex-direction:row}.command-bar+.mode-rail .mode-button{flex:1;min-height:42px;flex-direction:row;justify-content:center}.command-bar~.timeline{left:8px;right:8px;bottom:8px;height:46px}.timeline>strong{width:84px}.history-label{display:none}.command-bar~.detail-panel{left:8px;right:8px;top:auto;bottom:116px;width:auto;max-height:55vh}.command-bar~.resource-legend{left:8px;right:8px;bottom:116px;min-width:0}.search-results{width:calc(100vw - 70px)}}
