@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/kiosk.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 · live demo</title>
7
24
  <link
8
25
  rel="icon"
@@ -12,18 +29,26 @@
12
29
  /* #569 step 2. The pre-paint fallback: the kiosk's default theme's
13
30
  tokens (KIOSK_THEME in theme.js), which initTheme() replaces with the viewer's theme. */
14
31
  :root {
15
- --bg: #09141b; --panel: #1c2325; --line: #2c2e2d; --fg: #deb88d; --muted: #746a5c;
32
+ --bg: #09141b; --panel: #1c2325; --line: #2c2e2d; --fg: #deb88d; --muted: #91877a; --ink2: #ceb395;
16
33
  --edge: #4d483f; --managed: #027c9b; --foreign: #fca02f; --pending: #1e4950;
17
34
  --degraded: #d15123; --neutral: #695e4e; --runtime: #50a3b5;
18
35
  --rule: #3d4142; --focus: #364548; --active: #243235; --well: #01070d; --shadow: #010304;
19
36
  /* behold#571: the kiosk's surfaces and ink (theme.js kioskSurfaces), the kiosk's default theme's (KIOSK_THEME, Sea Shells) until initTheme() runs. */
20
- --surface-box: #101b22; --surface-pane-a: #152128; --surface-pane-b: #1b272e; --zebra: #deb88d; --soft: #deb88d; --muted-ink: #7c7365;
37
+ --surface-box: #161a1d; --surface-pane-a: #1c2023; --surface-pane-b: #222629; --zebra: #deb88d; --soft: #deb88d; --muted-ink: #9a9083;
21
38
  --managed-ink: #0e7f9e; --foreign-ink: #fca02f; --pending-ink: #567b82; --degraded-ink: #d15123; --runtime-ink: #50a3b5;
22
39
  /* behold#571: the left bars (theme.js barInks), Sea Shells' until initTheme() runs. */
23
- --bar-managed: #258dac; --bar-foreign: #fca02f; --bar-pending: #5d8890; --bar-degraded: #da592c; --bar-runtime: #50a3b5; --bar-neutral: #8c8170;
40
+ --bar-managed: #258dac; --bar-foreign: #fca02f; --bar-pending: #5e8a91; --bar-degraded: #da592c; --bar-runtime: #50a3b5; --bar-neutral: #8c8170;
24
41
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
25
42
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
26
43
  }
44
+ /* behold#725: the spacing steps, 4, 6, 8, 12 and 16px at the kiosk's
45
+ 13px base, in em so they grow with the screen as the type does. Every
46
+ padding, margin and gap between a hairline and 1.25em takes the
47
+ nearest one. --beat is the one period every looping animation runs on
48
+ (a spinner turns once a beat, a due bar pulses over two), so they keep
49
+ time with each other; web/motion.js pauses them all while the tab is
50
+ hidden. */
51
+ :root { --s1: 0.31em; --s2: 0.46em; --s3: 0.62em; --s4: 0.92em; --s5: 1.23em; --beat: 1.2s; }
27
52
  * { box-sizing: border-box; }
28
53
  /* behold#571: the kiosk's text is the softened ink, its secondary text and state colours the ones held legible on every surface. */
29
54
  body { --fg: var(--soft); --muted: var(--muted-ink); --managed: var(--managed-ink); --foreign: var(--foreign-ink); --pending: var(--pending-ink); --degraded: var(--degraded-ink); --runtime: var(--runtime-ink); --zebra-row: color-mix(in srgb, var(--zebra) 3.5%, transparent); }
@@ -36,9 +61,11 @@
36
61
  #k-head { position: relative; }
37
62
  /* #569: the pipeline's runs (left), the selected run's jobs, steps and
38
63
  log (middle), behold's view of the change (right). */
39
- /* behold#571: each pane its own surface, a gap of the page between them. */
64
+ /* behold#571: each pane its own surface, a gap of the page between them.
65
+ behold#725: panes that sit side by side share one level (--surface-pane-a);
66
+ --surface-pane-b is for what nests inside one (a log, a popover, the caption). */
40
67
  #stage { display: grid; grid-template-columns: minmax(15em, 18%) minmax(26em, 34%) minmax(0, 1fr); gap: 5px; padding: 0 5px; min-height: 0; background: var(--bg); }
41
- #runs-side { overflow-y: auto; background: var(--surface-pane-b); border-radius: 6px 6px 0 0; }
68
+ #runs-side { overflow-y: auto; background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
42
69
  #runs-main { overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
43
70
  #k-runs-toggle { display: none; }
44
71
  /*
@@ -67,92 +94,94 @@
67
94
  .r-selected, .t-strip .t-row.t-sel, .r-open > .r-step-line, .r-open > .r-log { --bar-w: 6px; }
68
95
  .r-run:nth-child(even of .r-run), .r-job:nth-child(even of .r-job), .r-log-line:nth-child(even of .r-log-line) { background: var(--zebra-row); }
69
96
  /* behold#571: the panes step back from the lead block: quieter heads, lighter rules. */
70
- .r-side-head { padding: 0.7em 1em 0.4em; }
97
+ .r-side-head { padding: var(--s3) var(--s4) var(--s2); }
71
98
  .r-side-title { font-weight: 600; font-size: 0.95em; color: var(--muted); }
72
- .r-side-note { color: var(--muted); font-size: 0.82em; margin-top: 0.15em; }
73
- .r-runs { list-style: none; margin: 0; padding: 0 0 1em; }
74
- .r-group { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.7em 1em 0.25em; }
75
- .r-run { display: grid; grid-template-columns: 1.2em 1fr; gap: 0.6em; padding: 0.5em 1em; cursor: pointer; }
99
+ .r-side-note { color: var(--ink2); font-size: 0.82em; margin-top: 0.15em; }
100
+ .r-runs { list-style: none; margin: 0; padding: 0 0 var(--s4); }
101
+ .r-group { font: 600 0.8em/1.3 var(--font-ui); color: var(--muted); padding: var(--s3) var(--s4) 0.25em; }
102
+ .r-run { display: grid; grid-template-columns: 1.2em 1fr; gap: var(--s3); padding: var(--s2) var(--s4); cursor: pointer; }
76
103
  .r-run:hover { background: color-mix(in srgb, var(--active) 50%, transparent); }
77
104
  .r-run.r-selected { background: var(--active); }
78
105
  .r-run-title { font-weight: 600; line-height: 1.25; }
79
106
  .r-run-place { color: var(--muted); font-size: 0.85em; }
80
- .r-run-meta { display: flex; flex-wrap: wrap; gap: 0 0.7em; color: var(--muted); font-size: 0.8em; }
107
+ .r-run-meta { display: flex; flex-wrap: wrap; gap: 0 var(--s3); color: var(--muted); font-size: 0.8em; }
81
108
  .r-icon { width: 1.15em; height: 1.15em; flex: none; margin-top: 0.15em; }
82
109
  .r-ok { color: var(--managed); } .r-bad { color: var(--degraded); } .r-wait { color: var(--foreign); } .r-busy { color: var(--foreign); } .r-idle { color: var(--neutral); }
83
110
  .r-word.r-idle { color: var(--muted); }
84
- @media (prefers-reduced-motion: no-preference) { .r-spin { animation: r-spin 1s linear infinite; } }
111
+ @media (prefers-reduced-motion: no-preference) { .r-spin { animation: r-spin var(--beat) linear infinite; } }
85
112
  @keyframes r-spin { to { transform: rotate(360deg); } }
