@floless/app 0.137.4 → 0.138.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 (47) hide show
  1. package/dist/floless-server.cjs +47618 -26808
  2. package/dist/internal-workflows/floless-rfi-gmail-send/.floless-owner.json +1 -0
  3. package/dist/internal-workflows/floless-rfi-gmail-send/floless-rfi-gmail-send.flo +32 -0
  4. package/dist/schemas/steel.model.v2.schema.json +218 -27
  5. package/dist/skills/floless-app-knowledge/SKILL.md +5 -2
  6. package/dist/skills/floless-app-rfi/SKILL.md +410 -0
  7. package/dist/skills/floless-app-routines/SKILL.md +7 -2
  8. package/dist/skills/floless-app-routines/references/routines-api.md +14 -5
  9. package/dist/skills/floless-app-steel-model/SKILL.md +34 -32
  10. package/dist/skills/floless-app-steel-takeoff/SKILL.md +498 -34
  11. package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +6 -6
  12. package/dist/skills/floless-app-tweak-contract/SKILL.md +6 -2
  13. package/dist/templates/floless-workspace-knowledge.flo +20 -4
  14. package/dist/templates/steel-model.flo +27 -15
  15. package/dist/web/app.css +559 -131
  16. package/dist/web/app.js +216 -54
  17. package/dist/web/aware.js +982 -128
  18. package/dist/web/checkpoint-standard.js +218 -0
  19. package/dist/web/commands-filter.js +23 -0
  20. package/dist/web/commands-shell.js +237 -5
  21. package/dist/web/commands-steel.js +172 -47
  22. package/dist/web/connection-review-client.js +2 -2
  23. package/dist/web/display-units.js +243 -0
  24. package/dist/web/grid-core.js +470 -56
  25. package/dist/web/grid-display.js +344 -0
  26. package/dist/web/index.html +106 -66
  27. package/dist/web/instructor-reporter.js +5 -0
  28. package/dist/web/instructor.js +175 -33
  29. package/dist/web/json-schema-subset.js +145 -25
  30. package/dist/web/steel-3d-core.js +124 -140
  31. package/dist/web/steel-3d-view.js +352 -100
  32. package/dist/web/steel-catalog-picker.js +98 -15
  33. package/dist/web/steel-detail-refs.js +1 -1
  34. package/dist/web/steel-editor.html +6458 -915
  35. package/dist/web/steel-filter.html +404 -57
  36. package/dist/web/steel-model-adapter.js +1 -1
  37. package/dist/web/steel-model-commands.js +71 -64
  38. package/dist/web/steel-model-v2-client-validation.js +10 -3
  39. package/dist/web/steel-model-v2-commands.js +268 -76
  40. package/dist/web/steel-model-v2-projection.js +18 -17
  41. package/dist/web/steel-plan-transform.js +13 -13
  42. package/dist/web/steel-plan-view-id.js +1 -7
  43. package/dist/web/steel-read-confidence.js +454 -5
  44. package/dist/web/steel-units.js +17 -3
  45. package/dist/web/steel-view-generation.js +21 -7
  46. package/dist/web/workspaces.js +2178 -497
  47. package/package.json +4 -1
package/dist/web/app.css CHANGED
@@ -28,7 +28,58 @@
28
28
  --info: #67b3ff;
29
29
  --mono: "JetBrains Mono", "SF Mono", "Consolas", "Monaco", monospace;
30
30
  --ui: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
31
- }
31
+ /* MOTION. Three durations and one curve, so every collapse/expand/hover in the shell moves at the
32
+ same speed instead of each surface inventing its own. --dur-fast is for a colour or border
33
+ swap you should not notice; --dur for a disclosure (a stub fading in, a caret turning);
34
+ --dur-slow for a layout change big enough that the eye needs to follow it (a pane collapsing).
35
+ The curve leaves quickly and settles slowly, which is what makes a pane read as "moved aside"
36
+ rather than "snapped". Every rule below honours prefers-reduced-motion. */
37
+ --dur-fast: 120ms;
38
+ --dur: 180ms;
39
+ --dur-slow: 260ms;
40
+ --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
41
+ /* ONE width for every folded pane — Narrative, Inspect, References, Filters and the steel
42
+ editor's Inspector — so they cannot drift apart again; each used to name 48px for itself.
43
+ The strip only has to hold a 10px vertical label and the small stub icon, because the grip
44
+ sits on the seam rather than inside it, so it can be narrower than that. The two standalone
45
+ pages mirror this value under their own :root (they cannot load this file). */
46
+ --pane-collapsed: 36px;
47
+ /* The header band. Named once because four `grid-template-rows` and the ≡ menu's `top`
48
+ all have to agree on it. Its floor is the ~33px of the global `select, button` rule
49
+ (further down) — 40px leaves those controls a few px of air, and it is also what sets the ≡
50
+ button's height, since that button is sized from this token rather than its own. */
51
+ --header-h: 40px;
52
+ /* The ≡ button is INSET by this much from all four sides of the cell it occupies — the
53
+ folded Narrative strip's width across, the header band's height down. That single inset
54
+ is what makes its margins equal on every side AND puts its axis on --pane-collapsed/2,
55
+ the same axis as the vertical NARRATIVE label directly below it; the two only agree
56
+ because the button is sized FROM the two tokens rather than given a size of its own.
57
+ It comes out taller than it is wide (the band is deeper than the strip is broad). */
58
+ --ham-inset: 6px;
59
+ /* How tall a pane grip is. One value for all four (Narrative, Inspect, References, Filters and
60
+ the steel editor's Inspector) for the same reason --pane-collapsed is one value: they sit on
61
+ the same seams and any disagreement reads as a mistake. The two standalone pages mirror it
62
+ under their own :root. */
63
+ --grip-h: 32px;
64
+ }
65
+
66
+ /* The registration that lets a pane collapse ANIMATE, and it is subtle enough to be worth stating.
67
+ `grid-template-columns` on .app is built from `var(--left-width) … var(--right-width)`, and a
68
+ transition on the TRACK LIST cannot interpolate an unregistered custom property — it holds the
69
+ start value, so the class lands, the pane's contents hide, and the column never moves. Measured
70
+ on this build: with `transition: grid-template-columns`, toggling `.left-collapsed` left
71
+ `--left-width` reading 48px while the track stayed `340px 1258px 0px` and `.chat` stayed 340px
72
+ wide — a "collapsed" pane that is still full width with nothing in it.
73
+
74
+ Registering the two widths here and transitioning THE CUSTOM PROPERTIES (see `.app:not(.resizing)`)
75
+ interpolates them, and the track re-resolves off the new value every frame. Measured on the same
76
+ build: 340 → 267 → 194 → 121 → 48px, with `.chat` following exactly.
77
+
78
+ `inherits: true` because a registered property that does not inherit would stop resolving in any
79
+ descendant rule that reads it; nothing depends on that today, but a non-inheriting width token is
80
+ a trap for whoever adds the first such rule. */
81
+ @property --left-width { syntax: "<length>"; inherits: true; initial-value: 340px; }
82
+ @property --right-width { syntax: "<length>"; inherits: true; initial-value: 420px; }
32
83
 
33
84
  html, body { height: 100%; overflow: hidden; }
