@intentius/behold 0.29.40 → 0.29.42

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 (61) hide show
  1. package/AGENTS.md +180 -10
  2. package/README.md +6 -2
  3. package/dist/cli.js +16121 -13141
  4. package/example-writes/README.md +1 -1
  5. package/example-writes/chant.config.ts +0 -6
  6. package/package.json +5 -2
  7. package/web/app.js +327 -21
  8. package/web/carve-export.js +142 -0
  9. package/web/carve-narration.js +294 -0
  10. package/web/carve-narration.test.js +48 -0
  11. package/web/change-set-overlay.js +147 -0
  12. package/web/change-set-overlay.test.js +83 -0
  13. package/web/dots-border.js +66 -0
  14. package/web/dots-border.test.js +27 -0
  15. package/web/dots-kiosk.js +279 -0
  16. package/web/dots-kiosk.test.js +60 -0
  17. package/web/dots-layout.d.ts +10 -0
  18. package/web/dots-layout.js +201 -0
  19. package/web/dots-live.js +316 -0
  20. package/web/dots-live.test.js +220 -0
  21. package/web/dots-lod.js +122 -0
  22. package/web/dots-lod.test.js +78 -0
  23. package/web/dots-recording.d.ts +7 -0
  24. package/web/dots-recording.js +247 -0
  25. package/web/dots-recording.test.js +71 -0
  26. package/web/dots-scene.js +294 -0
  27. package/web/dots-scene.test.js +118 -0
  28. package/web/dots-timeline.js +128 -0
  29. package/web/dots-timeline.test.js +83 -0
  30. package/web/dots-tour.js +153 -0
  31. package/web/dots.js +2124 -0
  32. package/web/dots.test.js +15 -0
  33. package/web/event-help-modal.js +1 -1
  34. package/web/index.html +215 -121
  35. package/web/kiosk-carve.js +225 -0
  36. package/web/kiosk-carve.test.js +26 -0
  37. package/web/kiosk-event-help-ui.js +7 -1
  38. package/web/kiosk-link.js +68 -0
  39. package/web/kiosk-link.test.js +69 -0
  40. package/web/kiosk-metrics.js +2 -2
  41. package/web/kiosk-trace.js +1 -1
  42. package/web/kiosk.html +186 -135
  43. package/web/kiosk.js +65 -7
  44. package/web/motion.js +42 -0
  45. package/web/motion.test.js +64 -0
  46. package/web/operator.js +1 -1
  47. package/web/run-playhead.js +102 -19
  48. package/web/run-playhead.test.js +81 -11
  49. package/web/terralith.html +2 -2
  50. package/web/theme.js +99 -26
  51. package/web/theme.test.js +70 -6
  52. package/web/tooltip.js +212 -0
  53. package/web/tooltip.test.js +193 -0
  54. package/web/tour-player.js +204 -0
  55. package/web/tour-player.test.js +115 -0
  56. package/web/tours/behold.tour.v1.schema.json +182 -0
  57. package/web/tours/terralith.json +330 -0
  58. package/web/trunk-lane.js +406 -0
  59. package/web/trunk-lane.test.js +224 -0
  60. package/web/workspace-gates.js +29 -4
  61. package/web/workspace-gates.test.js +23 -2
package/web/index.html CHANGED
@@ -3,6 +3,23 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <!-- behold#725: the stored theme, before the first frame. theme.js derives
7
+ a theme in a module, which runs after the page has painted once, so a
8
+ viewer's own theme would open on the default below for a moment.
9
+ applyTheme() keeps what it last painted under behold.theme.paint; this
10
+ applies that record when it belongs to the stored theme. A blocked or
11
+ empty store leaves the default as it is. -->
12
+ <script>
13
+ try {
14
+ var beholdTheme = localStorage.getItem("behold.theme");
15
+ var beholdPaint = beholdTheme && JSON.parse(localStorage.getItem("behold.theme.paint") || "null");
16
+ if (beholdPaint && beholdPaint.name === beholdTheme && beholdPaint.vars) {
17
+ var beholdRoot = document.documentElement;
18
+ for (var k in beholdPaint.vars) if (k.slice(0, 2) === "--") beholdRoot.style.setProperty(k, beholdPaint.vars[k]);
19
+ if (beholdPaint.scheme) beholdRoot.style.setProperty("color-scheme", beholdPaint.scheme);
20
+ }
21
+ } catch (e) { /* private mode or a bad record: the default paints */ }
22
+ </script>
6
23
  <title>behold</title>
7
24
  <!-- #393: "nothing in the browser console" includes the 404 every page
8
25
  load has always fetched for itself. behold ships no icon file and its
@@ -22,11 +39,11 @@
22
39
  live in this block; smoke/ui-smoke.mjs recomputes them from theme.js
23
40
  and fails if the two drift apart. */
24
41
  :root {
25
- --bg: #1e1e2e; --panel: #2e2f40; --line: #3b3c4a; --fg: #cdd6f4; --muted: #777a8c;
42
+ --bg: #1e1e2e; --panel: #2e2f40; --line: #3b3c4a; --fg: #cdd6f4; --muted: #9598aa; --ink2: #c4cbe4;
26
43
  --edge: #56596d; --managed: #a6e3a1; --foreign: #f9e2af; --pending: #89b4fa;
27
44
  --degraded: #f38ba8; --neutral: #6d7187; --runtime: #94e2d5;
28
45
  --rule: #4e4f64; --focus: #a3b4d0; --active: #3d4660; --well: #11101f; --shadow: #050507;
29
- --bar-managed: #a6e3a1; --bar-foreign: #f9e2af; --bar-pending: #89b4fa; --bar-degraded: #f38ba8; --bar-runtime: #94e2d5; --bar-neutral: #9a9eb5;
46
+ --bar-managed: #a6e3a1; --bar-foreign: #f9e2af; --bar-pending: #89b4fa; --bar-degraded: #f38ba8; --bar-runtime: #94e2d5; --bar-neutral: #9b9fb7;
30
47
  }
31
48
  /* The non-colour half of the identity: type and radii. These can't derive
32
49
  from a colour theme, so they're the one static token block — but they
@@ -42,10 +59,16 @@
42
59
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
43
60
  --t-display: 15px;
44
61
  --t-body: 12.5px;
45
- --t-caption: 10.5px;
46
- --t-caps: .07em;
62
+ --t-caption: 11.5px;
47
63
  --r-ctl: 3px;
48
64
  --r-shell: 10px;
65
+ /* behold#725: the spacing steps. Every padding, margin and gap between
66
+ a hairline and 16px takes the nearest one. */
67
+ --s1: 4px; --s2: 6px; --s3: 8px; --s4: 12px; --s5: 16px;
68
+ /* behold#725: the one period every looping animation runs on, so they
69
+ keep time with each other; web/motion.js pauses them all while the
70
+ tab is hidden. */
71
+ --beat: 1.2s;
49
72
  }
50
73
  * { box-sizing: border-box; }
51
74
  html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
@@ -66,21 +89,22 @@
66
89
  }
67
90
  #graph { grid-row: 1; grid-column: 1; overflow: auto; position: relative; }
68
91
  #inspect { grid-row: 1; grid-column: 2; border-left: 1px solid var(--rule); background: var(--panel);
