Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
2793 lines (2649 loc) · 173 KB
/
Copy pathstyles.css
File metadata and controls
2793 lines (2649 loc) · 173 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* mwcode desktop — styles.
Frameless but opaque: Windows draws the rounded corners and shadow, so
the window is edge to edge and native resize/maximize keep working. The
sidebar and chat header are the drag handles; min/max/close end the chat header. */
:root{
/* One height for every button, field, menu button, choice and badge. */
--control-h:28px;
/* Corners: nearly square everywhere. Three sizes, small to large; dots stay round. */
--r-sm:2px;
--r:3px;
--r-lg:4px;
--ground-a:#080A09;
--ground-b:#050606;
--glass:#111413;
--glass-2:#171B19;
--glass-3:#202523;
--line:rgba(220,240,232,.11);
--line-2:rgba(220,240,232,.17);
--text:#EEF2EF;
--muted:#B4BEB9;
--dim:#87928D;
--accent:#3DA37A;
--dot-white:#E6EEEA;
--accent-hi:#52BF92;
/* The accent as numbers, for its rings at any strength: rgba(var(--accent-rgb), .45). */
--accent-rgb:61,163,122;
--accent-hi-rgb:82,191,146;
--accent-fill:rgba(61,163,122,.16);
--good:#A3CF6E;
--good-fill:rgba(163,207,110,.13);
--warn:#EAB767;
--warn-fill:rgba(234,183,103,.14);
--bad:#EC7C72;
--bad-fill:rgba(236,124,114,.14);
--syn-kw:#F0A36B;
--syn-str:#A9CF8C;
--syn-type:#8FC0B8;
--syn-num:#E8C070;
--syn-fn:#F2CF7A;
--syn-prop:#E3CFA8;
--syn-cm:#87928D;
/* Surfaces and text that used to be written as raw colours. */
--prose:#D6DDD9; /* the agent's words */
--code-text:#D4DBD7; /* code, command output */
--code-bg:#060707; /* an output well, an image backdrop */
--card-hover:#191D1B; /* a card under the pointer */
--tint:rgba(220,240,232,.05); /* a row under the pointer */
--tint-2:rgba(220,240,232,.1); /* a chip, a track */
--tint-3:rgba(220,240,232,.14); /* a stronger chip */
--tint-line:rgba(220,240,232,.25);
--scroll-thumb:rgba(220,240,232,.14);
--scroll-thumb-hi:rgba(220,240,232,.22);
--shadow:rgba(0,0,0,.55);
--scrim:rgba(4,5,5,.65);
--diff-add:#E0E8E4;
--diff-del:#858F8A;
--knob:#fff;
/* Fonts (bundled, assets/fonts): a warm serif for headings, a clean sans for everything else, a soft mono. */
--display:'Fraunces',Georgia,serif;
--body:'Instrument Sans',system-ui,sans-serif;
--mono:'IBM Plex Mono',Consolas,monospace;
color-scheme: dark;
}
*{margin:0;padding:0;box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%;background:var(--glass)}
/* Linux: the window is see-through and the page is cut to its rounded shape (Windows' small corners).
A clip, not border-radius, so overlays that cover the whole window are rounded too; the body stays
see-through because its colour would otherwise paint the whole window, corners included (.app has it). */
html.round-window,html.round-window body{background:transparent}
html.round-window body{clip-path:inset(0 round var(--r-lg))}
html.round-window.window-square body{clip-path:none}
/* macOS: the system's red, yellow and green buttons sit top left (x 16–68, centred 22px down, main.js).
The logo gives them its place, the sidebar header and a hidden sidebar's header start past them, and
our own window buttons go. The same in full screen: macOS hides the buttons there but slides them back
in with the menu bar, so their place stays free, and nothing jumps going in or out of full screen. */
html.mac .tb-winctl,html.mac .tb-div:has(+ .tb-winctl){display:none}
html.mac .rail-logo{visibility:hidden}
/* The buttons are wider than the rail: its dividing line starts below the header row, not between them. */
html.mac .rail{
border-right-color:transparent;
background:linear-gradient(var(--line),var(--line)) right bottom / 1px calc(100% - 44px) no-repeat;
}
html.mac .side-head{padding-left:27px}
html.mac .app.side-closed .chat-head{padding-left:84px}
body{
font-family:var(--body);
color:var(--text);
font-size:14px;
line-height:1.55;
display:flex;flex-direction:column;
overflow:hidden;
cursor:default;
}
::selection{background:var(--accent-fill);color:var(--accent-hi)}
:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
button{font-family:inherit;color:inherit;background:none;border:none;cursor:pointer}
input,textarea{font-family:inherit;color:inherit}
.tnum{font-variant-numeric:tabular-nums}
svg{display:block}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-button{width:0;height:0;display:none}
::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--line-2);border:2px solid transparent;background-clip:padding-box;border-radius:var(--r)}
::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hi);border:2px solid transparent;background-clip:padding-box}
/* ── The window ─────────────────────────────────────────────────────── */
.app{
flex:1;min-height:0;position:relative;
display:flex;flex-direction:row;
background:var(--glass);
overflow:hidden;
}
/* The one-colour logo, painted in the text colour through its own shape: white on the dark
titlebar, and it follows the theme instead of being a second, separately coloured file. */
.brand-mark{
display:block;flex:none;height:17px;width:14.2px; /* the mark's own proportions (1152 x 1376) */
background:var(--text);
-webkit-mask:url(assets/logo-mono.png) center / contain no-repeat;
mask:url(assets/logo-mono.png) center / contain no-repeat;
}
.proj-dot{width:6px;height:6px;border-radius:50%;flex:none}
/* ── Sidebar ─────────────────────────────────────────────────────────────
A rail (logo, sections, the app's own buttons) and a panel (the project, then its
sessions). It hides only when you hide it. A window too narrow for a column opens
it over the chat instead, with a scrim to click away. */
.side{flex:none;width:296px;display:flex;background:var(--ground-a);border-right:1px solid var(--line);z-index:30}
.app.side-closed .side{display:none}
.app.side-float .side{position:absolute;top:0;bottom:0;left:0;box-shadow:24px 0 60px var(--shadow)}
.side-scrim{display:none}
.app.side-float .side-scrim{display:block;position:absolute;inset:0;z-index:29;background:rgba(0,0,0,.35)}
.rail{
/* 53 = 52 inside + the 1px border, so the 34px buttons sit on whole pixels. */
width:53px;flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;
/* 6px on top puts the logo on the same centre line as the header row (22px down). */
padding:6px 0 12px;border-right:1px solid var(--line);-webkit-app-region:drag;
}
.rail > *{-webkit-app-region:no-drag}
.rail-logo{width:32px;height:32px;display:grid;place-items:center;margin-bottom:8px;-webkit-app-region:drag}
.rail-logo .brand-mark{height:20px;width:16.75px}
.rail-grow{flex:1;align-self:stretch;-webkit-app-region:drag}
.rbtn{width:34px;height:34px;border-radius:var(--r);display:grid;place-items:center;color:var(--dim);flex:none}
.rbtn:hover,.rbtn.open{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.rbtn.active{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.rbtn svg{width:16px;height:16px}
.rbtn svg [stroke]{stroke-width:1.4px;vector-effect:non-scaling-stroke}
.side-panel{flex:1;min-width:0;display:flex;flex-direction:column}
.side-head{
height:44px;flex:none;display:flex;align-items:center;gap:6px;padding:0 8px 0 10px;
-webkit-app-region:drag;
}
.side-head > *{-webkit-app-region:no-drag}
.proj-pick{
display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto;
height:28px;padding:0 8px;border-radius:var(--r);font-size:13.5px;font-weight:700;color:var(--text);
cursor:pointer;user-select:none;
}
.proj-pick:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.proj-pick .lbl{position:relative;top:-1px;line-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-pick .chev{width:10px;height:10px;color:var(--dim);flex:none;transition:transform .15s}
.side:has(.side-projects:not([hidden])) .proj-pick .chev{transform:rotate(180deg)}
.side-head .side-pin{margin-left:auto}
.side-pin.on{color:var(--text)}
.side-pin[hidden]{display:none}
.side-pin[hidden] + .side-ibtn{margin-left:auto}
.side-ibtn,.side-open{width:28px;height:28px;border-radius:var(--r);display:grid;place-items:center;color:var(--dim);flex:none}
.side-ibtn:hover,.side-open:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.side-ibtn svg,.side-open svg{width:14px;height:14px}
.side-projects{display:flex;flex-direction:column;gap:1px;padding:0 8px 8px;border-bottom:1px solid var(--line);margin-bottom:8px}
.side-projects .qtab-menu-item{font-size:12.5px;padding:7px 10px}
.side-projects .proj-dot{background:var(--dim)}
/* Past six projects the list scrolls, so it never pushes the sessions off the sidebar. */
.proj-recent-list{display:flex;flex-direction:column;gap:1px;max-height:190px;overflow-y:auto}
.proj-recent-list:empty{display:none}
.side-projects-sep{height:1px;background:var(--line);margin:4px 2px}
.side-top{display:flex;flex-direction:column;gap:6px;padding:4px 10px 8px}
.side .sm-list{flex:1;min-height:0;max-height:none;padding:0 8px 10px}
.side .session-item{padding:7px 8px 7px 12px}
.side .si-name{font-size:12.5px}
.session-item.pinned .si-pin{display:grid}
.si-pin{display:none;flex:none;color:var(--dim);margin-left:-4px}
.si-pin svg{width:12px;height:12px}
/* Renaming (a session or a project): the row itself becomes the field. The text box has no box of its
own (no box inside a box, §3); the row it sits in gets the accent ring while you type, since it is in use,
and keeps its size, so nothing moves. */
.si-rename{
flex:1;min-width:0;height:16px;font:inherit;font-size:inherit;line-height:16px;color:var(--text);
background:transparent;border:0;border-radius:0;padding:0;margin:0;outline:none;box-shadow:none;
}
.session-item:has(.si-rename),.qtab-menu-item:has(.si-rename),.proj-pick:has(.si-rename){
background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45);cursor:text;
}
.session-item:has(.si-rename):hover,.qtab-menu-item:has(.si-rename):hover,.proj-pick:has(.si-rename):hover{
box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.85);
}
.qtab-menu.session-ctx{position:fixed;top:0;left:0;right:auto;z-index:60;min-width:150px;width:max-content}
.session-ctx svg{width:12px;height:12px;color:var(--dim);flex:none}
/* The session the agent is working in: its time becomes a pulsing dot. */
.side.working .session-item.active .si-time{font-size:0;width:7px;height:7px;border-radius:50%;background:var(--accent-hi);animation:pulse 1.4s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.side.working .session-item.active .si-time{animation:none}}
/* Seven buttons, one size and one rhythm: every button is 28x28 with the same corners, buttons inside a
group are 4px apart, and the divider between the two groups has the same room on both sides. */
.tb-actions{-webkit-app-region:no-drag;display:flex;align-items:center;gap:6px}
.tb-group,.tb-winctl{display:flex;align-items:center;gap:4px}
.tb-actions button{
width:28px;height:28px;border-radius:var(--r);display:grid;place-items:center;color:var(--dim);
}
.tb-actions button.tb-update{width:124px;display:inline-flex;justify-content:center;padding:0;margin-right:6px;line-height:16px;color:var(--text);font-size:11.5px;font-weight:600;white-space:nowrap}
.tb-actions button.tb-update[hidden]{display:none}
.tb-actions button:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
/* Run: grey when the project has nothing obvious to run, green play when it
does, and a filled green tile with a stop square while it's running. The
running state reads without motion; the ring pulse is only extra. */
.tb-actions button.run{position:relative;color:var(--good);transition:background .15s,color .15s,box-shadow .15s}
.tb-actions button.run:hover{background:transparent;color:var(--good);box-shadow:inset 0 0 0 1px rgba(111,191,134,.7)}
.tb-actions button.run .i-play{width:14px;height:14px}
.tb-actions button.run .i-stop{display:none}
.tb-actions button.run.off{color:var(--dim);opacity:.45;cursor:pointer}
.tb-actions button.run.off:hover{background:none;color:var(--dim)}
.tb-actions button.run.busy{opacity:.6;cursor:progress}
.tb-actions button.run.live{background:transparent;box-shadow:inset 0 0 0 1px rgba(111,191,134,.45)}
.tb-actions button.run.live .i-play{display:none}
.tb-actions button.run.live .i-stop{display:block;width:14px;height:14px}
.tb-actions button.run.live::after{
content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
box-shadow:0 0 0 0 rgba(111,191,134,.45);animation:run-pulse 1.8s ease-out infinite;
}
.tb-actions button.run.live:hover{background:transparent;color:var(--bad);box-shadow:inset 0 0 0 1px rgba(236,124,114,.7)}
.tb-actions button.run.live:hover::after{animation:none}
@keyframes run-pulse{0%{box-shadow:0 0 0 0 rgba(111,191,134,.45)}100%{box-shadow:0 0 0 7px rgba(111,191,134,0)}}
@media (prefers-reduced-motion: reduce){.tb-actions button.run.live::after{animation:none}}
.tb-div{width:1px;height:16px;background:var(--line);margin:0 4px}
.tb-winctl button{color:var(--dim)}
.tb-winctl button.win-close:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(236,124,114,.7)}
.tb-actions svg{width:14px;height:14px}
/* The three outline icons are drawn on differently sized canvases, so their stroke would scale unevenly:
pin it to screen pixels so every line is the same thickness. */
.tb-group svg [stroke],.tb-winctl svg [stroke]{stroke-width:1.3px;vector-effect:non-scaling-stroke}
.tb-winctl button svg{width:14px;height:14px}
/* ── Split body ──────────────────────────────────────────────────────── */
.split{flex:1;display:flex;min-height:0;min-width:0}
.split.chat-mode .pane-chat{flex:1 1 100%}
.split.chat-mode .tool,.tool.sys{display:flex}
.pane-chat{flex:1 1 47%;display:flex;flex-direction:column;min-width:0;min-height:0}
/* ── Tabs (shared by the mode picker and the chip rows) ───────────────── */
.tab{
/* One height for every tab, whatever its font (the mode tab is in the serif, the rest in mono). */
display:flex;align-items:center;gap:7px;height:var(--control-h);padding:0 11px;
border-radius:var(--r);
font-family:var(--mono);font-size:12px;color:var(--dim);
white-space:nowrap;
cursor:pointer;user-select:none;
}
.tab:hover{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.tab .dot{width:6px;height:6px;border-radius:50%;flex:none}
.tab.active{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.tab .x{margin-left:2px;opacity:0;width:11px;text-align:center}
.tab:hover .x{opacity:.55}
.tab .x:hover{opacity:1}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
/* Working = the dot fades out and back in; finished = it stops and stays lit. */
@keyframes dotblink{0%,100%{opacity:1}50%{opacity:.2}}
/* Not gated behind prefers-reduced-motion: Windows with animations off reports it, and these dots are
the one sign that a step is running. */
.k{color:var(--syn-kw)}.s{color:var(--syn-str)}.t{color:var(--syn-type)}.n{color:var(--syn-num)}.f{color:var(--syn-fn)}.p{color:var(--syn-prop)}.c{color:var(--syn-cm)}
.err-l{color:var(--bad)}
.ok-l{color:var(--good)}
.dim-l{color:var(--dim)}
.hit-l{color:var(--text)}
/* ── Receipts (split view): one-line markers in the chat marking what the
agent did, in narrative order. NOT clickable — the chat here is a reading
column, which is what separates it from the Chat view. ───────────────── */
.receipt{
display:none;align-items:center;gap:8px;width:100%;
padding:6px 9px;margin:-2px 0;border-radius:var(--r);
font-family:var(--mono);font-size:11.5px;color:var(--muted);text-align:left;
cursor:default;
}
.receipt:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.receipt .bullet{color:var(--dim);font-size:8px;line-height:1;flex:none}
.receipt .rt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.receipt .rmeta{font-size:10.5px;color:var(--dim);flex:none}
.receipt .tag{
font-size:9.5px;font-weight:700;padding:2px 7px;border-radius:var(--r);
letter-spacing:.03em;text-transform:uppercase;flex:none;
}
.receipt .tag.ok{color:var(--good);background:transparent;box-shadow:inset 0 0 0 1px rgba(111,191,134,.45)}
.receipt .tag.err{color:var(--bad);background:transparent;box-shadow:inset 0 0 0 1px rgba(236,124,114,.45)}
/* ── Inline tool calls (Chat-only view) ───────────────────────────────── */
/* Collapsed by default — a tool call is a compact line, clicking it reveals
the result. Chat view is one continuous stream; if every tool dumped its
full output permanently, a session with more than a couple of calls would
just be a wall of text. Collapsed-by-default keeps it scannable, same
spirit as the receipts + click-to-open pattern in Split view. */
/* A "read files" rollup — Chat view only. Reading is the single most
frequent, least individually interesting thing the agent does; one full
block per file would bury the two or three things that actually matter.
Instead every read in a run folds into one live line: pulsing + present
tense while it's happening, settling to a static dot + past tense once
done, with the actual files listed live underneath as each one lands. */
.readroll{display:none;flex-direction:column;gap:2px}
.split.chat-mode .readroll{display:flex}
.readroll-head{display:flex;align-items:center;gap:7px;font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.readroll-head .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none}
.readroll-head .dot.pulsing{animation:pulse 1.2s ease-in-out infinite}
.readroll-body{margin-top:2px;padding-left:17px;border-left:1px solid var(--line);font-family:var(--mono);font-size:12px;line-height:1.7;display:flex;flex-direction:column;gap:1px}
.readroll-body .file{color:var(--text);opacity:0;animation:file-land .2s ease forwards}
@keyframes file-land{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce){.readroll-body .file{animation:none;opacity:1}}
.tool{display:none;flex-direction:column;gap:2px}
.tool-head{
display:flex;align-items:center;gap:7px;padding:4px 6px;margin:-4px -6px;
border-radius:var(--r);cursor:pointer;user-select:none;
font-family:var(--mono);font-size:12.5px;color:var(--text);
}
.tool-head:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.tool-head svg{width:12px;height:12px;color:var(--dim);flex:none}
/* The head is a TITLE, one line, never a wall of wrapped text — a long
command/path clips with an ellipsis (JS truncates it too, this is the
backstop) and the full value is still there on hover as a tooltip. */
.tool-head-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tool-arg{color:var(--muted);font-weight:400}
.tool-head .tag{margin-left:auto;flex:none;font-family:var(--mono);font-size:10px;font-weight:600;padding:2px 7px;border-radius:var(--r);letter-spacing:.03em;text-transform:uppercase}
.tool-head .tag.ok{color:var(--good);background:transparent;box-shadow:inset 0 0 0 1px rgba(111,191,134,.45)}
.tool-head .chev{margin-left:auto;width:8px;height:8px;color:var(--dim);flex:none;transition:transform .18s ease;transform:rotate(90deg)}
.tool-head .tag ~ .chev{margin-left:0}
.tool.collapsed .tool-head .chev{transform:rotate(0deg)}
.tool-head .tag.err{color:var(--bad);background:transparent;box-shadow:inset 0 0 0 1px rgba(236,124,114,.45)}
/* Open by default — a tool call reads as "here's what happened," not a
question you have to click to answer. The grid-rows trick animates height
smoothly (a plain display toggle can't be animated), collapsing is the
opt-out for when a turn gets long and you want to skim past one. */
.tool-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .2s ease}
.tool.collapsed .tool-collapse{grid-template-rows:0fr}
/* The body sits a full step down from the head — smaller, dimmer, and now a
deliberately DIFFERENT font (prose is sans, everything else stays mono) so
the two are never confusable at a glance, the core complaint this fixes. */
.tool-body{overflow:hidden;min-height:0;margin-top:5px;padding-left:17px;border-left:1px solid var(--line);font-family:var(--mono);font-size:11.5px;line-height:19px;color:var(--dim);display:flex;flex-direction:column;gap:6px}
.tool-body .dim-l.prose{font-family:var(--body);font-size:12.5px;line-height:19px;color:var(--muted);white-space:normal;word-break:break-word}
.tool-body .dim-l:not(.prose){white-space:pre-wrap;word-break:break-word}
/* A real command/diff/output block — visually a piece of CODE, set apart from
the plain narrative line above it with a faint panel instead of running
straight into the text. */
.tool-detail{background:var(--glass-2);border-radius:var(--r);padding:8px 10px}
.tool-detail.is-diff{font-family:var(--mono);padding:6px 0;overflow:hidden}
/* Editor-style diff: added lines tinted green, removed lines red, each line
a full-width band like any code review tool. */
.diff-block{font-family:var(--mono);font-size:11.5px;line-height:1.6;color:var(--dim)}
.diff-line{white-space:pre-wrap;word-break:break-word;padding:0 10px;border-left:2px solid transparent}
.diff-line.diff-add{color:#D4EBDB;border-left-color:var(--good)}
.diff-line.diff-del{color:#EFD3CF;border-left-color:var(--bad)}
.diff-sign{display:inline-block;width:1.2em;font-weight:700;user-select:none}
.diff-add .diff-sign{color:var(--good)}
.diff-del .diff-sign{color:var(--bad)}
.diff-line.diff-hunk{color:var(--muted);opacity:.75}
.chat-trunc .trunc-fade{background:linear-gradient(to bottom, transparent, var(--glass))}
.tool-detail .chat-trunc .trunc-fade{background:linear-gradient(to bottom, transparent, var(--glass-2))}
/* Expanded means ALL of it — the shared .trunc cap (2000px) cut long diffs off. */
.chat-trunc.open .trunc-body{max-height:none}
/* The collapsed fade is a MASK on the content, not a gradient painted over it —
the overlay smeared a dark wash across coloured diff lines. */
.chat-trunc .trunc-fade{display:none}
.chat-trunc:not(.open) .trunc-body{
-webkit-mask-image:linear-gradient(to bottom, #000 55%, transparent);
mask-image:linear-gradient(to bottom, #000 55%, transparent);
}
/* ── Tool rows (Chat view only — .tool is hidden outside chat-mode) ───────
No box: a row is an icon badge in the colour of the KIND of work, a verb
(doing → done), the target, a short fact and the outcome on the right.
Only real code (diffs, command output) gets a panel.
One colour per family, far enough apart to tell at a glance:
looking read #74B6FF blue · search/explore #56CFE1 cyan
changing edit/write green
running commands #E8B45F amber
outside web #F28FC0 pink · MCP #D9A0F5 orchid
agents #A99BFF violet
Red only ever means failed. */
.tool{
--tk:var(--muted);
/* flex:none — .chat-body is a flex column; without it a row can be squashed. */
position:relative;gap:0;flex:none;
}
.tool[data-kind="error"],.tool.failed{--tk:var(--bad)}
/* Back-to-back steps sit close together, reading as one run of work. */
.tool + .tool{margin-top:-6px}
.tool-meta{margin-left:auto;flex:none;font-family:var(--mono);font-size:11px;color:var(--dim);white-space:nowrap}
.tool-meta:empty{display:none}
.tool-meta + .tool-status{margin-left:8px}
.tool-meta:empty + .tool-status{margin-left:auto}
.tgr-meta{margin-left:8px;color:var(--dim);font-family:var(--mono);font-size:10.5px;white-space:nowrap;flex:none}
.tool .tool-head{margin:-5px -6px;padding:5px 6px;gap:9px;font-family:var(--body);font-size:13px;line-height:20px}
/* A status dot, not an icon: white by default, green once an edit / write / check / command
has gone through, red when it failed. It blinks while the step runs and is still after. */
.tool{--dot:var(--dot-white)}
.tool.ok[data-kind="edit"],.tool.ok[data-kind="write"],.tool.ok[data-kind="check"],.tool.ok[data-kind="run"]{--dot:var(--good)}
.tool.failed,.tool[data-kind="error"]{--dot:var(--bad)}
.tool.declined{--dot:var(--dim)}
.tool-ico{width:22px;height:22px;flex:none;display:grid;place-items:center}
.tool-ico svg{display:none}
.tool-ico::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--dot);transform:translateY(1px)}
.tool.running > .tool-head .tool-ico::before{animation:dotblink 1.1s ease-in-out infinite}
.tool-verb{font-weight:600;color:var(--text)}
.tool .tool-arg{font-family:var(--mono);font-size:12px;color:var(--muted);margin-left:5px}
.tool-status{margin-left:auto;flex:none;width:16px;height:16px;display:grid;place-items:center}
.tool .tool-head .chev{margin-left:0}
.tool .tool-head .tool-status::before{content:none!important;animation:none!important}
.tool.running > .tool-head .tool-status::before{
content:'';width:11px;height:11px;border-radius:50%;box-sizing:border-box;
border:1.5px solid color-mix(in srgb, var(--tk) 25%, transparent);border-top-color:var(--tk);
animation:tool-spin .8s linear infinite;
}
.tool.ok > .tool-head .tool-status::before{content:'\2713';color:var(--good);font-size:12px;font-weight:700}
.tool.failed > .tool-head .tool-status::before{content:'\2717';color:var(--bad);font-size:12px;font-weight:700}
@keyframes tool-spin{to{transform:rotate(360deg)}}
.diff-stats{margin-left:auto;display:flex;gap:6px;flex:none;font-family:var(--mono);font-size:11px;font-weight:600}
.diff-stats + .tool-status{margin-left:4px}
.diff-stats .a{color:var(--good)}
.diff-stats .d{color:var(--bad)}
/* Body content lines up under the verb, not the icon; code panels run full width. */
.tool .tool-body{margin-top:4px;padding-left:31px;border-left:none}
.tool .tool-body:empty{display:none}
.tool .tool-detail{margin-left:0}
.sh-block{font-family:var(--mono);font-size:11.5px;line-height:1.6;color:var(--muted)}
.sh-line{white-space:pre-wrap;word-break:break-word}
.sh-line.sh-ok{color:var(--good);font-weight:600;margin-top:3px}
.sh-line.sh-fail{color:var(--bad);font-weight:600;margin-top:3px}
/* A sub-agent's own tool calls, nested under its block — one level deeper than
.tool-body's guide line, same plain-line treatment, no boxes. */
.subagent-rail{display:flex;flex-direction:column;gap:3px}
.subagent-row{display:flex;align-items:center;gap:6px;color:var(--muted)}
.subagent-row .dot{width:5px;height:5px;border-radius:50%;background:var(--dot-white);flex:none}
.subagent-row .dot.pulsing{animation:dotblink 1.1s ease-in-out infinite}
.subagent-row.err .dot{background:var(--bad)}
.subagent-row .srt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Consecutive discovery calls (reads, searches) fold into one block instead
of each filling a full row — same list-of-rows treatment as a sub-agent's
nested calls, just at the top level. */
/* Steps of one group stack two or three to a line (as many as fit), each keeping its own dot. */
.tool-group-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:4px 16px}
.tool-group-row{display:flex;align-items:center;gap:6px;min-width:0;color:var(--dim);font-size:11.5px}
.tool-group-row .dot{width:5px;height:5px;border-radius:50%;background:var(--dot-white);flex:none}
.tool-group-row .dot.pulsing{animation:dotblink 1.1s ease-in-out infinite}
.tool-group-row.err .dot{background:var(--bad)}
.tool-group-row .tgr-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tool-group-count{color:var(--dim);font-weight:400}
/* ── Settings modal ───────────────────────────────────────────────────── */
.settings-overlay{
position:fixed;inset:0;z-index:200;
background:var(--scrim);
display:flex;align-items:center;justify-content:center;
padding:32px;
}
.settings-overlay[hidden]{display:none}
.settings-modal{
width:min(860px,100%);height:min(620px,100%);
background:var(--glass);border:1px solid var(--line-2);border-radius:var(--r-lg);
box-shadow:0 40px 90px -20px var(--shadow);
display:flex;flex-direction:column;overflow:hidden;
}
.settings-head{
display:flex;align-items:center;justify-content:space-between;
height:50px;padding:0 10px 0 20px;flex:none;
border-bottom:1px solid var(--line);
}
.settings-head h2{font-family:var(--display);font-size:17px;font-weight:560;letter-spacing:-.01em;font-variation-settings:'SOFT' 60,'opsz' 24}
.settings-close{width:30px;height:30px;border-radius:var(--r);display:grid;place-items:center;color:var(--dim)}
.settings-close:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.settings-close svg{width:14px;height:14px}
.settings-body{flex:1;min-height:0;display:flex}
.settings-nav{
width:196px;flex:none;overflow-y:auto;
padding:12px;border-right:1px solid var(--line);
display:flex;flex-direction:column;gap:2px;
}
.settings-nav button{
display:flex;align-items:center;gap:9px;
/* Whole pixels: a 34px row with an 18px text line, so the icon and the text share one centre line
(an inherited 1.55 line height made 35.4px rows on half pixels, and the pair looked off-centre). */
height:34px;padding:0 10px;line-height:18px;border-radius:var(--r);
font-size:12.5px;font-weight:500;color:var(--muted);text-align:left;
}
.settings-nav button svg{width:14px;height:14px;flex:none;color:var(--dim)}
.settings-nav button:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.settings-nav button.active{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.settings-nav button.active svg{color:var(--text)}
.settings-panel{flex:1;min-width:0;overflow-y:auto;padding:22px 26px 30px;display:none;flex-direction:column}
.settings-panel.active{display:flex}
.settings-section-title{font-family:var(--display);font-size:17px;font-weight:560;letter-spacing:-.01em;font-variation-settings:'SOFT' 60,'opsz' 24;margin-bottom:4px}
.settings-section-desc{font-size:12px;color:var(--dim);margin-bottom:6px;max-width:52ch}
.settings-row{
display:flex;align-items:center;justify-content:space-between;gap:16px;
padding:13px 0;border-bottom:1px solid var(--line);
}
.settings-row:last-child{border-bottom:none}
.settings-row-icon{
width:30px;height:30px;border-radius:var(--r);flex:none;
display:grid;place-items:center;background:var(--glass-2);color:var(--muted);
}
.settings-row-icon svg{width:14px;height:14px}
.settings-row-main{display:flex;align-items:center;gap:11px;min-width:0}
.settings-row-label{display:flex;flex-direction:column;gap:2px;min-width:0}
.settings-row-label .t{font-size:13px;font-weight:600;color:var(--text)}
.settings-row-label .d{font-size:11.5px;color:var(--dim)}
.settings-row-actions{display:flex;align-items:center;gap:8px;flex:none}
/* A status beside its buttons: the same 26px height as they are, so a row reads as one line.
Connected is in use, so it is purple (white text inside); not connected is a plain grey
outline with dim text. No fills. Capitals sit high, so 1px more room above than below. */
.settings-badge{
display:inline-flex;align-items:center;height:var(--control-h);padding:1px 10px 0;
font-family:var(--mono);font-size:9.5px;font-weight:700;
border-radius:var(--r);text-transform:uppercase;letter-spacing:.04em;
flex:none;
}
.settings-badge.ok{color:var(--text);background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.settings-badge.off{color:var(--dim);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.settings-btn{
display:inline-flex;align-items:center;justify-content:center;height:var(--control-h);
font-size:11.5px;font-weight:600;padding:0 12px;border-radius:var(--r);
color:var(--text);background:transparent;flex:none;box-shadow:inset 0 0 0 1px var(--line-2)
}
.settings-btn:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.settings-btn.ghost{color:var(--text);background:transparent}
.settings-btn.ghost:hover{color:var(--text);background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
/* Provider rows are one line of text under the name, however long the list of models is. */
#provider-list .settings-row-label .d{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-pin{width:28px;height:28px;border-radius:var(--r);display:grid;place-items:center;color:var(--dim);flex:none}
.settings-pin:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.settings-pin.pinned{color:var(--text)}
.settings-pin.locked{opacity:.45;cursor:default}
.settings-pin.locked:hover{background:none}
.settings-pin svg{width:14px;height:14px}
.settings-btn.danger{color:var(--bad);background:transparent;box-shadow:inset 0 0 0 1px rgba(236,124,114,.6)}
.settings-btn.danger:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(236,124,114,.7)}
.confirm-overlay{
position:fixed;inset:0;z-index:300;
background:var(--scrim);
display:flex;align-items:center;justify-content:center;
padding:24px;
}
.confirm-overlay[hidden]{display:none}
.confirm-modal{
width:min(320px,100%);
background:var(--glass-3);border:1px solid var(--line-2);border-radius:var(--r-lg);
box-shadow:0 30px 70px -18px var(--shadow);
padding:18px;
}
.confirm-text{font-size:13px;color:var(--text);margin-bottom:14px;line-height:1.5}
.confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
/* Several answers (rewind): room for all of them on one row. */
.confirm-modal.wide{width:min(520px,100%)}
/* ── Approval dock ───────────────────────────────────────────────────────
Sits directly above the composer (same width, same radius) while the agent
waits on a decision. The composer goes inert underneath, so it reads as
"answer this first", not as a popup floating over the conversation. */
.approval-dock{
margin-bottom:8px;
border-radius:var(--r-lg);border:1px solid rgba(var(--accent-rgb),.38);
background:var(--glass-2);
padding:12px 12px 10px;
animation:ad-in .16s ease-out;
}
@keyframes ad-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.approval-dock{animation:none}}
.ad-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;min-width:0}
.ad-badge{
flex:none;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
color:var(--text);background:transparent;border-radius:var(--r);padding:2px 7px;box-shadow:inset 0 0 0 1px var(--line-2)
}
.ad-question{font-size:13.5px;font-weight:600;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* What is being agreed to: labelled rows between faint rules, like the chat's
code panels. The command is never clipped; a very long one scrolls. */
.ad-detail{
border-top:1px solid var(--line);border-bottom:1px solid var(--line);
padding:8px 2px;margin-bottom:8px;max-height:180px;overflow-y:auto;
display:grid;grid-template-columns:auto 1fr;column-gap:14px;row-gap:3px;
}
.ad-row{display:contents}
.ad-k{font-size:11.5px;color:var(--dim);line-height:1.6}
.ad-v{font-size:12.5px;color:var(--text);line-height:1.6;white-space:pre-wrap;word-break:break-word;min-width:0}
.ad-v.mono{font-family:var(--mono);font-size:12px;color:var(--code-text)}
.ad-plain{grid-column:1 / -1;font-family:var(--mono);font-size:12px;line-height:1.6;color:var(--muted);white-space:pre-wrap;word-break:break-word}
.ad-options{display:flex;flex-direction:column;gap:2px}
.ad-opt{
display:flex;align-items:center;gap:10px;min-width:0;
padding:6px 8px;border-radius:var(--r);cursor:pointer;
font-size:13px;color:var(--muted);
}
.ad-opt.on{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.ad-num{
flex:none;width:18px;height:18px;border-radius:var(--r);display:grid;place-items:center;
font-family:var(--mono);font-size:10.5px;color:var(--dim);background:transparent;
}
.ad-opt.on .ad-num{background:transparent;color:var(--text);}
.ad-label{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ad-opt:not(.ad-text) .ad-label{flex:1 1 auto}
/* The typed answer: "No" and a field on the same row, the field waking up when
the row is highlighted. */
.ad-input{
flex:1;min-width:0;background:transparent;border:0;outline:none;
font-size:13px;color:var(--text);padding:0;
}
.ad-input::placeholder{color:var(--dim)}
.ad-opt.ad-text:not(.on) .ad-input::placeholder{opacity:.6}
.ad-hint{margin-top:8px;padding-left:8px;font-size:11px;color:var(--dim)}
.ad-hint kbd{
font-family:var(--mono);font-size:10px;color:var(--text);
background:transparent;border-radius:var(--r-sm);padding:0;margin:0 1px;
}
.cbox textarea:disabled{opacity:.45;cursor:default}
/* On/off switch, built like every other box: an outline, never a fill. Off: grey outline, dim
knob on the left. On: the selected purple outline, white knob on the right. Even sizes. */
.sw{
width:36px;height:20px;border-radius:var(--r-lg);position:relative;cursor:pointer;flex:none;
background:transparent;box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .15s;
}
.sw::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:var(--r-sm);background:var(--dim);transition:transform .15s,background .15s}
.sw:hover{box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.sw.on{box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.sw.on:hover{box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.85)}
.sw.on::after{transform:translateX(16px);background:var(--text)}
.settings-seg{display:flex;background:transparent;border-radius:var(--r);padding:0;gap:4px;flex:none}
.settings-seg button{display:inline-flex;align-items:center;height:var(--control-h);padding:0 12px;border-radius:var(--r);font-size:11.5px;font-weight:600;color:var(--muted)}
.settings-seg button:hover{color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.settings-seg button.active{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.mode-swatch{width:9px;height:9px;border-radius:var(--r-sm);flex:none}
.settings-search{
display:flex;align-items:center;gap:8px;flex:none;
padding:8px 12px;margin:14px 0 4px;
border-radius:var(--r);border:1px solid var(--line-2);background:var(--glass-2);
}
.settings-search:focus-within{border-color:var(--accent)}
.settings-search svg{width:14px;height:14px;color:var(--dim);flex:none}
.settings-search input{
flex:1;min-width:0;background:none;border:none;outline:none;
color:var(--text);font-size:12.5px;font-family:inherit;
}
.settings-search input::placeholder{color:var(--dim)}
.settings-input{
height:var(--control-h);width:200px;flex:none;padding:0 11px;border-radius:var(--r);
border:1px solid var(--line-2);background:var(--glass-2);outline:none;
color:var(--text);font-size:12.5px;font-family:inherit;transition:border-color .12s;
}
.settings-input::placeholder{color:var(--dim)}
.settings-input:focus{border-color:var(--accent)}
.settings-list{display:flex;flex-direction:column}
.settings-empty{padding:24px 0;text-align:center;font-size:12px;color:var(--dim)}
/* ── Chat pane ───────────────────────────────────────────────────────── */
.chat-head{
display:flex;align-items:center;gap:8px;
/* The 1px on top balances the 1px border below, so buttons centre on whole pixels. */
height:44px;padding:1px 6px 0 16px;border-bottom:1px solid var(--line);flex:none;
-webkit-app-region:drag;
}
.chat-head > *{-webkit-app-region:no-drag}
.app:not(.side-closed):not(.side-float) .side-open{display:none}
.chat-head .side-open{margin-left:-8px}
.head-actions{margin-left:auto;padding-left:10px}
.shells-wrap:not([hidden]) ~ .head-actions,.limit-meter:not([hidden]) ~ .head-actions{margin-left:14px}
.chat-head .session-pick{
display:flex;align-items:center;gap:5px;min-width:0;flex:none;
height:28px;padding:0 10px 0 9px;border-radius:var(--r);
font-size:11.5px;font-weight:600;
background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--line-2)
}
.chat-head .session-pick:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.chat-head .session-pick .bubble{width:10px;height:10px;color:var(--text);flex:none}
.chat-head .session-pick .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ── Quick tabs (chat header) ──────────────────────────────────────────── */
.qtabs{display:flex;align-items:center;gap:6px;flex:none}
.qtab-wrap{position:relative}
.qtabs .tab{cursor:pointer}
.qtab-menu{
position:absolute;top:calc(100% + 6px);right:0;z-index:20;
background:var(--glass-3);border:1px solid var(--line-2);border-radius:var(--r-lg);
padding:4px;display:flex;flex-direction:column;gap:1px;
box-shadow:0 14px 34px -10px var(--shadow);
min-width:150px;
}
.qtab-menu[hidden]{display:none}
.qtab-menu.up{top:auto;bottom:calc(100% + 6px);box-shadow:0 -14px 34px -10px var(--shadow)}
.qtab-menu.wide{left:0;right:auto;min-width:240px}
/* ── Sessions menu ────────────────────────────────────────────────────
New session and search first, then the list, grouped by day, that scrolls on
its own while the top stays put. One line per session: its title and when. */
.session-menu{left:0;right:auto;width:320px;padding:0;gap:0;overflow:hidden}
.sm-top{display:flex;flex-direction:column;gap:6px;padding:8px;border-bottom:1px solid var(--line)}
.sm-new{
display:flex;align-items:center;justify-content:center;gap:7px;height:32px;border-radius:var(--r);
font-size:12px;font-weight:600;color:var(--text);
background:transparent;border:1px solid var(--line-2);
transition:background .12s,border-color .12s;
}
.sm-new:hover{background:transparent;border-color:rgba(var(--accent-rgb),.7)}
.sm-new svg{width:12px;height:12px;flex:none}
/* The search: the same height as New session above it, whole pixels, and the accent ring while you type in it. */
.sm-search{
display:flex;align-items:center;gap:8px;height:32px;padding:0 6px 0 10px;border-radius:var(--r);
background:var(--glass-2);border:1px solid var(--line-2);cursor:text;
}
.sm-search:hover{border-color:rgba(var(--accent-rgb),.7)}
.sm-search:focus-within{border-color:rgba(var(--accent-rgb),.45)}
.sm-search:focus-within:hover{border-color:rgba(var(--accent-rgb),.85)}
.sm-search > svg{width:12px;height:12px;color:var(--dim);flex:none}
.sm-search:focus-within > svg{color:var(--text)}
.sm-search input{flex:1;min-width:0;height:16px;line-height:16px;padding:0;background:none;border:0;outline:none;font-size:12px;color:var(--text)}
.sm-clear{flex:none;width:20px;height:20px;display:grid;place-items:center;border-radius:var(--r);color:var(--dim);background:transparent}
.sm-clear:hover{color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.sm-clear svg{width:10px;height:10px}
.sm-clear[hidden]{display:none}
.proj-result .si-pin{display:grid;color:var(--dim)}
.sm-search input::placeholder{color:var(--dim)}
.sm-list{max-height:min(380px, 60vh);overflow-y:auto;padding:4px 6px 6px}
.sm-group{
font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
color:var(--dim);padding:10px 8px 4px;
}
.sm-group:first-child{padding-top:6px}
.session-item{
position:relative;display:flex;align-items:center;gap:10px;width:100%;
padding:7px 8px 7px 12px;border-radius:var(--r);text-align:left;
}
.session-item:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.si-name{flex:1;min-width:0;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-item:hover .si-name{color:var(--text)}
.si-time{flex:none;font-size:10.5px;color:var(--dim);font-family:var(--mono);font-variant-numeric:tabular-nums}
.session-item.active{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45)}
.session-item.active .si-name{color:var(--text);font-weight:600}
.session-item.active .si-time{color:var(--text)}
.sm-empty{padding:18px 10px;text-align:center;font-size:12px;color:var(--dim)}
.qtab-menu.up.left{right:auto;left:0}
#provider-menu{max-height:280px;overflow-y:auto;min-width:150px}
#model-menu{max-height:320px;overflow-y:auto;min-width:220px}
.qtab-menu-item{
display:flex;align-items:center;gap:7px;
padding:6px 9px;border-radius:var(--r);
font-size:11.5px;font-weight:500;color:var(--muted);text-align:left;
}
.qtab-menu-item:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.qtab-menu-item .dot{width:6px;height:6px;border-radius:50%;flex:none}
.qtab-menu-row{
display:flex;align-items:center;justify-content:space-between;gap:12px;
padding:6px 9px;font-size:11.5px;color:var(--muted);
}
.qtab-menu-sep{height:1px;background:var(--line);margin:3px 2px}
.qtab-menu-remove{
padding:6px 9px;border-radius:var(--r);
font-size:11.5px;font-weight:500;color:var(--bad);text-align:left;
}
.qtab-menu-remove:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(236,124,114,.7)}
.chat-body{flex:1;min-height:0;overflow-y:auto;padding:16px 18px 26px;display:flex;flex-direction:column;gap:14px}
.thinking{
display:flex;align-items:center;gap:7px;
font-size:12px;color:var(--dim);font-style:italic;
}
.thinking .spark{font-style:normal}
.spark{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--dot-white);font-size:0;vertical-align:middle;margin-right:2px}
/* A shared, tasteful entrance for anything JS drops into the chat live —
without it every receipt/tool/card just pops into existence, which reads
as cheap. Deliberately NOT gated behind prefers-reduced-motion — this is a
discrete, one-shot signal that something just happened (a reply, a tool
call), not ambient motion, and Windows' "Show animations" toggle being off
maps straight to prefers-reduced-motion in Chromium. */
.enter{animation:enter-in .22s cubic-bezier(.22,.61,.36,1) both}
@keyframes enter-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.user-msg{
align-self:flex-end;max-width:80%;
background:var(--glass-2);border:1px solid var(--line);
border-radius:var(--r-lg);padding:9px 12px;
font-size:13.5px;color:var(--text);
}
/* Chat view is the CLI-style, everything-inline experience — a floating
right-aligned chat bubble reads as a generic chatbot and undercuts that.
Here your message becomes a left-aligned prompt line instead, like
something actually typed at a terminal. */
/* Right-aligned and visibly its own thing — the agent's replies are plain,
unstyled, left-aligned prose, so your side needs to read differently at a
glance, not just sit on the other edge. Keeps the mono/prompt-marker
flavor so it still feels like this session, not a generic chat bubble. */
.split.chat-mode .user-msg{
align-self:flex-end;max-width:75%;
/* Plain, like the message box it was typed in: no colour, no marker. */
background:var(--glass-2);border:1px solid var(--line-2);
border-radius:var(--r-lg);padding:8px 13px;
font-family:var(--mono);font-size:12.5px;color:var(--text);
display:flex;align-items:center;flex-wrap:wrap;gap:7px;
}
/* Sent while a turn was already running — visibly waiting, not silently
dropped or (worse) indistinguishable from an already-answered message. */
.queued-badge{
font-family:var(--mono);font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
color:var(--accent-hi);background:var(--tint-3);border-radius:var(--r);padding:2px 6px;flex:none;
}
/* A plain dot, not a text glyph — renders crisp at any size/font, unlike a
unicode character that can drift between fonts. Distinct shape from the
agent's sparkle mark below, so the two sides read apart at a glance even
with the colour and alignment already doing most of that work. */
.caret{display:inline-block;width:2px;height:1em;background:var(--accent-hi);margin-left:1px;vertical-align:text-bottom;animation:caret-blink 1s step-start infinite}
@keyframes caret-blink{50%{opacity:0}}
/* The agent's reply gets a small mark of its own — a plain sparkle, the same
family as the thinking picker's, so "something is speaking here" reads at a
glance the way the user's dot does on the other side. Top-aligned with the
first line, not a big avatar column — this is a mark, not a portrait. */
.msg{display:flex;align-items:flex-start;gap:8px}
.msg-mark{display:block;width:11px;height:11px;color:var(--dot-white);flex:none;margin-top:3px}
.msg.live .msg-mark{animation:dotblink 1.1s ease-in-out infinite}
.msg-body{min-width:0}
.msg-body{flex:1}
/* The inline "about to answer" placeholder — three dots where the reply text
will land, swapped out the instant real content arrives. */
.thinking-dots{display:flex;gap:4px;align-items:center;height:1.4em;margin:0}
.thinking-dots span{width:5px;height:5px;border-radius:50%;background:var(--dim);animation:thinking-bounce 1.1s ease-in-out infinite}
.thinking-dots span:nth-child(2){animation-delay:.15s}
.thinking-dots span:nth-child(3){animation-delay:.3s}
@keyframes thinking-bounce{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-3px);opacity:1}}
/* Not gated behind prefers-reduced-motion — same reasoning as .enter above:
this IS the "is it still working" signal, not decoration. */
.msg h3{font-size:15px;font-weight:700;letter-spacing:-.01em;margin-bottom:6px;text-wrap:balance}
/* pre-wrap so the model's own paragraph breaks (\n\n) actually show — plain
`normal` white-space collapses every newline, which is the real reason a
long multi-paragraph reply read as one unbroken wall of text. */
.msg p{font-size:13.5px;line-height:22px;color:var(--prose);margin-bottom:8px;white-space:pre-wrap}
.msg p:last-child{margin-bottom:0}
.msg code{font-family:var(--mono);font-size:.9em;background:var(--glass-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:1px 5px;color:var(--code-text)}
/* Rendered markdown in agent replies. marked emits <br> for line breaks, so
paragraphs go back to normal white-space or every break would show twice. */
.md{font-size:13.5px;line-height:22px;color:var(--prose);overflow-wrap:anywhere}
.md p{white-space:normal}
.md > :first-child{margin-top:0}
.md > :last-child{margin-bottom:0}
.md strong{color:var(--text);font-weight:700}
.md em{font-style:italic}
.md del{opacity:.7}
.md a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.md h1,.md h2,.md h3,.md h4{color:var(--text);font-weight:700;letter-spacing:-.01em;line-height:24px;margin:14px 0 6px}
.md h1,.md h2{font-family:var(--display);font-weight:580;letter-spacing:-.012em;font-variation-settings:'SOFT' 60,'opsz' 28}
.md h1{font-size:17px}
.md h2{font-size:15.5px}
.md h3,.md h4{font-size:14px}
.md ul,.md ol{margin:0 0 8px;padding-left:20px}
.md li{margin:2px 0}
.md li::marker{color:var(--dim)}
.md li > p{margin-bottom:4px}
.md blockquote{margin:0 0 8px;padding-left:12px;border-left:2px solid var(--line-2);color:var(--muted)}
.md hr{border:0;border-top:1px solid var(--line);margin:12px 0}
.md pre{margin:0 0 8px;padding:10px 12px;background:var(--glass-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow-x:auto}
.md pre code{background:none;border:0;padding:0;color:var(--code-text);font-size:12.5px;white-space:pre}
.md table{border-collapse:collapse;margin:0 0 8px;display:block;overflow-x:auto}
.md th,.md td{border:1px solid var(--line);padding:4px 10px;text-align:left}
.md th{color:var(--text);font-weight:600}
.list{display:flex;flex-direction:column;gap:8px;margin:4px 0 2px}
.list .item{position:relative;padding-left:15px;font-size:13.5px;line-height:21px;color:var(--prose)}
.list .item b{color:var(--text);font-weight:700}
.list .item::before{content:"";position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.diffcard{
display:flex;align-items:center;gap:10px;
padding:9px 11px;border-radius:var(--r-lg);
background:var(--glass-2);border:1px solid var(--line);
transition:border-color .12s,background .12s;
}
/* Chat view: strip the box entirely, matching the plain .tool-head line
Run/Search already use — a card here is inconsistent with everything
else and reads as a mistake, not a design choice. */
.split.chat-mode .diffcard{
cursor:pointer;user-select:none;
padding:4px 6px;margin:-4px -6px;border-radius:var(--r);
background:none;border:none;
}
.split.chat-mode .diffcard:hover{background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.diffcard svg{width:14px;height:14px;color:var(--muted);flex:none}
.diffcard .chev{width:8px;height:8px;color:var(--dim);transition:transform .18s ease;transform:rotate(90deg)}
.diffcard-wrap.collapsed .diffcard .chev{transform:rotate(0deg)}
.diffcard-collapse{display:grid;grid-template-rows:1fr;transition:grid-template-rows .2s ease;margin-top:6px}
.diffcard-wrap.collapsed .diffcard-collapse{grid-template-rows:0fr;margin-top:0}
.diffcard-body{
overflow:hidden;min-height:0;
padding-left:17px;border-left:1px solid var(--line);
font-family:var(--mono);font-size:12px;line-height:1.7;display:flex;flex-direction:column;gap:2px;
}
/* A long written/edited file gets a preview height with a fade at the
bottom, not the whole thing dumped inline — "Show N more lines" reveals
the rest. Open-by-default is right for a short result; it stops being
right once a result is hundreds of lines. */
.trunc{position:relative}
.trunc-body{max-height:126px;overflow:hidden}
.trunc.open .trunc-body{max-height:2000px}
.trunc-fade{
position:absolute;left:0;right:0;bottom:28px;height:32px;
background:linear-gradient(to bottom, transparent, var(--glass-2));
pointer-events:none;
}
.trunc.open .trunc-fade{display:none}
.trunc-more{
display:flex;align-items:center;gap:5px;width:100%;
padding:6px 0 0;margin-top:2px;
font-family:var(--mono);font-size:11px;font-weight:600;color:var(--muted);
cursor:pointer;
}
.trunc-more:hover{color:var(--accent)}
.trunc-more svg{width:8px;height:8px;transition:transform .18s ease}
.trunc.open .trunc-more svg{transform:rotate(180deg)}
.diffcard .name{font-family:var(--mono);font-size:12.5px;color:var(--text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.diffcard .stat{font-family:var(--mono);font-size:11.5px;display:flex;gap:6px;flex:none}
.diffcard .stat .a{color:var(--good)}
.diffcard .stat .d{color:var(--bad)}
.review{
display:flex;align-items:center;gap:10px;
padding:9px 12px;border-radius:var(--r-lg);
background:transparent;border:1px solid rgba(234,183,103,.25);
}
.review svg{width:14px;height:14px;color:var(--warn);flex:none}
.review .t{flex:1;font-size:12.5px;color:#EFE0BE}
.review button{font-size:12px;font-weight:600;padding:5px 11px;border-radius:var(--r)}
.review .undo{color:var(--muted)}
.review .undo:hover{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.7)}
.review .keep{background:var(--text);color:#15161C}
.review .keep:hover{background:#fff}
/* ── Composer ────────────────────────────────────────────────────────── */
.composer{padding:0 14px 12px;flex:none}
.cbox{
border-radius:var(--r-lg);border:1px solid var(--line-2);
background:var(--glass-2);
padding:13px 12px 8px;
}
.cbox:focus-within{border-color:var(--accent)}
/* A marathon is running: the status strip stays, and a light also runs round the composer's
edge like a runner on a track. It is only a ring, never a fill. */
@property --runner{syntax:'<angle>';initial-value:0deg;inherits:false}
.cbox{position:relative}
.cbox.runner::before{
content:'';position:absolute;inset:-1px;padding:2px;border-radius:var(--r-lg);pointer-events:none;
background:conic-gradient(from var(--runner),transparent 0deg,transparent 250deg,rgba(var(--accent-rgb),.25) 300deg,rgba(var(--accent-hi-rgb),.95) 360deg);
-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
-webkit-mask-composite:xor;mask-composite:exclude;
animation:runner-lap 2.6s linear infinite;
}
/* Not gated behind prefers-reduced-motion: Windows with animations off reports it, and this is the
one signal that a marathon is running. */
@keyframes runner-lap{to{--runner:360deg}}
/* ── Composer status strip (Chat view) ──────────────────────────────────
Part of the composer's own flow, so it can never sit on top of the chat;
opening it shrinks the chat pane, which the auto-follow observer handles.