@andorra-labs/code 0.1.9 → 0.1.11

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 (212) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +56 -0
  4. package/dist/src/app-server/protocol.d.ts +109 -1
  5. package/dist/src/app-server/protocol.js +8 -1
  6. package/dist/src/app-server.d.ts +59 -1
  7. package/dist/src/app-server.js +418 -63
  8. package/dist/src/auth/index.d.ts +1 -1
  9. package/dist/src/auth/index.js +1 -1
  10. package/dist/src/auth/store.d.ts +17 -1
  11. package/dist/src/auth/store.js +25 -2
  12. package/dist/src/automation-service.js +1 -1
  13. package/dist/src/browser-session.d.ts +8 -0
  14. package/dist/src/browser-session.js +27 -1
  15. package/dist/src/browser-ui/app.js +255 -33
  16. package/dist/src/browser-ui/index.html +9 -9
  17. package/dist/src/browser-ui/style.css +110 -65
  18. package/dist/src/browser-ui/tokens.css +27 -26
  19. package/dist/src/cli.js +10 -5
  20. package/dist/src/coding-tools.d.ts +24 -0
  21. package/dist/src/coding-tools.js +71 -8
  22. package/dist/src/command-screens.js +1 -1
  23. package/dist/src/commands.d.ts +1 -1
  24. package/dist/src/commands.js +2 -2
  25. package/dist/src/completion-gates.d.ts +42 -7
  26. package/dist/src/completion-gates.js +55 -9
  27. package/dist/src/completion.d.ts +9 -1
  28. package/dist/src/completion.js +20 -2
  29. package/dist/src/dashboard-view.js +2 -2
  30. package/dist/src/deadline.js +4 -0
  31. package/dist/src/decision/checks.js +1 -1
  32. package/dist/src/file-diff.d.ts +105 -0
  33. package/dist/src/file-diff.js +244 -0
  34. package/dist/src/graph-manager-chat.js +4 -4
  35. package/dist/src/graph-runner.js +39 -2
  36. package/dist/src/graph-sync.d.ts +8 -0
  37. package/dist/src/graph-sync.js +54 -3
  38. package/dist/src/graph-tool.js +1 -1
  39. package/dist/src/graph-ui/app.js +303 -129
  40. package/dist/src/graph-ui/controls.css +43 -22
  41. package/dist/src/graph-ui/controls.js +31 -1
  42. package/dist/src/graph-ui/embed.js +56 -7
  43. package/dist/src/graph-ui/icons.js +5 -0
  44. package/dist/src/graph-ui/index.html +3 -3
  45. package/dist/src/graph-ui/manager-state.js +2 -2
  46. package/dist/src/graph-ui/manager.css +19 -18
  47. package/dist/src/graph-ui/manager.js +5 -5
  48. package/dist/src/graph-ui/skill-picker.js +5 -5
  49. package/dist/src/graph-ui/studio-canvas.js +16 -16
  50. package/dist/src/graph-ui/studio.css +18 -15
  51. package/dist/src/graph-ui/studio.js +99 -42
  52. package/dist/src/graph-ui/style.css +125 -80
  53. package/dist/src/graph-ui/theme.js +2 -2
  54. package/dist/src/graph-ui/tokens.css +33 -29
  55. package/dist/src/graphs.d.ts +10 -3
  56. package/dist/src/graphs.js +15 -4
  57. package/dist/src/mcp.d.ts +75 -0
  58. package/dist/src/mcp.js +240 -8
  59. package/dist/src/membership-errors.d.ts +7 -1
  60. package/dist/src/membership-errors.js +9 -3
  61. package/dist/src/provider-keys.d.ts +5 -1
  62. package/dist/src/provider-keys.js +7 -3
  63. package/dist/src/provider-settings.d.ts +4 -1
  64. package/dist/src/provider-settings.js +46 -5
  65. package/dist/src/pull-requests.d.ts +42 -6
  66. package/dist/src/pull-requests.js +11 -3
  67. package/dist/src/qa/guidance.js +6 -19
  68. package/dist/src/qa/index.d.ts +0 -2
  69. package/dist/src/qa/index.js +0 -2
  70. package/dist/src/qa/profile/QaProfile.d.ts +5 -1
  71. package/dist/src/qa/profile/QaProfile.js +6 -2
  72. package/dist/src/qa/tools.d.ts +19 -1
  73. package/dist/src/qa/tools.js +20 -145
  74. package/dist/src/react-runtime.js +134 -16
  75. package/dist/src/read-document-doc.d.ts +20 -0
  76. package/dist/src/read-document-doc.js +524 -0
  77. package/dist/src/read-document-docx.d.ts +21 -0
  78. package/dist/src/read-document-docx.js +584 -0
  79. package/dist/src/read-document-text.d.ts +29 -0
  80. package/dist/src/read-document-text.js +67 -0
  81. package/dist/src/read-document-tool.d.ts +48 -0
  82. package/dist/src/read-document-tool.js +162 -0
  83. package/dist/src/read-document.d.ts +78 -0
  84. package/dist/src/read-document.js +353 -0
  85. package/dist/src/read-image.d.ts +29 -2
  86. package/dist/src/read-image.js +42 -17
  87. package/dist/src/remote/engine-pool.js +18 -6
  88. package/dist/src/runtime.d.ts +19 -0
  89. package/dist/src/runtime.js +10 -1
  90. package/dist/src/screen-selection.d.ts +38 -0
  91. package/dist/src/screen-selection.js +103 -0
  92. package/dist/src/session-changes.d.ts +122 -0
  93. package/dist/src/session-changes.js +804 -0
  94. package/dist/src/side-panel.d.ts +6 -1
  95. package/dist/src/side-panel.js +12 -10
  96. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  97. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  98. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  99. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  100. package/dist/src/skills/bundled/provenance.json +4 -4
  101. package/dist/src/skills/runtime-skills.js +3 -3
  102. package/dist/src/stall-recovery.d.ts +15 -0
  103. package/dist/src/stall-recovery.js +17 -0
  104. package/dist/src/telemetry/schema.d.ts +1 -1
  105. package/dist/src/telemetry/schema.js +1 -2
  106. package/dist/src/terminal-ui.d.ts +64 -20
  107. package/dist/src/terminal-ui.js +312 -82
  108. package/dist/src/time-limit.d.ts +53 -0
  109. package/dist/src/time-limit.js +79 -0
  110. package/dist/src/tool-diff-stats.d.ts +9 -0
  111. package/dist/src/tool-diff-stats.js +20 -0
  112. package/dist/src/tool-names.d.ts +1 -1
  113. package/dist/src/tool-result-filter.js +1 -1
  114. package/dist/src/tools.js +118 -9
  115. package/dist/src/transcript.d.ts +11 -0
  116. package/dist/src/transcript.js +15 -3
  117. package/dist/src/types.d.ts +12 -0
  118. package/dist/src/usage-analytics.d.ts +3 -1
  119. package/dist/src/usage-analytics.js +16 -2
  120. package/package.json +6 -26
  121. package/dist/src/qa/api/http-runner.d.ts +0 -3
  122. package/dist/src/qa/api/http-runner.js +0 -47
  123. package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
  124. package/dist/src/qa/git/ChangeDetector.js +0 -177
  125. package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
  126. package/dist/src/qa/git/DiffReviewer.js +0 -115
  127. package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
  128. package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
  129. package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
  130. package/dist/src/qa/orchestrator/MergeGate.js +0 -40
  131. package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
  132. package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
  133. package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
  134. package/dist/src/qa/runners/CommandRunner.js +0 -96
  135. package/dist/src/qa/runners/TestRunner.d.ts +0 -21
  136. package/dist/src/qa/runners/TestRunner.js +0 -66
  137. package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
  138. package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
  139. package/dist/src/qa/runtime-detect.d.ts +0 -10
  140. package/dist/src/qa/runtime-detect.js +0 -72
  141. package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
  142. package/dist/src/qa/security/DependencyScanner.js +0 -167
  143. package/dist/src/qa/security/SecretScanner.d.ts +0 -3
  144. package/dist/src/qa/security/SecretScanner.js +0 -55
  145. package/docs/README.md +0 -36
  146. package/docs/agents/README.md +0 -62
  147. package/docs/agents/install-for-agents.md +0 -56
  148. package/docs/agents/mcp-server.md +0 -212
  149. package/docs/agents/subagent-mode.md +0 -149
  150. package/docs/concepts/README.md +0 -47
  151. package/docs/concepts/jev-actionable-routing.md +0 -113
  152. package/docs/concepts/jev-decision-thresholds.md +0 -412
  153. package/docs/concepts/jev-efficiency.md +0 -217
  154. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  155. package/docs/concepts/limits.md +0 -52
  156. package/docs/concepts/memory.md +0 -10
  157. package/docs/concepts/security.md +0 -50
  158. package/docs/concepts/workspace-instructions.md +0 -29
  159. package/docs/getting-started/README.md +0 -82
  160. package/docs/getting-started/accounts.md +0 -78
  161. package/docs/getting-started/configure-providers.md +0 -132
  162. package/docs/guides/README.md +0 -13
  163. package/docs/guides/browser.md +0 -39
  164. package/docs/guides/desktop-app.md +0 -414
  165. package/docs/guides/extensions.md +0 -102
  166. package/docs/guides/graph-builder.md +0 -116
  167. package/docs/guides/headless.md +0 -46
  168. package/docs/guides/tui.md +0 -75
  169. package/docs/guides/update.md +0 -70
  170. package/docs/guides/web-search.md +0 -51
  171. package/docs/guides/windows-code-signing.md +0 -319
  172. package/docs/llms.txt +0 -45
  173. package/docs/reference/README.md +0 -7
  174. package/docs/reference/cli.md +0 -76
  175. package/docs/reference/config.md +0 -91
  176. package/docs/reference/slash-commands.md +0 -59
  177. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  178. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  179. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  180. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  181. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  182. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  183. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  184. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  185. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  186. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  187. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  188. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  189. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  190. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  191. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  192. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  193. package/scripts/jev-efficiency-eval.mjs +0 -187
  194. package/scripts/jev-efficiency-live.mjs +0 -193
  195. package/scripts/zcode-engine-replay.mjs +0 -223
  196. package/tests/agent-centric-mcp-test-plan.md +0 -208
  197. package/tests/analytics-settings-test-plan.md +0 -165
  198. package/tests/browser-cli-smoke.mjs +0 -276
  199. package/tests/browser-test-plan.md +0 -280
  200. package/tests/chat-side-panel-test-plan.md +0 -309
  201. package/tests/decision-engine-test-plan.md +0 -163
  202. package/tests/default-active-jev-test-plan.md +0 -85
  203. package/tests/harness-extensions-test-plan.md +0 -113
  204. package/tests/jev-all-decisions-test-plan.md +0 -156
  205. package/tests/jev-efficiency/criteria.json +0 -158
  206. package/tests/jev-efficiency/workloads.mjs +0 -242
  207. package/tests/jev-efficiency-test-plan.md +0 -198
  208. package/tests/permissions-sandbox-probe.mjs +0 -74
  209. package/tests/permissions-test-plan.md +0 -191
  210. package/tests/product-telemetry-test-plan.md +0 -536
  211. package/tests/thinking-stream-preview-test-plan.md +0 -136
  212. package/tests/zcode-react-engine-test-plan.md +0 -396
