@andorra-labs/code 0.1.10 → 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 (155) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +36 -0
  4. package/dist/src/app-server/protocol.d.ts +1 -0
  5. package/dist/src/app-server.d.ts +34 -1
  6. package/dist/src/app-server.js +264 -54
  7. package/dist/src/automation-service.js +1 -1
  8. package/dist/src/browser-session.d.ts +8 -0
  9. package/dist/src/browser-session.js +27 -1
  10. package/dist/src/browser-ui/app.js +237 -15
  11. package/dist/src/browser-ui/index.html +5 -5
  12. package/dist/src/browser-ui/style.css +110 -65
  13. package/dist/src/browser-ui/tokens.css +27 -26
  14. package/dist/src/coding-tools.d.ts +24 -0
  15. package/dist/src/coding-tools.js +71 -8
  16. package/dist/src/command-screens.js +1 -1
  17. package/dist/src/commands.js +1 -1
  18. package/dist/src/completion-gates.d.ts +42 -7
  19. package/dist/src/completion-gates.js +55 -9
  20. package/dist/src/completion.d.ts +8 -0
  21. package/dist/src/completion.js +19 -1
  22. package/dist/src/dashboard-view.js +2 -2
  23. package/dist/src/deadline.js +4 -0
  24. package/dist/src/graph-manager-chat.js +13 -13
  25. package/dist/src/graph-runner.js +39 -2
  26. package/dist/src/graph-server.js +9 -9
  27. package/dist/src/graph-sync.d.ts +8 -0
  28. package/dist/src/graph-sync.js +54 -3
  29. package/dist/src/graph-tool.js +1 -1
  30. package/dist/src/graph-ui/app.js +262 -93
  31. package/dist/src/graph-ui/controls.css +43 -22
  32. package/dist/src/graph-ui/controls.js +31 -1
  33. package/dist/src/graph-ui/embed.js +62 -13
  34. package/dist/src/graph-ui/icons.js +4 -0
  35. package/dist/src/graph-ui/index.html +3 -3
  36. package/dist/src/graph-ui/manager-state.js +2 -2
  37. package/dist/src/graph-ui/manager.css +19 -18
  38. package/dist/src/graph-ui/manager.js +11 -11
  39. package/dist/src/graph-ui/skill-picker.js +1 -1
  40. package/dist/src/graph-ui/studio-canvas.js +8 -8
  41. package/dist/src/graph-ui/studio.css +18 -15
  42. package/dist/src/graph-ui/studio.js +92 -35
  43. package/dist/src/graph-ui/style.css +122 -79
  44. package/dist/src/graph-ui/theme.js +2 -2
  45. package/dist/src/graph-ui/tokens.css +33 -29
  46. package/dist/src/graphs.d.ts +3 -2
  47. package/dist/src/graphs.js +3 -2
  48. package/dist/src/membership-errors.d.ts +7 -1
  49. package/dist/src/membership-errors.js +9 -3
  50. package/dist/src/pull-requests.d.ts +42 -6
  51. package/dist/src/pull-requests.js +11 -3
  52. package/dist/src/react-runtime.js +121 -14
  53. package/dist/src/read-document-doc.d.ts +20 -0
  54. package/dist/src/read-document-doc.js +524 -0
  55. package/dist/src/read-document-docx.d.ts +21 -0
  56. package/dist/src/read-document-docx.js +584 -0
  57. package/dist/src/read-document-text.d.ts +29 -0
  58. package/dist/src/read-document-text.js +67 -0
  59. package/dist/src/read-document-tool.d.ts +48 -0
  60. package/dist/src/read-document-tool.js +162 -0
  61. package/dist/src/read-document.d.ts +78 -0
  62. package/dist/src/read-document.js +353 -0
  63. package/dist/src/read-image.d.ts +29 -2
  64. package/dist/src/read-image.js +42 -17
  65. package/dist/src/runtime.d.ts +19 -0
  66. package/dist/src/runtime.js +10 -1
  67. package/dist/src/session-changes.d.ts +6 -1
  68. package/dist/src/session-changes.js +13 -5
  69. package/dist/src/side-panel.d.ts +6 -1
  70. package/dist/src/side-panel.js +12 -10
  71. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  72. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  73. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  74. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  75. package/dist/src/skills/bundled/provenance.json +4 -4
  76. package/dist/src/skills/runtime-skills.js +3 -3
  77. package/dist/src/stall-recovery.d.ts +6 -2
  78. package/dist/src/stall-recovery.js +7 -2
  79. package/dist/src/terminal-ui.js +2 -2
  80. package/dist/src/time-limit.d.ts +53 -0
  81. package/dist/src/time-limit.js +79 -0
  82. package/dist/src/tools.js +92 -7
  83. package/dist/src/transcript.js +1 -1
  84. package/dist/src/types.d.ts +6 -0
  85. package/dist/src/usage-analytics.d.ts +3 -1
  86. package/dist/src/usage-analytics.js +16 -2
  87. package/package.json +6 -26
  88. package/docs/README.md +0 -36
  89. package/docs/agents/README.md +0 -62
  90. package/docs/agents/install-for-agents.md +0 -56
  91. package/docs/agents/mcp-server.md +0 -212
  92. package/docs/agents/subagent-mode.md +0 -149
  93. package/docs/concepts/README.md +0 -47
  94. package/docs/concepts/jev-actionable-routing.md +0 -113
  95. package/docs/concepts/jev-decision-thresholds.md +0 -412
  96. package/docs/concepts/jev-efficiency.md +0 -217
  97. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  98. package/docs/concepts/limits.md +0 -52
  99. package/docs/concepts/memory.md +0 -10
  100. package/docs/concepts/security.md +0 -50
  101. package/docs/concepts/workspace-instructions.md +0 -29
  102. package/docs/getting-started/README.md +0 -82
  103. package/docs/getting-started/accounts.md +0 -78
  104. package/docs/getting-started/configure-providers.md +0 -132
  105. package/docs/guides/README.md +0 -13
  106. package/docs/guides/browser.md +0 -39
  107. package/docs/guides/desktop-app.md +0 -414
  108. package/docs/guides/extensions.md +0 -102
  109. package/docs/guides/graph-builder.md +0 -116
  110. package/docs/guides/headless.md +0 -46
  111. package/docs/guides/tui.md +0 -75
  112. package/docs/guides/update.md +0 -70
  113. package/docs/guides/web-search.md +0 -51
  114. package/docs/guides/windows-code-signing.md +0 -319
  115. package/docs/llms.txt +0 -45
  116. package/docs/reference/README.md +0 -7
  117. package/docs/reference/cli.md +0 -76
  118. package/docs/reference/config.md +0 -91
  119. package/docs/reference/slash-commands.md +0 -59
  120. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  121. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  122. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  123. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  124. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  125. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  126. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  127. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  128. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  129. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  130. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  131. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  132. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  133. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  134. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  135. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  136. package/scripts/jev-efficiency-eval.mjs +0 -187
  137. package/scripts/jev-efficiency-live.mjs +0 -193
  138. package/scripts/zcode-engine-replay.mjs +0 -223
  139. package/tests/agent-centric-mcp-test-plan.md +0 -208
  140. package/tests/analytics-settings-test-plan.md +0 -165
  141. package/tests/browser-cli-smoke.mjs +0 -276
  142. package/tests/browser-test-plan.md +0 -280
  143. package/tests/chat-side-panel-test-plan.md +0 -309
  144. package/tests/decision-engine-test-plan.md +0 -163
  145. package/tests/default-active-jev-test-plan.md +0 -85
  146. package/tests/harness-extensions-test-plan.md +0 -113
  147. package/tests/jev-all-decisions-test-plan.md +0 -156
  148. package/tests/jev-efficiency/criteria.json +0 -158
  149. package/tests/jev-efficiency/workloads.mjs +0 -242
  150. package/tests/jev-efficiency-test-plan.md +0 -198
  151. package/tests/permissions-sandbox-probe.mjs +0 -74
  152. package/tests/permissions-test-plan.md +0 -191
  153. package/tests/product-telemetry-test-plan.md +0 -536
  154. package/tests/thinking-stream-preview-test-plan.md +0 -136
  155. 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,7 +177,7 @@ 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); }
