@adroit-app/chat-ui 0.0.0-stage → 0.1.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.
package/dist/styles.js ADDED
@@ -0,0 +1,2166 @@
1
+ import { css } from "lit";
2
+ /**
3
+ * The Chat's colours, drawn from Adroit Desktop's: Nightfox when dark,
4
+ * Catppuccin Latte when light. The light theme's quiet text and lines sit
5
+ * further from the ground than the desktop draws them, to stay readable.
6
+ */
7
+ const dark = css `
8
+ color-scheme: dark;
9
+ --ground: #131a24;
10
+ --panel: #192330;
11
+ --raised: #242d3a;
12
+ --select: #2f3843;
13
+ --line: #29323e;
14
+ --line-strong: #38404b;
15
+ --focus-line: #3d4550;
16
+ --focus-border: #4f5660;
17
+ --text: #cdcecf;
18
+ --text-2: #9b9ea2;
19
+ --text-3: #858a8f;
20
+ --text-4: #6a7078;
21
+ /* Thinking: near the quietest text, 3.7:1 on the ground. */
22
+ --thinking: #6e747c;
23
+ --wait: #dbc074;
24
+ --run: #719cd6;
25
+ --done: #81b29a;
26
+ --fail: #c94f6d;
27
+ --coord: #9d79d6;
28
+ --shell: #b364a2;
29
+ --wait-tint: rgba(219, 192, 116, 0.16);
30
+ --wait-tint-soft: rgba(219, 192, 116, 0.09);
31
+ --run-tint: rgba(113, 156, 214, 0.16);
32
+ --run-tint-soft: rgba(113, 156, 214, 0.08);
33
+ --fail-tint: rgba(201, 79, 109, 0.14);
34
+ --shadow: rgba(0, 0, 0, 0.45);
35
+ --tint-run: #29394e;
36
+ --tint-done: #2c3d43;
37
+ --tint-fail: #392b3b;
38
+ --tint-wait: #3c3f3c;
39
+ --tint-coord: #31324e;
40
+ `;
41
+ const light = css `
42
+ color-scheme: light;
43
+ --ground: #f6f7fb;
44
+ --panel: #eff1f5;
45
+ --raised: #e5e7ed;
46
+ --select: #dbdee4;
47
+ --line: #dbdee4;
48
+ --line-strong: #ced1d9;
49
+ --focus-line: #c5c7d1;
50
+ --focus-border: #b4b7c3;
51
+ --text: #4c4f69;
52
+ --text-2: #707388;
53
+ --text-3: #838699;
54
+ --text-4: #9ea0af;
55
+ /* Thinking: near the quietest text, 2.9:1 on the ground. */
56
+ --thinking: #8f92a4;
57
+ --wait: #df8e1d;
58
+ --run: #1e66f5;
59
+ --done: #40a02b;
60
+ --fail: #d20f39;
61
+ --coord: #ea76cb;
62
+ --shell: #de4382;
63
+ --wait-tint: rgba(223, 142, 29, 0.16);
64
+ --wait-tint-soft: rgba(223, 142, 29, 0.08);
65
+ --run-tint: rgba(30, 102, 245, 0.14);
66
+ --run-tint-soft: rgba(30, 102, 245, 0.06);
67
+ --fail-tint: rgba(210, 15, 57, 0.1);
68
+ --shadow: rgba(0, 0, 0, 0.08);
69
+ --tint-run: #c9d8f5;
70
+ --tint-done: #d0e2d1;
71
+ --tint-fail: #eac8d3;
72
+ --tint-wait: #ecdfce;
73
+ --tint-coord: #eedbed;
74
+ `;
75
+ export const tokens = css `
76
+ :host {
77
+ ${dark}
78
+ }
79
+ :host([theme="light"]) {
80
+ ${light}
81
+ }
82
+ @media (prefers-color-scheme: light) {
83
+ :host(:not([theme])) {
84
+ ${light}
85
+ }
86
+ }
87
+ :host {
88
+ /* Every length but a hairline is a multiple of this, so one number scales the Chat. */
89
+ --px: calc(var(--adroit-chat-font-scale, 1) * 1px);
90
+ --mono: "SF Mono", Menlo, ui-monospace, "Hiragino Kaku Gothic ProN", monospace;
91
+ --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI",
92
+ sans-serif;
93
+ }
94
+ `;
95
+ /** Arto's document colours, taken from the Chat's as the desktop takes them from its theme. */
96
+ export const documentTokens = css `
97
+ .chat .markdown-viewer[data-theme] {
98
+ --font-size-base: calc(14 * var(--px));
99
+ --bgColor-default: transparent;
100
+ --bgColor-muted: var(--raised);
101
+ --bgColor-neutral-muted: var(--select);
102
+ --bgColor-inset: var(--ground);
103
+ --fgColor-default: var(--text);
104
+ --fgColor-muted: var(--text-2);
105
+ --fgColor-accent: var(--run);
106
+ --fgColor-success: var(--done);
107
+ --fgColor-attention: var(--wait);
108
+ --fgColor-danger: var(--fail);
109
+ --fgColor-done: var(--coord);
110
+ --borderColor-default: var(--line-strong);
111
+ --borderColor-muted: var(--line);
112
+ --borderColor-accent-emphasis: var(--run);
113
+ --borderColor-success-emphasis: var(--done);
114
+ --borderColor-attention-emphasis: var(--wait);
115
+ --borderColor-danger-emphasis: var(--fail);
116
+ --borderColor-done-emphasis: var(--coord);
117
+ --bgColor-accent-muted: var(--tint-run);
118
+ --bgColor-success-muted: var(--tint-done);
119
+ --bgColor-attention-muted: var(--tint-wait);
120
+ --bgColor-danger-muted: var(--tint-fail);
121
+ --bgColor-done-muted: var(--tint-coord);
122
+ --prettylights-syntax-comment: var(--text-3);
123
+ --prettylights-syntax-keyword: var(--coord);
124
+ --prettylights-syntax-entity: var(--run);
125
+ --prettylights-syntax-entityTag: var(--done);
126
+ --prettylights-syntax-constant: var(--shell);
127
+ --prettylights-syntax-string: var(--done);
128
+ --prettylights-syntax-stringRegexp: var(--shell);
129
+ --prettylights-syntax-variable: var(--wait);
130
+ --prettylights-syntax-storageModifierImport: var(--text);
131
+ --prettylights-syntax-markup-heading: var(--run);
132
+ --prettylights-syntax-markup-list: var(--wait);
133
+ --prettylights-syntax-markup-bold: var(--text);
134
+ --prettylights-syntax-markup-italic: var(--text);
135
+ --prettylights-syntax-markup-inserted-text: var(--done);
136
+ --prettylights-syntax-markup-inserted-bg: var(--tint-done);
137
+ --prettylights-syntax-markup-deleted-text: var(--fail);
138
+ --prettylights-syntax-markup-deleted-bg: var(--tint-fail);
139
+ --prettylights-syntax-markup-changed-text: var(--wait);
140
+ --prettylights-syntax-markup-changed-bg: var(--tint-wait);
141
+ --pele-surface: var(--panel);
142
+ --pele-border: var(--text-3);
143
+ --pele-accent: var(--run);
144
+ }
145
+ /* Thinking: every colour its document draws text in is the thinking colour. */
146
+ .chat .thinking .markdown-viewer[data-theme] {
147
+ --fgColor-default: var(--thinking);
148
+ --fgColor-muted: var(--thinking);
149
+ --fgColor-accent: var(--thinking);
150
+ }
151
+ .chat .thinking .markdown-viewer .markdown-body,
152
+ .chat .thinking .markdown-viewer .markdown-body * {
153
+ color: var(--thinking);
154
+ }
155
+ .chat .markdown-viewer {
156
+ padding: 0;
157
+ margin: 0;
158
+ min-height: 0;
159
+ background: transparent;
160
+ }
161
+ .chat .markdown-viewer .markdown-body {
162
+ font-family: var(--sans);
163
+ font-size: calc(13.5 * var(--px));
164
+ line-height: 1.6;
165
+ max-width: none;
166
+ padding: 0;
167
+ margin: 0;
168
+ background: transparent;
169
+ color: var(--text);
170
+ }
171
+ .chat .markdown-body > :first-child {
172
+ margin-top: 0 !important;
173
+ }
174
+ .chat .markdown-body > :last-child {
175
+ margin-bottom: 0 !important;
176
+ }
177
+ /* A reply's code wraps its long lines rather than scrolling them, indentation kept. */
178
+ .chat .message .markdown-body pre,
179
+ .chat .message .markdown-body pre code {
180
+ white-space: pre-wrap;
181
+ overflow-wrap: anywhere;
182
+ }
183
+ .chat .markdown-body pre {
184
+ font-size: calc(12 * var(--px));
185
+ background: var(--panel);
186
+ border: 1px solid var(--line);
187
+ }
188
+ .chat .markdown-body code,
189
+ .chat .markdown-body pre {
190
+ font-family: var(--mono);
191
+ }
192
+ .chat .markdown-body table {
193
+ border-collapse: collapse;
194
+ border-spacing: 0;
195
+ }
196
+ /* An image the policy left out: where it would be, why it is not, and what would show it. */
197
+ .chat .markdown-body .image-left-out {
198
+ display: inline-flex;
199
+ flex-direction: column;
200
+ gap: calc(2 * var(--px));
201
+ max-width: 100%;
202
+ padding: calc(6 * var(--px)) calc(10 * var(--px));
203
+ border: 1px dashed var(--line-strong);
204
+ border-radius: calc(6 * var(--px));
205
+ vertical-align: middle;
206
+ }
207
+ .chat .markdown-body .image-left-out .alt {
208
+ color: var(--text-2);
209
+ font-style: italic;
210
+ }
211
+ .chat .markdown-body .image-left-out .alt::before {
212
+ content: "[image: ";
213
+ }
214
+ .chat .markdown-body .image-left-out .alt::after {
215
+ content: "]";
216
+ }
217
+ .chat .markdown-body .image-left-out .why {
218
+ color: var(--text-4);
219
+ font-size: calc(11 * var(--px));
220
+ }
221
+ `;
222
+ export const chatStyles = css `
223
+ :host {
224
+ display: block;
225
+ position: relative;
226
+ height: 100%;
227
+ min-height: 0;
228
+ contain: content;
229
+ }
230
+ * {
231
+ box-sizing: border-box;
232
+ scrollbar-width: thin;
233
+ scrollbar-color: var(--line-strong) transparent;
234
+ }
235
+ /* Thin, quiet scrollbars, brighter under the pointer (WebKit, as WKWebView draws them). */
236
+ ::-webkit-scrollbar {
237
+ width: calc(6 * var(--px));
238
+ height: calc(6 * var(--px));
239
+ }
240
+ ::-webkit-scrollbar-track,
241
+ ::-webkit-scrollbar-corner {
242
+ background: transparent;
243
+ }
244
+ ::-webkit-scrollbar-thumb {
245
+ background: var(--line-strong);
246
+ border-radius: calc(3 * var(--px));
247
+ }
248
+ ::-webkit-scrollbar-thumb:hover {
249
+ background: var(--text-4);
250
+ }
251
+ .icon {
252
+ display: inline-flex;
253
+ flex: none;
254
+ align-items: center;
255
+ justify-content: center;
256
+ }
257
+ .icon svg {
258
+ width: var(--icon, calc(14 * var(--px)));
259
+ height: var(--icon, calc(14 * var(--px)));
260
+ stroke-width: 1.75;
261
+ }
262
+ /*
263
+ * A row's chevron is centred on the row as a box of its own: left inline,
264
+ * its icon would sit on the text's baseline, above the middle of a line.
265
+ */
266
+ .chevron {
267
+ display: inline-flex;
268
+ flex: none;
269
+ align-items: center;
270
+ align-self: center;
271
+ }
272
+ button {
273
+ font: inherit;
274
+ color: inherit;
275
+ }
276
+ .chat {
277
+ height: 100%;
278
+ position: relative;
279
+ display: flex;
280
+ flex-direction: column;
281
+ background: var(--ground);
282
+ color: var(--text);
283
+ font-family: var(--sans);
284
+ font-size: calc(13 * var(--px));
285
+ line-height: 1.55;
286
+ }
287
+ /* A host's own input takes the composer's place, below the queue and the plan. */
288
+ ::slotted([slot="composer"]) {
289
+ flex: none;
290
+ }
291
+ /* Focused to take the keys, as focusTranscript() does; the view shows no ring. */
292
+ .parts:focus {
293
+ outline: none;
294
+ }
295
+
296
+ /* The session's name and how its last turn went. */
297
+ .head {
298
+ flex: none;
299
+ display: flex;
300
+ align-items: center;
301
+ gap: calc(10 * var(--px));
302
+ min-height: calc(34 * var(--px));
303
+ padding: 0 calc(16 * var(--px));
304
+ border-bottom: 1px solid var(--line);
305
+ font-size: calc(12 * var(--px));
306
+ color: var(--text-2);
307
+ user-select: none;
308
+ }
309
+ .head .title {
310
+ flex: 0 1 auto;
311
+ min-width: 0;
312
+ overflow: hidden;
313
+ text-overflow: ellipsis;
314
+ white-space: nowrap;
315
+ color: var(--text);
316
+ font-weight: 500;
317
+ }
318
+ button.title {
319
+ flex: 0 1 auto;
320
+ margin: 0 calc(-6 * var(--px));
321
+ padding: calc(3 * var(--px)) calc(6 * var(--px));
322
+ border: 0;
323
+ border-radius: calc(5 * var(--px));
324
+ background: transparent;
325
+ font: inherit;
326
+ font-weight: 500;
327
+ text-align: left;
328
+ cursor: text;
329
+ }
330
+ button.title:hover {
331
+ background: var(--raised);
332
+ }
333
+ button.title:focus-visible {
334
+ outline: calc(2 * var(--px)) solid var(--run);
335
+ }
336
+ .head .title-field {
337
+ flex: 1;
338
+ min-width: 0;
339
+ margin: 0 calc(-6 * var(--px));
340
+ padding: calc(3 * var(--px)) calc(6 * var(--px));
341
+ border: 1px solid var(--run);
342
+ border-radius: calc(5 * var(--px));
343
+ background: var(--panel);
344
+ color: var(--text);
345
+ font: inherit;
346
+ font-weight: 500;
347
+ outline: none;
348
+ }
349
+ .head .spacer-title {
350
+ flex: 1;
351
+ }
352
+ /* Which agent runs, and as what: the title keeps its room before it. */
353
+ .head .about {
354
+ flex: 0 100 auto;
355
+ min-width: 0;
356
+ overflow: hidden;
357
+ text-overflow: ellipsis;
358
+ white-space: nowrap;
359
+ font-size: calc(11.5 * var(--px));
360
+ color: var(--text-3);
361
+ }
362
+ .head .about > span + span::before {
363
+ content: "·";
364
+ margin: 0 calc(5 * var(--px));
365
+ color: var(--text-4);
366
+ }
367
+ .head .about .agent {
368
+ color: var(--text-2);
369
+ }
370
+ .head .meta {
371
+ flex: none;
372
+ font-family: var(--mono);
373
+ font-size: calc(11 * var(--px));
374
+ color: var(--text-3);
375
+ white-space: nowrap;
376
+ }
377
+ .head .ended {
378
+ flex: 0 1 auto;
379
+ min-width: 0;
380
+ max-width: 50%;
381
+ overflow: hidden;
382
+ text-overflow: ellipsis;
383
+ white-space: nowrap;
384
+ font-size: calc(11.5 * var(--px));
385
+ }
386
+ .head .ended.failed {
387
+ color: var(--fail);
388
+ }
389
+ .head .ended.cancelled {
390
+ color: var(--wait);
391
+ }
392
+ .head .ended.running {
393
+ color: var(--run);
394
+ }
395
+ .head .ended.blocked {
396
+ color: var(--wait);
397
+ }
398
+ .head .sep {
399
+ width: 1px;
400
+ height: calc(14 * var(--px));
401
+ background: var(--line-strong);
402
+ }
403
+
404
+ .parts-wrap {
405
+ position: relative;
406
+ flex: 1;
407
+ min-height: 0;
408
+ display: flex;
409
+ flex-direction: column;
410
+ }
411
+ .parts {
412
+ flex: 1;
413
+ min-height: 0;
414
+ overflow-y: auto;
415
+ padding: calc(12 * var(--px)) calc(20 * var(--px)) calc(20 * var(--px));
416
+ user-select: text;
417
+ cursor: auto;
418
+ }
419
+ .parts-inner {
420
+ display: flex;
421
+ flex-direction: column;
422
+ gap: calc(4 * var(--px));
423
+ }
424
+ .empty {
425
+ margin: auto;
426
+ padding: calc(48 * var(--px)) calc(24 * var(--px));
427
+ text-align: center;
428
+ color: var(--text-3);
429
+ display: flex;
430
+ flex-direction: column;
431
+ align-items: center;
432
+ gap: calc(8 * var(--px));
433
+ user-select: none;
434
+ }
435
+ .empty .icon {
436
+ color: var(--text-4);
437
+ }
438
+ .empty strong {
439
+ color: var(--text);
440
+ font-size: calc(15 * var(--px));
441
+ font-weight: 500;
442
+ }
443
+ .part {
444
+ position: relative;
445
+ padding: calc(2 * var(--px)) calc(10 * var(--px));
446
+ border-radius: calc(4 * var(--px));
447
+ }
448
+ .who {
449
+ display: flex;
450
+ align-items: center;
451
+ gap: calc(6 * var(--px));
452
+ font-size: calc(11 * var(--px));
453
+ font-weight: 600;
454
+ color: var(--text-3);
455
+ letter-spacing: 0.02em;
456
+ user-select: none;
457
+ }
458
+
459
+ /* Where output came in while the transcript was read further up. */
460
+ .part[data-new-from] {
461
+ margin-top: calc(26 * var(--px));
462
+ }
463
+ .part[data-new-from]::before {
464
+ content: "";
465
+ position: absolute;
466
+ left: 0;
467
+ right: 0;
468
+ top: calc(-9 * var(--px));
469
+ border-top: 1px solid var(--fail);
470
+ }
471
+ .part[data-new-from]::after {
472
+ content: "New";
473
+ position: absolute;
474
+ right: 0;
475
+ top: calc(-24 * var(--px));
476
+ color: var(--fail);
477
+ font-size: calc(10 * var(--px));
478
+ font-weight: 600;
479
+ line-height: calc(12 * var(--px));
480
+ user-select: none;
481
+ }
482
+ .jump-latest {
483
+ position: absolute;
484
+ left: 50%;
485
+ bottom: calc(12 * var(--px));
486
+ transform: translate(-50%, calc(8 * var(--px)));
487
+ opacity: 0;
488
+ pointer-events: none;
489
+ display: flex;
490
+ align-items: center;
491
+ gap: calc(6 * var(--px));
492
+ padding: calc(3 * var(--px)) calc(12 * var(--px)) calc(3 * var(--px)) calc(10 * var(--px));
493
+ border: 1px solid var(--line-strong);
494
+ border-radius: 999px;
495
+ background: var(--raised);
496
+ color: var(--text);
497
+ font-size: calc(12 * var(--px));
498
+ box-shadow: 0 calc(2 * var(--px)) calc(8 * var(--px)) var(--shadow);
499
+ cursor: pointer;
500
+ transition:
501
+ opacity 0.15s,
502
+ transform 0.15s;
503
+ }
504
+ .jump-latest.on {
505
+ opacity: 1;
506
+ pointer-events: auto;
507
+ transform: translate(-50%, 0);
508
+ }
509
+
510
+ /* The user's words: where one exchange ends and the next begins. */
511
+ .message.user {
512
+ margin-top: calc(18 * var(--px));
513
+ padding: calc(8 * var(--px)) calc(12 * var(--px));
514
+ background: var(--run-tint-soft);
515
+ border: 1px solid var(--line);
516
+ border-left: calc(3 * var(--px)) solid var(--run);
517
+ }
518
+ .message.user .who {
519
+ color: var(--run);
520
+ margin-bottom: calc(2 * var(--px));
521
+ }
522
+ .parts-inner > .message.user:first-child,
523
+ .parts-inner > .turn:first-child + .message.user {
524
+ margin-top: 0;
525
+ }
526
+ /*
527
+ * What the user wrote keeps its line breaks: Markdown joins a single
528
+ * newline into the line before, which is not what a prompt means.
529
+ */
530
+ .message.user .markdown-body :is(p, li, td, th) {
531
+ white-space: pre-line;
532
+ }
533
+ .message.user .sending-mark {
534
+ margin-left: calc(8 * var(--px));
535
+ color: var(--text-3);
536
+ font-weight: normal;
537
+ }
538
+ .message.from-parent {
539
+ border-left-color: var(--coord);
540
+ background: transparent;
541
+ margin-top: 0;
542
+ }
543
+ .message.from-parent .who {
544
+ color: var(--coord);
545
+ }
546
+
547
+ /* The agent's words: what the transcript is read for. */
548
+ .message.agent {
549
+ padding-top: calc(8 * var(--px));
550
+ padding-bottom: calc(8 * var(--px));
551
+ }
552
+ .message.agent .markdown-viewer .markdown-body {
553
+ font-size: calc(14 * var(--px));
554
+ line-height: 1.65;
555
+ }
556
+ .attachments {
557
+ display: flex;
558
+ flex-wrap: wrap;
559
+ gap: calc(6 * var(--px));
560
+ margin-top: calc(6 * var(--px));
561
+ }
562
+ /* An image in the transcript: a thumbnail that opens on its own. */
563
+ .image-thumb {
564
+ display: inline-flex;
565
+ padding: 0;
566
+ border: 1px solid var(--line);
567
+ border-radius: calc(6 * var(--px));
568
+ background: var(--panel);
569
+ overflow: hidden;
570
+ cursor: zoom-in;
571
+ }
572
+ .image-thumb:hover {
573
+ border-color: var(--focus-border);
574
+ }
575
+ /* An svg block: its image, or its code, with a switch where the copy button sits. */
576
+ .svg-block {
577
+ position: relative;
578
+ margin-bottom: calc(16 * var(--px));
579
+ }
580
+ .svg-block > pre {
581
+ margin-bottom: 0;
582
+ }
583
+ .svg-block[data-svg-view="image"] > pre,
584
+ .svg-block[data-svg-view="code"] > .svg-image,
585
+ .svg-block[data-svg-view="image"] .to-image,
586
+ .svg-block[data-svg-view="code"] .to-code {
587
+ display: none;
588
+ }
589
+ .svg-block > .svg-image {
590
+ display: block;
591
+ max-width: 100%;
592
+ height: auto;
593
+ }
594
+ .svg-toggle {
595
+ position: absolute;
596
+ z-index: 1;
597
+ top: calc(8 * var(--px));
598
+ right: calc(8 * var(--px));
599
+ padding: calc(4 * var(--px)) calc(8 * var(--px));
600
+ border: 0;
601
+ border-radius: calc(6 * var(--px));
602
+ background-color: var(--copy-button-bg);
603
+ color: var(--copy-button-fg);
604
+ font-size: calc(11 * var(--px));
605
+ line-height: 1;
606
+ cursor: pointer;
607
+ opacity: 0;
608
+ transition: opacity 0.12s;
609
+ }
610
+ /* Beside the code's copy button, not over it. */
611
+ .svg-block[data-svg-view="code"] > .svg-toggle {
612
+ right: calc(48 * var(--px));
613
+ }
614
+ .svg-block:hover > .svg-toggle,
615
+ .svg-toggle:focus-visible {
616
+ opacity: 1;
617
+ }
618
+ .svg-toggle:hover {
619
+ background-color: var(--copy-button-hover-bg);
620
+ }
621
+ /* An image or a diagram in Markdown opens on its own, as a thumbnail does. */
622
+ .markdown-body img,
623
+ .markdown-body pre.preprocessed-mermaid > svg {
624
+ cursor: zoom-in;
625
+ }
626
+ .image-thumb img {
627
+ display: block;
628
+ max-width: calc(240 * var(--px));
629
+ max-height: calc(160 * var(--px));
630
+ object-fit: contain;
631
+ }
632
+ .tool-images {
633
+ margin: calc(6 * var(--px)) 0;
634
+ }
635
+ .attachments .link {
636
+ padding: 0 calc(6 * var(--px));
637
+ border: 1px solid var(--line-strong);
638
+ border-radius: calc(4 * var(--px));
639
+ font-family: var(--mono);
640
+ font-size: calc(11 * var(--px));
641
+ color: var(--text-2);
642
+ }
643
+ .streaming {
644
+ display: inline-block;
645
+ width: calc(7 * var(--px));
646
+ height: calc(14 * var(--px));
647
+ margin-left: calc(2 * var(--px));
648
+ vertical-align: text-bottom;
649
+ background: var(--run);
650
+ animation: blink 1s steps(2, start) infinite;
651
+ }
652
+
653
+ /* Thinking: shown, quieter than what the agent says. */
654
+ .thinking {
655
+ margin: calc(2 * var(--px)) 0;
656
+ }
657
+ .thinking-head {
658
+ display: flex;
659
+ align-items: center;
660
+ gap: calc(4 * var(--px));
661
+ padding: 0;
662
+ border: 0;
663
+ background: transparent;
664
+ font-size: calc(10.5 * var(--px));
665
+ color: var(--text-4);
666
+ cursor: pointer;
667
+ user-select: none;
668
+ }
669
+ .thinking-head:hover {
670
+ color: var(--text-3);
671
+ }
672
+ .thinking-head .chevron {
673
+ transition: transform 0.12s;
674
+ }
675
+ .thinking.open .thinking-head .chevron {
676
+ transform: rotate(90deg);
677
+ }
678
+ .thinking .markdown-viewer .markdown-body {
679
+ font-size: calc(12 * var(--px));
680
+ font-style: italic;
681
+ }
682
+
683
+ /* A tool call: one line saying what it does, opened into a box holding the rest. */
684
+ .tool {
685
+ padding-top: 1px;
686
+ padding-bottom: 1px;
687
+ font-size: calc(12 * var(--px));
688
+ }
689
+ /*
690
+ * Every row of the transcript shares one grid: a status column, an icon
691
+ * column, then its text in the UI's font (code only where it is code).
692
+ */
693
+ .row,
694
+ .thinking-head {
695
+ display: flex;
696
+ align-items: center;
697
+ gap: calc(6 * var(--px));
698
+ min-width: 0;
699
+ font-family: var(--sans);
700
+ font-size: calc(12 * var(--px));
701
+ color: var(--text-3);
702
+ }
703
+ /* A row is a part of its own, its text where a tool row's summary puts it. */
704
+ .part.row {
705
+ padding: 1px calc(10 * var(--px));
706
+ }
707
+ .thinking-head {
708
+ padding: 1px calc(4 * var(--px));
709
+ margin: 0 calc(-4 * var(--px));
710
+ }
711
+ .tool .status,
712
+ .tool .kind,
713
+ .row .status,
714
+ .row .kind,
715
+ .thinking-head .status,
716
+ .thinking-head .kind {
717
+ flex: none;
718
+ display: inline-flex;
719
+ justify-content: center;
720
+ width: calc(16 * var(--px));
721
+ }
722
+ .row .kind,
723
+ .thinking-head .kind {
724
+ color: var(--text-4);
725
+ }
726
+ .row .title {
727
+ min-width: 0;
728
+ overflow: hidden;
729
+ text-overflow: ellipsis;
730
+ white-space: nowrap;
731
+ }
732
+ .row.quiet {
733
+ font-family: var(--sans);
734
+ font-size: calc(12 * var(--px));
735
+ gap: calc(6 * var(--px));
736
+ color: var(--text-4);
737
+ }
738
+ .tool .duration {
739
+ flex: none;
740
+ margin-left: auto;
741
+ min-width: 4.5ch;
742
+ text-align: right;
743
+ font-size: calc(11 * var(--px));
744
+ font-variant-numeric: tabular-nums;
745
+ color: var(--text-4);
746
+ }
747
+ .tool > summary {
748
+ display: flex;
749
+ align-items: center;
750
+ gap: calc(6 * var(--px));
751
+ min-width: 0;
752
+ padding: 1px calc(4 * var(--px));
753
+ margin: 0 calc(-4 * var(--px));
754
+ color: var(--text-3);
755
+ cursor: pointer;
756
+ list-style: none;
757
+ border-radius: calc(4 * var(--px));
758
+ user-select: none;
759
+ }
760
+ .tool > summary::-webkit-details-marker {
761
+ display: none;
762
+ }
763
+ .tool > summary:hover {
764
+ background: var(--raised);
765
+ }
766
+ .tool .status {
767
+ color: var(--done);
768
+ }
769
+ .tool.running .status {
770
+ color: var(--run);
771
+ }
772
+ .tool.running .status svg {
773
+ animation: spin 1s linear infinite;
774
+ }
775
+ .tool.failed .status,
776
+ .tool.failed .title {
777
+ color: var(--fail);
778
+ }
779
+ .tool.cancelled .status {
780
+ color: var(--wait);
781
+ }
782
+ .tool .kind,
783
+ .tool .chevron {
784
+ color: var(--text-4);
785
+ }
786
+ .tool .chevron {
787
+ transition: transform 0.12s;
788
+ }
789
+ .tool[open] > summary .chevron {
790
+ transform: rotate(90deg);
791
+ }
792
+ .tool .title {
793
+ flex: none;
794
+ max-width: 60%;
795
+ overflow: hidden;
796
+ text-overflow: ellipsis;
797
+ white-space: nowrap;
798
+ color: var(--text-2);
799
+ }
800
+ .tool .title code,
801
+ .ask .title code {
802
+ font-family: var(--mono);
803
+ font-size: calc(11.5 * var(--px));
804
+ color: var(--coord);
805
+ }
806
+ .tool .told {
807
+ flex: 1;
808
+ min-width: 0;
809
+ font-family: var(--mono);
810
+ font-size: calc(11 * var(--px));
811
+ color: var(--text-4);
812
+ overflow: hidden;
813
+ text-overflow: ellipsis;
814
+ white-space: nowrap;
815
+ }
816
+ .tool .note {
817
+ flex: 1;
818
+ min-width: 0;
819
+ font-size: calc(12 * var(--px));
820
+ color: var(--text-3);
821
+ overflow: hidden;
822
+ text-overflow: ellipsis;
823
+ white-space: nowrap;
824
+ }
825
+ .tool-box {
826
+ margin: calc(4 * var(--px)) 0 calc(8 * var(--px)) calc(19 * var(--px));
827
+ padding: calc(8 * var(--px)) calc(10 * var(--px));
828
+ border: 1px solid var(--line-strong);
829
+ border-radius: calc(6 * var(--px));
830
+ background: var(--panel);
831
+ display: flex;
832
+ flex-direction: column;
833
+ gap: calc(4 * var(--px));
834
+ min-width: 0;
835
+ }
836
+ .tool-box .label {
837
+ font-size: calc(10 * var(--px));
838
+ font-weight: 600;
839
+ letter-spacing: 0.04em;
840
+ text-transform: uppercase;
841
+ color: var(--text-4);
842
+ user-select: none;
843
+ }
844
+ .tool-box .label:not(:first-child) {
845
+ margin-top: calc(4 * var(--px));
846
+ }
847
+ .tool-box .markdown-viewer .markdown-body pre {
848
+ margin: 0;
849
+ padding: 0;
850
+ max-height: 24em;
851
+ overflow: auto;
852
+ background: transparent;
853
+ border: 0;
854
+ border-radius: 0;
855
+ font-size: calc(11.5 * var(--px));
856
+ line-height: 1.5;
857
+ }
858
+ /*
859
+ * A section's code scrolls, when taller than it may be, inside its code
860
+ * element; the block around it never does. The copy button sits in that
861
+ * block, so a block that scrolled counted the button as content and showed
862
+ * a vertical scrollbar under two lines of text.
863
+ */
864
+ .tool-box .markdown-viewer .markdown-body pre:has(> code) {
865
+ overflow: visible;
866
+ max-height: none;
867
+ }
868
+ .tool-box .section pre > code {
869
+ max-height: 24em;
870
+ overflow-y: auto;
871
+ }
872
+ /* The copy button keeps clear of the scrollbar, as the section's own button does. */
873
+ .tool-box .markdown-body .copy-button {
874
+ right: calc(12 * var(--px));
875
+ /* Small enough for a single line of code, so it never reaches the next section. */
876
+ top: 0;
877
+ padding: calc(2 * var(--px)) calc(4 * var(--px));
878
+ border-radius: calc(4 * var(--px));
879
+ }
880
+ .tool-box .markdown-body .copy-button svg {
881
+ width: calc(12 * var(--px));
882
+ height: calc(12 * var(--px));
883
+ }
884
+ .tool-box .section > .label {
885
+ padding-right: calc(10 * var(--px));
886
+ }
887
+ /* Long lines wrap, indentation kept, long tokens broken; a section can scroll them instead. */
888
+ .tool-box .section.wrap pre,
889
+ .tool-box .section.wrap pre code {
890
+ white-space: pre-wrap;
891
+ overflow-wrap: anywhere;
892
+ overflow-x: hidden;
893
+ }
894
+ .tool-box .section.scroll pre,
895
+ .tool-box .section.scroll pre code {
896
+ white-space: pre;
897
+ overflow-wrap: normal;
898
+ }
899
+ .tool-box .section.scroll pre > code {
900
+ overflow-x: auto;
901
+ }
902
+ .tool-box .section > .label {
903
+ display: flex;
904
+ align-items: center;
905
+ gap: calc(8 * var(--px));
906
+ }
907
+ .tool-box .section > .label > span {
908
+ flex: 1;
909
+ min-width: 0;
910
+ }
911
+ .tool-box .wrap-toggle {
912
+ display: inline-flex;
913
+ align-items: center;
914
+ gap: calc(3 * var(--px));
915
+ padding: 1px calc(5 * var(--px));
916
+ border: 1px solid var(--line);
917
+ border-radius: calc(4 * var(--px));
918
+ background: transparent;
919
+ font-size: calc(10 * var(--px));
920
+ letter-spacing: 0;
921
+ text-transform: none;
922
+ color: var(--text-3);
923
+ cursor: pointer;
924
+ }
925
+ .tool-box .wrap-toggle:hover {
926
+ color: var(--text);
927
+ background: var(--raised);
928
+ }
929
+ /* A tool's output shown one of several ways: the ways, as tabs, above it. */
930
+ .tool-box .view-switch {
931
+ display: inline-flex;
932
+ margin-bottom: calc(6 * var(--px));
933
+ border: 1px solid var(--line);
934
+ border-radius: calc(5 * var(--px));
935
+ overflow: hidden;
936
+ }
937
+ .tool-box .view-switch button {
938
+ padding: calc(2 * var(--px)) calc(9 * var(--px));
939
+ border: 0;
940
+ background: transparent;
941
+ color: var(--text-3);
942
+ font: inherit;
943
+ font-size: calc(11 * var(--px));
944
+ cursor: pointer;
945
+ }
946
+ .tool-box .view-switch button + button {
947
+ border-left: 1px solid var(--line);
948
+ }
949
+ .tool-box .view-switch button:hover {
950
+ color: var(--text);
951
+ background: var(--raised);
952
+ }
953
+ .tool-box .view-switch button.on {
954
+ color: var(--text);
955
+ background: var(--raised);
956
+ font-weight: 600;
957
+ }
958
+ /* A file the agent read that is an image: large enough to see what it shows. */
959
+ .tool-box .file-images .image-thumb img {
960
+ max-width: calc(480 * var(--px));
961
+ max-height: calc(320 * var(--px));
962
+ }
963
+ .tool-box .section + .section {
964
+ margin-top: calc(4 * var(--px));
965
+ }
966
+ .tool.failed .tool-box .output pre {
967
+ color: var(--fail);
968
+ }
969
+ .tool-box .path {
970
+ font-family: var(--mono);
971
+ font-size: calc(11 * var(--px));
972
+ color: var(--text-2);
973
+ }
974
+ /* Labelled rows: a call's path, pattern or URL, one short value each. */
975
+ .tool-box .fields {
976
+ display: grid;
977
+ grid-template-columns: max-content minmax(0, 1fr);
978
+ gap: 1px calc(12 * var(--px));
979
+ margin: 0;
980
+ font-size: calc(12 * var(--px));
981
+ }
982
+ .tool-box .fields dt {
983
+ font-family: var(--mono);
984
+ font-size: calc(11 * var(--px));
985
+ line-height: calc(18 * var(--px));
986
+ color: var(--text-3);
987
+ }
988
+ .tool-box .fields dd {
989
+ margin: 0;
990
+ line-height: calc(18 * var(--px));
991
+ overflow-wrap: anywhere;
992
+ white-space: pre-wrap;
993
+ color: var(--text);
994
+ }
995
+ .tool-box .fields dd.path,
996
+ .tool-box .fields dd.code,
997
+ .tool-box .fields dd.url {
998
+ font-family: var(--mono);
999
+ font-size: calc(11.5 * var(--px));
1000
+ }
1001
+ .tool-box .fields dd.code {
1002
+ color: var(--shell);
1003
+ }
1004
+ .tool-box .terminal {
1005
+ margin: 0;
1006
+ max-height: 24em;
1007
+ overflow: auto;
1008
+ font-family: var(--mono);
1009
+ font-size: calc(11.5 * var(--px));
1010
+ white-space: pre-wrap;
1011
+ color: var(--text);
1012
+ }
1013
+
1014
+ /* The agent's own machinery: one quiet line each; a run of calls folded into one. */
1015
+ .quiet {
1016
+ padding-top: 0;
1017
+ padding-bottom: 0;
1018
+ display: flex;
1019
+ align-items: center;
1020
+ gap: calc(5 * var(--px));
1021
+ font-family: var(--mono);
1022
+ font-size: calc(11 * var(--px));
1023
+ color: var(--text-4);
1024
+ user-select: none;
1025
+ }
1026
+
1027
+ /* Where a turn begins, and how it went. */
1028
+ .turn {
1029
+ display: flex;
1030
+ align-items: center;
1031
+ gap: calc(6 * var(--px));
1032
+ padding-top: 0;
1033
+ padding-bottom: 0;
1034
+ margin: calc(4 * var(--px)) 0 calc(2 * var(--px));
1035
+ font-size: calc(10.5 * var(--px));
1036
+ color: var(--text-4);
1037
+ user-select: none;
1038
+ }
1039
+ .turn .rule {
1040
+ flex: 1;
1041
+ border-top: 1px solid currentColor;
1042
+ opacity: 0.35;
1043
+ }
1044
+ .turn.failed {
1045
+ color: var(--fail);
1046
+ }
1047
+ .turn.cancelled {
1048
+ color: var(--wait);
1049
+ }
1050
+ .working {
1051
+ display: flex;
1052
+ align-items: center;
1053
+ gap: calc(6 * var(--px));
1054
+ padding: calc(2 * var(--px)) calc(10 * var(--px));
1055
+ color: var(--text-4);
1056
+ font-size: calc(11 * var(--px));
1057
+ user-select: none;
1058
+ }
1059
+ .working.blocked {
1060
+ color: var(--wait);
1061
+ }
1062
+ .dots {
1063
+ display: inline-flex;
1064
+ gap: calc(2 * var(--px));
1065
+ color: var(--run);
1066
+ }
1067
+ .dots span {
1068
+ width: calc(3 * var(--px));
1069
+ height: calc(3 * var(--px));
1070
+ border-radius: 50%;
1071
+ background: currentColor;
1072
+ animation: bounce 1.2s ease-in-out infinite;
1073
+ }
1074
+ .dots span:nth-child(2) {
1075
+ animation-delay: 0.15s;
1076
+ }
1077
+ .dots span:nth-child(3) {
1078
+ animation-delay: 0.3s;
1079
+ }
1080
+ .shimmer {
1081
+ background: linear-gradient(90deg, var(--text-4) 0%, var(--text) 50%, var(--text-4) 100%);
1082
+ background-size: 200% 100%;
1083
+ background-clip: text;
1084
+ -webkit-background-clip: text;
1085
+ color: transparent;
1086
+ animation: shimmer 1.6s linear infinite;
1087
+ }
1088
+
1089
+ /* A notice and a compaction: lines of the session, not of the conversation. */
1090
+ .notice {
1091
+ display: flex;
1092
+ align-items: baseline;
1093
+ gap: calc(6 * var(--px));
1094
+ font-size: calc(12 * var(--px));
1095
+ color: var(--text-3);
1096
+ }
1097
+ .notice .icon {
1098
+ align-self: center;
1099
+ }
1100
+ .notice.warning .icon,
1101
+ .notice.warning .what {
1102
+ color: var(--wait);
1103
+ }
1104
+ .notice.error .icon,
1105
+ .notice.error .what {
1106
+ color: var(--fail);
1107
+ }
1108
+ .notice .description {
1109
+ color: var(--text-4);
1110
+ }
1111
+ .compaction {
1112
+ font-size: calc(11.5 * var(--px));
1113
+ color: var(--text-4);
1114
+ }
1115
+ .compaction > summary {
1116
+ display: flex;
1117
+ align-items: center;
1118
+ gap: calc(8 * var(--px));
1119
+ list-style: none;
1120
+ cursor: pointer;
1121
+ user-select: none;
1122
+ }
1123
+ .compaction > summary::-webkit-details-marker {
1124
+ display: none;
1125
+ }
1126
+ .compaction > summary::before,
1127
+ .compaction > summary::after {
1128
+ content: "";
1129
+ flex: 1;
1130
+ border-top: 1px solid var(--line);
1131
+ }
1132
+ .compaction .summary {
1133
+ margin: calc(4 * var(--px)) 0 calc(6 * var(--px));
1134
+ padding: calc(6 * var(--px)) calc(10 * var(--px));
1135
+ border-left: calc(2 * var(--px)) solid var(--line-strong);
1136
+ }
1137
+
1138
+ /* An ask: headed by what it asks, answered by its buttons. */
1139
+ .ask {
1140
+ margin: calc(8 * var(--px)) 0;
1141
+ padding: calc(8 * var(--px)) calc(10 * var(--px));
1142
+ border: 1px solid var(--line);
1143
+ border-radius: calc(6 * var(--px));
1144
+ display: flex;
1145
+ flex-direction: column;
1146
+ gap: calc(6 * var(--px));
1147
+ }
1148
+ .ask.open {
1149
+ background: var(--wait-tint-soft);
1150
+ border-color: var(--wait);
1151
+ }
1152
+ .ask-head {
1153
+ display: flex;
1154
+ align-items: center;
1155
+ gap: calc(6 * var(--px));
1156
+ min-width: 0;
1157
+ font-size: calc(12.5 * var(--px));
1158
+ }
1159
+ .ask-head .icon {
1160
+ color: var(--wait);
1161
+ }
1162
+ .ask:not(.open) .ask-head .icon {
1163
+ color: var(--text-4);
1164
+ }
1165
+ .ask-head .what {
1166
+ font-weight: 600;
1167
+ }
1168
+ .ask-head .title {
1169
+ min-width: 0;
1170
+ color: var(--text-2);
1171
+ }
1172
+ .ask .description {
1173
+ font-size: calc(12.5 * var(--px));
1174
+ color: var(--text-2);
1175
+ }
1176
+ .ask-line {
1177
+ margin: 0;
1178
+ padding: calc(4 * var(--px)) calc(8 * var(--px));
1179
+ max-height: 12em;
1180
+ overflow: auto;
1181
+ border-radius: calc(4 * var(--px));
1182
+ background: var(--raised);
1183
+ font-family: var(--mono);
1184
+ font-size: calc(11.5 * var(--px));
1185
+ white-space: pre-wrap;
1186
+ word-break: break-word;
1187
+ }
1188
+ .ask-line .cwd {
1189
+ color: var(--text-4);
1190
+ }
1191
+ .ask-answers {
1192
+ display: flex;
1193
+ flex-wrap: wrap;
1194
+ gap: calc(6 * var(--px));
1195
+ }
1196
+ .ask-answer {
1197
+ display: inline-flex;
1198
+ align-items: center;
1199
+ gap: calc(6 * var(--px));
1200
+ height: calc(24 * var(--px));
1201
+ padding: 0 calc(10 * var(--px)) 0 calc(4 * var(--px));
1202
+ border: 1px solid var(--wait);
1203
+ border-radius: calc(4 * var(--px));
1204
+ background: var(--panel);
1205
+ font-size: calc(12 * var(--px));
1206
+ cursor: pointer;
1207
+ }
1208
+ .ask-answer:hover {
1209
+ background: var(--wait-tint);
1210
+ }
1211
+ .ask-answer.reject {
1212
+ border-color: var(--line-strong);
1213
+ color: var(--text-2);
1214
+ }
1215
+ .ask-answer.primary {
1216
+ padding: 0 calc(10 * var(--px));
1217
+ background: var(--wait);
1218
+ color: var(--ground);
1219
+ font-weight: 500;
1220
+ }
1221
+ .ask-answer kbd {
1222
+ min-width: calc(16 * var(--px));
1223
+ padding: 0 calc(4 * var(--px));
1224
+ border: 1px solid var(--line-strong);
1225
+ border-radius: calc(3 * var(--px));
1226
+ font-family: var(--mono);
1227
+ font-size: calc(10.5 * var(--px));
1228
+ line-height: calc(16 * var(--px));
1229
+ text-align: center;
1230
+ color: var(--text-3);
1231
+ background: var(--ground);
1232
+ }
1233
+ .ask-answered {
1234
+ font-size: calc(12 * var(--px));
1235
+ color: var(--text-3);
1236
+ }
1237
+
1238
+ /* An open ask, in the composer's place; the composer waits hidden, its draft kept. */
1239
+ slot[hidden] {
1240
+ display: none;
1241
+ }
1242
+ /* The same card as the composer whose place it takes. */
1243
+ .asking {
1244
+ flex: none;
1245
+ margin: 0 calc(14 * var(--px)) calc(14 * var(--px));
1246
+ padding: calc(12 * var(--px)) calc(14 * var(--px));
1247
+ border-radius: calc(12 * var(--px));
1248
+ outline: none;
1249
+ }
1250
+ .asking:focus-visible {
1251
+ box-shadow: 0 0 0 calc(2 * var(--px)) var(--wait-tint);
1252
+ }
1253
+ .asking .ask-head .pager {
1254
+ margin-left: auto;
1255
+ display: inline-flex;
1256
+ align-items: center;
1257
+ gap: calc(4 * var(--px));
1258
+ font-size: calc(11.5 * var(--px));
1259
+ color: var(--text-3);
1260
+ white-space: nowrap;
1261
+ }
1262
+ .asking .pager button {
1263
+ display: inline-flex;
1264
+ padding: calc(2 * var(--px));
1265
+ border: 0;
1266
+ border-radius: calc(3 * var(--px));
1267
+ background: transparent;
1268
+ color: var(--text-2);
1269
+ cursor: pointer;
1270
+ }
1271
+ .asking .pager button:disabled {
1272
+ color: var(--text-4);
1273
+ cursor: default;
1274
+ }
1275
+ .ask-body {
1276
+ max-height: 40vh;
1277
+ overflow: auto;
1278
+ }
1279
+ .ask-answer.default {
1280
+ border-color: var(--wait);
1281
+ }
1282
+ .ask-reason {
1283
+ width: 100%;
1284
+ height: calc(26 * var(--px));
1285
+ padding: 0 calc(8 * var(--px));
1286
+ border: 1px solid var(--line-strong);
1287
+ border-radius: calc(4 * var(--px));
1288
+ background: var(--ground);
1289
+ color: var(--text);
1290
+ font: inherit;
1291
+ font-size: calc(12.5 * var(--px));
1292
+ }
1293
+ .ask-reason:focus {
1294
+ outline: none;
1295
+ border-color: var(--run);
1296
+ }
1297
+ .ask-foot,
1298
+ .ask-waiting {
1299
+ display: flex;
1300
+ align-items: center;
1301
+ gap: calc(8 * var(--px));
1302
+ font-size: calc(11.5 * var(--px));
1303
+ color: var(--text-3);
1304
+ }
1305
+ .ask-foot .hint {
1306
+ flex: 1;
1307
+ }
1308
+ .ask-foot kbd {
1309
+ font-family: var(--mono);
1310
+ font-size: calc(10.5 * var(--px));
1311
+ }
1312
+ .ask-waiting {
1313
+ flex: none;
1314
+ margin: 0 calc(16 * var(--px)) calc(6 * var(--px));
1315
+ color: var(--wait);
1316
+ }
1317
+ .link {
1318
+ padding: 0;
1319
+ border: 0;
1320
+ background: transparent;
1321
+ color: var(--run);
1322
+ font-size: calc(11.5 * var(--px));
1323
+ cursor: pointer;
1324
+ }
1325
+ .link:hover {
1326
+ text-decoration: underline;
1327
+ }
1328
+
1329
+ /* A reply's metadata, such as its turn's thinking tokens: small, faint, out of the way. */
1330
+ .reply-meta {
1331
+ margin-top: calc(2 * var(--px));
1332
+ text-align: right;
1333
+ font-size: calc(10.5 * var(--px));
1334
+ line-height: 1.4;
1335
+ color: var(--text-4);
1336
+ user-select: none;
1337
+ }
1338
+
1339
+ /* Sign-in: why it failed, and the prompt to send again once signed in. */
1340
+ .signin-error {
1341
+ font-size: calc(12 * var(--px));
1342
+ color: var(--fail);
1343
+ }
1344
+ .retry {
1345
+ flex: none;
1346
+ display: flex;
1347
+ align-items: center;
1348
+ gap: calc(8 * var(--px));
1349
+ margin: 0 calc(14 * var(--px)) calc(6 * var(--px));
1350
+ font-size: calc(12 * var(--px));
1351
+ color: var(--text-2);
1352
+ }
1353
+ .retry .first {
1354
+ flex: 1;
1355
+ min-width: 0;
1356
+ overflow: hidden;
1357
+ text-overflow: ellipsis;
1358
+ white-space: nowrap;
1359
+ }
1360
+ .head .account {
1361
+ max-width: 30%;
1362
+ overflow: hidden;
1363
+ text-overflow: ellipsis;
1364
+ }
1365
+
1366
+ /* Paths the host can open: links only when it can, and only under the pointer. */
1367
+ a.loc {
1368
+ color: inherit;
1369
+ text-decoration: none;
1370
+ border-radius: calc(2 * var(--px));
1371
+ }
1372
+ a.loc:hover,
1373
+ a.loc:focus-visible {
1374
+ color: var(--run);
1375
+ text-decoration: underline;
1376
+ outline: none;
1377
+ }
1378
+ :host([data-can-open]) .message.agent .markdown-body code.loc-code {
1379
+ cursor: pointer;
1380
+ text-decoration: underline dotted;
1381
+ }
1382
+
1383
+ /* An ask's trace in the transcript: where it waits, then how it was answered. */
1384
+ .ask-record.waiting,
1385
+ .tool .waiting {
1386
+ color: var(--wait);
1387
+ }
1388
+ .tool .waiting {
1389
+ flex: none;
1390
+ display: inline-flex;
1391
+ align-items: center;
1392
+ gap: calc(3 * var(--px));
1393
+ font-size: calc(11.5 * var(--px));
1394
+ }
1395
+ .form {
1396
+ display: grid;
1397
+ grid-template-columns: minmax(calc(110 * var(--px)), max-content) 1fr;
1398
+ gap: calc(6 * var(--px)) calc(12 * var(--px));
1399
+ align-items: start;
1400
+ font-size: calc(12.5 * var(--px));
1401
+ }
1402
+ .form label {
1403
+ padding-top: calc(3 * var(--px));
1404
+ color: var(--text-2);
1405
+ }
1406
+ .form label .required {
1407
+ color: var(--wait);
1408
+ }
1409
+ .form .field {
1410
+ display: flex;
1411
+ flex-direction: column;
1412
+ gap: calc(2 * var(--px));
1413
+ min-width: 0;
1414
+ }
1415
+ .form .hint {
1416
+ font-size: calc(11 * var(--px));
1417
+ color: var(--text-4);
1418
+ }
1419
+ .form input[type="text"],
1420
+ .form input[type="number"],
1421
+ .form select {
1422
+ width: 100%;
1423
+ max-width: calc(360 * var(--px));
1424
+ height: calc(24 * var(--px));
1425
+ padding: 0 calc(6 * var(--px));
1426
+ border: 1px solid var(--line-strong);
1427
+ border-radius: calc(4 * var(--px));
1428
+ background: var(--panel);
1429
+ color: var(--text);
1430
+ font: inherit;
1431
+ }
1432
+ .form input:focus,
1433
+ .form select:focus {
1434
+ outline: none;
1435
+ border-color: var(--run);
1436
+ }
1437
+ .form .choices {
1438
+ display: flex;
1439
+ flex-wrap: wrap;
1440
+ gap: calc(4 * var(--px)) calc(12 * var(--px));
1441
+ padding-top: calc(3 * var(--px));
1442
+ }
1443
+ .form .choices label,
1444
+ .form .check {
1445
+ display: inline-flex;
1446
+ align-items: center;
1447
+ gap: calc(4 * var(--px));
1448
+ padding: 0;
1449
+ color: var(--text);
1450
+ }
1451
+ /* An answered form, laid out as it was asked but drawn, not editable: muted marks and values, no accent. */
1452
+ .form.answers {
1453
+ padding: calc(8 * var(--px)) calc(10 * var(--px));
1454
+ }
1455
+ .form.answers .answer-label {
1456
+ padding-top: calc(1 * var(--px));
1457
+ color: var(--text-3);
1458
+ }
1459
+ .form.answers .question {
1460
+ color: var(--text);
1461
+ }
1462
+ .form.answers .choices {
1463
+ flex-direction: column;
1464
+ gap: calc(2 * var(--px));
1465
+ padding-top: calc(2 * var(--px));
1466
+ }
1467
+ .form.answers .ro-choice {
1468
+ display: inline-flex;
1469
+ align-items: center;
1470
+ gap: calc(6 * var(--px));
1471
+ color: var(--text-4);
1472
+ }
1473
+ .form.answers .ro-choice.chosen {
1474
+ color: var(--text-2);
1475
+ }
1476
+ .form.answers .ro-mark {
1477
+ display: inline-flex;
1478
+ align-items: center;
1479
+ justify-content: center;
1480
+ width: calc(12 * var(--px));
1481
+ height: calc(12 * var(--px));
1482
+ border: 1px solid var(--line-strong);
1483
+ color: var(--ground);
1484
+ }
1485
+ .form.answers .ro-mark.check {
1486
+ border-radius: calc(3 * var(--px));
1487
+ }
1488
+ .form.answers .ro-mark.radio {
1489
+ border-radius: 999px;
1490
+ }
1491
+ .form.answers .chosen .ro-mark.check {
1492
+ border-color: var(--text-3);
1493
+ background: var(--text-3);
1494
+ }
1495
+ .form.answers .chosen .ro-mark.radio {
1496
+ border-color: var(--text-3);
1497
+ }
1498
+ .form.answers .ro-mark .dot {
1499
+ width: calc(6 * var(--px));
1500
+ height: calc(6 * var(--px));
1501
+ border-radius: 999px;
1502
+ background: var(--text-3);
1503
+ }
1504
+ .form.answers .choices .hint {
1505
+ margin-left: calc(2 * var(--px));
1506
+ color: var(--text-4);
1507
+ }
1508
+ .form.answers .ro-value {
1509
+ display: inline-flex;
1510
+ align-items: center;
1511
+ gap: calc(6 * var(--px));
1512
+ align-self: flex-start;
1513
+ max-width: 100%;
1514
+ padding: calc(2 * var(--px)) calc(8 * var(--px));
1515
+ border: 1px dashed var(--line-strong);
1516
+ border-radius: calc(4 * var(--px));
1517
+ color: var(--text-2);
1518
+ white-space: pre-wrap;
1519
+ overflow-wrap: anywhere;
1520
+ }
1521
+ .form.answers .ro-value.empty {
1522
+ color: var(--text-4);
1523
+ font-style: italic;
1524
+ }
1525
+ .form.answers .ro-value.select svg {
1526
+ transform: rotate(90deg);
1527
+ color: var(--text-4);
1528
+ }
1529
+ .form.answers .written {
1530
+ display: inline-flex;
1531
+ align-items: center;
1532
+ gap: calc(4 * var(--px));
1533
+ color: var(--text-2);
1534
+ }
1535
+ .form.answers .outcome {
1536
+ display: inline-flex;
1537
+ align-items: center;
1538
+ align-self: flex-start;
1539
+ justify-self: start;
1540
+ gap: calc(4 * var(--px));
1541
+ margin-top: calc(4 * var(--px));
1542
+ padding: calc(1 * var(--px)) calc(8 * var(--px));
1543
+ border: 1px solid var(--line);
1544
+ border-radius: 999px;
1545
+ color: var(--text-3);
1546
+ font-size: calc(11.5 * var(--px));
1547
+ }
1548
+
1549
+ /* A subagent, as one card. */
1550
+ .subagent {
1551
+ margin: calc(6 * var(--px)) 0;
1552
+ padding: 0;
1553
+ border: 1px solid var(--line);
1554
+ border-radius: calc(6 * var(--px));
1555
+ overflow: hidden;
1556
+ }
1557
+ .subagent.running {
1558
+ border-color: var(--run);
1559
+ }
1560
+ .subagent.failed {
1561
+ border-color: var(--fail);
1562
+ }
1563
+ .subagent-head {
1564
+ display: flex;
1565
+ align-items: center;
1566
+ gap: calc(8 * var(--px));
1567
+ width: 100%;
1568
+ min-width: 0;
1569
+ padding: calc(4 * var(--px)) calc(10 * var(--px));
1570
+ border: 0;
1571
+ background: var(--raised);
1572
+ font-size: calc(12.5 * var(--px));
1573
+ text-align: left;
1574
+ cursor: pointer;
1575
+ user-select: none;
1576
+ }
1577
+ .subagent-head .status {
1578
+ color: var(--done);
1579
+ }
1580
+ .subagent-head .name {
1581
+ flex: none;
1582
+ font-weight: 600;
1583
+ }
1584
+ .subagent-head .description {
1585
+ flex: 1 1 auto;
1586
+ min-width: 0;
1587
+ overflow: hidden;
1588
+ text-overflow: ellipsis;
1589
+ white-space: nowrap;
1590
+ color: var(--text-2);
1591
+ }
1592
+ .subagent-head .count {
1593
+ flex: none;
1594
+ font-family: var(--mono);
1595
+ font-size: calc(11 * var(--px));
1596
+ color: var(--text-4);
1597
+ }
1598
+ .subagent-head .chevron {
1599
+ color: var(--text-4);
1600
+ transition: transform 0.12s;
1601
+ }
1602
+ .subagent.opened .subagent-head .chevron {
1603
+ transform: rotate(90deg);
1604
+ }
1605
+ .subagent-steps {
1606
+ padding: calc(4 * var(--px)) calc(8 * var(--px)) calc(4 * var(--px)) calc(14 * var(--px));
1607
+ border-top: 1px solid var(--line);
1608
+ display: flex;
1609
+ flex-direction: column;
1610
+ gap: calc(2 * var(--px));
1611
+ }
1612
+ .subagent-steps:empty {
1613
+ display: none;
1614
+ }
1615
+ .subagent-more {
1616
+ padding: 0 calc(10 * var(--px));
1617
+ font-size: calc(11 * var(--px));
1618
+ color: var(--text-4);
1619
+ }
1620
+ .subagent-result {
1621
+ padding: calc(6 * var(--px)) calc(10 * var(--px));
1622
+ border-top: 1px solid var(--line);
1623
+ max-height: 16em;
1624
+ overflow: auto;
1625
+ }
1626
+
1627
+ /* Under the transcript: the plan and the prompts waiting. */
1628
+ .foot {
1629
+ flex: none;
1630
+ padding: 0 calc(20 * var(--px)) calc(6 * var(--px));
1631
+ display: flex;
1632
+ flex-direction: column;
1633
+ gap: calc(2 * var(--px));
1634
+ }
1635
+ .foot:empty {
1636
+ display: none;
1637
+ }
1638
+ .plan {
1639
+ border-top: 1px solid var(--line);
1640
+ padding-top: calc(6 * var(--px));
1641
+ font-size: calc(12 * var(--px));
1642
+ color: var(--text-2);
1643
+ }
1644
+ .plan-head,
1645
+ .queued-head {
1646
+ display: flex;
1647
+ align-items: center;
1648
+ gap: calc(5 * var(--px));
1649
+ font-size: calc(10.5 * var(--px));
1650
+ color: var(--text-4);
1651
+ user-select: none;
1652
+ }
1653
+ .plan .item {
1654
+ display: flex;
1655
+ gap: calc(6 * var(--px));
1656
+ padding-left: calc(2 * var(--px));
1657
+ }
1658
+ .plan .item .mark {
1659
+ flex: none;
1660
+ display: inline-flex;
1661
+ align-items: center;
1662
+ width: calc(12 * var(--px));
1663
+ height: 1.5em;
1664
+ color: var(--text-4);
1665
+ }
1666
+ .plan .item.doing .mark {
1667
+ color: var(--run);
1668
+ }
1669
+ .plan .item.doing .mark svg {
1670
+ animation: spin 1s linear infinite;
1671
+ }
1672
+ .plan .item.doing {
1673
+ color: var(--text);
1674
+ }
1675
+ .plan .item.done {
1676
+ color: var(--text-4);
1677
+ }
1678
+ .plan .item.done .text {
1679
+ text-decoration: line-through;
1680
+ }
1681
+ .plan .item.done .mark {
1682
+ color: var(--done);
1683
+ }
1684
+ .queued-list {
1685
+ display: flex;
1686
+ flex-direction: column;
1687
+ gap: 1px;
1688
+ padding-top: calc(6 * var(--px));
1689
+ border-top: 1px solid var(--line);
1690
+ }
1691
+ .queued {
1692
+ font-size: calc(12 * var(--px));
1693
+ color: var(--text-3);
1694
+ }
1695
+ .queued > summary {
1696
+ display: flex;
1697
+ align-items: center;
1698
+ gap: calc(4 * var(--px));
1699
+ min-width: 0;
1700
+ padding: 1px calc(4 * var(--px));
1701
+ border-radius: calc(3 * var(--px));
1702
+ cursor: pointer;
1703
+ list-style: none;
1704
+ }
1705
+ .queued > summary::-webkit-details-marker {
1706
+ display: none;
1707
+ }
1708
+ .queued > summary:hover {
1709
+ background: var(--raised);
1710
+ }
1711
+ .queued > summary .chevron {
1712
+ color: var(--text-4);
1713
+ transition: transform 0.12s;
1714
+ }
1715
+ .queued[open] > summary .chevron {
1716
+ transform: rotate(90deg);
1717
+ }
1718
+ .queued .first {
1719
+ flex: 1;
1720
+ min-width: 0;
1721
+ overflow: hidden;
1722
+ text-overflow: ellipsis;
1723
+ white-space: nowrap;
1724
+ }
1725
+ .queued.failed .first {
1726
+ color: var(--fail);
1727
+ }
1728
+ .queued .actions {
1729
+ display: inline-flex;
1730
+ gap: calc(4 * var(--px));
1731
+ }
1732
+ .queued .actions button {
1733
+ display: inline-flex;
1734
+ align-items: center;
1735
+ gap: calc(3 * var(--px));
1736
+ padding: 0 calc(6 * var(--px));
1737
+ border: 1px solid var(--line-strong);
1738
+ border-radius: calc(4 * var(--px));
1739
+ background: transparent;
1740
+ font-size: calc(11 * var(--px));
1741
+ color: var(--text-2);
1742
+ cursor: pointer;
1743
+ }
1744
+ .queued-whole {
1745
+ margin: calc(2 * var(--px)) 0 calc(4 * var(--px)) calc(15 * var(--px));
1746
+ padding: calc(6 * var(--px)) calc(8 * var(--px));
1747
+ max-height: 30vh;
1748
+ overflow: auto;
1749
+ border: 1px solid var(--line);
1750
+ border-radius: calc(4 * var(--px));
1751
+ background: var(--panel);
1752
+ white-space: pre-wrap;
1753
+ overflow-wrap: anywhere;
1754
+ color: var(--text-2);
1755
+ }
1756
+
1757
+ /* Where a prompt is written. */
1758
+ .composer {
1759
+ flex: none;
1760
+ margin: 0 calc(14 * var(--px)) calc(14 * var(--px));
1761
+ background: var(--raised);
1762
+ border: 1px solid var(--line-strong);
1763
+ border-radius: calc(12 * var(--px));
1764
+ box-shadow: 0 calc(-6 * var(--px)) calc(24 * var(--px)) var(--shadow);
1765
+ }
1766
+ .composer-top:empty {
1767
+ display: none;
1768
+ }
1769
+ /* What is attached to the next prompt, above its text. */
1770
+ .strip {
1771
+ display: flex;
1772
+ flex-wrap: wrap;
1773
+ gap: calc(8 * var(--px));
1774
+ padding: calc(12 * var(--px)) calc(12 * var(--px)) 0;
1775
+ }
1776
+ .thumb {
1777
+ position: relative;
1778
+ display: grid;
1779
+ grid-template-columns: calc(64 * var(--px));
1780
+ gap: calc(2 * var(--px));
1781
+ font-size: calc(10.5 * var(--px));
1782
+ color: var(--text-3);
1783
+ }
1784
+ .thumb-image {
1785
+ width: calc(64 * var(--px));
1786
+ height: calc(64 * var(--px));
1787
+ padding: 0;
1788
+ border: 1px solid var(--line-strong);
1789
+ border-radius: calc(8 * var(--px));
1790
+ background: var(--panel);
1791
+ overflow: hidden;
1792
+ cursor: zoom-in;
1793
+ }
1794
+ .thumb-image img {
1795
+ width: 100%;
1796
+ height: 100%;
1797
+ object-fit: cover;
1798
+ }
1799
+ .thumb-name,
1800
+ .thumb-size {
1801
+ overflow: hidden;
1802
+ text-overflow: ellipsis;
1803
+ white-space: nowrap;
1804
+ }
1805
+ .thumb-name {
1806
+ color: var(--text-2);
1807
+ }
1808
+ .thumb-remove {
1809
+ position: absolute;
1810
+ top: calc(-6 * var(--px));
1811
+ right: calc(-6 * var(--px));
1812
+ display: inline-flex;
1813
+ align-items: center;
1814
+ justify-content: center;
1815
+ width: calc(20 * var(--px));
1816
+ height: calc(20 * var(--px));
1817
+ padding: 0;
1818
+ border: 1px solid var(--line-strong);
1819
+ border-radius: 999px;
1820
+ background: var(--raised);
1821
+ color: var(--text);
1822
+ cursor: pointer;
1823
+ opacity: 0;
1824
+ }
1825
+ .thumb:hover .thumb-remove,
1826
+ .thumb:focus-within .thumb-remove {
1827
+ opacity: 1;
1828
+ }
1829
+ .thumb-image:focus-visible,
1830
+ .thumb-remove:focus-visible {
1831
+ outline: calc(2 * var(--px)) solid var(--run);
1832
+ outline-offset: 1px;
1833
+ }
1834
+ .refused {
1835
+ display: inline-flex;
1836
+ align-items: center;
1837
+ gap: calc(6 * var(--px));
1838
+ align-self: flex-start;
1839
+ max-width: 100%;
1840
+ padding: calc(3 * var(--px)) calc(4 * var(--px)) calc(3 * var(--px)) calc(8 * var(--px));
1841
+ border: 1px solid var(--fail);
1842
+ border-radius: calc(8 * var(--px));
1843
+ background: var(--fail-tint);
1844
+ color: var(--fail);
1845
+ font-size: calc(11.5 * var(--px));
1846
+ }
1847
+ .refused button {
1848
+ display: inline-flex;
1849
+ padding: calc(2 * var(--px));
1850
+ border: 0;
1851
+ border-radius: calc(4 * var(--px));
1852
+ background: transparent;
1853
+ color: inherit;
1854
+ cursor: pointer;
1855
+ }
1856
+ /* Files dragged over the Chat: where they go when dropped. */
1857
+ .drop-target {
1858
+ position: absolute;
1859
+ inset: calc(8 * var(--px));
1860
+ z-index: 5;
1861
+ display: flex;
1862
+ flex-direction: column;
1863
+ align-items: center;
1864
+ justify-content: center;
1865
+ gap: calc(8 * var(--px));
1866
+ border: calc(2 * var(--px)) dashed var(--run);
1867
+ border-radius: calc(12 * var(--px));
1868
+ /* Tinted over a veil of the ground, and what lies behind blurred, so the words read. */
1869
+ background: linear-gradient(var(--run-tint), var(--run-tint)),
1870
+ color-mix(in srgb, var(--ground) 72%, transparent);
1871
+ -webkit-backdrop-filter: blur(calc(6 * var(--px)));
1872
+ backdrop-filter: blur(calc(6 * var(--px)));
1873
+ color: var(--run);
1874
+ font-size: calc(14 * var(--px));
1875
+ font-weight: 600;
1876
+ pointer-events: none;
1877
+ }
1878
+ .lightbox {
1879
+ position: absolute;
1880
+ inset: 0;
1881
+ z-index: 6;
1882
+ display: flex;
1883
+ padding: calc(24 * var(--px));
1884
+ background: rgba(0, 0, 0, 0.72);
1885
+ cursor: zoom-out;
1886
+ }
1887
+ .lightbox adroit-image-viewer {
1888
+ flex: 1;
1889
+ min-width: 0;
1890
+ border: 1px solid var(--line-strong);
1891
+ border-radius: calc(8 * var(--px));
1892
+ overflow: hidden;
1893
+ cursor: default;
1894
+ box-shadow: 0 calc(16 * var(--px)) calc(48 * var(--px)) rgba(0, 0, 0, 0.4);
1895
+ }
1896
+ .composer:focus-within {
1897
+ border-color: var(--focus-border);
1898
+ }
1899
+ .composer textarea {
1900
+ display: block;
1901
+ /*
1902
+ * Inset from the card's top right, so a scrollbar keeps clear of its
1903
+ * rounded corner instead of being cut by it.
1904
+ */
1905
+ width: calc(100% - 6 * var(--px));
1906
+ margin-top: calc(4 * var(--px));
1907
+ min-height: calc(24 * var(--px));
1908
+ max-height: 40vh;
1909
+ overflow-y: hidden;
1910
+ padding: calc(8 * var(--px)) calc(8 * var(--px)) calc(4 * var(--px)) calc(14 * var(--px));
1911
+ border: 0;
1912
+ outline: none;
1913
+ resize: none;
1914
+ background: transparent;
1915
+ color: var(--text);
1916
+ font-family: var(--sans);
1917
+ font-size: calc(13.5 * var(--px));
1918
+ line-height: 1.5;
1919
+ }
1920
+ .composer textarea::placeholder {
1921
+ color: var(--text-4);
1922
+ }
1923
+ /*
1924
+ * What an accepted command takes, drawn faint after it while nothing is
1925
+ * written there: laid over the text area in its own metrics, so the hint
1926
+ * sits where the argument will start and is never part of the draft.
1927
+ */
1928
+ .draft {
1929
+ position: relative;
1930
+ }
1931
+ .ghost {
1932
+ position: absolute;
1933
+ top: 0;
1934
+ left: 0;
1935
+ width: calc(100% - 6 * var(--px));
1936
+ padding: calc(8 * var(--px)) calc(8 * var(--px)) calc(4 * var(--px)) calc(14 * var(--px));
1937
+ overflow: hidden;
1938
+ white-space: pre-wrap;
1939
+ overflow-wrap: anywhere;
1940
+ pointer-events: none;
1941
+ font-family: var(--sans);
1942
+ font-size: calc(13.5 * var(--px));
1943
+ line-height: 1.5;
1944
+ }
1945
+ .ghost .typed {
1946
+ color: transparent;
1947
+ }
1948
+ .ghost .hint {
1949
+ color: var(--text-4);
1950
+ }
1951
+ /* The toolbar: its tools and the delivery on the left, stop and send on the right. */
1952
+ .composer-foot {
1953
+ display: flex;
1954
+ align-items: center;
1955
+ gap: calc(8 * var(--px));
1956
+ padding: calc(4 * var(--px)) calc(8 * var(--px)) calc(8 * var(--px));
1957
+ font-size: calc(11.5 * var(--px));
1958
+ color: var(--text-3);
1959
+ user-select: none;
1960
+ }
1961
+ .composer-foot .tools {
1962
+ display: inline-flex;
1963
+ gap: calc(2 * var(--px));
1964
+ }
1965
+ .composer-foot .tools:empty {
1966
+ display: none;
1967
+ }
1968
+ .composer-foot .spacer {
1969
+ flex: 1;
1970
+ }
1971
+ /* The keys that apply now, faint beside Send; a narrow composer keeps its room for the buttons. */
1972
+ .composer {
1973
+ container: composer / inline-size;
1974
+ }
1975
+ .keys-hint {
1976
+ min-width: 0;
1977
+ overflow: hidden;
1978
+ white-space: nowrap;
1979
+ text-overflow: ellipsis;
1980
+ font-size: calc(10.5 * var(--px));
1981
+ color: var(--text-4);
1982
+ }
1983
+ @container composer (width < 36em) {
1984
+ .keys-hint {
1985
+ display: none;
1986
+ }
1987
+ }
1988
+ .composer-tool {
1989
+ display: inline-flex;
1990
+ align-items: center;
1991
+ justify-content: center;
1992
+ width: calc(28 * var(--px));
1993
+ height: calc(28 * var(--px));
1994
+ padding: 0;
1995
+ border: 0;
1996
+ border-radius: calc(7 * var(--px));
1997
+ background: transparent;
1998
+ color: var(--text-2);
1999
+ cursor: pointer;
2000
+ }
2001
+ .composer-tool:hover:not(:disabled) {
2002
+ background: var(--select);
2003
+ color: var(--text);
2004
+ }
2005
+ .composer-tool:disabled {
2006
+ color: var(--text-4);
2007
+ cursor: default;
2008
+ }
2009
+ /* After this turn, or steer now: the chosen one raised from its track. */
2010
+ .delivery {
2011
+ display: inline-flex;
2012
+ padding: calc(2 * var(--px));
2013
+ border: 1px solid var(--line);
2014
+ border-radius: calc(8 * var(--px));
2015
+ background: var(--panel);
2016
+ }
2017
+ .delivery button {
2018
+ padding: calc(3 * var(--px)) calc(10 * var(--px));
2019
+ border: 0;
2020
+ border-radius: calc(6 * var(--px));
2021
+ background: transparent;
2022
+ color: var(--text-3);
2023
+ font: inherit;
2024
+ cursor: pointer;
2025
+ }
2026
+ .delivery button[aria-checked="true"] {
2027
+ background: var(--raised);
2028
+ color: var(--text);
2029
+ box-shadow: 0 1px calc(3 * var(--px)) var(--shadow);
2030
+ }
2031
+ .delivery button[aria-checked="true"]:last-child {
2032
+ color: var(--wait);
2033
+ }
2034
+ .composer-button {
2035
+ display: inline-flex;
2036
+ align-items: center;
2037
+ justify-content: center;
2038
+ width: calc(30 * var(--px));
2039
+ height: calc(30 * var(--px));
2040
+ padding: 0;
2041
+ border: 0;
2042
+ border-radius: calc(8 * var(--px));
2043
+ background: var(--run);
2044
+ color: #fff;
2045
+ cursor: pointer;
2046
+ }
2047
+ .composer-button:disabled {
2048
+ background: var(--select);
2049
+ color: var(--text-4);
2050
+ cursor: default;
2051
+ }
2052
+ .composer-button.stop {
2053
+ background: var(--select);
2054
+ color: var(--text);
2055
+ }
2056
+ .composer-button:focus-visible,
2057
+ .composer-tool:focus-visible,
2058
+ .delivery button:focus-visible {
2059
+ outline: calc(2 * var(--px)) solid var(--run);
2060
+ outline-offset: 1px;
2061
+ }
2062
+
2063
+ .commands {
2064
+ display: flex;
2065
+ flex-direction: column;
2066
+ padding: calc(4 * var(--px));
2067
+ border-bottom: 1px solid var(--line);
2068
+ max-height: 30vh;
2069
+ overflow: auto;
2070
+ }
2071
+ .command {
2072
+ display: flex;
2073
+ gap: calc(10 * var(--px));
2074
+ align-items: baseline;
2075
+ padding: calc(4 * var(--px)) calc(10 * var(--px));
2076
+ border: 0;
2077
+ border-radius: calc(6 * var(--px));
2078
+ background: transparent;
2079
+ text-align: left;
2080
+ cursor: pointer;
2081
+ }
2082
+ /* The chosen item, which Tab or Enter takes, in the accent; the one under the pointer, quieter. */
2083
+ .command:hover {
2084
+ background: var(--select);
2085
+ }
2086
+ .command.selected {
2087
+ background: var(--run-tint);
2088
+ }
2089
+ .command.selected .name {
2090
+ color: var(--run);
2091
+ }
2092
+ .command .name {
2093
+ font-family: var(--mono);
2094
+ font-size: calc(12.5 * var(--px));
2095
+ color: var(--text);
2096
+ }
2097
+ .command {
2098
+ align-items: center;
2099
+ }
2100
+ .command .icon {
2101
+ color: var(--text-4);
2102
+ }
2103
+ .command.directory .icon,
2104
+ .command.skill .icon {
2105
+ color: var(--run);
2106
+ }
2107
+ .command .hint {
2108
+ font-family: var(--mono);
2109
+ font-size: calc(11.5 * var(--px));
2110
+ color: var(--text-4);
2111
+ }
2112
+ .command .description {
2113
+ min-width: 0;
2114
+ overflow: hidden;
2115
+ text-overflow: ellipsis;
2116
+ white-space: nowrap;
2117
+ }
2118
+ .command .description {
2119
+ font-size: calc(11.5 * var(--px));
2120
+ color: var(--text-3);
2121
+ }
2122
+ .completion-empty {
2123
+ padding: calc(4 * var(--px)) calc(10 * var(--px));
2124
+ font-size: calc(11.5 * var(--px));
2125
+ color: var(--text-4);
2126
+ }
2127
+
2128
+ @keyframes spin {
2129
+ to {
2130
+ transform: rotate(360deg);
2131
+ }
2132
+ }
2133
+ @keyframes blink {
2134
+ to {
2135
+ visibility: hidden;
2136
+ }
2137
+ }
2138
+ @keyframes bounce {
2139
+ 0%,
2140
+ 80%,
2141
+ 100% {
2142
+ opacity: 0.25;
2143
+ transform: translateY(0);
2144
+ }
2145
+ 40% {
2146
+ opacity: 1;
2147
+ transform: translateY(calc(-3 * var(--px)));
2148
+ }
2149
+ }
2150
+ @keyframes shimmer {
2151
+ from {
2152
+ background-position: 200% 0;
2153
+ }
2154
+ to {
2155
+ background-position: 0 0;
2156
+ }
2157
+ }
2158
+ @media (prefers-reduced-motion: reduce) {
2159
+ *,
2160
+ *::before,
2161
+ *::after {
2162
+ animation: none !important;
2163
+ transition: none !important;
2164
+ }
2165
+ }
2166
+ `;