@@ -6,9 +6,9 @@
6
6
  * spacing on the 4px scale (`--space-1` … `--space-6`) and corners on the radius scale
7
7
  * (`--radius-xs` … `--radius-full`), per ADR 0022.
8
8
  *
9
- * The blue accent fill, focus ring and link ink (`--accent-fill`, `--focus`, `--accent-text`) and the
10
- * ink tiers for hover and selection (`--hover`, `--selected`) arrive with the client's tokens; until
11
- * the client declares them, each falls back to the neutral token it replaces.
9
+ * The blue is the action's alone (ADR 0022, A1): `--accent-fill` fills the primary button, `--focus`
10
+ * draws the keyboard's ring and `--accent-text` the links. Selection, checked boxes and a focused
11
+ * field's edge stay in the neutral ink. Layers are on the client's `--z-*` scale.
12
12
  */
13
13
 
14
14
  * { box-sizing: border-box; }
@@ -18,7 +18,7 @@ html, body { height: 100%; margin: 0; }
18
18
  body {
19
19
  display: flex; height: 100dvh; overflow: hidden;
20
20
  background: var(--bg-surface); color: var(--text);
21
- font-family: var(--font-ui); font-size: var(--type-row); line-height: 1.45;
21
+ font-family: var(--font-ui); font-size: var(--type-row); line-height: var(--leading-sm);
22
22
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
23
23
  /* A desktop application, not a page: the arrow is the resting cursor. */
24
24
  cursor: default;
@@ -62,23 +62,23 @@ button:disabled { color: var(--text-disabled); }
62
62
  /* The primary action is the accent fill, the one filled control on a screen. Disabled, it keeps its
63
63
  fill at reduced strength so it still reads as the screen's primary action. */
64
64
  .primary {
65
- border-color: var(--accent-fill, var(--accent)); background: var(--accent-fill, var(--accent));
66
- color: var(--on-accent-fill, var(--on-accent)); font-weight: var(--weight-strong);
65
+ border-color: var(--accent-fill); background: var(--accent-fill);
66
+ color: var(--on-accent-fill); font-weight: var(--weight-strong);
67
67
  }
68
- .primary:hover:not(:disabled) { background: var(--accent-fill-hover, var(--accent-hover)); border-color: var(--accent-fill-hover, var(--accent-hover)); }
68
+ .primary:hover:not(:disabled) { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
69
69
  .primary:disabled { background: var(--bg-control); border-color: transparent; color: var(--text-disabled); }
70
70
 
71
71
  /* Ghost: a bare label or icon that fills one ink tier under the pointer. */
72
72
  .ghost, .icon-button { background: transparent; color: var(--text-2); }
73
- .ghost:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--hover, var(--bg-hover)); color: var(--text); }
73
+ .ghost:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
74
74
  .icon-button { min-width: var(--btn-height); padding: 0; }
