aegisone 1.0.43 → 1.0.45

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 (52) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/doctor.js +1 -1
  4. package/vendor/cli/README.md +5 -5
  5. package/vendor/cli/package.json +2 -2
  6. package/vendor/cli/src/deps.js +1 -1
  7. package/vendor/cli/vendor/desktop/lib/local/engine.js +1 -1
  8. package/vendor/cli/vendor/desktop/lib/local/integrity.js +1 -1
  9. package/vendor/cli/vendor/desktop/lib/local/prompt.js +1 -1
  10. package/vendor/cli/vendor/desktop/lib/local/tools.js +1 -1
  11. package/vendor/cli/vendor/desktop/lib/settings.js +1 -1
  12. package/vendor/cli/vendor/desktop/main.js +669 -22
  13. package/vendor/cli/vendor/mcp/server.js +1 -1
  14. package/vendor/desktop/README.md +3 -3
  15. package/vendor/desktop/bin/aegis.js +1 -1
  16. package/vendor/desktop/lib/avatar/events.js +1 -1
  17. package/vendor/desktop/lib/avatar/persona.js +1 -1
  18. package/vendor/desktop/lib/avatar/store.js +1 -1
  19. package/vendor/desktop/lib/local/cli-face.js +3 -0
  20. package/vendor/desktop/lib/local/engine.js +1 -1
  21. package/vendor/desktop/lib/local/integrity.js +1 -1
  22. package/vendor/desktop/lib/local/prompt.js +1 -1
  23. package/vendor/desktop/lib/local/tools.js +1 -1
  24. package/vendor/desktop/lib/settings.js +1 -1
  25. package/vendor/desktop/main.js +669 -22
  26. package/vendor/desktop/package.json +7 -4
  27. package/vendor/desktop/preload.js +1 -1
  28. package/vendor/desktop/renderer/app.js +3 -3
  29. package/vendor/desktop/renderer/avatar/pane.js +1 -1
  30. package/vendor/desktop/renderer/avatar/parts.js +1 -1
  31. package/vendor/desktop/renderer/commands.js +3 -0
  32. package/vendor/desktop/renderer/composer-triggers.js +3 -0
  33. package/vendor/desktop/renderer/find-in-conversation.js +3 -0
  34. package/vendor/desktop/renderer/fonts/fonts.css +42 -0
  35. package/vendor/desktop/renderer/fonts/ubuntu-vf-italic.woff2 +0 -0
  36. package/vendor/desktop/renderer/fonts/ubuntu-vf.woff2 +0 -0
  37. package/vendor/desktop/renderer/index.html +924 -489
  38. package/vendor/desktop/renderer/nav-history.js +3 -0
  39. package/vendor/desktop/renderer/palette-filter.js +3 -0
  40. package/vendor/desktop/renderer/shortcuts.js +3 -0
  41. package/vendor/desktop/renderer/style.css +2482 -402
  42. package/vendor/desktop/renderer/transcript-view.js +1 -1
  43. package/vendor/desktop/renderer/welcome-rows.js +3 -0
  44. package/vendor/desktop/vendor/faces/cli/README.md +5 -5
  45. package/vendor/desktop/vendor/faces/cli/package.json +2 -2
  46. package/vendor/desktop/vendor/faces/cli/src/deps.js +1 -1
  47. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/engine.js +1 -1
  48. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/integrity.js +1 -1
  49. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/prompt.js +1 -1
  50. package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/settings.js +1 -1
  51. package/vendor/desktop/vendor/faces/cli/vendor/desktop/main.js +3 -3
  52. package/vendor/desktop/vendor/faces/cli/vendor/mcp/server.js +1 -1
@@ -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);
504
1237
  }
505
1238
 
506
- .memory-results .empty {
507
- color: var(--text2);
508
- border-style: dashed;
1239
+ .memory-results li:hover:not(.empty) {
1240
+ background: var(--surface2);
1241
+ border-left-color: var(--teal);
1242
+ }
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. */
1247
+ .memory-results .empty {
1248
+ color: var(--text2);
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,175 +3112,490 @@ 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;
2153
- }
2154
-
2155
- .session-row:hover {
2156
- background: var(--surface2);
2157
- border-left-color: var(--teal);
2158
- }
2159
-
2160
- /* Search sheet section header (Sessions / Memory).
2161
- Deliberately NOT a row: no hover surface, no pointer cursor, not focusable.
2162
- The one search sheet draws both stores as sections with a single flat cursor
2163
- order across them, and the moment this looks like a row the list reads as two
2164
- lists again. Sticky, so the heading of the section you are scrolling through
2165
- stays named. */
2166
- .session-section-head {
2167
- position: sticky;
2168
- top: 0;
2169
- z-index: 1;
2170
- margin: 0;
2171
- padding: 6px 8px 4px;
2172
- list-style: none;
2173
- font-size: 11px;
2174
- font-weight: 600;
2175
- letter-spacing: 0.04em;
2176
- text-transform: uppercase;
2177
- color: var(--muted);
2178
- background: var(--surface1);
2179
- cursor: default;
2180
- }
2181
-
2182
- /* A memory hit is read, not opened — no resume target exists — so it carries a
2183
- quieter affordance than a session row while keeping the same hit area, so the
2184
- flat cursor order does not jump between sections. */
2185
- .mem-result-body {
2186
- white-space: normal;
2187
- overflow-wrap: anywhere;
3127
+ gap: 10px;
3128
+ margin-bottom: 4px;
2188
3129
  }
2189
3130
 
2190
- .session-title {
2191
- font-size: 12px;
2192
- word-break: break-word;
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%;
2193
3136
  }
2194
3137
 
2195
- .session-meta {
2196
- font-size: 11px;
2197
- color: var(--text2);
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;
2198
3146
  }
2199
3147
 
2200
- /* ------------------------------------------------------------- the library */
2201
- /* The Sessions pane as a browsable library: a filter, day headings, and
2202
- per-row actions. Scoped to .library-* / .session-row so #queue-list — which
2203
- shares .sessions-list — keeps the plain compact list it wants. */
2204
-
2205
- .library-bar {
2206
- display: flex;
2207
- align-items: center;
2208
- gap: 8px;
2209
- margin-top: 8px;
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;
2210
3154
  }
2211
3155
 
2212
- /* Full-width because it is a filter over the list below it, not a field in a
2213
- form: a short box with a long placeholder reads as broken. */
2214
- .library-filter {
2215
- flex: 1 1 auto;
2216
- min-width: 0;
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;
2217
3162
  font: inherit;
2218
- font-size: 12px;
3163
+ font-size: var(--fs-body);
3164
+ line-height: 1.5;
3165
+ background: var(--surface);
2219
3166
  color: var(--text);
2220
- background: var(--surface2);
2221
3167
  border: 1px solid var(--border);
2222
3168
  border-radius: var(--r-sm);
2223
- padding: 4px 8px;
3169
+ padding: 7px 9px;
2224
3170
  }
2225
3171
 
2226
- .library-filter:focus {
3172
+ .auto-form .pt-field textarea:focus {
2227
3173
  outline: none;
2228
3174
  border-color: var(--teal);
2229
3175
  }
2230
3176
 
2231
- .library-count {
2232
- flex: 0 0 auto;
2233
- font-size: 11px;
2234
- color: var(--text2);
2235
- white-space: nowrap;
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);
2236
3182
  }
2237
3183
 
2238
- /* Taller than the plain .sessions-list: grouping only pays off if more than
2239
- three rows are visible at once. */
2240
- .library-list {
2241
- max-height: 340px;
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 {
3188
+ display: flex;
3189
+ flex-wrap: wrap;
3190
+ gap: 8px;
3191
+ align-items: center;
3192
+ margin-top: 2px;
2242
3193
  }
2243
3194
 
2244
- /* A day heading is a label, not a row — no hover, no pointer, and it sticks
2245
- so the bucket a user is scrolling through stays named. */
2246
- .library-group {
2247
- position: sticky;
2248
- top: 0;
2249
- z-index: 1;
2250
- background: var(--surface1, var(--bg));
2251
- font-size: 10px;
2252
- letter-spacing: 0.08em;
3195
+ .auto-actions .ghost-btn {
3196
+ flex: 0 0 auto;
3197
+ }
3198
+
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));
2253
3204
  text-transform: uppercase;
3205
+ letter-spacing: 0.08em;
2254
3206
  color: var(--text2);
2255
- padding: 6px 8px 2px;
2256
- cursor: default;
2257
- pointer-events: none;
3207
+ font-weight: var(--fw-semibold);
3208
+ margin: 20px 0 4px;
3209
+ padding-top: 12px;
3210
+ border-top: 1px solid var(--border);
2258
3211
  }
