.spatial-view{background:#071a2b;color:#eaf2f7;border:1px solid #234252;border-radius:12px;overflow:hidden;min-width:0}
.spatial-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #294252}
.spatial-heading{display:flex;flex-direction:column;gap:5px;min-width:0;flex-shrink:0}
.spatial-heading strong{font:700 10px/1.6 JetBrains,monospace;letter-spacing:.14em}
.spatial-heading span{font-size:12px;color:#9fb6c4;line-height:1.45}
.spatial-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.spatial-control-group{display:flex;gap:2px;padding:3px;background:#04121f;border:1px solid #294252;border-radius:8px}
.spatial-button{font:600 12px Archivo,system-ui,sans-serif;border:1px solid #365064;border-radius:6px;background:#102b3c;color:#eaf2f7;min-height:38px;padding:8px 11px;cursor:pointer;white-space:nowrap}
.spatial-control-group .spatial-button{border-color:transparent;background:transparent;min-height:32px;padding:7px 11px}
.spatial-button:hover{background:#1d4055}
.spatial-button[aria-pressed=true]{background:#ff5a1f;border-color:#ff5a1f;color:#091722}
.spatial-button[aria-busy=true]{box-shadow:inset 0 -3px #e0a32e}
.spatial-button:disabled{opacity:.45;cursor:default}
.spatial-stage{position:relative;height:clamp(330px,48vh,590px);min-height:280px;overflow:hidden}
.spatial-canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}
.spatial-hud{position:absolute;left:16px;right:16px;bottom:14px;display:flex;align-items:center;justify-content:center;gap:16px;max-width:560px;margin:0 auto;padding:10px 16px;border:1px solid #365064;background:#04121ff0;border-radius:8px;pointer-events:none;box-shadow:0 3px 18px #0003;font-variant-numeric:tabular-nums}
.spatial-hud-phase{font:600 12px Archivo,system-ui,sans-serif;color:#b9cfdd}
.spatial-hud-altitude{font:700 22px/1.15 Archivo,system-ui,sans-serif;letter-spacing:-.03em;color:#eaf2f7;white-space:nowrap}
.spatial-hud-time{font:400 11px/1.5 JetBrains,monospace;color:#b9cfdd;white-space:nowrap}
.spatial-hud.is-unavailable .spatial-hud-altitude{color:#9fb6c4}
.spatial-legend{display:flex;flex-wrap:wrap;gap:12px 20px;padding:13px 20px;border-top:1px solid #294252}
.spatial-phase{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#c1d1dc}
.spatial-phase i{display:block;width:16px;height:3px;border-radius:3px}
.spatial-details-bar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px 20px;padding:0 20px 8px;min-width:0}
.spatial-detail{min-width:0;max-width:100%;position:relative;font-size:12px;color:#b9cfdd}
.spatial-detail>summary{min-height:36px;display:list-item;cursor:pointer;padding:8px 0;color:#c1d1dc;font-weight:550}
.spatial-detail>p{font-size:12px;line-height:1.7;margin:2px 0 9px;max-width:650px;color:#b9cfdd;overflow-wrap:anywhere}
.spatial-detail[open]{flex-basis:100%;order:2}
.spatial-position-value{font-family:JetBrains,monospace;font-size:11px!important}
.spatial-moment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 16px;max-height:200px;overflow:auto;padding:0 1px 8px}
.spatial-moment{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:40px;text-align:left;border:0;border-bottom:1px solid #294252;background:transparent;color:#c7d9e5;padding:8px 1px;font:500 12px/1.5 Archivo,system-ui,sans-serif;cursor:pointer}
.spatial-moment:hover{color:#ff9d72}
.spatial-moment time{font:400 11px/1.4 JetBrains,monospace;color:#9fb6c4;white-space:nowrap}
.spatial-note{font-size:12px;line-height:1.65;color:#9fb6c4;padding:0 20px 16px;margin:0;overflow-wrap:anywhere}
.spatial-note a{color:#c8ddea;text-underline-offset:3px}
.spatial-apple-map{position:absolute;inset:0;width:100%;height:100%}
.spatial-apple-map[hidden],.spatial-canvas[hidden]{display:none!important}
.spatial-view :focus-visible{outline:3px solid #ff8c5e;outline-offset:3px}
.analysis-fullscreen .spatial-stage{height:70vh}
.spatial-heading strong,.spatial-heading span{overflow-wrap:anywhere}
.spatial-zoom{position:absolute;right:14px;bottom:83px;display:flex;flex-direction:column;gap:4px;z-index:2}
.spatial-zoom[hidden]{display:none!important}
.spatial-zoom .spatial-button{width:38px;height:38px;padding:0;font-size:20px;font-weight:400}
@media(max-width:1100px){.spatial-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.spatial-controls{justify-content:flex-start;width:100%}}
@media(max-width:760px){.spatial-toolbar{padding:16px}.spatial-heading span{font-size:11px}.spatial-controls{gap:7px}.spatial-button{min-height:44px;font-size:11px;padding:8px 10px}.spatial-control-group .spatial-button{min-height:36px;padding:8px 12px}.spatial-stage{height:380px}.spatial-hud{left:10px;right:10px;gap:10px;padding:10px 12px;flex-wrap:wrap;bottom:12px}.spatial-hud-phase{font-size:11px}.spatial-hud-altitude{font-size:21px}.spatial-hud-time{font-size:10px}.spatial-note,.spatial-legend,.spatial-details-bar{padding-inline:16px}.spatial-legend{gap:10px 15px}.spatial-phase{font-size:11px}.spatial-zoom .spatial-button{width:40px;height:44px}.spatial-moment-list{grid-template-columns:1fr}.spatial-moment{font-size:11px;min-height:44px}.spatial-detail>summary{min-height:42px;padding-block:11px}}
@media(max-width:430px){.spatial-hud{display:grid;grid-template-columns:auto auto;gap:4px 12px;text-align:center}.spatial-hud-time{grid-column:1/-1}.spatial-hud-altitude{font-size:22px}.spatial-zoom{right:10px;bottom:98px}.spatial-controls{gap:7px 6px}}
/* Satellite status stays beside its controls and is announced on change. */
.spatial-note{padding:10px 20px;margin:0;border-bottom:1px solid #294252;background:#102b3c;min-height:40px}
.spatial-note[data-state=loading]{color:#f6d9a4}.spatial-note[data-state=error]{color:#ffcfb9;border-left:3px solid #ff8b54}.spatial-note[data-state=ready]{color:#b9e8d8}
