Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
2369 lines (2140 loc) · 80.2 KB
/
Copy pathindex.css
File metadata and controls
2369 lines (2140 loc) · 80.2 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
@import "tailwindcss";
@custom-variant dark (&:is(.dark, .dark *));
@custom-variant light (&:not(.dark, .dark *));
/* Window Controls Overlay: active when Electron exposes native titlebar control geometry. */
@custom-variant wco (&:is(.wco, .wco *));
/* Secondary hovering pointers reveal sidebar actions on touch-primary devices. */
@custom-variant any-hover {
@media (any-hover: hover) {
&:hover {
@slot;
}
}
}
/* On mobile, morph the expanded hero composer into the compact docked
composer while it moves; the rest of the app remains visually stationary. */
html[data-mobile-composer-route-transition="true"]::view-transition-old(root),
html[data-mobile-composer-route-transition="true"]::view-transition-new(root) {
animation: none;
}
html[data-mobile-composer-route-transition="true"]::view-transition-group(t3-mobile-composer) {
animation-duration: var(--mobile-composer-transition-duration);
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-mobile-composer-route-transition="true"]::view-transition-image-pair(t3-mobile-composer) {
isolation: isolate;
}
html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobile-composer) {
animation: t3-mobile-composer-old var(--mobile-composer-transition-duration) linear both;
mix-blend-mode: normal;
}
html[data-mobile-composer-route-transition="true"]::view-transition-new(t3-mobile-composer) {
animation: t3-mobile-composer-new var(--mobile-composer-transition-duration) linear both;
mix-blend-mode: normal;
}
/* The expanded and compact composers have different internal layouts. Use a
brief crossfade while their shared wrapper moves so the layout change does
not read as a single-frame cut. */
@keyframes t3-mobile-composer-old {
0%,
35% {
opacity: 1;
}
65%,
100% {
opacity: 0;
}
}
@keyframes t3-mobile-composer-new {
0%,
35% {
opacity: 0;
}
65%,
100% {
opacity: 1;
}
}
html[data-mobile-composer-route-transition="true"]::view-transition-group(t3-mobile-draft-headline) {
animation-duration: var(--mobile-composer-transition-duration);
}
html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobile-draft-headline) {
animation: t3-mobile-draft-headline-exit var(--mobile-composer-transition-duration)
cubic-bezier(0.4, 0, 1, 1) both;
mix-blend-mode: normal;
}
@keyframes t3-mobile-draft-headline-exit {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-6px);
}
}
:root {
--app-scrollbar-width: 6px;
--appearance-contrast-base: 100%;
--appearance-contrast-boost: 0%;
--appearance-contrast-border-boost: 0%;
--appearance-contrast-target: black;
--app-scrollbar-thumb: rgb(217 217 217);
--app-scrollbar-thumb-hover: rgb(191 191 191);
/*
* Compact UI geometry. Keep these values semantic so sidebar, palette,
* tooltip, and toolbar controls cannot quietly drift apart.
*/
--control-radius: 0.5rem;
--sidebar-content-inset: 0.5rem;
--sidebar-control-gap: 0.5rem;
--sidebar-icon-color: color-mix(
in srgb,
var(--contrast-sidebar-muted-foreground) 60%,
var(--sidebar)
);
--sidebar-row-content-inset: 0.625rem;
--command-shell-inset: 0.5rem;
--command-content-inset: 1rem;
--floating-content-inset: 0.75rem;
/* App layer order: docked sheets, then the floating preview player (47–49, see
previewMiniPlayerLayout.ts), then dialogs and popovers (50 and up). */
--z-sheet: 46;
--glass-blur: 12px;
--glass-opacity: 80%;
--glass-saturation: 1.14;
--desktop-window-right-resize-inset: 0px;
--workspace-topbar-height: 52px;
--workspace-controls-top: 0px;
--workspace-controls-left: calc(env(safe-area-inset-left) + 0.75rem);
--workspace-controls-right: calc(env(safe-area-inset-right) + 0.75rem);
--workspace-native-controls-inset: 0px;
--workspace-titlebar-control-size: 1.75rem;
--workspace-titlebar-control-gap: 0.75rem;
--workspace-titlebar-scroll-fade-height: 1.5rem;
--chat-content-max-width: 46rem;
--thread-details-panel-width: 17.5rem;
/* The prompt on phones: iOS zooms into any input under 16px on focus. */
--font-size-prompt-touch: max(var(--font-size-prompt, 1rem), 16px);
/* Horizontal gutter shared by the page header and the chat column, clear of
the device's safe area. */
--workspace-gutter: 0.75rem;
--workspace-gutter-start: calc(env(safe-area-inset-left) + var(--workspace-gutter));
--workspace-gutter-end: calc(env(safe-area-inset-right) + var(--workspace-gutter));
@variant sm {
--workspace-gutter: 1.25rem;
}
@variant dark {
--appearance-contrast-target: white;
--app-scrollbar-thumb: rgb(255 255 255 / 8%);
--app-scrollbar-thumb-hover: rgb(255 255 255 / 12%);
--glass-blur: 16px;
--glass-saturation: 1.08;
}
}
.wco {
--workspace-topbar-height: max(40px, env(titlebar-area-height, 52px));
--workspace-controls-top: env(titlebar-area-y, 0px);
--workspace-controls-left: calc(env(titlebar-area-x, 0px) + 0.75rem);
--workspace-controls-right: calc(
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
);
--workspace-native-controls-inset: calc(
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
);
}
/* The font tokens are declared outside the inline theme so utilities reference
the variables and Settings -> Appearance can override them at runtime. The
default stacks are mirrored in `appearanceFonts.ts`. */
@theme {
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
--font-mono:
ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
@theme inline {
/* Two steps below Tailwind's text-xs (12px) for dense UI: metadata rows,
badges, counters, keyboard hints and diagnostics tables. 2xs is 11px,
3xs is 10px. Provider icon overlays use 4xs (8px) and 5xs (7px) to fit
their smaller badges. Registered with tailwind-merge in
lib/utils.ts so cn() treats them as font sizes, not colours. */
--text-2xs: 0.6875rem;
--text-2xs--line-height: calc(1 / 0.6875);
--text-3xs: 0.625rem;
--text-3xs--line-height: calc(0.875 / 0.625);
--text-4xs: 0.5rem;
--text-4xs--line-height: 1;
--text-5xs: 0.4375rem;
--text-5xs--line-height: 1;
/* Motion. drawer is the decelerating curve for surfaces that slide or pop in
(composer context, pills). */
--inset-shadow-control-highlight: 0 1px rgb(255 255 255 / 16%);
--inset-shadow-control-pressed: 0 1px rgb(0 0 0 / 8%);
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
/* The composer's elevation: a soft drop pulled in under the surface, shared
by the composer, its context strip and attached banners. */
--shadow-composer: 0 12px 28px -18px rgb(0 0 0 / 40%);
--shadow-composer-dark: 0 14px 32px -18px rgb(0 0 0 / 75%);
/* Dark-mode shade where an attached surface meets the composer: 10px of
shadow fading away from the seam. Inline, so the offsets resolve on the
element. below: the context strip under the composer (1rem seam, faint
white fill). above: an attached banner over it (its tint on top). */
--background-image-composer-seam-below:
linear-gradient(
to bottom,
transparent 0 1rem,
rgb(0 0 0 / 18%) 1rem,
transparent calc(1rem + 10px)
),
linear-gradient(rgb(255 255 255 / 1%), rgb(255 255 255 / 1%));
--background-image-composer-seam-above:
linear-gradient(var(--chat-composer-attached-tint), var(--chat-composer-attached-tint)),
linear-gradient(
to top,
transparent 0 var(--chat-composer-attachment-overlap),
rgb(0 0 0 / 18%) var(--chat-composer-attachment-overlap),
transparent calc(var(--chat-composer-attachment-overlap) + 10px)
);
--color-zinc-25: oklch(99.2% 0 0);
--animate-skeleton: skeleton 2.4s infinite;
/* Duty-cycled indicator animations: long holds with stepped ramps, so the
compositor updates discrete frames instead of every vsync. */
--animate-status-pulse: status-pulse 2s infinite;
--animate-status-ping: status-ping 2s infinite;
--color-warning-foreground: var(--warning-foreground);
--color-warning: var(--warning);
--color-warning-surface: var(--warning-surface);
--color-error-foreground: var(--error-foreground);
--color-tool-error-icon: var(--tool-error-icon);
--color-error: var(--error);
--color-error-surface: var(--error-surface);
--color-update-foreground: var(--update-foreground);
--color-update: var(--update);
--color-update-surface: var(--update-surface);
--color-success-foreground: var(--success-foreground);
--color-success: var(--success);
--color-diff-addition: var(--diff-addition);
--color-diff-deletion: var(--diff-deletion);
--color-diff-addition-foreground: var(--diff-addition-foreground);
--color-diff-deletion-foreground: var(--diff-deletion-foreground);
--color-info-foreground: var(--info-foreground);
--color-info: var(--info);
--color-destructive-foreground: var(--destructive-foreground);
--color-ring: var(--ring);
--color-input: var(--contrast-input);
--color-border: var(--contrast-border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--contrast-accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--contrast-muted-foreground);
--color-muted: var(--muted);
--color-placeholder: var(--contrast-placeholder);
--color-secondary-label: var(--contrast-secondary-label);
--color-icon-muted: var(--contrast-icon-muted);
--color-secondary-foreground: var(--contrast-secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--contrast-popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--contrast-card-foreground);
--color-card: var(--card);
--color-code: var(--code-background);
--color-code-foreground: var(--code-foreground);
--color-foreground: var(--contrast-foreground);
--color-background: var(--background);
--color-surface-raised: var(--surface-raised);
--color-message: var(--message-surface);
--color-message-foreground: var(--contrast-message-foreground);
--color-message-action: var(--message-action);
--color-message-action-foreground: var(--message-action-foreground);
--color-message-action-hover: var(--message-action-hover);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--contrast-sidebar-foreground);
--color-sidebar-muted-foreground: var(--contrast-sidebar-muted-foreground);
--color-sidebar-control-surface: var(--sidebar-control-surface);
--color-sidebar-row-hover: var(--sidebar-row-hover);
--color-sidebar-row-active: var(--sidebar-row-active);
--color-sidebar-row-selected: var(--sidebar-row-selected);
--color-sidebar-border: var(--contrast-sidebar-border);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--radius-2xl: calc(var(--radius) + 8px);
--radius-3xl: calc(var(--radius) + 12px);
@keyframes skeleton {
/* The single loading-bar breath used by every skeleton: one opacity pulse
per container, stepped so however many bars sit under it, the compositor
draws a handful of discrete frames per cycle rather than one per vsync —
which on a 120Hz display is the difference between ~14 and ~288 updates. */
0%,
42% {
opacity: 1;
animation-timing-function: steps(4);
}
50%,
92% {
opacity: 0.55;
animation-timing-function: steps(4);
}
100% {
opacity: 1;
}
}
@keyframes status-pulse {
0%,
40% {
opacity: 1;
animation-timing-function: steps(6);
}
50%,
90% {
opacity: 0.5;
animation-timing-function: steps(6);
}
100% {
opacity: 1;
}
}
@keyframes status-ping {
/* Burst first (immediate feedback for click ripples), then hold
invisible for the rest of the cycle. Mirrors animate-ping's
75%-scale start. */
0% {
opacity: 0.9;
scale: 0.75;
animation-timing-function: steps(8);
}
40%,
100% {
opacity: 0;
scale: 2;
}
}
}
@utility surface-glass {
background: color-mix(in srgb, var(--background) var(--glass-opacity), transparent);
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
background: var(--background) !important;
}
}
@utility alert-glass {
--alert-glass-tint: transparent;
background:
linear-gradient(
color-mix(in srgb, var(--alert-glass-tint) 4%, transparent),
color-mix(in srgb, var(--alert-glass-tint) 4%, transparent)
),
color-mix(in srgb, var(--background) var(--glass-opacity), transparent) !important;
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
&[data-variant="error"] {
--alert-glass-tint: var(--destructive);
}
&[data-variant="info"] {
--alert-glass-tint: var(--info);
}
&[data-variant="success"] {
--alert-glass-tint: var(--success);
}
&[data-variant="warning"] {
--alert-glass-tint: var(--warning);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
background: var(--background) !important;
}
}
/* Paint find results without changing rendered markdown or copied text. */
::highlight(t3-thread-find) {
color: var(--app-theme-search-match-foreground, oklch(0.216164 0.028283 77.423));
background-color: var(--app-theme-search-match-background, oklch(0.915 0.11 85));
@variant dark {
color: var(--app-theme-search-match-foreground, oklch(0.970151 0 0));
background-color: var(--app-theme-search-match-background, oklch(0.55 0.1 85));
}
}
::highlight(t3-thread-find-active) {
color: var(--app-theme-search-match-active-foreground, oklch(0.216164 0.028283 77.423));
background-color: var(
--app-theme-search-match-active-background,
oklch(0.774202 0.151946 74.331)
);
}
@utility dialog-glass {
background: color-mix(in srgb, var(--background) var(--glass-opacity), transparent);
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
border-color: color-mix(in srgb, var(--contrast-foreground) 10%, transparent);
box-shadow: 0 24px 64px -24px rgb(0 0 0 / 65%);
@variant dark {
border-color: color-mix(in srgb, var(--color-white) 8%, transparent);
box-shadow:
inset 0 1px rgb(255 255 255 / 4%),
0 24px 72px -20px rgb(0 0 0 / 90%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
background: var(--popover) !important;
}
}
@utility dialog-backdrop {
background: color-mix(in srgb, var(--background) 60%, transparent);
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
@variant dark {
background: color-mix(in srgb, var(--background) 64%, transparent);
}
}
@utility dropdown-glass {
background: color-mix(
in srgb,
var(--popover) 18%,
color-mix(in srgb, var(--popover) var(--glass-opacity), transparent)
);
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
border: 1px solid color-mix(in srgb, var(--contrast-foreground) 10%, transparent);
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
background: var(--popover) !important;
}
}
@utility topbar-scroll-fade {
-webkit-mask-image:
linear-gradient(
to bottom,
transparent 0%,
rgb(0 0 0 / 10%) 10%,
rgb(0 0 0 / 30%) 24%,
rgb(0 0 0 / 58%) 42%,
rgb(0 0 0 / 82%) 62%,
rgb(0 0 0 / 96%) 82%,
black 100%
),
linear-gradient(black, black), linear-gradient(black, black);
-webkit-mask-position: top, bottom, right;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size:
100% calc(var(--workspace-titlebar-scroll-fade-height) + 1px),
100% calc(100% - var(--workspace-titlebar-scroll-fade-height)),
var(--app-scrollbar-width) 100%;
mask-image:
linear-gradient(
to bottom,
transparent 0%,
rgb(0 0 0 / 10%) 10%,
rgb(0 0 0 / 30%) 24%,
rgb(0 0 0 / 58%) 42%,
rgb(0 0 0 / 82%) 62%,
rgb(0 0 0 / 96%) 82%,
black 100%
),
linear-gradient(black, black), linear-gradient(black, black);
mask-position: top, bottom, right;
mask-repeat: no-repeat;
mask-size:
100% calc(var(--workspace-titlebar-scroll-fade-height) + 1px),
100% calc(100% - var(--workspace-titlebar-scroll-fade-height)),
var(--app-scrollbar-width) 100%;
}
/* Virtualizers own their native scroll element, so they cannot use ScrollArea's
viewport fade. Keep the scrollbar lane opaque while sharing the same fade
contract across those lists. */
@utility virtualized-scroll-fade {
-webkit-mask-image: var(--virtualized-scroll-fade-mask), linear-gradient(black, black);
mask-image: var(--virtualized-scroll-fade-mask), linear-gradient(black, black);
-webkit-mask-position: left, right;
mask-position: left, right;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-size:
calc(100% - var(--app-scrollbar-width)) 100%,
var(--app-scrollbar-width) 100%;
mask-size:
calc(100% - var(--app-scrollbar-width)) 100%,
var(--app-scrollbar-width) 100%;
}
/* Stage-channel art needs a mask and pseudo-element gradient, so keep the
behavior composable without tying it to the global components layer. */
@utility sidebar-stage-backdrop {
--stage-fade: var(--sidebar-stage-fade, var(--app-chrome-background));
mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
&::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
transparent 0%,
transparent 28%,
color-mix(in srgb, var(--stage-fade) 10%, transparent) 40%,
color-mix(in srgb, var(--stage-fade) 30%, transparent) 52%,
color-mix(in srgb, var(--stage-fade) 58%, transparent) 64%,
color-mix(in srgb, var(--stage-fade) 82%, transparent) 75%,
color-mix(in srgb, var(--stage-fade) 96%, transparent) 85%,
var(--stage-fade) 93%
);
}
}
@keyframes live-tool-shine {
from {
background-position:
-4.5rem 0,
0 0;
}
to {
background-position:
calc(100% + 4.5rem) 0,
0 0;
}
}
@utility live-tool-shine {
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
color: transparent;
background-image:
linear-gradient(to right, transparent, var(--contrast-foreground), transparent),
linear-gradient(var(--contrast-secondary-label), var(--contrast-secondary-label));
background-size:
4.5rem 100%,
100% 100%;
background-repeat: no-repeat;
background-clip: text;
animation: live-tool-shine 2.2s steps(30) infinite;
animation-play-state: var(--visible-animation-state, paused);
}
}
@utility visible-animate-spin {
animation: var(--animate-spin);
animation-play-state: var(--visible-animation-state, paused);
will-change: var(--visible-animation-will-change, auto);
}
@keyframes live-activity-focus {
from {
transform: translateX(0);
}
to {
transform: translateX(100%);
}
}
@keyframes live-activity-focus-counter {
from {
transform: translateX(0);
}
to {
transform: translateX(-100%);
}
}
@utility live-activity-focus {
--live-activity-focus-width: 4.5rem;
right: auto;
left: calc(-1 * var(--live-activity-focus-width));
width: calc(100% + var(--live-activity-focus-width) + var(--live-activity-focus-width));
-webkit-mask-image: linear-gradient(
to right,
transparent 0,
rgb(0 0 0 / 12%) 0.675rem,
rgb(0 0 0 / 55%) 1.575rem,
black 2.25rem,
rgb(0 0 0 / 55%) 2.925rem,
rgb(0 0 0 / 12%) 3.825rem,
transparent var(--live-activity-focus-width),
transparent 100%
);
-webkit-mask-repeat: no-repeat;
mask-image: linear-gradient(
to right,
transparent 0,
rgb(0 0 0 / 12%) 0.675rem,
rgb(0 0 0 / 55%) 1.575rem,
black 2.25rem,
rgb(0 0 0 / 55%) 2.925rem,
rgb(0 0 0 / 12%) 3.825rem,
transparent var(--live-activity-focus-width),
transparent 100%
);
mask-repeat: no-repeat;
animation: live-activity-focus 2.2s linear infinite;
animation-play-state: var(--visible-animation-state, paused);
will-change: var(--visible-animation-will-change, auto);
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
animation: none;
opacity: 0;
will-change: auto;
}
}
@utility live-activity-focus-counter {
width: 100%;
animation: live-activity-focus-counter 2.2s linear infinite;
animation-play-state: var(--visible-animation-state, paused);
will-change: var(--visible-animation-will-change, auto);
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
animation: none;
will-change: auto;
}
}
@utility live-activity-focus-aligned {
width: calc(100% - var(--live-activity-focus-width) - var(--live-activity-focus-width));
margin-left: var(--live-activity-focus-width);
}
@property --assistant-citation-highlight-opacity {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@layer base {
::highlight(t3-assistant-citation) {
background-color: color-mix(
in oklab,
var(--primary) calc(var(--assistant-citation-highlight-opacity) * 100%),
transparent
);
}
::highlight(t3-assistant-citation-comment) {
background-color: color-mix(in oklab, var(--primary) 45%, transparent);
}
:root {
/* Keep the original T3 Code artwork palettes as the defaults. Built-in
themes override them with their own pigments in the components layer. */
--stage-art-top: oklch(0.782169 0.123386 240.226);
--stage-art-mid: oklch(0.616111 0.195824 259.735);
--stage-art-bottom: oklch(0.441553 0.232394 265.474);
--stage-art-highlight: oklch(0.951597 0.037289 215.482);
--stage-art-secondary: oklch(0.794668 0.12136 235.46);
--stage-art-tertiary: oklch(0.678991 0.170261 275.365);
--stage-art-line: oklch(0.959666 0.029238 218.179);
--stage-art-celeste-highlight: oklch(0.968763 0.045822 196.42);
--stage-art-celeste-secondary: oklch(0.827395 0.126071 211.26);
--stage-art-violet-highlight: oklch(0.895381 0.053248 286.447);
--stage-art-grid-line: oklch(0.966822 0.01757 239.99);
--stage-night-base-top: oklch(0.283792 0.117327 297.201);
--stage-night-base-mid: oklch(0.227147 0.086086 277.99);
--stage-night-base-bottom: oklch(0.200528 0.055699 261.216);
--stage-night-top: var(--stage-night-base-top);
--stage-night-mid: var(--stage-night-base-mid);
--stage-night-bottom: var(--stage-night-base-bottom);
--stage-night-highlight: oklch(0.707246 0.157418 252.091);
--stage-night-secondary: oklch(0.600473 0.182225 277.296);
--stage-night-tertiary: oklch(0.62583 0.210886 305.994);
--stage-night-line: oklch(0.938794 0.029114 273.103);
--stage-night-glow-highlight: oklch(0.553749 0.176543 271.958);
--stage-night-glow-secondary: oklch(0.345571 0.117466 273.568);
--stage-night-sparkle: oklch(0.880867 0.057747 269.011);
@variant dark {
--stage-art-top: oklch(0.581473 0.149124 256.9);
--stage-art-mid: oklch(0.456509 0.159377 261.945);
--stage-art-bottom: oklch(0.291327 0.136578 267.649);
}
}
* {
@apply border-border outline-ring/50;
}
/* The app's 2px outlines stay inside controls at clipped and scrollport edges. */
*,
::before,
::after {
outline-offset: -2px;
}
:where([data-slot="menu-popup"], [data-slot="select-popup"], [data-slot="popover-popup"]):focus,
:where(
[data-slot="menu-popup"],
[data-slot="select-popup"],
[data-slot="popover-popup"]
):focus-visible {
@apply outline-none ring-0;
}
html,
body {
background-color: var(--app-chrome-background);
}
body {
@apply text-foreground relative;
}
}
@layer components {
/* AnimatedHeight owns resizing for its contents. Nested collapsibles must
expose their final layout immediately, otherwise each animation frame
restarts the parent's transition and the dialog trails behind its content. */
[data-slot="animated-height"] [data-slot="collapsible-panel"] {
height: auto !important;
transition: none !important;
}
[data-slot="animated-height"] [data-slot="collapsible-panel"][data-closed] {
display: none;
}
/* Each maintainer palette gives the same line art its own material: rose
vellum, forest drafting paper, marine cyanotype, copper, and violet ink.
These colors stay deliberately deep at the top edge so the white stage
wordmark and controls retain contrast in both appearance modes. */
html[data-theme-id="t3-chat"] {
--stage-art-top: oklch(0.760675 0.141361 348.019);
--stage-art-mid: oklch(0.588093 0.188832 353.138);
--stage-art-bottom: oklch(0.383959 0.135096 348.656);
--stage-art-highlight: oklch(0.949689 0.034241 339.171);
--stage-art-secondary: oklch(0.763402 0.163836 352.525);
--stage-art-tertiary: oklch(0.70819 0.180285 311.949);
--stage-art-line: oklch(0.952158 0.034194 336.179);
@variant dark {
--stage-art-top: oklch(0.540689 0.143665 347.587);
--stage-art-mid: oklch(0.396586 0.126592 347.6);
--stage-art-bottom: oklch(0.249959 0.079694 340.523);
--stage-art-highlight: oklch(0.921297 0.051708 343.229);
--stage-art-secondary: oklch(0.667398 0.165674 352.549);
--stage-art-tertiary: oklch(0.609315 0.163722 306.315);
--stage-art-line: oklch(0.945349 0.036045 341.433);
}
}
html[data-theme-id="grove"] {
--stage-art-top: oklch(0.751465 0.112731 157.313);
--stage-art-mid: oklch(0.567105 0.11099 158.859);
--stage-art-bottom: oklch(0.367918 0.067635 160.558);
--stage-art-highlight: oklch(0.976387 0.034353 161.456);
--stage-art-secondary: oklch(0.80968 0.117071 158.817);
--stage-art-tertiary: oklch(0.784102 0.108047 88.516);
--stage-art-line: oklch(0.981098 0.027812 158.718);
--stage-night-top: oklch(0.45805 0.079616 160.092);
--stage-night-mid: oklch(0.368483 0.065631 162.719);
--stage-night-bottom: oklch(0.264797 0.044397 168.088);
--stage-night-highlight: oklch(0.912563 0.055173 158.974);
--stage-night-secondary: oklch(0.665652 0.109731 156.599);
--stage-night-tertiary: oklch(0.698651 0.103024 89.828);
--stage-night-line: oklch(0.945336 0.041923 157.222);
@variant dark {
--stage-art-top: oklch(0.58719 0.09869 157.426);
--stage-art-mid: oklch(0.454979 0.079031 159.756);
--stage-art-bottom: oklch(0.297856 0.050355 161.167);
--stage-art-highlight: oklch(0.952407 0.053872 158.44);
--stage-art-secondary: oklch(0.732591 0.120606 155.853);
--stage-art-tertiary: oklch(0.716282 0.116547 80.563);
--stage-art-line: oklch(0.961577 0.035285 157.03);
--stage-night-top: oklch(0.398632 0.065534 158.601);
--stage-night-mid: oklch(0.290561 0.049694 160.456);
--stage-night-bottom: oklch(0.210147 0.03173 169.818);
--stage-night-highlight: oklch(0.866303 0.057526 156.796);
--stage-night-secondary: oklch(0.586553 0.093722 157.365);
--stage-night-tertiary: oklch(0.6364 0.101769 82.985);
--stage-night-line: oklch(0.913292 0.035718 156.976);
}
}
html[data-theme-id="ocean"] {
--stage-art-top: oklch(0.792993 0.088072 220.421);
--stage-art-mid: oklch(0.590296 0.116841 243.184);
--stage-art-bottom: oklch(0.409123 0.093718 247.98);
--stage-art-highlight: oklch(0.971217 0.023008 213.615);
--stage-art-secondary: oklch(0.788391 0.090856 215.684);
--stage-art-tertiary: oklch(0.76441 0.099607 187.893);
--stage-art-line: oklch(0.976025 0.019647 212.543);
@variant dark {
--stage-art-top: oklch(0.59663 0.089167 233.427);
--stage-art-mid: oklch(0.461094 0.084904 243.478);
--stage-art-bottom: oklch(0.294818 0.05947 250.526);
--stage-art-highlight: oklch(0.952907 0.032224 221.27);
--stage-art-secondary: oklch(0.732079 0.09296 224.414);
--stage-art-tertiary: oklch(0.720885 0.095495 190.903);
--stage-art-line: oklch(0.961039 0.027355 219.756);
}
}
html[data-theme-id="ember"] {
--stage-art-top: oklch(0.782439 0.118806 52.569);
--stage-art-mid: oklch(0.62863 0.15922 39.401);
--stage-art-bottom: oklch(0.404251 0.117664 30.424);
--stage-art-highlight: oklch(0.962469 0.02774 70.95);
--stage-art-secondary: oklch(0.815735 0.11904 53.659);
--stage-art-tertiary: oklch(0.69361 0.159346 24.787);
--stage-art-line: oklch(0.970313 0.02052 67.583);
--stage-night-top: oklch(0.470236 0.102322 39.355);
--stage-night-mid: oklch(0.345367 0.080697 33.217);
--stage-night-bottom: oklch(0.227386 0.056077 27.437);
--stage-night-highlight: oklch(0.903891 0.059281 56.181);
--stage-night-secondary: oklch(0.641705 0.126508 44.376);
--stage-night-tertiary: oklch(0.538694 0.129931 25.865);
--stage-night-line: oklch(0.926348 0.046029 58.73);
@variant dark {
--stage-art-top: oklch(0.597533 0.120694 43.455);
--stage-art-mid: oklch(0.437763 0.101287 34.86);
--stage-art-bottom: oklch(0.264269 0.055858 26.548);
--stage-art-highlight: oklch(0.929214 0.042638 55.801);
--stage-art-secondary: oklch(0.705592 0.137369 43.176);
--stage-art-tertiary: oklch(0.629583 0.158322 24.088);
--stage-art-line: oklch(0.945058 0.033906 58.824);
--stage-night-top: oklch(0.392352 0.081287 36.444);
--stage-night-mid: oklch(0.271305 0.056352 31.135);
--stage-night-bottom: oklch(0.182126 0.028154 27.774);
--stage-night-highlight: oklch(0.851007 0.061294 53.805);
--stage-night-secondary: oklch(0.560789 0.10645 42.953);
--stage-night-tertiary: oklch(0.476228 0.106656 24.165);
--stage-night-line: oklch(0.884931 0.046607 56.556);
}
}
html[data-theme-id="iris"] {
--stage-art-top: oklch(0.738305 0.113454 298.926);
--stage-art-mid: oklch(0.551826 0.159189 294.531);
--stage-art-bottom: oklch(0.37147 0.133317 289.999);
--stage-art-highlight: oklch(0.949472 0.029204 303.081);
--stage-art-secondary: oklch(0.745085 0.125892 298.647);
--stage-art-tertiary: oklch(0.73066 0.167815 340.964);
--stage-art-line: oklch(0.960278 0.024064 306.969);
@variant dark {
--stage-art-top: oklch(0.57297 0.145973 295.185);
--stage-art-mid: oklch(0.419499 0.13752 292.131);
--stage-art-bottom: oklch(0.274235 0.095798 286.608);
--stage-art-highlight: oklch(0.916698 0.047206 300.224);
--stage-art-secondary: oklch(0.670994 0.13095 296.689);
--stage-art-tertiary: oklch(0.679357 0.165376 340.439);
--stage-art-line: oklch(0.940582 0.032921 299.076);
}
}
:is(html[data-theme-id="t3-chat"], html[data-theme-id="ocean"], html[data-theme-id="iris"]) {
--stage-night-top: color-mix(in oklch, var(--stage-art-top) 38%, var(--stage-night-base-top));
--stage-night-mid: color-mix(in oklch, var(--stage-art-mid) 38%, var(--stage-night-base-mid));
--stage-night-bottom: color-mix(
in oklch,
var(--stage-art-bottom) 38%,
var(--stage-night-base-bottom)
);
--stage-night-highlight: var(--stage-art-highlight);
--stage-night-secondary: color-mix(
in oklch,
var(--stage-art-secondary) 55%,
var(--stage-night-mid)
);
--stage-night-tertiary: color-mix(
in oklch,
var(--stage-art-tertiary) 60%,
var(--stage-night-top)
);
--stage-night-line: color-mix(in oklch, var(--stage-art-line) 82%, oklch(1 0 0));
}
:is(
html[data-theme-id="t3-chat"],
html[data-theme-id="grove"],
html[data-theme-id="ocean"],
html[data-theme-id="ember"],
html[data-theme-id="iris"]
) {
--stage-art-celeste-highlight: var(--stage-art-highlight);
--stage-art-celeste-secondary: var(--stage-art-secondary);
--stage-art-violet-highlight: var(--stage-art-highlight);
--stage-art-grid-line: var(--stage-art-line);
--stage-night-glow-highlight: var(--stage-night-highlight);
--stage-night-glow-secondary: var(--stage-night-secondary);
--stage-night-sparkle: var(--stage-night-line);
}
@keyframes settings-search-target-pulse {
0%,
100% {
box-shadow: inset 0 0 0 0 transparent;
}
50% {
box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--color-primary) 70%, transparent);
}
}
[data-settings-page-scroll] div.settings-search-target-pulse,
[data-settings-page-scroll] section.settings-search-target-pulse > div:first-child {
animation: settings-search-target-pulse 650ms ease-in-out 2;
border-radius: 0.75rem;
}
/* The pulse is the destination indicator; without it (reduced motion), the
focus outline takes over, so exactly one indicator shows at a time. */
[data-settings-page-scroll] .settings-search-target-pulse:focus {
outline: none;
}
.surface-subheader {
@apply flex h-10 min-h-10 shrink-0 items-center border-b border-border/60 bg-background;
}
[data-preview-panel-mode="inline"] [data-right-panel-surface-content] [data-surface-subheader] {
height: calc(var(--spacing) * 7);
min-height: calc(var(--spacing) * 7);
margin-bottom: calc(var(--spacing) * 3);
border-bottom-color: transparent;
}
.chat-content-lane {
margin-inline: auto;
width: 100%;
min-width: 0;
max-width: var(--chat-content-max-width);
}
.messages-timeline-row-frame {
padding-inline: 0;
}
.settings-slider {
--settings-slider-progress: 0%;
--settings-slider-fill-offset: 0.5rem;
--settings-slider-fill-position: calc(
var(--settings-slider-progress) + var(--settings-slider-fill-offset)
);
appearance: none;
height: 1.5rem;
background: transparent;
cursor: pointer;
}
.settings-slider::-webkit-slider-runnable-track {
height: 0.375rem;
border-radius: 9999px;
background: linear-gradient(
to right,
var(--primary) 0 var(--settings-slider-fill-position),
color-mix(in srgb, var(--contrast-muted-foreground) 22%, transparent)
var(--settings-slider-fill-position) 100%
);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--contrast-border) 55%, transparent);
}
.settings-slider::-moz-range-track {
height: 0.375rem;
border-radius: 9999px;
background: color-mix(in srgb, var(--contrast-muted-foreground) 22%, transparent);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--contrast-border) 55%, transparent);
}
.settings-slider::-moz-range-progress {
height: 0.375rem;
border-radius: 9999px;
background: var(--primary);
}
.settings-slider::-webkit-slider-thumb {
appearance: none;
width: 1rem;
height: 1rem;
margin-top: -0.3125rem;
border: 2px solid var(--primary);
border-radius: 9999px;
background: var(--background);
box-shadow: 0 1px 2px color-mix(in srgb, var(--contrast-foreground) 12%, transparent);
transition:
transform 120ms ease,
box-shadow 120ms ease;
}
.settings-slider::-moz-range-thumb {
width: 1rem;
height: 1rem;
border: 2px solid var(--primary);
border-radius: 9999px;
background: var(--background);
box-shadow: 0 1px 2px color-mix(in srgb, var(--contrast-foreground) 12%, transparent);
transition:
transform 120ms ease,
box-shadow 120ms ease;
}
.settings-slider:hover::-webkit-slider-thumb {