@intentius/behold 0.29.41 → 0.29.43

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.
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,21 +256,21 @@
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
271
  /* #680: the trunk lane. */
246
- #panel-body #tab-trunk.active { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-caption); }
247
- #tab-trunk h3 { margin: 8px 0 0; font-size: var(--t-caption); }
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); }
248
274
  #tab-trunk .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
249
275
  #tab-trunk .tg-refusal { color: var(--degraded); font-weight: 600; overflow-wrap: anywhere; }
250
276
  #tab-trunk .lane-commit { border-top: 1px solid var(--rule); padding-top: 3px; }
@@ -253,23 +279,30 @@
253
279
  #tab-trunk .lane-undecided { color: var(--muted); }
254
280
  #tab-trunk .lane-where { color: var(--pending); }
255
281
  #tab-trunk .lane-facts, #tab-trunk .lane-runs { color: var(--muted); overflow-wrap: anywhere; }
256
- #tab-trunk .ws-gate { border: 1px solid var(--pending, var(--rule)); border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
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; }
257
283
  #tab-trunk .ws-gate-title { font-weight: 600; }
258
284
  #tab-trunk .ws-gate-facts, #tab-trunk .ws-gate-note { color: var(--muted); overflow-wrap: anywhere; }
259
285
  #tab-trunk a { color: inherit; }
260
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; }
261
294
  /* #681: a gate's change set, previewed on the graph. */
262
- #panel-body #tab-change-set.active { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-caption); }
263
- #tab-change-set h3 { margin: 8px 0 0; font-size: var(--t-caption); }
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); }
264
297
  #tab-change-set .cs-title { font-weight: 600; font-family: var(--font-mono); overflow-wrap: anywhere; }
265
298
  #tab-change-set .tg-legend { color: var(--muted); overflow-wrap: anywhere; }
266
299
  #tab-change-set .tg-refusal { color: var(--degraded); font-weight: 600; overflow-wrap: anywhere; }
267
- .cs-entry { position: relative; padding: 2px 0 2px 10px; font-size: var(--t-caption); overflow-wrap: anywhere; }
300
+ .cs-entry { position: relative; padding: 2px 0 2px var(--s3); font-size: var(--t-caption); overflow-wrap: anywhere; }
268
301
  .cs-entry::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--bar, var(--bar-neutral)); }
269
302
  .cs-entry-head { font-family: var(--font-mono); font-weight: 600; }
270
303
  .cs-entry-facts, .cs-entry-field { color: var(--muted); font-family: var(--font-mono); }
271
- .rel-strip { border-collapse: collapse; margin: 6px 0; font-size: 12px; }
272
- .rel-strip th, .rel-strip td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--neutral); }
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); }
273
306
  .rel-strip .rel-component { font-family: var(--font-mono); overflow-wrap: anywhere; }
274
307
  .rel-strip .rel-cell { font-family: var(--font-mono); }
275
308
  .rel-strip .rel-empty { color: var(--muted); }
@@ -284,14 +317,14 @@
284
317
  .tg-timeline a { color: inherit; }
285
318
  /* Fit reset + a zoom hint, floating top-right of the graph pane. */
286
319
  #zoom-toggle { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--panel);
287
- 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);
288
321
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
289
322
  #zoom-toggle:hover { border-color: var(--focus); color: var(--fg); }
290
323
  /* Hand layout (#228): the escape hatch, beside ⤢ fit. Hidden by app.js
291
324
  until something on this lens is actually hand-placed — it is both the
292
325
  reset and the only indication that dagre isn't the whole story here. */
293
326
  #layout-reset { position: absolute; top: 8px; right: 66px; z-index: 2; background: var(--panel);
294
- 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);
295
328
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
296
329
  #layout-reset:hover { border-color: var(--focus); color: var(--fg); }
297
330
  /* A containment box's title moves it and its corner handle resizes it.
@@ -302,13 +335,13 @@
302
335
  /* The way out of waves view, floating top-LEFT so it sits where the eye
303
336
  already is when observe drops you into the wave-laned graph. */
304
337
  #back-to-infra { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--panel);
305
- 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);
306
339
  font: var(--t-caption)/1.3 var(--font-mono); cursor: pointer; }
