@floless/app 0.156.0 → 0.157.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/cli-actions.mjs +21 -5
  2. package/dist/floless-server.cjs +70965 -43326
  3. package/dist/schemas/drawing-check.profile.v1.schema.json +15 -2
  4. package/dist/schemas/steel.model.v2.schema.json +25 -1
  5. package/dist/skills/floless-app-actions/SKILL.md +79 -17
  6. package/dist/skills/floless-app-knowledge/SKILL.md +21 -2
  7. package/dist/skills/floless-app-new-workflow/SKILL.md +23 -7
  8. package/dist/skills/floless-app-onboarding/SKILL.md +31 -1
  9. package/dist/skills/floless-app-report-issue/SKILL.md +3 -3
  10. package/dist/skills/floless-app-rfi/SKILL.md +40 -6
  11. package/dist/skills/floless-app-routines/SKILL.md +9 -2
  12. package/dist/skills/floless-app-steel-model/SKILL.md +1 -1
  13. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +4 -2
  14. package/dist/skills/floless-app-tweak-contract/SKILL.md +25 -5
  15. package/dist/skills/floless-app-workflows/SKILL.md +46 -10
  16. package/dist/skills/floless-app-workflows/references/agent-steps.md +119 -0
  17. package/dist/web/agent-steps.js +864 -47
  18. package/dist/web/agents.js +28 -8
  19. package/dist/web/app.css +478 -3
  20. package/dist/web/app.js +110 -11
  21. package/dist/web/aware-update-client.js +1 -0
  22. package/dist/web/aware.js +685 -170
  23. package/dist/web/chat-landing-scene.js +372 -0
  24. package/dist/web/chat.css +245 -1
  25. package/dist/web/chat.js +2466 -78
  26. package/dist/web/commands-drawing-check.js +17 -0
  27. package/dist/web/commands-shell.js +820 -3
  28. package/dist/web/commands-steel.js +6 -0
  29. package/dist/web/connections.js +1 -0
  30. package/dist/web/drawing-check-editor.html +33 -5
  31. package/dist/web/drawing-check-editor.js +538 -22
  32. package/dist/web/drawing-check-overlay.js +13 -0
  33. package/dist/web/flo-avatar.js +28 -3
  34. package/dist/web/guide.js +7 -2
  35. package/dist/web/index.html +119 -6
  36. package/dist/web/instructor.js +3 -3
  37. package/dist/web/model-view-query.js +12 -2
  38. package/dist/web/pages.js +865 -34
  39. package/dist/web/panels.js +5 -2
  40. package/dist/web/parser-setup-recovery.js +12 -4
  41. package/dist/web/project-access.js +549 -0
  42. package/dist/web/report-files.js +50 -0
  43. package/dist/web/startup-admission.js +132 -0
  44. package/dist/web/steel-3d-core.js +9 -0
  45. package/dist/web/steel-editor.html +642 -22
  46. package/dist/web/steel-model-v2-commands.js +63 -5
  47. package/dist/web/step-rename.js +287 -0
  48. package/dist/web/terminal-requests.js +59 -10
  49. package/dist/web/tool-updates.js +1 -0
  50. package/dist/web/workspace-root-management.js +39 -0
  51. package/dist/web/workspaces.js +1667 -63
  52. package/launch.mjs +9 -7
  53. package/package.json +3 -1
package/dist/web/chat.css CHANGED
@@ -583,6 +583,46 @@
583
583
  dashed muted box sets the tone. Inline so text-align centres it; the grid placement the shared
584
584
  class carries is inert outside the settings grid. */
585
585
  .ai-chat-empty-signin { display: inline-flex; margin-top: 10px; padding: 4px 10px; font-size: 11px; }