86
- .r-head { padding: 0.7em 1em 0.5em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
87
- .r-head-title { display: flex; gap: 0.5em; align-items: center; font-weight: 600; font-size: 1em; }
113
+ .r-head { padding: var(--s3) var(--s4) var(--s2); border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
114
+ .r-head-title { display: flex; gap: var(--s2); align-items: center; font-weight: 600; font-size: 1em; }
88
115
  .r-head-title .r-icon { margin: 0; }
89
116
  .r-head-sub { color: var(--fg); font-size: 0.88em; margin-top: 0.15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
90
117
  .r-head-meta { color: var(--muted); font-size: 0.82em; }
91
- .r-label { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.6em 1em 0; }
92
- .r-jobs { list-style: none; margin: 0; padding: 0.3em 0 0.5em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
93
- .r-job { display: flex; gap: 0.5em; align-items: center; padding: 0.22em 1em 0.22em calc(1em + var(--depth, 0) * 0.9em); cursor: pointer; }
118
+ /* behold#725: a section heading (Jobs, Features, Steps) keeps a line of its own: the pane is a flex column, and nothing in it but the steps may shrink. */
119
+ .r-label { display: block; flex: none; position: static; font: 600 0.8em/1.3 var(--font-ui); color: var(--muted); padding: var(--s3) var(--s4) var(--s1); }
120
+ #runs-main > :not(.r-steps) { flex: none; }
121
+ .r-jobs { list-style: none; margin: 0; padding: var(--s1) 0 var(--s2); border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
122
+ .r-job { display: flex; gap: var(--s2); align-items: center; padding: 0.22em 1em 0.22em calc(1em + var(--depth, 0) * 0.9em); cursor: pointer; }
94
123
  .r-job .r-icon { margin: 0; }
95
124
  .r-job.r-selected { background: var(--active); }
96
125
  .r-job-name { font: 600 0.92em var(--font-mono); }
97
- .r-job-needs { color: var(--muted); font-size: 0.78em; }
126
+ .r-job-needs { color: var(--muted); font-size: 0.8em; }
98
127
  /* behold#571: the tools a job runs, each its logo and its name. Short of room, the names stay and the logos go. */
99
128
  .r-job-head { display: inline-flex; flex-direction: column; flex: none; line-height: 1.15; }
100
129
  .r-job-name { white-space: nowrap; flex: none; }
101
- .r-job-tools { display: inline-flex; gap: 0.6em; font-size: 0.7em; color: var(--muted); white-space: nowrap; }
130
+ .r-job-tools { display: inline-flex; gap: var(--s3); font-size: 0.8em; color: var(--muted); white-space: nowrap; }
102
131
  .r-tool { display: inline-flex; align-items: center; gap: 0.25em; }
103
132
  .r-tool-icon { flex: none; }
104
133
  /* behold#571: each root's colour, as a dot by its name; never a text or fill colour, which mean a state. */
105
- .k-root::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--k-root); margin: 0 0.28em 0.1em 0.05em; vertical-align: middle; }
106
- .r-job-roots { display: inline-flex; gap: 0.75em; font-size: 0.82em; color: var(--fg); }
134
+ .k-root::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--k-root); margin: 0 var(--s1) 0.1em 0.05em; vertical-align: middle; }
135
+ .r-job-roots { display: inline-flex; gap: var(--s3); font-size: 0.82em; color: var(--fg); }
107
136
  .r-dur { margin-left: auto; color: var(--muted); font-size: 0.8em; white-space: nowrap; }
108
- .r-job-skipped { color: var(--muted); font-size: 0.78em; cursor: default; }
109
- .r-steps { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; padding-bottom: 0.5em; }
110
- .r-steps-head { display: flex; gap: 0.5em; align-items: center; padding: 0.3em 1em 0.3em; }
137
+ .r-job-skipped { color: var(--muted); font-size: 0.8em; cursor: default; }
138
+ .r-steps { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; padding-bottom: var(--s2); }
139
+ .r-steps-head { flex: none; display: flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s4) var(--s1); }
111
140
  .r-steps-head .r-icon { margin: 0; }
112
141
  .r-steps-job { font: 700 0.95em var(--font-mono); }
113
142
  .r-steps-word { color: var(--muted); font-size: 0.85em; }
114
- .r-step-line { display: flex; gap: 0.45em; align-items: center; padding: 0.2em 1em; cursor: pointer; }
143
+ .r-step-line { display: flex; gap: var(--s2); align-items: center; padding: 0.2em var(--s4); cursor: pointer; }
115
144
  .r-step-line .r-icon { margin: 0; width: 1em; height: 1em; }
116
145
  .r-caret { color: var(--muted); width: 0.8em; font-size: 0.8em; }
117
146
  .r-step-name { font-size: 0.88em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
118
147
  .r-open > .r-step-line { background: color-mix(in srgb, var(--active) 60%, transparent); }
119
- .r-log { margin: 0.2em 0.6em 0.4em 1.6em; padding: 0.5em 0; background: var(--surface-pane-b); border-radius: 6px; font: 0.76em/1.45 var(--font-mono);
148
+ .r-log { margin: 0.2em var(--s3) var(--s2) 1.6em; padding: var(--s2) 0; background: var(--surface-pane-b); border-radius: 6px; font: 0.76em/1.45 var(--font-mono);
120
149
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto; max-height: 52vh; min-height: 6em; }
121
- .r-log-line { display: grid; grid-template-columns: 3.2em 1fr; gap: 0.8em; padding: 0 0.8em 0 0; }
150
+ .r-log-line { display: grid; grid-template-columns: 3.2em 1fr; gap: var(--s4); padding: 0 var(--s4) 0 0; }
122
151
  .r-ln { color: var(--muted); text-align: right; user-select: none; opacity: 0.7; }
123
152
  /* behold#571: the runner's set-up lines, folded into one row so terragucci's own lines come first. */
124
- .r-log-setup { color: var(--muted); padding: 0 0.8em 0.2em 4em; cursor: pointer; user-select: none; }
153
+ .r-log-setup { color: var(--muted); padding: 0 var(--s4) 0.2em 4em; cursor: pointer; user-select: none; }
125
154
  .r-log-setup:hover { color: var(--fg); }
126
155
  .r-log-quiet .r-lt { color: var(--muted); }
127
- .r-log-cut { color: var(--muted); padding: 0 0.8em 0.2em 4em; font-style: italic; }
156
+ .r-log-cut { color: var(--muted); padding: 0 var(--s4) 0.2em 4em; font-style: italic; }
128
157
  .r-log-live { color: var(--foreign); padding-left: 4em; }
129
- @media (prefers-reduced-motion: no-preference) { .r-log-live { animation: r-blink 1s steps(2) infinite; } }
158
+ @media (prefers-reduced-motion: no-preference) { .r-log-live { animation: r-blink var(--beat) steps(2) infinite; } }
130
159
  @keyframes r-blink { 50% { opacity: 0; } }
131
- .r-note { color: var(--muted); padding: 0 1em; font-size: 0.88em; }
160
+ .r-note { color: var(--ink2); padding: 0 var(--s4); font-size: 0.88em; }
132
161
  /* behold#571: a log line's feature: an outlined chip on its first line in the job, a faint dot after; its note opens under the line. */
133
- .r-ann { font: 600 0.82em var(--font-ui); color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0 0.55em; margin-left: 0.3em; cursor: pointer; white-space: nowrap; vertical-align: 0.05em; }
162
+ .r-ann { font: 600 0.82em var(--font-ui); color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0 var(--s3); margin-left: var(--s1); cursor: pointer; white-space: nowrap; vertical-align: 0.05em; }
134
163
  .r-ann:hover, .r-ann:focus-visible { border-color: var(--focus); }
135
- .r-ann-dot { display: inline-block; width: 0.55em; height: 0.55em; padding: 0; margin-left: 0.45em; border-radius: 50%; border: 0; background: var(--muted); opacity: 0.55; cursor: pointer; vertical-align: 0.1em; }
164
+ .r-ann-dot { display: inline-block; width: 0.55em; height: 0.55em; padding: 0; margin-left: var(--s2); border-radius: 50%; border: 0; background: var(--muted); opacity: 0.55; cursor: pointer; vertical-align: 0.1em; }
136
165
  .r-ann-dot:hover { opacity: 1; }
137
166
  .r-ann-terragucci { border-color: color-mix(in srgb, var(--pending) 70%, transparent); }
138
167
  .r-ann-chant { border-color: color-mix(in srgb, var(--runtime) 70%, transparent); }
139
168
  .r-ann-choudoufu, .r-ann-behold { border-color: color-mix(in srgb, var(--foreign) 70%, transparent); }
140
169
  .r-ann-dot.r-ann-terragucci { background: var(--pending); } .r-ann-dot.r-ann-chant { background: var(--runtime); }
141
- .r-ann-note { grid-column: 2; margin: 0.25em 0 0.45em; padding: 0.45em 0.7em; border-left: 3px solid var(--focus); background: var(--surface-box); border-radius: 0 6px 6px 0; font: 1.12em/1.4 var(--font-ui); white-space: normal; }
142
- .r-ann-note-head { font: 600 0.8em var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border: 0; }
170
+ .r-ann-note { grid-column: 2; margin: 0.25em 0 var(--s2); padding: var(--s2) var(--s3); border-left: 3px solid var(--focus); background: var(--surface-box); border-radius: 0 6px 6px 0; font: 1.12em/1.4 var(--font-ui); white-space: normal; }
171
+ .r-ann-note-head { font: 600 0.8em var(--font-ui); color: var(--muted); border: 0; }
143
172
  .r-ann-note-text { margin: 0.15em 0 0.2em; color: var(--fg); }
144
173
  .r-ann-more { color: var(--pending); }
145
174
  .r-flash { background: color-mix(in srgb, var(--focus) 30%, transparent) !important; }
146
175
  @media (prefers-reduced-motion: no-preference) { .r-flash { transition: background 0.6s; } }
147
176
  /* behold#571: folded, whole lines only (fitFeatures); opened, it scrolls inside a bounded box. */
148
- .r-feats { padding: 0.1em 1em 0.45em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
177
+ .r-feats { padding: 0.1em var(--s4) var(--s2); border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
149
178
  .r-feats-open .r-feats-list { max-height: 12em; overflow-y: auto; scrollbar-width: thin; }
150
- .r-feats-label { padding: 0.3em 0 0.15em; }
151
- .r-feats-list { display: flex; flex-wrap: wrap; gap: 0.3em 0.35em; align-items: center; }
179
+ .r-feats-label { padding: var(--s1) 0 0.15em; }
180
+ .r-feats-list { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s1); align-items: center; }
152
181
  .r-feats-list > [hidden] { display: none; }
153
- .r-feats-product { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border: 0; margin: 0 0.15em 0 0.4em; }
182
+ .r-feats-product { font: 600 0.8em var(--font-ui); color: var(--muted); border: 0; margin: 0 0.15em 0 var(--s2); }
154
183
  .r-feats-product:first-child { margin-left: 0; }
155
- .r-feat, .r-feats-more { font: 0.8em var(--font-ui); line-height: 1.4; color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0.05em 0.6em; cursor: pointer; }
184
+ .r-feat, .r-feats-more { font: 0.8em var(--font-ui); line-height: 1.4; color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0.05em var(--s3); cursor: pointer; }
156
185
  .r-feats-more { color: var(--pending); border-style: dashed; }
157
186
  .r-feat:hover, .r-feat:focus-visible { border-color: var(--focus); background: var(--zebra-row); }
158
187
  /*
@@ -165,8 +194,8 @@
165
194
  * box, with a fade at the edge, so the panes below never move. The hold
166
195
  * panel on the right takes the lead's height and never sets it.
167
196
  */
168
- #bar { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.4em 0.7em; align-items: stretch;
169
- padding: 0.3em 0.6em 0.3em; background: var(--bg); }
197
+ #bar { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s2) var(--s3); align-items: stretch;
198
+ padding: var(--s1) var(--s3) var(--s1); background: var(--bg); }
170
199
  #bar > .k-empty, #bar > .k-replay, #bar > .k-nograph-note { grid-column: 1 / -1; }
171
200
  /*
172
201
  * behold#571: the lead block is a grid of labelled rows. A quiet line
@@ -180,31 +209,32 @@
180
209
  */
181
210
  :root { --k-label-w: 7.6rem; --k-title-h: 3.15em; --k-beat-h: 3em; --k-step-h: 4.45em; --k-next-h: 2.15em; --k-watch-h: 3.75em; --k-shows-h: 2.5em; --k-facts-h: 3.75em; }
182
211
  .k-lead { display: grid; grid-template-rows: var(--k-title-h) var(--k-beat-h) var(--k-step-h) var(--k-next-h) var(--k-watch-h) var(--k-shows-h) var(--k-facts-h) auto; gap: 0.2em; min-width: 0;
183
- padding: 0.25em 0.9em 0.35em; background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
212
+ padding: 0.25em var(--s4) var(--s1); background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
184
213
  .k-box { min-height: 0; overflow-y: auto; scrollbar-width: thin; border-radius: 6px; padding: 0.1em 0.2em; }
185
214
  .k-box.k-more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); }