69
- padding: 14px; overflow: auto; position: relative; }
70
- /* Section labels are the sans voice: small caps, tracked, muted. Every
71
- heading in this pane (identity, live, drift, field ownership — app.js
72
- appends them) is styled here rather than inline, so the scale stays in
73
- one place. */
74
- #inspect h2, #inspect h3 { color: var(--muted); font-size: var(--t-caption); font-weight: 600;
75
- text-transform: uppercase; letter-spacing: var(--t-caps); }
76
- #inspect h2 { margin: 0 0 10px; }
77
- #inspect h3 { margin: 16px 0 6px; }
92
+ padding: var(--s4); overflow: auto; position: relative; }
93
+ /* Section labels are the sans voice: sentence case, 600, muted
94
+ (behold#725; they were tracked capitals). Every heading in this pane
95
+ (identity, live, drift, field ownership — app.js appends them) is
96
+ styled here rather than inline, so the scale stays in one place.
97
+ app.js writes most of them in lower case, so their first letter is
98
+ raised with ::first-letter (the behold#725 block at the end). */
99
+ #inspect h2, #inspect h3 { color: var(--muted); font: 600 var(--t-caption)/1.4 var(--font-ui); }
100
+ #inspect h2 { margin: 0 0 var(--s3); }
101
+ #inspect h3 { margin: var(--s5) 0 var(--s2); }
78
102
  /* Declared/identity: key ABOVE value, value full-width — long ARNs wrap
79
103
  readably instead of being crushed into a squeezed right column. The
80
104
  VALUE is data — an id, an ARN, a physical id, a status — so it's mono;
81
105
  the key stays sans. */
82
106
  #inspect dl { margin: 0; }
83
- #inspect dt { color: var(--muted); font-size: var(--t-caption); margin-top: 9px; }
107
+ #inspect dt { color: var(--muted); font-size: var(--t-caption); margin-top: var(--s3); }
84
108
  #inspect dd { margin: 2px 0 0; font: var(--t-body)/1.45 var(--font-mono); overflow-wrap: anywhere; }
85
109
  #inspect p { font-size: var(--t-body); }
86
110
  /* #192: the queried-address diagnosis line — a request path, so mono. */
@@ -94,8 +118,8 @@
94
118
  #inspect-collapse:hover { color: var(--fg); }
95
119
  #inspect-reopen { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30; display: none;
96
120
  background: var(--panel); color: var(--muted); border: 1px solid var(--rule); border-right: none;
97
- border-radius: var(--r-ctl) 0 0 var(--r-ctl); padding: 10px 5px; cursor: pointer;
98
- writing-mode: vertical-rl; font-size: var(--t-caption); letter-spacing: var(--t-caps); }
121
+ border-radius: var(--r-ctl) 0 0 var(--r-ctl); padding: var(--s3) var(--s1); cursor: pointer;
122
+ writing-mode: vertical-rl; font-size: var(--t-caption); }
99
123
  #inspect-reopen:hover { color: var(--fg); border-color: var(--focus); }
100
124
  #app.inspect-collapsed #inspect-reopen { display: block; }
101
125
  /* The graph SVG is pinhole's, self-styled. It fills the pane; behold drives
@@ -132,6 +156,8 @@
132
156
  }
133
157
  @media (prefers-reduced-motion: reduce) {
134
158
  #graph svg, #graph [data-node-id].status-changed { animation: none; }
159
+ /* behold#725: the load spinner holds still; its ring and the message under it still say it is loading. */
160
+ #loading-overlay .spinner { animation: none; }
135
161
  #graph g[data-edge-from] .pin-edge-line { transition: none; }
136
162
  #graph [data-layout-resize] { transition: none; }
137
163
  }
@@ -172,48 +198,48 @@
172
198
  #graph g[data-edge-kind="includes"] rect, #graph g[data-edge-kind="extends"] rect { stroke: var(--muted); }
173
199
  /* #477: a declared workspace's waiting gates, over the top of the graph
174
200
  pane (same grid cell, so #graph's re-renders never take it with them). */
175
- #ws-gates { grid-row: 1; grid-column: 1; align-self: start; justify-self: center; z-index: 3; margin-top: 8px;
176
- max-width: min(560px, 70%); display: flex; flex-direction: column; gap: 6px; }
201
+ #ws-gates { grid-row: 1; grid-column: 1; align-self: start; justify-self: center; z-index: 3; margin-top: var(--s3);
202
+ max-width: min(560px, 70%); display: flex; flex-direction: column; gap: var(--s2); }
177
203
  #ws-gates[hidden] { display: none; }
178
204
  #ws-gates .ws-gate { background: var(--panel); border: 1px solid var(--warn, var(--rule)); border-radius: var(--r-ctl);
179
- padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
205
+ padding: var(--s2) var(--s3); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
180
206
  #ws-gates .ws-gate-title { font-weight: 600; }
181
207
  #ws-gates .ws-gate-facts, #ws-gates .ws-gate-note { color: var(--muted); font-size: var(--t-caption); }
182
- #ws-gates .ws-gate button { margin-top: 4px; }
208
+ #ws-gates .ws-gate button { margin-top: var(--s1); }
183
209
  /* #526: SQL Yodeler's report and drift, from files, dated. Never a fill. */
184
- #panel-body #tab-yodel.active { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-caption); }
185
- #tab-yodel h3 { margin: 8px 0 0; font-size: var(--t-caption); }
210
+ #panel-body #tab-yodel.active { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-caption); }
211
+ #tab-yodel h3 { margin: var(--s3) 0 0; font-size: var(--t-caption); }
186
212
  #tab-yodel .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
187
213
  #tab-yodel .tg-inspect { overflow-wrap: anywhere; }
188
214
  #tab-yodel .tg-refusal { color: var(--degraded); font-weight: 600; }
189
215
  /* #524: SQL Yodeler's gates on chant/lifecycle, dated. A Copy button is the only control. */
190
- #panel-body #tab-yodel-lane.active { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-caption); }
191
- #tab-yodel-lane h3 { margin: 8px 0 0; font-size: var(--t-caption); }
216
+ #panel-body #tab-yodel-lane.active { display: flex; flex-direction: column; gap: var(--s2); font-size: var(--t-caption); }
217
+ #tab-yodel-lane h3 { margin: var(--s3) 0 0; font-size: var(--t-caption); }
192
218
  #tab-yodel-lane .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
193
219
  #tab-yodel-lane .tg-refusal { color: var(--degraded); font-weight: 600; }
194
- #tab-yodel-lane .ws-gate { border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; }
220
+ #tab-yodel-lane .ws-gate { border: 1px solid var(--rule); border-radius: 6px; padding: var(--s2) var(--s3); }
195
221
  #tab-yodel-lane .ws-gate-title { font-weight: 600; }
196
222
  #tab-yodel-lane .ws-gate-facts, #tab-yodel-lane .ws-gate-note { color: var(--muted); overflow-wrap: anywhere; }
197
- #tab-yodel-lane .tg-command { display: block; font-family: var(--font-mono); overflow-wrap: anywhere; margin: 4px 0; }
223
+ #tab-yodel-lane .tg-command { display: block; font-family: var(--font-mono); overflow-wrap: anywhere; margin: var(--s1) 0; }
198
224
  /* #490: terragucci's reports, dated. Never a fill. */
199
- #panel-body #tab-terragucci.active { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-caption); }
225
+ #panel-body #tab-terragucci.active { display: flex; flex-direction: column; gap: var(--s3); font-size: var(--t-caption); }
200
226
  #tab-terragucci .tg-legend, #tab-terragucci .tg-estate { color: var(--muted); }
201
227
  #tab-terragucci .tg-refusal { color: var(--degraded); font-weight: 600; }
202
- #tab-terragucci .ws-gate { background: var(--panel); border: 1px solid var(--pending, var(--rule)); border-radius: var(--r-ctl); padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
228
+ #tab-terragucci .ws-gate { background: var(--panel); border: 1px solid var(--pending, var(--rule)); border-radius: var(--r-ctl); padding: var(--s2) var(--s3); display: flex; flex-direction: column; gap: 3px; }
203
229
  #tab-terragucci .ws-gate-title { font-weight: 600; }
204
230
  #tab-terragucci .ws-gate-facts, #tab-terragucci .ws-gate-note { color: var(--muted); overflow-wrap: anywhere; }
205
- #inspect-body .tg-inspect { font-size: var(--t-caption); margin: 2px 0 6px; overflow-wrap: anywhere; }
231
+ #inspect-body .tg-inspect { font-size: var(--t-caption); margin: 2px 0 var(--s2); overflow-wrap: anywhere; }
206
232
  #inspect-body .tg-inspect a { color: inherit; }
