@floless/app 0.158.0 → 0.160.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 (43) hide show
  1. package/dist/floless-server.cjs +140655 -117708
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +33 -1
  3. package/dist/schemas/steel.model.v2.schema.json +1 -0
  4. package/dist/skills/floless-app-actions/SKILL.md +23 -5
  5. package/dist/skills/floless-app-bridge/SKILL.md +5 -3
  6. package/dist/skills/floless-app-onboarding/SKILL.md +69 -5
  7. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +8 -6
  8. package/dist/skills/floless-app-queue/SKILL.md +3 -1
  9. package/dist/skills/floless-app-rfi/SKILL.md +29 -1
  10. package/dist/skills/floless-app-steel-model/SKILL.md +11 -5
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +28 -8
  12. package/dist/skills/floless-app-workflows/SKILL.md +6 -3
  13. package/dist/web/agents.js +12 -5
  14. package/dist/web/app.css +266 -159
  15. package/dist/web/app.js +23 -51
  16. package/dist/web/aware.js +533 -546
  17. package/dist/web/chat-question-card.js +24 -1
  18. package/dist/web/chat.css +170 -48
  19. package/dist/web/chat.js +1406 -208
  20. package/dist/web/commands-shell.js +1104 -177
  21. package/dist/web/commands-steel.js +2 -0
  22. package/dist/web/drawing-check-editor.html +10 -0
  23. package/dist/web/drawing-check-editor.js +44 -0
  24. package/dist/web/guide.js +12 -2
  25. package/dist/web/index.html +62 -48
  26. package/dist/web/instructor.js +33 -12
  27. package/dist/web/pages.js +186 -31
  28. package/dist/web/panels.js +19 -1
  29. package/dist/web/project-access.js +67 -8
  30. package/dist/web/project-modules.js +474 -0
  31. package/dist/web/project-rfis.js +715 -0
  32. package/dist/web/project-workflows.js +506 -0
  33. package/dist/web/run-history.js +198 -0
  34. package/dist/web/run-page-view.js +12 -2
  35. package/dist/web/steel-3d-core.js +75 -1
  36. package/dist/web/steel-3d-view.js +8 -38
  37. package/dist/web/steel-editor.html +263 -59
  38. package/dist/web/steel-model-v2-projection.js +7 -0
  39. package/dist/web/workspace-root-recovery.js +119 -0
  40. package/dist/web/workspaces.js +493 -161
  41. package/launch-starting-page.mjs +5 -2
  42. package/launch.mjs +136 -78
  43. package/package.json +6 -1
package/dist/web/app.css CHANGED
@@ -982,6 +982,7 @@
982
982
  user-select: none;
983
983
  }
984
984
  .canvas-empty-icon { font-size: 34px; line-height: 1; opacity: 0.7; }
985
+ .canvas-empty-icon svg { width: 34px; height: 34px; display: block; margin: 0 auto; }
985
986
  .canvas-empty-title { font-size: 15px; font-weight: 600; color: var(--text); }
986
987
  .canvas-empty-body { font-size: 12.5px; line-height: 1.55; }
987
988
  .canvas-empty-body code { font-family: var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 3px; color: var(--text-muted); }
@@ -1041,96 +1042,7 @@
1041
1042
  .onb-tour-btn:disabled { cursor: default; opacity: 0.85; box-shadow: none; }
1042
1043
  .onb-tour-ico { font-size: 11px; opacity: 0.7; margin-left: 6px; }
1043
1044
 
1044
- /* ===== Per-workflow onboarding beacon ("Start here") ===== */
1045
- /* A header pill in the run cluster. Calm by default (accent-soft, like the
1046
- wf-update pill); pulses while the open workflow is new to the user. Accent —
1047
- NOT warn — because it's positive/new, and warn is already the drift colour. */
1048
- .guide-beacon {
1049
- display: inline-flex;
1050
- align-items: center;
1051
- gap: 5px;
1052
- border: 1px solid var(--accent-dim);
1053
- background: var(--accent-soft);
1054
- color: var(--accent-bright);
1055
- font-family: var(--ui);
1056
- font-size: 11px;
1057
- letter-spacing: 0.02em;
1058
- padding: 3px 11px;
1059
- border-radius: 999px;
1060
- cursor: pointer;
1061
- white-space: nowrap;
1062
- flex-shrink: 0; /* the workflow picker shrinks first; the beacon never squashes */
1063
- transition: border-color 0.15s, color 0.15s, background 0.15s;
1064
- }
1065
- .guide-beacon[hidden] { display: none; }
1066
- .guide-beacon:hover { border-color: var(--accent); color: var(--accent); }
1067
- .guide-beacon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1068
- .guide-beacon-ico { font-size: 11px; line-height: 1; }
1069
- /* "New to you": a slow box-shadow bloom (GPU-composited, no layout repaint) reading
1070
- as a calm invitation, not an alarm. Same motion dialect as the rest of the app. */
1071
- .guide-beacon.is-new {
1072
- border-color: var(--accent);
1073
- color: var(--accent-bright);
1074
- animation: guide-pulse 2.8s ease-in-out infinite;
1075
- }
1076
- @keyframes guide-pulse {
1077
- 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
1078
- 50% { box-shadow: 0 0 0 6px rgba(74, 158, 255, 0); }
1079
- }
1080
- @media (prefers-reduced-motion: reduce) {
1081
- /* No pulse — a steady ring (shape + contrast, not colour alone) marks "new". */
1082
- .guide-beacon.is-new { animation: none; box-shadow: 0 0 0 1px var(--accent-dim); }
1083
- }
1084
- /* Spotlit (first-open): raised above the dim, opaque, ringed. The header creates no
1085
- stacking context, so z-index here lifts it above the fixed spotlight overlay. */
1086
- .guide-beacon.spotlit {
1087
- position: relative;
1088
- z-index: 95;
1089
- animation: none;
1090
- background: var(--surface-3);
1091
- border-color: var(--accent);
1092
- color: var(--accent-bright);
1093
- box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px 4px var(--accent-glow);
1094
- }
1095
-
1096
- /* ===== First-open spotlight ===== */
1097
- .guide-spotlight {
1098
- position: fixed;
1099
- inset: 0;
1100
- z-index: 90; /* below modals (100), above the page; the beacon (.spotlit, 95) sits over it */
1101
- background: rgba(7, 10, 15, 0.72);
1102
- backdrop-filter: blur(2px);
1103
- -webkit-backdrop-filter: blur(2px);
1104
- display: none;
1105
- }
1106
- .guide-spotlight:not([hidden]) { display: block; animation: fade-in 0.18s ease-out; }
1107
- .guide-spotlight-bubble {
1108
- position: fixed;
1109
- z-index: 91;
1110
- max-width: 280px;
1111
- background: var(--surface);
1112
- border: 1px solid var(--accent-dim);
1113
- border-radius: 8px;
1114
- padding: 12px 14px;
1115
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
1116
- }
1117
- .guide-spotlight-text { font-size: 12.5px; line-height: 1.5; color: var(--text); }
1118
- .guide-spotlight-text strong { color: var(--accent-bright); }
1119
- .guide-spotlight-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
1120
- .guide-spotlight-actions button { padding: 5px 13px; font-size: 12px; }
1121
- .guide-spotlight-actions .ghost { background: var(--surface-2); color: var(--text-muted); }
1122
- .guide-spotlight-actions .ghost:hover { color: var(--text); border-color: var(--accent-dim); }
1123
- .guide-spotlight-actions .primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
1124
- .guide-spotlight-actions .primary:hover { background: var(--accent-bright); box-shadow: 0 0 14px var(--accent-glow); }
1125
-
1126
- /* ===== Guide panel (modal) ===== */
1127
- .modal.guide {
1128
- width: 520px;
1129
- max-width: 92vw;
1130
- max-height: 82vh;
1131
- display: flex;
1132
- flex-direction: column;
1133
- }
1045
+ /* Small uppercase label above a dialog title (the Requests help dialog). */
1134
1046
  .guide-eyebrow {
1135
1047
  font-size: 10px;
1136
1048
  text-transform: uppercase;
@@ -1138,54 +1050,6 @@
1138
1050
  color: var(--accent-bright);
1139
1051
  margin-bottom: 6px;
1140
1052
  }