186
215
  .k-box.k-more-above { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); }
187
216
  .k-box.k-more-above.k-more-below { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); }
188
217
  .k-box-empty { background: transparent; box-shadow: none; }
189
218
  .k-cycle { color: var(--muted); font: 0.78em var(--font-mono); white-space: nowrap; }
190
- .k-muted { color: var(--muted); margin: 0.25em 0; }
191
- .k-stop { font: 0.78em var(--font-mono); padding: 0.18em 0.6em; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
219
+ .k-muted { color: var(--ink2); margin: 0.25em 0; }
220
+ .k-stop { font: 0.78em var(--font-mono); padding: 0.18em var(--s3); border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
192
221
  .k-done { color: var(--fg); border-color: var(--managed); }
193
222
  .k-current { color: var(--bg); background: var(--pending); border-color: var(--pending); font-weight: 600; }
194
223
  .k-failed { color: var(--bg); background: var(--degraded); border-color: var(--degraded); font-weight: 600; }
195
224
  .k-when { color: var(--foreign); font-family: var(--font-mono); }
196
225
  .k-box-title { overflow: hidden; padding: 0; }
197
- .k-overline { display: flex; align-items: center; gap: 0.3em 0.9em; min-width: 0; height: 1.4em; overflow: hidden; }
226
+ .k-overline { display: flex; align-items: center; gap: var(--s1) var(--s4); min-width: 0; height: 1.4em; overflow: hidden; }
198
227
  .k-overline .k-brand { margin: 0; font-size: 0.9em; }
199
- .k-kicker { font: 600 0.5em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.9em; vertical-align: 0.3em; white-space: nowrap; }
200
- .k-overline .k-kicker { font-size: 0.68em; margin: 0; vertical-align: 0; }
228
+ /* behold#725: in rem, so the kicker keeps one size beside the overline's and the caption's larger title. */
229
+ .k-kicker { display: inline-block; font: 600 0.8rem var(--font-ui); color: var(--muted); margin-right: var(--s4); vertical-align: 0.3em; white-space: nowrap; }
230
+ .k-overline .k-kicker { margin: 0; vertical-align: 0; }
201
231
  .k-overline .k-strip { margin-left: auto; }
202
- .k-strip { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.3em; padding: 0; margin: 0; }
232
+ .k-strip { list-style: none; display: flex; flex-wrap: nowrap; gap: var(--s1); padding: 0; margin: 0; }
203
233
  .k-overline .k-stop { font-size: 0.7em; }
204
234
  .k-title { margin: 0; font-size: 1.45em; line-height: 1.15; text-wrap: balance; overflow: hidden; }
205
- .k-row { display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: 0.8em; min-height: 0; padding-left: 0.75em; box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
235
+ .k-row { display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: var(--s4); min-height: 0; padding-left: var(--s3); box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
206
236
  .k-row-empty { box-shadow: none; }
207
- .k-row-label { font: 600 0.66em/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0.5em; overflow-wrap: normal; }
237
+ .k-row-label { font: 600 0.8em/1.3 var(--font-ui); color: var(--muted); padding-top: var(--s2); overflow-wrap: normal; }
208
238
  .k-row-box { padding: 0 0.2em 0 0; border-radius: 0; }
209
239
  .k-row-box > p { margin: 0; max-width: 72ch; text-wrap: pretty; overflow-wrap: normal; }
210
240
  /* What changes and the step, at the same strong size; the step's rail colour is what sets it apart. */
@@ -212,8 +242,8 @@
212
242
  .k-row-step { box-shadow: inset 5px 0 0 var(--bar, var(--bar-neutral)); }
213
243
  .k-row-step .k-row-label { color: var(--bar, var(--muted)); }
214
244
  /* Next, watch for and shows: smaller, quieter. */
215
- .k-next, .k-about { font-size: 0.9em; line-height: 1.35; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
216
- .k-row-next .k-row-label, .k-row-more .k-row-label { padding-top: 0.3em; }
245
+ .k-next, .k-about { font-size: 0.9em; line-height: 1.35; color: var(--ink2); }
246
+ .k-row-next .k-row-label, .k-row-more .k-row-label { padding-top: var(--s1); }
217
247
  .k-action { font-family: var(--font-mono); color: var(--fg); }
218
248
  .k-when { color: var(--foreign); font-family: var(--font-mono); }
219
249
  .k-next-by { color: var(--muted); }
@@ -226,7 +256,7 @@
226
256
  */
227
257
  /* behold#694: the bar has its own track below the words, with room between, never an underline of them. */
228
258
  .k-row-next { position: relative; padding-bottom: calc(0.45em + 4px); }
229
- .k-nbar { position: absolute; left: calc(0.75em + var(--k-label-w) + 0.8em); right: 0.2em; bottom: 0; height: 4px; border-radius: 2px; overflow: hidden; pointer-events: none;
259
+ .k-nbar { position: absolute; left: calc(var(--s3) + var(--k-label-w) + var(--s4)); right: 0.2em; bottom: 0; height: 4px; border-radius: 2px; overflow: hidden; pointer-events: none;
230
260
  background: color-mix(in srgb, var(--muted) 22%, transparent); }
231
261
  .k-nbar-none { display: none; }
232
262
  .k-nbar-in { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k-nbar-fill, 0) * 100%); border-radius: inherit; background: var(--bar, var(--bar-neutral)); }
@@ -234,55 +264,56 @@
234
264
  .k-nbar-wait { background: transparent; }
235
265
  .k-nbar-wait .k-nbar-in { width: 30%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bar, var(--bar-neutral)) 60%, transparent), transparent); }
236
266
  @media (prefers-reduced-motion: no-preference) {
237
- .k-nbar-due .k-nbar-in { animation: k-nbar-pulse 2.4s ease-in-out var(--k-nbar-phase, 0ms) infinite; }
238
- .k-nbar-wait .k-nbar-in { animation: k-nbar-sweep 2.4s linear var(--k-nbar-phase, 0ms) infinite; }
267
+ .k-nbar-due .k-nbar-in { animation: k-nbar-pulse calc(var(--beat) * 2) ease-in-out var(--k-nbar-phase, 0ms) infinite; }
268
+ .k-nbar-wait .k-nbar-in { animation: k-nbar-sweep calc(var(--beat) * 2) linear var(--k-nbar-phase, 0ms) infinite; }
239
269
  }
240
270
  @media (prefers-reduced-motion: reduce) { .k-nbar-wait { display: none; } }
241
271
  @keyframes k-nbar-pulse { 50% { opacity: 0.5; } }
242
272
  @keyframes k-nbar-sweep { from { transform: translateX(-100%); } to { transform: translateX(334%); } }
243
273
  /* The pull request's facts, smallest: each part a chip that wraps whole, never cut off. */
244
274
  .k-row-facts .k-row-label { padding-top: 0.25em; }
245
- .k-row-box > p.k-facts { display: flex; flex-wrap: wrap; gap: 0 0.5em; max-width: none; font-size: 0.84em; line-height: 1.45; color: var(--fg); }
246
- .k-fact:not(:last-child)::after { content: "\00B7"; color: var(--muted); margin-left: 0.5em; }
247
- .k-credits { margin: 0; color: var(--muted); font-size: 0.78em; line-height: 1.35; }
275
+ .k-row-box > p.k-facts { display: flex; flex-wrap: wrap; gap: 0 var(--s2); max-width: none; font-size: 0.84em; line-height: 1.45; color: var(--fg); }
276
+ .k-fact:not(:last-child)::after { content: "\00B7"; color: var(--muted); margin-left: var(--s2); }
277
+ .k-credits { margin: 0; color: var(--muted); font-size: 0.8em; line-height: 1.35; }
248
278
  /* behold#571: the hold panel, lit in the waiting tone its job row and its wave box carry. */
249
- .k-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.3em; min-width: 0; min-height: 0; contain: size; }
279
+ .k-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s1); min-width: 0; min-height: 0; contain: size; }
250
280
  /* behold#571: the cycle line sits under the header's controls (#688 made them full size), not beneath them. */