307
340
  #back-to-infra:hover { border-color: var(--focus); color: var(--fg); }
308
341
  /* Blocking load scrim: covers everything (clicks can't pass through) while
309
342
  a live view change is in flight. */
310
343
  #loading-overlay { position: fixed; inset: 0; z-index: 100; display: flex;
311
- flex-direction: column; align-items: center; justify-content: center; gap: 14px;
344
+ flex-direction: column; align-items: center; justify-content: center; gap: var(--s4);
312
345
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(1.5px);
313
346
  cursor: progress; }
314
347
  #loading-overlay[hidden] { display: none; }
@@ -320,7 +353,7 @@
320
353
  #loading-overlay #loading-cost:empty { display: none; }
321
354
  #loading-overlay .spinner { width: 34px; height: 34px; border-radius: 50%;
322
355
  border: 3px solid var(--line); border-top-color: var(--focus);
323
- animation: spin 0.7s linear infinite; }
356
+ animation: spin calc(var(--beat) / 2) linear infinite; }
324
357
  @keyframes spin { to { transform: rotate(360deg); } }
325
358
  /* Selection is one of the few places the FULL accent still shows — the
326
359
  drift hues own saturation now, and "which node am I looking at" earns
@@ -333,26 +366,25 @@
333
366
  are usually expected states on a real (imperfect) project, not bugs.
334
367
  Generalizes the old M2 (#54) tier-only `.tier-note`. */
335
368
  .precondition-error { padding: 24px; max-width: 640px; }
336
- .precondition-error-title { color: var(--fg); font-size: var(--t-display); font-weight: 600; margin-bottom: 10px; }
337
- .precondition-error-message { color: var(--muted); white-space: pre-wrap; font: var(--t-body)/1.55 var(--font-mono); }
338
- .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); }
339
372
  .precondition-error-remedy::before { content: "→ "; }
340
373
  /* #259: the raw /api payload behind the card, collapsed. */
341
- .precondition-error-raw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
342
- .precondition-error-rawlabel { color: var(--muted); font-size: var(--t-caption); text-transform: uppercase;
343
- 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); }
344
376
  #actions button, #inspect button { background: var(--panel); color: var(--fg); border: 1px solid var(--rule);
345
- 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; }
346
378
  #actions button:hover, #inspect button:hover { border-color: var(--focus); }
347
379
  #actions button.approve { border-color: var(--managed); color: var(--managed); }
348
380
  #inspect button { border-color: var(--foreign); color: var(--foreign); }
349
381
  /* #471: the why section. Its buttons read, they change nothing, so they
350
382
  don't wear the foreign hue the pane's write buttons do. */
351
- #inspect button.why-read { border-color: var(--rule); color: var(--fg); margin: 6px 6px 0 0; }
352
- #inspect .why-headline { margin: 0 0 6px; }
353
- #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); }
354
386
  #inspect .why-list { list-style: none; margin: 2px 0 0; padding: 0; }
355
- #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; }
356
388
  #inspect .why-list code { font: var(--t-body)/1.45 var(--font-mono); }
357
389
  #inspect .why-meta { color: var(--muted); font-size: var(--t-caption); }
358
390
  #inspect .why-gap, #inspect .why-refusal { color: var(--pending); }
@@ -382,7 +414,7 @@
382
414
  keyboard focus is inside it — a tree of visible "copy" links reads as
383
415
  chrome, not as data. */
384
416
  .jsonv-copy, .jsonv-more { color: var(--muted); font-size: var(--t-caption); cursor: pointer;
385
- margin-left: 8px; user-select: none; }
417
+ margin-left: var(--s3); user-select: none; }
386
418
  .jsonv-copy { opacity: 0; }
387
419
  .jsonv-line:hover > .jsonv-copy, .jsonv-copy:focus-visible, .jsonv-copy[data-copied] { opacity: 1; }
388
420
  .jsonv-copy:hover, .jsonv-more:hover { color: var(--fg); }
@@ -395,7 +427,7 @@
395
427
  #inspect dd > .jsonv { margin-top: 1px; }
396
428
  /* A value PAIR (was/now, declared/live, baseline/live) whose sides are
397
429
  trees rather than scalars — see pairCell() in app.js. */
