@osdlc/wayfinder 0.7.1 → 0.7.3

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.
@@ -12,9 +12,9 @@
12
12
  --d-border-subtle: #ebebf0;
13
13
  --d-accent: #1d59d8;
14
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. */
15
+ /* The label drawn on an accent fill. It follows the ground scale rather
16
+ than being a fixed white, so a pressed control is dark-on-hue in dark
17
+ mode. White on the dark accent is 2.56:1 and fails AA. */
18
18
  --d-accent-fg: #ffffff;
19
19
  --d-status-success: #188a46;
20
20
  --d-status-error: #d70015;
@@ -32,12 +32,12 @@
32
32
  --head-h: 28px; /* group-header height; the sticky stack counts in these */
33
33
  --chrome-h: 0px; /* measured at runtime — see measureChrome() */
34
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. */
35
+ /* Dark is declared twice, on purpose. The media query is the system default,
36
+ which applies while `data-theme` is absent. The attribute selector is the
37
+ explicit choice, which must win in both directions, so light must also be
38
+ reachable on a machine set to dark. With the dark palette only inside the
39
+ media query, "Light" would do nothing there. The two blocks must keep
40
+ identical values. */
41
41
  :root[data-theme='dark'],
42
42
  :root:not([data-theme='light']) {
43
43
  color-scheme: light dark;
@@ -85,9 +85,9 @@
85
85
  * {
86
86
  box-sizing: border-box;
87
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. */
88
+ /* Text for assistive tech only. It stays in the accessibility tree (clipped
89
+ to a pixel rather than `display: none`), which gives an element whose
90
+ whole meaning is an icon a name to announce. */
91
91
  .sr {
92
92
  position: absolute;
93
93
  width: 1px;
@@ -106,8 +106,8 @@ body {
106
106
  'Segoe UI',
107
107
  sans-serif;
108
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. */
109
+ /* Status, search box and tabs stay together: the group headers stick below
110
+ this block, and need one measurable height to offset by. */
111
111
  #chrome {
112
112
  position: sticky;
113
113
  top: 0;
@@ -118,8 +118,8 @@ body {
118
118
  header {
119
119
  padding: 12px 16px 0;
120
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. */
121
+ /* Wraps rather than shrinking: below about 1100px the clusters drop to a
122
+ second line instead of squeezing the search field to a few characters. */
123
123
  .searchrow {
124
124
  display: flex;
125
125
  gap: 8px;
@@ -127,12 +127,11 @@ header {
127
127
  flex-wrap: wrap;
128
128
  }
129
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. */
130
+ goes to the query. It also positions the inline Fuzzy/Exact toggle, which
131
+ sits against the field's right inside edge. */
132
+ /* The min-width decides when the row wraps. 260 is the short placeholder
133
+ plus the inline toggle's 112px reserve, so the field never shows a clipped
134
+ word. Below that the clusters drop to a second line. */
136
135
  .searchbox {
137
136
  position: relative;
138
137
  display: flex;
@@ -143,17 +142,17 @@ header {
143
142
  flex: 1;
144
143
  font: 13px/1.4 var(--d-font-mono);
145
144
  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. */
145
+ /* An input's default intrinsic width plus the 112px reserve below gives a
146
+ min-content width of about 290px, more than the box above will ever be,
147
+ and a flex item's default `min-width: auto` will not go below it. The
148
+ field would then draw outside its own box, over the Scope cluster. The
149
+ box's min-width decides when the row wraps; the field just has to fit
150
+ the box. */
152
151
  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. */
152
+ /* Room for the inline mode toggle. It is 94px wide and inset 6px from the
153
+ field's right edge, so 112px leaves about 12px of clear space and text
154
+ never slides under it. Measured: if the toggle's font or padding
155
+ changes, measure this again. */
157
156
  padding-right: 112px;
158
157
  background: var(--d-bg-surface);
159
158
  color: var(--d-text-primary);
@@ -165,8 +164,8 @@ header {
165
164
  outline-offset: -1px;
166
165
  }
167
166
 
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. */
167
+ /* Groups of related controls, with a quiet label. The label is a span, not a
168
+ control, so it takes no tab stop and announces nothing. */
170
169
  .cluster {
171
170
  display: flex;
172
171
  gap: 6px;
@@ -182,11 +181,10 @@ header {
182
181
  user-select: none;
183
182
  }
184
183
 
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. */
184
+ /* One visible focus ring on everything focusable, so tabbing through the
185
+ toolbar shows where focus is. It is offset outward so the button's own
186
+ border does not hide it. `:focus-visible` rather than `:focus` keeps it
187
+ off a mouse click. */
190
188
  :where(button, input, [tabindex]):focus-visible {
191
189
  outline: 2px solid var(--d-accent);
192
190
  outline-offset: 2px;
@@ -196,10 +194,10 @@ header {
196
194
  .tabs button[data-runner]:focus-visible {
197
195
  outline-offset: -2px;
198
196
  }
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. */
197
+ /* `overflow: visible`, so the group box does not clip the outward focus ring
198
+ on a segment's button. With visible overflow the group's rounding no
199
+ longer clips its buttons, so the end buttons round themselves below.
200
+ Otherwise a square button corner would sit in a rounded group. */
203
201
  .seg {
204
202
  display: flex;
205
203
  border: 1px solid var(--d-border);
@@ -224,11 +222,11 @@ header {
224
222
  background: var(--d-accent);
225
223
  color: var(--d-accent-fg);
226
224
  }
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. */
225
+ /* How a query matches belongs to the query, so the toggle sits in the field
226
+ it controls. It is smaller than a toolbar segment and has a ring, so it
227
+ looks like a control inside the box rather than trailing text. */
228
+ /* The 6px inset from the field's right edge leaves room for this toggle's
229
+ focus ring outside it. */
232
230
  .seg.inline {
233
231
  position: absolute;
234
232
  right: 6px;
@@ -240,8 +238,8 @@ header {
240
238
  font: 11px/1 system-ui;
241
239
  padding: 4px 8px;
242
240
  }
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. */
241
+ /* One button that shows the current colour scheme, rather than three buttons
242
+ for the choices. Square, at the toolbar's height, so the glyph has room. */
245
243
  .toolbtn.iconbtn {
246
244
  font-size: 14px;
247
245
  line-height: 1;
@@ -263,16 +261,17 @@ header {
263
261
  color: var(--d-accent-fg);
264
262
  border-color: var(--d-accent);
265
263
  }
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.
264
+ /* 10px, which each tab's `i` button needs to its right for a 24px hit target
265
+ that stops 2px short of the next tab. At 8px the overlay's right edge
266
+ would meet that tab's left edge exactly, and on a row at a fractional
267
+ position, pixel snapping would put the overlay on both sides of the tab
268
+ boundary. A click just inside a tab would then open the previous runner's
269
+ modal.
271
270
 
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. */
271
+ It wraps rather than overflowing, so below about 926px the page does not
272
+ scroll sideways. A second line costs nothing (the sticky header's height
273
+ is measured, not assumed) and keeps every tab visible, which a scroller
274
+ inside the strip would not. */
276
275
  .tabs {
277
276
  display: flex;
278
277
  flex-wrap: wrap;
@@ -282,22 +281,21 @@ header {
282
281
  }
283
282
  /* Positioning context for the drop-down, which hangs below the button. The
284
283
  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. */
284
+ flex row and needs no margin. */
286
285
  .picker {
287
286
  position: relative;
288
287
  }
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. */
288
+ /* The element render() writes the picker into. A div, because the picker is
289
+ block-level and cannot be inside a span. */
291
290
  #pickerhost {
292
291
  display: flex;
293
292
  }
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. */
293
+ /* Height capped against the viewport, and scrolled inside itself. It hangs
294
+ out of a sticky #chrome, so scrolling the page does not move it, and a
295
+ long menu would run off the bottom of the window with no way to reach it.
296
+ Thirteen runners pass that point below about 570px of window height. The
297
+ offset is the sticky header's measured height, which is more than the
298
+ menu's real top, so the cap itself never overflows. */
301
299
  .pickmenu {
302
300
  position: absolute;
303
301
  right: 0;
@@ -327,10 +325,10 @@ header {
327
325
  .pick:hover {
328
326
  background: var(--d-bg-hover);
329
327
  }
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. */
328
+ /* The row is a plain div, not a <label>. The info button sits beside the
329
+ label (see view.ts), and a label around the whole row would also pass that
330
+ button's click to the checkbox. Only the inner label, around the
331
+ checkbox, name and count, toggles the runner on click. */
334
332
  .pick-label {
335
333
  display: flex;
336
334
  align-items: center;
@@ -355,13 +353,12 @@ header {
355
353
  cursor: grabbing;
356
354
  }
357
355
 
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. */
356
+ /* The drag image: a solid copy of what is being dragged, raised off the page.
357
+ The browser's own drag image is nearly transparent and looks like a
358
+ rendering error. It is placed off-screen because setDragImage only needs
359
+ it rendered, not seen, and there it inherits none of its surface's
360
+ styles. So it has its own card styling, and the parts that belong to the
361
+ row rather than to the runner (the grip, the info button) are left out. */
365
362
  [data-drag-ghost] {
366
363
  position: fixed;
367
364
  left: 0;
@@ -374,14 +371,14 @@ header {
374
371
  padding: 6px 10px;
375
372
  pointer-events: none;
376
373
  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.
374
+ /* An accent tint over the surface colour, not the page background.
375
+ --d-bg-base is the background in both themes, so a card in that colour
376
+ would look like an outlined rectangle rather than something picked up.
377
+ Mixing toward the accent raises it off either background.
381
378
 
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. */
379
+ Two shadows, because one cannot serve both themes. Black shows the lift
380
+ on white and is invisible on #14161a, so an accent halo shows it there.
381
+ Each is harmless where the other does the work. */
385
382
  background: color-mix(in srgb, var(--d-accent) 14%, var(--d-bg-surface));
386
383
  color: var(--d-text-primary);
387
384
  border: 1px solid var(--d-accent);
@@ -410,15 +407,15 @@ header {
410
407
  color: var(--d-text-muted);
411
408
  font-size: 11px;
412
409
  }
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. */
410
+ /* The dragged element itself, faded because the drag image is the copy the
411
+ eye follows. The preview moves it, so it marks the slot the drop would
412
+ take, not the one it started in. */
416
413
  .dragging {
417
414
  opacity: 0.4;
418
415
  }
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. */
416
+ /* The siblings the preview moves slide to their new places. input.ts sets
417
+ the transform (the FLIP technique); this only sets how long it takes. With
418
+ reduced motion they jump instead. */
422
419
  .tabs .tab,
423
420
  .pickmenu .pick {
424
421
  transition: transform 0.12s ease;
@@ -434,17 +431,17 @@ header {
434
431
  color: var(--d-text-muted);
435
432
  font-size: 11px;
436
433
  }
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.
434
+ /* The picker's sort header. It reorders the one saved order, so it looks like
435
+ a table header over the rows rather than a second control: quiet,
436
+ uppercase, on the menu's background.
440
437
 
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. */
438
+ Sticky, because the menu scrolls: a header that scrolled away would leave
439
+ the rows with nothing naming their order. It sticks below the menu's 6px
440
+ padding, and the shadow fills that band in the menu's background so rows
441
+ do not show through above it. */
445
442
  .pickhead {
446
443
  /* 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. */
444
+ sits over the row's first control rather than 4px short of it. */
448
445
  display: flex;
449
446
  gap: 8px;
450
447
  align-items: center;
@@ -457,16 +454,16 @@ header {
457
454
  background: var(--d-bg-base);
458
455
  box-shadow: 0 -6px 0 var(--d-bg-base);
459
456
  }
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. */
457
+ /* Takes the width of the row's drag handle, and is invisible because there
458
+ is nothing to drag in a header. */
462
459
  .pickhead .grip {
463
460
  visibility: hidden;
464
461
  }
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. */
462
+ /* The shown column sits directly over the checkboxes it sorts by. It has no
463
+ horizontal padding that would push it out of line, and its content is
464
+ left-aligned so the glyph's left edge meets the checkbox's. The width is
465
+ fixed and leaves room for the direction arrow, so activating the sort does
466
+ not move the two columns beside it. */
470
467
  .picksort[data-sort-runners='shown'] {
471
468
  flex: 0 0 24px;
472
469
  padding-left: 0;
@@ -496,8 +493,8 @@ header {
496
493
  color: var(--d-accent-hover);
497
494
  border-color: var(--d-border);
498
495
  }
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. */
496
+ /* Pressed means "the order on screen matches this sort". It is computed on
497
+ every render, so it clears as soon as a drag breaks the sort. */
501
498
  .picksort[aria-pressed='true'] {
502
499
  color: var(--d-text-primary);
503
500
  }
@@ -526,11 +523,11 @@ header {
526
523
  color: var(--d-accent-hover);
527
524
  border-color: var(--d-accent);
528
525
  }
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.
526
+ /* Limited to [data-runner]: the tab row also holds .tabinfo, and a bare
527
+ `.tabs button` selector is more specific than .tabinfo's single-class rule
528
+ and would override its size. Only real tabs have data-runner.
532
529
 
533
- `nowrap`, or a long label breaks across two lines inside its own button
530
+ `nowrap`, or a long label would break across two lines inside its button
534
531
  while the strip still has room to wrap instead. */
535
532
  .tabs button[data-runner] {
536
533
  font: 13px/1 system-ui;
@@ -556,8 +553,8 @@ header {
556
553
  font-size: 11px;
557
554
  margin-left: 5px;
558
555
  }
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. */
556
+ /* A runner withheld because execution is off. Quiet, styled like the count:
557
+ nothing failed, so it must not look like the error marker. */
561
558
  .tabs .count.exec {
562
559
  margin-left: 4px;
563
560
  padding: 1px 5px;
@@ -565,8 +562,8 @@ header {
565
562
  border: 1px solid var(--d-border);
566
563
  font-size: 10px;
567
564
  }
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. */
565
+ /* `flex: none`, so a full strip wraps rather than squeezing its tabs. A
566
+ shrunken tab moves its label away from its click area. */
570
567
  .tab {
571
568
  display: flex;
572
569
  align-items: center;
@@ -602,18 +599,17 @@ header {
602
599
  width: 15px;
603
600
  height: 15px;
604
601
  }
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.
602
+ /* Quiet, but not looking disabled. A control at .35 opacity is the usual
603
+ sign for disabled, so this button uses full opacity in the muted text
604
+ colour on a subtle ring. The modal stays reachable by Tab: the tab row's
605
+ roving group is limited to `button[data-runner]`, so .tabinfo keeps its
606
+ own tab stop.
611
607
 
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. */
608
+ `flex: none`, or a crowded row would shrink the button (16px to 14.4px at
609
+ 1000px, 12.2px at 900px) while the 24px overlay below stayed the same
610
+ size. The overlay would then reach almost 4px past the next tab's left
611
+ edge and take its clicks. The strip wraps instead of crowding, and this
612
+ keeps the ring from shrinking either way. */
617
613
  .tabinfo {
618
614
  font: 600 11px/1 var(--d-font-mono);
619
615
  width: 16px;
@@ -629,18 +625,16 @@ header {
629
625
  border-radius: 50%;
630
626
  }
631
627
  /* 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.
628
+ transparent overlay enlarges the click area without enlarging the ring, so
629
+ the tab row stays compact. It is out of flow, so the glyph does not move.
635
630
 
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. */
631
+ It grows outward to the right, not from the centre. A centred 24px box
632
+ would reach back over its own tab, so clicking that tab's right edge would
633
+ open the info modal instead of selecting the runner. Anchored at the
634
+ button's left edge, it covers the button and 8 of the 10px gap after it:
635
+ 24px of target with 2px of clear space before the next tab, so a click at
636
+ that tab's edge still selects the tab. Both numbers matter: 24 is the
637
+ minimum target, so the slack comes from the gap, not the target. */
644
638
  .tabinfo::before {
645
639
  content: '';
646
640
  position: absolute;
@@ -654,15 +648,15 @@ header {
654
648
  color: var(--d-accent-hover);
655
649
  border-color: var(--d-accent);
656
650
  }
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. */
651
+ /* In the picker the count runs to the row's right edge, so the button needs
652
+ its own spacing. Its hit overlay reaches into the row's padding, where
653
+ nothing else is. */
660
654
  .pick .tabinfo {
661
655
  margin-left: 4px;
662
656
  }
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. */
657
+ /* The trust grant, where the picker row names the withheld runner. Sized
658
+ down to fit the row: it is a toolbar button in a small space, not a new
659
+ kind of control. */
666
660
  .pick .toolbtn {
667
661
  margin-left: 4px;
668
662
  font-size: 11px;
@@ -670,11 +664,10 @@ header {
670
664
  white-space: nowrap;
671
665
  }
672
666
 
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. */
667
+ /* The chip in place of every empty runner's tab. Quiet on purpose: the point
668
+ of folding them is to reduce noise, so the chip should look calmer than a
669
+ real tab. It has no `data-runner`, so the tab row's roving-tabindex group
670
+ (limited to `button[data-runner]`) leaves it its own tab stop. */
678
671
  .tab-folded {
679
672
  font: 11px/1 system-ui;
680
673
  padding: 6px 10px;
@@ -690,10 +683,10 @@ header {
690
683
  color: var(--d-accent-hover);
691
684
  border-color: var(--d-accent);
692
685
  }
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. */
686
+ /* The first strip in the sticky header. Above everything, it reads as a
687
+ caption for the whole view. Between the column headers and the rows, a
688
+ count would look like a table row and separate the header from its body.
689
+ It is outside `header`, so it has its own horizontal padding. */
697
690
  .status {
698
691
  display: flex;
699
692
  gap: 14px;
@@ -709,11 +702,11 @@ header {
709
702
  color: var(--d-status-error);
710
703
  }
711
704
  /* 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. */
705
+ decision rather than reporting a number. In the status strip, between
706
+ the clock and the keyboard hints, a button would look like one more
707
+ control. Warning colour, not error, because nothing failed: something was
708
+ declined. A tinted background shows it is a different kind of thing from
709
+ the counts below. */
717
710
  .trustbar {
718
711
  display: flex;
719
712
  gap: 12px;
@@ -728,13 +721,13 @@ header {
728
721
  .trustbar[hidden] {
729
722
  display: none;
730
723
  }
731
- /* The runners are the subject of the sentence, so they carry the weight the
732
- surrounding explanation does not. */
724
+ /* The runners are the subject of the sentence, so they are emphasized and
725
+ the explanation around them is not. */
733
726
  .trustbar .who {
734
727
  font-weight: 600;
735
728
  }
736
- /* Withheld runners are not an error — nothing failed, something was
737
- declined — so they take the warning colour rather than the error one. */
729
+ /* Withheld runners are not an error (nothing failed, something was
730
+ declined), so they use the warning colour, not the error one. */
738
731
  .status .warn {
739
732
  color: var(--d-status-warning);
740
733
  }
@@ -760,17 +753,17 @@ main {
760
753
  color: var(--d-text-muted);
761
754
  }
762
755
 
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).
756
+ /* The call-chain tree: each level indents one step, and leaves are table
757
+ rows. Every header sticks below the sticky header and below its own
758
+ parents, at a top offset this depth's inline style sets. A header stops
759
+ sticking where its `.node` ends, so the next group at the same depth
760
+ pushes it off screen rather than piling up on it. That is why the height
761
+ must be fixed, and why the whole stack must agree on it (--head-h).
769
762
 
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. */
763
+ z-index is set inline, per depth, and decreases with depth. A shallower
764
+ header sticks higher on screen, so it must draw above the deeper ones
765
+ moving up through its band. With one shared z-index the deeper header
766
+ would win on DOM order and scroll over its own parent. */
774
767
  .node > .head {
775
768
  position: sticky;
776
769
  background: var(--d-bg-base);
@@ -810,12 +803,10 @@ main {
810
803
  letter-spacing: 0.04em;
811
804
  text-transform: uppercase;
812
805
  }
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. */
806
+ /* One level of nesting is exactly 25px, and view.ts repeats that number as
807
+ INDENT_PER_LEVEL: `outdent()` and `colgroup()` both compute pixel
808
+ positions from it. If this margin and padding stop adding up to 25, every
809
+ table's left edge drifts away from the Command column. */
819
810
  .kids {
820
811
  margin-left: 14px;
821
812
  padding-left: 11px;
@@ -825,30 +816,27 @@ main {
825
816
  }
826
817
 
827
818
  /* 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.
819
+ than the parent drawing one long line: a vertical trunk down the child's
820
+ full height, and a horizontal arm to the child's header at its middle.
821
+ Because the trunk belongs to the child and spans the child's own box, a
822
+ collapsed group shrinks to its header and its line stops there. Limited
823
+ to `.kids > .node`, so a root node, which has no parent, gets nothing.
834
824
 
835
- The trunk sits at -11px, the x the old `.kids` border-left occupied, so
836
- the tree's vertical rhythm is unchanged.
825
+ The trunk sits at -11px, inside the `.kids` indentation.
837
826
 
838
827
  `--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.
828
+ which at 1px looks like a smudge, and these lines show structure.
829
+ --d-border stays quiet in both themes.
841
830
 
842
- `.node` is only `position: relative` — no z-index — so it creates no
831
+ `.node` is only `position: relative`, with no z-index, so it creates no
843
832
  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.
833
+ headers have an inline z-index of 20 - depth, so a stuck header always
834
+ draws over any connector scrolling under it.
846
835
 
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. */
836
+ Nothing connects to the leaf `<table>`. `outdent()` moves it back out of
837
+ the tree indentation so the Command column is at one x at every depth,
838
+ so it has no left edge inside the indentation for an arm to reach. The
839
+ connectors join a container to its child group headers only. */
852
840
  .kids > .node {
853
841
  position: relative;
854
842
  }
@@ -861,9 +849,9 @@ main {
861
849
  width: 1px;
862
850
  background: var(--d-border);
863
851
  }
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. */
852
+ /* The last group ends the trunk at its own header, which turns the tee
853
+ into an elbow. `:last-of-type` and not `:last-child`, because the leaf
854
+ table comes after the child groups. */
867
855
  .kids > .node:last-of-type::before {
868
856
  bottom: auto;
869
857
  height: calc(var(--head-h) / 2);
@@ -878,9 +866,9 @@ main {
878
866
  background: var(--d-border);
879
867
  }
880
868
 
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. */
869
+ /* `fixed` makes the columns line up. With `auto`, every group is its own
870
+ table and each sizes to its widest chain, so the command column lands
871
+ somewhere different in each. */
884
872
  table {
885
873
  width: 100%;
886
874
  border-collapse: collapse;
@@ -892,55 +880,55 @@ tbody tr {
892
880
  tbody tr:hover {
893
881
  background: var(--d-bg-hover);
894
882
  }
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. */
883
+ /* A faint line of the runner's brand colour down the row's left edge, enough
884
+ to tell moon rows from cargo rows at a glance, not enough to look like
885
+ state. Declared before .enter-target and .copied so those win the
886
+ box-shadow at equal specificity: the tint must never compete with the
887
+ "Enter takes this row" bar or the copied flash. color-mix against
888
+ transparent works on both themes' row backgrounds. A report without a
889
+ brand colour sets no --rb, so its rows have no tint. */
902
890
  tbody tr.branded {
903
891
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--rb) 50%, transparent);
904
892
  }
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(). */
893
+ /* Enter takes this row, so the whole row shows it. A single highlighted
894
+ button would be easy to miss and easy to mistake for hover. While focus is
895
+ in the list this follows the focused row; otherwise it is the top hit. See
896
+ markEnterTarget(). */
909
897
  tbody tr.enter-target {
910
898
  background: var(--d-bg-hover);
911
899
  box-shadow: inset 2px 0 0 var(--d-accent);
912
900
  }
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. */
901
+ /* The darker accent, not the base one: the base accent on this row's raised
902
+ background is 4.26:1 and misses AA. As a result this one Copy button does
903
+ not change colour on hover: the rule is more specific than `.copy:hover`,
904
+ and its resting state is already the hover colour. A solid background and
905
+ a heavier weight make it the row's primary action rather than one more
906
+ quiet button. */
919
907
  tbody tr.enter-target .copy {
920
908
  color: var(--d-accent-hover);
921
909
  border-color: var(--d-accent);
922
910
  background: var(--d-bg-base);
923
911
  font-weight: 600;
924
912
  }
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. */
913
+ /* The Enter marker is part of this button, not a separate chip on the left
914
+ of the row, which would get cut off. It is a pseudo-element rather than
915
+ part of the button's text because the click handler changes that text to
916
+ `copied`, which would then read `↵ copied`. The `.done` exclusion hides
917
+ the glyph at that moment. */
930
918
  tbody tr.enter-target .copy:not(.done)::before {
931
919
  content: '↵ ';
932
920
  }
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. */
921
+ /* Rows touch each other, so an outward ring on one would cover the text of
922
+ the rows above and below. The focused row's ring is inset instead. Only
923
+ `outline-offset` changes; the colour and width stay the page's one focus
924
+ style. */
937
925
  tbody tr:focus-visible {
938
926
  outline-offset: -2px;
939
927
  }
940
928
 
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". */
929
+ /* The confirmation when Enter is pressed: the row glows and fades. A green
930
+ flash rather than the accent, so "it happened" looks different from "this
931
+ is the one it would take". */
944
932
  @keyframes copied-glow {
945
933
  0% {
946
934
  background: var(--d-status-success);
@@ -974,18 +962,17 @@ td {
974
962
  vertical-align: top;
975
963
  line-height: 1.5;
976
964
  }
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. */
965
+ /* The leading column is for row indicators in general, not only services.
966
+ The brand tint stays on the row's own left edge, because it belongs to the
967
+ whole row, not to this cell. The icons are centred in a 30px column, which
968
+ leaves about 8px of clear space so an icon never sits on the 2px bar. */
982
969
  td.ind {
983
970
  padding: 5px 0;
984
971
  }
985
972
  /* 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. */
973
+ block-level, so it makes no line box of its own: a row with an indicator
974
+ is as tall as a plain one, whose 13px/1.5 text is taller than this box.
975
+ The margin moves the icons onto that text's optical centre. */
989
976
  .inds {
990
977
  display: flex;
991
978
  align-items: center;
@@ -993,12 +980,13 @@ td.ind {
993
980
  gap: 3px;
994
981
  margin-top: 3px;
995
982
  }
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. */
983
+ /* Icons have a viewBox and no size, like .ricon, so the size is set here
984
+ and currentColor passes the theme colour into the SVG. An inferred
985
+ service is quieter: the hollow glyph, in the muted text colour rather
986
+ than the success green. */
987
+ /* `relative` so the clipped `.sr` name inside is positioned here rather than
988
+ to the page, which would give the document a stray 1px box at its top
989
+ left. */
1002
990
  .ind-svc {
1003
991
  display: flex;
1004
992
  position: relative;
@@ -1042,8 +1030,8 @@ td.doc .detail {
1042
1030
  white-space: nowrap;
1043
1031
  }
1044
1032
  /* `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. */
1033
+ line to the row. The tables are fixed-layout, and a taller cell would move
1034
+ every row below it. */
1047
1035
  td.act {
1048
1036
  text-align: right;
1049
1037
  position: relative;
@@ -1078,8 +1066,8 @@ td.act {
1078
1066
  cursor: default;
1079
1067
  opacity: 0.5;
1080
1068
  }
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. */
1069
+ /* Out of flow, right-aligned under the row's buttons, so the message
1070
+ appears where the click was without moving the table. */
1083
1071
  .runerr {
1084
1072
  position: absolute;
1085
1073
  right: 8px;
@@ -1093,11 +1081,10 @@ td.act {
1093
1081
  padding: 3px 6px;
1094
1082
  }
1095
1083
 
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. */
1084
+ /* Arguments for a task with parameters. A bar at the bottom rather than a
1085
+ modal: the row that opened it stays visible, and Esc dismisses it, with no
1086
+ overlay to click past. The command prefix is static text. Only the field
1087
+ can be typed in, because the server accepts only the trailing arguments. */
1101
1088
  #runbar {
1102
1089
  position: fixed;
1103
1090
  left: 0;
@@ -1150,8 +1137,8 @@ td.act {
1150
1137
  font-family: var(--d-font-mono);
1151
1138
  }
1152
1139
 
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. */
1140
+ /* The end state: the task has the terminal and this page has nothing left
1141
+ to do, so it says so over everything rather than beside it. */
1155
1142
  #handoff {
1156
1143
  position: fixed;
1157
1144
  inset: 0;
@@ -1202,10 +1189,10 @@ td.act {
1202
1189
  border-color: var(--d-accent);
1203
1190
  }
1204
1191
 
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. */
1192
+ /* The column headers are in the sticky header, not in each group's table,
1193
+ where they would repeat down the page. They are their own table using the
1194
+ same depth-0 colgroup, which lines up because every table's command
1195
+ column starts at the same x. */
1209
1196
  .colheads {
1210
1197
  padding: 0 16px;
1211
1198
  background: var(--d-bg-base);
@@ -1239,8 +1226,8 @@ dialog#settings::backdrop {
1239
1226
  background: rgba(0, 0, 0, 0.45);
1240
1227
  }
1241
1228
 
1242
- /* The settings screen. Reading only — every value here is reported, none is
1243
- editable yet, so nothing in this block styles a control. */
1229
+ /* The settings screen. Values are shown with the layer they came from, and
1230
+ the runners, discovery and excluded paths can be edited and saved. */
1244
1231
  .set-head h2 {
1245
1232
  font: 600 15px/1.3 system-ui;
1246
1233
  margin: 0;
@@ -1265,8 +1252,8 @@ dialog#settings::backdrop {
1265
1252
  align-items: baseline;
1266
1253
  gap: 12px;
1267
1254
  }
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. */
1255
+ /* Which layer supplied the value. This screen exists to answer that, so it is
1256
+ on every section, not only the surprising ones. */
1270
1257
  .set-layer {
1271
1258
  font: 400 10px/1 system-ui;
1272
1259
  text-transform: none;
@@ -1329,8 +1316,8 @@ dialog#settings::backdrop {
1329
1316
  .set-warnings p {
1330
1317
  margin: 0;
1331
1318
  }
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. */
1319
+ /* An edit that has not been written. Shown on its section as well as in the
1320
+ title, so a scrolled screen still says which key is unsaved. */
1334
1321
  .set-layer[data-layer='staged'] {
1335
1322
  color: var(--d-accent);
1336
1323
  border-color: var(--d-accent);
@@ -1344,9 +1331,9 @@ dialog#settings::backdrop {
1344
1331
  margin-left: 6px;
1345
1332
  vertical-align: middle;
1346
1333
  }
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. */
1334
+ /* The picker's footnote: the checkboxes above filter this session, and the
1335
+ saved setting is one click away. Quiet, because it points somewhere and
1336
+ is not a control. */
1350
1337
  .picknote {
1351
1338
  margin: 0;
1352
1339
  padding: 8px 10px;