75
75
  .icon-button.btn-small { min-width: var(--control-height); }
76
76
  /* Pressed or open is the stronger tier, with full ink; selection never changes the weight. */
77
- .icon-button[aria-pressed="true"], .icon-button[aria-expanded="true"] { color: var(--text); background: var(--selected, var(--accent-soft)); }
77
+ .icon-button[aria-pressed="true"], .icon-button[aria-expanded="true"] { color: var(--text); background: var(--selected); }
78
78
 
79
79
  /* The keyboard's focus ring: 2px, offset 2px, only for keyboard focus. Rows in lists and menus show
80
80
  a highlight fill instead (their own rules below). */
81
- :focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
81
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
82
82
 
83
83
  /* Chips: a compact status label. The warning kind names a problem with the configuration. */
84
84
  .chip {
@@ -97,10 +97,14 @@ input, select, textarea {
97
97
  transition: border-color var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) var(--ease-standard);
98
98
  }
99
99
  input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
100
- input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus, var(--accent)); box-shadow: 0 0 0 3px var(--accent-ring); }
100
+ /* Focused by the keyboard, a field keeps its neutral edge and gains a 2px halo outside it, the
101
+ desktop's field (primitives.css `.input:focus`); a click shows nothing extra. */
102
+ input:focus, select:focus, textarea:focus { outline: none; }
103
+ input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 2px var(--accent-ring); }
104
+ :root[data-focus-via="pointer"] :is(input, select, textarea):focus-visible { box-shadow: none; }
101
105
  input::placeholder, textarea::placeholder { color: var(--text-3); }
102
106
  /* A field carries prose unless it is marked as code, so the mono face is opt-in. */
103
- textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
107
+ textarea { resize: vertical; min-height: 140px; line-height: var(--leading-sm); }
104
108
 
105
109
  /* The library rail -------------------------------------------------------- */
106
110
 
@@ -127,8 +131,8 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
127
131
  .rail > * { position: relative; z-index: 1; }
128
132
 
129
133
  /* The footer is one status line under a quiet label: a dot, then what the account's sync is doing. */
130
- .rail-footer span { display: flex; align-items: baseline; gap: 6px; font-size: var(--type-xs); font-weight: var(--weight-regular); color: var(--text-2); margin-top: 2px; line-height: 1.4; }
131
- .rail-footer span::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); transform: translateY(-1px); }
134
+ .rail-footer span { display: flex; align-items: baseline; gap: 6px; font-size: var(--type-xs); font-weight: var(--weight-regular); color: var(--text-2); margin-top: 2px; line-height: var(--leading-xs); }
135
+ .rail-footer span::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--text-3); transform: translateY(-1px); }
132
136
 
133
137
  /* The window title already names the product, so the rail opens straight onto the graphs. */
134
138
  .rail-body { padding: var(--space-3) var(--space-2) var(--space-4); overflow: auto; flex: 1; min-height: 0; }
@@ -142,23 +146,23 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
142
146
  color: var(--text-2);
143
147
  }
144
148
  .section-label button { border-radius: var(--radius-sm); }
145
- .section-label button:hover:not(:disabled) { background: var(--hover, var(--rail-wash)); color: var(--text); }
149
+ .section-label button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
146
150
 