180
+ .graph-drafts-clear:hover:not(:disabled), .graph-drafts-toggle:hover { background: var(--hover); color: var(--text); }
177
181
  .graph-drafts-toggle { justify-self: start; margin: 2px var(--space-1) 0; display: inline-flex; align-items: center; gap: var(--space-1); }
178
182
  .graph-drafts-toggle .icon { flex: none; transition: transform var(--dur-1) var(--ease-standard); }
179
183
  .graph-drafts-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
@@ -188,10 +192,28 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
188
192
  /* Hover is one ink tier and selection a stronger one with full ink, the desktop rail's own rows; the
189
193
  selected row is the fill alone, with no edge bar. A row under keyboard focus shows the hover fill
190
194
  rather than a ring. */
191
- .graph-row:hover:not(:disabled), .graph-row:focus-visible { background: var(--hover, var(--rail-wash)); color: var(--text); outline: none; }
192
- .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); }
193
197
  .graph-row span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
194
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); }
195
217
 
196
218
  .library-label { margin-top: var(--space-5); }
197
219
  .library-group { margin: var(--space-2) 0; }
@@ -207,12 +229,12 @@ textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
207
229
  padding: 6px var(--space-2); border-radius: var(--row-radius); color: var(--text-2); font-weight: var(--weight-regular); cursor: grab;