251
- .k-right > .k-cycle { margin: 0; padding: 2.6em 0.3em 0; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
252
- .k-box-hold { padding: 0.5em 0.9em 0.6em; }
253
- .k-hold { background: var(--surface-box); border-radius: 8px; }
254
- .k-hold-head { margin: 0 0 0.3em; font: 700 0.95em var(--font-mono); color: var(--fg); }
255
- .k-hold-wave { background: color-mix(in srgb, var(--foreign) 7%, var(--surface-box)); box-shadow: inset 6px 0 0 var(--bar-foreign); padding-left: 1.2em; }
281
+ .k-right > .k-cycle { margin: 0; padding: 2.6em var(--s1) 0; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
282
+ .k-box-hold { padding: var(--s2) var(--s4) var(--s3); }
283
+ /* behold#725: beside the lead block, so on the lead block's level. */
284
+ .k-hold { background: var(--surface-pane-b); border-radius: 8px; }
285
+ .k-hold-head { margin: 0 0 var(--s1); font: 700 0.95em var(--font-mono); color: var(--fg); }
286
+ .k-hold-wave { background: color-mix(in srgb, var(--foreign) 7%, var(--surface-pane-b)); box-shadow: inset 6px 0 0 var(--bar-foreign); padding-left: var(--s5); }
256
287
  .k-hold-wave .k-hold-head { color: var(--foreign); }
257
288
  .k-hold > .k-note { margin-top: 0.2em; }
258
289
  /* behold#571: "How this hold ends": four rows that light from the records. */
259
- .k-ap-head { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.1em; }
260
- .k-ap-head .k-ap-plan { text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 400; }
290
+ .k-ap-head { font: 600 0.8em var(--font-ui); color: var(--muted); margin: 0 0 0.1em; }
291
+ .k-ap-head .k-ap-plan { color: var(--fg); font-weight: 400; }
261
292
  .k-ap-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.05em; }
262
- .k-ap-row { display: grid; grid-template-columns: 1em 6.4em minmax(0, 1fr); gap: 0 0.35em; align-items: baseline; font-size: 0.84em; line-height: 1.28; padding: 0.12em 0 0.12em 0.7em; }
293
+ .k-ap-row { display: grid; grid-template-columns: 1em 6.4em minmax(0, 1fr); gap: 0 var(--s1); align-items: baseline; font-size: 0.84em; line-height: 1.28; padding: 0.12em 0 0.12em var(--s3); }
263
294
  .k-ap-mark { width: 0.75em; height: 0.75em; border-radius: 50%; border: 2px solid var(--muted); display: inline-block; align-self: start; margin-top: 0.25em; }
264
295
  .k-ap-lit .k-ap-mark { background: var(--managed); border-color: var(--managed); }
265
296
  .k-ap-going .k-ap-mark { border-color: var(--foreign); background: linear-gradient(90deg, var(--foreign) 50%, transparent 50%); }
266
- .k-ap-label { font: 600 0.82em var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); }
297
+ .k-ap-label { font: 600 0.82em var(--font-ui); color: var(--fg); }
267
298
  .k-ap-dim .k-ap-label, .k-ap-dim .k-ap-text { color: var(--muted); }
268
- .k-ap-facts { color: var(--muted); font-size: 0.92em; margin-left: 0.35em; }
299
+ .k-ap-facts { color: var(--muted); font-size: 0.92em; margin-left: var(--s1); }
269
300
  .k-ap-bad { color: var(--degraded); }
270
- .k-ap-row .k-command { grid-column: 3; margin: 0.1em 0; padding: 0.25em 0.6em; font-size: 0.92em; }
301
+ .k-ap-row .k-command { grid-column: 3; margin: 0.1em 0; padding: 0.25em var(--s3); font-size: 0.92em; }
271
302
  .k-ap .r-ann { font-size: 0.78em; }
272
303
  .k-approve p { margin: 0.15em 0; }
273
304
  .k-approve-gloss { color: var(--fg); font-size: 0.92em; }
274
- .k-approve-then { color: var(--muted); font-size: 0.92em; }
275
- .k-command { display: block; margin: 0.25em 0; padding: 0.45em 0.7em; background: var(--well); border-radius: 6px; font: 0.88em var(--font-mono); overflow-wrap: anywhere; user-select: none; }
276
- .k-inline { font-family: var(--font-mono); color: var(--fg); background: var(--well); padding: 0.05em 0.35em; border-radius: 4px; user-select: none; }
277
- .k-note { color: var(--muted); margin: 0; font-size: 0.92em; }
305
+ .k-approve-then { color: var(--ink2); font-size: 0.92em; }
306
+ .k-command { display: block; margin: 0.25em 0; padding: var(--s2) var(--s3); background: var(--well); border-radius: 6px; font: 0.88em var(--font-mono); overflow-wrap: anywhere; user-select: none; }
307
+ .k-inline { font-family: var(--font-mono); color: var(--fg); background: var(--well); padding: 0.05em var(--s1); border-radius: 4px; user-select: none; }
308
+ .k-note { color: var(--ink2); margin: 0; font-size: 0.92em; }
278
309
  .k-unknown { color: var(--foreign); }
279
310
  #view-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
280
311
  #view { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: var(--bg); }
281
312
  /* #571: the toggle between the two views, over the frame by the view's caption. */
282
- #views { display: flex; align-items: center; gap: 0.9em; padding: 0.45em 1em; border-bottom: 1px solid var(--rule); background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
313
+ #views { display: flex; align-items: center; gap: var(--s4); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--rule); background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
283
314
  #views[hidden] { display: none; }
