astraeus 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/README.md +185 -37
  3. package/package.json +5 -4
  4. package/src/api/AstraeusScene.d.ts +21 -5
  5. package/src/api/AstraeusScene.js +34 -10
  6. package/src/api/AstraeusScene.node.js +34 -10
  7. package/src/api/assembleScene.d.ts +36 -0
  8. package/src/api/assembleScene.js +175 -0
  9. package/src/api/bodySetChecks.d.ts +10 -0
  10. package/src/api/bodySetChecks.js +117 -0
  11. package/src/api/bodySetInput.d.ts +81 -0
  12. package/src/api/bodySetInput.js +1 -0
  13. package/src/api/containingBlock.d.ts +6 -0
  14. package/src/api/containingBlock.js +16 -0
  15. package/src/api/data.d.ts +17 -5
  16. package/src/api/data.js +28 -10
  17. package/src/api/definitionOf.d.ts +16 -0
  18. package/src/api/definitionOf.js +20 -0
  19. package/src/api/errors.d.ts +61 -1
  20. package/src/api/frozenCopy.d.ts +6 -0
  21. package/src/api/frozenCopy.js +26 -0
  22. package/src/api/group.d.ts +8 -2
  23. package/src/api/group.js +24 -5
  24. package/src/api/index.d.ts +18 -7
  25. package/src/api/index.js +2 -2
  26. package/src/api/index.node.js +2 -2
  27. package/src/api/listeners.d.ts +5 -0
  28. package/src/api/listeners.js +25 -0
  29. package/src/api/look.d.ts +47 -0
  30. package/src/api/look.js +1 -0
  31. package/src/api/lookInput.d.ts +3 -0
  32. package/src/api/lookInput.js +41 -0
  33. package/src/api/moonPanelInput.d.ts +60 -0
  34. package/src/api/moonPanelInput.js +1 -0
  35. package/src/api/mount.d.ts +9 -19
  36. package/src/api/mount.js +27 -13
  37. package/src/api/mount.node.js +27 -13
  38. package/src/api/pathProvenance.js +1 -1
  39. package/src/api/pickerInput.d.ts +25 -0
  40. package/src/api/pickerInput.js +1 -0
  41. package/src/api/planBodies.d.ts +72 -0
  42. package/src/api/planBodies.js +300 -0
  43. package/src/api/planBodySets.d.ts +68 -0
  44. package/src/api/planBodySets.js +234 -0
  45. package/src/api/planCamera.d.ts +83 -0
  46. package/src/api/planCamera.js +184 -0
  47. package/src/api/planGroups.d.ts +36 -0
  48. package/src/api/planGroups.js +103 -0
  49. package/src/api/planMoonPanel.d.ts +19 -0
  50. package/src/api/planMoonPanel.js +104 -0
  51. package/src/api/planPaths.d.ts +40 -0
  52. package/src/api/planPaths.js +212 -0
  53. package/src/api/planPicker.d.ts +12 -0
  54. package/src/api/planPicker.js +40 -0
  55. package/src/api/planPlaces.d.ts +16 -0
  56. package/src/api/planPlaces.js +99 -0
  57. package/src/api/planStory.d.ts +26 -0
  58. package/src/api/planStory.js +66 -0
  59. package/src/api/planTimeline.d.ts +27 -0
  60. package/src/api/planTimeline.js +68 -0
  61. package/src/api/planViews.d.ts +25 -0
  62. package/src/api/planViews.js +35 -0
  63. package/src/api/prepared.js +4 -1
  64. package/src/api/renamedInputs.d.ts +15 -0
  65. package/src/api/renamedInputs.js +39 -0
  66. package/src/api/scene.d.ts +162 -68
  67. package/src/api/scene.js +247 -793
  68. package/src/api/sceneFreeze.d.ts +4 -0
  69. package/src/api/sceneFreeze.js +10 -0
  70. package/src/api/sceneReads.d.ts +171 -0
  71. package/src/api/sceneReads.js +6 -0
  72. package/src/api/story.d.ts +49 -19
  73. package/src/api/story.js +54 -22
  74. package/src/api/sunOrbit.js +9 -11
  75. package/src/api/time.d.ts +2 -1
  76. package/src/api/time.js +2 -1
  77. package/src/api/viewerCamera.d.ts +22 -0
  78. package/src/api/viewerCamera.js +84 -0
  79. package/src/api/viewerClock.d.ts +30 -0
  80. package/src/api/viewerClock.js +85 -0
  81. package/src/api/viewerFirstDraw.d.ts +14 -0
  82. package/src/api/viewerFirstDraw.js +26 -0
  83. package/src/api/viewerHandle.d.ts +79 -0
  84. package/src/api/viewerHandle.js +31 -0
  85. package/src/api/viewerLink.d.ts +87 -15
  86. package/src/api/viewerLink.js +111 -75
  87. package/src/api/viewerLooks.d.ts +19 -0
  88. package/src/api/viewerLooks.js +37 -0
  89. package/src/api/viewerPicker.d.ts +22 -0
  90. package/src/api/viewerPicker.js +49 -0
  91. package/src/api/viewerSelection.d.ts +25 -0
  92. package/src/api/viewerSelection.js +31 -0
  93. package/src/api/viewerViews.d.ts +10 -0
  94. package/src/api/viewerViews.js +18 -0
  95. package/src/api/viewerZones.d.ts +20 -0
  96. package/src/api/viewerZones.js +47 -0
  97. package/src/api/views.d.ts +4 -5
  98. package/src/api/views.js +7 -5
  99. package/src/app/App.d.ts +5 -3
  100. package/src/app/App.js +191 -82
  101. package/src/app/App.node.js +191 -82
  102. package/src/app/AstraeusScene.d.ts +16 -2
  103. package/src/app/AstraeusScene.js +4 -4
  104. package/src/app/BodyView.d.ts +4 -1
  105. package/src/app/BodyView.js +2 -2
  106. package/src/app/CameraController.d.ts +6 -0
  107. package/src/app/DeveloperSettings.d.ts +1 -4
  108. package/src/app/DeveloperSettings.js +6 -10
  109. package/src/app/FeatureMarkers.d.ts +4 -3
  110. package/src/app/FeatureMarkers.js +8 -13
  111. package/src/app/FrameRateSection.js +2 -1
  112. package/src/app/OrbitSetView.js +1 -1
  113. package/src/app/SettingControls.d.ts +11 -3
  114. package/src/app/SettingControls.js +10 -2
  115. package/src/app/SkyView.d.ts +3 -10
  116. package/src/app/SkyView.js +6 -28
  117. package/src/app/address.d.ts +16 -0
  118. package/src/app/address.js +31 -0
  119. package/src/app/bodyDraw.d.ts +10 -7
  120. package/src/app/bodyDraw.js +12 -32
  121. package/src/app/bodyMetrics.js +2 -2
  122. package/src/app/bodySet.d.ts +4 -20
  123. package/src/app/bodySet.js +5 -16
  124. package/src/app/debugReadout.js +1 -1
  125. package/src/app/displaySwitches.d.ts +4 -0
  126. package/src/app/displaySwitches.js +6 -0
  127. package/src/app/experienceDefinition.d.ts +11 -23
  128. package/src/app/listSwitch.d.ts +8 -14
  129. package/src/app/listSwitch.js +3 -10
  130. package/src/app/liveLook.d.ts +39 -0
  131. package/src/app/liveLook.js +66 -0
  132. package/src/app/look.d.ts +36 -0
  133. package/src/app/look.js +61 -0
  134. package/src/app/mission.d.ts +1 -1
  135. package/src/app/mission.js +1 -1
  136. package/src/app/openClock.d.ts +3 -2
  137. package/src/app/openClock.js +3 -3
  138. package/src/app/sceneCamera.js +9 -0
  139. package/src/app/sceneFrame.d.ts +4 -4
  140. package/src/app/sceneFrame.js +13 -8
  141. package/src/app/sceneHooks.js +3 -2
  142. package/src/app/style.css +114 -139
  143. package/src/app/trackedMetrics.d.ts +10 -3
  144. package/src/app/trackedMetrics.js +22 -11
  145. package/src/app/viewLink.d.ts +10 -32
  146. package/src/app/viewLink.js +10 -49
  147. package/src/app/viewerPort.d.ts +50 -0
  148. package/src/app/views.d.ts +1 -0
  149. package/src/assets/bodies/galileanMoons.js +1 -2
  150. package/src/assets/bodies/io.js +2 -2
  151. package/src/assets/bodies/listedMoons.d.ts +1 -1
  152. package/src/assets/bodies/listedMoons.js +2 -3
  153. package/src/assets/bodies/planetSystemMaps.js +2 -3
  154. package/src/assets/bodies/venus.js +2 -6
  155. package/src/assets/catalogue.js +1 -2
  156. package/src/assets/licence.d.ts +3 -3
  157. package/src/assets/licence.js +3 -3
  158. package/src/assets/pictures.d.ts +15 -12
  159. package/src/assets/pictures.js +24 -20
  160. package/src/assets/sky.d.ts +6 -5
  161. package/src/assets/sky.js +6 -9
  162. package/src/assets/visual.d.ts +4 -0
  163. package/src/core/bodies/index.d.ts +0 -4
  164. package/src/core/bodies/index.js +1 -6
  165. package/src/core/bodies/jupiterData.d.ts +0 -1
  166. package/src/core/bodies/jupiterData.js +2 -5
  167. package/src/core/bodies/moonSystem.d.ts +1 -1
  168. package/src/core/bodies/moonSystem.js +102 -55
  169. package/src/core/bodies/outerPlanetRingData.js +2 -2
  170. package/src/core/bodies/planetTrajectory.js +1 -1
  171. package/src/core/bodySetFamilies.d.ts +20 -0
  172. package/src/core/bodySetFamilies.js +14 -0
  173. package/src/core/chebyshevEphemeris.js +1 -1
  174. package/src/core/elementsBody.d.ts +8 -4
  175. package/src/core/elementsBody.js +32 -11
  176. package/src/core/elementsGroup.d.ts +27 -0
  177. package/src/core/elementsGroup.js +85 -0
  178. package/src/core/events.d.ts +2 -0
  179. package/src/core/events.js +2 -0
  180. package/src/core/illumination.js +1 -1
  181. package/src/core/listedOrbitGroup.d.ts +2 -0
  182. package/src/core/listedOrbitGroup.js +11 -7
  183. package/src/core/moonListText.d.ts +6 -0
  184. package/src/core/moonListText.js +19 -0
  185. package/src/core/moonTrajectory.js +1 -1
  186. package/src/core/pacing.d.ts +38 -3
  187. package/src/core/pacing.js +55 -4
  188. package/src/core/planetModels.js +2 -2
  189. package/src/core/planetSeries.d.ts +8 -0
  190. package/src/core/planetSeries.js +16 -2
  191. package/src/core/pointGroup.js +1 -1
  192. package/src/core/provenance.d.ts +2 -1
  193. package/src/core/provenance.js +2 -2
  194. package/src/core/referenceCenters.js +5 -5
  195. package/src/core/sampledTrajectory.js +1 -1
  196. package/src/core/scalePolicy.d.ts +1 -0
  197. package/src/core/startView.d.ts +19 -0
  198. package/src/core/startView.js +28 -0
  199. package/src/core/state.d.ts +6 -2
  200. package/src/core/state.js +3 -3
  201. package/src/core/storyPanels.d.ts +63 -0
  202. package/src/core/storyPanels.js +111 -0
  203. package/src/core/sunCentredSources.d.ts +4 -0
  204. package/src/core/sunCentredSources.js +9 -2
  205. package/src/core/timeInput.d.ts +4 -0
  206. package/src/core/timeInput.js +4 -0
  207. package/src/shell/AstraeusShell.d.ts +5 -1
  208. package/src/shell/AstraeusShell.js +20 -11
  209. package/src/shell/AstraeusShell.node.js +20 -11
  210. package/src/shell/Collapsible.d.ts +4 -3
  211. package/src/shell/Collapsible.js +5 -5
  212. package/src/shell/ControlsDrawer.d.ts +1 -1
  213. package/src/shell/ControlsDrawer.js +3 -1
  214. package/src/shell/DisplaySwitches.js +2 -1
  215. package/src/shell/InfoPanel.d.ts +3 -1
  216. package/src/shell/InfoPanel.js +5 -4
  217. package/src/shell/MoonFamilyPanel.js +1 -1
  218. package/src/shell/ObjectControls.d.ts +3 -1
  219. package/src/shell/ObjectControls.js +2 -2
  220. package/src/shell/Sources.d.ts +5 -3
  221. package/src/shell/Sources.js +5 -5
  222. package/src/shell/StoryPanelView.d.ts +4 -3
  223. package/src/shell/StoryPanelView.js +8 -6
  224. package/src/shell/SwitchControl.d.ts +5 -11
  225. package/src/shell/SwitchControl.js +2 -20
  226. package/src/shell/TimelineBar.css +81 -81
  227. package/src/shell/TimelineBar.d.ts +5 -2
  228. package/src/shell/TimelineBar.js +9 -8
  229. package/src/shell/TimelineBar.node.js +9 -8
  230. package/src/shell/TopBar.css +22 -22
  231. package/src/shell/TopBar.d.ts +5 -1
  232. package/src/shell/TopBar.js +2 -2
  233. package/src/shell/TopBar.node.js +2 -2
  234. package/src/shell/bootLoader.d.ts +4 -10
  235. package/src/shell/bootLoader.js +6 -52
  236. package/src/shell/embedded.css +18 -18
  237. package/src/shell/experience.d.ts +1 -1
  238. package/src/shell/moonFamilies.d.ts +2 -6
  239. package/src/shell/moonFamilies.js +2 -18
  240. package/src/shell/phone.css +58 -58
  241. package/src/shell/storyPanels.d.ts +2 -53
  242. package/src/shell/storyPanels.js +1 -106
  243. package/src/shell/style.css +153 -134
  244. package/src/shell/useDrawers.d.ts +3 -2
  245. package/src/shell/useDrawers.js +4 -3
  246. package/src/shell/viewerKeys.d.ts +8 -0
  247. package/src/shell/viewerKeys.js +16 -0
  248. package/src/synthetic/syntheticDefinition.js +20 -24
  249. package/src/synthetic/syntheticJourneyScene.js +3 -3
  250. package/src/synthetic/syntheticProbeDefinition.js +2 -1
  251. package/src/synthetic/syntheticViewsDefinition.d.ts +0 -3
  252. package/src/synthetic/syntheticViewsDefinition.js +10 -16
  253. package/data/moons/jupiter.json +0 -3333
  254. package/data/moons/neptune.json +0 -555
  255. package/data/moons/pluto.json +0 -205
  256. package/data/moons/saturn.json +0 -8267
  257. package/data/moons/uranus.json +0 -887
  258. package/src/app/addressNavigation.d.ts +0 -17
  259. package/src/app/addressNavigation.js +0 -16
  260. package/src/assets/bodies/jupiterMoonCatalogue.d.ts +0 -3
  261. package/src/assets/bodies/jupiterMoonCatalogue.js +0 -4
  262. package/src/assets/bodies/outerPlanetCatalogues.d.ts +0 -7
  263. package/src/assets/bodies/outerPlanetCatalogues.js +0 -8
  264. package/src/assets/bodies/swiftTuttle.d.ts +0 -12
  265. package/src/assets/bodies/swiftTuttle.js +0 -13
  266. package/src/assets/moonCatalogue.d.ts +0 -49
  267. package/src/assets/moonCatalogue.js +0 -80
  268. package/src/core/bodies/outerPlanetData.d.ts +0 -4
  269. package/src/core/bodies/outerPlanetData.js +0 -13
  270. package/src/core/bodies/swiftTuttle.d.ts +0 -46
  271. package/src/core/bodies/swiftTuttle.js +0 -106