1141
- /* The body scrolls between the pinned title and the pinned actions; theme its
1142
- scrollbar so no native white bar leaks against the dark surface. */
1143
- #guide-body {
1144
- overflow-y: auto;
1145
- flex: 1 1 auto;
1146
- min-height: 0;
1147
- margin-top: 2px;
1148
- scrollbar-width: thin;
1149
- scrollbar-color: var(--border-strong) transparent;
1150
- }
1151
- #guide-body::-webkit-scrollbar { width: 7px; }
1152
- #guide-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 7px; }
1153
- #guide-body::-webkit-scrollbar-track { background: transparent; }
1154
- .guide-section-label {
1155
- font-size: 10px;
1156
- text-transform: uppercase;
1157
- letter-spacing: 0.14em;
1158
- color: var(--text-muted);
1159
- margin: 14px 0 7px;
1160
- }
1161
- .guide-section-label:first-child { margin-top: 2px; }
1162
- .guide-desc { font-size: 12.5px; line-height: 1.55; color: var(--text); }
1163
- .guide-desc p { margin: 0 0 8px; }
1164
- .guide-desc p:last-child { margin-bottom: 0; }
1165
- .guide-desc code { font-family: var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 3px; color: var(--text-muted); font-size: 11px; }
1166
- .guide-desc-empty { color: var(--text-muted); font-style: italic; }
1167
- .guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
1168
- .guide-step { display: flex; gap: 10px; align-items: baseline; }
1169
- .guide-box { font-family: var(--mono); font-size: 13px; min-width: 16px; color: var(--text-dim); line-height: 1.3; }
1170
- .guide-step-label { font-size: 12.5px; color: var(--text); }
1171
- .guide-step-note { font-size: 11px; color: var(--text-dim); font-style: italic; }
1172
- /* Done: ✓ in ok-green + struck/dimmed label, so the current step stands out on
1173
- shape + contrast, not colour alone. Current: → in accent + bold label. */
1174
- .guide-step.done .guide-box { color: var(--ok); }
1175
- .guide-step.done .guide-step-label { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--text-dim); }
1176
- .guide-step.current .guide-box { color: var(--accent); }
1177
- .guide-step.current .guide-step-label { color: var(--text); font-weight: 600; }
1178
- .guide-walk-hint {
1179
- font-size: 11px;
1180
- line-height: 1.5;
1181
- color: var(--text-muted);
1182
- margin-top: 14px;
1183
- padding-top: 12px;
1184
- border-top: 1px solid var(--border);
1185
- }
1186
- .guide-walk-hint strong { color: var(--text); font-weight: 600; }
1187
- .modal.guide .modal-actions { margin-top: 16px; }
1188
- .modal.guide .modal-actions #guide-got-it { margin-right: auto; }
1189
1053
 
