Open History to see the last commit
1@import "tailwindcss";
2
3@custom-variant dark (&:is(.dark, .dark *));
4
5@theme inline {
6 --animate-skeleton: skeleton 2s -1s infinite linear;
7 --color-warning-foreground: var(--warning-foreground);
8 --color-warning: var(--warning);
9 --color-success-foreground: var(--success-foreground);
10 --color-success: var(--success);
11 --color-info-foreground: var(--info-foreground);
12 --color-info: var(--info);
13 --color-destructive-foreground: var(--destructive-foreground);
14 --color-ring: var(--ring);
15 --color-input: var(--input);
16 --color-border: var(--border);
17 --color-destructive: var(--destructive);
18 --color-accent-foreground: var(--accent-foreground);
19 --color-accent: var(--accent);
20 --color-muted-foreground: var(--muted-foreground);
21 --color-muted: var(--muted);
22 --color-secondary-foreground: var(--secondary-foreground);
23 --color-secondary: var(--secondary);
24 --color-primary-foreground: var(--primary-foreground);
25 --color-primary: var(--primary);
26 --color-popover-foreground: var(--popover-foreground);
27 --color-popover: var(--popover);
28 --color-card-foreground: var(--card-foreground);
29 --color-card: var(--card);
30 --color-foreground: var(--foreground);
31 --color-background: var(--background);
32 --radius-sm: calc(var(--radius) - 4px);
33 --radius-md: calc(var(--radius) - 2px);
34 --radius-lg: var(--radius);
35 --radius-xl: calc(var(--radius) + 4px);
36 --radius-2xl: calc(var(--radius) + 8px);
37 --radius-3xl: calc(var(--radius) + 12px);
38 --radius-4xl: calc(var(--radius) + 16px);
39 @keyframes skeleton {
40 to {
41 background-position: -200% 0;
42 }
43 }
44}
45
46@layer base {
47 * {
48 @apply border-border outline-ring/50;
49 }
50 html {
51 background-color: var(--app-chrome-background);
52 }
53 body {
54 @apply text-foreground relative;
55 background-color: var(--app-chrome-background);
56 }
57}
58
59/* Suppress all transitions during theme changes */
60.no-transitions,
61.no-transitions *,
62.no-transitions *::before,
63.no-transitions *::after {
64 transition-duration: 0s !important;
65 animation-duration: 0s !important;
66}
67
68:root {
69 color-scheme: light;
70 --radius: 0.625rem;
71 --background: var(--color-white);
72 --app-chrome-background: var(--background);
73 --foreground: var(--color-neutral-800);
74 --card: var(--color-white);
75 --card-foreground: var(--color-neutral-800);
76 --popover: var(--color-white);
77 --popover-foreground: var(--color-neutral-800);
78 --primary: oklch(0.488 0.217 264);
79 --primary-foreground: var(--color-white);
80 --secondary: --alpha(var(--color-black) / 4%);
81 --secondary-foreground: var(--color-neutral-800);
82 --muted: --alpha(var(--color-black) / 4%);
83 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-black));
84 --accent: --alpha(var(--color-black) / 4%);
85 --accent-foreground: var(--color-neutral-800);
86 --destructive: var(--color-red-500);
87 --border: --alpha(var(--color-black) / 8%);
88 --input: --alpha(var(--color-black) / 10%);
89 --ring: oklch(0.488 0.217 264);
90 --destructive-foreground: var(--color-red-700);
91 --info: var(--color-blue-500);
92 --info-foreground: var(--color-blue-700);
93 --success: var(--color-emerald-500);
94 --success-foreground: var(--color-emerald-700);
95 --warning: var(--color-amber-500);
96 --warning-foreground: var(--color-amber-700);
97
98 @variant dark {
99 color-scheme: dark;
100 --background: color-mix(in srgb, var(--color-neutral-950) 95%, var(--color-white));
101 --app-chrome-background: var(--background);
102 --foreground: var(--color-neutral-100);
103 --card: color-mix(in srgb, var(--background) 98%, var(--color-white));
104 --card-foreground: var(--color-neutral-100);
105 --popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
106 --popover-foreground: var(--color-neutral-100);
107 --primary: oklch(0.588 0.217 264);
108 --primary-foreground: var(--color-white);
109 --secondary: --alpha(var(--color-white) / 4%);
110 --secondary-foreground: var(--color-neutral-100);
111 --muted: --alpha(var(--color-white) / 4%);
112 --muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
113 --accent: --alpha(var(--color-white) / 4%);
114 --accent-foreground: var(--color-neutral-100);
115 --destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
116 --border: --alpha(var(--color-white) / 6%);
117 --input: --alpha(var(--color-white) / 8%);
118 --ring: oklch(0.588 0.217 264);
119 --destructive-foreground: var(--color-red-400);
120 --info: var(--color-blue-500);
121 --info-foreground: var(--color-blue-400);
122 --success: var(--color-emerald-500);
123 --success-foreground: var(--color-emerald-400);
124 --warning: var(--color-amber-500);
125 --warning-foreground: var(--color-amber-400);
126 }
127}
128
129body {
130 font-family:
131 "DM Sans",
132 -apple-system,
133 BlinkMacSystemFont,
134 "Segoe UI",
135 system-ui,
136 sans-serif;
137 margin: 0;
138 padding: 0;
139 min-height: 100vh;
140}
141
142html,
143body,
144#root {
145 height: 100%;
146 width: 100%;
147 max-width: 100%;
148 overflow-y: hidden;
149 overflow-x: hidden;
150 overflow-x: clip;
151 overscroll-behavior-y: none;
152}
153
154body::after {
155 content: "";
156 position: fixed;
157 inset: 0;
158 pointer-events: none;
159 opacity: 0.035;
160 background-image: 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)'/%3E%3C/svg%3E");
161 background-repeat: repeat;
162 background-size: 256px 256px;
163}
164
165pre,
166code {
167 font-family: "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
168}
169
170/* Window drag region (frameless titlebar) */
171.drag-region {
172 -webkit-app-region: drag;
173}
174
175.drag-region button,
176.drag-region input,
177.drag-region textarea,
178.drag-region select,
179.drag-region a {
180 -webkit-app-region: no-drag;
181}
182
183/* Scrollbar styling */
184::-webkit-scrollbar {
185 width: 6px;
186}
187
188::-webkit-scrollbar-track {
189 background: transparent;
190}
191
192::-webkit-scrollbar-thumb {
193 background: rgba(0, 0, 0, 0.15);
194 border-radius: 3px;
195}
196
197::-webkit-scrollbar-thumb:hover {
198 background: rgba(0, 0, 0, 0.25);
199}
200
201.dark ::-webkit-scrollbar-thumb {
202 background: rgba(255, 255, 255, 0.1);
203}
204
205.dark ::-webkit-scrollbar-thumb:hover {
206 background: rgba(255, 255, 255, 0.18);
207}
208
209.turn-chip-strip {
210 scrollbar-width: none;
211 -ms-overflow-style: none;
212 overscroll-behavior-x: contain;
213}
214
215.turn-chip-strip::-webkit-scrollbar {
216 display: none;
217}
218
219/* Terminal drawer scrollbar parity with chat */
220.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical {
221 width: 6px !important;
222}
223
224.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar > .slider {
225 border-radius: 3px;
226}
227
228.thread-terminal-drawer .xterm .xterm-scrollable-element > .scrollbar.vertical > .slider {
229 width: 6px !important;
230 left: 0 !important;
231}
232
233/* Reasoning select -- clickable label surface */
234label:has(> select#reasoning-effort) {
235 position: relative;
236}
237label:has(> select#reasoning-effort) select {
238 position: absolute;
239 inset: 0;
240 opacity: 0;
241 cursor: pointer;
242 width: 100%;
243 height: 100%;
244}
245
246/* Chat markdown rendering */
247.chat-markdown {
248 min-width: 0;
249 overflow-wrap: anywhere;
250 word-break: break-word;
251}
252
253.chat-markdown > :first-child {
254 margin-top: 0;
255}
256
257.chat-markdown > :last-child {
258 margin-bottom: 0;
259}
260
261.chat-markdown p,
262.chat-markdown ul,
263.chat-markdown ol,
264.chat-markdown blockquote,
265.chat-markdown pre,
266.chat-markdown table {
267 margin: 0.65rem 0;
268}
269
270.chat-markdown ul {
271 padding-left: 1.25rem;
272 list-style-type: disc;
273}
274
275.chat-markdown ol {
276 padding-left: 1.25rem;
277 list-style-type: decimal;
278}
279
280.chat-markdown ul ul {
281 list-style-type: circle;
282}
283
284.chat-markdown ul ul ul {
285 list-style-type: square;
286}
287
288.chat-markdown ol ol {
289 list-style-type: lower-alpha;
290}
291
292.chat-markdown ol ol ol {
293 list-style-type: lower-roman;
294}
295
296.chat-markdown li + li {
297 margin-top: 0.25rem;
298}
299
300.chat-markdown a {
301 color: var(--info-foreground);
302 text-decoration: underline;
303 text-decoration-color: color-mix(in srgb, var(--info-foreground) 40%, transparent);
304}
305
306.chat-markdown a:hover {
307 opacity: 0.8;
308}
309
310.chat-markdown blockquote {
311 border-left: 2px solid var(--border);
312 padding-left: 0.8rem;
313 color: var(--muted-foreground);
314}
315
316.chat-markdown :not(pre) > code {
317 border: 1px solid var(--border);
318 border-radius: 0.375rem;
319 background: var(--muted);
320 padding: 0.1rem 0.35rem;
321 color: var(--foreground);
322 font-size: 0.75rem;
323}
324
325.chat-markdown pre {
326 max-width: 100%;
327 overflow-x: auto;
328 border: 1px solid var(--border);
329 border-radius: 0.75rem;
330 background: var(--muted);
331 padding: 0.8rem 0.9rem;
332}
333
334.chat-markdown pre code {
335 border: none;
336 background: transparent;
337 padding: 0;
338 font-size: 0.75rem;
339}
340
341.chat-markdown .chat-markdown-codeblock {
342 position: relative;
343 margin: 0.65rem 0;
344}
345
346.chat-markdown .chat-markdown-codeblock pre {
347 margin: 0;
348}
349
350.chat-markdown .chat-markdown-copy-button {
351 position: absolute;
352 top: 0.5rem;
353 right: 0.5rem;
354 z-index: 1;
355 display: inline-flex;
356 align-items: center;
357 justify-content: center;
358 height: 1.5rem;
359 width: 1.5rem;
360 border-radius: 0.375rem;
361 border: 1px solid var(--border);
362 background: color-mix(in srgb, var(--background) 82%, transparent);
363 color: var(--muted-foreground);
364 opacity: 0;
365 pointer-events: none;
366 transition:
367 opacity 120ms ease,
368 color 120ms ease,
369 border-color 120ms ease;
370}
371
372.chat-markdown .chat-markdown-codeblock:hover .chat-markdown-copy-button,
373.chat-markdown .chat-markdown-codeblock:focus-within .chat-markdown-copy-button {
374 opacity: 1;
375 pointer-events: auto;
376}
377
378.chat-markdown .chat-markdown-copy-button:hover {
379 color: var(--foreground);
380 border-color: color-mix(in srgb, var(--border) 70%, var(--foreground));
381}
382
383.chat-markdown .chat-markdown-shiki .shiki {
384 background: color-mix(in srgb, var(--muted) 78%, var(--background)) !important;
385}
386
387.chat-markdown table {
388 width: 100%;
389 border-collapse: collapse;
390}
391
392.chat-markdown th,
393.chat-markdown td {
394 border: 1px solid var(--border);
395 padding: 0.35rem 0.45rem;
396 text-align: left;
397}
398
399/* Diffs theme bridge (match diff surfaces to app palette) */
400.diff-panel-viewport {
401 background: color-mix(in srgb, var(--background) 94%, var(--card));
402}
403
404.diff-render-file {
405 border: 1px solid var(--border);
406 border-radius: 0.5rem;
407 overflow: clip;
408 background: color-mix(in srgb, var(--card) 92%, var(--background));
409}
410
411@keyframes ultrathink-rainbow {
412 0% {
413 background-position: 0% 50%;
414 }
415 100% {
416 background-position: 200% 50%;
417 }
418}
419
420@keyframes ultrathink-chroma-shift {
421 0% {
422 filter: hue-rotate(0deg) saturate(1.2);
423 }
424 100% {
425 filter: hue-rotate(360deg) saturate(1.2);
426 }
427}
428
429.ultrathink-frame {
430 --ultrathink-spectrum: linear-gradient(
431 120deg,
432 #ff6b6b 0%,
433 #f59e0b 18%,
434 #22c55e 36%,
435 #14b8a6 54%,
436 #3b82f6 72%,
437 #ec4899 90%,
438 #ff6b6b 100%
439 );
440 background-image: var(--ultrathink-spectrum);
441 background-size: 220% 220%;
442 animation: ultrathink-rainbow 10s linear infinite;
443}
444
445.ultrathink-chroma {
446 animation: ultrathink-chroma-shift 10s linear infinite;
447}
448
449.ultrathink-pill {
450 background:
451 linear-gradient(var(--card), var(--card)) padding-box,
452 var(--ultrathink-spectrum) border-box;
453 background-size:
454 100% 100%,
455 220% 220%;
456 background-position:
457 0 0,
458 0% 50%;
459 animation: ultrathink-rainbow 10s linear infinite;
460 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card) 82%, transparent);
461}
462
463.ultrathink-word {
464 display: inline-block;
465 color: transparent;
466 background-image: var(--ultrathink-spectrum);
467 background-size: 220% 220%;
468 background-position: 0% 50%;
469 background-clip: text;
470 -webkit-background-clip: text;
471 animation: ultrathink-rainbow 10s linear infinite;
472}