398
- #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; }
399
431
  #inspect .pair-row > .jsonv { flex: 1; min-width: 0; }
400
432
  #inspect .pair-label { color: var(--muted); font-size: var(--t-caption); flex: none; }
401
433
  /* The op log's JSON lines (#259): a report chant emitted as an object
@@ -431,12 +463,12 @@
431
463
  #panel-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line);
432
464
  background: color-mix(in srgb, var(--well) 45%, var(--panel));
433
465
  border-radius: calc(var(--r-shell) - 1px) calc(var(--r-shell) - 1px) 0 0;
434
- cursor: grab; padding: 3px 4px 3px 3px; gap: 2px; }
466
+ cursor: grab; padding: 3px var(--s1) 3px 3px; gap: 2px; }
435
467
  #panel.dragging #panel-tabs { cursor: grabbing; }
436
468
  #panel.collapsed #panel-tabs { border-bottom: none; border-radius: calc(var(--r-shell) - 1px); }
437
469
  #panel.collapsed #panel-body { display: none; }
438
470
  #panel-tabs button[data-tab] { flex: 1; background: none; border: none; border-radius: var(--r-ctl);
439
- 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; }
440
472
  #panel-tabs button[data-tab]:hover { color: var(--fg); }
441
473
  #panel-tabs button[data-tab].active { color: var(--fg); background: var(--active); font-weight: 600; }
442
474
  /* #476: framed in a host pane. Deploying and the theme are the host's
@@ -447,7 +479,7 @@
447
479
  chevron) in the corner, so the graph has the pane to itself. */
448
480
  .embed #panel.collapsed #panel-tabs button[data-tab] { display: none; }
449
481
  .embed #panel.collapsed { width: auto; }
450
- .embed #panel.collapsed #panel-tabs { gap: 4px; padding: 2px 4px; }
482
+ .embed #panel.collapsed #panel-tabs { gap: var(--s1); padding: 2px var(--s1); }
451
483
  /* #569: ?embed=1&bare=1, the kiosk's frame: the graph alone. Nothing to
452
484
  open, nothing to press, and no backdrop of its own: the page's. */
453
485
  .bare #panel, .bare #inspect, .bare #inspect-reopen, .bare #zoom-toggle, .bare #back-to-infra,
@@ -473,33 +505,32 @@
473
505
  .k-pop-lines li { overflow-wrap: anywhere; }
474
506
  .k-pop-unknown, .k-pop-unknown.k-pop-state { color: var(--foreign); }
475
507
  .k-pop-more { color: var(--muted); }
476
- .k-pop-note { color: var(--muted); font-size: 0.92em; }
508
+ .k-pop-note { color: var(--ink2); font-size: 0.92em; }
477
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; }
478
510
  .k-pop-state { margin-left: 0.4em; font-family: var(--font-ui); font-weight: 600; white-space: nowrap; }
479
511
  .k-pop-change { color: var(--pending); }
480
512
  .k-pop-same { color: var(--muted); }
481
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; }
482
- #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; }
483
515
  #panel-collapse { flex: none; align-self: center; background: none; border: none; color: var(--muted);
484
- 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); }
485
517
  #panel-collapse:hover { color: var(--fg); }
486
- #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);
487
519
  font-size: var(--t-body); user-select: text; }
488
520
  #panel-body section { display: none; }
489
521
  #panel-body section.active { display: block; }
490
- #panel h3 { margin: 14px 0 6px; font-size: var(--t-caption); text-transform: uppercase;
491
- 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); }
492
523
  #panel h3:first-child { margin-top: 0; }
493
- #panel .panel-muted { color: var(--muted); font: var(--t-caption)/1.5 var(--font-mono);
494
- margin: 4px 0; overflow-wrap: anywhere; }
495
- #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; }
496
527
  /* A radio-like option row: the current value is FILLED, with a hairline of
497
528
  the full accent down its leading edge — the one saturated mark in the
498
529
  chrome, so the eye finds the current lens without the whole row
499
530
  shouting in accent-coloured text. */
500
531
  #panel .opt { display: block; width: 100%; text-align: left; background: none;
501
532
  border: 1px solid transparent; border-radius: var(--r-ctl); color: var(--fg);