208
230
  }
209
231
  .library-item:active:not(:disabled) { cursor: grabbing; }
210
- .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; }
211
233
  .library-item > svg.icon { grid-column: 1; grid-row: 1 / span 2; margin-top: 1px; color: var(--text-2); }
212
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; }
213
- .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); }
214
236
 
215
- .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); }
216
238
 
217
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); }
218
240
 
@@ -229,21 +251,44 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
229
251
  min-height: var(--chrome-height); flex-shrink: 0; display: flex; align-items: center; gap: var(--space-2);
230
252
  padding: 3px var(--space-3); border-bottom: 1px solid var(--border); background: var(--bg-surface);
231
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); }
232
262
  .chrome .icon-button { min-width: var(--control-height); min-height: var(--control-height); border-radius: var(--radius-sm); }
233
263
  .graph-heading { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; }
234
- .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); }
235
265
  .graph-heading span { font-size: var(--type-xs); color: var(--text-3); white-space: nowrap; }
236
266
  .graph-heading .chip { align-self: center; }
237
267
  .chrome-actions { display: flex; align-items: center; gap: var(--space-1); flex: none; }
238
268
  .chrome-actions > .primary { margin-left: var(--space-1); }
239
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; } }
240
285
 
241
286
  /* The overflow menu: an 8px popover with a 4px inset, rows on the 4px radius at the row height. A
242
287
  row under the pointer or keyboard focus fills one ink tier; menus show no focus ring. It arrives
243
288
  and leaves the same way (controls.css, "Exits"). */
244
289
  .menu { position: relative; }
245
290
  .menu-list {
246
- 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;
247
292
  display: flex; flex-direction: column; gap: 1px; padding: var(--space-1);
248
293
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
249
294
  animation: controls-panel-in var(--dur-1) var(--ease-standard);
@@ -252,10 +297,10 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
252
297
  justify-content: flex-start; width: 100%; min-height: var(--row-height); padding: 0 var(--space-2);
253
298
  background: transparent; color: var(--text); border-radius: var(--radius-xs); font-weight: var(--weight-regular);
254
299
  }
255
- .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; }
256
301
  .menu-list > button > svg.icon { color: var(--text-2); }
257
- /* A destructive item (an Agent's Delete) reads as one, icon included. */
258
- .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. */
259
304
  .menu-list > hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: var(--space-1) 0; }
260
305
  /* The graph-row context menu floats at the pointer instead of anchoring to a parent. */
261
306
  .graph-context { position: fixed; top: auto; left: 0; right: auto; }
@@ -302,7 +347,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
302
347
  /* The node's left edge is its input port. The outcome ports on the right belong to the outcomes
303
348
  themselves, so the node carries no generic right-hand circle of its own. */
304
349
  .node:before {
305
- content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
350
+ content: ""; position: absolute; width: 8px; height: 8px; border-radius: var(--radius-full);
306
351
  background: var(--bg-input); border: 1px solid var(--border-strong); top: 44px; left: -5px;
307
352
  }
308
353
  .node:after { display: none; }
@@ -313,7 +358,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
313
358
  .output-port {
314
359
  height: 25px; display: block; position: relative; width: calc(100% + 30px); margin-left: -18px;
315
360
  text-align: right; border: 0; border-top: 1px solid var(--border); border-radius: 0;
316
- 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;
317
362
  overflow: hidden; text-overflow: ellipsis;
318
363
  }
319
364
  .output-port[data-connected] { color: transparent; }
@@ -321,15 +366,15 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
321
366
  .output-port:last-child { border-radius: 0 0 var(--card-radius) var(--card-radius); }
322
367
  .output-port:after {
323
368
  content: ''; position: absolute; right: -4px; top: 9px; width: 8px; height: 8px;
324
- 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);
325
370
  }
326
371
  .output-port[data-connected]:after { background: var(--text-3); border-color: var(--text-3); }
327
- .node .output-port:hover:not(:disabled) { background: var(--hover, var(--bg-card)); }
372
+ .node .output-port:hover:not(:disabled) { background: var(--hover); }
328
373
 
329
374
  /* Canvas controls: one rounded rectangle of square icon buttons at the bottom centre, beside the
330
375
  minimap, which shares its corner. */
