@floless/app 0.149.1 → 0.150.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 (48) hide show
  1. package/dist/floless-server.cjs +101814 -88311
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +45 -2
  3. package/dist/schemas/steel.model.v2.schema.json +9 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +79 -4
  5. package/dist/skills/floless-app-onboarding/SKILL.md +4 -4
  6. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +1 -1
  7. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +15 -13
  8. package/dist/skills/floless-app-routines/SKILL.md +4 -1
  9. package/dist/skills/floless-app-routines/references/routines-api.md +14 -2
  10. package/dist/skills/floless-app-steel-model/SKILL.md +4 -2
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +14 -9
  12. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  13. package/dist/templates/tekla-parser.flo +13 -3
  14. package/dist/web/agents.js +887 -0
  15. package/dist/web/app.css +458 -23
  16. package/dist/web/app.js +20 -5
  17. package/dist/web/aware.js +1339 -134
  18. package/dist/web/chat.css +50 -1
  19. package/dist/web/chat.js +1582 -52
  20. package/dist/web/commands-drawing-check.js +15 -0
  21. package/dist/web/commands-revit.js +5 -0
  22. package/dist/web/commands-shell.js +761 -47
  23. package/dist/web/commands-tekla-parser.js +8 -1
  24. package/dist/web/connections.js +57 -14
  25. package/dist/web/drawing-check-editor.html +10 -2
  26. package/dist/web/drawing-check-editor.js +569 -40
  27. package/dist/web/drawing-check-overlay.js +45 -2
  28. package/dist/web/index.html +98 -27
  29. package/dist/web/instructor.js +85 -8
  30. package/dist/web/leave-guard.js +1 -0
  31. package/dist/web/left-pane.js +20 -1
  32. package/dist/web/local-discovery.js +12 -2
  33. package/dist/web/model-editor.css +32 -32
  34. package/dist/web/model-panel-bridge.js +11 -3
  35. package/dist/web/model-viewport-lighting.js +4 -2
  36. package/dist/web/model-viewport-revit-adapter.js +3 -0
  37. package/dist/web/model-viewport-toolbar.js +6 -3
  38. package/dist/web/model-viewport.js +11 -1
  39. package/dist/web/revit-editor.css +14 -14
  40. package/dist/web/revit-editor.js +64 -12
  41. package/dist/web/steel-3d-core.js +133 -0
  42. package/dist/web/steel-3d-view.js +10 -0
  43. package/dist/web/steel-editor.html +171 -39
  44. package/dist/web/steel-model-v2-client-validation.js +11 -0
  45. package/dist/web/steel-model-v2-commands.js +80 -5
  46. package/dist/web/tool-updates.js +367 -0
  47. package/dist/web/workspaces.js +679 -59
  48. package/package.json +1 -1
package/dist/web/app.css CHANGED
@@ -897,7 +897,8 @@
897
897
  — both just need to paint ABOVE the panned content (the notes stay readable). */
898
898
  .canvas > .fav-bar,
899
899
  .canvas > .notes-strip,
900
- .canvas > .kb-informed { position: relative; z-index: 6; }
900
+ .canvas > .kb-informed,
901
+ .canvas > .approval-strip { position: relative; z-index: 6; }
901
902
 
902
903
  /* LINEAR */
903
904
  .topology:not(.dag) .agent-card { flex: 0 0 210px; }
@@ -1942,7 +1943,7 @@
1942
1943
  font-size:11px; line-height:1.5; }
1943
1944
  .project-setup-error { margin-top:12px; padding:8px 10px; border:1px solid color-mix(in srgb, var(--err) 45%, var(--border));
1944
1945
  border-radius:5px; background:color-mix(in srgb, var(--err) 8%, transparent); color:var(--err);
1945
- font-size:11px; line-height:1.45; }
1946
+ font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
1946
1947
  .project-setup-error[hidden], .project-setup-standard[hidden], .project-setup-provider[hidden] { display:none; }
1947
1948
  .tekla-source-status { margin-top:10px; color:var(--text-dim); font-size:11px; line-height:1.45; }
1948
1949
  .tekla-source-status[hidden] { display:none; }
@@ -2865,6 +2866,23 @@
2865
2866
 
2866
2867
  .req-why-not { margin-top: 6px; font-size: 10.5px; font-style: italic; color: var(--text-dim); line-height: 1.4; }
2867
2868
 
