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