586
+ /* Flo building FloLess's three parts on the chat's start screens (web/chat-landing-scene.js), in the parts' own
587
+ colours (app.css --part-*: floless-web's role palette, ink on light). --scene-* draws and names; --scene-*-mark is
588
+ the underline, which stays bright in both themes. */
589
+ .chat-landing-scene {
590
+ --scene-ws: var(--part-ws); --scene-wf: var(--part-wf); --scene-ag: var(--part-ag);
591
+ --scene-ws-mark: var(--part-ws-mark); --scene-wf-mark: var(--part-wf-mark); --scene-ag-mark: var(--part-ag-mark);
592
+ --scene-flo: var(--accent); --scene-hat: var(--text); --scene-hat-line: var(--text);
593
+ --scene-ground: var(--border-strong); --scene-surface: var(--surface);
594
+ --scene-soft: color-mix(in srgb, var(--scene-ws-mark) 16%, transparent);
595
+ /* Capped so a wide panel keeps the three parts close enough to read as one build. */
596
+ max-width: 440px;
597
+ margin: -8px auto 12px;
598
+ pointer-events: none;
599
+ user-select: none;
600
+ }
601
+ [data-theme="light"] .chat-landing-scene { --scene-hat: var(--surface); --scene-hat-line: var(--accent); }
602
+ .chat-landing-scene canvas { display: block; width: 100%; }
603
+ /* The building site behind the card covers the whole conversation area. It sits in the scene inside the card, so
604
+ the feed is its positioned ancestor, and z-index -1 inside the feed's own stacking context paints it under the
605
+ card's content. Its pixels under the card are cleared by the script. */
606
+ .ai-chat-feed:has(.chat-landing-backdrop) { position: relative; isolation: isolate; }
607
+ .chat-landing-scene .chat-landing-backdrop { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
608
+ .chat-landing-scene { --scene-dot: var(--text-dim); }
609
+ .chat-landing-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
610
+ .chat-landing-part { display: grid; align-content: start; gap: 3px; min-width: 0; color: var(--text-muted); }
611
+ .chat-landing-part.is-ws { --part: var(--scene-ws); --part-mark: var(--scene-ws-mark); }
612
+ .chat-landing-part.is-wf { --part: var(--scene-wf); --part-mark: var(--scene-wf-mark); }
613
+ .chat-landing-part.is-ag { --part: var(--scene-ag); --part-mark: var(--scene-ag-mark); }
614
+ .chat-landing-part b { position: relative; justify-self: center; font: 600 10.5px/1.3 var(--ui); letter-spacing: 0.01em; transition: color var(--dur-slow) var(--ease); }
615
+ .chat-landing-part b::after {
616
+ content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 1px;
617
+ background: var(--part-mark); transform: scaleX(0); transition: transform var(--dur-slow) var(--ease);
618
+ }
619
+ .chat-landing-part.is-active b { color: var(--part); }
620
+ .chat-landing-part.is-active b::after { transform: scaleX(1); }
621
+ /* Notes wrap rather than truncate in a narrow panel; the three share one grid row, so they stay level. */
622
+ .chat-landing-part small { font-size: 10px; line-height: 1.3; color: var(--text-dim); text-wrap: balance; }
623
+ @media (prefers-reduced-motion: reduce) { .chat-landing-part b, .chat-landing-part b::after { transition: none; } }
624
+ /* The scene is the first thing to go when the conversation area is short: the card's action always wins. */
625
+ @container aiChatFeed (max-height: 340px) { .chat-landing-scene { display: none; } }
586
626
  .ai-chat-provider-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
587
627
  .ai-chat-provider-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; color: var(--text-dim); font: 9.5px/1.4 var(--mono); }
588
628
  .ai-chat-provider-accounts > span { min-width: 0; overflow-wrap: anywhere; }
@@ -778,6 +818,9 @@
778
818
  .ai-chat-request-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
779
819
  .ai-chat-request-actions button { min-height: 26px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; cursor: pointer; }
780
820
  .ai-chat-request-actions button:hover { color: var(--text); background: var(--surface-3); }
821
+ /* #2399: "Continue with tools" under an Instructor answer's latest reply: the request-actions row, with its lead line. */
822
+ .ai-chat-instructor-continue { align-items: center; }
823
+ .ai-chat-instructor-continue-note { color: var(--text-muted); font-size: 11px; margin-right: auto; }
781
824
  .ai-chat-request-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