2259
3212
 
2260
- /* The row the open conversation lives in, so the library says where you are
2261
- rather than only where you could go. */
2262
- .session-row.is-current {
2263
- background: var(--surface2);
2264
- border-left-color: var(--teal);
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;
2265
3219
  }
2266
3220
 
2267
- /* Rename / Export / Delete. Hidden until the row is hovered or something in
2268
- it has focus: three buttons on every row turns a list into a control panel,
2269
- and they are reachable by keyboard because :focus-within counts. */
2270
- .session-actions {
3221
+ .auto-toggles .flow-toggle + .flow-toggle {
3222
+ border-top: 1px solid var(--border);
3223
+ }
3224
+
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 {
2271
3229
  display: flex;
2272
- gap: 6px;
2273
- margin-top: 2px;
2274
- opacity: 0;
2275
- transition: opacity 90ms ease-out;
3230
+ flex-wrap: wrap;
3231
+ align-items: center;
3232
+ gap: 8px 12px;
3233
+ margin-top: 8px;
2276
3234
  }
2277
3235
 
2278
- .session-row:hover .session-actions,
2279
- .session-row:focus-within .session-actions {
2280
- opacity: 1;
3236
+ .auto-cadence .flow-toggle {
3237
+ flex: 1 1 auto;
3238
+ width: auto;
3239
+ padding: 0;
2281
3240
  }
2282
3241
 
2283
- .session-action {
2284
- font: inherit;
2285
- font-size: 10px;
2286
- color: var(--text2);
2287
- background: none;
2288
- border: 0;
2289
- border-radius: var(--r-sm);
2290
- padding: 1px 4px;
2291
- cursor: pointer;
3242
+ .auto-cadence .auto-cadence-interval {
3243
+ flex: 0 0 150px;
2292
3244
  }
2293
3245
 
2294
- .session-action:hover {
2295
- color: var(--text);
2296
- background: var(--surface1, var(--bg));
3246
+ .auto-cadence .auto-cadence-interval select {
3247
+ margin-top: 0;
2297
3248
  }
2298
3249
 
2299
- .session-action:last-child:hover {
2300
- color: var(--danger, #e5484d);
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;
2301
3255
  }
2302
3256
 
2303
- /* The inline rename field replaces the row's two lines while it is open. */
2304
- .session-rename {
2305
- width: 100%;
2306
- font: inherit;
2307
- font-size: 12px;
2308
- color: var(--text);
2309
- background: var(--surface2);
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;
3275
+ display: flex;
3276
+ flex-direction: column;
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);
2310
3599
  border: 1px solid var(--teal);
2311
3600
  border-radius: var(--r-sm);
2312
3601
  padding: 3px 6px;
@@ -2319,8 +3608,11 @@ label {
2319
3608
  /* ---------------------------------------------------------- chat welcome */
2320
3609
  /* Shown when the transcript is empty; cloned from #welcome-template. */
2321
3610
  @keyframes shimmer {
3611
+ from {
3612
+ background-position: -100% 0, 0 0, 0 0, 0 0;
3613
+ }
2322
3614
  to {
2323
- background-position: 200% center;
3615
+ background-position: 100% 0, 0 0, 0 0, 0 0;
2324
3616
  }
2325
3617
  }
2326
3618
 
@@ -2335,6 +3627,16 @@ label {
2335
3627
  degrades to plain `center` (the previous behaviour) where unsupported. */
2336
3628
  justify-content: safe center;
2337
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;
2338
3640
  flex: 1;
2339
3641
  gap: 18px;
2340
3642
  text-align: center;
@@ -2349,31 +3651,52 @@ label {
2349
3651
  justify-content: center;
2350
3652
  }
2351
3653
 
2352
- /* A hexagon faceted into 6 triangles, not the four-point sparkle this used to
2353
- be — the sparkle is Google's Gemini mark at a glance, and this app has no
2354
- relationship to Gemini to be implying. The gradient, the glow and the
2355
- `shimmer` sweep are UNCHANGED from the glyph this replaced; only how the
2356
- shape is cut is different, because that glyph was TEXT ('✦', clipped out of
2357
- the gradient via `background-clip: text`) and a drawn icon has no glyph
2358
- outline to clip to. `mask-image` is the same trick for arbitrary shapes:
2359
- the gradient background paints the whole box and the SVG mask decides which
2360
- pixels of it survive.
2361
- The mask SVG is six SEPARATELY FILLED triangles, each inset ~8% toward its
2362
- own centroid — not one hexagon with lines stroked on top. `mask-image`
2363
- composites by ALPHA, not luminance (confirmed by rendering both ways): an
2364
- opaque black line over an opaque white fill is still 100% opaque everywhere
2365
- and vanishes from the mask, so the facets have to be real transparent gaps,
2366
- which only separately-shrunk shapes produce. */
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. */
2367
3681
  .chat-welcome .glyph {
2368
3682
  width: 34px;
2369
3683
  height: 34px;
2370
3684
  flex: none;
2371
- background: linear-gradient(135deg, #b0d4ee, #5a7fd4, var(--teal));
2372
- background-size: 200%;
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;
2373
3696
  filter: drop-shadow(0 0 14px rgba(0, 229, 192, 0.3));
2374
3697
  animation: shimmer 5s linear infinite;
2375
- -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");
2376
- 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");
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");
2377
3700
  -webkit-mask-size: contain;
2378
3701
  mask-size: contain;
2379
3702
  -webkit-mask-repeat: no-repeat;
@@ -2383,8 +3706,8 @@ label {
2383
3706
  }
2384
3707
 
2385
3708
  .chat-welcome .title {
2386
- font-size: 30px;
2387
- font-weight: 700;
3709
+ font-size: calc(30px * var(--app-font-scale, 1));
3710
+ font-weight: var(--fw-bold);
2388
3711
  color: var(--text);
2389
3712
  letter-spacing: -0.02em;
2390
3713
  margin: 0;
@@ -2392,7 +3715,7 @@ label {
2392
3715
  }
2393
3716
 
2394
3717
  .chat-welcome .sub {
2395
- font-size: 12px;
3718
+ font-size: calc(12px * var(--app-font-scale, 1));
2396
3719
  color: var(--text3);
2397
3720
  max-width: 420px;
2398
3721
  line-height: 1.6;
@@ -2435,7 +3758,7 @@ label {
2435
3758
  }
2436
3759
 
2437
3760
  .chat-welcome .hints {
2438
- font-size: 10px;
3761
+ font-size: calc(12px * var(--app-font-scale, 1));
2439
3762
  color: var(--text3);
2440
3763
  margin-top: 6px;
2441
3764
  opacity: 0.55;
@@ -2443,8 +3766,125 @@ label {
2443
3766
  line-height: 1.6;
2444
3767
  }
2445
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
+
2446
3886
  /* ------------------------------------------- welcome: the connect block
2447
- The "why AEGIS Desktop / bring your own key / connect AEGIS Cloud" panel
3887
+ The "why AEGIS One / bring your own key / connect AEGIS Cloud" panel
2448
3888
  cloned into #messages by renderWelcome(). It is the only surface a new
2449
3889
  install sees before it has a key, so it carries the two revenue routes:
2450
3890
  BYOK (provider key relayed, AEGIS handling fee billed) and AEGIS Cloud.
@@ -2487,8 +3927,8 @@ label {
2487
3927
  }
2488
3928
 
2489
3929
  .wc-why-title {
2490
- font-size: 11px;
2491
- font-weight: 700;
3930
+ font-size: calc(12px * var(--app-font-scale, 1));
3931
+ font-weight: var(--fw-bold);
2492
3932
  text-transform: uppercase;
2493
3933
  letter-spacing: 0.08em;
2494
3934
  color: var(--teal);
@@ -2508,7 +3948,7 @@ label {
2508
3948
  .wc-why-list li {
2509
3949
  position: relative;
2510
3950
  padding-left: 17px;
2511
- font-size: 12px;
3951
+ font-size: calc(12px * var(--app-font-scale, 1));
2512
3952
  line-height: 1.55;
2513
3953
  color: var(--text2);
2514
3954
  }
@@ -2518,13 +3958,13 @@ label {
2518
3958
  position: absolute;
2519
3959
  left: 0;
2520
3960
  top: 1px;
2521
- font-size: 10px;
3961
+ font-size: calc(12px * var(--app-font-scale, 1));
2522
3962
  color: var(--text3);
2523
3963
  }
2524
3964
 
2525
3965
  .wc-why-list b {
2526
3966
  color: var(--text);
2527
- font-weight: 600;
3967
+ font-weight: var(--fw-semibold);
2528
3968
  }
2529
3969
 
2530
3970
  /* The one paid promise and the honesty line, in that order, and nothing else
@@ -2562,7 +4002,7 @@ label {
2562
4002
  color: var(--text2);
2563
4003
  font-family: var(--font-chat);
2564
4004
  cursor: pointer;
2565
- transition: all 0.15s;
4005
+ transition: all var(--dur-2) var(--ease-out);
2566
4006
  }
2567
4007
 
2568
4008
  .wc-path:hover,
@@ -2599,8 +4039,8 @@ label {
2599
4039
  background: none;
2600
4040
  padding: 0;
2601
4041
  font-family: var(--font-chat);
2602
- font-size: 12px;
2603
- font-weight: 600;
4042
+ font-size: calc(12px * var(--app-font-scale, 1));
4043
+ font-weight: var(--fw-semibold);
2604
4044
  color: var(--text2);
2605
4045
  cursor: pointer;
2606
4046
  text-decoration: underline;
@@ -2615,13 +4055,13 @@ label {
2615
4055
  }
2616
4056
 
2617
4057
  .wc-note {
2618
- font-size: 11px;
4058
+ font-size: calc(12px * var(--app-font-scale, 1));
2619
4059
  line-height: 1.5;
2620
4060
  color: var(--text3);
2621
4061
  }
2622
4062
 
2623
4063
  .wc-ic {
2624
- font-size: 16px;
4064
+ font-size: calc(16px * var(--app-font-scale, 1));
2625
4065
  line-height: 1;
2626
4066
  }
2627
4067
 
@@ -2633,8 +4073,8 @@ label {
2633
4073
  }
2634
4074
 
2635
4075
  .wc-name {
2636
- font-size: 13px;
2637
- font-weight: 600;
4076
+ font-size: calc(13px * var(--app-font-scale, 1));
4077
+ font-weight: var(--fw-semibold);
2638
4078
  color: var(--text);
2639
4079
  }
2640
4080
 
@@ -2644,14 +4084,14 @@ label {
2644
4084
  }
2645
4085
 
2646
4086
  .wc-desc {
2647
- font-size: 11px;
4087
+ font-size: calc(12px * var(--app-font-scale, 1));
2648
4088
  line-height: 1.5;
2649
4089
  color: var(--text2);
2650
4090
  }
2651
4091
 
2652
4092
  .wc-go {
2653
- font-size: 11px;
2654
- font-weight: 600;
4093
+ font-size: calc(12px * var(--app-font-scale, 1));
4094
+ font-weight: var(--fw-semibold);
2655
4095
  letter-spacing: 0.02em;
2656
4096
  color: var(--teal);
2657
4097
  }
@@ -2662,7 +4102,7 @@ label {
2662
4102
  background: none;
2663
4103
  padding: 2px 8px;
2664
4104
  font-family: var(--font-chat);
2665
- font-size: 11px;
4105
+ font-size: calc(12px * var(--app-font-scale, 1));
2666
4106
  color: var(--text3);
2667
4107
  cursor: pointer;
2668
4108
  text-decoration: underline;
@@ -2751,7 +4191,7 @@ label {
2751
4191
  .md-body h2,
2752
4192
  .md-body h3,
2753
4193
  .md-body h4 {
2754
- font-family: var(--font-display);
4194
+ font-family: var(--font-ui);
2755
4195
  line-height: 1.3;
2756
4196
  margin: 12px 0 6px;
2757
4197
  }
@@ -2779,7 +4219,7 @@ label {
2779
4219
  .md-body table {
2780
4220
  border-collapse: collapse;
2781
4221
  margin: 0 0 8px;
2782
- font-size: 12px;
4222
+ font-size: calc(12px * var(--app-font-scale, 1));
2783
4223
  }
2784
4224
 
2785
4225
  .md-body th,
@@ -2820,7 +4260,7 @@ label {
2820
4260
 
2821
4261
  .code-block code {
2822
4262
  font-family: var(--font-mono);
2823
- font-size: 12px;
4263
+ font-size: calc(12px * var(--app-font-scale, 1));
2824
4264
  line-height: 1.5;
2825
4265
  white-space: pre;
2826
4266
  color: var(--text);
@@ -2836,10 +4276,10 @@ label {
2836
4276
  color: var(--text2);
2837
4277
  padding: 1px 8px;
2838
4278
  font-family: var(--font-mono);
2839
- font-size: 10.5px;
4279
+ font-size: calc(10.5px * var(--app-font-scale, 1));
2840
4280
  cursor: pointer;
2841
4281
  opacity: 0.7;
2842
- 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);
2843
4283
  }
2844
4284
 
2845
4285
  .code-block:hover .code-copy-btn {
@@ -2864,7 +4304,7 @@ label {
2864
4304
 
2865
4305
  .tok-keyword {
2866
4306
  color: var(--purple);
2867
- font-weight: 600;
4307
+ font-weight: var(--fw-semibold);
2868
4308
  }
2869
4309
 
2870
4310
  .tok-number {
@@ -2900,13 +4340,13 @@ label {
2900
4340
  would never fire), and the topbar's `::after` is the soft edge the content
2901
4341
  disappears behind.
2902
4342
 
2903
- `--surface-glass` is --surface (#12161e) at 86%: the blur needs anything
4343
+ `--surface-glass` is --surface at 86%: the blur needs anything
2904
4344
  other than full opacity to be visible at all, while staying close enough to
2905
4345
  the token that the topbar still reads as the same surface. */
2906
4346
  .topbar {
2907
4347
  position: relative;
2908
4348
  z-index: 3;
2909
- 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);
2910
4350
  }
2911
4351
 
2912
4352
  .topbar::after {
@@ -2919,15 +4359,15 @@ label {
2919
4359
  pointer-events: none;
2920
4360
  background: linear-gradient(
2921
4361
  to bottom,
2922
- rgba(11, 13, 17, 0.6),
2923
- rgba(11, 13, 17, 0)
4362
+ color-mix(in srgb, var(--bg) 60%, transparent),
4363
+ color-mix(in srgb, var(--bg) 0%, transparent)
2924
4364
  );
2925
4365
  opacity: 0;
2926
- transition: opacity 0.18s ease;
4366
+ transition: opacity var(--dur-2) var(--ease-in-out);
2927
4367
  }
2928
4368
 
2929
4369
  body.is-scrolled .topbar {
2930
- background-color: rgba(23, 27, 35, 0.86);
4370
+ background-color: color-mix(in srgb, var(--surface) 86%, transparent);
2931
4371
  -webkit-backdrop-filter: blur(12px) saturate(140%);
2932
4372
  backdrop-filter: blur(12px) saturate(140%);
2933
4373
  box-shadow: 0 1px 0 var(--border), 0 14px 34px -22px rgba(0, 0, 0, 0.9);
@@ -2944,47 +4384,105 @@ body.is-scrolled .composer {
2944
4384
  box-shadow: var(--shadow-2);
2945
4385
  }
2946
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
+
2947
4447
  /* Scrollbars: thin, self-effacing, and only really visible while in use —
2948
4448
  the default Chromium bar is the single most "unstyled browser" thing left
2949
4449
  in the window. Firefox/Electron read the standard properties, Blink reads
2950
4450
  the ::-webkit- pseudo-elements, so both spellings are needed. */
2951
4451
  .messages,
2952
- .side,
4452
+ .side-scroll,
2953
4453
  .memory-scroll {
2954
4454
  scrollbar-width: thin;
2955
4455
  scrollbar-color: var(--border2) transparent;
2956
4456
  overscroll-behavior: contain;
2957
4457
  }
2958
4458
 
2959
- /* Smooth scrolling is for the panes a human drives by wheel — never `.messages`.
2960
- `scroll-behavior: smooth` turns *every* programmatic `scrollTop` assignment
2961
- into an animation, and transcript-view.js's `follow()` assigns
2962
- `messages.scrollTop = messages.scrollHeight` on each streaming frame. The pane
2963
- would then perpetually be animating toward a tail it never reaches, and the
2964
- `metrics()` read taken from the resulting scroll events reports "not at the
2965
- bottom" — which sets the reader's veto in transcript-view.js and stops the
2966
- transcript following at all. That is the exact symptom stream-policy.js and
2967
- its guards exist to prevent, so it is asserted in test/renderer-dom.test.mjs. */
2968
- .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. */
2969
4467
  .memory-scroll {
2970
4468
  scroll-behavior: smooth;
2971
4469
  }
2972
4470
 
2973
4471
  .messages::-webkit-scrollbar,
2974
- .side::-webkit-scrollbar,
4472
+ .side-scroll::-webkit-scrollbar,
2975
4473
  .memory-scroll::-webkit-scrollbar {
2976
4474
  width: 10px;
2977
4475
  height: 10px;
2978
4476
  }
2979
4477
 
2980
4478
  .messages::-webkit-scrollbar-track,
2981
- .side::-webkit-scrollbar-track,
4479
+ .side-scroll::-webkit-scrollbar-track,
2982
4480
  .memory-scroll::-webkit-scrollbar-track {
2983
4481
  background: transparent;
2984
4482
  }
2985
4483
 
2986
4484
  .messages::-webkit-scrollbar-thumb,
2987
- .side::-webkit-scrollbar-thumb,
4485
+ .side-scroll::-webkit-scrollbar-thumb,
2988
4486
  .memory-scroll::-webkit-scrollbar-thumb {
2989
4487
  /* background-clip + a transparent border is what insets the thumb: the bar
2990
4488
  stays 10px wide (no layout shift on hover) while the visible pill is
@@ -2996,13 +4494,13 @@ body.is-scrolled .composer {
2996
4494
  }
2997
4495
 
2998
4496
  .messages::-webkit-scrollbar-thumb:hover,
2999
- .side::-webkit-scrollbar-thumb:hover,
4497
+ .side-scroll::-webkit-scrollbar-thumb:hover,
3000
4498
  .memory-scroll::-webkit-scrollbar-thumb:hover {
3001
4499
  background-color: var(--border2);
3002
4500
  }
3003
4501
 
3004
4502
  .messages::-webkit-scrollbar-corner,
3005
- .side::-webkit-scrollbar-corner,
4503
+ .side-scroll::-webkit-scrollbar-corner,
3006
4504
  .memory-scroll::-webkit-scrollbar-corner {
3007
4505
  background: transparent;
3008
4506
  }
@@ -3015,7 +4513,6 @@ body.is-scrolled .composer {
3015
4513
  transition: none;
3016
4514
  }
3017
4515
 
3018
- .side,
3019
4516
  .memory-scroll {
3020
4517
  scroll-behavior: auto;
3021
4518
  }
@@ -3032,7 +4529,7 @@ body.is-scrolled .composer {
3032
4529
  object so the desktop and CLI blocks look like the same object. */
3033
4530
  .diff-block {
3034
4531
  font-family: var(--font-mono);
3035
- font-size: 11px;
4532
+ font-size: calc(12px * var(--app-font-scale, 1));
3036
4533
  line-height: 1.45;
3037
4534
  width: 100%;
3038
4535
  overflow-x: auto;
@@ -3054,7 +4551,7 @@ body.is-scrolled .composer {
3054
4551
  bolted-on control. */
3055
4552
  .diff-undo-row {
3056
4553
  font-family: var(--font-mono);
3057
- font-size: 11px;
4554
+ font-size: calc(12px * var(--app-font-scale, 1));
3058
4555
  line-height: 1.45;
3059
4556
  padding: 1px 0;
3060
4557
  }
@@ -3126,7 +4623,7 @@ body.is-scrolled .composer {
3126
4623
 
3127
4624
  .file-preview-card {
3128
4625
  font-family: var(--font-mono);
3129
- font-size: 11px;
4626
+ font-size: calc(12px * var(--app-font-scale, 1));
3130
4627
  line-height: 1.45;
3131
4628
  width: 100%;
3132
4629
  overflow-x: auto;
@@ -3155,12 +4652,12 @@ body.is-scrolled .composer {
3155
4652
 
3156
4653
  .file-preview-icon {
3157
4654
  flex-shrink: 0;
3158
- font-size: 14px;
4655
+ font-size: calc(14px * var(--app-font-scale, 1));
3159
4656
  }
3160
4657
 
3161
4658
  .file-preview-name {
3162
4659
  color: var(--text);
3163
- font-weight: 500;
4660
+ font-weight: var(--fw-medium);
3164
4661
  white-space: nowrap;
3165
4662
  overflow: hidden;
3166
4663
  text-overflow: ellipsis;
@@ -3168,14 +4665,14 @@ body.is-scrolled .composer {
3168
4665
 
3169
4666
  .file-preview-meta {
3170
4667
  color: var(--text3);
3171
- font-size: 10px;
4668
+ font-size: calc(12px * var(--app-font-scale, 1));
3172
4669
  flex-shrink: 0;
3173
4670
  margin-left: 8px;
3174
4671
  }
3175
4672
 
3176
4673
  .file-preview-content {
3177
4674
  padding: 4px 0;
3178
- background: #0d0f14;
4675
+ background: var(--bg);
3179
4676
  max-height: 200px;
3180
4677
  overflow-y: auto;
3181
4678
  }
@@ -3219,7 +4716,7 @@ body.is-scrolled .composer {
3219
4716
 
3220
4717
  .file-preview-notice {
3221
4718
  color: var(--text3);
3222
- font-size: 10px;
4719
+ font-size: calc(12px * var(--app-font-scale, 1));
3223
4720
  flex: 1;
3224
4721
  }
3225
4722
 
@@ -3229,8 +4726,8 @@ body.is-scrolled .composer {
3229
4726
  color: var(--bg);
3230
4727
  border: none;
3231
4728
  border-radius: var(--r-sm);
3232
- font-size: 11px;
3233
- font-weight: 500;
4729
+ font-size: calc(12px * var(--app-font-scale, 1));
4730
+ font-weight: var(--fw-medium);
3234
4731
  cursor: pointer;
3235
4732
  white-space: nowrap;
3236
4733
  flex-shrink: 0;
@@ -3302,19 +4799,19 @@ body.keys-open {
3302
4799
 
3303
4800
  .keys-state {
3304
4801
  font-family: var(--font-mono);
3305
- font-size: 12px;
4802
+ font-size: calc(12px * var(--app-font-scale, 1));
3306
4803
  text-align: center;
3307
4804
  padding: 2px 6px;
3308
4805
  border-radius: var(--r-sm);
3309
- color: #9aa4b2;
4806
+ color: var(--text2);
3310
4807
  }
3311
4808
 
3312
4809
  .keys-row.set .keys-state {
3313
- color: #7ee0a0;
4810
+ color: var(--green);
3314
4811
  }
3315
4812
 
3316
4813
  .keys-body {
3317
- font-size: 13px;
4814
+ font-size: calc(13px * var(--app-font-scale, 1));
3318
4815
  line-height: 1.45;
3319
4816
  }
3320
4817
 
@@ -3347,11 +4844,11 @@ body.keys-open {
3347
4844
  gap: 2px;
3348
4845
  flex: 1 1 92px;
3349
4846
  min-width: 0;
3350
- font-size: 10px;
4847
+ font-size: calc(12px * var(--app-font-scale, 1));
3351
4848
  text-transform: uppercase;
3352
4849
  letter-spacing: 0.08em;
3353
4850
  color: var(--text2);
3354
- font-family: var(--font-display);
4851
+ font-family: var(--font-ui);
3355
4852
  }
3356
4853
  /* The base `select` rule puts `margin-top: 6px` and `width: 100%` on every
3357
4854
  select in the app, which inside the bar leaves a floating 6px gap above each
@@ -3365,11 +4862,11 @@ body.keys-open {
3365
4862
  flex-direction: column;
3366
4863
  gap: 2px;
3367
4864
  flex: 0 0 72px;
3368
- font-size: 10px;
4865
+ font-size: calc(12px * var(--app-font-scale, 1));
3369
4866
  text-transform: uppercase;
3370
4867
  letter-spacing: 0.08em;
3371
4868
  color: var(--text2);
3372
- font-family: var(--font-display);
4869
+ font-family: var(--font-ui);
3373
4870
  }
3374
4871
  .pt-toolbar .budget-row select {
3375
4872
  margin-top: 0;
@@ -3394,6 +4891,55 @@ body.keys-open {
3394
4891
  margin-top: 2px;
3395
4892
  }
3396
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
+
3397
4943
  .pt-bar {
3398
4944
  display: flex;
3399
4945
  gap: 8px;
@@ -3404,18 +4950,21 @@ body.keys-open {
3404
4950
  flex: 1 1 auto;
3405
4951
  min-width: 0;
3406
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. */
3407
4958
  .pt-list {
3408
4959
  list-style: none;
3409
4960
  margin: 4px 0 0;
3410
4961
  padding: 0;
3411
- max-height: 340px;
3412
- overflow-y: auto;
3413
4962
  }
3414
4963
  .pt-group {
3415
4964
  margin-bottom: 8px;
3416
4965
  }
3417
4966
  .pt-group-title {
3418
- font-size: 11px;
4967
+ font-size: calc(12px * var(--app-font-scale, 1));
3419
4968
  text-transform: uppercase;
3420
4969
  letter-spacing: 0.06em;
3421
4970
  opacity: 0.65;
@@ -3467,22 +5016,22 @@ body.keys-open {
3467
5016
  color: var(--text2);
3468
5017
  }
3469
5018
  .pt-model {
3470
- font-weight: 600;
5019
+ font-weight: var(--fw-semibold);
3471
5020
  }
3472
5021
  .pt-muted {
3473
5022
  opacity: 0.6;
3474
- font-weight: 400;
5023
+ font-weight: var(--fw-normal);
3475
5024
  }
3476
5025
  .pt-id,
3477
5026
  .pt-target {
3478
5027
  font-family: var(--font-mono);
3479
- font-size: 11px;
5028
+ font-size: calc(12px * var(--app-font-scale, 1));
3480
5029
  opacity: 0.7;
3481
5030
  overflow-wrap: anywhere;
3482
5031
  }
3483
5032
  .pt-billing,
3484
5033
  .pt-blocked {
3485
- font-size: 11px;
5034
+ font-size: calc(12px * var(--app-font-scale, 1));
3486
5035
  opacity: 0.6;
3487
5036
  }
3488
5037
  /* A blocked row states the reason in the warning colour, but stays in the list:
@@ -3493,7 +5042,7 @@ body.keys-open {
3493
5042
  }
3494
5043
  .pt-empty {
3495
5044
  opacity: 0.6;
3496
- font-size: 12px;
5045
+ font-size: calc(12px * var(--app-font-scale, 1));
3497
5046
  padding: 4px 6px;
3498
5047
  }
3499
5048
 
@@ -3507,9 +5056,16 @@ body.keys-open {
3507
5056
  gap: 8px;
3508
5057
  }
3509
5058
  /* An 'action' message is something to do, so it reads a shade stronger than a
3510
- tip. Both are plain text — no badge, no colour that implies urgency. */
5059
+ tip, and (see #companion-go below) is the one kind that gets a button —
5060
+ neither gets a badge or a colour that implies urgency. */
3511
5061
  #companion-card[data-kind='action'] .companion-line {
3512
- font-weight: 600;
5062
+ font-weight: var(--fw-semibold);
5063
+ }
5064
+ /* Hidden by default in markup; renderCompanion() (app.js) reveals it only
5065
+ when companionActionTarget() resolves msg.id to a real destination, so a
5066
+ 'tip' message (the rotation) never grows a button with nowhere to go. */
5067
+ #companion-go[hidden] {
5068
+ display: none;
3513
5069
  }
3514
5070
  /* Same author-stylesheet-beats-UA-stylesheet gotcha as .update-banner above:
3515
5071
  .card's `display: grid` (or similar) outranks the UA sheet's
@@ -3527,16 +5083,20 @@ body.keys-open {
3527
5083
  the precedence or the card teaches the wrong order. */
3528
5084
  .rules-block {
3529
5085
  margin-top: 10px;
3530
- border-top: 1px solid var(--line, rgba(128, 128, 128, 0.25));
5086
+ border-top: 1px solid var(--border);
3531
5087
  padding-top: 10px;
3532
5088
  }
5089
+ /* Same label as `.card h2` (11px, 0.08em) — this used to be 12px/0.04em, a
5090
+ second heading scale that made Tool approvals read as a different screen
5091
+ from the rows above it in the same card. */
3533
5092
  .rules-title {
3534
- font-size: 12px;
3535
- font-weight: 600;
5093
+ font-size: calc(12px * var(--app-font-scale, 1));
5094
+ font-weight: var(--fw-semibold);
3536
5095
  text-transform: uppercase;
3537
- letter-spacing: 0.04em;
5096
+ letter-spacing: 0.08em;
5097
+ font-family: var(--font-display);
3538
5098
  opacity: 0.75;
3539
- margin: 0 0 6px;
5099
+ margin: 0 0 8px;
3540
5100
  }
3541
5101
  .rules-list {
3542
5102
  list-style: none;
@@ -3552,9 +5112,9 @@ body.keys-open {
3552
5112
  display: flex;
3553
5113
  align-items: center;
3554
5114
  gap: 8px;
3555
- padding: 3px 6px;
3556
- border-radius: 4px;
3557
- background: rgba(128, 128, 128, 0.08);
5115
+ padding: 5px 8px;
5116
+ border-radius: var(--r-sm);
5117
+ background: var(--surface2);
3558
5118
  }
3559
5119
  .rules-row-muted {
3560
5120
  opacity: 0.6;
@@ -3564,8 +5124,8 @@ body.keys-open {
3564
5124
  }
3565
5125
  .rules-tag {
3566
5126
  flex: 0 0 auto;
3567
- font-size: 10px;
3568
- font-weight: 700;
5127
+ font-size: calc(12px * var(--app-font-scale, 1));
5128
+ font-weight: var(--fw-bold);
3569
5129
  text-transform: uppercase;
3570
5130
  letter-spacing: 0.05em;
3571
5131
  padding: 1px 5px;
@@ -3581,12 +5141,12 @@ body.keys-open {
3581
5141
  .rules-pattern {
3582
5142
  flex: 1 1 auto;
3583
5143
  font-family: var(--font-mono);
3584
- font-size: 12px;
5144
+ font-size: calc(12px * var(--app-font-scale, 1));
3585
5145
  word-break: break-all;
3586
5146
  }
3587
5147
  .rules-remove {
3588
5148
  flex: 0 0 auto;
3589
- font-size: 11px;
5149
+ font-size: calc(12px * var(--app-font-scale, 1));
3590
5150
  padding: 1px 6px;
3591
5151
  }
3592
5152
  .rules-add {
@@ -3601,19 +5161,148 @@ body.keys-open {
3601
5161
  flex: 1 1 auto;
3602
5162
  min-width: 0;
3603
5163
  font-family: var(--font-mono);
3604
- font-size: 12px;
5164
+ font-size: calc(12px * var(--app-font-scale, 1));
5165
+ }
5166
+
5167
+ /* ────────────────────────────────────────── topbar actions (right side)
5168
+ The verbs that belong to a conversation: Import, the CLI face, and starting
5169
+ a new message. They used to be three `ghost-btn`s with three different
5170
+ weights — one tinted teal, one monospaced, one plain — which made three
5171
+ equal actions look like a hierarchy nobody had designed.
5172
+
5173
+ Now they share one primitive (`.tb-btn`): icon + label, one height, one
5174
+ radius. Only `New message` is tinted, because it is the only one that is a
5175
+ primary action; Import and CLI are outlined peers. The icon is a real glyph,
5176
+ not a text abbreviation, so the row scans at a glance instead of being read
5177
+ left to right. `inline-flex` + `gap` keeps icon and label on one optical
5178
+ centre line — the old `padding: 4px 10px` box sat text off-centre against
5179
+ the 36px bar. */
5180
+ .topbar-actions {
5181
+ display: flex;
5182
+ align-items: center;
5183
+ /* 4px between the actions too (`gap-1` in the reference strip). */
5184
+ gap: 4px;
5185
+ flex: 0 0 auto;
5186
+ }
5187
+
5188
+ .tb-btn {
5189
+ display: inline-flex;
5190
+ align-items: center;
5191
+ justify-content: center;
5192
+ gap: 6px;
5193
+ /* 28px inside a 35px bar: 3.5px of air above and below. Measured off
5194
+ Antigravity's action pills (`agy-button-sm`), which are 28px tall in a
5195
+ 35px strip with `0 10px` padding and a full pill radius. Ours were 26px,
5196
+ 6px-radius, 12px type — a compact button from a different design system
5197
+ sitting in the same bar as the window title. */
5198
+ height: 28px;
5199
+ padding: 0 10px;
5200
+ border: 1px solid transparent;
5201
+ border-radius: var(--r-pill);
5202
+ background: transparent;
5203
+ /* Resting colour IS the reference's resting colour: rgb(135,136,143), which
5204
+ is exactly our --text3. Anything lighter made three quiet verbs out-shout
5205
+ the conversation title they sit beside. */
5206
+ color: var(--text3);
5207
+ font: inherit;
5208
+ /* 14px/500, not 12px: the reference uses its body size in the strip, and
5209
+ `font: inherit` + 12px was fighting itself — inherit then override. The
5210
+ short ramp is --fs-body / --lh-body, so there is nothing to invent. */
5211
+ font-size: var(--fs-body);
5212
+ font-weight: var(--fw-medium);
5213
+ line-height: var(--lh-body);
5214
+ white-space: nowrap;
5215
+ cursor: pointer;
5216
+ transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
5217
+ }
5218
+
5219
+ /* The label must not shift the icon on hover — the transition above is on
5220
+ colours only, never transform/padding, so hovering cannot reflow the row. */
5221
+ .tb-icon {
5222
+ flex: 0 0 auto;
5223
+ display: block;
5224
+ /* 18px, which is what Antigravity's own action icons measure (18x18 on
5225
+ `Toggle Sidebar`, `More actions` and the menu button). 14px next to 14px
5226
+ type read as a bullet beside a word rather than an icon beside a label. */
5227
+ width: 18px;
5228
+ height: 18px;
3605
5229
  }
3606
5230
 
3607
- /* ─────────────────────────────────────────────────────── import sheet
3608
- The toolbar's "Import session" surface. Same panel/backdrop primitives as the
3609
- memory inspector and session search (one sheet look in the app), plus the two
3610
- pieces only this sheet needs: a compact toolbar button that does not shout
3611
- next to "New chat", and a footer where the two import actions live. */
5231
+ .tb-btn:disabled {
5232
+ opacity: 0.45;
5233
+ cursor: default;
5234
+ }
3612
5235
 
3613
- .toolbar-import {
3614
- margin-right: 8px;
3615
- border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
3616
- color: color-mix(in srgb, var(--teal) 80%, var(--text));
5236
+ /* Secondary: outlined on hover, invisible until then, so the bar stays quiet
5237
+ and `New message` keeps the only permanent fill. */
5238
+ .tb-ghost {
5239
+ border-color: transparent;
5240
+ }
5241
+
5242
+ /* Hover is the reference's hover: text lifts from --text3 to --text2
5243
+ (rgb(188,189,198), measured) over the selected-row fill it uses elsewhere,
5244
+ `rgb(255 255 255 / 0.09)`. No border appears, because a border on hover
5245
+ changes the button's painted size by a pixel and makes the row twitch. */
5246
+ .tb-ghost:hover {
5247
+ background: rgb(255 255 255 / 0.09);
5248
+ color: var(--text2);
5249
+ }
5250
+
5251
+ .tb-ghost:active {
5252
+ background: rgb(255 255 255 / 0.13);
5253
+ }
5254
+
5255
+ /* Primary: the one action a conversation always offers. Teal-tinted fill at
5256
+ low alpha rather than a solid teal block — a saturated block in a 36px bar
5257
+ out-weighs the window title beside it. */
5258
+ .tb-primary {
5259
+ background: color-mix(in srgb, var(--teal) 14%, var(--surface2));
5260
+ border-color: color-mix(in srgb, var(--teal) 32%, var(--border));
5261
+ color: color-mix(in srgb, var(--teal) 82%, var(--text));
5262
+ }
5263
+
5264
+ .tb-primary:hover {
5265
+ background: color-mix(in srgb, var(--teal) 22%, var(--surface2));
5266
+ border-color: color-mix(in srgb, var(--teal) 55%, var(--border));
5267
+ color: var(--teal);
5268
+ }
5269
+
5270
+ .tb-primary:active {
5271
+ background: color-mix(in srgb, var(--teal) 28%, var(--surface2));
5272
+ }
5273
+
5274
+ /* Focus is visible and only on keyboard focus, so a mouse click does not leave
5275
+ a ring sitting in the chrome. */
5276
+ .tb-btn:focus-visible {
5277
+ outline: 2px solid color-mix(in srgb, var(--teal) 70%, transparent);
5278
+ outline-offset: 1px;
5279
+ }
5280
+
5281
+ /* A hairline between the two secondary verbs and the primary one: without it
5282
+ three adjacent pills read as one segmented control. */
5283
+ .tb-sep {
5284
+ width: 1px;
5285
+ height: 16px;
5286
+ margin: 0 2px;
5287
+ background: var(--border);
5288
+ }
5289
+
5290
+ /* Narrow windows: drop the labels, keep the buttons. The `title` attribute on
5291
+ each button still names it on hover, and every one of them keeps its full
5292
+ hit area — this is the one place a label can go without losing meaning,
5293
+ because the glyph and the tooltip both survive. */
5294
+ @media (max-width: 860px) {
5295
+ .tb-label {
5296
+ display: none;
5297
+ }
5298
+
5299
+ /* Square, pill-radius collapse: a label-less pill keeps its 28px height and
5300
+ becomes as wide as it is tall, which is the same 28x28 the reference uses
5301
+ for its icon-only actions. */
5302
+ .tb-btn {
5303
+ padding: 0;
5304
+ width: 28px;
5305
+ }
3617
5306
  }
3618
5307
 
3619
5308
  .import-overlay .memory-panel {
@@ -3633,14 +5322,14 @@ body.keys-open {
3633
5322
  }
3634
5323
 
3635
5324
  .import-row .import-source {
3636
- font-size: 12px;
5325
+ font-size: calc(12px * var(--app-font-scale, 1));
3637
5326
  color: var(--text);
3638
5327
  }
3639
5328
 
3640
5329
  .import-row .session-meta {
3641
5330
  margin-left: auto;
3642
5331
  font-family: var(--font-mono);
3643
- font-size: 11px;
5332
+ font-size: calc(12px * var(--app-font-scale, 1));
3644
5333
  color: var(--text2);
3645
5334
  }
3646
5335
 
@@ -3669,7 +5358,7 @@ body.keys-open {
3669
5358
  display: flex;
3670
5359
  align-items: center;
3671
5360
  gap: 6px;
3672
- font-size: 11px;
5361
+ font-size: calc(12px * var(--app-font-scale, 1));
3673
5362
  color: var(--text2);
3674
5363
  }
3675
5364
 
@@ -3677,3 +5366,394 @@ body.keys-open {
3677
5366
  width: auto;
3678
5367
  margin: 0;
3679
5368
  }
5369
+
5370
+ /* ── First-run sign-in gate ───────────────────────────────────────────────
5371
+ Antigravity/Gemini-style: one glyph, one headline, one primary action,
5372
+ nothing else competing for the first second. Gating logic lives in
5373
+ app.js (initOnboardingGate) — this is paint only. */
5374
+ .onboard-overlay {
5375
+ position: fixed;
5376
+ inset: 0;
5377
+ z-index: 10000;
5378
+ display: flex;
5379
+ align-items: center;
5380
+ justify-content: center;
5381
+ background: var(--bg);
5382
+ opacity: 1;
5383
+ transition: opacity var(--dur-3) var(--ease-out);
5384
+ /* The two atmosphere layers below are absolutely positioned pseudo-elements,
5385
+ and this must be a stacking context for them not to escape over the card.
5386
+ `isolation` rather than a z-index because the overlay already owns one. */
5387
+ isolation: isolate;
5388
+ /* Fallbacks for the pre-color-mix path: the default accent (teal) baked in.
5389
+ A skin that changes `--accent-base` moves the blooms only where color-mix
5390
+ is supported — which is the same degradation the accent skins accept. */
5391
+ --ob-bloom: rgba(0, 229, 192, 0.15);
5392
+ --ob-bloom-2: rgba(0, 229, 192, 0.07);
5393
+ }
5394
+
5395
+ @supports (color: color-mix(in srgb, red, blue)) {
5396
+ .onboard-overlay {
5397
+ /* Derived from `--teal` ON THIS ELEMENT, not on :root: custom-property
5398
+ substitution happens where the property is DECLARED, so declaring these
5399
+ here is what lets a body-level accent skin reach the backdrop. Same trap
5400
+ documented at the accent skins above. */
5401
+ --ob-bloom: color-mix(in srgb, var(--teal) 15%, transparent);
5402
+ --ob-bloom-2: color-mix(in srgb, var(--teal) 7%, transparent);
5403
+ }
5404
+ }
5405
+
5406
+ /* The augmented backdrop.
5407
+ *
5408
+ * Both pseudo-elements are `position: absolute` for a load-bearing reason: a
5409
+ * bare pseudo on a flex container is laid out AS A FLEX ITEM, so it would take
5410
+ * a slot in the centring group and shove the card off-centre by its own width.
5411
+ * Absolute takes them out of flow; the card gets z-index 1 to stay above.
5412
+ *
5413
+ * Three blooms plus a vignette. The blooms are all in the accent family so the
5414
+ * backdrop is part of the product's identity rather than a stock dark gradient,
5415
+ * and the topmost one is a neutral white lift so the screen reads as lit from
5416
+ * above in every skin — including `onyx`, whose accent is unchanged. */
5417
+ .onboard-overlay::before {
5418
+ content: '';
5419
+ position: absolute;
5420
+ inset: 0;
5421
+ z-index: 0;
5422
+ pointer-events: none;
5423
+ background:
5424
+ /* paint order is first-listed-on-top, so this neutral rim reads over the blooms */
5425
+ linear-gradient(to bottom, rgb(255 255 255 / 0.05), transparent 14%),
5426
+ radial-gradient(ellipse 54% 42% at 50% 33%, var(--ob-bloom) 0%, transparent 72%),
5427
+ radial-gradient(circle 360px at 16% 80%, var(--ob-bloom-2) 0%, transparent 70%),
5428
+ radial-gradient(circle 320px at 85% 20%, var(--ob-bloom-2) 0%, transparent 68%),
5429
+ /* vignette last so it darkens everything under it toward the edges and the
5430
+ card stays the brightest object on screen */
5431
+ radial-gradient(ellipse 92% 84% at 50% 46%, transparent 26%, rgb(0 0 0 / 0.62) 100%);
5432
+ }
5433
+
5434
+ /* The instrument mesh — the "augmented" half of the treatment. A 32px rule
5435
+ * grid held at 4% white, radially masked so it fades out before the edges
5436
+ * instead of tiling to them like a swatch. Without the mask it reads as
5437
+ * wallpaper at full-bleed sizes; with it, it reads as depth.
5438
+ *
5439
+ * The mask HOLDS full strength to 46% and only then fades. A straight
5440
+ * 0%→74% ramp was measured at 0.09 alpha across the visible flank of the
5441
+ * screen — the grid was declared, painted, and effectively invisible (all
5442
+ * pixels within 1/255 of the backdrop). Holding the inner band is what makes
5443
+ * the mesh resolve; the fade still keeps it off the edges. */
5444
+ .onboard-overlay::after {
5445
+ content: '';
5446
+ position: absolute;
5447
+ inset: 0;
5448
+ z-index: 0;
5449
+ pointer-events: none;
5450
+ background-image:
5451
+ linear-gradient(to right, rgb(255 255 255 / 0.04) 1px, transparent 1px),
5452
+ linear-gradient(to bottom, rgb(255 255 255 / 0.04) 1px, transparent 1px);
5453
+ background-size: 32px 32px;
5454
+ -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 40%, #000 0%, #000 46%, transparent 100%);
5455
+ mask-image: radial-gradient(ellipse 68% 58% at 50% 40%, #000 0%, #000 46%, transparent 100%);
5456
+ }
5457
+
5458
+ .onboard-overlay[hidden] {
5459
+ display: none;
5460
+ }
5461
+
5462
+ .onboard-overlay.is-leaving {
5463
+ opacity: 0;
5464
+ pointer-events: none;
5465
+ }
5466
+
5467
+ .onboard-card {
5468
+ display: flex;
5469
+ flex-direction: column;
5470
+ align-items: center;
5471
+ width: 92%;
5472
+ max-width: 400px;
5473
+ text-align: center;
5474
+ /* Above both backdrop layers. The card stays unfilled on purpose — the
5475
+ blooms are the design, and a panel here would hide them. */
5476
+ position: relative;
5477
+ z-index: 1;
5478
+ }
5479
+
5480
+ .onboard-glyph {
5481
+ font-size: calc(48px * var(--app-font-scale, 1));
5482
+ font-weight: 800;
5483
+ font-family: var(--font-display);
5484
+ color: var(--text);
5485
+ line-height: 1;
5486
+ margin-bottom: var(--s-4);
5487
+ }
5488
+
5489
+ .onboard-title {
5490
+ font-size: calc(22px * var(--app-font-scale, 1));
5491
+ font-weight: var(--fw-semibold);
5492
+ color: var(--text);
5493
+ margin: 0 0 var(--s-2);
5494
+ font-family: var(--font-display);
5495
+ }
5496
+
5497
+ .onboard-sub {
5498
+ font-size: calc(13px * var(--app-font-scale, 1));
5499
+ color: var(--text2);
5500
+ line-height: 1.6;
5501
+ margin: 0 0 var(--s-4);
5502
+ }
5503
+
5504
+ .onboard-btn {
5505
+ width: 100%;
5506
+ display: flex;
5507
+ align-items: center;
5508
+ justify-content: center;
5509
+ gap: var(--s-2);
5510
+ padding: 11px var(--s-4);
5511
+ border-radius: var(--r-pill);
5512
+ border: 1px solid var(--border2);
5513
+ background: var(--surface2);
5514
+ color: var(--text);
5515
+ font: inherit;
5516
+ font-size: calc(14px * var(--app-font-scale, 1));
5517
+ font-weight: var(--fw-semibold);
5518
+ cursor: pointer;
5519
+ margin-bottom: var(--s-2);
5520
+ transition: filter var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
5521
+ }
5522
+
5523
+ .onboard-btn:hover:not(:disabled) {
5524
+ filter: brightness(1.12);
5525
+ }
5526
+
5527
+ .onboard-btn:disabled {
5528
+ opacity: 0.6;
5529
+ cursor: not-allowed;
5530
+ }
5531
+
5532
+ .onboard-btn-google {
5533
+ background: var(--google-blue);
5534
+ border-color: var(--google-blue);
5535
+ color: #fff;
5536
+ }
5537
+
5538
+ .onboard-g-icon {
5539
+ flex: 0 0 auto;
5540
+ }
5541
+
5542
+ .onboard-status {
5543
+ min-height: 16px;
5544
+ font-size: calc(12px * var(--app-font-scale, 1));
5545
+ color: var(--text2);
5546
+ margin: var(--s-1) 0 var(--s-3);
5547
+ }
5548
+
5549
+ .onboard-status.is-err {
5550
+ color: var(--red);
5551
+ }
5552
+
5553
+ .onboard-status.is-ok {
5554
+ color: var(--green);
5555
+ }
5556
+
5557
+ .onboard-skip {
5558
+ background: none;
5559
+ border: none;
5560
+ color: var(--text3);
5561
+ font-size: calc(12px * var(--app-font-scale, 1));
5562
+ cursor: pointer;
5563
+ padding: 4px;
5564
+ }
5565
+
5566
+ .onboard-skip:hover {
5567
+ color: var(--text2);
5568
+ }
5569
+
5570
+ /* ───────────────────────────────────────────────────────── command palette (⌘P)
5571
+ *
5572
+ * Same overlay layer as the other sheets (.memory-overlay), so Escape ordering
5573
+ * and the backdrop blur are consistent rather than a second idiom. The panel is
5574
+ * narrower than a search sheet on purpose: a command list is scanned, not read,
5575
+ * and a wide panel makes the eye travel for no gain.
5576
+ */
5577
+ .palette-overlay[hidden] {
5578
+ display: none;
5579
+ }
5580
+
5581
+ .palette-overlay {
5582
+ position: fixed;
5583
+ inset: 0;
5584
+ z-index: 60;
5585
+ display: flex;
5586
+ align-items: flex-start;
5587
+ justify-content: center;
5588
+ padding: 96px 24px 40px;
5589
+ }
5590
+
5591
+ .palette-panel {
5592
+ position: relative;
5593
+ display: flex;
5594
+ flex-direction: column;
5595
+ width: min(560px, 100%);
5596
+ max-height: 100%;
5597
+ min-height: 0;
5598
+ background: var(--glass);
5599
+ -webkit-backdrop-filter: blur(24px) saturate(1.6);
5600
+ backdrop-filter: blur(24px) saturate(1.6);
5601
+ border: 1px solid var(--glass-border);
5602
+ border-radius: var(--r-xl);
5603
+ box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
5604
+ overflow: hidden;
5605
+ }
5606
+
5607
+ /* The label wraps the input so the visible name is a real <label>; it is
5608
+ visually the field's top line, not a floating caption, which is why it sits
5609
+ inside the border rather than above it. */
5610
+ .palette-field {
5611
+ display: flex;
5612
+ align-items: center;
5613
+ gap: 10px;
5614
+ padding: 12px 14px;
5615
+ border-bottom: 1px solid var(--border);
5616
+ }
5617
+
5618
+ .palette-label {
5619
+ font-family: var(--font-mono);
5620
+ font-size: calc(12px * var(--app-font-scale, 1));
5621
+ letter-spacing: 0.06em;
5622
+ text-transform: uppercase;
5623
+ color: var(--text3);
5624
+ flex: none;
5625
+ }
5626
+
5627
+ .palette-field input {
5628
+ flex: 1;
5629
+ min-width: 0;
5630
+ background: transparent;
5631
+ border: 0;
5632
+ color: var(--text);
5633
+ font: inherit;
5634
+ font-size: var(--fs-body);
5635
+ padding: 0;
5636
+ }
5637
+
5638
+ .palette-field input:focus {
5639
+ outline: none;
5640
+ }
5641
+
5642
+ .palette-field input::placeholder {
5643
+ color: var(--placeholder);
5644
+ }
5645
+
5646
+ /* Scans, so: no bullets, tight rows on the same 32px pitch as the rail, and
5647
+ the selected row is a solid fill rather than a left bar — at this size a bar
5648
+ is a detail you have to hunt for. */
5649
+ .palette-list {
5650
+ list-style: none;
5651
+ margin: 0;
5652
+ padding: 6px;
5653
+ overflow-y: auto;
5654
+ min-height: 0;
5655
+ scrollbar-gutter: stable;
5656
+ }
5657
+
5658
+ .palette-row {
5659
+ display: flex;
5660
+ align-items: baseline;
5661
+ gap: 10px;
5662
+ min-height: 32px;
5663
+ padding: 6px 8px;
5664
+ border-radius: var(--r-sm);
5665
+ cursor: default;
5666
+ }
5667
+
5668
+ .palette-row .palette-row-label {
5669
+ color: var(--text);
5670
+ font-size: var(--fs-body);
5671
+ white-space: nowrap;
5672
+ overflow: hidden;
5673
+ text-overflow: ellipsis;
5674
+ }
5675
+
5676
+ .palette-row .palette-row-hint {
5677
+ color: var(--text3);
5678
+ font-size: var(--fs-small);
5679
+ white-space: nowrap;
5680
+ overflow: hidden;
5681
+ text-overflow: ellipsis;
5682
+ margin-left: auto;
5683
+ flex: none;
5684
+ max-width: 55%;
5685
+ }
5686
+
5687
+ .palette-row.is-active,
5688
+ .palette-row:hover {
5689
+ background: var(--surface3);
5690
+ }
5691
+
5692
+ .palette-row.is-active .palette-row-label {
5693
+ color: var(--teal);
5694
+ }
5695
+
5696
+ .palette-empty {
5697
+ margin: 0;
5698
+ padding: 14px;
5699
+ color: var(--text3);
5700
+ font-size: var(--fs-small);
5701
+ }
5702
+
5703
+ /* The chord legend. Shown rather than hidden behind a "?" because a palette is
5704
+ discovered, not documented — the first open is where the keys get learned. */
5705
+ .palette-foot {
5706
+ display: flex;
5707
+ gap: 14px;
5708
+ padding: 8px 14px;
5709
+ border-top: 1px solid var(--border);
5710
+ color: var(--text3);
5711
+ font-size: calc(12px * var(--app-font-scale, 1));
5712
+ }
5713
+
5714
+ .palette-key {
5715
+ display: inline-flex;
5716
+ align-items: center;
5717
+ gap: 4px;
5718
+ }
5719
+
5720
+ .palette-foot kbd {
5721
+ font-family: var(--font-mono);
5722
+ font-size: calc(12px * var(--app-font-scale, 1));
5723
+ color: var(--text2);
5724
+ background: var(--surface);
5725
+ border: 1px solid var(--border);
5726
+ border-radius: 4px;
5727
+ padding: 1px 4px;
5728
+ }
5729
+
5730
+ /* Sidebar collapse (⌘B). The rail is hidden, not unmounted: its state (which
5731
+ view is showing, scroll position) survives the toggle, so collapsing and
5732
+ expanding does not silently reset where the user was. */
5733
+ .side.is-collapsed {
5734
+ display: none;
5735
+ }
5736
+
5737
+ /* ── Reduced motion (parity pass 2, Phase E) ───────────────────────────────
5738
+ *
5739
+ * The reference ships a `.no-animations` switch. Three local
5740
+ * `prefers-reduced-motion` blocks already existed, each covering the one
5741
+ * animation being written at the time — which is exactly how a reduce-motion
5742
+ * promise ends up honoured in three places and broken in a seventh. This is the
5743
+ * catch-all: it retires every transition and animation the sheet declares,
5744
+ * including ones added later that forget to opt in.
5745
+ *
5746
+ * `0.01ms` rather than `none`: a `transition: none` can make a `transitionend`
5747
+ * listener never fire, and any code awaiting one would hang instead of
5748
+ * degrading. A duration too short to perceive still emits the event.
5749
+ */
5750
+ @media (prefers-reduced-motion: reduce) {
5751
+ *,
5752
+ *::before,
5753
+ *::after {
5754
+ animation-duration: 0.01ms !important;
5755
+ animation-iteration-count: 1 !important;
5756
+ transition-duration: 0.01ms !important;
5757
+ scroll-behavior: auto !important;
5758
+ }
5759
+ }