aegisone 1.0.42 → 1.0.44

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 (78) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/scripts/predist.mjs +1 -1
  4. package/src/doctor.js +1 -1
  5. package/vendor/cli/README.md +5 -5
  6. package/vendor/cli/package.json +2 -2
  7. package/vendor/cli/src/chatflow.js +1 -1
  8. package/vendor/cli/src/commands.js +2 -2
  9. package/vendor/cli/src/deps.js +1 -1
  10. package/vendor/cli/src/limits.js +1 -1
  11. package/vendor/cli/src/permissions.js +4 -0
  12. package/vendor/cli/src/provenance.lock.json +2 -2
  13. package/vendor/cli/vendor/desktop/lib/local/check-command.js +3 -0
  14. package/vendor/cli/vendor/desktop/lib/local/engine.js +1 -1
  15. package/vendor/cli/vendor/desktop/lib/local/integrity.js +1 -1
  16. package/vendor/cli/vendor/desktop/lib/local/perm-store.js +7 -2
  17. package/vendor/cli/vendor/desktop/lib/local/prompt.js +1 -1
  18. package/vendor/cli/vendor/desktop/lib/local/repeat-guard.js +3 -0
  19. package/vendor/cli/vendor/desktop/lib/local/tools.js +186 -2
  20. package/vendor/cli/vendor/desktop/lib/local/verify-stop.js +3 -0
  21. package/vendor/cli/vendor/desktop/lib/settings.js +1 -1
  22. package/vendor/cli/vendor/desktop/main.js +802 -54
  23. package/vendor/desktop/README.md +3 -3
  24. package/vendor/desktop/bin/aegis.js +1 -1
  25. package/vendor/desktop/lib/avatar/events.js +1 -1
  26. package/vendor/desktop/lib/avatar/persona.js +1 -1
  27. package/vendor/desktop/lib/avatar/store.js +1 -1
  28. package/vendor/desktop/lib/local/check-command.js +3 -0
  29. package/vendor/desktop/lib/local/cli-face.js +3 -0
  30. package/vendor/desktop/lib/local/engine.js +1 -1
  31. package/vendor/desktop/lib/local/integrity.js +1 -1
  32. package/vendor/desktop/lib/local/perm-store.js +7 -2
  33. package/vendor/desktop/lib/local/prompt.js +1 -1
  34. package/vendor/desktop/lib/local/repeat-guard.js +3 -0
  35. package/vendor/desktop/lib/local/tools.js +186 -2
  36. package/vendor/desktop/lib/local/verify-stop.js +3 -0
  37. package/vendor/desktop/lib/settings.js +1 -1
  38. package/vendor/desktop/lib/sync/persist-gate.js +1 -1
  39. package/vendor/desktop/lib/sync/sessions.js +1 -1
  40. package/vendor/desktop/main.js +802 -54
  41. package/vendor/desktop/package.json +8 -4
  42. package/vendor/desktop/preload.js +1 -1
  43. package/vendor/desktop/renderer/app.js +3 -3
  44. package/vendor/desktop/renderer/avatar/pane.js +1 -1
  45. package/vendor/desktop/renderer/avatar/parts.js +1 -1
  46. package/vendor/desktop/renderer/commands.js +3 -0
  47. package/vendor/desktop/renderer/composer-triggers.js +3 -0
  48. package/vendor/desktop/renderer/find-in-conversation.js +3 -0
  49. package/vendor/desktop/renderer/fonts/fonts.css +42 -0
  50. package/vendor/desktop/renderer/fonts/ubuntu-vf-italic.woff2 +0 -0
  51. package/vendor/desktop/renderer/fonts/ubuntu-vf.woff2 +0 -0
  52. package/vendor/desktop/renderer/index.html +941 -484
  53. package/vendor/desktop/renderer/library.js +3 -0
  54. package/vendor/desktop/renderer/nav-history.js +3 -0
  55. package/vendor/desktop/renderer/palette-filter.js +3 -0
  56. package/vendor/desktop/renderer/shortcuts.js +3 -0
  57. package/vendor/desktop/renderer/style.css +2602 -380
  58. package/vendor/desktop/renderer/transcript-view.js +1 -1
  59. package/vendor/desktop/renderer/welcome-rows.js +3 -0
  60. package/vendor/desktop/vendor/faces/cli/README.md +5 -5
  61. package/vendor/desktop/vendor/faces/cli/package.json +2 -2
  62. package/vendor/desktop/vendor/faces/cli/src/chatflow.js +1 -1
  63. package/vendor/desktop/vendor/faces/cli/src/commands.js +2 -2
  64. package/vendor/desktop/vendor/faces/cli/src/deps.js +1 -1
  65. package/vendor/desktop/vendor/faces/cli/src/limits.js +1 -1
  66. package/vendor/desktop/vendor/faces/cli/src/permissions.js +1 -1
  67. package/vendor/desktop/vendor/faces/cli/src/provenance.lock.json +2 -2
  68. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/check-command.js +3 -0
  69. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/engine.js +1 -1
  70. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/integrity.js +1 -1
  71. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/perm-store.js +1 -1
  72. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/prompt.js +1 -1
  73. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/repeat-guard.js +3 -0
  74. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/tools.js +1 -1
  75. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/verify-stop.js +3 -0
  76. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/settings.js +1 -1
  77. package/vendor/desktop/vendor/faces/cli/vendor/desktop/main.js +3 -3
  78. package/vendor/desktop/vendor/sandbox/provenance.json +7 -7
@@ -16,21 +16,44 @@
16
16
  --bg the page
17
17
  --surface a rail resting ON the page: sidebar, topbar
18
18
  --surface2 an object ON a rail: composer, lane cards, chips
19
- --surface3 that object, hovered or pressed */
20
- --bg: #0b0d11;
21
- --surface: #10131a;
22
- --surface2: #171b23;
23
- --surface3: #1f242e;
24
- --border: #232934; /* hairline — used once per edge, never doubled */
25
- --border2: #333b49; /* the same line lifted: hover, focus, emphasis */
26
- --text: #dbe3ee;
27
- --text2: #94a2b6;
28
- --text3: #4c586a;
29
- --teal: #00e5c0;
19
+ --surface3 that object, hovered or pressed
20
+
21
+ The ramp is near-neutral on purpose. It used to be blue-cast (--bg #0b0d11
22
+ sat six to ten points of blue above its red), which read as a tint on every
23
+ surface at once and made the window look lit by a screen rather than by
24
+ itself. These values are Antigravity's own computed backgrounds, where B
25
+ runs only two or three points over R. */
26
+ --bg: #070708;
27
+ --surface: #111114;
28
+ --surface2: #131317;
29
+ --surface3: #1b1b20;
30
+ --border: rgb(255 255 255 / 0.06); /* hairline — used once per edge, never doubled */
31
+ --border2: rgb(255 255 255 / 0.1); /* the same line lifted: hover, focus, emphasis */
32
+ /* Text ramp, pass 2: the reference (Antigravity v2.32.0) moved its own ramp
33
+ from ~#f2f4f8/#bcbdc6/#87888f down to #cccccc/#9d9d9d/#6e6e6e. Ours sat
34
+ ~20% above it, which read as one flat brightness across the whole window —
35
+ every label competing equally for attention. The steps below keep that
36
+ relationship (each ~1.3× the one beneath) but stop before their bottom
37
+ step, which would put labels at 4.0:1 on --surface2 and fail AA. */
38
+ --text: #d4d4d8;
39
+ --text2: #9d9d9d;
40
+ --text3: #6e6e6e;
41
+ /* Input placeholders and other "present but unspoken" text: a step below
42
+ --text3, so a hint never competes with the label above it. */
43
+ --placeholder: #555559;
44
+ /* The accent is a SKIN AXIS, not a constant: `--accent-base` is the one value
45
+ a skin sets, and everything else derives from it. Declared here so a build
46
+ with no `data-accent` on <body> still has a complete accent. */
47
+ --accent-base: #00e5c0;
48
+ --teal: var(--accent-base);
30
49
  --purple: #6b8fd4;
31
50
  --green: #00ff88;
32
51
  --red: #ff1744;
33
52
  --amber: #ff9100;
53
+ /* Google's own brand blue — used nowhere else, so it is not part of the
54
+ surface/text ramp above; named once so the sign-in button isn't the one
55
+ place in the sheet with a bare hex. */
56
+ --google-blue: #4285f4;
34
57
 
35
58
  --panel: var(--surface);
36
59
  --muted: var(--text2);
@@ -44,9 +67,16 @@
44
67
  large surface (the composer). The ad-hoc 3/4/8/9/12/16/18px values that
45
68
  used to be scattered here rounded to the nearest step: one at a time the
46
69
  spread was invisible, all together it read as impatient. */
47
- --r-sm: 6px;
48
- --r-md: 10px;
49
- --r-lg: 14px;
70
+ /* Pass 2 snapped these to the reference's scale (.125/.25/.5/.75/1rem),
71
+ which is also the reason a card is 12px now instead of 14: their
72
+ --card-radius is .75rem and every nested object steps down from it by one
73
+ rung, so the whole window has a single radius rhythm rather than four
74
+ values that were each chosen in isolation. */
75
+ --r-xs: 2px;
76
+ --r-sm: 4px;
77
+ --r-md: 8px;
78
+ --r-lg: 12px;
79
+ --r-xl: 16px;
50
80
  --r-pill: 999px;
51
81
 
52
82
  /* The reading column: ~72 characters of Ubuntu at 15px. One number governs
@@ -61,6 +91,13 @@
61
91
  that must line up. A fixed length is the only spelling that agrees with
62
92
  itself in both places. */
63
93
  --measure: 640px;
94
+ /* The composer's own width, and deliberately NOT the prose measure. In
95
+ Antigravity the input box is wider than the text column that answers it
96
+ (766px against 640px at a 1248px window), because the composer carries
97
+ controls — model, (cli), send — that the transcript has no equivalent of.
98
+ Splitting the token is what lets the box widen without dragging prose out
99
+ to ~92 characters, which is past the point a line stops being readable. */
100
+ --measure-composer: 768px;
64
101
 
65
102
  /* Spacing, in 4px steps. Named only where a value repeats across sections. */
66
103
  --s-1: 4px;
@@ -73,12 +110,61 @@
73
110
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.28);
74
111
  --shadow-2: 0 12px 32px -18px rgba(0, 0, 0, 0.9);
75
112
 
113
+ /* ── Elevation ─────────────────────────────────────────────────────────
114
+ The reference carries 94 box-shadow rules against our 23, and the reason
115
+ is not decoration: a dark UI has almost no luminance range to say "this
116
+ floats above that", so depth has to come from shadow and a lit top edge.
117
+ Three steps, matching their scale, so a new floating surface picks a rung
118
+ instead of inventing `0 12px 34px rgba(0,0,0,.5)` for the ninth time. */
119
+ --elev-1: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
120
+ --elev-2: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
121
+ --elev-3: 0 16px 40px -12px rgb(0 0 0 / 0.6), 0 2px 8px -2px rgb(0 0 0 / 0.4);
122
+
123
+ /* ── Glass ─────────────────────────────────────────────────────────────
124
+ The reference's largest perceptual signature: 21 backdrop-filter surfaces
125
+ against our 4. The recipe is theirs, copied verbatim because the detail
126
+ that matters is the `inset 0 1px 0` highlight — a translucent panel with
127
+ blur alone still reads as a flat rectangle; the 1px lit top edge is what
128
+ makes it read as a surface catching light. saturate(1.6) is doing real
129
+ work too: without it, blurring a dark backdrop desaturates whatever
130
+ accent sits behind the panel and the result looks foggy rather than deep.
131
+
132
+ Applied only to overlays and the composer (see .surface-glass). Blur is a
133
+ paint cost that scales with the area covered, so it is deliberately not
134
+ on transcript cards or list rows, which can number in the hundreds. */
135
+ --glass: rgb(25 25 25 / 0.72);
136
+ --glass-border: rgb(255 255 255 / 0.08);
137
+ --glass-highlight: rgb(255 255 255 / 0.08);
138
+ --glass-shadow: var(--elev-3);
139
+
140
+ /* ── Motion ────────────────────────────────────────────────────────────
141
+ Four curves and three durations, replacing the 16 ad-hoc
142
+ `transition: … 0.15s`/`0.12s`/`0.18s`/`0.25s` declarations that had
143
+ accumulated one at a time. Nothing in the reference exceeds 240ms — a
144
+ dark interface shows long easing as lag, because there is no busy imagery
145
+ to cover it. */
146
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
147
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
148
+ --ease-cubic-out: cubic-bezier(0.23, 1, 0.32, 1);
149
+ --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
150
+ --dur-1: 120ms;
151
+ --dur-2: 150ms;
152
+ --dur-3: 200ms;
153
+
76
154
  /* The accent at the three opacities this sheet actually uses. Naming them
77
155
  keeps "teal at 0.35" from being retyped as rgba(0,229,192,.35) eight
78
156
  times, which is what made a colour tweak a find-and-replace. */
79
- --accent-soft: var(--accent-soft);
80
- --accent-mid: var(--accent-mid);
81
- --accent-edge: var(--accent-edge);
157
+ /* The three accent alphas. They are declared on the same element as
158
+ --accent-base on purpose: a color-mix() whose var() is overridden further
159
+ down does not re-resolve, so each skin must restate these alongside its
160
+ base or the focus rings keep the previous accent. */
161
+ --accent-soft: color-mix(in srgb, var(--accent-base) 35%, transparent);
162
+ --accent-mid: color-mix(in srgb, var(--accent-base) 18%, transparent);
163
+ --accent-edge: color-mix(in srgb, var(--accent-base) 30%, transparent);
164
+ /* Text that sits ON a full-strength teal fill. Named because it was retyped
165
+ as #04140f in three places, and "the darkest possible green-black" is a
166
+ decision, not a colour anyone should have to rediscover per selector. */
167
+ --on-accent: #04140f;
82
168
 