207
233
  #tab-terragucci .tg-command { font-family: var(--font-mono); overflow-wrap: anywhere; }
208
- #tab-terragucci .tg-root { border-top: 1px solid var(--rule); padding-top: 4px; }
234
+ #tab-terragucci .tg-root { border-top: 1px solid var(--rule); padding-top: var(--s1); }
209
235
  #tab-terragucci .tg-path { font-family: var(--font-mono); }
210
- #tab-terragucci .tg-cells { display: flex; flex-wrap: wrap; gap: 0 10px; }
236
+ #tab-terragucci .tg-cells { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
211
237
  #tab-terragucci .tg-cells > span::before { content: attr(data-stage) ": "; color: var(--muted); }
212
238
  #tab-terragucci .tg-drift, #tab-terragucci .tg-failed { color: var(--degraded); }
213
239
  #tab-terragucci .tg-wave { color: var(--pending); }
214
240
  /* #509: a control repo's projects, over the empty graph area. Dated, never live. */
215
- #tg-estate { grid-row: 1; grid-column: 1; z-index: 2; overflow: auto; background: var(--bg); padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-caption); }
216
- #tg-estate .tg-estate-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
241
+ #tg-estate { grid-row: 1; grid-column: 1; z-index: 2; overflow: auto; background: var(--bg); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s3); font-size: var(--t-caption); }
242
+ #tg-estate .tg-estate-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; }
217
243
  #tg-estate .tg-legend, #tg-estate .tg-none, #tg-estate .ws-gate-facts, #tg-estate .ws-gate-note { color: var(--muted); overflow-wrap: anywhere; }
218
244
  #tg-estate .tg-refusal, #tg-estate .tg-bad { color: var(--degraded); font-weight: 600; }
219
245
  #tg-estate a { color: inherit; }
@@ -230,20 +256,53 @@
230
256
  #tg-estate .tg-root-node text { font-family: var(--font-mono); }
231
257
  #tg-estate .tg-edge { fill: none; stroke: var(--edge); stroke-width: 1.3; }
232
258
  #tg-estate .tg-edge-cross { stroke-dasharray: 5 4; stroke: var(--pending); }
233
- #tg-estate .tg-estate-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
234
- #tg-estate .tg-estate-project { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
259
+ #tg-estate .tg-estate-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
260
+ #tg-estate .tg-estate-project { border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: var(--s2) var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
235
261
  #tg-estate .tg-estate-title { font-weight: 600; overflow-wrap: anywhere; }
236
- #tg-estate .ws-gate { border: 1px solid var(--pending, var(--rule)); border-radius: var(--r-ctl); padding: 4px 6px; }
237
- #tg-estate .tg-estate-cmd { display: flex; gap: 6px; align-items: center; }
262
+ #tg-estate .ws-gate { border: 1px solid var(--pending, var(--rule)); border-radius: var(--r-ctl); padding: var(--s1) var(--s2); }
263
+ #tg-estate .tg-estate-cmd { display: flex; gap: var(--s2); align-items: center; }
238
264
  #tg-estate .tg-command { font-family: var(--font-mono); overflow-wrap: anywhere; }
239
265
  #tab-terragucci .tg-plan { color: var(--fg); }
240
266
  #tab-terragucci .tg-none, #tab-terragucci .tg-ok { color: var(--muted); }
241
267
  #tab-terragucci a { color: inherit; }
242
268
  /* #506: the audit record's lane, in the tab and in a card's inspect pane. */
243
- #tab-terragucci .tg-timeline-title { font-weight: 600; border-top: 1px solid var(--rule); padding-top: 6px; }
269
+ #tab-terragucci .tg-timeline-title { font-weight: 600; border-top: 1px solid var(--rule); padding-top: var(--s2); }
244
270
  .tg-timeline { display: flex; flex-direction: column; gap: 3px; font-size: var(--t-caption); }
245
- .rel-strip { border-collapse: collapse; margin: 6px 0; font-size: 12px; }
246
- .rel-strip th, .rel-strip td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--neutral); }
271
+ /* #680: the trunk lane. */
272
+ #panel-body #tab-trunk.active { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-caption); }
273
+ #tab-trunk h3 { margin: var(--s3) 0 0; font-size: var(--t-caption); }
274
+ #tab-trunk .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
275
+ #tab-trunk .tg-refusal { color: var(--degraded); font-weight: 600; overflow-wrap: anywhere; }
276
+ #tab-trunk .lane-commit { border-top: 1px solid var(--rule); padding-top: 3px; }
277
+ #tab-trunk .lane-sha { font-family: var(--font-mono); }
278
+ #tab-trunk .lane-revoked { color: var(--degraded); font-weight: 600; }
279
+ #tab-trunk .lane-undecided { color: var(--muted); }
280
+ #tab-trunk .lane-where { color: var(--pending); }
281
+ #tab-trunk .lane-facts, #tab-trunk .lane-runs { color: var(--muted); overflow-wrap: anywhere; }
282
+ #tab-trunk .ws-gate { border: 1px solid var(--pending, var(--rule)); border-radius: 6px; padding: var(--s2) var(--s3); display: flex; flex-direction: column; gap: 3px; }
283
+ #tab-trunk .ws-gate-title { font-weight: 600; }
284
+ #tab-trunk .ws-gate-facts, #tab-trunk .ws-gate-note { color: var(--muted); overflow-wrap: anywhere; }
285
+ #tab-trunk a { color: inherit; }
286
+ #tab-trunk .lane-change-set { color: var(--pending); }
287
+ /* #692: the release column. */
288
+ #tab-trunk .lane-release { border-top: 1px solid var(--rule); padding-top: 3px; }
289
+ #tab-trunk .lane-release .lane-where { overflow-wrap: anywhere; }
290
+ #tab-trunk .lane-config-only { color: var(--muted); font-style: italic; }
291
+ #tab-trunk .lane-revoked-why { color: var(--degraded); overflow-wrap: anywhere; }
292
+ #tab-trunk .lane-rollback { font-family: var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
293
+ #tab-trunk .lane-runs-revoked, #tab-trunk .lane-superseded { color: var(--degraded); overflow-wrap: anywhere; }
294
+ /* #681: a gate's change set, previewed on the graph. */
295
+ #panel-body #tab-change-set.active { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--t-caption); }
296
+ #tab-change-set h3 { margin: var(--s3) 0 0; font-size: var(--t-caption); }
297
+ #tab-change-set .cs-title { font-weight: 600; font-family: var(--font-mono); overflow-wrap: anywhere; }
298
+ #tab-change-set .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
299
+ #tab-change-set .tg-refusal { color: var(--degraded); font-weight: 600; overflow-wrap: anywhere; }
300
+ .cs-entry { position: relative; padding: 2px 0 2px var(--s3); font-size: var(--t-caption); overflow-wrap: anywhere; }
301
+ .cs-entry::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--bar, var(--bar-neutral)); }
302
+ .cs-entry-head { font-family: var(--font-mono); font-weight: 600; }
303
+ .cs-entry-facts, .cs-entry-field { color: var(--muted); font-family: var(--font-mono); }
304
+ .rel-strip { border-collapse: collapse; margin: var(--s2) 0; font-size: 12px; }
305
+ .rel-strip th, .rel-strip td { padding: 3px var(--s2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--neutral); }
247
306
  .rel-strip .rel-component { font-family: var(--font-mono); overflow-wrap: anywhere; }
248
307
  .rel-strip .rel-cell { font-family: var(--font-mono); }
249
308
  .rel-strip .rel-empty { color: var(--muted); }
@@ -258,14 +317,14 @@
258
317
  .tg-timeline a { color: inherit; }
259
318
  /* Fit reset + a zoom hint, floating top-right of the graph pane. */
260
319
  #zoom-toggle { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--panel);
261
- color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 4px 10px;
320
+ color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: var(--s1) var(--s3);
262
321
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
263
322
  #zoom-toggle:hover { border-color: var(--focus); color: var(--fg); }