284
315
  .k-views { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
285
- .k-view { font: 600 0.85em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: 0.3em 0.95em; cursor: pointer; }
316
+ .k-view { font: 600 0.85em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: var(--s1) var(--s4); cursor: pointer; }
286
317
  .k-view + .k-view { border-left: 1px solid var(--rule); }
287
318
  .k-view:hover { color: var(--fg); }
288
319
  .k-view-on { color: var(--bg); background: var(--pending); }
@@ -294,13 +325,13 @@
294
325
  /* Folded, its header sits in the toggle's row; open, its rows lie over the top of the graph, two to a line. */
295
326
  #k-read { font-size: 0.82em; }
296
327
  #k-read[hidden] { display: none; }
297
- .k-read-head { position: absolute; top: 0.55em; right: 1.1em; z-index: 5; font: 600 0.82em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: transparent; border: 0; padding: 0.35em 0; cursor: pointer; }
328
+ .k-read-head { position: absolute; top: 0.55em; right: 1.1em; z-index: 5; font: 600 0.82em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: var(--s1) 0; cursor: pointer; }
298
329
  .k-read-head::after { content: " ▸"; }
299
330
  .k-read-open .k-read-head::after { content: " ▾"; }
300
331
  .k-read-head:hover { color: var(--fg); }
301
- .k-read-rows { position: absolute; top: 2.85em; left: 0.7em; right: 0.7em; z-index: 4; list-style: none; margin: 0; padding: 0.45em 0.9em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25em 1.4em;
332
+ .k-read-rows { position: absolute; top: 2.85em; left: 0.7em; right: 0.7em; z-index: 4; list-style: none; margin: 0; padding: var(--s2) var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25em 1.4em;
302
333
  background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 22px color-mix(in srgb, var(--shadow) 60%, transparent); }
303
- .k-read-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 0.5em; align-items: center; color: var(--fg); line-height: 1.3; }
334
+ .k-read-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: var(--s2); align-items: center; color: var(--fg); line-height: 1.3; }
304
335
  .k-read-mark { display: inline-block; justify-self: center; }
305
336
  .k-read-card { width: 1.7em; height: 0.95em; border-radius: 3px; background: var(--panel); box-shadow: inset 3px 0 0 var(--muted); border: 1px solid var(--edge); }
306
337
  .k-read-box { width: 1.9em; height: 1.05em; border-radius: 4px; border: 1.5px solid var(--muted); }
@@ -309,31 +340,31 @@
309
340
  .k-read-order { width: 1.9em; height: 1em; background: linear-gradient(var(--muted), var(--muted)) 0 0 / 0.5em 100% no-repeat, linear-gradient(var(--muted), var(--muted)) 0.7em 25% / 0.5em 75% no-repeat, linear-gradient(var(--muted), var(--muted)) 1.4em 50% / 0.5em 50% no-repeat; opacity: 0.8; }
310
341
  .k-read-marks { width: 1.5em; height: 0.75em; background: radial-gradient(circle at 25% 50%, var(--foreign) 0 0.3em, transparent 0.32em), radial-gradient(circle at 75% 50%, var(--runtime) 0 0.3em, transparent 0.32em); }
311
342
  /* behold#571: a tool's page. Its name (and logo where allowed) before the scenario, the replay's banner, the credit. */
312
- .k-brand { display: inline-flex; align-items: center; gap: 0.35em; margin-right: 0.8em; color: var(--fg); text-decoration: none; font-weight: 700; vertical-align: 0.05em; }
343
+ .k-brand { display: inline-flex; align-items: center; gap: var(--s1); margin-right: var(--s4); color: var(--fg); text-decoration: none; font-weight: 700; vertical-align: 0.05em; }
313
344
  .k-brand:hover .k-brand-name { text-decoration: underline; }
314
345
  .k-brand-logo { width: 1.25em; height: 1.25em; }
315
- .k-replay { margin: 0; padding: 0.2em 0.7em; padding-right: 16em; border-left: 4px solid var(--neutral); background: var(--surface-box); color: var(--fg); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
346
+ .k-replay { margin: 0; padding: 0.2em var(--s3); padding-right: 16em; border-left: 4px solid var(--neutral); background: var(--surface-box); color: var(--fg); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
316
347
  /* behold#571: "What is this?" and the theme, at the header's top right, outside the boxes that redraw. */
317
- #k-tools { position: absolute; top: 0.35em; right: 1em; z-index: 5; display: flex; gap: 0.6em; align-items: center; font-size: 1em; }
348
+ #k-tools { position: absolute; top: 0.35em; right: 1em; z-index: 5; display: flex; gap: var(--s3); align-items: center; font-size: 1em; }
318
349
  /* behold#571: the header's controls read as controls: one pill shape, full-size type. */
319
- .k-pill, .k-menu summary, .eh-switch { display: inline-flex; align-items: center; gap: 0.4em; height: 2em; padding: 0 0.85em; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-pane-a); color: var(--fg); font: 600 0.92em var(--font-ui); cursor: pointer; }
350
+ .k-pill, .k-menu summary, .eh-switch { display: inline-flex; align-items: center; gap: var(--s2); height: 2em; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-pane-a); color: var(--fg); font: 600 0.92em var(--font-ui); cursor: pointer; }
320
351
  .k-menu summary:hover, .eh-switch:hover { border-color: var(--focus); }
321
352
  .eh-switch input { accent-color: var(--pending); margin: 0; width: 1em; height: 1em; }
322
353
  .k-what { font: 600 0.92em var(--font-ui); color: var(--pending); background: transparent; border: 0; padding: 0.1em 0.2em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
323
- #k-what-pop { position: absolute; top: 1.8em; right: 0; width: min(34em, calc(100vw - 32px)); padding: 0.7em 0.9em; background: var(--surface-pane-b); color: var(--fg); border: 1px solid var(--focus);
354
+ #k-what-pop { position: absolute; top: 1.8em; right: 0; width: min(34em, calc(100vw - 32px)); padding: var(--s3) var(--s4); background: var(--surface-pane-b); color: var(--fg); border: 1px solid var(--focus);
324
355
  border-radius: 8px; box-shadow: 0 6px 24px color-mix(in srgb, var(--shadow) 70%, transparent); font-size: 1.15em; line-height: 1.45; }
325
356
  #k-what-pop[hidden] { display: none; }
326
357
  #k-what-pop p { margin: 0; }
327
- #k-what-pop .k-what-more { margin-top: 0.5em; }
358
+ #k-what-pop .k-what-more { margin-top: var(--s2); }
328
359
  #k-what-pop a { color: var(--focus); }
329
360
  .k-menu summary { list-style: none; gap: 0; }
330
361
  .k-menu summary::-webkit-details-marker { display: none; }
331
362
  .k-menu summary::after { content: " ▾"; }
332
363
  .k-menu[open] summary { border-color: var(--focus); }
333
- .k-menu-body { position: absolute; right: 0; top: 2.4em; padding: 0.5em; background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; }
364
+ .k-menu-body { position: absolute; right: 0; top: 2.4em; padding: var(--s2); background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; }
334
365
  .k-credit { color: var(--muted); }
335
366
  .k-credit-link { color: var(--fg); }
336
- .k-nograph-note { margin: 0; color: var(--muted); font-size: 0.88em; }
367
+ .k-nograph-note { margin: 0; color: var(--ink2); font-size: 0.88em; }
337
368
  /* With no graph to show, the graph pane folds away and the runs and the log take its width. */
338
369
  body.k-nograph #stage { grid-template-columns: minmax(15em, 22%) minmax(0, 1fr); }
339
370
  body.k-nograph #view-pane { display: none; }
@@ -350,29 +381,29 @@
350
381
  @media (max-width: 600px) {
351
382
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; font-size: 14px; }
352
383
  body { display: block; }
353
- #bar { display: block; padding: 0.5em 16px 0.6em; }
354
- #bar > * + * { margin-top: 0.45em; }
384
+ #bar { display: block; padding: var(--s2) 16px var(--s3); }
385
+ #bar > * + * { margin-top: var(--s2); }
355
386
  .k-left, .k-right { display: block; contain: none; }
356
- .k-left > * + *, .k-right > * + * { margin-top: 0.4em; }
387
+ .k-left > * + *, .k-right > * + * { margin-top: var(--s2); }
357
388
  .k-box { height: auto; max-height: none; overflow: visible; -webkit-mask-image: none !important; mask-image: none !important; }
358
389
  .k-box-empty { display: none; }
359
390
  .k-title { font-size: 1.4em; }
360
391
  .k-overline { flex-wrap: wrap; height: auto; overflow: visible; }
361
392
  .k-overline .k-strip { margin-left: 0; flex: 1 1 100%; }
362
- .k-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.1em; padding: 0.1em 0 0.1em 0.75em; }
393
+ .k-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.1em; padding: 0.1em 0 0.1em var(--s3); }
363
394
  .k-row-empty { display: none; }
364
395
  .k-row-label { padding-top: 0; }
365
- .k-nbar { left: 0.75em; right: 0; }
396
+ .k-nbar { left: var(--s3); right: 0; }
366
397
  .k-row-next { padding-bottom: calc(0.45em + 4px); }
