Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

index.css

1,081 lines27.6 KB

1@import "tailwindcss";
2​
3@custom-variant dark (&:is(.dark, .dark *));
4/* Window Controls Overlay: active when Electron exposes native titlebar control geometry. */
5@custom-variant wco (&:is(.wco, .wco *));
6​
7/* On mobile, morph the expanded hero composer into the compact docked
8 composer while it moves; the rest of the app remains visually stationary. */
9html[data-mobile-composer-route-transition="true"]::view-transition-old(root),
10html[data-mobile-composer-route-transition="true"]::view-transition-new(root) {
11 animation: none;
13​
14html[data-mobile-composer-route-transition="true"]::view-transition-group(t3-mobile-composer) {
15 animation-duration: 180ms;
16 animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
18​
19html[data-mobile-composer-route-transition="true"]::view-transition-image-pair(t3-mobile-composer) {
20 isolation: isolate;
22​
23html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobile-composer) {
24 animation: t3-mobile-composer-old 180ms linear both;
25 mix-blend-mode: normal;
27​
28html[data-mobile-composer-route-transition="true"]::view-transition-new(t3-mobile-composer) {
29 animation: t3-mobile-composer-new 180ms linear both;
30 mix-blend-mode: normal;
32​
33/* The expanded and compact composers have different internal layouts. Use a
34 brief crossfade while their shared wrapper moves so the layout change does
35 not read as a single-frame cut. */
36@keyframes t3-mobile-composer-old {
37 0%,
38 35% {
39 opacity: 1;
40 }
41 65%,
42 100% {
43 opacity: 0;
44 }
46​
47@keyframes t3-mobile-composer-new {
48 0%,
49 35% {
50 opacity: 0;
51 }
52 65%,
53 100% {
54 opacity: 1;
55 }
57​
58html[data-mobile-composer-route-transition="true"]::view-transition-group(t3-mobile-draft-headline) {
59 animation-duration: 130ms;
61​
62html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobile-draft-headline) {
63 animation: t3-mobile-draft-headline-exit 130ms cubic-bezier(0.4, 0, 1, 1) both;
64 mix-blend-mode: normal;
66​
67@keyframes t3-mobile-draft-headline-exit {
68 from {
69 opacity: 1;
70 transform: translateY(0);
71 }
72 to {
73 opacity: 0;
74 transform: translateY(-6px);
75 }
77​
78:root {
79 --app-scrollbar-width: 6px;
80 --desktop-window-right-resize-inset: 0px;
81 --workspace-topbar-height: 52px;
82 --workspace-controls-top: 0px;
83 --workspace-controls-left: calc(env(safe-area-inset-left) + 0.75rem);
84 --workspace-controls-right: calc(env(safe-area-inset-right) + 0.75rem);
85 --workspace-native-controls-inset: 0px;
86 --workspace-titlebar-control-size: 1.75rem;
87 --workspace-titlebar-control-gap: 0.75rem;
89​
90[data-slot="sidebar-wrapper"] {
91 --workspace-titlebar-content-left: calc(
92 var(--workspace-controls-left) + var(--workspace-titlebar-control-size) +
93 var(--workspace-titlebar-control-gap)
94 );
96​
97.wco {
98 --workspace-topbar-height: env(titlebar-area-height, 52px);
99 --workspace-controls-top: env(titlebar-area-y, 0px);
100 --workspace-controls-left: calc(env(titlebar-area-x, 0px) + 0.75rem);
101 --workspace-controls-right: calc(
102 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
103 );
104 --workspace-native-controls-inset: calc(
105 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
106 );
108​
109@theme inline {
110 --animate-skeleton: skeleton 2s -1s infinite linear;
111 /* Duty-cycled indicator animations: long opacity holds with short stepped
112 ramps, so the compositor only produces frames while the value changes
113 (~20% of the cycle) instead of every vsync. Keep flat holds dominant. */
114 --animate-status-pulse: status-pulse 2s infinite;
115 --animate-status-ping: status-ping 2s infinite;
116 --font-sans:
117 "DM Sans Variable", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
118 sans-serif;
119 --font-mono:
120 "SF Mono", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
121 --color-warning-foreground: var(--warning-foreground);
122 --color-warning: var(--warning);
123 --color-success-foreground: var(--success-foreground);
124 --color-success: var(--success);
125 --color-info-foreground: var(--info-foreground);
126 --color-info: var(--info);
127 --color-destructive-foreground: var(--destructive-foreground);
128 --color-ring: var(--ring);
129 --color-input: var(--input);
130 --color-border: var(--border);
131 --color-destructive: var(--destructive);
132 --color-accent-foreground: var(--accent-foreground);
133 --color-accent: var(--accent);
134 --color-muted-foreground: var(--muted-foreground);
135 --color-muted: var(--muted);
136 --color-secondary-foreground: var(--secondary-foreground);
137 --color-secondary: var(--secondary);
138 --color-primary-foreground: var(--primary-foreground);
139 --color-primary: var(--primary);
140 --color-popover-foreground: var(--popover-foreground);
141 --color-popover: var(--popover);
142 --color-card-foreground: var(--card-foreground);
143 --color-card: var(--card);
144 --color-foreground: var(--foreground);
145 --color-background: var(--background);
146 --radius-sm: calc(var(--radius) - 4px);
147 --radius-md: calc(var(--radius) - 2px);
148 --radius-lg: var(--radius);
149 --radius-xl: calc(var(--radius) + 4px);
150 --radius-2xl: calc(var(--radius) + 8px);
151 --radius-3xl: calc(var(--radius) + 12px);
152 --radius-4xl: calc(var(--radius) + 16px);
153 @keyframes skeleton {
154 to {
155 background-position: -200% 0;
156 }
157 }
158 @keyframes status-pulse {
159 0%,
160 40% {
161 opacity: 1;
162 animation-timing-function: steps(6);
163 }
164 50%,
165 90% {
166 opacity: 0.5;
167 animation-timing-function: steps(6);
168 }
169 100% {
170 opacity: 1;
171 }
172 }
173 @keyframes status-ping {
174 /* Burst first (immediate feedback for click ripples), then hold
175 invisible for the rest of the cycle. Mirrors animate-ping's
176 75%-scale start. */
177 0% {
178 opacity: 0.9;
179 scale: 0.75;
180 animation-timing-function: steps(8);
181 }
182 40%,
183 100% {
184 opacity: 0;
185 scale: 2;
186 }
187 }
189​
190@layer base {
191 * {
192 @apply border-border outline-ring/50;
193 }
194 :where([data-slot="menu-popup"], [data-slot="select-popup"], [data-slot="popover-popup"]):focus,
195 :where(
196 [data-slot="menu-popup"],
197 [data-slot="select-popup"],
198 [data-slot="popover-popup"]
199 ):focus-visible {
200 @apply outline-none ring-0;
201 }
202 html {
203 background-color: var(--app-chrome-background);
204 }
205 body {
206 @apply text-foreground relative;
207 background-color: var(--app-chrome-background);
208 }
210​
211@layer components {
212 .sidebar-brand {
213 display: none;
214 }
215​
216 .sidebar-brand-stage {
217 display: none;
218 }
219​
220 @media (min-width: 48rem) {
221 @container sidebar-header (min-width: 13.5rem) {
222 .sidebar-brand {
223 display: flex;
224 }
225 }
226​
227 @container sidebar-header (min-width: 15.75rem) {
228 .sidebar-brand-stage {
229 display: inline-flex;
230 }
231 }
232 }
233​
234 /* Stage-channel sidebar art; ::after ramps to the sidebar bg color and the
235 mask lets the surface grain show through at the boundary. */
236 .sidebar-stage-backdrop {
237 mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
238 -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
239 }
240​
241 .sidebar-stage-backdrop::after {
242 content: "";
243 position: absolute;
244 inset: 0;
245 background: linear-gradient(
246 to bottom,
247 transparent 0%,
248 transparent 28%,
249 color-mix(in srgb, var(--app-chrome-background) 10%, transparent) 40%,
250 color-mix(in srgb, var(--app-chrome-background) 30%, transparent) 52%,
251 color-mix(in srgb, var(--app-chrome-background) 58%, transparent) 64%,
252 color-mix(in srgb, var(--app-chrome-background) 82%, transparent) 75%,
253 color-mix(in srgb, var(--app-chrome-background) 96%, transparent) 85%,
254 var(--app-chrome-background) 93%
255 );
256 }
257​
258 .stage-blueprint {
259 --stage-bp-top: #67c2ff;
260 --stage-bp-mid: #347ff8;
261 --stage-bp-bottom: #1538d0;
262 }
263​
264 .dark .stage-blueprint {
265 --stage-bp-top: #3a7ad1;
266 --stage-bp-mid: #2050ae;
267 --stage-bp-bottom: #101f6e;
268 }
269​
270 .workspace-topbar {
271 display: flex;
272 height: var(--workspace-topbar-height);
273 min-height: var(--workspace-topbar-height);
274 flex-shrink: 0;
275 align-items: center;
276 }
277​
278 .workspace-titlebar-controls {
279 position: absolute;
280 top: var(--workspace-controls-top);
281 right: var(--workspace-controls-right);
282 display: flex;
283 height: var(--workspace-topbar-height);
284 align-items: center;
285 -webkit-app-region: no-drag;
286 }
287​
288 .surface-subheader {
289 @apply flex h-10 min-h-10 shrink-0 items-center border-b border-border/60 bg-background;
290 }
291​
292 .chat-composer-horizontal-inset {
293 padding-inline-start: calc(env(safe-area-inset-left) + 0.75rem);
294 padding-inline-end: calc(env(safe-area-inset-right) + 0.75rem);
295 }
296​
297 .chat-composer-glass {
298 background: color-mix(in srgb, var(--card) 20%, transparent);
299 }
300​
301 /* Mix from --background (not --card): the lower chrome is a full-width
302 strip over the main view, and a card-tinted wash reads as a lighter
303 seam against it when no content is scrolled underneath. The backdrop
304 blur, not the tint, carries the frosted effect. */
305 .chat-composer-lower-chrome {
306 background: color-mix(in srgb, var(--background) 20%, transparent);
307 }
308​
309 .chat-composer-glass {
310 box-shadow:
311 0 18px 48px -20px rgb(0 0 0 / 28%),
312 0 4px 14px -7px rgb(0 0 0 / 22%);
313 }
314​
315 .chat-composer-shared-blur {
316 -webkit-backdrop-filter: blur(16px);
317 backdrop-filter: blur(16px);
318 }
319​
320 .dark .chat-composer-glass {
321 background: color-mix(in srgb, var(--card) 45%, transparent);
322 }
323​
324 .dark .chat-composer-lower-chrome {
325 background: color-mix(in srgb, var(--background) 45%, transparent);
326 }
327​
328 .dark .chat-composer-glass {
329 box-shadow:
330 0 18px 48px -20px rgb(0 0 0 / 60%),
331 0 4px 14px -7px rgb(0 0 0 / 40%);
332 }
333​
334 .chat-composer-lower-chrome {
335 margin-top: -1px;
336 margin-inline-end: var(--app-scrollbar-width);
337 padding-top: 1px;
338 }
339​
340 @media (min-width: 40rem) {
341 .chat-composer-horizontal-inset {
342 padding-inline-start: calc(env(safe-area-inset-left) + 1.25rem);
343 padding-inline-end: calc(env(safe-area-inset-right) + 1.25rem);
344 }
345 }
346​
347 @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
348 .chat-composer-glass {
349 background: var(--card);
350 }
351​
352 .chat-composer-lower-chrome {
353 background: var(--background);
354 }
355 }
357​
358/* Safe-area inset utilities for surfaces that opt into edge-to-edge rendering.
359 Insets resolve to 0 when the browser already constrains the layout viewport
360 to the safe area. */
361@utility pt-safe {
362 padding-top: max(env(safe-area-inset-top), 0px);
364@utility pb-safe {
365 padding-bottom: max(env(safe-area-inset-bottom), 0px);
367@utility pl-safe {
368 padding-left: max(env(safe-area-inset-left), 0px);
370@utility pr-safe {
371 padding-right: max(env(safe-area-inset-right), 0px);
373​
374/* Grain texture for chrome surfaces that float above the body (see the
375 --surface-grain note). Layered over the element's background-color, so it
376 composes with bg-* utilities. */
377@utility surface-grain {
378 background-image: var(--surface-grain);
379 background-repeat: repeat;
380 background-size: 256px 256px;
382​
383/* Suppress all transitions during theme changes */
384.no-transitions,
385.no-transitions *,
386.no-transitions *::before,
387.no-transitions *::after {
388 transition-duration: 0s !important;
389 animation-duration: 0s !important;
391​
392:root {
393 color-scheme: light;
394 --radius: 0.625rem;
395 --background: var(--color-white);
396 --app-chrome-background: var(--background);
397 --foreground: var(--color-neutral-800);
398 --card: var(--color-white);
399 --card-foreground: var(--color-neutral-800);
400 --popover: var(--color-white);
401 --popover-foreground: var(--color-neutral-800);
402 --primary: oklch(0.488 0.217 264);
403 --primary-foreground: var(--color-white);
404 --secondary: --alpha(var(--color-black) / 4%);
405 --secondary-foreground: var(--color-neutral-800);
406 --muted: --alpha(var(--color-black) / 4%);
407 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-black));
408 --accent: --alpha(var(--color-black) / 4%);
409 --accent-foreground: var(--color-neutral-800);
410 --destructive: var(--color-red-500);
411 --border: --alpha(var(--color-black) / 8%);
412 --input: --alpha(var(--color-black) / 10%);
413 --ring: oklch(0.488 0.217 264);
414 --destructive-foreground: var(--color-red-700);
415 --info: var(--color-blue-500);
416 --info-foreground: var(--color-blue-700);
417 --success: var(--color-emerald-500);
418 --success-foreground: var(--color-emerald-700);
419 --warning: var(--color-amber-500);
420 --warning-foreground: var(--color-amber-700);
421​
422 @variant dark {
423 color-scheme: dark;
424 --background: color-mix(in srgb, var(--color-neutral-950) 95%, var(--color-white));
425 --app-chrome-background: var(--background);
426 --foreground: var(--color-neutral-100);
427 --card: color-mix(in srgb, var(--background) 98%, var(--color-white));
428 --card-foreground: var(--color-neutral-100);
429 --popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
430 --popover-foreground: var(--color-neutral-100);
431 --primary: oklch(0.588 0.217 264);
432 --primary-foreground: var(--color-white);
433 --secondary: --alpha(var(--color-white) / 4%);
434 --secondary-foreground: var(--color-neutral-100);
435 --muted: --alpha(var(--color-white) / 4%);
436 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
437 --accent: --alpha(var(--color-white) / 4%);
438 --accent-foreground: var(--color-neutral-100);
439 --destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
440 --border: --alpha(var(--color-white) / 6%);
441 --input: --alpha(var(--color-white) / 8%);
442 --ring: oklch(0.588 0.217 264);
443 --destructive-foreground: var(--color-red-400);
444 --info: var(--color-blue-500);
445 --info-foreground: var(--color-blue-400);
446 --success: var(--color-emerald-500);
447 --success-foreground: var(--color-emerald-400);
448 --warning: var(--color-amber-500);
449 --warning-foreground: var(--color-amber-400);
450 }
452​
453body {
454 font-family:
455 "DM Sans Variable",
456 "DM Sans",
457 -apple-system,
458 BlinkMacSystemFont,
459 "Segoe UI",
460 system-ui,
461 sans-serif;
462 margin: 0;
463 padding: 0;
465​
466html,
467body {
468 min-height: calc(100svh + env(safe-area-inset-top));
469 overscroll-behavior: none;
471​
472body {
473 height: 100%;
474 overflow: hidden;
476​
477#root {
478 height: 100%;
479 width: 100%;
480 max-width: 100%;
481 overflow-x: hidden;
482 overflow-x: clip;
483 overflow-y: hidden;
484 overscroll-behavior-y: none;
485 padding-top: max(env(safe-area-inset-top), 0px);
486 padding-right: var(--desktop-window-right-resize-inset);
488​
489.electron-windows {
490 --desktop-window-right-resize-inset: 6px;
492​
493/* App-chrome grain. Baked into each surface's own background (behind
494 content) rather than a fixed overlay on top: a full-viewport overlay
495 forces the compositor to re-blend every frame any animation produces,
496 which multiplied idle GPU cost. The overlay's 0.035 opacity lives in the
497 SVG rect instead. Surfaces that float over the body (e.g. the inset main
498 card) must opt in via the surface-grain utility, or they lose the
499 grain's subtle brightening and stand out against the body. */
500:root {
501 --surface-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
503​
504body {
505 background-image: var(--surface-grain);
506 background-repeat: repeat;
507 background-size: 256px 256px;
509​
510pre,
511code {
512 font-family:
513 "SF Mono", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
515​
516/* Window drag region (frameless titlebar) */
517.drag-region {
518 -webkit-app-region: drag;
520​
521.drag-region button,
522.drag-region input,
523.drag-region textarea,
524.drag-region select,
525.drag-region a {
526 -webkit-app-region: no-drag;
528​
529/* Scrollbar styling */
530::-webkit-scrollbar {
531 width: var(--app-scrollbar-width);
533​
534::-webkit-scrollbar-track {
535 background: transparent;
537​
538::-webkit-scrollbar-thumb {
539 background: rgba(0, 0, 0, 0.15);
540 border-radius: 3px;
542​
543::-webkit-scrollbar-thumb:hover {
544 background: rgba(0, 0, 0, 0.25);
546​
547.dark ::-webkit-scrollbar-thumb {
548 background: rgba(255, 255, 255, 0.1);
550​
551.dark ::-webkit-scrollbar-thumb:hover {
552 background: rgba(255, 255, 255, 0.18);
554​
555.turn-chip-strip {
556 scrollbar-width: none;
557 -ms-overflow-style: none;
558 overscroll-behavior-x: contain;
560​
561.turn-chip-strip::-webkit-scrollbar {
562 display: none;
564​
565/* Terminal drawer scrollbar parity with chat */
566.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical {
567 width: 6px !important;
569​
570.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar > .slider {
571 border-radius: 3px;
573​
574.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical > .slider {
575 width: 6px !important;
576 left: 0 !important;
578​
579/* Reasoning select -- clickable label surface */
580label:has(> select#reasoning-effort) {
581 position: relative;
583label:has(> select#reasoning-effort) select {
584 position: absolute;
585 inset: 0;
586 opacity: 0;
587 cursor: pointer;
588 width: 100%;
589 height: 100%;
591​
592/* Chat markdown rendering */
593.chat-markdown {
594 min-width: 0;
595 overflow-wrap: anywhere;
596 word-break: break-word;
598​
599.chat-markdown > :first-child {
600 margin-top: 0;
602​
603.chat-markdown > :last-child {
604 margin-bottom: 0;
606​
607.chat-markdown p,
608.chat-markdown ul,
609.chat-markdown ol,
610.chat-markdown blockquote,
611.chat-markdown pre,
612.chat-markdown .chat-markdown-table-container {
613 margin: 0.65rem 0;
615​
616.chat-markdown h1,
617.chat-markdown h2,
618.chat-markdown h3,
619.chat-markdown h4,
620.chat-markdown h5,
621.chat-markdown h6 {
622 margin: 1.25rem 0 0.5rem;
623 font-weight: 600;
624 line-height: 1.3;
625 color: var(--foreground);
627​
628.chat-markdown h1 {
629 font-size: 1.25rem;
631​
632.chat-markdown h2 {
633 font-size: 1.125rem;
635​
636.chat-markdown h3 {
637 font-size: 1rem;
639​
640.chat-markdown h4,
641.chat-markdown h5,
642.chat-markdown h6 {
643 font-size: 0.875rem;
645​
646.chat-markdown h6 {
647 color: var(--muted-foreground);
649​
650.chat-markdown ul {
651 padding-left: 1.25rem;
652 list-style-type: disc;
654​
655.chat-markdown ol {
656 padding-left: 1.25rem;
657 list-style-type: decimal;
659​
660.chat-markdown ul ul {
661 list-style-type: circle;
663​
664.chat-markdown ul ul ul {
665 list-style-type: square;
667​
668.chat-markdown ol ol {
669 list-style-type: lower-alpha;
671​
672.chat-markdown ol ol ol {
673 list-style-type: lower-roman;
675​
676.chat-markdown li + li {
677 margin-top: 0.25rem;
679​
680/* GitHub-style task lists: the checkbox replaces the list marker. */
681.chat-markdown li.task-list-item {
682 list-style-type: none;
684​
685.chat-markdown li.task-list-item input[type="checkbox"] {
686 margin: 0 0.35em 0.15em -1.25rem;
687 vertical-align: middle;
689​
690.chat-markdown a {
691 color: var(--info-foreground);
692 text-decoration: none;
694​
695.chat-markdown a:not(.chat-markdown-file-link):hover,
696.chat-markdown a:not(.chat-markdown-file-link):focus-visible {
697 background-image: radial-gradient(circle, currentcolor 0.75px, transparent 1px);
698 background-position: left bottom;
699 background-repeat: repeat-x;
700 background-size: 4px 2px;
702​
703.chat-markdown .chat-markdown-link-favicon {
704 @apply inline-flex;
705 width: 14px;
706 height: 14px;
707 margin-inline: 0.25em 0.2em;
708 vertical-align: -0.125em;
710​
711.chat-markdown .chat-markdown-link-leading {
712 white-space: nowrap;
714​
715.chat-markdown blockquote {
716 border-left: 2px solid var(--border);
717 padding-left: 0.8rem;
718 color: var(--muted-foreground);
720​
721.chat-markdown section[data-footnotes] {
722 margin-top: 1.25rem;
723 border-top: 1px solid var(--border);
724 padding-top: 0.75rem;
725 color: var(--muted-foreground);
726 font-size: 0.75rem;
728​
729.chat-markdown section[data-footnotes] ol {
730 margin: 0;
731 padding-left: 1.25rem;
733​
734.chat-markdown section[data-footnotes] li + li {
735 margin-top: 0.35rem;
737​
738.chat-markdown a[data-footnote-ref],
739.chat-markdown a[data-footnote-backref] {
740 display: inline-flex;
741 min-width: 1rem;
742 align-items: center;
743 justify-content: center;
744 border-radius: 0.25rem;
745 text-decoration: none;
746 font-size: 0.6875rem;
747 font-weight: 600;
749​
750.chat-markdown :not(pre) > code {
751 border: 1px solid var(--border);
752 border-radius: 0.375rem;
753 background: var(--muted);
754 padding: 0.1rem 0.35rem;
755 color: var(--foreground);
756 font-size: 0.75rem;
758​
759.chat-markdown a.chat-markdown-file-link {
760 color: var(--foreground);
761 text-decoration: none;
763​
764.chat-markdown a.chat-markdown-file-link:hover {
765 color: var(--foreground);
766 text-decoration: none;
768​
769.chat-markdown a.chat-markdown-file-link:focus-visible {
770 outline: none;
771 box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 70%, transparent);
773​
774.chat-markdown pre {
775 max-width: 100%;
776 overflow-x: auto;
777 border: 1px solid var(--border);
778 border-radius: 0.75rem;
779 background: var(--muted);
780 padding: 0.8rem 0.9rem;
782​
783.chat-markdown pre code {
784 border: none;
785 background: transparent;
786 padding: 0;
787 font-size: 0.75rem;
789​
790.chat-markdown pre {
791 scrollbar-width: thin;
792 scrollbar-color: color-mix(in srgb, var(--border) 78%, transparent) transparent;
794​
795.chat-markdown pre::-webkit-scrollbar {
796 height: 7px;
798​
799.chat-markdown pre::-webkit-scrollbar-track {
800 background: transparent;
802​
803.chat-markdown pre::-webkit-scrollbar-thumb {
804 border-radius: 999px;
805 background: color-mix(in srgb, var(--border) 78%, transparent);
807​
808.markdown-file-link-tooltip-scroll {
809 scrollbar-width: thin;
810 scrollbar-color: color-mix(in srgb, var(--border) 78%, transparent) transparent;
812​
813.markdown-file-link-tooltip-scroll::-webkit-scrollbar {
814 height: 6px;
816​
817.markdown-file-link-tooltip-scroll::-webkit-scrollbar-track {
818 background: transparent;
820​
821.markdown-file-link-tooltip-scroll::-webkit-scrollbar-thumb {
822 border-radius: 999px;
823 background: color-mix(in srgb, var(--border) 78%, transparent);
825​
826.chat-markdown .chat-markdown-codeblock {
827 margin: 0.65rem 0;
828 overflow: hidden;
829 border: 1px solid var(--border);
830 border-radius: 0.75rem;
831 background: color-mix(in srgb, var(--muted) 78%, var(--background));
833​
834.chat-markdown .chat-markdown-codeblock-header {
835 display: flex;
836 align-items: center;
837 justify-content: space-between;
838 gap: 0.5rem;
839 border-bottom: 1px solid var(--border);
840 background: var(--muted);
841 padding: 0.25rem 0.375rem 0.25rem 0.7rem;
842 color: var(--muted-foreground);
844​
845.chat-markdown .chat-markdown-codeblock-title {
846 display: inline-flex;
847 min-width: 0;
848 align-items: center;
849 gap: 0.4rem;
850 font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
851 font-size: 0.6875rem;
853​
854.chat-markdown .chat-markdown-chrome-action {
855 color: var(--muted-foreground);
857​
858.chat-markdown .chat-markdown-chrome-action:hover {
859 color: var(--foreground);
861​
862.chat-markdown .chat-markdown-chrome-action[aria-pressed="true"] {
863 color: var(--foreground);
864 background: color-mix(in srgb, var(--foreground) 8%, transparent);
866​
867.chat-markdown .chat-markdown-codeblock pre {
868 margin: 0;
869 border: none;
870 border-radius: 0;
871 background: transparent;
873​
874.chat-markdown .chat-markdown-codeblock[data-wrap="true"] pre {
875 white-space: pre-wrap;
876 overflow-wrap: anywhere;
878​
879.chat-markdown .chat-markdown-shiki .shiki {
880 background: transparent !important;
882​
883/* Diagnostics-style tables: row separators only, uppercase headers, and a
884 scroll-fade container for horizontal overflow. The root chat-markdown
885 wrapping rules (overflow-wrap: anywhere) would let columns shrink to single
886 characters and defeat the overflow — restore word-boundary wrapping so the
887 min column width is the longest word. */
888.chat-markdown table {
889 width: 100%;
890 min-width: max-content;
891 border-collapse: collapse;
892 overflow-wrap: normal;
893 word-break: normal;
894 font-size: 0.75rem;
896​
897.chat-markdown th,
898.chat-markdown td {
899 padding: 0.45rem 0.75rem;
900 text-align: left;
902​
903.chat-markdown thead th {
904 border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
905 padding-block: 0.55rem;
906 font-weight: 600;
907 white-space: nowrap;
909​
910.chat-markdown tbody td {
911 border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
913​
914/* Collapsed (default): single-line cells truncate so arbitrary chat content
915 cannot blow the column out; the footer toggle expands cells to wrap. */
916.chat-markdown .chat-markdown-table-container[data-expanded="false"] th,
917.chat-markdown .chat-markdown-table-container[data-expanded="false"] td {
918 overflow: hidden;
919 max-width: 24rem;
920 text-overflow: ellipsis;
921 white-space: nowrap;
923​
924.chat-markdown .chat-markdown-table-container[data-expanded="true"] td {
925 max-width: 24rem;
926 overflow-wrap: anywhere;
928​
929.chat-markdown .chat-markdown-table-footer {
930 display: flex;
931 align-items: center;
932 justify-content: space-between;
933 margin-top: 0.125rem;
935​
936@keyframes provider-update-pill-countdown {
937 from {
938 transform: scaleX(1);
939 }
940 to {
941 transform: scaleX(0);
942 }
944​
945.provider-update-pill-progress {
946 animation: provider-update-pill-countdown var(--provider-update-pill-dismiss-ms) linear forwards;
948​
949/* Diffs theme bridge (match diff surfaces to app palette) */
950.diff-panel-viewport {
951 background: color-mix(in srgb, var(--background) 94%, var(--card));
953​
954.diff-render-file,
955.diff-render-surface > diffs-container {
956 border: 1px solid var(--border);
957 border-radius: 0.5rem;
958 overflow: clip;
959 background: color-mix(in srgb, var(--card) 92%, var(--background));
961​
962@keyframes ultrathink-rainbow {
963 0% {
964 background-position: 0% 50%;
965 }
966 100% {
967 background-position: 200% 50%;
968 }
970​
971@keyframes ultrathink-chroma-shift {
972 0% {
973 filter: hue-rotate(0deg) saturate(1.2);
974 }
975 100% {
976 filter: hue-rotate(360deg) saturate(1.2);
977 }
979​
980.ultrathink-frame {
981 --ultrathink-spectrum: linear-gradient(
982 120deg,
983 #ff6b6b 0%,
984 #f59e0b 18%,
985 #22c55e 36%,
986 #14b8a6 54%,
987 #3b82f6 72%,
988 #ec4899 90%,
989 #ff6b6b 100%
990 );
991 position: relative;
992 background: transparent;
994​
995.ultrathink-frame::before {
996 content: "";
997 position: absolute;
998 inset: 0;
999 border-radius: inherit;
1000 padding: 2px;
1001 background-image: var(--ultrathink-spectrum);
1002 background-size: 220% 220%;
1003 pointer-events: none;
1004 filter: saturate(0.82) brightness(0.92);
1005 -webkit-mask:
1006 linear-gradient(#000 0 0) content-box,
1007 linear-gradient(#000 0 0);
1008 -webkit-mask-composite: xor;
1009 mask:
1010 linear-gradient(#000 0 0) content-box,
1011 linear-gradient(#000 0 0);
1012 mask-composite: exclude;
1013 animation: ultrathink-rainbow 10s linear infinite;
1015​
1016.ultrathink-frame > * {
1017 position: relative;
1019​
1020.ultrathink-chroma {
1021 animation: ultrathink-chroma-shift 10s linear infinite;
1023​
1024.ultrathink-pill {
1025 background:
1026 linear-gradient(var(--card), var(--card)) padding-box,
1027 var(--ultrathink-spectrum) border-box;
1028 background-size:
1029 100% 100%,
1030 220% 220%;
1031 background-position:
1032 0 0,
1033 0% 50%;
1034 animation: ultrathink-rainbow 10s linear infinite;
1035 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card) 82%, transparent);
1037​
1038.ultrathink-word {
1039 display: inline-block;
1040 color: transparent;
1041 background-image: var(--ultrathink-spectrum);
1042 background-size: 220% 220%;
1043 background-position: 0% 50%;
1044 background-clip: text;
1045 -webkit-background-clip: text;
1046 animation: ultrathink-rainbow 10s linear infinite;
1048​
1049/* Thin scrollbar for model picker */
1050.model-picker-list::-webkit-scrollbar {
1051 width: 4px;
1053​
1054.model-picker-list::-webkit-scrollbar-thumb {
1055 background: rgba(0, 0, 0, 0.1);
1056 border-radius: 2px;
1058​
1059.model-picker-list::-webkit-scrollbar-thumb:hover {
1060 background: rgba(0, 0, 0, 0.2);
1062​
1063.dark .model-picker-list::-webkit-scrollbar-thumb {
1064 background: rgba(255, 255, 255, 0.08);
1066​
1067.dark .model-picker-list::-webkit-scrollbar-thumb:hover {
1068 background: rgba(255, 255, 255, 0.15);
1070​
1071/* Composer chips are non-editable decorators, so the browser skips them when
1072 painting text selection; this overlay stands in for the native highlight. */
1073.composer-inline-chip[data-composer-chip-selected]::after {
1074 content: "";
1075 position: absolute;
1076 inset: 0;
1077 border-radius: 6px;
1078 background-color: Highlight;
1079 opacity: 0.3;
1080 pointer-events: none;