264
323
  /* Hand layout (#228): the escape hatch, beside ⤢ fit. Hidden by app.js
265
324
  until something on this lens is actually hand-placed — it is both the
266
325
  reset and the only indication that dagre isn't the whole story here. */
267
326
  #layout-reset { position: absolute; top: 8px; right: 66px; z-index: 2; background: var(--panel);
268
- color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 4px 10px;
327
+ color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: var(--s1) var(--s3);
269
328
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
270
329
  #layout-reset:hover { border-color: var(--focus); color: var(--fg); }
271
330
  /* A containment box's title moves it and its corner handle resizes it.
@@ -276,13 +335,13 @@
276
335
  /* The way out of waves view, floating top-LEFT so it sits where the eye
277
336
  already is when observe drops you into the wave-laned graph. */
278
337
  #back-to-infra { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--panel);
279
- color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 4px 10px;
338
+ color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: var(--s1) var(--s3);
280
339
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
281
340
  #back-to-infra:hover { border-color: var(--focus); color: var(--fg); }
282
341
  /* Blocking load scrim: covers everything (clicks can't pass through) while
283
342
  a live view change is in flight. */
284
343
  #loading-overlay { position: fixed; inset: 0; z-index: 100; display: flex;
285
- flex-direction: column; align-items: center; justify-content: center; gap: 14px;
344
+ flex-direction: column; align-items: center; justify-content: center; gap: var(--s4);
286
345
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(1.5px);
287
346
  cursor: progress; }
288
347
  #loading-overlay[hidden] { display: none; }
@@ -294,7 +353,7 @@
294
353
  #loading-overlay #loading-cost:empty { display: none; }
295
354
  #loading-overlay .spinner { width: 34px; height: 34px; border-radius: 50%;
296
355
  border: 3px solid var(--line); border-top-color: var(--focus);
297
- animation: spin 0.7s linear infinite; }
356
+ animation: spin calc(var(--beat) / 2) linear infinite; }
298
357
  @keyframes spin { to { transform: rotate(360deg); } }
299
358
  /* Selection is one of the few places the FULL accent still shows — the
300
359
  drift hues own saturation now, and "which node am I looking at" earns
@@ -307,26 +366,25 @@
307
366
  are usually expected states on a real (imperfect) project, not bugs.
308
367
  Generalizes the old M2 (#54) tier-only `.tier-note`. */
309
368
  .precondition-error { padding: 24px; max-width: 640px; }
310
- .precondition-error-title { color: var(--fg); font-size: var(--t-display); font-weight: 600; margin-bottom: 10px; }
311
- .precondition-error-message { color: var(--muted); white-space: pre-wrap; font: var(--t-body)/1.55 var(--font-mono); }
312
- .precondition-error-remedy { color: var(--pending); margin-top: 14px; font: var(--t-body)/1.5 var(--font-mono); }
369
+ .precondition-error-title { color: var(--fg); font-size: var(--t-display); font-weight: 600; margin-bottom: var(--s3); }
370
+ .precondition-error-message { color: var(--ink2); white-space: pre-wrap; font: var(--t-body)/1.55 var(--font-mono); }
371
+ .precondition-error-remedy { color: var(--pending); margin-top: var(--s4); font: var(--t-body)/1.5 var(--font-mono); }
313
372
  .precondition-error-remedy::before { content: "→ "; }
314
373
  /* #259: the raw /api payload behind the card, collapsed. */
315
- .precondition-error-raw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
316
- .precondition-error-rawlabel { color: var(--muted); font-size: var(--t-caption); text-transform: uppercase;
317
- letter-spacing: var(--t-caps); margin-bottom: 5px; }
374
+ .precondition-error-raw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: var(--s3); }
375
+ .precondition-error-rawlabel { color: var(--muted); font: 600 var(--t-caption)/1.4 var(--font-ui); margin-bottom: var(--s1); }
318
376
  #actions button, #inspect button { background: var(--panel); color: var(--fg); border: 1px solid var(--rule);
319
- border-radius: var(--r-ctl); padding: 4px 12px; font-size: var(--t-body); cursor: pointer; }
377
+ border-radius: var(--r-ctl); padding: var(--s1) var(--s4); font-size: var(--t-body); cursor: pointer; }
320
378
  #actions button:hover, #inspect button:hover { border-color: var(--focus); }
321
379
  #actions button.approve { border-color: var(--managed); color: var(--managed); }
322
380
  #inspect button { border-color: var(--foreign); color: var(--foreign); }
323
381
  /* #471: the why section. Its buttons read, they change nothing, so they
324
382
  don't wear the foreign hue the pane's write buttons do. */
325
- #inspect button.why-read { border-color: var(--rule); color: var(--fg); margin: 6px 6px 0 0; }
326
- #inspect .why-headline { margin: 0 0 6px; }
327
- #inspect .why-head { color: var(--muted); font-size: var(--t-caption); margin-top: 10px; }
383
+ #inspect button.why-read { border-color: var(--rule); color: var(--fg); margin: var(--s2) var(--s2) 0 0; }
384
+ #inspect .why-headline { margin: 0 0 var(--s2); }
385
+ #inspect .why-head { color: var(--muted); font-size: var(--t-caption); margin-top: var(--s3); }
328
386
  #inspect .why-list { list-style: none; margin: 2px 0 0; padding: 0; }
329
- #inspect .why-list li { margin: 6px 0 0; font-size: var(--t-body); overflow-wrap: anywhere; }
387
+ #inspect .why-list li { margin: var(--s2) 0 0; font-size: var(--t-body); overflow-wrap: anywhere; }
330
388
  #inspect .why-list code { font: var(--t-body)/1.45 var(--font-mono); }
331
389
  #inspect .why-meta { color: var(--muted); font-size: var(--t-caption); }
332
390
  #inspect .why-gap, #inspect .why-refusal { color: var(--pending); }
@@ -356,7 +414,7 @@
356
414
  keyboard focus is inside it — a tree of visible "copy" links reads as
357
415
  chrome, not as data. */
358
416
  .jsonv-copy, .jsonv-more { color: var(--muted); font-size: var(--t-caption); cursor: pointer;
359
- margin-left: 8px; user-select: none; }
417
+ margin-left: var(--s3); user-select: none; }
360
418
  .jsonv-copy { opacity: 0; }
361
419
  .jsonv-line:hover > .jsonv-copy, .jsonv-copy:focus-visible, .jsonv-copy[data-copied] { opacity: 1; }
362
420
  .jsonv-copy:hover, .jsonv-more:hover { color: var(--fg); }
@@ -369,7 +427,7 @@
369
427
  #inspect dd > .jsonv { margin-top: 1px; }
370
428
  /* A value PAIR (was/now, declared/live, baseline/live) whose sides are
371
429
  trees rather than scalars — see pairCell() in app.js. */
372
- #inspect .pair-row { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
430
+ #inspect .pair-row { display: flex; align-items: baseline; gap: var(--s2); margin-top: 3px; }
373
431
  #inspect .pair-row > .jsonv { flex: 1; min-width: 0; }
374
432
  #inspect .pair-label { color: var(--muted); font-size: var(--t-caption); flex: none; }
375
433
  /* The op log's JSON lines (#259): a report chant emitted as an object
@@ -405,12 +463,12 @@
405
463
  #panel-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line);
406
464
  background: color-mix(in srgb, var(--well) 45%, var(--panel));
407
465
  border-radius: calc(var(--r-shell) - 1px) calc(var(--r-shell) - 1px) 0 0;
408
- cursor: grab; padding: 3px 4px 3px 3px; gap: 2px; }
466
+ cursor: grab; padding: 3px var(--s1) 3px 3px; gap: 2px; }
409
467
  #panel.dragging #panel-tabs { cursor: grabbing; }
410
468
  #panel.collapsed #panel-tabs { border-bottom: none; border-radius: calc(var(--r-shell) - 1px); }
411
469
  #panel.collapsed #panel-body { display: none; }
412
470
  #panel-tabs button[data-tab] { flex: 1; background: none; border: none; border-radius: var(--r-ctl);
413
- color: var(--muted); font: var(--t-caption)/1 var(--font-ui); padding: 6px 0; cursor: pointer; }
471
+ color: var(--muted); font: var(--t-caption)/1 var(--font-ui); padding: var(--s2) 0; cursor: pointer; }
414
472
  #panel-tabs button[data-tab]:hover { color: var(--fg); }
415
473
  #panel-tabs button[data-tab].active { color: var(--fg); background: var(--active); font-weight: 600; }
416
474
  /* #476: framed in a host pane. Deploying and the theme are the host's
@@ -421,7 +479,7 @@
421
479
  chevron) in the corner, so the graph has the pane to itself. */
