typebulb 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1887 +1,1887 @@
1
- :root {
2
- /* Light is the default; data-theme="dark" is set by the host (typebulb.com
3
- or the typebulb CLI, sourced from prefers-color-scheme).
4
- GRAY RAMP — every gray rides ONE neutral tint (R=G=B), like the main app's
5
- bg1–bg5 ramp. Lightness may step; the HUE never changes. The bug to avoid is a
6
- gray in a *different* tint (a cool/blue panel beside a neutral one), not the
7
- number of steps. App chrome (statusbar, picker, modals) sits on the fixed
8
- --panel. Document panels — code, callouts, tables, user bubbles, open tools —
9
- paint --veil instead: a translucent neutral that matches --panel when alone on
10
- the page but COMPOUNDS when panels nest (a code block in a callout, a panel in a
11
- user bubble), so every depth separates on its own — no level-counting, no cap. */
12
- --bg: rgb(255, 255, 255);
13
- --fg: rgb(28, 28, 30);
14
- --muted: rgb(96, 96, 100);
15
- --panel: rgb(242, 242, 242);
16
- --border: rgb(221, 221, 221);
17
- --accent: rgb(58, 125, 232);
18
- --veil: rgba(0, 0, 0, 0.05); /* one shade step; alpha-stacks as panels nest */
19
- --tool-bg: var(--panel);
20
- --err: rgb(206, 60, 60);
21
- --warn: rgb(176, 120, 12); /* amber — the cache-leak (cost-caution) tier, milder than --err */
22
- --diff-add: rgb(40, 140, 70);
23
- --fold-marker: rgb(24, 145, 72);
24
- /* Prose measure for text (bubbles + notes) — kept to a readable line length.
25
- Diagrams break out wider than this; see .md .mermaid. */
26
- --content-max: 800px;
27
- /* One height for every word-pill control — the statusbar pills (bulbs/model/session/token) and
28
- the floating overlay pills (copy, breakout). Set once here so they can't drift apart again;
29
- chosen a touch under the old statusbar 1.7rem and a touch over the overlay pills' ~1.35rem. */
30
- --pill-h: 1.5rem;
31
- /* One text size for every word-pill too (statusbar pills + overlay copy/breakout). Was drifting:
32
- statusbar .85rem vs overlay .72rem read as amateurish. The emoji glyph pill keeps its own size. */
33
- --pill-font: .8rem;
34
- color-scheme: light;
35
- }
36
-
37
- html[data-theme="dark"] {
38
- /* Neutral ramp, same tint as the main app: page 18 → surface 32 → border 52. */
39
- --bg: rgb(18, 19, 20);
40
- --fg: rgb(190, 190, 190);
41
- --muted: rgb(150, 150, 150);
42
- --panel: rgb(32, 32, 32);
43
- --border: rgb(52, 52, 52);
44
- --accent: rgb(122, 162, 250);
45
- --veil: rgba(255, 255, 255, 0.06);
46
- --tool-bg: var(--panel);
47
- --err: rgb(230, 60, 60);
48
- --warn: rgb(232, 184, 80); /* amber — the cache-leak (cost-caution) tier, milder than --err */
49
- --diff-add: rgb(100, 210, 130);
50
- --fold-marker: rgb(0, 255, 0);
51
- color-scheme: dark;
52
- }
53
-
54
- /* Aliases for beautiful-mermaid, indirecting around a var-name collision with the
55
- bulb's theme (see the renderMermaidSVG call). They still resolve to the live
56
- theme at the use site. */
57
- :root {
58
- --mm-bg: var(--bg);
59
- --mm-fg: var(--fg);
60
- --mm-line: var(--muted);
61
- --mm-accent: var(--accent);
62
- --mm-muted: var(--muted);
63
- --mm-surface: var(--tool-bg);
64
- --mm-border: var(--border);
65
- }
66
-
67
- * { box-sizing: border-box; }
68
-
69
- body {
70
- margin: 0;
71
- height: 100vh;
72
- overflow: hidden;
73
- color: var(--fg);
74
- background: var(--bg);
75
- font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
76
- font-size: 15px;
77
- line-height: 1.55;
78
- }
79
-
80
- .app { display: flex; flex-direction: column; height: 100vh; }
81
- /* The transcript region. position:relative anchors the overlaid (absolute) statusbar and banners to
82
- THIS box, not the app: with a composer below the pills stay over the transcript's bottom edge
83
- instead of landing on the input panel. */
84
- .chat { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
85
-
86
- /* Bottom status strip, overlaid (not in flow) on the chat — which runs
87
- full-height to the very bottom. The strip itself has NO fill, so the message
88
- text shows through everywhere, right to the bottom edge. Only the items (the
89
- pills) are opaque, so they overlay the text with visual precedence rather than
90
- the strip cutting it off with a band. No border — the typebulb host's rounded
91
- card is the only frame. */
92
- .statusbar {
93
- position: absolute;
94
- left: 0;
95
- right: 0;
96
- bottom: 0;
97
- /* Same column as .messages and the composer: a --content-max band centred in a 1.75rem gutter
98
- (max-width carries the two gutters so the content box lands on --content-max). The pills are
99
- right-aligned within it, so the cluster's right edge tracks the prose column's — consistent
100
- with the input above and the transcript behind. The gutter also clears the overlaid scrollbar
101
- that the old asymmetric right padding was there to dodge. */
102
- margin-inline: auto;
103
- max-width: calc(var(--content-max) + 3.5rem);
104
- display: flex;
105
- align-items: center;
106
- gap: .65rem;
107
- padding: .4rem 1.75rem;
108
- font-size: .8rem;
109
- /* Drop the inherited 1.55 line-height so the bar's own strut doesn't add
110
- phantom ascender/descender room above the pills. Everything in the bar
111
- is a fixed-height pill, which looks right at 1. */
112
- line-height: 1;
113
- min-width: 0;
114
- }
115
- .statusbar-actions {
116
- margin-left: auto;
117
- display: flex;
118
- gap: .4rem;
119
- align-items: center;
120
- }
121
- /* THE CENTERING RECIPE for EVERY word-label control on any surface — the status-bar pills and
122
- floating overlay pills below, and the launcher row's trust switch + B scope chip. One rule = one
123
- source of vertical alignment; when these drift apart it reads as amateurish, so a new word
124
- control joins this selector rather than centering itself (don't re-tweak per button — fix it
125
- here or nowhere). Icon buttons opt back out, keeping flex (see .pill.glyph). Segoe UI's font
126
- ascent (~1.08em) dwarfs its descent (~0.25em), so anything that centers the LINE BOX —
127
- flex, line-height, padding — parks the glyphs ~2px low at pill sizes. `text-box` trims the
128
- line box to the glyphs (cap→baseline) so centering centers the letters themselves. It only
129
- applies to block containers (not flex), hence inline-block + align-content, not inline-flex
130
- + align-items. Browsers without text-box (Firefox) fall back to plain line-box centering. */
131
- .pill, .token, .overlay-pill, .trust-toggle, .batch-b {
132
- display: inline-block;
133
- align-content: center;
134
- text-align: center;
135
- text-box: trim-both cap alphabetic;
136
- }
137
- /* Chip shape shared by the status-bar pills (interactive and passive) AND the floating overlay
138
- pills (copy, breakout, code⇄run) — opaque, so they read cleanly over the message text the
139
- transparent strip lets through. The launcher row's pills take only the recipe above; their
140
- shape is the row's (.trust-toggle, .batch-b). */
141
- .pill, .token, .overlay-pill {
142
- height: var(--pill-h);
143
- padding: 0 .7rem;
144
- border-radius: 7px;
145
- background: var(--panel);
146
- border: 1px solid var(--border);
147
- color: var(--muted);
148
- font-size: var(--pill-font);
149
- white-space: nowrap;
150
- user-select: none;
151
- }
152
- /* Pills are <button>s: reset UA chrome (font/appearance/margin) and add the
153
- interactive affordance. Slightly larger text than the passive indicator. */
154
- .pill {
155
- font: inherit;
156
- font-size: var(--pill-font);
157
- appearance: none;
158
- margin: 0;
159
- cursor: pointer;
160
- }
161
- /* `.on` latches the hover accent — the bar's only persistent state cue (every other
162
- pill accents on hover alone). */
163
- .pill:hover, .pill.on { border-color: var(--accent); color: var(--accent); }
164
- /* Square glyph pill (the prose-mode toggle): width pinned to the pill height rather than
165
- padding-driven — the bar's first non-word pill. The emoji can't take currentColor, so it
166
- carries state itself: grayscale at rest, color while hovered or on — filtered on the
167
- inner span, never the button, or it would wash the accent border too.
168
- Glyph content (emoji span / the Anthropic SVG) is vertically symmetric, so plain flex
169
- centering is exact for it — and cap/alphabetic trim mis-seats a replaced SVG (it trims to
170
- TEXT metrics), so opt glyph pills back out of the word-pill recipe. */
171
- .pill.glyph {
172
- display: inline-flex;
173
- align-items: center;
174
- justify-content: center;
175
- text-box: normal;
176
- width: var(--pill-h);
177
- padding: 0;
178
- font-size: .9rem;
179
- }
180
- .pill.glyph .glyph-img { filter: grayscale(1); opacity: .75; }
181
- .pill.glyph:hover .glyph-img, .pill.glyph.on .glyph-img { filter: none; opacity: 1; }
182
-
183
- /* The two status-bar chips each anchor an upward popover (token breakdown /
184
- session list). Wrap = positioning context; the popover anchors bottom/right and
185
- grows up-and-left — the chips sit in the right-aligned cluster, so left:0 would
186
- run them off the viewport's right edge. */
187
- .token-wrap, .sid-wrap, .servers-wrap, .model-wrap, .gitdiff-wrap { position: relative; display: inline-block; }
188
- /* Each pill renders its wrap unconditionally, emitting an empty div when it has
189
- nothing to show (no tokens / no session / nothing running). An empty wrap is
190
- still a flex child, so .statusbar-actions' gap lands on both its sides —
191
- doubling the visible gap between its neighbours. Collapse the empties so the
192
- cluster spaces evenly regardless of which pills are present. */
193
- .token-wrap:empty, .sid-wrap:empty, .servers-wrap:empty, .model-wrap:empty, .gitdiff-wrap:empty { display: none; }
194
- .picker, .servers-pop {
195
- --menu-h: 428px; /* one height for both statusbar menus — they sit side by side, so a
196
- mismatched cap reads as a glitch; .picker grows to it, .servers-pop
197
- too (the drilled-in console is the one fixed-height exception, see
198
- .log-mode). Sized to show exactly 12 rows
199
- (12 × --menu-row-h + 11 gaps + filter + padding) — recognition fades
200
- past ~12 and search owns the tail. Plain px: desktop-only surface,
201
- every desktop window fits it. 428, not 427: at 427 the two menus land
202
- on different device-pixel roundings, a 1px sibling mismatch — the
203
- lesser evil is 1px off the ideal height. */
204
- --menu-row-h: 29px; /* one row height for both menus' lists — rows must match pitch exactly
205
- or the side-by-side menus read as two designs. Whole px, eyeball-tuned;
206
- the row paddings are kept below it so this floor is what governs. */
207
- /* ONE geometry contract for both menus — sizing policy, padding, stacking. Stating it twice is
208
- how every sibling discrepancy of June '26 happened (row pitch, gaps, fixed-vs-grow). max-height,
209
- not height: a menu hugs its content and caps at the 12 rows above — a fixed height left a
210
- 1-bulb project with a row floating atop a 400px void. Per-menu rules keep only width and
211
- alignment (.pop-center / .pop-start below). */
212
- max-height: var(--menu-h);
213
- overflow: hidden;
214
- padding: .35rem;
215
- /* The bar's line-height:1 is for its fixed-height pills; a menu is a text surface, so restore
216
- descender room HERE, once. Inherited, the 1 crops the tails of "g"/"j"/"p" under every row's
217
- overflow:hidden (the ellipsis clip) — a leaf-by-leaf fix that had already been pasted three
218
- times. Rows are floored at --menu-row-h with their paddings kept under it, so pitch is unchanged. */
219
- line-height: 1.35;
220
- display: flex;
221
- flex-direction: column;
222
- gap: .15rem;
223
- position: absolute;
224
- bottom: calc(100% + .35rem);
225
- right: 0;
226
- z-index: 10;
227
- background: var(--panel);
228
- border: 1px solid var(--border);
229
- border-radius: 10px;
230
- box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
231
- }
232
- /* Menu-list scrollbars: the channel is ALWAYS reserved (overflow-y: scroll on all three lists) and
233
- the scrollbar is owned — no arrow buttons, transparent track, a floating thumb only when the list
234
- actually overflows. Native auto scrollbars made a row band's right inset depend on list length: a
235
- project with no bulbs of its own (one collapsed fold row) ran its band 15px nearer the popover
236
- edge than the filter box under it, and bare overflow:scroll parked a vestigial arrow-stub beside
237
- the short list. Width stays 15px, the native width .model-head's alignment padding hardcodes.
238
- Chromium pseudos on purpose: setting the standard scrollbar-color would disable them. */
239
- :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar { width: 15px; }
240
- :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-button { display: none; }
241
- :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-track { background: transparent; }
242
- :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-thumb {
243
- background-color: color-mix(in srgb, var(--fg) 28%, transparent);
244
- border-radius: 8px;
245
- /* Transparent border + padding-box clip floats a slim pill in the 15px channel. */
246
- border: 4px solid transparent;
247
- background-clip: padding-box;
248
- }
249
- :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--fg) 45%, transparent); }
250
-
251
- /* The overview ruler (overviewRuler.ts): a scroll container's bar, replaced. .oruler-host is applied
252
- by the widget at mount — never statically — so the native bar only disappears once its replacement
253
- is painted. BOTH hiding routes: the standard property covers Gecko, the pseudo covers WebKit, and
254
- Blink honours either, so no engine is left showing two scrollbars. Window and marks are % of a track
255
- that spans the pane, so they share the container's content space. Marks are pointer-inert; the track
256
- takes the press, the drag and the wheel. Colour and the track's inset are the host's (.diff-ruler).
257
- Cursor stays the plain arrow — that's what a scrollbar shows, and `grab` would claim otherwise. */
258
- .oruler-host { scrollbar-width: none; }
259
- .oruler-host::-webkit-scrollbar { width: 0; height: 0; }
260
- .oruler { position: absolute; inset-block: 0; width: 6px; z-index: 5; cursor: default; touch-action: none; }
261
- .oruler-mark { position: absolute; left: 0; right: 0; min-height: 3px; border-radius: 1px; pointer-events: none; }
262
- /* Wider than the track and above the marks, so what's on screen reads as a thumb laid over the map. */
263
- .oruler-win {
264
- position: absolute; left: -3px; right: -3px; z-index: 1; min-height: 6px; border-radius: 3px;
265
- pointer-events: none; background: color-mix(in srgb, var(--fg) 28%, transparent);
266
- }
267
- /* The menu thumbs' own two steps (28/45) — same surface, same weights. Still a wash rather than a
268
- solid fill: the marks it covers are the ones you're about to read. */
269
- .oruler:hover .oruler-win { background: color-mix(in srgb, var(--fg) 45%, transparent); }
270
- /* A finger needs a target a 6px track can't give; the map is worth more widened than dropped. */
271
- @media (pointer: coarse) {
272
- .oruler { width: 14px; }
273
- .oruler-win { left: -2px; right: -2px; }
274
- }
275
- /* Forced colours drop our tints — the window would vanish outright, and the marks' red/green IS the
276
- information, so it keeps its own palette rather than collapsing to one system colour. */
277
- @media (forced-colors: active) {
278
- .oruler-win { background: transparent; border: 1px solid Highlight; }
279
- .oruler-mark { forced-color-adjust: none; }
280
- }
281
- /* Popover alignment — which edge of the pill the menu aligns to (floating-UI's start/center/end
282
- vocabulary; "end", right edges flush and growing left, is the unnamed default above). Tagged on
283
- the pill's WRAP, not each popover root: a menu with several drilled-in views (the model pill's
284
- list/info/diag/key modes) aligns once, and a future mode can't forget. The cluster's left-side
285
- pills (diff, model) center — end-anchored, their menus run out of room growing left. No viewport
286
- clamping: desktop-only; revisit if a narrow window ever clips one. */
287
- .pop-center > :is(.picker, .servers-pop) { right: auto; left: 50%; transform: translateX(-50%); }
288
- .pop-start > :is(.picker, .servers-pop) { right: auto; left: 0; }
289
-
290
- /* ---- Shimmer — the one "working" cue. One gradient, one keyframes, composed via class, never
291
- re-pasted (paste-drift is how each new shimmer kept landing at its own speed). `.shimmer` sweeps
292
- the element's background; `.shimmer-text` clips the sweep to the glyphs alone. Knobs, set by the
293
- using rule: --shimmer-base (the gradient's resting color — transparent for see-through chrome, an
294
- opaque surface for pills that must cover content) and --shimmer-mix (accent strength). Pick the
295
- cadence by the band's LINEAR speed, which is what reads consistent: travel is proportional to
296
- element width (background-size 250%), and ~2rem/s is the calibrated pace — so narrow chrome
297
- (a 1.7rem play button) takes the 2.2s default and anything text-width or wider takes
298
- `.shimmer-slow` (7s). A fast sweep reads as urgency, not progress. */
299
- /* The state longhands are !important: this class composes onto elements whose resting rules set a
300
- `background:` shorthand at arbitrary specificity (button resets, .overlay-pill, :hover tints) —
301
- any of which would silently kill the gradient (the bug that ate the play button's shimmer). A
302
- working cue must win while it's on; resting background-color still shows beneath the sweep. */
303
- .shimmer, .shimmer-text { background-size: 250% 100% !important; animation: bulb-shimmer var(--shimmer-speed, 2.2s) linear infinite !important; }
304
- .shimmer {
305
- background-image: linear-gradient(100deg, var(--shimmer-base, transparent) 30%, color-mix(in srgb, var(--accent) var(--shimmer-mix, 35%), var(--shimmer-base, transparent)) 50%, var(--shimmer-base, transparent) 70%) !important;
306
- background-color: var(--shimmer-base, transparent);
307
- }
308
- .shimmer-text {
309
- /* Shrink-to-fit, so the sweep paces the text's own length, not the container's — on a full-width
310
- box the band spends most of its run off-glyph (same move as typebulb.com's shimmer.ts). */
311
- display: inline-block;
312
- /* background-clip:text paints the glyphs through this element's own box, so the box must be tall
313
- enough to cover descenders — inheriting the statusbar's line-height:1 clips the "g" in "probing"/
314
- "working…" at the baseline. A descender-clearing line-height restores the paint area; the button
315
- centres this box, so the extra height never unbalances the row. */
316
- line-height: 1.3;
317
- background-image: linear-gradient(100deg, currentColor 35%, var(--accent) 50%, currentColor 65%) !important;
318
- -webkit-background-clip: text;
319
- background-clip: text;
320
- -webkit-text-fill-color: transparent;
321
- }
322
- .shimmer-slow { --shimmer-speed: 7s; }
323
- @keyframes bulb-shimmer { from { background-position: 250% 0; } to { background-position: -250% 0; } }
324
- @media (prefers-reduced-motion: reduce) {
325
- .shimmer { animation: none !important; background: color-mix(in srgb, var(--accent) 15%, var(--shimmer-base, transparent)) !important; }
326
- .shimmer-text { animation: none !important; background: none !important; -webkit-text-fill-color: currentColor; }
327
- }
328
-
329
- /* CC mid-turn: the token pill doubles as the working indicator — an accent shimmer
330
- over the chip, the count frozen until the turn flushes. Passive — driven by the
331
- live-chain leaf, not a live token stream (the JSONL is flushed in batches, so this
332
- can sit lit through a multi-minute buffering window — hence shimmer-slow). The sweep
333
- blends with --panel, not transparent like the launch buttons': statusbar pills must
334
- stay opaque over the message text the strip lets through. */
335
- .token.busy { border-color: var(--accent); --shimmer-base: var(--panel); --shimmer-mix: 25%; }
336
-
337
- /* ── The composer (TB-Agent-Composer.md): the prompt panel under the transcript. In flow (not
338
- overlaid like the statusbar) — it owns real height and must never cover content. ── */
339
- .composer { position: relative; flex: none; background: var(--bg); padding-inline: 1.75rem; }
340
- /* Keep the composer's rows on the same prose column as the transcript (--content-max, centered like
341
- .messages) — full-mirror-width input reads badly, the eye has to travel to wrap long lines. The
342
- 1.75rem inline padding above matches .messages' gutter so the two columns align at every width. */
343
- .composer .splitter,
344
- .composer .input-wrap,
345
- .composer-err,
346
- .composer-status,
347
- .composer-queue {
348
- max-width: var(--content-max);
349
- margin-inline: auto;
350
- }
351
- /* A 4px drag zone centered on the composer's top border; z-index lifts it above the input-wrap
352
- border so the line itself is grabbable. */
353
- .splitter {
354
- position: relative;
355
- height: 4px;
356
- margin-top: -2px;
357
- margin-bottom: -2px;
358
- z-index: 5;
359
- cursor: row-resize;
360
- background: transparent;
361
- flex-shrink: 0;
362
- }
363
- .splitter:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
364
- .input-wrap { position: relative; border-top: 1px solid var(--border); }
365
- .composer-input {
366
- width: 100%;
367
- display: block;
368
- resize: none; /* height is splitter-driven (inline style), not the native handle */
369
- border: none;
370
- border-radius: 0;
371
- background: var(--bg);
372
- color: var(--fg);
373
- font: inherit;
374
- font-size: .9rem;
375
- line-height: 1.45;
376
- /* Zero horizontal padding so the text sits flush on the --content-max column — its left and right
377
- edges line up with the transcript prose (which has no inset) and the splitter. Buttons live in
378
- .composer-actions below, so the text needs no right gutter either. */
379
- padding: .5rem 0;
380
- }
381
- .composer-input:focus { outline: none; }
382
- .composer-input:disabled { opacity: .6; }
383
- .composer-input::placeholder { color: var(--muted); }
384
- /* The icons.ts shell: one span, sized HERE (never by svg attrs), the material/custom svg filling
385
- it. 14px default; context classes (.btn-icon, .caret-tri, …) override. */
386
- .icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: none; }
387
- .icon svg { width: 100%; height: 100%; display: block; }
388
- /* The action bar under the textarea, right-aligned: send/stop is the primary CTA; + (new
389
- conversation) and the clipboard clip are the quiet secondaries to its left. Below the text (not
390
- overlaid) so the textarea keeps the full prose column. */
391
- .composer-actions {
392
- display: flex;
393
- justify-content: flex-end;
394
- align-items: center;
395
- gap: .15rem;
396
- padding: 0 0 .4rem; /* flush right, so Send lines up with the copy pill / statusbar pills */
397
- }
398
- .composer-act, .composer-new, .composer-clip {
399
- width: 28px;
400
- height: 28px;
401
- display: flex;
402
- align-items: center;
403
- justify-content: center;
404
- padding: 0;
405
- margin: 0;
406
- appearance: none;
407
- border: none;
408
- border-radius: 50%;
409
- cursor: pointer;
410
- transition: background .15s, color .15s, transform .08s;
411
- }
412
- /* Send/stop are CIRCLE GLYPHS (play_circle / stop_circle — typebulb.com's play look): the icon IS
413
- the button, no painted disc. One size for all three — the circles' diameter and the paperclip's
414
- ink height are both 800/960 of the material viewBox, so equal boxes = equal visual height. */
415
- .composer-act .icon, .composer-new .icon, .composer-clip .icon { width: 24px; height: 24px; }
416
- .composer-act { background: transparent; }
417
- .composer-act.send { color: var(--accent); }
418
- .composer-act.send:hover:not(:disabled) { color: color-mix(in srgb, var(--accent) 80%, white); background: color-mix(in srgb, var(--accent) 10%, transparent); }
419
- .composer-act.stop { color: var(--err); }
420
- .composer-act.stop:hover { color: color-mix(in srgb, var(--err) 80%, white); background: color-mix(in srgb, var(--err) 10%, transparent); }
421
- .composer-act:active, .composer-new:active, .composer-clip:active { transform: scale(.94); }
422
- .composer-act:disabled, .composer-new:disabled, .composer-clip:disabled { opacity: .5; cursor: default; }
423
- .composer-new {
424
- background: transparent;
425
- color: var(--muted);
426
- }
427
- .composer-new:hover:not(:disabled) { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
428
- .composer-clip {
429
- background: transparent;
430
- color: var(--muted);
431
- }
432
- .composer-clip:hover:not(:disabled) { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
433
- /* Zero horizontal padding (like .composer-input): these rows sit flush on the content column. */
434
- .composer-err { padding: .3rem 0; color: var(--err); font-size: .78rem; }
435
- /* The ambient status line (TB-Agent-Composer-Toolkit.md Piece 2): one slim kind-tinted row above the
436
- input — a retry/compaction in progress, an extension notice, a recipe's transient result. */
437
- .composer-status { padding: .3rem 0; font-size: .78rem; color: var(--accent); }
438
- .composer-status.warning { color: var(--warn); }
439
- .composer-status.error { color: var(--err); }
440
- /* The pending-queue strip (parity #2): queued steer/follow-up texts above the input. Block rows,
441
- not a flex column — .queue-row's overflow:hidden would zero flex min-heights (the .dlg-opts
442
- lesson). */
443
- .composer-queue { padding: .15rem 0 0; }
444
- .queue-row { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
445
- .queue-tag { color: var(--accent); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .5rem; }
446
- /* The @-file-mention popup, anchored above the composer. Tall enough for the pickers' full row
447
- caps (10 files / 12 commands); the vh guard + arrow-key scroll-into-view cover short windows. */
448
- .at-popup {
449
- position: absolute;
450
- bottom: calc(100% + .25rem);
451
- left: 0;
452
- right: 0;
453
- max-width: 600px;
454
- margin-inline: auto;
455
- max-height: min(24rem, 50vh);
456
- overflow-y: auto;
457
- background: var(--panel);
458
- border: 1px solid var(--border);
459
- border-radius: 10px;
460
- box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
461
- padding: .25rem;
462
- z-index: 10;
463
- }
464
- .at-row {
465
- padding: .35rem .55rem;
466
- border-radius: 6px;
467
- cursor: pointer;
468
- font-family: ui-monospace, Menlo, monospace;
469
- font-size: .82rem;
470
- white-space: nowrap;
471
- overflow: hidden;
472
- text-overflow: ellipsis;
473
- }
474
- .at-row.active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
475
- .at-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
476
- /* The '/' palette rides the same popup chrome; its rows pair a command with a muted description. */
477
- .slash-desc { color: var(--muted); font-size: .74rem; margin-left: .6rem; }
478
- /* The composer's dialog fields (TB-Agent-Composer-Toolkit.md Piece 3), shared by both homes: the
479
- trust-modal chrome (server dialogs, confirms) and the anchored .dlg-popup (local select/input).
480
- Select options reuse .at-row inside a scroll box. */
481
- /* Block, NOT flex: .at-row's overflow:hidden zeroes flex min-heights, squashing a long option
482
- list (pi can return the whole OpenRouter catalog); block rows keep their natural height and
483
- the box scrolls. */
484
- .dlg-opts {
485
- max-height: 40vh; overflow-y: auto;
486
- border: 1px solid var(--border); border-radius: 8px; padding: .25rem;
487
- }
488
- .dlg-input, .dlg-editor {
489
- font: inherit; font-size: .85rem; color: var(--fg); background: transparent;
490
- border: 1px solid var(--border); border-radius: 7px; padding: .4rem .6rem; width: 100%;
491
- }
492
- .dlg-input:focus, .dlg-editor:focus { outline: none; border-color: var(--accent); }
493
- .dlg-editor { min-height: 8rem; resize: vertical; }
494
- .dlg-filter { margin-top: .4rem; }
495
- /* A local (recipe) select/input rides the @-popup shell — the gesture register, not the modal's
496
- (composer.ts #dlgAnchored). The popup itself stops scrolling (its .dlg-opts scrolls instead, so
497
- the filter stays pinned at the anchored bottom edge); the opts box drops its border, the popup
498
- frame already provides one. The catcher is the invisible click-away target under the popup. */
499
- .dlg-popup { max-height: none; overflow: visible; }
500
- .dlg-popup .dlg-opts { border: none; padding: 0; }
501
- .dlg-label { font-size: .78rem; color: var(--muted); padding: .1rem .25rem .3rem; }
502
- .dlg-catcher { position: fixed; inset: 0; z-index: 9; }
503
- .at-empty { padding: .6rem; color: var(--muted); font-size: .85rem; text-align: center; }
504
- /* The driver's in-flight assistant message — visibly provisional next to landed bubbles; the
505
- durable row replaces it when the entry hits the transcript. */
506
- .bubble.draft { opacity: .9; }
507
- .draft-wait { color: var(--muted); }
508
- /* Pasted-image thumbnails under a user message that @-mentions .typebulb/paste files. */
509
- .paste-thumbs { margin-top: .4rem; }
510
- .paste-thumb { display: block; max-width: min(360px, 100%); max-height: 240px; margin-top: .3rem; border: 1px solid var(--border); border-radius: 8px; }
511
-
512
- /* Session list — shares the popover chrome (.picker above); these are
513
- just its own dimensions. */
514
- .picker { width: min(440px, calc(100vw - 2rem)); }
515
- /* The filter (.bulb-filter-control) pins at the bottom — the popover's anchored edge, so it never
516
- jumps as the filtered list changes height; the row list scrolls inside the capped box, resting at
517
- its end (newest-at-bottom) — same shape as the launcher's .servers-pop / .bulb-list. */
518
- .picker-list { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-height: 0; overflow-y: scroll; padding-right: 4px; }
519
- /* Positioned wrapper around just the list (not the filter) so the hover-peek card anchors to the
520
- list's bottom edge, sitting above the filter input. */
521
- .picker-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
522
- .picker-empty { padding: .8rem; color: var(--muted); font-size: .85rem; text-align: center; }
523
- .picker-row {
524
- display: flex;
525
- flex-direction: column;
526
- /* flex:none — the explicit min-height below replaces flexbox's implicit min-height:auto floor,
527
- which would otherwise let an overflowing list squash rows below their content (snippet rows
528
- rendered as overlapping text). The list scrolls; rows never compress. */
529
- flex: none;
530
- gap: .2rem;
531
- /* min-height, not height: a full-text result row grows for its snippet line. */
532
- padding: .35rem .55rem;
533
- min-height: var(--menu-row-h);
534
- box-sizing: border-box;
535
- justify-content: center;
536
- border-radius: 6px;
537
- cursor: pointer;
538
- font-size: .85rem;
539
- }
540
- .picker-row-main { display: flex; gap: .6rem; align-items: baseline; }
541
- .picker:focus { outline: none; } /* the list owns its own highlight; no focus ring */
542
- .picker-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
543
- /* Keyboard cursor (arrow keys / hover) — same borderless tint as the launcher's .server-row.active. */
544
- .picker-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
545
- /* The attached session — a leading accent dot in its own gutter slot, reserved (transparent) on
546
- every row so titles align whether or not it's shown, and filled only on the attached row so it
547
- reads as "you are here" even when the cursor has moved off. */
548
- .picker-dot {
549
- flex: none;
550
- align-self: center;
551
- width: 7px;
552
- height: 7px;
553
- border-radius: 50%;
554
- background: transparent;
555
- }
556
- .picker-row.current .picker-dot { background: var(--accent); }
557
- .picker-preview {
558
- flex: 1; min-width: 0;
559
- white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
560
- color: var(--fg);
561
- }
562
- .picker-time {
563
- color: var(--muted);
564
- font-size: .72rem;
565
- min-width: 2.6rem; text-align: right;
566
- }
567
- /* Unread cue (TB-Agent-Mirror-Ready.md): the row's time turns the launcher's running-:port green
568
- (--fold-marker) when the session changed since the mirror opened and hasn't been viewed. */
569
- .picker-time.unseen { color: var(--fold-marker); }
570
- .picker-hits { color: var(--muted); font-size: .72rem; white-space: nowrap; }
571
- /* Full-text result context: first matching turn, indented past the dot gutter into the title column. */
572
- .picker-snippet {
573
- color: var(--muted);
574
- font-size: .78rem;
575
- line-height: 1.4;
576
- margin-left: calc(7px + .6rem);
577
- overflow-wrap: anywhere;
578
- }
579
- .picker-mark {
580
- background: color-mix(in srgb, var(--accent) 30%, transparent);
581
- border-radius: 2px;
582
- color: var(--fg);
583
- }
584
- /* Hover-peek (TB-Agent-Mirror-Ready.md): the session's last output, overlaid over the TOP of the
585
- list — not a floating card but part of the menu, opaque over the rows it covers and set off from
586
- the rows below by one thick divider. Stops at the left edge of the time column (right), so the
587
- elapsed column stays an uninterrupted strip. The list rests newest-at-bottom, so a top overlay
588
- rarely sits on the row being hovered. Out of flow (no reflow); pointer-events:none. */
589
- .picker-peek {
590
- position: absolute;
591
- top: 0; left: 0; right: 3.4rem;
592
- z-index: 5;
593
- max-height: 18em;
594
- overflow: hidden;
595
- padding: .5rem .6rem .6rem;
596
- border-radius: 8px 8px 0 0; /* top rounded to match the menu; bottom square where it meets the rows */
597
- /* One veil step over the opaque panel — the mirror's nested-panel shade (a hair off the menu bg,
598
- still opaque over the rows it covers). */
599
- background: linear-gradient(var(--veil), var(--veil)), var(--panel);
600
- border-bottom: 3px solid color-mix(in srgb, var(--fg) 35%, transparent);
601
- color: var(--fg);
602
- font-size: .8rem; line-height: 1.5;
603
- overflow-wrap: anywhere;
604
- pointer-events: none;
605
- }
606
- .picker-peek.muted { color: var(--muted); font-style: italic; }
607
-
608
- /* Agent switcher (TB-Agent-Switcher.md) — reuses the .picker popover + rows; just its own width and
609
- the no-key entry form. The active model is marked with .picker-row.current (the accent dot), like
610
- the attached session; the "active" tag rides .picker-time's muted right-aligned slot. */
611
- .model-picker { width: min(380px, calc(100vw - 2rem)); }
612
- .model-err { color: var(--danger, #f87171); font-size: .76rem; padding: .3rem .55rem; }
613
- /* Key-entry form: the popover flips to this in place of the list when no key is set yet. */
614
- .key-entry { gap: .5rem; padding: .7rem; }
615
- .key-entry-head { font-size: .85rem; color: var(--fg); }
616
- .key-entry .bulb-filter { width: 100%; }
617
- .key-entry-acts { display: flex; gap: .4rem; justify-content: flex-end; }
618
- .key-entry-note { font-size: .72rem; color: var(--muted); line-height: 1.4; }
619
-
620
- /* Agent switcher watchdog (TB-Agent-Switcher.md). TWO tiers, both surfaced live while the menu is
621
- closed: RED when an Anthropic model is riding the OpenRouter route (the $-per-turn Opus footgun), and
622
- AMBER when the route served a turn uncached (the cache flip — a cost leak, pennies-scale, so quieter
623
- than red so the red stays meaningful). The latch outranks the .on accent (equal specificity → source
624
- order wins): coloured border + text, the bar's loudest states. */
625
- .pill.danger, .pill.danger:hover { border-color: var(--err); color: var(--err); }
626
- .pill.warn, .pill.warn:hover { border-color: var(--warn); color: var(--warn); }
627
- /* The watchdog banner: rendered by Root just above the statusbar, anchored to the .app box. Centered,
628
- capped width, opaque so it reads over the message text the strip lets through. Only present when a
629
- tier is live, so it never costs layout in the common case. .danger is red + a glow ring (loud);
630
- .warn is amber, no ring (a quieter cost cue). */
631
- .model-banner {
632
- position: absolute;
633
- left: 0; right: 0; bottom: 2.6rem;
634
- margin: 0 auto;
635
- max-width: min(640px, calc(100vw - 2rem));
636
- display: flex;
637
- align-items: flex-start;
638
- gap: .5rem;
639
- padding: .55rem .75rem;
640
- border-radius: 8px;
641
- background: var(--bg);
642
- color: var(--fg);
643
- font-size: .8rem;
644
- line-height: 1.4;
645
- }
646
- .model-banner.danger { border: 1px solid var(--err); box-shadow: 0 0 0 2px color-mix(in srgb, var(--err) 22%, transparent), 0 4px 14px rgba(0,0,0,.25); }
647
- .model-banner.warn { border: 1px solid var(--warn); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
648
- .model-banner-icon { flex: none; }
649
- .model-banner-text { color: var(--fg); }
650
- /* L2 predictor: a status line at the top of the model popover saying what the next send will bill.
651
- Muted by default; red when the live model is the Anthropic-via-OpenRouter footgun. */
652
- /* The model menu's top section: ONE row — the route headline (ellipsizing) + the reasoning dial pinned
653
- right. Height is one model-row minus its own border, so the row + border + the popover gap to the list
654
- equal one list-row pitch — the section subtracts a whole row, never a fraction, so no model is clipped
655
- under the scroll. (Eyeball-tune the height; exact pixel math isn't worth it.) The headline carries only
656
- what the user cares about; reroute/uncached mechanics live in its title, not on the line. */
657
- .model-head {
658
- display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex: none;
659
- height: calc(var(--menu-row-h) - 1px); box-sizing: border-box;
660
- /* left padding lines "More info" up with the model titles (row padding .55rem + dot 7px + gap .6rem);
661
- right padding lines the dial up with the per-row "probe" column (row padding .55rem + list
662
- padding-right 4px + scrollbar ~15px — the scrollbar is effectively always present, so it's accounted
663
- for unconditionally; tweak the 15px by eye). */
664
- padding: 0 calc(.55rem + 4px + 15px) 0 calc(.55rem + 7px + .6rem);
665
- border-bottom: 1px solid var(--border);
666
- font-size: .74rem; color: var(--muted);
667
- }
668
- /* The external-override warning is the one case that still puts words on this row. */
669
- .model-route { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
670
- .model-route.warn { color: var(--warn); }
671
- /* "More info" — a quiet text link (not a pill); drills into the routing/reasoning explainer (diag chrome). */
672
- .model-info-toggle {
673
- appearance: none; background: none; border: 0; margin: 0; padding: 0;
674
- font: inherit; font-size: .74rem; color: var(--accent); cursor: pointer; flex: none;
675
- }
676
- .model-info-toggle:hover { text-decoration: underline; }
677
- /* The reasoning label sits a clear gap to the left of the dial; the pair hugs the right edge. */
678
- .reasoning-ctl { display: flex; align-items: center; gap: .5rem; flex: none; }
679
- .reasoning-label { flex: none; }
680
-
681
- /* The reasoning dial — a Min/Low/Med/High native select styled as an accent pill (a full combobox is
682
- over-powered for four fixed levels), pinned to the right of the headline so the dropdown is the row's
683
- last element. */
684
- .reasoning-select {
685
- appearance: none; margin: 0; font: inherit; font-size: .72rem;
686
- width: 4rem; /* match the probe button so the dial shares its column */
687
- /* centred text (symmetric padding) so the label sits like the probe button's centred caption; the
688
- chevron still rides the right padding zone. */
689
- height: 1.5rem; padding: 0 1.1rem; text-align: center; text-align-last: center; border-radius: 999px;
690
- border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
691
- /* OPAQUE (mixed over --panel, not transparent) so the OPEN native option list matches the CLOSED
692
- pill — a transparent fill left the open list on the browser's default bg, a jarring mismatch.
693
- The option rows reuse the same --rs-bg so the two states are identical. */
694
- --rs-bg: color-mix(in srgb, var(--accent) 14%, var(--panel));
695
- background-color: var(--rs-bg);
696
- color: var(--accent); cursor: pointer;
697
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%237aa2fa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
698
- background-repeat: no-repeat; background-position: right .5rem center;
699
- }
700
- .reasoning-select option { background-color: var(--rs-bg); color: var(--fg); }
701
- .reasoning-select:hover { border-color: var(--accent); }
702
- .reasoning-select:focus { outline: none; border-color: var(--accent); }
703
-
704
- /* The Anthropic brand glyph stands in for the word on the default pill (same square footprint as the
705
- prose toggle). currentColor tracks the pill's muted→accent state; grayscale at rest like the monkey. */
706
- .anthropic-glyph { display: block; }
707
- .pill.glyph .anthropic-glyph { filter: grayscale(1); opacity: .8; }
708
- .pill.glyph:hover .anthropic-glyph { filter: none; opacity: 1; }
709
-
710
- .model-row .picker-row-main { align-items: center; }
711
- /* Hold the shared --menu-row-h pitch (TB-Agent-Mirror.md: "rows must match pitch exactly or the
712
- side-by-side menus read as two designs"). The trailing control is the tallest per-row element; like
713
- the launcher's .server-row, trim the inherited .picker-row vertical padding so it stays under the
714
- --menu-row-h floor and that floor — not the padded content — governs the row height. The highlight
715
- still fills the full 29px (it paints the row box, not the padding). */
716
- .model-row { padding-top: .05rem; padding-bottom: .05rem; }
717
- /* The Anthropic (default) row is its own group below the OpenRouter models — it's the distinct "off the
718
- proxy, back to your subscription" choice, not just another model. Marked with a subtle background wash
719
- rather than a divider line: a line fought the rows' rounded corners + inset highlights (poking corners,
720
- uneven gaps), whereas the wash inherits the row's own 6px radius, so it reads as a contained band that
721
- sits naturally. Zero layout impact; lower specificity than :hover/.active, so the row still gives its
722
- normal accent feedback on top. */
723
- .model-default-row { background: color-mix(in srgb, var(--fg) 6%, transparent); }
724
- /* Right-aligned trailing cluster: the green `active` marker (only on the current row) then the
725
- fixed-width status control. The status control is rightmost + fixed width, so its column never moves
726
- as rows probe — least musical chairs. */
727
- .model-trailing { flex: none; display: flex; gap: .35rem; justify-content: flex-end; align-items: center; }
728
- /* ONE button look AND width shared by every trailing pill — probe, probing, the measured status, and
729
- the active marker — so they all line up and a transition only ever changes colour/text, never the
730
- shape. The width is snug to the widest short label ("uncached"); the labels are kept terse precisely
731
- so this stays tight rather than gutter-heavy. */
732
- .model-btn {
733
- appearance: none; margin: 0; font: inherit; font-size: .72rem;
734
- width: 4rem; height: 1.5rem; padding: 0 .25rem; border-radius: 999px;
735
- display: inline-flex; align-items: center; justify-content: center;
736
- border: 1px solid var(--border); background: transparent; color: var(--muted);
737
- white-space: nowrap; cursor: pointer;
738
- }
739
- .model-status.probe:hover { color: var(--accent); border-color: var(--accent); }
740
- /* Measured states. cached = the blue accent (the positive "good route" cue); uncached/unavailable =
741
- red (the states that bite on cost); cache-unconfirmed = neutral. All reuse existing theme colours. */
742
- .model-status.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
743
- .model-status.bad { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); background: color-mix(in srgb, var(--err) 12%, transparent); }
744
- .model-status.warn { color: var(--muted); border-color: var(--border); }
745
- .model-status.ok:hover, .model-status.bad:hover, .model-status.warn:hover { filter: brightness(1.12); text-decoration: underline; }
746
- /* Same pill as every other state — only the text/colour change across probe → probing → result, never
747
- the box. Non-interactive (cursor default); the accent-tinted border holds against the row's accent
748
- hover tint, where the faint default --border washed out. */
749
- .model-status.probing { color: var(--muted); border-color: color-mix(in srgb, var(--accent) 35%, transparent); cursor: default; }
750
- /* The active marker — the lime/green live-axis colour (--fold-marker), matching the launcher's running
751
- :port. A cue, not a control: no hover, default cursor. */
752
- .model-active { color: var(--fold-marker); border-color: color-mix(in srgb, var(--fold-marker) 50%, transparent); background: color-mix(in srgb, var(--fold-marker) 12%, transparent); cursor: default; }
753
- /* Don't double-mark the current row: the green `active` pill is the marker now, so drop the accent dot
754
- fill (keep the gutter transparent for name alignment). */
755
- .model-picker .picker-row.current .picker-dot { background: transparent; }
756
-
757
- /* Drill-in surface — the probe diagnostics and the "More info" routing/reasoning explainer (the
758
- launcher's logs analogue). Flips the whole popover; reuses the console head/back chrome. Held at the
759
- FULL menu height (not content-sized) so drilling in from the list never resizes the popover — the body
760
- fills and scrolls if the content is long, leaving quiet space if it's short. */
761
- .model-picker.diag-mode { padding: 0; gap: 0; height: var(--menu-h); }
762
- .model-picker.diag-mode .diag-body { flex: 1; min-height: 0; overflow-y: auto; }
763
- .model-picker.diag-mode:focus { outline: none; }
764
- .diag-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; background: var(--panel); border-bottom: 1px solid var(--border); }
765
- .diag-head-acts { display: flex; gap: .4rem; align-items: center; flex: none; }
766
- .diag-back:disabled { opacity: .5; cursor: default; }
767
- .diag-name { min-width: 0; color: var(--fg); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
768
- .diag-back { font: inherit; font-size: .76rem; appearance: none; margin: 0; padding: .15rem .5rem; border-radius: 5px; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; white-space: nowrap; }
769
- .diag-back:hover { color: var(--accent); border-color: var(--accent); }
770
- .diag-body { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; background: var(--bg); }
771
- .diag-line { font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
772
- /* Hanging-indent bullet under a lead-in line — wrapped lines align past the “• ”. */
773
- .diag-bullet { padding-left: 1rem; text-indent: -0.55rem; }
774
- .diag-line.ok { color: var(--diff-add); }
775
- .diag-line.bad { color: var(--err); }
776
- .diag-line.warn { color: var(--fg); }
777
- .diag-line.muted { color: var(--muted); }
778
- .diag-line.small { font-size: .72rem; }
779
-
780
- /* Running-breakouts list — shares the popover chrome (.servers-pop above); its own dimensions +
781
- per-row layout: the play/stop button + name read together on the left (▶/■ Title, name flex:1),
782
- and the metadata/controls form a right-aligned cluster of fixed-width columns (logs · trust ·
783
- time/port) that line up row-to-row — right-anchored, so the rightmost (time/port) always aligns and
784
- the rest stack inward (logs and time/port share a width; trust is wider, to fit "restricted"). The
785
- filter pins at the bottom and the list scrolls inside (see .bulb-list). */
786
- .servers-pop { width: min(560px, calc(100vw - 2rem)); }
787
- .server-row {
788
- /* Subgrid: all rows share ONE set of column tracks (defined on .bulb-list). A per-row grid sizes
789
- its columns independently — which is exactly what broke alignment (a stopped row with no
790
- logs/port sized its tracks differently and its trust toggle drifted right). Spanning the parent's
791
- tracks instead makes trust/logs/time line up row-to-row, while the parent's auto columns size to
792
- the widest content so the cluster stays tight (no reserved min-width slack). Absent trust/logs
793
- render an empty cell that still holds its column. */
794
- display: grid;
795
- grid-template-columns: subgrid;
796
- grid-column: 1 / -1;
797
- align-items: center;
798
- /* Inset rounded highlight, matching the session picker. The background is the subgrid track area
799
- (not bled out to the edge — that ran it under the scrollbar on the right while staying clear on
800
- the left, an asymmetry). Text gets its breathing room inside the highlight via end-item margins
801
- (.server-stop/.bulb-launch on the left, .server-port/.bulb-time on the right) rather than row
802
- padding, which would shift the subgrid tracks and break alignment. */
803
- padding: .05rem 0;
804
- min-height: var(--menu-row-h);
805
- border-radius: 6px;
806
- font-size: .85rem;
807
- }
808
- .server-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
809
- /* Keyboard-highlighted row (arrow-key cursor) — a touch stronger than hover so it stands out. */
810
- .server-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
811
- /* Breakout spotlight (bulbsPill.ts): the new bulb's row stays bright while the rest dim, until the
812
- menu closes or that row is hovered. The transition eases the dim in and back out. */
813
- .server-row { transition: opacity .3s ease; }
814
- .server-row.dimmed { opacity: .3; }
815
- .server-name {
816
- flex: 1; min-width: 0;
817
- white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
818
- color: var(--accent); text-decoration: none; cursor: pointer;
819
- }
820
- .server-name:hover { text-decoration: underline; }
821
- /* Port links to the running server (localhost:<port>) — painted the bright fold-marker green
822
- (lime in dark, deep green in light), not the name's blue accent: the :port sits at the row's
823
- far right, away from the play button, so making it the most prominent thing in the row lets the
824
- eye snap to it the moment a just-launched row lands. The green also distinguishes "open the live
825
- app" (port) from "open the source" (the blue name), and echoes the fold-marker on collapsed bulbs. */
826
- .server-port { color: var(--fold-marker); font-size: .76rem; font-variant-numeric: tabular-nums; text-decoration: none; text-align: right; margin-right: .4rem; }
827
- a.server-port:hover { text-decoration: underline; }
828
- /* Logs reads like a link (flips to this server's console), not a button. */
829
- .server-logs { color: var(--muted); font-size: .76rem; text-decoration: none; cursor: pointer; margin-left: .5rem; }
830
- .server-logs:hover, .server-logs.on { color: var(--accent); text-decoration: underline; }
831
- /* Launcher filter box — pinned above the list; type to narrow (matches name + path). The control
832
- wrapper pins to the top and anchors the clear (×) at the far right (position:relative + the
833
- input's right padding reserves its room). */
834
- .bulb-filter-control { position: relative; flex: none; margin-top: .35rem; }
835
- .bulb-filter {
836
- font: inherit;
837
- font-size: .82rem;
838
- width: 100%;
839
- box-sizing: border-box;
840
- padding: .35rem 1.7rem .35rem .5rem;
841
- border-radius: 6px;
842
- background: var(--bg);
843
- border: 1px solid var(--border);
844
- color: var(--fg);
845
- }
846
- .bulb-filter::placeholder { color: var(--muted); }
847
- .bulb-filter:focus { outline: none; border-color: var(--accent); }
848
- /* Clear (×) — only rendered when the filter is non-empty; wipes it and refocuses the box. */
849
- .bulb-filter-clear {
850
- position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
851
- appearance: none; border: none; background: transparent; cursor: pointer;
852
- color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 0 .3rem; border-radius: 4px;
853
- }
854
- .bulb-filter-clear:hover { color: var(--accent); }
855
- /* Filter-mode toggle (full-text search) — inset at the input's right edge; the clear × shifts
856
- inward beside it. Both comboboxes render it (SearchComboboxPill's modeToggle). */
857
- .bulb-filter-control.has-trailing .bulb-filter { padding-right: 3.8rem; }
858
- .bulb-filter-control.has-trailing .bulb-filter-clear { right: 2.5rem; }
859
- .bulb-filter-mode {
860
- /* Stretches flush to the input's top/right/bottom, inside its 1px border; the right corners
861
- match the input's 6px radius so the latched fill reads as part of the box. */
862
- position: absolute; right: 1px; top: 1px; bottom: 1px;
863
- appearance: none; border: none; background: transparent; cursor: pointer;
864
- font-size: .8rem; line-height: 1; padding: 0 .45rem;
865
- border-radius: 0 5px 5px 0;
866
- }
867
- /* Same state cue as the prose pill's glyph: the emoji can't take currentColor, so it goes
868
- grayscale at rest, color while hovered or on — filtered on the inner span, never the button. */
869
- .bulb-filter-mode .glyph-img { filter: grayscale(1); opacity: .75; }
870
- .bulb-filter-mode:hover .glyph-img, .bulb-filter-mode.on .glyph-img { filter: none; opacity: 1; }
871
- /* Latched: a --panel fill — the popover's own surface, one step off the input's --bg. */
872
- .bulb-filter-mode.on { background: var(--panel); }
873
- /* Scrolls within the fixed-height popover so the filter stays put and the box never grows. */
874
- /* The shared grid for the launcher rows: each .server-row is a subgrid spanning these tracks, so
875
- columns line up row-to-row. auto cols size to their widest content (tight, no slack); 1fr is the
876
- name. A small right padding keeps the selected-row highlight off the scrollbar. */
877
- /* grid-auto-rows: max-content — the grid twin of .picker-row's flex:none: when the list overflows
878
- the popover cap, plain auto rows compress to each row's min-height contribution, so a full-text
879
- row's snippet line bleeds under the next row as overlapping text. max-content tracks never
880
- compress; the list scrolls, rows keep their content height. */
881
- /* overflow-y: scroll, not auto — the scrollbar channel is 15px of the row band's right inset, so a
882
- list short enough not to scroll (a project with no bulbs of its own: one collapsed fold row) had
883
- its rows run 15px nearer the edge than the filter box below them. Keeping the channel always
884
- present makes that inset one number — the same "effectively always present" the model menu's
885
- header padding already hardcodes. (scrollbar-gutter is the stated fix and is ignored here.) */
886
- .bulb-list { display: grid; grid-template-columns: auto 1fr auto auto auto auto; grid-auto-rows: max-content; column-gap: .6rem; row-gap: .15rem; align-items: center; align-content: start; padding-right: 4px; flex: 1; min-height: 0; overflow-y: scroll; }
887
- /* The scope column (TB-Batch.md Invariant 7): a seventh track heading the control cluster (before
888
- trust — a launch scope is an execution concern, like a trust tier), present only while some row
889
- carries a scope (bulbsPill.ts anyScope — rows emit a matching cell, spacer included). The B
890
- affordance keeps it one --pill-h square. */
891
- .bulb-list.has-scope { grid-template-columns: auto 1fr auto auto auto auto auto; }
892
- /* A stopped bulb's name isn't a link (no running URL), so it stays plain foreground. */
893
- .server-name.stopped { color: var(--fg); }
894
- /* Downloaded-bulb rows (TB-Agent-Mirror.md): the user link — the folder/user slug (`samples`) in
895
- the logs-link register — marks the category and opens the bulb's published page. A remote
896
- (not-yet-downloaded) row's name is additionally muted and inert (no file to open), and its
897
- time column stays empty (no mtime to show). */
898
- .server-name.remote { cursor: default; }
899
- .server-name.remote:hover { text-decoration: none; }
900
- .sample-link { color: var(--muted); font-size: .76rem; text-decoration: none; cursor: pointer; flex: none; }
901
- .sample-link:hover { color: var(--accent); text-decoration: underline; }
902
- /* The batch affordance (bulbsPill.ts scopeCell, TB-Batch.md Invariant 7): one B glyph per row —
903
- the row shows THAT a scope applies, the tooltip and click-menu name it. Dim = batches exist but
904
- launch is unscoped; lit (.on) = play launches scoped (newest default) or running scoped.
905
- Static (running) keeps the lit look without the hand cursor. */
906
- /* Square (its one glyph has no text pill's width to earn) and otherwise typography-free: the shared
907
- pill box, font and trim, so its B is the same size and sits on the same baseline as the trust
908
- switch beside it. Its own font-family was the bug — a monospace cap is a different size from a
909
- Segoe cap at one font-size, which reads as two badly-aligned widgets. */
910
- .batch-b { font-size: var(--pill-font); color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 5px; width: var(--pill-h); height: var(--pill-h); padding: 0; cursor: pointer; }
911
- .batch-b.on { color: var(--accent); border-color: var(--accent); }
912
- .batch-b.static { cursor: default; }
913
- /* The B's menu rides the composer popup register (.at-popup/.at-row/.dlg-catcher — one mini-menu
914
- UI across the mirror). Only the positioning is local: fixed coords (inline style, measured from
915
- the B at open) so the scrolling list can't clip it, sized to its content instead of the
916
- composer's full-width anchor. */
917
- .at-popup.batch-pop { position: fixed; left: auto; right: auto; bottom: auto; width: max-content; min-width: 7rem; margin-inline: 0; }
918
- /* 'unscoped' is the escape hatch, not a batch — a divider + muted italic set it apart from the list. */
919
- .batch-pop .at-row.unscoped { color: var(--muted); font-style: italic; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; margin-top: .15rem; padding-top: .4rem; }
920
- /* A remote pull's visible failure (bulbsPill.ts pullErrors) — the sample-link register, error-tinted. */
921
- .pull-error { color: var(--err); font-size: .76rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
922
- /* The remote fold (bulbsPill.ts groupRow / fold-row): the header and the remote rows within share
923
- one veil step over the menu's panel bg (the picker-peek shade) as ONE contiguous band — each
924
- row's ::before bridges the grid row-gap up to the row above, junction corners square off, and
925
- only the band's outer corners round (the header's top; the last row's bottom, via :has). The
926
- accent label marks the header. Single-class selectors on purpose: .server-row:hover/.active
927
- outrank them, so the highlight tints still win. */
928
- .sample-group { cursor: pointer; color: var(--muted); }
929
- .sample-group, .fold-row { background: linear-gradient(var(--veil), var(--veil)), var(--panel); }
930
- .sample-group.open { border-radius: 6px 6px 0 0; }
931
- .fold-row { position: relative; border-radius: 0; }
932
- .fold-row::before {
933
- content: ''; position: absolute; left: 0; right: 0; top: -.15rem; height: .15rem;
934
- background: linear-gradient(var(--veil), var(--veil)), var(--panel);
935
- }
936
- .fold-row:not(:has(+ .fold-row)) { border-radius: 0 0 6px 6px; }
937
- .sample-group-label { grid-column: 2 / -1; color: var(--accent); }
938
- /* The 1fr name column: name + (in full-text mode) its hit count read together, the badge
939
- right-aligned at the column's end by the name's flex:1 — the session row's preview/hits layout. */
940
- .bulb-name-cell { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
941
- /* Full-text snippet in the launcher: a second internal row of the row's subgrid, aligned under the
942
- name column (the session picker indents past its dot gutter instead — override that margin). */
943
- .bulb-list .picker-snippet { grid-column: 2 / -1; margin: 0 .4rem .2rem 0; }
944
- .bulb-time { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; text-align: right; margin-right: .4rem; }
945
- /* The row's chrome buttons share one reset; sizing + colour differ below. Play/stop are round icon
946
- buttons (friendlier, space-economic) and stay flex — a replaced SVG mis-seats under the
947
- word-pill trim, the .pill.glyph case; the trust switch is a word, so it seats via the shared
948
- recipe. Logs is a link, not a button (see .server-logs above), so it's not in this group. */
949
- .server-stop, .bulb-launch, .trust-toggle {
950
- font: inherit; appearance: none; margin: 0; cursor: pointer; box-sizing: border-box;
951
- background: transparent; border: 1px solid var(--border); border-radius: 5px;
952
- height: 1.7rem;
953
- }
954
- /* Shorter than the icon buttons: a bordered text pill at full row height reads as cramped, where
955
- the round play/stop icons are meant to fill it. The shared pill box + font, not a bespoke pair —
956
- its own .76rem/1.45rem seated the word a full 1px below every statusbar pill, which is exactly how
957
- this drifts (measured: a per-control size is a per-control seating). */
958
- .trust-toggle { font-size: var(--pill-font); height: var(--pill-h); padding: 0 .5rem; color: var(--muted); justify-self: center; }
959
- .trust-toggle:hover, .trust-toggle.on { color: var(--accent); border-color: var(--accent); }
960
- /* .fold-caret shares only this geometry line (not the bordered-button rule above): the fold header's
961
- caret rides an invisible play-button-sized box, so a samples-only list sizes the button column
962
- exactly as a list with real buttons does, and the caret centres where the play glyphs do. */
963
- .server-stop, .bulb-launch, .fold-caret { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; padding: 0; border-radius: 50%; margin-left: .4rem; }
964
- .btn-icon { width: 16px; height: 16px; }
965
- /* A stopped bulb's play button is dormant — the title is the primary launch target — so it's
966
- hidden until the row is hovered or keyboard-selected. visibility (not display) reserves its slot,
967
- so the name column doesn't shift when it appears. Painted the fold-marker green, matching the
968
- :port link: green is the live-app axis (play to launch → :port to open it), distinct from the
969
- blue source/name. The green even travels left→right as a bulb goes stopped→running. */
970
- .bulb-launch { color: var(--fold-marker); visibility: hidden; }
971
- /* No optical nudge on the play glyph, deliberately: Material's play_arrow already carries one (its
972
- path spans 320→760 in a 0→960 frame — ~1px right at icon size, compensating a right triangle's
973
- left-leaning mass). Our own translateX(1px) stacked a second correction and measured 2px right of
974
- the button's centre. Any glyph that reads off-centre here is the frame's business, not the app's. */
975
- .server-row:hover .bulb-launch, .server-row.active .bulb-launch { visibility: visible; }
976
- .bulb-launch:hover { border-color: var(--fold-marker); background: color-mix(in srgb, var(--fold-marker) 12%, transparent); }
977
- /* Launching: stays visible (hover-independent) and shimmers until the row flips to a stop button,
978
- so the ~2s wait reads as "working" rather than a dead click. Transient — driven by the in-memory
979
- launching set, never persisted. */
980
- .bulb-launch.launching { visibility: visible; border-color: var(--fold-marker); }
981
- .server-stop { color: var(--muted); }
982
- .server-stop:hover { color: var(--err); border-color: var(--err); }
983
- /* push/pull verbs (TB-Push-Pull.md, Mirror surface): borderless quiet icons in one cell —
984
- frequency earns mutedness, so like the play button they're hover/keyboard-revealed
985
- (visibility reserves the slot; columns never shift). Accent on hover marks the live control. */
986
- .sync-cell { display: inline-flex; gap: .15rem; justify-self: center; }
987
- .sync-btn {
988
- font: inherit; appearance: none; margin: 0; padding: 0 .1rem; cursor: pointer;
989
- background: transparent; border: none; color: var(--muted);
990
- display: inline-flex; align-items: center; visibility: hidden;
991
- }
992
- .server-row:hover .sync-btn, .server-row.active .sync-btn { visibility: visible; }
993
- .sync-btn:hover { color: var(--accent); }
994
- /* In-flight: stays visible (hover-independent) and shimmers, same contract as .bulb-launch.launching;
995
- the ✓ beat after success likewise holds its slot so the arrow's return doesn't shift columns. */
996
- .sync-btn.busy, .sync-btn.done { visibility: visible; }
997
- .sync-btn.done { color: var(--fold-marker); }
998
- .btn-icon-sm { width: 13px; height: 13px; }
999
- /* Elevation prompt (VS-Code-Workspace-Trust style) — a modal over the whole view, since a
1000
- denied capability is worth interrupting for. Backdrop dims; the card holds the choice. */
1001
- .trust-back {
1002
- position: fixed; inset: 0; z-index: 50;
1003
- background: rgba(0, 0, 0, .5);
1004
- display: flex; align-items: center; justify-content: center;
1005
- padding: 1rem;
1006
- }
1007
- .trust-modal {
1008
- width: min(420px, 100%);
1009
- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
1010
- box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
1011
- padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem;
1012
- }
1013
- .trust-modal-h { font-size: 1rem; font-weight: 600; color: var(--fg); }
1014
- .trust-modal-b { font-size: .85rem; color: var(--fg); line-height: 1.45; }
1015
- .trust-modal-warn { font-size: .78rem; color: var(--muted); line-height: 1.4; }
1016
- .trust-modal-acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .2rem; }
1017
- .trust-no, .trust-yes {
1018
- font: inherit; font-size: .82rem; appearance: none; margin: 0; cursor: pointer;
1019
- padding: .35rem .8rem; border-radius: 7px; border: 1px solid var(--border); background: transparent; color: var(--fg);
1020
- }
1021
- .trust-no:hover { border-color: var(--fg); }
1022
- .trust-yes {
1023
- color: var(--accent);
1024
- border-color: color-mix(in srgb, var(--accent) 55%, transparent);
1025
- background: color-mix(in srgb, var(--accent) 14%, transparent);
1026
- }
1027
- .trust-yes:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
1028
- /* Drilled-in streaming console for one running server. It takes over the whole bulbs
1029
- popover (the list flips to it; ← back flips home), so it's wider than the list and its
1030
- body fills the popover's height. overflow:hidden lets the rounded popover border clip the
1031
- square head/body; the body scrolls internally. */
1032
- .servers-pop.log-mode {
1033
- padding: 0;
1034
- /* The one fixed-height surface: a console wants its full frame regardless of how little it has
1035
- logged yet — a height that tracked the log would grow line by line. */
1036
- height: var(--menu-h);
1037
- }
1038
- .servers-pop.log-mode:focus { outline: none; }
1039
- .bulb-log-head {
1040
- display: flex; align-items: center; justify-content: flex-end; gap: .5rem;
1041
- padding: .3rem .5rem; background: var(--panel);
1042
- border-bottom: 1px solid var(--border);
1043
- }
1044
- .bulb-log-back {
1045
- font: inherit; font-size: .76rem; appearance: none; margin: 0;
1046
- padding: .15rem .5rem; border-radius: 5px;
1047
- background: transparent; border: 1px solid var(--border);
1048
- color: var(--muted); cursor: pointer; white-space: nowrap;
1049
- }
1050
- .bulb-log-back:hover { color: var(--accent); border-color: var(--accent); }
1051
- .bulb-log-name { min-width: 0; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1052
- .bulb-log-body {
1053
- flex: 1; min-height: 0;
1054
- margin: 0; padding: .5rem .6rem;
1055
- overflow: auto; /* top-anchored normal flow — output reads top→down */
1056
- background: var(--bg);
1057
- font: .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1058
- color: var(--fg);
1059
- }
1060
- .bulb-log-text { white-space: pre-wrap; word-break: break-word; }
1061
-
1062
- /* ── Git diff pill + menu (TB-Agent-Mirror.md): a `± N` chip (custom two-color glyph, icons.ts, +
1063
- changed-file count) that exists only when the tree is dirty — presence is the signal, so the glyph
1064
- keeps its red/green at rest (no grayscale: the chip can't be "idle", a clean tree removes it) and
1065
- the accent border stays reserved for latched, like every pill. Picking a menu row swaps the
1066
- transcript for a full-context unified diff. Flex like the square glyph pills (an svg mis-seats
1067
- under the word-pill text-box trim), width freed for the count. ── */
1068
- /* Three classes to out-specify .pill.glyph's fixed square (width: var(--pill-h); padding: 0) —
1069
- this is the one glyph pill that carries content beside its icon, so its width must be free. */
1070
- .pill.glyph.gitdiff-pill { width: auto; padding: 0 .45rem; gap: .3rem; }
1071
- /* 2:3, the cropped viewBox's aspect — a square box would re-add the side margins. */
1072
- .gitdiff-pill .icon { width: 8px; height: 12px; }
1073
- .gitdiff-count { font-size: var(--pill-font); font-variant-numeric: tabular-nums; }
1074
- .gitdiff-pop { width: min(480px, calc(100vw - 2rem)); }
1075
- .gitdiff-list { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-height: 0; overflow-y: scroll; padding-right: 4px; }
1076
- .gitdiff-row { display: flex; align-items: center; gap: .55rem; flex: none; min-height: var(--menu-row-h); padding: .05rem .45rem; border-radius: 6px; font-size: .85rem; cursor: pointer; }
1077
- .gitdiff-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
1078
- .gitdiff-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
1079
- .gitdiff-row.viewing .gitdiff-path { color: var(--accent); }
1080
- /* One status letter, VS Code's palette: modified/renamed amber, added/untracked green, deleted red. */
1081
- .gitdiff-status { flex: none; width: 1rem; text-align: center; font: 600 .74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
1082
- .gitdiff-status.s-M, .gitdiff-status.s-R { color: var(--warn); }
1083
- .gitdiff-status.s-A, .gitdiff-status.s-U { color: var(--diff-add); }
1084
- .gitdiff-status.s-D { color: var(--err); }
1085
- .gitdiff-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1086
- .gitdiff-counts { flex: none; display: inline-flex; gap: .35rem; font-size: .72rem; font-variant-numeric: tabular-nums; }
1087
- .gitdiff-counts .count-add { color: var(--diff-add); }
1088
- .gitdiff-counts .count-del { color: var(--err); }
1089
- /* The pill's viewing form: the doc's identity in place of the icon+count — status letter, path,
1090
- ±counts, × (the doc itself is chrome-free). Width capped so a deep path can't crowd the cluster;
1091
- rtl clip keeps the path's tail — the filename — visible, full path in the title. */
1092
- .pill.glyph.gitdiff-pill.viewing { max-width: min(30rem, 45vw); gap: .45rem; padding: 0 .35rem 0 .5rem; }
1093
- /* Same text seating as the word pills (.pill's text-box note): .pill.glyph opts out of the trim
1094
- (right for pure glyphs, low for letters), and the viewing form keeps flex for the path's
1095
- ellipsis — so the trim rides each text item instead of the button. Flex items are block
1096
- containers, so text-box applies; the × icon stays untrimmed (symmetric, flex-exact). */
1097
- .gitdiff-pill.viewing :is(.gitdiff-status, .gitdiff-doc-path, .gitdiff-counts span) { text-box: trim-both cap alphabetic; }
1098
- .gitdiff-doc-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; font-size: var(--pill-font); color: var(--accent); }
1099
- .gitdiff-doc-path:hover { text-decoration: underline; }
1100
- .gitdiff-close { flex: none; display: inline-flex; padding: 0 .15rem; color: var(--muted); }
1101
- .gitdiff-close .icon { width: 10px; height: 10px; }
1102
- .gitdiff-close:hover { color: var(--accent); }
1103
- /* Doc open ⇒ the transcript-scoped pills hide: prose toggle, model switcher, session picker all act
1104
- on the conversation, which isn't on screen (the token pill stays — its shimmer says the live diff
1105
- may still grow). display only, never unmount — the model pill's superSelect must keep its mount. */
1106
- .statusbar-actions.doc-open :is(.prose-pill, .model-wrap, .sid-wrap) { display: none; }
1107
-
1108
- /* The diff doc — takes the transcript's slot in .chat (same flex geometry as .messages). Full-bleed
1109
- like a code surface (no --content-max column: diff lines want the width); the body is the scroll
1110
- surface, its bottom padding clearing the overlaid statusbar like .messages' does. The ± markers and
1111
- red/green bands are the shared .udiff-* rules the tool cards use. */
1112
- .diff-doc { flex: 1; min-height: 0; display: flex; flex-direction: column; outline: none; }
1113
- .diff-doc-body {
1114
- flex: 1; min-height: 0; overflow: auto;
1115
- /* No scrollbar-gutter: the native bar is hidden (.oruler-host), so the 15px it used to reserve on
1116
- each edge rides in the padding instead — same metrics, and the right one is the ruler's channel. */
1117
- padding: .75rem calc(1.75rem + 15px) 2.5rem;
1118
- font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1119
- white-space: pre-wrap; word-break: break-word;
1120
- }
1121
- /* The scroller is the focusable element (it owns the paging keys), but a ring round a full-bleed pane
1122
- is a box round the whole screen. Keyboard focus shows on the ruler's window instead — the thing the
1123
- paging keys actually move, and a real indicator rather than none at all. */
1124
- .diff-doc-body:focus { outline: none; }
1125
- .diff-doc-body:focus-visible ~ .diff-ruler .oruler-win { background: color-mix(in srgb, var(--accent) 55%, transparent); }
1126
- .diff-doc-empty, .diff-doc-trunc { color: var(--muted); padding: .4rem 0; }
1127
- /* The wrong-cwd empty state (Root.#cwdHint): centered over the empty transcript. */
1128
- .cwd-hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 2rem; color: var(--muted); font-size: .9rem; max-width: 40rem; margin-inline: auto; }
1129
- .cwd-hint-head { font-weight: 600; color: var(--fg); }
1130
- .cwd-hint-dir { color: var(--accent); }
1131
- /* With token colors under them, the full-strength (24%) bands compete — red tokens on a red band
1132
- turn to mud — so the doc view's bands drop to a tint: polarity is still carried per-line by the
1133
- gutter ± glyphs and at file scale by the ruler. Scoped: the tool-card hunks keep 24%, where the
1134
- unhighlighted band is the only signal. Del a touch stronger than add — red-leaning tokens
1135
- camouflage against red tint more than anything does against green. */
1136
- .diff-doc-body .udiff-add { background: color-mix(in srgb, var(--diff-add) 15%, transparent); }
1137
- .diff-doc-body .udiff-del { background: color-mix(in srgb, var(--err) 18%, transparent); }
1138
- /* The ruler's diff clothing — red/green per change run; it rides in the channel the body's right
1139
- padding reserves, where the scrollbar it replaces used to be. Geometry, the window and the click
1140
- are the shared widget's. The wrapper keeps it overlaid rather than scrolling with the body. */
1141
- .diff-doc-scroll { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
1142
- .diff-ruler { right: 4px; }
1143
- .diff-ruler .oruler-mark.add { background: var(--diff-add); opacity: .8; }
1144
- .diff-ruler .oruler-mark.del { background: var(--err); opacity: .8; }
1145
- /* messages */
1146
- .messages {
1147
- flex: 1;
1148
- overflow-y: auto;
1149
- /* Reserve the scrollbar gutter on BOTH edges so the centred --content-max column stays on the
1150
- true axis (window centre) whether or not a scrollbar is showing. Without this the scrollbar
1151
- shrinks the column and shifts it ~half a scrollbar left of the composer/statusbar columns
1152
- (which never scroll) — the misalignment between the prose and the composer's left edge. */
1153
- scrollbar-gutter: stable both-edges;
1154
- /* Content runs under the overlaid statusbar rather than stopping above it.
1155
- Gutters are symmetric: the turn stripe is absolutely positioned, so it claims no layout
1156
- width and the left gutter needs no extra room for it (see Invariants). The bottom is
1157
- larger to clear the overlaid statusbar pills (~2.1rem:
1158
- .4rem inset + 1.7rem pill) so the last line isn't hidden behind them. */
1159
- padding: 1.25rem 1.75rem 2.5rem 1.75rem;
1160
- display: flex;
1161
- flex-direction: column;
1162
- gap: 1rem;
1163
- }
1164
- .note {
1165
- display: flex;
1166
- align-items: baseline;
1167
- gap: .5rem;
1168
- color: var(--muted);
1169
- font-size: .9rem;
1170
- max-width: var(--content-max);
1171
- width: 100%;
1172
- margin: 0 auto;
1173
- }
1174
- /* Top-of-transcript wordmark + tagline (messageList.ts #masthead). Centred on the prose column,
1175
- scrolls with the conversation. Both logos render; theme picks which shows. */
1176
- .masthead {
1177
- max-width: var(--content-max);
1178
- width: 100%;
1179
- margin: 0 auto .25rem auto;
1180
- padding: .15rem 0;
1181
- display: flex;
1182
- flex-direction: column;
1183
- align-items: flex-start;
1184
- gap: .5rem;
1185
- text-align: left;
1186
- user-select: none;
1187
- }
1188
- .masthead-logo {
1189
- width: 150px;
1190
- max-width: 55%;
1191
- height: auto;
1192
- opacity: .92;
1193
- }
1194
- .masthead-tagline {
1195
- color: var(--muted);
1196
- font-size: .85rem;
1197
- }
1198
- /* Black wordmark on light, outline on dark. */
1199
- .masthead-logo.dark { display: none; }
1200
- html[data-theme="dark"] .masthead-logo.light { display: none; }
1201
- html[data-theme="dark"] .masthead-logo.dark { display: block; }
1202
- .bubble {
1203
- position: relative;
1204
- max-width: var(--content-max);
1205
- width: 100%;
1206
- margin: 0 auto;
1207
- }
1208
- .bubble.user {
1209
- background: var(--veil);
1210
- border: 1px solid var(--border);
1211
- border-radius: 12px;
1212
- padding: .7rem .9rem;
1213
- }
1214
- /* Consecutive tool-only bubbles sit tight via negative margin (flex `gap`
1215
- can't be overridden per sibling pair). The adjacent-sibling selector leaves
1216
- the first tools-only bubble's gap intact, preserving the turn boundary. */
1217
- .bubble.tools-only + .bubble.tools-only { margin-top: -.9rem; }
1218
-
1219
- /* Turn stripe — a 2px colored bar to the left of each bubble. All bubbles in
1220
- one user→assistant turn share a color; the palette cycles through 5 so
1221
- adjacent turns are visually distinct when scrolling. Sits outside the
1222
- bubble's left edge in the messages container's padding gutter.
1223
- By default top/bottom extend half a gap beyond the bubble so same-turn
1224
- neighbours' stripes meet seamlessly across the 1rem flex gap. The two
1225
- turn-boundary overrides below clip those extensions so a turn's stripe
1226
- starts at the top of its user bubble and ends at the bottom of its last
1227
- bubble — leaving the full 2rem inter-turn gap stripe-free as a separator.
1228
- --border-w compensates the 1px padding-edge offset that user bubbles' border
1229
- would otherwise introduce — without it, stripes alternate 1px inset between
1230
- user/assistant rows. */
1231
- .bubble { --border-w: 0px; }
1232
- .bubble.user { --border-w: 1px; }
1233
- .bubble::before {
1234
- content: '';
1235
- position: absolute;
1236
- /* Offsets subtract --border-w: absolute positioning anchors to the
1237
- padding-edge (inside the border), so a user bubble's 1px border would
1238
- otherwise shave 1px off each stripe edge. */
1239
- /* Stripe hugs the column (1rem into the left gutter); absolute, so it consumes no layout width —
1240
- which is why the gutters can be symmetric (no asymmetric padding needed to "make room"), and
1241
- thus why breakouts need no nudge. - var(--border-w): a user bubble's 1px border pushes the
1242
- padding edge (the abs-pos anchor) 1px right, so without it that stripe sits 1px right of the
1243
- assistant bubbles' — compensate. */
1244
- left: calc(-1rem - var(--border-w));
1245
- top: calc(-.5rem - var(--border-w));
1246
- bottom: calc(-.5rem - var(--border-w));
1247
- width: 1px;
1248
- background: var(--turn-color, transparent);
1249
- }
1250
- /* Clip stripe at turn boundaries. A user bubble always starts a turn → no
1251
- upward extension. A bubble followed by a user bubble is the last of its
1252
- turn → no downward extension. Same for the very last bubble in the list
1253
- (an in-flight turn whose last assistant message is the end of the stream).
1254
- Same `0 - var(--border-w)` form as the default top/bottom so user bubbles'
1255
- 1px border still aligns with the stripe edge. */
1256
- .bubble.user::before { top: calc(0px - var(--border-w)); }
1257
- .bubble:has(+ .bubble.user)::before,
1258
- .bubble:last-child::before { bottom: calc(0px - var(--border-w)); }
1259
- /* Extra gap before each new turn (user bubble preceded by anything). Combined
1260
- with the container's 1rem gap → ~2rem visible between turns vs ~1rem within
1261
- a turn. Doesn't fire on the very first bubble (no preceding sibling). */
1262
- .bubble + .bubble.user { margin-top: 1rem; }
1263
- .bubble.turn-0 { --turn-color: #4cb35a; } /* green */
1264
- .bubble.turn-1 { --turn-color: #e89a3c; } /* amber */
1265
- .bubble.turn-2 { --turn-color: #d36b9a; } /* pink */
1266
- .bubble.turn-3 { --turn-color: #9970d6; } /* purple */
1267
- .bubble.turn-4 { --turn-color: #3cb8b3; } /* teal */
1268
-
1269
- /* rendered markdown */
1270
- .md { word-break: break-word; }
1271
- /* Markdown links (often many file:line citations per message) — restrained like
1272
- the rest of the bulb's links: accent, no persistent underline, reveal it only
1273
- on hover. Without this they'd carry the browser-default underline-on-every-one. */
1274
- .md a { color: var(--accent); text-decoration: none; }
1275
- .md a:hover { text-decoration: underline; }
1276
- .md :first-child { margin-top: 0; }
1277
- .md :last-child { margin-bottom: 0; }
1278
- .md p { margin: .5rem 0; }
1279
- /* Thematic break — also the divider between merged consecutive user sends (see applyUser): faint
1280
- so the bubble still reads as one turn, but legible in both themes. Mixed off --fg (text contrast)
1281
- rather than --border + opacity: --border is itself dim in dark mode, so dimming it again left the
1282
- line invisible there — and the faintness is a property of the line's color, not the element. */
1283
- .md hr {
1284
- border: none;
1285
- border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
1286
- margin: .55rem 0;
1287
- }
1288
- .md pre {
1289
- background: var(--veil);
1290
- border: 1px solid var(--border);
1291
- border-radius: 8px;
1292
- padding: .7rem .85rem;
1293
- overflow-x: auto;
1294
- }
1295
- /* A pasted image (server renders an <img> from a base64 block, see blockToMarkdown) is capped to the
1296
- column and never blows the layout — height follows the width. */
1297
- .md img { max-width: 100%; height: auto; border-radius: 6px; }
1298
- /* Blockquote: left bar + faint tint + muted text — a quiet "quoted" callout. The bar
1299
- is mixed toward --border so it stays distinct from the bright turn stripe in the
1300
- gutter, and the tint is light enough not to read as a code/output panel. */
1301
- .md blockquote {
1302
- margin: .5rem 0;
1303
- padding: .35rem .85rem;
1304
- border-left: 3px solid var(--border);
1305
- background: var(--veil);
1306
- border-radius: 0 6px 6px 0;
1307
- color: var(--muted);
1308
- }
1309
- .md blockquote :first-child { margin-top: 0; }
1310
- .md blockquote :last-child { margin-bottom: 0; }
1311
- .md code {
1312
- font-family: ui-monospace, "SF Mono", Menlo, monospace;
1313
- font-size: .88em;
1314
- }
1315
- .md :not(pre) > code {
1316
- background: var(--veil);
1317
- padding: .1em .35em;
1318
- border-radius: 5px;
1319
- }
1320
- .md table { border-collapse: collapse; }
1321
- .md th, .md td { border: 1px solid var(--border); padding: .3rem .55rem; }
1322
- /* A faint header band breaks the grid's monotony and gives the table a head/body structure — tonal
1323
- (`--veil`, the document-panel shade), never a hue, so it reads as structure not opinion and follows
1324
- the host light/dark theme. As a panel the veil steps one shade above the table's container, so the
1325
- header still reads when the table sits inside a bubble or callout. The header text stays `--fg`:
1326
- weight + the fill carry it, a tint would be the opinionated bit. Left-align to the body cells. */
1327
- .md th { background: var(--veil); font-weight: 600; text-align: left; }
1328
- /* Disclosure (<details>/<summary>) from the safe-HTML allowlist (markdown.ts): a quiet --veil container,
1329
- subtler than a code block — assistant prose sits directly on the page, so a fill stands out; keep it
1330
- restrained and let the border define it. Summary is the clickable caret row (native marker), accent
1331
- on hover like a link. */
1332
- .md details {
1333
- margin: .5rem 0;
1334
- padding: .35rem .7rem;
1335
- background: var(--veil);
1336
- border: 1px solid var(--border);
1337
- border-radius: 8px;
1338
- }
1339
- .md summary { cursor: pointer; font-weight: 600; }
1340
- .md summary:hover { color: var(--accent); }
1341
-
1342
- /* The full-lane breakout geometry, defined ONCE and shared by the two breakouts (the mermaid
1343
- embed and a spread bulb). `100%` in --lane-ml resolves against each user's own containing block
1344
- (prose width) at point of use, so both centre on the column axis — which is the viewport centre,
1345
- since the gutters are symmetric. One home so the geometry can't drift between the two (the bug
1346
- that let an off-centre nudge survive in one rule after being removed from the other). */
1347
- .md { --lane-w: calc(100vw - 2rem); --lane-ml: calc((100% - var(--lane-w)) / 2); }
1348
-
1349
- /* Full-lane breakout — the mermaid embed (whole element) and a SPREAD bulb's iframe step out of
1350
- the prose column to the transcript width so wide content gets room. Both use --lane-w/--lane-ml
1351
- and extend symmetrically from the column, which is viewport-centred (symmetric gutters), so
1352
- neither needs an off-centre nudge (see Invariants in Specs-Bulbs/Claude-Bulb/Claude-Bulb.md). A
1353
- bulb's *wrapper* never breaks out — only its inner surface does — so the wrapper and its controls
1354
- stay at prose-right. position + z-index:0 lift the box over the turn stripe it crosses; the
1355
- mermaid SVG is transparent so a bg backs it, the bulb iframe is opaque so it occludes the stripe. */
1356
- .md .mermaid {
1357
- width: var(--lane-w);
1358
- /* Vertical gap must be >= the box-shadow spread (1rem below): a smaller gap lets the bg ring
1359
- paint over the half-line of prose above/below — the trap the opaque bulb embed dodges by
1360
- having no shadow, which the transparent mermaid can't. */
1361
- margin: 1rem 0;
1362
- margin-left: var(--lane-ml);
1363
- margin-right: auto;
1364
- position: relative;
1365
- z-index: 0;
1366
- background: var(--bg);
1367
- }
1368
-
1369
- /* Diagram specifics: scroll when wider than the lane; `safe center` centres one that fits and
1370
- left-aligns one that overflows, so a wide flowchart scrolls from its start node. The SVG is
1371
- transparent, so the turn stripe the breakout crosses shows through it — a bg box-shadow backs
1372
- the diagram to occlude it (and clears the h-scrollbar edge). The bulb embed is opaque (its
1373
- iframe fills the box), so it occludes the stripe itself and gets NO shadow — a shadow there
1374
- would paint its 1rem ring over the half-line of prose just above the embed (the gap is .6rem). */
1375
- .md .mermaid {
1376
- overflow-x: auto;
1377
- display: flex;
1378
- justify-content: safe center;
1379
- box-shadow: 0 0 0 1rem var(--bg);
1380
- }
1381
- /* flex-shrink:0: otherwise the SVG shrinks to the flex container and its viewBox
1382
- scales it down — no overflow, no scrollbar. Natural width is what scrolls. */
1383
- .md .mermaid svg { max-width: none; height: auto; flex: 0 0 auto; }
1384
-
1385
- /* Raw ```svg``` embeds: no breakout — these are drawings (smiley, plot), not wide
1386
- diagrams, so keep them in the prose column, centred and capped at its width. They
1387
- share the `.embed` stripe-chop below (a drawing earns its own row like a bulb). */
1388
- .md .svg-embed { justify-content: center; }
1389
- .md .svg-embed svg { max-width: 100%; height: auto; }
1390
-
1391
- /* Markdown tables: chop in-column (the `.embed` rule below) and `safe center` — a table that fits its
1392
- box centres, and one that overflows falls back to left so it scrolls from its first column rather than
1393
- clipping. Centring holds in both modes: a small in-column table sits centred in the prose column, a
1394
- spread one centred in the lane. The scroll lives on the inner `.table-scroll`, not the `.embed`
1395
- wrapper, so a horizontal scrollbar rides above the chop's bottom padding instead of flush against the
1396
- next line (a scrollbar sits at its own container's bottom edge). It's the centred flex child, capped at
1397
- the box so it shrinks-to-fit and scrolls only what overflows; `max-width:100%` + the overflow-induced
1398
- 0 min-width let it shrink below the table's natural width. `spread` widens the wrapper to the lane (the
1399
- mermaid geometry) for a table fitTableEmbeds found too wide for the column. The opaque `.embed`
1400
- padding/z-index still occludes the turn stripe the spread crosses — no box-shadow needed. */
1401
- .md .table-embed { justify-content: safe center; }
1402
- .md .table-embed .table-scroll { overflow-x: auto; max-width: 100%; }
1403
- /* max-content keeps the table at its natural (unwrapped) width so it overflows `.table-scroll` and earns
1404
- a scrollbar, rather than wrapping its cells to fit — the bar is the point, and it now rides inside the
1405
- chop padding. */
1406
- /* Two ceilings work together so a prose-heavy table neither scrolls forever nor squashes to mush:
1407
- - per-column (the cell `max-width` — in an auto-layout table every cell in a column shares one width,
1408
- so a cell cap *is* a column cap): no single column hogs; long text wraps at a readable measure.
1409
- - whole-table (`max-width: var(--lane-w)`): the table never grows past the lane, so when columns don't
1410
- all fit, the browser's auto-layout *shares* the lane among them — wrapping each to its slice rather
1411
- than scrolling. It only scrolls once even longest-word-only columns can't fit the lane (genuinely too
1412
- many columns). `width: max-content` is still the *preferred* width, so a small table stays natural
1413
- and a wide one spreads; the lane cap just bounds the worst case. The floor lever (a per-cell
1414
- `min-width`) — turn squash into scroll past some readable minimum — is deliberately left off until a
1415
- real table needs it. `word-break: normal` resets the global `.md { word-break: break-word }` (which
1416
- behaves like overflow-wrap:anywhere): left inherited, that global lets the lane cap squeeze a column
1417
- below its longest word and snap it mid-character ("status" → "statu·s"). Reset to word-boundary
1418
- wrapping so each column floors at its longest whole word and a too-tight table scrolls instead of
1419
- shattering text; a pathological no-space token (a long URL) then scrolls rather than breaking. */
1420
- .md .table-embed table { margin: 0; width: max-content; max-width: var(--lane-w); }
1421
- .md .table-embed th, .md .table-embed td { max-width: 40ch; word-break: normal; }
1422
- .md .table-embed.spread {
1423
- width: var(--lane-w);
1424
- margin-left: var(--lane-ml);
1425
- margin-right: auto;
1426
- }
1427
-
1428
- /* ````bulb```` embeds: a sandboxed nested app. createBulbFrame owns the iframe (auto-height,
1429
- borderless). No frame of our own — like the mermaid/svg embeds, it sits in the flow rather
1430
- than in a box, so it reads as part of the transcript; the rounded clip just tidies the corners
1431
- of a bulb that paints its own background. `fit` (default) keeps it in the prose column and
1432
- caps its height (below); `spread` adds full-lane breakout + spacing from the shared rule above.
1433
- position:relative anchors the controls overlay in BOTH modes (spread re-declares it for the
1434
- z-index lift). .err is the compile-failure fallback; .bulb-err-strip is a runtime-error strip
1435
- under a live embed (both monospace, muted red). */
1436
- /* The stripe-chop, shared by every opaque in-column visual artifact (the fit bulb and a raw
1437
- `svg` — each opts in by carrying `.embed`). An opaque bg over position:relative + z-index:0
1438
- paints above .bubble::before; a -1rem left extension reaches the stripe in the gutter without a
1439
- full breakout (padding-left:1rem keeps the content in the prose column, and the box's right edge
1440
- stays at prose-right, so a bulb's controls anchored there don't move). The vertical gap is opaque
1441
- padding, not margin: it occludes the stripe top and bottom so the cut is flush with the prose (no
1442
- stub in a transparent gap), symmetric above/below to separate the artifact from surrounding text.
1443
- margin top/bottom are zeroed — and the abutting prose margins too (below) — so the gap butts the
1444
- text. Mermaid is NOT on this path: it's transparent and breaks out, occluding via box-shadow.
1445
- Per-artifact layout (flex direction, centring) lives on .bulb-embed / .svg-embed. */
1446
- .md .embed {
1447
- display: flex;
1448
- position: relative;
1449
- z-index: 0;
1450
- background: var(--bg);
1451
- margin: 0 0 0 -1rem;
1452
- padding: 1.1rem 0 1.1rem 1rem;
1453
- }
1454
- /* A bulb stacks its controls/frame/code vertically; in spread mode the inner iframe's own
1455
- breakout covers the stripe too (the wrapper still chops in column). */
1456
- .md .bulb-embed { flex-direction: column; }
1457
- /* Inline (default): cap the embed's height so a tall bulb doesn't run away down the transcript.
1458
- Past the cap the embed scrolls internally (its own overflow, set by the host↔embed protocol —
1459
- the iframe element can't scroll its srcdoc from out here). spread removes the cap. */
1460
- .md .bulb-embed.fit iframe { max-height: 80dvh; }
1461
- /* The frame host is a layout-less wrapper (domeleon owns the node; we parent the live iframe into
1462
- it once) — display:contents lifts the iframe to be a flex child of .bulb-embed, so the sizing and
1463
- spread-breakout rules target it directly, exactly as when it was appended as a direct child. The
1464
- code toggle hides it via .code-open rather than unmounting, so the bulb keeps its state. */
1465
- .bulb-frame { display: contents; }
1466
- .md .bulb-embed.code-open .bulb-frame { display: none; }
1467
- /* Spread: the inner surface (live iframe, or the code view behind the toggle) breaks out to the
1468
- lane while the wrapper stays in the prose column, so the controls hold at prose-right. Shares the
1469
- --lane-* geometry; centred on the column axis so toggling spread doesn't shift a column-fitting
1470
- bulb sideways. `width !important` beats createBulbFrame's inline width:100% on the iframe
1471
- (harmless on the code view, which has none); both opaque, so position/z-index:0 lift them over
1472
- the turn stripe they now cross. */
1473
- .md .bulb-embed.spread iframe,
1474
- .md .bulb-embed.spread > .bulb-code {
1475
- width: var(--lane-w) !important;
1476
- margin-left: var(--lane-ml);
1477
- margin-right: auto;
1478
- position: relative;
1479
- z-index: 0;
1480
- }
1481
- /* Kill the transparent margin between an embed and the prose it abuts (top and bottom):
1482
- the embed's own opaque padding is the gap, and a leftover prose margin would let the
1483
- turn stripe show through it as a stub past the last/next line of text. */
1484
- .md :has(+ .embed) { margin-bottom: 0; }
1485
- .md .embed + * { margin-top: 0; }
1486
- /* The rounded clip lives on the inner surfaces, not the embed (whose padding is now the
1487
- gap), so the bulb's own card — the iframe, or the code view behind the toggle — is
1488
- what carries the corners. */
1489
- .md .bulb-embed iframe,
1490
- .md .bulb-embed > .bulb-code {
1491
- border-radius: 8px;
1492
- }
1493
- /* Overlay pill: a small hover-revealed control floated at a container's
1494
- bottom-right, shared by the embed breakout button and the message copy button.
1495
- Muted at rest, accent on hover (instant, matching the status pills). The
1496
- container supplies the reveal; per-button bits layer on top. Box shape, colors
1497
- and vertical centering come from the shared word-pill rule (.pill, .token,
1498
- .overlay-pill) — only positioning, reveal and sizing quirks live here. */
1499
- .overlay-pill {
1500
- position: absolute;
1501
- bottom: .5rem;
1502
- right: 0; /* flush with the content column's right edge (prose / statusbar pills) */
1503
- font: inherit;
1504
- font-size: var(--pill-font);
1505
- padding: 0 .45rem;
1506
- /* Word buttons that swap labels in place (fit⇄spread, code⇄run, copy⇄copied), so a min-width
1507
- keeps the button from jumping as the word's length changes — "fit" is much narrower than
1508
- "spread". */
1509
- min-width: 3.5rem;
1510
- cursor: pointer;
1511
- opacity: 0;
1512
- transition: opacity .2s ease;
1513
- }
1514
- .overlay-pill:hover { color: var(--accent); border-color: var(--accent); }
1515
-
1516
- /* Per-fence copy pill (code / svg / mermaid) — one reveal rule for every copyable block, since the
1517
- fence rule stamps `.copyable` on each. The svg/mermaid containers are already position:relative for
1518
- the chop/breakout; the code-block wrapper needs it for the absolute pill. The pill is positioned
1519
- (absolute), so it paints over the static fence content regardless of DOM order. */
1520
- .md .copyable { position: relative; }
1521
- .md .copyable:hover .copy-src,
1522
- .md .copy-src:focus-visible { opacity: 1; }
1523
- .md .copy-src.done { color: var(--accent); border-color: var(--accent); }
1524
- /* The wrapper carries the code block's vertical rhythm (it, not the <pre>, is the `.md` flow child
1525
- now, so the first/last-child margin resets land on it); the <pre> sits flush inside. */
1526
- .md .code-block { margin: .6rem 0; }
1527
- .md .code-block pre { margin: 0; }
1528
-
1529
- /* Controls (code ⇄ run, then copy, then breakout) — a centered overlay straddling the
1530
- bulb's top edge: clear of the running bulb below, free to overlap the prose above.
1531
- Absolute, so toggling run↔code (which resizes the bulb below) never moves it, and so
1532
- the bulb's vertical gap stays small. Revealed on embed-hover or focus; inside the row
1533
- the shared .overlay-pill drops its own corner-anchoring. */
1534
- .md .bulb-controls {
1535
- position: absolute;
1536
- top: 0;
1537
- right: 0; /* flush with the content column's right edge (prose / statusbar pills) */
1538
- z-index: 2;
1539
- display: flex;
1540
- gap: .4rem;
1541
- transform: translateY(-50%);
1542
- }
1543
- .md .bulb-controls .overlay-pill { position: static; }
1544
- .md .bulb-embed:hover .bulb-controls .overlay-pill,
1545
- .md .bulb-controls .overlay-pill:focus-visible { opacity: 1; }
1546
- .md .bulb-breakout:disabled { cursor: default; opacity: 1; }
1547
- /* Breakout in flight: shimmers through the ~2s write+spawn wait so the click reads as "working"
1548
- rather than dead — same treatment as the launcher's play button (.bulb-launch.launching).
1549
- :disabled already keeps it visible if the pointer leaves. */
1550
- .md .bulb-breakout.launching { color: var(--accent); border-color: var(--accent); }
1551
- /* Copy pill "copied" flash — mirrors the message .copy.done accent cue, scoped to the
1552
- embed control so it doesn't pick up the bubble-hover reveal. */
1553
- .md .bulb-copy.done { color: var(--accent); border-color: var(--accent); }
1554
- /* Source view behind the toggle — the bulb's .bulb.md rendered as markdown (file
1555
- labels + fenced code panels via the shared .md rules). Just a scroll container
1556
- here, capped so a long bulb doesn't blow out the transcript. No `display` — the
1557
- [hidden] attribute the toggle flips drives visibility. */
1558
- /* Code view: a streamlined source listing — one labeled bar per file with the code
1559
- flush beneath, not a stack of bordered panels. The container is just the scroll box;
1560
- the file-label bar is the only fill (overriding .md pre's panel chrome below). */
1561
- .md .bulb-code {
1562
- margin: 0;
1563
- padding: 0;
1564
- max-height: 480px;
1565
- overflow: auto;
1566
- font-size: .85rem;
1567
- /* A distinct surface from the transcript: the live bulb blends into the flow, but the
1568
- code view reads as an inspector panel. Code panels (.md pre below) are transparent, so
1569
- they show this through. */
1570
- background: var(--tool-bg);
1571
- }
1572
- /* **file.ext** labels render as <p><strong>…</strong></p>; a bulb's source has no other
1573
- top-level prose, so styling the paragraph as a header bar only ever hits a label. */
1574
- .md .bulb-code p {
1575
- margin: 0;
1576
- padding: .3rem .85rem;
1577
- /* A touch darker than the code surface so the file-label header stays distinct now
1578
- that the whole code view shares one background. */
1579
- background: color-mix(in srgb, var(--fg) 6%, var(--tool-bg));
1580
- border-top: 1px solid var(--border);
1581
- font-family: ui-monospace, "SF Mono", Menlo, monospace;
1582
- font-size: .78rem;
1583
- color: var(--muted);
1584
- }
1585
- .md .bulb-code p:first-child { border-top: none; }
1586
- .md .bulb-code p strong { font-weight: 600; color: var(--fg); }
1587
- /* Code flush on the embed bg — drop the inherited .md pre box (border/bg/radius). */
1588
- .md .bulb-code pre {
1589
- margin: 0;
1590
- padding: .5rem .85rem .85rem;
1591
- border: none;
1592
- border-radius: 0;
1593
- background: transparent;
1594
- overflow-x: auto;
1595
- }
1596
- /* hljs token colors for the code view AND the diff doc (one palette, or the same file reads as two
1597
- languages across surfaces), mapped to the bulb's own theme vars (no hljs
1598
- theme stylesheet) so highlighting follows light/dark rather than baking a palette
1599
- that would clash in dark mode. Minimal token set — enough for legible TS/HTML/CSS/
1600
- JSON/markdown without chasing every grammar scope. */
1601
- .bulb-code .hljs-comment, .diff-doc-body .hljs-comment, .bulb-code .hljs-quote, .diff-doc-body .hljs-quote { color: var(--muted); font-style: italic; }
1602
- .bulb-code .hljs-keyword, .diff-doc-body .hljs-keyword, .bulb-code .hljs-literal, .diff-doc-body .hljs-literal, .bulb-code .hljs-built_in, .diff-doc-body .hljs-built_in { color: var(--accent); }
1603
- .bulb-code .hljs-tag, .diff-doc-body .hljs-tag, .bulb-code .hljs-name, .diff-doc-body .hljs-name, .bulb-code .hljs-selector-tag, .diff-doc-body .hljs-selector-tag { color: var(--accent); }
1604
- .bulb-code .hljs-string, .diff-doc-body .hljs-string, .bulb-code .hljs-regexp, .diff-doc-body .hljs-regexp, .bulb-code .hljs-meta .hljs-string, .diff-doc-body .hljs-meta .hljs-string {
1605
- color: color-mix(in srgb, var(--diff-add) 85%, var(--fg));
1606
- }
1607
- .bulb-code .hljs-number, .diff-doc-body .hljs-number { color: color-mix(in srgb, var(--accent) 55%, var(--fg)); }
1608
- .bulb-code .hljs-attr, .diff-doc-body .hljs-attr, .bulb-code .hljs-attribute, .diff-doc-body .hljs-attribute, .bulb-code .hljs-property, .diff-doc-body .hljs-property, .bulb-code .hljs-type, .diff-doc-body .hljs-type {
1609
- color: color-mix(in srgb, var(--accent) 75%, var(--fg));
1610
- }
1611
- .bulb-code .hljs-title, .diff-doc-body .hljs-title, .bulb-code .hljs-title.function_, .diff-doc-body .hljs-title.function_, .bulb-code .hljs-section, .diff-doc-body .hljs-section {
1612
- color: var(--fg); font-weight: 600;
1613
- }
1614
- .bulb-code .hljs-symbol, .diff-doc-body .hljs-symbol, .bulb-code .hljs-bullet, .diff-doc-body .hljs-bullet, .bulb-code .hljs-punctuation, .diff-doc-body .hljs-punctuation { color: var(--muted); }
1615
- /* Draft-streaming bulb card (#draftBulbCard): the code view wearing a progress header — never a
1616
- live mount; the durable row's BulbEmbed takes this slot when the entry lands. Cap tighter than
1617
- .bulb-code's resting 480px: ambient progress, not reading material. */
1618
- .md .bulb-streaming { flex-direction: column; }
1619
- .md .bulb-streaming > .bulb-code { max-height: 220px; border-radius: 0 0 8px 8px; }
1620
- .bulb-streaming-head {
1621
- display: flex;
1622
- align-items: baseline;
1623
- gap: .45rem;
1624
- padding: .3rem .85rem;
1625
- border-radius: 8px 8px 0 0;
1626
- /* A notch above the file-label bars inside the listing, so the header owns the card. */
1627
- background: color-mix(in srgb, var(--fg) 10%, var(--tool-bg));
1628
- font-size: .78rem;
1629
- color: var(--muted);
1630
- }
1631
- .bulb-streaming-count { margin-left: auto; font-variant-numeric: tabular-nums; }
1632
- .md .bulb-embed.err {
1633
- padding: .6rem .8rem;
1634
- font-family: ui-monospace, monospace;
1635
- font-size: .85em;
1636
- color: color-mix(in srgb, var(--err) 70%, var(--fg));
1637
- white-space: pre-wrap;
1638
- }
1639
- .md .bulb-err-strip {
1640
- padding: .45rem .7rem;
1641
- border-top: 1px solid var(--border);
1642
- background: color-mix(in srgb, var(--err) 8%, var(--bg));
1643
- font-family: ui-monospace, monospace;
1644
- font-size: .8em;
1645
- color: color-mix(in srgb, var(--err) 75%, var(--fg));
1646
- white-space: pre-wrap;
1647
- }
1648
-
1649
- /* Structural-defect strip (a malformed bulb that still rendered) — same shape as the error strip but
1650
- amber: a warning, not a failure. */
1651
- .md .bulb-warn-strip {
1652
- padding: .45rem .7rem;
1653
- border-top: 1px solid var(--border);
1654
- background: color-mix(in srgb, rgb(200 140 30) 10%, var(--bg));
1655
- font-family: ui-monospace, monospace;
1656
- font-size: .8em;
1657
- color: color-mix(in srgb, rgb(200 140 30) 80%, var(--fg));
1658
- white-space: pre-wrap;
1659
- }
1660
-
1661
- /* tool calls */
1662
- /* Closed tool: just a single-line row, no chrome — a tool-only turn stays a
1663
- tight list, not N stacked panels. Open tools get the panel treatment below. */
1664
- .tool {
1665
- font-size: .85rem;
1666
- }
1667
- /* Row shape shared by tool heads and the collapsed-turn summary; only the latter is a click
1668
- target (a tool's toggle is its digest row). */
1669
- .tool-head, .turn-summary {
1670
- display: flex;
1671
- align-items: center;
1672
- gap: .5rem;
1673
- padding: .15rem 0;
1674
- }
1675
- .turn-summary {
1676
- cursor: pointer;
1677
- user-select: none;
1678
- }
1679
- /* The shared disclosure triangle (caret() in messageList.ts). flex:none so a squeezed row can't
1680
- crush it; the digest row has no flex gap, so its spacing rides the marker. */
1681
- .caret-tri { width: 10px; height: 10px; transition: transform .15s ease; }
1682
- .caret-tri.open { transform: rotate(90deg); }
1683
- .tool-digest .caret-tri { margin-right: .5rem; }
1684
- /* Plain bold — an accent verb reads as a hyperlink; accent is reserved for the file-path link. */
1685
- .tool-name { font-weight: 600; }
1686
- /* Errors here are routine (a first-read miss the retry fixes), so a failed tool
1687
- recolors just its verb rather than boxing the whole row — a quiet signal. */
1688
- .tool.err .tool-name { color: var(--err); }
1689
-
1690
- /* Collapsed-turn summary strip (intermediate steps hidden behind the final
1691
- answer). Same caret/row shape as a tool head, italic muted label. */
1692
- .turn-summary { color: var(--muted); font-size: .85rem; }
1693
- .turn-summary-text { font-style: italic; }
1694
- .fork-icon { width: 11px; height: 11px; vertical-align: -1px; margin-right: .15rem; }
1695
- .turn-summary:hover .turn-summary-text { color: var(--fg); }
1696
-
1697
- /* An expanded abandoned-branch (fork) stub renders its orphan messages here — set apart from the live
1698
- transcript with a left rule and slight fade, signalling "this is not the active conversation"
1699
- (TB-LostMessage.md). The stub header itself is a .turn-summary row above. */
1700
- .fork-body {
1701
- margin-top: .4rem;
1702
- padding-left: .6rem;
1703
- border-left: 2px solid color-mix(in srgb, var(--fg) 18%, transparent);
1704
- opacity: .82;
1705
- /* Same column geometry as .messages — the tools-only negative-margin rule assumes a 1rem gap. */
1706
- display: flex;
1707
- flex-direction: column;
1708
- gap: 1rem;
1709
- /* --turn-color is a custom property and INHERITS — the stub's own .bubble.turn-N sets it, so without
1710
- this reset every nested orphan bubble inherits the parent turn's color and redraws the stripe
1711
- (the recursive-line bug). Reset to transparent so .bubble::before falls back to no stripe here. */
1712
- --turn-color: transparent;
1713
- }
1714
-
1715
- /* A superseded embed (an earlier same-name version) folds to this "💡 <Name> — Version N" stub — it
1716
- reclaims the bulb's full height. Marker-green text (--fold-marker: lime in dark, deep green in light)
1717
- on a neutral gray fill (--panel) that hugs the text (width:max-content), no border: text-hugging and
1718
- borderless keeps it distinct from the page's full-width bordered panels and clear of the live bulb's
1719
- hover pills, and the colored title rides a gray pill rather than a green block. Its look never depends
1720
- on outcome: errors show only inside the embed when expanded, so the title never changes. Click to
1721
- expand the older bulb (rerun fresh) back in. */
1722
- .bulb-fold {
1723
- display: flex;
1724
- width: max-content;
1725
- max-width: 100%;
1726
- align-items: center;
1727
- gap: .5rem;
1728
- padding: .3rem .55rem;
1729
- border-radius: 6px;
1730
- background: var(--panel);
1731
- color: var(--fold-marker);
1732
- font-size: .9rem;
1733
- font-weight: 600;
1734
- cursor: pointer;
1735
- user-select: none;
1736
- }
1737
- /* The fold is the sole child of its `.md` wrapper, so the `.md :first-child`/`:last-child` margin
1738
- reset (above) would zero a plain `margin` here. Scope it under `.md` so it outweighs that reset
1739
- (equal specificity, later in source) and the stub actually gets its breathing room. */
1740
- .md .bulb-fold { margin: .7rem 0; }
1741
- .bulb-fold:hover { background: color-mix(in srgb, var(--fg) 8%, var(--panel)); }
1742
- /* Verb + summary are inline siblings sharing one line box and font, so they sit
1743
- on a common baseline. Ellipsis truncation lives on the wrapper, not the
1744
- children — overflow:hidden on the summary itself skews its baseline. */
1745
- /* flex: 0 1 auto (not 1) so the pending '…' sits right after the label instead of at the row's
1746
- far edge; the label shrinks with ellipsis when the row is tight. */
1747
- .tool-label {
1748
- flex: 0 1 auto;
1749
- min-width: 0;
1750
- white-space: nowrap;
1751
- overflow: hidden;
1752
- text-overflow: ellipsis;
1753
- }
1754
- .tool-sum {
1755
- margin-left: .5rem;
1756
- color: var(--muted);
1757
- }
1758
- .tool-run { color: var(--muted); }
1759
-
1760
- /* The OUT line ("463 lines", the first stdout line): a tool's second row and its only toggle.
1761
- Text stays selectable — a drag copies, a plain click toggles. */
1762
- .tool-digest {
1763
- padding: 0 0 .15rem .6rem;
1764
- color: var(--muted);
1765
- white-space: nowrap;
1766
- overflow: hidden;
1767
- text-overflow: ellipsis;
1768
- cursor: pointer;
1769
- user-select: text;
1770
- }
1771
- .tool-digest:hover { color: var(--fg); }
1772
- /* Expanded = nothing readable hidden: the digest wraps to its full text (it may be the whole
1773
- result — suppressed patch one-liners rely on this). */
1774
- .tool-digest.open { white-space: normal; }
1775
-
1776
- /* Expanded input/output card beneath the digest row — additive only, the rows above keep their
1777
- collapsed look. First child sheds its top divider (nothing above it inside the card). */
1778
- .tool-card {
1779
- margin: .15rem 0 .55rem .6rem;
1780
- background: var(--veil);
1781
- border: 1px solid var(--border);
1782
- border-radius: 8px;
1783
- overflow: hidden;
1784
- }
1785
- .tool-card > :first-child, .tool-card > .diff:first-child > :first-child { border-top: none; }
1786
-
1787
- /* TodoWrite checklist (CC's treatment: struck-through done, bold in-progress, plain pending). */
1788
- .todo-list { padding: .45rem .7rem; display: grid; gap: .25rem; font-size: .85rem; }
1789
- .todo { display: flex; gap: .5rem; align-items: baseline; }
1790
- .todo-icon { flex: none; }
1791
- .todo.completed .todo-icon { color: var(--diff-add); }
1792
- .todo.completed .todo-text { text-decoration: line-through; color: var(--muted); }
1793
- .todo.in_progress .todo-text { font-weight: 600; }
1794
- .todo.in_progress .todo-icon { color: var(--accent); }
1795
-
1796
- /* Code-display panels inside an open tool card: raw input/output (.tool-in,
1797
- .tool-out) and per-hunk diff halves (.diff-old, .diff-new). All four share
1798
- the same monospace block geometry — padding, max-height with scroll,
1799
- pre-wrap with word-break, top-divider — so consolidating here means edits
1800
- to "how a code panel looks" land in one place. Color treatment is the only
1801
- per-variant difference. */
1802
- .tool-in, .tool-out, .diff-old, .diff-new {
1803
- margin: 0;
1804
- padding: .55rem .7rem;
1805
- border-top: 1px solid var(--border);
1806
- white-space: pre-wrap;
1807
- word-break: break-word;
1808
- font-family: ui-monospace, Menlo, monospace;
1809
- font-size: .8rem;
1810
- max-height: 320px;
1811
- overflow: auto;
1812
- }
1813
- .tool-out { color: var(--muted); }
1814
- /* Structured input fields inside an open tool card (one row per input key), replacing the old raw
1815
- JSON dump. The key is a muted inline label; the value keeps the shared mono geometry, flowing on
1816
- the same line and wrapping/multi-lining as pre-wrap dictates. */
1817
- .tool-field + .tool-field { margin-top: .5rem; }
1818
- .tool-key { color: var(--muted); margin-right: .6rem; user-select: text; }
1819
- .tool-val { display: inline; margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
1820
- /* Line-banded unified-diff view (± lines only): the same add/remove band colors as
1821
- .diff-new/.diff-old; a muted ⋯ row separates hunks. The ± marker is ::before content in a
1822
- reserved gutter — visible (the non-color cue colorblind readers need) but outside the DOM
1823
- text, so selection-copy grabs only the code. min-height keeps blank changed lines from
1824
- collapsing now that they carry no marker char. */
1825
- .udiff { white-space: pre-wrap; word-break: break-word; }
1826
- .udiff-line { position: relative; padding: 0 .2rem 0 1.05rem; min-height: 1lh; }
1827
- .udiff-line::before { position: absolute; left: .25rem; }
1828
- .udiff-add::before { content: '+'; }
1829
- .udiff-del::before { content: '-'; }
1830
- .udiff-add { background: color-mix(in srgb, var(--diff-add) 24%, transparent); }
1831
- .udiff-del { background: color-mix(in srgb, var(--err) 24%, transparent); }
1832
- .udiff-gap { color: var(--muted); user-select: none; }
1833
- /* The band carries the add/remove signal; text stays --fg so it's readable. Colouring the text the same
1834
- hue as its fill (red-on-red) is what washes a diff out — the band alone is the convention. */
1835
- .diff-old {
1836
- background: color-mix(in srgb, var(--err) 24%, transparent);
1837
- color: var(--fg);
1838
- }
1839
- .diff-new {
1840
- background: color-mix(in srgb, var(--diff-add) 24%, transparent);
1841
- color: var(--fg);
1842
- }
1843
-
1844
- /* Path link: plain accent, underline only on hover. skip-ink:none so the underline stays solid
1845
- under a path's descenders and slashes; the cursor is explicit because the anchor carries no href
1846
- (the click is a server RPC, not navigation) and so defaults to the surrounding prose's caret. */
1847
- .tool-sum.link {
1848
- color: var(--accent);
1849
- text-decoration: none;
1850
- cursor: pointer;
1851
- }
1852
- .tool-sum.link:hover { text-decoration: underline; text-decoration-skip-ink: none; }
1853
-
1854
- .diff { display: flex; flex-direction: column; }
1855
- .diff-step {
1856
- padding: .35rem .7rem;
1857
- border-top: 1px solid var(--border);
1858
- color: var(--muted);
1859
- font-size: .72rem;
1860
- text-transform: uppercase;
1861
- letter-spacing: .06em;
1862
- }
1863
-
1864
- .thinking { margin-bottom: .4rem; font-size: .82rem; color: var(--muted); }
1865
- /* The <summary> toggle defaults to a text cursor — give it the pointer every other expandable uses. */
1866
- .thinking summary { cursor: pointer; }
1867
- .thinking pre { white-space: pre-wrap; }
1868
- /* Streaming (draft) thinking: capped + scrollable at the bulb-streaming card's height — ambient
1869
- progress, not reading material — stuck to the live edge unless the user scrolls up
1870
- (#draftThinkingPre). Durable rows stay uncapped: finished thinking IS reading material. */
1871
- .draft .thinking pre { max-height: 220px; overflow-y: auto; }
1872
-
1873
- /* Copy button: an .overlay-pill revealed on bubble-hover. */
1874
- .bubble:hover .copy { opacity: 1; }
1875
- /* "copied" flash: eases into accent on click (CopyButton is a Component, so its
1876
- node persists across re-renders and the transition actually runs). The color
1877
- transition lives only on .done, not the base pill, so hover stays instant — the
1878
- trade is the revert snaps back rather than easing out. */
1879
- .copy.done {
1880
- opacity: 1;
1881
- color: var(--accent);
1882
- border-color: var(--accent);
1883
- transition: opacity .2s ease, color .5s ease, border-color .5s ease;
1884
- }
1885
- /* Assistant bubbles carry no padding, so the shared .5rem bottom would float the
1886
- pill above the last line — pin it to the text's bottom edge. */
1
+ :root {
2
+ /* Light is the default; data-theme="dark" is set by the host (typebulb.com
3
+ or the typebulb CLI, sourced from prefers-color-scheme).
4
+ GRAY RAMP — every gray rides ONE neutral tint (R=G=B), like the main app's
5
+ bg1–bg5 ramp. Lightness may step; the HUE never changes. The bug to avoid is a
6
+ gray in a *different* tint (a cool/blue panel beside a neutral one), not the
7
+ number of steps. App chrome (statusbar, picker, modals) sits on the fixed
8
+ --panel. Document panels — code, callouts, tables, user bubbles, open tools —
9
+ paint --veil instead: a translucent neutral that matches --panel when alone on
10
+ the page but COMPOUNDS when panels nest (a code block in a callout, a panel in a
11
+ user bubble), so every depth separates on its own — no level-counting, no cap. */
12
+ --bg: rgb(255, 255, 255);
13
+ --fg: rgb(28, 28, 30);
14
+ --muted: rgb(96, 96, 100);
15
+ --panel: rgb(242, 242, 242);
16
+ --border: rgb(221, 221, 221);
17
+ --accent: rgb(58, 125, 232);
18
+ --veil: rgba(0, 0, 0, 0.05); /* one shade step; alpha-stacks as panels nest */
19
+ --tool-bg: var(--panel);
20
+ --err: rgb(206, 60, 60);
21
+ --warn: rgb(176, 120, 12); /* amber — the cache-leak (cost-caution) tier, milder than --err */
22
+ --diff-add: rgb(40, 140, 70);
23
+ --fold-marker: rgb(24, 145, 72);
24
+ /* Prose measure for text (bubbles + notes) — kept to a readable line length.
25
+ Diagrams break out wider than this; see .md .mermaid. */
26
+ --content-max: 800px;
27
+ /* One height for every word-pill control — the statusbar pills (bulbs/model/session/token) and
28
+ the floating overlay pills (copy, breakout). Set once here so they can't drift apart again;
29
+ chosen a touch under the old statusbar 1.7rem and a touch over the overlay pills' ~1.35rem. */
30
+ --pill-h: 1.5rem;
31
+ /* One text size for every word-pill too (statusbar pills + overlay copy/breakout). Was drifting:
32
+ statusbar .85rem vs overlay .72rem read as amateurish. The emoji glyph pill keeps its own size. */
33
+ --pill-font: .8rem;
34
+ color-scheme: light;
35
+ }
36
+
37
+ html[data-theme="dark"] {
38
+ /* Neutral ramp, same tint as the main app: page 18 → surface 32 → border 52. */
39
+ --bg: rgb(18, 19, 20);
40
+ --fg: rgb(190, 190, 190);
41
+ --muted: rgb(150, 150, 150);
42
+ --panel: rgb(32, 32, 32);
43
+ --border: rgb(52, 52, 52);
44
+ --accent: rgb(122, 162, 250);
45
+ --veil: rgba(255, 255, 255, 0.06);
46
+ --tool-bg: var(--panel);
47
+ --err: rgb(230, 60, 60);
48
+ --warn: rgb(232, 184, 80); /* amber — the cache-leak (cost-caution) tier, milder than --err */
49
+ --diff-add: rgb(100, 210, 130);
50
+ --fold-marker: rgb(0, 255, 0);
51
+ color-scheme: dark;
52
+ }
53
+
54
+ /* Aliases for beautiful-mermaid, indirecting around a var-name collision with the
55
+ bulb's theme (see the renderMermaidSVG call). They still resolve to the live
56
+ theme at the use site. */
57
+ :root {
58
+ --mm-bg: var(--bg);
59
+ --mm-fg: var(--fg);
60
+ --mm-line: var(--muted);
61
+ --mm-accent: var(--accent);
62
+ --mm-muted: var(--muted);
63
+ --mm-surface: var(--tool-bg);
64
+ --mm-border: var(--border);
65
+ }
66
+
67
+ * { box-sizing: border-box; }
68
+
69
+ body {
70
+ margin: 0;
71
+ height: 100vh;
72
+ overflow: hidden;
73
+ color: var(--fg);
74
+ background: var(--bg);
75
+ font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
76
+ font-size: 15px;
77
+ line-height: 1.55;
78
+ }
79
+
80
+ .app { display: flex; flex-direction: column; height: 100vh; }
81
+ /* The transcript region. position:relative anchors the overlaid (absolute) statusbar and banners to
82
+ THIS box, not the app: with a composer below the pills stay over the transcript's bottom edge
83
+ instead of landing on the input panel. */
84
+ .chat { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
85
+
86
+ /* Bottom status strip, overlaid (not in flow) on the chat — which runs
87
+ full-height to the very bottom. The strip itself has NO fill, so the message
88
+ text shows through everywhere, right to the bottom edge. Only the items (the
89
+ pills) are opaque, so they overlay the text with visual precedence rather than
90
+ the strip cutting it off with a band. No border — the typebulb host's rounded
91
+ card is the only frame. */
92
+ .statusbar {
93
+ position: absolute;
94
+ left: 0;
95
+ right: 0;
96
+ bottom: 0;
97
+ /* Same column as .messages and the composer: a --content-max band centred in a 1.75rem gutter
98
+ (max-width carries the two gutters so the content box lands on --content-max). The pills are
99
+ right-aligned within it, so the cluster's right edge tracks the prose column's — consistent
100
+ with the input above and the transcript behind. The gutter also clears the overlaid scrollbar
101
+ that the old asymmetric right padding was there to dodge. */
102
+ margin-inline: auto;
103
+ max-width: calc(var(--content-max) + 3.5rem);
104
+ display: flex;
105
+ align-items: center;
106
+ gap: .65rem;
107
+ padding: .4rem 1.75rem;
108
+ font-size: .8rem;
109
+ /* Drop the inherited 1.55 line-height so the bar's own strut doesn't add
110
+ phantom ascender/descender room above the pills. Everything in the bar
111
+ is a fixed-height pill, which looks right at 1. */
112
+ line-height: 1;
113
+ min-width: 0;
114
+ }
115
+ .statusbar-actions {
116
+ margin-left: auto;
117
+ display: flex;
118
+ gap: .4rem;
119
+ align-items: center;
120
+ }
121
+ /* THE CENTERING RECIPE for EVERY word-label control on any surface — the status-bar pills and
122
+ floating overlay pills below, and the launcher row's trust switch + B scope chip. One rule = one
123
+ source of vertical alignment; when these drift apart it reads as amateurish, so a new word
124
+ control joins this selector rather than centering itself (don't re-tweak per button — fix it
125
+ here or nowhere). Icon buttons opt back out, keeping flex (see .pill.glyph). Segoe UI's font
126
+ ascent (~1.08em) dwarfs its descent (~0.25em), so anything that centers the LINE BOX —
127
+ flex, line-height, padding — parks the glyphs ~2px low at pill sizes. `text-box` trims the
128
+ line box to the glyphs (cap→baseline) so centering centers the letters themselves. It only
129
+ applies to block containers (not flex), hence inline-block + align-content, not inline-flex
130
+ + align-items. Browsers without text-box (Firefox) fall back to plain line-box centering. */
131
+ .pill, .token, .overlay-pill, .trust-toggle, .batch-b {
132
+ display: inline-block;
133
+ align-content: center;
134
+ text-align: center;
135
+ text-box: trim-both cap alphabetic;
136
+ }
137
+ /* Chip shape shared by the status-bar pills (interactive and passive) AND the floating overlay
138
+ pills (copy, breakout, code⇄run) — opaque, so they read cleanly over the message text the
139
+ transparent strip lets through. The launcher row's pills take only the recipe above; their
140
+ shape is the row's (.trust-toggle, .batch-b). */
141
+ .pill, .token, .overlay-pill {
142
+ height: var(--pill-h);
143
+ padding: 0 .7rem;
144
+ border-radius: 7px;
145
+ background: var(--panel);
146
+ border: 1px solid var(--border);
147
+ color: var(--muted);
148
+ font-size: var(--pill-font);
149
+ white-space: nowrap;
150
+ user-select: none;
151
+ }
152
+ /* Pills are <button>s: reset UA chrome (font/appearance/margin) and add the
153
+ interactive affordance. Slightly larger text than the passive indicator. */
154
+ .pill {
155
+ font: inherit;
156
+ font-size: var(--pill-font);
157
+ appearance: none;
158
+ margin: 0;
159
+ cursor: pointer;
160
+ }
161
+ /* `.on` latches the hover accent — the bar's only persistent state cue (every other
162
+ pill accents on hover alone). */
163
+ .pill:hover, .pill.on { border-color: var(--accent); color: var(--accent); }
164
+ /* Square glyph pill (the prose-mode toggle): width pinned to the pill height rather than
165
+ padding-driven — the bar's first non-word pill. The emoji can't take currentColor, so it
166
+ carries state itself: grayscale at rest, color while hovered or on — filtered on the
167
+ inner span, never the button, or it would wash the accent border too.
168
+ Glyph content (emoji span / the Anthropic SVG) is vertically symmetric, so plain flex
169
+ centering is exact for it — and cap/alphabetic trim mis-seats a replaced SVG (it trims to
170
+ TEXT metrics), so opt glyph pills back out of the word-pill recipe. */
171
+ .pill.glyph {
172
+ display: inline-flex;
173
+ align-items: center;
174
+ justify-content: center;
175
+ text-box: normal;
176
+ width: var(--pill-h);
177
+ padding: 0;
178
+ font-size: .9rem;
179
+ }
180
+ .pill.glyph .glyph-img { filter: grayscale(1); opacity: .75; }
181
+ .pill.glyph:hover .glyph-img, .pill.glyph.on .glyph-img { filter: none; opacity: 1; }
182
+
183
+ /* The two status-bar chips each anchor an upward popover (token breakdown /
184
+ session list). Wrap = positioning context; the popover anchors bottom/right and
185
+ grows up-and-left — the chips sit in the right-aligned cluster, so left:0 would
186
+ run them off the viewport's right edge. */
187
+ .token-wrap, .sid-wrap, .servers-wrap, .model-wrap, .gitdiff-wrap { position: relative; display: inline-block; }
188
+ /* Each pill renders its wrap unconditionally, emitting an empty div when it has
189
+ nothing to show (no tokens / no session / nothing running). An empty wrap is
190
+ still a flex child, so .statusbar-actions' gap lands on both its sides —
191
+ doubling the visible gap between its neighbours. Collapse the empties so the
192
+ cluster spaces evenly regardless of which pills are present. */
193
+ .token-wrap:empty, .sid-wrap:empty, .servers-wrap:empty, .model-wrap:empty, .gitdiff-wrap:empty { display: none; }
194
+ .picker, .servers-pop {
195
+ --menu-h: 428px; /* one height for both statusbar menus — they sit side by side, so a
196
+ mismatched cap reads as a glitch; .picker grows to it, .servers-pop
197
+ too (the drilled-in console is the one fixed-height exception, see
198
+ .log-mode). Sized to show exactly 12 rows
199
+ (12 × --menu-row-h + 11 gaps + filter + padding) — recognition fades
200
+ past ~12 and search owns the tail. Plain px: desktop-only surface,
201
+ every desktop window fits it. 428, not 427: at 427 the two menus land
202
+ on different device-pixel roundings, a 1px sibling mismatch — the
203
+ lesser evil is 1px off the ideal height. */
204
+ --menu-row-h: 29px; /* one row height for both menus' lists — rows must match pitch exactly
205
+ or the side-by-side menus read as two designs. Whole px, eyeball-tuned;
206
+ the row paddings are kept below it so this floor is what governs. */
207
+ /* ONE geometry contract for both menus — sizing policy, padding, stacking. Stating it twice is
208
+ how every sibling discrepancy of June '26 happened (row pitch, gaps, fixed-vs-grow). max-height,
209
+ not height: a menu hugs its content and caps at the 12 rows above — a fixed height left a
210
+ 1-bulb project with a row floating atop a 400px void. Per-menu rules keep only width and
211
+ alignment (.pop-center / .pop-start below). */
212
+ max-height: var(--menu-h);
213
+ overflow: hidden;
214
+ padding: .35rem;
215
+ /* The bar's line-height:1 is for its fixed-height pills; a menu is a text surface, so restore
216
+ descender room HERE, once. Inherited, the 1 crops the tails of "g"/"j"/"p" under every row's
217
+ overflow:hidden (the ellipsis clip) — a leaf-by-leaf fix that had already been pasted three
218
+ times. Rows are floored at --menu-row-h with their paddings kept under it, so pitch is unchanged. */
219
+ line-height: 1.35;
220
+ display: flex;
221
+ flex-direction: column;
222
+ gap: .15rem;
223
+ position: absolute;
224
+ bottom: calc(100% + .35rem);
225
+ right: 0;
226
+ z-index: 10;
227
+ background: var(--panel);
228
+ border: 1px solid var(--border);
229
+ border-radius: 10px;
230
+ box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
231
+ }
232
+ /* Menu-list scrollbars: the channel is ALWAYS reserved (overflow-y: scroll on all three lists) and
233
+ the scrollbar is owned — no arrow buttons, transparent track, a floating thumb only when the list
234
+ actually overflows. Native auto scrollbars made a row band's right inset depend on list length: a
235
+ project with no bulbs of its own (one collapsed fold row) ran its band 15px nearer the popover
236
+ edge than the filter box under it, and bare overflow:scroll parked a vestigial arrow-stub beside
237
+ the short list. Width stays 15px, the native width .model-head's alignment padding hardcodes.
238
+ Chromium pseudos on purpose: setting the standard scrollbar-color would disable them. */
239
+ :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar { width: 15px; }
240
+ :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-button { display: none; }
241
+ :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-track { background: transparent; }
242
+ :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-thumb {
243
+ background-color: color-mix(in srgb, var(--fg) 28%, transparent);
244
+ border-radius: 8px;
245
+ /* Transparent border + padding-box clip floats a slim pill in the 15px channel. */
246
+ border: 4px solid transparent;
247
+ background-clip: padding-box;
248
+ }
249
+ :is(.picker-list, .bulb-list, .gitdiff-list)::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--fg) 45%, transparent); }
250
+
251
+ /* The overview ruler (overviewRuler.ts): a scroll container's bar, replaced. .oruler-host is applied
252
+ by the widget at mount — never statically — so the native bar only disappears once its replacement
253
+ is painted. BOTH hiding routes: the standard property covers Gecko, the pseudo covers WebKit, and
254
+ Blink honours either, so no engine is left showing two scrollbars. Window and marks are % of a track
255
+ that spans the pane, so they share the container's content space. Marks are pointer-inert; the track
256
+ takes the press, the drag and the wheel. Colour and the track's inset are the host's (.diff-ruler).
257
+ Cursor stays the plain arrow — that's what a scrollbar shows, and `grab` would claim otherwise. */
258
+ .oruler-host { scrollbar-width: none; }
259
+ .oruler-host::-webkit-scrollbar { width: 0; height: 0; }
260
+ .oruler { position: absolute; inset-block: 0; width: 6px; z-index: 5; cursor: default; touch-action: none; }
261
+ .oruler-mark { position: absolute; left: 0; right: 0; min-height: 3px; border-radius: 1px; pointer-events: none; }
262
+ /* Wider than the track and above the marks, so what's on screen reads as a thumb laid over the map. */
263
+ .oruler-win {
264
+ position: absolute; left: -3px; right: -3px; z-index: 1; min-height: 6px; border-radius: 3px;
265
+ pointer-events: none; background: color-mix(in srgb, var(--fg) 28%, transparent);
266
+ }
267
+ /* The menu thumbs' own two steps (28/45) — same surface, same weights. Still a wash rather than a
268
+ solid fill: the marks it covers are the ones you're about to read. */
269
+ .oruler:hover .oruler-win { background: color-mix(in srgb, var(--fg) 45%, transparent); }
270
+ /* A finger needs a target a 6px track can't give; the map is worth more widened than dropped. */
271
+ @media (pointer: coarse) {
272
+ .oruler { width: 14px; }
273
+ .oruler-win { left: -2px; right: -2px; }
274
+ }
275
+ /* Forced colours drop our tints — the window would vanish outright, and the marks' red/green IS the
276
+ information, so it keeps its own palette rather than collapsing to one system colour. */
277
+ @media (forced-colors: active) {
278
+ .oruler-win { background: transparent; border: 1px solid Highlight; }
279
+ .oruler-mark { forced-color-adjust: none; }
280
+ }
281
+ /* Popover alignment — which edge of the pill the menu aligns to (floating-UI's start/center/end
282
+ vocabulary; "end", right edges flush and growing left, is the unnamed default above). Tagged on
283
+ the pill's WRAP, not each popover root: a menu with several drilled-in views (the model pill's
284
+ list/info/diag/key modes) aligns once, and a future mode can't forget. The cluster's left-side
285
+ pills (diff, model) center — end-anchored, their menus run out of room growing left. No viewport
286
+ clamping: desktop-only; revisit if a narrow window ever clips one. */
287
+ .pop-center > :is(.picker, .servers-pop) { right: auto; left: 50%; transform: translateX(-50%); }
288
+ .pop-start > :is(.picker, .servers-pop) { right: auto; left: 0; }
289
+
290
+ /* ---- Shimmer — the one "working" cue. One gradient, one keyframes, composed via class, never
291
+ re-pasted (paste-drift is how each new shimmer kept landing at its own speed). `.shimmer` sweeps
292
+ the element's background; `.shimmer-text` clips the sweep to the glyphs alone. Knobs, set by the
293
+ using rule: --shimmer-base (the gradient's resting color — transparent for see-through chrome, an
294
+ opaque surface for pills that must cover content) and --shimmer-mix (accent strength). Pick the
295
+ cadence by the band's LINEAR speed, which is what reads consistent: travel is proportional to
296
+ element width (background-size 250%), and ~2rem/s is the calibrated pace — so narrow chrome
297
+ (a 1.7rem play button) takes the 2.2s default and anything text-width or wider takes
298
+ `.shimmer-slow` (7s). A fast sweep reads as urgency, not progress. */
299
+ /* The state longhands are !important: this class composes onto elements whose resting rules set a
300
+ `background:` shorthand at arbitrary specificity (button resets, .overlay-pill, :hover tints) —
301
+ any of which would silently kill the gradient (the bug that ate the play button's shimmer). A
302
+ working cue must win while it's on; resting background-color still shows beneath the sweep. */
303
+ .shimmer, .shimmer-text { background-size: 250% 100% !important; animation: bulb-shimmer var(--shimmer-speed, 2.2s) linear infinite !important; }
304
+ .shimmer {
305
+ background-image: linear-gradient(100deg, var(--shimmer-base, transparent) 30%, color-mix(in srgb, var(--accent) var(--shimmer-mix, 35%), var(--shimmer-base, transparent)) 50%, var(--shimmer-base, transparent) 70%) !important;
306
+ background-color: var(--shimmer-base, transparent);
307
+ }
308
+ .shimmer-text {
309
+ /* Shrink-to-fit, so the sweep paces the text's own length, not the container's — on a full-width
310
+ box the band spends most of its run off-glyph (same move as typebulb.com's shimmer.ts). */
311
+ display: inline-block;
312
+ /* background-clip:text paints the glyphs through this element's own box, so the box must be tall
313
+ enough to cover descenders — inheriting the statusbar's line-height:1 clips the "g" in "probing"/
314
+ "working…" at the baseline. A descender-clearing line-height restores the paint area; the button
315
+ centres this box, so the extra height never unbalances the row. */
316
+ line-height: 1.3;
317
+ background-image: linear-gradient(100deg, currentColor 35%, var(--accent) 50%, currentColor 65%) !important;
318
+ -webkit-background-clip: text;
319
+ background-clip: text;
320
+ -webkit-text-fill-color: transparent;
321
+ }
322
+ .shimmer-slow { --shimmer-speed: 7s; }
323
+ @keyframes bulb-shimmer { from { background-position: 250% 0; } to { background-position: -250% 0; } }
324
+ @media (prefers-reduced-motion: reduce) {
325
+ .shimmer { animation: none !important; background: color-mix(in srgb, var(--accent) 15%, var(--shimmer-base, transparent)) !important; }
326
+ .shimmer-text { animation: none !important; background: none !important; -webkit-text-fill-color: currentColor; }
327
+ }
328
+
329
+ /* CC mid-turn: the token pill doubles as the working indicator — an accent shimmer
330
+ over the chip, the count frozen until the turn flushes. Passive — driven by the
331
+ live-chain leaf, not a live token stream (the JSONL is flushed in batches, so this
332
+ can sit lit through a multi-minute buffering window — hence shimmer-slow). The sweep
333
+ blends with --panel, not transparent like the launch buttons': statusbar pills must
334
+ stay opaque over the message text the strip lets through. */
335
+ .token.busy { border-color: var(--accent); --shimmer-base: var(--panel); --shimmer-mix: 25%; }
336
+
337
+ /* ── The composer (TB-Agent-Composer.md): the prompt panel under the transcript. In flow (not
338
+ overlaid like the statusbar) — it owns real height and must never cover content. ── */
339
+ .composer { position: relative; flex: none; background: var(--bg); padding-inline: 1.75rem; }
340
+ /* Keep the composer's rows on the same prose column as the transcript (--content-max, centered like
341
+ .messages) — full-mirror-width input reads badly, the eye has to travel to wrap long lines. The
342
+ 1.75rem inline padding above matches .messages' gutter so the two columns align at every width. */
343
+ .composer .splitter,
344
+ .composer .input-wrap,
345
+ .composer-err,
346
+ .composer-status,
347
+ .composer-queue {
348
+ max-width: var(--content-max);
349
+ margin-inline: auto;
350
+ }
351
+ /* A 4px drag zone centered on the composer's top border; z-index lifts it above the input-wrap
352
+ border so the line itself is grabbable. */
353
+ .splitter {
354
+ position: relative;
355
+ height: 4px;
356
+ margin-top: -2px;
357
+ margin-bottom: -2px;
358
+ z-index: 5;
359
+ cursor: row-resize;
360
+ background: transparent;
361
+ flex-shrink: 0;
362
+ }
363
+ .splitter:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
364
+ .input-wrap { position: relative; border-top: 1px solid var(--border); }
365
+ .composer-input {
366
+ width: 100%;
367
+ display: block;
368
+ resize: none; /* height is splitter-driven (inline style), not the native handle */
369
+ border: none;
370
+ border-radius: 0;
371
+ background: var(--bg);
372
+ color: var(--fg);
373
+ font: inherit;
374
+ font-size: .9rem;
375
+ line-height: 1.45;
376
+ /* Zero horizontal padding so the text sits flush on the --content-max column — its left and right
377
+ edges line up with the transcript prose (which has no inset) and the splitter. Buttons live in
378
+ .composer-actions below, so the text needs no right gutter either. */
379
+ padding: .5rem 0;
380
+ }
381
+ .composer-input:focus { outline: none; }
382
+ .composer-input:disabled { opacity: .6; }
383
+ .composer-input::placeholder { color: var(--muted); }
384
+ /* The icons.ts shell: one span, sized HERE (never by svg attrs), the material/custom svg filling
385
+ it. 14px default; context classes (.btn-icon, .caret-tri, …) override. */
386
+ .icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: none; }
387
+ .icon svg { width: 100%; height: 100%; display: block; }
388
+ /* The action bar under the textarea, right-aligned: send/stop is the primary CTA; + (new
389
+ conversation) and the clipboard clip are the quiet secondaries to its left. Below the text (not
390
+ overlaid) so the textarea keeps the full prose column. */
391
+ .composer-actions {
392
+ display: flex;
393
+ justify-content: flex-end;
394
+ align-items: center;
395
+ gap: .15rem;
396
+ padding: 0 0 .4rem; /* flush right, so Send lines up with the copy pill / statusbar pills */
397
+ }
398
+ .composer-act, .composer-new, .composer-clip {
399
+ width: 28px;
400
+ height: 28px;
401
+ display: flex;
402
+ align-items: center;
403
+ justify-content: center;
404
+ padding: 0;
405
+ margin: 0;
406
+ appearance: none;
407
+ border: none;
408
+ border-radius: 50%;
409
+ cursor: pointer;
410
+ transition: background .15s, color .15s, transform .08s;
411
+ }
412
+ /* Send/stop are CIRCLE GLYPHS (play_circle / stop_circle — typebulb.com's play look): the icon IS
413
+ the button, no painted disc. One size for all three — the circles' diameter and the paperclip's
414
+ ink height are both 800/960 of the material viewBox, so equal boxes = equal visual height. */
415
+ .composer-act .icon, .composer-new .icon, .composer-clip .icon { width: 24px; height: 24px; }
416
+ .composer-act { background: transparent; }
417
+ .composer-act.send { color: var(--accent); }
418
+ .composer-act.send:hover:not(:disabled) { color: color-mix(in srgb, var(--accent) 80%, white); background: color-mix(in srgb, var(--accent) 10%, transparent); }
419
+ .composer-act.stop { color: var(--err); }
420
+ .composer-act.stop:hover { color: color-mix(in srgb, var(--err) 80%, white); background: color-mix(in srgb, var(--err) 10%, transparent); }
421
+ .composer-act:active, .composer-new:active, .composer-clip:active { transform: scale(.94); }
422
+ .composer-act:disabled, .composer-new:disabled, .composer-clip:disabled { opacity: .5; cursor: default; }
423
+ .composer-new {
424
+ background: transparent;
425
+ color: var(--muted);
426
+ }
427
+ .composer-new:hover:not(:disabled) { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
428
+ .composer-clip {
429
+ background: transparent;
430
+ color: var(--muted);
431
+ }
432
+ .composer-clip:hover:not(:disabled) { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
433
+ /* Zero horizontal padding (like .composer-input): these rows sit flush on the content column. */
434
+ .composer-err { padding: .3rem 0; color: var(--err); font-size: .78rem; }
435
+ /* The ambient status line (TB-Agent-Composer-Toolkit.md Piece 2): one slim kind-tinted row above the
436
+ input — a retry/compaction in progress, an extension notice, a recipe's transient result. */
437
+ .composer-status { padding: .3rem 0; font-size: .78rem; color: var(--accent); }
438
+ .composer-status.warning { color: var(--warn); }
439
+ .composer-status.error { color: var(--err); }
440
+ /* The pending-queue strip (parity #2): queued steer/follow-up texts above the input. Block rows,
441
+ not a flex column — .queue-row's overflow:hidden would zero flex min-heights (the .dlg-opts
442
+ lesson). */
443
+ .composer-queue { padding: .15rem 0 0; }
444
+ .queue-row { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
445
+ .queue-tag { color: var(--accent); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .5rem; }
446
+ /* The @-file-mention popup, anchored above the composer. Tall enough for the pickers' full row
447
+ caps (10 files / 12 commands); the vh guard + arrow-key scroll-into-view cover short windows. */
448
+ .at-popup {
449
+ position: absolute;
450
+ bottom: calc(100% + .25rem);
451
+ left: 0;
452
+ right: 0;
453
+ max-width: 600px;
454
+ margin-inline: auto;
455
+ max-height: min(24rem, 50vh);
456
+ overflow-y: auto;
457
+ background: var(--panel);
458
+ border: 1px solid var(--border);
459
+ border-radius: 10px;
460
+ box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
461
+ padding: .25rem;
462
+ z-index: 10;
463
+ }
464
+ .at-row {
465
+ padding: .35rem .55rem;
466
+ border-radius: 6px;
467
+ cursor: pointer;
468
+ font-family: ui-monospace, Menlo, monospace;
469
+ font-size: .82rem;
470
+ white-space: nowrap;
471
+ overflow: hidden;
472
+ text-overflow: ellipsis;
473
+ }
474
+ .at-row.active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
475
+ .at-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
476
+ /* The '/' palette rides the same popup chrome; its rows pair a command with a muted description. */
477
+ .slash-desc { color: var(--muted); font-size: .74rem; margin-left: .6rem; }
478
+ /* The composer's dialog fields (TB-Agent-Composer-Toolkit.md Piece 3), shared by both homes: the
479
+ trust-modal chrome (server dialogs, confirms) and the anchored .dlg-popup (local select/input).
480
+ Select options reuse .at-row inside a scroll box. */
481
+ /* Block, NOT flex: .at-row's overflow:hidden zeroes flex min-heights, squashing a long option
482
+ list (pi can return the whole OpenRouter catalog); block rows keep their natural height and
483
+ the box scrolls. */
484
+ .dlg-opts {
485
+ max-height: 40vh; overflow-y: auto;
486
+ border: 1px solid var(--border); border-radius: 8px; padding: .25rem;
487
+ }
488
+ .dlg-input, .dlg-editor {
489
+ font: inherit; font-size: .85rem; color: var(--fg); background: transparent;
490
+ border: 1px solid var(--border); border-radius: 7px; padding: .4rem .6rem; width: 100%;
491
+ }
492
+ .dlg-input:focus, .dlg-editor:focus { outline: none; border-color: var(--accent); }
493
+ .dlg-editor { min-height: 8rem; resize: vertical; }
494
+ .dlg-filter { margin-top: .4rem; }
495
+ /* A local (recipe) select/input rides the @-popup shell — the gesture register, not the modal's
496
+ (composer.ts #dlgAnchored). The popup itself stops scrolling (its .dlg-opts scrolls instead, so
497
+ the filter stays pinned at the anchored bottom edge); the opts box drops its border, the popup
498
+ frame already provides one. The catcher is the invisible click-away target under the popup. */
499
+ .dlg-popup { max-height: none; overflow: visible; }
500
+ .dlg-popup .dlg-opts { border: none; padding: 0; }
501
+ .dlg-label { font-size: .78rem; color: var(--muted); padding: .1rem .25rem .3rem; }
502
+ .dlg-catcher { position: fixed; inset: 0; z-index: 9; }
503
+ .at-empty { padding: .6rem; color: var(--muted); font-size: .85rem; text-align: center; }
504
+ /* The driver's in-flight assistant message — visibly provisional next to landed bubbles; the
505
+ durable row replaces it when the entry hits the transcript. */
506
+ .bubble.draft { opacity: .9; }
507
+ .draft-wait { color: var(--muted); }
508
+ /* Pasted-image thumbnails under a user message that @-mentions .typebulb/paste files. */
509
+ .paste-thumbs { margin-top: .4rem; }
510
+ .paste-thumb { display: block; max-width: min(360px, 100%); max-height: 240px; margin-top: .3rem; border: 1px solid var(--border); border-radius: 8px; }
511
+
512
+ /* Session list — shares the popover chrome (.picker above); these are
513
+ just its own dimensions. */
514
+ .picker { width: min(440px, calc(100vw - 2rem)); }
515
+ /* The filter (.bulb-filter-control) pins at the bottom — the popover's anchored edge, so it never
516
+ jumps as the filtered list changes height; the row list scrolls inside the capped box, resting at
517
+ its end (newest-at-bottom) — same shape as the launcher's .servers-pop / .bulb-list. */
518
+ .picker-list { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-height: 0; overflow-y: scroll; padding-right: 4px; }
519
+ /* Positioned wrapper around just the list (not the filter) so the hover-peek card anchors to the
520
+ list's bottom edge, sitting above the filter input. */
521
+ .picker-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
522
+ .picker-empty { padding: .8rem; color: var(--muted); font-size: .85rem; text-align: center; }
523
+ .picker-row {
524
+ display: flex;
525
+ flex-direction: column;
526
+ /* flex:none — the explicit min-height below replaces flexbox's implicit min-height:auto floor,
527
+ which would otherwise let an overflowing list squash rows below their content (snippet rows
528
+ rendered as overlapping text). The list scrolls; rows never compress. */
529
+ flex: none;
530
+ gap: .2rem;
531
+ /* min-height, not height: a full-text result row grows for its snippet line. */
532
+ padding: .35rem .55rem;
533
+ min-height: var(--menu-row-h);
534
+ box-sizing: border-box;
535
+ justify-content: center;
536
+ border-radius: 6px;
537
+ cursor: pointer;
538
+ font-size: .85rem;
539
+ }
540
+ .picker-row-main { display: flex; gap: .6rem; align-items: baseline; }
541
+ .picker:focus { outline: none; } /* the list owns its own highlight; no focus ring */
542
+ .picker-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
543
+ /* Keyboard cursor (arrow keys / hover) — same borderless tint as the launcher's .server-row.active. */
544
+ .picker-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
545
+ /* The attached session — a leading accent dot in its own gutter slot, reserved (transparent) on
546
+ every row so titles align whether or not it's shown, and filled only on the attached row so it
547
+ reads as "you are here" even when the cursor has moved off. */
548
+ .picker-dot {
549
+ flex: none;
550
+ align-self: center;
551
+ width: 7px;
552
+ height: 7px;
553
+ border-radius: 50%;
554
+ background: transparent;
555
+ }
556
+ .picker-row.current .picker-dot { background: var(--accent); }
557
+ .picker-preview {
558
+ flex: 1; min-width: 0;
559
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
560
+ color: var(--fg);
561
+ }
562
+ .picker-time {
563
+ color: var(--muted);
564
+ font-size: .72rem;
565
+ min-width: 2.6rem; text-align: right;
566
+ }
567
+ /* Unread cue (TB-Agent-Mirror-Ready.md): the row's time turns the launcher's running-:port green
568
+ (--fold-marker) when the session changed since the mirror opened and hasn't been viewed. */
569
+ .picker-time.unseen { color: var(--fold-marker); }
570
+ .picker-hits { color: var(--muted); font-size: .72rem; white-space: nowrap; }
571
+ /* Full-text result context: first matching turn, indented past the dot gutter into the title column. */
572
+ .picker-snippet {
573
+ color: var(--muted);
574
+ font-size: .78rem;
575
+ line-height: 1.4;
576
+ margin-left: calc(7px + .6rem);
577
+ overflow-wrap: anywhere;
578
+ }
579
+ .picker-mark {
580
+ background: color-mix(in srgb, var(--accent) 30%, transparent);
581
+ border-radius: 2px;
582
+ color: var(--fg);
583
+ }
584
+ /* Hover-peek (TB-Agent-Mirror-Ready.md): the session's last output, overlaid over the TOP of the
585
+ list — not a floating card but part of the menu, opaque over the rows it covers and set off from
586
+ the rows below by one thick divider. Stops at the left edge of the time column (right), so the
587
+ elapsed column stays an uninterrupted strip. The list rests newest-at-bottom, so a top overlay
588
+ rarely sits on the row being hovered. Out of flow (no reflow); pointer-events:none. */
589
+ .picker-peek {
590
+ position: absolute;
591
+ top: 0; left: 0; right: 3.4rem;
592
+ z-index: 5;
593
+ max-height: 18em;
594
+ overflow: hidden;
595
+ padding: .5rem .6rem .6rem;
596
+ border-radius: 8px 8px 0 0; /* top rounded to match the menu; bottom square where it meets the rows */
597
+ /* One veil step over the opaque panel — the mirror's nested-panel shade (a hair off the menu bg,
598
+ still opaque over the rows it covers). */
599
+ background: linear-gradient(var(--veil), var(--veil)), var(--panel);
600
+ border-bottom: 3px solid color-mix(in srgb, var(--fg) 35%, transparent);
601
+ color: var(--fg);
602
+ font-size: .8rem; line-height: 1.5;
603
+ overflow-wrap: anywhere;
604
+ pointer-events: none;
605
+ }
606
+ .picker-peek.muted { color: var(--muted); font-style: italic; }
607
+
608
+ /* Agent switcher (TB-Agent-Switcher.md) — reuses the .picker popover + rows; just its own width and
609
+ the no-key entry form. The active model is marked with .picker-row.current (the accent dot), like
610
+ the attached session; the "active" tag rides .picker-time's muted right-aligned slot. */
611
+ .model-picker { width: min(380px, calc(100vw - 2rem)); }
612
+ .model-err { color: var(--danger, #f87171); font-size: .76rem; padding: .3rem .55rem; }
613
+ /* Key-entry form: the popover flips to this in place of the list when no key is set yet. */
614
+ .key-entry { gap: .5rem; padding: .7rem; }
615
+ .key-entry-head { font-size: .85rem; color: var(--fg); }
616
+ .key-entry .bulb-filter { width: 100%; }
617
+ .key-entry-acts { display: flex; gap: .4rem; justify-content: flex-end; }
618
+ .key-entry-note { font-size: .72rem; color: var(--muted); line-height: 1.4; }
619
+
620
+ /* Agent switcher watchdog (TB-Agent-Switcher.md). TWO tiers, both surfaced live while the menu is
621
+ closed: RED when an Anthropic model is riding the OpenRouter route (the $-per-turn Opus footgun), and
622
+ AMBER when the route served a turn uncached (the cache flip — a cost leak, pennies-scale, so quieter
623
+ than red so the red stays meaningful). The latch outranks the .on accent (equal specificity → source
624
+ order wins): coloured border + text, the bar's loudest states. */
625
+ .pill.danger, .pill.danger:hover { border-color: var(--err); color: var(--err); }
626
+ .pill.warn, .pill.warn:hover { border-color: var(--warn); color: var(--warn); }
627
+ /* The watchdog banner: rendered by Root just above the statusbar, anchored to the .app box. Centered,
628
+ capped width, opaque so it reads over the message text the strip lets through. Only present when a
629
+ tier is live, so it never costs layout in the common case. .danger is red + a glow ring (loud);
630
+ .warn is amber, no ring (a quieter cost cue). */
631
+ .model-banner {
632
+ position: absolute;
633
+ left: 0; right: 0; bottom: 2.6rem;
634
+ margin: 0 auto;
635
+ max-width: min(640px, calc(100vw - 2rem));
636
+ display: flex;
637
+ align-items: flex-start;
638
+ gap: .5rem;
639
+ padding: .55rem .75rem;
640
+ border-radius: 8px;
641
+ background: var(--bg);
642
+ color: var(--fg);
643
+ font-size: .8rem;
644
+ line-height: 1.4;
645
+ }
646
+ .model-banner.danger { border: 1px solid var(--err); box-shadow: 0 0 0 2px color-mix(in srgb, var(--err) 22%, transparent), 0 4px 14px rgba(0,0,0,.25); }
647
+ .model-banner.warn { border: 1px solid var(--warn); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
648
+ .model-banner-icon { flex: none; }
649
+ .model-banner-text { color: var(--fg); }
650
+ /* L2 predictor: a status line at the top of the model popover saying what the next send will bill.
651
+ Muted by default; red when the live model is the Anthropic-via-OpenRouter footgun. */
652
+ /* The model menu's top section: ONE row — the route headline (ellipsizing) + the reasoning dial pinned
653
+ right. Height is one model-row minus its own border, so the row + border + the popover gap to the list
654
+ equal one list-row pitch — the section subtracts a whole row, never a fraction, so no model is clipped
655
+ under the scroll. (Eyeball-tune the height; exact pixel math isn't worth it.) The headline carries only
656
+ what the user cares about; reroute/uncached mechanics live in its title, not on the line. */
657
+ .model-head {
658
+ display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex: none;
659
+ height: calc(var(--menu-row-h) - 1px); box-sizing: border-box;
660
+ /* left padding lines "More info" up with the model titles (row padding .55rem + dot 7px + gap .6rem);
661
+ right padding lines the dial up with the per-row "probe" column (row padding .55rem + list
662
+ padding-right 4px + scrollbar ~15px — the scrollbar is effectively always present, so it's accounted
663
+ for unconditionally; tweak the 15px by eye). */
664
+ padding: 0 calc(.55rem + 4px + 15px) 0 calc(.55rem + 7px + .6rem);
665
+ border-bottom: 1px solid var(--border);
666
+ font-size: .74rem; color: var(--muted);
667
+ }
668
+ /* The external-override warning is the one case that still puts words on this row. */
669
+ .model-route { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
670
+ .model-route.warn { color: var(--warn); }
671
+ /* "More info" — a quiet text link (not a pill); drills into the routing/reasoning explainer (diag chrome). */
672
+ .model-info-toggle {
673
+ appearance: none; background: none; border: 0; margin: 0; padding: 0;
674
+ font: inherit; font-size: .74rem; color: var(--accent); cursor: pointer; flex: none;
675
+ }
676
+ .model-info-toggle:hover { text-decoration: underline; }
677
+ /* The reasoning label sits a clear gap to the left of the dial; the pair hugs the right edge. */
678
+ .reasoning-ctl { display: flex; align-items: center; gap: .5rem; flex: none; }
679
+ .reasoning-label { flex: none; }
680
+
681
+ /* The reasoning dial — a Min/Low/Med/High native select styled as an accent pill (a full combobox is
682
+ over-powered for four fixed levels), pinned to the right of the headline so the dropdown is the row's
683
+ last element. */
684
+ .reasoning-select {
685
+ appearance: none; margin: 0; font: inherit; font-size: .72rem;
686
+ width: 4rem; /* match the probe button so the dial shares its column */
687
+ /* centred text (symmetric padding) so the label sits like the probe button's centred caption; the
688
+ chevron still rides the right padding zone. */
689
+ height: 1.5rem; padding: 0 1.1rem; text-align: center; text-align-last: center; border-radius: 999px;
690
+ border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
691
+ /* OPAQUE (mixed over --panel, not transparent) so the OPEN native option list matches the CLOSED
692
+ pill — a transparent fill left the open list on the browser's default bg, a jarring mismatch.
693
+ The option rows reuse the same --rs-bg so the two states are identical. */
694
+ --rs-bg: color-mix(in srgb, var(--accent) 14%, var(--panel));
695
+ background-color: var(--rs-bg);
696
+ color: var(--accent); cursor: pointer;
697
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%237aa2fa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
698
+ background-repeat: no-repeat; background-position: right .5rem center;
699
+ }
700
+ .reasoning-select option { background-color: var(--rs-bg); color: var(--fg); }
701
+ .reasoning-select:hover { border-color: var(--accent); }
702
+ .reasoning-select:focus { outline: none; border-color: var(--accent); }
703
+
704
+ /* The Anthropic brand glyph stands in for the word on the default pill (same square footprint as the
705
+ prose toggle). currentColor tracks the pill's muted→accent state; grayscale at rest like the monkey. */
706
+ .anthropic-glyph { display: block; }
707
+ .pill.glyph .anthropic-glyph { filter: grayscale(1); opacity: .8; }
708
+ .pill.glyph:hover .anthropic-glyph { filter: none; opacity: 1; }
709
+
710
+ .model-row .picker-row-main { align-items: center; }
711
+ /* Hold the shared --menu-row-h pitch (TB-Agent-Mirror.md: "rows must match pitch exactly or the
712
+ side-by-side menus read as two designs"). The trailing control is the tallest per-row element; like
713
+ the launcher's .server-row, trim the inherited .picker-row vertical padding so it stays under the
714
+ --menu-row-h floor and that floor — not the padded content — governs the row height. The highlight
715
+ still fills the full 29px (it paints the row box, not the padding). */
716
+ .model-row { padding-top: .05rem; padding-bottom: .05rem; }
717
+ /* The Anthropic (default) row is its own group below the OpenRouter models — it's the distinct "off the
718
+ proxy, back to your subscription" choice, not just another model. Marked with a subtle background wash
719
+ rather than a divider line: a line fought the rows' rounded corners + inset highlights (poking corners,
720
+ uneven gaps), whereas the wash inherits the row's own 6px radius, so it reads as a contained band that
721
+ sits naturally. Zero layout impact; lower specificity than :hover/.active, so the row still gives its
722
+ normal accent feedback on top. */
723
+ .model-default-row { background: color-mix(in srgb, var(--fg) 6%, transparent); }
724
+ /* Right-aligned trailing cluster: the green `active` marker (only on the current row) then the
725
+ fixed-width status control. The status control is rightmost + fixed width, so its column never moves
726
+ as rows probe — least musical chairs. */
727
+ .model-trailing { flex: none; display: flex; gap: .35rem; justify-content: flex-end; align-items: center; }
728
+ /* ONE button look AND width shared by every trailing pill — probe, probing, the measured status, and
729
+ the active marker — so they all line up and a transition only ever changes colour/text, never the
730
+ shape. The width is snug to the widest short label ("uncached"); the labels are kept terse precisely
731
+ so this stays tight rather than gutter-heavy. */
732
+ .model-btn {
733
+ appearance: none; margin: 0; font: inherit; font-size: .72rem;
734
+ width: 4rem; height: 1.5rem; padding: 0 .25rem; border-radius: 999px;
735
+ display: inline-flex; align-items: center; justify-content: center;
736
+ border: 1px solid var(--border); background: transparent; color: var(--muted);
737
+ white-space: nowrap; cursor: pointer;
738
+ }
739
+ .model-status.probe:hover { color: var(--accent); border-color: var(--accent); }
740
+ /* Measured states. cached = the blue accent (the positive "good route" cue); uncached/unavailable =
741
+ red (the states that bite on cost); cache-unconfirmed = neutral. All reuse existing theme colours. */
742
+ .model-status.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
743
+ .model-status.bad { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); background: color-mix(in srgb, var(--err) 12%, transparent); }
744
+ .model-status.warn { color: var(--muted); border-color: var(--border); }
745
+ .model-status.ok:hover, .model-status.bad:hover, .model-status.warn:hover { filter: brightness(1.12); text-decoration: underline; }
746
+ /* Same pill as every other state — only the text/colour change across probe → probing → result, never
747
+ the box. Non-interactive (cursor default); the accent-tinted border holds against the row's accent
748
+ hover tint, where the faint default --border washed out. */
749
+ .model-status.probing { color: var(--muted); border-color: color-mix(in srgb, var(--accent) 35%, transparent); cursor: default; }
750
+ /* The active marker — the lime/green live-axis colour (--fold-marker), matching the launcher's running
751
+ :port. A cue, not a control: no hover, default cursor. */
752
+ .model-active { color: var(--fold-marker); border-color: color-mix(in srgb, var(--fold-marker) 50%, transparent); background: color-mix(in srgb, var(--fold-marker) 12%, transparent); cursor: default; }
753
+ /* Don't double-mark the current row: the green `active` pill is the marker now, so drop the accent dot
754
+ fill (keep the gutter transparent for name alignment). */
755
+ .model-picker .picker-row.current .picker-dot { background: transparent; }
756
+
757
+ /* Drill-in surface — the probe diagnostics and the "More info" routing/reasoning explainer (the
758
+ launcher's logs analogue). Flips the whole popover; reuses the console head/back chrome. Held at the
759
+ FULL menu height (not content-sized) so drilling in from the list never resizes the popover — the body
760
+ fills and scrolls if the content is long, leaving quiet space if it's short. */
761
+ .model-picker.diag-mode { padding: 0; gap: 0; height: var(--menu-h); }
762
+ .model-picker.diag-mode .diag-body { flex: 1; min-height: 0; overflow-y: auto; }
763
+ .model-picker.diag-mode:focus { outline: none; }
764
+ .diag-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; background: var(--panel); border-bottom: 1px solid var(--border); }
765
+ .diag-head-acts { display: flex; gap: .4rem; align-items: center; flex: none; }
766
+ .diag-back:disabled { opacity: .5; cursor: default; }
767
+ .diag-name { min-width: 0; color: var(--fg); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
768
+ .diag-back { font: inherit; font-size: .76rem; appearance: none; margin: 0; padding: .15rem .5rem; border-radius: 5px; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; white-space: nowrap; }
769
+ .diag-back:hover { color: var(--accent); border-color: var(--accent); }
770
+ .diag-body { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; background: var(--bg); }
771
+ .diag-line { font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
772
+ /* Hanging-indent bullet under a lead-in line — wrapped lines align past the “• ”. */
773
+ .diag-bullet { padding-left: 1rem; text-indent: -0.55rem; }
774
+ .diag-line.ok { color: var(--diff-add); }
775
+ .diag-line.bad { color: var(--err); }
776
+ .diag-line.warn { color: var(--fg); }
777
+ .diag-line.muted { color: var(--muted); }
778
+ .diag-line.small { font-size: .72rem; }
779
+
780
+ /* Running-breakouts list — shares the popover chrome (.servers-pop above); its own dimensions +
781
+ per-row layout: the play/stop button + name read together on the left (▶/■ Title, name flex:1),
782
+ and the metadata/controls form a right-aligned cluster of fixed-width columns (logs · trust ·
783
+ time/port) that line up row-to-row — right-anchored, so the rightmost (time/port) always aligns and
784
+ the rest stack inward (logs and time/port share a width; trust is wider, to fit "restricted"). The
785
+ filter pins at the bottom and the list scrolls inside (see .bulb-list). */
786
+ .servers-pop { width: min(560px, calc(100vw - 2rem)); }
787
+ .server-row {
788
+ /* Subgrid: all rows share ONE set of column tracks (defined on .bulb-list). A per-row grid sizes
789
+ its columns independently — which is exactly what broke alignment (a stopped row with no
790
+ logs/port sized its tracks differently and its trust toggle drifted right). Spanning the parent's
791
+ tracks instead makes trust/logs/time line up row-to-row, while the parent's auto columns size to
792
+ the widest content so the cluster stays tight (no reserved min-width slack). Absent trust/logs
793
+ render an empty cell that still holds its column. */
794
+ display: grid;
795
+ grid-template-columns: subgrid;
796
+ grid-column: 1 / -1;
797
+ align-items: center;
798
+ /* Inset rounded highlight, matching the session picker. The background is the subgrid track area
799
+ (not bled out to the edge — that ran it under the scrollbar on the right while staying clear on
800
+ the left, an asymmetry). Text gets its breathing room inside the highlight via end-item margins
801
+ (.server-stop/.bulb-launch on the left, .server-port/.bulb-time on the right) rather than row
802
+ padding, which would shift the subgrid tracks and break alignment. */
803
+ padding: .05rem 0;
804
+ min-height: var(--menu-row-h);
805
+ border-radius: 6px;
806
+ font-size: .85rem;
807
+ }
808
+ .server-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
809
+ /* Keyboard-highlighted row (arrow-key cursor) — a touch stronger than hover so it stands out. */
810
+ .server-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
811
+ /* Breakout spotlight (bulbsPill.ts): the new bulb's row stays bright while the rest dim, until the
812
+ menu closes or that row is hovered. The transition eases the dim in and back out. */
813
+ .server-row { transition: opacity .3s ease; }
814
+ .server-row.dimmed { opacity: .3; }
815
+ .server-name {
816
+ flex: 1; min-width: 0;
817
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
818
+ color: var(--accent); text-decoration: none; cursor: pointer;
819
+ }
820
+ .server-name:hover { text-decoration: underline; }
821
+ /* Port links to the running server (localhost:<port>) — painted the bright fold-marker green
822
+ (lime in dark, deep green in light), not the name's blue accent: the :port sits at the row's
823
+ far right, away from the play button, so making it the most prominent thing in the row lets the
824
+ eye snap to it the moment a just-launched row lands. The green also distinguishes "open the live
825
+ app" (port) from "open the source" (the blue name), and echoes the fold-marker on collapsed bulbs. */
826
+ .server-port { color: var(--fold-marker); font-size: .76rem; font-variant-numeric: tabular-nums; text-decoration: none; text-align: right; margin-right: .4rem; }
827
+ a.server-port:hover { text-decoration: underline; }
828
+ /* Logs reads like a link (flips to this server's console), not a button. */
829
+ .server-logs { color: var(--muted); font-size: .76rem; text-decoration: none; cursor: pointer; margin-left: .5rem; }
830
+ .server-logs:hover, .server-logs.on { color: var(--accent); text-decoration: underline; }
831
+ /* Launcher filter box — pinned above the list; type to narrow (matches name + path). The control
832
+ wrapper pins to the top and anchors the clear (×) at the far right (position:relative + the
833
+ input's right padding reserves its room). */
834
+ .bulb-filter-control { position: relative; flex: none; margin-top: .35rem; }
835
+ .bulb-filter {
836
+ font: inherit;
837
+ font-size: .82rem;
838
+ width: 100%;
839
+ box-sizing: border-box;
840
+ padding: .35rem 1.7rem .35rem .5rem;
841
+ border-radius: 6px;
842
+ background: var(--bg);
843
+ border: 1px solid var(--border);
844
+ color: var(--fg);
845
+ }
846
+ .bulb-filter::placeholder { color: var(--muted); }
847
+ .bulb-filter:focus { outline: none; border-color: var(--accent); }
848
+ /* Clear (×) — only rendered when the filter is non-empty; wipes it and refocuses the box. */
849
+ .bulb-filter-clear {
850
+ position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
851
+ appearance: none; border: none; background: transparent; cursor: pointer;
852
+ color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 0 .3rem; border-radius: 4px;
853
+ }
854
+ .bulb-filter-clear:hover { color: var(--accent); }
855
+ /* Filter-mode toggle (full-text search) — inset at the input's right edge; the clear × shifts
856
+ inward beside it. Both comboboxes render it (SearchComboboxPill's modeToggle). */
857
+ .bulb-filter-control.has-trailing .bulb-filter { padding-right: 3.8rem; }
858
+ .bulb-filter-control.has-trailing .bulb-filter-clear { right: 2.5rem; }
859
+ .bulb-filter-mode {
860
+ /* Stretches flush to the input's top/right/bottom, inside its 1px border; the right corners
861
+ match the input's 6px radius so the latched fill reads as part of the box. */
862
+ position: absolute; right: 1px; top: 1px; bottom: 1px;
863
+ appearance: none; border: none; background: transparent; cursor: pointer;
864
+ font-size: .8rem; line-height: 1; padding: 0 .45rem;
865
+ border-radius: 0 5px 5px 0;
866
+ }
867
+ /* Same state cue as the prose pill's glyph: the emoji can't take currentColor, so it goes
868
+ grayscale at rest, color while hovered or on — filtered on the inner span, never the button. */
869
+ .bulb-filter-mode .glyph-img { filter: grayscale(1); opacity: .75; }
870
+ .bulb-filter-mode:hover .glyph-img, .bulb-filter-mode.on .glyph-img { filter: none; opacity: 1; }
871
+ /* Latched: a --panel fill — the popover's own surface, one step off the input's --bg. */
872
+ .bulb-filter-mode.on { background: var(--panel); }
873
+ /* Scrolls within the fixed-height popover so the filter stays put and the box never grows. */
874
+ /* The shared grid for the launcher rows: each .server-row is a subgrid spanning these tracks, so
875
+ columns line up row-to-row. auto cols size to their widest content (tight, no slack); 1fr is the
876
+ name. A small right padding keeps the selected-row highlight off the scrollbar. */
877
+ /* grid-auto-rows: max-content — the grid twin of .picker-row's flex:none: when the list overflows
878
+ the popover cap, plain auto rows compress to each row's min-height contribution, so a full-text
879
+ row's snippet line bleeds under the next row as overlapping text. max-content tracks never
880
+ compress; the list scrolls, rows keep their content height. */
881
+ /* overflow-y: scroll, not auto — the scrollbar channel is 15px of the row band's right inset, so a
882
+ list short enough not to scroll (a project with no bulbs of its own: one collapsed fold row) had
883
+ its rows run 15px nearer the edge than the filter box below them. Keeping the channel always
884
+ present makes that inset one number — the same "effectively always present" the model menu's
885
+ header padding already hardcodes. (scrollbar-gutter is the stated fix and is ignored here.) */
886
+ .bulb-list { display: grid; grid-template-columns: auto 1fr auto auto auto auto; grid-auto-rows: max-content; column-gap: .6rem; row-gap: .15rem; align-items: center; align-content: start; padding-right: 4px; flex: 1; min-height: 0; overflow-y: scroll; }
887
+ /* The scope column (TB-Batch.md Invariant 7): a seventh track heading the control cluster (before
888
+ trust — a launch scope is an execution concern, like a trust tier), present only while some row
889
+ carries a scope (bulbsPill.ts anyScope — rows emit a matching cell, spacer included). The B
890
+ affordance keeps it one --pill-h square. */
891
+ .bulb-list.has-scope { grid-template-columns: auto 1fr auto auto auto auto auto; }
892
+ /* A stopped bulb's name isn't a link (no running URL), so it stays plain foreground. */
893
+ .server-name.stopped { color: var(--fg); }
894
+ /* Downloaded-bulb rows (TB-Agent-Mirror.md): the user link — the folder/user slug (`samples`) in
895
+ the logs-link register — marks the category and opens the bulb's published page. A remote
896
+ (not-yet-downloaded) row's name is additionally muted and inert (no file to open), and its
897
+ time column stays empty (no mtime to show). */
898
+ .server-name.remote { cursor: default; }
899
+ .server-name.remote:hover { text-decoration: none; }
900
+ .sample-link { color: var(--muted); font-size: .76rem; text-decoration: none; cursor: pointer; flex: none; }
901
+ .sample-link:hover { color: var(--accent); text-decoration: underline; }
902
+ /* The batch affordance (bulbsPill.ts scopeCell, TB-Batch.md Invariant 7): one B glyph per row —
903
+ the row shows THAT a scope applies, the tooltip and click-menu name it. Dim = batches exist but
904
+ launch is unscoped; lit (.on) = play launches scoped (newest default) or running scoped.
905
+ Static (running) keeps the lit look without the hand cursor. */
906
+ /* Square (its one glyph has no text pill's width to earn) and otherwise typography-free: the shared
907
+ pill box, font and trim, so its B is the same size and sits on the same baseline as the trust
908
+ switch beside it. Its own font-family was the bug — a monospace cap is a different size from a
909
+ Segoe cap at one font-size, which reads as two badly-aligned widgets. */
910
+ .batch-b { font-size: var(--pill-font); color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 5px; width: var(--pill-h); height: var(--pill-h); padding: 0; cursor: pointer; }
911
+ .batch-b.on { color: var(--accent); border-color: var(--accent); }
912
+ .batch-b.static { cursor: default; }
913
+ /* The B's menu rides the composer popup register (.at-popup/.at-row/.dlg-catcher — one mini-menu
914
+ UI across the mirror). Only the positioning is local: fixed coords (inline style, measured from
915
+ the B at open) so the scrolling list can't clip it, sized to its content instead of the
916
+ composer's full-width anchor. */
917
+ .at-popup.batch-pop { position: fixed; left: auto; right: auto; bottom: auto; width: max-content; min-width: 7rem; margin-inline: 0; }
918
+ /* 'unscoped' is the escape hatch, not a batch — a divider + muted italic set it apart from the list. */
919
+ .batch-pop .at-row.unscoped { color: var(--muted); font-style: italic; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; margin-top: .15rem; padding-top: .4rem; }
920
+ /* A remote pull's visible failure (bulbsPill.ts pullErrors) — the sample-link register, error-tinted. */
921
+ .pull-error { color: var(--err); font-size: .76rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
922
+ /* The remote fold (bulbsPill.ts groupRow / fold-row): the header and the remote rows within share
923
+ one veil step over the menu's panel bg (the picker-peek shade) as ONE contiguous band — each
924
+ row's ::before bridges the grid row-gap up to the row above, junction corners square off, and
925
+ only the band's outer corners round (the header's top; the last row's bottom, via :has). The
926
+ accent label marks the header. Single-class selectors on purpose: .server-row:hover/.active
927
+ outrank them, so the highlight tints still win. */
928
+ .sample-group { cursor: pointer; color: var(--muted); }
929
+ .sample-group, .fold-row { background: linear-gradient(var(--veil), var(--veil)), var(--panel); }
930
+ .sample-group.open { border-radius: 6px 6px 0 0; }
931
+ .fold-row { position: relative; border-radius: 0; }
932
+ .fold-row::before {
933
+ content: ''; position: absolute; left: 0; right: 0; top: -.15rem; height: .15rem;
934
+ background: linear-gradient(var(--veil), var(--veil)), var(--panel);
935
+ }
936
+ .fold-row:not(:has(+ .fold-row)) { border-radius: 0 0 6px 6px; }
937
+ .sample-group-label { grid-column: 2 / -1; color: var(--accent); }
938
+ /* The 1fr name column: name + (in full-text mode) its hit count read together, the badge
939
+ right-aligned at the column's end by the name's flex:1 — the session row's preview/hits layout. */
940
+ .bulb-name-cell { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
941
+ /* Full-text snippet in the launcher: a second internal row of the row's subgrid, aligned under the
942
+ name column (the session picker indents past its dot gutter instead — override that margin). */
943
+ .bulb-list .picker-snippet { grid-column: 2 / -1; margin: 0 .4rem .2rem 0; }
944
+ .bulb-time { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; text-align: right; margin-right: .4rem; }
945
+ /* The row's chrome buttons share one reset; sizing + colour differ below. Play/stop are round icon
946
+ buttons (friendlier, space-economic) and stay flex — a replaced SVG mis-seats under the
947
+ word-pill trim, the .pill.glyph case; the trust switch is a word, so it seats via the shared
948
+ recipe. Logs is a link, not a button (see .server-logs above), so it's not in this group. */
949
+ .server-stop, .bulb-launch, .trust-toggle {
950
+ font: inherit; appearance: none; margin: 0; cursor: pointer; box-sizing: border-box;
951
+ background: transparent; border: 1px solid var(--border); border-radius: 5px;
952
+ height: 1.7rem;
953
+ }
954
+ /* Shorter than the icon buttons: a bordered text pill at full row height reads as cramped, where
955
+ the round play/stop icons are meant to fill it. The shared pill box + font, not a bespoke pair —
956
+ its own .76rem/1.45rem seated the word a full 1px below every statusbar pill, which is exactly how
957
+ this drifts (measured: a per-control size is a per-control seating). */
958
+ .trust-toggle { font-size: var(--pill-font); height: var(--pill-h); padding: 0 .5rem; color: var(--muted); justify-self: center; }
959
+ .trust-toggle:hover, .trust-toggle.on { color: var(--accent); border-color: var(--accent); }
960
+ /* .fold-caret shares only this geometry line (not the bordered-button rule above): the fold header's
961
+ caret rides an invisible play-button-sized box, so a samples-only list sizes the button column
962
+ exactly as a list with real buttons does, and the caret centres where the play glyphs do. */
963
+ .server-stop, .bulb-launch, .fold-caret { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; padding: 0; border-radius: 50%; margin-left: .4rem; }
964
+ .btn-icon { width: 16px; height: 16px; }
965
+ /* A stopped bulb's play button is dormant — the title is the primary launch target — so it's
966
+ hidden until the row is hovered or keyboard-selected. visibility (not display) reserves its slot,
967
+ so the name column doesn't shift when it appears. Painted the fold-marker green, matching the
968
+ :port link: green is the live-app axis (play to launch → :port to open it), distinct from the
969
+ blue source/name. The green even travels left→right as a bulb goes stopped→running. */
970
+ .bulb-launch { color: var(--fold-marker); visibility: hidden; }
971
+ /* No optical nudge on the play glyph, deliberately: Material's play_arrow already carries one (its
972
+ path spans 320→760 in a 0→960 frame — ~1px right at icon size, compensating a right triangle's
973
+ left-leaning mass). Our own translateX(1px) stacked a second correction and measured 2px right of
974
+ the button's centre. Any glyph that reads off-centre here is the frame's business, not the app's. */
975
+ .server-row:hover .bulb-launch, .server-row.active .bulb-launch { visibility: visible; }
976
+ .bulb-launch:hover { border-color: var(--fold-marker); background: color-mix(in srgb, var(--fold-marker) 12%, transparent); }
977
+ /* Launching: stays visible (hover-independent) and shimmers until the row flips to a stop button,
978
+ so the ~2s wait reads as "working" rather than a dead click. Transient — driven by the in-memory
979
+ launching set, never persisted. */
980
+ .bulb-launch.launching { visibility: visible; border-color: var(--fold-marker); }
981
+ .server-stop { color: var(--muted); }
982
+ .server-stop:hover { color: var(--err); border-color: var(--err); }
983
+ /* push/pull verbs (TB-Push-Pull.md, Mirror surface): borderless quiet icons in one cell —
984
+ frequency earns mutedness, so like the play button they're hover/keyboard-revealed
985
+ (visibility reserves the slot; columns never shift). Accent on hover marks the live control. */
986
+ .sync-cell { display: inline-flex; gap: .15rem; justify-self: center; }
987
+ .sync-btn {
988
+ font: inherit; appearance: none; margin: 0; padding: 0 .1rem; cursor: pointer;
989
+ background: transparent; border: none; color: var(--muted);
990
+ display: inline-flex; align-items: center; visibility: hidden;
991
+ }
992
+ .server-row:hover .sync-btn, .server-row.active .sync-btn { visibility: visible; }
993
+ .sync-btn:hover { color: var(--accent); }
994
+ /* In-flight: stays visible (hover-independent) and shimmers, same contract as .bulb-launch.launching;
995
+ the ✓ beat after success likewise holds its slot so the arrow's return doesn't shift columns. */
996
+ .sync-btn.busy, .sync-btn.done { visibility: visible; }
997
+ .sync-btn.done { color: var(--fold-marker); }
998
+ .btn-icon-sm { width: 13px; height: 13px; }
999
+ /* Elevation prompt (VS-Code-Workspace-Trust style) — a modal over the whole view, since a
1000
+ denied capability is worth interrupting for. Backdrop dims; the card holds the choice. */
1001
+ .trust-back {
1002
+ position: fixed; inset: 0; z-index: 50;
1003
+ background: rgba(0, 0, 0, .5);
1004
+ display: flex; align-items: center; justify-content: center;
1005
+ padding: 1rem;
1006
+ }
1007
+ .trust-modal {
1008
+ width: min(420px, 100%);
1009
+ background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
1010
+ box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
1011
+ padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem;
1012
+ }
1013
+ .trust-modal-h { font-size: 1rem; font-weight: 600; color: var(--fg); }
1014
+ .trust-modal-b { font-size: .85rem; color: var(--fg); line-height: 1.45; }
1015
+ .trust-modal-warn { font-size: .78rem; color: var(--muted); line-height: 1.4; }
1016
+ .trust-modal-acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .2rem; }
1017
+ .trust-no, .trust-yes {
1018
+ font: inherit; font-size: .82rem; appearance: none; margin: 0; cursor: pointer;
1019
+ padding: .35rem .8rem; border-radius: 7px; border: 1px solid var(--border); background: transparent; color: var(--fg);
1020
+ }
1021
+ .trust-no:hover { border-color: var(--fg); }
1022
+ .trust-yes {
1023
+ color: var(--accent);
1024
+ border-color: color-mix(in srgb, var(--accent) 55%, transparent);
1025
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
1026
+ }
1027
+ .trust-yes:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
1028
+ /* Drilled-in streaming console for one running server. It takes over the whole bulbs
1029
+ popover (the list flips to it; ← back flips home), so it's wider than the list and its
1030
+ body fills the popover's height. overflow:hidden lets the rounded popover border clip the
1031
+ square head/body; the body scrolls internally. */
1032
+ .servers-pop.log-mode {
1033
+ padding: 0;
1034
+ /* The one fixed-height surface: a console wants its full frame regardless of how little it has
1035
+ logged yet — a height that tracked the log would grow line by line. */
1036
+ height: var(--menu-h);
1037
+ }
1038
+ .servers-pop.log-mode:focus { outline: none; }
1039
+ .bulb-log-head {
1040
+ display: flex; align-items: center; justify-content: flex-end; gap: .5rem;
1041
+ padding: .3rem .5rem; background: var(--panel);
1042
+ border-bottom: 1px solid var(--border);
1043
+ }
1044
+ .bulb-log-back {
1045
+ font: inherit; font-size: .76rem; appearance: none; margin: 0;
1046
+ padding: .15rem .5rem; border-radius: 5px;
1047
+ background: transparent; border: 1px solid var(--border);
1048
+ color: var(--muted); cursor: pointer; white-space: nowrap;
1049
+ }
1050
+ .bulb-log-back:hover { color: var(--accent); border-color: var(--accent); }
1051
+ .bulb-log-name { min-width: 0; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1052
+ .bulb-log-body {
1053
+ flex: 1; min-height: 0;
1054
+ margin: 0; padding: .5rem .6rem;
1055
+ overflow: auto; /* top-anchored normal flow — output reads top→down */
1056
+ background: var(--bg);
1057
+ font: .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1058
+ color: var(--fg);
1059
+ }
1060
+ .bulb-log-text { white-space: pre-wrap; word-break: break-word; }
1061
+
1062
+ /* ── Git diff pill + menu (TB-Agent-Mirror.md): a `± N` chip (custom two-color glyph, icons.ts, +
1063
+ changed-file count) that exists only when the tree is dirty — presence is the signal, so the glyph
1064
+ keeps its red/green at rest (no grayscale: the chip can't be "idle", a clean tree removes it) and
1065
+ the accent border stays reserved for latched, like every pill. Picking a menu row swaps the
1066
+ transcript for a full-context unified diff. Flex like the square glyph pills (an svg mis-seats
1067
+ under the word-pill text-box trim), width freed for the count. ── */
1068
+ /* Three classes to out-specify .pill.glyph's fixed square (width: var(--pill-h); padding: 0) —
1069
+ this is the one glyph pill that carries content beside its icon, so its width must be free. */
1070
+ .pill.glyph.gitdiff-pill { width: auto; padding: 0 .45rem; gap: .3rem; }
1071
+ /* 2:3, the cropped viewBox's aspect — a square box would re-add the side margins. */
1072
+ .gitdiff-pill .icon { width: 8px; height: 12px; }
1073
+ .gitdiff-count { font-size: var(--pill-font); font-variant-numeric: tabular-nums; }
1074
+ .gitdiff-pop { width: min(480px, calc(100vw - 2rem)); }
1075
+ .gitdiff-list { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-height: 0; overflow-y: scroll; padding-right: 4px; }
1076
+ .gitdiff-row { display: flex; align-items: center; gap: .55rem; flex: none; min-height: var(--menu-row-h); padding: .05rem .45rem; border-radius: 6px; font-size: .85rem; cursor: pointer; }
1077
+ .gitdiff-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
1078
+ .gitdiff-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
1079
+ .gitdiff-row.viewing .gitdiff-path { color: var(--accent); }
1080
+ /* One status letter, VS Code's palette: modified/renamed amber, added/untracked green, deleted red. */
1081
+ .gitdiff-status { flex: none; width: 1rem; text-align: center; font: 600 .74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
1082
+ .gitdiff-status.s-M, .gitdiff-status.s-R { color: var(--warn); }
1083
+ .gitdiff-status.s-A, .gitdiff-status.s-U { color: var(--diff-add); }
1084
+ .gitdiff-status.s-D { color: var(--err); }
1085
+ .gitdiff-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1086
+ .gitdiff-counts { flex: none; display: inline-flex; gap: .35rem; font-size: .72rem; font-variant-numeric: tabular-nums; }
1087
+ .gitdiff-counts .count-add { color: var(--diff-add); }
1088
+ .gitdiff-counts .count-del { color: var(--err); }
1089
+ /* The pill's viewing form: the doc's identity in place of the icon+count — status letter, path,
1090
+ ±counts, × (the doc itself is chrome-free). Width capped so a deep path can't crowd the cluster;
1091
+ rtl clip keeps the path's tail — the filename — visible, full path in the title. */
1092
+ .pill.glyph.gitdiff-pill.viewing { max-width: min(30rem, 45vw); gap: .45rem; padding: 0 .35rem 0 .5rem; }
1093
+ /* Same text seating as the word pills (.pill's text-box note): .pill.glyph opts out of the trim
1094
+ (right for pure glyphs, low for letters), and the viewing form keeps flex for the path's
1095
+ ellipsis — so the trim rides each text item instead of the button. Flex items are block
1096
+ containers, so text-box applies; the × icon stays untrimmed (symmetric, flex-exact). */
1097
+ .gitdiff-pill.viewing :is(.gitdiff-status, .gitdiff-doc-path, .gitdiff-counts span) { text-box: trim-both cap alphabetic; }
1098
+ .gitdiff-doc-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; font-size: var(--pill-font); color: var(--accent); }
1099
+ .gitdiff-doc-path:hover { text-decoration: underline; }
1100
+ .gitdiff-close { flex: none; display: inline-flex; padding: 0 .15rem; color: var(--muted); }
1101
+ .gitdiff-close .icon { width: 10px; height: 10px; }
1102
+ .gitdiff-close:hover { color: var(--accent); }
1103
+ /* Doc open ⇒ the transcript-scoped pills hide: prose toggle, model switcher, session picker all act
1104
+ on the conversation, which isn't on screen (the token pill stays — its shimmer says the live diff
1105
+ may still grow). display only, never unmount — the model pill's superSelect must keep its mount. */
1106
+ .statusbar-actions.doc-open :is(.prose-pill, .model-wrap, .sid-wrap) { display: none; }
1107
+
1108
+ /* The diff doc — takes the transcript's slot in .chat (same flex geometry as .messages). Full-bleed
1109
+ like a code surface (no --content-max column: diff lines want the width); the body is the scroll
1110
+ surface, its bottom padding clearing the overlaid statusbar like .messages' does. The ± markers and
1111
+ red/green bands are the shared .udiff-* rules the tool cards use. */
1112
+ .diff-doc { flex: 1; min-height: 0; display: flex; flex-direction: column; outline: none; }
1113
+ .diff-doc-body {
1114
+ flex: 1; min-height: 0; overflow: auto;
1115
+ /* No scrollbar-gutter: the native bar is hidden (.oruler-host), so the 15px it used to reserve on
1116
+ each edge rides in the padding instead — same metrics, and the right one is the ruler's channel. */
1117
+ padding: .75rem calc(1.75rem + 15px) 2.5rem;
1118
+ font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1119
+ white-space: pre-wrap; word-break: break-word;
1120
+ }
1121
+ /* The scroller is the focusable element (it owns the paging keys), but a ring round a full-bleed pane
1122
+ is a box round the whole screen. Keyboard focus shows on the ruler's window instead — the thing the
1123
+ paging keys actually move, and a real indicator rather than none at all. */
1124
+ .diff-doc-body:focus { outline: none; }
1125
+ .diff-doc-body:focus-visible ~ .diff-ruler .oruler-win { background: color-mix(in srgb, var(--accent) 55%, transparent); }
1126
+ .diff-doc-empty, .diff-doc-trunc { color: var(--muted); padding: .4rem 0; }
1127
+ /* The wrong-cwd empty state (Root.#cwdHint): centered over the empty transcript. */
1128
+ .cwd-hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 2rem; color: var(--muted); font-size: .9rem; max-width: 40rem; margin-inline: auto; }
1129
+ .cwd-hint-head { font-weight: 600; color: var(--fg); }
1130
+ .cwd-hint-dir { color: var(--accent); }
1131
+ /* With token colors under them, the full-strength (24%) bands compete — red tokens on a red band
1132
+ turn to mud — so the doc view's bands drop to a tint: polarity is still carried per-line by the
1133
+ gutter ± glyphs and at file scale by the ruler. Scoped: the tool-card hunks keep 24%, where the
1134
+ unhighlighted band is the only signal. Del a touch stronger than add — red-leaning tokens
1135
+ camouflage against red tint more than anything does against green. */
1136
+ .diff-doc-body .udiff-add { background: color-mix(in srgb, var(--diff-add) 15%, transparent); }
1137
+ .diff-doc-body .udiff-del { background: color-mix(in srgb, var(--err) 18%, transparent); }
1138
+ /* The ruler's diff clothing — red/green per change run; it rides in the channel the body's right
1139
+ padding reserves, where the scrollbar it replaces used to be. Geometry, the window and the click
1140
+ are the shared widget's. The wrapper keeps it overlaid rather than scrolling with the body. */
1141
+ .diff-doc-scroll { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
1142
+ .diff-ruler { right: 4px; }
1143
+ .diff-ruler .oruler-mark.add { background: var(--diff-add); opacity: .8; }
1144
+ .diff-ruler .oruler-mark.del { background: var(--err); opacity: .8; }
1145
+ /* messages */
1146
+ .messages {
1147
+ flex: 1;
1148
+ overflow-y: auto;
1149
+ /* Reserve the scrollbar gutter on BOTH edges so the centred --content-max column stays on the
1150
+ true axis (window centre) whether or not a scrollbar is showing. Without this the scrollbar
1151
+ shrinks the column and shifts it ~half a scrollbar left of the composer/statusbar columns
1152
+ (which never scroll) — the misalignment between the prose and the composer's left edge. */
1153
+ scrollbar-gutter: stable both-edges;
1154
+ /* Content runs under the overlaid statusbar rather than stopping above it.
1155
+ Gutters are symmetric: the turn stripe is absolutely positioned, so it claims no layout
1156
+ width and the left gutter needs no extra room for it (see Invariants). The bottom is
1157
+ larger to clear the overlaid statusbar pills (~2.1rem:
1158
+ .4rem inset + 1.7rem pill) so the last line isn't hidden behind them. */
1159
+ padding: 1.25rem 1.75rem 2.5rem 1.75rem;
1160
+ display: flex;
1161
+ flex-direction: column;
1162
+ gap: 1rem;
1163
+ }
1164
+ .note {
1165
+ display: flex;
1166
+ align-items: baseline;
1167
+ gap: .5rem;
1168
+ color: var(--muted);
1169
+ font-size: .9rem;
1170
+ max-width: var(--content-max);
1171
+ width: 100%;
1172
+ margin: 0 auto;
1173
+ }
1174
+ /* Top-of-transcript wordmark + tagline (messageList.ts #masthead). Centred on the prose column,
1175
+ scrolls with the conversation. Both logos render; theme picks which shows. */
1176
+ .masthead {
1177
+ max-width: var(--content-max);
1178
+ width: 100%;
1179
+ margin: 0 auto .25rem auto;
1180
+ padding: .15rem 0;
1181
+ display: flex;
1182
+ flex-direction: column;
1183
+ align-items: flex-start;
1184
+ gap: .5rem;
1185
+ text-align: left;
1186
+ user-select: none;
1187
+ }
1188
+ .masthead-logo {
1189
+ width: 150px;
1190
+ max-width: 55%;
1191
+ height: auto;
1192
+ opacity: .92;
1193
+ }
1194
+ .masthead-tagline {
1195
+ color: var(--muted);
1196
+ font-size: .85rem;
1197
+ }
1198
+ /* Black wordmark on light, outline on dark. */
1199
+ .masthead-logo.dark { display: none; }
1200
+ html[data-theme="dark"] .masthead-logo.light { display: none; }
1201
+ html[data-theme="dark"] .masthead-logo.dark { display: block; }
1202
+ .bubble {
1203
+ position: relative;
1204
+ max-width: var(--content-max);
1205
+ width: 100%;
1206
+ margin: 0 auto;
1207
+ }
1208
+ .bubble.user {
1209
+ background: var(--veil);
1210
+ border: 1px solid var(--border);
1211
+ border-radius: 12px;
1212
+ padding: .7rem .9rem;
1213
+ }
1214
+ /* Consecutive tool-only bubbles sit tight via negative margin (flex `gap`
1215
+ can't be overridden per sibling pair). The adjacent-sibling selector leaves
1216
+ the first tools-only bubble's gap intact, preserving the turn boundary. */
1217
+ .bubble.tools-only + .bubble.tools-only { margin-top: -.9rem; }
1218
+
1219
+ /* Turn stripe — a 2px colored bar to the left of each bubble. All bubbles in
1220
+ one user→assistant turn share a color; the palette cycles through 5 so
1221
+ adjacent turns are visually distinct when scrolling. Sits outside the
1222
+ bubble's left edge in the messages container's padding gutter.
1223
+ By default top/bottom extend half a gap beyond the bubble so same-turn
1224
+ neighbours' stripes meet seamlessly across the 1rem flex gap. The two
1225
+ turn-boundary overrides below clip those extensions so a turn's stripe
1226
+ starts at the top of its user bubble and ends at the bottom of its last
1227
+ bubble — leaving the full 2rem inter-turn gap stripe-free as a separator.
1228
+ --border-w compensates the 1px padding-edge offset that user bubbles' border
1229
+ would otherwise introduce — without it, stripes alternate 1px inset between
1230
+ user/assistant rows. */
1231
+ .bubble { --border-w: 0px; }
1232
+ .bubble.user { --border-w: 1px; }
1233
+ .bubble::before {
1234
+ content: '';
1235
+ position: absolute;
1236
+ /* Offsets subtract --border-w: absolute positioning anchors to the
1237
+ padding-edge (inside the border), so a user bubble's 1px border would
1238
+ otherwise shave 1px off each stripe edge. */
1239
+ /* Stripe hugs the column (1rem into the left gutter); absolute, so it consumes no layout width —
1240
+ which is why the gutters can be symmetric (no asymmetric padding needed to "make room"), and
1241
+ thus why breakouts need no nudge. - var(--border-w): a user bubble's 1px border pushes the
1242
+ padding edge (the abs-pos anchor) 1px right, so without it that stripe sits 1px right of the
1243
+ assistant bubbles' — compensate. */
1244
+ left: calc(-1rem - var(--border-w));
1245
+ top: calc(-.5rem - var(--border-w));
1246
+ bottom: calc(-.5rem - var(--border-w));
1247
+ width: 1px;
1248
+ background: var(--turn-color, transparent);
1249
+ }
1250
+ /* Clip stripe at turn boundaries. A user bubble always starts a turn → no
1251
+ upward extension. A bubble followed by a user bubble is the last of its
1252
+ turn → no downward extension. Same for the very last bubble in the list
1253
+ (an in-flight turn whose last assistant message is the end of the stream).
1254
+ Same `0 - var(--border-w)` form as the default top/bottom so user bubbles'
1255
+ 1px border still aligns with the stripe edge. */
1256
+ .bubble.user::before { top: calc(0px - var(--border-w)); }
1257
+ .bubble:has(+ .bubble.user)::before,
1258
+ .bubble:last-child::before { bottom: calc(0px - var(--border-w)); }
1259
+ /* Extra gap before each new turn (user bubble preceded by anything). Combined
1260
+ with the container's 1rem gap → ~2rem visible between turns vs ~1rem within
1261
+ a turn. Doesn't fire on the very first bubble (no preceding sibling). */
1262
+ .bubble + .bubble.user { margin-top: 1rem; }
1263
+ .bubble.turn-0 { --turn-color: #4cb35a; } /* green */
1264
+ .bubble.turn-1 { --turn-color: #e89a3c; } /* amber */
1265
+ .bubble.turn-2 { --turn-color: #d36b9a; } /* pink */
1266
+ .bubble.turn-3 { --turn-color: #9970d6; } /* purple */
1267
+ .bubble.turn-4 { --turn-color: #3cb8b3; } /* teal */
1268
+
1269
+ /* rendered markdown */
1270
+ .md { word-break: break-word; }
1271
+ /* Markdown links (often many file:line citations per message) — restrained like
1272
+ the rest of the bulb's links: accent, no persistent underline, reveal it only
1273
+ on hover. Without this they'd carry the browser-default underline-on-every-one. */
1274
+ .md a { color: var(--accent); text-decoration: none; }
1275
+ .md a:hover { text-decoration: underline; }
1276
+ .md :first-child { margin-top: 0; }
1277
+ .md :last-child { margin-bottom: 0; }
1278
+ .md p { margin: .5rem 0; }
1279
+ /* Thematic break — also the divider between merged consecutive user sends (see applyUser): faint
1280
+ so the bubble still reads as one turn, but legible in both themes. Mixed off --fg (text contrast)
1281
+ rather than --border + opacity: --border is itself dim in dark mode, so dimming it again left the
1282
+ line invisible there — and the faintness is a property of the line's color, not the element. */
1283
+ .md hr {
1284
+ border: none;
1285
+ border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
1286
+ margin: .55rem 0;
1287
+ }
1288
+ .md pre {
1289
+ background: var(--veil);
1290
+ border: 1px solid var(--border);
1291
+ border-radius: 8px;
1292
+ padding: .7rem .85rem;
1293
+ overflow-x: auto;
1294
+ }
1295
+ /* A pasted image (server renders an <img> from a base64 block, see blockToMarkdown) is capped to the
1296
+ column and never blows the layout — height follows the width. */
1297
+ .md img { max-width: 100%; height: auto; border-radius: 6px; }
1298
+ /* Blockquote: left bar + faint tint + muted text — a quiet "quoted" callout. The bar
1299
+ is mixed toward --border so it stays distinct from the bright turn stripe in the
1300
+ gutter, and the tint is light enough not to read as a code/output panel. */
1301
+ .md blockquote {
1302
+ margin: .5rem 0;
1303
+ padding: .35rem .85rem;
1304
+ border-left: 3px solid var(--border);
1305
+ background: var(--veil);
1306
+ border-radius: 0 6px 6px 0;
1307
+ color: var(--muted);
1308
+ }
1309
+ .md blockquote :first-child { margin-top: 0; }
1310
+ .md blockquote :last-child { margin-bottom: 0; }
1311
+ .md code {
1312
+ font-family: ui-monospace, "SF Mono", Menlo, monospace;
1313
+ font-size: .88em;
1314
+ }
1315
+ .md :not(pre) > code {
1316
+ background: var(--veil);
1317
+ padding: .1em .35em;
1318
+ border-radius: 5px;
1319
+ }
1320
+ .md table { border-collapse: collapse; }
1321
+ .md th, .md td { border: 1px solid var(--border); padding: .3rem .55rem; }
1322
+ /* A faint header band breaks the grid's monotony and gives the table a head/body structure — tonal
1323
+ (`--veil`, the document-panel shade), never a hue, so it reads as structure not opinion and follows
1324
+ the host light/dark theme. As a panel the veil steps one shade above the table's container, so the
1325
+ header still reads when the table sits inside a bubble or callout. The header text stays `--fg`:
1326
+ weight + the fill carry it, a tint would be the opinionated bit. Left-align to the body cells. */
1327
+ .md th { background: var(--veil); font-weight: 600; text-align: left; }
1328
+ /* Disclosure (<details>/<summary>) from the safe-HTML allowlist (markdown.ts): a quiet --veil container,
1329
+ subtler than a code block — assistant prose sits directly on the page, so a fill stands out; keep it
1330
+ restrained and let the border define it. Summary is the clickable caret row (native marker), accent
1331
+ on hover like a link. */
1332
+ .md details {
1333
+ margin: .5rem 0;
1334
+ padding: .35rem .7rem;
1335
+ background: var(--veil);
1336
+ border: 1px solid var(--border);
1337
+ border-radius: 8px;
1338
+ }
1339
+ .md summary { cursor: pointer; font-weight: 600; }
1340
+ .md summary:hover { color: var(--accent); }
1341
+
1342
+ /* The full-lane breakout geometry, defined ONCE and shared by the two breakouts (the mermaid
1343
+ inline bulb and a spread bulb). `100%` in --lane-ml resolves against each user's own containing block
1344
+ (prose width) at point of use, so both centre on the column axis — which is the viewport centre,
1345
+ since the gutters are symmetric. One home so the geometry can't drift between the two (the bug
1346
+ that let an off-centre nudge survive in one rule after being removed from the other). */
1347
+ .md { --lane-w: calc(100vw - 2rem); --lane-ml: calc((100% - var(--lane-w)) / 2); }
1348
+
1349
+ /* Full-lane breakout — the mermaid embed (whole element) and a SPREAD bulb's iframe step out of
1350
+ the prose column to the transcript width so wide content gets room. Both use --lane-w/--lane-ml
1351
+ and extend symmetrically from the column, which is viewport-centred (symmetric gutters), so
1352
+ neither needs an off-centre nudge (see Invariants in Specs-Bulbs/Claude-Bulb/Claude-Bulb.md). A
1353
+ bulb's *wrapper* never breaks out — only its inner surface does — so the wrapper and its controls
1354
+ stay at prose-right. position + z-index:0 lift the box over the turn stripe it crosses; the
1355
+ mermaid SVG is transparent so a bg backs it, the bulb iframe is opaque so it occludes the stripe. */
1356
+ .md .mermaid {
1357
+ width: var(--lane-w);
1358
+ /* Vertical gap must be >= the box-shadow spread (1rem below): a smaller gap lets the bg ring
1359
+ paint over the half-line of prose above/below — the trap the opaque bulb inline bulb dodges by
1360
+ having no shadow, which the transparent mermaid can't. */
1361
+ margin: 1rem 0;
1362
+ margin-left: var(--lane-ml);
1363
+ margin-right: auto;
1364
+ position: relative;
1365
+ z-index: 0;
1366
+ background: var(--bg);
1367
+ }
1368
+
1369
+ /* Diagram specifics: scroll when wider than the lane; `safe center` centres one that fits and
1370
+ left-aligns one that overflows, so a wide flowchart scrolls from its start node. The SVG is
1371
+ transparent, so the turn stripe the breakout crosses shows through it — a bg box-shadow backs
1372
+ the diagram to occlude it (and clears the h-scrollbar edge). The bulb inline bulb is opaque (its
1373
+ iframe fills the box), so it occludes the stripe itself and gets NO shadow — a shadow there
1374
+ would paint its 1rem ring over the half-line of prose just above the inline bulb (the gap is .6rem). */
1375
+ .md .mermaid {
1376
+ overflow-x: auto;
1377
+ display: flex;
1378
+ justify-content: safe center;
1379
+ box-shadow: 0 0 0 1rem var(--bg);
1380
+ }
1381
+ /* flex-shrink:0: otherwise the SVG shrinks to the flex container and its viewBox
1382
+ scales it down — no overflow, no scrollbar. Natural width is what scrolls. */
1383
+ .md .mermaid svg { max-width: none; height: auto; flex: 0 0 auto; }
1384
+
1385
+ /* Raw ```svg``` embeds: no breakout — these are drawings (smiley, plot), not wide
1386
+ diagrams, so keep them in the prose column, centred and capped at its width. They
1387
+ share the `.embed` stripe-chop below (a drawing earns its own row like a bulb). */
1388
+ .md .svg-embed { justify-content: center; }
1389
+ .md .svg-embed svg { max-width: 100%; height: auto; }
1390
+
1391
+ /* Markdown tables: chop in-column (the `.embed` rule below) and `safe center` — a table that fits its
1392
+ box centres, and one that overflows falls back to left so it scrolls from its first column rather than
1393
+ clipping. Centring holds in both modes: a small in-column table sits centred in the prose column, a
1394
+ spread one centred in the lane. The scroll lives on the inner `.table-scroll`, not the `.embed`
1395
+ wrapper, so a horizontal scrollbar rides above the chop's bottom padding instead of flush against the
1396
+ next line (a scrollbar sits at its own container's bottom edge). It's the centred flex child, capped at
1397
+ the box so it shrinks-to-fit and scrolls only what overflows; `max-width:100%` + the overflow-induced
1398
+ 0 min-width let it shrink below the table's natural width. `spread` widens the wrapper to the lane (the
1399
+ mermaid geometry) for a table fitTableEmbeds found too wide for the column. The opaque `.embed`
1400
+ padding/z-index still occludes the turn stripe the spread crosses — no box-shadow needed. */
1401
+ .md .table-embed { justify-content: safe center; }
1402
+ .md .table-embed .table-scroll { overflow-x: auto; max-width: 100%; }
1403
+ /* max-content keeps the table at its natural (unwrapped) width so it overflows `.table-scroll` and earns
1404
+ a scrollbar, rather than wrapping its cells to fit — the bar is the point, and it now rides inside the
1405
+ chop padding. */
1406
+ /* Two ceilings work together so a prose-heavy table neither scrolls forever nor squashes to mush:
1407
+ - per-column (the cell `max-width` — in an auto-layout table every cell in a column shares one width,
1408
+ so a cell cap *is* a column cap): no single column hogs; long text wraps at a readable measure.
1409
+ - whole-table (`max-width: var(--lane-w)`): the table never grows past the lane, so when columns don't
1410
+ all fit, the browser's auto-layout *shares* the lane among them — wrapping each to its slice rather
1411
+ than scrolling. It only scrolls once even longest-word-only columns can't fit the lane (genuinely too
1412
+ many columns). `width: max-content` is still the *preferred* width, so a small table stays natural
1413
+ and a wide one spreads; the lane cap just bounds the worst case. The floor lever (a per-cell
1414
+ `min-width`) — turn squash into scroll past some readable minimum — is deliberately left off until a
1415
+ real table needs it. `word-break: normal` resets the global `.md { word-break: break-word }` (which
1416
+ behaves like overflow-wrap:anywhere): left inherited, that global lets the lane cap squeeze a column
1417
+ below its longest word and snap it mid-character ("status" → "statu·s"). Reset to word-boundary
1418
+ wrapping so each column floors at its longest whole word and a too-tight table scrolls instead of
1419
+ shattering text; a pathological no-space token (a long URL) then scrolls rather than breaking. */
1420
+ .md .table-embed table { margin: 0; width: max-content; max-width: var(--lane-w); }
1421
+ .md .table-embed th, .md .table-embed td { max-width: 40ch; word-break: normal; }
1422
+ .md .table-embed.spread {
1423
+ width: var(--lane-w);
1424
+ margin-left: var(--lane-ml);
1425
+ margin-right: auto;
1426
+ }
1427
+
1428
+ /* ````bulb```` inline bulbs: a sandboxed nested app. createBulbFrame owns the iframe (auto-height,
1429
+ borderless). No frame of our own — like the mermaid/svg embeds, it sits in the flow rather
1430
+ than in a box, so it reads as part of the transcript; the rounded clip just tidies the corners
1431
+ of a bulb that paints its own background. `fit` (default) keeps it in the prose column and
1432
+ caps its height (below); `spread` adds full-lane breakout + spacing from the shared rule above.
1433
+ position:relative anchors the controls overlay in BOTH modes (spread re-declares it for the
1434
+ z-index lift). .err is the compile-failure fallback; .bulb-err-strip is a runtime-error strip
1435
+ under a live inline bulb (both monospace, muted red). */
1436
+ /* The stripe-chop, shared by every opaque in-column visual artifact (the fit bulb and a raw
1437
+ `svg` — each opts in by carrying `.embed`). An opaque bg over position:relative + z-index:0
1438
+ paints above .bubble::before; a -1rem left extension reaches the stripe in the gutter without a
1439
+ full breakout (padding-left:1rem keeps the content in the prose column, and the box's right edge
1440
+ stays at prose-right, so a bulb's controls anchored there don't move). The vertical gap is opaque
1441
+ padding, not margin: it occludes the stripe top and bottom so the cut is flush with the prose (no
1442
+ stub in a transparent gap), symmetric above/below to separate the artifact from surrounding text.
1443
+ margin top/bottom are zeroed — and the abutting prose margins too (below) — so the gap butts the
1444
+ text. Mermaid is NOT on this path: it's transparent and breaks out, occluding via box-shadow.
1445
+ Per-artifact layout (flex direction, centring) lives on .bulb-inline / .svg-embed. */
1446
+ .md .embed {
1447
+ display: flex;
1448
+ position: relative;
1449
+ z-index: 0;
1450
+ background: var(--bg);
1451
+ margin: 0 0 0 -1rem;
1452
+ padding: 1.1rem 0 1.1rem 1rem;
1453
+ }
1454
+ /* A bulb stacks its controls/frame/code vertically; in spread mode the inner iframe's own
1455
+ breakout covers the stripe too (the wrapper still chops in column). */
1456
+ .md .bulb-inline { flex-direction: column; }
1457
+ /* Inline (default): cap the inline bulb's height so a tall bulb doesn't run away down the transcript.
1458
+ Past the cap the inline bulb scrolls internally (its own overflow, set by the host↔inline bulb protocol —
1459
+ the iframe element can't scroll its srcdoc from out here). spread removes the cap. */
1460
+ .md .bulb-inline.fit iframe { max-height: 80dvh; }
1461
+ /* The frame host is a layout-less wrapper (domeleon owns the node; we parent the live iframe into
1462
+ it once) — display:contents lifts the iframe to be a flex child of .bulb-inline, so the sizing and
1463
+ spread-breakout rules target it directly, exactly as when it was appended as a direct child. The
1464
+ code toggle hides it via .code-open rather than unmounting, so the bulb keeps its state. */
1465
+ .bulb-frame { display: contents; }
1466
+ .md .bulb-inline.code-open .bulb-frame { display: none; }
1467
+ /* Spread: the inner surface (live iframe, or the code view behind the toggle) breaks out to the
1468
+ lane while the wrapper stays in the prose column, so the controls hold at prose-right. Shares the
1469
+ --lane-* geometry; centred on the column axis so toggling spread doesn't shift a column-fitting
1470
+ bulb sideways. `width !important` beats createBulbFrame's inline width:100% on the iframe
1471
+ (harmless on the code view, which has none); both opaque, so position/z-index:0 lift them over
1472
+ the turn stripe they now cross. */
1473
+ .md .bulb-inline.spread iframe,
1474
+ .md .bulb-inline.spread > .bulb-code {
1475
+ width: var(--lane-w) !important;
1476
+ margin-left: var(--lane-ml);
1477
+ margin-right: auto;
1478
+ position: relative;
1479
+ z-index: 0;
1480
+ }
1481
+ /* Kill the transparent margin between an inline bulb and the prose it abuts (top and bottom):
1482
+ the inline bulb's own opaque padding is the gap, and a leftover prose margin would let the
1483
+ turn stripe show through it as a stub past the last/next line of text. */
1484
+ .md :has(+ .embed) { margin-bottom: 0; }
1485
+ .md .embed + * { margin-top: 0; }
1486
+ /* The rounded clip lives on the inner surfaces, not the inline bulb (whose padding is now the
1487
+ gap), so the bulb's own card — the iframe, or the code view behind the toggle — is
1488
+ what carries the corners. */
1489
+ .md .bulb-inline iframe,
1490
+ .md .bulb-inline > .bulb-code {
1491
+ border-radius: 8px;
1492
+ }
1493
+ /* Overlay pill: a small hover-revealed control floated at a container's
1494
+ bottom-right, shared by the inline bulb breakout button and the message copy button.
1495
+ Muted at rest, accent on hover (instant, matching the status pills). The
1496
+ container supplies the reveal; per-button bits layer on top. Box shape, colors
1497
+ and vertical centering come from the shared word-pill rule (.pill, .token,
1498
+ .overlay-pill) — only positioning, reveal and sizing quirks live here. */
1499
+ .overlay-pill {
1500
+ position: absolute;
1501
+ bottom: .5rem;
1502
+ right: 0; /* flush with the content column's right edge (prose / statusbar pills) */
1503
+ font: inherit;
1504
+ font-size: var(--pill-font);
1505
+ padding: 0 .45rem;
1506
+ /* Word buttons that swap labels in place (fit⇄spread, code⇄run, copy⇄copied), so a min-width
1507
+ keeps the button from jumping as the word's length changes — "fit" is much narrower than
1508
+ "spread". */
1509
+ min-width: 3.5rem;
1510
+ cursor: pointer;
1511
+ opacity: 0;
1512
+ transition: opacity .2s ease;
1513
+ }
1514
+ .overlay-pill:hover { color: var(--accent); border-color: var(--accent); }
1515
+
1516
+ /* Per-fence copy pill (code / svg / mermaid) — one reveal rule for every copyable block, since the
1517
+ fence rule stamps `.copyable` on each. The svg/mermaid containers are already position:relative for
1518
+ the chop/breakout; the code-block wrapper needs it for the absolute pill. The pill is positioned
1519
+ (absolute), so it paints over the static fence content regardless of DOM order. */
1520
+ .md .copyable { position: relative; }
1521
+ .md .copyable:hover .copy-src,
1522
+ .md .copy-src:focus-visible { opacity: 1; }
1523
+ .md .copy-src.done { color: var(--accent); border-color: var(--accent); }
1524
+ /* The wrapper carries the code block's vertical rhythm (it, not the <pre>, is the `.md` flow child
1525
+ now, so the first/last-child margin resets land on it); the <pre> sits flush inside. */
1526
+ .md .code-block { margin: .6rem 0; }
1527
+ .md .code-block pre { margin: 0; }
1528
+
1529
+ /* Controls (code ⇄ run, then copy, then breakout) — a centered overlay straddling the
1530
+ bulb's top edge: clear of the running bulb below, free to overlap the prose above.
1531
+ Absolute, so toggling run↔code (which resizes the bulb below) never moves it, and so
1532
+ the bulb's vertical gap stays small. Revealed on inline bulb-hover or focus; inside the row
1533
+ the shared .overlay-pill drops its own corner-anchoring. */
1534
+ .md .bulb-controls {
1535
+ position: absolute;
1536
+ top: 0;
1537
+ right: 0; /* flush with the content column's right edge (prose / statusbar pills) */
1538
+ z-index: 2;
1539
+ display: flex;
1540
+ gap: .4rem;
1541
+ transform: translateY(-50%);
1542
+ }
1543
+ .md .bulb-controls .overlay-pill { position: static; }
1544
+ .md .bulb-inline:hover .bulb-controls .overlay-pill,
1545
+ .md .bulb-controls .overlay-pill:focus-visible { opacity: 1; }
1546
+ .md .bulb-breakout:disabled { cursor: default; opacity: 1; }
1547
+ /* Breakout in flight: shimmers through the ~2s write+spawn wait so the click reads as "working"
1548
+ rather than dead — same treatment as the launcher's play button (.bulb-launch.launching).
1549
+ :disabled already keeps it visible if the pointer leaves. */
1550
+ .md .bulb-breakout.launching { color: var(--accent); border-color: var(--accent); }
1551
+ /* Copy pill "copied" flash — mirrors the message .copy.done accent cue, scoped to the
1552
+ inline bulb control so it doesn't pick up the bubble-hover reveal. */
1553
+ .md .bulb-copy.done { color: var(--accent); border-color: var(--accent); }
1554
+ /* Source view behind the toggle — the bulb's .bulb.md rendered as markdown (file
1555
+ labels + fenced code panels via the shared .md rules). Just a scroll container
1556
+ here, capped so a long bulb doesn't blow out the transcript. No `display` — the
1557
+ [hidden] attribute the toggle flips drives visibility. */
1558
+ /* Code view: a streamlined source listing — one labeled bar per file with the code
1559
+ flush beneath, not a stack of bordered panels. The container is just the scroll box;
1560
+ the file-label bar is the only fill (overriding .md pre's panel chrome below). */
1561
+ .md .bulb-code {
1562
+ margin: 0;
1563
+ padding: 0;
1564
+ max-height: 480px;
1565
+ overflow: auto;
1566
+ font-size: .85rem;
1567
+ /* A distinct surface from the transcript: the live bulb blends into the flow, but the
1568
+ code view reads as an inspector panel. Code panels (.md pre below) are transparent, so
1569
+ they show this through. */
1570
+ background: var(--tool-bg);
1571
+ }
1572
+ /* **file.ext** labels render as <p><strong>…</strong></p>; a bulb's source has no other
1573
+ top-level prose, so styling the paragraph as a header bar only ever hits a label. */
1574
+ .md .bulb-code p {
1575
+ margin: 0;
1576
+ padding: .3rem .85rem;
1577
+ /* A touch darker than the code surface so the file-label header stays distinct now
1578
+ that the whole code view shares one background. */
1579
+ background: color-mix(in srgb, var(--fg) 6%, var(--tool-bg));
1580
+ border-top: 1px solid var(--border);
1581
+ font-family: ui-monospace, "SF Mono", Menlo, monospace;
1582
+ font-size: .78rem;
1583
+ color: var(--muted);
1584
+ }
1585
+ .md .bulb-code p:first-child { border-top: none; }
1586
+ .md .bulb-code p strong { font-weight: 600; color: var(--fg); }
1587
+ /* Code flush on the inline bulb bg — drop the inherited .md pre box (border/bg/radius). */
1588
+ .md .bulb-code pre {
1589
+ margin: 0;
1590
+ padding: .5rem .85rem .85rem;
1591
+ border: none;
1592
+ border-radius: 0;
1593
+ background: transparent;
1594
+ overflow-x: auto;
1595
+ }
1596
+ /* hljs token colors for the code view AND the diff doc (one palette, or the same file reads as two
1597
+ languages across surfaces), mapped to the bulb's own theme vars (no hljs
1598
+ theme stylesheet) so highlighting follows light/dark rather than baking a palette
1599
+ that would clash in dark mode. Minimal token set — enough for legible TS/HTML/CSS/
1600
+ JSON/markdown without chasing every grammar scope. */
1601
+ .bulb-code .hljs-comment, .diff-doc-body .hljs-comment, .bulb-code .hljs-quote, .diff-doc-body .hljs-quote { color: var(--muted); font-style: italic; }
1602
+ .bulb-code .hljs-keyword, .diff-doc-body .hljs-keyword, .bulb-code .hljs-literal, .diff-doc-body .hljs-literal, .bulb-code .hljs-built_in, .diff-doc-body .hljs-built_in { color: var(--accent); }
1603
+ .bulb-code .hljs-tag, .diff-doc-body .hljs-tag, .bulb-code .hljs-name, .diff-doc-body .hljs-name, .bulb-code .hljs-selector-tag, .diff-doc-body .hljs-selector-tag { color: var(--accent); }
1604
+ .bulb-code .hljs-string, .diff-doc-body .hljs-string, .bulb-code .hljs-regexp, .diff-doc-body .hljs-regexp, .bulb-code .hljs-meta .hljs-string, .diff-doc-body .hljs-meta .hljs-string {
1605
+ color: color-mix(in srgb, var(--diff-add) 85%, var(--fg));
1606
+ }
1607
+ .bulb-code .hljs-number, .diff-doc-body .hljs-number { color: color-mix(in srgb, var(--accent) 55%, var(--fg)); }
1608
+ .bulb-code .hljs-attr, .diff-doc-body .hljs-attr, .bulb-code .hljs-attribute, .diff-doc-body .hljs-attribute, .bulb-code .hljs-property, .diff-doc-body .hljs-property, .bulb-code .hljs-type, .diff-doc-body .hljs-type {
1609
+ color: color-mix(in srgb, var(--accent) 75%, var(--fg));
1610
+ }
1611
+ .bulb-code .hljs-title, .diff-doc-body .hljs-title, .bulb-code .hljs-title.function_, .diff-doc-body .hljs-title.function_, .bulb-code .hljs-section, .diff-doc-body .hljs-section {
1612
+ color: var(--fg); font-weight: 600;
1613
+ }
1614
+ .bulb-code .hljs-symbol, .diff-doc-body .hljs-symbol, .bulb-code .hljs-bullet, .diff-doc-body .hljs-bullet, .bulb-code .hljs-punctuation, .diff-doc-body .hljs-punctuation { color: var(--muted); }
1615
+ /* Draft-streaming bulb card (#draftBulbCard): the code view wearing a progress header — never a
1616
+ live mount; the durable row's InlineBulb takes this slot when the entry lands. Cap tighter than
1617
+ .bulb-code's resting 480px: ambient progress, not reading material. */
1618
+ .md .bulb-streaming { flex-direction: column; }
1619
+ .md .bulb-streaming > .bulb-code { max-height: 220px; border-radius: 0 0 8px 8px; }
1620
+ .bulb-streaming-head {
1621
+ display: flex;
1622
+ align-items: baseline;
1623
+ gap: .45rem;
1624
+ padding: .3rem .85rem;
1625
+ border-radius: 8px 8px 0 0;
1626
+ /* A notch above the file-label bars inside the listing, so the header owns the card. */
1627
+ background: color-mix(in srgb, var(--fg) 10%, var(--tool-bg));
1628
+ font-size: .78rem;
1629
+ color: var(--muted);
1630
+ }
1631
+ .bulb-streaming-count { margin-left: auto; font-variant-numeric: tabular-nums; }
1632
+ .md .bulb-inline.err {
1633
+ padding: .6rem .8rem;
1634
+ font-family: ui-monospace, monospace;
1635
+ font-size: .85em;
1636
+ color: color-mix(in srgb, var(--err) 70%, var(--fg));
1637
+ white-space: pre-wrap;
1638
+ }
1639
+ .md .bulb-err-strip {
1640
+ padding: .45rem .7rem;
1641
+ border-top: 1px solid var(--border);
1642
+ background: color-mix(in srgb, var(--err) 8%, var(--bg));
1643
+ font-family: ui-monospace, monospace;
1644
+ font-size: .8em;
1645
+ color: color-mix(in srgb, var(--err) 75%, var(--fg));
1646
+ white-space: pre-wrap;
1647
+ }
1648
+
1649
+ /* Structural-defect strip (a malformed bulb that still rendered) — same shape as the error strip but
1650
+ amber: a warning, not a failure. */
1651
+ .md .bulb-warn-strip {
1652
+ padding: .45rem .7rem;
1653
+ border-top: 1px solid var(--border);
1654
+ background: color-mix(in srgb, rgb(200 140 30) 10%, var(--bg));
1655
+ font-family: ui-monospace, monospace;
1656
+ font-size: .8em;
1657
+ color: color-mix(in srgb, rgb(200 140 30) 80%, var(--fg));
1658
+ white-space: pre-wrap;
1659
+ }
1660
+
1661
+ /* tool calls */
1662
+ /* Closed tool: just a single-line row, no chrome — a tool-only turn stays a
1663
+ tight list, not N stacked panels. Open tools get the panel treatment below. */
1664
+ .tool {
1665
+ font-size: .85rem;
1666
+ }
1667
+ /* Row shape shared by tool heads and the collapsed-turn summary; only the latter is a click
1668
+ target (a tool's toggle is its digest row). */
1669
+ .tool-head, .turn-summary {
1670
+ display: flex;
1671
+ align-items: center;
1672
+ gap: .5rem;
1673
+ padding: .15rem 0;
1674
+ }
1675
+ .turn-summary {
1676
+ cursor: pointer;
1677
+ user-select: none;
1678
+ }
1679
+ /* The shared disclosure triangle (caret() in messageList.ts). flex:none so a squeezed row can't
1680
+ crush it; the digest row has no flex gap, so its spacing rides the marker. */
1681
+ .caret-tri { width: 10px; height: 10px; transition: transform .15s ease; }
1682
+ .caret-tri.open { transform: rotate(90deg); }
1683
+ .tool-digest .caret-tri { margin-right: .5rem; }
1684
+ /* Plain bold — an accent verb reads as a hyperlink; accent is reserved for the file-path link. */
1685
+ .tool-name { font-weight: 600; }
1686
+ /* Errors here are routine (a first-read miss the retry fixes), so a failed tool
1687
+ recolors just its verb rather than boxing the whole row — a quiet signal. */
1688
+ .tool.err .tool-name { color: var(--err); }
1689
+
1690
+ /* Collapsed-turn summary strip (intermediate steps hidden behind the final
1691
+ answer). Same caret/row shape as a tool head, italic muted label. */
1692
+ .turn-summary { color: var(--muted); font-size: .85rem; }
1693
+ .turn-summary-text { font-style: italic; }
1694
+ .fork-icon { width: 11px; height: 11px; vertical-align: -1px; margin-right: .15rem; }
1695
+ .turn-summary:hover .turn-summary-text { color: var(--fg); }
1696
+
1697
+ /* An expanded abandoned-branch (fork) stub renders its orphan messages here — set apart from the live
1698
+ transcript with a left rule and slight fade, signalling "this is not the active conversation"
1699
+ (TB-LostMessage.md). The stub header itself is a .turn-summary row above. */
1700
+ .fork-body {
1701
+ margin-top: .4rem;
1702
+ padding-left: .6rem;
1703
+ border-left: 2px solid color-mix(in srgb, var(--fg) 18%, transparent);
1704
+ opacity: .82;
1705
+ /* Same column geometry as .messages — the tools-only negative-margin rule assumes a 1rem gap. */
1706
+ display: flex;
1707
+ flex-direction: column;
1708
+ gap: 1rem;
1709
+ /* --turn-color is a custom property and INHERITS — the stub's own .bubble.turn-N sets it, so without
1710
+ this reset every nested orphan bubble inherits the parent turn's color and redraws the stripe
1711
+ (the recursive-line bug). Reset to transparent so .bubble::before falls back to no stripe here. */
1712
+ --turn-color: transparent;
1713
+ }
1714
+
1715
+ /* A superseded inline bulb (an earlier same-name version) folds to this "💡 <Name> — Version N" stub — it
1716
+ reclaims the bulb's full height. Marker-green text (--fold-marker: lime in dark, deep green in light)
1717
+ on a neutral gray fill (--panel) that hugs the text (width:max-content), no border: text-hugging and
1718
+ borderless keeps it distinct from the page's full-width bordered panels and clear of the live bulb's
1719
+ hover pills, and the colored title rides a gray pill rather than a green block. Its look never depends
1720
+ on outcome: errors show only inside the inline bulb when expanded, so the title never changes. Click to
1721
+ expand the older bulb (rerun fresh) back in. */
1722
+ .bulb-fold {
1723
+ display: flex;
1724
+ width: max-content;
1725
+ max-width: 100%;
1726
+ align-items: center;
1727
+ gap: .5rem;
1728
+ padding: .3rem .55rem;
1729
+ border-radius: 6px;
1730
+ background: var(--panel);
1731
+ color: var(--fold-marker);
1732
+ font-size: .9rem;
1733
+ font-weight: 600;
1734
+ cursor: pointer;
1735
+ user-select: none;
1736
+ }
1737
+ /* The fold is the sole child of its `.md` wrapper, so the `.md :first-child`/`:last-child` margin
1738
+ reset (above) would zero a plain `margin` here. Scope it under `.md` so it outweighs that reset
1739
+ (equal specificity, later in source) and the stub actually gets its breathing room. */
1740
+ .md .bulb-fold { margin: .7rem 0; }
1741
+ .bulb-fold:hover { background: color-mix(in srgb, var(--fg) 8%, var(--panel)); }
1742
+ /* Verb + summary are inline siblings sharing one line box and font, so they sit
1743
+ on a common baseline. Ellipsis truncation lives on the wrapper, not the
1744
+ children — overflow:hidden on the summary itself skews its baseline. */
1745
+ /* flex: 0 1 auto (not 1) so the pending '…' sits right after the label instead of at the row's
1746
+ far edge; the label shrinks with ellipsis when the row is tight. */
1747
+ .tool-label {
1748
+ flex: 0 1 auto;
1749
+ min-width: 0;
1750
+ white-space: nowrap;
1751
+ overflow: hidden;
1752
+ text-overflow: ellipsis;
1753
+ }
1754
+ .tool-sum {
1755
+ margin-left: .5rem;
1756
+ color: var(--muted);
1757
+ }
1758
+ .tool-run { color: var(--muted); }
1759
+
1760
+ /* The OUT line ("463 lines", the first stdout line): a tool's second row and its only toggle.
1761
+ Text stays selectable — a drag copies, a plain click toggles. */
1762
+ .tool-digest {
1763
+ padding: 0 0 .15rem .6rem;
1764
+ color: var(--muted);
1765
+ white-space: nowrap;
1766
+ overflow: hidden;
1767
+ text-overflow: ellipsis;
1768
+ cursor: pointer;
1769
+ user-select: text;
1770
+ }
1771
+ .tool-digest:hover { color: var(--fg); }
1772
+ /* Expanded = nothing readable hidden: the digest wraps to its full text (it may be the whole
1773
+ result — suppressed patch one-liners rely on this). */
1774
+ .tool-digest.open { white-space: normal; }
1775
+
1776
+ /* Expanded input/output card beneath the digest row — additive only, the rows above keep their
1777
+ collapsed look. First child sheds its top divider (nothing above it inside the card). */
1778
+ .tool-card {
1779
+ margin: .15rem 0 .55rem .6rem;
1780
+ background: var(--veil);
1781
+ border: 1px solid var(--border);
1782
+ border-radius: 8px;
1783
+ overflow: hidden;
1784
+ }
1785
+ .tool-card > :first-child, .tool-card > .diff:first-child > :first-child { border-top: none; }
1786
+
1787
+ /* TodoWrite checklist (CC's treatment: struck-through done, bold in-progress, plain pending). */
1788
+ .todo-list { padding: .45rem .7rem; display: grid; gap: .25rem; font-size: .85rem; }
1789
+ .todo { display: flex; gap: .5rem; align-items: baseline; }
1790
+ .todo-icon { flex: none; }
1791
+ .todo.completed .todo-icon { color: var(--diff-add); }
1792
+ .todo.completed .todo-text { text-decoration: line-through; color: var(--muted); }
1793
+ .todo.in_progress .todo-text { font-weight: 600; }
1794
+ .todo.in_progress .todo-icon { color: var(--accent); }
1795
+
1796
+ /* Code-display panels inside an open tool card: raw input/output (.tool-in,
1797
+ .tool-out) and per-hunk diff halves (.diff-old, .diff-new). All four share
1798
+ the same monospace block geometry — padding, max-height with scroll,
1799
+ pre-wrap with word-break, top-divider — so consolidating here means edits
1800
+ to "how a code panel looks" land in one place. Color treatment is the only
1801
+ per-variant difference. */
1802
+ .tool-in, .tool-out, .diff-old, .diff-new {
1803
+ margin: 0;
1804
+ padding: .55rem .7rem;
1805
+ border-top: 1px solid var(--border);
1806
+ white-space: pre-wrap;
1807
+ word-break: break-word;
1808
+ font-family: ui-monospace, Menlo, monospace;
1809
+ font-size: .8rem;
1810
+ max-height: 320px;
1811
+ overflow: auto;
1812
+ }
1813
+ .tool-out { color: var(--muted); }
1814
+ /* Structured input fields inside an open tool card (one row per input key), replacing the old raw
1815
+ JSON dump. The key is a muted inline label; the value keeps the shared mono geometry, flowing on
1816
+ the same line and wrapping/multi-lining as pre-wrap dictates. */
1817
+ .tool-field + .tool-field { margin-top: .5rem; }
1818
+ .tool-key { color: var(--muted); margin-right: .6rem; user-select: text; }
1819
+ .tool-val { display: inline; margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
1820
+ /* Line-banded unified-diff view (± lines only): the same add/remove band colors as
1821
+ .diff-new/.diff-old; a muted ⋯ row separates hunks. The ± marker is ::before content in a
1822
+ reserved gutter — visible (the non-color cue colorblind readers need) but outside the DOM
1823
+ text, so selection-copy grabs only the code. min-height keeps blank changed lines from
1824
+ collapsing now that they carry no marker char. */
1825
+ .udiff { white-space: pre-wrap; word-break: break-word; }
1826
+ .udiff-line { position: relative; padding: 0 .2rem 0 1.05rem; min-height: 1lh; }
1827
+ .udiff-line::before { position: absolute; left: .25rem; }
1828
+ .udiff-add::before { content: '+'; }
1829
+ .udiff-del::before { content: '-'; }
1830
+ .udiff-add { background: color-mix(in srgb, var(--diff-add) 24%, transparent); }
1831
+ .udiff-del { background: color-mix(in srgb, var(--err) 24%, transparent); }
1832
+ .udiff-gap { color: var(--muted); user-select: none; }
1833
+ /* The band carries the add/remove signal; text stays --fg so it's readable. Colouring the text the same
1834
+ hue as its fill (red-on-red) is what washes a diff out — the band alone is the convention. */
1835
+ .diff-old {
1836
+ background: color-mix(in srgb, var(--err) 24%, transparent);
1837
+ color: var(--fg);
1838
+ }
1839
+ .diff-new {
1840
+ background: color-mix(in srgb, var(--diff-add) 24%, transparent);
1841
+ color: var(--fg);
1842
+ }
1843
+
1844
+ /* Path link: plain accent, underline only on hover. skip-ink:none so the underline stays solid
1845
+ under a path's descenders and slashes; the cursor is explicit because the anchor carries no href
1846
+ (the click is a server RPC, not navigation) and so defaults to the surrounding prose's caret. */
1847
+ .tool-sum.link {
1848
+ color: var(--accent);
1849
+ text-decoration: none;
1850
+ cursor: pointer;
1851
+ }
1852
+ .tool-sum.link:hover { text-decoration: underline; text-decoration-skip-ink: none; }
1853
+
1854
+ .diff { display: flex; flex-direction: column; }
1855
+ .diff-step {
1856
+ padding: .35rem .7rem;
1857
+ border-top: 1px solid var(--border);
1858
+ color: var(--muted);
1859
+ font-size: .72rem;
1860
+ text-transform: uppercase;
1861
+ letter-spacing: .06em;
1862
+ }
1863
+
1864
+ .thinking { margin-bottom: .4rem; font-size: .82rem; color: var(--muted); }
1865
+ /* The <summary> toggle defaults to a text cursor — give it the pointer every other expandable uses. */
1866
+ .thinking summary { cursor: pointer; }
1867
+ .thinking pre { white-space: pre-wrap; }
1868
+ /* Streaming (draft) thinking: capped + scrollable at the bulb-streaming card's height — ambient
1869
+ progress, not reading material — stuck to the live edge unless the user scrolls up
1870
+ (#draftThinkingPre). Durable rows stay uncapped: finished thinking IS reading material. */
1871
+ .draft .thinking pre { max-height: 220px; overflow-y: auto; }
1872
+
1873
+ /* Copy button: an .overlay-pill revealed on bubble-hover. */
1874
+ .bubble:hover .copy { opacity: 1; }
1875
+ /* "copied" flash: eases into accent on click (CopyButton is a Component, so its
1876
+ node persists across re-renders and the transition actually runs). The color
1877
+ transition lives only on .done, not the base pill, so hover stays instant — the
1878
+ trade is the revert snaps back rather than easing out. */
1879
+ .copy.done {
1880
+ opacity: 1;
1881
+ color: var(--accent);
1882
+ border-color: var(--accent);
1883
+ transition: opacity .2s ease, color .5s ease, border-color .5s ease;
1884
+ }
1885
+ /* Assistant bubbles carry no padding, so the shared .5rem bottom would float the
1886
+ pill above the last line — pin it to the text's bottom edge. */
1887
1887
  .bubble.assistant .copy { bottom: 0; }