1190
1054
  .agent-card {
1191
1055
  background: var(--surface);
@@ -1950,6 +1814,9 @@
1950
1814
  .fm-select .fm-select-popover { position: static; margin-top: 6px; max-width: none;
1951
1815
  box-shadow: none; animation: none; }
1952
1816
  .fm-select .fm-select-list { max-height: 240px; }
1817
+ /* #2645: a list holding an unavailable row's long reason keeps the field's width, so the reason wraps instead of
1818
+ widening the list past the dialog (the popover is otherwise as wide as its widest row). */
1819
+ .fm-select .fm-select-popover:has(.wf-option.is-unavailable) { width: 100%; }
1953
1820
  .fm-select .fm-select-note { margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
1954
1821
  .fm-select .fm-select-note strong { color: var(--text); font-weight: 600; }
1955
1822
  .fm-select-actions { margin-top: 8px; }
@@ -2427,6 +2294,22 @@
2427
2294
  .int-account.is-chat-warning .int-chat-state { color: var(--warn); }
2428
2295
  .int-account-reason { grid-column: 1 / -1; font-size: 9px; line-height: 1.35; color: var(--text-dim); }
2429
2296
  .int-account-empty { font-size: 9px; line-height: 1.4; color: var(--text-dim); }
2297
+ /* #2649: what Google actually granted an account, and a named account's own Reconnect. */
2298
+ .int-account-access { grid-column: 1 / -1; font-size: 9px; line-height: 1.35; color: var(--text-muted); }
2299
+ .int-account-access.is-warn { color: var(--warn); }
2300
+ .int-account-reconnect { grid-column: 1 / -1; justify-self: start; }
2301
+ /* A sentence the card needs read before Connect: info (accent) or the person's own setup (warn). Tinted
2302
+ with color-mix over --surface so it holds in both themes (the badges' fixed rgba is tuned for dark). */
2303
+ .int-notice {
2304
+ font-size: 10px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere;
2305
+ border-left: 3px solid var(--accent-dim); border-radius: 0 4px 4px 0; padding: 5px 8px; margin: 0 0 8px;
2306
+ background: color-mix(in srgb, var(--accent) 6%, var(--surface));
2307
+ }
2308
+ .int-notice.is-warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
2309
+ .int-drive-help { font-size: 9px; line-height: 1.45; color: var(--text-muted); margin: 2px 0 0 22px; }
2310
+ .int-drive-note { font-size: 9px; line-height: 1.45; color: var(--text-muted); margin: 6px 0 0 22px; }
2311
+ .int-drive-note a { color: var(--accent-bright); text-decoration: underline; }
2312
+ .int-drive-note a:hover { color: var(--accent); }
2430
2313
  .int-load-failed { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; }
2431
2314
  /* One clipped line for an OAuth row's endpoint list; offerClippedScopeLines() (aware.js) gives a
2432
2315
  line that actually overflows a data-tip + tab stop so it is never a dead end (#1524). A setup or
@@ -2462,6 +2345,11 @@
2462
2345
  }
2463
2346
  .int-flow input { accent-color: var(--accent); cursor: pointer; }
2464
2347
  .int-flow:hover { color: var(--text-muted); }
2348
+ .int-flow-drive { display: flex; color: var(--text-muted); } /* its own line, a real choice (#2649) */
2349
+ /* The card is --surface-2, the global checkbox's own fill, and --border-strong equals it in the shadcn
2350
+ dark skin, so an unticked box vanished on the card (#2649 E2E). Lift it off the card in both themes;
2351
+ `:not(:checked)` keeps the global ticked look, which this selector would otherwise tie and override. */
2352
+ .int-item input[type="checkbox"]:not(:checked) { background: var(--surface); border-color: var(--text-dim); }
2465
2353
  .int-devicecode:not(:empty) {
2466
2354
  font-size: 11px;
2467
2355
  color: var(--text-muted);
@@ -2787,8 +2675,8 @@
2787
2675
  feature exists to fix, and the reveal marks the cue delivered either way. What is suppressed
2788
2676
  here is a background fade, not motion — nothing reduced-motion guidance targets — so keeping a
2789
2677
  static form costs those users nothing, and revealFlashTimer already strips the class at 1.2s.
2790
- Same INTENT as .guide-beacon.is-new / .ws-card.is-new (hold a static form where the animation
2791
- was) but deliberately NOT their technique: both use an outset ring, and an outset ring does not
2678
+ Same INTENT as .ws-card.is-new (hold a static form where the animation
2679
+ was) but deliberately NOT its technique: it uses an outset ring, and an outset ring does not
2792
2680
  survive here. .requests-list is `overflow-y: auto`, so overflow-x computes to auto too, and
2793
2681
  .req-item stretches to the full scrollport with 0px of side slack — outset ink is clipped left
2794
2682
  and right, rendering as two horizontal rules with no sides or corners (measured, then seen).
@@ -3671,6 +3559,14 @@
3671
3559
  }
3672
3560
  .wf-option[hidden] { display: none; }
3673
3561
  .wf-option:hover, .wf-option.highlighted { background: var(--surface-2); }
3562
+ /* #2645: listed only to say why it can't be chosen. Muted, never the warning colour (a plan or approval state, not a
3563
+ fault); the reason wraps on its own line at full contrast; keyboard focus still lands on it. */
3564
+ .wf-option.is-unavailable { cursor: not-allowed; flex-wrap: wrap; }
3565
+ .wf-option.is-unavailable:hover { background: transparent; }
3566
+ .wf-option.is-unavailable.highlighted { background: var(--surface-2); }
3567
+ .wf-option.is-unavailable .wf-option-name { color: var(--text-muted); }
3568
+ .wf-option.is-unavailable .wf-option-meta { flex: 1 1 100%; white-space: normal; font-family: inherit; font-size: 11px; color: var(--text-muted); }
3569
+ .wf-option:not(.is-unavailable) + .wf-option.is-unavailable { border-top: 1px solid var(--border); }
3674
3570
  .wf-option.selected { border-left-color: var(--accent); }
3675
3571
  .wf-option.selected .wf-option-name { color: var(--accent); }
3676
3572
  .wf-option.volatile { margin-top: 3px; border-top: 1px solid var(--border); border-radius: 0 0 4px 4px; }
@@ -6147,10 +6043,7 @@ input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offs
6147
6043
  and for Instructor, which narrates its data-blocked-reason. */
6148
6044
 
6149
6045
  /* Mode gating: Workflows chrome hides wholesale in Workspaces (hidden, never disabled).
6150
- ≡ keeps only app-wide items; Dashboard is Workflows-scoped (spec §2).
6151
- #guide-beacon is NOT hidden here — it's the ONE shared control that serves both modes:
6152
- aware.js repaints it as the Workspaces document-guide (drop → review → approve → export)
6153
- for the open project, and toggles its `hidden` attribute in JS (hidden on the landing). */
6046
+ ≡ keeps only app-wide items; Dashboard is Workflows-scoped (spec §2). */
6154
6047
  .app.mode-workspaces .controls > label,
6155
6048
  /* #wf-combo (by ID, not .wf-combo by class): the project picker below reuses the
6156
6049
  .wf-combo/.wf-popover/etc classes for visual parity and must NOT be caught by this
@@ -6193,7 +6086,7 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6193
6086
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas > .panel-label,
6194
6087
  :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,
6195
6088
  :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,
6196
- :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #customize-btn, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #guide-beacon,
6089
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #customize-btn,
6197
6090
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #run-state { display:none !important; }
6198
6091
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .app { --right-width:0px !important; }
6199
6092
  :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .inspect { display:none; }
@@ -6362,7 +6255,7 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6362
6255
  font-family:var(--ui); font-size:12px; line-height:normal; outline:none; }
6363
6256
  .ws-landing-search::placeholder { color:var(--text-muted); opacity:1; }
6364
6257
  .ws-landing-search:hover { border-color:var(--accent-dim); }
6365
- .ws-landing-search:focus-visible { border-color:var(--accent); outline:2px solid var(--accent); outline-offset:2px; }
6258
+ .ws-landing-search:focus-visible { outline:none; border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
6366
6259
  .ws-landing-search::-webkit-search-decoration { -webkit-appearance:none; appearance:none; }
6367
6260
  .ws-landing-search::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none;
6368
6261
  width:10px; height:10px; margin-left:6px; cursor:pointer; color:var(--text-muted);
@@ -6551,6 +6444,30 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6551
6444
  .ws-card .ws-meta.ws-unverified { color:var(--warn); line-height:1.35; white-space:normal; overflow:visible; text-overflow:clip; }
6552
6445
  /* The light --warn amber is ~2:1 on a white card; a darker amber of the same family keeps the label readable. */
6553
6446
  [data-theme="light"] .ws-card .ws-meta.ws-unverified { color:#b45309; }
6447
+ /* #2521 row 5: the Quick model label. A quiet amber outline in the same warning family as "Imported mid-save" (never
6448
+ red: it is a label, not an error); dashed when FloLess could not read what the model rests on ("Possibly Quick").
6449
+ Light theme takes the same darker amber the unverified label uses, for contrast on white. */
6450
+ .quick-pill { display:inline-flex; align-items:center; margin-left:6px; padding:0 7px; border:1px solid color-mix(in srgb, var(--warn) 45%, transparent);
6451
+ border-radius:999px; background:color-mix(in srgb, var(--warn) 9%, transparent); color:var(--warn); font-size:10.5px; font-weight:500;
6452
+ line-height:16px; white-space:nowrap; vertical-align:middle; cursor:default; }
6453
+ .quick-pill.is-unknown { border-style:dashed; }
6454
+ [data-theme="light"] .quick-pill { color:#b45309; border-color:color-mix(in srgb, #b45309 40%, transparent); background:color-mix(in srgb, #b45309 7%, transparent); }
6455
+ /* On a selected (accent-filled) picker row the amber would sit on blue: take the row's own text colour instead. */
6456
+ .export-source-option.selected .quick-pill { color:inherit; border-color:currentColor; background:transparent; }
6457
+ .ws-card .ws-meta.ws-quick { white-space:normal; overflow:visible; }
6458
+ .ws-card .ws-meta.ws-quick .quick-pill,
6459
+ .ws-quick-chips .quick-pill,
6460
+ .hd-quick .quick-pill { margin-left:0; }
6461
+ /* Shrinks (each chip ellipsizes, its full text stays in the tip) before it can push the Approve button off the header. */
6462
+ .ws-quick-chips { display:inline-flex; align-items:center; gap:6px; min-width:0; flex:0 1 auto; overflow:hidden; }
6463
+ .ws-quick-chips .quick-pill { min-width:0; flex:0 1 auto; display:inline-block; overflow:hidden; text-overflow:ellipsis; }
6464
+ .ws-quick-chips[hidden] { display:none; }
6465
+ .hd-quick { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
6466
+ .export-quick-note { margin:6px 0; padding:6px 10px; border:1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius:6px;
6467
+ color:var(--text-muted); font-size:12px; line-height:1.45; }
6468
+ .export-quick-note b { color:var(--warn); font-weight:600; }
6469
+ [data-theme="light"] .export-quick-note { border-color:color-mix(in srgb, #b45309 35%, transparent); }
6470
+ [data-theme="light"] .export-quick-note b { color:#b45309; }
6554
6471
  .ws-card .ws-kebab { background:transparent; border:1px solid transparent; color:var(--text-dim);
6555
6472
  padding:2px 7px; border-radius:4px; font-size:14px; line-height:1; flex:none; }
6556
6473
  .ws-card .ws-kebab:hover { border-color:var(--border-strong); color:var(--text); }
@@ -7930,7 +7847,7 @@ html.mode-agents-boot .inspect, html.mode-agents-boot .pane-rail-right { display
7930
7847
  .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked, .app.mode-agents #wf-agent-step,
7931
7848
  .app.mode-agents #run-state, .app.mode-agents #restore-btn, .app.mode-agents #customize-btn,
7932
7849
  .app.mode-agents #compile-btn, .app.mode-agents #sim-btn, .app.mode-agents #run-btn, .app.mode-agents #stop-run-btn,
7933
- .app.mode-agents #ext-badge, .app.mode-agents #guide-beacon,
7850
+ .app.mode-agents #ext-badge,
7934
7851
  body.mode-agents #menu .menu-item[data-action="view-switch"],
7935
7852
  body.mode-agents #menu .menu-item[data-action="find"],
7936
7853
  body.mode-agents #menu .menu-item[data-action="open"],
@@ -8141,7 +8058,7 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8141
8058
  .approval-revision-note::-webkit-scrollbar, .approval-revision-note textarea::-webkit-scrollbar { width: 8px; }
8142
8059
  .approval-revision-note::-webkit-scrollbar-thumb, .approval-revision-note textarea::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
8143
8060
  .approval-revision-note::-webkit-scrollbar-track, .approval-revision-note textarea::-webkit-scrollbar-track { background: transparent; }
8144
- .approval-revision-note textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
8061
+ .approval-revision-note textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
8145
8062
  .hist-revision-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 5px; }
8146
8063
  .hist-revision-note-meta { color: var(--text-dim); font-size: 11px; margin-bottom: 6px; }
8147
8064
  .hist-note-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@@ -8172,6 +8089,99 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8172
8089
  .ws-pages::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
8173
8090
  .ws-pages::-webkit-scrollbar-track { background:transparent; }
8174
8091
  .pg-sub { font-size:12px; color:var(--text-muted); margin:6px 0 14px; }
8092
+ /* #2470 R6.2: a project's Workflows step — the Pages list's rows, with the Workflows page's chip and Archived section. */
8093
+ .ws-workflows .step-head .pw-new { margin-left:auto; padding:4px 10px; font-size:12px; }
8094
+ .ws-workflows .pw-empty .pw-new-empty { margin-top:8px; padding:4px 10px; font-size:12px; }
8095
+ .ws-workflows .pw-archived { max-width:880px; }
8096
+ .ws-workflows .pw-archived .pg-list { margin-top:8px; }
8097
+ .ws-workflows .pw-archived .pg-row-title { color:var(--text-muted); }
8098
+ .ws-workflows [data-pw-heading]:focus { outline:none; }
8099
+ .pw-chip { flex:none; font-size:9px; text-transform:uppercase; letter-spacing:.1em; color:var(--accent-bright);
8100
+ background:var(--surface); border:1px solid var(--accent-dim); padding:2px 7px; border-radius:4px; }
8101
+ .pw-chip.is-muted { color:var(--text-muted); border-color:var(--border-strong); }
8102
+ /* #2470 R6.7: a General project's Modules step — the same rows, a muted chip for every state that cannot open, the
8103
+ Created-here strip in the empty-state card, and the Project access sheet (wider) for Add a module. No new colours. */
8104
+ .ws-modules .step-head .pm-head-acts { margin-left:auto; display:flex; gap:8px; }
8105
+ .ws-modules .step-head .pm-head-acts button { padding:4px 10px; font-size:12px; }
8106
+ .ws-modules [data-pm-heading]:focus { outline:none; }
8107
+ .ws-modules .pm-row { padding-right:6px; }
8108
+ .ws-modules .pm-row.is-off { padding-left:12px; }
8109
+ .ws-modules .pm-row-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; padding:9px 0; }
8110
+ .ws-modules .pm-row.is-off .pg-row-title { color:var(--text-muted); }
8111
+ .ws-modules .pm-act { flex:none; padding:4px 10px; font-size:12px; }
8112
+ .ws-modules .pm-unlink { flex:none; width:28px; height:28px; padding:0; font-size:12px; color:var(--text-muted); }
8113
+ .ws-modules .pm-unlink:hover { color:var(--text); }
8114
+ .ws-modules .pm-strip, .ws-workflows .pm-strip { margin:0 0 12px; max-width:880px; display:flex; flex-direction:column; gap:8px; }
8115
+ .ws-modules .pm-strip-row, .ws-workflows .pm-strip-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
8116
+ .ws-modules .pm-strip-row > span:first-child, .ws-workflows .pm-strip-row > span:first-child { flex:1; min-width:200px; color:var(--text); }
8117
+ .ws-modules .pm-strip-acts, .ws-workflows .pm-strip-acts { display:flex; gap:6px; }
8118
+ .ws-modules .pm-strip-acts button, .ws-workflows .pm-strip-acts button { padding:3px 10px; font-size:12px; }
8119
+ .ws-modules .pm-strip-more, .pm-note { font-size:12px; color:var(--text-dim); margin:8px 0 0; }
8120
+ /* #2603: a set-apart workflow row's title, chip and explanation read as one block beside its two answers. */
8121
+ .ws-workflows .pw-setapart-row .pg-row-meta { display:block; margin-top:2px; }
8122
+ /* Every sentence of a set-apart folder's explanation is read: it says what is wrong and that nothing is deleted. */
8123
+ .ws-workflows .pw-setapart .pg-row-meta { white-space:normal; overflow:visible; }
8124
+ .pm-backdrop.pm-wide .pm-sheet { width:min(760px, 100vw); }
8125
+ /* #2470 R6.6: a General project's RFIs step and its New RFI sheet — the sibling steps' rows, chips and sheet, nothing new. */
8126
+ .ws-rfis .step-head .pr-new { margin-left:auto; padding:4px 10px; font-size:12px; }
8127
+ .ws-rfis [data-pr-heading]:focus, .ws-rfis [data-pr-title]:focus { outline:none; }
8128
+ .ws-rfis [data-pr-title]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
8129
+ .ws-rfis .pr-filters { display:flex; gap:6px; margin:0 0 10px; }
8130
+ .ws-rfis .pr-filter { padding:3px 10px; font-size:12px; }
8131
+ .ws-rfis .pr-filter[aria-pressed="true"] { color:var(--text); border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); }
8132
+ .ws-rfis .pr-list { max-width:880px; }
8133
+ .ws-rfis .pr-row { display:flex; flex-direction:column; align-items:stretch; gap:4px; }
8134
+ .ws-rfis .pr-row .pg-row-meta, .ws-rfis .pr-row .pm-note { white-space:normal; overflow:visible; }
8135
+ .ws-rfis .pr-question { margin:2px 0 0; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.45; }
8136
+ .ws-rfis .pr-answer { margin:4px 0 0; padding:6px 10px; border-left:2px solid var(--border-strong); background:var(--surface-2);
8137
+ color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; font-size:12.5px; border-radius:0 4px 4px 0; }
8138
+ .ws-rfis .pr-answer-label { font-size:10px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); margin-right:6px; }
8139
+ .pr-cites { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
8140
+ .pr-cite { text-transform:none; letter-spacing:0; font-size:11px; display:inline-flex; align-items:center; gap:6px; max-width:100%; overflow-wrap:anywhere; }
8141
+ .pr-cite:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8142
+ .pr-chip-x { padding:0 4px; font-size:11px; line-height:1; background:transparent; border:none; color:var(--text-muted); cursor:pointer; }
8143
+ .pr-chip-x:hover { color:var(--text); }
8144
+ .ws-rfis .pr-acts, .ws-rfis .pr-form-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
8145
+ .ws-rfis .pr-acts button, .ws-rfis .pr-form-acts button { padding:3px 10px; font-size:12px; }
8146
+ .ws-rfis .pr-form { margin-top:8px; padding:10px 12px; border:1px solid var(--border); border-radius:6px; background:var(--surface-2); display:flex; flex-direction:column; gap:8px; }
8147
+ .pr-field { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--text-muted); margin:0 0 12px; }
8148
+ .pr-input { font:inherit; font-size:13px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; padding:6px 8px; }
8149
+ .pr-input:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8150
+ .pr-input[aria-invalid="true"] { border-color:var(--warn); }
8151
+ .pr-input[readonly] { color:var(--text-muted); }
8152
+ .pr-text { resize:vertical; min-height:3em; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
8153
+ .pr-text::-webkit-scrollbar { width:7px; }
8154
+ .pr-text::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
8155
+ .pr-text::-webkit-scrollbar-track { background:transparent; }
8156
+ .ws-rfis .pr-copied { margin-top:6px; }
8157
+ .pr-alert { color:var(--warn); }
8158
+ .pr-radios { display:flex; flex-direction:column; gap:4px; }
8159
+ .pr-radio { display:flex; align-items:flex-start; gap:8px; text-align:left; padding:5px 8px; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--text); cursor:pointer; }
8160
+ .pr-radio:hover { background:var(--surface-3); }
8161
+ .pr-radio:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8162
+ .pr-radio .pg-row-meta { display:block; }
8163
+ .pr-radio-label { font-size:12.5px; }
8164
+ .pr-radio-dot { flex:none; width:12px; height:12px; margin-top:2px; border-radius:50%; border:1px solid var(--border-strong); background:var(--surface); }
8165
+ .pr-radio[aria-checked="true"] .pr-radio-dot { border-color:var(--accent); box-shadow:inset 0 0 0 3px var(--surface), inset 0 0 0 6px var(--accent); }
8166
+ .pr-sheet { width:min(620px, 100vw); }
8167
+ .pr-sheet .pr-foot { display:flex; justify-content:flex-end; gap:8px; }
8168
+ .pr-sheet .pr-search { width:100%; margin:0 0 10px; }
8169
+ .pr-options { display:flex; flex-direction:column; gap:2px; }
8170
+ .pr-group { margin:12px 0 4px; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); }
8171
+ .pr-option { display:flex; align-items:center; gap:8px; width:100%; text-align:left; padding:6px 8px; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--text); cursor:pointer; }
8172
+ .pr-option:hover { background:var(--surface-3); }
8173
+ .pr-option:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8174
+ .pr-option[aria-selected="true"] { background:color-mix(in srgb, var(--accent) 12%, transparent); border-color:color-mix(in srgb, var(--accent) 35%, transparent); }
8175
+ .pr-check { flex:none; width:14px; color:var(--accent); font-weight:600; }
8176
+ .pm-sheet .pm-cards { margin:8px 0 4px; }
8177
+ /* No drop target inside a modal (the landing keeps drop): the cards are clicked here, so their drop hint is not shown. */
8178
+ .pm-sheet .ws-seed .ws-seed-hint { display:none; }
8179
+ .pm-sheet .pm-filter { width:100%; margin:8px 0 10px; box-sizing:border-box; }
8180
+ .pm-sheet .pm-pick-list { display:flex; flex-direction:column; gap:6px; }
8181
+ .pm-sheet .pm-pick { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:9px 12px; text-align:left;
8182
+ background:var(--surface-2); border:1px solid var(--border); border-radius:6px; color:var(--text); font:inherit; cursor:pointer; }
8183
+ .pm-sheet .pm-pick:hover { background:var(--surface-3); }
8184
+ .pm-sheet .pm-pick:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
8175
8185
  .pg-loading-line { font-size:12px; color:var(--text-dim); margin:8px 0; }
8176
8186
  .pg-empty { margin:6px 0 0; padding:11px 14px; background:var(--surface-2); border:1px solid var(--border);
8177
8187
  border-left:3px solid var(--accent-dim); border-radius:6px; font-size:12.5px; color:var(--text-muted); max-width:640px; }
@@ -8181,18 +8191,75 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8181
8191
  .pg-group-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; font-weight:600; color:var(--text-dim); margin:14px 0 6px; }
8182
8192
  .pg-group-label:first-child { margin-top:0; }
8183
8193
  .pg-row { display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; }
8184
- .pg-row-open { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px;
8194
+ /* .pw-row-open: a project's Workflows step (#2470 R6.2) wears the same row; its own class, because pages.js opens a Page for any .pg-row-open click. */
8195
+ .pg-row-open, .pw-row-open, .pm-row-open { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:3px;
8185
8196
  padding:9px 12px; background:transparent; border:0; border-radius:6px; text-align:left; cursor:pointer; color:var(--text); font:inherit; }
8186
- .pg-row-open:hover { background:var(--surface-3); }
8187
- .pg-row-open:focus-visible, .pg-row-delete:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
8197
+ .pg-row-open:hover, .pw-row-open:hover, .pm-row-open:hover { background:var(--surface-3); }
8198
+ .pg-row-open:focus-visible, .pw-row-open:focus-visible, .pm-row-open:focus-visible, .pg-row-delete:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
8188
8199
  .pg-row-line { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
8189
8200
  .pg-row-title { font-size:13px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
8190
8201
  .pg-row-meta { font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
8191
8202
  .pg-row-damaged { padding:9px 12px; border-left:3px solid var(--warn); }
8192
8203
  .pg-row-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
8193
8204
  .pg-row-damaged .pg-row-meta { white-space:normal; }
8205
+ /* #2644: a Page a locked Drawing Checker or Steel Model workflow made. A plan limit, not a fault: no warning colour. */
8206
+ .pg-row-locked { padding:9px 12px; }
8207
+ .pg-row-locked .pg-row-title { opacity:0.7; }
8208
+ .pg-row-locked .pg-row-meta { white-space:normal; }
8194
8209
  /* #2568: a part of the Workflows Pages tab that could not be read is said above the rows that could. */
8195
8210
  .pg-wf-note { margin:0 0 8px; padding:8px 12px; border-left:3px solid var(--warn); color:var(--text-dim); font-size:12px; }
8211
+ /* Workflows → History (web/run-history.js): one section per workflow, flat rows in one panel. Columns line up across rows
8212
+ (when, outcome, duration, what it rests on, actions) so a long list scans down; numbers are tabular. No inner scroll: the
8213
+ landing scrolls. Status is a dot in its token beside neutral text (--ok as text is ~2.3:1 on light); only Failed has
8214
+ ink, --err-text, and a red rail. */
8215
+ .wf-history-panel { container-type:inline-size; }
8216
+ .rh-section > .rh-summary { display:flex; text-transform:none; letter-spacing:0; font-size:13px; color:var(--text); gap:8px; min-width:0; }
8217
+ .rh-section > .rh-summary:hover { color:var(--text); }
8218
+ .rh-sum-name { font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
8219
+ .rh-sum-meta { flex:none; font-size:12px; color:var(--text-muted); white-space:nowrap; }
8220
+ .rh-list { margin-top:8px; max-width:1040px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); }
8221
+ .rh-row { display:grid; grid-template-columns:10.5rem 7rem 5.5rem minmax(0, 1fr) auto; align-items:center; gap:10px;
8222
+ padding:7px 12px 7px 9px; font-size:12.5px; border-left:3px solid transparent; }
8223
+ .rh-row + .rh-row { border-top:1px solid var(--border); }
8224
+ .rh-row.is-failed { border-left-color:var(--err); }
8225
+ .rh-when { color:var(--text); font-variant-numeric:tabular-nums; white-space:nowrap; }
8226
+ .rh-dur { color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
8227
+ .rh-detail { display:flex; align-items:center; gap:6px; min-width:0; flex-wrap:wrap; }
8228
+ .rh-detail-text { color:var(--text-muted); font-size:12px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
8229
+ .rh-row.is-not-run .rh-detail-text { white-space:normal; }
8230
+ .rh-actions { display:flex; gap:6px; justify-content:flex-end; }
8231
+ .rh-outcome { justify-self:start; display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600; padding:1px 8px;
8232
+ border-radius:10px; white-space:nowrap; color:var(--text); background:var(--surface-3); border:1px solid var(--border); }
8233
+ .rh-outcome::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--text-dim); flex:none; }
8234
+ .rh-outcome.rh-succeeded::before { background:var(--ok); }
8235
+ .rh-outcome.rh-failed { color:var(--err-text); }
8236
+ .rh-outcome.rh-failed::before { background:var(--err); }
8237
+ .rh-outcome.rh-running::before { background:var(--accent); }
8238
+ .rh-outcome.rh-not-run { border-style:dashed; border-color:var(--border-strong); color:var(--text-muted); }
8239
+ .rh-outcome.rh-not-run::before { background:var(--warn); }
8240
+ .rh-outcome.rh-stopped { color:var(--text-muted); }
8241
+ .rh-outcome.rh-simulated { color:var(--text-muted); }
8242
+ .rh-outcome.rh-simulated::before { background:none; box-shadow:inset 0 0 0 1.5px var(--text-muted); }
8243
+ .rh-pill { flex:none; font-size:10.5px; padding:1px 7px; border-radius:10px; color:var(--text-muted); background:var(--surface-3);
8244
+ border:1px solid var(--border); white-space:nowrap; max-width:20ch; overflow:hidden; text-overflow:ellipsis; }
8245
+ .rh-outcome[tabindex]:focus-visible, .rh-ai:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8246
+ .rh-btn { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px; padding:3px 9px;
8247
+ font-size:11px; cursor:pointer; white-space:nowrap; }
8248
+ .rh-btn:hover { color:var(--text); border-color:var(--accent); }
8249
+ .rh-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8250
+ /* Open workflow is on every row, so it stays quiet until its row is pointed at or focused. */
8251
+ .rh-btn.rh-open { border-color:transparent; }
8252
+ .rh-row:hover .rh-btn.rh-open, .rh-row:focus-within .rh-btn.rh-open { border-color:var(--border-strong); }
8253
+ .rh-cut { margin:8px 0 0; font-size:12px; color:var(--text-muted); }
8254
+ /* A narrow centre column (its width follows the chat pane, so a container query, not a viewport one): when, outcome and
8255
+ duration on one line; what it rests on, then the actions, below. */
8256
+ @container (max-width: 640px) {
8257
+ .rh-row { grid-template-columns:auto auto minmax(0, 1fr); row-gap:6px; }
8258
+ .rh-dur { text-align:left; }
8259
+ .rh-detail, .rh-actions { grid-column:1 / -1; }
8260
+ .rh-detail:empty { display:none; }
8261
+ .rh-actions { justify-content:flex-start; }
8262
+ }
8196
8263
  .pg-row-delete { padding:5px 10px; background:var(--surface-3); color:var(--text-muted); flex-shrink:0; }
8197
8264
  .pg-row-delete:hover { color:var(--text); border-color:var(--warn); }
8198
8265
  .ws-pages-group:empty { display:none; }
@@ -8212,23 +8279,32 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8212
8279
  .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; }
8213
8280
  .pg-seq-text[hidden] { display:none; }
8214
8281
  .pv-pop .pv-pop-note.pv-share-seq { color:var(--warn); }
8282
+ .pv-pop .pv-pop-note.pv-share-seq.is-read { color:inherit; }
8215
8283
 
8216
8284
  /* The viewer reuses .report-viewer's frame and head; Full screen fills the window. */
8217
8285
  .page-viewer-backdrop.pv-full { padding:0; }
8218
8286
  .page-viewer-backdrop.pv-full .modal.page-viewer { width:100vw; max-width:100vw; height:100vh; border-radius:0; }
8219
8287
  /* Keep the existing Instructor usable above the viewer, as for directory decisions. */
8220
- body:has(.app.has-instructor) #page-viewer.show { box-sizing:border-box; padding-bottom:128px; }
8288
+ body:has(.app.has-instructor) #page-viewer.show,
8289
+ body:has(.app.has-instructor) .ai-chat-viewer-backdrop.show { box-sizing:border-box; padding-bottom:128px; }
8221
8290
  body:has(.app.has-instructor) #page-viewer.show .modal.page-viewer { max-height:min(86vh, calc(100dvh - 152px)); }
8291
+ /* #2582: AI Chat's source viewers keep the band above them the same way. */
8292
+ body:has(.app.has-instructor) .ai-chat-viewer-backdrop.show .ai-chat-source-viewer { max-height:min(90vh, calc(100dvh - 152px)); }
8222
8293
  body:has(.app.has-instructor) #page-viewer.show.pv-full .modal.page-viewer { height:calc(100dvh - 128px); max-height:calc(100dvh - 128px); }
8223
- body:has(#page-viewer.show) .app.has-instructor #instructor {
8294
+ body:has(#page-viewer.show) .app.has-instructor #instructor,
8295
+ body:has(.ai-chat-viewer-backdrop.show) .app.has-instructor #instructor {
8224
8296
  position:relative; z-index:101; pointer-events:auto; height:auto; min-height:34px; max-height:84px;
8225
8297
  align-items:flex-start; padding:8px 14px; line-height:1.45; white-space:normal; overflow-y:auto;
8226
8298
  scrollbar-width:thin; scrollbar-color:var(--text-dim) transparent;
8227
8299
  }
8228
- body:has(#page-viewer.show) #instructor::-webkit-scrollbar { width:7px; }
8229
- body:has(#page-viewer.show) #instructor::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:7px; }
8230
- body:has(#page-viewer.show) #instructor::-webkit-scrollbar-track { background:transparent; }
8231
- body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto; min-width:0; }
8300
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar,
8301
+ body:has(.ai-chat-viewer-backdrop.show) #instructor::-webkit-scrollbar { width:7px; }
8302
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar-thumb,
8303
+ body:has(.ai-chat-viewer-backdrop.show) #instructor::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:7px; }
8304
+ body:has(#page-viewer.show) #instructor::-webkit-scrollbar-track,
8305
+ body:has(.ai-chat-viewer-backdrop.show) #instructor::-webkit-scrollbar-track { background:transparent; }
8306
+ body:has(#page-viewer.show) #instructor .ix-parts,
8307
+ body:has(.ai-chat-viewer-backdrop.show) #instructor .ix-parts { display:block; flex:1 1 auto; min-width:0; }
8232
8308
  .pv-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
8233
8309
  .pv-title-row .modal-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
8234
8310
  .pv-info { color:var(--text-dim); font-size:13px; cursor:help; border-radius:50%; }
@@ -8327,6 +8403,23 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
8327
8403
  .sl-note { margin:0; padding:8px 12px; font-size:12px; color:var(--text-muted); background:var(--surface-2);
8328
8404
  border:1px solid var(--border); border-left:3px solid var(--warn); border-radius:6px; }
8329
8405
  .sl-note[hidden] { display:none; }
8406
+ /* #2262 5e: space for shared files, per plan. Tokens only; the fill turns warn at 90% and red (--err) when full, and the
8407
+ status sentence says the same in words, so colour is never the only cue. */
8408
+ .sl-usage { display:flex; flex-direction:column; gap:6px; padding:10px 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; }
8409
+ .sl-usage[hidden] { display:none; }
8410
+ .sl-usage-row { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 12px; font-size:12px; }
8411
+ .sl-usage-label { color:var(--text-muted); }
8412
+ .sl-usage-value { color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
8413
+ .sl-meter { position:relative; height:4px; border-radius:2px; overflow:hidden; background:color-mix(in srgb, var(--text-muted) 28%, transparent); }
8414
+ .sl-meter-fill { position:absolute; inset:0 auto 0 0; width:0; border-radius:2px; background:var(--accent); }
8415
+ .sl-usage[data-level="almost"] .sl-meter-fill { background:var(--warn); }
8416
+ .sl-usage[data-level="full"] .sl-meter-fill { background:var(--err); }
8417
+ .sl-usage-status { margin:0; font-size:12px; font-weight:600; color:var(--warn); }
8418
+ .sl-usage[data-level="full"] .sl-usage-status { color:var(--err); }
8419
+ .sl-usage-status[hidden] { display:none; }
8420
+ .sl-usage-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; color:var(--text-muted); }
8421
+ .sl-usage-foot #sl-plans { flex-shrink:0; padding:3px 10px; }
8422
+ .sl-usage-foot #sl-plans[hidden] { display:none; }
8330
8423
  .sl-list { flex:1 1 auto; min-height:80px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding-right:2px;
8331
8424
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
8332
8425
  .sl-list::-webkit-scrollbar { width:8px; }
@@ -8386,6 +8479,10 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
8386
8479
  .as-add-group { position: relative; }
8387
8480
  .wf-ai-pill { border-color: var(--accent-dim); background: var(--accent-soft); color: var(--accent); }
8388
8481
  .wf-ai-badge { color: var(--text-muted); border-color: var(--border-strong); }
8482
+ /* #2644: a module workflow this account's plan does not include. A plan limit, not a fault: muted, never the error colour. */
8483
+ .wf-lock-badge { color: var(--text-muted); border-color: var(--border-strong); display: inline-flex; align-items: center; gap: 3px; }
8484
+ .wf-lock-badge svg { width: 9px; height: 9px; }
8485
+ .wf-option[data-locked="1"] .wf-option-name { opacity: 0.7; }
8389
8486
  .as-popover { top: auto; bottom: calc(100% + 6px); left: 0; min-width: 260px; max-width: 360px; }
8390
8487
  .as-popover .wf-empty-search { text-align: left; font-style: normal; padding: 12px; }
8391
8488
  .as-popover .wf-option { flex-direction: row; }
@@ -8444,7 +8541,7 @@ body:has(#page-viewer.show) #instructor .ix-parts { display:block; flex:1 1 auto
8444
8541
  input[type=number] { -moz-appearance: textfield; appearance: textfield; }
8445
8542
  input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
8446
8543
  .ac-wait-input:focus { border-color: var(--accent); }
8447
- .ac-wait-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
8544
+ .ac-wait-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
8448
8545
  .ac-wait-input:invalid { border-color: var(--err); box-shadow: none; }
8449
8546
  .as-wait-value { margin-left: auto; color: var(--text-muted); }
8450
8547
  .as-wait-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
@@ -8637,6 +8734,13 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
8637
8734
  .pa-btn.ghost { background:none; border-color:transparent; color:var(--text-muted); }
8638
8735
  .pa-btn.danger:hover { color:var(--err-text); border-color:var(--err); }
8639
8736
  .pa-open:focus-visible, .pa-btn:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
8737
+ /* #2470 R6.2: the workflows that only belong to the project, as one line pointing at its Workflows step. */
8738
+ .pa-owned { margin-top:14px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
8739
+ .pa-owned-line { margin:0 0 8px; font-size:12px; color:var(--text-muted); line-height:1.5; }
8740
+ /* The Workflows step's link to Project access: a link-styled button inside its subtitle. */
8741
+ .ws-workflows .pw-access { background:none; border:0; padding:0; font:inherit; color:var(--accent-bright); cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
8742
+ .ws-workflows .pw-access:hover { color:var(--accent); }
8743
+ .ws-workflows .pw-access:focus-visible { outline:2px solid var(--accent); outline-offset:1px; border-radius:2px; }
8640
8744
  .pa-check { margin:0; cursor:pointer; } /* the global themed checkbox (app.css input[type="checkbox"]) draws it */
8641
8745
  .pa-confirm { grid-column:1 / -1; margin-top:10px; padding:10px 12px; border-radius:6px; background:var(--surface-2);
8642
8746
  border:1px solid var(--border-strong); font-size:12px; color:var(--text); line-height:1.45; }
@@ -8649,6 +8753,9 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
8649
8753
  .pa-foot { padding:9px 18px 12px; font-size:11.5px; color:var(--text-dim); border-top:1px solid var(--border); }
8650
8754
  .pa-note { margin:12px 0 0; font-size:12px; color:var(--warn-text); line-height:1.45; }
8651
8755
  .pa-note p { margin:0 0 4px; }
8756
+ /* #2470 R6.7: "Linked from …" is information, not a warning: the sheet's own muted text. */
8757
+ .pa-note.pa-linked { color:var(--text-muted); }
8758
+ .pa-note.pa-linked p { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
8652
8759
  .pa-stale { display:flex; align-items:flex-start; gap:10px; padding:9px 11px; border-radius:6px; background:var(--surface-2);
8653
8760
  border:1px solid var(--border-strong); }
8654
8761
  .pa-stale p { flex:1; margin:0; }
@@ -8689,7 +8796,7 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
8689
8796
  .kb-cat-edit { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
8690
8797
  .kb-cat-input { flex:1; min-width:0; font:inherit; font-size:12px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong);
8691
8798
  border-radius:5px; padding:5px 7px; }
8692
- .kb-cat-input:focus-visible { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); }
8799
+ .kb-cat-input:focus-visible { outline:none; border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
8693
8800
  .kb-cat-input::placeholder { color:var(--text-dim); }
8694
8801
  .kb-cat-save, .kb-cat-cancel { font-size:11.5px; padding:5px 9px; }
8695
8802
  .kb-cat-new { display:block; margin:4px 0 8px; }