147
- #search, #node-search { margin-bottom: var(--space-3); }
148
151
  /* The rail's two filters rest as a quiet wash with a magnifier, not an outlined box: the rail is a
149
152
  list of rows, and an outline at rest read as a form. The outline returns under the pointer and
150
- the accent ring on focus. The glyph is Lucide's search on its 1.5 stroke, in each appearance's
151
- muted ink (an image cannot read a token, so the two inks are written into it). */
152
- .rail input[type="search"] {
153
- padding-left: 30px; border-color: transparent; background-color: var(--rail-wash);
154
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aa4' stroke-width='1.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>");
155
- background-repeat: no-repeat; background-position: 9px 50%; background-size: 14px 14px;
156
- }
157
- :root[data-theme='light'] .rail input[type="search"] {
158
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5d63' stroke-width='1.5' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>");
159
- }
153
+ the field's halo on keyboard focus. The glyph is Lucide's search on its 1.5 stroke, cut as a mask
154
+ from the muted ink, so it is `--text-3` in either appearance. */
155
+ .rail-search { position: relative; margin-bottom: var(--space-3); }
156
+ .rail-search::before {
157
+ content: ''; position: absolute; left: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
158
+ background: var(--text-3); pointer-events: none;
159
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
160
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
161
+ }
162
+ .rail input[type="search"] { padding-left: 30px; border-color: transparent; background-color: var(--rail-wash); }
160
163
  .rail input[type="search"]:hover { border-color: var(--border-strong); }
161
- .rail input[type="search"]:focus-visible { border-color: var(--focus, var(--accent)); background-color: var(--bg-input); }
164
+ .rail input[type="search"]:focus { background-color: var(--bg-input); }
165
+ .rail input[type="search"]:focus-visible { border-color: var(--border-strong); }
162
166
 
163
167
  /* Rows: one anatomy, everywhere. */
164
168
  #graphs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
@@ -173,8 +177,10 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
173
177
  padding: 2px var(--space-1); border-radius: var(--radius-xs);
174
178
  font: inherit; font-size: var(--type-xs); font-weight: var(--weight-regular); color: var(--text-3); cursor: pointer;
175
179
  }
176
- .graph-drafts-clear:hover:not(:disabled), .graph-drafts-toggle:hover { background: var(--hover, var(--rail-wash)); color: var(--text); }
177
- .graph-drafts-toggle { justify-self: start; margin: 2px var(--space-1) 0; }
180
+ .graph-drafts-clear:hover:not(:disabled), .graph-drafts-toggle:hover { background: var(--hover); color: var(--text); }
181
+ .graph-drafts-toggle { justify-self: start; margin: 2px var(--space-1) 0; display: inline-flex; align-items: center; gap: var(--space-1); }
182
+ .graph-drafts-toggle .icon { flex: none; transition: transform var(--dur-1) var(--ease-standard); }
183
+ .graph-drafts-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
178
184
  .graph-row.draft-row span { color: var(--text-2); }
179
185
  .graph-row.draft-row small { font-variant-numeric: tabular-nums; }
180
186
  .graph-row {
@@ -186,10 +192,28 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
186
192
  /* Hover is one ink tier and selection a stronger one with full ink, the desktop rail's own rows; the
187
193
  selected row is the fill alone, with no edge bar. A row under keyboard focus shows the hover fill
188
194
  rather than a ring. */
189
- .graph-row:hover:not(:disabled), .graph-row:focus-visible { background: var(--hover, var(--rail-wash)); color: var(--text); outline: none; }
190
- .graph-row.active, .graph-row.active:hover:not(:disabled), .graph-row.active:focus-visible { background: var(--selected, var(--accent-soft)); color: var(--text); }
195
+ .graph-row:hover:not(:disabled), .graph-row:focus-visible { background: var(--hover); color: var(--text); outline: none; }
196
+ .graph-row.active, .graph-row.active:hover:not(:disabled), .graph-row.active:focus-visible { background: var(--selected); color: var(--text); }
191
197
  .graph-row span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
192
198
  .graph-row small { color: var(--text-3); font-size: var(--type-xs); flex-shrink: 0; }
199
+ /* A free account's workflow beyond its allowance: dimmed, with a lock beside its version, and no
200
+ hover fill, so it reads as unavailable while its tooltip and context menu still reach it. */
201
+ .graph-row.locked { cursor: not-allowed; }
202
+ .graph-row.locked span { color: var(--text-3); }
203
+ .graph-row.locked:hover:not(:disabled) { background: transparent; color: var(--text-2); }
204
+ .graph-row.locked small { display: inline-flex; align-items: center; gap: 4px; }
205
+
206
+ /* EmptyState, the desktop's anatomy (primitives.css): a 16px mark, a 13/500 title, a 12px muted line
207
+ and at most one button, centred. In the rail's lists it is the compact kind. */
208
+ .empty-state {
209
+ display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1);
210
+ margin: 0 auto; padding: 48px var(--space-4); max-width: 100%;
211
+ }
212
+ .empty-state-compact { padding: var(--space-5) var(--space-4); }
213
+ .empty-state-icon { display: inline-flex; color: var(--text-3); margin-bottom: var(--space-1); }
214
+ .empty-state-title { margin: 0; font-size: var(--type-sm); line-height: var(--leading-sm); font-weight: var(--weight-strong); color: var(--text); }
215
+ .empty-state-line { margin: 0; max-width: 44ch; font-size: var(--type-xs); line-height: var(--leading-xs); color: var(--text-3); }
216
+ .empty-state-action { margin-top: var(--space-2); }
193
217
 
194
218
  .library-label { margin-top: var(--space-5); }
195
219
  .library-group { margin: var(--space-2) 0; }
@@ -205,12 +229,12 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
205
229
  padding: 6px var(--space-2); border-radius: var(--row-radius); color: var(--text-2); font-weight: var(--weight-regular); cursor: grab;
206
230
  }
207
231
  .library-item:active:not(:disabled) { cursor: grabbing; }
208
- .library-item:hover:not(:disabled), .library-item:focus-visible { background: var(--hover, var(--rail-wash)); color: var(--text); outline: none; }
232
+ .library-item:hover:not(:disabled), .library-item:focus-visible { background: var(--hover); color: var(--text); outline: none; }
209
233
  .library-item > svg.icon { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; color: var(--text-2); }
210
234
  .library-item b { grid-column: 2; grid-row: 1; display: block; font-weight: var(--weight-strong); font-size: var(--type-sm); white-space: normal; overflow-wrap: anywhere; }
211
- .library-item span { grid-column: 2; grid-row: 2; display: block; color: var(--text-3); font-size: var(--type-xs); white-space: normal; line-height: 1.35; }
235
+ .library-item span { grid-column: 2; grid-row: 2; display: block; color: var(--text-3); font-size: var(--type-xs); white-space: normal; line-height: var(--leading-xs); }
212
236
 
