返回 CodeWhale
styles.css
根目录 / crates / app-server / src / runtime_web / styles.css
1 :root {
2 color-scheme: dark;
3 /* CWC Ocean is the dark Blue Stage view. Keep semantic roles here so this
4 dependency-free client shares the product grammar without importing the
5 managed app or its component runtime. */
6 --bg: #020711;
7 --sidebar: #050b16;
8 --surface: #0e1a30;
9 --surface-raised: #172945;
10 --hover: rgba(106, 174, 242, 0.09);
11 --selected: rgba(106, 174, 242, 0.15);
12 --scrim: rgba(0, 2, 8, 0.7);
13 --line: rgba(72, 215, 255, 0.14);
14 --line-strong: rgba(106, 174, 242, 0.28);
15 --edge: rgba(209, 235, 244, 0.08);
16 --shadow-color: rgba(0, 2, 8, 0.56);
17 --text: #f6f2e8;
18 --text-soft: #b6c0d4;
19 --text-muted: #93a0b8;
20 --text-faint: #8491aa;
21 --action: #6aaef2;
22 --action-strong: #4f8fe8;
23 --action-contrast: #03070d;
24 --action-soft: rgba(106, 174, 242, 0.13);
25 --status-live: #4fd1c5;
26 --status-human: #f6c453;
27 --status-warning: #ff7a59;
28 --status-danger: #ff86b2;
29 --status-offline: #93a0b8;
30 --status-live-soft: rgba(79, 209, 197, 0.11);
31 --status-human-soft: rgba(246, 196, 83, 0.11);
32 --status-warning-soft: rgba(255, 122, 89, 0.11);
33 --status-danger-soft: rgba(255, 134, 178, 0.11);
34 --stage-surface: #142747;
35 --stage-shallows: #0d1b33;
36 --stage-depth: #061226;
37 --stage-abyss: #020711;
38 --plate: rgba(18, 34, 60, 0.9);
39 --well: #06111f;
40 --well-deep: #020711;
41 --rim: rgba(209, 235, 244, 0.13);
42 --caustic: rgba(72, 215, 255, 0.12);
43 --vignette: rgba(0, 2, 8, 0.58);
44
45 /* Compatibility aliases keep the existing embedded markup intentionally
46 small while all new styling speaks in the semantic roles above. */
47 --ink-0: var(--bg);
48 --ink-1: var(--stage-depth);
49 --ink-2: var(--surface);
50 --ink-3: var(--surface-raised);
51 --text-dim: var(--text-muted);
52 --action-wash: var(--action-soft);
53 --human: var(--status-human);
54 --human-wash: var(--status-human-soft);
55 --live: var(--status-live);
56 --live-wash: var(--status-live-soft);
57 --warning: var(--status-warning);
58 --danger: var(--status-danger);
59 --ok: #9bd66f;
60 --radius-control: 6px;
61 --radius-card: 12px;
62 --radius-composer: 16px;
63 --space-1: 4px;
64 --space-2: 8px;
65 --space-3: 12px;
66 --space-4: 16px;
67 --space-5: 24px;
68 --space-6: 32px;
69 --dur-fast: 120ms;
70 --dur-med: 200ms;
71 --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
72 --rail: 256px;
73 --content: 760px;
74 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
75 font-synthesis: none;
76 text-rendering: optimizeLegibility;
77 }
78
79 * {
80 box-sizing: border-box;
81 }
82
83 html,
84 body {
85 width: 100%;
86 min-width: 280px;
87 height: 100%;
88 margin: 0;
89 overflow: hidden;
90 background: var(--bg);
91 color: var(--text);
92 -webkit-font-smoothing: antialiased;
93 }
94
95 button,
96 input,
97 textarea {
98 color: inherit;
99 font: inherit;
100 }
101
102 button {
103 cursor: pointer;
104 touch-action: manipulation;
105 }
106
107 button:disabled,
108 textarea:disabled {
109 cursor: not-allowed;
110 opacity: 0.45;
111 }
112
113 button:focus-visible,
114 input:focus-visible,
115 textarea:focus-visible,
116 summary:focus-visible {
117 outline: 3px solid var(--action);
118 outline-offset: 3px;
119 }
120
121 .shell {
122 --visual-viewport-height: 100dvh;
123 --visual-viewport-offset-top: 0px;
124 display: grid;
125 grid-template-columns: var(--rail) minmax(0, 1fr);
126 width: 100%;
127 height: var(--visual-viewport-height);
128 min-height: 0;
129 background: var(--bg);
130 }
131
132 .rail {
133 position: relative;
134 z-index: 20;
135 display: grid;
136 grid-template-rows: 52px auto auto minmax(144px, 1fr) minmax(0, 34%) auto;
137 gap: var(--space-2);
138 min-width: 0;
139 min-height: 0;
140 overflow: hidden;
141 padding: 10px 10px 12px;
142 border-right: 1px solid var(--line);
143 background: var(--sidebar);
144 }
145
146 .rail-brand,
147 .session-heading,
148 .header-actions,
149 .composer-bar,
150 .composer-actions,
151 .rail-footer,
152 .fact-chip,
153 .thread-title-row,
154 .attention-actions,
155 .dialog-actions {
156 display: flex;
157 align-items: center;
158 }
159
160 .rail-brand {
161 min-width: 0;
162 gap: 10px;
163 padding: 0 8px;
164 }
165
166 .brand-mark {
167 display: block;
168 flex: 0 0 34px;
169 width: 34px;
170 height: 34px;
171 border-radius: 9px;
172 }
173
174 .eyebrow {
175 margin: 0;
176 color: var(--text-dim);
177 font-size: 11px;
178 font-weight: 700;
179 letter-spacing: 0.11em;
180 line-height: 1.3;
181 text-transform: uppercase;
182 }
183
184 .brand-name {
185 margin: 0;
186 font-size: 16px;
187 font-weight: 650;
188 letter-spacing: -0.01em;
189 }
190
191 .brand-context {
192 margin: 2px 0 0;
193 color: var(--text-dim);
194 font-size: 12px;
195 }
196
197 .primary-button,
198 .quiet-button,
199 .send-button,
200 .icon-button {
201 min-height: 36px;
202 border: 1px solid var(--line);
203 border-radius: var(--radius-control);
204 background: var(--surface);
205 color: var(--text-soft);
206 font-size: 13px;
207 font-weight: 650;
208 transition:
209 border-color var(--dur-fast) ease,
210 background var(--dur-fast) ease,
211 color var(--dur-fast) ease,
212 transform var(--dur-fast) var(--ease-out);
213 }
214
215 .primary-button,
216 .send-button {
217 border-color: rgba(106, 174, 242, 0.46);
218 background: var(--action);
219 color: var(--action-contrast);
220 }
221
222 .primary-button:hover,
223 .send-button:hover {
224 background: var(--action-strong);
225 }
226
227 .quiet-button {
228 padding: 0 11px;
229 }
230
231 .quiet-button:hover,
232 .icon-button:hover {
233 border-color: var(--line-strong);
234 background: var(--surface-raised);
235 color: var(--text);
236 }
237
238 .quiet-button.danger:hover {
239 border-color: rgba(255, 134, 178, 0.42);
240 color: var(--danger);
241 }
242
243 .icon-button {
244 display: inline-grid;
245 width: 36px;
246 min-width: 36px;
247 padding: 0;
248 place-items: center;
249 }
250
251 .new-thread {
252 display: flex;
253 width: 100%;
254 max-width: 100%;
255 min-width: 0;
256 align-items: center;
257 justify-content: flex-start;
258 min-height: 40px;
259 padding: 0 12px;
260 border-color: transparent;
261 background: var(--action-wash);
262 color: var(--text);
263 font-size: 13px;
264 }
265
266 .new-thread:hover {
267 border-color: transparent;
268 background: var(--selected);
269 color: var(--text);
270 }
271
272 .search-field {
273 display: flex;
274 min-width: 0;
275 height: 38px;
276 align-items: center;
277 gap: 8px;
278 padding: 0 11px;
279 border: 1px solid transparent;
280 border-radius: var(--radius-control);
281 background: var(--well);
282 color: var(--text-dim);
283 }
284
285 .search-field:focus-within {
286 border-color: rgba(106, 174, 242, 0.46);
287 box-shadow: 0 0 0 2px rgba(106, 174, 242, 0.1);
288 }
289
290 .search-field input {
291 width: 100%;
292 min-width: 0;
293 border: 0;
294 outline: 0;
295 background: transparent;
296 color: var(--text);
297 font-size: 14px;
298 }
299
300 .search-field input::placeholder,
301 textarea::placeholder {
302 color: var(--text-dim);
303 }
304
305 .thread-list {
306 min-height: 0;
307 margin: 0;
308 overflow-x: hidden;
309 overflow-y: auto;
310 overscroll-behavior: contain;
311 scrollbar-color: var(--ink-3) transparent;
312 }
313
314 .thread-group + .thread-group {
315 margin-top: 12px;
316 padding-top: 10px;
317 border-top: 1px solid var(--line);
318 }
319
320 .thread-group-title {
321 position: sticky;
322 z-index: 1;
323 top: 0;
324 margin: 0;
325 padding: 8px 11px 5px;
326 background: var(--sidebar);
327 }
328
329 .thread-group-needs-you .thread-group-title {
330 color: var(--status-human);
331 }
332
333 .thread-row {
334 display: block;
335 width: 100%;
336 min-height: 62px;
337 margin: 2px 0;
338 padding: 10px 11px;
339 overflow: hidden;
340 border: 1px solid transparent;
341 border-radius: var(--radius-control);
342 background: transparent;
343 color: var(--text-soft);
344 text-align: left;
345 }
346
347 .thread-row:hover {
348 background: var(--hover);
349 color: var(--text);
350 }
351
352 .thread-row[aria-current="true"] {
353 border-color: transparent;
354 background: var(--selected);
355 color: var(--text);
356 box-shadow: inset 2px 0 0 var(--action);
357 }
358
359 .thread-title-row {
360 min-width: 0;
361 justify-content: space-between;
362 gap: 8px;
363 }
364
365 .thread-row-indicators {
366 display: inline-flex;
367 flex: 0 0 auto;
368 align-items: center;
369 gap: 7px;
370 }
371
372 .thread-attention-count {
373 min-width: 20px;
374 padding: 2px 6px;
375 border: 1px solid rgba(246, 196, 83, 0.42);
376 border-radius: 999px;
377 background: rgba(246, 196, 83, 0.12);
378 color: var(--status-human);
379 font-size: 10px;
380 font-weight: 750;
381 line-height: 1.3;
382 text-align: center;
383 }
384
385 .thread-title {
386 overflow: hidden;
387 font-size: 14px;
388 font-weight: 600;
389 text-overflow: ellipsis;
390 white-space: nowrap;
391 }
392
393 .thread-preview {
394 display: -webkit-box;
395 margin-top: 4px;
396 overflow: hidden;
397 color: var(--text-dim);
398 font-size: 12px;
399 line-height: 1.45;
400 -webkit-box-orient: vertical;
401 -webkit-line-clamp: 2;
402 }
403
404 .thread-meta {
405 margin-top: 5px;
406 overflow: hidden;
407 color: var(--text-dim);
408 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
409 font-size: 10px;
410 text-overflow: ellipsis;
411 white-space: nowrap;
412 }
413
414 .status-pip {
415 flex: 0 0 7px;
416 width: 7px;
417 height: 7px;
418 border-radius: 50%;
419 background: var(--text-dim);
420 }
421
422 .status-pip.running {
423 background: var(--live);
424 box-shadow: 0 0 0 3px var(--live-wash);
425 }
426
427 .status-pip.failed {
428 background: var(--danger);
429 }
430
431 /* Read-only peek for a saved session. Visually distinct from the live
432 transcript so a recording is never mistaken for a running thread. */
433 .session-peek {
434 min-height: 0;
435 overflow-y: auto;
436 padding: 18px max(20px, calc((100% - var(--content)) / 2));
437 border-bottom: 1px solid var(--line);
438 background: rgba(2, 7, 17, 0.22);
439 }
440
441 .session-peek[hidden] {
442 display: none;
443 }
444
445 .peek-entry {
446 display: flex;
447 flex-wrap: wrap;
448 gap: 10px;
449 align-items: baseline;
450 padding: 10px 0;
451 border-top: 1px solid var(--line);
452 }
453
454 .peek-kind {
455 min-width: 84px;
456 color: var(--text-dim);
457 font-size: 11px;
458 text-transform: uppercase;
459 letter-spacing: 0.06em;
460 }
461
462 .peek-text {
463 flex: 1 1 240px;
464 min-width: 0;
465 margin: 0;
466 color: var(--text-soft);
467 font-size: 14px;
468 line-height: 1.6;
469 overflow-wrap: anywhere;
470 }
471
472 .peek-flag,
473 .peek-omitted {
474 color: var(--text-dim);
475 font-size: 11px;
476 }
477
478 .peek-header {
479 display: grid;
480 gap: 8px;
481 justify-items: start;
482 padding-bottom: 12px;
483 }
484
485 .peek-header h2 {
486 margin: 0;
487 }
488
489 .peek-notice {
490 margin: 0;
491 color: var(--text-soft);
492 font-size: 13.5px;
493 line-height: 1.5;
494 }
495
496 .peek-omitted-row {
497 display: flex;
498 flex-wrap: wrap;
499 gap: 10px;
500 align-items: center;
501 padding: 8px 0;
502 }
503
504 .peek-tool .peek-text {
505 color: var(--text-dim);
506 font-size: 12.5px;
507 }
508
509 /* Narrow viewports: the peek must not force horizontal scrolling, and the
510 kind label stacks above its text rather than squeezing it. */
511 @media (max-width: 480px) {
512 .session-peek {
513 padding: 10px 12px;
514 max-height: 45vh;
515 }
516
517 .peek-entry {
518 flex-direction: column;
519 gap: 2px;
520 }
521
522 .peek-text {
523 flex-basis: auto;
524 }
525
526 .saved-sessions {
527 max-height: 30%;
528 }
529 }
530
531 /* Saved sessions sit under the live thread list and are capped so a large
532 session store cannot push the connection footer off-screen. */
533 .saved-sessions {
534 min-height: 0;
535 max-height: 100%;
536 display: flex;
537 flex-direction: column;
538 padding-top: 12px;
539 border-top: 1px solid var(--line);
540 }
541
542 .saved-sessions[hidden] {
543 display: none;
544 }
545
546 .rail-section-title {
547 margin: 0 8px 8px;
548 color: var(--text-dim);
549 font-size: 11px;
550 font-weight: 700;
551 letter-spacing: 0.08em;
552 text-transform: uppercase;
553 }
554
555 .rail-footer {
556 min-width: 0;
557 align-items: flex-start;
558 gap: 10px;
559 padding: 11px 8px 0;
560 border-top: 1px solid var(--line);
561 color: var(--text-dim);
562 font-size: 12px;
563 }
564
565 .connection-dot {
566 flex: 0 0 8px;
567 width: 8px;
568 height: 8px;
569 margin-top: 4px;
570 border-radius: 50%;
571 background: var(--action);
572 }
573
574 .connection-copy {
575 display: grid;
576 min-width: 0;
577 gap: 3px;
578 }
579
580 .runtime-provenance {
581 overflow: hidden;
582 color: var(--text-faint);
583 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
584 font-size: 10px;
585 text-overflow: ellipsis;
586 white-space: nowrap;
587 }
588
589 .connection-dot.ready {
590 background: var(--ok);
591 }
592
593 .connection-dot.error {
594 background: var(--danger);
595 }
596
597 .session {
598 display: grid;
599 grid-template-areas:
600 "header"
601 "status"
602 "transcript"
603 "attention"
604 "composer";
605 grid-template-rows: 64px auto minmax(0, 1fr) auto auto;
606 min-width: 0;
607 min-height: 0;
608 background: var(--stage-surface);
609 }
610
611 .session-header {
612 display: grid;
613 grid-area: header;
614 grid-template-areas: "heading facts actions";
615 grid-template-columns: minmax(180px, 1fr) minmax(0, auto) auto;
616 align-items: center;
617 gap: 16px;
618 min-width: 0;
619 overflow: hidden;
620 padding: 0 20px;
621 border-bottom: 1px solid var(--line);
622 background: rgba(14, 26, 48, 0.95);
623 box-shadow: inset 0 -1px 0 var(--edge);
624 backdrop-filter: blur(14px) saturate(1.08);
625 }
626
627 .session-heading {
628 grid-area: heading;
629 min-width: 0;
630 gap: 12px;
631 }
632
633 .title-stack {
634 min-width: 0;
635 }
636
637 .session-header h1 {
638 margin: 2px 0 0;
639 overflow: hidden;
640 font-size: 18px;
641 font-weight: 700;
642 letter-spacing: -0.015em;
643 line-height: 1.25;
644 text-overflow: ellipsis;
645 white-space: nowrap;
646 }
647
648 .header-actions {
649 grid-area: actions;
650 align-self: center;
651 gap: 6px;
652 }
653
654 .session-facts {
655 display: flex;
656 flex-wrap: nowrap;
657 grid-area: facts;
658 min-width: 0;
659 gap: 6px;
660 overflow-x: auto;
661 overflow-y: hidden;
662 scrollbar-width: none;
663 }
664
665 .session-facts::-webkit-scrollbar {
666 display: none;
667 }
668
669 .fact-chip {
670 flex: 0 0 auto;
671 min-height: 28px;
672 gap: 5px;
673 padding: 0 9px;
674 border: 1px solid var(--line);
675 border-radius: var(--radius-control);
676 background: rgba(2, 7, 17, 0.18);
677 color: var(--text-dim);
678 font-size: 11px;
679 white-space: nowrap;
680 }
681
682 .fact-chip strong {
683 color: var(--text-soft);
684 font-weight: 650;
685 }
686
687 .rail-open,
688 .rail-close,
689 .rail-scrim {
690 display: none;
691 }
692
693 .status-banner {
694 grid-area: status;
695 margin: 16px auto 0;
696 width: min(var(--content), calc(100% - 40px));
697 padding: 11px 14px;
698 border: 1px solid rgba(255, 122, 89, 0.34);
699 border-radius: var(--radius-control);
700 background: var(--status-warning-soft);
701 color: var(--warning);
702 font-size: 13px;
703 line-height: 1.5;
704 }
705
706 .transcript {
707 grid-area: transcript;
708 min-height: 0;
709 padding: 34px max(20px, calc((100% - var(--content)) / 2)) 56px;
710 overflow-x: hidden;
711 overflow-y: auto;
712 overscroll-behavior: contain;
713 scroll-behavior: smooth;
714 scrollbar-color: var(--ink-3) transparent;
715 background: var(--stage-surface);
716 }
717
718 .empty-state {
719 display: grid;
720 min-height: 100%;
721 place-content: center;
722 justify-items: center;
723 padding: 32px;
724 color: var(--text-dim);
725 text-align: center;
726 }
727
728 .empty-state h2 {
729 margin: 18px 0 8px;
730 color: var(--text);
731 font-size: 22px;
732 letter-spacing: -0.02em;
733 }
734
735 .empty-state p {
736 max-width: 480px;
737 margin: 0;
738 font-size: 15px;
739 line-height: 1.65;
740 }
741
742 .empty-mark {
743 display: block;
744 width: 52px;
745 height: 52px;
746 border-radius: var(--radius-card);
747 opacity: 0.9;
748 }
749
750 .message,
751 .receipt,
752 .reasoning {
753 width: 100%;
754 margin: 0 0 24px;
755 }
756
757 .message-label,
758 .receipt-label {
759 margin-bottom: 8px;
760 color: var(--text-dim);
761 font-size: 12px;
762 font-weight: 600;
763 letter-spacing: 0;
764 }
765
766 .message-body {
767 max-width: 100%;
768 padding: 0;
769 border: 0;
770 border-radius: 0;
771 background: transparent;
772 color: var(--text);
773 font-size: 15.5px;
774 line-height: 1.7;
775 overflow-wrap: anywhere;
776 white-space: pre-wrap;
777 }
778
779 .message.user .message-body {
780 width: fit-content;
781 max-width: 82%;
782 margin-left: auto;
783 padding: 11px 15px;
784 border: 1px solid var(--line);
785 border-radius: 18px 18px 6px 18px;
786 background: var(--plate);
787 box-shadow: inset 0 1px 0 var(--rim);
788 font-size: 14.5px;
789 }
790
791 .message.user .message-label { display: none; }
792
793 .message.in-progress .message-body::after {
794 content: "";
795 display: inline-block;
796 width: 5px;
797 height: 12px;
798 margin-left: 4px;
799 background: var(--live);
800 vertical-align: -1px;
801 animation: cursor-pulse 1s steps(2, end) infinite;
802 }
803
804 @keyframes cursor-pulse {
805 50% { opacity: 0; }
806 }
807
808 .receipt {
809 display: flex;
810 width: fit-content;
811 max-width: 100%;
812 align-items: flex-start;
813 gap: 10px;
814 margin-top: -6px;
815 color: var(--text-dim);
816 }
817
818 .receipt-dot {
819 flex: 0 0 7px;
820 width: 7px;
821 height: 7px;
822 margin-top: 7px;
823 border-radius: 50%;
824 background: var(--live);
825 }
826
827 .receipt.failed .receipt-dot {
828 background: var(--danger);
829 }
830
831 .receipt.failed .receipt-copy strong {
832 color: var(--danger);
833 }
834
835 .receipt-copy {
836 display: flex;
837 min-width: 0;
838 flex-direction: column;
839 gap: 2px;
840 }
841
842 .receipt-copy strong {
843 color: var(--text-soft);
844 font-size: 12.5px;
845 font-weight: 600;
846 line-height: 1.5;
847 }
848
849 .receipt-summary {
850 color: var(--text-dim);
851 font-size: 12px;
852 line-height: 1.55;
853 overflow-wrap: anywhere;
854 }
855
856 .receipt details,
857 .reasoning details {
858 margin-top: 8px;
859 }
860
861 .receipt summary,
862 .reasoning summary {
863 display: inline-flex;
864 min-height: 34px;
865 align-items: center;
866 color: var(--text-dim);
867 cursor: pointer;
868 font-size: 12px;
869 }
870
871 .receipt pre,
872 .reasoning pre {
873 max-width: 100%;
874 max-height: 320px;
875 margin: 8px 0 0;
876 padding: 12px 14px;
877 overflow: auto;
878 border: 1px solid var(--line);
879 border-radius: var(--radius-control);
880 background: var(--well-deep);
881 color: var(--text-soft);
882 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
883 font-size: 12px;
884 line-height: 1.6;
885 overflow-wrap: anywhere;
886 white-space: pre-wrap;
887 }
888
889 .reasoning {
890 padding-left: 16px;
891 border-left: 2px solid var(--line);
892 }
893
894 .attention {
895 grid-area: attention;
896 width: min(var(--content), calc(100% - 40px));
897 max-height: 44vh;
898 margin: 0 auto 14px;
899 overflow-y: auto;
900 }
901
902 .attention-card {
903 margin-top: 10px;
904 padding: 16px;
905 border: 1px solid rgba(246, 196, 83, 0.34);
906 border-radius: var(--radius-card);
907 background: var(--status-human-soft);
908 box-shadow: inset 0 1px 0 rgba(246, 196, 83, 0.08);
909 }
910
911 .attention-card h2 {
912 margin: 5px 0 7px;
913 font-size: 15px;
914 }
915
916 .attention-card .approval-detail {
917 margin-top: 10px;
918 color: var(--text-dim);
919 font-size: 12.5px;
920 }
921
922 .attention-card .approval-detail p {
923 margin-top: 6px;
924 font-size: 12.5px;
925 }
926
927 .attention-card .approval-request {
928 margin: 12px 0;
929 padding: 8px 10px;
930 max-height: 240px;
931 overflow: auto;
932 white-space: pre-wrap;
933 word-break: break-word;
934 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
935 font-size: 12px;
936 border: 1px solid var(--line, rgba(127, 127, 127, 0.3));
937 border-radius: 6px;
938 }
939
940 .attention-card .approval-reason {
941 font-weight: 600;
942 }
943
944 .attention-card .approval-claim {
945 opacity: 0.75;
946 font-style: italic;
947 }
948
949 .attention-card p {
950 margin: 0;
951 color: var(--text-soft);
952 font-size: 13.5px;
953 line-height: 1.6;
954 }
955
956 .attention-actions {
957 flex-wrap: wrap;
958 gap: 10px;
959 margin-top: 14px;
960 }
961
962 .remember-field,
963 .answer-option {
964 display: flex;
965 min-height: 34px;
966 align-items: center;
967 gap: 10px;
968 color: var(--text-soft);
969 font-size: 13px;
970 }
971
972 .question-fieldset {
973 margin: 14px 0 0;
974 padding: 12px;
975 border: 1px solid var(--line);
976 border-radius: var(--radius-control);
977 }
978
979 .question-fieldset legend {
980 padding: 0 5px;
981 color: var(--text);
982 font-size: 13px;
983 font-weight: 650;
984 }
985
986 .answer-option {
987 margin: 9px 0;
988 }
989
990 .answer-option small {
991 display: block;
992 margin-top: 2px;
993 color: var(--text-dim);
994 font-size: 12px;
995 line-height: 1.45;
996 }
997
998 .other-answer,
999 .rename-dialog input {
1000 width: 100%;
1001 min-height: 40px;
1002 margin-top: 8px;
1003 padding: 0 12px;
1004 border: 1px solid var(--line);
1005 border-radius: var(--radius-control);
1006 outline: 0;
1007 background: var(--well-deep);
1008 color: var(--text);
1009 font-size: 14px;
1010 }
1011
1012 .composer-wrap {
1013 grid-area: composer;
1014 padding: 0 max(20px, calc((100% - var(--content)) / 2)) 20px;
1015 background: linear-gradient(transparent, var(--stage-surface) 28%);
1016 }
1017
1018 .composer {
1019 overflow: hidden;
1020 border: 1px solid var(--line);
1021 border-radius: var(--radius-composer);
1022 background: var(--plate);
1023 box-shadow: inset 0 1px 0 var(--rim), 0 18px 48px rgba(0, 2, 8, 0.2);
1024 }
1025
1026 .composer:focus-within {
1027 border-color: rgba(106, 174, 242, 0.46);
1028 box-shadow: inset 0 1px 0 var(--rim), 0 0 0 3px rgba(106, 174, 242, 0.1);
1029 }
1030
1031 .composer textarea {
1032 display: block;
1033 width: 100%;
1034 min-height: 72px;
1035 max-height: 220px;
1036 padding: 16px 17px 8px;
1037 resize: none;
1038 overflow-y: auto;
1039 border: 0;
1040 outline: 0;
1041 background: transparent;
1042 color: var(--text);
1043 font-size: 15.5px;
1044 line-height: 1.55;
1045 }
1046
1047 .composer-bar {
1048 justify-content: space-between;
1049 gap: 14px;
1050 padding: 6px 8px 8px 17px;
1051 }
1052
1053 .composer-hint {
1054 color: var(--text-dim);
1055 font-size: 11px;
1056 }
1057
1058 .composer-actions {
1059 gap: 8px;
1060 }
1061
1062 .send-button {
1063 min-width: 72px;
1064 padding: 0 15px;
1065 }
1066
1067 .rename-dialog {
1068 width: min(420px, calc(100% - 28px));
1069 padding: 0;
1070 border: 1px solid var(--line-strong);
1071 border-radius: var(--radius-card);
1072 background: var(--surface-raised);
1073 color: var(--text);
1074 box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
1075 }
1076
1077 .rename-dialog::backdrop {
1078 background: var(--scrim);
1079 }
1080
1081 .rename-dialog form {
1082 padding: 24px;
1083 }
1084
1085 .rename-dialog h2 {
1086 margin: 6px 0 18px;
1087 font-size: 20px;
1088 }
1089
1090 .new-thread-dialog {
1091 width: min(500px, calc(100% - 28px));
1092 }
1093
1094 .dialog-copy {
1095 margin: -8px 0 20px;
1096 color: var(--text-dim);
1097 font-size: 13px;
1098 line-height: 1.55;
1099 }
1100
1101 .dialog-field {
1102 display: grid;
1103 gap: 7px;
1104 margin-top: 16px;
1105 }
1106
1107 .dialog-label {
1108 color: var(--text-soft);
1109 font-size: 13px;
1110 font-weight: 650;
1111 }
1112
1113 .new-thread-dialog select {
1114 width: 100%;
1115 min-height: 42px;
1116 padding: 0 12px;
1117 border: 1px solid var(--line);
1118 border-radius: var(--radius-control);
1119 outline: 0;
1120 background: var(--well-deep);
1121 color: var(--text);
1122 font-size: 14px;
1123 }
1124
1125 .new-thread-dialog select:focus,
1126 .new-thread-dialog input:focus {
1127 border-color: rgba(106, 174, 242, 0.58);
1128 box-shadow: 0 0 0 3px rgba(106, 174, 242, 0.1);
1129 }
1130
1131 .model-capability {
1132 min-height: 42px;
1133 margin: 16px 0 0;
1134 padding: 10px 12px;
1135 border: 1px solid var(--line);
1136 border-radius: var(--radius-control);
1137 background: rgba(2, 7, 17, 0.2);
1138 color: var(--text-dim);
1139 font-size: 12px;
1140 line-height: 1.5;
1141 }
1142
1143 .model-capability:empty {
1144 display: none;
1145 }
1146
1147 .model-capability[data-state="supported"] {
1148 border-color: rgba(79, 209, 197, 0.34);
1149 background: var(--status-live-soft);
1150 color: var(--status-live);
1151 }
1152
1153 .model-capability[data-state="unsupported"] {
1154 color: var(--text-soft);
1155 }
1156
1157 .dialog-status {
1158 min-height: 20px;
1159 margin: 10px 0 0;
1160 color: var(--text-dim);
1161 font-size: 12px;
1162 line-height: 1.5;
1163 }
1164
1165 .dialog-status[data-state="error"] {
1166 color: var(--warning);
1167 }
1168
1169 .dialog-actions {
1170 justify-content: flex-end;
1171 gap: 10px;
1172 margin-top: 20px;
1173 }
1174
1175 .dialog-actions .primary-button {
1176 padding: 0 13px;
1177 }
1178
1179 .sr-only {
1180 position: absolute;
1181 width: 1px;
1182 height: 1px;
1183 padding: 0;
1184 overflow: hidden;
1185 clip: rect(0, 0, 0, 0);
1186 white-space: nowrap;
1187 border: 0;
1188 }
1189
1190 [hidden] {
1191 display: none !important;
1192 }
1193
1194 noscript {
1195 position: fixed;
1196 inset: 0;
1197 z-index: 100;
1198 display: grid;
1199 place-items: center;
1200 padding: 24px;
1201 background: var(--bg);
1202 color: var(--text);
1203 }
1204
1205 /* The runtime exposes more truth in its header than the managed shell. Give
1206 those facts a second row before they can squeeze the thread title or action
1207 controls, including on compact desktop windows. */
1208 @media (max-width: 1120px) {
1209 .session {
1210 grid-template-rows: auto auto minmax(0, 1fr) auto auto;
1211 }
1212
1213 .session-header {
1214 grid-template-areas:
1215 "heading actions"
1216 "facts facts";
1217 grid-template-columns: minmax(0, 1fr) auto;
1218 gap: 8px 12px;
1219 min-height: 86px;
1220 padding-top: 8px;
1221 padding-bottom: 8px;
1222 }
1223
1224 .session-facts {
1225 width: 100%;
1226 }
1227 }
1228
1229 @media (max-width: 800px) {
1230 .shell {
1231 grid-template-columns: minmax(0, 1fr);
1232 }
1233
1234 .rail {
1235 position: fixed;
1236 top: var(--visual-viewport-offset-top);
1237 bottom: auto;
1238 left: 0;
1239 width: min(88vw, 288px);
1240 height: var(--visual-viewport-height);
1241 transform: translateX(-102%);
1242 box-shadow: 24px 0 70px var(--shadow-color);
1243 transition: transform var(--dur-med) var(--ease-out);
1244 }
1245
1246 .rail-open,
1247 .rail-close {
1248 display: inline-grid;
1249 }
1250
1251 .rail-close {
1252 margin-left: auto;
1253 }
1254
1255 .rail-scrim {
1256 position: fixed;
1257 top: var(--visual-viewport-offset-top);
1258 right: 0;
1259 bottom: auto;
1260 left: 0;
1261 z-index: 15;
1262 display: block;
1263 visibility: hidden;
1264 width: 100%;
1265 height: var(--visual-viewport-height);
1266 padding: 0;
1267 border: 0;
1268 opacity: 0;
1269 background: var(--scrim);
1270 transition: opacity var(--dur-med) ease-out, visibility var(--dur-med) step-end;
1271 }
1272
1273 .rail-visible .rail {
1274 transform: translateX(0);
1275 }
1276
1277 .rail-visible .rail-scrim {
1278 visibility: visible;
1279 opacity: 1;
1280 transition: opacity var(--dur-med) ease-out;
1281 }
1282
1283 .session-header {
1284 min-height: 90px;
1285 padding: 9px 14px;
1286 }
1287
1288 .session-header h1 {
1289 font-size: 17px;
1290 }
1291
1292 .header-actions {
1293 gap: 4px;
1294 }
1295
1296 .header-actions .quiet-button {
1297 padding: 0 10px;
1298 }
1299
1300 .transcript {
1301 padding: 26px 16px 44px;
1302 }
1303
1304 .status-banner,
1305 .attention {
1306 width: calc(100% - 32px);
1307 }
1308
1309 .composer-wrap {
1310 padding-right: 16px;
1311 padding-bottom: max(12px, env(safe-area-inset-bottom));
1312 padding-left: 16px;
1313 }
1314
1315 .search-field input,
1316 .composer textarea,
1317 .other-answer,
1318 .new-thread-dialog select,
1319 .rename-dialog input {
1320 font-size: 16px;
1321 }
1322
1323 .message.user .message-body {
1324 margin-left: 20px;
1325 }
1326 }
1327
1328 @media (max-width: 430px) {
1329 .session {
1330 grid-template-rows: auto auto minmax(0, 1fr) auto auto;
1331 }
1332
1333 .session-header {
1334 grid-template-columns: minmax(0, 1fr) auto;
1335 gap: 8px;
1336 min-height: 92px;
1337 padding-top: 8px;
1338 padding-bottom: 8px;
1339 }
1340
1341 .header-actions {
1342 position: static;
1343 }
1344
1345 .header-actions .quiet-button {
1346 min-width: 0;
1347 min-height: 34px;
1348 padding: 0 8px;
1349 font-size: 12px;
1350 }
1351
1352 .session-heading {
1353 padding-right: 0;
1354 }
1355
1356 .session-facts {
1357 display: flex;
1358 flex-wrap: nowrap;
1359 overflow-x: auto;
1360 scrollbar-width: none;
1361 }
1362
1363 .session-facts .fact-chip[data-fact="workspace"],
1364 .session-facts .fact-chip[data-fact="branch"] {
1365 display: none;
1366 }
1367
1368 .fact-chip {
1369 min-height: 26px;
1370 padding: 0 8px;
1371 font-size: 10.5px;
1372 }
1373
1374 .composer-hint {
1375 display: none;
1376 }
1377
1378 .composer-bar {
1379 justify-content: flex-end;
1380 }
1381
1382 .message.user .message-body {
1383 max-width: 92%;
1384 margin-left: 12px;
1385 }
1386 }
1387
1388 @media (pointer: coarse) {
1389 .primary-button,
1390 .quiet-button,
1391 .send-button,
1392 .icon-button,
1393 .new-thread,
1394 .search-field,
1395 .other-answer,
1396 .new-thread-dialog select,
1397 .rename-dialog input,
1398 .answer-option,
1399 .remember-field,
1400 .receipt summary,
1401 .reasoning summary {
1402 min-height: 44px;
1403 }
1404
1405 .answer-option,
1406 .remember-field,
1407 .receipt summary,
1408 .reasoning summary {
1409 display: flex;
1410 align-items: center;
1411 }
1412
1413 .icon-button {
1414 width: 44px;
1415 min-width: 44px;
1416 }
1417
1418 input[type="radio"],
1419 input[type="checkbox"] {
1420 width: 18px;
1421 height: 18px;
1422 flex: 0 0 18px;
1423 }
1424 }
1425
1426 @media (prefers-contrast: more) {
1427 :root {
1428 --line: rgba(209, 235, 244, 0.28);
1429 --line-strong: rgba(209, 235, 244, 0.46);
1430 --text-muted: #b6c0d4;
1431 --text-faint: #a8b3c5;
1432 }
1433 }
1434
1435 @media (forced-colors: active) {
1436 .status-pip,
1437 .connection-dot,
1438 .receipt-dot {
1439 border: 1px solid CanvasText;
1440 }
1441 }
1442
1443 @media (prefers-reduced-motion: reduce) {
1444 *,
1445 *::before,
1446 *::after {
1447 scroll-behavior: auto !important;
1448 transition-duration: 0.01ms !important;
1449 animation-duration: 0.01ms !important;
1450 animation-iteration-count: 1 !important;
1451 }
1452 }
1453
1453 lines CSS