782
825
 
783
826
  .ai-chat-filter-card {
@@ -937,7 +980,144 @@
937
980
  }
938
981
  .ai-chat-event strong { color: var(--text); font-weight: 500; }
939
982
  .ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err-text); }
940
- .ai-chat-event.knowledge { border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
983
+ /* #2439: connection readiness. A card of what FloLess measured, in words: a check outside its limit gets the warning
984
+ edge and says by how much; nothing is ever drawn as "ready" or ticked green, because nothing here certifies anything. */
985
+ .ai-chat-readiness-limits { margin: 0; color: var(--text-muted); font: 10.5px/1.4 var(--ui); }
986
+ .ai-chat-readiness-body { display: flex; flex-direction: column; gap: 8px; max-height: min(420px, 55vh); overflow: auto; padding-right: 2px;
987
+ scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface-2); }
988
+ .ai-chat-readiness-body::-webkit-scrollbar, .ai-chat-readiness-table::-webkit-scrollbar { width: 7px; height: 7px; }
989
+ .ai-chat-readiness-body::-webkit-scrollbar-track, .ai-chat-readiness-table::-webkit-scrollbar-track { background: transparent; }
990
+ .ai-chat-readiness-body::-webkit-scrollbar-thumb, .ai-chat-readiness-table::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
991
+ .ai-chat-readiness-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
992
+ .ai-chat-readiness-row { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
993
+ .ai-chat-readiness-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
994
+ .ai-chat-readiness-title strong { min-width: 0; color: var(--text); font: 600 11px/1.35 var(--ui); overflow-wrap: anywhere; }
995
+ .ai-chat-readiness-id { flex: none; color: var(--text-dim); font: 9px/1.3 var(--mono); }
996
+ .ai-chat-readiness-status { color: var(--text-muted); font: 10.5px/1.4 var(--ui); }
997
+ .ai-chat-readiness-table { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface); }
998
+ .ai-chat-readiness-table table { width: 100%; border-collapse: collapse; font: 10px/1.35 var(--ui); color: var(--text); }
999
+ .ai-chat-readiness-table th { padding: 3px 5px; border-bottom: 1px solid var(--border-strong); color: var(--text-muted); font: 9px/1.3 var(--mono); text-align: left; text-transform: uppercase; letter-spacing: .03em; }
1000
+ .ai-chat-readiness-table td { padding: 3px 5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
1001
+ .ai-chat-readiness-table td:first-child { white-space: normal; }
1002
+ .ai-chat-readiness-table tr.is-outside td:first-child { box-shadow: inset 2px 0 0 var(--warn); }
1003
+ .ai-chat-readiness-table tr.is-outside td:last-child { color: var(--warn-text); font-weight: 600; }
1004
+ .ai-chat-readiness-table tr.is-unmeasured td:last-child { color: var(--text-muted); font-style: italic; }
1005
+ .ai-chat-readiness-sub { color: var(--text-dim); font: 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
1006
+ .ai-chat-readiness-list ul { margin: 2px 0 0; padding-left: 16px; color: var(--text); font: 10.5px/1.4 var(--ui); }
1007
+ /* #2451: places on the drawings. Quiet rows, not chips: a mono sheet tag, the plain label, and a small outlined tag naming
1008
+ who drew the area. No colour carries meaning here — the blue outline in the viewer only marks the place. */
1009
+ .ai-chat-readiness-evidence ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 3px; }
1010
+ .ai-chat-readiness-card button.ai-chat-readiness-place { appearance: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; width: 100%; padding: 3px 6px;
1011
+ border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text); font: 10.5px/1.4 var(--ui); text-align: left; cursor: pointer; }
1012
+ .ai-chat-readiness-card button.ai-chat-readiness-place:hover { background: var(--surface-2); border-color: var(--border-strong); }
1013
+ .ai-chat-readiness-card button.ai-chat-readiness-place:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1014
+ .ai-chat-readiness-place-sheet { flex: none; color: var(--accent); font: 600 9.5px/1.4 var(--mono); }
1015
+ .ai-chat-readiness-place-label { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
1016
+ .ai-chat-readiness-place-origin { flex: none; padding: 0 4px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-muted); font: 8.5px/1.5 var(--mono); letter-spacing: .03em; }
1017
+ .ai-chat-readiness-place-gap { padding: 0 6px; color: var(--text-dim); font: 10px/1.4 var(--ui); }
1018
+ .ai-chat-evidence-views { display: flex; gap: 0; padding: 8px 12px 0; }
1019
+ .ai-chat-evidence-viewer .ai-chat-evidence-views button { border-radius: 0; }
1020
+ .ai-chat-evidence-viewer .ai-chat-evidence-views button:first-child { border-radius: 5px 0 0 5px; }
1021
+ .ai-chat-evidence-viewer .ai-chat-evidence-views button:last-child { border-radius: 0 5px 5px 0; border-left-width: 0; }
1022
+ .ai-chat-evidence-viewer .ai-chat-evidence-views button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
1023
+ .ai-chat-evidence-viewer .ai-chat-evidence-views button[aria-pressed="false"] { color: var(--text-muted); }
1024
+ /* The page is laid on paper in a frame shaped like the crop; the picture inside is positioned so only the crop shows. */
1025
+ .ai-chat-evidence-frame { position: relative; overflow: hidden; width: 100%; margin: 8px auto 0; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; }
1026
+ .ai-chat-evidence-frame:empty { min-height: 160px; }
1027
+ .ai-chat-evidence-viewer .ai-chat-evidence-frame img { position: absolute; max-width: none; height: auto; margin: 0; border: 0; border-radius: 0; }
1028
+ .ai-chat-readiness-review { margin: 0; color: var(--text-muted); font: 10.5px/1.4 var(--ui); }
1029
+ .ai-chat-readiness-actions { display: flex; flex-wrap: wrap; gap: 5px; }
1030
+ .ai-chat-readiness-actions button.ai-chat-source-action { appearance: none; min-height: 22px; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 5px;
1031
+ background: var(--surface-2); color: var(--text); font: 10px/1.3 var(--ui); cursor: pointer; }
1032
+ .ai-chat-readiness-actions button.ai-chat-source-action:hover { background: var(--surface-3); }
1033
+ .ai-chat-readiness-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1034
+ .ai-chat-readiness-foot { color: var(--text-muted); font: 10.5px/1.4 var(--ui); }
1035
+ /* #2449: a person's assumption on a check. Dashed is "assumed" across these cards (the inline Assumption tag, the unsourced
1036
+ claim): the tag sits beside a result it never changes, a holding assumption carries a dashed edge, and one that no
1037
+ longer applies keeps its words, readable, with the reason in text — never only a dimmer colour. No tick, no green. */
1038
+ .ai-chat-readiness-card .ai-chat-readiness-assumed { display: inline-block; margin-left: 4px; padding: 0 4px; vertical-align: .1em; border: 1px dashed var(--border-strong);
1039
+ border-radius: 3px; color: var(--text-dim); font: 8.5px/1.5 var(--mono); font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: .04em; cursor: help; }
1040
+ .ai-chat-readiness-card .ai-chat-readiness-assumed:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1041
+ /* #2450: the RFI already filed on a check. The same mono tag, with a SOLID edge: filed, where an assumption is dashed. */
1042
+ .ai-chat-readiness-card .ai-chat-readiness-rfi { display: inline-block; margin-left: 4px; padding: 0 4px; vertical-align: .1em; border: 1px solid var(--border-strong);
1043
+ border-radius: 3px; color: var(--text-dim); font: 8.5px/1.5 var(--mono); font-weight: 400; letter-spacing: .04em; }
1044
+ .ai-chat-readiness-asread { display: block; color: var(--text-dim); font: 10px/1.4 var(--ui); }
1045
+ .ai-chat-readiness-assumptions ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 5px; }
1046
+ .ai-chat-readiness-assumption { display: flex; flex-direction: column; gap: 2px; padding: 3px 0 3px 8px; border-left: 2px dashed var(--border-strong); }
1047
+ .ai-chat-readiness-assumption.is-stale { border-left-color: var(--border); }
1048
+ .ai-chat-readiness-assumption-words { color: var(--text); font: 10.5px/1.4 var(--ui); quotes: "“" "”"; }
1049
+ .ai-chat-readiness-assumption.is-stale .ai-chat-readiness-assumption-words { color: var(--text-muted); }
1050
+ .ai-chat-readiness-assumption-state { color: var(--text); font: 600 10px/1.4 var(--ui); }
1051
+ .ai-chat-readiness-assumption-meta { color: var(--text-muted); font: 10px/1.4 var(--ui); }
1052
+ .ai-chat-readiness-assumption .ai-chat-readiness-actions { margin-top: 2px; }
1053
+ .ai-chat-readiness-actions button.ai-chat-source-action[aria-disabled="true"] { cursor: progress; color: var(--text-muted); }
1054
+ .ai-chat-readiness-receipt { color: var(--text-muted); font: 10px/1.4 var(--ui); }
1055
+ .ai-chat-readiness-receipt:focus { outline: none; }
1056
+ .ai-chat-readiness-receipt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1057
+ .ai-chat-readiness-receipt.is-failed { color: var(--warn-text); }
1058
+ .ai-chat-readiness-assumption.is-withdrawn .ai-chat-readiness-assumption-words { color: var(--text-muted); }
1059
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-sub,
1060
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-id,
1061
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-limits,
1062
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-review,
1063
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-status,
1064
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-foot,
1065
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-assumed,
1066
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-rfi,
1067
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-asread,
1068
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-assumption-meta,
1069
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-receipt:not(.is-failed),
1070
+ [data-theme="light"] .ai-chat-readiness-card .ai-chat-readiness-assumption.is-stale .ai-chat-readiness-assumption-words,
1071
+ [data-theme="light"] .ai-chat-readiness-table th { color: #475569; }
1072
+ /* #2437: the sources an answer cited. A quiet row under the answer, chips like the attachment chips; what FloLess
1073
+ vouches for is said in words (FOUND / READ BY AI), never with a tick or the success colour, because nothing here
1074
+ checks a claim. An unresolved source keeps the warning edge and offers the person's two ways on. */
1075
+ .ai-chat-sources { display: flex; flex-direction: column; gap: 5px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: 5px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
1076
+ .ai-chat-sources-head { align-self: flex-start; color: var(--text-dim); font: 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
1077
+ .ai-chat-sources-list { display: flex; flex-wrap: wrap; gap: 5px; }
1078
+ .ai-chat-source { max-width: 100%; }
1079
+ .ai-chat-source.answer-jump { outline: 2px solid var(--accent); outline-offset: 2px; background: var(--accent-soft); }
1080
+ .ai-chat-source .ai-chat-source-n { flex: none; min-width: 14px; padding: 0 3px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-3); color: var(--text); text-align: center; }
1081
+ .ai-chat-source button.ai-chat-source-open { width: auto; height: auto; min-height: 18px; max-width: 220px; padding: 0 2px; overflow: hidden; border: 0; background: transparent; color: var(--text); font: 9.5px/1.25 var(--mono); text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; }
1082
+ .ai-chat-source button.ai-chat-source-open:hover { background: transparent; color: var(--accent); }
1083
+ .ai-chat-source .ai-chat-source-marks { flex: none; color: var(--text-dim); font: 8.5px/1.25 var(--mono); letter-spacing: .03em; }
1084
+ .ai-chat-source.unresolved { flex-wrap: wrap; max-width: 100%; border-style: dashed; border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); }
1085
+ .ai-chat-source.unresolved .ai-chat-source-why { color: var(--warn-text); white-space: normal; overflow-wrap: anywhere; }
1086
+ .ai-chat-source button.ai-chat-source-action { width: auto; height: auto; min-height: 20px; padding: 2px 7px; font: 10px/1.3 var(--ui); white-space: nowrap; }
1087
+ /* The marker after a claim: a small numbered button in the text; "?" when no source was found. */
1088
+ .ai-chat-message-body button.ai-chat-cite { appearance: none; display: inline-grid; place-items: center; min-width: 16px; height: 15px; margin: 0 1px; padding: 0 3px; vertical-align: .15em; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-3); color: var(--text); font: 9px/1 var(--mono); cursor: pointer; }
1089
+ .ai-chat-message-body button.ai-chat-cite:hover { border-color: var(--accent); color: var(--accent); }
1090
+ .ai-chat-message-body button.ai-chat-cite.unresolved { border-style: dashed; border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); color: var(--warn-text); }
1091
+ .ai-chat-message-body button.ai-chat-cite:focus-visible,
1092
+ .ai-chat-source button:focus-visible,
1093
+ .ai-chat-source-viewer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1094
+ .ai-chat-message-body .ai-chat-assume { display: inline-block; margin: 0 2px; padding: 0 4px; vertical-align: .1em; border: 1px dashed var(--border-strong); border-radius: 3px; color: var(--text-dim); font: 8.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: help; }
1095
+ /* The cited sheet or page, over the app (a dialog: the shell's size containment would trap a fixed overlay). */
1096
+ /* `margin: auto` centres the modal: the app's global reset zeroes every margin, the dialog's default included. */
1097
+ .ai-chat-source-viewer { width: min(920px, 94vw); max-height: 90vh; margin: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: 0 18px 48px rgba(0, 0, 0, .5); overflow: hidden; }
1098
+ .ai-chat-source-viewer[open] { display: flex; flex-direction: column; }
1099
+ .ai-chat-source-viewer::backdrop { background: rgba(2, 6, 23, .6); }
1100
+ .ai-chat-source-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 4px; }
1101
+ .ai-chat-source-viewer-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.3 var(--ui); }
1102
+ .ai-chat-source-viewer-note { padding: 0 12px 8px; border-bottom: 1px solid var(--border); color: var(--text-dim); font: 9.5px/1.4 var(--mono); }
1103
+ .ai-chat-source-viewer-body { min-height: 120px; overflow: auto; padding: 10px 12px; scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface); }
1104
+ .ai-chat-source-viewer-body::-webkit-scrollbar { width: 8px; height: 8px; }
1105
+ .ai-chat-source-viewer-body::-webkit-scrollbar-track { background: var(--surface); }
1106
+ .ai-chat-source-viewer-body::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 8px; }
1107
+ .ai-chat-source-viewer-body img { display: block; max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
1108
+ .ai-chat-source-viewer-status { margin: 0; color: var(--text-muted); font: 11px/1.45 var(--ui); }
1109
+ .ai-chat-source-viewer-page { margin-top: 8px; }
1110
+ .ai-chat-source-viewer button { appearance: none; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-2); color: var(--text); font: 11px/1 var(--ui); padding: 6px 10px; cursor: pointer; }
1111
+ .ai-chat-source-viewer button:hover { background: var(--surface-3); }
1112
+ .ai-chat-source-viewer-knowledge { align-self: flex-end; margin: 0 12px 12px; }
1113
+ [data-theme="light"] .ai-chat-source-viewer::backdrop { background: rgba(15, 23, 42, .35); }
1114
+ [data-theme="light"] .ai-chat-sources, [data-theme="light"] .ai-chat-source-viewer { --text-muted: #475569; }
1115
+ /* The light theme's dim text is 2.7:1 on a chip, and its warning text 4.1:1 on a marker: below the 4.5:1 floor at these
1116
+ small sizes, so the provenance marks, the Assumption tag and the "?" marker take the darker slate the chat uses. */
1117
+ [data-theme="light"] .ai-chat-source .ai-chat-source-marks,
1118
+ [data-theme="light"] .ai-chat-sources-head,
1119
+ [data-theme="light"] .ai-chat-message-body .ai-chat-assume { color: #475569; }
1120
+ [data-theme="light"] .ai-chat-message-body button.ai-chat-cite.unresolved { color: var(--text); }
941
1121
  /* The chat model's object links (#1653): a quiet receipt under its answer. */
942
1122
  .ai-chat-event.links { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
943
1123
  .ai-chat-event.evidence:not(.error) { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
@@ -951,6 +1131,22 @@
951
1131
  /* #2037: Codex's auto-review receipts — information, never error red; a held-back step gets the warning edge only. */
952
1132
  .ai-chat-event.auto-review { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
953
1133
  .ai-chat-event.auto-review.held { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
1134
+ /* #2478: an answer's receipts folded into one quiet line: the AI's working record, not part of the answer, so no card
1135
+ chrome. It wraps rather than cutting off, because the line may name a change the AI made. */
1136
+ .ai-chat-fold { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
1137
+ .ai-chat-fold-toggle { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; min-height: 22px; padding: 3px 4px 3px 0;
1138
+ border: 0; border-radius: 3px; background: none; color: var(--text-muted); font: 11px/1.45 var(--ui); text-align: left; cursor: pointer;
1139
+ appearance: none; overflow-wrap: anywhere; }
1140
+ .ai-chat-fold-toggle:hover { color: var(--text); }
1141
+ .ai-chat-fold-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1142
+ .ai-chat-fold-chevron { flex: 0 0 auto; display: inline-block; width: 8px; color: var(--text-dim); font-size: 12px; line-height: 1; text-align: center;
1143
+ transition: transform 120ms ease; }
1144
+ .ai-chat-fold.is-open .ai-chat-fold-chevron { transform: rotate(90deg); }
1145
+ .ai-chat-fold-body { display: flex; flex-direction: column; gap: 5px; align-self: stretch; margin: 2px 0 2px 3px; padding-left: 10px; border-left: 1px solid var(--border); }
1146
+ .ai-chat-fold-body[hidden] { display: none; }
1147
+ [data-theme="light"] .ai-chat-fold-toggle, [data-theme="light"] .ai-chat-fold-chevron { color: #475569; }
1148
+ [data-theme="light"] .ai-chat-fold-toggle:hover { color: var(--text); }
1149
+ @media (prefers-reduced-motion: reduce) { .ai-chat-fold-chevron { transition: none; } }
954
1150
  .ai-chat-live-status {
955
1151
  align-self: flex-start;
956
1152
  display: inline-flex;
@@ -1178,6 +1374,15 @@
1178
1374
  font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1179
1375
  }
1180
1376
  .ai-chat-attachment .ai-chat-subjects-label:hover { background: transparent; color: var(--text); text-decoration: underline; }
1377
+ /* #2438: the @ list (it shares the slash list's box) and the mention chips. A row names the mark, then what tells it apart. */
1378
+ .ai-chat-skills.is-mentions .ai-chat-mention-option { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; text-align: left; }
1379
+ .ai-chat-mention-name { color: var(--text); font: 600 11px/1.35 var(--ui); white-space: nowrap; }
1380
+ .ai-chat-skills.is-mentions .ai-chat-mention-option .ai-chat-skill-origin { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1381
+ /* The detail is what tells two B12s apart, so it reads at the muted text token, not the faint origin tag's. */
1382
+ color: var(--text-muted); }
1383
+ [data-theme="light"] .ai-chat-skills.is-mentions .ai-chat-mention-option .ai-chat-skill-origin { color: #475569; }
1384
+ .ai-chat-mention-status { padding: 6px 8px; color: var(--text-muted); font: 11px/1.4 var(--ui); }
1385
+ .ai-chat-attachment.ai-chat-mention .ai-chat-subjects-label { color: var(--text); }
1181
1386
  .ai-chat-message-subjects { align-self: flex-end; max-width: min(100%, 360px); color: var(--text-dim); font: 11px/1.4 var(--ui); text-align: right; overflow-wrap: anywhere; }
1182
1387
 
1183
1388
  /* The Tekla model library carried over from a Graft receipt. It sits in the composer's rigid row,
@@ -1548,6 +1753,45 @@
1548
1753
  .ai-chat-action-card.is-collapsed { padding: 6px 10px; border-left-color: var(--border-strong); }
1549
1754
  .ai-chat-action-line { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; }
1550
1755
 
1756
+ /* #2399 PR C2 — a next step the assistant suggested in a project, workflow or workspace chat. The action card's shell (no
1757
+ new colours): a blocking or resume card keeps the accent edge, an idea gets the quiet edge of a person-only step. */
1758
+ .assistant-card.is-idea { border-left-color: var(--border-strong); }
1759
+ .assistant-card .ai-chat-filter-card-head { align-items: flex-start; }
1760
+ .assistant-card-fact { margin-top: 4px; color: var(--text); }
1761
+ .assistant-card-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal; }
1762
+ .assistant-card-prompt { margin: 6px 0 0; padding: 6px 8px; border-left: 2px solid var(--border-strong); border-radius: 0 4px 4px 0;
1763
+ background: var(--surface); color: var(--text); font-size: 11.5px; line-height: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
1764
+ .assistant-card-result-body { max-height: 180px; margin: 8px 0 0; padding: 6px 8px; overflow: auto; border: 1px solid var(--border-strong);
1765
+ border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; line-height: 15px; overflow-wrap: anywhere;
1766
+ scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface); }
1767
+ .assistant-card-result-body::-webkit-scrollbar { width: 8px; height: 8px; }
1768
+ .assistant-card-result-body::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--text-dim); }
1769
+ .assistant-card-result-body::-webkit-scrollbar-track, .assistant-card-result-body::-webkit-scrollbar-corner { background: var(--surface); }
1770
+ .assistant-card-result-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1771
+ .assistant-card-result-list { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; font-size: 11px; }
1772
+ .assistant-card-result-list dt { color: var(--text-muted); }
1773
+ .assistant-card-result-list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
1774
+ .assistant-card-result-empty { margin: 0; color: var(--text-muted); font-size: 11px; }
1775
+ .assistant-card-result-more { margin-top: 6px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface);
1776
+ color: var(--text-muted); font-size: 10.5px; cursor: pointer; }
1777
+ .assistant-card-result-more:hover { color: var(--text); background: var(--surface-3); }
1778
+ .assistant-card-result-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1779
+ .assistant-card-result-full { max-height: 260px; }
1780
+ .assistant-card-result-full[hidden] { display: none; }
1781
+ .assistant-card-result-full .assistant-card-result-list .assistant-card-result-list { padding-left: 4px; border-left: 1px solid var(--border); }
1782
+ .assistant-card-compose { margin-top: 8px; }
1783
+ .assistant-card-compose .ai-chat-filter-note { margin-top: 0; color: var(--text); }
1784
+ .assistant-card-recovered { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; margin-top: 8px; }
1785
+ .assistant-card-recovered .ai-chat-filter-note { margin: 0; }
1786
+ .assistant-card-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
1787
+ .assistant-card.is-gone .ai-chat-action-line { color: var(--text-dim); }
1788
+ .assistant-card-recovered button, .assistant-card-line button { min-height: 24px; padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: 4px;
1789
+ background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
1790
+ .assistant-card-recovered button:hover, .assistant-card-line button:hover { color: var(--text); background: var(--surface-3); }
1791
+ .assistant-card-recovered button:focus-visible, .assistant-card-line button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1792
+ .assistant-card-line button:disabled { cursor: default; opacity: .45; }
1793
+ .assistant-card .ai-chat-filter-actions button:disabled { cursor: default; opacity: .45; }
1794
+
1551
1795
  /* #2247 — one line per action the AI ran itself: what it was, and how it ended. */
1552
1796
  .ai-chat-action-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 4px; padding: 3px 8px;
1553
1797
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface-2); color: var(--text-muted); font-size: 11px; line-height: 15px; }