213
- .hint { color: var(--text-3); line-height: 1.5; font-size: var(--type-xs); margin: var(--space-3) var(--space-2); }
237
+ .hint { color: var(--text-3); line-height: var(--leading-xs); font-size: var(--type-xs); margin: var(--space-3) var(--space-2); }
214
238
 
215
239
  .rail-footer { padding: var(--space-2) var(--space-3) 10px; border-top: 1px solid var(--border); font-size: var(--type-xs); color: var(--text-3); }
216
240
 
@@ -227,21 +251,44 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
227
251
  min-height: var(--chrome-height); flex-shrink: 0; display: flex; align-items: center; gap: var(--space-2);
228
252
  padding: 3px var(--space-3); border-bottom: 1px solid var(--border); background: var(--bg-surface);
229
253
  }
254
+ /* Framed in the desktop window, the editor's top row is the window's: the host names the room its
255
+ window controls take at either end (embed.js). The app-drawn controls sit at the right, over the
256
+ toolbar, which keeps its own controls clear of them. macOS's traffic lights sit at the left, over the
257
+ library rail (the rail is at least 100px wide, the lights' corner 78px), so the rail keeps a blank
258
+ caption row of the toolbar's height above its lists, as the desktop's rail keeps its brand row. */
259
+ :root[data-host-insets] .chrome { padding-right: max(var(--space-3), var(--host-inset-right, 0px)); }
260
+ .rail-caption { display: none; }
261
+ :root[data-host-corner] .rail-caption { display: block; flex: none; height: var(--chrome-height); }
230
262
  .chrome .icon-button { min-width: var(--control-height); min-height: var(--control-height); border-radius: var(--radius-sm); }
231
263
  .graph-heading { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; }
232
- .graph-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-strong); font-size: var(--type-md); }
264
+ .graph-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-strong); font-size: var(--type-sm); line-height: var(--leading-sm); }
233
265
  .graph-heading span { font-size: var(--type-xs); color: var(--text-3); white-space: nowrap; }
234
266
  .graph-heading .chip { align-self: center; }
235
267
  .chrome-actions { display: flex; align-items: center; gap: var(--space-1); flex: none; }
236
268
  .chrome-actions > .primary { margin-left: var(--space-1); }
237
269
  .host-chrome { display: flex; align-items: center; gap: var(--space-1); flex: none; padding-right: var(--space-2); border-right: 1px solid var(--border); }
270
+ /* The desktop's attention words and marks (P-ATN-D1): the count of tasks that need your input on Back
271
+ is the desktop's ink count pill, and a graph run waiting on input leads its notice with the 8px
272
+ needs-your-input dot. Both scale in once; nothing loops. */
273
+ .attention-count {
274
+ display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
275
+ min-width: 16px; height: 16px; padding: 0 var(--space-1); border-radius: var(--radius-full);
276
+ background: var(--text); color: var(--bg-rail); font-size: var(--type-xs); font-weight: var(--weight-strong);
277
+ line-height: var(--leading-xs); font-variant-numeric: tabular-nums;
278
+ animation: attention-arrive var(--dur-2) var(--ease-standard);
279
+ }
280
+ #host-notice::before {
281
+ content: ''; flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--text);
282
+ animation: attention-arrive var(--dur-2) var(--ease-standard);
283
+ }
284
+ @keyframes attention-arrive { from { scale: .6; opacity: 0; } }
238
285
 
239
286
  /* The overflow menu: an 8px popover with a 4px inset, rows on the 4px radius at the row height. A
240
287
  row under the pointer or keyboard focus fills one ink tier; menus show no focus ring. It arrives
241
288
  and leaves the same way (controls.css, "Exits"). */
242
289
  .menu { position: relative; }
243
290
  .menu-list {
244
- position: absolute; z-index: 20; top: calc(100% + var(--space-1)); right: 0; min-width: 210px;
291
+ position: absolute; z-index: var(--z-menu); top: calc(100% + var(--space-1)); right: 0; min-width: 210px;
245
292
  display: flex; flex-direction: column; gap: 1px; padding: var(--space-1);
246
293
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
247
294
  animation: controls-panel-in var(--dur-1) var(--ease-standard);
@@ -250,10 +297,10 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
250
297
  justify-content: flex-start; width: 100%; min-height: var(--row-height); padding: 0 var(--space-2);
251
298
  background: transparent; color: var(--text); border-radius: var(--radius-xs); font-weight: var(--weight-regular);
252
299
  }
253
- .menu-list > button:hover:not(:disabled), .menu-list > button:focus-visible { background: var(--hover, var(--bg-hover)); outline: none; }
300
+ .menu-list > button:hover:not(:disabled), .menu-list > button:focus-visible { background: var(--hover); outline: none; }
254
301
  .menu-list > button > svg.icon { color: var(--text-2); }
255
- /* A destructive item (an Agent's Delete) reads as one, icon included. */
256
- .menu-list > button.danger, .menu-list > button.danger > svg.icon { color: var(--err-text); }
302
+ /* A destructive item (Delete) is a neutral row below a divider, as in the desktop's menus (C7): the
303
+ rule sets it apart, and the confirmation that follows names the loss. */
257
304
  .menu-list > hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: var(--space-1) 0; }
258
305
  /* The graph-row context menu floats at the pointer instead of anchoring to a parent. */
259
306
  .graph-context { position: fixed; top: auto; left: 0; right: auto; }
@@ -300,7 +347,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
300
347
  /* The node's left edge is its input port. The outcome ports on the right belong to the outcomes
301
348
  themselves, so the node carries no generic right-hand circle of its own. */
302
349
  .node:before {
303
- content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
350
+ content: ""; position: absolute; width: 8px; height: 8px; border-radius: var(--radius-full);
304
351
  background: var(--bg-input); border: 1px solid var(--border-strong); top: 44px; left: -5px;
305
352
  }
306
353
  .node:after { display: none; }
