@floless/app 0.153.0 → 0.155.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/floless-server.cjs +51767 -38222
  2. package/dist/schemas/revit.model.v1.schema.json +5 -0
  3. package/dist/schemas/steel.model.v2.schema.json +19 -5
  4. package/dist/skills/floless-app-new-workflow/SKILL.md +8 -2
  5. package/dist/skills/floless-app-onboarding/SKILL.md +31 -19
  6. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +20 -11
  7. package/dist/skills/floless-app-queue/SKILL.md +23 -4
  8. package/dist/skills/floless-app-steel-model/SKILL.md +23 -2
  9. package/dist/skills/floless-app-steel-takeoff/SKILL.md +158 -65
  10. package/dist/skills/floless-app-workflows/SKILL.md +23 -5
  11. package/dist/skills/floless-app-workflows/references/blender-exec.md +183 -0
  12. package/dist/skills/floless-app-workflows/references/dev-server-and-run-trace.md +27 -12
  13. package/dist/templates/blender-construction-sequence.flo +96 -0
  14. package/dist/web/agents.js +33 -13
  15. package/dist/web/app.css +331 -34
  16. package/dist/web/app.js +12 -1
  17. package/dist/web/aware.js +1167 -137
  18. package/dist/web/chat-question-card.js +477 -0
  19. package/dist/web/chat.css +237 -25
  20. package/dist/web/chat.js +2156 -889
  21. package/dist/web/commands-shell.js +578 -21
  22. package/dist/web/commands-steel.js +105 -4
  23. package/dist/web/guide.js +217 -16
  24. package/dist/web/index.html +104 -10
  25. package/dist/web/instructor.js +10 -9
  26. package/dist/web/left-pane.js +43 -6
  27. package/dist/web/media-player.js +234 -0
  28. package/dist/web/model-editor-contract.js +2 -0
  29. package/dist/web/model-editor-revit-adapter.js +1 -0
  30. package/dist/web/model-editor-steel-adapter.js +89 -1
  31. package/dist/web/model-panel-bridge.js +16 -2
  32. package/dist/web/model-view-query.js +590 -0
  33. package/dist/web/model-viewport-revit-adapter.js +15 -1
  34. package/dist/web/model-viewport-toolbar.js +5 -2
  35. package/dist/web/pages.js +592 -0
  36. package/dist/web/panels.js +2 -1
  37. package/dist/web/revit-editor.js +182 -16
  38. package/dist/web/run-progress.js +193 -0
  39. package/dist/web/run-strip.js +173 -0
  40. package/dist/web/steel-3d-core.js +70 -0
  41. package/dist/web/steel-editor.html +2751 -219
  42. package/dist/web/steel-frames-core.js +958 -0
  43. package/dist/web/steel-last-seen.js +315 -0
  44. package/dist/web/steel-marks-core.js +530 -0
  45. package/dist/web/steel-model-slim.js +95 -0
  46. package/dist/web/steel-model-v2-client-validation.js +14 -2
  47. package/dist/web/steel-model-v2-commands.js +258 -27
  48. package/dist/web/steel-model-v2-projection.js +78 -18
  49. package/dist/web/steel-read-confidence.js +11 -2
  50. package/dist/web/tekla-structural-grid-adapter.js +7 -1
  51. package/dist/web/tool-updates.js +141 -33
  52. package/dist/web/workspaces.js +446 -30
  53. package/package.json +3 -2
package/dist/web/app.css CHANGED
@@ -205,7 +205,8 @@
205
205
  /* ========== LAYOUT ========== */