331
376
  .canvas-toolbar {
332
- 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%);
333
378
  display: flex; gap: 2px; align-items: center;
334
379
  padding: var(--space-1); background: var(--bg-input); border: 1px solid var(--border);
335
380
  border-radius: var(--radius-lg); box-shadow: var(--shadow-menu);
@@ -338,35 +383,37 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
338
383
  border: 0; background: transparent; width: var(--control-height); height: var(--control-height); min-height: 0;
339
384
  padding: 0; border-radius: var(--radius-sm); color: var(--text-2); font-weight: var(--weight-regular);
340
385
  }
341
- .canvas-toolbar button:hover:not(:disabled) { background: var(--hover, var(--bg-card)); color: var(--text); }
342
- .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); }
343
388
  .canvas-toolbar .toolbar-divider { height: 16px; border-left: 1px solid var(--border); margin: 0 var(--space-1); }
344
389
  #zoom { font-size: var(--type-xs); min-width: 40px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
345
390
 
346
391
  /* The canvas tips show until the reader dismisses them once; picking a destination always shows
347
392
  its own instruction here. */
348
393
  .canvas-hint {
349
- 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));
350
395
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
351
396
  color: var(--text-2); font-size: var(--type-xs); background: var(--bg-input); border: 1px solid var(--border);
352
397
  border-radius: var(--radius-md); box-shadow: var(--shadow-menu);
353
398
  }
354
399
  .canvas-hint .icon-button { min-width: 24px; width: 24px; min-height: 24px; height: 24px; border-radius: var(--radius-sm); }
355
- #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; }
356
403
 
357
404
  /* The node inspector ----------------------------------------------------- */
358
405
 
359
406
  #inspector {
360
407
  width: var(--panel); flex-shrink: 0; border-left: 1px solid var(--border);
361
- 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);
362
409
  }
363
410
  #inspector.hidden { display: none; }
364
411
  .panel-header {
365
412
  height: var(--chrome-height); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
366
413
  padding: 0 var(--space-4); border-bottom: 1px solid var(--border);
367
414
  }
368
- .panel-header strong { font-weight: var(--weight-strong); font-size: var(--type-md); }
369
- #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; }
370
417
  #resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 7px; cursor: col-resize; }
371
418
 
372
419
  /* The inspector's tabs split a node's settings into General, Model, Behavior and Advanced: the
@@ -381,7 +428,7 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
381
428
  background: transparent; color: var(--text-2); font-size: var(--type-xs); font-weight: var(--weight-strong);
382
429
  }
383
430
  .inspector-tabs button:hover:not(:disabled):not([aria-selected="true"]) { background: transparent; color: var(--text); }
384
- .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); }
385
432
  .inspector-panel > .section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
386
433
 
387
434
  .field { display: grid; grid-template-columns: minmax(0, auto) 1fr; align-items: center; column-gap: var(--space-1); margin-bottom: var(--space-3); }
@@ -389,8 +436,6 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
389
436
  .field > input, .field > select, .field > textarea { grid-column: 1 / -1; grid-row: 2; }
390
437
  .field > .info-tip { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 6px; }
391
438
  .field textarea { min-height: 95px; }
392
- .two-fields { display: flex; gap: var(--space-3); }
393
- .two-fields > * { flex: 1; min-width: 0; }
394
439
  .tool-label { display: flex; align-items: center; gap: var(--space-2); padding: 6px 0; }
395
440
  .tool-label input { width: auto; min-height: 0; }
396
441
 
@@ -399,14 +444,15 @@ main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
399
444
  .prompt-field > textarea { min-height: 120px; max-height: 60vh; resize: none; overflow-y: auto; padding-right: 40px; }
400
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); }
401
446
  .prompt-field.fullscreen {
402
- 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;
403
448
  padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border);
404
449
  border-radius: var(--card-radius); box-shadow: var(--shadow-menu);
405
450
  }
406
451
  .prompt-field.fullscreen > textarea { height: 100%; max-height: none; font-size: var(--type-sm); }
407
- /* The inspector is its own stacking context, so it rises above the canvas while a prompt is full screen. */
408
- body.prompt-fullscreen #inspector { z-index: 60; }
409
- .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); }
410
456
 
411
457
  /* A "?" beside a label keeps a long explanation one hover or focus away (ADR 0022). The text
412
458
  stays in the document as the trigger's description. */
@@ -417,12 +463,12 @@ body.prompt-fullscreen #inspector { z-index: 60; }
417
463
  width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: var(--radius-full);
418
464
  background: transparent; color: var(--text-3); font-weight: var(--weight-regular);
419
465
  }
