@osdlc/wayfinder 0.0.0-stage → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +231 -0
  2. package/CONTRIBUTING.md +62 -0
  3. package/LICENSE-APACHE +202 -0
  4. package/LICENSE-MIT +21 -0
  5. package/README.md +507 -2
  6. package/SECURITY.md +44 -0
  7. package/bin/way.js +18 -0
  8. package/dist/app.d.ts +24 -0
  9. package/dist/app.js +24 -0
  10. package/dist/args.d.ts +44 -0
  11. package/dist/args.js +93 -0
  12. package/dist/cache.d.ts +7 -0
  13. package/dist/cache.js +15 -0
  14. package/dist/catalog.d.ts +38 -0
  15. package/dist/catalog.js +61 -0
  16. package/dist/clean-command.d.ts +43 -0
  17. package/dist/clean-command.js +274 -0
  18. package/dist/cli.d.ts +76 -0
  19. package/dist/cli.js +612 -0
  20. package/dist/config-command.d.ts +52 -0
  21. package/dist/config-command.js +342 -0
  22. package/dist/config.d.ts +367 -0
  23. package/dist/config.js +700 -0
  24. package/dist/devlink.d.ts +14 -0
  25. package/dist/devlink.js +30 -0
  26. package/dist/groups.d.ts +34 -0
  27. package/dist/groups.js +38 -0
  28. package/dist/guide.d.ts +32 -0
  29. package/dist/guide.js +411 -0
  30. package/dist/http.d.ts +22 -0
  31. package/dist/http.js +149 -0
  32. package/dist/origin-owner.d.ts +14 -0
  33. package/dist/origin-owner.js +69 -0
  34. package/dist/page.d.ts +15 -0
  35. package/dist/page.js +58 -0
  36. package/dist/providers-command.d.ts +40 -0
  37. package/dist/providers-command.js +132 -0
  38. package/dist/serve.d.ts +97 -0
  39. package/dist/serve.js +678 -0
  40. package/dist/tools.d.ts +46 -0
  41. package/dist/tools.js +102 -0
  42. package/dist/trust-command.d.ts +33 -0
  43. package/dist/trust-command.js +221 -0
  44. package/dist/trust-store.d.ts +18 -0
  45. package/dist/trust-store.js +46 -0
  46. package/dist/tui.d.ts +178 -0
  47. package/dist/tui.js +846 -0
  48. package/dist/web/main.js +2315 -0
  49. package/dist/web/page.html +110 -0
  50. package/dist/web/styles.css +1514 -0
  51. package/dist/xdg.d.ts +10 -0
  52. package/dist/xdg.js +17 -0
  53. package/package.json +72 -3