367
- #views { flex-wrap: wrap; gap: 0.3em 0.9em; }
398
+ #views { flex-wrap: wrap; gap: var(--s1) var(--s4); }
368
399
  .k-strip { flex-wrap: wrap; }
369
400
  .k-right > .k-cycle { padding: 0; }
370
401
  #k-read { padding: 0.2em 16px; }
371
402
  .k-read-head { position: static; }
372
- .k-read-rows { position: static; grid-template-columns: 1fr; border-radius: 6px; box-shadow: none; margin-bottom: 0.3em; }
373
- #views { padding-right: 1em; }
374
- .k-replay { padding-right: 0.7em; white-space: normal; }
375
- #k-tools { position: static; justify-content: flex-end; flex-wrap: wrap; row-gap: 0.4em; margin: 0; padding: 0.4em 16px 0; }
403
+ .k-read-rows { position: static; grid-template-columns: 1fr; border-radius: 6px; box-shadow: none; margin-bottom: var(--s1); }
404
+ #views { padding-right: var(--s4); }
405
+ .k-replay { padding-right: var(--s3); white-space: normal; }
406
+ #k-tools { position: static; justify-content: flex-end; flex-wrap: wrap; row-gap: var(--s2); margin: 0; padding: var(--s2) 16px 0; }
376
407
  .k-theme-n { display: none; }
377
408
  .k-what { white-space: nowrap; }
378
409
  #k-what-pop { right: 16px; left: 16px; width: auto; top: 2.2em; }
@@ -382,15 +413,15 @@
382
413
  #view-pane:has(#k-read.k-read-open) { height: auto; }
383
414
  #view-pane:has(#k-read.k-read-open) #view { height: 56vh; flex: none; }
384
415
  body.k-nograph #view-pane { display: none; }
385
- #k-runs-toggle { order: 2; display: block; margin: 0.6em 16px; padding: 0.6em 1em; font: 600 1em var(--font-ui); color: var(--fg); background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; text-align: left; }
416
+ #k-runs-toggle { order: 2; display: block; margin: var(--s3) 16px; padding: var(--s3) var(--s4); font: 600 1em var(--font-ui); color: var(--fg); background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; text-align: left; }
386
417
  #k-runs-toggle::after { content: " ▸"; }
387
418
  body.k-runs-open #k-runs-toggle::after { content: " ▾"; }
388
419
  #runs-side { order: 3; display: none; max-height: 50vh; border-radius: 0; }
389
420
  #runs-main { order: 4; display: none; height: 85vh; border-radius: 0; }
390
421
  body.k-runs-open #runs-side, body.k-runs-open #runs-main { display: flex; flex-direction: column; }
391
422
  body.k-runs-open #runs-side { display: block; }
392
- .r-log { margin-left: 0.4em; max-height: 60vh; }
393
- .r-log-line { grid-template-columns: 2.4em 1fr; gap: 0.5em; }
423
+ .r-log { margin-left: var(--s2); max-height: 60vh; }
424
+ .r-log-line { grid-template-columns: 2.4em 1fr; gap: var(--s2); }
394
425
  .r-ann-note { grid-column: 1 / -1; }
395
426
  }
396
427
 
@@ -403,7 +434,7 @@
403
434
  * the layout above, one click away.
404
435
  */
405
436
  .k-modes { display: inline-flex; height: 2em; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; background: var(--surface-pane-a); }
406
- .k-mode { font: 600 0.92em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: 0 1.1em; cursor: pointer; }
437
+ .k-mode { font: 600 0.92em var(--font-ui); color: var(--muted); background: transparent; border: 0; padding: 0 var(--s5); cursor: pointer; }
407
438
  .k-mode + .k-mode { border-left: 1px solid var(--rule); }
408
439
  .k-mode:hover { color: var(--fg); }
409
440
  .k-mode-on, .k-mode-on:hover { color: var(--bg); background: var(--pending); }
@@ -416,30 +447,30 @@
416
447
  body.k-watch #view-pane { position: absolute; inset: 0 5px 5px; border-radius: 8px; overflow: hidden; background: var(--bg); }
417
448
  body.k-watch #view { height: 100%; }
418
449
  /* The header, one line: the scenario's place, the steps, the delivery numbers. */
419
- body.k-watch #bar { display: flex; align-items: center; gap: 0.5em 1.2em; min-height: 2.6em; padding: 0.35em 1em; padding-right: calc(var(--k-tools-w, 30em) + 2em); }
420
- .k-w-place { display: flex; align-items: baseline; gap: 0.7em; flex: none; white-space: nowrap; }
450
+ body.k-watch #bar { display: flex; align-items: center; gap: var(--s2) var(--s5); min-height: 2.6em; padding: var(--s1) var(--s4); padding-right: calc(var(--k-tools-w, 30em) + 2em); }
451
+ .k-w-place { display: flex; align-items: baseline; gap: var(--s3); flex: none; white-space: nowrap; }
421
452
  body.k-watch #bar .k-strip { flex: none; }
422
453
  .k-w-place .k-brand { margin: 0; }