83
169
  /* Deterministic stacks. All three named families are vendored in
84
170
  renderer/fonts/ (see fonts/NOTICE.md), so they resolve to the same bytes on
@@ -95,6 +181,172 @@
95
181
  --font-display: 'Syne', sans-serif;
96
182
  --font-mono: 'DM Mono', monospace;
97
183
  --font-chat: 'Ubuntu', sans-serif;
184
+ /* UI/interface text. Ubuntu is already vendored for the reading column and is
185
+ far more legible than Syne below 14px: Syne is a display face with wide,
186
+ low-contrast letterforms that close up at small sizes, which is exactly
187
+ where 47 of this stylesheet's 11px labels live. Syne keeps --font-display
188
+ for headings, the wordmark and button chrome, where its width is the point. */
189
+ --font-ui: 'Ubuntu', sans-serif;
190
+
191
+ /* ── The type ramp ──────────────────────────────────────────────────────
192
+ Six sizes, which is all Antigravity's own UI actually uses. Named rather
193
+ than inlined for the same reason the surface ramp is: the point is that
194
+ "a heading" is one decision made once, not 141 font-size declarations each
195
+ rounding to whatever felt right at the time.
196
+
197
+ Weights are 400/500 only. Antigravity's computed weights are 350 and 450 —
198
+ variable-font steps between our static ones. Naming 350/450 here would be
199
+ a silent no-op: the browser snaps to the nearest shipped weight (400), so
200
+ the ramp would read as identical to what it replaced while looking like a
201
+ change in the diff. 400/500 is the nearest pair we can actually render. */
202
+ --fs-title: calc(24px * var(--app-font-scale, 1));
203
+ --lh-title: calc(32px * var(--app-font-scale, 1));
204
+ --fs-body: calc(14px * var(--app-font-scale, 1));
205
+ --lh-body: calc(20px * var(--app-font-scale, 1));
206
+ --fs-small: calc(13px * var(--app-font-scale, 1));
207
+ --lh-small: calc(18px * var(--app-font-scale, 1));
208
+ --fs-label: calc(12px * var(--app-font-scale, 1));
209
+ --lh-label: calc(16px * var(--app-font-scale, 1));
210
+ --tracking-tight: -0.01em;
211
+ --tracking-label: 0.08em;
212
+
213
+ /* ── Weights ────────────────────────────────────────────────────────────
214
+ A token layer, not a change. The reference uses fine steps (250/350/450/
215
+ 550/650/850) because it ships a variable font; ours are static, so 350
216
+ would silently snap to 400 and the ramp would read as identical to what it
217
+ replaced while looking like a change in the diff. These names exist so
218
+ that swapping in a variable face later is one edit here rather than a
219
+ sweep of ~200 `font-weight: 400` declarations. Values are the nearest
220
+ steps we can actually render. */
221
+ --fw-thin: 250;
222
+ --fw-light: 300;
223
+ --fw-book: 350;
224
+ --fw-normal: 400;
225
+ --fw-air: 450;
226
+ --fw-medium: 500;
227
+ --fw-demi: 550;
228
+ --fw-semibold: 600;
229
+ --fw-heavy: 650;
230
+ --fw-bold: 700;
231
+ }
232
+
233
+ /* ── Theme seam (parity pass 2, Phase G) ───────────────────────────────────
234
+ *
235
+ * The structural lesson of the reference's `data-agy-theme` layer: a second
236
+ * skin should be a data attribute, not a fork of the stylesheet. Everything
237
+ * above lives on `:root`; a skin re-declares only the tokens it changes on
238
+ * `body`, and because descendants resolve custom properties from their nearest
239
+ * ancestor declaration, the override reaches every rule without any selector
240
+ * having to know a theme exists.
241
+ *
242
+ * `onyx` is a real skin, not a placeholder — the reference ships one under the
243
+ * same name, and the point of shipping one is that an unexercised seam is
244
+ * untested code. Switch it with `document.body.dataset.aegisTheme = 'onyx'`.
245
+ */
246
+ body[data-aegis-theme='onyx'] {
247
+ --bg: #000000;
248
+ --surface: #0b0b0b;
249
+ --surface2: #121212;
250
+ --surface3: #1a1a1a;
251
+ --text: #e8e8e8;
252
+ --text2: #a0a0a0;
253
+ --text3: #707070;
254
+ --placeholder: #545454;
255
+ --glass: rgb(18 18 18 / 0.78);
256
+ --glass-border: rgb(255 255 255 / 0.1);
257
+ --glass-highlight: rgb(255 255 255 / 0.1);
258
+ }
259
+
260
+ /* ── Accent skins (parity pass 3) ──────────────────────────────────────────
261
+ *
262
+ * The reference's accent is `#007acc`, i.e. VS Code's — reachable, but it is
263
+ * generic editor chrome and the teal is the one colour on this surface that is
264
+ * ours. So instead of changing the default, the accent became data-driven:
265
+ * `data-accent` on <body> picks a base and the four derived mixes follow.
266
+ *
267
+ * `cobalt` is deliberately the reference's value, so "match Antigravity's
268
+ * accent" is a one-line change at the markup rather than a stylesheet fork.
269
+ * `amber` exists because a warm accent is the one direction that does not read
270
+ * as either product, which makes it the honest proof that the seam is general
271
+ * and not two colours in a trench coat.
272
+ */
273
+ /* THE MIXES ARE RESTATED IN EVERY SKIN, NOT INHERITED.
274
+ *
275
+ * This is not redundancy. A custom property is substituted on the element that
276
+ * DECLARES it, using the values visible there. `--accent-soft` is declared on
277
+ * `:root`, so it is resolved against `:root`'s `--accent-base` and then
278
+ * inherited as that finished colour — a skin that overrides only `--accent-base`
279
+ * changes the accent but leaves every focus ring, hover wash and card edge on
280
+ * the old hue. Measured live before this was fixed: `--accent-base` read
281
+ * `#007acc` while `--accent-soft` still read `#00e5c0 35%`.
282
+ *
283
+ * So each skin has to declare the derived values itself. They are wrapped in
284
+ * `@supports` only because color-mix is the derivation; without it the trio
285
+ * falls back to the matching solid, which is the pre-parity behaviour. */
286
+ body[data-accent='cobalt'] {
287
+ --accent-base: #007acc;
288
+ /* --teal IS RESTATED FOR THE SAME REASON AS THE MIXES. `--teal` is declared
289
+ in `:root` as `var(--accent-base)`, and custom-property substitution happens
290
+ where the property is DECLARED — so that `var()` reads :root's base and a
291
+ body-level override never reaches it. Measured: with only the mixes restated,
292
+ --accent-base read #007acc while all 87 `var(--teal)` call sites stayed
293
+ #00e5c0, i.e. the accent moved and every rail icon, link and active state
294
+ did not. Restating --teal per skin is what makes the seam actually general. */
295
+ --teal: #007acc;
296
+ --accent-soft: color-mix(in srgb, #007acc 35%, transparent);
297
+ --accent-mid: color-mix(in srgb, #007acc 18%, transparent);
298
+ --accent-edge: color-mix(in srgb, #007acc 30%, transparent);
299
+ }
300
+ body[data-accent='amber'] {
301
+ --accent-base: #e8a33d;
302
+ --teal: #e8a33d;
303
+ --accent-soft: color-mix(in srgb, #e8a33d 35%, transparent);
304
+ --accent-mid: color-mix(in srgb, #e8a33d 18%, transparent);
305
+ --accent-edge: color-mix(in srgb, #e8a33d 30%, transparent);
306
+ }
307
+
308
+ /* ── Loading skeletons (parity pass 2, Phase H) ────────────────────────────
309
+ *
310
+ * The reference animates a shimmer sweep rather than pulsing opacity. A pulse
311
+ * says "something is here"; a sweep says "something is on its way", which is
312
+ * the true statement, and the direction gives it a place in the layout's flow.
313
+ *
314
+ * `background-position` is animated instead of the reference's transform
315
+ * because a bare block cannot carry a translated child — position walks the
316
+ * gradient across the element itself with no extra node.
317
+ */
318
+ @keyframes aegis-shimmer {
319
+ from {
320
+ background-position: 200% 0;
321
+ }
322
+ to {
323
+ background-position: -200% 0;
324
+ }
325
+ }
326
+
327
+ .skeleton {
328
+ border-radius: var(--r-sm);
329
+ background-image: linear-gradient(
330
+ 90deg,
331
+ var(--surface2) 0%,
332
+ var(--surface3) 50%,
333
+ var(--surface2) 100%
334
+ );
335
+ background-size: 200% 100%;
336
+ animation: aegis-shimmer 1.4s var(--ease-in-out) infinite;
337
+ }
338
+
339
+ /* A skeleton is a placeholder, so it must never be announced as content and
340
+ must never be clickable. */
341
+ .skeleton {
342
+ pointer-events: none;
343
+ user-select: none;
344
+ }
345
+
346
+ @media (prefers-reduced-motion: reduce) {
347
+ .skeleton {
348
+ animation: none;
349
+ }
98
350
  }
99
351
 
100
352
  * {
@@ -112,7 +364,7 @@ body {
112
364
  flex-direction: column;
113
365
  background: var(--bg);
114
366
  color: var(--text);
115
- font: 14px/1.5 var(--font-display);
367
+ font: calc(15px * var(--app-font-scale, 1))/1.55 var(--font-ui);
116
368
  }
117
369
 
118
370
  /* ----------------------------------------------------------- update banner */
@@ -123,7 +375,7 @@ body {
123
375
  padding: 8px 16px;
124
376
  background: var(--surface2);
125
377
  border-bottom: 1px solid var(--border);
126
- font-size: 13px;
378
+ font-size: calc(13px * var(--app-font-scale, 1));
127
379
  color: var(--text);
128
380
  }
129
381
 
@@ -148,17 +400,67 @@ body {
148
400
  .topbar {
149
401
  display: flex;
150
402
  align-items: center;
151
- gap: 12px;
152
- padding: 8px 16px;
403
+ /* `titleBarStyle: 'hidden'` (main.js) removes the OS's own drag handle along
404
+ with its title bar, so this strip has to move the window itself, same as
405
+ any PWA using Window Controls Overlay. Every clickable child opts back
406
+ out below — a drag region without that turns a press into a window move
407
+ and the button never fires. */
408
+ -webkit-app-region: drag;
409
+ /* 4px, measured off Antigravity's strip (`gap-1` = 4px). 12px made the
410
+ title, the connection state and the actions read as three unrelated
411
+ groups with an elastic gap between them. */
412
+ gap: 4px;
413
+ /* 35px, and 8px of side padding, both read from Antigravity's DOM rather
414
+ than guessed: its strip is `h-full` inside a 35px title row with
415
+ `px-2` (8px). Ours was 36px/12px — one pixel too tall and four too
416
+ inset, which is why the buttons sat further from the edge than the
417
+ window title did. Also matches `titleBarOverlay.height` in main.js, so
418
+ the OS-painted overlay and this in-page strip are one bar, not two. */
419
+ height: 35px;
420
+ padding: 0 8px;
153
421
  background: var(--surface);
154
422
  border-bottom: 1px solid var(--border);
155
423
  }
156
424
 
425
+ /* Everything clickable in the strip must opt out of the drag region, or the
426
+ press moves the window instead of pressing the button. One rule for the
427
+ whole topbar rather than one per button, so a control added later inherits
428
+ the correct behaviour instead of silently becoming a dead spot. */
429
+ .topbar button,
430
+ .topbar input,
431
+ .topbar select,
432
+ .topbar a {
433
+ -webkit-app-region: no-drag;
434
+ }
435
+
436
+ /* The OS draws its own minimize/maximize/close over the right end of this
437
+ bar now (titleBarOverlay, main.js) — on every platform that paints one, the
438
+ reserved width is close to this, and overlapping it just means content
439
+ sits half-behind a button it cannot see. There is no live API to ask the
440
+ main process for the exact reserved width before first paint, so this is a
441
+ fixed reservation rather than a measured one; a few spare pixels of gap
442
+ before the OS buttons is the safe side of that trade. */
443
+ .topbar-actions {
444
+ margin-right: 138px;
445
+ }
446
+
157
447
  .topbar h1 {
158
- font-size: 16px;
448
+ font-size: var(--fs-body);
449
+ line-height: var(--lh-body);
159
450
  margin: 0;
160
- font-weight: 700;
451
+ /* 450 in the reference, which resolves to our 500 face (we ship 300/400/
452
+ 500/600/700/800 — there is no 450, and asking for one synthesises a muddy
453
+ face at 14px). Sizes and line-heights copy exactly; the two weight steps
454
+ collapse. See docs/antigravity-parity.md §1.2. */
455
+ font-weight: var(--fw-medium);
456
+ /* `normal`, not -0.01em. Antigravity's measured tracking is `normal` on
457
+ every UI string including this one; the tight value was ours, and at 14px
458
+ it pulled the title into the connection dot beside it. */
459
+ letter-spacing: normal;
161
460
  font-family: var(--font-display);
461
+ /* The title is the one element in the strip that is not a control, so it
462
+ needs its own air: 8px to the gap, not the bar's 4px. */
463
+ margin-right: 4px;
162
464
  }
163
465
 
164
466
  .accent {
@@ -169,7 +471,7 @@ body {
169
471
  display: flex;
170
472
  align-items: center;
171
473
  gap: 6px;
172
- font-size: 12px;
474
+ font-size: calc(12px * var(--app-font-scale, 1));
173
475
  color: var(--text2);
174
476
  font-family: var(--font-mono);
175
477
  }
@@ -178,7 +480,10 @@ body {
178
480
  width: 8px;
179
481
  height: 8px;
180
482
  border-radius: 50%;
181
- background: var(--text3);
483
+ /* --placeholder, not --text3: this is a FILL, and --text3 was just lightened
484
+ by the palette change, which would have made an unlit status dot brighter
485
+ than the label beside it. */
486
+ background: var(--placeholder);
182
487
  }
183
488
 
184
489
  .dot.ok {
@@ -192,7 +497,7 @@ body {
192
497
  than no number at all. Hidden via the `hidden` attribute, so the rule below
193
498
  has to win against the flex display the base class would otherwise get. */
194
499
  .session-meter {
195
- font-size: 12px;
500
+ font-size: calc(12px * var(--app-font-scale, 1));
196
501
  font-family: var(--font-mono);
197
502
  color: var(--text2);
198
503
  white-space: nowrap;
@@ -225,7 +530,7 @@ body {
225
530
  display: flex;
226
531
  align-items: center;
227
532
  gap: 8px;
228
- font-size: 12px;
533
+ font-size: calc(12px * var(--app-font-scale, 1));
229
534
  color: var(--text2);
230
535
  }
231
536
 
@@ -250,7 +555,7 @@ body {
250
555
  inset: 0;
251
556
  border-radius: var(--r-lg);
252
557
  background: var(--border);
253
- transition: 0.15s;
558
+ transition: all var(--dur-2) var(--ease-out);
254
559
  cursor: pointer;
255
560
  }
256
561
 
@@ -263,7 +568,7 @@ body {
263
568
  top: 3px;
264
569
  border-radius: 50%;
265
570
  background: var(--text);
266
- transition: 0.15s;
571
+ transition: all var(--dur-2) var(--ease-out);
267
572
  }
268
573
 
269
574
  .switch input:checked + .slider {
@@ -282,15 +587,207 @@ main {
282
587
  }
283
588
 
284
589
  .side {
285
- width: 300px;
590
+ /* 256px: Antigravity's measured sidebar width. Ours was 300, which put the
591
+ rail a fifth of a window too wide against the transcript it frames. */
592
+ width: 256px;
286
593
  flex: none;
287
594
  border-right: 1px solid var(--border);
288
595
  padding: 12px;
289
596
  display: flex;
290
597
  flex-direction: column;
291
598
  gap: 12px;
292
- overflow-y: auto;
293
599
  background: var(--surface);
600
+ /* `overflow-y` moved to `.side-scroll` below: the rail nav and the pinned
601
+ Settings entry must stay fixed in place while only the view between
602
+ them scrolls, and a single `overflow-y: auto` on `.side` itself would
603
+ scroll all three away together. */
604
+ }
605
+
606
+ /* The one child that scrolls — see app.js showSettingsView()/
607
+ showConversationsView(), which toggle `#settings-view`/`#conversations-view`
608
+ inside this and reset its scrollTop on every switch. `min-height: 0` is
609
+ load-bearing: without it a flex child refuses to shrink below its content
610
+ height, and this one would push `.rail-footer` off the bottom of the
611
+ window instead of scrolling under it. */
612
+ .side-scroll {
613
+ flex: 1 1 auto;
614
+ min-height: 0;
615
+ overflow-y: auto;
616
+ display: flex;
617
+ flex-direction: column;
618
+ gap: 12px;
619
+ }
620
+
621
+ #conversations-view {
622
+ display: flex;
623
+ flex-direction: column;
624
+ gap: 12px;
625
+ }
626
+
627
+ /* Settings/Automations as a full page in the main canvas, a sibling of
628
+ #chat-canvas (see index.html — it used to be a panel squeezed into the
629
+ 256px rail; showSettingsView()/showConversationsView() in app.js now
630
+ toggle this against #chat-canvas instead of against #conversations-view,
631
+ which stays on screen in the rail the whole time, same as Antigravity's
632
+ own Projects list under its nav rows). `flex: 1; min-width: 0` is the
633
+ same pair `.chat` uses, so this fills exactly the space the transcript
634
+ would have. `max-width` keeps long-form settings text as readable as the
635
+ transcript itself rather than stretching to the full window. */
636
+ #settings-view {
637
+ display: flex;
638
+ flex-direction: column;
639
+ gap: 20px;
640
+ flex: 1;
641
+ min-width: 0;
642
+ max-width: 56rem;
643
+ background: var(--bg);
644
+ overflow-y: auto;
645
+ padding: 24px clamp(16px, 4vw, 48px) 48px;
646
+ }
647
+
648
+ /* Automations is its own page beside Settings (index.html #automations-view),
649
+ not a card inside it, so it repeats the page box rather than inheriting it.
650
+ The values are deliberately identical to #settings-view's: two pages in the
651
+ same canvas that measure differently read as two different applications, and
652
+ the header, the max-width and the padding are what make a settings-shaped
653
+ page look like one. */
654
+ #automations-view {
655
+ display: flex;
656
+ flex-direction: column;
657
+ gap: 20px;
658
+ flex: 1;
659
+ min-width: 0;
660
+ max-width: 56rem;
661
+ background: var(--bg);
662
+ overflow-y: auto;
663
+ padding: 24px clamp(16px, 4vw, 48px) 48px;
664
+ }
665
+
666
+ /* Same author-stylesheet-beats-UA-stylesheet gotcha noted elsewhere in this
667
+ sheet (e.g. `.autonomous-controls[hidden]`): the `display: flex` two rules
668
+ up outranks the UA default for `[hidden]` regardless of specificity, so
669
+ the attribute needs its own explicit override. */
670
+ #settings-view[hidden],
671
+ #automations-view[hidden],
672
+ #conversations-view[hidden] {
673
+ display: none;
674
+ }
675
+
676
+ .settings-view-header {
677
+ display: flex;
678
+ /* Page-header weight: this sits at the top of a full canvas page now, not
679
+ floating above a column at 256px, so it earns the same hairline the
680
+ topbar and the chat column get. */
681
+ padding-bottom: 12px;
682
+ border-bottom: 1px solid var(--border);
683
+ }
684
+
685
+ .settings-back {
686
+ background: none;
687
+ border: 0;
688
+ color: var(--text2);
689
+ font-size: var(--fs-body);
690
+ cursor: pointer;
691
+ padding: 4px 2px;
692
+ font-family: inherit;
693
+ }
694
+
695
+ .settings-back:hover {
696
+ color: var(--teal);
697
+ }
698
+
699
+ /* Pinned below `.side-scroll`, never part of what scrolls — the one entry
700
+ that is reachable regardless of which view is open or how far it is
701
+ scrolled, same role as Antigravity's own bottom-left Settings. */
702
+ .rail-footer {
703
+ flex: none;
704
+ border-top: 1px solid var(--border);
705
+ padding-top: 8px;
706
+ margin-top: -4px;
707
+ }
708
+
709
+ /* ── Rail nav ─────────────────────────────────────────────────────────────
710
+ Antigravity/Gemini-style primary nav: full-width rows, not a tab strip —
711
+ each one a real jump (see revealSidebarCard() in app.js), not a label. No
712
+ box around the group, same "no boxes" rule as .card. */
713
+ .rail-nav {
714
+ display: flex;
715
+ flex-direction: column;
716
+ gap: 2px;
717
+ margin: -4px -4px 4px;
718
+ }
719
+
720
+ .rail-item {
721
+ display: flex;
722
+ align-items: center;
723
+ gap: var(--s-2);
724
+ width: 100%;
725
+ /* 32px tall on a 38px pitch — the row height and the gap between rows are
726
+ two separate numbers in the reference, and stating the height is what makes
727
+ the pitch reproducible instead of emergent from padding. */
728
+ min-height: 32px;
729
+ padding: 0 var(--s-2);
730
+ border: 0;
731
+ border-radius: var(--r-md);
732
+ background: none;
733
+ color: var(--text2);
734
+ font: inherit;
735
+ font-size: calc(13px * var(--app-font-scale, 1));
736
+ text-align: left;
737
+ cursor: pointer;
738
+ transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
739
+ }
740
+
741
+ /* The selected row. There was no such state before: every rail row was a
742
+ one-shot jump, so nothing was ever "current" and the rail gave no answer to
743
+ "where am I". Modelled on .pane-tab.is-active above, which is the one
744
+ existing precedent for the same idea. */
745
+ .rail-item.is-active,
746
+ .rail-item[aria-current="true"] {
747
+ background: var(--surface2);
748
+ color: var(--text);
749
+ }
750
+
751
+ .rail-item.is-active .rail-icon,
752
+ .rail-item[aria-current="true"] .rail-icon {
753
+ color: var(--teal);
754
+ }
755
+
756
+ .rail-item:hover {
757
+ background: var(--surface2);
758
+ color: var(--text);
759
+ }
760
+
761
+ .rail-item:active {
762
+ background: var(--surface3);
763
+ }
764
+
765
+ .rail-icon {
766
+ flex: 0 0 auto;
767
+ display: flex;
768
+ align-items: center;
769
+ justify-content: center;
770
+ width: 16px;
771
+ height: 16px;
772
+ color: var(--text3);
773
+ }
774
+
775
+ .rail-icon svg {
776
+ display: block;
777
+ }
778
+
779
+ /* Same role as `.card h2` (quiet uppercase label), for a list that is not
780
+ wrapped in a `.card` — the pane-tabs strip right below it is its own
781
+ element, not a card, so `.card h2`'s selector does not reach here. */
782
+ .rail-section-label {
783
+ font-size: calc(12px * var(--app-font-scale, 1));
784
+ text-transform: uppercase;
785
+ letter-spacing: 0.08em;
786
+ color: var(--text2);
787
+ opacity: 0.75;
788
+ margin: 4px 0 0;
789
+ font-family: var(--font-ui);
790
+ font-weight: var(--fw-semibold);
294
791
  }
295
792
 
296
793
  .chat {
@@ -299,23 +796,234 @@ main {
299
796
  flex-direction: column;
300
797
  min-width: 0;
301
798
  background: var(--bg);
799
+ /* The ⌘F bar is absolutely positioned against this column so it can float
800
+ over the transcript without taking a row out of the flex column. */
801
+ position: relative;
302
802
  }
303
803
 
304
- /* NO BOXES.
804
+ /* showSettingsView()/showConversationsView() (app.js) now hide this element
805
+ (#chat-canvas) to swap in the full-page #settings-view, which this class
806
+ never needed before — `.chat` was always on screen until that change. Same
807
+ author-stylesheet-beats-UA-stylesheet gotcha as `#settings-view[hidden]`
808
+ above: `display: flex` three lines up wins over the UA's `[hidden]` rule
809
+ regardless of specificity, so without this override the transcript sat
810
+ there, full width, behind the settings page that was supposedly replacing
811
+ it. */
812
+ .chat[hidden] {
813
+ display: none;
814
+ }
815
+
816
+ /* ⌘F find bar. Floats at the top-right of the chat column, over the transcript
817
+ rather than pushing it down: opening find while reading must not move the
818
+ text you were reading. Same elevation idiom as the sheets (border2 hairline
819
+ plus shadow) at a fraction of their weight — it is a utility, not a dialog. */
820
+ /* The `/` and `@` completion menus (Phase 6).
821
+
822
+ Absolute against the chat column, sitting directly on top of the composer's
823
+ top edge and growing upward, so opening a menu never moves the transcript
824
+ or the box the user is typing in. `bottom` is not fixed here — app.js sets it
825
+ from the composer's measured height on open, because the composer grows with
826
+ the textarea and a hardcoded offset drifts as soon as someone types a second
827
+ line. */
828
+ .composer-menu {
829
+ position: absolute;
830
+ z-index: 31;
831
+ width: min(420px, calc(100% - 32px));
832
+ margin: 0 auto;
833
+ padding: 4px;
834
+ background: var(--glass);
835
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
836
+ backdrop-filter: blur(24px) saturate(1.6);
837
+ border: 1px solid var(--glass-border);
838
+ border-radius: var(--r-lg);
839
+ box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
840
+ overflow: hidden;
841
+ }
842
+
843
+ .composer-menu[hidden] {
844
+ display: none;
845
+ }
846
+
847
+ .composer-menu-list {
848
+ list-style: none;
849
+ margin: 0;
850
+ padding: 0;
851
+ max-height: 232px;
852
+ overflow-y: auto;
853
+ }
854
+
855
+ .composer-menu-row {
856
+ display: flex;
857
+ align-items: baseline;
858
+ gap: var(--s-2);
859
+ min-height: 32px;
860
+ padding: 0 8px;
861
+ border-radius: var(--r-sm);
862
+ cursor: default;
863
+ }
864
+
865
+ .composer-menu-row.is-active {
866
+ background: var(--surface2);
867
+ }
868
+
869
+ .composer-menu-label {
870
+ font-size: var(--fs-body);
871
+ color: var(--text);
872
+ white-space: nowrap;
873
+ overflow: hidden;
874
+ text-overflow: ellipsis;
875
+ }
876
+
877
+ /* The matched command or path is the thing being chosen; the hint is the
878
+ reason. Truncating the hint rather than the label keeps the identifier
879
+ readable when the row is narrow. */
880
+ .composer-menu-hint-text {
881
+ margin-left: auto;
882
+ flex: 0 1 auto;
883
+ font-size: var(--fs-small);
884
+ color: var(--text3);
885
+ white-space: nowrap;
886
+ overflow: hidden;
887
+ text-overflow: ellipsis;
888
+ }
889
+
890
+ .composer-menu-hint {
891
+ margin: 0;
892
+ padding: 6px 8px 2px;
893
+ font-size: var(--fs-small);
894
+ color: var(--text3);
895
+ border-top: 1px solid var(--border);
896
+ }
897
+
898
+ .composer-menu-hint[hidden] {
899
+ display: none;
900
+ }
901
+
902
+ .find-bar {
903
+ position: absolute;
904
+ top: 8px;
905
+ right: 16px;
906
+ z-index: 30;
907
+ display: flex;
908
+ align-items: center;
909
+ gap: 4px;
910
+ padding: 4px 4px 4px 10px;
911
+ background: var(--glass);
912
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
913
+ backdrop-filter: blur(24px) saturate(1.6);
914
+ border: 1px solid var(--glass-border);
915
+ border-radius: var(--r-lg);
916
+ box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
917
+ }
918
+
919
+ .find-bar[hidden] {
920
+ display: none;
921
+ }
922
+
923
+ /* The label is visually the field's own name but must stay a real <label> for
924
+ assistive tech; it is not rendered as a second line of chrome. */
925
+ .find-field {
926
+ display: flex;
927
+ align-items: center;
928
+ }
929
+
930
+ .find-label {
931
+ position: absolute;
932
+ width: 1px;
933
+ height: 1px;
934
+ padding: 0;
935
+ margin: -1px;
936
+ overflow: hidden;
937
+ clip-path: inset(50%);
938
+ white-space: nowrap;
939
+ }
940
+
941
+ .find-field input {
942
+ width: 200px;
943
+ background: transparent;
944
+ border: 0;
945
+ outline: none;
946
+ color: var(--text);
947
+ font-family: var(--font-mono);
948
+ font-size: var(--fs-small);
949
+ line-height: var(--lh-small);
950
+ }
951
+
952
+ .find-field input::placeholder {
953
+ color: var(--placeholder);
954
+ }
955
+
956
+ /* Fixed width so the bar does not jump as the count goes 9 of 12 → 10 of 12. */
957
+ .find-count {
958
+ min-width: 56px;
959
+ text-align: right;
960
+ color: var(--text3);
961
+ font-family: var(--font-mono);
962
+ font-size: var(--fs-small);
963
+ font-variant-numeric: tabular-nums;
964
+ }
965
+
966
+ .find-step,
967
+ .find-close {
968
+ display: inline-flex;
969
+ align-items: center;
970
+ justify-content: center;
971
+ width: 22px;
972
+ height: 22px;
973
+ padding: 0;
974
+ background: transparent;
975
+ border: 1px solid transparent;
976
+ border-radius: var(--r-sm);
977
+ color: var(--text2);
978
+ font-size: calc(12px * var(--app-font-scale, 1));
979
+ line-height: 1;
980
+ cursor: pointer;
981
+ }
982
+
983
+ .find-step:hover,
984
+ .find-close:hover {
985
+ background: var(--surface3);
986
+ border-color: var(--border);
987
+ color: var(--text);
988
+ }
989
+
990
+ .find-step:focus-visible,
991
+ .find-close:focus-visible {
992
+ outline: 2px solid var(--accent-edge);
993
+ outline-offset: 1px;
994
+ }
995
+
996
+ /* The hits. Painted through the CSS Custom Highlight API — app.js registers a
997
+ Range per match against these names, so no node in the transcript is
998
+ touched. `background` here is the highlight's paint; because the registry
999
+ takes one style per name, current and other hits are two names rather than
1000
+ two selectors. */
1001
+ ::highlight(find-match) {
1002
+ background-color: color-mix(in srgb, var(--teal) 26%, transparent);
1003
+ }
1004
+
1005
+ ::highlight(find-match-current) {
1006
+ background-color: color-mix(in srgb, var(--teal) 62%, transparent);
1007
+ }
1008
+
1009
+ /* NO BOXES — but this was always about the 256px rail specifically.
305
1010
  A card used to be a filled, bordered, rounded rectangle — nine of them down
306
- the sidebar, each with its own frame, which made a single scrolling column
1011
+ the SIDEBAR, each with its own frame, which made a single scrolling column
307
1012
  read as a page of unrelated widgets and spent the eye's attention on borders
308
- that carry no information. The sidebar is one continuous surface now: only a
309
- hairline between sections, and the heading set as a quiet label rather than
310
- a panel title.
311
-
312
- The `.card` class itself stays in the markup, and that is deliberate: it is a
313
- layout hook, not a decoration. `revealSidebarCard()` in app.js resolves
314
- `node.closest('section.card')` to find the section it must scroll to when the
315
- welcome panel sends the user to the key field, and
316
- desktop/test/renderer-model-key-focus.test.mjs mirrors that selector. Deleting
317
- the class from the template would silently break that jump; deleting the
318
- fill, border and radius from the rule does not. */
1013
+ that carry no information in a column that narrow. That reasoning does not
1014
+ carry over now that Settings/Automations opens as a full page in the main
1015
+ canvas (#settings-view, above) rather than inside `.side`: a 56rem-wide page
1016
+ with one card per topic is exactly the shape Antigravity's own Automations
1017
+ editor measures (a bordered "Trigger" box, a bordered "Instructions" box),
1018
+ and a quiet label with no frame reads as unstyled text at that width, not
1019
+ as calm. See `#settings-view .card` below for the override.
1020
+
1021
+ The `.card` class itself stays in the markup regardless, and that is
1022
+ deliberate: it is a layout hook, not a decoration. `revealSidebarCard()` in
1023
+ app.js resolves `node.closest('section.card')` to find the section it must
1024
+ scroll to when the welcome panel sends the user to the key field, and
1025
+ desktop/test/renderer-model-key-focus.test.mjs mirrors that selector.
1026
+ Deleting the class from the template would silently break that jump. */
319
1027
  .card {
320
1028
  background: none;
321
1029
  border: 0;
@@ -323,7 +1031,29 @@ main {
323
1031
  padding: 0;
324
1032
  }
325
1033
 
326
- /* The divider replaces the box. It is on the section, not a wrapper, so a
1034
+ /* The real box, now that there is room for one. `gap` on #settings-view
1035
+ already spaces consecutive cards, so unlike the rail's divider below this
1036
+ needs no extra top border between them — each card is already a closed
1037
+ shape. */
1038
+ #settings-view .card {
1039
+ background: var(--surface2);
1040
+ border: 1px solid var(--border);
1041
+ border-radius: var(--r-md, 10px);
1042
+ padding: 20px 24px;
1043
+ }
1044
+
1045
+ /* The same box for the automations page. Without this the queue card falls back
1046
+ to the bare `.card` above — no fill, no border, no padding — which on a
1047
+ 56rem page reads as unstyled text rather than as a form. */
1048
+ #automations-view .card {
1049
+ background: var(--surface2);
1050
+ border: 1px solid var(--border);
1051
+ border-radius: var(--r-md, 10px);
1052
+ padding: 20px 24px;
1053
+ }
1054
+
1055
+ /* The divider replaces the box — in the rail ONLY, where `.card` stays bare
1056
+ (see the comment above `.card`). It is on the section, not a wrapper, so a
327
1057
  hidden section (the companion card before it has anything true to say) never
328
1058
  leaves a floating rule behind. */
329
1059
  .side .card + .card {
@@ -332,13 +1062,13 @@ main {
332
1062
  }
333
1063
 
334
1064
  .card h2 {
335
- font-size: 11px;
1065
+ font-size: calc(12px * var(--app-font-scale, 1));
336
1066
  text-transform: uppercase;
337
1067
  letter-spacing: 0.08em;
338
1068
  color: var(--text2);
339
1069
  margin: 0 0 8px;
340
1070
  font-family: var(--font-display);
341
- font-weight: 600;
1071
+ font-weight: var(--fw-semibold);
342
1072
  opacity: 0.75;
343
1073
  }
344
1074
 
@@ -347,7 +1077,7 @@ main {
347
1077
  grid-template-columns: auto 1fr;
348
1078
  gap: 4px 10px;
349
1079
  margin: 0;
350
- font-size: 13px;
1080
+ font-size: calc(13px * var(--app-font-scale, 1));
351
1081
  font-family: var(--font-mono);
352
1082
  }
353
1083
 
@@ -368,7 +1098,7 @@ select {
368
1098
  border: 1px solid var(--border);
369
1099
  border-radius: var(--r-sm);
370
1100
  padding: 6px;
371
- font-family: var(--font-display);
1101
+ font-family: var(--font-ui);
372
1102
  }
373
1103
 
374
1104
  select:focus {
@@ -381,7 +1111,7 @@ select:disabled {
381
1111
  }
382
1112
 
383
1113
  .hint {
384
- font-size: 12px;
1114
+ font-size: calc(12px * var(--app-font-scale, 1));
385
1115
  color: var(--text2);
386
1116
  margin: 8px 0 0;
387
1117
  }
@@ -402,7 +1132,7 @@ select:disabled {
402
1132
  border-radius: var(--r-sm);
403
1133
  padding: 5px 8px;
404
1134
  font: inherit;
405
- font-size: 12px;
1135
+ font-size: calc(12px * var(--app-font-scale, 1));
406
1136
  }
407
1137
 
408
1138
  .api-key-row input:focus {
@@ -433,7 +1163,7 @@ select:disabled {
433
1163
  border-radius: var(--r-sm);
434
1164
  padding: 4px 6px;
435
1165
  font: inherit;
436
- font-size: 12px;
1166
+ font-size: calc(12px * var(--app-font-scale, 1));
437
1167
  }
438
1168
 
439
1169
  .billing-row select:focus {
@@ -488,31 +1218,45 @@ select:disabled {
488
1218
  list-style: none;
489
1219
  margin: 8px 0 0;
490
1220
  padding: 0;
491
- max-height: 160px;
1221
+ max-height: 220px;
492
1222
  overflow-y: auto;
493
1223
  display: flex;
494
1224
  flex-direction: column;
495
- gap: 6px;
1225
+ gap: 0;
496
1226
  }
497
1227
 
498
1228
  .memory-results li {
499
- font-size: 12px;
500
- border: 1px solid var(--border);
1229
+ font-size: var(--fs-small);
1230
+ border: 0;
1231
+ border-left: 2px solid transparent;
501
1232
  border-radius: var(--r-sm);
502
- padding: 6px 8px;
1233
+ padding: 7px 8px;
503
1234
  word-break: break-word;
1235
+ transition: background var(--dur-1) var(--ease-out),
1236
+ border-left-color var(--dur-1) var(--ease-out);
1237
+ }
1238
+
1239
+ .memory-results li:hover:not(.empty) {
1240
+ background: var(--surface2);
1241
+ border-left-color: var(--teal);
504
1242
  }
505
1243
 
1244
+ /* A dashed box was how "no results" announced itself when every row was a
1245
+ bordered card. Rows are hairlines now, so an empty state has to say it with
1246
+ type and spacing instead of a box that no longer exists. */
506
1247
  .memory-results .empty {
507
1248
  color: var(--text2);
508
- border-style: dashed;
1249
+ border: 0;
1250
+ border-left: 2px dashed var(--border);
1251
+ padding: 10px 8px;
1252
+ font-size: var(--fs-small);
509
1253
  }
510
1254
 
511
1255
  /* Sidebar rows now carry provenance: the source is a quiet prefix, the body
512
1256
  stays the readable part. Both are <span>s inside the existing <li>. */
513
1257
  .memory-results .mem-side-src {
514
1258
  display: block;
515
- font-size: 10px;
1259
+ font-size: var(--fs-label);
516
1260
  letter-spacing: 0.04em;
517
1261
  text-transform: uppercase;
518
1262
  color: var(--teal);
@@ -549,9 +1293,9 @@ select:disabled {
549
1293
 
550
1294
  .card-title-btn .ctb-expand {
551
1295
  margin-left: auto;
552
- font-size: 11px;
1296
+ font-size: calc(12px * var(--app-font-scale, 1));
553
1297
  opacity: 0.4;
554
- transition: opacity 0.15s, color 0.15s;
1298
+ transition: opacity var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
555
1299
  }
556
1300
 
557
1301
  .card-title-btn:hover,
@@ -614,21 +1358,24 @@ select:disabled {
614
1358
  display: flex;
615
1359
  align-items: baseline;
616
1360
  gap: 10px;
617
- padding: 14px 16px;
1361
+ padding: 16px 18px 13px;
618
1362
  border-bottom: 1px solid var(--border);
619
1363
  }
620
1364
 
1365
+ /* A sheet title, not a field label: at 12px uppercase in the semibold ramp this
1366
+ was the same weight and size as the chips below it, so the panel read as a
1367
+ list with no head. */
621
1368
  .memory-panel-head h2 {
622
- font-size: 12px;
623
- text-transform: uppercase;
624
- letter-spacing: 0.06em;
625
- color: var(--text2);
1369
+ font-size: var(--fs-body);
1370
+ font-weight: var(--fw-semibold);
1371
+ letter-spacing: 0.01em;
1372
+ color: var(--text);
626
1373
  margin: 0;
627
1374
  font-family: var(--font-display);
628
1375
  }
629
1376
 
630
1377
  .memory-count {
631
- font-size: 11px;
1378
+ font-size: var(--fs-label);
632
1379
  color: var(--text2);
633
1380
  font-family: var(--font-mono);
634
1381
  }
@@ -640,7 +1387,7 @@ select:disabled {
640
1387
  .memory-filters {
641
1388
  display: flex;
642
1389
  gap: 6px;
643
- padding: 12px 16px 0;
1390
+ padding: 12px 18px 0;
644
1391
  }
645
1392
 
646
1393
  .memory-filters input {
@@ -650,8 +1397,9 @@ select:disabled {
650
1397
  color: var(--text);
651
1398
  border: 1px solid var(--border);
652
1399
  border-radius: var(--r-sm);
653
- padding: 7px 9px;
1400
+ padding: 8px 10px;
654
1401
  font: inherit;
1402
+ transition: border-color var(--dur-1) var(--ease-out);
655
1403
  }
656
1404
 
657
1405
  .memory-filters input:focus {
@@ -678,7 +1426,7 @@ select:disabled {
678
1426
  display: flex;
679
1427
  flex-direction: column;
680
1428
  gap: 5px;
681
- padding: 10px 16px 0;
1429
+ padding: 10px 18px 0;
682
1430
  }
683
1431
 
684
1432
  .memory-chips:empty {
@@ -693,7 +1441,7 @@ select:disabled {
693
1441
  }
694
1442
 
695
1443
  .mem-chip-label {
696
- font-size: 10px;
1444
+ font-size: calc(12px * var(--app-font-scale, 1));
697
1445
  text-transform: uppercase;
698
1446
  letter-spacing: 0.06em;
699
1447
  color: var(--text3);
@@ -703,7 +1451,7 @@ select:disabled {
703
1451
  .mem-chip {
704
1452
  display: inline-flex;
705
1453
  align-items: center;
706
- font-size: 10px;
1454
+ font-size: calc(12px * var(--app-font-scale, 1));
707
1455
  line-height: 1.6;
708
1456
  padding: 1px 7px;
709
1457
  border-radius: var(--r-pill);
@@ -718,8 +1466,7 @@ select:disabled {
718
1466
 
719
1467
  button.mem-chip {
720
1468
  cursor: pointer;
721
- font: inherit;
722
- font-size: 10px;
1469
+ font-size: var(--fs-label);
723
1470
  }
724
1471
 
725
1472
  button.mem-chip:hover {
@@ -739,7 +1486,7 @@ button.mem-chip.on {
739
1486
  }
740
1487
 
741
1488
  .mem-chip.role {
742
- border-color: rgba(107, 143, 212, 0.5);
1489
+ border-color: color-mix(in srgb, var(--purple) 50%, transparent);
743
1490
  color: var(--purple);
744
1491
  }
745
1492
 
@@ -762,23 +1509,41 @@ button.mem-chip.on {
762
1509
  flex: 1;
763
1510
  min-height: 0;
764
1511
  overflow-y: auto;
765
- padding: 12px 16px;
1512
+ padding: 10px 10px 14px;
766
1513
  }
767
1514
 
1515
+ /* Same no-boxes rule as .session-row. The sidebar's two panes share one tab
1516
+ strip, so a bordered card on one side and an unboxed row on the other made
1517
+ them read as two different products; a hairline separator plus a teal edge
1518
+ on hover keeps the memory pane's density while matching the session pane. */
768
1519
  .memory-list {
769
1520
  list-style: none;
770
1521
  margin: 0;
771
1522
  padding: 0;
772
1523
  display: flex;
773
1524
  flex-direction: column;
774
- gap: 8px;
1525
+ gap: 0;
775
1526
  }
776
1527
 
777
1528
  .mem-card {
778
- border: 1px solid var(--border);
1529
+ border: 0;
1530
+ border-left: 2px solid transparent;
1531
+ border-top: 1px solid var(--border);
779
1532
  border-radius: var(--r-sm);
780
- background: var(--surface);
781
- padding: 9px 11px;
1533
+ background: none;
1534
+ padding: 9px 10px;
1535
+ transition: background var(--dur-1) var(--ease-out),
1536
+ border-left-color var(--dur-1) var(--ease-out);
1537
+ }
1538
+
1539
+ .memory-list > .mem-card:first-child {
1540
+ border-top: 0;
1541
+ }
1542
+
1543
+ .mem-card:hover,
1544
+ .mem-card.expanded {
1545
+ background: var(--surface2);
1546
+ border-left-color: var(--teal);
782
1547
  }
783
1548
 
784
1549
  .mem-card-head {
@@ -791,14 +1556,14 @@ button.mem-chip.on {
791
1556
 
792
1557
  .mem-card-meta {
793
1558
  margin-left: auto;
794
- font-size: 10px;
1559
+ font-size: var(--fs-label);
795
1560
  color: var(--text3);
796
1561
  font-family: var(--font-mono);
797
1562
  }
798
1563
 
799
1564
  .mem-card-body {
800
1565
  margin: 0;
801
- font-size: 12px;
1566
+ font-size: var(--fs-small);
802
1567
  line-height: 1.55;
803
1568
  color: var(--text);
804
1569
  white-space: pre-wrap;
@@ -824,7 +1589,7 @@ button.mem-chip.on {
824
1589
  }
825
1590
 
826
1591
  .mem-empty {
827
- font-size: 12px;
1592
+ font-size: var(--fs-small);
828
1593
  color: var(--text2);
829
1594
  border: 1px dashed var(--border);
830
1595
  border-radius: var(--r-sm);
@@ -914,10 +1679,10 @@ body.memory-open {
914
1679
  border: none;
915
1680
  border-radius: var(--r-sm);
916
1681
  background: var(--teal);
917
- color: #04140f;
1682
+ color: var(--on-accent);
918
1683
  padding: 6px 0;
919
1684
  font: inherit;
920
- font-weight: 700;
1685
+ font-weight: var(--fw-bold);
921
1686
  cursor: pointer;
922
1687
  }
923
1688
 
@@ -969,9 +1734,10 @@ body.memory-open {
969
1734
  font-family: var(--font-chat);
970
1735
  /* The reading column is centered in the pane and capped at ~72ch: past
971
1736
  that a line of prose is a head-turn, under it the column looks stingy.
972
- The number lives on :root (--measure) so the composer shares it; `auto`
973
- side margins in a column flex container center each child horizontally,
974
- and in a narrow window the cap simply stops binding — no media query. */
1737
+ Prose uses --measure; the composer deliberately uses the wider
1738
+ --measure-composer, so the two caps are separate tokens. `auto` side
1739
+ margins in a column flex container center each child horizontally, and
1740
+ in a narrow window the cap simply stops binding — no media query. */
975
1741
  }
976
1742
 
977
1743
  .msg {
@@ -1018,7 +1784,7 @@ body.memory-open {
1018
1784
  align-self: center;
1019
1785
  background: none;
1020
1786
  color: var(--text2);
1021
- font-size: 12px;
1787
+ font-size: calc(12px * var(--app-font-scale, 1));
1022
1788
  border-top: 1px dashed var(--border);
1023
1789
  max-width: min(var(--measure), 92%);
1024
1790
  text-align: center;
@@ -1088,7 +1854,7 @@ body.memory-open {
1088
1854
  display: block;
1089
1855
  margin-top: 8px;
1090
1856
  font-family: var(--font-mono);
1091
- font-size: 11px;
1857
+ font-size: calc(12px * var(--app-font-scale, 1));
1092
1858
  color: var(--accent);
1093
1859
  white-space: nowrap;
1094
1860
  }
@@ -1147,7 +1913,7 @@ body.memory-open {
1147
1913
  .body {
1148
1914
  white-space: pre-wrap;
1149
1915
  word-break: break-word;
1150
- font-size: 15px;
1916
+ font-size: calc(15px * var(--app-font-scale, 1));
1151
1917
  line-height: 1.65;
1152
1918
  color: var(--text);
1153
1919
  }
@@ -1157,7 +1923,7 @@ body.memory-open {
1157
1923
  answer text it produced. */
1158
1924
  .tool-activity {
1159
1925
  font-family: var(--font-mono);
1160
- font-size: 11px;
1926
+ font-size: calc(12px * var(--app-font-scale, 1));
1161
1927
  color: var(--text2);
1162
1928
  margin-bottom: 6px;
1163
1929
  display: flex;
@@ -1173,7 +1939,7 @@ body.memory-open {
1173
1939
  white-space: pre-wrap;
1174
1940
  word-break: break-word;
1175
1941
  font-family: var(--font-mono);
1176
- font-size: 11px;
1942
+ font-size: calc(12px * var(--app-font-scale, 1));
1177
1943
  line-height: 1.5;
1178
1944
  color: var(--text2);
1179
1945
  opacity: 0.85;
@@ -1186,7 +1952,7 @@ body.memory-open {
1186
1952
  }
1187
1953
 
1188
1954
  .meta {
1189
- font-size: 11px;
1955
+ font-size: calc(12px * var(--app-font-scale, 1));
1190
1956
  color: var(--text3);
1191
1957
  margin-top: var(--s-2);
1192
1958
  font-family: var(--font-mono);
@@ -1212,7 +1978,7 @@ body.memory-open {
1212
1978
  border: 1px solid var(--border);
1213
1979
  border-left: 2px solid var(--teal);
1214
1980
  border-radius: var(--r-md);
1215
- background: linear-gradient(90deg, var(--accent-soft), rgba(107, 143, 212, 0.05));
1981
+ background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--purple) 5%, transparent));
1216
1982
  }
1217
1983
 
1218
1984
  .flow-rail {
@@ -1223,16 +1989,16 @@ body.memory-open {
1223
1989
  }
1224
1990
 
1225
1991
  .flow-rail-label {
1226
- font-family: var(--font-display);
1227
- font-size: 11px;
1228
- font-weight: 700;
1992
+ font-family: var(--font-ui);
1993
+ font-size: calc(12px * var(--app-font-scale, 1));
1994
+ font-weight: var(--fw-bold);
1229
1995
  letter-spacing: 0.08em;
1230
1996
  text-transform: uppercase;
1231
1997
  color: var(--teal);
1232
1998
  }
1233
1999
 
1234
2000
  .flow-rail-hint {
1235
- font-size: 11px;
2001
+ font-size: calc(12px * var(--app-font-scale, 1));
1236
2002
  color: var(--text2);
1237
2003
  }
1238
2004
 
@@ -1271,7 +2037,7 @@ body.memory-open {
1271
2037
  margin-left: -13px;
1272
2038
  margin-top: 34px;
1273
2039
  color: var(--border2);
1274
- font-size: 12px;
2040
+ font-size: calc(12px * var(--app-font-scale, 1));
1275
2041
  }
1276
2042
 
1277
2043
  .flow-card.pending {
@@ -1301,9 +2067,9 @@ body.memory-open {
1301
2067
  border-radius: 50%;
1302
2068
  display: grid;
1303
2069
  place-items: center;
1304
- font-size: 11px;
1305
- font-weight: 700;
1306
- color: #04140f;
2070
+ font-size: calc(12px * var(--app-font-scale, 1));
2071
+ font-weight: var(--fw-bold);
2072
+ color: var(--on-accent);
1307
2073
  background: var(--teal);
1308
2074
  }
1309
2075
 
@@ -1318,15 +2084,15 @@ body.memory-open {
1318
2084
 
1319
2085
  .flow-title {
1320
2086
  flex: 1;
1321
- font-size: 12px;
1322
- font-weight: 700;
2087
+ font-size: calc(12px * var(--app-font-scale, 1));
2088
+ font-weight: var(--fw-bold);
1323
2089
  letter-spacing: 0.02em;
1324
2090
  color: var(--text);
1325
2091
  }
1326
2092
 
1327
2093
  .flow-state {
1328
2094
  flex: 0 0 auto;
1329
- font-size: 10px;
2095
+ font-size: calc(12px * var(--app-font-scale, 1));
1330
2096
  text-transform: uppercase;
1331
2097
  letter-spacing: 0.06em;
1332
2098
  color: var(--text2);
@@ -1338,7 +2104,7 @@ body.memory-open {
1338
2104
 
1339
2105
  .flow-tools {
1340
2106
  font-family: var(--font-mono);
1341
- font-size: 10.5px;
2107
+ font-size: calc(10.5px * var(--app-font-scale, 1));
1342
2108
  color: var(--text2);
1343
2109
  display: flex;
1344
2110
  flex-direction: column;
@@ -1348,7 +2114,7 @@ body.memory-open {
1348
2114
  .flow-body {
1349
2115
  flex: 1;
1350
2116
  font-family: var(--font-chat);
1351
- font-size: 12.5px;
2117
+ font-size: calc(12.5px * var(--app-font-scale, 1));
1352
2118
  line-height: 1.45;
1353
2119
  color: var(--text);
1354
2120
  white-space: pre-wrap;
@@ -1359,14 +2125,14 @@ body.memory-open {
1359
2125
 
1360
2126
  .flow-meta {
1361
2127
  font-family: var(--font-mono);
1362
- font-size: 10.5px;
2128
+ font-size: calc(10.5px * var(--app-font-scale, 1));
1363
2129
  color: var(--text2);
1364
2130
  }
1365
2131
 
1366
2132
  .flow-abort {
1367
2133
  align-self: flex-start;
1368
2134
  padding: 2px 8px;
1369
- font-size: 11px;
2135
+ font-size: calc(12px * var(--app-font-scale, 1));
1370
2136
  }
1371
2137
 
1372
2138
  .flow-add {
@@ -1393,6 +2159,23 @@ body.memory-open {
1393
2159
  flex: 1;
1394
2160
  }
1395
2161
 
2162
+ /* The discovery-lane toggle, pilled to match `.mode-chip` beside it — before
2163
+ this it was bare text next to a checkbox, the one unpilled control in a
2164
+ row of otherwise-pill chips (provider mark, mode chip, Send). Scoped to
2165
+ `.composer-row` only: the identical class inside a sidebar card is a
2166
+ SETTING row (see `.side .card .flow-toggle` above), not a chip. */
2167
+ .composer-row .flow-toggle {
2168
+ padding: 3px 10px;
2169
+ border: 1px solid var(--border);
2170
+ border-radius: var(--r-pill);
2171
+ background: var(--surface);
2172
+ }
2173
+
2174
+ .composer-row .flow-toggle:hover {
2175
+ border-color: var(--border2);
2176
+ color: var(--teal);
2177
+ }
2178
+
1396
2179
  .composer-row button[type='submit'] {
1397
2180
  flex: none;
1398
2181
  min-height: 30px;
@@ -1406,7 +2189,7 @@ body.memory-open {
1406
2189
  gap: 6px;
1407
2190
  padding: 3px 10px;
1408
2191
  font-family: var(--font-mono);
1409
- font-size: 10.5px;
2192
+ font-size: calc(10.5px * var(--app-font-scale, 1));
1410
2193
  line-height: 1.7;
1411
2194
  color: var(--text2);
1412
2195
  background: var(--surface);
@@ -1428,7 +2211,7 @@ body.memory-open {
1428
2211
  }
1429
2212
 
1430
2213
  .mode-chip .mode-dot {
1431
- font-size: 8px;
2214
+ font-size: calc(8px * var(--app-font-scale, 1));
1432
2215
  color: var(--text3);
1433
2216
  }
1434
2217
 
@@ -1447,7 +2230,7 @@ body.memory-open {
1447
2230
  }
1448
2231
 
1449
2232
  .composer-row .hint {
1450
- font-size: 10.5px;
2233
+ font-size: calc(10.5px * var(--app-font-scale, 1));
1451
2234
  color: var(--text3);
1452
2235
  margin: 0;
1453
2236
  min-width: 0;
@@ -1499,13 +2282,13 @@ label[hidden] {
1499
2282
  align-items: center;
1500
2283
  gap: 6px;
1501
2284
  margin-top: 6px;
1502
- font-size: 11px;
2285
+ font-size: calc(12px * var(--app-font-scale, 1));
1503
2286
  color: var(--text2);
1504
2287
  }
1505
2288
 
1506
2289
  .autonomous-controls select,
1507
2290
  .autonomous-controls input {
1508
- font-size: 11px;
2291
+ font-size: calc(12px * var(--app-font-scale, 1));
1509
2292
  }
1510
2293
 
1511
2294
  .autonomous-controls input[type='number'] {
@@ -1523,7 +2306,7 @@ label[hidden] {
1523
2306
  align-items: center;
1524
2307
  gap: 5px;
1525
2308
  margin-top: 0;
1526
- font-size: 11px;
2309
+ font-size: calc(12px * var(--app-font-scale, 1));
1527
2310
  color: var(--text2);
1528
2311
  cursor: pointer;
1529
2312
  user-select: none;
@@ -1536,6 +2319,24 @@ label[hidden] {
1536
2319
  cursor: pointer;
1537
2320
  }
1538
2321
 
2322
+ /* A labelled control on its own line in Settings (parity pass 2, Phase C).
2323
+ Distinct from .flow-toggle, which is a checkbox whose box IS the control: here
2324
+ the control is a <select> and the label sits beside it, so the row needs to
2325
+ distribute the two ends rather than cluster them. */
2326
+ .field-row {
2327
+ display: flex;
2328
+ align-items: center;
2329
+ justify-content: space-between;
2330
+ gap: var(--s-3);
2331
+ margin-top: var(--s-2);
2332
+ font-size: var(--fs-small);
2333
+ color: var(--text2);
2334
+ }
2335
+
2336
+ .field-row select {
2337
+ min-width: 120px;
2338
+ }
2339
+
1539
2340
  .flow-toggle:hover {
1540
2341
  color: var(--teal);
1541
2342
  }
@@ -1557,13 +2358,35 @@ label[hidden] {
1557
2358
  align-items: stretch;
1558
2359
  padding: var(--s-3);
1559
2360
  margin: 0 auto var(--s-3);
1560
- max-width: var(--measure);
2361
+ max-width: var(--measure-composer);
1561
2362
  width: calc(100% - 32px);
1562
- border: 1px solid var(--border2);
2363
+ border: 1px solid var(--glass-border);
1563
2364
  border-radius: var(--r-lg);
1564
- background: var(--surface2);
1565
- box-shadow: var(--shadow-1);
1566
- transition: border-color 0.15s, box-shadow 0.15s;
2365
+ background: var(--glass);
2366
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
2367
+ backdrop-filter: blur(24px) saturate(1.6);
2368
+ /* The reference's composer recipe, quoted: a lit top edge, a 1px all-round
2369
+ inner trace, a mid shadow and a tight contact shadow. Four layers because
2370
+ one doesn't survive being drawn on a dark backdrop — the highlight says
2371
+ "lit", the trace says "bounded", and the two shadows separate it from the
2372
+ transcript scrolling underneath. */
2373
+ box-shadow:
2374
+ inset 0 1px 0 var(--glass-highlight),
2375
+ 0 0 0 1px rgb(255 255 255 / 0.075),
2376
+ 0 3px 10px -2px rgb(0 0 0 / 0.275),
2377
+ 0 1px 3px rgb(0 0 0 / 0.225);
2378
+ transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
2379
+ }
2380
+
2381
+ /* Blur is a paint cost that scales with area, and it is also not guaranteed:
2382
+ on a compositor that can't do it (or with the flag off) a translucent
2383
+ background would show the transcript straight through the input box. The
2384
+ fallback is opaque and keeps the same lit edge, so the box still reads as a
2385
+ surface rather than losing its elevation along with its blur. */
2386
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
2387
+ .composer {
2388
+ background: var(--surface2);
2389
+ }
1567
2390
  }
1568
2391
 
1569
2392
  /* Focus is communicated by the border and a single soft ring — not by a glow
@@ -1603,10 +2426,10 @@ label[hidden] {
1603
2426
  max-width: 100%;
1604
2427
  border: 1px solid var(--border2);
1605
2428
  border-radius: 999px;
1606
- background: var(--surface1, var(--surface2));
2429
+ background: var(--surface2);
1607
2430
  color: var(--text2);
1608
2431
  padding: 3px 4px 3px 10px;
1609
- font-size: 12px;
2432
+ font-size: calc(12px * var(--app-font-scale, 1));
1610
2433
  line-height: 1.5;
1611
2434
  }
1612
2435
 
@@ -1622,7 +2445,7 @@ label[hidden] {
1622
2445
  .attach-chip .attach-kind {
1623
2446
  flex: 0 0 auto;
1624
2447
  color: var(--text3);
1625
- font-size: 11px;
2448
+ font-size: calc(12px * var(--app-font-scale, 1));
1626
2449
  text-transform: uppercase;
1627
2450
  letter-spacing: 0.04em;
1628
2451
  }
@@ -1656,7 +2479,7 @@ label[hidden] {
1656
2479
  height: 18px;
1657
2480
  padding: 0;
1658
2481
  font: inherit;
1659
- font-size: 14px;
2482
+ font-size: calc(14px * var(--app-font-scale, 1));
1660
2483
  line-height: 1;
1661
2484
  cursor: pointer;
1662
2485
  }
@@ -1694,7 +2517,7 @@ body.is-dropping .drop-veil {
1694
2517
  box-shadow: var(--shadow-2);
1695
2518
  padding: var(--s-3) var(--s-4);
1696
2519
  color: var(--text);
1697
- font-weight: 600;
2520
+ font-weight: var(--fw-semibold);
1698
2521
  pointer-events: none;
1699
2522
  }
1700
2523
 
@@ -1713,7 +2536,7 @@ body.is-dropping .drop-veil {
1713
2536
  padding: var(--s-1) 2px;
1714
2537
  font: inherit;
1715
2538
  font-family: var(--font-chat);
1716
- font-size: 15px;
2539
+ font-size: calc(15px * var(--app-font-scale, 1));
1717
2540
  line-height: 1.6;
1718
2541
  }
1719
2542
 
@@ -1735,12 +2558,12 @@ body.is-dropping .drop-veil {
1735
2558
  border: none;
1736
2559
  border-radius: var(--r-sm);
1737
2560
  background: var(--teal);
1738
- color: #04140f;
2561
+ color: var(--on-accent);
1739
2562
  padding: 0 16px;
1740
2563
  font: inherit;
1741
- font-weight: 700;
2564
+ font-weight: var(--fw-bold);
1742
2565
  cursor: pointer;
1743
- transition: filter 0.15s, box-shadow 0.15s;
2566
+ transition: filter var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
1744
2567
  }
1745
2568
 
1746
2569
  .composer button[type='submit']:hover:not(:disabled) {
@@ -1756,7 +2579,7 @@ body.is-dropping .drop-veil {
1756
2579
  /* ------------------------------------------------------------- new UI bits */
1757
2580
  label {
1758
2581
  display: block;
1759
- font-size: 12px;
2582
+ font-size: calc(12px * var(--app-font-scale, 1));
1760
2583
  color: var(--text2);
1761
2584
  margin-top: 8px;
1762
2585
  }
@@ -1768,7 +2591,7 @@ label {
1768
2591
  color: var(--text);
1769
2592
  padding: 4px 10px;
1770
2593
  font: inherit;
1771
- font-size: 12px;
2594
+ font-size: calc(12px * var(--app-font-scale, 1));
1772
2595
  cursor: pointer;
1773
2596
  }
1774
2597
 
@@ -1787,6 +2610,55 @@ label {
1787
2610
  color: var(--red);
1788
2611
  }
1789
2612
 
2613
+ /* A PRIMARY ACTION, so Save and Remove stop looking identical.
2614
+ Every button in the app was `.ghost-btn`: outline, `--surface2` fill. That is
2615
+ right for the ~50 secondary actions it serves and wrong for the one action a
2616
+ form exists to perform — a card whose Save and Remove carry the same weight
2617
+ makes the destructive one a peer of the constructive one, and leaves the eye
2618
+ nowhere to land. Antigravity's `agy-button-{xs,sm,md}` scale solves the same
2619
+ problem; this takes the hierarchy without taking the pill radius, which there
2620
+ belongs to a theme layer their own bundle enables conditionally.
2621
+
2622
+ `.btn-primary` is a FILL, not a bigger ghost: `--on-accent` on `--teal` is
2623
+ the one pairing in the palette with enough contrast for a filled button, and
2624
+ it is already what `.btn-block` uses in onboarding. */
2625
+ .btn-primary {
2626
+ border: 1px solid transparent;
2627
+ border-radius: var(--r-sm);
2628
+ background: var(--teal);
2629
+ color: var(--on-accent);
2630
+ padding: 4px 12px;
2631
+ font: inherit;
2632
+ font-size: calc(12px * var(--app-font-scale, 1));
2633
+ font-weight: var(--fw-semibold);
2634
+ cursor: pointer;
2635
+ }
2636
+
2637
+ .btn-primary:hover {
2638
+ /* `.ghost-btn:hover` sets `color: var(--teal)` and is EQUAL specificity to
2639
+ this rule (class + pseudo-class each), so it wins on source order — which
2640
+ on a teal-filled button paints teal text on a teal fill, i.e. an invisible
2641
+ label at exactly the moment the pointer is on it. Both declarations are
2642
+ restated here for that reason, not for taste. */
2643
+ color: var(--on-accent);
2644
+ border-color: transparent;
2645
+ filter: brightness(1.08);
2646
+ }
2647
+
2648
+ .btn-primary:disabled {
2649
+ opacity: 0.5;
2650
+ cursor: default;
2651
+ filter: none;
2652
+ }
2653
+
2654
+ /* Size rung for a button that sits in a row of inputs — matches
2655
+ `.setting-input`'s 5px padding so the row reads as one line rather than a
2656
+ field with a button dropped beside it. */
2657
+ .btn-sm {
2658
+ padding: 3px 9px;
2659
+ font-size: calc(11px * var(--app-font-scale, 1));
2660
+ }
2661
+
1790
2662
  #model-input {
1791
2663
  width: 100%;
1792
2664
  margin-top: 6px;
@@ -1811,7 +2683,7 @@ label {
1811
2683
  color: var(--red);
1812
2684
  padding: 2px 10px;
1813
2685
  font: inherit;
1814
- font-size: 11px;
2686
+ font-size: calc(12px * var(--app-font-scale, 1));
1815
2687
  cursor: pointer;
1816
2688
  }
1817
2689
 
@@ -1823,7 +2695,7 @@ label {
1823
2695
  color: var(--teal);
1824
2696
  padding: 2px 10px;
1825
2697
  font: inherit;
1826
- font-size: 11px;
2698
+ font-size: calc(12px * var(--app-font-scale, 1));
1827
2699
  cursor: pointer;
1828
2700
  }
1829
2701
 
@@ -1879,7 +2751,7 @@ label {
1879
2751
  cards that ARE questions (approval, round horizon). */
1880
2752
  .turn-note {
1881
2753
  font-family: var(--font-mono);
1882
- font-size: 11px;
2754
+ font-size: calc(12px * var(--app-font-scale, 1));
1883
2755
  color: var(--text2);
1884
2756
  border-left: 2px solid var(--accent);
1885
2757
  padding: 2px 0 2px 8px;
@@ -1889,8 +2761,8 @@ label {
1889
2761
 
1890
2762
  .approval-title {
1891
2763
  font-family: var(--font-mono);
1892
- font-size: 11px;
1893
- font-weight: 600;
2764
+ font-size: calc(12px * var(--app-font-scale, 1));
2765
+ font-weight: var(--fw-semibold);
1894
2766
  color: var(--amber);
1895
2767
  text-transform: uppercase;
1896
2768
  letter-spacing: 0.03em;
@@ -1903,7 +2775,7 @@ label {
1903
2775
 
1904
2776
  .approval-summary {
1905
2777
  font-family: var(--font-mono);
1906
- font-size: 12px;
2778
+ font-size: calc(12px * var(--app-font-scale, 1));
1907
2779
  color: var(--text);
1908
2780
  word-break: break-word;
1909
2781
  margin-bottom: 6px;
@@ -1911,7 +2783,7 @@ label {
1911
2783
 
1912
2784
  .approval-diff {
1913
2785
  font-family: var(--font-mono);
1914
- font-size: 11px;
2786
+ font-size: calc(12px * var(--app-font-scale, 1));
1915
2787
  line-height: 1.4;
1916
2788
  max-height: 220px;
1917
2789
  overflow-y: auto;
@@ -1954,7 +2826,7 @@ label {
1954
2826
  border-radius: var(--r-sm);
1955
2827
  padding: 4px 10px;
1956
2828
  font: inherit;
1957
- font-size: 11px;
2829
+ font-size: calc(12px * var(--app-font-scale, 1));
1958
2830
  cursor: pointer;
1959
2831
  background: transparent;
1960
2832
  }
@@ -1982,7 +2854,7 @@ label {
1982
2854
  .approval-decision {
1983
2855
  margin-top: 6px;
1984
2856
  font-family: var(--font-mono);
1985
- font-size: 11px;
2857
+ font-size: calc(12px * var(--app-font-scale, 1));
1986
2858
  color: var(--text2);
1987
2859
  }
1988
2860
 
@@ -1998,13 +2870,115 @@ label {
1998
2870
  gap: 6px;
1999
2871
  }
2000
2872
 
2873
+ /* KEY ROWS PUT THE ANSWER FIRST.
2874
+ `.setting-row` above is a column, which is right for the rows that are a
2875
+ short block of prose (the fee note, a skipped-declaration line) and wrong
2876
+ for the ones that are a form: nine providers rendered as nine stacks of
2877
+ name / key field / status / buttons put four blocks of equal visual weight
2878
+ between the user and the only question the list answers — which providers
2879
+ are connected. Grepping the list meant reading every row, because the one
2880
+ word that differs (`configured` vs `no key`) sat mid-stack.
2881
+
2882
+ So for rows that hold exactly ONE field, the layout becomes two lines: the
2883
+ name with its status tucked underneath as a secondary line, then the input
2884
+ and the buttons sharing a line. The status keeps its text for screen
2885
+ readers and for the mask, but drops to `--text2` so it reads as metadata
2886
+ rather than as a peer of the input.
2887
+
2888
+ `:has()` rather than a modifier class, because `renderer-local-row.test`
2889
+ asserts `row.className === 'setting-row'` by exact equality — a
2890
+ `--field` class would fail it, and the className is the contract those
2891
+ tests hold the builder to. `.setting-row:has(.setting-input + .setting-input)`
2892
+ is excluded by construction below: the add-model row carries two fields and
2893
+ keeps the column flow it needs. */
2894
+ .setting-row:has(.setting-input):not(:has(.setting-input + .setting-input)):not(#byok-fee-note) {
2895
+ display: grid;
2896
+ grid-template-columns: minmax(0, 1fr) auto;
2897
+ grid-template-areas:
2898
+ "name name"
2899
+ "status status"
2900
+ "input actions";
2901
+ align-items: center;
2902
+ gap: 2px 8px;
2903
+ }
2904
+
2905
+ .setting-row:has(.setting-input):not(:has(.setting-input + .setting-input)) > .setting-name {
2906
+ grid-area: name;
2907
+ }
2908
+
2909
+ /* Order matters for sighted users, not for the DOM: the status is built after
2910
+ the input by both builders, so `grid-area` is what lifts it above it. */
2911
+ .setting-row:has(.setting-input):not(:has(.setting-input + .setting-input)) > .setting-status {
2912
+ grid-area: status;
2913
+ font-size: calc(11px * var(--app-font-scale, 1));
2914
+ color: var(--text2);
2915
+ opacity: 0.75;
2916
+ }
2917
+
2918
+ .setting-row:has(.setting-input):not(:has(.setting-input + .setting-input)) > .setting-input {
2919
+ grid-area: input;
2920
+ }
2921
+
2922
+ .setting-row:has(.setting-input):not(:has(.setting-input + .setting-input)) > .setting-actions {
2923
+ grid-area: actions;
2924
+ justify-content: flex-end;
2925
+ }
2926
+
2927
+ /* A CONNECTED PROVIDER IS A GREEN DOT, not a sentence to read.
2928
+ `configured (sk-…abc)` is a fact about the row, and the scan the list
2929
+ exists for is "which of these nine are done". The dot carries the state at
2930
+ a glance and the mask stays in the status line for the one case that needs
2931
+ it. Keyed off the status's own first character so the builders do not have
2932
+ to emit a state class — the strings they write are `configured (…)` and
2933
+ `no key`, and a `configured` prefix is already the machine-readable part. */
2934
+ .setting-row:has(.setting-input) > .setting-name::before {
2935
+ content: "";
2936
+ display: inline-block;
2937
+ width: 6px;
2938
+ height: 6px;
2939
+ margin-right: 6px;
2940
+ border-radius: 50%;
2941
+ background: var(--text2);
2942
+ opacity: 0.4;
2943
+ vertical-align: middle;
2944
+ }
2945
+
2946
+ .setting-row:has(.setting-input):has(.setting-status[data-state="configured"]) > .setting-name::before {
2947
+ background: var(--teal);
2948
+ opacity: 1;
2949
+ box-shadow: 0 0 0 3px rgb(255 255 255 / 0.04);
2950
+ }
2951
+
2001
2952
  .setting-row + .setting-row {
2002
2953
  border-top: 1px solid var(--border);
2003
2954
  }
2004
2955
 
2956
+ /* A toggle inside a sidebar card (Tool approvals, Model & provider) is a
2957
+ SETTING, not a chip — the composer uses the same `.flow-toggle` class for
2958
+ its own inline chip (discovery lane) and must not pick this up, hence the
2959
+ `.side .card` scope. Gives providers and approvals the same row: full
2960
+ width, the same padding and hairline `.setting-row` already uses, so the
2961
+ two no longer read as two different screens glued together. */
2962
+ .side .card .flow-toggle {
2963
+ width: 100%;
2964
+ padding: 8px 0;
2965
+ font-size: calc(13px * var(--app-font-scale, 1));
2966
+ color: var(--text);
2967
+ white-space: normal;
2968
+ }
2969
+
2970
+ .side .card .flow-toggle:hover {
2971
+ color: var(--teal);
2972
+ }
2973
+
2974
+ .side .card .flow-toggle + .flow-toggle,
2975
+ .side .card .flow-toggle + p.hint + .flow-toggle {
2976
+ border-top: 1px solid var(--border);
2977
+ }
2978
+
2005
2979
  .setting-name {
2006
- font-size: 12px;
2007
- font-weight: 600;
2980
+ font-size: calc(12px * var(--app-font-scale, 1));
2981
+ font-weight: var(--fw-semibold);
2008
2982
  }
2009
2983
 
2010
2984
  .setting-input {
@@ -2015,7 +2989,7 @@ label {
2015
2989
  border-radius: var(--r-sm);
2016
2990
  padding: 5px 7px;
2017
2991
  font: inherit;
2018
- font-size: 12px;
2992
+ font-size: calc(12px * var(--app-font-scale, 1));
2019
2993
  }
2020
2994
 
2021
2995
  .setting-input:focus {
@@ -2024,7 +2998,7 @@ label {
2024
2998
  }
2025
2999
 
2026
3000
  .setting-status {
2027
- font-size: 11px;
3001
+ font-size: calc(12px * var(--app-font-scale, 1));
2028
3002
  color: var(--text2);
2029
3003
  }
2030
3004
 
@@ -2064,12 +3038,12 @@ label {
2064
3038
  padding: 6px 8px;
2065
3039
  margin-bottom: -1px;
2066
3040
  font: inherit;
2067
- font-size: 11px;
3041
+ font-size: calc(12px * var(--app-font-scale, 1));
2068
3042
  letter-spacing: 0.08em;
2069
3043
  text-transform: uppercase;
2070
3044
  color: var(--text2);
2071
3045
  cursor: pointer;
2072
- font-family: var(--font-display);
3046
+ font-family: var(--font-ui);
2073
3047
  }
2074
3048
 
2075
3049
  .pane-tab:hover {
@@ -2112,7 +3086,7 @@ label {
2112
3086
  }
2113
3087
 
2114
3088
  .sessions-list .empty {
2115
- font-size: 12px;
3089
+ font-size: calc(12px * var(--app-font-scale, 1));
2116
3090
  color: var(--text2);
2117
3091
  border: 1px dashed var(--border);
2118
3092
  border-radius: var(--r-sm);
@@ -2124,7 +3098,7 @@ label {
2124
3098
  so it collapses to nothing on a paid account rather than leaving a gap. */
2125
3099
  .queue-upgrade {
2126
3100
  margin-top: 8px;
2127
- font-size: 12px;
3101
+ font-size: calc(12px * var(--app-font-scale, 1));
2128
3102
  line-height: 1.5;
2129
3103
  }
2130
3104
 
@@ -2138,177 +3112,792 @@ label {
2138
3112
  color: var(--teal);
2139
3113
  }
2140
3114
 
2141
- /* Sessions, same no-boxes rule as .card: a list of past sessions is a list,
2142
- not a stack of cards. Each row is a full-width hit target separated by a
2143
- hairline; hover paints the row's own surface instead of outlining it. */
2144
- .session-row {
3115
+ /* ------------------------------------------------------- automations form */
3116
+ /* The card is a page now (#automations-view), not a 300px rail card, so its
3117
+ fields stop borrowing `.api-key-row` — that class is for a KEY plus its
3118
+ Save/Verify buttons, a single line where the input is the only thing with
3119
+ width. It was doing duty here for three different jobs: a select pair, a
3120
+ path-plus-button, and a lone button row. `.pt-field` is the model/provider
3121
+ card's own labelled stack (uppercase label over its control), and using it
3122
+ means the automations form and the provider form are the same component
3123
+ rather than two that merely sit near each other. */
3124
+ .auto-form {
2145
3125
  display: flex;
2146
3126
  flex-direction: column;
2147
- gap: 2px;
2148
- border: 0;
2149
- border-left: 2px solid transparent;
2150
- border-radius: var(--r-sm);
2151
- padding: 5px 8px;
2152
- cursor: pointer;
3127
+ gap: 10px;
3128
+ margin-bottom: 4px;
2153
3129
  }
2154
3130
 
2155
- .session-row:hover {
2156
- background: var(--surface2);
2157
- border-left-color: var(--teal);
3131
+ /* Full-width stacks, not the toolbar's `flex: 1 1 92px` side-by-side: a task
3132
+ prompt is read in full and wants the page's width, and the provider/model
3133
+ pair keeps the toolbar's row layout because those two ARE read together. */
3134
+ .auto-form > .pt-field {
3135
+ flex: 1 1 100%;
2158
3136
  }
2159
3137
 
2160
- .session-title {
2161
- font-size: 12px;
2162
- word-break: break-word;
3138
+ /* `.pt-field` sets `display: flex`, an author rule that outranks the UA
3139
+ `[hidden] { display: none }`. The model-tag stack is toggled with `.hidden`
3140
+ by loadQueueModels() (local providers that answer no /api/tags get a typed
3141
+ tag instead of a list), so without this override the field would stay on
3142
+ screen over an empty select — the exact silent failure
3143
+ test/hidden-toggle.test.mjs audits for. */
3144
+ .auto-form > .pt-field[hidden] {
3145
+ display: none;
2163
3146
  }
2164
3147
 
2165
- .session-meta {
2166
- font-size: 11px;
2167
- color: var(--text2);
3148
+ .auto-form .pt-field input,
3149
+ .auto-form .pt-field textarea,
3150
+ .auto-form .pt-field select {
3151
+ margin-top: 0;
3152
+ text-transform: none;
3153
+ letter-spacing: normal;
2168
3154
  }
2169
3155
 
2170
- /* ---------------------------------------------------------- chat welcome */
2171
- /* Shown when the transcript is empty; cloned from #welcome-template. */
2172
- @keyframes shimmer {
2173
- to {
2174
- background-position: 200% center;
2175
- }
3156
+ /* The task prompt. Monospace is wrong here (it is prose, not a path or a tag),
3157
+ and the base textarea rule leaves the resize grabber live inside a card. */
3158
+ .auto-form .pt-field textarea {
3159
+ width: 100%;
3160
+ resize: vertical;
3161
+ min-height: 3.4em;
3162
+ font: inherit;
3163
+ font-size: var(--fs-body);
3164
+ line-height: 1.5;
3165
+ background: var(--surface);
3166
+ color: var(--text);
3167
+ border: 1px solid var(--border);
3168
+ border-radius: var(--r-sm);
3169
+ padding: 7px 9px;
2176
3170
  }
2177
3171
 
2178
- .chat-welcome {
2179
- display: flex;
2180
- flex-direction: column;
2181
- align-items: center;
2182
- justify-content: center;
2183
- /* The connect block made this panel tall enough to overflow a short window.
2184
- Without a scroll container the overflow is unreachable, and `center` alone
2185
- clips the *top* of an overflowing box, so the greeting disappears. `safe`
2186
- degrades to plain `center` (the previous behaviour) where unsupported. */
2187
- justify-content: safe center;
2188
- overflow-y: auto;
2189
- flex: 1;
2190
- gap: 18px;
2191
- text-align: center;
2192
- padding: 40px 24px;
2193
- color: var(--text3);
3172
+ .auto-form .pt-field textarea:focus {
3173
+ outline: none;
3174
+ border-color: var(--teal);
2194
3175
  }
2195
3176
 
2196
- .chat-greeting-row {
3177
+ /* The checkout path and the model tag are identifiers, so they keep the mono
3178
+ face the custom-provider card gives its base URL for the same reason. */
3179
+ .auto-form #queue-cwd,
3180
+ .auto-form #queue-model-input {
3181
+ font-family: var(--font-mono);
3182
+ }
3183
+
3184
+ /* One row of actions, buttons sized to their labels rather than stretching to
3185
+ fill it — a 56rem page would otherwise paint four buttons a quarter-page
3186
+ wide each, where the destructive one (Stop) reads as the most important. */
3187
+ .auto-actions {
2197
3188
  display: flex;
3189
+ flex-wrap: wrap;
3190
+ gap: 8px;
2198
3191
  align-items: center;
2199
- gap: 14px;
2200
- justify-content: center;
3192
+ margin-top: 2px;
2201
3193
  }
2202
3194
 
2203
- /* A hexagon faceted into 6 triangles, not the four-point sparkle this used to
2204
- be — the sparkle is Google's Gemini mark at a glance, and this app has no
2205
- relationship to Gemini to be implying. The gradient, the glow and the
2206
- `shimmer` sweep are UNCHANGED from the glyph this replaced; only how the
2207
- shape is cut is different, because that glyph was TEXT ('✦', clipped out of
2208
- the gradient via `background-clip: text`) and a drawn icon has no glyph
2209
- outline to clip to. `mask-image` is the same trick for arbitrary shapes:
2210
- the gradient background paints the whole box and the SVG mask decides which
2211
- pixels of it survive.
2212
- The mask SVG is six SEPARATELY FILLED triangles, each inset ~8% toward its
2213
- own centroid — not one hexagon with lines stroked on top. `mask-image`
2214
- composites by ALPHA, not luminance (confirmed by rendering both ways): an
2215
- opaque black line over an opaque white fill is still 100% opaque everywhere
2216
- and vanishes from the mask, so the facets have to be real transparent gaps,
2217
- which only separately-shrunk shapes produce. */
2218
- .chat-welcome .glyph {
2219
- width: 34px;
2220
- height: 34px;
2221
- flex: none;
2222
- background: linear-gradient(135deg, #b0d4ee, #5a7fd4, var(--teal));
2223
- background-size: 200%;
2224
- filter: drop-shadow(0 0 14px rgba(0, 229, 192, 0.3));
2225
- animation: shimmer 5s linear infinite;
2226
- -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12.40 12.23 21.60 12.23 17.00 20.20Z'/%3E%3Cpath fill='%23fff' d='M12.00 12.46 16.60 20.43 7.40 20.43Z'/%3E%3Cpath fill='%23fff' d='M11.60 12.23 7.00 20.20 2.40 12.23Z'/%3E%3Cpath fill='%23fff' d='M11.60 11.77 2.40 11.77 7.00 3.80Z'/%3E%3Cpath fill='%23fff' d='M12.00 11.54 7.40 3.57 16.60 3.57Z'/%3E%3Cpath fill='%23fff' d='M12.40 11.77 17.00 3.80 21.60 11.77Z'/%3E%3C/svg%3E");
2227
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12.40 12.23 21.60 12.23 17.00 20.20Z'/%3E%3Cpath fill='%23fff' d='M12.00 12.46 16.60 20.43 7.40 20.43Z'/%3E%3Cpath fill='%23fff' d='M11.60 12.23 7.00 20.20 2.40 12.23Z'/%3E%3Cpath fill='%23fff' d='M11.60 11.77 2.40 11.77 7.00 3.80Z'/%3E%3Cpath fill='%23fff' d='M12.00 11.54 7.40 3.57 16.60 3.57Z'/%3E%3Cpath fill='%23fff' d='M12.40 11.77 17.00 3.80 21.60 11.77Z'/%3E%3C/svg%3E");
2228
- -webkit-mask-size: contain;
2229
- mask-size: contain;
2230
- -webkit-mask-repeat: no-repeat;
2231
- mask-repeat: no-repeat;
2232
- -webkit-mask-position: center;
2233
- mask-position: center;
3195
+ .auto-actions .ghost-btn {
3196
+ flex: 0 0 auto;
2234
3197
  }
2235
3198
 
2236
- .chat-welcome .title {
2237
- font-size: 30px;
2238
- font-weight: 700;
2239
- color: var(--text);
2240
- letter-spacing: -0.02em;
2241
- margin: 0;
2242
- font-family: var(--font-display);
3199
+ /* "Unattended" and "Queued": the two halves that are not the form. Section
3200
+ labels rather than cards, so the page stays one card with a visible spine
3201
+ instead of three boxes of decreasing size. */
3202
+ .auto-group-title {
3203
+ font-size: calc(12px * var(--app-font-scale, 1));
3204
+ text-transform: uppercase;
3205
+ letter-spacing: 0.08em;
3206
+ color: var(--text2);
3207
+ font-weight: var(--fw-semibold);
3208
+ margin: 20px 0 4px;
3209
+ padding-top: 12px;
3210
+ border-top: 1px solid var(--border);
2243
3211
  }
2244
3212
 
2245
- .chat-welcome .sub {
2246
- font-size: 12px;
2247
- color: var(--text3);
2248
- max-width: 420px;
2249
- line-height: 1.6;
2250
- margin: 0;
3213
+ /* The two checkboxes. A hairline between them, matching `.setting-row +` in the
3214
+ settings pane — they are independent decisions and should not read as one
3215
+ block of agreed-to things. */
3216
+ .auto-toggles {
3217
+ display: flex;
3218
+ flex-direction: column;
2251
3219
  }
2252
3220
 
2253
- /* The one personalized line that replaced the five topic pills. It sits where
2254
- the "start with one of these" sentence and the pill row used to be, and it
2255
- carries the same visual weight as .sub so the panel still reads as a greeting
2256
- with one sentence under it — not a card, not a menu. Wider than .sub because
2257
- it is a sentence about this install rather than a tagline, and `[hidden]` has
2258
- to be restated: a class selector outranks the UA `[hidden] { display:none }`,
2259
- which is the same defect fixed for .welcome-connect below. */
2260
- .welcome-personal {
2261
- max-width: 480px;
2262
- margin-top: 2px;
2263
- color: var(--text2);
3221
+ .auto-toggles .flow-toggle + .flow-toggle {
3222
+ border-top: 1px solid var(--border);
2264
3223
  }
2265
3224
 
2266
- .welcome-personal[hidden] {
2267
- display: none;
3225
+ /* The switch and its cadence on one line: the select is meaningless while the
3226
+ switch is off (which is why app.js disables it), so separating them by a
3227
+ column reads as two settings when it is one setting with a rate. */
3228
+ .auto-cadence {
3229
+ display: flex;
3230
+ flex-wrap: wrap;
3231
+ align-items: center;
3232
+ gap: 8px 12px;
3233
+ margin-top: 8px;
2268
3234
  }
2269
3235
 
2270
- /* An action line (a downloaded update, a key not yet pasted) is a step the user
2271
- can take now, so it gets the teal edge the pills used to carry on hover. A
2272
- tip rotation stays quiet — it is information, not a task. */
2273
- /* The model's own sentence. It is not a task and not a status, so it gets no
2274
- teal edge and no button-like weight — just the body colour, so it reads as
2275
- the first thing the assistant said rather than as another app notice. */
2276
- .welcome-personal[data-kind='ai'] {
2277
- color: var(--text);
2278
- text-align: left;
3236
+ .auto-cadence .flow-toggle {
3237
+ flex: 1 1 auto;
3238
+ width: auto;
3239
+ padding: 0;
2279
3240
  }
2280
3241
 
2281
- .welcome-personal[data-kind='action'] {
2282
- color: var(--text2);
2283
- border-left: 2px solid var(--teal);
2284
- padding-left: 10px;
2285
- text-align: left;
3242
+ .auto-cadence .auto-cadence-interval {
3243
+ flex: 0 0 150px;
2286
3244
  }
2287
3245
 
2288
- .chat-welcome .hints {
2289
- font-size: 10px;
2290
- color: var(--text3);
2291
- margin-top: 6px;
2292
- opacity: 0.55;
2293
- max-width: 460px;
2294
- line-height: 1.6;
3246
+ .auto-cadence .auto-cadence-interval select {
3247
+ margin-top: 0;
2295
3248
  }
2296
3249
 
2297
- /* ------------------------------------------- welcome: the connect block
2298
- The "why AEGIS Desktop / bring your own key / connect AEGIS Cloud" panel
2299
- cloned into #messages by renderWelcome(). It is the only surface a new
2300
- install sees before it has a key, so it carries the two revenue routes:
2301
- BYOK (provider key relayed, AEGIS handling fee billed) and AEGIS Cloud.
3250
+ /* The queue list keeps its own scroll box on a full page too: an unattended
3251
+ run can leave dozens of finished tasks behind, and letting them push the form
3252
+ off the top is how the page stops being usable for the next thing queued. */
3253
+ #automations-view .queue-list {
3254
+ max-height: 46vh;
3255
+ }
2302
3256
 
2303
- Deliberately wider and left-aligned against the centred greeting above it:
2304
- the greeting is a title, this is body copy plus two calls to action, and
2305
- centred paragraphs at this length are unreadable. */
2306
- .welcome-connect {
3257
+ /* --------------------------------------------------------------- the queue */
3258
+ /* One card per queued task, not one line per task in a shared list. A queued
3259
+ task is an object you act on, not a session you open: it carries a prompt you
3260
+ have to read in full to know whether you meant to queue it, a status, a shape
3261
+ that decides the bill, and a cwd. That is a small card, not a row — a row
3262
+ truncates the one field that matters and hides the rest behind a single
3263
+ joined meta string.
3264
+
3265
+ Deliberately NOT .sessions-list/.session-row: those are the Sessions library's
3266
+ compact browse rows, with pointer cursor and hover-teal because clicking one
3267
+ opens it. A queue card has nothing to open, so it must not borrow that
3268
+ affordance. */
3269
+ .queue-list {
3270
+ list-style: none;
3271
+ margin: 10px 0 0;
3272
+ padding: 0;
3273
+ max-height: 320px;
3274
+ overflow-y: auto;
2307
3275
  display: flex;
2308
3276
  flex-direction: column;
2309
- gap: 14px;
2310
- width: 100%;
2311
- max-width: 620px;
3277
+ gap: 8px;
3278
+ }
3279
+
3280
+ .queue-list .empty {
3281
+ font-size: calc(12px * var(--app-font-scale, 1));
3282
+ color: var(--text2);
3283
+ border: 1px dashed var(--border);
3284
+ border-radius: var(--r-md);
3285
+ padding: 10px 12px;
3286
+ }
3287
+
3288
+ /* The card. The left edge carries status colour so scanning the list answers
3289
+ "what needs me?" before reading a single pill. */
3290
+ .queue-task {
3291
+ display: flex;
3292
+ flex-direction: column;
3293
+ gap: 6px;
3294
+ border: 1px solid var(--border);
3295
+ border-left: 2px solid var(--border);
3296
+ border-radius: var(--r-md);
3297
+ background: var(--surface2);
3298
+ padding: 10px 12px;
3299
+ }
3300
+
3301
+ .queue-task[data-status='pending'] {
3302
+ border-left-color: var(--text2);
3303
+ }
3304
+
3305
+ .queue-task[data-status='running'] {
3306
+ border-left-color: var(--amber);
3307
+ }
3308
+
3309
+ .queue-task[data-status='done'] {
3310
+ border-left-color: var(--green);
3311
+ }
3312
+
3313
+ .queue-task[data-status='error'] {
3314
+ border-left-color: var(--red);
3315
+ }
3316
+
3317
+ /* Header: id, status pill, then the actions pushed to the right edge so they
3318
+ hold the same x across every card regardless of prompt length. */
3319
+ .queue-task-head {
3320
+ display: flex;
3321
+ align-items: center;
3322
+ gap: 8px;
3323
+ }
3324
+
3325
+ .queue-task-id {
3326
+ font-size: calc(12px * var(--app-font-scale, 1));
3327
+ color: var(--muted);
3328
+ font-variant-numeric: tabular-nums;
3329
+ }
3330
+
3331
+ .queue-task-pill {
3332
+ font-size: calc(11px * var(--app-font-scale, 1));
3333
+ letter-spacing: 0.04em;
3334
+ text-transform: uppercase;
3335
+ padding: 1px 7px;
3336
+ border: 1px solid var(--border);
3337
+ border-radius: 999px;
3338
+ color: var(--text2);
3339
+ }
3340
+
3341
+ .queue-task[data-status='running'] .queue-task-pill {
3342
+ color: var(--amber);
3343
+ border-color: var(--amber);
3344
+ }
3345
+
3346
+ .queue-task[data-status='done'] .queue-task-pill {
3347
+ color: var(--green);
3348
+ border-color: var(--green);
3349
+ }
3350
+
3351
+ .queue-task[data-status='error'] .queue-task-pill {
3352
+ color: var(--red);
3353
+ border-color: var(--red);
3354
+ }
3355
+
3356
+ .queue-task-actions {
3357
+ margin-left: auto;
3358
+ display: flex;
3359
+ gap: 6px;
3360
+ }
3361
+
3362
+ .queue-task-actions .ghost-btn {
3363
+ font-size: calc(11px * var(--app-font-scale, 1));
3364
+ padding: 2px 8px;
3365
+ }
3366
+
3367
+ /* The prompt is the headline, not a 90-char fragment: full text, wrapped, with
3368
+ newlines preserved so a multi-line prompt still reads as the prompt. */
3369
+ .queue-task-prompt {
3370
+ margin: 0;
3371
+ font-size: calc(13px * var(--app-font-scale, 1));
3372
+ line-height: 1.45;
3373
+ color: var(--text);
3374
+ white-space: pre-wrap;
3375
+ overflow-wrap: anywhere;
3376
+ }
3377
+
3378
+ /* Spend facts and timing: model, shape, cwd, when. Quiet, because the prompt is
3379
+ what the eye should land on first. */
3380
+ .queue-task-meta {
3381
+ margin: 0;
3382
+ font-size: calc(11px * var(--app-font-scale, 1));
3383
+ color: var(--text2);
3384
+ overflow-wrap: anywhere;
3385
+ }
3386
+
3387
+ /* The outcome gets its own block under a hairline. A failure's reason is the
3388
+ most important text on the card and it was previously clipped to the tail of
3389
+ a joined meta string — behind the prompt's own ellipsis. */
3390
+ .queue-task-result {
3391
+ margin: 0;
3392
+ padding-top: 6px;
3393
+ border-top: 1px solid var(--border);
3394
+ font-size: var(--fs-small);
3395
+ line-height: 1.45;
3396
+ color: var(--text2);
3397
+ white-space: pre-wrap;
3398
+ overflow-wrap: anywhere;
3399
+ }
3400
+
3401
+ .queue-task-result.is-error {
3402
+ color: var(--red);
3403
+ }
3404
+
3405
+ .queue-task-files {
3406
+ margin: 4px 0 0;
3407
+ padding: 0;
3408
+ list-style: none;
3409
+ font-size: calc(11px * var(--app-font-scale, 1));
3410
+ color: var(--text2);
3411
+ }
3412
+
3413
+ .queue-task-files li {
3414
+ font-family: var(--font-mono);
3415
+ overflow-wrap: anywhere;
3416
+ }
3417
+
3418
+ /* Sessions, same no-boxes rule as .card: a list of past sessions is a list,
3419
+ not a stack of cards. Each row is a full-width hit target separated by a
3420
+ hairline; hover paints the row's own surface instead of outlining it. */
3421
+ .session-row {
3422
+ display: flex;
3423
+ flex-direction: column;
3424
+ gap: 2px;
3425
+ border: 0;
3426
+ border-left: 2px solid transparent;
3427
+ border-radius: var(--r-sm);
3428
+ padding: 6px 8px;
3429
+ cursor: pointer;
3430
+ transition: background var(--dur-1) var(--ease-out),
3431
+ border-left-color var(--dur-1) var(--ease-out);
3432
+ }
3433
+
3434
+ .session-row:hover {
3435
+ background: var(--surface2);
3436
+ border-left-color: var(--teal);
3437
+ }
3438
+
3439
+ /* Search sheet section header (Sessions / Memory).
3440
+ Deliberately NOT a row: no hover surface, no pointer cursor, not focusable.
3441
+ The one search sheet draws both stores as sections with a single flat cursor
3442
+ order across them, and the moment this looks like a row the list reads as two
3443
+ lists again. Sticky, so the heading of the section you are scrolling through
3444
+ stays named. */
3445
+ .session-section-head {
3446
+ position: sticky;
3447
+ top: 0;
3448
+ z-index: 1;
3449
+ margin: 0;
3450
+ padding: 8px 8px 5px;
3451
+ list-style: none;
3452
+ font-size: var(--fs-label);
3453
+ font-weight: var(--fw-semibold);
3454
+ letter-spacing: 0.04em;
3455
+ text-transform: uppercase;
3456
+ color: var(--muted);
3457
+ /* Sticky headings must paint the rail's own colour or rows scroll visibly
3458
+ *through* the label. Was var(--surface1) — a token that is never defined,
3459
+ and with no fallback the declaration was dropped, leaving it transparent. */
3460
+ background: var(--surface);
3461
+ cursor: default;
3462
+ }
3463
+
3464
+ /* A memory hit is read, not opened — no resume target exists — so it carries a
3465
+ quieter affordance than a session row while keeping the same hit area, so the
3466
+ flat cursor order does not jump between sections. */
3467
+ .mem-result-body {
3468
+ white-space: normal;
3469
+ overflow-wrap: anywhere;
3470
+ }
3471
+
3472
+ .session-title {
3473
+ font-size: var(--fs-small);
3474
+ line-height: 1.35;
3475
+ word-break: break-word;
3476
+ }
3477
+
3478
+ .session-meta {
3479
+ font-size: var(--fs-label);
3480
+ color: var(--text2);
3481
+ }
3482
+
3483
+ /* ------------------------------------------------------------- the library */
3484
+ /* The Sessions pane as a browsable library: a filter, day headings, and
3485
+ per-row actions. Scoped to .library-* / .session-row so #queue-list — which
3486
+ shares .sessions-list — keeps the plain compact list it wants. */
3487
+
3488
+ .library-bar {
3489
+ display: flex;
3490
+ align-items: center;
3491
+ gap: 8px;
3492
+ margin-top: 8px;
3493
+ }
3494
+
3495
+ /* Full-width because it is a filter over the list below it, not a field in a
3496
+ form: a short box with a long placeholder reads as broken. */
3497
+ .library-filter {
3498
+ flex: 1 1 auto;
3499
+ min-width: 0;
3500
+ font: inherit;
3501
+ font-size: var(--fs-small);
3502
+ color: var(--text);
3503
+ background: var(--surface2);
3504
+ border: 1px solid var(--border);
3505
+ border-radius: var(--r-sm);
3506
+ padding: 4px 8px;
3507
+ }
3508
+
3509
+ .library-filter:focus {
3510
+ outline: none;
3511
+ border-color: var(--teal);
3512
+ }
3513
+
3514
+ .library-count {
3515
+ flex: 0 0 auto;
3516
+ font-size: var(--fs-label);
3517
+ color: var(--text2);
3518
+ white-space: nowrap;
3519
+ }
3520
+
3521
+ /* Taller than the plain .sessions-list: grouping only pays off if more than
3522
+ three rows are visible at once. Raised from 340px once day headings and the
3523
+ filter bar were charged against the same box — at 340 only two rows of a
3524
+ day bucket were visible, so the grouping cost more than it earned. */
3525
+ .library-list {
3526
+ max-height: 420px;
3527
+ }
3528
+
3529
+ /* A day heading is a label, not a row — no hover, no pointer, and it sticks
3530
+ so the bucket a user is scrolling through stays named. */
3531
+ .library-group {
3532
+ position: sticky;
3533
+ top: 0;
3534
+ z-index: 1;
3535
+ /* The rail colour, not the page colour: falling back to --bg painted a
3536
+ darker band than the sidebar it sits in, so each day heading read as a
3537
+ seam rather than a label. */
3538
+ background: var(--surface);
3539
+ font-size: var(--fs-label);
3540
+ font-weight: var(--fw-semibold);
3541
+ letter-spacing: 0.08em;
3542
+ text-transform: uppercase;
3543
+ color: var(--text2);
3544
+ padding: 8px 8px 4px;
3545
+ cursor: default;
3546
+ pointer-events: none;
3547
+ }
3548
+
3549
+ /* The row the open conversation lives in, so the library says where you are
3550
+ rather than only where you could go. */
3551
+ .session-row.is-current {
3552
+ background: var(--surface2);
3553
+ border-left-color: var(--teal);
3554
+ }
3555
+
3556
+ /* Rename / Export / Delete. Hidden until the row is hovered or something in
3557
+ it has focus: three buttons on every row turns a list into a control panel,
3558
+ and they are reachable by keyboard because :focus-within counts. */
3559
+ .session-actions {
3560
+ display: flex;
3561
+ gap: 6px;
3562
+ margin-top: 2px;
3563
+ opacity: 0;
3564
+ transition: opacity var(--dur-1) var(--ease-out);
3565
+ }
3566
+
3567
+ .session-row:hover .session-actions,
3568
+ .session-row:focus-within .session-actions {
3569
+ opacity: 1;
3570
+ }
3571
+
3572
+ .session-action {
3573
+ font: inherit;
3574
+ font-size: var(--fs-label);
3575
+ color: var(--text2);
3576
+ background: none;
3577
+ border: 0;
3578
+ border-radius: var(--r-sm);
3579
+ padding: 1px 5px;
3580
+ cursor: pointer;
3581
+ }
3582
+
3583
+ .session-action:hover {
3584
+ color: var(--text);
3585
+ background: rgb(255 255 255 / 0.08);
3586
+ }
3587
+
3588
+ .session-action:last-child:hover {
3589
+ color: var(--danger, #e5484d);
3590
+ }
3591
+
3592
+ /* The inline rename field replaces the row's two lines while it is open. */
3593
+ .session-rename {
3594
+ width: 100%;
3595
+ font: inherit;
3596
+ font-size: var(--fs-small);
3597
+ color: var(--text);
3598
+ background: var(--surface2);
3599
+ border: 1px solid var(--teal);
3600
+ border-radius: var(--r-sm);
3601
+ padding: 3px 6px;
3602
+ }
3603
+
3604
+ .session-rename:focus {
3605
+ outline: none;
3606
+ }
3607
+
3608
+ /* ---------------------------------------------------------- chat welcome */
3609
+ /* Shown when the transcript is empty; cloned from #welcome-template. */
3610
+ @keyframes shimmer {
3611
+ from {
3612
+ background-position: -100% 0, 0 0, 0 0, 0 0;
3613
+ }
3614
+ to {
3615
+ background-position: 100% 0, 0 0, 0 0, 0 0;
3616
+ }
3617
+ }
3618
+
3619
+ .chat-welcome {
3620
+ display: flex;
3621
+ flex-direction: column;
3622
+ align-items: center;
3623
+ justify-content: center;
3624
+ /* The connect block made this panel tall enough to overflow a short window.
3625
+ Without a scroll container the overflow is unreachable, and `center` alone
3626
+ clips the *top* of an overflowing box, so the greeting disappears. `safe`
3627
+ degrades to plain `center` (the previous behaviour) where unsupported. */
3628
+ justify-content: safe center;
3629
+ overflow-y: auto;
3630
+ /* The panel is a scroll container, and that is what broke the rows'
3631
+ alignment promise: a 15px scrollbar narrows the CONTENT box, so anything
3632
+ centred in here shifts left by half of it (~8px) — while the composer is a
3633
+ sibling OUTSIDE this scroller and does not move. Measured: rows at
3634
+ left≈376 against the composer at left≈384, a visible stagger under a
3635
+ 768px row box. `both-edges` reserves the gutter on both sides, so the
3636
+ content box stays symmetric and the rows land on the composer's edge in
3637
+ both states (scrollable and not). `stable` keeps it from appearing and
3638
+ disappearing as the panel grows past the viewport height. */
3639
+ scrollbar-gutter: stable both-edges;
3640
+ flex: 1;
3641
+ gap: 18px;
3642
+ text-align: center;
3643
+ padding: 40px 24px;
3644
+ color: var(--text3);
3645
+ }
3646
+
3647
+ .chat-greeting-row {
3648
+ display: flex;
3649
+ align-items: center;
3650
+ gap: 14px;
3651
+ justify-content: center;
3652
+ }
3653
+
3654
+ /* A HEXAGON WITH CONCAVE EDGES. Six separately-filled panels share a tiny
3655
+ central hole and a vertex on a circle of radius 9.90 at -90°, -30°, 30°, 90°,
3656
+ 150° and 210°; between each pair of vertices the outer boundary is a quadratic
3657
+ Bézier pulled INWARD, so every edge caves toward the centre instead of bulging
3658
+ out. Measured on all six edges: chord midpoint sits at radius 8.669, the drawn
3659
+ curve midpoint at 7.499, i.e. 1.17 units of inward scoop — all six concave, not
3660
+ convex. Bounding box 17.34 x 19.80, centred on the 24-unit viewBox.
3661
+ The gap between panels is 2.25° at each vertex, so the six panels are separate
3662
+ shapes rather than one silhouette; `mask-image` composites by ALPHA, which is
3663
+ what lets the gap read as transparent rather than painted-on.
3664
+ DETAIL LAYER: the concavity already segments the mark, and six alternating
3665
+ conic wedges (30°/30° light and dark over each 60° sector, phase-aligned to the
3666
+ panels) add the lit-facet read on top of the radial fill. Alternating wedges
3667
+ rather than hairline seams on purpose: a 0.35° seam measures ~0.2px at the
3668
+ 34px render size and disappears entirely, whereas whole-wedge shading survives
3669
+ the downscale. A near-transparent radial rim is layered on top for a bevelled
3670
+ edge.
3671
+ The alphas were NOT guessed: rendered at 34px, a light-only wedge left angular
3672
+ spread at 123→128 (the radial wash swallows it), while light+dark at 0.34/0.26
3673
+ moved it 123→154. The dark half is what makes the facets legible; a
3674
+ brighter-only version measures as no change. */
3675
+ /* Not the four-point sparkle this used to be — that is Google's Gemini mark at a
3676
+ glance, and this app has no relationship to Gemini to be implying. The mask is
3677
+ six separately-filled panels (see above) so the inter-panel gaps are real
3678
+ transparent cuts; interior detail still has to live in the fill layers, since
3679
+ `mask-image` composites by ALPHA and an opaque line stroked over an opaque
3680
+ fill is 100% opaque everywhere and vanishes. */
3681
+ .chat-welcome .glyph {
3682
+ width: 34px;
3683
+ height: 34px;
3684
+ flex: none;
3685
+ /* Radial, not the previous 135° linear ramp: the light now sits at the
3686
+ upper-left and falls off to the deep teal in every direction, so the mark
3687
+ reads as lit from one point rather than striped. Same two-family palette
3688
+ (teal, plus an ice-blue core) so it still belongs to this app's accent. */
3689
+ background:
3690
+ linear-gradient(112deg, transparent 36%, rgba(255,253,246,0.42) 48%, transparent 60%) 0 0 / 200% 100% no-repeat,
3691
+ conic-gradient(from -90deg at 50% 50%, rgba(255,255,255,0.30) 0deg 60deg, rgba(0,40,36,0.28) 60deg 120deg, rgba(255,255,255,0.30) 120deg 180deg, rgba(0,40,36,0.28) 180deg 240deg, rgba(255,255,255,0.30) 240deg 300deg, rgba(0,40,36,0.28) 300deg 360deg),
3692
+ radial-gradient(circle at 50% 50%, rgba(0,30,26,0.55) 0 5.5%, transparent 6.5%),
3693
+ radial-gradient(ellipse 64% 54% at 34% 26%, #ecfdf7 0%, #b0d4ee 18%, #5a7fd4 46%, var(--teal) 74%, #00786f 100%);
3694
+ background-size: 200% 100%, 100% 100%, 100% 100%, 100% 100%;
3695
+ background-repeat: no-repeat;
3696
+ filter: drop-shadow(0 0 14px rgba(0, 229, 192, 0.3));
3697
+ animation: shimmer 5s linear infinite;
3698
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M12.28%2011.52L12.19%202.1Q15.16%206.52%2020.47%206.88ZM12.55%2012L20.67%207.22Q18.33%2012%2020.67%2016.78ZM12.28%2012.48L20.47%2017.12Q15.16%2017.48%2012.19%2021.9ZM11.72%2012.48L11.81%2021.9Q8.84%2017.48%203.53%2017.12ZM11.45%2012L3.33%2016.78Q5.67%2012%203.33%207.22ZM11.72%2011.52L3.53%206.88Q8.84%206.52%2011.81%202.1Z%22%2F%3E%3C%2Fsvg%3E");
3699
+ mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M12.28%2011.52L12.19%202.1Q15.16%206.52%2020.47%206.88ZM12.55%2012L20.67%207.22Q18.33%2012%2020.67%2016.78ZM12.28%2012.48L20.47%2017.12Q15.16%2017.48%2012.19%2021.9ZM11.72%2012.48L11.81%2021.9Q8.84%2017.48%203.53%2017.12ZM11.45%2012L3.33%2016.78Q5.67%2012%203.33%207.22ZM11.72%2011.52L3.53%206.88Q8.84%206.52%2011.81%202.1Z%22%2F%3E%3C%2Fsvg%3E");
3700
+ -webkit-mask-size: contain;
3701
+ mask-size: contain;
3702
+ -webkit-mask-repeat: no-repeat;
3703
+ mask-repeat: no-repeat;
3704
+ -webkit-mask-position: center;
3705
+ mask-position: center;
3706
+ }
3707
+
3708
+ .chat-welcome .title {
3709
+ font-size: calc(30px * var(--app-font-scale, 1));
3710
+ font-weight: var(--fw-bold);
3711
+ color: var(--text);
3712
+ letter-spacing: -0.02em;
3713
+ margin: 0;
3714
+ font-family: var(--font-display);
3715
+ }
3716
+
3717
+ .chat-welcome .sub {
3718
+ font-size: calc(12px * var(--app-font-scale, 1));
3719
+ color: var(--text3);
3720
+ max-width: 420px;
3721
+ line-height: 1.6;
3722
+ margin: 0;
3723
+ }
3724
+
3725
+ /* The one personalized line that replaced the five topic pills. It sits where
3726
+ the "start with one of these" sentence and the pill row used to be, and it
3727
+ carries the same visual weight as .sub so the panel still reads as a greeting
3728
+ with one sentence under it — not a card, not a menu. Wider than .sub because
3729
+ it is a sentence about this install rather than a tagline, and `[hidden]` has
3730
+ to be restated: a class selector outranks the UA `[hidden] { display:none }`,
3731
+ which is the same defect fixed for .welcome-connect below. */
3732
+ .welcome-personal {
3733
+ max-width: 480px;
3734
+ margin-top: 2px;
3735
+ color: var(--text2);
3736
+ }
3737
+
3738
+ .welcome-personal[hidden] {
3739
+ display: none;
3740
+ }
3741
+
3742
+ /* An action line (a downloaded update, a key not yet pasted) is a step the user
3743
+ can take now, so it gets the teal edge the pills used to carry on hover. A
3744
+ tip rotation stays quiet — it is information, not a task. */
3745
+ /* The model's own sentence. It is not a task and not a status, so it gets no
3746
+ teal edge and no button-like weight — just the body colour, so it reads as
3747
+ the first thing the assistant said rather than as another app notice. */
3748
+ .welcome-personal[data-kind='ai'] {
3749
+ color: var(--text);
3750
+ text-align: left;
3751
+ }
3752
+
3753
+ .welcome-personal[data-kind='action'] {
3754
+ color: var(--text2);
3755
+ border-left: 2px solid var(--teal);
3756
+ padding-left: 10px;
3757
+ text-align: left;
3758
+ }
3759
+
3760
+ .chat-welcome .hints {
3761
+ font-size: calc(12px * var(--app-font-scale, 1));
3762
+ color: var(--text3);
3763
+ margin-top: 6px;
3764
+ opacity: 0.55;
3765
+ max-width: 460px;
3766
+ line-height: 1.6;
3767
+ }
3768
+
3769
+ /* ------------------------------------------- welcome: suggestion rows
3770
+ The reference panel puts three one-line rows under its greeting. They are
3771
+ LEFT-ALIGNED to the composer's left edge, not centred: a stack of centred
3772
+ rows of unequal length reads as a ragged block, and these are doors rather
3773
+ than prose. The container matches the composer's measure so the rows line up
3774
+ with the input the user is about to type in — that alignment is the whole
3775
+ reason the reference version reads as deliberate.
3776
+
3777
+ Each row is `go` (the whole width, the door) plus a sibling `✕`, NOT a ✕
3778
+ nested inside the button: a button inside a button is invalid HTML and would
3779
+ make the dismiss target the door as well. */
3780
+ .welcome-rows {
3781
+ display: flex;
3782
+ flex-direction: column;
3783
+ gap: 4px;
3784
+ width: 100%;
3785
+ max-width: var(--measure-composer);
3786
+ margin-top: 4px;
3787
+ text-align: left;
3788
+ }
3789
+
3790
+ /* `[hidden]` restated: a class selector outranks the UA `[hidden]` rule, which
3791
+ is the same defect fixed for .welcome-personal and .welcome-connect. Without
3792
+ this, "hidden" on the container hides nothing. */
3793
+ .welcome-rows[hidden] {
3794
+ display: none;
3795
+ }
3796
+
3797
+ .welcome-row {
3798
+ display: flex;
3799
+ align-items: stretch;
3800
+ gap: 2px;
3801
+ border-radius: var(--r-md);
3802
+ }
3803
+
3804
+ .welcome-row:hover {
3805
+ background: var(--surface2);
3806
+ }
3807
+
3808
+ .welcome-row-go {
3809
+ flex: 1;
3810
+ display: flex;
3811
+ align-items: baseline;
3812
+ gap: 10px;
3813
+ min-height: 32px;
3814
+ padding: 6px 10px;
3815
+ border: 0;
3816
+ border-radius: var(--r-md);
3817
+ background: transparent;
3818
+ color: var(--text2);
3819
+ font: inherit;
3820
+ font-size: var(--fs-small);
3821
+ text-align: left;
3822
+ cursor: pointer;
3823
+ }
3824
+
3825
+ .welcome-row-go:hover {
3826
+ color: var(--text);
3827
+ }
3828
+
3829
+ .welcome-row-go:focus-visible {
3830
+ outline: none;
3831
+ box-shadow: inset 0 0 0 1px var(--accent-soft);
3832
+ }
3833
+
3834
+ .welcome-row-label {
3835
+ flex: none;
3836
+ }
3837
+
3838
+ /* The hint is the second half of the line and is what keeps the row from
3839
+ reading as a command: it says where the door goes. Hidden on a narrow
3840
+ window rather than wrapped, because a two-line row breaks the 38px pitch
3841
+ the rest of the panel uses. */
3842
+ .welcome-row-hint {
3843
+ flex: 1;
3844
+ min-width: 0;
3845
+ color: var(--text3);
3846
+ opacity: 0.7;
3847
+ overflow: hidden;
3848
+ text-overflow: ellipsis;
3849
+ white-space: nowrap;
3850
+ }
3851
+
3852
+ .welcome-row-x {
3853
+ flex: none;
3854
+ width: 28px;
3855
+ display: flex;
3856
+ align-items: center;
3857
+ justify-content: center;
3858
+ border: 0;
3859
+ border-radius: var(--r-md);
3860
+ background: transparent;
3861
+ color: var(--text3);
3862
+ font: inherit;
3863
+ font-size: var(--fs-label);
3864
+ cursor: pointer;
3865
+ }
3866
+
3867
+ /* The dismiss target is quiet until the row is hovered — it is a secondary
3868
+ action and must not compete with the door — but it always occupies its slot,
3869
+ so hovering a row never shifts the label sideways. */
3870
+ .welcome-row-x:hover {
3871
+ color: var(--text);
3872
+ background: var(--surface3);
3873
+ }
3874
+
3875
+ .welcome-row-x:focus-visible {
3876
+ outline: none;
3877
+ box-shadow: inset 0 0 0 1px var(--accent-soft);
3878
+ }
3879
+
3880
+ @media (max-width: 720px) {
3881
+ .welcome-row-hint {
3882
+ display: none;
3883
+ }
3884
+ }
3885
+
3886
+ /* ------------------------------------------- welcome: the connect block
3887
+ The "why AEGIS One / bring your own key / connect AEGIS Cloud" panel
3888
+ cloned into #messages by renderWelcome(). It is the only surface a new
3889
+ install sees before it has a key, so it carries the two revenue routes:
3890
+ BYOK (provider key relayed, AEGIS handling fee billed) and AEGIS Cloud.
3891
+
3892
+ Deliberately wider and left-aligned against the centred greeting above it:
3893
+ the greeting is a title, this is body copy plus two calls to action, and
3894
+ centred paragraphs at this length are unreadable. */
3895
+ .welcome-connect {
3896
+ display: flex;
3897
+ flex-direction: column;
3898
+ gap: 14px;
3899
+ width: 100%;
3900
+ max-width: 620px;
2312
3901
  margin-top: 8px;
2313
3902
  padding: 16px 18px;
2314
3903
  border: 1px solid var(--border);
@@ -2338,8 +3927,8 @@ label {
2338
3927
  }
2339
3928
 
2340
3929
  .wc-why-title {
2341
- font-size: 11px;
2342
- font-weight: 700;
3930
+ font-size: calc(12px * var(--app-font-scale, 1));
3931
+ font-weight: var(--fw-bold);
2343
3932
  text-transform: uppercase;
2344
3933
  letter-spacing: 0.08em;
2345
3934
  color: var(--teal);
@@ -2359,7 +3948,7 @@ label {
2359
3948
  .wc-why-list li {
2360
3949
  position: relative;
2361
3950
  padding-left: 17px;
2362
- font-size: 12px;
3951
+ font-size: calc(12px * var(--app-font-scale, 1));
2363
3952
  line-height: 1.55;
2364
3953
  color: var(--text2);
2365
3954
  }
@@ -2369,13 +3958,13 @@ label {
2369
3958
  position: absolute;
2370
3959
  left: 0;
2371
3960
  top: 1px;
2372
- font-size: 10px;
3961
+ font-size: calc(12px * var(--app-font-scale, 1));
2373
3962
  color: var(--text3);
2374
3963
  }
2375
3964
 
2376
3965
  .wc-why-list b {
2377
3966
  color: var(--text);
2378
- font-weight: 600;
3967
+ font-weight: var(--fw-semibold);
2379
3968
  }
2380
3969
 
2381
3970
  /* The one paid promise and the honesty line, in that order, and nothing else
@@ -2413,7 +4002,7 @@ label {
2413
4002
  color: var(--text2);
2414
4003
  font-family: var(--font-chat);
2415
4004
  cursor: pointer;
2416
- transition: all 0.15s;
4005
+ transition: all var(--dur-2) var(--ease-out);
2417
4006
  }
2418
4007
 
2419
4008
  .wc-path:hover,
@@ -2450,8 +4039,8 @@ label {
2450
4039
  background: none;
2451
4040
  padding: 0;
2452
4041
  font-family: var(--font-chat);
2453
- font-size: 12px;
2454
- font-weight: 600;
4042
+ font-size: calc(12px * var(--app-font-scale, 1));
4043
+ font-weight: var(--fw-semibold);
2455
4044
  color: var(--text2);
2456
4045
  cursor: pointer;
2457
4046
  text-decoration: underline;
@@ -2466,13 +4055,13 @@ label {
2466
4055
  }
2467
4056
 
2468
4057
  .wc-note {
2469
- font-size: 11px;
4058
+ font-size: calc(12px * var(--app-font-scale, 1));
2470
4059
  line-height: 1.5;
2471
4060
  color: var(--text3);
2472
4061
  }
2473
4062
 
2474
4063
  .wc-ic {
2475
- font-size: 16px;
4064
+ font-size: calc(16px * var(--app-font-scale, 1));
2476
4065
  line-height: 1;
2477
4066
  }
2478
4067
 
@@ -2484,8 +4073,8 @@ label {
2484
4073
  }
2485
4074
 
2486
4075
  .wc-name {
2487
- font-size: 13px;
2488
- font-weight: 600;
4076
+ font-size: calc(13px * var(--app-font-scale, 1));
4077
+ font-weight: var(--fw-semibold);
2489
4078
  color: var(--text);
2490
4079
  }
2491
4080
 
@@ -2495,14 +4084,14 @@ label {
2495
4084
  }
2496
4085
 
2497
4086
  .wc-desc {
2498
- font-size: 11px;
4087
+ font-size: calc(12px * var(--app-font-scale, 1));
2499
4088
  line-height: 1.5;
2500
4089
  color: var(--text2);
2501
4090
  }
2502
4091
 
2503
4092
  .wc-go {
2504
- font-size: 11px;
2505
- font-weight: 600;
4093
+ font-size: calc(12px * var(--app-font-scale, 1));
4094
+ font-weight: var(--fw-semibold);
2506
4095
  letter-spacing: 0.02em;
2507
4096
  color: var(--teal);
2508
4097
  }
@@ -2513,7 +4102,7 @@ label {
2513
4102
  background: none;
2514
4103
  padding: 2px 8px;
2515
4104
  font-family: var(--font-chat);
2516
- font-size: 11px;
4105
+ font-size: calc(12px * var(--app-font-scale, 1));
2517
4106
  color: var(--text3);
2518
4107
  cursor: pointer;
2519
4108
  text-decoration: underline;
@@ -2602,7 +4191,7 @@ label {
2602
4191
  .md-body h2,
2603
4192
  .md-body h3,
2604
4193
  .md-body h4 {
2605
- font-family: var(--font-display);
4194
+ font-family: var(--font-ui);
2606
4195
  line-height: 1.3;
2607
4196
  margin: 12px 0 6px;
2608
4197
  }
@@ -2630,7 +4219,7 @@ label {
2630
4219
  .md-body table {
2631
4220
  border-collapse: collapse;
2632
4221
  margin: 0 0 8px;
2633
- font-size: 12px;
4222
+ font-size: calc(12px * var(--app-font-scale, 1));
2634
4223
  }
2635
4224
 
2636
4225
  .md-body th,
@@ -2671,7 +4260,7 @@ label {
2671
4260
 
2672
4261
  .code-block code {
2673
4262
  font-family: var(--font-mono);
2674
- font-size: 12px;
4263
+ font-size: calc(12px * var(--app-font-scale, 1));
2675
4264
  line-height: 1.5;
2676
4265
  white-space: pre;
2677
4266
  color: var(--text);
@@ -2687,10 +4276,10 @@ label {
2687
4276
  color: var(--text2);
2688
4277
  padding: 1px 8px;
2689
4278
  font-family: var(--font-mono);
2690
- font-size: 10.5px;
4279
+ font-size: calc(10.5px * var(--app-font-scale, 1));
2691
4280
  cursor: pointer;
2692
4281
  opacity: 0.7;
2693
- transition: opacity 0.15s, color 0.15s, border-color 0.15s;
4282
+ transition: opacity var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
2694
4283
  }
2695
4284
 
2696
4285
  .code-block:hover .code-copy-btn {
@@ -2715,7 +4304,7 @@ label {
2715
4304
 
2716
4305
  .tok-keyword {
2717
4306
  color: var(--purple);
2718
- font-weight: 600;
4307
+ font-weight: var(--fw-semibold);
2719
4308
  }
2720
4309
 
2721
4310
  .tok-number {
@@ -2751,13 +4340,13 @@ label {
2751
4340
  would never fire), and the topbar's `::after` is the soft edge the content
2752
4341
  disappears behind.
2753
4342
 
2754
- `--surface-glass` is --surface (#12161e) at 86%: the blur needs anything
4343
+ `--surface-glass` is --surface at 86%: the blur needs anything
2755
4344
  other than full opacity to be visible at all, while staying close enough to
2756
4345
  the token that the topbar still reads as the same surface. */
2757
4346
  .topbar {
2758
4347
  position: relative;
2759
4348
  z-index: 3;
2760
- transition: background-color 0.18s ease, box-shadow 0.18s ease;
4349
+ transition: background-color var(--dur-2) var(--ease-in-out), box-shadow var(--dur-2) var(--ease-in-out);
2761
4350
  }
2762
4351
 
2763
4352
  .topbar::after {
@@ -2770,15 +4359,15 @@ label {
2770
4359
  pointer-events: none;
2771
4360
  background: linear-gradient(
2772
4361
  to bottom,
2773
- rgba(11, 13, 17, 0.6),
2774
- rgba(11, 13, 17, 0)
4362
+ color-mix(in srgb, var(--bg) 60%, transparent),
4363
+ color-mix(in srgb, var(--bg) 0%, transparent)
2775
4364
  );
2776
4365
  opacity: 0;
2777
- transition: opacity 0.18s ease;
4366
+ transition: opacity var(--dur-2) var(--ease-in-out);
2778
4367
  }
2779
4368
 
2780
4369
  body.is-scrolled .topbar {
2781
- background-color: rgba(23, 27, 35, 0.86);
4370
+ background-color: color-mix(in srgb, var(--surface) 86%, transparent);
2782
4371
  -webkit-backdrop-filter: blur(12px) saturate(140%);
2783
4372
  backdrop-filter: blur(12px) saturate(140%);
2784
4373
  box-shadow: 0 1px 0 var(--border), 0 14px 34px -22px rgba(0, 0, 0, 0.9);
@@ -2795,47 +4384,105 @@ body.is-scrolled .composer {
2795
4384
  box-shadow: var(--shadow-2);
2796
4385
  }
2797
4386
 
4387
+ /* ─────────────────────────────────────────────────── scroll to bottom (Phase F)
4388
+ *
4389
+ * A pill that appears when the transcript is scrolled up — the reference has
4390
+ * `.agy-scroll-bottom` and we had nothing, so a long answer streaming while the
4391
+ * reader was above it went out of view with no way back except dragging the
4392
+ * scrollbar.
4393
+ *
4394
+ * It floats over the transcript rather than sitting in the flow, because it is a
4395
+ * control for a condition, not part of the conversation. `pointer-events: none`
4396
+ * while hidden means the invisible half of that never eats a click aimed at the
4397
+ * text under it.
4398
+ */
4399
+ .scroll-bottom {
4400
+ position: absolute;
4401
+ left: 50%;
4402
+ bottom: 12px;
4403
+ z-index: 12;
4404
+ display: flex;
4405
+ align-items: center;
4406
+ justify-content: center;
4407
+ width: 32px;
4408
+ height: 32px;
4409
+ padding: 0;
4410
+ margin-left: -16px;
4411
+ color: var(--text2);
4412
+ background: var(--glass);
4413
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
4414
+ backdrop-filter: blur(24px) saturate(1.6);
4415
+ border: 1px solid var(--glass-border);
4416
+ border-radius: var(--r-pill);
4417
+ box-shadow: inset 0 1px 0 var(--glass-highlight), var(--elev-3);
4418
+ cursor: pointer;
4419
+ transition:
4420
+ opacity var(--dur-2) var(--ease-out),
4421
+ color var(--dur-2) var(--ease-out),
4422
+ transform var(--dur-2) var(--ease-cubic-out);
4423
+ }
4424
+
4425
+ .scroll-bottom:hover {
4426
+ color: var(--text);
4427
+ transform: translateY(-1px);
4428
+ }
4429
+
4430
+ .scroll-bottom:focus-visible {
4431
+ outline: none;
4432
+ box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 3px var(--accent-soft), var(--elev-3);
4433
+ }
4434
+
4435
+ .scroll-bottom[hidden] {
4436
+ display: none;
4437
+ }
4438
+
4439
+ /* Same fallback reasoning as .composer: without backdrop the pill would be a
4440
+ translucent disc over live text. */
4441
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
4442
+ .scroll-bottom {
4443
+ background: var(--surface3);
4444
+ }
4445
+ }
4446
+
2798
4447
  /* Scrollbars: thin, self-effacing, and only really visible while in use —
2799
4448
  the default Chromium bar is the single most "unstyled browser" thing left
2800
4449
  in the window. Firefox/Electron read the standard properties, Blink reads
2801
4450
  the ::-webkit- pseudo-elements, so both spellings are needed. */
2802
4451
  .messages,
2803
- .side,
4452
+ .side-scroll,
2804
4453
  .memory-scroll {
2805
4454
  scrollbar-width: thin;
2806
4455
  scrollbar-color: var(--border2) transparent;
2807
4456
  overscroll-behavior: contain;
2808
4457
  }
2809
4458
 
2810
- /* Smooth scrolling is for the panes a human drives by wheel — never `.messages`.
2811
- `scroll-behavior: smooth` turns *every* programmatic `scrollTop` assignment
2812
- into an animation, and transcript-view.js's `follow()` assigns
2813
- `messages.scrollTop = messages.scrollHeight` on each streaming frame. The pane
2814
- would then perpetually be animating toward a tail it never reaches, and the
2815
- `metrics()` read taken from the resulting scroll events reports "not at the
2816
- bottom" — which sets the reader's veto in transcript-view.js and stops the
2817
- transcript following at all. That is the exact symptom stream-policy.js and
2818
- its guards exist to prevent, so it is asserted in test/renderer-dom.test.mjs. */
2819
- .side,
4459
+ /* Smooth scrolling is for panes with NO programmatic scroll path — never
4460
+ `.messages`, and no longer `.side-scroll` either: app.js's
4461
+ showSettingsView()/showConversationsView() now assign its `scrollTop = 0`
4462
+ directly (not through scrollIntoView), and a CSS `smooth` here would turn
4463
+ that reset into an animation racing the scrollToSetting() jump that follows
4464
+ it. `scrollToSetting`/`revealSidebarCard` already pass `behavior: 'smooth'`
4465
+ per call where an animation IS wanted, so nothing is lost. Same reasoning
4466
+ as `.messages` above, and asserted the same way in test/renderer-dom.test.mjs. */
2820
4467
  .memory-scroll {
2821
4468
  scroll-behavior: smooth;
2822
4469
  }
2823
4470
 
2824
4471
  .messages::-webkit-scrollbar,
2825
- .side::-webkit-scrollbar,
4472
+ .side-scroll::-webkit-scrollbar,
2826
4473
  .memory-scroll::-webkit-scrollbar {
2827
4474
  width: 10px;
2828
4475
  height: 10px;
2829
4476
  }
2830
4477
 
2831
4478
  .messages::-webkit-scrollbar-track,
2832
- .side::-webkit-scrollbar-track,
4479
+ .side-scroll::-webkit-scrollbar-track,
2833
4480
  .memory-scroll::-webkit-scrollbar-track {
2834
4481
  background: transparent;
2835
4482
  }
2836
4483
 
2837
4484
  .messages::-webkit-scrollbar-thumb,
2838
- .side::-webkit-scrollbar-thumb,
4485
+ .side-scroll::-webkit-scrollbar-thumb,
2839
4486
  .memory-scroll::-webkit-scrollbar-thumb {
2840
4487
  /* background-clip + a transparent border is what insets the thumb: the bar
2841
4488
  stays 10px wide (no layout shift on hover) while the visible pill is
@@ -2847,13 +4494,13 @@ body.is-scrolled .composer {
2847
4494
  }
2848
4495
 
2849
4496
  .messages::-webkit-scrollbar-thumb:hover,
2850
- .side::-webkit-scrollbar-thumb:hover,
4497
+ .side-scroll::-webkit-scrollbar-thumb:hover,
2851
4498
  .memory-scroll::-webkit-scrollbar-thumb:hover {
2852
4499
  background-color: var(--border2);
2853
4500
  }
2854
4501
 
2855
4502
  .messages::-webkit-scrollbar-corner,
2856
- .side::-webkit-scrollbar-corner,
4503
+ .side-scroll::-webkit-scrollbar-corner,
2857
4504
  .memory-scroll::-webkit-scrollbar-corner {
2858
4505
  background: transparent;
2859
4506
  }
@@ -2866,7 +4513,6 @@ body.is-scrolled .composer {
2866
4513
  transition: none;
2867
4514
  }
2868
4515
 
2869
- .side,
2870
4516
  .memory-scroll {
2871
4517
  scroll-behavior: auto;
2872
4518
  }
@@ -2883,7 +4529,7 @@ body.is-scrolled .composer {
2883
4529
  object so the desktop and CLI blocks look like the same object. */
2884
4530
  .diff-block {
2885
4531
  font-family: var(--font-mono);
2886
- font-size: 11px;
4532
+ font-size: calc(12px * var(--app-font-scale, 1));
2887
4533
  line-height: 1.45;
2888
4534
  width: 100%;
2889
4535
  overflow-x: auto;
@@ -2905,7 +4551,7 @@ body.is-scrolled .composer {
2905
4551
  bolted-on control. */
2906
4552
  .diff-undo-row {
2907
4553
  font-family: var(--font-mono);
2908
- font-size: 11px;
4554
+ font-size: calc(12px * var(--app-font-scale, 1));
2909
4555
  line-height: 1.45;
2910
4556
  padding: 1px 0;
2911
4557
  }
@@ -2977,7 +4623,7 @@ body.is-scrolled .composer {
2977
4623
 
2978
4624
  .file-preview-card {
2979
4625
  font-family: var(--font-mono);
2980
- font-size: 11px;
4626
+ font-size: calc(12px * var(--app-font-scale, 1));
2981
4627
  line-height: 1.45;
2982
4628
  width: 100%;
2983
4629
  overflow-x: auto;
@@ -3006,12 +4652,12 @@ body.is-scrolled .composer {
3006
4652
 
3007
4653
  .file-preview-icon {
3008
4654
  flex-shrink: 0;
3009
- font-size: 14px;
4655
+ font-size: calc(14px * var(--app-font-scale, 1));
3010
4656
  }
3011
4657
 
3012
4658
  .file-preview-name {
3013
4659
  color: var(--text);
3014
- font-weight: 500;
4660
+ font-weight: var(--fw-medium);
3015
4661
  white-space: nowrap;
3016
4662
  overflow: hidden;
3017
4663
  text-overflow: ellipsis;
@@ -3019,14 +4665,14 @@ body.is-scrolled .composer {
3019
4665
 
3020
4666
  .file-preview-meta {
3021
4667
  color: var(--text3);
3022
- font-size: 10px;
4668
+ font-size: calc(12px * var(--app-font-scale, 1));
3023
4669
  flex-shrink: 0;
3024
4670
  margin-left: 8px;
3025
4671
  }
3026
4672
 
3027
4673
  .file-preview-content {
3028
4674
  padding: 4px 0;
3029
- background: #0d0f14;
4675
+ background: var(--bg);
3030
4676
  max-height: 200px;
3031
4677
  overflow-y: auto;
3032
4678
  }
@@ -3070,7 +4716,7 @@ body.is-scrolled .composer {
3070
4716
 
3071
4717
  .file-preview-notice {
3072
4718
  color: var(--text3);
3073
- font-size: 10px;
4719
+ font-size: calc(12px * var(--app-font-scale, 1));
3074
4720
  flex: 1;
3075
4721
  }
3076
4722
 
@@ -3080,8 +4726,8 @@ body.is-scrolled .composer {
3080
4726
  color: var(--bg);
3081
4727
  border: none;
3082
4728
  border-radius: var(--r-sm);
3083
- font-size: 11px;
3084
- font-weight: 500;
4729
+ font-size: calc(12px * var(--app-font-scale, 1));
4730
+ font-weight: var(--fw-medium);
3085
4731
  cursor: pointer;
3086
4732
  white-space: nowrap;
3087
4733
  flex-shrink: 0;
@@ -3153,19 +4799,19 @@ body.keys-open {
3153
4799
 
3154
4800
  .keys-state {
3155
4801
  font-family: var(--font-mono);
3156
- font-size: 12px;
4802
+ font-size: calc(12px * var(--app-font-scale, 1));
3157
4803
  text-align: center;
3158
4804
  padding: 2px 6px;
3159
4805
  border-radius: var(--r-sm);
3160
- color: #9aa4b2;
4806
+ color: var(--text2);
3161
4807
  }
3162
4808
 
3163
4809
  .keys-row.set .keys-state {
3164
- color: #7ee0a0;
4810
+ color: var(--green);
3165
4811
  }
3166
4812
 
3167
4813
  .keys-body {
3168
- font-size: 13px;
4814
+ font-size: calc(13px * var(--app-font-scale, 1));
3169
4815
  line-height: 1.45;
3170
4816
  }
3171
4817
 
@@ -3198,11 +4844,11 @@ body.keys-open {
3198
4844
  gap: 2px;
3199
4845
  flex: 1 1 92px;
3200
4846
  min-width: 0;
3201
- font-size: 10px;
4847
+ font-size: calc(12px * var(--app-font-scale, 1));
3202
4848
  text-transform: uppercase;
3203
4849
  letter-spacing: 0.08em;
3204
4850
  color: var(--text2);
3205
- font-family: var(--font-display);
4851
+ font-family: var(--font-ui);
3206
4852
  }
3207
4853
  /* The base `select` rule puts `margin-top: 6px` and `width: 100%` on every
3208
4854
  select in the app, which inside the bar leaves a floating 6px gap above each
@@ -3216,11 +4862,11 @@ body.keys-open {
3216
4862
  flex-direction: column;
3217
4863
  gap: 2px;
3218
4864
  flex: 0 0 72px;
3219
- font-size: 10px;
4865
+ font-size: calc(12px * var(--app-font-scale, 1));
3220
4866
  text-transform: uppercase;
3221
4867
  letter-spacing: 0.08em;
3222
4868
  color: var(--text2);
3223
- font-family: var(--font-display);
4869
+ font-family: var(--font-ui);
3224
4870
  }
3225
4871
  .pt-toolbar .budget-row select {
3226
4872
  margin-top: 0;
@@ -3245,6 +4891,55 @@ body.keys-open {
3245
4891
  margin-top: 2px;
3246
4892
  }
3247
4893
 
4894
+ /* The provider rows themselves (.pt-row, painted by provider-toolbar.js). They
4895
+ are read-only list entries — nothing to click, nothing to expand — so the
4896
+ hover rule above only exists to say "this line is one provider". On a 56rem
4897
+ page a two-line run of small text needs a little more air between entries
4898
+ than the rail-sized 4px, and the hover tint over a full-width page reads as a
4899
+ selectable row it is not.
4900
+
4901
+ Scoped to #provider-paths-card so the same classes can still be used inside
4902
+ the rail (where the compact sizing is correct). */
4903
+ #provider-paths-card .pt-row {
4904
+ padding: 7px 8px;
4905
+ border-left-width: 2px;
4906
+ }
4907
+
4908
+ #provider-paths-card .pt-row + .pt-row {
4909
+ border-top: 1px solid var(--border);
4910
+ border-radius: 0;
4911
+ }
4912
+
4913
+ #provider-paths-card .pt-row:hover {
4914
+ background: none;
4915
+ border-left-color: transparent;
4916
+ }
4917
+
4918
+ /* A configured provider is the row you are actually reading to answer "what can
4919
+ I address right now". The border is the teal of an active thing, not a second
4920
+ colour to learn: `.pt-row` already carries `border-left-color: currentColor`
4921
+ on hover, and this is the same signal, made permanent for the working case.
4922
+ Blocked rows keep their own amber reason (`.pt-blocked`) — the two are
4923
+ different facts and must not collapse into one accent. */
4924
+ #provider-paths-card .pt-row:not(:has(.pt-blocked)) .pt-head {
4925
+ color: var(--text);
4926
+ }
4927
+
4928
+ /* `.pt-bar` is the "add a model id" input plus its button. It sat flush against
4929
+ the list with no separation, so the last row and the input read as the same
4930
+ control. */
4931
+ #provider-paths-card .pt-bar {
4932
+ margin-top: 10px;
4933
+ padding-top: 10px;
4934
+ border-top: 1px solid var(--border);
4935
+ }
4936
+
4937
+ /* The catalog list is inside a card that is now a full page; 340px of scroll
4938
+ inside a page that already scrolls is a second scrollbar for no reason. */
4939
+ #provider-paths-card .pt-list {
4940
+ max-height: none;
4941
+ }
4942
+
3248
4943
  .pt-bar {
3249
4944
  display: flex;
3250
4945
  gap: 8px;
@@ -3255,18 +4950,21 @@ body.keys-open {
3255
4950
  flex: 1 1 auto;
3256
4951
  min-width: 0;
3257
4952
  }
4953
+ /* No inner scrollbox: the page already scrolls, and a 340px window onto a
4954
+ nine-row list meant scrolling the list to reach the list's own controls
4955
+ while the page's own scrollbar sat there doing nothing. Removed for the same
4956
+ reason `f420f73` removed it from the provider card — a nested scroller is a
4957
+ second place to look for the thing you already scrolled to. */
3258
4958
  .pt-list {
3259
4959
  list-style: none;
3260
4960
  margin: 4px 0 0;
3261
4961
  padding: 0;
3262
- max-height: 340px;
3263
- overflow-y: auto;
3264
4962
  }
3265
4963
  .pt-group {
3266
4964
  margin-bottom: 8px;
3267
4965
  }
3268
4966
  .pt-group-title {
3269
- font-size: 11px;
4967
+ font-size: calc(12px * var(--app-font-scale, 1));
3270
4968
  text-transform: uppercase;
3271
4969
  letter-spacing: 0.06em;
3272
4970
  opacity: 0.65;
@@ -3318,22 +5016,22 @@ body.keys-open {
3318
5016
  color: var(--text2);
3319
5017
  }
3320
5018
  .pt-model {
3321
- font-weight: 600;
5019
+ font-weight: var(--fw-semibold);
3322
5020
  }
3323
5021
  .pt-muted {
3324
5022
  opacity: 0.6;
3325
- font-weight: 400;
5023
+ font-weight: var(--fw-normal);
3326
5024
  }
3327
5025
  .pt-id,
3328
5026
  .pt-target {
3329
5027
  font-family: var(--font-mono);
3330
- font-size: 11px;
5028
+ font-size: calc(12px * var(--app-font-scale, 1));
3331
5029
  opacity: 0.7;
3332
5030
  overflow-wrap: anywhere;
3333
5031
  }
3334
5032
  .pt-billing,
3335
5033
  .pt-blocked {
3336
- font-size: 11px;
5034
+ font-size: calc(12px * var(--app-font-scale, 1));
3337
5035
  opacity: 0.6;
3338
5036
  }
3339
5037
  /* A blocked row states the reason in the warning colour, but stays in the list:
@@ -3344,7 +5042,7 @@ body.keys-open {
3344
5042
  }
3345
5043
  .pt-empty {
3346
5044
  opacity: 0.6;
3347
- font-size: 12px;
5045
+ font-size: calc(12px * var(--app-font-scale, 1));
3348
5046
  padding: 4px 6px;
3349
5047
  }
3350
5048
 
@@ -3360,7 +5058,7 @@ body.keys-open {
3360
5058
  /* An 'action' message is something to do, so it reads a shade stronger than a
3361
5059
  tip. Both are plain text — no badge, no colour that implies urgency. */
3362
5060
  #companion-card[data-kind='action'] .companion-line {
3363
- font-weight: 600;
5061
+ font-weight: var(--fw-semibold);
3364
5062
  }
3365
5063
  /* Same author-stylesheet-beats-UA-stylesheet gotcha as .update-banner above:
3366
5064
  .card's `display: grid` (or similar) outranks the UA sheet's
@@ -3378,16 +5076,20 @@ body.keys-open {
3378
5076
  the precedence or the card teaches the wrong order. */
3379
5077
  .rules-block {
3380
5078
  margin-top: 10px;
3381
- border-top: 1px solid var(--line, rgba(128, 128, 128, 0.25));
5079
+ border-top: 1px solid var(--border);
3382
5080
  padding-top: 10px;
3383
5081
  }
5082
+ /* Same label as `.card h2` (11px, 0.08em) — this used to be 12px/0.04em, a
5083
+ second heading scale that made Tool approvals read as a different screen
5084
+ from the rows above it in the same card. */
3384
5085
  .rules-title {
3385
- font-size: 12px;
3386
- font-weight: 600;
5086
+ font-size: calc(12px * var(--app-font-scale, 1));
5087
+ font-weight: var(--fw-semibold);
3387
5088
  text-transform: uppercase;
3388
- letter-spacing: 0.04em;
5089
+ letter-spacing: 0.08em;
5090
+ font-family: var(--font-display);
3389
5091
  opacity: 0.75;
3390
- margin: 0 0 6px;
5092
+ margin: 0 0 8px;
3391
5093
  }
3392
5094
  .rules-list {
3393
5095
  list-style: none;
@@ -3403,9 +5105,9 @@ body.keys-open {
3403
5105
  display: flex;
3404
5106
  align-items: center;
3405
5107
  gap: 8px;
3406
- padding: 3px 6px;
3407
- border-radius: 4px;
3408
- background: rgba(128, 128, 128, 0.08);
5108
+ padding: 5px 8px;
5109
+ border-radius: var(--r-sm);
5110
+ background: var(--surface2);
3409
5111
  }
3410
5112
  .rules-row-muted {
3411
5113
  opacity: 0.6;
@@ -3415,8 +5117,8 @@ body.keys-open {
3415
5117
  }
3416
5118
  .rules-tag {
3417
5119
  flex: 0 0 auto;
3418
- font-size: 10px;
3419
- font-weight: 700;
5120
+ font-size: calc(12px * var(--app-font-scale, 1));
5121
+ font-weight: var(--fw-bold);
3420
5122
  text-transform: uppercase;
3421
5123
  letter-spacing: 0.05em;
3422
5124
  padding: 1px 5px;
@@ -3432,12 +5134,12 @@ body.keys-open {
3432
5134
  .rules-pattern {
3433
5135
  flex: 1 1 auto;
3434
5136
  font-family: var(--font-mono);
3435
- font-size: 12px;
5137
+ font-size: calc(12px * var(--app-font-scale, 1));
3436
5138
  word-break: break-all;
3437
5139
  }
3438
5140
  .rules-remove {
3439
5141
  flex: 0 0 auto;
3440
- font-size: 11px;
5142
+ font-size: calc(12px * var(--app-font-scale, 1));
3441
5143
  padding: 1px 6px;
3442
5144
  }
3443
5145
  .rules-add {
@@ -3452,19 +5154,148 @@ body.keys-open {
3452
5154
  flex: 1 1 auto;
3453
5155
  min-width: 0;
3454
5156
  font-family: var(--font-mono);
3455
- font-size: 12px;
5157
+ font-size: calc(12px * var(--app-font-scale, 1));
5158
+ }
5159
+
5160
+ /* ────────────────────────────────────────── topbar actions (right side)
5161
+ The verbs that belong to a conversation: Import, the CLI face, and starting
5162
+ a new message. They used to be three `ghost-btn`s with three different
5163
+ weights — one tinted teal, one monospaced, one plain — which made three
5164
+ equal actions look like a hierarchy nobody had designed.
5165
+
5166
+ Now they share one primitive (`.tb-btn`): icon + label, one height, one
5167
+ radius. Only `New message` is tinted, because it is the only one that is a
5168
+ primary action; Import and CLI are outlined peers. The icon is a real glyph,
5169
+ not a text abbreviation, so the row scans at a glance instead of being read
5170
+ left to right. `inline-flex` + `gap` keeps icon and label on one optical
5171
+ centre line — the old `padding: 4px 10px` box sat text off-centre against
5172
+ the 36px bar. */
5173
+ .topbar-actions {
5174
+ display: flex;
5175
+ align-items: center;
5176
+ /* 4px between the actions too (`gap-1` in the reference strip). */
5177
+ gap: 4px;
5178
+ flex: 0 0 auto;
5179
+ }
5180
+
5181
+ .tb-btn {
5182
+ display: inline-flex;
5183
+ align-items: center;
5184
+ justify-content: center;
5185
+ gap: 6px;
5186
+ /* 28px inside a 35px bar: 3.5px of air above and below. Measured off
5187
+ Antigravity's action pills (`agy-button-sm`), which are 28px tall in a
5188
+ 35px strip with `0 10px` padding and a full pill radius. Ours were 26px,
5189
+ 6px-radius, 12px type — a compact button from a different design system
5190
+ sitting in the same bar as the window title. */
5191
+ height: 28px;
5192
+ padding: 0 10px;
5193
+ border: 1px solid transparent;
5194
+ border-radius: var(--r-pill);
5195
+ background: transparent;
5196
+ /* Resting colour IS the reference's resting colour: rgb(135,136,143), which
5197
+ is exactly our --text3. Anything lighter made three quiet verbs out-shout
5198
+ the conversation title they sit beside. */
5199
+ color: var(--text3);
5200
+ font: inherit;
5201
+ /* 14px/500, not 12px: the reference uses its body size in the strip, and
5202
+ `font: inherit` + 12px was fighting itself — inherit then override. The
5203
+ short ramp is --fs-body / --lh-body, so there is nothing to invent. */
5204
+ font-size: var(--fs-body);
5205
+ font-weight: var(--fw-medium);
5206
+ line-height: var(--lh-body);
5207
+ white-space: nowrap;
5208
+ cursor: pointer;
5209
+ transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
3456
5210
  }
3457
5211
 
3458
- /* ─────────────────────────────────────────────────────── import sheet
3459
- The toolbar's "Import session" surface. Same panel/backdrop primitives as the
3460
- memory inspector and session search (one sheet look in the app), plus the two
3461
- pieces only this sheet needs: a compact toolbar button that does not shout
3462
- next to "New chat", and a footer where the two import actions live. */
5212
+ /* The label must not shift the icon on hover — the transition above is on
5213
+ colours only, never transform/padding, so hovering cannot reflow the row. */
5214
+ .tb-icon {
5215
+ flex: 0 0 auto;
5216
+ display: block;
5217
+ /* 18px, which is what Antigravity's own action icons measure (18x18 on
5218
+ `Toggle Sidebar`, `More actions` and the menu button). 14px next to 14px
5219
+ type read as a bullet beside a word rather than an icon beside a label. */
5220
+ width: 18px;
5221
+ height: 18px;
5222
+ }
3463
5223
 
3464
- .toolbar-import {
3465
- margin-right: 8px;
3466
- border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
3467
- color: color-mix(in srgb, var(--teal) 80%, var(--text));
5224
+ .tb-btn:disabled {
5225
+ opacity: 0.45;
5226
+ cursor: default;
5227
+ }
5228
+
5229
+ /* Secondary: outlined on hover, invisible until then, so the bar stays quiet
5230
+ and `New message` keeps the only permanent fill. */
5231
+ .tb-ghost {
5232
+ border-color: transparent;
5233
+ }
5234
+
5235
+ /* Hover is the reference's hover: text lifts from --text3 to --text2
5236
+ (rgb(188,189,198), measured) over the selected-row fill it uses elsewhere,
5237
+ `rgb(255 255 255 / 0.09)`. No border appears, because a border on hover
5238
+ changes the button's painted size by a pixel and makes the row twitch. */
5239
+ .tb-ghost:hover {
5240
+ background: rgb(255 255 255 / 0.09);
5241
+ color: var(--text2);
5242
+ }
5243
+
5244
+ .tb-ghost:active {
5245
+ background: rgb(255 255 255 / 0.13);
5246
+ }
5247
+
5248
+ /* Primary: the one action a conversation always offers. Teal-tinted fill at
5249
+ low alpha rather than a solid teal block — a saturated block in a 36px bar
5250
+ out-weighs the window title beside it. */
5251
+ .tb-primary {
5252
+ background: color-mix(in srgb, var(--teal) 14%, var(--surface2));
5253
+ border-color: color-mix(in srgb, var(--teal) 32%, var(--border));
5254
+ color: color-mix(in srgb, var(--teal) 82%, var(--text));
5255
+ }
5256
+
5257
+ .tb-primary:hover {
5258
+ background: color-mix(in srgb, var(--teal) 22%, var(--surface2));
5259
+ border-color: color-mix(in srgb, var(--teal) 55%, var(--border));
5260
+ color: var(--teal);
5261
+ }
5262
+
5263
+ .tb-primary:active {
5264
+ background: color-mix(in srgb, var(--teal) 28%, var(--surface2));
5265
+ }
5266
+
5267
+ /* Focus is visible and only on keyboard focus, so a mouse click does not leave
5268
+ a ring sitting in the chrome. */
5269
+ .tb-btn:focus-visible {
5270
+ outline: 2px solid color-mix(in srgb, var(--teal) 70%, transparent);
5271
+ outline-offset: 1px;
5272
+ }
5273
+
5274
+ /* A hairline between the two secondary verbs and the primary one: without it
5275
+ three adjacent pills read as one segmented control. */
5276
+ .tb-sep {
5277
+ width: 1px;
5278
+ height: 16px;
5279
+ margin: 0 2px;
5280
+ background: var(--border);
5281
+ }
5282
+
5283
+ /* Narrow windows: drop the labels, keep the buttons. The `title` attribute on
5284
+ each button still names it on hover, and every one of them keeps its full
5285
+ hit area — this is the one place a label can go without losing meaning,
5286
+ because the glyph and the tooltip both survive. */
5287
+ @media (max-width: 860px) {
5288
+ .tb-label {
5289
+ display: none;
5290
+ }
5291
+
5292
+ /* Square, pill-radius collapse: a label-less pill keeps its 28px height and
5293
+ becomes as wide as it is tall, which is the same 28x28 the reference uses
5294
+ for its icon-only actions. */
5295
+ .tb-btn {
5296
+ padding: 0;
5297
+ width: 28px;
5298
+ }
3468
5299
  }
3469
5300
 
3470
5301
  .import-overlay .memory-panel {
@@ -3484,14 +5315,14 @@ body.keys-open {
3484
5315
  }
3485
5316
 
3486
5317
  .import-row .import-source {
3487
- font-size: 12px;
5318
+ font-size: calc(12px * var(--app-font-scale, 1));
3488
5319
  color: var(--text);
3489
5320
  }
3490
5321
 
3491
5322
  .import-row .session-meta {
3492
5323
  margin-left: auto;
3493
5324
  font-family: var(--font-mono);
3494
- font-size: 11px;
5325
+ font-size: calc(12px * var(--app-font-scale, 1));
3495
5326
  color: var(--text2);
3496
5327
  }
3497
5328
 
@@ -3520,7 +5351,7 @@ body.keys-open {
3520
5351
  display: flex;
3521
5352
  align-items: center;
3522
5353
  gap: 6px;
3523
- font-size: 11px;
5354
+ font-size: calc(12px * var(--app-font-scale, 1));
3524
5355
  color: var(--text2);
3525
5356
  }
3526
5357
 
@@ -3528,3 +5359,394 @@ body.keys-open {
3528
5359
  width: auto;
3529
5360
  margin: 0;
3530
5361
  }
5362
+
5363
+ /* ── First-run sign-in gate ───────────────────────────────────────────────
5364
+ Antigravity/Gemini-style: one glyph, one headline, one primary action,
5365
+ nothing else competing for the first second. Gating logic lives in
5366
+ app.js (initOnboardingGate) — this is paint only. */
5367
+ .onboard-overlay {
5368
+ position: fixed;
5369
+ inset: 0;
5370
+ z-index: 10000;
5371
+ display: flex;
5372
+ align-items: center;
5373
+ justify-content: center;
5374
+ background: var(--bg);
5375
+ opacity: 1;
5376
+ transition: opacity var(--dur-3) var(--ease-out);
5377
+ /* The two atmosphere layers below are absolutely positioned pseudo-elements,
5378
+ and this must be a stacking context for them not to escape over the card.
5379
+ `isolation` rather than a z-index because the overlay already owns one. */
5380
+ isolation: isolate;
5381
+ /* Fallbacks for the pre-color-mix path: the default accent (teal) baked in.
5382
+ A skin that changes `--accent-base` moves the blooms only where color-mix
5383
+ is supported — which is the same degradation the accent skins accept. */
5384
+ --ob-bloom: rgba(0, 229, 192, 0.15);
5385
+ --ob-bloom-2: rgba(0, 229, 192, 0.07);
5386
+ }
5387
+
5388
+ @supports (color: color-mix(in srgb, red, blue)) {
5389
+ .onboard-overlay {
5390
+ /* Derived from `--teal` ON THIS ELEMENT, not on :root: custom-property
5391
+ substitution happens where the property is DECLARED, so declaring these
5392
+ here is what lets a body-level accent skin reach the backdrop. Same trap
5393
+ documented at the accent skins above. */
5394
+ --ob-bloom: color-mix(in srgb, var(--teal) 15%, transparent);
5395
+ --ob-bloom-2: color-mix(in srgb, var(--teal) 7%, transparent);
5396
+ }
5397
+ }
5398
+
5399
+ /* The augmented backdrop.
5400
+ *
5401
+ * Both pseudo-elements are `position: absolute` for a load-bearing reason: a
5402
+ * bare pseudo on a flex container is laid out AS A FLEX ITEM, so it would take
5403
+ * a slot in the centring group and shove the card off-centre by its own width.
5404
+ * Absolute takes them out of flow; the card gets z-index 1 to stay above.
5405
+ *
5406
+ * Three blooms plus a vignette. The blooms are all in the accent family so the
5407
+ * backdrop is part of the product's identity rather than a stock dark gradient,
5408
+ * and the topmost one is a neutral white lift so the screen reads as lit from
5409
+ * above in every skin — including `onyx`, whose accent is unchanged. */
5410
+ .onboard-overlay::before {
5411
+ content: '';
5412
+ position: absolute;
5413
+ inset: 0;
5414
+ z-index: 0;
5415
+ pointer-events: none;
5416
+ background:
5417
+ /* paint order is first-listed-on-top, so this neutral rim reads over the blooms */
5418
+ linear-gradient(to bottom, rgb(255 255 255 / 0.05), transparent 14%),
5419
+ radial-gradient(ellipse 54% 42% at 50% 33%, var(--ob-bloom) 0%, transparent 72%),
5420
+ radial-gradient(circle 360px at 16% 80%, var(--ob-bloom-2) 0%, transparent 70%),
5421
+ radial-gradient(circle 320px at 85% 20%, var(--ob-bloom-2) 0%, transparent 68%),
5422
+ /* vignette last so it darkens everything under it toward the edges and the
5423
+ card stays the brightest object on screen */
5424
+ radial-gradient(ellipse 92% 84% at 50% 46%, transparent 26%, rgb(0 0 0 / 0.62) 100%);
5425
+ }
5426
+
5427
+ /* The instrument mesh — the "augmented" half of the treatment. A 32px rule
5428
+ * grid held at 4% white, radially masked so it fades out before the edges
5429
+ * instead of tiling to them like a swatch. Without the mask it reads as
5430
+ * wallpaper at full-bleed sizes; with it, it reads as depth.
5431
+ *
5432
+ * The mask HOLDS full strength to 46% and only then fades. A straight
5433
+ * 0%→74% ramp was measured at 0.09 alpha across the visible flank of the
5434
+ * screen — the grid was declared, painted, and effectively invisible (all
5435
+ * pixels within 1/255 of the backdrop). Holding the inner band is what makes
5436
+ * the mesh resolve; the fade still keeps it off the edges. */
5437
+ .onboard-overlay::after {
5438
+ content: '';
5439
+ position: absolute;
5440
+ inset: 0;
5441
+ z-index: 0;
5442
+ pointer-events: none;
5443
+ background-image:
5444
+ linear-gradient(to right, rgb(255 255 255 / 0.04) 1px, transparent 1px),
5445
+ linear-gradient(to bottom, rgb(255 255 255 / 0.04) 1px, transparent 1px);
5446
+ background-size: 32px 32px;
5447
+ -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 40%, #000 0%, #000 46%, transparent 100%);
5448
+ mask-image: radial-gradient(ellipse 68% 58% at 50% 40%, #000 0%, #000 46%, transparent 100%);
5449
+ }
5450
+
5451
+ .onboard-overlay[hidden] {
5452
+ display: none;
5453
+ }
5454
+
5455
+ .onboard-overlay.is-leaving {
5456
+ opacity: 0;
5457
+ pointer-events: none;
5458
+ }
5459
+
5460
+ .onboard-card {
5461
+ display: flex;
5462
+ flex-direction: column;
5463
+ align-items: center;
5464
+ width: 92%;
5465
+ max-width: 400px;
5466
+ text-align: center;
5467
+ /* Above both backdrop layers. The card stays unfilled on purpose — the
5468
+ blooms are the design, and a panel here would hide them. */
5469
+ position: relative;
5470
+ z-index: 1;
5471
+ }
5472
+
5473
+ .onboard-glyph {
5474
+ font-size: calc(48px * var(--app-font-scale, 1));
5475
+ font-weight: 800;
5476
+ font-family: var(--font-display);
5477
+ color: var(--text);
5478
+ line-height: 1;
5479
+ margin-bottom: var(--s-4);
5480
+ }
5481
+
5482
+ .onboard-title {
5483
+ font-size: calc(22px * var(--app-font-scale, 1));
5484
+ font-weight: var(--fw-semibold);
5485
+ color: var(--text);
5486
+ margin: 0 0 var(--s-2);
5487
+ font-family: var(--font-display);
5488
+ }
5489
+
5490
+ .onboard-sub {
5491
+ font-size: calc(13px * var(--app-font-scale, 1));
5492
+ color: var(--text2);
5493
+ line-height: 1.6;
5494
+ margin: 0 0 var(--s-4);
5495
+ }
5496
+
5497
+ .onboard-btn {
5498
+ width: 100%;
5499
+ display: flex;
5500
+ align-items: center;
5501
+ justify-content: center;
5502
+ gap: var(--s-2);
5503
+ padding: 11px var(--s-4);
5504
+ border-radius: var(--r-pill);
5505
+ border: 1px solid var(--border2);
5506
+ background: var(--surface2);
5507
+ color: var(--text);
5508
+ font: inherit;
5509
+ font-size: calc(14px * var(--app-font-scale, 1));
5510
+ font-weight: var(--fw-semibold);
5511
+ cursor: pointer;
5512
+ margin-bottom: var(--s-2);
5513
+ transition: filter var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
5514
+ }
5515
+
5516
+ .onboard-btn:hover:not(:disabled) {
5517
+ filter: brightness(1.12);
5518
+ }
5519
+
5520
+ .onboard-btn:disabled {
5521
+ opacity: 0.6;
5522
+ cursor: not-allowed;
5523
+ }
5524
+
5525
+ .onboard-btn-google {
5526
+ background: var(--google-blue);
5527
+ border-color: var(--google-blue);
5528
+ color: #fff;
5529
+ }
5530
+
5531
+ .onboard-g-icon {
5532
+ flex: 0 0 auto;
5533
+ }
5534
+
5535
+ .onboard-status {
5536
+ min-height: 16px;
5537
+ font-size: calc(12px * var(--app-font-scale, 1));
5538
+ color: var(--text2);
5539
+ margin: var(--s-1) 0 var(--s-3);
5540
+ }
5541
+
5542
+ .onboard-status.is-err {
5543
+ color: var(--red);
5544
+ }
5545
+
5546
+ .onboard-status.is-ok {
5547
+ color: var(--green);
5548
+ }
5549
+
5550
+ .onboard-skip {
5551
+ background: none;
5552
+ border: none;
5553
+ color: var(--text3);
5554
+ font-size: calc(12px * var(--app-font-scale, 1));
5555
+ cursor: pointer;
5556
+ padding: 4px;
5557
+ }
5558
+
5559
+ .onboard-skip:hover {
5560
+ color: var(--text2);
5561
+ }
5562
+
5563
+ /* ───────────────────────────────────────────────────────── command palette (⌘P)
5564
+ *
5565
+ * Same overlay layer as the other sheets (.memory-overlay), so Escape ordering
5566
+ * and the backdrop blur are consistent rather than a second idiom. The panel is
5567
+ * narrower than a search sheet on purpose: a command list is scanned, not read,
5568
+ * and a wide panel makes the eye travel for no gain.
5569
+ */
5570
+ .palette-overlay[hidden] {
5571
+ display: none;
5572
+ }
5573
+
5574
+ .palette-overlay {
5575
+ position: fixed;
5576
+ inset: 0;
5577
+ z-index: 60;
5578
+ display: flex;
5579
+ align-items: flex-start;
5580
+ justify-content: center;
5581
+ padding: 96px 24px 40px;
5582
+ }
5583
+
5584
+ .palette-panel {
5585
+ position: relative;
5586
+ display: flex;
5587
+ flex-direction: column;
5588
+ width: min(560px, 100%);
5589
+ max-height: 100%;
5590
+ min-height: 0;
5591
+ background: var(--glass);
5592
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
5593
+ backdrop-filter: blur(24px) saturate(1.6);
5594
+ border: 1px solid var(--glass-border);
5595
+ border-radius: var(--r-xl);
5596
+ box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
5597
+ overflow: hidden;
5598
+ }
5599
+
5600
+ /* The label wraps the input so the visible name is a real <label>; it is
5601
+ visually the field's top line, not a floating caption, which is why it sits
5602
+ inside the border rather than above it. */
5603
+ .palette-field {
5604
+ display: flex;
5605
+ align-items: center;
5606
+ gap: 10px;
5607
+ padding: 12px 14px;
5608
+ border-bottom: 1px solid var(--border);
5609
+ }
5610
+
5611
+ .palette-label {
5612
+ font-family: var(--font-mono);
5613
+ font-size: calc(12px * var(--app-font-scale, 1));
5614
+ letter-spacing: 0.06em;
5615
+ text-transform: uppercase;
5616
+ color: var(--text3);
5617
+ flex: none;
5618
+ }
5619
+
5620
+ .palette-field input {
5621
+ flex: 1;
5622
+ min-width: 0;
5623
+ background: transparent;
5624
+ border: 0;
5625
+ color: var(--text);
5626
+ font: inherit;
5627
+ font-size: var(--fs-body);
5628
+ padding: 0;
5629
+ }
5630
+
5631
+ .palette-field input:focus {
5632
+ outline: none;
5633
+ }
5634
+
5635
+ .palette-field input::placeholder {
5636
+ color: var(--placeholder);
5637
+ }
5638
+
5639
+ /* Scans, so: no bullets, tight rows on the same 32px pitch as the rail, and
5640
+ the selected row is a solid fill rather than a left bar — at this size a bar
5641
+ is a detail you have to hunt for. */
5642
+ .palette-list {
5643
+ list-style: none;
5644
+ margin: 0;
5645
+ padding: 6px;
5646
+ overflow-y: auto;
5647
+ min-height: 0;
5648
+ scrollbar-gutter: stable;
5649
+ }
5650
+
5651
+ .palette-row {
5652
+ display: flex;
5653
+ align-items: baseline;
5654
+ gap: 10px;
5655
+ min-height: 32px;
5656
+ padding: 6px 8px;
5657
+ border-radius: var(--r-sm);
5658
+ cursor: default;
5659
+ }
5660
+
5661
+ .palette-row .palette-row-label {
5662
+ color: var(--text);
5663
+ font-size: var(--fs-body);
5664
+ white-space: nowrap;
5665
+ overflow: hidden;
5666
+ text-overflow: ellipsis;
5667
+ }
5668
+
5669
+ .palette-row .palette-row-hint {
5670
+ color: var(--text3);
5671
+ font-size: var(--fs-small);
5672
+ white-space: nowrap;
5673
+ overflow: hidden;
5674
+ text-overflow: ellipsis;
5675
+ margin-left: auto;
5676
+ flex: none;
5677
+ max-width: 55%;
5678
+ }
5679
+
5680
+ .palette-row.is-active,
5681
+ .palette-row:hover {
5682
+ background: var(--surface3);
5683
+ }
5684
+
5685
+ .palette-row.is-active .palette-row-label {
5686
+ color: var(--teal);
5687
+ }
5688
+
5689
+ .palette-empty {
5690
+ margin: 0;
5691
+ padding: 14px;
5692
+ color: var(--text3);
5693
+ font-size: var(--fs-small);
5694
+ }
5695
+
5696
+ /* The chord legend. Shown rather than hidden behind a "?" because a palette is
5697
+ discovered, not documented — the first open is where the keys get learned. */
5698
+ .palette-foot {
5699
+ display: flex;
5700
+ gap: 14px;
5701
+ padding: 8px 14px;
5702
+ border-top: 1px solid var(--border);
5703
+ color: var(--text3);
5704
+ font-size: calc(12px * var(--app-font-scale, 1));
5705
+ }
5706
+
5707
+ .palette-key {
5708
+ display: inline-flex;
5709
+ align-items: center;
5710
+ gap: 4px;
5711
+ }
5712
+
5713
+ .palette-foot kbd {
5714
+ font-family: var(--font-mono);
5715
+ font-size: calc(12px * var(--app-font-scale, 1));
5716
+ color: var(--text2);
5717
+ background: var(--surface);
5718
+ border: 1px solid var(--border);
5719
+ border-radius: 4px;
5720
+ padding: 1px 4px;
5721
+ }
5722
+
5723
+ /* Sidebar collapse (⌘B). The rail is hidden, not unmounted: its state (which
5724
+ view is showing, scroll position) survives the toggle, so collapsing and
5725
+ expanding does not silently reset where the user was. */
5726
+ .side.is-collapsed {
5727
+ display: none;
5728
+ }
5729
+
5730
+ /* ── Reduced motion (parity pass 2, Phase E) ───────────────────────────────
5731
+ *
5732
+ * The reference ships a `.no-animations` switch. Three local
5733
+ * `prefers-reduced-motion` blocks already existed, each covering the one
5734
+ * animation being written at the time — which is exactly how a reduce-motion
5735
+ * promise ends up honoured in three places and broken in a seventh. This is the
5736
+ * catch-all: it retires every transition and animation the sheet declares,
5737
+ * including ones added later that forget to opt in.
5738
+ *
5739
+ * `0.01ms` rather than `none`: a `transition: none` can make a `transitionend`
5740
+ * listener never fire, and any code awaiting one would hang instead of
5741
+ * degrading. A duration too short to perceive still emits the event.
5742
+ */
5743
+ @media (prefers-reduced-motion: reduce) {
5744
+ *,
5745
+ *::before,
5746
+ *::after {
5747
+ animation-duration: 0.01ms !important;
5748
+ animation-iteration-count: 1 !important;
5749
+ transition-duration: 0.01ms !important;
5750
+ scroll-behavior: auto !important;
5751
+ }
5752
+ }