@floless/app 0.154.0 → 0.155.1

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 +49502 -37986
  2. package/dist/schemas/steel.model.v2.schema.json +19 -5
  3. package/dist/skills/floless-app-onboarding/SKILL.md +22 -13
  4. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +12 -8
  5. package/dist/skills/floless-app-steel-model/SKILL.md +23 -2
  6. package/dist/skills/floless-app-steel-takeoff/SKILL.md +158 -65
  7. package/dist/skills/floless-app-workflows/SKILL.md +23 -5
  8. package/dist/skills/floless-app-workflows/references/blender-exec.md +183 -0
  9. package/dist/skills/floless-app-workflows/references/dev-server-and-run-trace.md +27 -12
  10. package/dist/templates/blender-construction-sequence.flo +96 -0
  11. package/dist/web/agents.js +33 -13
  12. package/dist/web/app.css +275 -33
  13. package/dist/web/aware.js +745 -82
  14. package/dist/web/chat-question-card.js +477 -0
  15. package/dist/web/chat.css +177 -12
  16. package/dist/web/chat.js +1537 -717
  17. package/dist/web/commands-shell.js +424 -7
  18. package/dist/web/commands-steel.js +105 -4
  19. package/dist/web/guide.js +4 -3
  20. package/dist/web/index.html +96 -7
  21. package/dist/web/instructor.js +10 -9
  22. package/dist/web/left-pane.js +40 -3
  23. package/dist/web/media-player.js +234 -0
  24. package/dist/web/model-editor-contract.js +2 -0
  25. package/dist/web/model-editor-revit-adapter.js +1 -0
  26. package/dist/web/model-editor-steel-adapter.js +89 -1
  27. package/dist/web/model-panel-bridge.js +16 -2
  28. package/dist/web/model-view-query.js +590 -0
  29. package/dist/web/model-viewport-revit-adapter.js +15 -1
  30. package/dist/web/model-viewport-toolbar.js +5 -2
  31. package/dist/web/pages.js +592 -0
  32. package/dist/web/panels.js +2 -1
  33. package/dist/web/revit-editor.js +181 -16
  34. package/dist/web/run-progress.js +193 -0
  35. package/dist/web/run-strip.js +173 -0
  36. package/dist/web/steel-3d-core.js +70 -0
  37. package/dist/web/steel-editor.html +2751 -219
  38. package/dist/web/steel-frames-core.js +958 -0
  39. package/dist/web/steel-last-seen.js +315 -0
  40. package/dist/web/steel-marks-core.js +530 -0
  41. package/dist/web/steel-model-slim.js +95 -0
  42. package/dist/web/steel-model-v2-client-validation.js +14 -2
  43. package/dist/web/steel-model-v2-commands.js +258 -27
  44. package/dist/web/steel-model-v2-projection.js +78 -18
  45. package/dist/web/steel-read-confidence.js +11 -2
  46. package/dist/web/workspaces.js +416 -26
  47. 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`
@@ -3220,7 +3228,7 @@
3220
3228
  .graft-err { color: var(--err); font-size: 12px; margin-top: 6px; }
3221
3229
 
3222
3230
  /* ===== App self-update tag (footer) — accent pill, reuses tokens ===== */
3223
- .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; }
3224
3232
  .app-update:not([hidden]) { display: inline-flex; align-items: center; gap: 4px; }
3225
3233
  .app-update:hover { border-color: var(--accent); color: var(--accent); }
3226
3234
  .app-update:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@@ -4530,8 +4538,8 @@ body {
4530
4538
 
4531
4539
  /* Header Stop — the always-reachable escape hatch during a run, regardless of whether
4532
4540
  the HTML Viewer modal is open or closed (#39). Shown only while a run is in flight.
4533
- Mirrors the in-modal .overlay-stop: a quiet destructive action — warn-tinted outline
4534
- 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;
4535
4543
  only the colours are overridden here. */
4536
4544
  .run-stop-btn {
4537
4545
  background: transparent;
@@ -4654,6 +4662,70 @@ body {
4654
4662
  .notes-strip.collapsed .notes-dismiss { display: none; }
4655
4663
  .notes-strip.collapsed .notes-title::after { content: " — show"; color: var(--text-dim); font-weight: 400; }
4656
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
+
4657
4729
  /* #1998 — approval strip over the canvas. Two costumes, both from the existing families:
4658
4730
  "Needs you" borrows .notes-strip's warn ladder (a decision is waiting), "Approval carried over"
4659
4731
  borrows .kb-informed's neutral provenance look (quiet metadata, never a warning). No new colours. */
@@ -4836,6 +4908,76 @@ body {
4836
4908
  .inspect-content .skill-docs { color: var(--accent); text-decoration: none; }
4837
4909
  .inspect-content .skill-docs:hover { text-decoration: underline; }
4838
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
+
4839
4981
  /* ── HTML Viewer (report) modal ─────────────────────────────────────────────── */
4840
4982
  .modal.report-viewer {
4841
4983
  width: 1180px; max-width: 94vw; height: 86vh;
@@ -4928,20 +5070,6 @@ body {
4928
5070
  [data-theme="light"] .flo-avatar { --flo-hat: var(--surface); --flo-hat-line: var(--accent); --flo-pulse: var(--accent-dim); }
4929
5071
  .run-fail-card .cred-fail-status { gap: 10px; }
4930
5072
  .cred-fail-icon.run-fail-flo { display: inline-flex; }
4931
- /* Stop the in-flight run — the escape hatch when a host hangs. Reads as a quiet
4932
- destructive action: warn-tinted outline that fills on hover, never a primary. */
4933
- .report-overlay .overlay-stop {
4934
- margin-top: 4px; padding: 6px 16px; border-radius: 6px;
4935
- background: transparent; color: var(--warn);
4936
- border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
4937
- font: 600 12px/1.2 var(--ui); cursor: pointer;
4938
- transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
4939
- }
4940
- .report-overlay .overlay-stop:hover {
4941
- background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: var(--warn); color: var(--text);
4942
- }
4943
- .report-overlay .overlay-stop:disabled { opacity: 0.6; cursor: default; }
4944
-
4945
5073
  /* Credential-failure reconnect card — shown in .report-overlay when a run hits a
4946
5074
  rejected OAuth token. Amber-topped (recoverable, needs attention); the Reconnect
4947
5075
  action keeps primary-blue (the one critical next step), Open Integrations is ghost. */
@@ -5388,7 +5516,7 @@ body {
5388
5516
  .has-whats-new below. Collapsed it keeps a thin rail so the layout height
5389
5517
  never jumps between two very different sizes mid-command. */
5390
5518
  .app.has-instructor {
5391
- grid-template-rows: var(--header-h) 1fr auto 44px;
5519
+ grid-template-rows: var(--header-h) 1fr auto var(--footer-row);
5392
5520
  grid-template-areas:
5393
5521
  "header header header"
5394
5522
  "chat canvas inspect"
@@ -5397,7 +5525,7 @@ body {
5397
5525
  }
5398
5526
  /* Both rows present: the Instructor sits below What's-new, directly on the footer. */
5399
5527
  .app.has-instructor.has-whats-new {
5400
- grid-template-rows: var(--header-h) 1fr auto auto 44px;
5528
+ grid-template-rows: var(--header-h) 1fr auto auto var(--footer-row);
5401
5529
  grid-template-areas:
5402
5530
  "header header header"
5403
5531
  "chat canvas inspect"
@@ -5531,7 +5659,7 @@ body {
5531
5659
  A 4th grid row above the footer — NOT absolutely positioned. .has-whats-new
5532
5660
  inserts an `auto` row + a full-width `whats-new` area between the body and footer. */
5533
5661
  .app.has-whats-new {
5534
- grid-template-rows: var(--header-h) 1fr auto 44px;
5662
+ grid-template-rows: var(--header-h) 1fr auto var(--footer-row);
5535
5663
  grid-template-areas:
5536
5664
  "header header header"
5537
5665
  "chat canvas inspect"
@@ -5840,7 +5968,7 @@ body {
5840
5968
  Guarded by the media query → desktop layout is 100% untouched. No new fonts/colors/components. */
5841
5969
  @media (max-width: 760px) {
5842
5970
  html, body { overflow: auto; }
5843
- .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); }
5844
5972
  /* The `auto` first row above is (3) — the wrapped header needs to size to its
5845
5973
  content. But `.app` is specificity (0,1,0) and `.app.has-instructor` is
5846
5974
  (0,2,0), so the extra-row rules win here no matter the source order and pin
@@ -5848,9 +5976,9 @@ body {
5848
5976
  The Instructor is ON by default, so without these two lines that is the
5849
5977
  phone layout for everyone. .has-whats-new carries the same defect but is
5850
5978
  transient post-update state; this one would have been permanent. */
5851
- .app.has-instructor { grid-template-rows: auto 1fr auto 44px; }
5852
- .app.has-instructor.has-whats-new { grid-template-rows: auto 1fr auto auto 44px; }
5853
- .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); }
5854
5982
  /* Keep mobile F1 guidance inside the dialog's focus and scroll area. */
5855
5983
  body:has(#graft-modal.show) .app.has-instructor #instructor,
5856
5984
  body:has(#workspace-root-modal.show) .app.has-instructor #instructor {
@@ -5902,7 +6030,7 @@ body {
5902
6030
  /* ── Workspaces (mode shell) — see docs/superpowers/mockups/2026-07-03-workspaces-mockup.html ── */
5903
6031
  /* The display rules below (display:flex etc.) would otherwise override the `hidden` attribute's
5904
6032
  UA display:none — these guards keep hidden winning so nothing leaks across modes. */
5905
- .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; }
5906
6034
  .mode-switch { display:inline-flex; border:1px solid var(--border-strong); border-radius:6px;
5907
6035
  overflow:hidden; background:var(--surface-2); flex:none; }
5908
6036
  .mode-switch button { background:transparent; border:none; border-radius:0; color:var(--text-muted);
@@ -5943,7 +6071,7 @@ body.mode-workspaces #menu .menu-item[data-action="graft"],
5943
6071
  body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5944
6072
  .app.mode-workspaces .topology, .app.mode-workspaces .canvas-toolbar,
5945
6073
  .app.mode-workspaces .hint, .app.mode-workspaces .fav-bar, .app.mode-workspaces .dashboard,
5946
- .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,
5947
6075
  .app.mode-workspaces #canvas-drop-target, .app.mode-workspaces #wf-templates-stats,
5948
6076
  /* the ws surfaces carry their own headings — hide the canvas's "Canvas · transparency layer" label */
5949
6077
  .app.mode-workspaces .canvas > .panel-label { display:none !important; }
@@ -5960,7 +6088,7 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5960
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,
5961
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,
5962
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,
5963
- :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,
5964
6092
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas > .panel-label,
5965
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,
5966
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,
@@ -7728,3 +7856,117 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7728
7856
  @media (prefers-reduced-motion: reduce) {
7729
7857
  .guide-preview-disclosure > summary::before, .guide-preview-section > summary::before { transition: none; }
7730
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; }