@floless/app 0.155.2 → 0.157.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 (64) hide show
  1. package/cli-actions.mjs +392 -0
  2. package/dist/floless-server.cjs +182734 -141519
  3. package/dist/schemas/drawing-check.profile.v1.schema.json +15 -2
  4. package/dist/schemas/steel.model.v2.schema.json +25 -1
  5. package/dist/skills/floless-app-actions/SKILL.md +199 -0
  6. package/dist/skills/floless-app-approval/SKILL.md +8 -5
  7. package/dist/skills/floless-app-bridge/SKILL.md +12 -9
  8. package/dist/skills/floless-app-knowledge/SKILL.md +50 -14
  9. package/dist/skills/floless-app-new-workflow/SKILL.md +26 -10
  10. package/dist/skills/floless-app-onboarding/SKILL.md +31 -1
  11. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +4 -4
  12. package/dist/skills/floless-app-queue/SKILL.md +10 -6
  13. package/dist/skills/floless-app-report-issue/SKILL.md +15 -12
  14. package/dist/skills/floless-app-rfi/SKILL.md +98 -73
  15. package/dist/skills/floless-app-routines/SKILL.md +27 -15
  16. package/dist/skills/floless-app-routines/references/routines-api.md +8 -2
  17. package/dist/skills/floless-app-steel-model/SKILL.md +1 -1
  18. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +4 -2
  19. package/dist/skills/floless-app-tweak-contract/SKILL.md +25 -5
  20. package/dist/skills/floless-app-workflows/SKILL.md +50 -13
  21. package/dist/skills/floless-app-workflows/references/agent-steps.md +119 -0
  22. package/dist/web/agent-steps.js +1750 -0
  23. package/dist/web/agents.js +33 -8
  24. package/dist/web/app.css +681 -4
  25. package/dist/web/app.js +111 -11
  26. package/dist/web/aware-update-client.js +1 -0
  27. package/dist/web/aware.js +1257 -202
  28. package/dist/web/chat-landing-scene.js +372 -0
  29. package/dist/web/chat.css +254 -1
  30. package/dist/web/chat.js +2657 -87
  31. package/dist/web/commands-drawing-check.js +17 -0
  32. package/dist/web/commands-shell.js +1108 -4
  33. package/dist/web/commands-steel.js +6 -0
  34. package/dist/web/connections.js +1 -0
  35. package/dist/web/drawing-check-editor.html +33 -5
  36. package/dist/web/drawing-check-editor.js +538 -22
  37. package/dist/web/drawing-check-overlay.js +13 -0
  38. package/dist/web/flo-avatar.js +28 -3
  39. package/dist/web/guide.js +7 -2
  40. package/dist/web/index.html +171 -7
  41. package/dist/web/instructor.js +6 -4
  42. package/dist/web/leave-guard.js +4 -2
  43. package/dist/web/left-pane.js +8 -3
  44. package/dist/web/model-revit-module.js +15 -0
  45. package/dist/web/model-view-query.js +12 -2
  46. package/dist/web/model-viewport-revit-adapter.js +3 -1
  47. package/dist/web/pages.js +891 -36
  48. package/dist/web/panels.js +8 -5
  49. package/dist/web/parser-setup-recovery.js +12 -4
  50. package/dist/web/project-access.js +549 -0
  51. package/dist/web/project-reconciliation.js +357 -0
  52. package/dist/web/report-files.js +50 -0
  53. package/dist/web/revit-editor.js +116 -27
  54. package/dist/web/startup-admission.js +132 -0
  55. package/dist/web/steel-3d-core.js +9 -0
  56. package/dist/web/steel-editor.html +642 -22
  57. package/dist/web/steel-model-v2-commands.js +63 -5
  58. package/dist/web/step-rename.js +287 -0
  59. package/dist/web/terminal-requests.js +590 -0
  60. package/dist/web/tool-updates.js +148 -13
  61. package/dist/web/workspace-root-management.js +39 -0
  62. package/dist/web/workspaces.js +1879 -74
  63. package/launch.mjs +82 -2
  64. package/package.json +3 -1
package/dist/web/app.css CHANGED
@@ -1329,6 +1329,15 @@
1329
1329
  border: 1px solid var(--border-strong); border-radius: 999px;
1330
1330
  cursor: help;
1331
1331
  }
1332
+ /* #2241: an Agent step. The same accent pill as the run-time-model badge, solid (never dashed), no new colour. The text carries
1333
+ the meaning; the colour only says "this one is different". */
1334
+ .agent-card .rt-model-badge.is-agent { cursor: help; }
1335
+ /* #2374: a node FloLess found using (or decided by) an Agent step's answer. The same pill, one step quieter: outline only, so the
1336
+ AI step itself stays the loudest thing on the canvas. The words carry "uses" vs "decided"; no new colour, never dashed. */
1337
+ .agent-card .rt-model-badge.is-ai-use { background: transparent; color: var(--text-muted); border-color: var(--accent-dim); }
1338
+ .agent-card .rt-model-badge.is-ai-use.is-container { border-color: var(--border-strong); }
1339
+ .agent-card .as-attn { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-dim); }
1340
+
1332
1341
  .agent-card .footer-row {
1333
1342
  display: flex;
1334
1343
  justify-content: space-between;
@@ -1887,6 +1896,23 @@
1887
1896
  font-size:11px; line-height:1.45; }
1888
1897
  .workspace-root-error[hidden] { display:none; }
1889
1898
  .workspace-root-management { margin:12px 0; border-top:1px solid var(--border); padding-top:12px; }
1899
+ .project-reconciliation, .project-reconciliation * { scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
1900
+ .project-reconciliation ::-webkit-scrollbar { width:6px; height:6px; }
1901
+ .project-reconciliation ::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }
1902
+ .project-reconciliation-list { max-height:200px; overflow:auto; }
1903
+ .project-reconciliation-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
1904
+ .project-reconciliation-choice { display:flex; align-items:flex-start; gap:8px; margin:10px 0; font-size:11px; line-height:1.5; color:var(--text-muted); }
1905
+ .project-reconciliation-choice input { appearance:none; flex:none; width:14px; height:14px; border:1px solid var(--border-strong); border-radius:3px; background:var(--surface-2); margin-top:2px; }
1906
+ .project-reconciliation-choice input:checked { background:var(--accent); border-color:var(--accent); }
1907
+ .project-reconciliation-choice input:checked::after { content:'✓'; display:block; color:var(--bg); font-size:11px; text-align:center; line-height:12px; }
1908
+ .project-reconciliation input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
1909
+ .project-reconciliation .project-setup-field { margin-top:10px; }
1910
+ .ws-folder-review-note { margin:0 0 12px; color:var(--text-muted); font-size:11px; }
1911
+ .ws-folder-review-note button { font:inherit; color:var(--accent); background:transparent; border:0; padding:3px 5px; cursor:pointer; }
1912
+ .ws-folder-review-note button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
1913
+ .ws-registration-status { color:var(--warn); }
1914
+ .ws-registration-location-note { display:block; color:var(--text-muted); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
1915
+ .ws-project-location-warning { padding:8px 12px; border-bottom:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); font-size:11px; line-height:1.45; }
1890
1916
  .workspace-root-management h3, .workspace-root-management h4 { margin:0 0 9px; font-size:12px; color:var(--text); }