2869
+ /* #1874 — a drawing read whose discard record cannot be read asks the person what to do. The same card
2870
+ as .req-audit, but a --warn rail: this is a question with a safe default, not a failure. */
2871
+ .req-discard-q {
2872
+ margin-top: 8px; padding: 10px 12px;
2873
+ border: 1px solid var(--border); border-left: 3px solid var(--warn);
2874
+ border-radius: 6px; background: var(--surface);
2875
+ }
2876
+ .req-discard-q-lead { margin: 0; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
2877
+ .req-discard-q-body { margin: 3px 0 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
2878
+ .req-discard-q-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
2879
+ .req-discard-q-status { margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
2880
+ .req-discard-q-status:empty { display: none; }
2881
+ .req-chat-action.danger { border-color: var(--err); color: var(--err); }
2882
+ .req-chat-action.danger:hover { background: var(--surface-2); color: var(--err); }
2883
+ .req-chat-action:disabled { opacity: .6; cursor: progress; }
2884
+ .req-discard-kept { margin: 6px 0 0; color: var(--text-dim); font-size: 10.5px; line-height: 1.4; }
2885
+
2868
2886
  /* The Integrations section: which terminal AIs are installed, and the folder runs happen in. */
2869
2887
  .int-section { border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2);
2870
2888
  margin-bottom: 10px; flex-shrink: 0; overflow: hidden; }
@@ -2956,7 +2974,7 @@
2956
2974
  .rtn-wf { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
2957
2975
  .rtn-sub .rtn-dot { opacity: 0.4; }
2958
2976
  .rtn-report-note { font-size: 11px; color: var(--text-muted); line-height: 1.35; }
2959
- .rtn-report-note.warn { color: var(--warn); }
2977
+ .rtn-report-note.warn { color: var(--warn-text); }
2960
2978
  .rtn-meta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
2961
2979
  .rtn-next { font-family: var(--mono); font-size: 10px; color: var(--text-dim); white-space: nowrap; }
2962
2980
  .rtn-status { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--text-dim); }
@@ -3177,6 +3195,79 @@
3177
3195
  #aware-update-modal[aria-busy="true"] .aware-update-live::before { animation: none; opacity: 1; }
3178
3196
  }
3179
3197
 
3198
+ /* #1997 Approve updated workflows — the AWARE-update dialect (.aware-update-*) applied to a list
3199
+ of workflows. Existing tokens only; the pill reuses .app-update and adds two tints (warn after a
3200
+ week, err for an AWARE urgency notice). The body is the one scroll region, themed in this pass. */
3201
+ .tool-updates-pill[data-state="nudge"],
3202
+ .tool-updates-pill[data-state="needs"] { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); }
3203
+ .tool-updates-pill[data-state="urgent"] { border-color: color-mix(in srgb, var(--err) 60%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); font-weight: 600; }
3204
+ .tool-updates-pill[data-state="nudge"]:hover,
3205
+ .tool-updates-pill[data-state="needs"]:hover { border-color: var(--warn); color: var(--warn); }
3206
+ .tool-updates-pill[data-state="urgent"]:hover { border-color: var(--err); color: var(--err); }
3207
+ #tool-updates-modal .tool-updates-dialog { width: 560px; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; }
3208
+ #tool-updates-modal .modal-title:focus { outline: none; }
3209
+ #tool-updates-modal .modal-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
3210
+ .tool-updates-body {
3211
+ min-height: 0; overflow-y: auto; padding-right: 2px;
3212
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
3213
+ }
3214
+ .tool-updates-body::-webkit-scrollbar { width: 7px; }
3215
+ .tool-updates-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
3216
+ .tool-updates-body::-webkit-scrollbar-track { background: transparent; }
3217
+ .tool-updates-summary { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 12px; line-height: 1.45; }
3218
+ .tool-updates-urgent { margin-bottom: 14px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--err) 45%, transparent); border-left: 3px solid var(--err); border-radius: 6px; background: color-mix(in srgb, var(--err) 8%, transparent); font-size: 12px; line-height: 1.45; }
3219
+ .tool-updates-urgent-head { color: var(--err); font-weight: 600; margin-bottom: 4px; }
3220
+ .tool-updates-urgent-text { color: var(--text); }
3221
+ .tool-updates-urgent-note { color: var(--text-muted); margin-top: 4px; }
3222
+ .tool-updates-section { margin-top: 14px; }
3223
+ .tool-updates-section:first-child { margin-top: 0; }
3224
+ .tool-updates-section-head { margin-bottom: 6px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
3225
+ .tool-updates-section-head:focus { outline: none; }
3226
+ .tool-updates-card { padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
3227
+ .tool-updates-card + .tool-updates-card { margin-top: 6px; }
3228
+ .tool-updates-card-head { display: flex; align-items: baseline; gap: 8px; }
3229
+ .tool-updates-card-name { color: var(--text); font-size: 12.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
3230
+ .tool-updates-waiting { margin-left: auto; color: var(--text-dim); font-size: 10.5px; white-space: nowrap; }
3231
+ .tool-updates-change-line { color: var(--text); font: 11.5px/1.4 var(--mono); }
3232
+ .tool-updates-effect { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
3233
+ .tool-updates-effect::before { content: "●"; display: inline-block; margin-right: 6px; font-size: 8px; vertical-align: 1px; color: var(--ok); }
3234
+ .tool-updates-effect[data-effect="write"]::before { content: "▲"; color: var(--warn); }
3235
+ .tool-updates-more summary { cursor: pointer; color: var(--text-muted); font-size: 11px; list-style: none; width: fit-content; }
3236
+ .tool-updates-more summary::-webkit-details-marker { display: none; }
3237
+ .tool-updates-more summary::before { content: "›"; display: inline-block; width: 10px; transition: transform 0.12s ease; }
3238
+ .tool-updates-more[open] summary::before { transform: rotate(90deg); }
3239
+ .tool-updates-more summary:hover { color: var(--text); }
3240
+ .tool-updates-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
3241
+ .tool-updates-more-line { color: var(--text-muted); font-size: 11px; line-height: 1.45; margin: 3px 0 0 10px; }
3242
+ .tool-updates-needs { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border); }
3243
+ .tool-updates-needs:last-child { border-bottom: 0; }
3244
+ .tool-updates-needs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
3245
+ .tool-updates-needs-name { color: var(--text); font-size: 12px; font-weight: 600; }
3246
+ .tool-updates-needs-sentence { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
3247
+ .tool-updates-open { flex: none; font-size: 11px; padding: 3px 9px; background: transparent; }
3248
+ .tool-updates-result { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
3249
+ .tool-updates-result + .tool-updates-result { margin-top: 6px; }
3250
+ .tool-updates-result[data-outcome="review-again"],
3251
+ .tool-updates-result[data-outcome="not-moved"],
3252
+ .tool-updates-result[data-outcome="moved-needs-you"] { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
3253
+ .tool-updates-result-mark { flex: none; width: 14px; text-align: center; font-weight: 700; color: var(--warn); }
3254
+ .tool-updates-result[data-outcome="moved"] .tool-updates-result-mark { color: var(--ok); }
3255
+ .tool-updates-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
3256
+ .tool-updates-result-name { color: var(--text); font-size: 12px; font-weight: 600; }
3257
+ .tool-updates-result-sentence { color: var(--text); font-size: 11.5px; line-height: 1.4; }
3258
+ .tool-updates-result-label { color: var(--text-dim); font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
3259
+ .tool-updates-live { min-height: 0; margin-top: 10px; color: var(--text); font-size: 12px; line-height: 1.45; }
3260
+ .tool-updates-live:empty { margin-top: 0; }
3261
+ #tool-updates-modal[aria-busy="true"] .tool-updates-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3262
+ @media (prefers-reduced-motion: reduce) {
3263
+ #tool-updates-modal[aria-busy="true"] .tool-updates-live::before { animation: none; }
3264
+ }
3265
+ .tool-updates-foot { flex: none; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
3266
+ .tool-updates-foot:empty { margin-top: 0; }
3267
+ .tool-updates-downloads { color: var(--text-dim); font-size: 10.5px; line-height: 1.4; }
3268
+ .tool-updates-note { color: var(--text-muted); font-size: 11px; line-height: 1.5; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border); }
3269
+ #tool-updates-modal .modal-actions { flex: none; }
3270
+
3180
3271
  /* Import-failed modal (#314). The remedy command is selectable on its own (user-select:all, the
3181
3272
  .dc-code idiom) AND has a copy button, so either habit works. The raw-stderr disclosure reuses
3182
3273
  .fm-note verbatim for its themed scrollbar rather than restating that recipe a fourth time, and
@@ -3873,7 +3964,7 @@
3873
3964
  align-items: center;
3874
3965
  gap: 10px;
3875
3966
  }
3876
- .toast-msg { flex: 1; min-width: 0; }
3967
+ .toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* a setup remedy can name a long folder path */
3877
3968
  .toast-close {
3878
3969
  appearance: none; border: none; background: transparent; color: var(--text-dim);
3879
3970
  cursor: pointer; font-size: 15px; line-height: 1; padding: 0; flex-shrink: 0;
@@ -4118,6 +4209,9 @@
4118
4209
  red FILL (--err-bg): on dark it is red-200, pale against this token's red-400 (on light the two
4119
4210
  happen to coincide). */
4120
4211
  --err-text: hsl(0 90.6% 70.8%);
4212
+ /* Warning INK (small text), as --err-text is for errors: --warn is tuned for icons and edges. On dark the
4213
+ amber already reads (6.9:1); the light theme needs the darker one (routine-warning-contrast.test.ts). */
4214
+ --warn-text: hsl(38 92% 50%);
4121
4215
  --info: hsl(217.2 91.2% 59.8%);
4122
4216
  }
4123
4217
 
@@ -4142,6 +4236,7 @@
4142
4236
  --warn: hsl(38 92% 50%);
4143
4237
  --err: hsl(0 84.2% 60.2%); /* floless-web --destructive */
4144
4238
  --err-text: hsl(0 73.7% 41.8%); /* Tailwind red-700 — see --err-text above (#1864) */
4239
+ --warn-text: hsl(26 90.5% 37.1%); /* Tailwind amber-700 — see --warn-text above */
4145
4240
  --info: hsl(221.2 83.2% 53.3%);
4146
4241
  }
4147
4242
 
@@ -4335,6 +4430,108 @@ body {
4335
4430
  .notes-strip.collapsed .notes-dismiss { display: none; }
4336
4431
  .notes-strip.collapsed .notes-title::after { content: " — show"; color: var(--text-dim); font-weight: 400; }
4337
4432
 
4433
+ /* #1998 — approval strip over the canvas. Two costumes, both from the existing families:
4434
+ "Needs you" borrows .notes-strip's warn ladder (a decision is waiting), "Approval carried over"
4435
+ borrows .kb-informed's neutral provenance look (quiet metadata, never a warning). No new colours. */
4436
+ .approval-strip {
4437
+ margin: 8px 12px 0;
4438
+ padding: 8px 12px;
4439
+ border-radius: 6px;
4440
+ font-size: 12px;
4441
+ line-height: 1.5;
4442
+ color: var(--text);
4443
+ }
4444
+ .approval-strip[hidden] { display: none; }
4445
+ .approval-needs-you {
4446
+ border: 1px solid color-mix(in srgb, var(--warn) 38%, transparent);
4447
+ background: color-mix(in srgb, var(--warn) 9%, transparent);
4448
+ }
4449
+ .approval-needs-you .approval-head { color: var(--warn); font-weight: 600; margin-bottom: 2px; }
4450
+ .approval-rows { list-style: none; margin: 0; padding: 0; }
4451
+ .approval-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
4452
+ .approval-row + .approval-row { border-top: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
4453
+ .approval-row-text { min-width: 0; flex: 1 1 320px; overflow-wrap: anywhere; }
4454
+ .approval-row-note { color: var(--text-dim); margin-top: 2px; }
4455
+ .approval-row-error { color: var(--err); margin-top: 2px; }
4456
+ .approval-row-error:empty { display: none; }
4457
+ .approval-row-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
4458
+ .approval-row-actions button { white-space: nowrap; padding: 5px 12px; }
4459
+ .approval-row-actions button.primary { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
4460
+ .approval-row-actions button.primary:hover { background: var(--accent-bright); box-shadow: 0 0 14px var(--accent-glow); }
4461
+ .approval-row-actions button:disabled { opacity: 0.55; cursor: default; }
4462
+ .approval-row-actions button.primary:disabled:hover { background: var(--accent); box-shadow: none; }
4463
+
4464
+ .approval-carried {
4465
+ border: 1px solid var(--border-strong);
4466
+ background: var(--surface-2);
4467
+ color: var(--text-muted);
4468
+ padding: 6px 12px;
4469
+ }
4470
+ .approval-details > summary {
4471
+ cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
4472
+ border-radius: 4px;
4473
+ }
4474
+ .approval-details > summary::-webkit-details-marker { display: none; }
4475
+ .approval-details > summary::before {
4476
+ content: "▸"; color: var(--text-dim); font-size: 10px; transition: transform 0.15s; display: inline-block;
4477
+ }
4478
+ .approval-details[open] > summary::before { transform: rotate(90deg); }
4479
+ .approval-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4480
+ .approval-carried-label { color: var(--text); font-weight: 600; }
4481
+ .approval-carried-sep { color: var(--text-dim); }
4482
+ .approval-carried-body { margin-top: 6px; color: var(--text-muted); }
4483
+ .approval-carried-body p { margin: 0 0 6px; }
4484
+ .approval-link { padding: 6px 0 2px; border-top: 1px solid var(--border); }
4485
+ .approval-link-head { color: var(--text); }
4486
+ .approval-link-label-head {
4487
+ font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-top: 4px;
4488
+ }
4489
+ /* AWARE's own words, verbatim and selectable. Long labels wrap; a very long one scrolls in a themed box. */
4490
+ .approval-link-label {
4491
+ margin: 3px 0 0; padding: 6px 9px; border-left: 2px solid var(--border-strong);
4492
+ background: var(--surface); color: var(--text-muted); font-family: var(--mono); font-size: 11px;
4493
+ line-height: 1.5; overflow-wrap: anywhere; user-select: text; max-height: 160px; overflow: auto;
4494
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
4495
+ }
4496
+ .approval-link-label::-webkit-scrollbar { width: 8px; height: 8px; }
4497
+ .approval-link-label::-webkit-scrollbar-track { background: transparent; }
4498
+ .approval-link-label::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
4499
+
4500
+ /* #1998 — the carry-forward policy dialog (first approval, and ≡ → Automatic tool updates…). */
4501
+ .policy-modal { width: 540px; }
4502
+ .policy-modal .modal-title:focus { outline: none; }
4503
+ .policy-modal .modal-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4504
+ .policy-body {
4505
+ font-size: 12.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px;
4506
+ max-height: 60vh; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
4507
+ }
4508
+ .policy-body::-webkit-scrollbar { width: 8px; }
4509
+ .policy-body::-webkit-scrollbar-track { background: transparent; }
4510
+ .policy-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
4511
+ .policy-body p { margin: 0 0 8px; }
4512
+ .policy-statement ul { margin: 0 0 8px; padding-left: 18px; color: var(--text); }
4513
+ .policy-statement li { margin: 3px 0; }
4514
+ .policy-dim { color: var(--text-dim); }
4515
+ .policy-status { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text); }
4516
+ .policy-badge {
4517
+ font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
4518
+ padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted);
4519
+ }
4520
+ .policy-badge.on { color: var(--accent); border-color: var(--accent); }
4521
+ .policy-record, .policy-advanced { margin: 8px 0; }
4522
+ .policy-record > summary, .policy-advanced > summary {
4523
+ cursor: pointer; color: var(--text); font-weight: 600; font-size: 12px; border-radius: 4px; padding: 0;
4524
+ background: none; border: none;
4525
+ }
4526
+ .policy-record > summary:focus-visible, .policy-advanced > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
4527
+ .policy-advanced p { margin: 6px 0 0; }
4528
+ .policy-record .approval-link-label { background: var(--surface-2); }
4529
+ .policy-error { color: var(--err); }
4530
+ .policy-error:empty { display: none; }
4531
+ .policy-modal .modal-actions { align-items: center; }
4532
+ .policy-later { margin-right: auto; font-size: 11px; }
4533
+ .policy-modal .modal-actions button.btn.primary { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
4534
+
4338
4535
  /* Inspect "Tweak" button — opens the reverse-channel request to the host AI. */
4339
4536
  .tweak-btn {
4340
4537
  font-size: 11px;
@@ -5501,7 +5698,7 @@ body.mode-workspaces #menu .menu-item[data-action="graft"],
5501
5698
  body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5502
5699
  .app.mode-workspaces .topology, .app.mode-workspaces .canvas-toolbar,
5503
5700
  .app.mode-workspaces .hint, .app.mode-workspaces .fav-bar, .app.mode-workspaces .dashboard,
5504
- .app.mode-workspaces .notes-strip, .app.mode-workspaces .kb-informed, .app.mode-workspaces .find-overlay,
5701
+ .app.mode-workspaces .notes-strip, .app.mode-workspaces .approval-strip, .app.mode-workspaces .kb-informed, .app.mode-workspaces .find-overlay,
5505
5702
  .app.mode-workspaces #canvas-drop-target, .app.mode-workspaces #wf-templates-stats,
5506
5703
  /* the ws surfaces carry their own headings — hide the canvas's "Canvas · transparency layer" label */
5507
5704
  .app.mode-workspaces .canvas > .panel-label { display:none !important; }
@@ -5515,20 +5712,47 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5515
5712
  /* #1890: the Workflows landing — the Workflows tab's home, sharing the Workspaces landing's cards. While it shows, the
5516
5713
  loaded workflow's canvas and its header controls step aside; it never shows in Workspaces mode. */
5517
5714
  .wf-landing[hidden], body.mode-workspaces .wf-landing { display:none !important; }
5518
- body.wf-landing-open:not(.mode-workspaces) .topology, body.wf-landing-open:not(.mode-workspaces) .canvas-toolbar,
5519
- body.wf-landing-open:not(.mode-workspaces) .hint, body.wf-landing-open:not(.mode-workspaces) .fav-bar,
5520
- body.wf-landing-open:not(.mode-workspaces) .dashboard, body.wf-landing-open:not(.mode-workspaces) .notes-strip,
5521
- body.wf-landing-open:not(.mode-workspaces) .kb-informed, body.wf-landing-open:not(.mode-workspaces) #canvas-drop-target,
5522
- body.wf-landing-open:not(.mode-workspaces) .canvas > .panel-label,
5523
- body.wf-landing-open:not(.mode-workspaces) #compile-btn, body.wf-landing-open:not(.mode-workspaces) #sim-btn,
5524
- body.wf-landing-open:not(.mode-workspaces) #run-btn, body.wf-landing-open:not(.mode-workspaces) #restore-btn,
5525
- body.wf-landing-open:not(.mode-workspaces) #customize-btn, body.wf-landing-open:not(.mode-workspaces) #guide-beacon,
5526
- body.wf-landing-open:not(.mode-workspaces) #run-state { display:none !important; }
5527
- body.wf-landing-open:not(.mode-workspaces) .app { --right-width:0px !important; }
5528
- body.wf-landing-open:not(.mode-workspaces) .inspect { display:none; }
5529
- body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-action:auto; }
5715
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .topology, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas-toolbar,
5716
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .hint, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .fav-bar,
5717
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .dashboard, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .notes-strip,
5718
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .kb-informed, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .approval-strip, :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #canvas-drop-target,
5719
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas > .panel-label,
5720
+ :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,
5721
+ :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,
5722
+ :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,
5723
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) #run-state { display:none !important; }
5724
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .app { --right-width:0px !important; }
5725
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .inspect { display:none; }
5726
+ :is(body.wf-landing-open, body.wf-draft-open):not(.mode-workspaces) .canvas { cursor:default; touch-action:auto; }
5727
+ /* #1890 PR 3b-0: a draft workflow's view — the landing's chrome, one centred panel, no canvas, Run or Inspect. */
5728
+ .wf-draft[hidden], body.mode-workspaces .wf-draft { display:none !important; }
5729
+ .wf-draft { display:flex; align-items:center; justify-content:center; }
5730
+ .wf-draft-panel { max-width:420px; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:24px; }
5731
+ .wf-draft-title { font-size:17px; font-weight:650; color:var(--text); }
5732
+ .wf-draft-title:focus { outline:none; }
5733
+ .wf-draft-title:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
5734
+ .wf-draft-where { color:var(--text-muted); font-size:12px; display:flex; align-items:center; gap:6px; }
5735
+ .wf-draft-where .ws-kind.wf-kind { position:static; }
5736
+ .wf-draft-body { color:var(--text-dim); font-size:12.5px; line-height:1.55; margin:0; }
5737
+ .wf-draft-actions { display:flex; gap:8px; justify-content:center; margin-top:6px; }
5738
+ .wf-draft-actions button { padding:7px 16px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface-2); color:var(--text); cursor:pointer; }
5739
+ .wf-draft-actions button:hover { border-color:var(--accent-dim); }
5740
+ .wf-draft-actions button.primary { background:var(--accent); color:white; border-color:var(--accent); font-weight:600; }
5741
+ .wf-draft-actions button.primary:hover { background:var(--accent-bright); box-shadow:0 0 14px var(--accent-glow); }
5742
+ .wf-draft-actions button[aria-disabled="true"] { opacity:.6; cursor:progress; }
5743
+ .wf-draft-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
5744
+ .wf-draft-failure { color:var(--text); font-size:12.5px; line-height:1.55; padding:10px 12px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface-2); }
5745
+ .wf-draft-exit { margin-top:10px; }
5746
+ .wf-draft-exit .wf-draft-archive { background:transparent; color:var(--text-dim); }
5747
+ .wf-draft-exit .wf-draft-archive:hover { color:var(--text); }
5748
+ .wf-draft-failure:focus { outline:none; }
5749
+ /* The Draft chip is a state, not a warning: neutral, not the accent. */
5750
+ .ws-card .ws-kind.wf-kind.is-draft, .wf-draft-where .ws-kind.is-draft { color:var(--text-muted); border-color:var(--border-strong); }
5530
5751
  .ws-card.wf-card .ws-body { display:block; }
5531
5752
  .ws-card.wf-card .ws-kind.wf-kind { position:static; display:inline-block; margin-bottom:6px; }
5753
+ /* "Scheduled" is a status beside the origin chip, so it recedes: same chip, neutral ink. Not --ok, which the Routines
5754
+ window uses for "last run succeeded", something this card cannot know. */
5755
+ .ws-card.wf-card .ws-kind.wf-kind.wf-scheduled { margin-left:6px; color:var(--text-muted); border-color:var(--border-strong); }
5532
5756
  .wf-card .wf-card-nodes { font-family:var(--mono); font-size:10px; color:var(--text-dim); }
5533
5757
  .wf-card:focus-visible, .wf-create:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
5534
5758
  .wf-group-label { margin:16px 0 8px; color:var(--text-dim); font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
@@ -5587,6 +5811,13 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5587
5811
  .conn-receipt-host:empty, .conn-confirm-host:empty, .conn-said:empty { display:none; }
5588
5812
  .conn-receipt, .conn-receipt-host, .conn-confirm-host { display:grid; gap:5px; margin-top:7px; }
5589
5813
  .conn-confirm { grid-template-columns:minmax(0,1fr); }
5814
+ /* #1986: a tool with no check whose newer version may add one — an offer to act on, so amber, not the failure tone. */
5815
+ .int-account.conn-update-offer { grid-template-columns:minmax(0,1fr); }
5816
+ .int-account.conn-update-offer.is-chat-warning { border-color:color-mix(in srgb, var(--warn) 35%, var(--border)); }
5817
+ .conn-update-offer .conn-confirm-actions { align-items:center; }
5818
+ .conn-update-offer .lib-update:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
5819
+ /* Opened from an offer inside another dialog (Discover, Integrations): above it, below confirmations (110). */
5820
+ #lib-modal.lib-front { z-index:105; }
5590
5821
  .conn-confirm-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:4px; }
5591
5822
  .conn-code { font-family:var(--mono); font-size:10px; color:var(--text); background:var(--surface-3); border:1px solid var(--border); border-radius:3px; padding:0 4px; overflow-wrap:anywhere; }
5592
5823
  .conn-int:empty { display:none; }
@@ -5598,6 +5829,22 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5598
5829
  .conn-choice-option input[type="radio"] { margin-top:1px; }
5599
5830
  .conn-choice-text { display:grid; gap:1px; min-width:0; }
5600
5831
  .conn-choice-text .conn-code { justify-self:start; }
5832
+ /* #1900: AI Chat's connection cards reuse the suggestion-card shell (chat.css) and the receipt rows above. Existing tokens only. */
5833
+ .ai-chat-connection-card .ai-chat-connection-state { color:var(--text); }
5834
+ .ai-chat-connection-card .ai-chat-connection-command { display:inline-block; margin-top:5px; padding:2px 6px; font-size:10.5px; }
5835
+ .ai-chat-connection-card .ai-chat-connection-error { color:var(--err-text); }
5836
+ .ai-chat-connection-card .conn-receipt { margin-top:8px; }
5837
+ .ai-chat-connection-card .conn-receipt-host .conn-receipt { margin-top:0; }
5838
+ .ai-chat-connection-card .conn-confirm-host .int-action:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
5839
+ .ai-chat-connection-card.is-dismissed { border-left-color:var(--border-strong); padding:6px 10px; }
5840
+ .ai-chat-connection-collapsed { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; color:var(--text-muted); font-size:10.5px; line-height:14px; }
5841
+ .ai-chat-connection-collapsed button { min-height:24px; padding:3px 8px; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text-muted); font-size:10px; font-weight:600; cursor:pointer; }
5842
+ .ai-chat-connection-collapsed button:hover { color:var(--text); background:var(--surface-3); }
5843
+ .ai-chat-connection-collapsed button:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
5844
+ .ai-chat-connection-collapsed button:disabled { opacity:.55; cursor:default; }
5845
+ .ai-chat-filter-actions button:disabled { opacity:.55; cursor:default; }
5846
+ .ai-chat-approval .ai-chat-connection-badge { display:inline-block; margin-left:4px; padding:0 6px; font-size:9px; font-weight:600; line-height:15px; vertical-align:1px; }
5847
+ .ai-chat-approval .conn-code { font-size:10px; }
5601
5848
  .graft-check-picker { display:grid; gap:8px; margin-top:8px; max-height:260px; overflow:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
5602
5849
  .graft-success-actions { display:grid; gap:6px; margin-top:12px; }
5603
5850
  #lib-discover-local { margin-right:0 !important; }
@@ -5611,9 +5858,11 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5611
5858
  Same pair every other scroll surface here already sets (.ws-archived-list, .ws-history). */
5612
5859
  .ws-landing { flex:1; min-height:0; overflow-y:auto; padding:6px 20px 24px;
5613
5860
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
5614
- .ws-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
5615
- .ws-head-text { min-width:0; }
5616
- .ws-head-actions { display:flex; align-items:center; gap:8px; flex:none; }
5861
+ /* Wraps: the landing narrows with the AI Chat pane, not only the viewport, so below ~240px of heading text the
5862
+ actions (search, folder, import) drop under it instead of crushing the sentence into a sliver. */
5863
+ .ws-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:0 12px; }
5864
+ .ws-head-text { min-width:0; flex:1 1 240px; }
5865
+ .ws-head-actions { display:flex; align-items:center; gap:8px; flex:none; margin-bottom:14px; }
5617
5866
  .ws-head h2 { font-size:17px; font-weight:650; letter-spacing:.01em; }
5618
5867
  .ws-head .ws-sub { color:var(--text-muted); font-size:12px; margin:2px 0 14px; }
5619
5868
  /* Import project — a secondary/ghost utility action beside the heading (a restore, not another
@@ -5625,9 +5874,27 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5625
5874
  .ws-folder-btn.is-unavailable { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 55%, var(--border-strong)); }
5626
5875
  .ws-root-unavailable-path { display:block; margin-top:6px; color:var(--text-dim); font-family:var(--mono);
5627
5876
  font-size:10px; overflow-wrap:anywhere; }
5877
+ /* Landing search (Workspaces and Workflows) — the shadcn input: same height, radius and focus ring as
5878
+ the ghost buttons beside it, with a card-surface fill so it reads as a field, not another button.
5879
+ The native clear × is redrawn in a theme token (Chromium's own is near-black on the dark theme);
5880
+ two crossed gradients, not an icon file, so nothing outside the stylesheet is loaded. */
5881
+ .ws-landing-search { width:200px; appearance:none; background:var(--surface); color:var(--text);
5882
+ border:1px solid var(--border-strong); border-radius:6px; padding:6px 10px;
5883
+ font-family:var(--ui); font-size:12px; line-height:normal; outline:none; }
5884
+ .ws-landing-search::placeholder { color:var(--text-muted); opacity:1; }
5885
+ .ws-landing-search:hover { border-color:var(--accent-dim); }
5886
+ .ws-landing-search:focus-visible { border-color:var(--accent); outline:2px solid var(--accent); outline-offset:2px; }
5887
+ .ws-landing-search::-webkit-search-decoration { -webkit-appearance:none; appearance:none; }
5888
+ .ws-landing-search::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none;
5889
+ width:10px; height:10px; margin-left:6px; cursor:pointer; color:var(--text-muted);
5890
+ background:
5891
+ linear-gradient(45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
5892
+ linear-gradient(-45deg, transparent calc(50% - .75px), currentColor calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }
5893
+ .ws-landing-search::-webkit-search-cancel-button:hover { color:var(--text); }
5628
5894
  @media (max-width:760px) {
5629
5895
  .ws-head { align-items:stretch; }
5630
5896
  .ws-head-actions { flex-direction:column; align-items:stretch; }
5897
+ .ws-landing-search { width:100%; }
5631
5898
  }
5632
5899
  /* ONE track definition for both landing grids, so a create card and the project cards below it sit in
5633
5900
  the same columns. They had two: create was `auto-fit minmax(220px,260px)` (capped) while projects
@@ -5767,6 +6034,9 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5767
6034
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
5768
6035
  font-family:var(--mono); font-size:10px; color:var(--text-dim);
5769
6036
  }
6037
+ .ws-card .ws-meta.ws-unverified { color:var(--warn); line-height:1.35; white-space:normal; overflow:visible; text-overflow:clip; }
6038
+ /* The light --warn amber is ~2:1 on a white card; a darker amber of the same family keeps the label readable. */
6039
+ [data-theme="light"] .ws-card .ws-meta.ws-unverified { color:#b45309; }
5770
6040
  .ws-card .ws-kebab { background:transparent; border:1px solid transparent; color:var(--text-dim);
5771
6041
  padding:2px 7px; border-radius:4px; font-size:14px; line-height:1; flex:none; }
5772
6042
  .ws-card .ws-kebab:hover { border-color:var(--border-strong); color:var(--text); }
@@ -5811,7 +6081,9 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5811
6081
  while a file hovers (same intent as the editor's .canvas-drop-target.active). */
5812
6082
  .ws-seed-drop.drag-over { background:var(--accent-soft); border-color:var(--accent); border-style:solid; }
5813
6083
  .ws-seed .ws-seed-headline { font-size:12.5px; font-weight:600; color:var(--text); line-height:1.35; }
5814
- .ws-seed .ws-seed-sub { font-size:11px; color:var(--text-dim); line-height:1.4; max-width:220px; }
6084
+ /* overflow-wrap:anywhere so a setup remedy naming a long folder path (no break at "\") wraps inside the
6085
+ column instead of overflowing it; `anywhere`, unlike `break-word`, also shrinks the min-content width. */
6086
+ .ws-seed .ws-seed-sub { font-size:11px; color:var(--text-dim); line-height:1.4; max-width:220px; overflow-wrap:anywhere; }
5815
6087
  .ws-seed .ws-seed-capability { font-size:11px; font-weight:600; color:var(--text-muted); line-height:1.35; max-width:220px; }
5816
6088
  .ws-seed .ws-seed-readonly { display:inline-flex; align-items:center; min-height:20px; padding:0 7px;
5817
6089
  border:1px solid var(--border-strong); border-radius:999px; background:var(--panel); color:var(--text-dim);
@@ -5842,9 +6114,14 @@ body.wf-landing-open:not(.mode-workspaces) .canvas { cursor:default; touch-actio
5842
6114
  font-size:12.5px; color:var(--text-muted); line-height:1.55; max-width:640px; }
5843
6115
  .ws-empty-note.ws-load-error b { color:var(--text); font-weight:600; }
5844
6116
  /* Inline action, styled like .hist-empty's — the established look for one CTA inside a banner. */
5845
- .ws-empty-note.ws-load-error button { background:none; border:none; padding:0; font:inherit;
6117
+ .ws-empty-note.ws-load-error button, .ws-search-empty button { background:none; border:none; padding:0; font:inherit;
5846
6118
  color:var(--accent); cursor:pointer; }
5847
- .ws-empty-note.ws-load-error button:hover { color:var(--accent-bright); text-decoration:underline; }
6119
+ .ws-empty-note.ws-load-error button:hover, .ws-search-empty button:hover { color:var(--accent-bright); text-decoration:underline; }
6120
+ /* The landing search's no-match message (a live region, so it is always in the page): muted rather than
6121
+ dim, because it is the answer to what was just typed; collapsed while empty. */
6122
+ .ws-empty-note.ws-search-empty { color:var(--text-muted); overflow-wrap:anywhere; }
6123
+ .ws-empty-note.ws-search-empty:empty { margin:0; }
6124
+ .ws-search-empty button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
5848
6125
 
5849
6126
  /* open project */
5850
6127
  .ws-project { flex:1; min-height:0; display:flex; flex-direction:column; }
@@ -6263,6 +6540,9 @@ table.hist tr.current td { background:var(--accent-soft); }
6263
6540
  .approval-review-footer { flex:none; position:sticky; bottom:0; padding-top:10px; background:var(--surface-2); border-top:1px solid var(--border); }
6264
6541
  .approval-review-footer .rev-counts { margin:0 0 8px; }
6265
6542
  .approval-review-footer .modal-actions { margin-top:0; flex-wrap:wrap; }
6543
+ .approval-review-footer .modal-actions button:not(.primary) { background:var(--surface-3); border-color:var(--text-dim); }
6544
+ .approval-review-footer .modal-actions button:not(.primary):hover { background:color-mix(in srgb, var(--surface-3) 85%, var(--text-dim)); border-color:var(--text-muted); }
6545
+ .approval-review-footer .modal-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
6266
6546
  .approval-empty, .approval-loading { padding:16px; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); text-align:center; }
6267
6547
  .approval-notice { margin:0 0 10px; padding:11px 12px; border:1px solid var(--border-strong); border-radius:8px;
6268
6548
  background:var(--surface-2); color:var(--text-muted); font-size:12px; line-height:1.45; }
@@ -6271,7 +6551,21 @@ table.hist tr.current td { background:var(--accent-soft); }
6271
6551
  .approval-notice-error b { color:var(--err); }
6272
6552
  .approval-notice-success { border-color:var(--ok); }
6273
6553
  .approval-notice-success b { color:var(--ok); }
6554
+ /* #1840: open Tekla import findings. Amber lives on the border only (as .rev-changed does), so the
6555
+ text keeps the theme's own contrast in both dark and light. */
6556
+ .approval-notice-warn { border-color:var(--warn); }
6557
+ .approval-findings-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
6558
+ .approval-findings p { margin:6px 0 8px; }
6559
+ .approval-findings-list { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:3px 16px; margin:0; padding:0; list-style:none; max-width:420px; }
6560
+ .approval-findings-list li { display:contents; }
6561
+ .approval-findings-list li > span:first-child { color:var(--text-muted); }
6562
+ .approval-findings-count { color:var(--text); font-family:var(--mono); text-align:right; }
6563
+ .approval-findings .btn-mini { flex:none; }
6564
+ .approval-findings .btn-mini:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
6565
+ .approval-findings .btn-mini:disabled { opacity:.55; cursor:default; }
6274
6566
  #ws-approve.approval-clean { background:transparent; color:var(--text-muted); border-color:var(--border-strong); box-shadow:none; }
6567
+ #ws-approve.approval-clean.approval-findings-accepted { border-color:color-mix(in srgb, var(--warn) 45%, var(--border)); }
6568
+ .hist .gate-badge.model.findings-accepted { border-color:color-mix(in srgb, var(--warn) 45%, var(--border)); }
6275
6569
  @media (max-width:620px) {
6276
6570
  .approval-decisions { grid-template-columns:1fr; }
6277
6571
  .approval-group-head { flex-direction:column; gap:5px; }
@@ -6917,3 +7211,144 @@ tr.hist-diff-row[hidden] { display:none; }
6917
7211
  .company-entry-actions { width:100%; justify-content:flex-end; }
6918
7212
  .company-knowledge-folder { align-items:flex-start; flex-direction:column; }
6919
7213
  }
7214
+
7215
+ /* ── #2007: Agents tab ───────────────────────────────────────────────────────────────────────────────────────────
7216
+ The third mode. Like Workspaces, it replaces the workflow canvas, its header controls and the Inspector. The ≡ menu
7217
+ keeps Tools (the AWARE library), which is app-wide. Every surface here reuses the landing cards and the existing
7218
+ tokens: no new colours or fonts. */
7219
+ html.mode-agents-boot .app { --right-width:0px !important; }
7220
+ html.mode-agents-boot .inspect, html.mode-agents-boot .pane-rail-right { display:none; }
7221
+ .app.mode-agents .controls > label,
7222
+ .app.mode-agents #wf-combo, .app.mode-agents #wf-update, .app.mode-agents #wf-forked,
7223
+ .app.mode-agents #run-state, .app.mode-agents #restore-btn, .app.mode-agents #customize-btn,
7224
+ .app.mode-agents #compile-btn, .app.mode-agents #sim-btn, .app.mode-agents #run-btn, .app.mode-agents #stop-run-btn,
7225
+ .app.mode-agents #ext-badge, .app.mode-agents #guide-beacon,
7226
+ body.mode-agents #menu .menu-item[data-action="view-switch"],
7227
+ body.mode-agents #menu .menu-item[data-action="find"],
7228
+ body.mode-agents #menu .menu-item[data-action="open"],
7229
+ body.mode-agents #menu .menu-item[data-action="save"],
7230
+ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7231
+ .app.mode-agents .topology, .app.mode-agents .canvas-toolbar, .app.mode-agents .hint, .app.mode-agents .fav-bar,
7232
+ .app.mode-agents .dashboard, .app.mode-agents .notes-strip, .app.mode-agents .kb-informed, .app.mode-agents .find-overlay,
7233
+ .app.mode-agents #canvas-drop-target, .app.mode-agents #wf-templates-stats, .app.mode-agents .canvas > .panel-label,
7234
+ .app.mode-agents #ws-landing, .app.mode-agents #ws-project, .app.mode-agents #wf-landing, .app.mode-agents #wf-draft { display:none !important; }
7235
+ .app.mode-agents { --right-width:0px !important; }
7236
+ .app.mode-agents .inspect, .app.mode-agents .pane-rail-right { display:none; }
7237
+ .app.mode-agents .canvas { cursor:default; touch-action:auto; }
7238
+ .ag-surface[hidden], .app:not(.mode-agents) .ag-surface { display:none !important; }
7239
+
7240
+ /* Segmented choice (radiogroup): the mode-switch look, for in-page choices. */
7241
+ .ag-seg { display:inline-flex; border:1px solid var(--border-strong); border-radius:6px; overflow:hidden; background:var(--surface-2); flex:none; }
7242
+ .ag-seg button { background:transparent; border:none; border-radius:0; color:var(--text-muted); font:inherit; font-size:12px;
7243
+ padding:6px 12px; cursor:pointer; transition:background .15s, color .15s; }
7244
+ .ag-seg button + button { border-left:1px solid var(--border-strong); }
7245
+ .ag-seg button:hover:not(:disabled) { color:var(--text); }
7246
+ .ag-seg button.on { background:var(--accent-soft); color:var(--accent-bright); }
7247
+ .ag-seg button:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
7248
+ .ag-seg button:disabled { cursor:default; opacity:.6; }
7249
+
7250
+ .ag-card.is-archived { opacity:.72; }
7251
+
7252
+ /* An agent's page: one scrolling column, the brief at the top and its runs below. */
7253
+ .ag-page { max-width:860px; padding-top:4px; }
7254
+ .ag-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; position:sticky; top:-6px; z-index:2;
7255
+ background:var(--bg); padding:8px 0 10px; border-bottom:1px solid var(--border); margin-bottom:6px; }
7256
+ .ag-back { background:none; border:none; color:var(--text-muted); font:inherit; font-size:12px; cursor:pointer; padding:4px 6px 4px 0; }
7257
+ .ag-back:hover { color:var(--text); }
7258
+ .ag-back:focus-visible, .ag-link:focus-visible, .ag-act:focus-visible, .ag-add:focus-visible, .ag-chip-x:focus-visible,
7259
+ .ag-head-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
7260
+ .ag-name { flex:1 1 220px; min-width:0; background:transparent; color:var(--text); border:1px solid transparent; border-radius:6px;
7261
+ padding:5px 8px; font-family:var(--ui); font-size:17px; font-weight:650; outline:none; }
7262
+ .ag-name:hover:not(:disabled) { border-color:var(--border-strong); }
7263
+ .ag-name:focus { border-color:var(--accent); background:var(--surface); }
7264
+ .ag-name::placeholder { color:var(--text-dim); font-weight:500; }
7265
+ .ag-dirty { font-size:11px; color:var(--warn); white-space:nowrap; }
7266
+ .ag-dirty[hidden] { display:none; }
7267
+ .ag-head-actions { display:flex; gap:8px; margin-left:auto; }
7268
+ .ag-head-actions button { background:var(--surface-2); color:var(--text); border:1px solid var(--border-strong); border-radius:6px;
7269
+ padding:6px 14px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
7270
+ .ag-head-actions button:hover:not(:disabled) { border-color:var(--accent-dim); }
7271
+ .ag-head-actions button.primary { background:var(--accent); border-color:var(--accent); color:white; font-weight:600; }
7272
+ .ag-head-actions button.primary:hover:not(:disabled) { background:var(--accent-bright); box-shadow:0 0 14px var(--accent-glow); }
7273
+ .ag-head-actions button:disabled { opacity:.5; cursor:default; }
7274
+ .ag-head-actions button.ag-quiet { background:transparent; color:var(--text-muted); }
7275
+ .ag-head-actions button.ag-quiet:hover { color:var(--text); }
7276
+
7277
+ .ag-banner { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:10px 0; padding:9px 12px; border-radius:6px;
7278
+ border:1px solid color-mix(in srgb, var(--warn) 45%, var(--border-strong)); background:color-mix(in srgb, var(--warn) 8%, transparent);
7279
+ color:var(--text); font-size:12.5px; line-height:1.5; }
7280
+ .ag-link { background:none; border:none; color:var(--accent-bright); font:inherit; font-size:12px; cursor:pointer; padding:0;
7281
+ text-decoration:underline; text-underline-offset:2px; }
7282
+ .ag-link:hover { color:var(--accent); }
7283
+
7284
+ .ag-section { padding:14px 0 6px; }
7285
+ .ag-label { display:block; font-size:12.5px; font-weight:600; color:var(--text); }
7286
+ .ag-help { margin:3px 0 8px; font-size:12px; line-height:1.5; color:var(--text-muted); }
7287
+ .ag-note { margin:10px 0 4px; padding-left:10px; border-left:2px solid var(--border-strong); font-size:12px; line-height:1.5; color:var(--text-muted); }
7288
+ .ag-instructions { display:block; width:100%; min-height:120px; resize:vertical; background:var(--surface); color:var(--text);
7289
+ border:1px solid var(--border-strong); border-radius:6px; padding:9px 11px; font-family:var(--ui); font-size:13px; line-height:1.55; outline:none;
7290
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7291
+ .ag-instructions::placeholder { color:var(--text-dim); }
7292
+ .ag-instructions:focus { border-color:var(--accent); }
7293
+ .ag-instructions:disabled { opacity:.7; }
7294
+ .ag-instructions::-webkit-scrollbar { width:8px; }
7295
+ .ag-instructions::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:8px; }
7296
+ .ag-instructions::-webkit-scrollbar-track { background:transparent; }
7297
+ .ag-count { min-height:16px; margin-top:4px; font-size:11px; color:var(--text-muted); text-align:right; font-family:var(--mono); }
7298
+
7299
+ .ag-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
7300
+ .ag-chip { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:4px 4px 4px 9px; border:1px solid var(--border-strong);
7301
+ border-radius:6px; background:var(--surface); font-size:12px; }
7302
+ .ag-chip-kind { font-size:9px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-dim); }
7303
+ .ag-chip-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
7304
+ .ag-chip.is-missing { border-color:color-mix(in srgb, var(--warn) 55%, var(--border-strong)); }
7305
+ .ag-chip-warn { font-size:11px; color:var(--warn); }
7306
+ .ag-chip-x { background:none; border:none; color:var(--text-dim); font-size:14px; line-height:1; padding:2px 6px; border-radius:4px; cursor:pointer; }
7307
+ .ag-chip-x:hover { color:var(--err-text); background:var(--surface-2); }
7308
+ .ag-empty { font-size:12px; color:var(--text-dim); }
7309
+ .ag-pad { padding:10px 8px; }
7310
+ .ag-picker { position:relative; display:inline-block; }
7311
+ .ag-add { background:none; border:1px dashed var(--border-strong); color:var(--text-muted); border-radius:6px; padding:5px 10px;
7312
+ font:inherit; font-size:12px; cursor:pointer; }
7313
+ .ag-add:hover { color:var(--text); border-color:var(--accent-dim); }
7314
+ .ag-popover { min-width:300px; z-index:20; }
7315
+
7316
+ .ag-switch-row { display:flex; align-items:flex-start; gap:10px; }
7317
+ .ag-switch-row .kb-toggle { margin-top:1px; }
7318
+ .ag-switch-row .kb-toggle:disabled { opacity:.6; cursor:default; }
7319
+
7320
+ .ag-runs { border-top:1px solid var(--border); margin-top:14px; }
7321
+ .ag-runs-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
7322
+ .ag-run { margin:10px 0 2px; border:1px solid var(--border); border-radius:8px; background:var(--surface); overflow:hidden; }
7323
+ .ag-run-meta { padding:7px 12px; font-size:11px; color:var(--text-muted); border-bottom:1px solid var(--border); font-family:var(--mono); }
7324
+ .ag-target { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:9px 12px;
7325
+ border-left:2px solid transparent; }
7326
+ .ag-target + .ag-target { border-top:1px solid var(--border); }
7327
+ .ag-target.is-selected { border-left-color:var(--accent); background:var(--surface-2); }
7328
+ .ag-target-info { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; min-width:0; flex:1 1 280px; }
7329
+ .ag-target-name { font-size:12.5px; color:var(--text); font-weight:550; }
7330
+ .ag-target-msg { flex-basis:100%; font-size:12px; line-height:1.45; color:var(--text-muted); }
7331
+ .ag-state { font-size:9.5px; text-transform:uppercase; letter-spacing:.08em; padding:2px 7px; border-radius:4px;
7332
+ border:1px solid var(--border-strong); color:var(--text-muted); white-space:nowrap; }
7333
+ .ag-state.tone-accent { color:var(--accent-bright); border-color:var(--accent-dim); }
7334
+ .ag-state.tone-ok { color:var(--ok); border-color:color-mix(in srgb, var(--ok) 45%, var(--border-strong)); }
7335
+ .ag-state.tone-warn { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 45%, var(--border-strong)); }
7336
+ .ag-state.tone-err { color:var(--err-text); border-color:color-mix(in srgb, var(--err) 45%, var(--border-strong)); }
7337
+ .ag-target-actions { display:flex; flex-wrap:wrap; gap:6px; }
7338
+ .ag-act { background:var(--surface-2); color:var(--text); border:1px solid var(--border-strong); border-radius:6px; padding:4px 10px;
7339
+ font:inherit; font-size:11.5px; cursor:pointer; white-space:nowrap; }
7340
+ .ag-act:hover { border-color:var(--accent-dim); }
7341
+ .ag-act.ag-quiet { background:transparent; color:var(--text-muted); }
7342
+ .ag-act.ag-quiet:hover { color:var(--text); }
7343
+ .ag-act[aria-pressed="true"] { border-color:var(--accent); color:var(--accent-bright); }
7344
+
7345
+ /* Run confirm sheet */
7346
+ .modal.ag-run-sheet { width:520px; max-height:min(86vh, 720px); overflow-y:auto; }
7347
+ .ag-run-list { margin:4px 0 8px 18px; font-size:12.5px; line-height:1.6; color:var(--text); }
7348
+ .ag-run-line { margin:6px 0; font-size:12px; line-height:1.5; color:var(--text-muted); }
7349
+ .ag-run-issue { margin:8px 0; font-size:12.5px; line-height:1.5; color:var(--warn); }
7350
+ .ag-run-skipped { margin:8px 0; padding:8px 10px; border-radius:6px; border:1px solid color-mix(in srgb, var(--warn) 40%, var(--border-strong));
7351
+ font-size:12px; line-height:1.5; color:var(--text-muted); }
7352
+ .ag-run-skipped p + p { margin-top:4px; }
7353
+ .ag-run-field { display:flex; align-items:center; gap:10px; margin:12px 0 4px; }
7354
+ .ag-run-label { font-size:12px; color:var(--text-muted); min-width:24px; }