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

index.css

1,134 lines29.2 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 holds with stepped ramps, so the
112 compositor updates discrete frames instead of every vsync. */
113 --animate-status-pulse: status-pulse 2s infinite;
114 --animate-status-ping: status-ping 2s infinite;
115 --animate-sidebar-working-text: sidebar-working-text 3.4s 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 }
188 @keyframes sidebar-working-text {
189 0%,
190 36% {
191 opacity: 1;
192 animation-timing-function: steps(10);
193 }
194 50%,
195 86% {
196 opacity: 0.75;
197 animation-timing-function: steps(10);
198 }
199 100% {
200 opacity: 1;
201 }
202 }
204​
205@layer base {
206 * {
207 @apply border-border outline-ring/50;
208 }
209 :where([data-slot="menu-popup"], [data-slot="select-popup"], [data-slot="popover-popup"]):focus,
210 :where(
211 [data-slot="menu-popup"],
212 [data-slot="select-popup"],
213 [data-slot="popover-popup"]
214 ):focus-visible {
215 @apply outline-none ring-0;
216 }
217 html {
218 background-color: var(--app-chrome-background);
219 }
220 body {
221 @apply text-foreground relative;
222 background-color: var(--app-chrome-background);
223 }
225​
226@layer components {
227 .sidebar-brand {
228 display: none;
229 }
230​
231 .sidebar-brand-stage {
232 display: none;
233 }
234​
235 @media (min-width: 48rem) {
236 @container sidebar-header (min-width: 13.5rem) {
237 .sidebar-brand {
238 display: flex;
239 }
240 }
241​
242 @container sidebar-header (min-width: 15.75rem) {
243 .sidebar-brand-stage {
244 display: inline-flex;
245 }
246 }
247 }
248​
249 /* Stage-channel sidebar art; ::after ramps to the sidebar bg color and the
250 mask lets the surface grain show through at the boundary. Panels whose
251 background differs from the app chrome (e.g. sidebar v2) override
252 --sidebar-stage-fade so the art fades into their own surface color. */
253 .sidebar-stage-backdrop {
254 --stage-fade: var(--sidebar-stage-fade, var(--app-chrome-background));
255 mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
256 -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
257 }
258​
259 .sidebar-stage-backdrop::after {
260 content: "";
261 position: absolute;
262 inset: 0;
263 background: linear-gradient(
264 to bottom,
265 transparent 0%,
266 transparent 28%,
267 color-mix(in srgb, var(--stage-fade) 10%, transparent) 40%,
268 color-mix(in srgb, var(--stage-fade) 30%, transparent) 52%,
269 color-mix(in srgb, var(--stage-fade) 58%, transparent) 64%,
270 color-mix(in srgb, var(--stage-fade) 82%, transparent) 75%,
271 color-mix(in srgb, var(--stage-fade) 96%, transparent) 85%,
272 var(--stage-fade) 93%
273 );
274 }
275​
276 .stage-blueprint {
277 --stage-bp-top: #67c2ff;
278 --stage-bp-mid: #347ff8;
279 --stage-bp-bottom: #1538d0;
280 }
281​
282 .dark .stage-blueprint {
283 --stage-bp-top: #3a7ad1;
284 --stage-bp-mid: #2050ae;
285 --stage-bp-bottom: #101f6e;
286 }
287​
288 .workspace-topbar {
289 display: flex;
290 height: var(--workspace-topbar-height);
291 min-height: var(--workspace-topbar-height);
292 flex-shrink: 0;
293 align-items: center;
294 }
295​
296 .workspace-titlebar-controls {
297 position: absolute;
298 top: var(--workspace-controls-top);
299 right: var(--workspace-controls-right);
300 display: flex;
301 height: var(--workspace-topbar-height);
302 align-items: center;
303 -webkit-app-region: no-drag;
304 }
305​
306 .surface-subheader {
307 @apply flex h-10 min-h-10 shrink-0 items-center border-b border-border/60 bg-background;
308 }
309​
310 .chat-composer-horizontal-inset {
311 padding-inline-start: calc(env(safe-area-inset-left) + 0.75rem);
312 padding-inline-end: calc(env(safe-area-inset-right) + 0.75rem);
313 }
314​
315 .chat-composer-glass {
316 background: color-mix(in srgb, var(--card) 20%, transparent);
317 }
318​
319 /* Mix from --background (not --card): the lower chrome is a full-width
320 strip over the main view, and a card-tinted wash reads as a lighter
321 seam against it when no content is scrolled underneath. The backdrop
322 blur, not the tint, carries the frosted effect. */
323 .chat-composer-lower-chrome {
324 background: color-mix(in srgb, var(--background) 20%, transparent);
325 }
326​
327 .chat-composer-glass {
328 box-shadow:
329 0 18px 48px -20px rgb(0 0 0 / 28%),
330 0 4px 14px -7px rgb(0 0 0 / 22%);
331 }
332​
333 .chat-composer-shared-blur {
334 -webkit-backdrop-filter: blur(16px);
335 backdrop-filter: blur(16px);
336 }
337​
338 .dark .chat-composer-glass {
339 background: color-mix(in srgb, var(--card) 45%, transparent);
340 }
341​
342 .dark .chat-composer-lower-chrome {
343 background: color-mix(in srgb, var(--background) 45%, transparent);
344 }
345​
346 .dark .chat-composer-glass {
347 box-shadow:
348 0 18px 48px -20px rgb(0 0 0 / 60%),
349 0 4px 14px -7px rgb(0 0 0 / 40%);
350 }
351​
352 .chat-composer-lower-chrome {
353 margin-top: -1px;
354 margin-inline-end: var(--app-scrollbar-width);
355 padding-top: 1px;
356 }
357​
358 @media (min-width: 40rem) {
359 .chat-composer-horizontal-inset {
360 padding-inline-start: calc(env(safe-area-inset-left) + 1.25rem);
361 padding-inline-end: calc(env(safe-area-inset-right) + 1.25rem);
362 }
363 }
364​
365 @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
366 .chat-composer-glass {
367 background: var(--card);
368 }
369​
370 .chat-composer-lower-chrome {
371 background: var(--background);
372 }
373 }
375​
376/* Safe-area inset utilities for surfaces that opt into edge-to-edge rendering.
377 Insets resolve to 0 when the browser already constrains the layout viewport
378 to the safe area. */
379@utility pt-safe {
380 padding-top: max(env(safe-area-inset-top), 0px);
382@utility pb-safe {
383 padding-bottom: max(env(safe-area-inset-bottom), 0px);
385@utility pl-safe {
386 padding-left: max(env(safe-area-inset-left), 0px);
388@utility pr-safe {
389 padding-right: max(env(safe-area-inset-right), 0px);
391​
392/* Grain texture for chrome surfaces that float above the body (see the
393 --surface-grain note). Layered over the element's background-color, so it
394 composes with bg-* utilities. */
395@utility surface-grain {
396 background-image: var(--surface-grain);
397 background-repeat: repeat;
398 background-size: 256px 256px;
400​
401/* Suppress all transitions during theme changes */
402.no-transitions,
403.no-transitions *,
404.no-transitions *::before,
405.no-transitions *::after {
406 transition-duration: 0s !important;
407 animation-duration: 0s !important;
409​
410:root {
411 color-scheme: light;
412 --radius: 0.625rem;
413 --background: var(--color-white);
414 --app-chrome-background: var(--background);
415 --foreground: var(--color-neutral-800);
416 --card: var(--color-white);
417 --card-foreground: var(--color-neutral-800);
418 --popover: var(--color-white);
419 --popover-foreground: var(--color-neutral-800);
420 --primary: oklch(0.488 0.217 264);
421 --primary-foreground: var(--color-white);
422 --secondary: --alpha(var(--color-black) / 4%);
423 --secondary-foreground: var(--color-neutral-800);
424 --muted: --alpha(var(--color-black) / 4%);
425 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-black));
426 --accent: --alpha(var(--color-black) / 4%);
427 --accent-foreground: var(--color-neutral-800);
428 --destructive: var(--color-red-500);
429 --border: --alpha(var(--color-black) / 8%);
430 --input: --alpha(var(--color-black) / 10%);
431 --ring: oklch(0.488 0.217 264);
432 --destructive-foreground: var(--color-red-700);
433 --info: var(--color-blue-500);
434 --info-foreground: var(--color-blue-700);
435 --success: var(--color-emerald-500);
436 --success-foreground: var(--color-emerald-700);
437 --warning: var(--color-amber-500);
438 --warning-foreground: var(--color-amber-700);
439​
440 @variant dark {
441 color-scheme: dark;
442 --background: color-mix(in srgb, var(--color-neutral-950) 95%, var(--color-white));
443 --app-chrome-background: var(--background);
444 --foreground: var(--color-neutral-100);
445 --card: color-mix(in srgb, var(--background) 98%, var(--color-white));
446 --card-foreground: var(--color-neutral-100);
447 --popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
448 --popover-foreground: var(--color-neutral-100);
449 --primary: oklch(0.588 0.217 264);
450 --primary-foreground: var(--color-white);
451 --secondary: --alpha(var(--color-white) / 4%);
452 --secondary-foreground: var(--color-neutral-100);
453 --muted: --alpha(var(--color-white) / 4%);
454 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
455 --accent: --alpha(var(--color-white) / 4%);
456 --accent-foreground: var(--color-neutral-100);
457 --destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
458 --border: --alpha(var(--color-white) / 6%);
459 --input: --alpha(var(--color-white) / 8%);
460 --ring: oklch(0.588 0.217 264);
461 --destructive-foreground: var(--color-red-400);
462 --info: var(--color-blue-500);
463 --info-foreground: var(--color-blue-400);
464 --success: var(--color-emerald-500);
465 --success-foreground: var(--color-emerald-400);
466 --warning: var(--color-amber-500);
467 --warning-foreground: var(--color-amber-400);
468 }
470​
471/* Give the navigation rail its own cool graphite surface instead of borrowing
472 the workspace card color. The scoped semantic tokens keep sidebar v2's
473 controls in the same palette without changing v1 or the settings nav. */
474.app-sidebar {
475 --background: oklch(0.965 0.009 265);
476 --foreground: oklch(0.27 0.025 265);
477 --card: oklch(0.945 0.014 265);
478 --card-foreground: var(--foreground);
479 --accent: oklch(0.875 0.008 265);
480 --accent-foreground: oklch(0.24 0.012 265);
481 --muted: oklch(0.9 0.018 265);
482 --muted-foreground: oklch(0.49 0.03 265);
483 --border: oklch(0.72 0.025 265 / 28%);
484 --input: oklch(0.62 0.03 265 / 28%);
485 --sidebar-stage-fade: var(--card);
486 background-color: var(--card);
488​
489.dark .app-sidebar {
490 --background: #000;
491 --foreground: #f1f3f7;
492 --card: #000;
493 --card-foreground: var(--foreground);
494 --accent: #191a1d;
495 --accent-foreground: #f7f9ff;
496 --muted: #0a0a0a;
497 --muted-foreground: #a3a3a3;
498 --border: rgb(255 255 255 / 14%);
499 --input: rgb(255 255 255 / 18%);
500 /* The stage-channel header art must ramp to THIS panel's surface, not the
501 global chrome background, or the fade shows a seam (same rule as the
502 light palette above). */
503 --sidebar-stage-fade: var(--card);
505​
506body {
507 font-family:
508 "DM Sans Variable",
509 "DM Sans",
510 -apple-system,
511 BlinkMacSystemFont,
512 "Segoe UI",
513 system-ui,
514 sans-serif;
515 margin: 0;
516 padding: 0;
518​
519html,
520body {
521 min-height: calc(100svh + env(safe-area-inset-top));
522 overscroll-behavior: none;
524​
525body {
526 height: 100%;
527 overflow: hidden;
529​
530#root {
531 height: 100%;
532 width: 100%;
533 max-width: 100%;
534 overflow-x: hidden;
535 overflow-x: clip;
536 overflow-y: hidden;
537 overscroll-behavior-y: none;
538 padding-top: max(env(safe-area-inset-top), 0px);
539 padding-right: var(--desktop-window-right-resize-inset);
541​
542.electron-windows {
543 --desktop-window-right-resize-inset: 6px;
545​
546/* App-chrome grain. Baked into each surface's own background (behind
547 content) rather than a fixed overlay on top: a full-viewport overlay
548 forces the compositor to re-blend every frame any animation produces,
549 which multiplied idle GPU cost. The overlay's 0.035 opacity lives in the
550 SVG rect instead. Surfaces that float over the body (e.g. the inset main
551 card) must opt in via the surface-grain utility, or they lose the
552 grain's subtle brightening and stand out against the body. */
553:root {
554 --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");
556​
557body {
558 background-image: var(--surface-grain);
559 background-repeat: repeat;
560 background-size: 256px 256px;
562​
563pre,
564code {
565 font-family:
566 "SF Mono", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
568​
569/* Window drag region (frameless titlebar) */
570.drag-region {
571 -webkit-app-region: drag;
573​
574.drag-region button,
575.drag-region input,
576.drag-region textarea,
577.drag-region select,
578.drag-region a {
579 -webkit-app-region: no-drag;
581​
582/* Scrollbar styling */
583::-webkit-scrollbar {
584 width: var(--app-scrollbar-width);
586​
587::-webkit-scrollbar-track {
588 background: transparent;
590​
591::-webkit-scrollbar-thumb {
592 background: rgba(0, 0, 0, 0.15);
593 border-radius: 3px;
595​
596::-webkit-scrollbar-thumb:hover {
597 background: rgba(0, 0, 0, 0.25);
599​
600.dark ::-webkit-scrollbar-thumb {
601 background: rgba(255, 255, 255, 0.1);
603​
604.dark ::-webkit-scrollbar-thumb:hover {
605 background: rgba(255, 255, 255, 0.18);
607​
608.turn-chip-strip {
609 scrollbar-width: none;
610 -ms-overflow-style: none;
611 overscroll-behavior-x: contain;
613​
614.turn-chip-strip::-webkit-scrollbar {
615 display: none;
617​
618/* Terminal drawer scrollbar parity with chat */
619.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical {
620 width: 6px !important;
622​
623.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar > .slider {
624 border-radius: 3px;
626​
627.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical > .slider {
628 width: 6px !important;
629 left: 0 !important;
631​
632/* Reasoning select -- clickable label surface */
633label:has(> select#reasoning-effort) {
634 position: relative;
636label:has(> select#reasoning-effort) select {
637 position: absolute;
638 inset: 0;
639 opacity: 0;
640 cursor: pointer;
641 width: 100%;
642 height: 100%;
644​
645/* Chat markdown rendering */
646.chat-markdown {
647 min-width: 0;
648 overflow-wrap: anywhere;
649 word-break: break-word;
651​
652.chat-markdown > :first-child {
653 margin-top: 0;
655​
656.chat-markdown > :last-child {
657 margin-bottom: 0;
659​
660.chat-markdown p,
661.chat-markdown ul,
662.chat-markdown ol,
663.chat-markdown blockquote,
664.chat-markdown pre,
665.chat-markdown .chat-markdown-table-container {
666 margin: 0.65rem 0;
668​
669.chat-markdown h1,
670.chat-markdown h2,
671.chat-markdown h3,
672.chat-markdown h4,
673.chat-markdown h5,
674.chat-markdown h6 {
675 margin: 1.25rem 0 0.5rem;
676 font-weight: 600;
677 line-height: 1.3;
678 color: var(--foreground);
680​
681.chat-markdown h1 {
682 font-size: 1.25rem;
684​
685.chat-markdown h2 {
686 font-size: 1.125rem;
688​
689.chat-markdown h3 {
690 font-size: 1rem;
692​
693.chat-markdown h4,
694.chat-markdown h5,
695.chat-markdown h6 {
696 font-size: 0.875rem;
698​
699.chat-markdown h6 {
700 color: var(--muted-foreground);
702​
703.chat-markdown ul {
704 padding-left: 1.25rem;
705 list-style-type: disc;
707​
708.chat-markdown ol {
709 padding-left: 1.25rem;
710 list-style-type: decimal;
712​
713.chat-markdown ul ul {
714 list-style-type: circle;
716​
717.chat-markdown ul ul ul {
718 list-style-type: square;
720​
721.chat-markdown ol ol {
722 list-style-type: lower-alpha;
724​
725.chat-markdown ol ol ol {
726 list-style-type: lower-roman;
728​
729.chat-markdown li + li {
730 margin-top: 0.25rem;
732​
733/* GitHub-style task lists: the checkbox replaces the list marker. */
734.chat-markdown li.task-list-item {
735 list-style-type: none;
737​
738.chat-markdown li.task-list-item input[type="checkbox"] {
739 margin: 0 0.35em 0.15em -1.25rem;
740 vertical-align: middle;
742​
743.chat-markdown a {
744 color: var(--info-foreground);
745 text-decoration: none;
747​
748.chat-markdown a:not(.chat-markdown-file-link):hover,
749.chat-markdown a:not(.chat-markdown-file-link):focus-visible {
750 background-image: radial-gradient(circle, currentcolor 0.75px, transparent 1px);
751 background-position: left bottom;
752 background-repeat: repeat-x;
753 background-size: 4px 2px;
755​
756.chat-markdown .chat-markdown-link-favicon {
757 @apply inline-flex;
758 width: 14px;
759 height: 14px;
760 margin-inline: 0.25em 0.2em;
761 vertical-align: -0.125em;
763​
764.chat-markdown .chat-markdown-link-leading {
765 white-space: nowrap;
767​
768.chat-markdown blockquote {
769 border-left: 2px solid var(--border);
770 padding-left: 0.8rem;
771 color: var(--muted-foreground);
773​
774.chat-markdown section[data-footnotes] {
775 margin-top: 1.25rem;
776 border-top: 1px solid var(--border);
777 padding-top: 0.75rem;
778 color: var(--muted-foreground);
779 font-size: 0.75rem;
781​
782.chat-markdown section[data-footnotes] ol {
783 margin: 0;
784 padding-left: 1.25rem;
786​
787.chat-markdown section[data-footnotes] li + li {
788 margin-top: 0.35rem;
790​
791.chat-markdown a[data-footnote-ref],
792.chat-markdown a[data-footnote-backref] {
793 display: inline-flex;
794 min-width: 1rem;
795 align-items: center;
796 justify-content: center;
797 border-radius: 0.25rem;
798 text-decoration: none;
799 font-size: 0.6875rem;
800 font-weight: 600;
802​
803.chat-markdown :not(pre) > code {
804 border: 1px solid var(--border);
805 border-radius: 0.375rem;
806 background: var(--muted);
807 padding: 0.1rem 0.35rem;
808 color: var(--foreground);
809 font-size: 0.75rem;
811​
812.chat-markdown a.chat-markdown-file-link {
813 color: var(--foreground);
814 text-decoration: none;
816​
817.chat-markdown a.chat-markdown-file-link:hover {
818 color: var(--foreground);
819 text-decoration: none;
821​
822.chat-markdown a.chat-markdown-file-link:focus-visible {
823 outline: none;
824 box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 70%, transparent);
826​
827.chat-markdown pre {
828 max-width: 100%;
829 overflow-x: auto;
830 border: 1px solid var(--border);
831 border-radius: 0.75rem;
832 background: var(--muted);
833 padding: 0.8rem 0.9rem;
835​
836.chat-markdown pre code {
837 border: none;
838 background: transparent;
839 padding: 0;
840 font-size: 0.75rem;
842​
843.chat-markdown pre {
844 scrollbar-width: thin;
845 scrollbar-color: color-mix(in srgb, var(--border) 78%, transparent) transparent;
847​
848.chat-markdown pre::-webkit-scrollbar {
849 height: 7px;
851​
852.chat-markdown pre::-webkit-scrollbar-track {
853 background: transparent;
855​
856.chat-markdown pre::-webkit-scrollbar-thumb {
857 border-radius: 999px;
858 background: color-mix(in srgb, var(--border) 78%, transparent);
860​
861.markdown-file-link-tooltip-scroll {
862 scrollbar-width: thin;
863 scrollbar-color: color-mix(in srgb, var(--border) 78%, transparent) transparent;
865​
866.markdown-file-link-tooltip-scroll::-webkit-scrollbar {
867 height: 6px;
869​
870.markdown-file-link-tooltip-scroll::-webkit-scrollbar-track {
871 background: transparent;
873​
874.markdown-file-link-tooltip-scroll::-webkit-scrollbar-thumb {
875 border-radius: 999px;
876 background: color-mix(in srgb, var(--border) 78%, transparent);
878​
879.chat-markdown .chat-markdown-codeblock {
880 margin: 0.65rem 0;
881 overflow: hidden;
882 border: 1px solid var(--border);
883 border-radius: 0.75rem;
884 background: color-mix(in srgb, var(--muted) 78%, var(--background));
886​
887.chat-markdown .chat-markdown-codeblock-header {
888 display: flex;
889 align-items: center;
890 justify-content: space-between;
891 gap: 0.5rem;
892 border-bottom: 1px solid var(--border);
893 background: var(--muted);
894 padding: 0.25rem 0.375rem 0.25rem 0.7rem;
895 color: var(--muted-foreground);
897​
898.chat-markdown .chat-markdown-codeblock-title {
899 display: inline-flex;
900 min-width: 0;
901 align-items: center;
902 gap: 0.4rem;
903 font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
904 font-size: 0.6875rem;
906​
907.chat-markdown .chat-markdown-chrome-action {
908 color: var(--muted-foreground);
910​
911.chat-markdown .chat-markdown-chrome-action:hover {
912 color: var(--foreground);
914​
915.chat-markdown .chat-markdown-chrome-action[aria-pressed="true"] {
916 color: var(--foreground);
917 background: color-mix(in srgb, var(--foreground) 8%, transparent);
919​
920.chat-markdown .chat-markdown-codeblock pre {
921 margin: 0;
922 border: none;
923 border-radius: 0;
924 background: transparent;
926​
927.chat-markdown .chat-markdown-codeblock[data-wrap="true"] pre {
928 white-space: pre-wrap;
929 overflow-wrap: anywhere;
931​
932.chat-markdown .chat-markdown-shiki .shiki {
933 background: transparent !important;
935​
936/* Diagnostics-style tables: row separators only, uppercase headers, and a
937 scroll-fade container for horizontal overflow. The root chat-markdown
938 wrapping rules (overflow-wrap: anywhere) would let columns shrink to single
939 characters and defeat the overflow — restore word-boundary wrapping so the
940 min column width is the longest word. */
941.chat-markdown table {
942 width: 100%;
943 min-width: max-content;
944 border-collapse: collapse;
945 overflow-wrap: normal;
946 word-break: normal;
947 font-size: 0.75rem;
949​
950.chat-markdown th,
951.chat-markdown td {
952 padding: 0.45rem 0.75rem;
953 text-align: left;
955​
956.chat-markdown thead th {
957 border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
958 padding-block: 0.55rem;
959 font-weight: 600;
960 white-space: nowrap;
962​
963.chat-markdown tbody td {
964 border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
966​
967/* Collapsed (default): single-line cells truncate so arbitrary chat content
968 cannot blow the column out; the footer toggle expands cells to wrap. */
969.chat-markdown .chat-markdown-table-container[data-expanded="false"] th,
970.chat-markdown .chat-markdown-table-container[data-expanded="false"] td {
971 overflow: hidden;
972 max-width: 24rem;
973 text-overflow: ellipsis;
974 white-space: nowrap;
976​
977.chat-markdown .chat-markdown-table-container[data-expanded="true"] td {
978 max-width: 24rem;
979 overflow-wrap: anywhere;
981​
982.chat-markdown .chat-markdown-table-footer {
983 display: flex;
984 align-items: center;
985 justify-content: space-between;
986 margin-top: 0.125rem;
988​
989@keyframes provider-update-pill-countdown {
990 from {
991 transform: scaleX(1);
992 }
993 to {
994 transform: scaleX(0);
995 }
997​
998.provider-update-pill-progress {
999 animation: provider-update-pill-countdown var(--provider-update-pill-dismiss-ms) linear forwards;
1001​
1002/* Diffs theme bridge (match diff surfaces to app palette) */
1003.diff-panel-viewport {
1004 background: color-mix(in srgb, var(--background) 94%, var(--card));
1006​
1007.diff-render-file,
1008.diff-render-surface > diffs-container {
1009 border: 1px solid var(--border);
1010 border-radius: 0.5rem;
1011 overflow: clip;
1012 background: color-mix(in srgb, var(--card) 92%, var(--background));
1014​
1015@keyframes ultrathink-rainbow {
1016 0% {
1017 background-position: 0% 50%;
1019 100% {
1020 background-position: 200% 50%;
1023​
1024@keyframes ultrathink-chroma-shift {
1025 0% {
1026 filter: hue-rotate(0deg) saturate(1.2);
1028 100% {
1029 filter: hue-rotate(360deg) saturate(1.2);
1032​
1033.ultrathink-frame {
1034 --ultrathink-spectrum: linear-gradient(
1035 120deg,
1036 #ff6b6b 0%,
1037 #f59e0b 18%,
1038 #22c55e 36%,
1039 #14b8a6 54%,
1040 #3b82f6 72%,
1041 #ec4899 90%,
1042 #ff6b6b 100%
1043 );
1044 position: relative;
1045 background: transparent;
1047​
1048.ultrathink-frame::before {
1049 content: "";
1050 position: absolute;
1051 inset: 0;
1052 border-radius: inherit;
1053 padding: 2px;
1054 background-image: var(--ultrathink-spectrum);
1055 background-size: 220% 220%;
1056 pointer-events: none;
1057 filter: saturate(0.82) brightness(0.92);
1058 -webkit-mask:
1059 linear-gradient(#000 0 0) content-box,
1060 linear-gradient(#000 0 0);
1061 -webkit-mask-composite: xor;
1062 mask:
1063 linear-gradient(#000 0 0) content-box,
1064 linear-gradient(#000 0 0);
1065 mask-composite: exclude;
1066 animation: ultrathink-rainbow 10s linear infinite;
1068​
1069.ultrathink-frame > * {
1070 position: relative;
1072​
1073.ultrathink-chroma {
1074 animation: ultrathink-chroma-shift 10s linear infinite;
1076​
1077.ultrathink-pill {
1078 background:
1079 linear-gradient(var(--card), var(--card)) padding-box,
1080 var(--ultrathink-spectrum) border-box;
1081 background-size:
1082 100% 100%,
1083 220% 220%;
1084 background-position:
1085 0 0,
1086 0% 50%;
1087 animation: ultrathink-rainbow 10s linear infinite;
1088 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card) 82%, transparent);
1090​
1091.ultrathink-word {
1092 display: inline-block;
1093 color: transparent;
1094 background-image: var(--ultrathink-spectrum);
1095 background-size: 220% 220%;
1096 background-position: 0% 50%;
1097 background-clip: text;
1098 -webkit-background-clip: text;
1099 animation: ultrathink-rainbow 10s linear infinite;
1101​
1102/* Thin scrollbar for model picker */
1103.model-picker-list::-webkit-scrollbar {
1104 width: 4px;
1106​
1107.model-picker-list::-webkit-scrollbar-thumb {
1108 background: rgba(0, 0, 0, 0.1);
1109 border-radius: 2px;
1111​
1112.model-picker-list::-webkit-scrollbar-thumb:hover {
1113 background: rgba(0, 0, 0, 0.2);
1115​
1116.dark .model-picker-list::-webkit-scrollbar-thumb {
1117 background: rgba(255, 255, 255, 0.08);
1119​
1120.dark .model-picker-list::-webkit-scrollbar-thumb:hover {
1121 background: rgba(255, 255, 255, 0.15);
1123​
1124/* Composer chips are non-editable decorators, so the browser skips them when
1125 painting text selection; this overlay stands in for the native highlight. */
1126.composer-inline-chip[data-composer-chip-selected]::after {
1127 content: "";
1128 position: absolute;
1129 inset: 0;
1130 border-radius: 6px;
1131 background-color: Highlight;
1132 opacity: 0.3;
1133 pointer-events: none;