502
- font-size: var(--t-body); padding: 4px 8px; cursor: pointer; }
533
+ font-size: var(--t-body); padding: var(--s1) var(--s3); cursor: pointer; }
503
534
  #panel .opt:hover:not(:disabled) { border-color: var(--line); }
504
535
  /* #268: a demo whose prerequisites are missing stays visible and says why
505
536
  — dimmed and unclickable, not removed from the catalog. */
@@ -507,19 +538,19 @@
507
538
  #panel .opt.active { background: var(--active); border-color: var(--rule); color: var(--fg);
508
539
  box-shadow: inset 2px 0 0 var(--pending); }
509
540
  #panel select { width: 100%; background: var(--well); color: var(--fg); border: 1px solid var(--line);
510
- 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; }
511
542
  #panel select:hover { border-color: var(--focus); }
512
543
  #panel button.act { background: var(--well); color: var(--fg); border: 1px solid var(--rule);
513
- 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; }
514
545
  #panel button.act:hover { border-color: var(--focus); }
515
546
  #panel input.panel-input { flex: 1; min-width: 0; background: var(--well); color: var(--fg);
516
- 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);
517
548
  font: var(--t-caption)/1.4 var(--font-mono); }
518
549
  #panel input.panel-input:focus { border-color: var(--focus); outline: none; }
519
550
  /* Model tab rows: legend counts (static) and clickable node rows. Node
520
551
  ids are data — mono, so they align and scan like a terminal listing. */
521
- #panel .count-row, #panel .node-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
522
- #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);
523
554
  font: var(--t-caption)/1.5 var(--font-mono); }
524
555
  #panel .node-row:hover { background: var(--well); }
525
556
  #panel .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
@@ -535,11 +566,11 @@
535
566
  styled for both. `help` cursor: the hover carries "modeled, not
536
567
  billed", which is the sentence #397 turns on. */
537
568
  .behaviour-badge { color: var(--muted); font: var(--t-caption)/1.4 var(--font-mono);
538
- 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);
539
570
  white-space: nowrap; cursor: help; flex: none; }
540
571
  #panel .behaviour-total { display: flex; flex-direction: column; gap: 1px; padding: 3px 0;
541
572
  font: var(--t-caption)/1.5 var(--font-mono); }
542
- #panel .behaviour-ramp { margin: 4px 0 2px; }
573
+ #panel .behaviour-ramp { margin: var(--s1) 0 2px; }
543
574
  /* A card nothing priced keeps the drift overlay's neutral fill (#399) —
544
575
  and says so, faintly, so the grey is legible as "not looked at" rather
545
576
  than as the low end of the scale. */
@@ -556,7 +587,7 @@
556
587
  reset / run pipeline) visible inline again. #73 moved those into ⌘K;
557
588
  they remain there too — same actions, two surfaces. */
558
589
  #substrates { display: flex; flex-direction: column; gap: 2px; }
559
- .sub { display: flex; align-items: center; gap: 8px; padding: 3px 0;
590
+ .sub { display: flex; align-items: center; gap: var(--s3); padding: 3px 0;
560
591
  font: var(--t-caption)/1.6 var(--font-mono); }
561
592
  .sub .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
562
593
  .sub.up .dot { background: var(--managed); }
@@ -569,27 +600,27 @@
569
600
  /* The observe → reconcile → apply dial (M2, #54): where the selected
570
601
  target sits on the lifecycle progression. Lives on the panel's Deploy
571
602
  tab now, stacked vertically under the deploy actions. */
572
- #actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
573
- #dial { display: none; flex-direction: column; align-items: stretch; gap: 8px;
574
- font-size: var(--t-body); margin-top: 10px; }
575
- .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; }
576
607
  .dial-arrow { color: var(--muted); }
577
608
  /* The lifecycle steps are controls, so they take the control radius too —
578
609
  the pill shape was the last soft edge left inside the shell. */
579
610
  .dial-step { background: var(--well); color: var(--fg); border: 1px solid var(--rule);
580
- 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; }
581
612
  .dial-step:hover:not(:disabled) { border-color: var(--focus); }
582
613
  .dial-step.active { background: var(--active); border-color: var(--rule); color: var(--fg);
583
614
  box-shadow: inset 2px 0 0 var(--pending); }