420
- .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); }
421
467
  .info-tip-text {
422
- 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;
423
469
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--border);
424
470
  background: var(--bg-input); color: var(--text-2); box-shadow: var(--shadow-menu);
425
- 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;
426
472
  opacity: 0; visibility: hidden; pointer-events: none;
427
473
  transition: opacity var(--dur-1) var(--ease-standard), visibility var(--dur-1);
428
474
  }
@@ -446,9 +492,9 @@ body.prompt-fullscreen #inspector { z-index: 60; }
446
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); }
447
493
  #inspector-body .disclosure > div > .section:first-child { border-top: 0; padding-top: 0; }
448
494
 
449
- .help { font-size: var(--type-xs); line-height: 1.5; color: var(--text-2); }
450
- .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; }
451
- .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); }
452
498
  .provider-warning { margin: 0 0 var(--space-3); }
453
499
 
454
500
  /* Skills in prompts (skill-picker.js): the `/` picker reuses the dropdown panel, and a name this
@@ -459,11 +505,11 @@ body.prompt-fullscreen #inspector { z-index: 60; }
459
505
  .skill-warning {
460
506
  display: flex; align-items: flex-start; gap: var(--space-1); margin: 0; padding: 4px var(--space-2);
461
507
  border-radius: var(--row-radius); color: var(--warn-text); box-shadow: inset 0 0 0 1px var(--warn);
462
- font-size: var(--type-xs); line-height: 1.5; cursor: help;
508
+ font-size: var(--type-xs); line-height: var(--leading-xs); cursor: help;
463
509
  }
464
510
  .skill-warning > svg { flex: none; margin-top: 2px; }
465
511
  /* controls.css loads after this file, so the picker's rules are scoped to win over .select-option. */
466
- .skill-picker.select-panel { z-index: 450; }
512
+ .skill-picker.select-panel { z-index: calc(var(--z-menu) + 1); }
467
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; }
468
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; }
469
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; }
@@ -471,35 +517,31 @@ body.prompt-fullscreen #inspector { z-index: 60; }
471
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); }
472
518
 
473
519
  /* A validation problem is an error, and errors are the one colour the chrome allows. */
474
- .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); }
475
521
  .valid { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--text-2); font-size: var(--type-xs); }
476
522
  /* A graph that passed validation says so with the one "done" colour the chrome allows. */
477
- .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); }
478
524
  /* The graph's id is a reference, not a field: one quiet line that never wraps the panel. */
479
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; }
480
526
  .danger { color: var(--err-text); }
481
527
 
482
528
  .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
483
529
  .model-context { font-size: var(--type-xs); }
484
- .modifier-badge {
485
- display: inline-block; font-size: var(--type-xs); border-radius: var(--radius-xs); background: var(--bg-card);
486
- color: var(--text-2); padding: 2px 6px; margin: 2px 2px 6px 0;
487
- }
488
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); }
489
- .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); }
490
532
 
491
533
  /* The status strip -------------------------------------------------------- */
492
534
 
493
535
  .status {
494
- 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;
495
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);
496
538
  color: var(--text-3); background: var(--bg-surface);
497
539
  }
498
540
  .status button {
499
- border: 0; background: transparent; font-size: var(--type-xs); font-weight: var(--weight-regular); height: 22px; min-height: 0; padding: 0 var(--space-2);
500
- 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);
501
543
  }
502
- .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); }
503
545
  .status.error { color: var(--err-text); }
504
546
  #status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
505
547
  .status-actions { display: flex; gap: var(--space-1); align-items: center; }
@@ -525,12 +567,13 @@ body.prompt-fullscreen #inspector { z-index: 60; }
525
567
  #rail-resize:hover, #rail-resize:focus-visible, .rail.is-resizing #rail-resize { background: var(--accent-soft); }
526
568
  .rail.is-resizing { user-select: none; }
527
569
  .rail-body, #graphs { min-height: 0; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable; }
528
- .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; }
529
571
  .rail-body::-webkit-scrollbar, #graphs::-webkit-scrollbar { width: 6px; height: 0; }
530
572
  .rail-body::-webkit-scrollbar-track, #graphs::-webkit-scrollbar-track { background: transparent; }
531
- .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); }
532
574
  .rail-body.is-scrolling::-webkit-scrollbar-thumb, #graphs.is-scrolling::-webkit-scrollbar-thumb,
533
- .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); }
534
577
  .rail-body::-webkit-scrollbar-button, #graphs::-webkit-scrollbar-button { display: none; }
535
578
  /* Tall enough to browse: about ten rows, and never more than the node library can spare. */
536
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 Workflow Editor to the light appearance'
50
- : 'Switch the Workflow 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 }));