423
- .k-w-kicker { font: 600 0.78em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
454
+ .k-w-kicker { font: 600 0.8em var(--font-ui); color: var(--muted); }
424
455
  .k-w-dora { margin-left: auto; color: var(--muted); font-size: 0.88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
425
456
  .k-w-dora b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
426
457
  .k-w-held { color: var(--foreign); font-size: 0.85em; white-space: nowrap; }
427
- .k-w-held button { font: inherit; color: var(--pending); background: transparent; border: 0; padding: 0 0 0 0.4em; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
458
+ .k-w-held button { font: inherit; color: var(--pending); background: transparent; border: 0; padding: 0 0 0 var(--s2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
428
459
  /* The caption: the title, what changes, the step. One of the two beats leads. */
429
- #k-caption { position: absolute; left: 5px; right: 5px; bottom: 5px; display: grid; grid-template-rows: auto calc(2 * 1.25em * 1.3) calc(2 * 1.25em * 1.3); gap: 0.25em; padding: 0.7em 1.4em 0.8em;
460
+ #k-caption { position: absolute; left: 5px; right: 5px; bottom: 5px; display: grid; grid-template-rows: auto calc(2 * 1.25em * 1.3) calc(2 * 1.25em * 1.3); gap: 0.25em; padding: var(--s3) 1.4em var(--s4);
430
461
  background: var(--surface-pane-b); border-top: 1px solid var(--rule); border-radius: 0 0 8px 8px; box-shadow: 0 -10px 30px color-mix(in srgb, var(--bg) 70%, transparent); }
431
- .k-cap-top { display: flex; align-items: baseline; gap: 0.8em; min-width: 0; }
462
+ .k-cap-top { display: flex; align-items: baseline; gap: var(--s4); min-width: 0; }
432
463
  .k-cap-title { margin: 0; font-size: 1.55em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
433
464
  .k-cap-title .k-brand { vertical-align: 0; }
434
- .k-cap-next { margin-left: auto; color: var(--muted); font-size: 0.92em; white-space: nowrap; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
465
+ .k-cap-next { margin-left: auto; color: var(--ink2); font-size: 0.92em; white-space: nowrap; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
435
466
  .k-cap-next .k-action { font-family: var(--font-mono); color: var(--fg); }
436
467
  .k-cap-next { position: relative; padding-bottom: 6px; }
437
468
  .k-cap-next .k-nbar { left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--rule) 55%, transparent); }
438
469
  /* behold#571: the caption's beats are the lead block's rows: the label in a fixed column, the words beside it (two lines, at most 72ch), a rail down the left; only the step's rail takes its state's colour (theme.js barInks). */
439
- .k-cap-row { margin: 0; display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: 0.8em; align-items: start; align-self: stretch; padding-left: 0.75em; line-height: 1.25; font-size: 1em; color: color-mix(in srgb, var(--fg) 78%, var(--muted)); box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
470
+ .k-cap-row { margin: 0; display: grid; grid-template-columns: var(--k-label-w) minmax(0, 1fr); column-gap: var(--s4); align-items: start; align-self: stretch; padding-left: var(--s3); line-height: 1.25; font-size: 1em; color: var(--ink2); box-shadow: inset 3px 0 0 var(--bar, var(--bar-neutral)); }
440
471
  .k-cap-row:empty { box-shadow: none; }
441
472
  .k-cap-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 72ch; text-wrap: pretty; }
442
- .k-cap-label { font: 600 0.66rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0.35em; }
473
+ .k-cap-label { font: 600 0.8rem/1.3 var(--font-ui); color: var(--muted); padding-top: var(--s1); }
443
474
  .k-cap-step { --bar: var(--bar-pending); box-shadow: inset 5px 0 0 var(--bar); }
444
475
  .k-cap-step .k-cap-label { color: var(--bar); }
445
476
  .k-cap-step.k-tone-wait { --bar: var(--bar-foreign); }
@@ -448,16 +479,16 @@
448
479
  .k-cap-step.k-tone-idle { --bar: var(--bar-neutral); }
449
480
  /* The beat that leads is larger and full ink; the other steps back. Both keep their rows, so nothing moves. */
450
481
  .k-cap-lead { font-size: 1.3em; color: var(--fg); font-weight: 600; }
451
- .k-cap-lead .k-cap-label { padding-top: 0.6em; }
482
+ .k-cap-lead .k-cap-label { padding-top: var(--s3); }
452
483
  /* The approval, on the held wave's box. */
453
484
  .k-over { position: absolute; left: 0; top: 0; visibility: hidden; }
454
485
  .k-over.k-placed { visibility: visible; }
455
486
  @media (prefers-reduced-motion: no-preference) { .k-over.k-placed { transition: opacity 0.4s; } }
456
- #k-callout { width: min(30em, 40vw); padding: 0.8em 1em 0.9em; background: color-mix(in srgb, var(--foreign) 6%, var(--surface-box)); border: 2px solid var(--bar-foreign); border-radius: 10px;
487
+ #k-callout { width: min(30em, 40vw); padding: var(--s4) var(--s4) var(--s4); background: color-mix(in srgb, var(--foreign) 6%, var(--surface-box)); border: 2px solid var(--bar-foreign); border-radius: 10px;
457
488
  box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--foreign) 12%, transparent); }
458
- .k-call-word { margin: 0; font: 700 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--foreign); }
489
+ .k-call-word { margin: 0; font: 700 0.8em var(--font-ui); color: var(--foreign); }
459
490
  .k-call-head { margin: 0.15em 0 0.1em; font: 700 1.15em var(--font-mono); color: var(--fg); }
460
- .k-call-nums { margin: 0 0 0.45em; color: var(--muted); font-size: 0.88em; }
491
+ .k-call-nums { margin: 0 0 var(--s2); color: var(--muted); font-size: 0.88em; }
461
492
  #k-callout .k-ap-row { font-size: 0.92em; }
462
493
  #k-callout .k-approve-gloss { font-size: 1em; }
463
494
  .k-notch { position: absolute; width: 14px; height: 14px; background: inherit; border: inherit; transform: rotate(45deg); top: 1.4em; }
@@ -466,12 +497,12 @@
466
497
  .k-side-below > .k-notch { display: none; }
467
498
  /* The running job's log, a drawer from the active wave's box: folded to its last lines, open on a hover or a click. */
468
499
  #k-drawer { width: min(34em, 46vw); background: var(--surface-pane-a); border: 2px solid color-mix(in srgb, var(--pending) 80%, var(--fg)); border-radius: 10px; box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent); display: flex; flex-direction: column; }
469
- .k-drawer-head { display: flex; align-items: center; gap: 0.55em; width: 100%; padding: 0.55em 0.9em 0.35em; background: transparent; border: 0; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
500
+ .k-drawer-head { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3) var(--s4) var(--s1); background: transparent; border: 0; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
470
501
  .k-drawer-head .r-icon { margin: 0; }
471
502
  .k-drawer-job { font: 700 1em var(--font-mono); }
472
503
  .k-drawer-nums { color: var(--muted); font-size: 0.85em; }
473
504
  .k-drawer-more { margin-left: auto; color: var(--pending); font-size: 0.82em; white-space: nowrap; }
474
- .k-drawer-tail { margin: 0 0.7em 0.7em; padding: 0.45em 0.7em; background: var(--well); border-radius: 6px; font: 0.86em/1.45 var(--font-mono); min-height: calc(2 * 1.45em + 0.9em); }
505
+ .k-drawer-tail { margin: 0 var(--s3) var(--s3); padding: var(--s2) var(--s3); background: var(--well); border-radius: 6px; font: 0.86em/1.45 var(--font-mono); min-height: calc(2 * 1.45em + 0.9em); }
475
506
  .k-drawer-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
476
507
  .k-drawer-line:last-child { color: var(--fg); }
477
508
  .k-drawer-line.k-drawer-quiet { color: var(--muted); font-family: var(--font-ui); }
@@ -485,25 +516,25 @@
485
516
  #k-traces { border-top: 1px solid var(--rule); max-height: 30vh; overflow: auto; }
486
517
  #k-drawer:not(.k-open) #k-traces { display: none; }
487
518
  #k-drawer.k-open:has(#k-traces:not(:empty)) .k-drawer-body { height: min(40vh, 26em); border-radius: 0; }
488
- #k-drawer.k-open #k-traces { border-radius: 0 0 10px 10px; padding-bottom: 0.4em; }
519
+ #k-drawer.k-open #k-traces { border-radius: 0 0 10px 10px; padding-bottom: var(--s2); }
489
520
  /* Each wave's numbers, on its box. */
490
- .k-badge { position: absolute; left: 0; top: 0; padding: 0.15em 0.65em; border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); color: var(--fg); font-size: 0.86em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; visibility: hidden; }
521
+ .k-badge { position: absolute; left: 0; top: 0; padding: 0.15em var(--s3); border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); color: var(--fg); font-size: 0.86em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; visibility: hidden; }
491
522
  .k-badge.k-placed { visibility: visible; }
492
523
  /* The result, at the end of the run. */
493
- #k-result { width: min(30em, 36vw); padding: 0.9em 1.2em 1em; background: color-mix(in srgb, var(--managed) 8%, var(--surface-box)); border: 2px solid var(--bar-managed); border-radius: 12px;
524
+ #k-result { width: min(30em, 36vw); padding: var(--s4) var(--s5) var(--s4); background: color-mix(in srgb, var(--managed) 8%, var(--surface-box)); border: 2px solid var(--bar-managed); border-radius: 12px;
494
525
  box-shadow: 0 10px 34px color-mix(in srgb, var(--shadow) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--managed) 12%, transparent); }
495
526
  #k-result[hidden], #k-callout[hidden], #k-drawer[hidden] { display: none; }
496
527
  /* behold#571: a wave's trace, one click from its numbers: its badge, the result card's bars, the drawer. */
497
528
  .k-badge.k-badge-trace { pointer-events: auto; cursor: pointer; border-color: color-mix(in srgb, var(--pending) 60%, var(--rule)); }
498
529
  .k-badge.k-badge-trace:hover { border-color: var(--pending); background: var(--active); }
499
- .k-badge-go { margin-left: 0.55em; color: var(--pending); font-weight: 600; }
530
+ .k-badge-go { margin-left: var(--s3); color: var(--pending); font-weight: 600; }
500
531
  .k-badge-go::after, .k-wf-go::after { content: " ›"; }
501
532
  #k-drawer.k-trace-only .k-drawer-tail, #k-drawer.k-trace-only .k-drawer-body { display: none; }
502
533
  #k-drawer.k-trace-only #k-traces { max-height: 60vh; border-top: 1px solid var(--rule); }
503
- #k-drawer.k-trace-only #k-traces:empty::before { content: "Reading the trace from Tempo…"; display: block; padding: 0.8em 1em; color: var(--muted); }
534
+ #k-drawer.k-trace-only #k-traces:empty::before { content: "Reading the trace from Tempo…"; display: block; padding: var(--s4) var(--s4); color: var(--muted); }
504
535
  #k-drawer.k-trace-only #k-traces:empty { display: block; }