@@ -311,7 +358,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
311
358
  .output-port {
312
359
  height: 25px; display: block; position: relative; width: calc(100% + 30px); margin-left: -18px;
313
360
  text-align: right; border: 0; border-top: 1px solid var(--border); border-radius: 0;
314
- padding: var(--space-1) 15px; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); line-height: 16px; color: var(--text-3); min-height: 0;
361
+ padding: var(--space-1) 15px; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); line-height: var(--leading-xs); color: var(--text-3); min-height: 0;
315
362
  overflow: hidden; text-overflow: ellipsis;
316
363
  }
317
364
  .output-port[data-connected] { color: transparent; }
@@ -319,15 +366,15 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
319
366
  .output-port:last-child { border-radius: 0 0 var(--card-radius) var(--card-radius); }
320
367
  .output-port:after {
321
368
  content: ''; position: absolute; right: -4px; top: 9px; width: 8px; height: 8px;
322
- background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 50%;
369
+ background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: var(--radius-full);
323
370
  }
324
371
  .output-port[data-connected]:after { background: var(--text-3); border-color: var(--text-3); }
325
- .node .output-port:hover:not(:disabled) { background: var(--hover, var(--bg-card)); }
372
+ .node .output-port:hover:not(:disabled) { background: var(--hover); }
326
373
 
327
374
  /* Canvas controls: one rounded rectangle of square icon buttons at the bottom centre, beside the
328
375
  minimap, which shares its corner. */
329
376
  .canvas-toolbar {
330
- position: absolute; z-index: 4; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
377
+ position: absolute; z-index: var(--z-raised); bottom: var(--space-4); left: 50%; transform: translateX(-50%);
331
378
  display: flex; gap: 2px; align-items: center;
332
379
  padding: var(--space-1); background: var(--bg-input); border: 1px solid var(--border);
333
380
  border-radius: var(--radius-lg); box-shadow: var(--shadow-menu);
@@ -336,35 +383,37 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
336
383
  border: 0; background: transparent; width: var(--control-height); height: var(--control-height); min-height: 0;
337
384
  padding: 0; border-radius: var(--radius-sm); color: var(--text-2); font-weight: var(--weight-regular);
338
385
  }
339
- .canvas-toolbar button:hover:not(:disabled) { background: var(--hover, var(--bg-card)); color: var(--text); }
340
- .canvas-toolbar button[aria-pressed="true"] { background: var(--selected, var(--accent-soft)); color: var(--text); }
386
+ .canvas-toolbar button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
387
+ .canvas-toolbar button[aria-pressed="true"] { background: var(--selected); color: var(--text); }
341
388
  .canvas-toolbar .toolbar-divider { height: 16px; border-left: 1px solid var(--border); margin: 0 var(--space-1); }
342
389
  #zoom { font-size: var(--type-xs); min-width: 40px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
343
390
 
344
391
  /* The canvas tips show until the reader dismisses them once; picking a destination always shows
345
392
  its own instruction here. */
346
393
  .canvas-hint {
347
- position: absolute; z-index: 3; top: var(--space-3); left: var(--space-3); max-width: calc(100% - 2 * var(--space-3));
394
+ position: absolute; z-index: var(--z-raised); top: var(--space-3); left: var(--space-3); max-width: calc(100% - 2 * var(--space-3));
348
395
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
349
396
  color: var(--text-2); font-size: var(--type-xs); background: var(--bg-input); border: 1px solid var(--border);
350
397
  border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
351
398
  }
352
399
  .canvas-hint .icon-button { min-width: 24px; width: 24px; min-height: 24px; height: 24px; border-radius: var(--radius-sm); }
353
- #empty { position: absolute; inset: 45% 20px auto; text-align: center; color: var(--text-3); }
400
+ /* No workflow open: the EmptyState, centred on the canvas. */
401
+ #empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
402
+ #empty > .empty-state { pointer-events: auto; }
354
403
 
355
404
  /* The node inspector ----------------------------------------------------- */
356
405
 
357
406
  #inspector {
358
407
  width: var(--panel); flex-shrink: 0; border-left: 1px solid var(--border);
359
- background: var(--bg-surface); display: flex; flex-direction: column; position: relative; z-index: 3;
408
+ background: var(--bg-surface); display: flex; flex-direction: column; position: relative; z-index: var(--z-raised);
360
409
  }
361
410
  #inspector.hidden { display: none; }
362
411
  .panel-header {
363
412
  height: var(--chrome-height); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
364
413
  padding: 0 var(--space-4); border-bottom: 1px solid var(--border);
365
414
  }
366
- .panel-header strong { font-weight: var(--weight-strong); font-size: var(--type-md); }
367
- #inspector-body { padding: var(--space-4); overflow: auto; flex: 1; }
415
+ .panel-header strong { font-weight: var(--weight-strong); font-size: var(--type-sm); line-height: var(--leading-sm); }
416
+ #inspector-body { padding: var(--space-4); overflow: auto; scrollbar-gutter: stable; flex: 1; }
368
417
  #resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 7px; cursor: col-resize; }
369
418
 