422
480
  .embed #panel.collapsed #panel-tabs button[data-tab] { display: none; }
423
481
  .embed #panel.collapsed { width: auto; }
424
- .embed #panel.collapsed #panel-tabs { gap: 4px; padding: 2px 4px; }
482
+ .embed #panel.collapsed #panel-tabs { gap: var(--s1); padding: 2px var(--s1); }
425
483
  /* #569: ?embed=1&bare=1, the kiosk's frame: the graph alone. Nothing to
426
484
  open, nothing to press, and no backdrop of its own: the page's. */
427
485
  .bare #panel, .bare #inspect, .bare #inspect-reopen, .bare #zoom-toggle, .bare #back-to-infra,
@@ -447,33 +505,32 @@
447
505
  .k-pop-lines li { overflow-wrap: anywhere; }
448
506
  .k-pop-unknown, .k-pop-unknown.k-pop-state { color: var(--foreign); }
449
507
  .k-pop-more { color: var(--muted); }
450
- .k-pop-note { color: var(--muted); font-size: 0.92em; }
508
+ .k-pop-note { color: var(--ink2); font-size: 0.92em; }
451
509
  .k-pop-hint { color: var(--muted); font-size: 0.85em; border-top: 1px solid var(--rule); padding-top: 0.35em; margin-top: 0.4em !important; }
452
510
  .k-pop-state { margin-left: 0.4em; font-family: var(--font-ui); font-weight: 600; white-space: nowrap; }
453
511
  .k-pop-change { color: var(--pending); }
454
512
  .k-pop-same { color: var(--muted); }
455
513
  .k-root::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--k-root); margin: 0 0.3em 0.1em 0.05em; vertical-align: middle; }
456
- #panel-tabs #hintk { flex: none; align-self: center; padding: 2px 6px; margin-left: 2px; }
514
+ #panel-tabs #hintk { flex: none; align-self: center; padding: 2px var(--s2); margin-left: 2px; }
457
515
  #panel-collapse { flex: none; align-self: center; background: none; border: none; color: var(--muted);
458
- font-size: var(--t-body); cursor: pointer; line-height: 1; padding: 2px 4px; }
516
+ font-size: var(--t-body); cursor: pointer; line-height: 1; padding: 2px var(--s1); }
459
517
  #panel-collapse:hover { color: var(--fg); }
460
- #panel-body { overflow-y: auto; max-height: min(62vh, 540px); padding: 10px 12px;
518
+ #panel-body { overflow-y: auto; max-height: min(62vh, 540px); padding: var(--s3) var(--s4);
461
519
  font-size: var(--t-body); user-select: text; }
462
520
  #panel-body section { display: none; }
463
521
  #panel-body section.active { display: block; }
464
- #panel h3 { margin: 14px 0 6px; font-size: var(--t-caption); text-transform: uppercase;
465
- letter-spacing: var(--t-caps); color: var(--muted); font-weight: 600; }
522
+ #panel h3 { margin: var(--s4) 0 var(--s2); font: 600 var(--t-caption)/1.4 var(--font-ui); color: var(--muted); }
466
523
  #panel h3:first-child { margin-top: 0; }
467
- #panel .panel-muted { color: var(--muted); font: var(--t-caption)/1.5 var(--font-mono);
468
- margin: 4px 0; overflow-wrap: anywhere; }
469
- #panel .prow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0; }
524
+ #panel .panel-muted { color: var(--ink2); font: var(--t-caption)/1.5 var(--font-mono);
525
+ margin: var(--s1) 0; overflow-wrap: anywhere; }
526
+ #panel .prow { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: 2px 0; }
470
527
  /* A radio-like option row: the current value is FILLED, with a hairline of
471
528
  the full accent down its leading edge — the one saturated mark in the
472
529
  chrome, so the eye finds the current lens without the whole row
473
530
  shouting in accent-coloured text. */
474
531
  #panel .opt { display: block; width: 100%; text-align: left; background: none;
475
532
  border: 1px solid transparent; border-radius: var(--r-ctl); color: var(--fg);
476
- font-size: var(--t-body); padding: 4px 8px; cursor: pointer; }
533
+ font-size: var(--t-body); padding: var(--s1) var(--s3); cursor: pointer; }
477
534
  #panel .opt:hover:not(:disabled) { border-color: var(--line); }
478
535
  /* #268: a demo whose prerequisites are missing stays visible and says why
479
536
  — dimmed and unclickable, not removed from the catalog. */
@@ -481,19 +538,19 @@
481
538
  #panel .opt.active { background: var(--active); border-color: var(--rule); color: var(--fg);
482
539
  box-shadow: inset 2px 0 0 var(--pending); }
483
540
  #panel select { width: 100%; background: var(--well); color: var(--fg); border: 1px solid var(--line);
484
- border-radius: var(--r-ctl); padding: 4px 8px; font-size: var(--t-body); cursor: pointer; }
541
+ border-radius: var(--r-ctl); padding: var(--s1) var(--s3); font-size: var(--t-body); cursor: pointer; }
485
542
  #panel select:hover { border-color: var(--focus); }
486
543
  #panel button.act { background: var(--well); color: var(--fg); border: 1px solid var(--rule);
487
- border-radius: var(--r-ctl); padding: 3px 10px; font-size: var(--t-caption); cursor: pointer; }
544
+ border-radius: var(--r-ctl); padding: 3px var(--s3); font-size: var(--t-caption); cursor: pointer; }
488
545
  #panel button.act:hover { border-color: var(--focus); }
489
546
  #panel input.panel-input { flex: 1; min-width: 0; background: var(--well); color: var(--fg);
490
- border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px 8px;
547
+ border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--s1) var(--s3);
491
548
  font: var(--t-caption)/1.4 var(--font-mono); }
492
549
  #panel input.panel-input:focus { border-color: var(--focus); outline: none; }
493
550
  /* Model tab rows: legend counts (static) and clickable node rows. Node
494
551
  ids are data — mono, so they align and scan like a terminal listing. */
495
- #panel .count-row, #panel .node-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
496
- #panel .node-row { cursor: pointer; border-radius: var(--r-ctl); padding: 3px 6px;
552
+ #panel .count-row, #panel .node-row { display: flex; align-items: center; gap: var(--s3); padding: 2px 0; }
553
+ #panel .node-row { cursor: pointer; border-radius: var(--r-ctl); padding: 3px var(--s2);
497
554
  font: var(--t-caption)/1.5 var(--font-mono); }
498
555
  #panel .node-row:hover { background: var(--well); }
499
556
  #panel .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
@@ -509,11 +566,11 @@
509
566
  styled for both. `help` cursor: the hover carries "modeled, not
510
567
  billed", which is the sentence #397 turns on. */
511
568
  .behaviour-badge { color: var(--muted); font: var(--t-caption)/1.4 var(--font-mono);
512
- border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 5px;
569
+ border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 var(--s1);
513
570
  white-space: nowrap; cursor: help; flex: none; }
514
571
  #panel .behaviour-total { display: flex; flex-direction: column; gap: 1px; padding: 3px 0;
515
572
  font: var(--t-caption)/1.5 var(--font-mono); }