1891
1917
  .workspace-root-management-list, .workspace-root-management-destinations { max-height:180px; overflow:auto;
1892
1918
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
@@ -3400,6 +3426,12 @@
3400
3426
  .tool-updates-needs-name { color: var(--text); font-size: 12px; font-weight: 600; }
3401
3427
  .tool-updates-needs-sentence { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
3402
3428
  .tool-updates-open { flex: none; font-size: 11px; padding: 3px 9px; background: transparent; }
3429
+ .tool-updates-group > .tool-updates-open { margin: 6px 0 8px; border: 1px solid var(--accent); color: var(--accent); }
3430
+ .tool-updates-summary p { margin: 0; }
3431
+ .tool-updates-summary p + p { margin-top: 8px; color: var(--text-muted); }
3432
+ .tool-updates-body > .primary { margin-top: 12px; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
3433
+ .tool-updates-body > .primary:hover { background: var(--accent-bright); }
3434
+ .tool-updates-body > .primary:disabled { opacity: 0.5; }
3403
3435
  /* Needs-you groups (#2180): one plain explanation per reason, the workflows listed under it. */
3404
3436
  .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); }
3405
3437
  .tool-updates-section-head + .tool-updates-group { margin-top: 0; }
@@ -3429,7 +3461,8 @@
3429
3461
  .tool-updates-result[data-outcome="not-moved"],
3430
3462
  .tool-updates-result[data-outcome="moved-needs-you"] { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
3431
3463
  .tool-updates-result-mark { flex: none; width: 14px; text-align: center; font-weight: 700; color: var(--warn); }
3432
- .tool-updates-result[data-outcome="moved"] .tool-updates-result-mark { color: var(--ok); }
3464
+ .tool-updates-result[data-outcome="moved"] .tool-updates-result-mark,
3465
+ .tool-updates-result[data-outcome="compiled"] .tool-updates-result-mark { color: var(--ok); }
3433
3466
  .tool-updates-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
3434
3467
  .tool-updates-result-name { color: var(--text); font-size: 12px; font-weight: 600; }
3435
3468
  .tool-updates-result-sentence { color: var(--text); font-size: 11.5px; line-height: 1.4; }
@@ -4138,6 +4171,9 @@
4138
4171
  `hidden` attribute, so it showed even when unsupported (dev/non-Windows). Restore
4139
4172
  the hide with a class+attribute selector (higher specificity than .menu-theme). */
4140
4173
  .menu-startup[hidden] { display: none; }
4174
+ /* #2448: the AI note switch for every workflow's reports, with its plain hint under it (a hover tip is easy to miss). */
4175
+ .menu-ai-note[hidden] { display: none; }
4176
+ .menu-ai-note-hint { margin: -4px 9px 6px; font-size: 11px; line-height: 1.4; color: var(--text-dim); }
4141
4177
  /* Same footgun: .menu-item is display:flex, so JS-hiding the fullscreen row on
4142
4178
  browsers without the Fullscreen API needs an explicit hide to win over flex. */
4143
4179
  #menu-fullscreen[hidden] { display: none; }
@@ -4165,6 +4201,28 @@
4165
4201
  background: var(--accent);
4166
4202
  color: white;
4167
4203
  }
4204
+ /* #2399: "Suggestions" On / Quiet / Off in the ≡ menu: the Theme segmented look with text labels. Its own class, so
4205
+ the theme buttons' click handler never sees these. */
4206
+ .suggest-btn {
4207
+ background: transparent;
4208
+ border: none;
4209
+ min-width: 38px;
4210
+ height: 22px;
4211
+ padding: 0 7px;
4212
+ color: var(--text-muted);
4213
+ font: inherit;
4214
+ font-size: 11.5px;
4215
+ border-radius: 3px;
4216
+ cursor: pointer;
4217
+ }
4218
+ .suggest-btn:hover { color: var(--text); }
4219
+ .suggest-btn.active {
4220
+ background: var(--accent);
4221
+ color: white;
4222
+ }
4223
+ .suggest-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
4224
+ .menu-suggest-note { padding: 0 9px 7px; font-size: 11px; color: var(--text-muted); }
4225
+ .menu-suggest-note[hidden] { display: none; }
4168
4226
 
4169
4227
  /* ========== TOAST ========== */
4170
4228
  .toast-container {
@@ -4177,6 +4235,8 @@
4177
4235
  z-index: 200;
4178
4236
  pointer-events: none;
4179
4237
  }
4238
+ /* The Go fullscreen nudge shares this corner and sits above toasts: lift them over it so none is ever covered. */
4239
+ body:has(.fullscreen-nudge:not([hidden])) .toast-container { bottom: 190px; }
4180
4240
  .toast {
4181
4241
  background: var(--surface);
4182
4242
  border: 1px solid var(--border-strong);
@@ -4448,6 +4508,14 @@
4448
4508
  amber already reads (6.9:1); the light theme needs the darker one (routine-warning-contrast.test.ts). */
4449
4509
  --warn-text: hsl(38 92% 50%);
4450
4510
  --info: hsl(217.2 91.2% 59.8%);
4511
+ /* FloLess's three parts in floless-web's role colours (owner, 2026-10-19: "same as floless web"): bright on
4512
+ dark, ink on light, as its living logo draws them; -mark stays bright in both (the underline under an ink
4513
+ word). The mode tabs' icons use them, and so does Flo's scene on the chat's start screens (chat.css).
4514
+ Agents departs from floless-web's yellow on the owner's ruling (2026-10-19, chosen from ten pink and violet
4515
+ tones as "Grape"): violet, a light ink over a deeper mark on dark, so Flo's ring and the outline of its hat
4516
+ stand apart from the hat, and a deep ink over a brighter mark on light. */
4517
+ --part-ws: #3b82f6; --part-wf: #4ade80; --part-ag: #c4b5fd;
4518
+ --part-ws-mark: #3b82f6; --part-wf-mark: #4ade80; --part-ag-mark: #6d28d9;
4451
4519
  }
4452
4520
 
4453
4521
  [data-theme="light"] {
@@ -4473,6 +4541,8 @@
4473
4541
  --err-text: hsl(0 73.7% 41.8%); /* Tailwind red-700 — see --err-text above (#1864) */
4474
4542
  --warn-text: hsl(26 90.5% 37.1%); /* Tailwind amber-700 — see --warn-text above */
4475
4543
  --info: hsl(221.2 83.2% 53.3%);
4544
+ --part-ws: #1d4ed8; --part-wf: #166534; /* floless-web --role-*-ink; see --part-* above */
4545
+ --part-ag: #5b21b6; --part-ag-mark: #7c3aed; /* Grape on light: the owner's Agents tone, see above */
4476
4546
  }
4477
4547
 
4478
4548
  /* Re-tint the body grid to match the new accent hue */
@@ -4993,6 +5063,10 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
4993
5063
  }
4994
5064
  .report-head .modal-sub { margin-bottom: 0; }
4995
5065
  .report-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
5066
+ #report-overlay .report-latest-page, #report-overlay .report-retry { padding: 6px 12px; background: var(--surface-3); color: var(--text); }
5067
+ #report-overlay .report-latest-page:hover, #report-overlay .report-retry:hover { border-color: var(--accent-dim); }
5068
+ #report-overlay .report-latest-page[hidden] { display: none; }
5069
+ #report-overlay .report-empty-hint { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
4996
5070
  .report-actions button { padding: 6px 12px; }
4997
5071
  .report-actions button.ghost { background: var(--surface-3); color: var(--text-muted); }
4998
5072
  .report-actions button.ghost:hover { color: var(--text); border-color: var(--accent-dim); }
@@ -5073,6 +5147,8 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
5073
5147
  [data-theme="light"] .flo-avatar { --flo-hat: var(--surface); --flo-hat-line: var(--accent); --flo-pulse: var(--accent-dim); }
5074
5148
  .run-fail-card .cred-fail-status { gap: 10px; }
5075
5149
  .cred-fail-icon.run-fail-flo { display: inline-flex; }
5150
+ /* #2415: an AI step stopped the run before the report: step names come from the workflow and can be long. */
5151
+ .ai-stop-card .cred-fail-body { overflow-wrap: anywhere; }
5076
5152
  /* Credential-failure reconnect card — shown in .report-overlay when a run hits a
5077
5153
  rejected OAuth token. Amber-topped (recoverable, needs attention); the Reconnect
5078
5154
  action keeps primary-blue (the one critical next step), Open Integrations is ghost. */
@@ -6042,6 +6118,22 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
6042
6118
  .mode-switch button:hover { color:var(--text); }
6043
6119
  .mode-switch button.active { background:var(--accent-soft); color:var(--accent-bright); }
6044
6120
  .mode-switch button[aria-busy="true"] { display:inline-flex; align-items:center; gap:6px; color:var(--text); cursor:wait; }
6121
+ /* The mode tabs carry their parts' icons, in the parts' colours (--part-*, with the theme tokens above). */
6122
+ .mode-switch button:not([aria-busy="true"]) { display:inline-flex; align-items:center; gap:6px; }
6123
+ .mode-icon { width:14px; height:14px; flex:none; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
6124
+ opacity:.8; transition:opacity .15s; }
6125
+ .mode-switch button:hover .mode-icon, .mode-switch button.active .mode-icon { opacity:1; }
6126
+ .mode-icon-ws { stroke:var(--part-ws); }
6127
+ .mode-icon-ws rect { fill:color-mix(in srgb, var(--part-ws-mark) 18%, transparent); }
6128
+ .mode-icon-wf { stroke:var(--part-wf); }
6129
+ .mode-icon-wf circle { fill:var(--surface-2); }
6130
+ /* Agents is Flo in the Agents colour (owner, 2026-10-19): ring and eyes in the part's ink, the hat in its mark,
6131
+ the way "Agents" is set in ink over its underline. */
6132
+ .mode-icon-ag .mode-icon-ring { stroke:var(--part-ag); fill:none; }
6133
+ .mode-icon-ag .mode-icon-eye { fill:var(--part-ag); stroke:none; }
6134
+ .mode-icon-ag .mode-icon-hat { fill:var(--part-ag-mark); stroke:var(--part-ag); stroke-width:.9; }
6135
+ /* The ridge down the hat's dome, as Flo's hat has it (flo.js floDrawHat). */
6136
+ .mode-icon-ag .mode-icon-ridge { stroke:var(--part-ag); stroke-width:.9; }
6045
6137
  .mode-switch button[aria-busy="true"] .rtn-spinner { width:10px; height:10px; border-width:2px; }
6046
6138
  /* The pending tab deliberately keeps its pointer events (#1489): pointer-events:none would hide the
6047
6139
  cursor:wait above, because the pointer would fall through to the switch. setMode() already ignores a
@@ -6057,7 +6149,7 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
6057
6149
  /* #wf-combo (by ID, not .wf-combo by class): the project picker below reuses the
6058
6150
  .wf-combo/.wf-popover/etc classes for visual parity and must NOT be caught by this
6059
6151
  rule — it's already hidden in Workflows mode via #ws-spine's own `hidden` attribute. */
6060
- .app.mode-workspaces #wf-combo, .app.mode-workspaces #wf-update, .app.mode-workspaces #wf-forked,
6152
+ .app.mode-workspaces #wf-combo, .app.mode-workspaces #wf-update, .app.mode-workspaces #wf-forked, .app.mode-workspaces #wf-agent-step,
6061
6153
  .app.mode-workspaces #run-state,
6062
6154
  .app.mode-workspaces #restore-btn, .app.mode-workspaces #customize-btn,
6063
6155
  .app.mode-workspaces #compile-btn, .app.mode-workspaces #sim-btn,
@@ -6304,8 +6396,21 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6304
6396
  .ws-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow:hidden;
6305
6397
  cursor:pointer; transition:all .15s; text-align:left; padding:0; display:flex; flex-direction:column; }
6306
6398
  .ws-card:hover { border-color:var(--accent-dim); transform:translateY(-1px); }