370
419
  /* The inspector's tabs split a node's settings into General, Model, Behavior and Advanced: the
@@ -379,7 +428,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
379
428
  background: transparent; color: var(--text-2); font-size: var(--type-xs); font-weight: var(--weight-strong);
380
429
  }
381
430
  .inspector-tabs button:hover:not(:disabled):not([aria-selected="true"]) { background: transparent; color: var(--text); }
382
- .inspector-tabs button[aria-selected="true"] { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-raised, 0 0 0 1px var(--border)); }
431
+ .inspector-tabs button[aria-selected="true"] { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-raised); }
383
432
  .inspector-panel > .section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
384
433
 
385
434
  .field { display: grid; grid-template-columns: minmax(0, auto) 1fr; align-items: center; column-gap: var(--space-1); margin-bottom: var(--space-3); }
@@ -387,8 +436,6 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
387
436
  .field > input, .field > select, .field > textarea { grid-column: 1 / -1; grid-row: 2; }
388
437
  .field > .info-tip { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 6px; }
389
438
  .field textarea { min-height: 95px; }
390
- .two-fields { display: flex; gap: var(--space-3); }
391
- .two-fields > * { flex: 1; min-width: 0; }
392
439
  .tool-label { display: flex; align-items: center; gap: var(--space-2); padding: 6px 0; }
393
440
  .tool-label input { width: auto; min-height: 0; }
394
441
 
@@ -397,14 +444,15 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
397
444
  .prompt-field > textarea { min-height: 120px; max-height: 60vh; resize: none; overflow-y: auto; padding-right: 40px; }
398
445
  .prompt-field > .prompt-expand { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; z-index: 1; margin: var(--space-1); min-width: var(--control-height); }
399
446
  .prompt-field.fullscreen {
400
- position: fixed; z-index: 50; inset: var(--space-5); margin: 0; grid-template-rows: auto 1fr;
447
+ position: fixed; z-index: var(--z-raised); inset: var(--space-5); margin: 0; grid-template-rows: auto 1fr;
401
448
  padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border);
402
449
  border-radius: var(--card-radius); box-shadow: var(--shadow-menu);
403
450
  }
404
451
  .prompt-field.fullscreen > textarea { height: 100%; max-height: none; font-size: var(--type-sm); }
405
- /* The inspector is its own stacking context, so it rises above the canvas while a prompt is full screen. */
406
- body.prompt-fullscreen #inspector { z-index: 60; }
407
- .prompt-backdrop { position: fixed; inset: 0; z-index: 49; background: var(--overlay); }
452
+ /* The inspector is its own stacking context, so it rises over the backdrop, on the dialog layer, while
453
+ a prompt is full screen; menus and tooltips stay above it. */
454
+ body.prompt-fullscreen #inspector { z-index: calc(var(--z-dialog) + 1); }
455
+ .prompt-backdrop { position: fixed; inset: 0; z-index: var(--z-dialog); background: var(--overlay); }
408
456
 
409
457
  /* A "?" beside a label keeps a long explanation one hover or focus away (ADR 0022). The text
410
458
  stays in the document as the trigger's description. */
@@ -415,12 +463,12 @@ body.prompt-fullscreen #inspector { z-index: 60; }
415
463
  width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: var(--radius-full);
416
464
  background: transparent; color: var(--text-3); font-weight: var(--weight-regular);
417
465
  }
418
- .info-tip > button:hover:not(:disabled), .info-tip > button:focus-visible, .info-tip.open > button { color: var(--text); background: var(--hover, var(--bg-card)); }
466
+ .info-tip > button:hover:not(:disabled), .info-tip > button:focus-visible, .info-tip.open > button { color: var(--text); background: var(--hover); }
419
467
  .info-tip-text {
420
- position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-width: 360px;
468
+ position: absolute; z-index: var(--z-tooltip); top: calc(100% + 6px); left: 0; right: 0; max-width: 360px;
421
469
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border);
422
470
  background: var(--bg-input); color: var(--text-2); box-shadow: var(--shadow-menu);
423
- font-size: var(--type-xs); line-height: 1.5; font-weight: var(--weight-regular); white-space: normal;
471
+ font-size: var(--type-xs); line-height: var(--leading-xs); font-weight: var(--weight-regular); white-space: normal;
424
472
  opacity: 0; visibility: hidden; pointer-events: none;
425
473
  transition: opacity var(--dur-1) var(--ease-standard), visibility var(--dur-1);
426
474
  }
@@ -444,9 +492,9 @@ body.prompt-fullscreen #inspector { z-index: 60; }
444
492
  #inspector-body .disclosure > div { min-width: 0; margin-inline-start: var(--space-1); padding-inline-start: var(--space-3); border-inline-start: 1px solid var(--border); }
445
493
  #inspector-body .disclosure > div > .section:first-child { border-top: 0; padding-top: 0; }
446
494
 
447
- .help { font-size: var(--type-xs); line-height: 1.5; color: var(--text-2); }
448
- .link-button { font-size: var(--type-xs); font-weight: var(--weight-regular); margin-left: var(--space-5); border: 0; background: transparent; text-decoration: underline; color: var(--accent-text, var(--text-2)); min-height: 0; padding: 0; }
449
- .link-button:hover:not(:disabled) { background: transparent; color: var(--accent-text, var(--text)); }
495
+ .help { font-size: var(--type-xs); line-height: var(--leading-xs); color: var(--text-2); }
496
+ .link-button { font-size: var(--type-xs); font-weight: var(--weight-regular); margin-left: var(--space-5); border: 0; background: transparent; text-decoration: underline; color: var(--accent-text); min-height: 0; padding: 0; }
497
+ .link-button:hover:not(:disabled) { background: transparent; color: var(--accent-text); }
450
498
  .provider-warning { margin: 0 0 var(--space-3); }
451
499
 
452
500
  /* Skills in prompts (skill-picker.js): the `/` picker reuses the dropdown panel, and a name this
@@ -457,11 +505,11 @@ body.prompt-fullscreen #inspector { z-index: 60; }
457
505
  .skill-warning {
458
506
  display: flex; align-items: flex-start; gap: var(--space-1); margin: 0; padding: 4px var(--space-2);
459
507
  border-radius: var(--row-radius); color: var(--warn-text); box-shadow: inset 0 0 0 1px var(--warn);
460
- font-size: var(--type-xs); line-height: 1.5; cursor: help;
508
+ font-size: var(--type-xs); line-height: var(--leading-xs); cursor: help;
461
509
  }
462
510
  .skill-warning > svg { flex: none; margin-top: 2px; }
463
511
  /* controls.css loads after this file, so the picker's rules are scoped to win over .select-option. */
464
- .skill-picker.select-panel { z-index: 450; }
512
+ .skill-picker.select-panel { z-index: calc(var(--z-menu) + 1); }
465
513
  .skill-picker .skill-option { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; min-height: 36px; padding: 4px 8px; text-align: left; }
466
514
  .skill-picker .skill-option-command { display: block; min-width: 0; font-family: var(--font-mono); font-size: var(--type-row); overflow: hidden; text-overflow: ellipsis; }