34
85
  body {
@@ -104,7 +155,7 @@
104
155
  /* ========== LAYOUT ========== */
105
156
  .app {
106
157
  display: grid;
107
- grid-template-rows: 60px 1fr 44px;
158
+ grid-template-rows: var(--header-h) 1fr 44px;
108
159
  --left-width: 340px;
109
160
  --right-width: 420px;
110
161
  /* minmax(0, 1fr) (not the default minmax(auto, 1fr)) lets the center column
@@ -120,42 +171,110 @@
120
171
  background: var(--border);
121
172
  }
122
173
  .app.resizing { user-select: none; }
123
- .app:not(.resizing) { transition: grid-template-columns 0.25s ease; }
124
- .app.left-collapsed { --left-width: 48px !important; }
125
- .app.right-collapsed { --right-width: 48px !important; }
174
+ /* From master: during a drag the pointer must not be eaten by an iframe in the pane. */
175
+ .app.resizing iframe { pointer-events: none; }
176
+ /* Transition the WIDTHS, not the track list — see the @property block above for why the track list
177
+ cannot work. Suppressed while dragging so a resize still tracks the pointer 1:1. */
178
+ .app:not(.resizing) {
179
+ transition: --left-width var(--dur-slow) var(--ease), --right-width var(--dur-slow) var(--ease);
180
+ }
181
+ .app.left-collapsed { --left-width: var(--pane-collapsed) !important; }
182
+ .app.right-collapsed { --right-width: var(--pane-collapsed) !important; }
183
+ @media (prefers-reduced-motion: reduce) { .app:not(.resizing) { transition: none; } }
184
+
185
+ /* ========== PANE RAILS ==========
186
+ One 13px column per side, sitting in the CANVAS grid area and pulled half its width back over
187
+ the grid's 1px gap, so it straddles the seam between pane and canvas and tracks the grid without
188
+ reading --left-width at all. It holds the drag surface AND the collapse grip.
189
+
190
+ It is not inside the panes, and that is the whole point: a pane is `overflow:hidden`, which
191
+ slices anything at its edge, and moving the control inward to escape that puts it on top of the
192
+ message list — measured before this change, the grip covered a narrative card by 3px and sat
193
+ above `.messages` in the hit-test stack, which is what "it overlaps the content" looked like.
194
+
195
+ No seam is painted here. `.app` already draws the 1px line between pane and canvas as its `gap`
196
+ over a --border background; a rail-drawn border would be a second one. */
197
+ .pane-rail {
198
+ align-self: stretch;
199
+ position: relative;
200
+ /* 13px, not 11: the rail IS the drag target (its .resize-handle is inset:0), and a resize strip
201
+ narrower than 12px is the one that gets lost when the pointer crosses into a workspace iframe.
202
+ Purely a hit-area figure — the seam is drawn by ::before and the grip is its own 11px. */
203
+ width: 13px;
204
+ z-index: 12;
205
+ display: flex;
206
+ align-items: center;
207
+ justify-content: center;
208
+ pointer-events: none; /* the rail is a container; only its children take input */
209
+ }
210
+ .pane-rail > * { pointer-events: auto; }
211
+ /* PLACEMENT is per-context; the block above is only the look. In the shell the rails sit in the
212
+ canvas grid area; the Knowledge step reuses the same rail inside its own two-column split, where
213
+ it must span that split and NOT the window (see .kb-split). */
214
+ .app > .pane-rail { grid-area: canvas; }
215
+ .pane-rail-left { justify-self: start; margin-left: -6px; }
216
+ .pane-rail-right { justify-self: end; margin-right: -6px; }
217
+ /* THE SEAM the grip hangs on, and it is what makes the grip read as a handle rather than a pill
218
+ dropped in empty space. `.app`'s 1px `gap` already draws a line here, but in --border against
219
+ --surface it is all but invisible, so the grip had nothing to belong to. This redraws the same
220
+ 1px, on the same axis (the rail is centred on the gap), one step stronger — and the grip, being
221
+ taller and opaque, breaks it in the middle the way a real divider handle does.
222
+ Hover lights the whole seam from the control, so it is obvious the line and the grip are one
223
+ thing and that the line is draggable. */
224
+ .pane-rail::before {
225
+ content: "";
226
+ position: absolute;
227
+ top: 0;
228
+ bottom: 0;
229
+ left: 50%;
230
+ width: 2px;
231
+ transform: translateX(-50%);
232
+ /* A 2px SEPARATOR on the seam, not a filled column. Two earlier attempts bracket why:
233
+ painting the rail's full 11px in a lighter tone laid a foreign stripe between pane and canvas,
234
+ and painting it in --surface to blend it away removed the boundary altogether — the panes lost
235
+ their visible edge and the grips read as buttons floating in the dark with nothing to attach
236
+ to and no telling where the container ended.
237
+ A line does both jobs: it is thin enough to belong to the seam rather than sit on it, and it
238
+ still says exactly where the pane stops. The grip, being wider and opaque, breaks it in the
239
+ middle the way a real divider handle does. */
240
+ background: color-mix(in srgb, var(--text-dim) 45%, var(--surface-3));
241
+ transition: background var(--dur-fast) var(--ease);
242
+ }
243
+ /* HOVER LIGHTS THE SEAM, NOT THE BAR. This bar runs the full height of the window, so painting the
244
+ whole of it --accent-dim on hover threw a hard blue stripe across the screen every time the pointer
245
+ crossed the divider — far too loud for "you are over a control". Hover now turns only the 2px seam
246
+ --accent, and dragging brightens it to --accent-bright, where the full-height line showing exactly
247
+ what you are resizing is the point and the state is one you deliberately entered. */
248
+ .pane-rail:has(.panel-toggle:hover)::before,
249
+ .pane-rail:has(.resize-handle:hover)::before { background: var(--accent); }
250
+ .pane-rail:has(.resize-handle.dragging)::before { background: var(--accent-bright); }
251
+ /* A collapsed pane cannot be dragged (there is no width to drag), but it MUST still be reopenable —
252
+ so the drag surface goes and the grip stays. */
253
+ .app.left-collapsed .pane-rail-left .resize-handle,
254
+ .app.right-collapsed .pane-rail-right .resize-handle { display: none; }
255
+ /* Workspaces mode has no Inspect pane at all (--right-width: 0), so its rail would be a grip on a
256
+ seam with nothing behind it. */
257
+ .app.mode-workspaces .pane-rail-right { display: none; }
126
258
 
127
259
  /* ========== RESIZE HANDLES ========== */
128
260
  .resize-handle {
129
261
  position: absolute;
130
- top: 0;
131
- bottom: 0;
132
- width: 5px;
262
+ inset: 0;
133
263
  cursor: ew-resize;
134
264
  z-index: 8;
135
265
  background: transparent;
136
266
  transition: background 0.15s;
267
+ touch-action: none;
137
268
  }
138
- .resize-handle::after {
139
- content: "";
140
- position: absolute;
141
- top: 50%;
142
- left: 50%;
143
- transform: translate(-50%, -50%);
144
- width: 2px;
145
- height: 30px;
146
- background: var(--border-strong);
147
- border-radius: 1px;
148
- opacity: 0;
149
- transition: opacity 0.15s;
150
- }
269
+ /* The centred dot the handle used to grow on hover is gone: the grip now sits at exactly that
270
+ point and would hide it. The rail's own wash is the drag feedback, and it reads along the whole
271
+ column rather than at one spot. */
151
272
  .resize-handle:hover { background: rgba(74, 158, 255, 0.15); }
152
- .resize-handle:hover::after { opacity: 1; background: var(--accent); }
153
273
  .resize-handle.dragging { background: var(--accent-soft); }
154
- .resize-handle.dragging::after { opacity: 1; background: var(--accent); }
155
- .resize-handle-right { right: -3px; }
156
- .resize-handle-left { left: -3px; }
157
- .app.left-collapsed .chat .resize-handle,
158
- .app.right-collapsed .inspect .resize-handle { display: none; }
274
+ /* From master: the handle is focusable and arrow-key resizable, so it needs a visible focus
275
+ state. The dot master draws on hover is NOT carried over — the collapse grip occupies that
276
+ centre point now, and the rail's own wash is the hover feedback. */
277
+ .resize-handle:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
159
278
  body.resizing { cursor: ew-resize !important; }
160
279
  body.resizing * { cursor: ew-resize !important; }
161
280
 
@@ -166,7 +285,9 @@
166
285
  display: flex;
167
286
  align-items: center;
168
287
  justify-content: space-between;
169
- padding: 0 18px;
288
+ /* Left padding is the ≡ button's own inset (see --ham-inset); the right side keeps the
289
+ normal 18px gutter. */
290
+ padding: 0 18px 0 var(--ham-inset);
170
291
  border-bottom: 1px solid var(--border);
171
292
  /* Let the header's flex children shrink rather than force the whole grid wider
172
293
  than the viewport (the old cause of a page-wide horizontal scrollbar): the
@@ -177,19 +298,25 @@
177
298
  min-width: 0;
178
299
  }
179
300
  /* The ≡ menu + brand stay full size; .controls is the shrink sink instead. */
180
- .header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
181
- .brand { display: flex; align-items: center; gap: 12px; }
301
+ /* The gap is its OWN value, not --ham-inset. That token is the ≡'s alignment inset — it also sizes the
302
+ button (see .hamburger, which subtracts 2× it from --pane-collapsed) so the glyph centres over the
303
+ 36px collapsed-pane column beneath it — and reusing it here made the spacing BETWEEN the header's
304
+ items inherit a number that was never about them: 6px to the wordmark and 10px on to the mode tabs,
305
+ against the 14px every panel label and the 18px the header's own right side use. The ≡ keeps its
306
+ 6px so the column still lines up; the air goes after it. */
307
+ .header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
308
+ .brand { display: flex; align-items: center; gap: 10px; margin-right: 6px; }
182
309
  .brand .mark {
183
310
  display: inline-flex;
184
311
  align-items: center;
185
312
  color: var(--accent);
186
- width: 30px;
187
- height: 28px;
313
+ width: 26px;
314
+ height: 24px;
188
315
  filter: drop-shadow(0 0 6px var(--accent-glow));
189
316
  }
190
317
  .brand .mark svg { width: 100%; height: 100%; display: block; }
191
318
  .brand .mark .mark-node { fill: var(--bg); }
192
- .brand .name { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
319
+ .brand .name { font-size: 14px; font-weight: 700; letter-spacing: 0.07em; }
193
320
  .brand .tag { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
194
321
  .controls { display: flex; align-items: center; gap: 10px; min-width: 0; }
195
322
  /* Action buttons keep their labels on ONE line — under a tight header they may
@@ -287,40 +414,90 @@
287
414
  align-items: center;
288
415
  gap: 10px;
289
416
  }
417
+ /* THE PANE GRIP — one control, one identity, sitting IN the seam.
418
+ It used to be a 28x42 pill floating 4px inside the pane on a `0 4px 14px` drop shadow: an object
419
+ dropped ON the panel, painted over the message list, and re-lit even louder once collapsed, when
420
+ it was the only way back. It is now an 11px grip, var(--grip-h) tall, centred in the .pane-rail, which straddles the
421
+ grid's 1px gap — so it belongs to the divider rather than to either side of it, and covers no
422
+ pane content at any width. Symmetric corners because it is centred ON the seam, not tucked
423
+ against one edge of it.
424
+
425
+ Deliberately UNCHANGED between open and shut: same size, same weight, same place. It is now
426
+ literally the same element in both states (the collapsed stub no longer carries a second copy),
427
+ so it also keeps focus across a toggle. Only the chevron turns — it is the shared SVG, rotated by
428
+ the .panel-toggle svg rule below; applyCollapse() only updates the aria and tooltip attributes. */
290
429
  .panel-toggle {
291
- position: absolute;
292
- top: 50%;
293
- z-index: 12;
294
- transform: translateY(-50%);
295
- background: var(--surface-2);
296
- border: 1px solid #334155;
430
+ position: relative;
431
+ z-index: 13;
432
+ border-radius: 5px;
433
+ /* COLOUR, and why it is not simply `--surface-2` + `--border-strong`. Block 2 (the floless-web
434
+ brand overrides, which win the cascade) resolves those two to the SAME
435
+ hsl(217.2 32.6% 17.5%) — so the old pill's `background: var(--surface-2); border: 1px solid …`
436
+ had no visible edge at all, and that is precisely why its border was frozen to #334155 instead
437
+ of tokenised. Replacing it needs a pair that separates in BOTH themes:
438
+
439
+ fill a quiet seat, one step off --surface-3 toward the text
440
+ glyph --text, which is what identifies it (below)
441
+
442
+ NO BORDER, so the grip JOINS the bar instead of sitting on it as an outlined block — it is the
443
+ same width and simply a lighter, rounded segment of the same column. That gives up the border
444
+ as an identifier, so the GLYPH carries it: on `--text` rather than `--text-muted` it measures
445
+ 6.99 dark / 9.85 light against the fill, comfortably past the 3:1 WCAG 1.4.11 asks for the
446
+ visual information that identifies a control.
447
+
448
+ The FILL cannot carry it, and it is worth recording why so nobody re-tries it: bar and grip are
449
+ both --surface-3 mixed toward --text-dim, so raising the grip's mix moves it along the very
450
+ axis the bar sits on. Measured at 40/55/70/85%, grip-vs-bar never passes 1.91 while
451
+ glyph-vs-grip falls the whole way (3.44 → 2.27). No mix separates them; the glyph is the only
452
+ thing that can do this job. */
453
+ background: color-mix(in srgb, var(--text-dim) 60%, var(--surface-3));
454
+ border: 0;
297
455
  color: var(--text);
298
- width: 28px;
299
- height: 42px;
300
- font-size: 18px;
456
+ width: 11px;
457
+ height: var(--grip-h);
301
458
  line-height: 1;
302
459
  padding: 0;
303
460
  display: flex;
304
461
  align-items: center;
305
462
  justify-content: center;
306
463
  cursor: pointer;
307
- border-radius: 6px;
308
464
  font-family: var(--ui);
309
- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
465
+ transition: color var(--dur-fast) var(--ease),
466
+ background var(--dur-fast) var(--ease);
310
467
  }
311
- .panel-toggle[data-side="left"] { right: 4px; }
312
- .panel-toggle[data-side="right"] { left: 4px; }
468
+ /* 11px of paint and a bigger target around it: 11px is below the comfortable minimum and this is the only control
469
+ that can reopen a collapsed pane. Symmetric now — out in the seam nothing clips it. Inside the
470
+ pane it could not be: an overhanging target made applyCollapse()'s focus() scroll the
471
+ `overflow:hidden` pane sideways, and the scroll stuck, dragging the whole stub to x=-8. */
313
472
  .panel-toggle::before {
314
473
  content: "";
315
474
  position: absolute;
316
- inset: -1px -8px;
475
+ inset: -4px -8px;
317
476
  }
477
+ /* Hover lifts the grip toward the accent while the rail lights its whole seam (see .pane-rail),
478
+ so the bar and the handle respond as one object rather than two. */
318
479
  .panel-toggle:hover {
319
480
  color: var(--text);
320
- border-color: var(--accent);
321
- background: #475569;
322
- }
481
+ background: color-mix(in srgb, var(--accent) 45%, var(--surface-3));
482
+ }
483
+ /* ONE chevron across every surface. The shell used to draw a text `‹`/`›` swapped by
484
+ applyCollapse() while the steel editor drew this SVG path, and at the same nominal size a
485
+ 1.8px stroke reads heavier than a font's hairline stem — the same control looked bigger in the
486
+ Model tab. Same artwork, same box, same stroke everywhere now, and the direction comes from a
487
+ rotation rather than from replacing the glyph. */
488
+ .panel-toggle svg {
489
+ /* flex:none, or the flex container squeezes the 13px box to the grip's 11px and the chevron
490
+ comes out narrower here than the identical one in the steel editor — the very difference this
491
+ rule exists to remove. The 1px it overhangs each side is not clipped: nothing here hides it. */
492
+ width: 13px; height: 13px; display: block; flex: none;
493
+ fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
494
+ transition: transform var(--dur) var(--ease);
495
+ }
496
+ .app.left-collapsed .pane-rail-left .panel-toggle svg,
497
+ .app.right-collapsed .pane-rail-right .panel-toggle svg { transform: rotate(180deg); }
498
+ @media (prefers-reduced-motion: reduce) { .panel-toggle svg { transition: none; } }
323
499
  .panel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
500
+ @media (prefers-reduced-motion: reduce) { .panel-toggle { transition: none; } }
324
501
 
325
502
  /* ========== CHAT (LEFT) ========== */
326
503
  .chat {
@@ -332,23 +509,18 @@
332
509
  min-width: 0;
333
510
  position: relative;
334
511
  }
335
- .host-banner {
336
- margin: 0 14px 14px;
337
- padding: 10px 12px;
338
- background: #050810;
339
- border: 1px solid var(--border);
340
- border-radius: 4px;
341
- font-family: var(--mono);
342
- font-size: 11px;
343
- line-height: 1.65;
344
- }
345
- .host-line { color: var(--text-muted); }
346
- .host-line.host-ok { color: var(--ok); }
347
-
348
512
  .messages {
349
513
  flex: 1;
350
514
  overflow-y: auto;
351
- padding: 0 14px 16px;
515
+ /* CLEAR THE RAIL. The rail straddles the seam, so part of it sits over this pane's right edge —
516
+ which is exactly where this container's scrollbar lives. Without the margin the thumb runs
517
+ underneath the divider bar and the two read as one smudged strip. 12px puts a visible gap
518
+ between the scrollbar and the bar; the padding below keeps the text off the scrollbar. */
519
+ margin-right: 12px;
520
+ /* Right padding drops 14 → 4 to pay for that margin. The gap has to come from somewhere, and
521
+ taking all 12px out of the content width is what reflowed the reference rows next door; the
522
+ margin already separates the scrollbar from the bar, so the padding no longer has to. */
523
+ padding: 0 4px 16px 14px;
352
524
  display: flex;
353
525
  flex-direction: column;
354
526
  gap: 14px;
@@ -384,6 +556,11 @@
384
556
  }
385
557
  .msg.aware .body { border-left-color: var(--text-dim); }
386
558
  .msg.instructor-answer .body { border-left-color: var(--accent); }
559
+ .msg.instructor-answer-pending .body {
560
+ border-left-color: var(--accent);
561
+ background: linear-gradient(180deg, var(--accent-soft), var(--surface-2));
562
+ }
563
+ .instructor-answer-pending-status { display: flex; align-items: center; color: var(--text-muted); }
387
564
  /* Rendered answer prose (answerProse in aware.js). Scoped to this card so no other message body
388
565
  inherits a document-ish scale, and re-scaled from the browser defaults an h3/ul would bring into
389
566
  a card set at the body's own font-size (mostly down — h3 15.2px→15px, ul padding 40px→17px —
@@ -467,12 +644,10 @@
467
644
  /* The card header carries the chevron on the left and the × on the right; who-name takes the slack
468
645
  between them so the timestamp + × sit flush-right. Center-aligned (the base .who is baseline, which
469
646
  reads crooked next to 26px-tall buttons).
470
- padding-right clears the narrative panel's absolutely-positioned, vertically-centred collapse
471
- toggle (`.panel-label .panel-toggle`, ~28px wide at the panel's right edge, z-index 12): it floats
472
- OVER the feed, so whichever card lands at the panel's vertical midpoint would otherwise have its ×
473
- stolen by the toggle's hit area. Both toggle and card are right-anchored, so a fixed inset clears
474
- it at every panel width. Only the header's right controls need it — the body stays full width. */
475
- .msg.instructor-answer .who.answer-who { align-items: center; gap: 6px; padding-right: 24px; }
647
+ The 24px padding-right this used to carry is GONE with the reason for it: the collapse toggle no
648
+ longer floats over the feed at the panel's vertical midpoint stealing the × of whichever card
649
+ landed there. It lives in the pane rail now, outside the panel entirely. */
650
+ .msg.instructor-answer .who.answer-who { align-items: center; gap: 6px; }
476
651
  .msg.instructor-answer .answer-who .who-name { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
477
652
  .answer-collapse-toggle, .answer-del {
478
653
  display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
@@ -492,6 +667,33 @@
492
667
  not a bare `hidden` attribute, which app.css has no global rule for and would fail to honour. */
493
668
  .msg.instructor-answer.answer-collapsed .body { display: none; }
494
669
 
670
+ /* One continuation component is rendered in both answer cards and Requests. It remains a quiet
671
+ footer under the prose: session recovery is always available without competing with the answer
672
+ itself. The button uses the existing dark shadcn tokens and owns every native state. */
673
+ .answer-session-continuation {
674
+ display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
675
+ margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--border);
676
+ }
677
+ .answer-session-status { color: var(--text-dim); font-size: 11px; line-height: 1.4; }
678
+ .answer-session-warning { color: var(--warn); }
679
+ .answer-session-unavailable { font-style: italic; }
680
+ .answer-session-open {
681
+ appearance: none; border: 1px solid var(--border-strong); background: var(--surface-3);
682
+ color: var(--text); cursor: pointer; min-height: 40px; padding: 8px 11px; border-radius: 4px;
683
+ font: 500 11.5px/1.2 var(--ui);
684
+ }
685
+ .answer-session-open:hover { border-color: var(--accent); background: var(--accent-soft); }
686
+ .answer-session-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
687
+ .answer-session-open:disabled,
688
+ .answer-session-open[aria-disabled="true"] { cursor: wait; color: var(--text-dim); border-color: var(--border); background: var(--surface-2); opacity: 1; }
689
+ .answer-session-spinner {
690
+ display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px;
691
+ border: 1px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%;
692
+ animation: answer-session-spin .8s linear infinite;
693
+ }
694
+ @keyframes answer-session-spin { to { transform: rotate(360deg); } }
695
+ @media (prefers-reduced-motion: reduce) { .answer-session-spinner { animation: none; border-top-color: var(--border-strong); } }
696
+
495
697
  /* Undo toast: a real focusable action inside the shared #toast-container surface. */
496
698
  .toast-undo { display: flex; align-items: center; gap: 12px; }
497
699
  .toast-action {
@@ -519,6 +721,27 @@
519
721
  (Debug in VS / Tweak) clip into the narrow strip. */
520
722
  .app.left-collapsed .chat > *:not(.collapsed-stub),
521
723
  .app.right-collapsed .inspect > *:not(.collapsed-stub) { display: none; }
724
+ /* The stub's LABEL and ICON fade in behind the closing pane; the grip never does.
725
+ Deliberately scoped to these two and not to `.collapsed-stub` itself, because the grip lives
726
+ inside the stub — fading the container would mean that any failure to finish the animation (a
727
+ backgrounded window, a stalled frame loop) leaves the ONLY control that can reopen the pane at
728
+ opacity 0. These two are decoration, so the worst case is a label that arrives without a fade.
729
+ `@starting-style` supplies the start value a `display:none` subtree cannot otherwise have; where
730
+ it is unsupported both simply appear, which is the behaviour this replaced. */
731
+ .collapsed-stub .vertical-label,
732
+ .collapsed-stub .stub-icon {
733
+ transition: opacity var(--dur) var(--ease) 80ms;
734
+ }
735
+ @starting-style {
736
+ .app.left-collapsed .chat .collapsed-stub .vertical-label,
737
+ .app.left-collapsed .chat .collapsed-stub .stub-icon,
738
+ .app.right-collapsed .inspect .collapsed-stub .vertical-label,
739
+ .app.right-collapsed .inspect .collapsed-stub .stub-icon { opacity: 0; }
740
+ }
741
+ @media (prefers-reduced-motion: reduce) {
742
+ .collapsed-stub .vertical-label,
743
+ .collapsed-stub .stub-icon { transition: none; }
744
+ }
522
745
  .collapsed-stub .vertical-label {
523
746
  writing-mode: vertical-rl;
524
747
  transform: rotate(180deg);
@@ -528,17 +751,18 @@
528
751
  letter-spacing: 0.2em;
529
752
  user-select: none;
530
753
  }
754
+ /* A label for what the strip is, NOT a control — so it lost its box when the grip lost its.
755
+ While the grip was a 28x42 shadowed pill this bordered 30px square read as the quieter of two
756
+ buttons. Against an 11px flush grip the same square would be the loudest thing on the strip and the
757
+ obvious thing to click, which is the one thing it does not do. */
531
758
  .collapsed-stub .stub-icon {
532
- width: 30px;
533
- height: 30px;
534
- border: 1px solid var(--border-strong);
535
- border-radius: 4px;
536
759
  display: flex;
537
760
  align-items: center;
538
761
  justify-content: center;
539
- color: var(--text-muted);
762
+ color: var(--text-dim);
540
763
  font-size: 14px;
541
- background: var(--surface-2);
764
+ opacity: 0.7;
765
+ user-select: none;
542
766
  }
543
767
 
544
768
  /* ========== CANVAS ========== */
@@ -1273,11 +1497,11 @@
1273
1497
  background: transparent;
1274
1498
  border: none;
1275
1499
  border-radius: 0;
1276
- padding: 10px 0;
1500
+ padding: 9px 0;
1277
1501
  color: var(--text-dim);
1278
- font-size: 11px;
1502
+ font-size: 10px;
1279
1503
  text-transform: uppercase;
1280
- letter-spacing: 0.12em;
1504
+ letter-spacing: 0.12em; /* em, so the tracking follows the size down */
1281
1505
  border-bottom: 2px solid transparent;
1282
1506
  cursor: pointer;
1283
1507
  transition: all 0.15s;
@@ -1573,6 +1797,19 @@
1573
1797
  .fm-note::-webkit-scrollbar { width:9px; height:9px; }
1574
1798
  .fm-note::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
1575
1799
  .fm-note::-webkit-scrollbar-track { background:transparent; }
1800
+ .fm-omissions {
1801
+ max-height:300px; overflow:auto; padding:8px 10px; border:1px solid var(--border-strong);
1802
+ border-radius:5px; background:var(--surface-2); scrollbar-width:thin;
1803
+ scrollbar-color:var(--border-strong) transparent;
1804
+ }
1805
+ .fm-omission-group + .fm-omission-group { margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
1806
+ .fm-omission-group h4 { margin:0 0 6px; color:var(--text-muted); font:600 11px/1.4 var(--ui); }
1807
+ .fm-omission-group h4 span { margin-left:5px; color:var(--text-dim); font-weight:500; }
1808
+ .fm-omission-group ul { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:4px 12px; margin:0; padding:0; list-style:none; }
1809
+ .fm-omission-group li { overflow-wrap:anywhere; color:var(--text); font:500 11px/1.45 var(--mono); }
1810
+ .fm-omissions::-webkit-scrollbar { width:9px; height:9px; }
1811
+ .fm-omissions::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
1812
+ .fm-omissions::-webkit-scrollbar-track { background:transparent; }
1576
1813
  /* ── formModal `type:'checklist'` — rows that each carry their own state ──────────────────
1577
1814
  Names a SET of checkboxes, so it is a group label rather than a <label for>; styled to match
1578
1815
  .modal-field label exactly so the two read as one vocabulary. */
@@ -2014,6 +2251,20 @@
2014
2251
  .requests-list::-webkit-scrollbar { width: 7px; }
2015
2252
  .requests-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
2016
2253
  .requests-list::-webkit-scrollbar-track { background: transparent; }
2254
+ .requests-section-title {
2255
+ margin: 8px 2px 1px; color: var(--text-dim); font-family: var(--mono); font-size: 10px;
2256
+ letter-spacing: .1em; text-transform: uppercase;
2257
+ }
2258
+ .saved-answer-sessions { display: flex; flex-direction: column; gap: 8px; }
2259
+ .saved-answer-session {
2260
+ padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
2261
+ }
2262
+ .saved-answer-session-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
2263
+ .saved-answer-session-subject {
2264
+ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2265
+ color: var(--text-muted); font-size: 12px;
2266
+ }
2267
+ .saved-answer-session .answer-session-continuation { margin-top: 8px; padding-top: 8px; }
2017
2268
  .req-item {
2018
2269
  display: flex; gap: 10px; align-items: flex-start;
2019
2270
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
@@ -2301,13 +2552,61 @@
2301
2552
  }
2302
2553
  /* Why THIS row has no ▶, shown only when a runnable row is on screen beside it (see
2303
2554
  renderRequests). Metadata at .req-lifecycle's tier — never a greyed-out button. */
2304
- .req-why-not { margin-top: 6px; font-size: 10.5px; font-style: italic; color: var(--text-dim); line-height: 1.4; }
2555
+ /* Why a drawing read was refused, per request (#1029).
2556
+ The left rail is `--err`, the same one `.ws-revision-card.state-failed` already uses for "this
2557
+ drawing read failed" — this is a specialization of that state, not a new one. The ITEMS inside are
2558
+ deliberately neutral: twenty red-railed cards would read as twenty alarms rather than one failure
2559
+ with several reasons. The list scrolls because `items` can reach twenty and the modal has an 86vh
2560
+ budget shared with the technical-instructions scroller; it needs no ::-webkit-scrollbar block of
2561
+ its own — the global `*` rule below already themes every new scroll container, which is exactly
2562
+ why that rule exists. */
2563
+ .req-audit {
2564
+ margin-top: 8px; padding: 10px 12px;
2565
+ border: 1px solid var(--border); border-left: 3px solid var(--err);
2566
+ border-radius: 6px; background: var(--surface);
2567
+ }
2568
+ .req-audit-lead { color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
2569
+ .req-audit-count { margin-top: 2px; color: var(--text-dim); font-size: 11px; }
2570
+ .req-audit-list {
2571
+ margin-top: 8px; display: flex; flex-direction: column; gap: 8px;
2572
+ max-height: 220px; overflow-y: auto; padding-right: 2px;
2573
+ }
2574
+ .req-audit-item { padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); list-style: none; }
2575
+ .req-audit-what { color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.4; }
2576
+ .req-audit-why { margin-top: 3px; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
2577
+ .req-audit-next { margin-top: 5px; color: var(--text); font-size: 11.5px; line-height: 1.45; }
2578
+ .req-audit-next-label { color: var(--accent-bright); font-weight: 600; }
2579
+ /* WHOSE MOVE IT IS (#1074), keyed off the item's own attribute rather than four new classes.
2580
+ `--accent-bright` is reserved for the one label that is genuinely a call to action, so a detailer
2581
+ scanning the list finds theirs; the two the app or the terminal AI owns drop to `--text-dim` and
2582
+ read as information rather than instruction. An unfixable fault keeps FULL contrast in `--err`:
2583
+ it sorts last, and dimming it as well would bury the one thing most worth reporting.
2584
+ Deliberately no badge, pill, icon or per-item rail — this list is dense, and the card already
2585
+ carries one `--err` rail for the whole failure. Repeating severity per item is how twenty items
2586
+ come to read as twenty alarms. */
2587
+ .req-audit-item[data-owner="reader"] .req-audit-next-label,
2588
+ .req-audit-item[data-owner="server"] .req-audit-next-label { color: var(--text-dim); }
2589
+ .req-audit-item[data-owner="none"] .req-audit-next-label { color: var(--err); }
2590
+
2591
+ .req-why-not { margin-top: 6px; font-size: 10.5px; font-style: italic; color: var(--text-dim); line-height: 1.4; }
2305
2592
 
2306
2593
  /* The Integrations section: which terminal AIs are installed, and the folder runs happen in. */
2307
2594
  .int-section { border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2);
2308
- padding: 12px; margin-bottom: 10px; flex-shrink: 0; }
2309
- .int-section-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
2310
- .int-section-sub { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
2595
+ margin-bottom: 10px; flex-shrink: 0; overflow: hidden; }
2596
+ .int-section-toggle { width: 100%; min-height: 46px; padding: 9px 12px; border: 0; border-radius: 0;
2597
+ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
2598
+ appearance: none; background: transparent; color: inherit; font-family: var(--ui); text-align: left;
2599
+ cursor: pointer; transition: background 0.12s; }
2600
+ .int-section-toggle:hover { background: var(--surface-3); }
2601
+ .int-section-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
2602
+ .int-section-title { font-size: 12px; font-weight: 600; color: var(--text); }
2603
+ .int-section-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
2604
+ font-size: 10.5px; color: var(--text-dim); text-align: right; }
2605
+ .int-section-caret { color: var(--text-dim); font-size: 10px; transition: transform 0.12s; }
2606
+ .int-section-toggle[aria-expanded="true"] .int-section-caret { transform: rotate(90deg); color: var(--accent-bright); }
2607
+ .int-section-body { padding: 0 12px 12px; border-top: 1px solid var(--border); }
2608
+ .int-section-body[hidden] { display: none; }
2609
+ .int-section-sub { font-size: 11px; color: var(--text-dim); line-height: 1.5; margin: 10px 0; }
2311
2610
  .int-runtimes { display: flex; flex-direction: column; gap: 6px; }
2312
2611
  .int-rt { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
2313
2612
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
@@ -2331,6 +2630,12 @@
2331
2630
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
2332
2631
  .int-folder-path.is-unset { font-family: var(--ui); font-style: italic; color: var(--text-dim); }
2333
2632
 
2633
+ @media (max-width: 620px) {
2634
+ .int-section-toggle { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
2635
+ .int-section-summary { grid-column: 1; grid-row: 2; text-align: left; }
2636
+ .int-section-caret { grid-column: 2; grid-row: 1 / 3; }
2637
+ }
2638
+
2334
2639
  /* "Don't save" in the unsaved-changes dialog: left-pushed, neutral at rest,
2335
2640
  destructive only on hover — same restraint as the Requests "Clear all". */
2336
2641
  #confirm-dont-save { margin-right: auto; }
@@ -2381,6 +2686,15 @@
2381
2686
  }
2382
2687
  .rtn-act:hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface); }
2383
2688
  .rtn-del-act:hover { color: var(--err); border-color: var(--err); }
2689
+ /* A disabled row action must LOOK inert. Only ▶ is ever disabled here (while that routine is
2690
+ running), and it had no disabled style at all: idle and running rendered identically, so the
2691
+ spinner replacing the status dot was the sole visual difference and the button itself said
2692
+ nothing. The hover reset is the load-bearing half: `disabled` suppresses ACTIVATION (click), not
2693
+ pointing — `:hover` still matches and `mouseover` still fires, which is how this button's tooltip
2694
+ still explains the refusal — so without a reset, hovering an inert control made it brighten,
2695
+ which reads as more active rather than less. */
2696
+ .rtn-act:disabled { opacity: .5; cursor: default; }
2697
+ .rtn-act:disabled:hover { color: var(--text-muted); border-color: var(--border-strong); background: transparent; }
2384
2698
 
2385
2699
  /* Toggle switch — no switch existed in the app; this is the one new control. */
2386
2700
  .rtn-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; position: relative; }
@@ -2795,18 +3109,18 @@
2795
3109
  background: transparent;
2796
3110
  color: var(--text);
2797
3111
  border: 1px solid var(--border-strong);
2798
- width: 34px;
2799
- height: 34px;
3112
+ width: calc(var(--pane-collapsed) - 2 * var(--ham-inset));
3113
+ height: calc(var(--header-h) - 2 * var(--ham-inset));
2800
3114
  padding: 0;
2801
3115
  display: flex;
2802
3116
  align-items: center;
2803
3117
  justify-content: center;
2804
- font-size: 18px;
3118
+ font-size: 16px;
2805
3119
  line-height: 1;
2806
3120
  cursor: pointer;
2807
3121
  border-radius: 4px;
2808
3122
  transition: all 0.15s;
2809
- margin-right: 10px;
3123
+ margin-right: 0;
2810
3124
  flex-shrink: 0;
2811
3125
  position: relative; /* anchors the dashboard-updated badge below */
2812
3126
  }
@@ -2836,8 +3150,8 @@
2836
3150
 
2837
3151
  .menu {
2838
3152
  position: fixed;
2839
- top: 60px;
2840
- left: 14px;
3153
+ top: var(--header-h);
3154
+ left: var(--ham-inset);
2841
3155
  width: 280px;
2842
3156
  background: var(--surface);
2843
3157
  border: 1px solid var(--border-strong);
@@ -2895,6 +3209,10 @@
2895
3209
  stroke-linejoin: round;
2896
3210
  }
2897
3211
  .menu-label { flex: 1; }
3212
+ /* The two preference rows name their switch with a <label for>, so the words are a
3213
+ click target as well as an accessible name — say so with the cursor the switch
3214
+ itself already uses. Inside a .menu-item the label is a plain span and unaffected. */
3215
+ .menu-theme label.menu-label { cursor: pointer; }
2898
3216
  .menu-kbd {
2899
3217
  font-family: var(--mono);
2900
3218
  font-size: 10px;
@@ -2909,11 +3227,11 @@
2909
3227
  background: var(--border);
2910
3228
  margin: 5px 4px;
2911
3229
  }
2912
- /* Instructor ON/OFF — a menuitemcheckbox, not the .menu-theme switch: checked state reads via the
2913
- app's existing accent-active dialect (.code-wrap-btn.active, .tf-chip.active) rather than a new
2914
- control. The icon recolors to accent-bright and a trailing check confirms it — mirroring the
2915
- trailing .menu-kbd slot the action items already reserve on the right, so the row stays in the
2916
- same visual family. visibility (not display) keeps the row's width stable between states.
3230
+ /* Checkmarked menu items use the app's existing accent-active dialect
3231
+ (.code-wrap-btn.active, .tf-chip.active). The icon recolors to accent-bright and a trailing check
3232
+ confirms it — mirroring the trailing .menu-kbd slot the action items already reserve on the
3233
+ right, so the row stays in the same visual family. visibility (not display) keeps the row's
3234
+ width stable between states.
2917
3235
  No native <input type=checkbox>: the button already IS the checkbox via ARIA, so nesting one
2918
3236
  would add a second hit target and a control needing its own theming, for no signal the SVG
2919
3237
  check does not already carry. */
@@ -3092,9 +3410,18 @@
3092
3410
  .cmd-sheet-empty b { color: var(--text); font-weight: 500; }
3093
3411
 
3094
3412
  .ix-hint-sep { margin: 0 6px; color: var(--text-dim); }
3095
- .ix-hint-link { color: var(--accent-bright); }
3096
- button.ix-hint { background: none; border: none; cursor: pointer; font-family: var(--ui); }
3097
- button.ix-hint:hover .ix-hint-link { text-decoration: underline; }
3413
+ /* The only clickable part of the hint, so it carries the whole affordance —
3414
+ `font: inherit` because a <button> would otherwise drop out of the 11px band
3415
+ type, and the hover underline is now truthful: it fires on the link alone. */
3416
+ button.ix-hint-link {
3417
+ background: none;
3418
+ border: none;
3419
+ padding: 0;
3420
+ font: inherit;
3421
+ color: var(--accent-bright);
3422
+ cursor: pointer;
3423
+ }
3424
+ button.ix-hint-link:hover { text-decoration: underline; }
3098
3425
  /* Cursor-anchored node context menu (right-click a card). Reuses .menu/.menu-item; only
3099
3426
  the fixed 280px width is wrong for it — the pointer anchor (top/left) is set inline. */
3100
3427
  .menu.context-menu { width: auto; min-width: 168px; }
@@ -3327,8 +3654,7 @@
3327
3654
  linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
3328
3655
  }
3329
3656
  [data-theme="light"] pre.code,
3330
- [data-theme="light"] .trace,
3331
- [data-theme="light"] .host-banner {
3657
+ [data-theme="light"] .trace {
3332
3658
  background: #f8fafc;
3333
3659
  color: var(--text);
3334
3660
  }
@@ -4213,7 +4539,7 @@ body {
4213
4539
  .has-whats-new below. Collapsed it keeps a thin rail so the layout height
4214
4540
  never jumps between two very different sizes mid-command. */
4215
4541
  .app.has-instructor {
4216
- grid-template-rows: 60px 1fr auto 44px;
4542
+ grid-template-rows: var(--header-h) 1fr auto 44px;
4217
4543
  grid-template-areas:
4218
4544
  "header header header"
4219
4545
  "chat canvas inspect"
@@ -4222,7 +4548,7 @@ body {
4222
4548
  }
4223
4549
  /* Both rows present: the Instructor sits below What's-new, directly on the footer. */
4224
4550
  .app.has-instructor.has-whats-new {
4225
- grid-template-rows: 60px 1fr auto auto 44px;
4551
+ grid-template-rows: var(--header-h) 1fr auto auto 44px;
4226
4552
  grid-template-areas:
4227
4553
  "header header header"
4228
4554
  "chat canvas inspect"
@@ -4334,6 +4660,8 @@ body {
4334
4660
  cursor: pointer;
4335
4661
  }
4336
4662
  .ix-ask:hover { border-color: var(--accent-dim); color: var(--accent-bright); }
4663
+ .ix-ask[aria-busy="true"] { display: inline-flex; align-items: center; gap: 6px; cursor: wait; }
4664
+ .ix-ask[aria-busy="true"] .rtn-spinner { width: 10px; height: 10px; border-width: 2px; }
4337
4665
  .ix-ask[hidden] { display: none; }
4338
4666
  .ix-ask-split { display: inline-flex; flex: none; }
4339
4667
  .ix-ask-split[hidden] { display: none; }
@@ -4354,7 +4682,7 @@ body {
4354
4682
  A 4th grid row above the footer — NOT absolutely positioned. .has-whats-new
4355
4683
  inserts an `auto` row + a full-width `whats-new` area between the body and footer. */
4356
4684
  .app.has-whats-new {
4357
- grid-template-rows: 60px 1fr auto 44px;
4685
+ grid-template-rows: var(--header-h) 1fr auto 44px;
4358
4686
  grid-template-areas:
4359
4687
  "header header header"
4360
4688
  "chat canvas inspect"
@@ -4678,7 +5006,7 @@ body {
4678
5006
  .mode-switch { display:inline-flex; border:1px solid var(--border-strong); border-radius:6px;
4679
5007
  overflow:hidden; background:var(--surface-2); flex:none; }
4680
5008
  .mode-switch button { background:transparent; border:none; border-radius:0; color:var(--text-muted);
4681
- font-size:12px; padding:7px 14px; letter-spacing:.02em; cursor:pointer; transition:all .15s; }
5009
+ font-size:12px; padding:6px 13px; letter-spacing:.02em; cursor:pointer; transition:all .15s; }
4682
5010
  .mode-switch button + button { border-left:1px solid var(--border-strong); }
4683
5011
  .mode-switch button:hover { color:var(--text); }
4684
5012
  .mode-switch button.active { background:var(--accent-soft); color:var(--accent-bright); }
@@ -4742,9 +5070,15 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
4742
5070
  border-radius:6px; padding:6px 12px; font-size:12px; cursor:pointer; white-space:nowrap; }
4743
5071
  .ws-import-btn:hover { color:var(--text); border-color:var(--accent); }
4744
5072
  .ws-import-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
4745
- .ws-create-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(220px,260px));
5073
+ /* ONE track definition for both landing grids, so a create card and the project cards below it sit in
5074
+ the same columns. They had two: create was `auto-fit minmax(220px,260px)` (capped) while projects
5075
+ were `auto-fill minmax(240px,1fr)` (filling), which measured 260px against 468px in the same
5076
+ column — the two rows shared a left edge and nothing else. Declared once and referenced twice so
5077
+ they cannot drift apart again. */
5078
+ :root { --ws-landing-track: repeat(auto-fill, minmax(240px, 1fr)); }
5079
+ .ws-create-grid { display:grid; gap:14px; grid-template-columns:var(--ws-landing-track);
4746
5080
  align-content:start; align-items:stretch; margin-bottom:14px; }
4747
- .ws-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); align-content:start; }
5081
+ .ws-grid { display:grid; gap:14px; grid-template-columns:var(--ws-landing-track); align-content:start; }
4748
5082
  .ws-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow:hidden;
4749
5083
  cursor:pointer; transition:all .15s; text-align:left; padding:0; display:flex; flex-direction:column; }
4750
5084
  .ws-card:hover { border-color:var(--accent-dim); transform:translateY(-1px); }
@@ -4959,15 +5293,23 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
4959
5293
  .ws-source-ico { font-size:34px; color:var(--accent); display:block; margin-bottom:12px; line-height:1; }
4960
5294
  .ws-source-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:6px; }
4961
5295
  .ws-source-sub { font-size:12px; color:var(--text-dim); line-height:1.55; }
4962
- .ws-crumb-row { padding:12px 14px 8px; display:flex; justify-content:space-between; align-items:center; }
4963
- .ws-crumb { font-size:12px; color:var(--text-muted); }
4964
- .ws-crumb-link { background:none; border:none; padding:0; color:var(--text-muted); font-size:12px; cursor:pointer; }
4965
- .ws-crumb-link:hover { color:var(--accent); }
4966
- .ws-crumb-sep { color:var(--text-dim); margin:0 6px; }
4967
- .ws-crumb-cur { color:var(--text); }
4968
- .ws-status { font-size:10px; color:var(--text-dim); font-style:italic; }
5296
+ /* The step tabs and the attach button share ONE row, which is the whole project header now — the 45px
5297
+ breadcrumb strip above it is gone (see web/index.html). Attach-revision appears on the Drawings step
5298
+ only, and this row still must not resize when it does: the tabs set the height at 10px padding on a
5299
+ 13px line, the 26px button is shorter than that, so it drops into the end slot without moving the
5300
+ pane below. min-height keeps that true if either side is ever restyled. */
5301
+ .ws-steps-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:37px; }
5302
+ .ws-step-end { display:flex; align-items:center; gap:12px; min-width:0; padding-right:14px; }
5303
+ .ws-step-end .btn-mini[hidden] { display:none; }
5304
+ /* Up one level, sat against the "project" label. Icon-only and quiet: it is navigation, and it shares a
5305
+ row with Review & approve, which is the only control here entitled to a filled treatment. */
5306
+ .ws-back { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px;
5307
+ background:none; border:1px solid transparent; border-radius:6px; color:var(--text-muted); cursor:pointer;
5308
+ padding:0; flex:none; }
5309
+ .ws-back:hover { color:var(--text); border-color:var(--border-strong); background:var(--surface-2); }
5310
+ .ws-back:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
4969
5311
  .tabs.ws-step-tabs { background:transparent; padding:0 6px; }