516
- #panel .behaviour-ramp { margin: 4px 0 2px; }
573
+ #panel .behaviour-ramp { margin: var(--s1) 0 2px; }
517
574
  /* A card nothing priced keeps the drift overlay's neutral fill (#399) —
518
575
  and says so, faintly, so the grey is legible as "not looked at" rather
519
576
  than as the low end of the scale. */
@@ -530,7 +587,7 @@
530
587
  reset / run pipeline) visible inline again. #73 moved those into ⌘K;
531
588
  they remain there too — same actions, two surfaces. */
532
589
  #substrates { display: flex; flex-direction: column; gap: 2px; }
533
- .sub { display: flex; align-items: center; gap: 8px; padding: 3px 0;
590
+ .sub { display: flex; align-items: center; gap: var(--s3); padding: 3px 0;
534
591
  font: var(--t-caption)/1.6 var(--font-mono); }
535
592
  .sub .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
536
593
  .sub.up .dot { background: var(--managed); }
@@ -543,58 +600,61 @@
543
600
  /* The observe → reconcile → apply dial (M2, #54): where the selected
544
601
  target sits on the lifecycle progression. Lives on the panel's Deploy
545
602
  tab now, stacked vertically under the deploy actions. */
546
- #actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
547
- #dial { display: none; flex-direction: column; align-items: stretch; gap: 8px;
548
- font-size: var(--t-body); margin-top: 10px; }
549
- .dial-track { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
603
+ #actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
604
+ #dial { display: none; flex-direction: column; align-items: stretch; gap: var(--s3);
605
+ font-size: var(--t-body); margin-top: var(--s3); }
606
+ .dial-track { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
550
607
  .dial-arrow { color: var(--muted); }
551
608
  /* The lifecycle steps are controls, so they take the control radius too —
552
609
  the pill shape was the last soft edge left inside the shell. */
553
610
  .dial-step { background: var(--well); color: var(--fg); border: 1px solid var(--rule);
554
- border-radius: var(--r-ctl); padding: 3px 12px; font-size: var(--t-body); cursor: pointer; }
611
+ border-radius: var(--r-ctl); padding: 3px var(--s4); font-size: var(--t-body); cursor: pointer; }
555
612
  .dial-step:hover:not(:disabled) { border-color: var(--focus); }
556
613
  .dial-step.active { background: var(--active); border-color: var(--rule); color: var(--fg);
557
614
  box-shadow: inset 2px 0 0 var(--pending); }
558
615
  .dial-step:disabled { opacity: .5; cursor: not-allowed; }
559
- .dial-detail { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted);
616
+ .dial-detail { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); color: var(--muted);
560
617
  font: var(--t-caption)/1.6 var(--font-mono); }
561
618
 
562
619
  /* The run playhead (#284 item 2) — the Op run's verdict, the pending gate
563
620
  card (#234), and the steps that have actually settled. Sits under the
564
621
  dial's apply progress, in the same tokens, so "green means it worked"
565
622
  reads the same in both. */