206
206
  .app {
207
207
  display: grid;
208
- grid-template-rows: var(--header-h) 1fr 44px;
208
+ --footer-row: minmax(44px, max-content);
209
+ grid-template-rows: var(--header-h) 1fr var(--footer-row);
209
210
  --left-width: 340px;
210
211
  --right-width: 420px;
211
212
  /* minmax(0, 1fr) (not the default minmax(auto, 1fr)) lets the center column
@@ -1820,6 +1821,9 @@
1820
1821
  which must stay readable over anything. */
1821
1822
  #form-modal,
1822
1823
  #confirm-modal { z-index: 110; }
1824
+ /* #2230: the video player opens from inside other modals (the report viewer's Watch), so it sits above any
1825
+ ordinary modal (100) and the layers on them (101), still below confirms/forms/command sheet (110) and toasts. */
1826
+ #media-modal { z-index: 105; }
1823
1827
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
1824
1828
  .modal {
1825
1829
  background: var(--surface);
@@ -2489,13 +2493,16 @@
2489
2493
  background: var(--surface);
2490
2494
  border-top: 1px solid var(--border);
2491
2495
  display: flex;
2496
+ flex-wrap: wrap;
2492
2497
  align-items: center;
2493
2498
  justify-content: space-between;
2494
- padding: 0 18px;
2499
+ gap: 6px 18px;
2500
+ min-height: 44px;
2501
+ padding: 6px 18px;
2495
2502
  font-size: 11px;
2496
2503
  color: var(--text-muted);
2497
2504
  }
2498
- .status { display: flex; align-items: center; gap: 14px; }
2505
+ .status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
2499
2506
  /* A permanent route to the existing report dialog. Quiet utility styling keeps it visible
2500
2507
  without turning every screen into an error state; the label collapses before the action does. */
2501
2508
  .footer-report-issue {
@@ -2525,7 +2532,8 @@
2525
2532
  }
2526
2533
  .footer-report-issue:hover { background: var(--surface-2); border-color: var(--accent-dim); color: var(--text); }
2527
2534
  .footer-report-issue:active { background: var(--accent-soft); }
2528
- .stat { display: inline-flex; align-items: center; gap: 6px; }
2535
+ .stat { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
2536
+ #wf-templates-stats { white-space: nowrap; }
2529
2537
  .dot {
2530
2538
  width: 6px;
2531
2539
  height: 6px;
@@ -2537,8 +2545,8 @@
2537
2545
  .stat-key { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 9px; }
2538
2546
  .stat-val { font-family: var(--mono); font-size: 11px; color: var(--text); }
2539
2547
  .sep { color: var(--text-dim); opacity: 0.4; }
2540
- .version-info { display: inline-flex; align-items: center; gap: 8px; }
2541
- .aware-version, .app-version { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; }
2548
+ .version-info { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; min-width: 0; margin-left: auto; }
2549
+ .aware-version, .app-version { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.02em; white-space: nowrap; }
2542
2550
  /* Separator between the AWARE runtime version and the app build version. An explicit
2543
2551
  .ver-sep span (revealed once versions stamp) — robust to the upgrade pill sitting
2544
2552
  between the two versions, which a `+`-adjacency ::before could not span. Flex `gap`
@@ -2711,7 +2719,25 @@
2711
2719
  }
2712
2720
  .req-copy:hover { color: var(--text); background: var(--surface); }
2713
2721
  .req-copy:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
2714
- .req-del:hover { color: var(--err); border-color: var(--err); }
2722
+ /* ✕ sets a request aside (it is kept in Done), so it hovers neutral, not destructive-red. */
2723
+ .req-del:hover { color: var(--text); border-color: var(--text-muted); background: var(--surface); }
2724
+ .req-del:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
2725
+ /* The one-time tidy of old requests, said once above the list, with Undo. */
2726
+ .req-backlog { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 7px 10px; border: 1px solid var(--border);
2727
+ border-left: 3px solid var(--accent); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
2728
+ .req-backlog[hidden] { display: none; }
2729
+ .req-backlog-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
2730
+ .req-backlog-undo { appearance: none; flex-shrink: 0; border: 1px solid var(--border-strong); background: transparent; color: var(--accent-bright);
2731
+ cursor: pointer; font: inherit; font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 4px; }
2732
+ .req-backlog-undo:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
2733
+ .req-backlog-undo:disabled { opacity: .5; cursor: default; }
2734
+ .req-backlog-close { appearance: none; flex-shrink: 0; border: none; background: transparent; color: var(--text-dim); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
2735
+ .req-backlog-close:hover { color: var(--text); }
2736
+ .req-backlog-undo:focus-visible, .req-backlog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
2737
+ /* Done: why a request is there, and Restore. */
2738
+ .req-done-why { margin: 4px 0 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
2739
+ .req-state { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: 3px;
2740
+ color: var(--text-dim); font: 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
2715
2741
  /* Brief highlight for the SPECIFIC row "Open Requests" hands off to — the request the user just
2716
2742
  queued, which in an oldest-first list is at the bottom and usually below the fold.
2717
2743
  Reuses the .rtn-fired-flash TECHNIQUE (a background fade back to the row's resting surface-2),
@@ -3202,7 +3228,7 @@
3202
3228
  .graft-err { color: var(--err); font-size: 12px; margin-top: 6px; }
3203
3229
 
3204
3230
  /* ===== App self-update tag (footer) — accent pill, reuses tokens ===== */
3205
- .app-update { display: none; border: 1px solid var(--accent-dim); background: var(--accent-soft); color: var(--accent-bright); font-size: 10px; padding: 1px 7px; border-radius: 999px; cursor: pointer; margin-left: 8px; line-height: 1.5; }
3231
+ .app-update { display: none; border: 1px solid var(--accent-dim); background: var(--accent-soft); color: var(--accent-bright); font-size: 10px; padding: 1px 7px; border-radius: 999px; cursor: pointer; white-space: nowrap; flex: none; line-height: 1.5; }
3206
3232
  .app-update:not([hidden]) { display: inline-flex; align-items: center; gap: 4px; }
3207
3233
  .app-update:hover { border-color: var(--accent); color: var(--accent); }
3208
3234
  .app-update:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@@ -3371,6 +3397,29 @@
3371
3397
  .tool-updates-needs-name { color: var(--text); font-size: 12px; font-weight: 600; }
3372
3398
  .tool-updates-needs-sentence { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
3373
3399
  .tool-updates-open { flex: none; font-size: 11px; padding: 3px 9px; background: transparent; }
3400
+ /* Needs-you groups (#2180): one plain explanation per reason, the workflows listed under it. */
3401
+ .tool-updates-group { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 6px; background: var(--surface-2); }
3402
+ .tool-updates-section-head + .tool-updates-group { margin-top: 0; }
3403
+ .tool-updates-group-quiet { border-left-color: var(--border-strong); }
3404
+ .tool-updates-group-head { display: flex; align-items: baseline; gap: 8px; }
3405
+ .tool-updates-group-title { flex: 1; min-width: 0; color: var(--text); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
3406
+ .tool-updates-group-count { flex: none; padding: 0 7px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-muted); font-size: 10.5px; line-height: 16px; font-variant-numeric: tabular-nums; }
3407
+ .tool-updates-group-explain { margin: 6px 0 4px; color: var(--text-muted); font-size: 11.5px; line-height: 1.5; max-width: 68ch; }
3408
+ .tool-updates-group-quiet > summary, .tool-updates-group-rows > summary { cursor: pointer; list-style: none; color: var(--text-muted); font-size: 11px; width: fit-content; }
3409
+ .tool-updates-group-quiet > summary { display: flex; align-items: baseline; gap: 8px; width: auto; color: var(--text); font-size: 12px; }
3410
+ .tool-updates-group-quiet > summary::-webkit-details-marker, .tool-updates-group-rows > summary::-webkit-details-marker { display: none; }
3411
+ .tool-updates-group-quiet > summary::before, .tool-updates-group-rows > summary::before { content: "›"; display: inline-block; width: 10px; color: var(--text-muted); transition: transform 0.12s ease; }
3412
+ .tool-updates-group-quiet[open] > summary::before, .tool-updates-group-rows[open] > summary::before { transform: rotate(90deg); }
3413
+ .tool-updates-group-rows > summary:hover, .tool-updates-group-quiet > summary:hover .tool-updates-group-title { color: var(--text); }
3414
+ .tool-updates-group-quiet > summary:focus-visible, .tool-updates-group-rows > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
3415
+ /* A long list scrolls inside its own group, themed like the dialog body, so one group never pushes the others out of view. */
3416
+ .tool-updates-group-rows[open] { max-height: 40vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
3417
+ .tool-updates-group-rows[open]::-webkit-scrollbar { width: 7px; }
3418
+ .tool-updates-group-rows[open]::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
3419
+ .tool-updates-group-rows[open]::-webkit-scrollbar-track { background: transparent; }
3420
+ .tool-updates-group-rows .tool-updates-needs, .tool-updates-group-quiet .tool-updates-needs { padding: 5px 2px; }
3421
+ .tool-updates-group-rows .tool-updates-needs-name, .tool-updates-group-quiet .tool-updates-needs-name { font-weight: 500; overflow-wrap: anywhere; }
3422
+ .tool-updates-downloads-problem { color: var(--text-muted); }
3374
3423
  .tool-updates-result { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
3375
3424
  .tool-updates-result + .tool-updates-result { margin-top: 6px; }
3376
3425
  .tool-updates-result[data-outcome="review-again"],
@@ -4147,6 +4196,12 @@
4147
4196
  cursor: pointer; font-size: 15px; line-height: 1; padding: 0; flex-shrink: 0;
4148
4197
  }
4149
4198
  .toast-close:hover { color: var(--text); }
4199
+ .toast-action {
4200
+ appearance: none; border: 1px solid var(--border-strong); background: transparent; color: var(--accent-bright);
4201
+ cursor: pointer; font: inherit; font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 4px; flex-shrink: 0;
4202
+ }
4203
+ .toast-action:hover { background: var(--surface-3); color: var(--text); }
4204
+ .toast-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
4150
4205
  .toast.ok { border-left-color: var(--ok); }
4151
4206
  .toast.warn { border-left-color: var(--warn); }
4152
4207
  .toast.err { border-left-color: var(--err); }
@@ -4483,8 +4538,8 @@ body {
4483
4538
 
4484
4539
  /* Header Stop — the always-reachable escape hatch during a run, regardless of whether
4485
4540
  the HTML Viewer modal is open or closed (#39). Shown only while a run is in flight.
4486
- Mirrors the in-modal .overlay-stop: a quiet destructive action — warn-tinted outline
4487
- that fills on hover, never a primary. Inherits the header button's size/radius/font;
4541
+ A quiet destructive action — warn-tinted outline that fills on hover, never a primary.
4542
+ Inherits the header button's size/radius/font;
4488
4543
  only the colours are overridden here. */
4489
4544
  .run-stop-btn {
4490
4545
  background: transparent;
@@ -4607,6 +4662,70 @@ body {
4607
4662
  .notes-strip.collapsed .notes-dismiss { display: none; }
4608
4663
  .notes-strip.collapsed .notes-title::after { content: " — show"; color: var(--text-dim); font-weight: 400; }
4609
4664
 
4665
+ /* #2228 — live run progress. One view (.rp-view, web/run-strip.js) in two homes: the run strip over the
4666
+ canvas for an ordinary Run, and the report overlay under the working Flo for a report Run. Built from
4667
+ the existing strip family (.approval-strip's box, --accent-soft wash) — no new colours. The bar never
4668
+ fakes movement: indeterminate is a still, dim track; the ticking clock is the liveness signal. */
4669
+ .run-strip {
4670
+ margin: 8px 12px 0;
4671
+ padding: 8px 12px 0;
4672
+ border-radius: 6px;
4673
+ border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
4674
+ background: var(--accent-soft);
4675
+ color: var(--text);
4676
+ font-size: 12px;
4677
+ line-height: 1.45;
4678
+ overflow: hidden;
4679
+ transition: opacity 150ms linear;
4680
+ }
4681
+ .run-strip[hidden] { display: none; }
4682
+ .run-strip.rp-leaving { opacity: 0; }
4683
+ .canvas > .run-strip { position: relative; z-index: 6; }
4684
+ .rp-view { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
4685
+ .rp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
4686
+ .rp-flo { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; }
4687
+ .rp-text { flex: 1 1 220px; min-width: 0; }
4688
+ .rp-headline { font-weight: 600; overflow-wrap: anywhere; }
4689
+ .rp-detail { color: var(--text-muted); overflow-wrap: anywhere; }
4690
+ .rp-detail[hidden] { display: none; }
4691
+ .rp-elapsed { flex: none; color: var(--text-muted); font-variant-numeric: tabular-nums; }
4692
+ .rp-actions { flex: none; display: flex; gap: 8px; align-items: center; }
4693
+ .rp-actions button { white-space: nowrap; padding: 4px 10px; font-size: 12px; }
4694
+ .rp-link {
4695
+ background: transparent; border: none; padding: 4px 6px; color: var(--accent); cursor: pointer;
4696
+ text-decoration: underline; text-underline-offset: 2px;
4697
+ }
4698
+ .rp-link:hover { color: var(--accent-bright); }
4699
+ .rp-link:focus-visible, .rp-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4700
+ .rp-bar {
4701
+ position: relative; height: 2px; margin: 0 -12px; /* bleeds to the strip's edges */
4702
+ background: var(--border);
4703
+ border-radius: 1px; overflow: hidden;
4704
+ }
4705
+ .rp-fill { height: 100%; width: 0; background: var(--accent); transition: width 300ms linear; }
4706
+ .rp-fill.rp-no-anim { transition: none; }
4707
+ .rp-bar.rp-indeterminate { background: color-mix(in srgb, var(--accent) 22%, transparent); }
4708
+ .rp-bar.rp-indeterminate .rp-fill { width: 0; }
4709
+ .rp-view[data-state="stalled"] .rp-fill,
4710
+ .rp-view[data-state="paused"] .rp-fill { background: var(--text-dim); }
4711
+ .rp-view[data-state="done"] .rp-fill { background: var(--ok); width: 100%; }
4712
+ .rp-view[data-state="failed"] .rp-fill { background: var(--warn); }
4713
+ .rp-view[data-state="stopped"] .rp-fill { background: var(--text-dim); }
4714
+ .rp-view[data-state="failed"] .rp-headline { color: var(--warn); }
4715
+ /* In the report overlay the view sits centred under nothing else (Flo is its own avatar at 40 px). */
4716
+ .report-overlay .rp-view { width: min(460px, 100%); text-align: left; }
4717
+ .report-overlay .rp-bar { margin: 0; height: 3px; }
4718
+ /* The running node card: a thin determinate line along the top of its status pip. No text, no ETA. */
4719
+ .agent-card.node-running.has-progress .node-stat {
4720
+ background:
4721
+ linear-gradient(var(--accent), var(--accent)) left top / calc(var(--node-progress, 0) * 100%) 2px no-repeat,
4722
+ var(--accent-soft);
4723
+ }
4724
+ @media (prefers-reduced-motion: reduce) {
4725
+ .rp-fill { transition: none; }
4726
+ .run-strip { transition: none; }
4727
+ }
4728
+
4610
4729
  /* #1998 — approval strip over the canvas. Two costumes, both from the existing families:
4611
4730
  "Needs you" borrows .notes-strip's warn ladder (a decision is waiting), "Approval carried over"
4612
4731
  borrows .kb-informed's neutral provenance look (quiet metadata, never a warning). No new colours. */
@@ -4789,6 +4908,76 @@ body {
4789
4908
  .inspect-content .skill-docs { color: var(--accent); text-decoration: none; }
4790
4909
  .inspect-content .skill-docs:hover { text-decoration: underline; }
4791
4910
 
4911
+ /* ── #2230: the video player for what a run rendered ────────────────────────────
4912
+ The HTML Viewer's shell, a letterboxed stage, and our own control row — the <video> has no native
4913
+ controls, and the scrubber is themed per vendor (grouping the vendor pseudo-elements in one selector
4914
+ list discards the whole rule in both engines). The letterbox stays dark in the light theme: it is
4915
+ the video's own surface, framed by --border. */
4916
+ .modal.media-viewer { width: 1080px; height: auto; max-height: 90vh; }
4917
+ .media-stage {
4918
+ position: relative; flex: 1 1 auto; min-height: 240px;
4919
+ display: flex; align-items: center; justify-content: center;
4920
+ background: #020817; border-bottom: 1px solid var(--border);
4921
+ }
4922
+ .media-stage video { display: block; max-width: 100%; max-height: calc(90vh - 190px); cursor: pointer; }
4923
+ .media-stage[data-state="loading"] video, .media-stage[data-state="error"] video { visibility: hidden; }
4924
+ .media-status {
4925
+ position: absolute; inset: auto 24px; max-width: 520px; margin: 0 auto; text-align: center;
4926
+ color: #cbd5e1; font-size: 13px; line-height: 1.5;
4927
+ }
4928
+ .media-status[hidden] { display: none; }
4929
+ .media-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--surface-2); }
4930
+ .media-list[hidden] { display: none; }
4931
+ .media-chip { padding: 3px 10px; font-size: 12px; background: var(--surface-3); color: var(--text-muted); border-radius: 999px; }
4932
+ .media-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); border-color: var(--accent-dim); }
4933
+ .media-controls {
4934
+ display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
4935
+ background: var(--surface-2); border-top: 1px solid var(--border);
4936
+ }
4937
+ .media-btn {
4938
+ flex: none; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
4939
+ background: transparent; color: var(--text); font-size: 14px; border: 1px solid transparent; border-radius: 6px;
4940
+ }
4941
+ .media-btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); }
4942
+ .media-btn:disabled { color: var(--text-dim); cursor: default; }
4943
+ .media-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
4944
+ .media-btn:focus-visible, .media-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4945
+ .media-time { flex: none; min-width: 3.4em; text-align: center; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
4946
+ /* The scrubber's SIZE in the control row lives on the row (.media-controls > *), not on a range selector, so
4947
+ the only range rules are the theme below — and forced-colors hands every one of them back. */
4948
+ .media-controls > .media-seek-wrap { flex: 1 1 auto; min-width: 80px; display: flex; align-items: center; }
4949
+ /* Global, not scoped: verify:native-controls requires every range the shell can render to be themed. */
4950
+ input[type=range] {
4951
+ appearance: none; -webkit-appearance: none; width: 100%; height: 24px; margin: 0; padding: 0;
4952
+ border: 0; background: transparent; cursor: pointer;
4953
+ }
4954
+ input[type=range]::-webkit-slider-runnable-track {
4955
+ height: 4px; border-radius: 2px;
4956
+ background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--played, 0%) 100% no-repeat, var(--border-strong);
4957
+ }
4958
+ input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-strong); }
4959
+ input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
4960
+ input[type=range]::-webkit-slider-thumb {
4961
+ appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px;
4962
+ border-radius: 50%; background: var(--accent); border: 1px solid var(--bg);
4963
+ }
4964
+ input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 1px solid var(--bg); }
4965
+ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4966
+ /* Disabled (loading) reads through the row, not the slider: the whole control row dims. */
4967
+ .media-controls.is-loading { opacity: .55; }
4968
+ @media (forced-colors: active) {
4969
+ input[type=range] { appearance: revert; -webkit-appearance: revert; width: revert; height: revert; margin: revert; padding: revert; border: revert; background: revert; }
4970
+ input[type=range]::-webkit-slider-runnable-track { height: revert; border-radius: revert; background: revert; }
4971
+ input[type=range]::-moz-range-track { height: revert; border-radius: revert; background: revert; }
4972
+ input[type=range]::-moz-range-progress { height: revert; border-radius: revert; background: revert; }
4973
+ input[type=range]::-webkit-slider-thumb { appearance: revert; -webkit-appearance: revert; width: revert; height: revert; margin-top: revert; border-radius: revert; background: revert; border: revert; }
4974
+ input[type=range]::-moz-range-thumb { width: revert; height: revert; border-radius: revert; background: revert; border: revert; }
4975
+ input[type=range]:focus-visible { outline: revert; outline-offset: revert; }
4976
+ }
4977
+ /* The finished strip's Watch button is the one primary control in it. */
4978
+ .rp-actions button.rp-watch { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
4979
+ .rp-actions button.rp-watch:hover { background: var(--accent-bright); }
4980
+
4792
4981
  /* ── HTML Viewer (report) modal ─────────────────────────────────────────────── */
4793
4982
  .modal.report-viewer {
4794
4983
  width: 1180px; max-width: 94vw; height: 86vh;
@@ -4881,20 +5070,6 @@ body {
4881
5070
  [data-theme="light"] .flo-avatar { --flo-hat: var(--surface); --flo-hat-line: var(--accent); --flo-pulse: var(--accent-dim); }
4882
5071
  .run-fail-card .cred-fail-status { gap: 10px; }
4883
5072
  .cred-fail-icon.run-fail-flo { display: inline-flex; }
4884
- /* Stop the in-flight run — the escape hatch when a host hangs. Reads as a quiet
4885
- destructive action: warn-tinted outline that fills on hover, never a primary. */
4886
- .report-overlay .overlay-stop {
4887
- margin-top: 4px; padding: 6px 16px; border-radius: 6px;
4888
- background: transparent; color: var(--warn);
4889
- border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
4890
- font: 600 12px/1.2 var(--ui); cursor: pointer;
4891
- transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
4892
- }
4893
- .report-overlay .overlay-stop:hover {
4894
- background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: var(--warn); color: var(--text);
4895
- }
4896
- .report-overlay .overlay-stop:disabled { opacity: 0.6; cursor: default; }
4897
-
4898
5073
  /* Credential-failure reconnect card — shown in .report-overlay when a run hits a
4899
5074
  rejected OAuth token. Amber-topped (recoverable, needs attention); the Reconnect
4900
5075
  action keeps primary-blue (the one critical next step), Open Integrations is ghost. */
@@ -5341,7 +5516,7 @@ body {
5341
5516
  .has-whats-new below. Collapsed it keeps a thin rail so the layout height
5342
5517
  never jumps between two very different sizes mid-command. */
5343
5518
  .app.has-instructor {
5344
- grid-template-rows: var(--header-h) 1fr auto 44px;
5519
+ grid-template-rows: var(--header-h) 1fr auto var(--footer-row);
5345
5520
  grid-template-areas:
5346
5521
  "header header header"
5347
5522
  "chat canvas inspect"
@@ -5350,7 +5525,7 @@ body {
5350
5525
  }
5351
5526
  /* Both rows present: the Instructor sits below What's-new, directly on the footer. */
5352
5527
  .app.has-instructor.has-whats-new {
5353
- grid-template-rows: var(--header-h) 1fr auto auto 44px;
5528
+ grid-template-rows: var(--header-h) 1fr auto auto var(--footer-row);
5354
5529
  grid-template-areas:
5355
5530
  "header header header"
5356
5531
  "chat canvas inspect"
@@ -5484,7 +5659,7 @@ body {
5484
5659
  A 4th grid row above the footer — NOT absolutely positioned. .has-whats-new
5485
5660
  inserts an `auto` row + a full-width `whats-new` area between the body and footer. */
5486
5661
  .app.has-whats-new {
5487
- grid-template-rows: var(--header-h) 1fr auto 44px;
5662
+ grid-template-rows: var(--header-h) 1fr auto var(--footer-row);
5488
5663
  grid-template-areas:
5489
5664
  "header header header"
5490
5665
  "chat canvas inspect"
@@ -5793,7 +5968,7 @@ body {
5793
5968
  Guarded by the media query → desktop layout is 100% untouched. No new fonts/colors/components. */
5794
5969
  @media (max-width: 760px) {
5795
5970
  html, body { overflow: auto; }
5796
- .app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr 44px; }
5971
+ .app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr var(--footer-row); }
5797
5972
  /* The `auto` first row above is (3) — the wrapped header needs to size to its
5798
5973
  content. But `.app` is specificity (0,1,0) and `.app.has-instructor` is
5799
5974
  (0,2,0), so the extra-row rules win here no matter the source order and pin
@@ -5801,9 +5976,9 @@ body {
5801
5976
  The Instructor is ON by default, so without these two lines that is the
5802
5977
  phone layout for everyone. .has-whats-new carries the same defect but is
5803
5978
  transient post-update state; this one would have been permanent. */
5804
- .app.has-instructor { grid-template-rows: auto 1fr auto 44px; }
5805
- .app.has-instructor.has-whats-new { grid-template-rows: auto 1fr auto auto 44px; }
5806
- .app.has-whats-new { grid-template-rows: auto 1fr auto 44px; }
5979
+ .app.has-instructor { grid-template-rows: auto 1fr auto var(--footer-row); }
5980
+ .app.has-instructor.has-whats-new { grid-template-rows: auto 1fr auto auto var(--footer-row); }
5981
+ .app.has-whats-new { grid-template-rows: auto 1fr auto var(--footer-row); }
5807
5982
  /* Keep mobile F1 guidance inside the dialog's focus and scroll area. */
5808
5983
  body:has(#graft-modal.show) .app.has-instructor #instructor,
5809
5984
  body:has(#workspace-root-modal.show) .app.has-instructor #instructor {
@@ -5855,7 +6030,7 @@ body {
5855
6030
  /* ── Workspaces (mode shell) — see docs/superpowers/mockups/2026-07-03-workspaces-mockup.html ── */
5856
6031
  /* The display rules below (display:flex etc.) would otherwise override the `hidden` attribute's
5857
6032
  UA display:none — these guards keep hidden winning so nothing leaks across modes. */
5858
- .ws-landing[hidden], .ws-project[hidden], .ws-spine[hidden], .ws-frame[hidden], .ws-exports[hidden], .ws-history[hidden] { display:none !important; }
6033
+ .ws-landing[hidden], .ws-project[hidden], .ws-spine[hidden], .ws-frame[hidden], .ws-exports[hidden], .ws-history[hidden], .ws-pages[hidden] { display:none !important; }
5859
6034
  .mode-switch { display:inline-flex; border:1px solid var(--border-strong); border-radius:6px;
5860
6035
  overflow:hidden; background:var(--surface-2); flex:none; }
5861
6036
  .mode-switch button { background:transparent; border:none; border-radius:0; color:var(--text-muted);
@@ -5896,7 +6071,7 @@ body.mode-workspaces #menu .menu-item[data-action="graft"],
5896
6071
  body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5897
6072
  .app.mode-workspaces .topology, .app.mode-workspaces .canvas-toolbar,
5898
6073
  .app.mode-workspaces .hint, .app.mode-workspaces .fav-bar, .app.mode-workspaces .dashboard,
5899
- .app.mode-workspaces .notes-strip, .app.mode-workspaces .approval-strip, .app.mode-workspaces .kb-informed, .app.mode-workspaces .find-overlay,
6074
+ .app.mode-workspaces .notes-strip, .app.mode-workspaces .approval-strip, .app.mode-workspaces .run-strip, .app.mode-workspaces .kb-informed, .app.mode-workspaces .find-overlay,
5900
6075
  .app.mode-workspaces #canvas-drop-target, .app.mode-workspaces #wf-templates-stats,
5901
6076
  /* the ws surfaces carry their own headings — hide the canvas's "Canvas · transparency layer" label */
5902
6077
  .app.mode-workspaces .canvas > .panel-label { display:none !important; }
@@ -5913,7 +6088,7 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5913
6088
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .topology, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas-toolbar,
5914
6089
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .hint, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .fav-bar,
5915
6090
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .dashboard, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .notes-strip,
5916
- :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .kb-informed, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .approval-strip, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #canvas-drop-target,
6091
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .kb-informed, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .approval-strip, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .run-strip, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #canvas-drop-target,
5917
6092
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas > .panel-label,
5918
6093
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #compile-btn, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #sim-btn,
5919
6094
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #run-btn, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #restore-btn,
@@ -6038,6 +6213,8 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6038
6213
  .ai-chat-connection-card .conn-receipt-host .conn-receipt { margin-top:0; }
6039
6214
  .ai-chat-connection-card .conn-confirm-host .int-action:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
6040
6215
  .ai-chat-connection-card.is-dismissed { border-left-color:var(--border-strong); padding:6px 10px; }
6216
+ /* #2185: connected and an account chosen — the finished state, marked on the edge in the existing success token. */
6217
+ .ai-chat-connection-card.is-connected { border-left-color:var(--ok); }
6041
6218
  .ai-chat-connection-collapsed { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; color:var(--text-muted); font-size:10.5px; line-height:14px; }
6042
6219
  .ai-chat-connection-collapsed button { min-height:24px; padding:3px 8px; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text-muted); font-size:10px; font-weight:600; cursor:pointer; }
6043
6220
  .ai-chat-connection-collapsed button:hover { color:var(--text); background:var(--surface-3); }
@@ -6277,6 +6454,12 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6277
6454
  .ws-archived-summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
6278
6455
  .ws-archived[open] > .ws-archived-summary .ws-archived-caret { transform:rotate(90deg); }
6279
6456
  .ws-archived-count { font-family:var(--mono); letter-spacing:0; color:var(--text-muted); }
6457
+ /* Workflows page: the Archived disclosure holds the card grid (not the Workspaces row list); `hidden` must beat any display. */
6458
+ .wf-archived > .ws-grid { margin-top:10px; }
6459
+ /* The summary is the only way into 126 cards, so it reads at AA contrast (--text-dim is ~3:1 light / ~3.9:1 dark). */
6460
+ .wf-archived > .ws-archived-summary { color:var(--text-muted); }
6461
+ .wf-archived > .ws-archived-summary:hover { color:var(--text); }
6462
+ .wf-archived[hidden] { display:none; }
6280
6463
  .ws-archived-list { margin-top:8px; border:1px solid var(--border); border-radius:10px; background:var(--surface);
6281
6464
  max-height:320px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
6282
6465
  .ws-archived-row { display:flex; align-items:center; justify-content:space-between; gap:12px;
@@ -7673,3 +7856,117 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7673
7856
  @media (prefers-reduced-motion: reduce) {
7674
7857
  .guide-preview-disclosure > summary::before, .guide-preview-section > summary::before { transition: none; }
7675
7858
  }
7859
+
7860
+ /* Editable revision annotations use the shared form skin in both themes. */
7861
+ /* Keep the optional annotation inside the review's viewport budget. The note can scroll/shrink;
7862
+ the existing action footer remains a non-shrinking, reachable flex child. */
7863
+ .approval-revision-note { margin: 10px 0; flex: 0 1 auto; min-height: 0; max-height: min(210px, 30vh); overflow-y: auto; }
7864
+ .approval-revision-note textarea { box-sizing: border-box; width: 100%; resize: vertical; min-height: 68px; max-height: min(140px, 20vh); overflow-y: auto; padding: 8px 10px; background: var(--bg-input, var(--bg)); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: inherit; }
7865
+ .approval-revision-note, .approval-revision-note textarea { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
7866
+ .approval-revision-note::-webkit-scrollbar, .approval-revision-note textarea::-webkit-scrollbar { width: 8px; }
7867
+ .approval-revision-note::-webkit-scrollbar-thumb, .approval-revision-note textarea::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
7868
+ .approval-revision-note::-webkit-scrollbar-track, .approval-revision-note textarea::-webkit-scrollbar-track { background: transparent; }
7869
+ .approval-revision-note textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
7870
+ .hist-revision-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 5px; }
7871
+ .hist-revision-note-meta { color: var(--text-dim); font-size: 11px; margin-bottom: 6px; }
7872
+ .hist-note-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
7873
+
7874
+ /* ── Pages (#2262): the Pages lists and the Page viewer ─────────────────────────
7875
+ Same chrome as History/Exports and the report viewer — tokens only, both themes. */
7876
+ .ws-pages { flex:1; min-height:0; position:relative; overflow-y:auto; padding:16px 20px;
7877
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7878
+ .ws-pages::-webkit-scrollbar { width:10px; }
7879
+ .ws-pages::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7880
+ .ws-pages::-webkit-scrollbar-track { background:transparent; }
7881
+ .pg-sub { font-size:12px; color:var(--text-muted); margin:6px 0 14px; }
7882
+ .pg-loading-line { font-size:12px; color:var(--text-dim); margin:8px 0; }
7883
+ .pg-empty { margin:6px 0 0; padding:11px 14px; background:var(--surface-2); border:1px solid var(--border);
7884
+ border-left:3px solid var(--accent-dim); border-radius:6px; font-size:12.5px; color:var(--text-muted); max-width:640px; }
7885
+ .pg-empty p { margin:0; }
7886
+ .pg-empty .pg-empty-title { color:var(--text); font-weight:600; margin-bottom:4px; }
7887
+ .pg-list { display:flex; flex-direction:column; gap:6px; max-width:880px; }
7888
+ .pg-row { display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; }
7889
+ .pg-row-open { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px;
7890
+ padding:9px 12px; background:transparent; border:0; border-radius:6px; text-align:left; cursor:pointer; color:var(--text); font:inherit; }
7891
+ .pg-row-open:hover { background:var(--surface-3); }
7892
+ .pg-row-open:focus-visible, .pg-row-delete:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
7893
+ .pg-row-line { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
7894
+ .pg-row-title { font-size:13px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
7895
+ .pg-row-meta { font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
7896
+ .pg-row-damaged { padding:9px 12px; border-left:3px solid var(--warn); }
7897
+ .pg-row-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
7898
+ .pg-row-damaged .pg-row-meta { white-space:normal; }
7899
+ .pg-row-delete { padding:5px 10px; background:var(--surface-3); color:var(--text-muted); flex-shrink:0; }
7900
+ .pg-row-delete:hover { color:var(--text); border-color:var(--warn); }
7901
+ .ws-pages-group:empty { display:none; }
7902
+ .ws-pages-group .pg-list { margin-bottom:8px; }
7903
+ /* AI-made: a label, not an alarm — the accent tint, as other provenance chips here. */
7904
+ .pg-ai-badge { flex-shrink:0; font-size:9px; text-transform:uppercase; letter-spacing:0.1em; font-weight:600;
7905
+ padding:2px 8px; border-radius:10px; color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, transparent);
7906
+ border:1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
7907
+ .pg-ai-badge[hidden] { display:none; }
7908
+ .pg-ai-badge:focus-visible, .pv-info:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
7909
+
7910
+ /* The viewer reuses .report-viewer's frame and head; Full screen fills the window. */
7911
+ .page-viewer-backdrop.pv-full { padding:0; }
7912
+ .page-viewer-backdrop.pv-full .modal.page-viewer { width:100vw; max-width:100vw; height:100vh; border-radius:0; }
7913
+ /* Keep the existing Instructor usable above the viewer, as for directory decisions. */
7914
+ body:has(.app.has-instructor) #page-viewer.show { box-sizing:border-box; padding-bottom:128px; }
7915
+ body:has(.app.has-instructor) #page-viewer.show .modal.page-viewer { max-height:min(86vh, calc(100dvh - 152px)); }
7916
+ body:has(.app.has-instructor) #page-viewer.show.pv-full .modal.page-viewer { height:calc(100dvh - 128px); max-height:calc(100dvh - 128px); }
7917
+ body:has(#page-viewer.show) .app.has-instructor #instructor {
7918
+ position:relative; z-index:101; pointer-events:auto; height:auto; min-height:34px; max-height:84px;
7919
+ align-items:flex-start; padding:8px 14px; line-height:1.45; white-space:normal; overflow-y:auto;
7920
+ scrollbar-width:thin; scrollbar-color:var(--text-dim) transparent;
7921
+ }
7922
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar { width:7px; }
7923
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:7px; }
7924
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar-track { background:transparent; }
7925
+ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto; min-width:0; }
7926
+ .pv-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
7927
+ .pv-title-row .modal-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
7928
+ .pv-info { color:var(--text-dim); font-size:13px; cursor:help; border-radius:50%; }
7929
+ .pv-anchor { position:relative; }
7930
+ .pv-version { font-variant-numeric:tabular-nums; }
7931
+ .pv-allowed { font-size:11px; color:var(--warn); white-space:nowrap; }
7932
+ .pv-allowed::before { content:'●'; font-size:8px; margin-right:5px; vertical-align:1px; }
7933
+ .pv-allowed[hidden] { display:none; }
7934
+ .report-actions button.pv-delete:hover { color:var(--text); border-color:var(--warn); }
7935
+ .pv-pop { left:auto; right:0; padding:4px; max-height:320px; overflow-y:auto;
7936
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7937
+ .pv-pop::-webkit-scrollbar { width:8px; }
7938
+ .pv-pop::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
7939
+ .pv-pop::-webkit-scrollbar-track { background:transparent; }
7940
+ .pv-version-option { flex-direction:column; align-items:flex-start; gap:2px; }
7941
+ .pv-option-main { font-size:12px; color:var(--text); }
7942
+ .pv-version-option.selected .pv-option-main { color:var(--accent); }
7943
+ .pv-option-meta { font-size:10.5px; color:var(--text-dim); }
7944
+ .pv-pop-head { font-size:9px; text-transform:uppercase; letter-spacing:0.16em; font-weight:600; color:var(--text-dim); padding:8px 8px 6px; }
7945
+ .pv-pop-note { font-size:11.5px; color:var(--text-muted); margin:4px 8px 8px; max-width:300px; }
7946
+ .pv-site-row { display:flex; align-items:center; gap:8px; padding:4px 8px; }
7947
+ .pv-site-host { flex:1; min-width:0; font-size:12px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
7948
+ .pv-site-row button { padding:4px 9px; font-size:11.5px; background:var(--surface-3); color:var(--text-muted); }
7949
+ .pv-site-row button:hover { color:var(--text); }
7950
+ /* Asks from the Page: a strip ABOVE the frame (push-down, never an overlay the Page could imitate). */
7951
+ .pv-banner { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 18px;
7952
+ background:var(--surface-2); border-bottom:1px solid var(--border); border-left:3px solid var(--accent); }
7953
+ .pv-banner[data-kind="blocked"] { border-left-color:var(--warn); }
7954
+ .pv-banner[hidden] { display:none; }
7955
+ .pv-banner-text { flex:1 1 360px; margin:0; font-size:12.5px; color:var(--text-muted); line-height:1.45; }
7956
+ .pv-banner-text strong { color:var(--text); font-weight:600; }
7957
+ .pv-banner-path { color:var(--text-dim); }
7958
+ .pv-banner-actions { display:flex; gap:8px; flex-shrink:0; }
7959
+ .pv-banner-actions button { padding:5px 12px; }
7960
+ .pv-banner-actions button.ghost { background:var(--surface-3); color:var(--text); }
7961
+ .pv-banner-primary { background:var(--accent); color:white; border-color:var(--accent); font-weight:600; }
7962
+ .pv-banner-primary:hover { background:var(--accent-bright); }
7963
+ .pv-banner button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
7964
+ .pv-banner-list { flex-basis:100%; max-height:160px; overflow-y:auto; border-top:1px solid var(--border); padding-top:4px;
7965
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7966
+ .pv-banner-list::-webkit-scrollbar { width:8px; }
7967
+ .pv-banner-list::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
7968
+ .pv-banner-list::-webkit-scrollbar-track { background:transparent; }
7969
+ .pv-stage #pv-frame { width:100%; height:100%; border:0; display:block; background:#fff; transition:opacity .15s ease; }
7970
+ .pv-stage.is-loading #pv-frame { opacity:.55; }
7971
+ .pv-loading { position:absolute; inset:0; display:grid; place-items:center; font-size:12.5px; color:var(--text-muted); pointer-events:none; z-index:1; }
7972
+ .pv-loading[hidden] { display:none; }
package/dist/web/app.js CHANGED
@@ -1729,8 +1729,19 @@ function showToast(msg, type, options) {
1729
1729
  x.onclick = dismiss;
1730
1730
  t.appendChild(x);
1731
1731
  }
1732
+ // A confirmation that can be taken back (Dismissed - Undo): the button runs the caller's undo, once, and closes the toast.
1733
+ const action = options?.action;
1734
+ if (action && typeof action.onClick === 'function') {
1735
+ const undo = document.createElement('button');
1736
+ undo.className = 'toast-action';
1737
+ undo.type = 'button';
1738
+ undo.textContent = String(action.label || 'Undo');
1739
+ if (action.commandId) undo.setAttribute('data-command-id', String(action.commandId));
1740
+ undo.onclick = () => { dismiss(); action.onClick(); };
1741
+ t.appendChild(undo);
1742
+ }
1732
1743
  c.appendChild(t);
1733
- if (ms > 0) setTimeout(dismiss, ms);
1744
+ if (ms > 0) setTimeout(dismiss, action ? Math.max(ms, 8000) : ms);
1734
1745
  return dismiss;
1735
1746
  }
1736
1747