584
615
  .dial-step:disabled { opacity: .5; cursor: not-allowed; }
585
- .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);
586
617
  font: var(--t-caption)/1.6 var(--font-mono); }
587
618
 
588
619
  /* The run playhead (#284 item 2) — the Op run's verdict, the pending gate
589
620
  card (#234), and the steps that have actually settled. Sits under the
590
621
  dial's apply progress, in the same tokens, so "green means it worked"
591
622
  reads the same in both. */
592
- .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); }
593
624
  .run-verdict { font-size: var(--t-caption); }
594
625
  /* #679: where the steps came from (chant's run events, a degraded older
595
626
  stream, or a best-effort log read). Inline colour sets the tone. */
@@ -597,33 +628,33 @@
597
628
  /* What behold does NOT know — a lost stream, an unreachable gate query.
598
629
  Same voice as the carve refusal: a statement, not an alarm. */
599
630
  .run-lost { border-left: 3px solid var(--bar-foreign); background: var(--well);
600
- 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);
601
632
  font: var(--t-caption)/1.5 var(--font-mono); }
602
633
  .run-steps { display: flex; flex-direction: column; gap: 2px; }
603
- .run-step { display: flex; align-items: center; gap: 6px;
634
+ .run-step { display: flex; align-items: center; gap: var(--s2);
604
635
  font: var(--t-caption)/1.6 var(--font-mono); color: var(--fg); }
605
636
  .run-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
606
637
  .run-took { color: var(--muted); }
607
638
  /* A human decision is owed: the same --pending edge the carve
608
639
  walkthrough's human refusal wears. */
609
640
  .run-gate { border: 1px solid var(--pending); border-left: 3px solid var(--bar-foreign);
610
- 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);
611
642
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
612
643
  .run-gate-title { font-size: var(--t-body); color: var(--pending); }
613
644
  .run-gate-desc { font-size: var(--t-caption); }
614
645
  .run-gate-meta { font: var(--t-caption)/1.5 var(--font-mono); color: var(--muted);
615
646
  overflow-wrap: anywhere; }
616
647
  .run-gate button.approve { margin-top: 3px; background: var(--well); color: var(--managed);
617
- 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);
618
649
  font-size: var(--t-body); cursor: pointer; }
619
650
  /* The operator strip (#234 join 3) — one honestly-dated tick per
620
651
  ConvergeOp, its lease, its pending gates. Sits above the run playhead in
621
652
  the same tokens: both are "what is happening to this project's Ops", and
622
653
  the loop is the one that never stopped. */
623
- .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); }
624
655
  .operator-title { font-size: var(--t-caption); color: var(--pending); }
625
- .operator-rows { display: flex; flex-direction: column; gap: 4px; }
626
- .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); }
627
658
  .operator-op { font-size: var(--t-body); color: var(--fg); }
628
659
  /* chant's own tick line, verbatim — mono, because it is a log line. */
629
660
  .operator-log { font: var(--t-caption)/1.5 var(--font-mono); color: var(--fg);
@@ -634,18 +665,18 @@
634
665
  /* Why one line is all the strip has, and where the rest is (chant#2029).
635
666
  A statement, not an alarm — the same voice .run-lost uses for what
636
667
  behold does not know. */
637
- .operator-caveat { font-size: var(--t-caption); color: var(--muted); }
668
+ .operator-caveat { font-size: var(--t-caption); color: var(--ink2); }
638
669
  /* The converge history (chant#2029) — the timeline the strip is NOT,
639
670
  reached from it. Closed by default and read on the click that opens it,
640
671
  so this whole block is inert until a human asks for it. */
641
- .operator-history { display: flex; flex-direction: column; gap: 4px; }
672
+ .operator-history { display: flex; flex-direction: column; gap: var(--s1); }
642
673
  .operator-history-toggle { align-self: flex-start; background: none; color: var(--pending);
643
674
  border: none; padding: 0; font-size: var(--t-caption); cursor: pointer; }
644
675
  .operator-history-head { font: var(--t-caption)/1.5 var(--font-mono); color: var(--muted); }
645
676
  /* Ticks and gate resolutions, oldest first — chant's own order. The rule
646
677
  down the left is the lane: one column of time, read forward. */
647
- .operator-timeline { display: flex; flex-direction: column; gap: 6px;
648
- 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; }
649
680
  .operator-entry { display: flex; flex-direction: column; gap: 1px; }
650
681
  /* A resolution is the human's half of the loop, so it wears the gate's own
651
682
  colour rather than the tick's. */
@@ -682,16 +713,16 @@
682
713
  same track the deploy dial uses, so "where am I in this" reads the same
683
714
  way in both places; below it, the step's own panel. Every colour here is
684
715
  a shared token, so all 552 palettes get it for free. */
685
- #tab-carve { display: flex; flex-direction: column; gap: 10px; }
686
- #tab-carve .dial-track { gap: 4px; }
687
- .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); }
688
719
  .carve-step.done { color: var(--managed); border-color: color-mix(in srgb, var(--managed) 45%, var(--rule)); }