@@ -1,17 +1,35 @@
1
+ /*
2
+ * Every rule in this sheet and in app/style.css sits under the viewer's root class, so a host page's own html, body and elements are never styled by
3
+ * the viewer (O-055 T-256). The root holds the viewer's custom properties, base colour and font; it fills the mount element, which `mount` and
4
+ * `AstraeusScene` make a containing block. A rule written as `.astraeus-shell :where(.x) ...` keeps the weight it had before the prefix existed, so it
5
+ * still ties or loses to controls.css, the bar sheets and the phone and embedded sheets exactly as it did; `:where()` adds no weight of its own.
6
+ */
1
7
  .astraeus-shell {
2
8
  position: absolute;
3
9
  inset: 0;
10
+ background: #000;
4
11
  color: var(--ui-color, #f0e6da);
5
12
  color-scheme: dark;
6
13
  font-family: var(--ui-font, system-ui, sans-serif);
7
14
  font-size: 14px;
8
15
  line-height: 1.4;
16
+ --ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
17
+ --ui-color: #f0e6da;
18
+ --ui-muted: #c7bdb3;
19
+ --ui-subtle: #a99e94;
20
+ --ui-border: rgba(240, 230, 218, .18);
21
+ --ui-panel: rgba(13, 13, 13, .94);
22
+ --ui-accent: #fc6323;
23
+ --ui-data: #b1a1df;
24
+ --perf-good: #6fcf8f;
25
+ --perf-warn: #f0b84a;
26
+ --perf-bad: #ff6b5e;
9
27
  }
10
28
 
11
- .shell-canvas { position: absolute; inset: 0; }
29
+ .astraeus-shell .shell-canvas { position: absolute; inset: 0; }
12
30
 
13
31
  /* Top-left column: toolbar, then the info panel, bounded above the timeline. */
14
- .shell-top {
32
+ .astraeus-shell .shell-top {
15
33
  position: absolute;
16
34
  z-index: 5;
17
35
  top: 12px;
@@ -24,10 +42,10 @@
24
42
  max-height: calc(100% - 12px - var(--shell-timeline-space, 150px));
25
43
  pointer-events: none;
26
44
  }
27
- .shell-top > * { pointer-events: auto; }
28
- .provenance-detail[hidden] { display: none !important; }
45
+ .astraeus-shell .shell-top > * { pointer-events: auto; }
46
+ .astraeus-shell .provenance-detail[hidden] { display: none !important; }
29
47
 
30
- .info-panel {
48
+ .astraeus-shell .info-panel {
31
49
  display: flex;
32
50
  flex-direction: column;
33
51
  gap: 8px;
@@ -42,30 +60,30 @@
42
60
  box-sizing: border-box;
43
61
  backdrop-filter: blur(12px);
44
62
  }
45
- .info-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
46
- .info-panel-header h2 { margin: 6px 0 0; font-size: 16px; line-height: 1.3; }
63
+ .astraeus-shell .info-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
64
+ .astraeus-shell .info-panel-header h2 { margin: 6px 0 0; font-size: 16px; line-height: 1.3; }
47
65
  /* Fact cards ported from Planetary Explorer's FeatureDetails (badge, then one small box per detail), in the shell's one UI font (O-039 T-134, I-058). */
48
- .info-panel-subtitle { margin: 0; }
49
- .info-panel-badge { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--ui-data, #b1a1df) 45%, transparent); border-radius: 999px; color: var(--ui-data, #b1a1df); font-size: 12px; line-height: 1.3; text-transform: capitalize; overflow-wrap: anywhere; }
50
- .info-panel-description { margin: 0; color: var(--ui-muted, #c7bdb3); }
51
- .info-panel-facts { display: grid; gap: 8px; margin: 0; min-width: 0; }
52
- .info-panel-fact { min-width: 0; padding: 8px 12px; border: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); border-radius: 12px; background: rgba(0, 0, 0, .2); text-align: left; }
53
- .info-panel-fact dt { margin: 0; color: var(--ui-muted, #c7bdb3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
54
- .info-panel-fact dd { margin: 4px 0 0; color: var(--ui-color, #f0e6da); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
55
- .info-panel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
66
+ .astraeus-shell .info-panel-subtitle { margin: 0; }
67
+ .astraeus-shell .info-panel-badge { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--ui-data, #b1a1df) 45%, transparent); border-radius: 999px; color: var(--ui-data, #b1a1df); font-size: 12px; line-height: 1.3; text-transform: capitalize; overflow-wrap: anywhere; }
68
+ .astraeus-shell .info-panel-description { margin: 0; color: var(--ui-muted, #c7bdb3); }
69
+ .astraeus-shell .info-panel-facts { display: grid; gap: 8px; margin: 0; min-width: 0; }
70
+ .astraeus-shell .info-panel-fact { min-width: 0; padding: 8px 12px; border: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); border-radius: 12px; background: rgba(0, 0, 0, .2); text-align: left; }
71
+ .astraeus-shell .info-panel-fact dt { margin: 0; color: var(--ui-muted, #c7bdb3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
72
+ .astraeus-shell .info-panel-fact dd { margin: 4px 0 0; color: var(--ui-color, #f0e6da); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
73
+ .astraeus-shell .info-panel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
56
74
 
57
- .provenance { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
75
+ .astraeus-shell .provenance { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
58
76
  .astraeus-shell .provenance-badge { display: inline-block; }
59
- .provenance-detail { margin: 0; font-size: 13px; }
60
- .provenance-detail dt { margin-top: 6px; color: var(--ui-color, #f0e6da); font-weight: 600; }
61
- .provenance-detail dd { margin: 2px 0 0; color: var(--ui-muted, #c7bdb3); overflow-wrap: anywhere; }
62
- .provenance-detail ul { margin: 0; padding-left: 18px; }
63
- .provenance-detail li + li { margin-top: 4px; }
77
+ .astraeus-shell .provenance-detail { margin: 0; font-size: 13px; }
78
+ .astraeus-shell .provenance-detail dt { margin-top: 6px; color: var(--ui-color, #f0e6da); font-weight: 600; }
79
+ .astraeus-shell .provenance-detail dd { margin: 2px 0 0; color: var(--ui-muted, #c7bdb3); overflow-wrap: anywhere; }
80
+ .astraeus-shell .provenance-detail ul { margin: 0; padding-left: 18px; }
81
+ .astraeus-shell .provenance-detail li + li { margin-top: 4px; }
64
82
 
65
- .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
83
+ .astraeus-shell .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
66
84
 
67
- .scene-labels { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
68
- .astraeus-label {
85
+ .astraeus-shell .scene-labels { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
86
+ .astraeus-shell .astraeus-label {
69
87
  position: absolute;
70
88
  z-index: 1;
71
89
  display: block;
@@ -83,14 +101,14 @@
83
101
  pointer-events: none;
84
102
  }
85
103
 
86
- .astraeus-label[hidden] { display: none !important; }
87
- .scene-object-label { z-index: 1; }
104
+ .astraeus-shell .astraeus-label[hidden] { display: none !important; }
105
+ .astraeus-shell .scene-object-label { z-index: 1; }
88
106
 
89
107
  .astraeus-shell input { color: inherit; font: inherit; }
90
- .developer-tools summary:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
108
+ .astraeus-shell :where(.developer-tools) summary:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
91
109
  .astraeus-shell input:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
92
110
 
93
- .developer-tools {
111
+ .astraeus-shell .developer-tools {
94
112
  position: absolute;
95
113
  /* Diagnostics must receive input above the toolbar and its information sheet. */
96
114
  z-index: 6;
@@ -117,11 +135,11 @@
117
135
  backdrop-filter: blur(12px);
118
136
  }
119
137
 
120
- .developer-tools[hidden] { display: none !important; }
138
+ .astraeus-shell .developer-tools[hidden] { display: none !important; }
121
139
 
122
140
 
123
141
  /* Metric Visuals: the number leads; the shape is small, quiet and only drawn against a real reference. */
124
- .metric {
142
+ .astraeus-shell .metric {
125
143
  display: flex;
126
144
  flex-direction: column;
127
145
  align-items: stretch;
@@ -132,52 +150,52 @@
132
150
  border-radius: 7px;
133
151
  background: rgba(0, 0, 0, .22);
134
152
  }
135
- .metric-label { color: var(--ui-muted, #c7bdb3); font-size: 11px; line-height: 1.3; }
136
- .metric-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
137
- .metric-reading { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
138
- .metric-value { color: var(--ui-color, #f0e6da); font: 600 19px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
139
- .metric-unit { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
140
- .metric-context { color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
141
- .metric-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
142
- .metric-readings { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
143
- .metric-coordinates .metric-value { font-size: 14px; }
153
+ .astraeus-shell .metric-label { color: var(--ui-muted, #c7bdb3); font-size: 11px; line-height: 1.3; }
154
+ .astraeus-shell .metric-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
155
+ .astraeus-shell .metric-reading { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
156
+ .astraeus-shell .metric-value { color: var(--ui-color, #f0e6da); font: 600 19px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
157
+ .astraeus-shell .metric-unit { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
158
+ .astraeus-shell .metric-context { color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
159
+ .astraeus-shell .metric-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
160
+ .astraeus-shell .metric-readings { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
161
+ .astraeus-shell .metric-coordinates .metric-value { font-size: 14px; }
144
162
 
145
- .metric-visual { flex: 0 0 auto; overflow: visible; }
146
- .metric-arc { width: 46px; height: 39px; }
147
- .metric-glyph { width: 30px; height: 30px; }
148
- .metric-bar { flex: 1 0 100%; width: 100%; height: 14px; }
149
- .metric-relation { width: 74px; height: 20px; }
150
- .metric-horizon-glyph { width: 34px; height: 34px; }
151
- .metric-track,
152
- .metric-fill { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
153
- .metric-track { stroke: #34302c; stroke-width: 5px; }
154
- .metric-fill { stroke: var(--ui-accent, #fc6323); stroke-width: 5px; }
155
- .metric-fill-light { stroke: #e9d6a8; }
156
- .metric-marker { stroke: var(--ui-data, #b1a1df); stroke-width: 2px; vector-effect: non-scaling-stroke; }
157
- .metric-disc { fill: #2a2724; stroke: rgba(240, 230, 218, .35); stroke-width: 1px; vector-effect: non-scaling-stroke; }
158
- .metric-lit { fill: #e9d6a8; }
159
- .metric-track-thin { stroke-width: 2px; }
160
- .metric-link { stroke: var(--ui-subtle, #a99e94); stroke-width: 1.5px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
161
- .metric-break { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
162
- .metric-dot { fill: var(--ui-accent, #fc6323); }
163
- .metric-horizon { fill: none; stroke: #e9d6a8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
164
- .metric-band { fill: rgba(177, 161, 223, .35); stroke: var(--ui-data, #b1a1df); stroke-width: 1px; vector-effect: non-scaling-stroke; }
165
- .metric-centre { stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
166
- .metric-axis,
167
- .metric-outline { fill: none; stroke: var(--ui-data, #b1a1df); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
168
- .metric-outline { stroke: rgba(240, 230, 218, .45); }
169
- .metric-radar { width: 56px; height: 42px; }
170
- .metric-view-frame { fill: rgba(255, 255, 255, .03); stroke: rgba(240, 230, 218, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; }
171
- .metric-view-axis { stroke: rgba(240, 230, 218, .16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
172
- .metric-view-origin { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1px; vector-effect: non-scaling-stroke; }
173
- .metric-view-reference { fill: var(--ui-data, #b1a1df); }
174
- .metric-view-link { stroke: var(--ui-accent, #fc6323); stroke-opacity: .55; stroke-width: 1px; vector-effect: non-scaling-stroke; }
175
- .metric-view-origin-tick,
176
- .metric-view-reference-tick,
177
- .metric-view-object-tick { stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
178
- .metric-view-origin-tick { stroke: rgba(240, 230, 218, .6); stroke-width: 1px; }
179
- .metric-view-reference-tick { stroke: var(--ui-data, #b1a1df); }
180
- .metric-view-object-tick { stroke: var(--ui-accent, #fc6323); }
163
+ .astraeus-shell .metric-visual { flex: 0 0 auto; overflow: visible; }
164
+ .astraeus-shell .metric-arc { width: 46px; height: 39px; }
165
+ .astraeus-shell .metric-glyph { width: 30px; height: 30px; }
166
+ .astraeus-shell .metric-bar { flex: 1 0 100%; width: 100%; height: 14px; }
167
+ .astraeus-shell .metric-relation { width: 74px; height: 20px; }
168
+ .astraeus-shell .metric-horizon-glyph { width: 34px; height: 34px; }
169
+ .astraeus-shell .metric-track,
170
+ .astraeus-shell .metric-fill { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
171
+ .astraeus-shell .metric-track { stroke: #34302c; stroke-width: 5px; }
172
+ .astraeus-shell .metric-fill { stroke: var(--ui-accent, #fc6323); stroke-width: 5px; }
173
+ .astraeus-shell .metric-fill-light { stroke: #e9d6a8; }
174
+ .astraeus-shell .metric-marker { stroke: var(--ui-data, #b1a1df); stroke-width: 2px; vector-effect: non-scaling-stroke; }
175
+ .astraeus-shell .metric-disc { fill: #2a2724; stroke: rgba(240, 230, 218, .35); stroke-width: 1px; vector-effect: non-scaling-stroke; }
176
+ .astraeus-shell .metric-lit { fill: #e9d6a8; }
177
+ .astraeus-shell .metric-track-thin { stroke-width: 2px; }
178
+ .astraeus-shell .metric-link { stroke: var(--ui-subtle, #a99e94); stroke-width: 1.5px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
179
+ .astraeus-shell .metric-break { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
180
+ .astraeus-shell .metric-dot { fill: var(--ui-accent, #fc6323); }
181
+ .astraeus-shell .metric-horizon { fill: none; stroke: #e9d6a8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
182
+ .astraeus-shell .metric-band { fill: rgba(177, 161, 223, .35); stroke: var(--ui-data, #b1a1df); stroke-width: 1px; vector-effect: non-scaling-stroke; }
183
+ .astraeus-shell .metric-centre { stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
184
+ .astraeus-shell .metric-axis,
185
+ .astraeus-shell .metric-outline { fill: none; stroke: var(--ui-data, #b1a1df); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
186
+ .astraeus-shell .metric-outline { stroke: rgba(240, 230, 218, .45); }
187
+ .astraeus-shell .metric-radar { width: 56px; height: 42px; }
188
+ .astraeus-shell .metric-view-frame { fill: rgba(255, 255, 255, .03); stroke: rgba(240, 230, 218, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; }
189
+ .astraeus-shell .metric-view-axis { stroke: rgba(240, 230, 218, .16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
190
+ .astraeus-shell .metric-view-origin { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1px; vector-effect: non-scaling-stroke; }
191
+ .astraeus-shell .metric-view-reference { fill: var(--ui-data, #b1a1df); }
192
+ .astraeus-shell .metric-view-link { stroke: var(--ui-accent, #fc6323); stroke-opacity: .55; stroke-width: 1px; vector-effect: non-scaling-stroke; }
193
+ .astraeus-shell .metric-view-origin-tick,
194
+ .astraeus-shell .metric-view-reference-tick,
195
+ .astraeus-shell .metric-view-object-tick { stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
196
+ .astraeus-shell .metric-view-origin-tick { stroke: rgba(240, 230, 218, .6); stroke-width: 1px; }
197
+ .astraeus-shell .metric-view-reference-tick { stroke: var(--ui-data, #b1a1df); }
198
+ .astraeus-shell .metric-view-object-tick { stroke: var(--ui-accent, #fc6323); }
181
199
 
182
200
  /* Keep scroll areas visually tied to the rest of the dark control surface. */
183
201
  .astraeus-shell * { scrollbar-color: #66584a #181716; scrollbar-width: thin; }
@@ -187,15 +205,15 @@
187
205
  .astraeus-shell *::-webkit-scrollbar-thumb:hover { background: #90745d; }
188
206
 
189
207
  @media (min-width: 701px) and (max-width: 900px) {
190
- .shell-top { max-width: calc(100vw - 16px); --shell-timeline-space: 184px; }
208
+ .astraeus-shell .shell-top { max-width: calc(100vw - 16px); --shell-timeline-space: 184px; }
191
209
  }
192
210
 
193
211
  @media (prefers-reduced-motion: reduce) {
194
- .developer-tools { scroll-behavior: auto; transition: none !important; }
212
+ .astraeus-shell .developer-tools { scroll-behavior: auto; transition: none !important; }
195
213
  }
196
214
 
197
215
  /* Story panels: a side panel beside the scene on a wide screen, a bottom sheet on a phone. Look after Planetary Explorer's SidePanel and BottomSheet. */
198
- .story-panel {
216
+ .astraeus-shell .story-panel {
199
217
  position: absolute;
200
218
  z-index: 4;
201
219
  top: 56px;
@@ -215,25 +233,26 @@
215
233
  backdrop-filter: blur(12px);
216
234
  animation: story-panel-in 300ms ease-out;
217
235
  }
218
- .sheet-handle { display: none; }
219
- .story-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
220
- .story-panel h2 { margin: 0; font-size: 17px; line-height: 1.3; }
221
- .story-panel-body p { margin: 0 0 8px; color: var(--ui-color, #f0e6da); }
222
- .story-panel-body p:last-child { margin-bottom: 0; }
236
+ .astraeus-shell .sheet-handle { display: none; }
237
+ .astraeus-shell .story-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
238
+ .astraeus-shell .story-panel h2 { margin: 0; font-size: 17px; line-height: 1.3; }
239
+ .astraeus-shell .story-panel-body p { margin: 0 0 8px; color: var(--ui-color, #f0e6da); }
240
+ .astraeus-shell .story-panel-body p:last-child { margin-bottom: 0; }
223
241
  /* Sources: a collapsible section, closed until tapped, in the information and story panels. */
224
- .sources-section { align-self: stretch; border-top: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); }
225
- .sources-section summary { margin-top: 2px; }
226
- .sources-count { color: var(--ui-subtle, #a99e94); font-weight: 400; }
227
- .sources-section[open] summary svg { transform: rotate(180deg); }
228
- .sources-section ul { margin: 0 0 8px; padding-left: 18px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
229
- .sources-details { margin: 0 0 8px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; }
230
- .sources-details p { margin: 6px 0; }
231
- .sources-section li + li { margin-top: 3px; }
232
- .story-panel-close { font-size: 20px; line-height: 1; }
233
- .story-panel-continue { align-self: flex-start; }
242
+ .astraeus-shell .sources-section { align-self: stretch; border-top: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); }
243
+ .astraeus-shell .sources-section summary { margin-top: 2px; }
244
+ .astraeus-shell .sources-count { color: var(--ui-subtle, #a99e94); font-weight: 400; }
245
+ .astraeus-shell .sources-section[open] summary svg { transform: rotate(180deg); }
246
+ .astraeus-shell .sources-section ul { margin: 0 0 8px; padding-left: 18px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
247
+ .astraeus-shell .sources-details { margin: 0 0 8px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; }
248
+ .astraeus-shell .sources-details p { margin: 6px 0; }
249
+ .astraeus-shell .sources-trust { margin-bottom: 8px; }
250
+ .astraeus-shell .sources-section li + li { margin-top: 3px; }
251
+ .astraeus-shell :where(.story-panel-close) { font-size: 20px; line-height: 1; }
252
+ .astraeus-shell :where(.story-panel-continue) { align-self: flex-start; }
234
253
 
235
254
  /* The badge: monospace caps pill, tinted by how far to trust the facts. */
236
- .story-badge {
255
+ .astraeus-shell .story-badge {
237
256
  display: inline-block;
238
257
  padding: 2px 8px;
239
258
  border: 1px solid var(--ui-border, rgba(240, 230, 218, .18));
@@ -244,13 +263,13 @@
244
263
  letter-spacing: .08em;
245
264
  text-transform: uppercase;
246
265
  }
247
- .story-badge[data-badge="observed"] { border-color: color-mix(in srgb, #a4c639 55%, transparent); color: #a4c639; }
248
- .story-badge[data-badge="modelled"] { border-color: color-mix(in srgb, var(--ui-data, #b1a1df) 60%, transparent); color: var(--ui-data, #b1a1df); }
249
- .story-badge[data-badge="illustrative"] { border-color: color-mix(in srgb, var(--ui-accent, #fc6323) 55%, transparent); color: var(--ui-accent, #fc6323); }
266
+ .astraeus-shell .story-badge[data-badge="observed"], .astraeus-shell .story-badge[data-badge="ephemeris"] { border-color: color-mix(in srgb, #a4c639 55%, transparent); color: #a4c639; }
267
+ .astraeus-shell .story-badge[data-badge="modelled"], .astraeus-shell .story-badge[data-badge="reconstructed"] { border-color: color-mix(in srgb, var(--ui-data, #b1a1df) 60%, transparent); color: var(--ui-data, #b1a1df); }
268
+ .astraeus-shell .story-badge[data-badge="illustrative"] { border-color: color-mix(in srgb, var(--ui-accent, #fc6323) 55%, transparent); color: var(--ui-accent, #fc6323); }
250
269
 
251
270
  /* Scene markers and the timeline marker for a panel: after Planetary Explorer's HotspotMarker (a ringed dot that fills when open). */
252
- .story-markers { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
253
- .story-marker {
271
+ .astraeus-shell .story-markers { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
272
+ .astraeus-shell .story-marker {
254
273
  position: absolute;
255
274
  top: 0;
256
275
  left: 0;
@@ -266,14 +285,14 @@
266
285
  pointer-events: auto;
267
286
  touch-action: none;
268
287
  }
269
- .story-marker::before { position: absolute; inset: -10px; content: ""; }
270
- .story-marker[aria-pressed="true"] { background: var(--ui-accent, #fc6323) !important; box-shadow: 0 0 8px var(--ui-accent, #fc6323), 0 0 16px color-mix(in srgb, var(--ui-accent, #fc6323) 40%, transparent); }
271
- .story-marker[hidden] { display: none !important; }
288
+ .astraeus-shell .story-marker::before { position: absolute; inset: -10px; content: ""; }
289
+ .astraeus-shell .story-marker[aria-pressed="true"] { background: var(--ui-accent, #fc6323) !important; box-shadow: 0 0 8px var(--ui-accent, #fc6323), 0 0 16px color-mix(in srgb, var(--ui-accent, #fc6323) 40%, transparent); }
290
+ .astraeus-shell .story-marker[hidden] { display: none !important; }
272
291
 
273
292
 
274
293
  /* Tagged places on a body: the donor's HotspotMarker look (10 px ringed dot in the category colour; 14 px and filled when its information is open). */
275
- .feature-markers { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
276
- .feature-marker {
294
+ .astraeus-shell .feature-markers { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
295
+ .astraeus-shell .feature-marker {
277
296
  position: absolute;
278
297
  top: 0;
279
298
  left: 0;
@@ -294,9 +313,9 @@
294
313
  transition: width 150ms ease, height 150ms ease, opacity 150ms ease, background 150ms ease, box-shadow 150ms ease;
295
314
  }
296
315
  /* 44 px square around the 10 px dot. */
297
- .feature-marker::before { position: absolute; inset: -19px; content: ""; }
298
- .feature-marker:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
299
- .feature-marker[aria-pressed="true"] {
316
+ .astraeus-shell .feature-marker::before { position: absolute; inset: -19px; content: ""; }
317
+ .astraeus-shell .feature-marker:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
318
+ .astraeus-shell .feature-marker[aria-pressed="true"] {
300
319
  width: 14px;
301
320
  height: 14px;
302
321
  opacity: 1;
@@ -304,7 +323,7 @@
304
323
  box-shadow: 0 0 8px var(--feature-color, #fff), 0 0 16px color-mix(in srgb, var(--feature-color, #fff) 40%, transparent);
305
324
  }
306
325
  /* The place's name on hover or keyboard focus (a tap opens its information, which is headed by the name). */
307
- .feature-marker::after {
326
+ .astraeus-shell .feature-marker::after {
308
327
  position: absolute;
309
328
  bottom: 120%;
310
329
  left: 50%;
@@ -321,12 +340,12 @@
321
340
  pointer-events: none;
322
341
  }
323
342
  /* Near the left, right or top edge the name flips inward so it never spills off the screen. */
324
- .feature-marker[data-edge-x="left"]::after { left: 0; transform: none; }
325
- .feature-marker[data-edge-x="right"]::after { right: 0; left: auto; transform: none; }
326
- .feature-marker[data-edge-y="top"]::after { top: 120%; bottom: auto; }
327
- .feature-marker::after { max-width: min(220px, 60vw); overflow: hidden; text-overflow: ellipsis; }
328
- .feature-marker:hover::after, .feature-marker:focus-visible::after { opacity: 1; }
329
- .feature-marker[hidden] { display: none !important; }
343
+ .astraeus-shell .feature-marker[data-edge-x="left"]::after { left: 0; transform: none; }
344
+ .astraeus-shell .feature-marker[data-edge-x="right"]::after { right: 0; left: auto; transform: none; }
345
+ .astraeus-shell .feature-marker[data-edge-y="top"]::after { top: 120%; bottom: auto; }
346
+ .astraeus-shell .feature-marker::after { max-width: min(220px, 60vw); overflow: hidden; text-overflow: ellipsis; }
347
+ .astraeus-shell .feature-marker:hover::after, .astraeus-shell .feature-marker:focus-visible::after { opacity: 1; }
348
+ .astraeus-shell .feature-marker[hidden] { display: none !important; }
330
349
 
331
350
  /* On a wide screen the diagnostics step left of an open story panel instead of covering it. */
332
351
  @media (min-width: 701px) {
@@ -337,13 +356,13 @@
337
356
  @keyframes story-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
338
357
 
339
358
  @media (prefers-reduced-motion: reduce) {
340
- .story-panel { animation: none; }
359
+ .astraeus-shell .story-panel { animation: none; }
341
360
  }
342
361
 
343
362
  /* ---- The moon panel (O-025 T-099): a planet's moons by family. Wide screens: a button and a sheet in the shell-top column (under the toolbar, in the information panel's
344
363
  area, so the two never overlap and opening one closes the other); phones: a section of the top drawer. ---- */
345
- .moons-toggle { flex: 0 0 auto; min-height: 44px; }
346
- .moons-sheet {
364
+ .astraeus-shell :where(.moons-toggle) { flex: 0 0 auto; min-height: 44px; }
365
+ .astraeus-shell .moons-sheet {
347
366
  display: none;
348
367
  flex: 0 1 auto;
349
368
  flex-direction: column;
@@ -358,21 +377,21 @@
358
377
  box-sizing: border-box;
359
378
  backdrop-filter: blur(12px);
360
379
  }
361
- .moons-sheet[data-open="true"] { display: flex; animation: moons-sheet-in var(--drawer-ms, 240ms) ease; }
380
+ .astraeus-shell .moons-sheet[data-open="true"] { display: flex; animation: moons-sheet-in var(--drawer-ms, 240ms) ease; }
362
381
  @keyframes moons-sheet-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
363
- .moon-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
364
- .moon-panel ul { margin: 0; padding: 0; list-style: none; }
365
- .moon-panel h3, .moon-panel h4 { margin: 0; font-size: 14px; }
366
- .moon-search { display: grid; gap: 4px; }
367
- .moon-search-label { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
368
- .moon-note { margin: 0 0 4px; color: var(--ui-muted, #c7bdb3); font-size: 13px; }
369
- .moon-families { display: flex; flex-direction: column; gap: 4px; }
370
- .moon-families[hidden] { display: none; }
371
- .moon-count, .moon-row-detail { color: var(--ui-muted, #c7bdb3); font-size: 12px; font-weight: 400; }
372
- .moon-pictures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
373
- .moon-picture { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; width: 100%; padding: 6px 2px; font-size: 12px; }
374
- .moon-disc { width: 44px; height: 44px; border-radius: 50%; background-color: #222; background-repeat: no-repeat; background-size: 300% 100%; background-position: 50% 50%; }
375
- .moon-family[data-lit="true"], .moon-featured[data-lit="true"] { border-radius: 10px; box-shadow: inset 3px 0 0 var(--ui-accent, #fc6323); }
376
- .moon-panel .collapsible-body { padding-left: 4px; }
377
- [data-phone="true"] .moon-panel { max-height: max(120px, calc(var(--controls-drawer-max, 60dvh) - 270px)); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
378
- @media (prefers-reduced-motion: reduce) { .moons-sheet { animation: none !important; } }
382
+ .astraeus-shell .moon-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
383
+ .astraeus-shell .moon-panel ul { margin: 0; padding: 0; list-style: none; }
384
+ .astraeus-shell .moon-panel h3, .astraeus-shell .moon-panel h4 { margin: 0; font-size: 14px; }
385
+ .astraeus-shell .moon-search { display: grid; gap: 4px; }
386
+ .astraeus-shell .moon-search-label { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
387
+ .astraeus-shell .moon-note { margin: 0 0 4px; color: var(--ui-muted, #c7bdb3); font-size: 13px; }
388
+ .astraeus-shell .moon-families { display: flex; flex-direction: column; gap: 4px; }
389
+ .astraeus-shell .moon-families[hidden] { display: none; }
390
+ .astraeus-shell .moon-count, .astraeus-shell .moon-row-detail { color: var(--ui-muted, #c7bdb3); font-size: 12px; font-weight: 400; }
391
+ .astraeus-shell .moon-pictures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
392
+ .astraeus-shell :where(.moon-picture) { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; width: 100%; padding: 6px 2px; font-size: 12px; }
393
+ .astraeus-shell .moon-disc { width: 44px; height: 44px; border-radius: 50%; background-color: #222; background-repeat: no-repeat; background-size: 300% 100%; background-position: 50% 50%; }
394
+ .astraeus-shell .moon-family[data-lit="true"], .astraeus-shell .moon-featured[data-lit="true"] { border-radius: 10px; box-shadow: inset 3px 0 0 var(--ui-accent, #fc6323); }
395
+ .astraeus-shell .moon-panel .collapsible-body { padding-left: 4px; }
396
+ .astraeus-shell[data-phone="true"] .moon-panel { max-height: max(120px, calc(var(--controls-drawer-max, 60dvh) - 270px)); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
397
+ @media (prefers-reduced-motion: reduce) { .astraeus-shell .moons-sheet { animation: none !important; } }
@@ -1,3 +1,4 @@
1
+ import { type RefObject } from "react";
1
2
  export interface Drawers {
2
3
  readonly controlsOpen: boolean;
3
4
  readonly timelineOpen: boolean;
@@ -5,7 +6,7 @@ export interface Drawers {
5
6
  readonly openTimeline: (open: boolean) => void;
6
7
  }
7
8
  /**
8
- * The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone.
9
+ * The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone (when pressed inside this viewer, `viewer` being its root, or on the bare page).
9
10
  * `onControlsOpened` runs when the controls drawer opens, for whatever else wants the same screen.
10
11
  */
11
- export declare function useDrawers(phone: boolean, onControlsOpened: () => void): Drawers;
12
+ export declare function useDrawers(phone: boolean, viewer: RefObject<Element | null>, onControlsOpened: () => void): Drawers;
@@ -1,9 +1,10 @@
1
1
  import { useEffect, useState } from "react";
2
+ import { keyIsForViewer } from "./viewerKeys.js";
2
3
  /**
3
- * The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone.
4
+ * The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone (when pressed inside this viewer, `viewer` being its root, or on the bare page).
4
5
  * `onControlsOpened` runs when the controls drawer opens, for whatever else wants the same screen.
5
6
  */
6
- export function useDrawers(phone, onControlsOpened) {
7
+ export function useDrawers(phone, viewer, onControlsOpened) {
7
8
  const [controlsOpen, setControlsOpen] = useState(false);
8
9
  const [timelineOpen, setTimelineOpen] = useState(false);
9
10
  const openControls = (open) => {
@@ -18,7 +19,7 @@ export function useDrawers(phone, onControlsOpened) {
18
19
  useEffect(() => {
19
20
  if (!phone || (!controlsOpen && !timelineOpen))
20
21
  return undefined;
21
- const onKey = (event) => { if (!event.defaultPrevented && event.key === "Escape") {
22
+ const onKey = (event) => { if (!event.defaultPrevented && event.key === "Escape" && keyIsForViewer(event, viewer.current)) {
22
23
  setControlsOpen(false);
23
24
  setTimelineOpen(false);
24
25
  } };
@@ -0,0 +1,8 @@
1
+ /** The one class every viewer's root carries (`AstraeusShell`'s `<main>`); a viewer's own parts are the ones inside it. */
2
+ export declare const VIEWER_ROOT_CLASS = "astraeus-shell";
3
+ /**
4
+ * Whether a document-level key press is this viewer's to act on (O-055, API-03): it was pressed inside the viewer, or on the bare page (body or document element,
5
+ * where a single viewer has always heard Escape). A key pressed in another viewer or in a host's own control reaches none of this viewer's panels.
6
+ * `part` is any element inside the viewer; the viewer is its nearest root.
7
+ */
8
+ export declare function keyIsForViewer(event: KeyboardEvent, part: Element | null): boolean;
@@ -0,0 +1,16 @@
1
+ /** The one class every viewer's root carries (`AstraeusShell`'s `<main>`); a viewer's own parts are the ones inside it. */
2
+ export const VIEWER_ROOT_CLASS = "astraeus-shell";
3
+ /**
4
+ * Whether a document-level key press is this viewer's to act on (O-055, API-03): it was pressed inside the viewer, or on the bare page (body or document element,
5
+ * where a single viewer has always heard Escape). A key pressed in another viewer or in a host's own control reaches none of this viewer's panels.
6
+ * `part` is any element inside the viewer; the viewer is its nearest root.
7
+ */
8
+ export function keyIsForViewer(event, part) {
9
+ const target = event.target;
10
+ if (target === null || target === document || target === document.body || target === document.documentElement)
11
+ return true;
12
+ if (!(target instanceof Node))
13
+ return false;
14
+ const viewer = part?.closest(`.${VIEWER_ROOT_CLASS}`) ?? null;
15
+ return viewer !== null && viewer.contains(target);
16
+ }
@@ -5,7 +5,7 @@ import { createEvents } from "../core/events.js";
5
5
  import { createProvenance } from "../core/provenance.js";
6
6
  import { SampledTrajectory } from "../core/sampledTrajectory.js";
7
7
  import { createWindows, rateAt } from "../core/timeWindow.js";
8
- import { parseStoryPanels } from "../shell/storyPanels.js";
8
+ import { checkStoryPanel, resolveStoryPanels } from "../shell/storyPanels.js";
9
9
  const START_UTC_MS = Date.UTC(2030, 0, 1, 0, 0, 0);
10
10
  const MINUTE_MS = 60_000;
11
11
  const SAMPLE_COUNT = 97;
@@ -48,29 +48,25 @@ const events = createEvents([
48
48
  { id: "marker-quarter", label: "Marker passes a quarter turn", timeUtcMs: START_UTC_MS + 120 * MINUTE_MS },
49
49
  ]);
50
50
  /** Two made-up story panels (one about the marker, one about nothing in particular) so the story-panel checks run without a real story. */
51
- const storyPanels = parseStoryPanels({
52
- pauseSeconds: 2,
53
- panels: [
54
- {
55
- id: "marker-loop",
56
- at: { utc: new Date(START_UTC_MS + 60 * MINUTE_MS).toISOString() },
57
- title: "The marker's loop",
58
- body: ["The survey marker goes round a made-up circle.", "Nothing here is a real object."],
59
- details: ["The loop radius and speed were chosen for this fixture."],
60
- badge: "illustrative",
61
- sources: ["Made up for the story-panel test; not a real source"],
62
- object: "survey-marker",
63
- },
64
- {
65
- id: "marker-late",
66
- at: { utc: new Date(START_UTC_MS + 300 * MINUTE_MS).toISOString() },
67
- title: "A later note",
68
- body: ["A second made-up panel, further along the timeline."],
69
- badge: "modelled",
70
- sources: ["Made up for the story-panel test; not a real source"],
71
- },
72
- ],
73
- }, { events, anchors: new Map(), objectIds: ["earth", "moon", marker.id], window: bounds });
51
+ const madeUpPanel = (sourceType) => ({ sourceType, sources: ["Made up for the story-panel test; not a real source"], accuracy: "None claimed.", notes: "Made up for this fixture." });
52
+ const storyPanels = resolveStoryPanels([
53
+ {
54
+ id: "marker-loop",
55
+ at: { time: START_UTC_MS + 60 * MINUTE_MS },
56
+ title: "The marker's loop",
57
+ body: ["The survey marker goes round a made-up circle.", "Nothing here is a real object."],
58
+ details: ["The loop radius and speed were chosen for this fixture."],
59
+ provenance: madeUpPanel("illustrative"),
60
+ object: "survey-marker",
61
+ },
62
+ {
63
+ id: "marker-late",
64
+ at: { time: START_UTC_MS + 300 * MINUTE_MS },
65
+ title: "A later note",
66
+ body: ["A second made-up panel, further along the timeline."],
67
+ provenance: madeUpPanel("modelled"),
68
+ },
69
+ ].map(checkStoryPanel), { pauseSeconds: 2, autoOpen: true }, { events, anchors: new Map(), objectIds: ["earth", "moon", marker.id], window: bounds });
74
70
  const at = (minutes) => START_UTC_MS + minutes * MINUTE_MS;
75
71
  const windowProvenance = (accuracy, notes) => createProvenance({
76
72
  sourceType: "illustrative",
@@ -1,7 +1,7 @@
1
1
  // O-047 T-203, O-049 T-212: a made-up probe journey from 1977 out to 170 AU, built only through the public Scene API (ARCH-01: no real mission, name or data).
2
2
  // It leaves Earth's place on 5 September 1977, passes Jupiter on 5 March 1979, Saturn on 12 November 1980 and Uranus on 24 January 1986, then flies straight out to 170 AU by 1 January 2026.
3
3
  // Uranus adds its five main moons (listed moons, one rule, orbit lines on; T-212). The giant planets draw their rings by default (catalogue data, O-048 T-205), Europa, Ganymede and Titan draw their orbit lines (T-206) and each pass names its planet as the event's object (T-207).
4
- // In one scene it proves: moons at historical dates (the data packages are handed to `toDefinition`), Saturn's orbit line, paced playback, provenance that changes along the path,
4
+ // In one scene it proves: moons at historical dates (the data packages are handed to `mount`), Saturn's orbit line, paced playback, provenance that changes along the path,
5
5
  // the opening selection and a camera that zooms out to the whole path (I-114). The planets' places come from the planet series, so the series must be loaded before this builds (the site does).
6
6
  import { Scene } from "../api/scene.js";
7
7
  import { callisto, dione, earth, enceladus, europa, ganymede, iapetus, io, jupiter, mimas, rhea, saturn, sun, tethys, titan, uranus } from "../api/bodies.js";
@@ -81,8 +81,8 @@ export function buildSyntheticJourneyScene() {
81
81
  rates: [DAY_MS / 1000, 30 * DAY_MS / 1000, YEAR_S],
82
82
  rate: 30 * DAY_MS / 1000,
83
83
  pacing: [
84
- { near: { type: "encounter", within: 30 * DAY_MS / 1000 }, rate: DAY_MS / 1000 },
85
- { from: JOURNEY_URANUS_UTC_MS + 120 * DAY_MS, to: JOURNEY_END_UTC_MS, rate: YEAR_S },
84
+ { near: { type: "encounter", withinSeconds: 30 * DAY_MS / 1000 }, rate: DAY_MS / 1000 },
85
+ { start: JOURNEY_URANUS_UTC_MS + 120 * DAY_MS, end: JOURNEY_END_UTC_MS, rate: YEAR_S },
86
86
  ],
87
87
  });
88
88
  scene.setScale(solarSystemScale);
@@ -1,5 +1,6 @@
1
1
  import { earth, mars, sun, venus } from "../api/bodies.js";
2
2
  import { Scene } from "../api/scene.js";
3
+ import { definitionOf } from "../api/definitionOf.js";
3
4
  import { solarSystemScale } from "../core/scalePolicy.js";
4
5
  import { createOrbTwoBodyAdapter } from "../core/twoBodyAdapter.js";
5
6
  export const PROBE_START_UTC_MS = Date.parse("2026-01-01T00:00:00Z");
@@ -35,4 +36,4 @@ scene.addEvents([{ id: "probe-flyby", label: "Made-up flyby of Earth", time: PRO
35
36
  scene.setScale(solarSystemScale);
36
37
  scene.camera.follow("probe", { distance: 70_000 });
37
38
  scene.camera.fitOrbit(mars);
38
- export const syntheticProbeDefinition = scene.toDefinition();
39
+ export const syntheticProbeDefinition = definitionOf(scene);
@@ -1,6 +1,3 @@
1
1
  import type { ExperienceDefinition } from "../app/experienceDefinition.js";
2
- import { ViewerLink } from "../api/viewerLink.js";
3
2
  export declare const VIEWS_START_UTC_MS: number;
4
3
  export declare const syntheticViewsDefinition: ExperienceDefinition;
5
- /** The host link a host page gets from `mount`, for the dev page: kept on `window.astraeusHost` so a browser check can call `setView` and read what the viewer tells a host. */
6
- export declare function createViewsHost(): ViewerLink;