6399
+ /* Each landing's cards in its own part's tone (owner, 2026-10-19), the colours of the mode tabs' icons: --part for
6400
+ ink and icons, --part-mark for the brighter edges. Workspaces' tone is the accent already. */
6401
+ #ws-landing { --part: var(--part-ws); --part-mark: var(--part-ws-mark); }
6402
+ #wf-landing, #wf-draft { --part: var(--part-wf); --part-mark: var(--part-wf-mark); }
6403
+ #agents-surface { --part: var(--part-ag); --part-mark: var(--part-ag-mark); }
6404
+ :is(#wf-landing, #wf-draft, #agents-surface) .ws-card:hover { border-color:color-mix(in srgb, var(--part-mark) 60%, transparent); }
6405
+ :is(#wf-landing, #wf-draft, #agents-surface) .ws-card-create .ws-thumb {
6406
+ color:var(--part); background:color-mix(in srgb, var(--part-mark) 7%, var(--surface-2)); }
6407
+ :is(#wf-landing, #wf-draft, #agents-surface) .ws-card .ws-kind {
6408
+ color:var(--part); border-color:color-mix(in srgb, var(--part-mark) 50%, transparent); }
6409
+ /* The New agent card's Flo wears the Agents colours, as on the Agents tab: ink ring and eyes, bright hat. */
6410
+ #agents-surface .ws-card-create .flo-avatar { --flo-line: var(--part); --flo-hat: var(--part-mark); --flo-hat-line: var(--part); }
6307
6411
  .ws-card .ws-thumb { height:88px; background:var(--surface-2); border-bottom:1px solid var(--border);
6308
6412
  display:flex; align-items:center; justify-content:center; position:relative; color:var(--accent); font-size:24px; }
6413
+ .ws-card .ws-thumb-mark { width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
6309
6414
  .ws-card .ws-kind { position:absolute; top:8px; left:8px; font-size:9px; text-transform:uppercase; letter-spacing:.1em;
6310
6415
  color:var(--accent-bright); background:var(--surface); border:1px solid var(--accent-dim); padding:2px 7px; border-radius:4px; }
6311
6416
  /* ── Project thumbnail (the picture on the card) ──────────────────────────────────────────────
@@ -6906,6 +7011,12 @@ table.hist tr.current td { background:var(--accent-soft); }
6906
7011
  .hist-change-list li::marker { color:var(--text-dim); }
6907
7012
  .hist-change-list .hist-change-more { color:var(--text-dim); font-style:italic; }
6908
7013
  .hist-change-caution { margin-top:5px; color:var(--warn); font-size:11px; }
7014
+ /* #2449: the assumptions an approved version rests on — the amber note, then each person-confirmed statement in plain
7015
+ text (the same dashed "assumed" rail the AI Chat readiness card uses), never a tick or the success colour. */
7016
+ .hist-assumptions { color:var(--warn-text); } /* the text-weight amber: legible on the light theme's white */
7017
+ .hist-assumptions ul { margin:3px 0 0; padding-left:8px; list-style:none; border-left:2px dashed var(--border-strong); color:var(--text); }
7018
+ .hist-assumptions li { margin:2px 0; overflow-wrap:anywhere; }
7019
+ .hist-assumption-about { display:block; color:var(--text-muted); }
6909
7020
  /* An audit NOTE, deliberately not the amber caution above. `--warn` is this pane's "you may want to
6910
7021
  act on this" register; a read that filled in what the saved checkpoint never stated is a fact the
6911
7022
  owner should know and nothing to act on, so it takes the neutral accent-dim rail `.hist-working`
@@ -7322,6 +7433,8 @@ tr.hist-diff-row[hidden] { display:none; }
7322
7433
  display:flex; align-items:center; justify-content:center; font-size:12px; flex:none; }
7323
7434
  .kb-fico.pdf { color:var(--err); } .kb-fico.img { color:var(--info); }
7324
7435
  .kb-fico.sheet { color:var(--ok); } .kb-fico.txt { color:var(--text-muted); }
7436
+ /* #2491 R6.3: Word and email reuse existing tints (no new colours). */
7437
+ .kb-fico.doc { color:var(--info); } .kb-fico.mail { color:var(--text-muted); }
7325
7438
  .kb-fbody { flex:1; min-width:0; }
7326
7439
  /* The filename is a BUTTON (it opens the preview), so it must reset the global `select, button` base
7327
7440
  at app.css:143 — otherwise it paints as a grey surface-2 button. Rest state carries a quiet
@@ -7447,6 +7560,133 @@ tr.hist-diff-row[hidden] { display:none; }
7447
7560
  .kb-pending-cancel:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
7448
7561
  .kb-pending-cancel:disabled { opacity:.6; cursor:default; text-decoration:none; }
7449
7562
 
7563
+ /* #2399 slice 0b — the project's design set. A quiet text-link button (the .kb-pending-cancel recipe, accent on hover
7564
+ because these choose rather than delete; --text-muted, not --text-dim, because these are the strip's own actions and
7565
+ --text-dim measures about 3:1 on these surfaces, under the 4.5:1 small text needs), a strip that reuses the .kb-src card shell, and the sheet index in the
7566
+ .kb-adjust disclosure. Existing tokens only; tooltips are data-tip. */
7567
+ .kb-link { font:inherit; font-size:10.5px; background:none; border:none; padding:0; color:var(--text-muted); cursor:pointer;
7568
+ text-decoration:underline; text-underline-offset:2px; text-decoration-color:transparent;
7569
+ transition:color .12s, text-decoration-color .12s; }
7570
+ .kb-link:hover { color:var(--accent-bright); text-decoration-color:var(--accent-dim); }
7571
+ .kb-link:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
7572
+ /* Taller hit area without moving the text (WCAG 2.5.8 target size). */
7573
+ .kb-link { padding:3px 0; }
7574
+ /* Clear is the strip's one destructive choice: the house reversible-destructive hover, as .kb-pending-cancel. */
7575
+ .kb-link[data-kb-ds-clear]:hover { color:var(--err); text-decoration-color:color-mix(in srgb, var(--err) 55%, transparent); }
7576
+ .kb-ds-use-line { margin-top:3px; }
7577
+ .kb-ds { display:block; margin-bottom:10px; }
7578
+ .kb-ds.changed { border-left:3px solid var(--warn); }
7579
+ .kb-ds-head { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
7580
+ .kb-ds .kb-fbody { min-width:0; }
7581
+ .kb-ds-file { font-size:12.5px; color:var(--text-muted); overflow-wrap:anywhere; }
7582
+ .kb-ds .kb-fmeta .kb-chip { margin-left:6px; }
7583
+ /* The strip's warning chips keep the amber BORDER as their signal and set their TEXT in a readable token: --warn as text
7584
+ on the light surface measures about 2.1:1, under the 4.5:1 small text needs (the shared row chip has the same gap). */
7585
+ .kb-ds .kb-chip.new { color:var(--text-muted); border-color:color-mix(in srgb, var(--warn) 60%, transparent); }
7586
+ .kb-ds .kb-drift-chip { color:var(--text); }
7587
+ /* The row's "design set" chip: the accent border marks it, --text carries it — readable on a plain row and on the
7588
+ open row's --accent-soft alike (--accent-bright is 3.7:1 on light, --text-muted 4.3:1 on the open row). */
7589
+ .kb-chip.kb-chip-ds { color:var(--text); border-color:var(--accent); }
7590
+ .kb-ds-sheets:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
7591
+ .kb-ds .kb-ds-warn { margin:8px 0 0; }
7592
+ .kb-ds-actions { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; }
7593
+ .kb-ds-index { margin-top:8px; padding-top:6px; }
7594
+ .kb-ds-sheets { list-style:none; margin:6px 0 0; padding:0 4px 0 6px; max-height:220px; overflow-y:auto; font-family:var(--mono);
7595
+ font-size:10.5px; color:var(--text-muted); line-height:1.6; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7596
+ .kb-ds-sheets::-webkit-scrollbar { width:10px; }
7597
+ .kb-ds-sheets::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7598
+ .kb-ds-sheets::-webkit-scrollbar-track { background:transparent; }
7599
+ .kb-ds-num { color:var(--text); }
7600
+ .kb-ds-foot { margin-top:6px; font-size:10.5px; color:var(--text-muted); line-height:1.45; }
7601
+ /* ── Design set issues (#2399 slice 0c) ────────────────────────────────────────────────────────
7602
+ Read like a title sheet's revision block: one row per issue, newest first, the label in the mono face the sheet index
7603
+ already uses. Inside the baseline only — no new colour: state is a chip with words, never colour alone, and text is
7604
+ --text / --text-muted (the --text-dim and --warn tokens fail contrast as text in the light theme). */
7605
+ .kb-ds-head { justify-content:space-between; }
7606
+ .kb-ds-add { font-size:11.5px; }
7607
+ .kb-ds-sub { font-size:11px; color:var(--text-muted); margin:-2px 0 8px; }
7608
+ .kb-ds-issue { border-top:1px solid var(--border); }
7609
+ .kb-ds-issue:first-of-type { border-top:none; }
7610
+ .kb-ds-sum { list-style:none; cursor:pointer; display:grid; grid-template-columns:12px 1fr; column-gap:6px; row-gap:3px;
7611
+ padding:7px 4px; border-radius:4px; color:var(--text); user-select:none; }
7612
+ .kb-ds-sum::-webkit-details-marker { display:none; }
7613
+ .kb-ds-sum:hover { background:var(--surface-2); }
7614
+ .kb-ds-sum:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
7615
+ .kb-ds-sum .kb-adjust-caret { color:var(--text-muted); font-size:10px; line-height:18px; }
7616
+ .kb-ds-issue[open] > .kb-ds-sum .kb-adjust-caret { transform:rotate(90deg); }
7617
+ .kb-ds-line1 { display:flex; align-items:baseline; gap:8px; min-width:0; }
7618
+ .kb-ds-line2 { grid-column:2; display:flex; flex-wrap:wrap; gap:4px; }
7619
+ .kb-ds-label { font-family:var(--mono); font-size:12.5px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
7620
+ .kb-ds-date { font-family:var(--mono); font-size:11px; color:var(--text-muted); white-space:nowrap; }
7621
+ .kb-ds-count { margin-left:auto; font-size:11px; color:var(--text-muted); white-space:nowrap; }
7622
+ .kb-ds-issue.wd .kb-ds-label { color:var(--text-muted); }
7623
+ .kb-ds .kb-chip.kb-chip-wd, .kb-ds .kb-chip.kb-chip-presence { color:var(--text-muted); border-color:var(--border-strong); }
7624
+ .kb-ds .kb-chip.run { color:var(--text); }
7625
+ .kb-ds-body { padding:2px 4px 10px 22px; }
7626
+ .kb-ds-origin { font-size:11px; color:var(--text-muted); margin-bottom:6px; }
7627
+ .kb-ds-warn-line { display:flex; gap:7px; font-size:11.5px; color:var(--text-muted); line-height:1.45; margin:4px 0; }
7628
+ .kb-ds-bang { flex:none; width:14px; height:14px; border-radius:50%; border:1px solid var(--border-strong); color:var(--text);
7629
+ font:600 9.5px/12px var(--mono); text-align:center; margin-top:1px; }
7630
+ .kb-ds-files { list-style:none; margin:4px 0 2px; padding:0; }
7631
+ .kb-ds-file { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px dashed var(--border); }
7632
+ .kb-ds-file:last-child { border-bottom:none; }
7633
+ .kb-ds-file .kb-fico { width:22px; height:22px; font-size:11px; }
7634
+ .kb-ds-file .kb-fbody { flex:1; min-width:0; }
7635
+ .kb-ds-file .kb-fname { font-size:12px; display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
7636
+ .kb-ds-file .kb-fmeta { display:flex; flex-wrap:wrap; gap:4px; margin-top:2px; }
7637
+ .kb-ds-file.wd .kb-fname { color:var(--text-muted); }
7638
+ .kb-ds-file[aria-current="true"] .kb-fname { color:var(--accent-bright); font-weight:600; }
7639
+ .kb-ds-file .kb-link { font-size:11px; }
7640
+ .kb-ds .kb-ds-actions { margin-top:6px; }
7641
+ .kb-ds .kb-ds-index { margin-top:6px; padding-top:6px; }
7642
+ .kb-ds .kb-ds-index .kb-adjust-summary { color:var(--text-muted); }
7643
+ .kb-ds .kb-ds-index .kb-chip { margin-left:4px; text-transform:none; letter-spacing:.02em; }
7644
+ /* On --surface, not --surface-2: muted hint text measures 4.34:1 on --surface-2 in the light theme. */
7645
+ .kb-ds-panel { margin-top:8px; padding:9px 10px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface);
7646
+ display:flex; flex-direction:column; gap:5px; }
7647
+ .kb-ds > .kb-ds-panel { margin:0 0 8px; }
7648
+ .kb-ds-ph { font-size:12px; font-weight:600; color:var(--text); }
7649
+ .kb-ds-lbl { font-size:11px; color:var(--text); margin-top:3px; }
7650
+ .kb-ds-opt { color:var(--text-muted); font-size:10.5px; }
7651
+ .kb-ds-in { font:12px var(--mono); height:28px; min-height:0; padding:4px 7px; border-radius:4px; outline:none; resize:none; }
7652
+ .kb-ds-in:focus-visible { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
7653
+ .kb-ds-in::placeholder { color:var(--text-muted); opacity:.75; }
7654
+ .kb-ds-picks, .kb-ds-out { list-style:none; margin:0; padding:0 2px 0 0; max-height:168px; overflow-y:auto;
7655
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7656
+ .kb-ds-picks::-webkit-scrollbar, .kb-ds-out::-webkit-scrollbar { width:10px; }
7657
+ .kb-ds-picks::-webkit-scrollbar-thumb, .kb-ds-out::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7658
+ .kb-ds-picks::-webkit-scrollbar-track, .kb-ds-out::-webkit-scrollbar-track { background:transparent; }
7659
+ .kb-ds-picks li { display:flex; align-items:flex-start; gap:7px; padding:3px 0; font-size:11.5px; color:var(--text); }
7660
+ .kb-ds-picks label { cursor:pointer; overflow-wrap:anywhere; }
7661
+ .kb-ds-out li { font-size:11px; color:var(--text-muted); padding:2px 0; line-height:1.4; }
7662
+ .kb-ds-note { font-size:11px; color:var(--text-muted); line-height:1.45; }
7663
+ .kb-ds-err { font-size:11.5px; color:var(--text); line-height:1.45; border-left:2px solid var(--err); padding-left:7px; }
7664
+ .kb-ds-pact { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
7665
+ .kb-ds .btn-mini { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px;
7666
+ font:inherit; font-size:11.5px; padding:4px 10px; cursor:pointer; }
7667
+ .kb-ds .btn-mini:hover { color:var(--text); border-color:var(--accent); }
7668
+ .kb-ds .btn-mini.primary { background:var(--accent); border-color:var(--accent); color:white; font-weight:600; }
7669
+ .kb-ds .btn-mini.primary:hover { background:var(--accent-bright); border-color:var(--accent-bright); }
7670
+ .kb-ds .btn-mini:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
7671
+ .kb-ds-menu { display:flex; flex-direction:column; gap:2px; padding:6px; }
7672
+ .kb-ds-mi { font:inherit; font-size:12px; text-align:left; background:none; border:none; color:var(--text); padding:6px 8px; border-radius:4px; cursor:pointer; }
7673
+ .kb-ds-mi:hover, .kb-ds-mi:focus-visible { background:var(--surface-2); outline:none; }
7674
+ .kb-ds-mi:focus-visible { box-shadow:inset 0 0 0 1px var(--accent); }
7675
+ .hist-confirm .hc-alt { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:5px;
7676
+ font:inherit; font-size:11.5px; padding:4px 9px; cursor:pointer; }
7677
+ .hist-confirm .hc-alt:hover { color:var(--text); border-color:var(--err); }
7678
+ .kb-ds-jump { display:block; margin:4px 0 8px; font-size:11.5px; }
7679
+ .hist-ds-line { margin-top:6px; }
7680
+ .kb-live { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
7681
+ /* A chat card asked for files but the browser needs the person's own click: the drop zone says so and pulses once. */
7682
+ .kb-drop.attention { border-style:solid; border-color:var(--accent); background:var(--accent-soft); animation:card-pulse 1.2s ease-in-out; }
7683
+ /* The row Switch takes you to pulses once, the same cue. */
7684
+ .kb-src.attention { animation:card-pulse 1.2s ease-in-out; }
7685
+ @media (prefers-reduced-motion: reduce) {
7686
+ .kb-drop.attention { animation:none; outline:2px solid var(--accent); outline-offset:2px; }
7687
+ .kb-src.attention { animation:none; border-color:var(--accent); }
7688
+ }
7689
+
7450
7690
  /* Stage C/D placeholder — reads as forthcoming, never as a broken blank canvas. */
7451
7691
  .kb-placeholder { background:var(--bg); display:flex; align-items:center; justify-content:center; padding:24px;
7452
7692
  overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
@@ -7511,6 +7751,27 @@ tr.hist-diff-row[hidden] { display:none; }
7511
7751
  .kb-view-pre::-webkit-scrollbar { width:10px; height:10px; }
7512
7752
  .kb-view-pre::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7513
7753
  .kb-view-pre::-webkit-scrollbar-track { background:transparent; }
7754
+ /* #2491 R6.3: the text FloLess read from a Word, Excel or email file — a slim strip above it, a banner when part of
7755
+ it was not read, and a paste panel. Existing tokens only; the textarea themes its own scrollbar. */
7756
+ .kb-text-strip { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px;
7757
+ padding:6px 14px; border-bottom:1px solid var(--border); font-size:10.5px; color:var(--text-dim); }
7758
+ .kb-text-strip .kb-link, .kb-view-act .kb-link { text-decoration:underline; text-underline-offset:2px; }
7759
+ .kb-text-macros { flex:none; padding:6px 14px; border-bottom:1px solid var(--border); font-size:10.5px; color:var(--text-muted); }
7760
+ .kb-view-msg .kb-text-macros { border:none; padding:0; }
7761
+ .kb-text-banner { flex:none; padding:10px 14px; border-bottom:1px solid var(--border);
7762
+ background:color-mix(in srgb, var(--warn) 8%, transparent); }
7763
+ .kb-text-banner-title { font-size:12px; color:var(--warn); font-weight:600; }
7764
+ .kb-text-banner-sub { font-size:11px; color:var(--text-dim); margin-top:4px; }
7765
+ .kb-text-reasons { margin:6px 0 0; padding-left:18px; font-size:11px; color:var(--text-muted); line-height:1.5; text-align:left; }
7766
+ .kb-view-msg .kb-text-reasons { max-width:420px; }
7767
+ .kb-paste-host { width:100%; display:flex; justify-content:center; }
7768
+ .kb-text-banner .kb-paste-host { justify-content:flex-start; }
7769
+ .kb-paste { display:flex; flex-direction:column; gap:6px; margin-top:8px; width:100%; max-width:520px; text-align:left; }
7770
+ .kb-paste-area { min-height:120px; resize:vertical; font-family:var(--mono); font-size:11.5px; line-height:1.5;
7771
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7772
+ .kb-paste-area::-webkit-scrollbar { width:10px; height:10px; }
7773
+ .kb-paste-area::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7774
+ .kb-paste-area::-webkit-scrollbar-track { background:transparent; }
7514
7775
  /* The truncation notice is a SIBLING of the <pre> — the <pre> holds the user's literal bytes only. */
7515
7776
  .kb-view-note { flex:none; font-size:10.5px; color:var(--text-dim); font-family:var(--mono);
7516
7777
  padding:6px 14px; border-top:1px solid var(--border); }
@@ -7622,6 +7883,9 @@ tr.hist-diff-row[hidden] { display:none; }
7622
7883
  .company-knowledge-promotion > label { display:block; margin-bottom:5px; color:var(--text-muted); font-size:10.5px; }
7623
7884
  .company-knowledge-promotion .sel-combo { width:100%; }
7624
7885
  .company-knowledge-promotion p { margin:7px 0 0; color:var(--text-dim); font-size:10.5px; line-height:1.45; }
7886
+ /* #2491 R6.3: what a Word, Excel or email promotion copies; an email's personal-data line in the warn tone. */
7887
+ .company-promotion-notes { margin-top:8px; padding-top:6px; border-top:1px solid var(--accent-dim); }
7888
+ .company-knowledge-promotion .company-promotion-notes p.warn { color:var(--warn); }
7625
7889
  .company-knowledge-list { display:flex; flex-direction:column; gap:7px; }
7626
7890
  .company-entry { display:flex; align-items:center; gap:14px; padding:10px 11px; border:1px solid var(--border);
7627
7891
  border-radius:7px; background:var(--surface); }
@@ -7655,7 +7919,7 @@ tr.hist-diff-row[hidden] { display:none; }
7655
7919
  html.mode-agents-boot .app { --right-width:0px !important; }
7656
7920
  html.mode-agents-boot .inspect, html.mode-agents-boot .pane-rail-right { display:none; }
7657
7921
  .app.mode-agents .controls > label,
7658
- .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked,
7922
+ .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked, .app.mode-agents #wf-agent-step,
7659
7923
  .app.mode-agents #run-state, .app.mode-agents #restore-btn, .app.mode-agents #customize-btn,
7660
7924
  .app.mode-agents #compile-btn, .app.mode-agents #sim-btn, .app.mode-agents #run-btn, .app.mode-agents #stop-run-btn,
7661
7925
  .app.mode-agents #ext-badge, .app.mode-agents #guide-beacon,
@@ -7874,6 +8138,24 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7874
8138
  .hist-revision-note-meta { color: var(--text-dim); font-size: 11px; margin-bottom: 6px; }
7875
8139
  .hist-note-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
7876
8140
 
8141
+ /* #2248: requests from the terminal. The dialog reuses .modal and the chat's action card; only its list scrolls. */
8142
+ .modal.terminal-requests { width: 540px; display: flex; flex-direction: column; max-height: min(86vh, calc(100dvh - 48px)); }
8143
+ .terminal-requests-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; min-height: 0; overflow-y: auto;
8144
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
8145
+ .terminal-requests-list::-webkit-scrollbar { width: 8px; }
8146
+ .terminal-requests-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
8147
+ .terminal-requests-list::-webkit-scrollbar-track { background: transparent; }
8148
+ .terminal-requests-list .ai-chat-filter-card { margin: 0; }
8149
+ .terminal-request.is-linked { outline: 2px solid var(--accent); outline-offset: 1px; }
8150
+ .terminal-request-title:focus { outline: none; }
8151
+ .terminal-request-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
8152
+ .terminal-request.is-collapsed .terminal-request-title { display: block; font-size: 12px; margin-bottom: 2px; }
8153
+ .terminal-requests-empty { margin: 0; color: var(--text-muted); font-size: 12px; }
8154
+ .terminal-requests-foot { align-items: center; }
8155
+ .terminal-requests-hint { margin-right: auto; color: var(--text-dim); font-size: 11px; }
8156
+ .toast.terminal-request-notice { pointer-events: auto; }
8157
+ @media (prefers-reduced-motion: reduce) { .modal.terminal-requests { animation: none; } }
8158
+
7877
8159
  /* ── Pages (#2262): the Pages lists and the Page viewer ─────────────────────────
7878
8160
  Same chrome as History/Exports and the report viewer — tokens only, both themes. */
7879
8161
  .ws-pages { flex:1; min-height:0; position:relative; overflow-y:auto; padding:16px 20px;
@@ -7888,6 +8170,8 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7888
8170
  .pg-empty p { margin:0; }
7889
8171
  .pg-empty .pg-empty-title { color:var(--text); font-weight:600; margin-bottom:4px; }
7890
8172
  .pg-list { display:flex; flex-direction:column; gap:6px; max-width:880px; }
8173
+ .pg-group-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; font-weight:600; color:var(--text-dim); margin:14px 0 6px; }
8174
+ .pg-group-label:first-child { margin-top:0; }
7891
8175
  .pg-row { display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; }
7892
8176
  .pg-row-open { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px;
7893
8177
  padding:9px 12px; background:transparent; border:0; border-radius:6px; text-align:left; cursor:pointer; color:var(--text); font:inherit; }
@@ -7908,7 +8192,16 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7908
8192
  padding:2px 8px; border-radius:10px; color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, transparent);
7909
8193
  border:1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
7910
8194
  .pg-ai-badge[hidden] { display:none; }
7911
- .pg-ai-badge:focus-visible, .pv-info:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8195
+ .pg-ai-badge:focus-visible, .pv-info:focus-visible, .pg-seq-chip:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8196
+ /* #2262 slice 6: where a sequence's order came from. Neutral when FloLess read it; the warn tone when it did not. */
8197
+ .pg-seq-chip { flex-shrink:0; font-size:9px; text-transform:uppercase; letter-spacing:0.1em; font-weight:600;
8198
+ padding:2px 8px; border-radius:10px; color:var(--text-muted); background:var(--surface-3); border:1px solid var(--border); cursor:default; }
8199
+ .pg-seq-chip.is-warn { color:var(--warn); background:color-mix(in srgb, var(--warn) 14%, transparent);
8200
+ border-color:color-mix(in srgb, var(--warn) 35%, transparent); }
8201
+ .pg-seq-chip[hidden] { display:none; }
8202
+ .pg-seq-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
8203
+ .pg-seq-text[hidden] { display:none; }
8204
+ .pv-pop .pv-pop-note.pv-share-seq { color:var(--warn); }
7912
8205
 
7913
8206
  /* The viewer reuses .report-viewer's frame and head; Full screen fills the window. */
7914
8207
  .page-viewer-backdrop.pv-full { padding:0; }
@@ -7935,6 +8228,9 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
7935
8228
  .pv-allowed::before { content:'●'; font-size:8px; margin-right:5px; vertical-align:1px; }
7936
8229
  .pv-allowed[hidden] { display:none; }
7937
8230
  .report-actions button.pv-delete:hover { color:var(--text); border-color:var(--warn); }
8231
+ .pv-version-footer { position:sticky; bottom:-4px; margin:4px -4px -4px; padding:4px; background:var(--surface); border-top:1px solid var(--border); }
8232
+ .pv-version-footer .pv-version-older { width:100%; }
8233
+ .pv-version-announce { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
7938
8234
  .pv-pop { left:auto; right:0; padding:4px; max-height:320px; overflow-y:auto;
7939
8235
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7940
8236
  .pv-pop::-webkit-scrollbar { width:8px; }
@@ -7973,3 +8269,384 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
7973
8269
  .pv-stage.is-loading #pv-frame { opacity:.55; }
7974
8270
  .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; }
7975
8271
  .pv-loading[hidden] { display:none; }
8272
+
8273
+ /* ── Share link (#2262 slice 4): one header button that says where the link stands, its popover, My shared links ── */
8274
+ .pv-share { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
8275
+ .pv-share-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; background:transparent; box-shadow:0 0 0 1px var(--border-strong) inset; }
8276
+ .pv-share[data-state="none"] .pv-share-dot { display:none; }
8277
+ .pv-share[data-state="live"] .pv-share-dot { background:var(--ok); box-shadow:none; }
8278
+ .pv-share[data-state="warn"] .pv-share-dot { background:var(--warn); box-shadow:none; }
8279
+ .pv-share[data-state="off"] .pv-share-dot { background:var(--text-dim); box-shadow:none; }
8280
+ .pv-share[data-state="wait"] .pv-share-dot { background:var(--accent); box-shadow:none; animation:pv-share-wait 1.4s ease-in-out infinite; }
8281
+ @keyframes pv-share-wait { 0%, 100% { opacity:.35; } 50% { opacity:1; } }
8282
+ @media (prefers-reduced-motion: reduce) { .pv-share[data-state="wait"] .pv-share-dot { animation:none; } }
8283
+ .pv-share[aria-busy="true"] { opacity:.7; cursor:progress; }
8284
+ .pv-share-pop { width:320px; }
8285
+ .pv-share-status { max-width:none; color:var(--text); }
8286
+ .pv-share-link { display:flex; gap:6px; margin:2px 8px 6px; }
8287
+ .pv-share-url { flex:1; min-width:0; font:inherit; font-size:11.5px; padding:5px 8px; border-radius:5px;
8288
+ color:var(--text); background:var(--surface-2); border:1px solid var(--border); text-overflow:ellipsis; }
8289
+ .pv-share-url:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8290
+ .pv-share-link button, .pv-share-row button { padding:5px 10px; font-size:12px; }
8291
+ .pv-share-row { display:flex; gap:6px; padding:2px 8px 6px; }
8292
+ .pv-share-row button.ghost { background:var(--surface-3); color:var(--text); }
8293
+ .pv-share-quiet { border-top:1px solid var(--border); margin-top:2px; padding-top:6px; }
8294
+ .pv-share-quiet button.ghost { background:transparent; color:var(--text-muted); border-color:transparent; padding-left:4px; }
8295
+ .pv-share-quiet button.ghost:hover { color:var(--text); }
8296
+ .pv-share-primary { background:var(--accent); color:white; border-color:var(--accent); font-weight:600; }
8297
+ .pv-share-primary:hover { background:var(--accent-bright); }
8298
+ .pv-share-pop button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8299
+ .pv-banner[data-kind="share"] { border-left-color:var(--ok); }
8300
+ .pv-banner .pv-share-primary { padding:5px 12px; }
8301
+
8302
+ /* A state as words, never colour alone. */
8303
+ .sl-chip { flex-shrink:0; font-size:10px; font-weight:600; padding:1px 7px; border-radius:10px; white-space:nowrap;
8304
+ color:var(--text-muted); background:var(--surface-3); border:1px solid var(--border); }
8305
+ .sl-chip[data-state="live"] { color:var(--ok); border-color:color-mix(in srgb, var(--ok) 40%, transparent); background:color-mix(in srgb, var(--ok) 10%, transparent); }
8306
+ .sl-chip[data-state="pending-publish"], .sl-chip[data-state="pending-revoke"] { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 40%, transparent); background:color-mix(in srgb, var(--warn) 10%, transparent); }
8307
+
8308
+ .pg-tools { display:flex; justify-content:flex-end; max-width:880px; margin:-2px 0 6px; }
8309
+ .pg-tools .pg-shared-links { padding:4px 10px; font-size:12px; background:transparent; color:var(--text-muted); border-color:transparent; }
8310
+ .pg-tools .pg-shared-links:hover { color:var(--text); background:var(--surface-3); }
8311
+ .pg-tools .pg-shared-links:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8312
+
8313
+ #shared-links-modal .sl-modal { width:min(720px, calc(100vw - 32px)); max-height:min(80vh, 720px); display:flex; flex-direction:column; gap:10px; }
8314
+ .sl-head { display:flex; align-items:flex-start; gap:12px; }
8315
+ .sl-head > div { flex:1; min-width:0; }
8316
+ .sl-head #sl-close { flex-shrink:0; padding:2px 9px; }
8317
+ .sl-note { margin:0; padding:8px 12px; font-size:12px; color:var(--text-muted); background:var(--surface-2);
8318
+ border:1px solid var(--border); border-left:3px solid var(--warn); border-radius:6px; }
8319
+ .sl-note[hidden] { display:none; }
8320
+ .sl-list { flex:1 1 auto; min-height:80px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding-right:2px;
8321
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
8322
+ .sl-list::-webkit-scrollbar { width:8px; }
8323
+ .sl-list::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
8324
+ .sl-list::-webkit-scrollbar-track { background:transparent; }
8325
+ .sl-row { padding:8px 10px; }
8326
+ .sl-row-text { flex:1; min-width:0; }
8327
+ .sl-title-open { padding:0; border:0; background:transparent; color:var(--text); font:inherit; font-size:13px; font-weight:600;
8328
+ cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }
8329
+ .sl-title-open:hover { color:var(--accent); text-decoration:underline; }
8330
+ .sl-title-open:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
8331
+ .sl-actions { display:flex; gap:6px; flex-shrink:0; }
8332
+ .sl-actions button { padding:4px 10px; font-size:12px; background:var(--surface-3); color:var(--text); }
8333
+ .sl-actions button:focus-visible, .sl-foot button:focus-visible, #sl-close:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8334
+ .sl-actions .sl-revoke { color:var(--text-muted); }
8335
+ .sl-actions .sl-revoke:hover { color:var(--text); border-color:var(--warn); }
8336
+ .sl-foot { display:flex; justify-content:center; }
8337
+ .sl-foot button[hidden] { display:none; }
8338
+ .sl-empty { margin:0; }
8339
+ @media (max-width: 560px) {
8340
+ .sl-row { flex-wrap:wrap; }
8341
+ .sl-actions { width:100%; justify-content:flex-end; }
8342
+ }
8343
+
8344
+
8345
+ /* ===== Agents as workflow steps (#2241, S3b): Inspect blocks, banner, header/picker marks, the canvas chooser ===== */
8346
+ .inspect-content .as-banner {
8347
+ margin: 0 0 14px; padding: 10px 12px;
8348
+ background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 6px;
8349
+ }
8350
+ .inspect-content .as-banner p { margin: 0 0 6px; color: var(--text); font-size: 12px; line-height: 1.5; }
8351
+ .as-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
8352
+ .as-btn {
8353
+ font: 500 12px/1.3 var(--ui); padding: 5px 10px; border-radius: 4px; cursor: pointer;
8354
+ color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
8355
+ }
8356
+ .as-btn:hover { border-color: var(--accent-dim); }
8357
+ .as-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
8358
+ .as-btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
8359
+ .as-btn.as-link { background: transparent; border-color: transparent; color: var(--accent); padding-left: 2px; padding-right: 2px; }
8360
+ .as-btn.as-link:hover { text-decoration: underline; }
8361
+ .as-btn:focus-visible, .tb-btn.tb-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8362
+ .inspect-content .as-standing { color: var(--text-muted); font-size: 12px; }
8363
+ .as-instructions {
8364
+ margin: 0 0 12px; padding: 10px 12px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word;
8365
+ background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px;
8366
+ font: 11.5px/1.6 var(--mono); color: var(--text);
8367
+ }
8368
+ .as-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; }
8369
+ /* #2448: this workflow's switch for the AI note in its reports, in the Agent step's Inspect panel. */
8370
+ .as-note-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 12px; color: var(--text); }
8371
+ .as-note-hint { margin: 0 0 10px; font-size: 11px; line-height: 1.45; color: var(--text-dim); }
8372
+ .as-note-hint.is-global-off { color: var(--text-muted); }
8373
+ .as-facts dt { color: var(--text-dim); }
8374
+ .as-facts dd { margin: 0; color: var(--text); word-break: break-word; }
8375
+ .tb-btn.tb-text { width: auto; padding: 0 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
8376
+ .as-add-group { position: relative; }
8377
+ .wf-ai-pill { border-color: var(--accent-dim); background: var(--accent-soft); color: var(--accent); }
8378
+ .wf-ai-badge { color: var(--text-muted); border-color: var(--border-strong); }
8379
+ .as-popover { top: auto; bottom: calc(100% + 6px); left: 0; min-width: 260px; max-width: 360px; }
8380
+ .as-popover .wf-empty-search { text-align: left; font-style: normal; padding: 12px; }
8381
+ .as-popover .wf-option { flex-direction: row; }
8382
+ .as-empty-actions { padding: 0 12px 12px; }
8383
+
8384
+ /* ── Agent step confirmation dialog (#2241 S4). Built on the shared .modal; tokens only, themed scroll areas, both themes. ── */
8385
+ .ac-dialog { width: 540px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
8386
+ .ac-dialog .modal-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
8387
+ .ac-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding-right: 2px; }
8388
+ .ac-dialog, .ac-dialog * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
8389
+ .ac-dialog ::-webkit-scrollbar { width: 7px; height: 7px; }
8390
+ .ac-dialog ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
8391
+ .ac-dialog ::-webkit-scrollbar-track { background: transparent; }
8392
+ .ac-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; }
8393
+ .ac-step-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
8394
+ .ac-step-name { font-weight: 600; color: var(--text); font-size: 13px; }
8395
+ .ac-step-rev { color: var(--text-muted); font-size: 11.5px; }
8396
+ .ac-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: 12px; }
8397
+ .ac-facts dt { color: var(--text-dim); }
8398
+ .ac-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
8399
+ .ac-first { margin: 8px 0 0; color: var(--text); font-size: 12px; line-height: 1.5; border-left: 2px solid var(--border-strong); padding-left: 8px; overflow-wrap: anywhere; }
8400
+ .ac-more { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
8401
+ .ac-more:hover { text-decoration: underline; }
8402
+ .ac-more:focus-visible, .ac-pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8403
+ .ac-pre { margin: 6px 0 0; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--text-muted); max-height: 200px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
8404
+ .ac-pre.ac-diff { max-height: 260px; white-space: pre-wrap; padding: 6px 0; }
8405
+ .ac-line { display: block; padding: 0 10px 0 0; }
8406
+ .ac-line.add { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
8407
+ .ac-line.del { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--text); }
8408
+ .ac-glyph { display: inline-block; width: 22px; text-align: center; color: var(--text-dim); user-select: none; }
8409
+ .ac-line.add .ac-glyph { color: var(--ok); }
8410
+ .ac-line.del .ac-glyph { color: var(--err); }
8411
+ .ac-rows { margin: 8px 0 0; font-size: 12px; display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; }
8412
+ .ac-rows .ac-was { color: var(--text-dim); text-decoration: line-through; }
8413
+ .ac-rows .ac-arrow { color: var(--text-dim); }
8414
+ .ac-unchanged { color: var(--text-muted); font-size: 12px; }
8415
+ .ac-warning { border-left: 2px solid var(--warn); background: var(--surface-2); color: var(--text); font-size: 12.5px; line-height: 1.5; padding: 8px 12px; border-radius: 0 6px 6px 0; margin-bottom: 12px; overflow-wrap: anywhere; }
8416
+ .ac-warning b { color: var(--warn); font-weight: 600; }
8417
+ .ac-hint { font-size: 11.5px; color: var(--text-dim); margin: 2px 0 10px; min-height: 16px; }
8418
+ .ac-hint.nudge { color: var(--warn); }
8419
+ .ac-error { border: 1px solid var(--err); border-radius: 6px; color: var(--text); font-size: 12.5px; line-height: 1.5; padding: 8px 12px; margin: 0 0 10px; }
8420
+ .ac-dialog .modal-actions button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
8421
+ /* S8 (#2495): a watcher's wait between AI answers (the dialog and the step's Inspect) and its per-event history. */
8422
+ .ac-trigger { border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px 6px; margin: 6px 0 4px; min-width: 0; }
8423
+ .ac-trigger legend { padding: 0 4px; margin-bottom: 0; }
8424
+ .ac-wait-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 2px 0 8px; font-size: 12.5px; color: var(--text); }
8425
+ .ac-wait-label { flex: 1 1 auto; min-width: 0; }
8426
+ .ac-wait-step { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }
8427
+ .ac-wait-field { display: inline-flex; align-items: center; gap: 6px; }
8428
+ .ac-wait-field[hidden] { display: none; }
8429
+ .ac-wait-unit, .ac-wait-state { color: var(--text-muted); font-size: 12px; }
8430
+ .ac-wait-input { width: 64px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 5px 8px;
8431
+ font-family: var(--ui); font-size: 13px; border-radius: 4px; outline: none; transition: border-color 0.15s;
8432
+ color-scheme: inherit; }
8433
+ /* Every number field on this surface: no native spinner in either theme (verify:native-controls). */
8434
+ input[type=number] { -moz-appearance: textfield; appearance: textfield; }
8435
+ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
8436
+ .ac-wait-input:focus { border-color: var(--accent); }
8437
+ .ac-wait-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
8438
+ .ac-wait-input:invalid { border-color: var(--err); box-shadow: none; }
8439
+ .as-wait-value { margin-left: auto; color: var(--text-muted); }
8440
+ .as-wait-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
8441
+ .as-wait-edit[hidden] { display: none; }
8442
+ .as-fires { list-style: none; margin: 0 0 10px; padding: 0; font-size: 12px; }
8443
+ .as-fire { padding: 5px 0; border-bottom: 1px solid var(--border); }
8444
+ .as-fire:last-child { border-bottom: none; }
8445
+ .as-fire-when { color: var(--text-dim); font-size: 11px; margin-right: 6px; }
8446
+ .as-fire-outcome { color: var(--text); }
8447
+ .as-fire-needs { margin: 3px 0 0 14px; padding: 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
8448
+
8449
+ .ac-dialog .modal-actions button.primary[aria-disabled="true"]:hover { background: var(--accent); box-shadow: none; }
8450
+ .ac-dialog .modal-actions { flex: none; flex-wrap: wrap; }
8451
+ .ac-dialog .modal-actions #ac-cancel { margin-right: auto; }
8452
+ .ac-vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
8453
+
8454
+ /* ── Two steps share one name (#2314, epic #2241 slice 3c): the rename ask. Built on the AI step confirmation's dialog (.ac-dialog)
8455
+ so the two read as one family; tokens only, themed scroll areas, both themes. ── */
8456
+ .sr-dialog { width: 520px; }
8457
+ .sr-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; margin-bottom: 10px; padding-right: 2px; }
8458
+ .sr-choice { margin-bottom: 14px; }
8459
+ .sr-choice .fm-group-label { margin-bottom: 6px; }
8460
+ .sr-step { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); margin-bottom: 6px; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: var(--text); }
8461
+ .sr-step:has(input:checked) { border-color: var(--accent-dim); }
8462
+ .sr-step input[type="radio"] { margin: 3px 0 0; flex: none; }
8463
+ .sr-step-where { color: var(--text-muted); }
8464
+ .sr-tag { display: inline-block; margin-left: 6px; padding: 0 6px; font: 600 10px/1.6 var(--ui); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 999px; vertical-align: 1px; }
8465
+ .sr-code { font-family: var(--mono); font-size: 11.5px; }
8466
+ .sr-name-field { margin-bottom: 10px; }
8467
+ .sr-name-field input[aria-invalid="true"] { border-color: var(--err); }
8468
+ .sr-name-msg { min-height: 18px; margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
8469
+ .sr-name-msg.is-error { color: var(--text); }
8470
+ .sr-name-msg.is-error::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--err); vertical-align: 1px; }
8471
+ .sr-use { margin-left: 8px; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
8472
+ .sr-use:hover { text-decoration: underline; }
8473
+ .sr-use:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8474
+ .sr-preview { min-height: 64px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text); }
8475
+ .sr-preview[aria-busy="true"] { color: var(--text-muted); }
8476
+ .sr-preview .fm-note-label { margin: 8px 0 5px; }
8477
+ .sr-lines { margin: 0; padding: 7px 10px; max-height: 120px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: 500 11.5px/1.55 var(--mono); color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
8478
+ .sr-lines .sr-was { color: var(--text-dim); }
8479
+ .sr-lines .sr-now { color: var(--text); }
8480
+ .sr-retry { margin-left: 8px; }
8481
+ .sr-warning-list { margin: 6px 0 0; padding-left: 18px; }
8482
+ .sr-warning-list li { margin: 2px 0; }
8483
+ .sr-note { margin: 0 0 6px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
8484
+ .sr-dialog .modal-actions #sr-cancel { margin-right: auto; }
8485
+
8486
+ /* ── Agents as workflow steps, S5 (#2241): the AI-produced label, the last run's AI steps with "Questions for you", the held-change card.
8487
+ Tokens only, themed scroll areas, both themes. ── */
8488
+ .ai-pill {
8489
+ display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: middle; cursor: help;
8490
+ font: 600 10px/1.5 var(--ui); letter-spacing: 0.01em; white-space: nowrap;
8491
+ color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 999px;
8492
+ }
8493
+ .as-run { margin: 0 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text); }
8494
+ .as-run[hidden] { display: none; }
8495
+ .as-run > summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; list-style: none; }
8496
+ .as-run > summary::-webkit-details-marker { display: none; }
8497
+ .as-run > summary::after { content: '▸'; margin-left: auto; color: var(--text-dim); }
8498
+ .as-run[open] > summary::after { content: '▾'; }
8499
+ .as-run > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
8500
+ .as-run-sum-text { color: var(--text); }
8501
+ .as-run > summary .ai-pill { margin-left: 0; }
8502
+ .as-run-body { padding: 0 10px 10px; max-height: 150px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
8503
+ .as-run-body::-webkit-scrollbar { width: 7px; height: 7px; }
8504
+ .as-run-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
8505
+ .as-run-body::-webkit-scrollbar-track { background: transparent; }
8506
+ .as-run-step { margin-top: 8px; }
8507
+ .as-run-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
8508
+ .as-run-line .ai-pill { margin-left: 0; }
8509
+ .as-run-out { margin-left: auto; font-weight: 500; }
8510
+ .as-run-out.ok { color: var(--ok); }
8511
+ .as-run-out.warn { color: var(--warn); }
8512
+ .as-run-who { margin-top: 2px; color: var(--text-muted); }
8513
+ .as-run-kb { margin-top: 6px; }
8514
+ .as-run-kb .as-use-list { margin-top: 4px; }
8515
+ .as-needs { margin-top: 10px; padding: 8px 10px; border-left: 2px solid var(--warn); border-radius: 0 6px 6px 0; background: var(--surface); }
8516
+ .as-needs-title { font-weight: 600; color: var(--text); }
8517
+ .as-needs-group { margin-top: 6px; }
8518
+ .as-needs-kind { color: var(--text-dim); font-size: 11.5px; }
8519
+ .as-needs ul { margin: 2px 0 0; padding-left: 18px; }
8520
+ .as-needs li { margin: 2px 0; line-height: 1.5; overflow-wrap: anywhere; }
8521
+ .msg .ai-pill { margin-left: 8px; }
8522
+ /* #2374: "uses an AI answer" is quieter than "AI-produced": outline only, the same family. */
8523
+ .ai-pill.is-uses { background: transparent; color: var(--text-muted); border-color: var(--accent-dim); }
8524
+ .as-run-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
8525
+ .as-use { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
8526
+ .as-use-title { font-weight: 600; color: var(--text); }
8527
+ .as-use-list { list-style: none; display: grid; gap: 4px; margin: 6px 0 0; padding: 0; }
8528
+ .as-use-list li { color: var(--text); overflow-wrap: anywhere; }
8529
+ .as-use-list .ai-pill { margin-left: 4px; }
8530
+ /* The panel sits on --surface-2, where --text-muted falls under 4.5:1 in the light theme: this copy carries meaning, so it uses --text. */
8531
+ .as-use-note { margin: 4px 0 0; color: var(--text); }
8532
+ .as-use-skipped { margin: 4px 0 0; color: var(--text); overflow-wrap: anywhere; }
8533
+ .as-run .ai-pill.is-uses { color: var(--text); }
8534
+ .as-use-line { color: var(--text-muted); }
8535
+
8536
+ .as-gate {
8537
+ position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 120;
8538
+ width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; box-sizing: border-box;
8539
+ padding: 12px 14px; background: var(--surface); color: var(--text);
8540
+ border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 8px;
8541
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); font-size: 12.5px; line-height: 1.5;
8542
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
8543
+ }
8544
+ .as-gate[hidden] { display: none; }
8545
+ .as-gate:focus { outline: none; }
8546
+ .as-gate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8547
+ .as-gate-live b { color: var(--text); }
8548
+ .as-gate-label { margin-top: 10px; color: var(--text-dim); font-size: 11.5px; }
8549
+ .as-gate-label[hidden], .as-gate-values[hidden], .as-gate-error[hidden] { display: none; }
8550
+ .as-gate-values {
8551
+ margin: 4px 0 0; padding: 8px 10px; max-height: 160px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
8552
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
8553
+ font: 11.5px/1.5 var(--mono); color: var(--text-muted);
8554
+ scrollbar-width: thin; scrollbar-color: var(--text-dim) transparent;
8555
+ }
8556
+ .as-gate-values::-webkit-scrollbar, .as-gate::-webkit-scrollbar { width: 7px; height: 7px; }
8557
+ .as-gate-values::-webkit-scrollbar-thumb, .as-gate::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
8558
+ .as-gate-values::-webkit-scrollbar-track, .as-gate::-webkit-scrollbar-track { background: transparent; }
8559
+ .as-gate-values:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8560
+ .as-gate-time { margin-top: 8px; color: var(--text-muted); }
8561
+ .as-gate-error { margin-top: 8px; padding: 6px 10px; border: 1px solid var(--err); border-radius: 6px; color: var(--text); }
8562
+ .as-gate-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
8563
+ .as-gate-actions .as-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
8564
+ .as-gate-queue { margin-top: 8px; color: var(--text-dim); font-size: 11.5px; }
8565
+ .rtn-ai { color: var(--text-muted); cursor: help; }
8566
+ .rtn-ai-q { color: var(--warn); cursor: help; }
8567
+ /* The last-run panel belongs to the open workflow's canvas: the landing, a draft view and Workspaces step it aside like the other canvas strips. */
8568
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .as-run, body.mode-workspaces .as-run { display: none !important; }
8569
+
8570
+ /* ========== PROJECT ACCESS (project-access.js; spec 2026-10-19) ==========
8571
+ A header chip and a right-hand sheet. Built from the baseline's own tokens and the existing .kb-toggle switch;
8572
+ the sheet's list scrolls under the global themed scrollbar rule, set again here so the sheet never shows a native one. */
8573
+ .ws-access-chip { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border-radius:6px;
8574
+ border:1px solid var(--border-strong); background:var(--surface-2); color:var(--text-muted); font-size:12px; font-weight:500;
8575
+ cursor:pointer; white-space:nowrap; }
8576
+ .ws-access-chip:hover, .ws-access-chip[aria-expanded="true"] { color:var(--text); border-color:var(--accent-dim); }
8577
+ .ws-access-chip:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8578
+ /* Where the header is tight, the chip keeps its icon and count and drops the words (its aria-label and data-tip keep them). */
8579
+ @media (max-width: 1180px) { .ws-access-label { display:none; } }
8580
+ .ws-access-ico { flex:none; }
8581
+ .ws-access-count { min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--accent-soft);
8582
+ color:var(--accent-bright); font-size:11px; font-weight:600; line-height:18px; text-align:center; font-variant-numeric:tabular-nums; }
8583
+
8584
+ .modal-backdrop.pa-backdrop.show { justify-content:flex-end; align-items:stretch; }
8585
+ .pa-sheet { width:min(460px, 100vw); height:100%; display:flex; flex-direction:column; background:var(--surface);
8586
+ border-left:1px solid var(--border-strong); box-shadow:-24px 0 80px rgba(0,0,0,0.45); animation:pa-slide .18s ease-out; outline:none; }
8587
+ @keyframes pa-slide { from { transform:translateX(24px); opacity:0; } to { transform:none; opacity:1; } }
8588
+ @media (prefers-reduced-motion: reduce) { .pa-sheet { animation:none; } }
8589
+ .pa-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 18px 12px;
8590
+ border-bottom:1px solid var(--border); }
8591
+ .pa-title { margin:0; font-size:15px; font-weight:700; color:var(--text); }
8592
+ .pa-subtitle { margin:4px 0 0; font-size:12px; color:var(--text-muted); line-height:1.45; }
8593
+ .pa-close { flex:none; width:28px; height:28px; border-radius:6px; border:1px solid transparent; background:none;
8594
+ color:var(--text-dim); cursor:pointer; font-size:13px; }
8595
+ .pa-close:hover { color:var(--text); background:var(--surface-2); }
8596
+ .pa-close:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8597
+ .pa-body { flex:1; overflow-y:auto; padding:6px 18px 14px; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
8598
+ .pa-body::-webkit-scrollbar { width:8px; }
8599
+ .pa-body::-webkit-scrollbar-track { background:transparent; }
8600
+ .pa-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
8601
+ .pa-group { margin-top:14px; }
8602
+ .pa-group-title { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-size:11px; font-weight:600;
8603
+ letter-spacing:.04em; text-transform:uppercase; color:var(--text-dim); }
8604
+ .pa-group-all { display:inline-flex; }
8605
+ .pa-group-count { margin-left:auto; font-variant-numeric:tabular-nums; }
8606
+ .pa-list { list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
8607
+ .pa-row { display:grid; grid-template-columns:20px 1fr auto; align-items:center; column-gap:10px; padding:10px 12px;
8608
+ border-top:1px solid var(--border); background:var(--surface); }
8609
+ .pa-row:first-child { border-top:none; }
8610
+ .pa-row.dim .pa-main { opacity:.6; }
8611
+ .pa-sel { display:flex; align-items:center; }
8612
+ .pa-main { display:flex; flex-direction:column; gap:3px; min-width:0; }
8613
+ .pa-name { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:13px; font-weight:500; color:var(--text); overflow-wrap:anywhere; }
8614
+ .pa-how { font-size:12px; color:var(--text-muted); line-height:1.4; }
8615
+ .pa-row-error { font-size:12px; color:var(--err-text); line-height:1.4; }
8616
+ .pa-chip { font-size:10.5px; font-weight:500; padding:1px 6px; border-radius:4px; background:var(--surface-2);
8617
+ border:1px solid var(--border-strong); color:var(--text-muted); }
8618
+ .pa-tags { display:flex; flex-wrap:wrap; gap:4px; }
8619
+ .pa-tag { font-size:11px; padding:1px 7px; border-radius:10px; background:var(--accent-soft); color:var(--accent-bright); }
8620
+ .pa-ctl { display:flex; align-items:center; gap:10px; }
8621
+ .pa-switch[aria-busy="true"] { opacity:.5; cursor:progress; }
8622
+ .pa-open, .pa-btn { height:26px; padding:0 10px; border-radius:6px; border:1px solid var(--border-strong); background:var(--surface-2);
8623
+ color:var(--text); font-size:12px; cursor:pointer; white-space:nowrap; }
8624
+ .pa-open { background:none; color:var(--accent-bright); border-color:transparent; padding:0 6px; }
8625
+ .pa-open:hover { background:var(--accent-soft); }
8626
+ .pa-btn:hover { border-color:var(--accent-dim); }
8627
+ .pa-btn.ghost { background:none; border-color:transparent; color:var(--text-muted); }
8628
+ .pa-btn.danger:hover { color:var(--err-text); border-color:var(--err); }
8629
+ .pa-open:focus-visible, .pa-btn:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8630
+ .pa-check { margin:0; cursor:pointer; } /* the global themed checkbox (app.css input[type="checkbox"]) draws it */
8631
+ .pa-confirm { grid-column:1 / -1; margin-top:10px; padding:10px 12px; border-radius:6px; background:var(--surface-2);
8632
+ border:1px solid var(--border-strong); font-size:12px; color:var(--text); line-height:1.45; }
8633
+ .pa-confirm p { margin:0 0 8px; }
8634
+ .pa-confirm-warn { color:var(--warn-text); }
8635
+ .pa-confirm-actions { display:flex; justify-content:flex-end; gap:8px; }
8636
+ .pa-bar { display:flex; align-items:center; gap:8px; padding:10px 18px; border-top:1px solid var(--border); background:var(--surface-2); }
8637
+ .pa-bar .pa-confirm { margin:0; flex:1; background:var(--surface); }
8638
+ .pa-bar-count { margin-right:auto; font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
8639
+ .pa-foot { padding:9px 18px 12px; font-size:11.5px; color:var(--text-dim); border-top:1px solid var(--border); }
8640
+ .pa-note { margin:12px 0 0; font-size:12px; color:var(--warn-text); line-height:1.45; }
8641
+ .pa-note p { margin:0 0 4px; }
8642
+ .pa-stale { display:flex; align-items:flex-start; gap:10px; padding:9px 11px; border-radius:6px; background:var(--surface-2);
8643
+ border:1px solid var(--border-strong); }
8644
+ .pa-stale p { flex:1; margin:0; }
8645
+ .pa-empty { padding:32px 8px; text-align:center; color:var(--text-muted); font-size:12.5px; line-height:1.5; }
8646
+ .pa-empty p { margin:0 0 6px; }
8647
+ .pa-empty-title { color:var(--text); font-weight:600; font-size:13px; }
8648
+ .pa-empty-actions { display:flex; justify-content:center; gap:8px; margin-top:12px; }
8649
+ .pa-skel .pa-bone { display:block; height:10px; border-radius:4px; background:var(--surface-2); animation:pa-pulse 1.2s ease-in-out infinite; }
8650
+ .pa-bone.w60 { width:60%; } .pa-bone.w40 { width:40%; margin-top:4px; }
8651
+ @keyframes pa-pulse { 50% { opacity:.5; } }
8652
+ @media (prefers-reduced-motion: reduce) { .pa-skel .pa-bone { animation:none; } }