467
515
  .skill-picker .skill-option-description { display: block; min-width: 0; color: var(--text-3); font-size: var(--type-xs); overflow: hidden; text-overflow: ellipsis; }
@@ -469,35 +517,31 @@ body.prompt-fullscreen #inspector { z-index: 60; }
469
517
  .skill-picker-hint { padding: 6px 8px 2px; border-top: 1px solid var(--border); margin-top: 4px; color: var(--text-3); font-size: var(--type-xs); }
470
518
 
471
519
  /* A validation problem is an error, and errors are the one colour the chrome allows. */
472
- .validation { font-size: var(--type-xs); line-height: 1.5; padding-left: 18px; color: var(--err-text); }
520
+ .validation { font-size: var(--type-xs); line-height: var(--leading-xs); padding-left: 18px; color: var(--err-text); }
473
521
  .valid { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--text-2); font-size: var(--type-xs); }
474
522
  /* A graph that passed validation says so with the one "done" colour the chrome allows. */
475
- .valid.ok::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
523
+ .valid.ok::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--ok); }
476
524
  /* The graph's id is a reference, not a field: one quiet line that never wraps the panel. */
477
525
  .graph-meta { margin: calc(-1 * var(--space-1)) 0 var(--space-3); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; -webkit-user-select: text; }
478
526
  .danger { color: var(--err-text); }
479
527
 
480
528
  .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
481
529
  .model-context { font-size: var(--type-xs); }
482
- .modifier-badge {
483
- display: inline-block; font-size: var(--type-xs); border-radius: var(--radius-xs); background: var(--bg-card);
484
- color: var(--text-2); padding: 2px 6px; margin: 2px 2px 6px 0;
485
- }
486
530
  .cycle-help { padding: var(--space-3); border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--btn-radius); margin-bottom: var(--space-3); }
487
- .cycle-help p { font-size: var(--type-xs); line-height: 1.5; }
531
+ .cycle-help p { font-size: var(--type-xs); line-height: var(--leading-xs); }
488
532
 
489
533
  /* The status strip -------------------------------------------------------- */
490
534
 
491
535
  .status {
492
- height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
536
+ height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
493
537
  gap: var(--space-4); border-top: 1px solid var(--border); padding: 0 var(--space-2) 0 var(--space-3); font-size: var(--type-xs);
494
538
  color: var(--text-3); background: var(--bg-surface);
495
539
  }
496
540
  .status button {
497
- border: 0; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); height: 22px; min-height: 0; padding: 0 var(--space-2);
498
- border-radius: var(--radius-xs); color: var(--text-3);
541
+ border: 0; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); height: 24px; min-height: 0; padding: 0 var(--space-2);
542
+ border-radius: var(--radius-sm); color: var(--text-3);
499
543
  }
500
- .status button:hover:not(:disabled) { background: var(--hover, var(--bg-card)); color: var(--text); }
544
+ .status button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
501
545
  .status.error { color: var(--err-text); }
502
546
  #status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
503
547
  .status-actions { display: flex; gap: var(--space-1); align-items: center; }
@@ -523,12 +567,13 @@ body.prompt-fullscreen #inspector { z-index: 60; }
523
567
  #rail-resize:hover, #rail-resize:focus-visible, .rail.is-resizing #rail-resize { background: var(--accent-soft); }
524
568
  .rail.is-resizing { user-select: none; }
525
569
  .rail-body, #graphs { min-height: 0; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; }
526
- .rail-body.is-scrolling, #graphs.is-scrolling, .rail-body:focus-visible, #graphs:focus-visible { scrollbar-color: var(--text-3) transparent; }
570
+ .rail-body.is-scrolling, #graphs.is-scrolling, .rail-body:focus-visible, #graphs:focus-visible { scrollbar-color: color-mix(in srgb, var(--text) 11%, transparent) transparent; }
527
571
  .rail-body::-webkit-scrollbar, #graphs::-webkit-scrollbar { width: 6px; height: 0; }
528
572
  .rail-body::-webkit-scrollbar-track, #graphs::-webkit-scrollbar-track { background: transparent; }
529
- .rail-body::-webkit-scrollbar-thumb, #graphs::-webkit-scrollbar-thumb { background: transparent; border-radius: var(--radius-sm); }
573
+ .rail-body::-webkit-scrollbar-thumb, #graphs::-webkit-scrollbar-thumb { background: transparent; border-radius: var(--radius-full); }
530
574
  .rail-body.is-scrolling::-webkit-scrollbar-thumb, #graphs.is-scrolling::-webkit-scrollbar-thumb,
531
- .rail-body:focus-visible::-webkit-scrollbar-thumb, #graphs:focus-visible::-webkit-scrollbar-thumb { background: var(--text-3); }
575
+ .rail-body:focus-visible::-webkit-scrollbar-thumb, #graphs:focus-visible::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 11%, transparent); }
576
+ .rail-body::-webkit-scrollbar-thumb:hover, #graphs::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 18%, transparent); }
532
577
  .rail-body::-webkit-scrollbar-button, #graphs::-webkit-scrollbar-button { display: none; }
533
578
  /* Tall enough to browse: about ten rows, and never more than the node library can spare. */
534
579
  #graphs { max-height: clamp(150px, 42vh, 420px); overflow-x: hidden; overflow-y: auto; }
@@ -46,8 +46,8 @@
46
46
  toggle.hidden = embedded;
47
47
  toggle.textContent = theme === 'dark' ? 'Light' : 'Dark';
48
48
  toggle.setAttribute('aria-label', theme === 'dark'
49
- ? 'Switch the graph editor to the light appearance'
50
- : 'Switch the graph editor to the dark appearance');
49
+ ? 'Switch the Graph Editor to the light appearance'
50
+ : 'Switch the Graph Editor to the dark appearance');
51
51
  }
52
52
  // The canvas draws its connection colours from the tokens, so a change repaints them.
53
53
  document.dispatchEvent(new CustomEvent('andorra:themechange', { detail: theme }));