689
720
  .carve-step.blocked { opacity: .55; }
690
- .carve-body { display: flex; flex-direction: column; gap: 6px; }
721
+ .carve-body { display: flex; flex-direction: column; gap: var(--s2); }
691
722
  /* Data — chant's output, a file, a command — is mono and boxed; prose
692
723
  about it stays in the panel's own voice. */
693
724
  .carve-pre { margin: 0; background: var(--well); border: 1px solid var(--line);
694
- 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;
695
726
  font: var(--t-caption)/1.5 var(--font-mono); color: var(--fg); white-space: pre-wrap;
696
727
  overflow-wrap: anywhere; }
697
728
  .carve-pre.carve-cmd { color: var(--muted); }
@@ -701,16 +732,16 @@
701
732
  /* The one thing the walkthrough will not do for you, and the refusals it
702
733
  hands back — same card, because they are the same kind of statement. */
703
734
  .carve-refusal { border: 1px solid var(--degraded); border-left: 3px solid var(--degraded);
704
- 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); }
705
736
  .carve-refusal.carve-human { border-color: var(--pending); border-left-color: var(--pending); }
706
737
  .carve-refusal-title { font-size: var(--t-body); margin-bottom: 2px; }
707
- .carve-cmd-row { align-items: center; gap: 6px; }
738
+ .carve-cmd-row { align-items: center; gap: var(--s2); }
708
739
  .carve-cmd-text { font: var(--t-caption)/1.6 var(--font-mono); background: var(--well);
709
- 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);
710
741
  overflow-wrap: anywhere; }
711
742
  .carve-cmd-note, .carve-section { margin: 2px 0; }
712
743
  .carve-endcard { border: 1px solid var(--managed); border-left: 3px solid var(--managed);
713
- 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); }
714
745
  .carve-endcard-title { font-size: var(--t-body); margin-bottom: 2px; }
715
746
  .carve-caveat > summary { cursor: pointer; color: var(--muted);
716
747
  font: var(--t-caption)/1.6 var(--font-mono); }
@@ -719,7 +750,7 @@
719
750
  #graph [data-node-id].carved rect:first-of-type { stroke: var(--managed); stroke-width: 2; }
720
751
 
721
752
  #nowline { grid-column: 1 / 3; grid-row: 2; margin: 0; max-height: 160px; overflow: auto; display: none;
722
- 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);
723
754
  font: var(--t-caption)/1.6 var(--font-mono); color: var(--fg); white-space: pre-wrap; }
724
755
  /* #186: the panel's footer — the state the removed header carried. The
725
756
  statusbar (#73 "hide controls, never state": current zoom + env +
@@ -727,7 +758,7 @@
727
758
  Hidden when the panel collapses, like the body. */
728
759
  /* Counts, env, zoom, tier — all of it is state read at a glance, so the
729
760
  whole footer is mono. */
730
- #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);
731
762
  display: flex; flex-direction: column; gap: 3px;
732
763
  font: var(--t-caption)/1.5 var(--font-mono); }
733
764
  #panel.collapsed #panel-foot { display: none; }
@@ -737,7 +768,7 @@
737
768
  italic so it reads as a caption on the state rather than more state. */
738
769
  .statusbar-note { font-style: italic; opacity: 0.85; }
739
770
  #hintk { color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-ctl);
740
- 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; }
741
772
  #hintk:hover { border-color: var(--focus); color: var(--fg); }