@@ -0,0 +1,1514 @@
1
+ /* The page's colour tokens, under the --d-* names. It is a standalone page
2
+ with no shell, so the values are inlined here. */
3
+ :root {
4
+ color-scheme: light dark;
5
+ --d-bg-base: #f8f8fa;
6
+ --d-bg-surface: #ffffff;
7
+ --d-bg-hover: #ededf1;
8
+ --d-text-primary: #1a1a1c;
9
+ --d-text-secondary: #45454b;
10
+ --d-text-muted: #585860;
11
+ --d-border: #e0e0e6;
12
+ --d-border-subtle: #ebebf0;
13
+ --d-accent: #1d59d8;
14
+ --d-accent-hover: #1a4fbe;
15
+ /* The label laid ON an accent fill. It follows the ground scale rather
16
+ than being a fixed white, so a pressed control reads dark-on-hue in
17
+ dark mode — white on the dark accent is 2.56:1 and fails AA. */
18
+ --d-accent-fg: #ffffff;
19
+ --d-status-success: #188a46;
20
+ --d-status-error: #d70015;
21
+ --d-status-warning: #b06a00;
22
+ --d-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
23
+ --d-radius-xs: 4px;
24
+ --d-radius-sm: 6px;
25
+ --d-radius-md: 10px;
26
+ --d-radius-lg: 14px;
27
+ /* Theme-independent: a pill is a shape, not a colour, so it is declared once. */
28
+ --d-radius-pill: 999px;
29
+ /* The match highlight is the accent at low strength, not a fifth hue. One
30
+ declaration serves both themes because it mixes from --d-accent. */
31
+ --d-accent-wash: color-mix(in srgb, var(--d-accent) 18%, transparent);
32
+ --head-h: 28px; /* group-header height; the sticky stack counts in these */
33
+ --chrome-h: 0px; /* measured at runtime — see measureChrome() */
34
+ }
35
+ /* Dark is declared twice, on purpose. The media query is the SYSTEM default,
36
+ which is what applies while `data-theme` is absent; the attribute selector
37
+ is the explicit choice, which has to win in both directions — so light must
38
+ also be reachable on a machine set to dark. Defining the dark palette only
39
+ inside the media query would make "Light" a no-op there. The two blocks
40
+ must stay value-identical. */
41
+ :root[data-theme='dark'],
42
+ :root:not([data-theme='light']) {
43
+ color-scheme: light dark;
44
+ }
45
+ @media (prefers-color-scheme: dark) {
46
+ :root:not([data-theme='light']) {
47
+ --d-bg-base: #1a1b20;
48
+ --d-bg-surface: #1d1e25;
49
+ --d-bg-hover: #31323c;
50
+ --d-text-primary: #eaeaee;
51
+ --d-text-secondary: #bcbcc4;
52
+ --d-text-muted: #a4a5ae;
53
+ --d-border: #31323c;
54
+ --d-border-subtle: #272831;
55
+ --d-accent: #6a9bff;
56
+ --d-accent-hover: #85adff;
57
+ --d-accent-fg: #24252d;
58
+ --d-status-success: #3fb27f;
59
+ --d-status-error: #f7768e;
60
+ --d-status-warning: #e0af68;
61
+ }
62
+ }
63
+ :root[data-theme='dark'] {
64
+ --d-bg-base: #1a1b20;
65
+ --d-bg-surface: #1d1e25;
66
+ --d-bg-hover: #31323c;
67
+ --d-text-primary: #eaeaee;
68
+ --d-text-secondary: #bcbcc4;
69
+ --d-text-muted: #a4a5ae;
70
+ --d-border: #31323c;
71
+ --d-border-subtle: #272831;
72
+ --d-accent: #6a9bff;
73
+ --d-accent-hover: #85adff;
74
+ --d-accent-fg: #24252d;
75
+ --d-status-success: #3fb27f;
76
+ --d-status-error: #f7768e;
77
+ --d-status-warning: #e0af68;
78
+ }
79
+ :root[data-theme='light'] {
80
+ color-scheme: light;
81
+ }
82
+ :root[data-theme='dark'] {
83
+ color-scheme: dark;
84
+ }
85
+ * {
86
+ box-sizing: border-box;
87
+ }
88
+ /* Text for assistive tech only. It stays IN the accessibility tree — clipped
89
+ to a pixel rather than `display: none` — which is what gives an element
90
+ whose whole meaning is an icon a name to announce. */
91
+ .sr {
92
+ position: absolute;
93
+ width: 1px;
94
+ height: 1px;
95
+ overflow: hidden;
96
+ clip-path: inset(50%);
97
+ white-space: nowrap;
98
+ }
99
+ body {
100
+ margin: 0;
101
+ background: var(--d-bg-surface);
102
+ color: var(--d-text-primary);
103
+ font:
104
+ 13px/1.5 system-ui,
105
+ -apple-system,
106
+ 'Segoe UI',
107
+ sans-serif;
108
+ }
109
+ /* Status, search box and tabs travel together: the group headers
110
+ stick BELOW this block, and they need one measurable height to offset by. */
111
+ #chrome {
112
+ position: sticky;
113
+ top: 0;
114
+ z-index: 100;
115
+ background: var(--d-bg-base);
116
+ border-bottom: 1px solid var(--d-border);
117
+ }
118
+ header {
119
+ padding: 12px 16px 0;
120
+ }
121
+ /* Wraps rather than crushes: below about 1100px the clusters drop to a second
122
+ line instead of squeezing the search field down to a few characters. */
123
+ .searchrow {
124
+ display: flex;
125
+ gap: 8px;
126
+ align-items: center;
127
+ flex-wrap: wrap;
128
+ }
129
+ /* The only flexible item in the row, so every pixel the toolbar does not need
130
+ goes to the query. It is also the positioning context for the inline
131
+ Fuzzy/Exact toggle, which sits against the field's right inside edge. */
132
+ /* The min-width is what decides when the row wraps. 260 is the short
133
+ placeholder plus the inline toggle's 112px reserve, so the field never
134
+ shows a clipped word: below that the clusters drop to a second line
135
+ instead. */
136
+ .searchbox {
137
+ position: relative;
138
+ display: flex;
139
+ flex: 1;
140
+ min-width: 260px;
141
+ }
142
+ #q {
143
+ flex: 1;
144
+ font: 13px/1.4 var(--d-font-mono);
145
+ padding: 9px 12px;
146
+ /* An input's default intrinsic width plus the 112px reserve below is a
147
+ min-content width of about 290px, which is more than the box above will
148
+ ever be — and a flex item's default `min-width: auto` refuses to go below
149
+ it. The field then painted OUT of its own box, over the Scope cluster
150
+ beside it. The box's min-width is what decides when the row wraps; the
151
+ field just has to fit whatever the box turns out to be. */
152
+ min-width: 0;
153
+ /* Room for the inline mode toggle. It renders 94px wide and is inset 6px
154
+ from the field's right edge, so 112px leaves about 12px of clear space
155
+ and text never slides under it. Measured, not guessed: change the
156
+ toggle's font or padding and this number has to be re-measured. */
157
+ padding-right: 112px;
158
+ background: var(--d-bg-surface);
159
+ color: var(--d-text-primary);
160
+ border: 1px solid var(--d-border);
161
+ border-radius: var(--d-radius-sm);
162
+ }
163
+ #q:focus {
164
+ outline: 2px solid var(--d-accent);
165
+ outline-offset: -1px;
166
+ }
167
+
168
+ /* Groups of related controls, named quietly. The label is chrome, not a
169
+ control: a span, so it takes no tab stop and announces nothing. */
170
+ .cluster {
171
+ display: flex;
172
+ gap: 6px;
173
+ align-items: center;
174
+ padding-left: 10px;
175
+ border-left: 1px solid var(--d-border-subtle);
176
+ }
177
+ .cluster-label {
178
+ font: 600 10px/1 system-ui;
179
+ letter-spacing: 0.06em;
180
+ text-transform: uppercase;
181
+ color: var(--d-text-muted);
182
+ user-select: none;
183
+ }
184
+
185
+ /* Only the search box had a focus style, so tabbing through the toolbar put
186
+ focus on buttons that gave no sign of having it — the controls looked
187
+ skipped rather than merely unmarked. One visible ring, on everything
188
+ focusable, offset outward so it is not swallowed by the button's own
189
+ border. `:focus-visible` rather than `:focus` keeps it off a mouse click. */
190
+ :where(button, input, [tabindex]):focus-visible {
191
+ outline: 2px solid var(--d-accent);
192
+ outline-offset: 2px;
193
+ border-radius: var(--d-radius-sm);
194
+ }
195
+ /* A tab is flush against its neighbours, so its ring sits inside instead. */
196
+ .tabs button[data-runner]:focus-visible {
197
+ outline-offset: -2px;
198
+ }
199
+ /* `overflow: visible`, so the outward focus ring on a segment's button is not
200
+ clipped away by the group box. Visible overflow means the group's own
201
+ rounding no longer clips its buttons, so the end buttons round themselves
202
+ below — otherwise a square button corner would sit in a rounded group. */
203
+ .seg {
204
+ display: flex;
205
+ border: 1px solid var(--d-border);
206
+ border-radius: var(--d-radius-sm);
207
+ overflow: visible;
208
+ }
209
+ .seg button {
210
+ font: 12px/1 system-ui;
211
+ padding: 9px 11px;
212
+ border: 0;
213
+ cursor: pointer;
214
+ background: var(--d-bg-surface);
215
+ color: var(--d-text-secondary);
216
+ }
217
+ .seg button:first-child {
218
+ border-radius: var(--d-radius-sm) 0 0 var(--d-radius-sm);
219
+ }
220
+ .seg button:last-child {
221
+ border-radius: 0 var(--d-radius-sm) var(--d-radius-sm) 0;
222
+ }
223
+ .seg button[aria-pressed='true'] {
224
+ background: var(--d-accent);
225
+ color: var(--d-accent-fg);
226
+ }
227
+ /* How a query matches belongs to the query, so the toggle lives in the field
228
+ it governs. Smaller than a toolbar seg and ringed, so it reads as a control
229
+ sitting in the box rather than as trailing text. */
230
+ /* The 6px inset from the field's right edge is what leaves room for this
231
+ toggle's focus ring to be drawn outside it. */
232
+ .seg.inline {
233
+ position: absolute;
234
+ right: 6px;
235
+ top: 50%;
236
+ transform: translateY(-50%);
237
+ border-color: var(--d-border);
238
+ }
239
+ .seg.inline button {
240
+ font: 11px/1 system-ui;
241
+ padding: 4px 8px;
242
+ }
243
+ /* One button, showing the current colour scheme rather than three showing the
244
+ choices. Squared to the toolbar's height so the glyph is not cramped. */
245
+ .toolbtn.iconbtn {
246
+ font-size: 14px;
247
+ line-height: 1;
248
+ width: 30px;
249
+ padding: 0;
250
+ text-align: center;
251
+ }
252
+ .toolbtn {
253
+ font: 12px/1 system-ui;
254
+ padding: 9px 11px;
255
+ cursor: pointer;
256
+ background: var(--d-bg-surface);
257
+ color: var(--d-text-secondary);
258
+ border: 1px solid var(--d-border);
259
+ border-radius: var(--d-radius-sm);
260
+ }
261
+ .toolbtn[aria-pressed='true'] {
262
+ background: var(--d-accent);
263
+ color: var(--d-accent-fg);
264
+ border-color: var(--d-accent);
265
+ }
266
+ /* 10px, which is what each tab's `i` button needs to the right of it for a
267
+ 24px hit target that stops 2px SHORT of the next tab. At 8px the overlay's
268
+ right edge met that tab's left edge exactly, and on a fractionally
269
+ positioned row pixel snapping put the overlay on both sides of every tab
270
+ boundary — a click just inside a tab opened the previous runner's modal.
271
+
272
+ It wraps rather than overflowing: below about 926px the strip had a hard
273
+ floor and the whole PAGE scrolled sideways to hold it. A second line costs
274
+ nothing (the chrome is measured, not assumed) and keeps every tab visible,
275
+ which a scroller inside the strip would not. */
276
+ .tabs {
277
+ display: flex;
278
+ flex-wrap: wrap;
279
+ gap: 10px;
280
+ margin-top: 10px;
281
+ align-items: center;
282
+ }
283
+ /* Positioning context for the drop-down, which hangs below the button. The
284
+ picker sits in the toolbar's Scope cluster, so it takes its place in that
285
+ flex row and needs no margin of its own. */
286
+ .picker {
287
+ position: relative;
288
+ }
289
+ /* The slot render() writes the picker into. A div, because the picker it
290
+ holds is block-level and cannot legally nest in a span. */
291
+ #pickerhost {
292
+ display: flex;
293
+ }
294
+ /* Capped against the VIEWPORT and scrolled inside itself. It hangs out of a
295
+ sticky #chrome, so an over-long menu simply ran off the bottom of the
296
+ window with nothing able to bring it back: scrolling the page moves the
297
+ chrome not at all. Thirteen runners passed that point below about 570px of
298
+ window height. The chrome's own measured height is the offset, which is
299
+ more than the menu's real top — deliberately conservative, so the cap is
300
+ never the thing that overflows. */
301
+ .pickmenu {
302
+ position: absolute;
303
+ right: 0;
304
+ top: calc(100% + 4px);
305
+ z-index: 200;
306
+ min-width: 220px;
307
+ padding: 6px;
308
+ border-radius: var(--d-radius-md);
309
+ background: var(--d-bg-base);
310
+ border: 1px solid var(--d-border);
311
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
312
+ max-height: calc(100vh - var(--chrome-h) - 16px);
313
+ overflow-y: auto;
314
+ }
315
+ .pickmenu[hidden] {
316
+ display: none;
317
+ }
318
+ .pick {
319
+ display: flex;
320
+ align-items: center;
321
+ gap: 8px;
322
+ padding: 5px 8px;
323
+ border-radius: var(--d-radius-xs);
324
+ font: 12px/1.3 var(--d-font-mono);
325
+ color: var(--d-text-primary);
326
+ }
327
+ .pick:hover {
328
+ background: var(--d-bg-hover);
329
+ }
330
+ /* The row itself is a plain div now, not a <label>: the info button rides
331
+ beside it (see view.ts), and a label wrapping the whole row would also
332
+ forward that button's click to the checkbox. Only this inner label,
333
+ around the checkbox/name/count, still toggles the runner on click. */
334
+ .pick-label {
335
+ display: flex;
336
+ align-items: center;
337
+ gap: 8px;
338
+ flex: 1;
339
+ min-width: 0;
340
+ cursor: pointer;
341
+ }
342
+ .pick .grip {
343
+ color: var(--d-text-muted);
344
+ font-size: 11px;
345
+ cursor: grab;
346
+ user-select: none;
347
+ }
348
+ .pick:active .grip {
349
+ cursor: grabbing;
350
+ }
351
+ .tabs button[data-runner][draggable] {
352
+ cursor: grab;
353
+ }
354
+ .tabs button[data-runner][draggable]:active {
355
+ cursor: grabbing;
356
+ }
357
+
358
+ /* The drag image: a SOLID copy of what is being dragged, lifted off the page.
359
+ The browser's own ghost is near-transparent and reads as a rendering
360
+ accident rather than as the thing in hand. It is parked off-screen because
361
+ setDragImage only needs it rendered, not seen, and it inherits none of its
362
+ surface's context there - so it carries its own card styling, and the
363
+ affordances that belong to the row rather than to its identity (the grip,
364
+ the info button) are dropped from the copy. */
365
+ [data-drag-ghost] {
366
+ position: fixed;
367
+ left: 0;
368
+ top: -1000px;
369
+ z-index: 500;
370
+ opacity: 1;
371
+ display: flex;
372
+ align-items: center;
373
+ gap: 6px;
374
+ padding: 6px 10px;
375
+ pointer-events: none;
376
+ font: 13px/1 system-ui;
377
+ /* An accent wash over the surface tone, not the page ground: --d-bg-base
378
+ IS the ground in both themes, so a card painted in it read as an
379
+ outlined rectangle rather than as something picked up. Mixing toward the
380
+ accent lifts it off either ground and says the card is in hand.
381
+
382
+ Two shadows, because one cannot serve both themes: black carries the
383
+ lift on white and is invisible on #14161a, so an accent halo carries it
384
+ there. Each is harmless where the other is doing the work. */
385
+ background: color-mix(in srgb, var(--d-accent) 14%, var(--d-bg-surface));
386
+ color: var(--d-text-primary);
387
+ border: 1px solid var(--d-accent);
388
+ border-radius: var(--d-radius-sm);
389
+ box-shadow:
390
+ 0 12px 28px rgba(0, 0, 0, 0.45),
391
+ 0 6px 18px color-mix(in srgb, var(--d-accent) 40%, transparent),
392
+ 0 0 0 1px color-mix(in srgb, var(--d-accent) 45%, transparent);
393
+ }
394
+ [data-drag-ghost] button,
395
+ [data-drag-ghost] label {
396
+ display: flex;
397
+ align-items: center;
398
+ gap: 6px;
399
+ background: transparent;
400
+ border: 0;
401
+ color: inherit;
402
+ font: inherit;
403
+ padding: 0;
404
+ }
405
+ [data-drag-ghost] .tabinfo,
406
+ [data-drag-ghost] .grip {
407
+ display: none;
408
+ }
409
+ [data-drag-ghost] .count {
410
+ color: var(--d-text-muted);
411
+ font-size: 11px;
412
+ }
413
+ /* The dragged element itself, faded because the ghost is the copy the eye is
414
+ following. The preview MOVES it, so this fades wherever it has slid to —
415
+ it marks the slot the drop would take, not the one it started in. */
416
+ .dragging {
417
+ opacity: 0.4;
418
+ }
419
+ /* The siblings the preview displaces slide to their new places. The
420
+ transform is set from input.ts as a FLIP; this is only how long it takes.
421
+ Reduced motion takes the jump instead. */
422
+ .tabs .tab,
423
+ .pickmenu .pick {
424
+ transition: transform 0.12s ease;
425
+ }
426
+ @media (prefers-reduced-motion: reduce) {
427
+ .tabs .tab,
428
+ .pickmenu .pick {
429
+ transition: none;
430
+ }
431
+ }
432
+ .pick .count {
433
+ margin-left: auto;
434
+ color: var(--d-text-muted);
435
+ font-size: 11px;
436
+ }
437
+ /* The picker's sort header. It reorders the one persisted order, so it reads
438
+ as a table head over the rows it governs rather than as a second control:
439
+ quiet, uppercase, on the menu's own ground.
440
+
441
+ Pinned, because the menu scrolls now: a header that scrolled away would
442
+ leave the rows it governs with nothing naming their order. It pins below
443
+ the menu's own 6px padding, and the shadow repaints that band in the
444
+ menu's ground so rows do not show through the sliver above it. */
445
+ .pickhead {
446
+ /* 8px, not 4px: the same gap `.pick` uses, so the header's first column
447
+ lands over the row's first control rather than 4px short of it. */
448
+ display: flex;
449
+ gap: 8px;
450
+ align-items: center;
451
+ padding: 2px 8px 6px;
452
+ border-bottom: 1px solid var(--d-border);
453
+ margin-bottom: 4px;
454
+ position: sticky;
455
+ top: 0;
456
+ z-index: 1;
457
+ background: var(--d-bg-base);
458
+ box-shadow: 0 -6px 0 var(--d-bg-base);
459
+ }
460
+ /* A stand-in for the row's drag handle: present so it takes up the handle's
461
+ width, invisible because there is nothing to drag in a header. */
462
+ .pickhead .grip {
463
+ visibility: hidden;
464
+ }
465
+ /* The shown column sits directly over the checkboxes it orders by, so it
466
+ takes no horizontal padding that would push it out of that line, and its
467
+ content is left-aligned rather than centred so the glyph's left edge meets
468
+ the checkbox's. The width is fixed and roomy enough for the direction
469
+ arrow, so activating the sort cannot shift the two columns beside it. */
470
+ .picksort[data-sort-runners='shown'] {
471
+ flex: 0 0 24px;
472
+ padding-left: 0;
473
+ padding-right: 0;
474
+ justify-content: flex-start;
475
+ }
476
+ .picksort {
477
+ display: flex;
478
+ align-items: center;
479
+ gap: 3px;
480
+ flex: 1;
481
+ font: 600 10px/1 system-ui;
482
+ letter-spacing: 0.06em;
483
+ text-transform: uppercase;
484
+ padding: 4px 6px;
485
+ cursor: pointer;
486
+ border-radius: var(--d-radius-xs);
487
+ background: transparent;
488
+ color: var(--d-text-muted);
489
+ border: 1px solid transparent;
490
+ }
491
+ .picksort:last-child {
492
+ flex: none;
493
+ margin-left: auto;
494
+ }
495
+ .picksort:hover {
496
+ color: var(--d-accent-hover);
497
+ border-color: var(--d-border);
498
+ }
499
+ /* Pressed means "the order on screen IS this sort", which is derived every
500
+ render - so it clears itself the moment a drag breaks the sort. */
501
+ .picksort[aria-pressed='true'] {
502
+ color: var(--d-text-primary);
503
+ }
504
+ .sortdir {
505
+ font-size: 9px;
506
+ }
507
+
508
+ .pickactions {
509
+ display: flex;
510
+ gap: 4px;
511
+ padding: 6px 8px 2px;
512
+ border-top: 1px solid var(--d-border);
513
+ margin-top: 4px;
514
+ }
515
+ .pickactions button {
516
+ font: 11px/1 system-ui;
517
+ padding: 5px 9px;
518
+ cursor: pointer;
519
+ flex: 1;
520
+ background: var(--d-bg-surface);
521
+ color: var(--d-text-secondary);
522
+ border: 1px solid var(--d-border);
523
+ border-radius: var(--d-radius-sm);
524
+ }
525
+ .pickactions button:hover {
526
+ color: var(--d-accent-hover);
527
+ border-color: var(--d-accent);
528
+ }
529
+ /* Scoped to [data-runner]: the tab row also hosts .tabinfo, and a bare
530
+ `.tabs button` outranks its own single-class rule — it was stripping
531
+ .tabinfo's size. Only real tabs carry data-runner.
532
+
533
+ `nowrap`, or a long label breaks across two lines inside its own button
534
+ while the strip still has room to wrap instead. */
535
+ .tabs button[data-runner] {
536
+ font: 13px/1 system-ui;
537
+ padding: 9px 14px;
538
+ cursor: pointer;
539
+ background: transparent;
540
+ color: var(--d-text-secondary);
541
+ border: 0;
542
+ border-bottom: 2px solid transparent;
543
+ display: inline-flex;
544
+ align-items: center;
545
+ white-space: nowrap;
546
+ }
547
+ .tabs button[data-runner][aria-pressed='true'] {
548
+ color: var(--d-text-primary);
549
+ border-bottom-color: var(--d-accent);
550
+ }
551
+ .tabs button[data-runner] .ricon {
552
+ margin-right: 6px;
553
+ }
554
+ .tabs .count {
555
+ color: var(--d-text-muted);
556
+ font-size: 11px;
557
+ margin-left: 5px;
558
+ }
559
+ /* A runner held back because execution is off. Quiet, in the count's own
560
+ voice: nothing failed, so it must not read like the error marker. */
561
+ .tabs .count.exec {
562
+ margin-left: 4px;
563
+ padding: 1px 5px;
564
+ border-radius: var(--d-radius-pill);
565
+ border: 1px solid var(--d-border);
566
+ font-size: 10px;
567
+ }
568
+ /* `flex: none`, so a full strip wraps rather than squeezing its tabs: a
569
+ shrunken tab pulls its label out from under its own hit geometry. */
570
+ .tab {
571
+ display: flex;
572
+ align-items: center;
573
+ flex: none;
574
+ }
575
+ /* Where one group of rows ends and the next begins: Dependencies, Tools,
576
+ Git hooks. */
577
+ .tabgroup {
578
+ flex: none;
579
+ align-self: center;
580
+ margin-left: 10px;
581
+ padding-left: 10px;
582
+ border-left: 1px solid var(--d-border);
583
+ color: var(--d-text-muted);
584
+ font-size: 11px;
585
+ text-transform: uppercase;
586
+ letter-spacing: 0.04em;
587
+ }
588
+ /* Runner icons come from each report's `brand`. The SVG ships with a viewBox
589
+ and no fixed size, so each surface sizes it here. */
590
+ .ricon {
591
+ display: inline-flex;
592
+ flex: none;
593
+ width: 14px;
594
+ height: 14px;
595
+ }
596
+ .ricon svg {
597
+ width: 100%;
598
+ height: 100%;
599
+ display: block;
600
+ }
601
+ .head .ricon {
602
+ width: 15px;
603
+ height: 15px;
604
+ }
605
+ /* Quiet, not dead. An affordance drawn at .35 opacity is the platform
606
+ convention for DISABLED, so this button read as unavailable rather than
607
+ merely secondary. Full opacity in the muted text colour on a subtle ring
608
+ is quiet without making a false claim. The modal stays reachable by Tab:
609
+ the tab row's roving group is scoped to `button[data-runner]`, so .tabinfo
610
+ keeps its own natural tab stop.
611
+
612
+ `flex: none`, or a crowded row shrinks the button: 16px became 14.4px at
613
+ 1000px and 12.2px at 900px while the 24px overlay below stayed put, so the
614
+ overlay reached almost 4px past the NEXT tab's left edge and swallowed
615
+ clicks meant for it. The strip wraps now instead of crowding, and this
616
+ keeps the ring itself from degrading either way. */
617
+ .tabinfo {
618
+ font: 600 11px/1 var(--d-font-mono);
619
+ width: 16px;
620
+ height: 16px;
621
+ padding: 0;
622
+ margin-left: 0;
623
+ cursor: pointer;
624
+ position: relative;
625
+ flex: none;
626
+ background: transparent;
627
+ color: var(--d-text-muted);
628
+ border: 1px solid var(--d-border-subtle);
629
+ border-radius: 50%;
630
+ }
631
+ /* The visible ring is 16px, under the 24px minimum target size. A
632
+ transparent overlay grows what the pointer can hit without growing the
633
+ ring, so the tab row keeps its density. Out of flow, so the glyph inside
634
+ does not move.
635
+
636
+ It grows OUTWARD, not from the centre: a centred 24px box reached back
637
+ over the tab it belongs to, and clicking that tab's right edge opened the
638
+ info modal instead of selecting the runner. Anchored at the button's left
639
+ edge it spans the button and 8 of the 10px of gap after it — 24px of
640
+ target with 2px of clear space before the next tab, which is what keeps a
641
+ click at that tab's own edge landing on the tab. Both numbers are needed:
642
+ 24 is the minimum target, so the slack comes out of the gap rather than
643
+ out of the target. */
644
+ .tabinfo::before {
645
+ content: '';
646
+ position: absolute;
647
+ left: 0;
648
+ top: 50%;
649
+ width: 24px;
650
+ height: 24px;
651
+ transform: translateY(-50%);
652
+ }
653
+ .tabinfo:hover {
654
+ color: var(--d-accent-hover);
655
+ border-color: var(--d-accent);
656
+ }
657
+ /* In the picker the count runs up to the row's right edge, so the button
658
+ needs its own breathing room; its hit overlay reaches into the row's own
659
+ padding, where nothing else is. */
660
+ .pick .tabinfo {
661
+ margin-left: 4px;
662
+ }
663
+ /* The trust grant, where the picker row names the withholding. Sized down to
664
+ the row rather than given a look of its own: it is a toolbar button in an
665
+ unusually small place, not a new kind of control. */
666
+ .pick .toolbtn {
667
+ margin-left: 4px;
668
+ font-size: 11px;
669
+ padding: 3px 7px;
670
+ white-space: nowrap;
671
+ }
672
+
673
+ /* The chip standing in for every empty runner's tab. Quiet on purpose —
674
+ folding these was the point, so the chip should read as calmer than a
675
+ real tab, not as a louder one. It carries no `data-runner`, so the tab
676
+ row's roving-tabindex group (scoped to `button[data-runner]`) leaves it
677
+ its own natural tab stop. */
678
+ .tab-folded {
679
+ font: 11px/1 system-ui;
680
+ padding: 6px 10px;
681
+ margin-left: 8px;
682
+ cursor: pointer;
683
+ background: transparent;
684
+ color: var(--d-text-muted);
685
+ border: 1px solid var(--d-border-subtle);
686
+ border-radius: var(--d-radius-pill);
687
+ }
688
+ .tab-folded:hover,
689
+ .tab-folded:focus-visible {
690
+ color: var(--d-accent-hover);
691
+ border-color: var(--d-accent);
692
+ }
693
+ /* The first strip in the chrome. It was between the column heads and the
694
+ rows, where a count read as a table row and broke the header away from its
695
+ body; above everything it reads as a caption for the whole view. Outside
696
+ `header`, so it carries its own horizontal padding. */
697
+ .status {
698
+ display: flex;
699
+ gap: 14px;
700
+ align-items: center;
701
+ flex-wrap: wrap;
702
+ padding: 7px 16px;
703
+ font-size: 11px;
704
+ color: var(--d-text-muted);
705
+ background: var(--d-bg-surface);
706
+ border-bottom: 1px solid var(--d-border);
707
+ }
708
+ .status .err {
709
+ color: var(--d-status-error);
710
+ }
711
+ /* The trust bar. Its own row above everything, because it asks for a
712
+ decision rather than reporting a number: in the status strip it sat
713
+ between the clock and the keyboard hints, where a button reads as one
714
+ more piece of chrome. Warning colour, not error — nothing failed,
715
+ something was declined — and a tinted ground so the row is visibly a
716
+ different KIND of thing from the counts below it. */
717
+ .trustbar {
718
+ display: flex;
719
+ gap: 12px;
720
+ align-items: center;
721
+ flex-wrap: wrap;
722
+ padding: 8px 16px;
723
+ font-size: 12px;
724
+ color: var(--d-status-warning);
725
+ background: color-mix(in srgb, var(--d-status-warning) 10%, var(--d-bg-surface));
726
+ border-bottom: 1px solid color-mix(in srgb, var(--d-status-warning) 35%, transparent);
727
+ }
728
+ .trustbar[hidden] {
729
+ display: none;
730
+ }
731
+ /* The runners are the subject of the sentence, so they carry the weight the
732
+ surrounding explanation does not. */
733
+ .trustbar .who {
734
+ font-weight: 600;
735
+ }
736
+ /* Withheld runners are not an error — nothing failed, something was
737
+ declined — so they take the warning colour rather than the error one. */
738
+ .status .warn {
739
+ color: var(--d-status-warning);
740
+ }
741
+ main {
742
+ padding: 0 16px 40vh;
743
+ }
744
+ .banner {
745
+ margin: 12px 0;
746
+ padding: 10px 12px;
747
+ border-radius: var(--d-radius-sm);
748
+ border: 1px solid var(--d-status-error);
749
+ color: var(--d-status-error);
750
+ font: 12px/1.5 var(--d-font-mono);
751
+ white-space: pre-wrap;
752
+ }
753
+ .banner.warn {
754
+ border-color: var(--d-status-warning);
755
+ color: var(--d-status-warning);
756
+ }
757
+ .empty {
758
+ padding: 48px 0;
759
+ text-align: center;
760
+ color: var(--d-text-muted);
761
+ }
762
+
763
+ /* The call-chain tree: each level indents one step, leaves are table rows.
764
+ Every header sticks under the chrome and under its own ancestors, at a top
765
+ offset this depth's inline style sets. Sticking stops where the header's
766
+ `.node` ends, so the next group at the same depth pushes it off screen
767
+ rather than piling up on it — which is why the height must be FIXED, and
768
+ why the whole stack has to agree on it (--head-h).
769
+
770
+ z-index is set INLINE, per depth, and descends: a shallower header pins
771
+ higher on screen, so it has to paint above the deeper ones still
772
+ travelling up through its band. With one shared z-index the deeper header
773
+ wins on DOM order and scrolls straight over its own parent. */
774
+ .node > .head {
775
+ position: sticky;
776
+ background: var(--d-bg-base);
777
+ display: flex;
778
+ align-items: center;
779
+ gap: 8px;
780
+ height: var(--head-h);
781
+ box-sizing: border-box;
782
+ padding: 0 0 1px;
783
+ cursor: pointer;
784
+ user-select: none;
785
+ border-bottom: 1px solid var(--d-border);
786
+ }
787
+ .node > .head:hover .seg-name {
788
+ color: var(--d-accent-hover);
789
+ }
790
+ .twisty {
791
+ color: var(--d-text-muted);
792
+ font: 11px/1 var(--d-font-mono);
793
+ width: 10px;
794
+ flex: none;
795
+ }
796
+ .chain {
797
+ color: var(--d-text-muted);
798
+ font: 12px/1 var(--d-font-mono);
799
+ }
800
+ .seg-name {
801
+ font: 600 13px/1.3 var(--d-font-mono);
802
+ }
803
+ .node-count {
804
+ color: var(--d-text-muted);
805
+ font-size: 11px;
806
+ }
807
+ .seg-kind {
808
+ color: var(--d-text-muted);
809
+ font-size: 11px;
810
+ letter-spacing: 0.04em;
811
+ text-transform: uppercase;
812
+ }
813
+ /* One level of nesting costs exactly 25px, and that number is duplicated in
814
+ view.ts as INDENT_PER_LEVEL: `outdent()` and `colgroup()` both compute
815
+ pixel positions from it, so if this margin and padding stop adding up to
816
+ 25 every table's left edge drifts away from the Command column. The 1px
817
+ `border-left` that used to stand in for nesting was part of that 25; the
818
+ connectors replaced it, so the padding grew by 1 to give the pixel back. */
819
+ .kids {
820
+ margin-left: 14px;
821
+ padding-left: 11px;
822
+ }
823
+ .node[data-collapsed='true'] > .kids {
824
+ display: none;
825
+ }
826
+
827
+ /* File-tree connectors. Each child group draws its own two segments rather
828
+ than the parent drawing one long rule: a vertical trunk down the child's
829
+ full height, and a horizontal arm reaching the child's header at its
830
+ midline. Because the trunk belongs to the CHILD and spans the child's own
831
+ box, a collapsed group shrinks to just its header and its line stops
832
+ there without any rule of its own. Scoped to `.kids > .node`, so a root
833
+ node — which has no parent to connect to — gets nothing.
834
+
835
+ The trunk sits at -11px, the x the old `.kids` border-left occupied, so
836
+ the tree's vertical rhythm is unchanged.
837
+
838
+ `--d-border` rather than `--d-border-subtle`: subtle is #eceff3 on white,
839
+ which at 1px reads as a smudge, and these lines now carry structure
840
+ rather than only separating. --d-border stays quiet in both themes.
841
+
842
+ `.node` is only `position: relative` — no z-index — so it creates no
843
+ stacking context and the pseudo-elements stay at layer 0. The sticky
844
+ headers carry an inline z-index of 20 - depth, so a pinned header always
845
+ paints over any connector scrolling under it.
846
+
847
+ Nothing connects to the leaf `<table>`: it is deliberately outdented back
848
+ out of the tree indentation by `outdent()` so the Command column lands at
849
+ one x at every depth, which leaves it no left edge inside the indentation
850
+ for an arm to reach. The connectors join a container to its child group
851
+ HEADERS and stop there. */
852
+ .kids > .node {
853
+ position: relative;
854
+ }
855
+ .kids > .node::before {
856
+ content: '';
857
+ position: absolute;
858
+ left: -11px;
859
+ top: 0;
860
+ bottom: 0;
861
+ width: 1px;
862
+ background: var(--d-border);
863
+ }
864
+ /* The last group ends the trunk at its own header, which is what turns the
865
+ tee into an elbow. `:last-of-type` and not `:last-child`, because the
866
+ leaf table is emitted after the child groups. */
867
+ .kids > .node:last-of-type::before {
868
+ bottom: auto;
869
+ height: calc(var(--head-h) / 2);
870
+ }
871
+ .kids > .node::after {
872
+ content: '';
873
+ position: absolute;
874
+ left: -11px;
875
+ top: calc(var(--head-h) / 2);
876
+ width: 8px;
877
+ height: 1px;
878
+ background: var(--d-border);
879
+ }
880
+
881
+ /* `fixed` is what makes the columns line up: with `auto`, every group is its
882
+ own table and each sizes to its own widest chain, so the command column
883
+ lands somewhere different in each one. */
884
+ table {
885
+ width: 100%;
886
+ border-collapse: collapse;
887
+ table-layout: fixed;
888
+ }
889
+ tbody tr {
890
+ border-bottom: 1px solid var(--d-border-subtle);
891
+ }
892
+ tbody tr:hover {
893
+ background: var(--d-bg-hover);
894
+ }
895
+ /* A whisper of the runner's brand color down the row's left edge — enough to
896
+ tell moon rows from cargo rows at a glance, not enough to read as state.
897
+ Declared BEFORE .enter-target and .copied so those win the box-shadow
898
+ channel at equal specificity: the tint must never fight the "Enter takes
899
+ this row" bar or the copied flash. color-mix against transparent lets one
900
+ rule sit correctly on both themes' row backgrounds. A report without a
901
+ brand color sets no --rb, so its rows render exactly as before. */
902
+ tbody tr.branded {
903
+ box-shadow: inset 2px 0 0 color-mix(in srgb, var(--rb) 50%, transparent);
904
+ }
905
+ /* Enter takes this row, so it says so across its whole width — a lone
906
+ highlighted button was easy to miss and easy to misread as hover. While
907
+ focus is in the list this follows the focused row; otherwise it is the top
908
+ hit. See markEnterTarget(). */
909
+ tbody tr.enter-target {
910
+ background: var(--d-bg-hover);
911
+ box-shadow: inset 2px 0 0 var(--d-accent);
912
+ }
913
+ /* The darker accent stop, not the base one: the base accent on this row's
914
+ lifted background is 4.26:1 and misses AA. The trade is that this one
915
+ Copy button does not shift colour on hover — the rule outranks
916
+ `.copy:hover`, and its resting state is already the hover colour.
917
+ A solid base ground and a heavier weight make it read as the primary
918
+ action on the row rather than as one more quiet button. */
919
+ tbody tr.enter-target .copy {
920
+ color: var(--d-accent-hover);
921
+ border-color: var(--d-accent);
922
+ background: var(--d-bg-base);
923
+ font-weight: 600;
924
+ }
925
+ /* The Enter affordance IS this button — the glyph is not a separate chip on
926
+ the left of the row, which truncated. It is a pseudo-element rather than
927
+ part of the button's text because the click handler swaps that text to
928
+ `copied`; drawn as content the confirmation would read `↵ copied`. The
929
+ `.done` exclusion drops the glyph for exactly that moment. */
930
+ tbody tr.enter-target .copy:not(.done)::before {
931
+ content: '↵ ';
932
+ }
933
+ /* Rows are flush against each other, so an outward ring on one is drawn over
934
+ the text of the rows above and below it. The focused row takes the ring
935
+ inset instead. `outline-offset` is the only thing that changes; the colour
936
+ and width stay the page's one focus style. */
937
+ tbody tr:focus-visible {
938
+ outline-offset: -2px;
939
+ }
940
+
941
+ /* And the confirmation when Enter is actually pressed: the row glows and
942
+ settles. A green flash rather than the accent, so "it happened" reads
943
+ differently from "this is the one it would take". */
944
+ @keyframes copied-glow {
945
+ 0% {
946
+ background: var(--d-status-success);
947
+ box-shadow:
948
+ inset 3px 0 0 var(--d-status-success),
949
+ 0 0 0 1px var(--d-status-success);
950
+ }
951
+ 100% {
952
+ background: transparent;
953
+ box-shadow:
954
+ inset 3px 0 0 transparent,
955
+ 0 0 0 1px transparent;
956
+ }
957
+ }
958
+ tbody tr.copied {
959
+ animation: copied-glow 0.7s ease-out;
960
+ }
961
+ tbody tr.copied td {
962
+ color: var(--d-text-primary);
963
+ }
964
+ @media (prefers-reduced-motion: reduce) {
965
+ tbody tr.copied {
966
+ animation: none;
967
+ background: var(--d-bg-hover);
968
+ }
969
+ }
970
+ /* One line-height for every cell, so no cell's own metrics decide the row
971
+ height. */
972
+ td {
973
+ padding: 5px 8px 5px 0;
974
+ vertical-align: top;
975
+ line-height: 1.5;
976
+ }
977
+ /* The leading gutter is a slot for row indicators, not a service column.
978
+ The brand tint stays OUTBOARD, on the row's own left edge, because it
979
+ belongs to the whole row rather than to this cell; the icons are inset
980
+ from it by centring in a 30px gutter, which leaves about 8px of clear
981
+ space so an icon never sits on the 2px bar. */
982
+ td.ind {
983
+ padding: 5px 0;
984
+ }
985
+ /* A flex row so a second indicator can join without moving the first. It is
986
+ block-level, so it makes no line box of its own: an indicator row is
987
+ exactly as tall as a plain one, whose 13px/1.5 text is taller than this
988
+ box. The margin drops the icons onto that text's optical centre. */
989
+ .inds {
990
+ display: flex;
991
+ align-items: center;
992
+ justify-content: center;
993
+ gap: 3px;
994
+ margin-top: 3px;
995
+ }
996
+ /* Icons ship with a viewBox and no size, like .ricon, so the box is set
997
+ here and currentColor carries the theme token into the SVG. An inferred
998
+ service keeps the softer voice the chip had: the hollow glyph, drawn in
999
+ the muted text colour rather than the success green. */
1000
+ /* `relative` so the clipped `.sr` name inside anchors here rather than to the
1001
+ page, which would give the document a stray 1px box at its top left. */
1002
+ .ind-svc {
1003
+ display: flex;
1004
+ position: relative;
1005
+ width: 13px;
1006
+ height: 13px;
1007
+ cursor: help;
1008
+ color: var(--d-status-success);
1009
+ }
1010
+ .ind-svc svg {
1011
+ width: 100%;
1012
+ height: 100%;
1013
+ display: block;
1014
+ }
1015
+ .ind-svc.inferred {
1016
+ color: var(--d-text-muted);
1017
+ }
1018
+ td.name,
1019
+ td.run {
1020
+ overflow: hidden;
1021
+ text-overflow: ellipsis;
1022
+ white-space: nowrap;
1023
+ }
1024
+ td.name {
1025
+ font: 600 13px/1.5 var(--d-font-mono);
1026
+ }
1027
+ td.run {
1028
+ font: 12px/1.5 var(--d-font-mono);
1029
+ color: var(--d-text-secondary);
1030
+ }
1031
+ td.doc {
1032
+ font-size: 12px;
1033
+ color: var(--d-text-secondary);
1034
+ overflow: hidden;
1035
+ }
1036
+ td.doc .detail {
1037
+ font: 11px/1.4 var(--d-font-mono);
1038
+ color: var(--d-text-muted);
1039
+ display: block;
1040
+ overflow: hidden;
1041
+ text-overflow: ellipsis;
1042
+ white-space: nowrap;
1043
+ }
1044
+ /* `relative` so the 409 note can hang under the buttons without adding a
1045
+ line to the row — the tables are fixed-layout and a taller cell would
1046
+ move every row below it. */
1047
+ td.act {
1048
+ text-align: right;
1049
+ position: relative;
1050
+ white-space: nowrap;
1051
+ }
1052
+ .seg-hit {
1053
+ cursor: help;
1054
+ }
1055
+ .copy,
1056
+ .runbtn {
1057
+ font: 11px/1 system-ui;
1058
+ padding: 4px 8px;
1059
+ cursor: pointer;
1060
+ background: transparent;
1061
+ color: var(--d-text-muted);
1062
+ border: 1px solid var(--d-border);
1063
+ border-radius: var(--d-radius-sm);
1064
+ }
1065
+ .runbtn {
1066
+ margin-right: 4px;
1067
+ }
1068
+ .copy:hover,
1069
+ .runbtn:hover {
1070
+ color: var(--d-accent-hover);
1071
+ border-color: var(--d-accent);
1072
+ }
1073
+ .copy.done {
1074
+ color: var(--d-status-success);
1075
+ border-color: var(--d-status-success);
1076
+ }
1077
+ .runbtn:disabled {
1078
+ cursor: default;
1079
+ opacity: 0.5;
1080
+ }
1081
+ /* Out of flow, right-aligned under the row's own buttons, so the message
1082
+ lands where the click did without disturbing the table. */
1083
+ .runerr {
1084
+ position: absolute;
1085
+ right: 8px;
1086
+ top: 100%;
1087
+ z-index: 2;
1088
+ font: 11px/1.4 system-ui;
1089
+ color: var(--d-status-warning);
1090
+ background: var(--d-bg-base);
1091
+ border: 1px solid var(--d-border);
1092
+ border-radius: var(--d-radius-sm);
1093
+ padding: 3px 6px;
1094
+ }
1095
+
1096
+ /* Arguments for a parameterised task. A bar at the foot rather than a modal:
1097
+ the row that opened it stays visible, and Esc is the whole dismissal —
1098
+ there is no overlay to click past. The command prefix is static text; only
1099
+ the field is yours to type, because only the tail is what the server will
1100
+ accept. */
1101
+ #runbar {
1102
+ position: fixed;
1103
+ left: 0;
1104
+ right: 0;
1105
+ bottom: 0;
1106
+ z-index: 400;
1107
+ display: flex;
1108
+ flex-direction: column;
1109
+ gap: 4px;
1110
+ padding: 10px 14px;
1111
+ background: var(--d-bg-base);
1112
+ border-top: 1px solid var(--d-border);
1113
+ }
1114
+ .runbar-line {
1115
+ display: flex;
1116
+ align-items: baseline;
1117
+ gap: 6px;
1118
+ }
1119
+ .runbar-sigil {
1120
+ color: var(--d-text-secondary);
1121
+ font: 13px/1.5 var(--d-font-mono);
1122
+ }
1123
+ .runbar-cmd {
1124
+ font: 13px/1.5 var(--d-font-mono);
1125
+ color: var(--d-text-primary);
1126
+ white-space: pre;
1127
+ }
1128
+ .runbar-args {
1129
+ flex: 1;
1130
+ min-width: 0;
1131
+ padding: 2px 4px;
1132
+ font: 13px/1.5 var(--d-font-mono);
1133
+ color: var(--d-text-primary);
1134
+ background: var(--d-bg-base);
1135
+ border: 1px solid var(--d-border);
1136
+ border-radius: var(--d-radius-sm);
1137
+ }
1138
+ .runbar-args:focus {
1139
+ outline: none;
1140
+ border-color: var(--d-accent);
1141
+ }
1142
+ .runbar-foot {
1143
+ display: flex;
1144
+ justify-content: space-between;
1145
+ gap: 12px;
1146
+ font: 11px/1.4 system-ui;
1147
+ color: var(--d-text-secondary);
1148
+ }
1149
+ .runbar-shape {
1150
+ font-family: var(--d-font-mono);
1151
+ }
1152
+
1153
+ /* The end state: the terminal has the task and this page has nothing left to
1154
+ do, so it says so over everything rather than beside it. */
1155
+ #handoff {
1156
+ position: fixed;
1157
+ inset: 0;
1158
+ z-index: 500;
1159
+ display: flex;
1160
+ flex-direction: column;
1161
+ align-items: center;
1162
+ justify-content: center;
1163
+ gap: 12px;
1164
+ padding: 24px;
1165
+ text-align: center;
1166
+ background: var(--d-bg-base);
1167
+ color: var(--d-text-primary);
1168
+ }
1169
+ #handoff h2 {
1170
+ margin: 0;
1171
+ font: 600 18px/1.3 system-ui;
1172
+ }
1173
+ #handoff p {
1174
+ margin: 0;
1175
+ max-width: 44ch;
1176
+ color: var(--d-text-secondary);
1177
+ }
1178
+ #handoff .handoff-cmd {
1179
+ margin: 0;
1180
+ max-width: 100%;
1181
+ overflow-x: auto;
1182
+ font: 13px/1.5 var(--d-font-mono);
1183
+ color: var(--d-text-primary);
1184
+ background: var(--d-bg-surface);
1185
+ border: 1px solid var(--d-border);
1186
+ border-radius: var(--d-radius-md);
1187
+ padding: 10px 14px;
1188
+ }
1189
+ .helpbtn {
1190
+ font: 12px/1 system-ui;
1191
+ width: 30px;
1192
+ height: 30px;
1193
+ padding: 0;
1194
+ cursor: pointer;
1195
+ background: var(--d-bg-surface);
1196
+ color: var(--d-text-secondary);
1197
+ border: 1px solid var(--d-border);
1198
+ border-radius: 50%;
1199
+ }
1200
+ .helpbtn:hover {
1201
+ color: var(--d-accent-hover);
1202
+ border-color: var(--d-accent);
1203
+ }
1204
+
1205
+ /* The column heads live in the chrome, not in each group's table: with one
1206
+ table per group they would repeat down the page. They are a table of their
1207
+ own using the same depth-0 colgroup, which lines up because every table's
1208
+ command column starts at the same x by construction. */
1209
+ .colheads {
1210
+ padding: 0 16px;
1211
+ background: var(--d-bg-base);
1212
+ border-top: 1px solid var(--d-border);
1213
+ }
1214
+ .colheads table {
1215
+ border-collapse: collapse;
1216
+ }
1217
+ .colheads th {
1218
+ font: 600 11px/1 system-ui;
1219
+ letter-spacing: 0.06em;
1220
+ text-transform: uppercase;
1221
+ color: var(--d-text-muted);
1222
+ text-align: left;
1223
+ padding: 5px 8px 5px 0;
1224
+ cursor: help;
1225
+ white-space: nowrap;
1226
+ }
1227
+
1228
+ dialog#help,
1229
+ dialog#settings {
1230
+ max-width: 640px;
1231
+ border: 1px solid var(--d-border);
1232
+ border-radius: var(--d-radius-lg);
1233
+ padding: 20px 24px;
1234
+ background: var(--d-bg-base);
1235
+ color: var(--d-text-primary);
1236
+ }
1237
+ dialog#help::backdrop,
1238
+ dialog#settings::backdrop {
1239
+ background: rgba(0, 0, 0, 0.45);
1240
+ }
1241
+
1242
+ /* The settings screen. Reading only — every value here is reported, none is
1243
+ editable yet, so nothing in this block styles a control. */
1244
+ .set-head h2 {
1245
+ font: 600 15px/1.3 system-ui;
1246
+ margin: 0;
1247
+ }
1248
+ .set-file {
1249
+ margin: 2px 0 16px;
1250
+ font: 11px var(--d-font-mono);
1251
+ color: var(--d-text-muted);
1252
+ overflow-wrap: anywhere;
1253
+ }
1254
+ .set-section {
1255
+ margin: 0 0 18px;
1256
+ }
1257
+ .set-section h3 {
1258
+ font: 600 12px/1.3 system-ui;
1259
+ text-transform: uppercase;
1260
+ letter-spacing: 0.04em;
1261
+ color: var(--d-text-muted);
1262
+ margin: 0 0 6px;
1263
+ display: flex;
1264
+ justify-content: space-between;
1265
+ align-items: baseline;
1266
+ gap: 12px;
1267
+ }
1268
+ /* Which layer supplied the value — the question this screen exists to
1269
+ answer, so it is on every section rather than only the surprising ones. */
1270
+ .set-layer {
1271
+ font: 400 10px/1 system-ui;
1272
+ text-transform: none;
1273
+ letter-spacing: 0;
1274
+ color: var(--d-text-muted);
1275
+ border: 1px solid var(--d-border);
1276
+ border-radius: var(--d-radius-xs);
1277
+ padding: 2px 5px;
1278
+ white-space: nowrap;
1279
+ }
1280
+ .set-layer[data-layer='project'] {
1281
+ color: var(--d-text-secondary);
1282
+ border-color: var(--d-accent);
1283
+ }
1284
+ .set-table {
1285
+ width: 100%;
1286
+ border-collapse: collapse;
1287
+ font-size: 13px;
1288
+ }
1289
+ .set-table td {
1290
+ padding: 3px 8px 3px 0;
1291
+ }
1292
+ .set-table td:first-child {
1293
+ width: 1.4em;
1294
+ color: var(--d-text-muted);
1295
+ }
1296
+ .set-state {
1297
+ color: var(--d-text-muted);
1298
+ font-size: 12px;
1299
+ text-align: right;
1300
+ }
1301
+ .set-list {
1302
+ margin: 0;
1303
+ padding-left: 18px;
1304
+ font-size: 13px;
1305
+ }
1306
+ .set-sub {
1307
+ margin: 6px 0 0;
1308
+ font-size: 12px;
1309
+ color: var(--d-text-secondary);
1310
+ }
1311
+ .set-empty {
1312
+ margin: 0;
1313
+ font-size: 13px;
1314
+ color: var(--d-text-muted);
1315
+ }
1316
+ .set-foot {
1317
+ margin-top: 18px;
1318
+ padding-top: 12px;
1319
+ border-top: 1px solid var(--d-border);
1320
+ }
1321
+ .set-warnings {
1322
+ margin: 0 0 16px;
1323
+ padding: 8px 10px;
1324
+ font-size: 12px;
1325
+ color: var(--d-status-warning);
1326
+ border: 1px solid var(--d-status-warning);
1327
+ border-radius: var(--d-radius-sm);
1328
+ }
1329
+ .set-warnings p {
1330
+ margin: 0;
1331
+ }
1332
+ /* An edit that has not been written. Named on the section it belongs to as
1333
+ well as in the title, so a scrolled screen still says which key is dirty. */
1334
+ .set-layer[data-layer='staged'] {
1335
+ color: var(--d-accent);
1336
+ border-color: var(--d-accent);
1337
+ }
1338
+ .set-dirty {
1339
+ font: 400 11px/1 system-ui;
1340
+ color: var(--d-accent);
1341
+ border: 1px solid var(--d-accent);
1342
+ border-radius: var(--d-radius-xs);
1343
+ padding: 2px 6px;
1344
+ margin-left: 6px;
1345
+ vertical-align: middle;
1346
+ }
1347
+ /* The picker's own footnote: the checkbox above it filters the session, and
1348
+ the durable setting is a click away. Quiet — it is a signpost, not a
1349
+ control. */
1350
+ .picknote {
1351
+ margin: 0;
1352
+ padding: 8px 10px;
1353
+ font-size: 11px;
1354
+ line-height: 1.5;
1355
+ color: var(--d-text-secondary);
1356
+ border-top: 1px solid var(--d-border-subtle);
1357
+ }
1358
+ .linkish {
1359
+ font: inherit;
1360
+ padding: 0;
1361
+ border: 0;
1362
+ background: none;
1363
+ cursor: pointer;
1364
+ color: var(--d-accent);
1365
+ text-decoration: underline;
1366
+ }
1367
+ /* An action that belongs to the paragraph explaining it, rather than to the
1368
+ dialog's footer. */
1369
+ .set-actions.set-inline {
1370
+ margin: 8px 0 0;
1371
+ padding: 0;
1372
+ border: 0;
1373
+ justify-content: flex-start;
1374
+ }
1375
+ .set-override {
1376
+ display: flex;
1377
+ align-items: baseline;
1378
+ gap: 8px;
1379
+ flex-wrap: wrap;
1380
+ }
1381
+ .set-override button {
1382
+ font: 11px/1 system-ui;
1383
+ padding: 4px 8px;
1384
+ cursor: pointer;
1385
+ background: var(--d-bg-surface);
1386
+ color: var(--d-text-primary);
1387
+ border: 1px solid var(--d-border);
1388
+ border-radius: var(--d-radius-sm);
1389
+ }
1390
+ .set-notice {
1391
+ margin: 0 0 12px;
1392
+ font-size: 12px;
1393
+ }
1394
+ .set-notice[data-kind='ok'] {
1395
+ color: var(--d-text-secondary);
1396
+ }
1397
+ .set-notice[data-kind='err'] {
1398
+ color: var(--d-status-warning);
1399
+ }
1400
+ .set-radios {
1401
+ display: flex;
1402
+ gap: 14px;
1403
+ font-size: 13px;
1404
+ }
1405
+ .set-radios label {
1406
+ display: flex;
1407
+ align-items: center;
1408
+ gap: 5px;
1409
+ cursor: pointer;
1410
+ }
1411
+ .set-list li {
1412
+ display: flex;
1413
+ align-items: center;
1414
+ gap: 6px;
1415
+ }
1416
+ .set-x {
1417
+ font: 12px/1 system-ui;
1418
+ padding: 0 4px;
1419
+ cursor: pointer;
1420
+ background: none;
1421
+ border: none;
1422
+ color: var(--d-text-muted);
1423
+ }
1424
+ .set-x:hover {
1425
+ color: var(--d-status-warning);
1426
+ }
1427
+ .set-add {
1428
+ display: flex;
1429
+ gap: 6px;
1430
+ margin-top: 8px;
1431
+ }
1432
+ .set-add input {
1433
+ flex: 1;
1434
+ min-width: 0;
1435
+ padding: 3px 6px;
1436
+ font: 12px var(--d-font-mono);
1437
+ background: var(--d-bg-surface);
1438
+ color: var(--d-text-primary);
1439
+ border: 1px solid var(--d-border);
1440
+ border-radius: var(--d-radius-sm);
1441
+ }
1442
+ .set-actions {
1443
+ display: flex;
1444
+ justify-content: flex-end;
1445
+ gap: 8px;
1446
+ margin-top: 18px;
1447
+ padding-top: 12px;
1448
+ border-top: 1px solid var(--d-border);
1449
+ }
1450
+ .set-actions button,
1451
+ .set-add button {
1452
+ font: 12px/1 system-ui;
1453
+ padding: 6px 10px;
1454
+ cursor: pointer;
1455
+ background: var(--d-bg-surface);
1456
+ color: var(--d-text-primary);
1457
+ border: 1px solid var(--d-border);
1458
+ border-radius: var(--d-radius-sm);
1459
+ }
1460
+ .set-actions button:disabled {
1461
+ opacity: 0.5;
1462
+ cursor: default;
1463
+ color: var(--d-text-muted);
1464
+ }
1465
+ .set-actions button[data-settings-save]:not(:disabled) {
1466
+ border-color: var(--d-accent);
1467
+ color: var(--d-accent);
1468
+ }
1469
+ .settings-body code {
1470
+ font: 12px var(--d-font-mono);
1471
+ background: var(--d-bg-surface);
1472
+ padding: 1px 4px;
1473
+ border-radius: var(--d-radius-xs);
1474
+ }
1475
+ .help-body h3 {
1476
+ font: 600 13px/1.3 system-ui;
1477
+ margin: 18px 0 6px;
1478
+ }
1479
+ .help-body h3:first-child {
1480
+ margin-top: 0;
1481
+ }
1482
+ .help-body p {
1483
+ margin: 0 0 8px;
1484
+ font-size: 13px;
1485
+ color: var(--d-text-secondary);
1486
+ }
1487
+ .help-body dt {
1488
+ font: 600 12px var(--d-font-mono);
1489
+ margin-top: 8px;
1490
+ }
1491
+ .help-body dd {
1492
+ margin: 2px 0 0;
1493
+ font-size: 13px;
1494
+ color: var(--d-text-secondary);
1495
+ }
1496
+ .help-body code {
1497
+ font: 12px var(--d-font-mono);
1498
+ background: var(--d-bg-surface);
1499
+ padding: 1px 4px;
1500
+ border-radius: var(--d-radius-xs);
1501
+ }
1502
+ mark {
1503
+ background: var(--d-accent-wash);
1504
+ color: inherit;
1505
+ border-radius: 2px;
1506
+ }
1507
+ kbd {
1508
+ font: 11px/1 var(--d-font-mono);
1509
+ padding: 2px 5px;
1510
+ border: 1px solid var(--d-border);
1511
+ border-bottom-width: 2px;
1512
+ border-radius: var(--d-radius-xs);
1513
+ color: var(--d-text-muted);
1514
+ }