4970
- .tabs.ws-step-tabs button { flex:0 0 auto; padding:11px 16px; }
5312
+ .tabs.ws-step-tabs button { flex:0 0 auto; padding:10px 14px; }
4971
5313
  .tabs.ws-step-tabs button.ws-step-locked { color:var(--text-dim); cursor:not-allowed; opacity:.62; }
4972
5314
  .tabs.ws-step-tabs button.ws-step-locked::before { content:'·'; color:var(--border-strong); margin-right:5px; }
4973
5315
  .tabs.ws-step-tabs button.ws-step-locked:hover { color:var(--text-muted); border-bottom-color:transparent; }
@@ -5055,6 +5397,15 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5055
5397
  .ecard .e-receipt { display:flex; align-items:center; gap:7px; flex-wrap:wrap;
5056
5398
  color:var(--ok); font:500 10.5px/1.45 var(--mono); }
5057
5399
  .ecard .e-receipt.partial { color:var(--warn); }
5400
+ /* A THIRD register beside the receipt's green/amber pair, for a file that is complete and correct but
5401
+ written in the unit system the project has since switched away from. Deliberately NOT `.partial`'s
5402
+ amber: amber reads as "this artifact has a defect", and this one has none — it is simply not the
5403
+ denomination the job is now in. Muted text, no new colour token. (Design review, UK epic slice 4.)
5404
+
5405
+ `--text-muted`, NOT `--text-dim`: dim is #5b6677 on this card's #0f141c, which measures 3.18:1 at
5406
+ 10.5px — below AA, and this is the ONE sentence telling a user that the bill they have is in the
5407
+ wrong denomination. Quiet is the intent; unreadable is not. (Review finding.) */
5408
+ .ecard .e-receipt.stale { color:var(--text-muted); }
5058
5409
  .ecard .e-receipt-details {
5059
5410
  padding:2px 6px; border-radius:4px; cursor:pointer;
5060
5411
  background:transparent; border:1px solid currentColor; color:inherit;
@@ -5205,9 +5556,9 @@ table.hist tr.current td { background:var(--accent-soft); }
5205
5556
  .hist-change-tech > summary:hover { color:var(--text); }
5206
5557
  .hist-change-tech > summary:focus-visible { color:var(--text); outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
5207
5558
  .hist-change-tech .hist-change-more { display:block; margin-top:3px; font-style:italic; }
5208
- .hist .btn-mini, .ws-drawings-bar .btn-mini, .ws-revision-card .btn-mini, .modal.revreview .btn-mini { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px;
5559
+ .hist .btn-mini, .ws-step-end .btn-mini, .ws-revision-card .btn-mini, .modal.revreview .btn-mini { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px;
5209
5560
  padding:4px 10px; font-size:11px; cursor:pointer; white-space:nowrap; }
5210
- .hist .btn-mini:hover, .ws-drawings-bar .btn-mini:hover, .ws-revision-card .btn-mini:hover, .modal.revreview .btn-mini:hover { color:var(--text); border-color:var(--accent); }
5561
+ .hist .btn-mini:hover, .ws-step-end .btn-mini:hover, .ws-revision-card .btn-mini:hover, .modal.revreview .btn-mini:hover { color:var(--text); border-color:var(--accent); }
5211
5562
 
5212
5563
  /* ── Revision review (unit 5, P6e) — the grouped accept/reject list ──────────────
5213
5564
  Every rule below is built from existing tokens; no new colour, font or shadow. The
@@ -5329,12 +5680,10 @@ table.hist tr.current td { background:var(--accent-soft); }
5329
5680
  .rev-row .rev-check input[type="checkbox"]:hover { border-color:var(--text-muted); }
5330
5681
  .rev-row .rev-check input[type="checkbox"]:checked { border-color:var(--accent); }
5331
5682
 
5332
- /* ── Workspaces: revision re-read — drawing source band + request status card ─────────────── */
5333
- .ws-drawings-bar { flex:none; display:flex; align-items:center; gap:10px; padding:8px 14px;
5334
- border-bottom:1px solid var(--border); background:var(--surface); }
5335
- .ws-drawings-bar[hidden] { display:none !important; }
5336
- .ws-drawings-bar-label { font-size:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.1em; }
5337
- .ws-drawings-bar-sep { flex:1; }
5683
+ /* ── Workspaces: revision re-read — request status card ───────────────────────────────────── */
5684
+ /* The 42px "Source" band that used to carry the attach button is gone: it spent a row of height on a
5685
+ label that named nothing the user could point at, and the button says what it does on its own. It
5686
+ sits at the end of the step-tabs row now (.ws-step-end), which every step already has. */
5338
5687
  .ws-revision-card { flex:none; display:flex; align-items:center; gap:10px; padding:9px 14px;
5339
5688
  border-bottom:1px solid var(--border); background:var(--surface-2); font-size:12px; color:var(--text-muted); }
5340
5689
  .ws-revision-card[hidden] { display:none !important; }
@@ -5450,18 +5799,90 @@ tr.hist-diff-row[hidden] { display:none; }
5450
5799
  confirm REUSES .hist-confirm (rollback's themed popover) rather than inventing one. */
5451
5800
  .ws-knowledge { flex:1; min-height:0; display:flex; flex-direction:column; }
5452
5801
  .ws-knowledge[hidden] { display:none; }
5453
- .kb-split { flex:1; min-height:0; display:grid; grid-template-columns:272px minmax(0,1fr);
5454
- gap:1px; background:var(--border); }
5802
+ /* The References column collapses on the SAME rail as the Narrative and Inspect panes — same grip,
5803
+ same seam, same 260ms ease — but scoped to this split, so it spans the Knowledge step and stops at
5804
+ the tab row instead of running the height of the window.
5805
+ Registered for the same reason --left-width is: a transition on `grid-template-columns` built from
5806
+ a var() holds its start value and the column never moves. See the @property block near .app. */
5807
+ @property --kb-refs-width { syntax: "<length>"; inherits: true; initial-value: 272px; }
5808
+ /* NO grid-template-rows on purpose. Every child below carries an explicit `grid-row:1`, which is
5809
+ what keeps them on one row; pinning the row to `minmax(0,1fr)` as well would let it collapse to
5810
+ zero in the phone layout (@media max-width:760px), where `.app` is `height:auto` and the page is
5811
+ meant to scroll rather than fit. */
5812
+ .kb-split { flex:1; min-height:0; display:grid; grid-template-columns:var(--kb-refs-width) minmax(0,1fr);
5813
+ gap:1px; background:var(--border); position:relative; }
5814
+ .kb-split:not(.resizing) { transition: --kb-refs-width var(--dur-slow) var(--ease); }
5815
+ /* !important, exactly as `.app.left-collapsed` needs it. A drag writes --kb-refs-width as an INLINE
5816
+ style, and an inline declaration beats a class rule — so without this, collapsing a column that had
5817
+ been resized left it at its dragged width with the content merely hidden behind the label. The
5818
+ shell's panes carry the same guard for the same reason; this rule was the one that missed it. */
5819
+ .kb-split.refs-collapsed { --kb-refs-width: var(--pane-collapsed) !important; }
5820
+ @media (prefers-reduced-motion: reduce) { .kb-split:not(.resizing) { transition: none; } }
5821
+ /* EVERY child is placed explicitly. The stub and the rail take named cells, and auto-placement would
5822
+ then push .kb-view-host past them into an implicit SECOND ROW — measured: the split grew two rows,
5823
+ the viewer dropped under the references, and the rail (spanning row 1 only) came out 339px tall in
5824
+ a 631px split. */
5825
+ .kb-split > .kb-refs-host { grid-column:1; grid-row:1; }
5826
+ .kb-split > .kb-view-host { grid-column:2; grid-row:1; }
5827
+ /* The rail lives in column 2 and is pulled back over the 1px gap, exactly as the shell's are pulled
5828
+ over .app's. `align-self:stretch` (from .pane-rail) is what keeps it inside the split. */
5829
+ .kb-split > .pane-rail { grid-column:2; grid-row:1; justify-self:start; margin-left:-6px; z-index:6; }
5830
+ .kb-split.refs-collapsed .resize-handle { display:none; }
5831
+ .kb-split.refs-collapsed .panel-toggle svg { transform:rotate(180deg); }
5832
+ /* The collapsed stub OVERLAYS column 1 rather than living inside .kb-refs-host, because that host's
5833
+ innerHTML is replaced wholesale on every 3 s poll repaint — anything inside it is transient. */
5834
+ /* Label at the TOP, matching .collapsed-stub's `padding:14px 0` — a folded pane should announce
5835
+ itself in the same place on every surface, and centring it here made Knowledge disagree with the
5836
+ Narrative and Inspect panes it is meant to mirror. */
5837
+ .kb-refs-stub { grid-column:1; grid-row:1; display:none; flex-direction:column; align-items:center;
5838
+ justify-content:flex-start; padding-top:14px; background:var(--surface); overflow:hidden; }
5839
+ .kb-split.refs-collapsed .kb-refs-stub { display:flex; }
5840
+ .kb-split.refs-collapsed .kb-refs-host { visibility:hidden; }
5841
+ .kb-refs-stub .vertical-label { writing-mode:vertical-rl; transform:rotate(180deg); font-size:10px;
5842
+ color:var(--text-dim); text-transform:uppercase; letter-spacing:.2em; user-select:none; white-space:nowrap; }
5455
5843
  .kb-col { background:var(--surface); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
5456
- .kb-head { padding:12px 14px 9px; font-size:10px; color:var(--text-dim); text-transform:uppercase;
5457
- letter-spacing:.16em; display:flex; justify-content:space-between; align-items:center; flex:none; }
5458
- .kb-head .h-end { font-style:italic; text-transform:none; letter-spacing:normal; font-size:10px; color:var(--text-dim); }
5844
+ /* ── THE STEP HEADER ──────────────────────────────────────────────────────────────────────────
5845
+ One header band for every project-step surface. It follows the Drawing Filter's, because that is
5846
+ the one the other steps were being compared against and the only one carrying real controls:
5847
+ 46px tall, the pane's own --surface, a 1px --border underneath, a 13px title in --text.
5848
+
5849
+ Knowledge alone had grown three of these — measured before this: .kb-head 51px / 10px uppercase /
5850
+ --text-dim / no background, .kb-graph-head 43px / 13px / --text-muted / transparent, and
5851
+ .kb-view-head 46px / 12.5px / --text / --surface. Three heights, three type sizes, three colours
5852
+ and two backgrounds across panes sitting side by side in the same step. They share this now, so
5853
+ the difference between them is their title, not their chrome. */
5854
+ .kb-view-head, .step-head {
5855
+ flex:none; display:flex; align-items:center; gap:12px; height:46px; padding:0 14px;
5856
+ background:var(--surface); border-bottom:1px solid var(--border);
5857
+ font-size:13px; color:var(--text); text-transform:none; letter-spacing:normal;
5858
+ }
5859
+ /* The trailing count / status sits quietly at the end of the band, not level with the title. */
5860
+ .kb-view-head .kb-view-name, .step-head > span:first-child { font-weight:600; }
5861
+ /* Exports and History are single scroll panes rather than a split, so their header STICKS instead of
5862
+ sitting outside the scroller: the alternative is restructuring each pane into header + inner
5863
+ scroller, and the anchoring `.ws-history` does for the rollback confirm (position:relative on the
5864
+ scroller) is load-bearing. Sticking to the padding box is why those panes drop their top padding —
5865
+ without that, content scrolls through the gap above the band. */
5866
+ .step-head { position:sticky; top:0; z-index:3; }
5867
+ /* Knowledge's band spans the whole step, so References falls UNDER it rather than carrying a header
5868
+ of its own beside the graph's — the shape the Drawing Filter already has. It is a sibling of
5869
+ .kb-split, not a child, so it is not subject to the split's columns. */
5870
+ .ws-knowledge > .step-head { flex:none; position:static; }
5871
+ .kb-step-count { font-size:11px; color:var(--text-dim); }
5872
+ .ws-knowledge > .step-head .kb-g-overview { margin-left:auto; }
5873
+ .ws-exports .step-head, .ws-history .step-head { margin:0 0 4px; }
5874
+ .ws-history { padding-top:0; }
5875
+ .ws-history .step-head { margin:0 -20px 12px; padding:0 20px; }
5459
5876
 
5460
5877
  /* References column — a scroll container, so it gets EXPLICIT themed scrollbars: app.css's global
5461
5878
  ::-webkit rule doesn't carry Firefox's scrollbar-width/color. `position:relative` anchors the
5462
5879
  remove-confirm popover HERE (not on .kb-col, whose overflow:hidden would clip it) — exactly how
5463
5880
  .ws-history anchors the rollback confirm. */
5464
- .kb-refs-body { flex:1; min-height:0; position:relative; overflow-y:auto; padding:0 12px 10px;
5881
+ /* margin-right clears the rail: it straddles the seam, so 8px of the divider bar sits over this
5882
+ column's right edge — where this container's scrollbar is. See .messages for the same reason. */
5883
+ /* Right padding drops 12 → 2 to pay for the margin, so the column keeps its content width: taking
5884
+ all 12px out of it wrapped every row's "organized ✓" badge onto a second line. */
5885
+ .kb-refs-body { flex:1; min-height:0; position:relative; overflow-y:auto; margin-right:12px; padding:0 2px 10px 12px;
5465
5886
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
5466
5887
  .kb-refs-body::-webkit-scrollbar { width:10px; }
5467
5888
  .kb-refs-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
@@ -5637,10 +6058,17 @@ tr.hist-diff-row[hidden] { display:none; }
5637
6058
  no on-accent foreground token to reference instead. */
5638
6059
  .kb-refs-host, .kb-view-host { min-width:0; min-height:0; display:flex; flex-direction:column; }
5639
6060
  .kb-refs-host > *, .kb-view-host > * { flex:1; min-height:0; }
6061
+ /* The main section takes --bg, the same ground the Drawing Filter's stage stands on, while
6062
+ References keeps --surface like the filter's panel. It was --surface too (inherited from .kb-col),
6063
+ so the two columns were the same tone and the step read as one flat sheet where the filter reads as
6064
+ a panel beside a canvas. Scoped to the view host so EVERY state that fills that slot moves together
6065
+ — graph, page, file, placeholder, loading and error — rather than only the ones that remembered to
6066
+ say so; .kb-viewer used to be the only one that did. */
6067
+ .kb-view-host > .kb-col { background:var(--bg); }
5640
6068
  .kb-viewer { background:var(--bg); }
5641
- .kb-view-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px;
5642
- padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface); }
5643
- .kb-view-name { font-size:12.5px; color:var(--text); white-space:nowrap; overflow:hidden;
6069
+ /* Metrics come from the shared step-header rule above. */
6070
+ .kb-view-head .kb-view-name { margin-right:auto; }
6071
+ .kb-view-name { color:var(--text); white-space:nowrap; overflow:hidden;
5644
6072
  text-overflow:ellipsis; min-width:0; }
5645
6073
  /* NOT .kb-x's hover→var(--err): that red is this pane's "destructive" signal for Remove. Closing a
5646
6074
  preview destroys nothing. */
@@ -5695,7 +6123,7 @@ tr.hist-diff-row[hidden] { display:none; }
5695
6123
 
5696
6124
  /* ── Stage C: the knowledge graph + page viewer ───────────────────────────────── */
5697
6125
  .kb-graph { display: flex; flex-direction: column; height: 100%; min-height: 0; }
5698
- .kb-graph-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
6126
+ /* Metrics come from the shared step-header rule above; this keeps only what is specific to the graph. */
5699
6127
  .kb-graph-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 5px 12px; border-bottom: 1px solid var(--border); }
5700
6128
  .kb-g-legend { display: flex; gap: 12px; }
5701
6129
  .kb-gleg { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-muted); }