566
- .run-playhead { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
623
+ .run-playhead { display: flex; flex-direction: column; gap: var(--s2); width: 100%; margin-top: var(--s2); }
567
624
  .run-verdict { font-size: var(--t-caption); }
625
+ /* #679: where the steps came from (chant's run events, a degraded older
626
+ stream, or a best-effort log read). Inline colour sets the tone. */
627
+ .run-source { font-size: var(--t-caption); color: var(--muted); }
568
628
  /* What behold does NOT know — a lost stream, an unreachable gate query.
569
629
  Same voice as the carve refusal: a statement, not an alarm. */
570
630
  .run-lost { border-left: 3px solid var(--bar-foreign); background: var(--well);
571
- border-radius: var(--r-ctl); padding: 4px 8px; color: var(--muted);
631
+ border-radius: var(--r-ctl); padding: var(--s1) var(--s3); color: var(--muted);
572
632
  font: var(--t-caption)/1.5 var(--font-mono); }
573
633
  .run-steps { display: flex; flex-direction: column; gap: 2px; }
574
- .run-step { display: flex; align-items: center; gap: 6px;
634
+ .run-step { display: flex; align-items: center; gap: var(--s2);
575
635
  font: var(--t-caption)/1.6 var(--font-mono); color: var(--fg); }
576
636
  .run-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
577
637
  .run-took { color: var(--muted); }
578
638
  /* A human decision is owed: the same --pending edge the carve
579
639
  walkthrough's human refusal wears. */
580
640
  .run-gate { border: 1px solid var(--pending); border-left: 3px solid var(--bar-foreign);
581
- border-radius: var(--r-ctl); padding: 6px 8px; background: var(--well);
641
+ border-radius: var(--r-ctl); padding: var(--s2) var(--s3); background: var(--well);
582
642
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
583
643
  .run-gate-title { font-size: var(--t-body); color: var(--pending); }
584
644
  .run-gate-desc { font-size: var(--t-caption); }
585
645
  .run-gate-meta { font: var(--t-caption)/1.5 var(--font-mono); color: var(--muted);
586
646
  overflow-wrap: anywhere; }
587
647
  .run-gate button.approve { margin-top: 3px; background: var(--well); color: var(--managed);
588
- border: 1px solid var(--managed); border-radius: var(--r-ctl); padding: 3px 12px;
648
+ border: 1px solid var(--managed); border-radius: var(--r-ctl); padding: 3px var(--s4);
589
649
  font-size: var(--t-body); cursor: pointer; }
590
650
  /* The operator strip (#234 join 3) — one honestly-dated tick per
591
651
  ConvergeOp, its lease, its pending gates. Sits above the run playhead in
592
652
  the same tokens: both are "what is happening to this project's Ops", and
593
653
  the loop is the one that never stopped. */
594
- .operator-strip { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
654
+ .operator-strip { display: flex; flex-direction: column; gap: var(--s2); width: 100%; margin-top: var(--s2); }
595
655
  .operator-title { font-size: var(--t-caption); color: var(--pending); }
596
- .operator-rows { display: flex; flex-direction: column; gap: 4px; }
597
- .operator-row { display: flex; align-items: flex-start; gap: 6px; }
656
+ .operator-rows { display: flex; flex-direction: column; gap: var(--s1); }
657
+ .operator-row { display: flex; align-items: flex-start; gap: var(--s2); }
598
658
  .operator-op { font-size: var(--t-body); color: var(--fg); }
599
659
  /* chant's own tick line, verbatim — mono, because it is a log line. */
600
660
  .operator-log { font: var(--t-caption)/1.5 var(--font-mono); color: var(--fg);
@@ -605,18 +665,18 @@
605
665
  /* Why one line is all the strip has, and where the rest is (chant#2029).
606
666
  A statement, not an alarm — the same voice .run-lost uses for what
607
667
  behold does not know. */
608
- .operator-caveat { font-size: var(--t-caption); color: var(--muted); }
668
+ .operator-caveat { font-size: var(--t-caption); color: var(--ink2); }
609
669
  /* The converge history (chant#2029) — the timeline the strip is NOT,
610
670
  reached from it. Closed by default and read on the click that opens it,
611
671
  so this whole block is inert until a human asks for it. */
612
- .operator-history { display: flex; flex-direction: column; gap: 4px; }
672
+ .operator-history { display: flex; flex-direction: column; gap: var(--s1); }
613
673
  .operator-history-toggle { align-self: flex-start; background: none; color: var(--pending);
614
674
  border: none; padding: 0; font-size: var(--t-caption); cursor: pointer; }
615
675
  .operator-history-head { font: var(--t-caption)/1.5 var(--font-mono); color: var(--muted); }
616
676
  /* Ticks and gate resolutions, oldest first — chant's own order. The rule
617
677
  down the left is the lane: one column of time, read forward. */
618
- .operator-timeline { display: flex; flex-direction: column; gap: 6px;
619
- border-left: 1px solid var(--rule); padding-left: 8px; max-height: 320px; overflow-y: auto; }
678
+ .operator-timeline { display: flex; flex-direction: column; gap: var(--s2);
679
+ border-left: 1px solid var(--rule); padding-left: var(--s3); max-height: 320px; overflow-y: auto; }
620
680
  .operator-entry { display: flex; flex-direction: column; gap: 1px; }
621
681
  /* A resolution is the human's half of the loop, so it wears the gate's own
622
682
  colour rather than the tick's. */
@@ -653,16 +713,16 @@
653
713
  same track the deploy dial uses, so "where am I in this" reads the same
654
714
  way in both places; below it, the step's own panel. Every colour here is
655
715
  a shared token, so all 552 palettes get it for free. */
656
- #tab-carve { display: flex; flex-direction: column; gap: 10px; }
657
- #tab-carve .dial-track { gap: 4px; }
658
- .carve-step { padding: 3px 8px; font-size: var(--t-caption); }
716
+ #tab-carve { display: flex; flex-direction: column; gap: var(--s3); }
717
+ #tab-carve .dial-track { gap: var(--s1); }
718
+ .carve-step { padding: 3px var(--s3); font-size: var(--t-caption); }
659
719
  .carve-step.done { color: var(--managed); border-color: color-mix(in srgb, var(--managed) 45%, var(--rule)); }
660
720
  .carve-step.blocked { opacity: .55; }
661
- .carve-body { display: flex; flex-direction: column; gap: 6px; }
721
+ .carve-body { display: flex; flex-direction: column; gap: var(--s2); }
662
722
  /* Data — chant's output, a file, a command — is mono and boxed; prose
663
723
  about it stays in the panel's own voice. */
664
724
  .carve-pre { margin: 0; background: var(--well); border: 1px solid var(--line);
665
- border-radius: var(--r-ctl); padding: 6px 8px; max-height: 240px; overflow: auto;
725
+ border-radius: var(--r-ctl); padding: var(--s2) var(--s3); max-height: 240px; overflow: auto;
666
726
  font: var(--t-caption)/1.5 var(--font-mono); color: var(--fg); white-space: pre-wrap;
667
727
  overflow-wrap: anywhere; }
668
728
  .carve-pre.carve-cmd { color: var(--muted); }
@@ -672,16 +732,16 @@
672
732
  /* The one thing the walkthrough will not do for you, and the refusals it
673
733
  hands back — same card, because they are the same kind of statement. */
674
734
  .carve-refusal { border: 1px solid var(--degraded); border-left: 3px solid var(--degraded);
675
- border-radius: var(--r-ctl); padding: 6px 8px; background: var(--well); }
735
+ border-radius: var(--r-ctl); padding: var(--s2) var(--s3); background: var(--well); }
676
736
  .carve-refusal.carve-human { border-color: var(--pending); border-left-color: var(--pending); }
677
737
  .carve-refusal-title { font-size: var(--t-body); margin-bottom: 2px; }
678
- .carve-cmd-row { align-items: center; gap: 6px; }
738
+ .carve-cmd-row { align-items: center; gap: var(--s2); }
679
739
  .carve-cmd-text { font: var(--t-caption)/1.6 var(--font-mono); background: var(--well);
680
- border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 3px 6px;
740
+ border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 3px var(--s2);
681
741
  overflow-wrap: anywhere; }
682
742
  .carve-cmd-note, .carve-section { margin: 2px 0; }
683
743
  .carve-endcard { border: 1px solid var(--managed); border-left: 3px solid var(--managed);
684
- border-radius: var(--r-ctl); padding: 6px 8px; background: var(--well); }
744
+ border-radius: var(--r-ctl); padding: var(--s2) var(--s3); background: var(--well); }
685
745
  .carve-endcard-title { font-size: var(--t-body); margin-bottom: 2px; }
686
746
  .carve-caveat > summary { cursor: pointer; color: var(--muted);
687
747
  font: var(--t-caption)/1.6 var(--font-mono); }
@@ -690,7 +750,7 @@
690
750
  #graph [data-node-id].carved rect:first-of-type { stroke: var(--managed); stroke-width: 2; }
691
751
 
692
752
  #nowline { grid-column: 1 / 3; grid-row: 2; margin: 0; max-height: 160px; overflow: auto; display: none;
693
- background: var(--well); border-top: 1px solid var(--rule); padding: 8px 12px;
753
+ background: var(--well); border-top: 1px solid var(--rule); padding: var(--s3) var(--s4);
694
754
  font: var(--t-caption)/1.6 var(--font-mono); color: var(--fg); white-space: pre-wrap; }
695
755
  /* #186: the panel's footer — the state the removed header carried. The
696
756
  statusbar (#73 "hide controls, never state": current zoom + env +
@@ -698,7 +758,7 @@
698
758
  Hidden when the panel collapses, like the body. */
699
759
  /* Counts, env, zoom, tier — all of it is state read at a glance, so the
700
760
  whole footer is mono. */
701
- #panel-foot { border-top: 1px solid var(--line); padding: 7px 12px;
761
+ #panel-foot { border-top: 1px solid var(--line); padding: var(--s2) var(--s4);
702
762
  display: flex; flex-direction: column; gap: 3px;
703
763
  font: var(--t-caption)/1.5 var(--font-mono); }
704
764
  #panel.collapsed #panel-foot { display: none; }
@@ -708,7 +768,7 @@
708
768
  italic so it reads as a caption on the state rather than more state. */
709
769
  .statusbar-note { font-style: italic; opacity: 0.85; }
710
770
  #hintk { color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl);
711
- padding: 2px 8px; font: var(--t-caption)/1.4 var(--font-mono); cursor: pointer; white-space: nowrap; }
771
+ padding: 2px var(--s3); font: var(--t-caption)/1.4 var(--font-mono); cursor: pointer; white-space: nowrap; }
712
772
  #hintk:hover { border-color: var(--focus); color: var(--fg); }
713
773
  /* Command palette (⌘K / Ctrl+K, #73) — ported from spicypath's FG-036
714
774
  pattern (../spicypath/src/index.html), theme vars mapped onto behold's
@@ -727,10 +787,10 @@
727
787
  /* You type commands here — mono, at the one display size, is the whole
728
788
  point of the surface. */
729
789
  #pal-input { width: 100%; box-sizing: border-box; background: var(--well); color: var(--fg);
730
- border: 0; border-bottom: 1px solid var(--rule); padding: 12px 14px;
790
+ border: 0; border-bottom: 1px solid var(--rule); padding: var(--s4) var(--s4);
731
791
  font: var(--t-display)/1.3 var(--font-mono); outline: none; }
732
- #pal-list { max-height: 50vh; overflow: auto; padding: 5px; }
733
- #pal-list .row { padding: 7px 11px; border-radius: var(--r-ctl); color: var(--fg);
792
+ #pal-list { max-height: 50vh; overflow: auto; padding: var(--s1); }
793
+ #pal-list .row { padding: var(--s2) var(--s4); border-radius: var(--r-ctl); color: var(--fg);
734
794
  font: var(--t-body)/1.5 var(--font-mono);
735
795
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
736
796
  #pal-list .row.sel { background: var(--pending); color: var(--pal-sel-fg, var(--fg)); }
@@ -738,7 +798,7 @@
738
798
  tells two same-named addresses in two members apart. Inherits the row's
739
799
  colour so the selected row stays readable on --pending. */
740
800
  #pal-list .row .sub { font-size: var(--t-caption); opacity: 0.66; margin-top: 1px; }
741
- #pal-list .empty { padding: 8px 11px; color: var(--muted); font-size: var(--t-body); }
801
+ #pal-list .empty { padding: var(--s3) var(--s4); color: var(--muted); font-size: var(--t-body); }
742
802
 
743
803
  /* #422: a card whose member is still being read. Dashed and dimmed, never
744
804
  filled — the fill is the status channel and this card has no status yet,
@@ -746,7 +806,7 @@
746
806
  #graph [data-pending-read] { opacity: 0.55; }
747
807
  #graph [data-pending-read] rect { stroke-dasharray: 4 3; }
748
808
  @media (prefers-reduced-motion: no-preference) {
749
- #graph [data-pending-read] { animation: pending-breathe 2.4s ease-in-out infinite; }
809
+ #graph [data-pending-read] { animation: pending-breathe calc(var(--beat) * 2) ease-in-out infinite; }
750
810
  @keyframes pending-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.68; } }
751
811
  }
752
812
  /*
@@ -760,14 +820,14 @@
760
820
  * get a bar inset 2px top and bottom; a card's bar is its inset edge.
761
821
  * The inspect pane's sections each get one, beside their rows.
762
822
  */