505
- .k-wf { margin-top: 0.7em; padding-top: 0.5em; border-top: 1px solid var(--rule); display: grid; gap: 0.25em; }
506
- .k-wf-row { display: grid; grid-template-columns: 4.2em minmax(6em, 1fr) auto auto; align-items: center; gap: 0.6em; width: 100%; padding: 0.2em 0.3em; border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
536
+ .k-wf { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); display: grid; gap: 0.25em; }
537
+ .k-wf-row { display: grid; grid-template-columns: 4.2em minmax(6em, 1fr) auto auto; align-items: center; gap: var(--s3); width: 100%; padding: 0.2em var(--s1); border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
507
538
  .k-wf-row:not(.k-wf-plain):hover, .k-wf-row:focus-visible { background: var(--active); }
508
539
  .k-wf-row.k-wf-plain { grid-template-columns: 4.2em minmax(0, 1fr); cursor: default; }
509
540
  .k-wf-words { font-size: 0.9em; font-variant-numeric: tabular-nums; }
@@ -516,28 +547,28 @@
516
547
  .k-wf-apply { background: color-mix(in srgb, var(--managed) 75%, transparent); }
517
548
  .k-wf-held { background: repeating-linear-gradient(135deg, var(--foreign) 0 4px, color-mix(in srgb, var(--foreign) 45%, transparent) 4px 8px); }
518
549
  .k-wf-gate, .k-wf-report, .k-wf-upload { background: color-mix(in srgb, var(--muted) 70%, transparent); }
519
- .k-wf-key { display: flex; flex-wrap: wrap; gap: 0.2em 0.9em; margin: 0.2em 0 0; color: var(--muted); font-size: 0.78em; }
520
- .k-wf-key span { display: inline-flex; align-items: center; gap: 0.3em; }
550
+ .k-wf-key { display: flex; flex-wrap: wrap; gap: 0.2em var(--s4); margin: 0.2em 0 0; color: var(--muted); font-size: 0.8em; }
551
+ .k-wf-key span { display: inline-flex; align-items: center; gap: var(--s1); }
521
552
  .k-wf-sw { display: inline-block; width: 1.2em; height: 0.55em; border-radius: 2px; }
522
553
  .k-result-head { margin: 0 0 0.2em; font: 700 1.5em var(--font-ui); color: var(--managed); }
523
- .k-result-line { margin: 0 0 0.6em; font-size: 1.12em; line-height: 1.35; color: var(--fg); }
524
- .k-result-counts { list-style: none; margin: 0 0 0.6em; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35em 0.5em; }
525
- .k-result-counts li { padding: 0.15em 0.65em; border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); font-size: 0.95em; font-variant-numeric: tabular-nums; }
554
+ .k-result-line { margin: 0 0 var(--s3); font-size: 1.12em; line-height: 1.35; color: var(--fg); }
555
+ .k-result-counts { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
556
+ .k-result-counts li { padding: 0.15em var(--s3); border-radius: 999px; background: var(--surface-box); border: 1px solid var(--rule); font-size: 0.95em; font-variant-numeric: tabular-nums; }
526
557
  .k-result-counts li:first-child { border-color: var(--managed); font-weight: 600; }
527
- .k-result-waves { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2em 0.9em; margin: 0; padding-top: 0.5em; border-top: 1px solid var(--rule); }
558
+ .k-result-waves { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2em var(--s4); margin: 0; padding-top: var(--s2); border-top: 1px solid var(--rule); }
528
559
  .k-result-waves dt { font: 600 0.9em var(--font-mono); color: var(--muted); }
529
560
  .k-result-waves dd { margin: 0; font-variant-numeric: tabular-nums; }
530
561
  .k-result-waves dd.k-result-soon { color: var(--muted); font-style: italic; }
531
- @media (max-width: 900px) and (min-width: 601px) { body.k-watch #bar { padding-right: 1em; flex-wrap: wrap; } body.k-watch #k-head { display: flex; flex-direction: column-reverse; } body.k-watch #k-tools { position: static; justify-content: flex-end; padding: 0.4em 1em 0; } }
562
+ @media (max-width: 900px) and (min-width: 601px) { body.k-watch #bar { padding-right: var(--s4); flex-wrap: wrap; } body.k-watch #k-head { display: flex; flex-direction: column-reverse; } body.k-watch #k-tools { position: static; justify-content: flex-end; padding: var(--s2) var(--s4) 0; } }
532
563
  .k-w-dora-foot { display: none; }
533
564
  /* A phone: a short header, the graph, then the step and the approval under it; the rest stacks below, in the page's flow. */
534
565
  @media (max-width: 600px) {
535
- body.k-watch #bar { display: flex; flex-wrap: wrap; gap: 0.2em 0.8em; padding: 0.3em 16px 0.4em; min-height: 0; }
566
+ body.k-watch #bar { display: flex; flex-wrap: wrap; gap: 0.2em var(--s4); padding: var(--s1) 16px var(--s2); min-height: 0; }
536
567
  body.k-watch #bar .k-strip, body.k-watch #bar .k-w-dora { display: none; }
537
568
  body.k-watch #stage { display: flex; flex-direction: column; padding: 0; }
538
569
  body.k-watch #view-pane { position: relative; inset: auto; order: 1; height: 40vh; border-radius: 0; }
539
- body.k-watch #k-watch { position: static; display: flex; flex-direction: column; order: 2; pointer-events: auto; gap: 0.6em; padding: 0 0 1.2em; }
540
- body.k-watch #k-caption { position: static; order: 1; display: flex; flex-direction: column; gap: 0.35em; border-radius: 0; box-shadow: none; padding: 0.6em 16px 0.7em; }
570
+ body.k-watch #k-watch { position: static; display: flex; flex-direction: column; order: 2; pointer-events: auto; gap: var(--s3); padding: 0 0 var(--s5); }
571
+ body.k-watch #k-caption { position: static; order: 1; display: flex; flex-direction: column; gap: var(--s1); border-radius: 0; box-shadow: none; padding: var(--s3) 16px var(--s3); }
541
572
  .k-cap-top { order: 1; flex-wrap: wrap; }
542
573
  .k-cap-step { order: 2; } .k-cap-changes { order: 3; }
543
574
  .k-cap-title { white-space: normal; font-size: 1.12em; }
@@ -547,11 +578,28 @@
547
578
  .k-cap-lead { font-size: 1.12em; }
548
579
  .k-over, #k-result { position: static; visibility: visible; width: auto; margin: 0 16px; max-height: none; transform: none !important; }
549
580
  #k-callout, #k-drawer, #k-result { width: auto; }
550
- #k-callout { order: 2; padding: 0.6em 0.8em; } #k-drawer { order: 3; } #k-result { order: 4; }
581
+ #k-callout { order: 2; padding: var(--s3) var(--s4); } #k-drawer { order: 3; } #k-result { order: 4; }
551
582
  #k-callout .k-ap-row { grid-template-columns: 1em 5.4em minmax(0, 1fr); }
552
583
  .k-notch, .k-badge { display: none; }
553
584
  .k-w-dora-foot { display: block; order: 5; margin: 0 16px; color: var(--muted); font-size: 0.9em; }
554
585
  }
586
+ /*
587
+ * behold#725: the readability pass.
588
+ * Labels are sentence case. Some of their words come from kiosk.js in
589
+ * lower case (the step words, the scenario kicker), since the same words
590
+ * run inside sentences elsewhere, so the label raises its first letter.
591
+ */
592
+ .k-row-label::first-letter, .k-cap-label::first-letter, .k-call-word::first-letter, .k-kicker::first-letter { text-transform: uppercase; }
593
+ /* One focus ring for every control, drawn for the keyboard only, in the focus colour held at 4.5:1 (theme.js frameInks). */
594
+ :focus-visible { outline: 2px solid var(--frame-focus, var(--focus)); outline-offset: 2px; }
595
+ /* Numbers in the sans keep one width a digit, so a count or a clock doesn't jitter as it ticks. */
596
+ .r-run-meta, .r-dur, .r-head-meta, .r-job-needs, .k-w-dora, .k-w-held, .k-w-dora-foot, .k-cap-next, .k-drawer-nums, .k-call-nums, .k-ap-row, .k-facts, .k-view-note { font-variant-numeric: tabular-nums; }
597
+ /* The stopped-updating cue (kiosk.js, web/kiosk-link.js): over the header, in the page's flow, so a phone shows it too. */
598
+ .k-link { margin: 0; padding: var(--s1) var(--s4); background: var(--bg); box-shadow: inset 4px 0 0 var(--bar-foreign); color: var(--frame-foreign, var(--foreign)); font: 600 0.92em/1.4 var(--font-ui); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
599
+ .k-link[hidden] { display: none; }
600
+ @media (max-width: 600px) { .k-link { padding: var(--s1) 16px; } }
601
+ /* web/motion.js marks the page while its tab is hidden: every animation holds where it is. */
602
+ :root[data-motion="paused"] *, :root[data-motion="paused"] *::before, :root[data-motion="paused"] *::after { animation-play-state: paused !important; }
555
603
  </style>
556
604
  </head>
557
605
  <body>
@@ -598,7 +646,10 @@
598
646
  import { initTheme, KIOSK_THEME, getThemeName, onThemeChange } from "/theme.js";
599
647
  import { startKiosk } from "/kiosk.js";
600
648
  import { pageTool } from "/kiosk-vendor.js";
649
+ import { installMotion } from "/motion.js";
601
650
  initTheme(KIOSK_THEME);
651
+ // behold#725: every looping animation holds while the tab is hidden.
652
+ installMotion();
602
653
  // behold#571: the theme control names the theme in use.
603
654
  const themeName = document.getElementById("k-theme-name");
604
655
  const nameTheme = () => { if (!themeName) return; const n = document.createElement("span"); n.className = "k-theme-n"; n.textContent = `: ${getThemeName()}`; themeName.replaceChildren("Theme", n); };