742
773
  /* Command palette (⌘K / Ctrl+K, #73) — ported from spicypath's FG-036
743
774
  pattern (../spicypath/src/index.html), theme vars mapped onto behold's
@@ -756,10 +787,10 @@
756
787
  /* You type commands here — mono, at the one display size, is the whole
757
788
  point of the surface. */
758
789
  #pal-input { width: 100%; box-sizing: border-box; background: var(--well); color: var(--fg);
759
- 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);
760
791
  font: var(--t-display)/1.3 var(--font-mono); outline: none; }
761
- #pal-list { max-height: 50vh; overflow: auto; padding: 5px; }
762
- #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);
763
794
  font: var(--t-body)/1.5 var(--font-mono);
764
795
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
765
796
  #pal-list .row.sel { background: var(--pending); color: var(--pal-sel-fg, var(--fg)); }
@@ -767,7 +798,7 @@
767
798
  tells two same-named addresses in two members apart. Inherits the row's
768
799
  colour so the selected row stays readable on --pending. */
769
800
  #pal-list .row .sub { font-size: var(--t-caption); opacity: 0.66; margin-top: 1px; }
770
- #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); }
771
802
 
772
803
  /* #422: a card whose member is still being read. Dashed and dimmed, never
773
804
  filled — the fill is the status channel and this card has no status yet,
@@ -775,7 +806,7 @@
775
806
  #graph [data-pending-read] { opacity: 0.55; }
776
807
  #graph [data-pending-read] rect { stroke-dasharray: 4 3; }
777
808
  @media (prefers-reduced-motion: no-preference) {
778
- #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; }
779
810
  @keyframes pending-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.68; } }
780
811
  }
781
812
  /*
@@ -789,14 +820,14 @@
789
820
  * get a bar inset 2px top and bottom; a card's bar is its inset edge.
790
821
  * The inspect pane's sections each get one, beside their rows.
791
822
  */
792
- #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); }
793
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 {
794
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; }
795
- #panel .node-row { padding-left: 12px; }
826
+ #panel .node-row { padding-left: var(--s4); }
796
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)); }
797
- #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); }
798
829
  #inspect-body > dl { padding-top: 1px; padding-bottom: 2px; }
799
- .ws-gate, .tg-progress-wave { padding-left: 11px !important; }
830
+ .ws-gate, .tg-progress-wave { padding-left: var(--s4) !important; }
800
831
  #substrates .sub.up { --bar: var(--bar-managed); }
801
832
  #substrates .sub.down { --bar: var(--bar-degraded); }
802
833
  #substrates .sub.on-demand { --bar: var(--bar-pending); }
@@ -815,6 +846,33 @@
815
846
  .tg-change-wave[data-state="applied"] { --bar: var(--bar-managed); }
816
847
  .tg-change-wave[data-state="failed"], .tg-change-wave[data-state="refused"] { --bar: var(--bar-degraded); }
817
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; }
818
876
  </style>
819
877
  </head>
820
878
  <body>
@@ -829,9 +887,9 @@
829
887
  <aside id="inspect">
830
888
  <div id="inspect-resize" title="Drag to resize"></div>
831
889
  <button id="inspect-collapse" title="Collapse panel">›</button>
832
- <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>
833
891
  </aside>
834
- <button id="inspect-reopen" title="Show inspect panel">inspect ‹</button>
892
+ <button id="inspect-reopen" title="Show inspect panel">Inspect ‹</button>
835
893
  <pre id="nowline"></pre>
836
894
  </div>
837
895
  <!-- The floating control panel (see the #panel CSS comment above). The
@@ -857,7 +915,7 @@
857
915
  <section data-tab="view" class="active">
858
916
  <div id="panel-zoom"></div>
859
917
  <div id="panel-viewtools"></div>
860
- <h3>theme</h3>
918
+ <h3>Theme</h3>
861
919
  <div id="panel-theme"></div>
862
920
  <!-- behold#571: event-help, the "Tips" switch the kiosk has too. -->
863
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>
@@ -883,5 +941,12 @@
883
941
  by app.js's paletteCommands()/palRender()/openPalette()/closePalette(). -->
884
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>
885
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>
886
951
  </body>
887
952
  </html>