763
- #panel .count-row, #panel .node-row, #substrates .sub, .run-step, .operator-row, .operator-entry, .apply-wave-row, #tab-terragucci .tg-root, .tg-timeline .tg-entry, #inspect .why-list li, .k-pop-lines li { position: relative; padding-left: 10px; }
823
+ #panel .count-row, #panel .node-row, #substrates .sub, .run-step, .operator-row, .operator-entry, .apply-wave-row, #tab-terragucci .tg-root, .tg-timeline .tg-entry, #inspect .why-list li, .k-pop-lines li { position: relative; padding-left: var(--s3); }
764
824
  #panel .count-row::before, #panel .node-row::before, #substrates .sub::before, .run-step::before, .operator-row::before, .operator-entry::before, .apply-wave-row::before, #tab-terragucci .tg-root::before, .tg-timeline .tg-entry::before, #inspect .why-list li::before, .k-pop-lines li::before {
765
825
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: var(--bar-w, 3px); border-radius: 0 2px 2px 0; background: var(--bar, var(--bar-neutral)); pointer-events: none; }
766
- #panel .node-row { padding-left: 12px; }
826
+ #panel .node-row { padding-left: var(--s4); }
767
827
  .ws-gate, .tg-progress-wave, #tg-estate .tg-estate-project, #inspect-body > dl, #inspect-body > .tg-inspect, #inspect-body > .why { box-shadow: inset var(--bar-w, 3px) 0 0 var(--bar, var(--bar-neutral)); }
768
- #inspect-body > dl, #inspect-body > .tg-inspect, #inspect-body > .why { padding-left: 10px; }
828
+ #inspect-body > dl, #inspect-body > .tg-inspect, #inspect-body > .why { padding-left: var(--s3); }
769
829
  #inspect-body > dl { padding-top: 1px; padding-bottom: 2px; }
770
- .ws-gate, .tg-progress-wave { padding-left: 11px !important; }
830
+ .ws-gate, .tg-progress-wave { padding-left: var(--s4) !important; }
771
831
  #substrates .sub.up { --bar: var(--bar-managed); }
772
832
  #substrates .sub.down { --bar: var(--bar-degraded); }
773
833
  #substrates .sub.on-demand { --bar: var(--bar-pending); }
@@ -786,6 +846,33 @@
786
846
  .tg-change-wave[data-state="applied"] { --bar: var(--bar-managed); }
787
847
  .tg-change-wave[data-state="failed"], .tg-change-wave[data-state="refused"] { --bar: var(--bar-degraded); }
788
848
  .k-pop-lines li.k-pop-unknown { --bar: var(--bar-foreign); }
849
+ /*
850
+ * behold#725: the readability pass.
851
+ * Headings are sentence case. app.js writes most of them in lower case,
852
+ * so the heading raises its first letter.
853
+ */
854
+ #inspect h2::first-letter, #inspect h3::first-letter, #panel h3::first-letter, .precondition-error-rawlabel::first-letter { text-transform: uppercase; }
855
+ /* Sentences under a heading read in --ink2 (7:1); --muted stays for keys, counts and captions. */
856
+ #ws-gates .ws-gate-note, #tab-yodel-lane .ws-gate-note, #tab-terragucci .ws-gate-note, #tg-estate .ws-gate-note, #tab-trunk .ws-gate-note,
857
+ #tab-yodel .tg-legend, #tab-yodel-lane .tg-legend, #tab-terragucci .tg-legend, #tg-estate .tg-legend, #tab-trunk .tg-legend, #tab-change-set .tg-legend, .tg-timeline .tg-legend { color: var(--ink2); }
858
+ /* One focus ring for every control, drawn for the keyboard only, in the focus colour held at 4.5:1 (theme.js frameInks). */
859
+ :focus-visible { outline: 2px solid var(--frame-focus, var(--focus)); outline-offset: 2px; }
860
+ /* Numbers in the sans keep one width a digit, so a count doesn't jitter as it changes. */
861
+ #panel .count-row, #ws-gates .ws-gate-facts, #tab-terragucci .tg-cells, .run-verdict, .operator-caveat, .rel-strip, .cs-entry { font-variant-numeric: tabular-nums; }
862
+ /* A node's address in a list is cut from the front, so its last segment
863
+ (the name) stays in view; the row's title holds the whole address.
864
+ The marks either side keep the address's own punctuation in place
865
+ inside the right-to-left box. */
866
+ #panel .node-row .grow { direction: rtl; text-align: left; }
867
+ #panel .node-row .grow::before, #panel .node-row .grow::after { content: "\200E"; }
868
+ /* The shared tooltip (web/tooltip.js): fixed, so a scrolling pane never clips it. */
869
+ #b-tip { position: fixed; left: 0; top: 0; z-index: 120; max-width: min(28em, calc(100vw - var(--s5))); padding: var(--s2) var(--s3);
870
+ background: var(--panel); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r-ctl);
871
+ box-shadow: 0 6px 20px color-mix(in srgb, var(--shadow) 60%, transparent); font: var(--t-body)/1.45 var(--font-ui);
872
+ white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; }
873
+ #b-tip[hidden] { display: none; }
874
+ /* web/motion.js marks the page while its tab is hidden: every animation holds where it is. */
875
+ :root[data-motion="paused"] *, :root[data-motion="paused"] *::before, :root[data-motion="paused"] *::after { animation-play-state: paused !important; }
789
876
  </style>
790
877
  </head>
791
878
  <body>
@@ -800,9 +887,9 @@
800
887
  <aside id="inspect">
801
888
  <div id="inspect-resize" title="Drag to resize"></div>
802
889
  <button id="inspect-collapse" title="Collapse panel">›</button>
803
- <div id="inspect-body"><h2>inspect</h2><p style="color:var(--muted)">click a node</p></div>
890
+ <div id="inspect-body"><h2>Inspect</h2><p style="color:var(--ink2)">Click a node</p></div>
804
891
  </aside>
805
- <button id="inspect-reopen" title="Show inspect panel">inspect ‹</button>
892
+ <button id="inspect-reopen" title="Show inspect panel">Inspect ‹</button>
806
893
  <pre id="nowline"></pre>
807
894
  </div>
808
895
  <!-- The floating control panel (see the #panel CSS comment above). The
@@ -828,7 +915,7 @@
828
915
  <section data-tab="view" class="active">
829
916
  <div id="panel-zoom"></div>
830
917
  <div id="panel-viewtools"></div>
831
- <h3>theme</h3>
918
+ <h3>Theme</h3>
832
919
  <div id="panel-theme"></div>
833
920
  <!-- behold#571: event-help, the "Tips" switch the kiosk has too. -->
834
921
  <label id="panel-tips" class="eh-switch" title="A window opens when a gate waits for you, and shows how to approve it"><input type="checkbox" /> Tips</label>
@@ -854,5 +941,12 @@
854
941
  by app.js's paletteCommands()/palRender()/openPalette()/closePalette(). -->
855
942
  <div id="palette"><div class="box"><input id="pal-input" placeholder="type a command, or an address… (Esc to close)" autocomplete="off"><div id="pal-list"></div></div></div>
856
943
  <script type="module" src="./app.js"></script>
944
+ <!-- behold#725: the shared beat paused in a hidden tab, and the shared tooltip for the graph's badges. -->
945
+ <script type="module">
946
+ import { installMotion } from "./motion.js";
947
+ import { installTooltips } from "./tooltip.js";
948
+ installMotion();
949
+ installTooltips(document);
950
+ </script>
857
951
  </body>
858
952
  </html>