okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221rc1 merge gui-fb3 (6acd50efe)c64702b72

main
263.1 KiB7610 linesraw
1/* ============================================================================
2   Strata — application styles
3   ----------------------------------------------------------------------------
4   Everything here sits on top of the design kit (src/styles/kit/tokens.css and
5   components.css). Rules are grouped as:
6
7     1. extensions   — sizes and tones the kit's reference classes do not cover
8     2. shell        — app layout: sidebar, header, content column
9     3. utilities    — small helpers used across screens
10     4. components   — the pieces that only exist in this app
11     5. first run    — the onboarding takeover
12
13   House rules, taken from the kit:
14     · no gradients anywhere — flat surfaces, one green accent
15     · radius 8 small · 14 controls · 20 cards · 24 panels
16     · elevation comes from --st-sh-card / --st-sh-bar / --st-sh-pop only
17     · every colour is a token, so light and dark share one layout
18   ========================================================================== */
19
20/* ---------------------------------------------------------------- motion ---
21   One scale, fusing the kit's single pair (--st-ease / --st-dur, left untouched
22   so the kit's own classes keep their timing) with DSH's .1/.2/.3s vocabulary.
23
24   Duration is chosen by distance travelled, not by taste:
25     micro    ≤ 4px    — hover, press, colour and opacity on controls
26     control  ≤ 16px   — menus, rows appearing, small transforms
27     local    ≤ 24px   — drawers, sheets, disclosure
28     surface  — full panel or whole screen
29     choreo   — multi-element sequences only (onboarding, first paint)
30
31   See docs/interaction-guidelines.md for the rules these implement. */
32:root {
33  --st-t-micro: 100ms;
34  --st-t-control: 160ms;
35  --st-t-local: 240ms;
36  --st-t-surface: 320ms;
37  --st-t-choreo: 460ms;
38
39  --st-ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* DSH's curve */
40  --st-ease-enter: cubic-bezier(0, 0, 0.2, 1); /* decelerate in */
41  --st-ease-exit: cubic-bezier(0.4, 0, 1, 1); /* accelerate out */
42  --st-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* loops only */
43  --st-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* direct manipulation only */
44
45  --st-nav-w: 268px;
46  --st-nav-w-rail: 64px;
47  --st-header-h: 64px;
48  --st-content-max: 1160px;
49  /* Comfortable prose measure. Assistant text ran at ~103 characters per line,
50     which is ~40% wider than long-form reading wants; 56ch renders as roughly
51     66–68 actual characters, because the `ch` unit measures the "0" glyph,
52     which is narrower than average running text in this face. Verified against
53     the rendered result at 10, 16 and 22px — see npm run audit. */
54  --st-measure: 56ch;
55
56  /* Type inside a conversation follows the reader's text size. The ratios are
57     declared once here, so a rule that scales with the prose uses a token
58     instead of a bespoke calc that the type audit cannot check. */
59  --st-fs-read-lg: calc(var(--st-content-fs, 12px) * 1.125);
60  /* The small ratio has a floor: at any reading size up to 14px, 0.8125
61     would put code and tables under 12px (9.75px at the default 12px), which is below what a table of
62     numbers should ask of a reader. */
63  --st-fs-read-sm: max(12px, calc(var(--st-content-fs, 12px) * .8125));
64  --st-fs-math: calc(var(--st-content-fs, 12px) * 1.08);
65  --st-fs-math-source: calc(var(--st-content-fs, 12px) * .9);
66}
67
68/* Two shared recipes replace the nine bespoke entrance keyframes this file used
69   to carry. Direction and distance come from custom properties, so a surface
70   declares where it comes *from* and inherits identical timing behaviour. */
71@keyframes st-enter {
72  from {
73    opacity: 0;
74    transform: translate(var(--st-from-x, 0), var(--st-from-y, 8px)) scale(var(--st-from-scale, 1));
75  }
76  to {
77    opacity: 1;
78    transform: none;
79  }
80}
81@keyframes st-exit {
82  from {
83    opacity: 1;
84    transform: none;
85  }
86  to {
87    opacity: 0;
88    transform: translate(var(--st-to-x, 0), var(--st-to-y, 6px));
89  }
90}
91
92/* Reduced motion substitutes *opacity for movement* rather than silencing
93   animation: a state change must stay perceivable. Distances collapse to zero
94   and durations to a single frame; opacity and colour still transition.
95
96   The distance properties must be zeroed on the elements themselves — a value
97   set on :root is only inherited, so any rule that declares its own
98   --st-from-x (e.g. .setup__stage) would win over it. Durations live at the
99   root because nothing else declares them. */
100@media (prefers-reduced-motion: reduce) {
101  :root {
102    --st-t-micro: 1ms;
103    --st-t-control: 1ms;
104    --st-t-local: 1ms;
105    --st-t-surface: 1ms;
106    --st-t-choreo: 1ms;
107  }
108  *,
109  *::before,
110  *::after {
111    --st-from-x: 0px !important;
112    --st-from-y: 0px !important;
113    --st-from-scale: 1 !important;
114    --st-to-x: 0px !important;
115    --st-to-y: 0px !important;
116    animation-iteration-count: 1 !important;
117  }
118  /* Loops that carry no state (a scan sweep, a ripple) simply stop. */
119  .checks[data-scanning='true']::after,
120  .ready__ring::after {
121    animation: none !important;
122  }
123}
124/* The manual override in Settings → Reading & focus, for people who want
125   stillness without changing an OS setting. */
126[data-motion='reduced'] {
127  --st-t-micro: 1ms;
128  --st-t-control: 1ms;
129  --st-t-local: 1ms;
130  --st-t-surface: 1ms;
131  --st-t-choreo: 1ms;
132}
133[data-motion='reduced'] *,
134[data-motion='reduced'] *::before,
135[data-motion='reduced'] *::after {
136  --st-from-x: 0px !important;
137  --st-from-y: 0px !important;
138  --st-from-scale: 1 !important;
139  --st-to-x: 0px !important;
140  --st-to-y: 0px !important;
141}
142[data-motion='reduced'] .checks[data-scanning='true']::after,
143[data-motion='reduced'] .ready__ring::after {
144  animation: none !important;
145}
146
147/* ---- fluidity -------------------------------------------------------------
148   Apple-style geometry and interruptible motion, using only features the app's
149   runtime already supports (verified, not assumed). Each is guarded so a
150   browser without it renders the same layout with square-ish corners and
151   instant state changes. */
152
153/* Squircle corners — DSH applies the same superellipse through an @supports
154   guard. Applied globally, then reset on the shapes that must stay circular. */
155@supports (corner-shape: superellipse(1.5)) {
156  :root {
157    --st-corner-shape: superellipse(1.5);
158  }
159  *,
160  *::before,
161  *::after {
162    corner-shape: var(--st-corner-shape);
163  }
164  .st-pill,
165  .st-badge,
166  .st-pill__dot,
167  .radio,
168  .checkrow__mark,
169  .stageMark,
170  .spinner,
171  .ready__ring,
172  .enginechip__dot,
173  .typing i,
174  .caret,
175  .st-progress__bar,
176  .st-toggle::after {
177    corner-shape: round;
178  }
179}
180
181/* Disclosure that eases open instead of snapping. `interpolate-size` lets
182   height animate to `auto`, and ::details-content is the element that owns it.
183   Without support the panel simply opens instantly, as it does today. */
184@supports (interpolate-size: allow-keywords) {
185  :root {
186    interpolate-size: allow-keywords;
187  }
188  .st-collapse::details-content {
189    block-size: 0;
190    overflow: hidden;
191    transition:
192      content-visibility var(--st-t-local) allow-discrete,
193      block-size var(--st-t-local) var(--st-ease-standard);
194  }
195  .st-collapse[open]::details-content {
196    block-size: auto;
197  }
198}
199
200/* Route changes morph instead of repainting. Deliberately quiet — a short
201   cross-fade with a 4–6px lift — so ⌘1…⌘9 reads as one surface changing its
202   contents rather than a new page arriving. */
203::view-transition-old(root),
204::view-transition-new(root) {
205  animation-duration: var(--st-t-surface);
206  animation-timing-function: var(--st-ease-standard);
207}
208::view-transition-old(root) {
209  animation-name: st-vt-out;
210}
211::view-transition-new(root) {
212  animation-name: st-vt-in;
213}
214@keyframes st-vt-out {
215  to {
216    opacity: 0;
217    transform: translateY(-4px);
218  }
219}
220@keyframes st-vt-in {
221  from {
222    opacity: 0;
223    transform: translateY(6px);
224  }
225}
226@media (prefers-reduced-motion: reduce) {
227  ::view-transition-old(root),
228  ::view-transition-new(root) {
229    animation: none;
230  }
231}
232
233/* Switching models re-keys the headline, so the new name arrives rather than
234   silently replacing the old one. A shared-element view transition would be the
235   better tool, but the swap is server-driven and resolves long after the click —
236   startViewTransition has to own the DOM update, and here it cannot. */
237.model-hero__title {
238  --st-from-y: 6px;
239  animation: st-enter var(--st-t-local) var(--st-ease-enter) both;
240}
241
242/* ---- scroll-driven chrome -------------------------------------------------
243   Both effects are pure CSS scroll timelines: no scroll listener, no layout
244   read on the main thread. `timeline-scope` hoists the timeline from the
245   scroller up to .main so the header — a *sibling* of the scroller — can
246   reference it, which is exactly what the property exists for. */
247.main {
248  timeline-scope: --transcript;
249}
250.main__body {
251  scroll-timeline: --transcript block;
252}
253/* The header lifts on scroll by fading a hairline in beneath it. Animating
254   box-shadow here repainted the strip on every scroll frame; opacity on a
255   pseudo-element is compositor-only. */
256.main__head::after {
257  content: '';
258  position: absolute;
259  inset: auto 0 -1px 0;
260  height: 1px;
261  background: color-mix(in srgb, var(--st-ink) 16%, transparent);
262  opacity: 0;
263  pointer-events: none;
264  animation-name: st-headline;
265  animation-duration: auto;
266  animation-timing-function: linear;
267  animation-fill-mode: both;
268  animation-timeline: --transcript;
269  animation-range: 0 48px;
270}
271@keyframes st-headline {
272  to {
273    opacity: 1;
274  }
275}
276
277/* The subtitle has done its job once you start reading; it retires rather than
278   sitting there repeating the obvious. */
279.main__sub {
280  animation-name: st-subtitle;
281  animation-duration: auto;
282  animation-timing-function: linear;
283  animation-fill-mode: both;
284  animation-timeline: --transcript;
285  animation-range: 0 64px;
286}
287@keyframes st-subtitle {
288  to {
289    opacity: 0;
290    transform: translateY(-4px);
291  }
292}
293
294/* Reading position through a long conversation. Sticky inside the scroller so
295   it stays put while the transcript moves under it. */
296.chat__progress {
297  position: sticky;
298  top: 0;
299  z-index: 2;
300  height: 2px;
301  margin: 0 0 -2px;
302  pointer-events: none;
303}
304.chat__progress span {
305  display: block;
306  height: 100%;
307  background: var(--st-accent);
308  transform-origin: 0 50%;
309  opacity: 0.55;
310  animation-name: st-reading;
311  animation-duration: auto;
312  animation-timing-function: linear;
313  animation-fill-mode: both;
314  animation-timeline: --transcript;
315}
316@keyframes st-reading {
317  from {
318    transform: scaleX(0);
319  }
320  to {
321    transform: scaleX(1);
322  }
323}
324@media (prefers-reduced-motion: reduce) {
325  .main__head::after,
326  .main__sub,
327  .chat__progress span {
328    animation: none;
329  }
330  /* The subtitle still retires, it just does not travel. */
331  .main__sub {
332    animation-name: st-subtitle-fade;
333    animation-duration: auto;
334    animation-timing-function: linear;
335    animation-fill-mode: both;
336    animation-timeline: --transcript;
337    animation-range: 0 64px;
338  }
339}
340@keyframes st-subtitle-fade {
341  to {
342    opacity: 0;
343  }
344}
345
346/* ============================================================== focus mode ==
347   A reading mode, not a different app: the same screens with the chrome
348   withdrawn. Entered with ⌘⇧F, left with Escape or the bar's button. */
349
350.app[data-focus='true'] {
351  grid-template-columns: minmax(0, 1fr);
352}
353.app[data-focus='true'] .nav,
354.app[data-focus='true'] .main__head {
355  display: none;
356}
357
358/* The ambient bar carries only what you need while reading: what is loaded,
359   what it is doing, and the way out. */
360/* The hints were 11px boxes jammed against the right edge at the same visual
361   weight as the exit control, so the bar read as debris plus a button. */
362.focusbar__keys {
363  display: flex;
364  align-items: center;
365  gap: 10px;
366  font-size: var(--st-fs-xs);
367  color: var(--st-ink-muted);
368}
369.focusbar__keys > span {
370  display: inline-flex;
371  align-items: center;
372  gap: 6px;
373  white-space: nowrap;
374}
375/* Two caps for one action sit closer to each other than to their label. */
376.focusbar__chord {
377  display: inline-flex;
378  gap: 2px;
379}
380.focusbar__keys kbd {
381  display: inline-block;
382  min-width: 20px;
383  padding: 2px 6px;
384  border-radius: var(--st-r-sm);
385  border: 1px solid var(--st-line);
386  background: var(--st-surface);
387  font: 500 11px/1.4 var(--st-font);
388  text-align: center;
389  color: var(--st-ink-soft);
390}
391
392.focusbar {
393  flex: none;
394  height: 44px;
395  display: flex;
396  align-items: center;
397  gap: 12px;
398  padding: 0 20px;
399  border-bottom: 1px solid var(--st-line);
400  background: var(--st-material-tint);
401  -webkit-backdrop-filter: var(--st-material-thin);
402  backdrop-filter: var(--st-material-thin);
403  font-size: var(--st-fs-sm);
404  color: var(--st-ink-muted);
405}
406.focusbar__dot {
407  width: 7px;
408  height: 7px;
409  border-radius: 50%;
410  background: var(--st-ink-muted);
411  flex: none;
412}
413.focusbar[data-state='busy'] .focusbar__dot {
414  background: var(--st-info);
415  animation: st-pulse 1.6s var(--st-ease-in-out) infinite;
416}
417.focusbar[data-state='ready'] .focusbar__dot {
418  background: var(--st-accent);
419}
420
421/* Earlier turns recede so the current exchange is the only thing at full
422   contrast. Fades rather than jumps, so entering the mode is not a flash. */
423.app[data-focus='true'] .chat__inner > .st-msg {
424  transition: opacity var(--st-t-surface) var(--st-ease-standard);
425  opacity: 0.45;
426}
427.app[data-focus='true'] .chat__inner > .st-msg:nth-last-child(-n + 2) {
428  opacity: 1;
429}
430/* ---------------------------------------------- focus mode: only the reading ---
431   The bar's own note says focus mode keeps "what is loaded, what it is doing,
432   and the way out. Everything else on this screen is the conversation." The
433   composer and the telemetry row were not in that list but stayed anyway, and
434   together took 254px of a 900px window — a quarter of the screen given to
435   controls in the one mode that exists to remove them.
436
437   The composer stays usable, because replying is part of reading a
438   conversation, but reduced to its two essential parts: the field and Send. */
439
440.app[data-focus='true'] .composer__hints,
441.app[data-focus='true'] .st-composer__bar .st-btn--icon,
442.app[data-focus='true'] .telemetry {
443  display: none;
444}
445.app[data-focus='true'] .st-composer__bar {
446  justify-content: flex-end;
447  margin-top: 6px;
448}
449/* Tightened rather than restyled: the same field and the same Send, with the
450   padding the full composer carries for its hint line and icon row removed. */
451.app[data-focus='true'] .composer {
452  padding: 8px 0 12px;
453}
454.app[data-focus='true'] .st-composer {
455  padding: 8px 12px;
456}
457.app[data-focus='true'] .composer textarea {
458  min-height: 40px;
459}
460
461/* The column is the measure plus the column's own horizontal padding. The
462   padding is a fixed 28px a side (`.chat__inner`), so the allowance is the same
463   fixed 56px rather than an em term: a 2.5em allowance shrank with the text and
464   at the 10px reading size left only 39 characters in the line (the measure
465   target is 45–75, verified by `npm run measure`). */
466.app[data-focus='true'] .slashmenu,
467.app[data-focus='true'] .chat__inner {
468  font-size: var(--st-content-fs, 12px);
469  max-width: calc(var(--st-measure) + 72px);
470}
471.app[data-focus='true'] .composer__inner {
472  font-size: var(--st-content-fs, 12px);
473  /* the same column, less the transcript's 28px padding on each side */
474  max-width: calc(var(--st-measure) + 2.5em - 56px);
475}
476
477/* ========================================================= reading comfort ==
478   Prose is capped at a comfortable measure: paragraphs, lists and quotes share one
479   width (the list rule used to name `.md-li`, a class the renderer never emits, so
480   lists ran the full column, #4722). Code blocks, tables and metric grids in the
481   same bubble still use the full width, because a wide table is easier to read
482   than a wrapped one. */
483.st-msg--assistant .st-bubble :is(p, ul, ol, blockquote) {
484  max-width: var(--st-measure);
485}
486
487/* Conversation prose follows the reader's size setting; the UI chrome does not
488   — the same scoping DSH uses for its 10–22px content setting. */
489.st-msg--assistant .st-bubble,
490.st-msg--user .st-bubble {
491  font-size: var(--st-content-fs, 12px);
492  line-height: calc(var(--st-content-fs, 12px) * 1.62);
493}
494
495/* Density — the difference between scanning data and reading it. */
496[data-density='compact'] .listrow {
497  padding: 12px 18px;
498}
499[data-density='compact'] .field {
500  padding: 13px 18px;
501}
502[data-density='compact'] .st-table th {
503  padding: 9px 14px;
504}
505[data-density='compact'] .st-table td {
506  padding: 10px 14px;
507}
508[data-density='compact'] .navitem {
509  height: 32px;
510}
511[data-density='compact'] .treerow {
512  height: 28px;
513}
514[data-density='compact'] .st-msg {
515  gap: 4px;
516}
517[data-density='compact'] .chat__inner {
518  gap: 16px;
519}
520
521/* Thinner scrollbars, as DSH ships (5–6px). */
522*::-webkit-scrollbar {
523  width: 6px;
524  height: 6px;
525}
526*::-webkit-scrollbar-thumb {
527  border-width: 2px;
528}
529
530/* Stronger separation for people who ask the OS for it. */
531@media (prefers-contrast: more) {
532  :root {
533    --st-ink-muted: var(--st-ink-soft);
534    --st-line: color-mix(in srgb, var(--st-ink) 32%, var(--st-line));
535    --st-line-soft: color-mix(in srgb, var(--st-ink) 18%, var(--st-line-soft));
536  }
537}
538
539/* =========================================================== 1. extensions == */
540
541/* The kit's buttons are one size; the app needs two more. */
542.st-btn--sm {
543  height: 34px;
544  padding: 0 12px;
545  border-radius: 10px;
546  gap: 6px;
547  font-size: var(--st-fs-sm);
548}
549.st-btn--sm svg {
550  width: 15px;
551  height: 15px;
552}
553.st-btn--lg {
554  height: 48px;
555  padding: 0 22px;
556  border-radius: 15px;
557  font-size: 15px;
558}
559.st-btn--block {
560  width: 100%;
561}
562.st-btn {
563  white-space: nowrap;
564}
565.st-btn--ghost {
566  background: transparent;
567  color: var(--st-ink-muted);
568  padding: 0 12px;
569}
570.st-btn--ghost:hover:not(:disabled) {
571  background: var(--st-surface-2);
572  color: var(--st-ink);
573}
574.st-btn--ghost.st-btn--sm {
575  padding: 0 10px;
576}
577.st-btn--active {
578  background: var(--st-surface-2);
579  color: var(--st-ink);
580}
581.st-btn--icon {
582  flex: none;
583}
584.st-btn:disabled {
585  opacity: 0.45;
586  cursor: not-allowed;
587}
588.st-btn:not(:disabled):active {
589  transform: translateY(1px);
590}
591
592/* Status pills carry a tone; the kit ships the state-dot version. */
593.st-pill--accent {
594  background: var(--st-accent-tint);
595  border-color: transparent;
596  color: var(--st-accent-text);
597}
598.st-pill--info {
599  background: var(--st-info-tint);
600  border-color: transparent;
601  color: var(--st-info-text);
602}
603.st-pill--warn {
604  background: var(--st-warn-tint);
605  border-color: transparent;
606  color: var(--st-warn-text);
607}
608.st-pill--danger {
609  background: var(--st-danger-tint);
610  border-color: transparent;
611  color: var(--st-danger-text);
612}
613.st-pill svg {
614  width: 15px;
615  height: 15px;
616}
617
618/* Progress bars inside a table row or a tile run smaller. */
619.st-progress--sm {
620  height: 6px;
621  border: 0;
622}
623.st-progress--lg {
624  height: 10px;
625}
626.st-progress--indeterminate .st-progress__bar {
627  width: 34% !important;
628  animation: st-slide 1.4s var(--st-ease-in-out) infinite;
629}
630@keyframes st-slide {
631  0% {
632    transform: translateX(-104%);
633  }
634  100% {
635    transform: translateX(304%);
636  }
637}
638
639/* Cards that hold rows, heads or tables must not add their own padding. */
640/* A card sitting on the page background does not float, so its shadow added a
641   second edge next to the hairline and nothing else. Elevation is reserved for
642   surfaces that genuinely overlap content: modals, the drawer, toasts, the
643   slash menu, the composer and the first-run panel. */
644.st-card {
645  box-shadow: none;
646}
647.st-card--flush {
648  padding: 0;
649  overflow: hidden;
650}
651.st-card__head {
652  display: flex;
653  align-items: center;
654  gap: 12px;
655  padding: 16px 20px;
656  border-bottom: 1px solid var(--st-line);
657}
658.st-card__headicon {
659  color: var(--st-ink-muted);
660  flex: none;
661}
662.st-card__body {
663  padding: 20px;
664}
665
666/* Toasts get a tinted icon per tone, as in the reference. */
667.st-toast--toned {
668  align-items: flex-start;
669  gap: 12px;
670  max-width: 420px;
671  background: var(--st-material-tint-strong);
672  -webkit-backdrop-filter: var(--st-material-regular);
673  backdrop-filter: var(--st-material-regular);
674  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
675}
676.st-toast__icon {
677  display: inline-flex;
678  flex: none;
679  margin-top: 1px;
680}
681.st-toast[data-tone='success'] .st-toast__icon {
682  color: var(--st-accent);
683}
684.st-toast[data-tone='info'] .st-toast__icon {
685  color: var(--st-info);
686}
687.st-toast[data-tone='warn'] .st-toast__icon {
688  color: var(--st-warn);
689}
690.st-toast[data-tone='error'] .st-toast__icon {
691  color: var(--st-danger);
692}
693.st-toast[data-leaving='true'] {
694  --st-to-y: 6px;
695  animation: st-exit var(--st-t-control) var(--st-ease-exit) both;
696}
697
698/* The kit's table, plus the shapes this app composes with. */
699.st-tablewrap {
700  border: 1px solid var(--st-line);
701  border-radius: var(--st-r-lg);
702  background: var(--st-surface);
703  box-shadow: var(--st-sh-card);
704  overflow: hidden;
705}
706.st-table tbody tr[data-clickable='true'] {
707  cursor: pointer;
708}
709.st-table .r {
710  text-align: right;
711}
712.st-table .cell-strong {
713  color: var(--st-ink);
714  font-weight: 700;
715}
716.st-table tbody tr:last-child td {
717  border-bottom: 0;
718}
719
720/* Accessibility correction, light only — see docs/design-system-notes.md §2.1.
721   The kit pairs `--st-accent-ink: #ffffff` with `--st-accent: #10b981`: 2.54:1,
722   under AA for the 14px/700 labels on primary buttons and the user's chat
723   bubble. Dark mode already pairs a dark ink with the accent fill, so light mode
724   adopts the same relationship. With a dark ink the fill can no longer darken on
725   hover, so the hover lifts instead of sinking. Both states clear AA:
726     base  #05261b on #10b981  = 6.37:1
727     hover #05261b on #12c68e  = 7.31:1
728   Blast radius is three surfaces — primary buttons, the user bubble and the
729   brand mark — plus one hover rule. Delete this block to return to the kit's
730   values verbatim, or use option B in the notes (deeper accent, white ink). */
731:root:not([data-theme='dark']) {
732  --st-accent-ink: #05261b;
733  --st-accent-hover: #12c68e;
734  /* Accent used as text: #0c8a60 on the accent tint measures 4.14:1, which is
735     under AA at the 12–13px these badges use. Deepened to 5.07:1 on the tint
736     and 5.35:1 on white, so links and status text improve with it. */
737  --st-accent-text: #0a7a55;
738}
739
740/* ======================================================= interface scale ==
741   One multiplier for the chrome, driven by a preference. The kit expresses its
742   type and spacing in px, so scaling means restating those tokens as products
743   rather than reaching for `zoom` — which would leave every portalled overlay
744   (menus, popovers, modals) at the old size, since they render outside `.app`.
745
746   Deliberately separate from the conversation's reading size: someone who needs
747   larger prose does not necessarily want larger buttons, and the two settings
748   solve different problems. */
749:root {
750  --st-ui-scale: 1;
751  --st-fs-xs: calc(12px * var(--st-ui-scale));
752  --st-fs-sm: calc(13px * var(--st-ui-scale));
753  --st-fs-md: calc(14px * var(--st-ui-scale));
754  --st-fs-base: calc(16px * var(--st-ui-scale));
755  --st-fs-lg: calc(18px * var(--st-ui-scale));
756  --st-fs-xl: calc(24px * var(--st-ui-scale));
757  --st-fs-stat: calc(32px * var(--st-ui-scale));
758  --st-fs-display: calc(40px * var(--st-ui-scale));
759
760  --st-s-1: calc(4px * var(--st-ui-scale));
761  --st-s-2: calc(8px * var(--st-ui-scale));
762  --st-s-3: calc(12px * var(--st-ui-scale));
763  --st-s-4: calc(16px * var(--st-ui-scale));
764  --st-s-5: calc(20px * var(--st-ui-scale));
765  --st-s-6: calc(24px * var(--st-ui-scale));
766  --st-s-8: calc(32px * var(--st-ui-scale));
767  --st-s-10: calc(40px * var(--st-ui-scale));
768  --st-s-12: calc(48px * var(--st-ui-scale));
769  --st-s-16: calc(64px * var(--st-ui-scale));
770}
771
772/* Control heights are fixed px in the kit, so they need the multiplier too —
773   without this the labels grow and the controls they sit in do not, which is
774   the most visible way a scale setting can look broken. */
775.st-btn {
776  height: calc(42px * var(--st-ui-scale));
777}
778.st-input {
779  height: calc(44px * var(--st-ui-scale));
780}
781.st-tab {
782  height: calc(36px * var(--st-ui-scale));
783}
784.st-pill {
785  height: calc(30px * var(--st-ui-scale));
786}
787.st-badge {
788  height: calc(24px * var(--st-ui-scale));
789}
790
791
792/* ====================================================== control geometry ==
793   Liquid Glass asks for two geometric things. "Harmony", in Apple's framing, is
794   software geometry echoing the hardware: capsule-shaped controls, and corners
795   that stay concentric as elements nest.
796
797   The split that matters: **capsules are for controls, the kit's 8/14/20/24
798   scale is for surfaces.** A button, a field, a nav row and a menu item are
799   controls and become capsules; a card, drawer, modal and toast are surfaces
800   and stay rounded rectangles. Capsule-on-a-surface reads as a chip floating in
801   a box, which is the opposite of the intent.
802
803   The kit is the source of truth and is sync-checked by `npm run audit`, so this
804   is an app-layer override rather than an edit to ui/. Promoting it system-wide
805   is a four-line move into ui/components.css plus `npm run sync:kit`. */
806
807/* Concentric corners: a rounded element inside a padded rounded parent takes
808   the parent's radius minus the gap, floored at zero, so the two curves share a
809   centre rather than merely sitting inside one another. */
810:root {
811  --st-r-nested: max(0px, calc(var(--st-r-lg) - var(--st-s-5))); /* 20 − 20 = 0 */
812  --st-r-nested-sm: max(0px, calc(var(--st-r-md) - var(--st-s-3))); /* 14 − 12 = 2 */
813}
814
815/* =============================================================== materials ==
816   Translucent surfaces. Blur is the only decorative device this system allows
817   itself, and it is rationed: six surfaces, three tiers, every one of them
818   overlaying content that actually moves underneath.
819
820   Deliberately excluded: the sidebar (it never overlaps anything), every card
821   (they sit on a flat background, so a blur would cost a compositor pass and
822   show nothing), and the transcript (it repaints on every streamed token — the
823   one place blur would genuinely hurt).
824
825   All of it collapses to today's opaque tokens under reduced transparency or
826   the manual override, so the layout is identical with materials off. */
827:root {
828  --st-blur-thin: 12px;
829  --st-blur-regular: 24px;
830  --st-blur-thick: 40px;
831  --st-material-thin: saturate(180%) blur(var(--st-blur-thin));
832  --st-material-regular: saturate(180%) blur(var(--st-blur-regular));
833  --st-material-thick: saturate(180%) blur(var(--st-blur-thick));
834
835  /* The tint laid over the blur. Slightly transparent, never fully — text has
836     to stay readable over whatever scrolls beneath. */
837  --st-material-tint: color-mix(in srgb, var(--st-surface) 72%, transparent);
838  --st-material-tint-strong: color-mix(in srgb, var(--st-surface) 84%, transparent);
839
840  /* Specular top edge: a 1px inset line that reads as light catching a surface.
841     A hairline, not a gradient. */
842  --st-specular: rgba(255, 255, 255, 0.7);
843  --st-specular-soft: rgba(255, 255, 255, 0.14);
844}
845[data-theme='dark'] {
846  --st-specular: rgba(255, 255, 255, 0.07);
847  --st-specular-soft: rgba(255, 255, 255, 0.05);
848  --st-material-tint: color-mix(in srgb, var(--st-surface) 74%, transparent);
849  --st-material-tint-strong: color-mix(in srgb, var(--st-surface) 86%, transparent);
850}
851
852/* Reduce Transparency, and the manual override in Settings → Reading & focus. */
853@media (prefers-reduced-transparency: reduce) {
854  :root {
855    --st-material-thin: none;
856    --st-material-regular: none;
857    --st-material-thick: none;
858    --st-material-tint: var(--st-surface);
859    --st-material-tint-strong: var(--st-surface);
860    --st-specular: transparent;
861    --st-specular-soft: transparent;
862  }
863}
864[data-transparency='opaque'] {
865  --st-material-thin: none;
866  --st-material-regular: none;
867  --st-material-thick: none;
868  --st-material-tint: var(--st-surface);
869  --st-material-tint-strong: var(--st-surface);
870  --st-specular: transparent;
871  --st-specular-soft: transparent;
872}
873
874/* ---- accent-filled areas ==
875   Thin accent strokes — progress bars, gauge arcs, toggles, dots, sparklines —
876   are cheap to look at and stay the bright accent in both themes. Large *filled*
877   areas are a different problem.
878
879   In dark mode a solid accent button measured luminance 0.496 against a page at
880   0.005: a 9.9:1 jump, making the brightest, most saturated object in the
881   interface the one thing you are invited to click. Over a long session that is
882   glare. So the two large accent surfaces — the primary button and the reader's
883   own message bubble — take a tinted material instead, where the accent shows
884   as light through the surface rather than paint on top.
885
886     solid   #34d399  luminance 0.496   vs page 9.86:1   label 7.70:1
887     tint 26 #1e4a3d  luminance 0.055   vs page 1.90:1   label 5.73:1
888     tint 34 #205947  luminance 0.079   vs page 2.33:1   label 4.67:1  (hover)
889
890   Light mode is unchanged: #10b981 on a #f9fafb page is 2.5:1, gentle relative
891   to its background, and a solid fill reads as confident on white. `npm run
892   luminance` fails the build if a large dark surface gets loud again. */
893:root {
894  /* Light gets the same treatment as dark, not a solid fill. A full-bleed
895     saturated green carrying a colour-matched glow is paint, not glass: the
896     accent shows through the material, and the control is defined by its
897     hairline, its specular top edge and a neutral shadow.
898     #086a4a on the 20% tint measures 5.47:1. */
899  --st-accent-surface: color-mix(in srgb, var(--st-accent) 20%, var(--st-surface));
900  --st-accent-surface-hover: color-mix(in srgb, var(--st-accent) 28%, var(--st-surface));
901  --st-accent-surface-ink: #086a4a;
902  /* The border is an accent hairline in both themes. It used to be the specular
903     token, which is white — an invisible border on a near-white page. The
904     specular highlight is a separate, inset thing. */
905  --st-accent-surface-edge: color-mix(in srgb, var(--st-accent) 34%, transparent);
906  --st-accent-surface-shadow: var(--st-sh-card);
907}
908[data-theme='dark'] {
909  --st-accent-surface: color-mix(in srgb, var(--st-accent) 26%, var(--st-surface));
910  --st-accent-surface-hover: color-mix(in srgb, var(--st-accent) 34%, var(--st-surface));
911  --st-accent-surface-ink: var(--st-accent-text);
912  --st-accent-surface-shadow: var(--st-sh-card);
913}
914
915/* ================================================================ 2. shell == */
916
917*,
918*::before,
919*::after {
920  box-sizing: border-box;
921}
922
923html,
924body,
925#root {
926  height: 100%;
927}
928
929body {
930  margin: 0;
931  overflow: hidden;
932  background: var(--st-bg);
933  color: var(--st-ink);
934  font-family: var(--st-font);
935  font-size: var(--st-fs-base);
936  line-height: var(--st-lh-body);
937  -webkit-font-smoothing: antialiased;
938}
939
940a {
941  color: var(--st-accent-text);
942  text-decoration: none;
943}
944
945:focus-visible {
946  outline: 2px solid var(--st-focus);
947  outline-offset: 2px;
948}
949
950button {
951  font-family: inherit;
952}
953
954::selection {
955  background: var(--st-accent-tint);
956}
957
958* {
959  scrollbar-width: thin;
960  scrollbar-color: var(--st-line) transparent;
961}
962*::-webkit-scrollbar {
963  width: 10px;
964  height: 10px;
965}
966*::-webkit-scrollbar-thumb {
967  background: var(--st-line);
968  border: 3px solid transparent;
969  background-clip: content-box;
970  border-radius: 9999px;
971}
972*::-webkit-scrollbar-track {
973  background: transparent;
974}
975
976.app {
977  display: grid;
978  grid-template-columns: var(--st-nav-w) minmax(0, 1fr);
979  height: 100%;
980  transition: grid-template-columns var(--st-t-local) var(--st-ease-standard);
981}
982.app[data-rail='true'] {
983  grid-template-columns: var(--st-nav-w-rail) minmax(0, 1fr);
984}
985
986.main {
987  display: flex;
988  flex-direction: column;
989  min-width: 0;
990  min-height: 0;
991  background: var(--st-bg);
992}
993.main__head {
994  position: relative;
995  flex: none;
996  /* Liquid Glass lets content dissolve under a bar rather than colliding with a
997     hard rule. A mask, not a gradient background, so the flat-surface rule and
998     the audit's gradient check are both untouched. */
999  mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent);
1000  height: auto;
1001  min-height: var(--st-header-h);
1002  gap: 20px;
1003  padding: 12px 28px;
1004  background: var(--st-material-tint);
1005  -webkit-backdrop-filter: var(--st-material-thin);
1006  backdrop-filter: var(--st-material-thin);
1007}
1008.main__titles {
1009  min-width: 0;
1010  flex: 1;
1011}
1012/* The two title copies stack in one grid cell: the large one sets the height,
1013   the compact one overlays it. Scroll drives their opacities in opposite
1014   directions, so the title collapses rather than jumping. */
1015.main__titles {
1016  display: grid;
1017  grid-template-columns: minmax(0, 1fr);
1018}
1019.main__title--large,
1020.main__title--compact {
1021  grid-area: 1 / 1;
1022  min-width: 0;
1023}
1024.main__title--compact {
1025  font-size: 17px;
1026  font-weight: 700;
1027  align-self: center;
1028  opacity: 0;
1029  animation-name: st-title-compact;
1030  animation-duration: auto;
1031  animation-timing-function: linear;
1032  animation-fill-mode: both;
1033  animation-timeline: --transcript;
1034  animation-range: 0 64px;
1035}
1036.main__title--large {
1037  animation-name: st-title-large;
1038  animation-duration: auto;
1039  animation-timing-function: linear;
1040  animation-fill-mode: both;
1041  animation-timeline: --transcript;
1042  animation-range: 0 64px;
1043}
1044@keyframes st-title-compact {
1045  to {
1046    opacity: 1;
1047  }
1048}
1049@keyframes st-title-large {
1050  to {
1051    opacity: 0;
1052  }
1053}
1054@media (prefers-reduced-motion: reduce) {
1055  .main__title--compact,
1056  .main__title--large {
1057    animation: none;
1058  }
1059  .main__title--compact {
1060    display: none;
1061  }
1062}
1063
1064.main__title {
1065  font-size: 22px;
1066  font-weight: 900;
1067  letter-spacing: -0.01em;
1068  line-height: 1.2;
1069  margin: 0;
1070  color: var(--st-ink);
1071}
1072.main__sub {
1073  margin: 2px 0 0;
1074  font-size: var(--st-fs-sm);
1075  color: var(--st-ink-muted);
1076  max-width: 78ch;
1077}
1078.main__actions {
1079  display: flex;
1080  align-items: center;
1081  gap: 8px;
1082  flex: none;
1083}
1084.main__body {
1085  flex: 1;
1086  min-height: 0;
1087  overflow-y: auto;
1088  overflow-x: hidden;
1089}
1090.wrap {
1091  max-width: var(--st-content-max);
1092  margin: 0 auto;
1093  padding: 28px 28px 80px;
1094}
1095.wrap--tight {
1096  max-width: 880px;
1097}
1098.wrap--wide {
1099  max-width: 1440px;
1100}
1101
1102/* --------------------------------------------------------------- sidebar --- */
1103.nav {
1104  display: flex;
1105  flex-direction: column;
1106  min-width: 0;
1107  background: var(--st-surface);
1108  border-right: 1px solid var(--st-line);
1109  overflow: hidden;
1110}
1111.nav__top {
1112  display: flex;
1113  align-items: center;
1114  gap: 8px;
1115  height: var(--st-header-h);
1116  padding: 0 12px 0 18px;
1117  flex: none;
1118  border-bottom: 1px solid var(--st-line);
1119}
1120.nav__brand {
1121  display: flex;
1122  align-items: center;
1123  min-width: 0;
1124  min-height: 48px;
1125  flex: 1;
1126  color: inherit;
1127}
1128.chat-title-button {
1129  border: 0;
1130  padding: 0;
1131  background: none;
1132  color: inherit;
1133  font: inherit;
1134  letter-spacing: inherit;
1135  text-align: inherit;
1136  cursor: text;
1137}
1138.brand {
1139  display: inline-flex;
1140  align-items: center;
1141  justify-content: center;
1142  flex: none;
1143  position: relative;
1144  vertical-align: middle;
1145  line-height: 1;
1146}
1147.brand__img {
1148  display: block;
1149  width: 100%;
1150  height: 100%;
1151  object-fit: contain;
1152}
1153.brand__fallback {
1154  display: none;
1155  font-weight: 700;
1156  color: var(--st-ink);
1157  white-space: nowrap;
1158}
1159.brand:not(:has(.brand__img)) .brand__fallback {
1160  display: block;
1161}
1162.brand--mark .brand__fallback {
1163  font-size: 18px;
1164}
1165.brand--lockup .brand__fallback {
1166  font-size: 19px;
1167}
1168.nav__brand-compact {
1169  display: none;
1170}
1171.setup__brand-title,
1172.snapshot__brand-title {
1173  display: flex;
1174  align-items: center;
1175  gap: 12px;
1176}
1177.setup__brand-title .h2,
1178.snapshot__brand-title .h2 {
1179  margin: 0;
1180}
1181@media (forced-colors: active) {
1182  .brand__img {
1183    display: none;
1184  }
1185  .brand__fallback {
1186    display: block;
1187    color: CanvasText;
1188  }
1189}
1190.nav__scroll {
1191  flex: 1;
1192  min-height: 0;
1193  overflow-y: auto;
1194  overflow-x: hidden;
1195  padding: 14px 12px 16px;
1196  display: flex;
1197  flex-direction: column;
1198  gap: 20px;
1199}
1200.nav__foot {
1201  flex: none;
1202  padding: 12px;
1203  border-top: 1px solid var(--st-line);
1204  background: var(--st-surface);
1205  display: flex;
1206  flex-direction: column;
1207  gap: 8px;
1208}
1209
1210.navgroup__label {
1211  font-size: 11px;
1212  font-weight: 500;
1213  letter-spacing: 0.06em;
1214  text-transform: uppercase;
1215  color: var(--st-ink-muted);
1216  padding: 0 10px 6px;
1217  white-space: nowrap;
1218}
1219.navitem {
1220  display: flex;
1221  align-items: center;
1222  gap: 10px;
1223  width: 100%;
1224  height: 36px;
1225  padding: 0 10px;
1226  border: 0;
1227  border-radius: 10px;
1228  background: transparent;
1229  color: var(--st-ink-soft);
1230  font: 500 var(--st-fs-md)/1 var(--st-font);
1231  cursor: pointer;
1232  text-align: left;
1233  transition: background var(--st-t-micro), color var(--st-t-micro);
1234}
1235.navitem:hover {
1236  background: var(--st-surface-2);
1237  color: var(--st-ink);
1238}
1239.navitem[aria-current='page'] {
1240  background: var(--st-surface-2);
1241  color: var(--st-ink);
1242  font-weight: 700;
1243}
1244.navitem svg {
1245  width: 19px;
1246  height: 19px;
1247  flex: none;
1248  color: var(--st-icon);
1249}
1250.navitem[aria-current='page'] svg {
1251  color: var(--st-accent);
1252}
1253.navitem__text {
1254  flex: 1;
1255  min-width: 0;
1256  overflow: hidden;
1257  text-overflow: ellipsis;
1258  white-space: nowrap;
1259}
1260.navitem__meta {
1261  font-size: var(--st-fs-xs);
1262  color: var(--st-ink-muted);
1263  font-variant-numeric: tabular-nums;
1264  flex: none;
1265}
1266/* ---------------------------------------------------------------- the rail ---
1267   Collapsed, the sidebar is 64px of icon targets. Everything below exists to
1268   hold one rule: **nothing is clipped, and every item is the same shape.**
1269   The previous version hid text on some elements but not others, so a
1270   conversation rendered as the first five pixels of its title, the model chip
1271   became an unlabelled dot in a bordered pill, and the bottom two controls sat
1272   side by side at different widths. */
1273
1274.app[data-rail='true'] .navitem__text,
1275.app[data-rail='true'] .navitem__meta,
1276.app[data-rail='true'] .navgroup__label,
1277.app[data-rail='true'] .nav__rail-hide,
1278.app[data-rail='true'] .navsession__title,
1279.app[data-rail='true'] .ws__tools,
1280.app[data-rail='true'] .ws__search {
1281  display: none;
1282}
1283
1284/* Shown only when there is no room for the word. */
1285.nav__rail-only {
1286  display: none;
1287}
1288.app[data-rail='true'] .nav__rail-only {
1289  display: flex;
1290}
1291.app[data-rail='true'] .nav__wide-only {
1292  display: none;
1293}
1294
1295/* One target, one shape. 40×40 with the icon centred means every glyph in the
1296   rail sits on the same vertical line and the hover states line up. */
1297.app[data-rail='true'] .navitem,
1298.app[data-rail='true'] .navsession,
1299.app[data-rail='true'] .enginechip,
1300.app[data-rail='true'] .ws__name,
1301.app[data-rail='true'] .st-btn--icon {
1302  width: 40px;
1303  min-width: 40px;
1304  height: 40px;
1305  padding: 0;
1306  justify-content: center;
1307  align-items: center;
1308  gap: 0;
1309  border-radius: var(--st-r-md);
1310}
1311
1312/* Icons carry the meaning here, so they are a step larger than in the expanded
1313   sidebar where a label does most of the work. */
1314.app[data-rail='true'] .navitem .st-icon,
1315.app[data-rail='true'] .navsession .st-icon,
1316.app[data-rail='true'] .ws__name .st-icon {
1317  width: 20px;
1318  height: 20px;
1319}
1320
1321.app[data-rail='true'] .nav__top {
1322  justify-content: center;
1323  padding: 0;
1324}
1325/* The collapse control matched the nav items' width but not their height, so
1326   the one row with two controls in it broke the column's rhythm. */
1327.app[data-rail='true'] .nav__collapse {
1328  width: 40px;
1329  min-width: 40px;
1330  height: 40px;
1331  padding: 0;
1332  justify-content: center;
1333}
1334.app[data-rail='true'] .nav__brand {
1335  flex: none;
1336  width: 48px;
1337  justify-content: center;
1338}
1339.app[data-rail='true'] .nav__brand-lockup {
1340  display: none;
1341}
1342.app[data-rail='true'] .nav__brand-compact {
1343  display: inline-flex;
1344}
1345.app[data-rail='true'] .nav__scroll {
1346  padding: 14px 12px 16px;
1347  align-items: center;
1348}
1349.app[data-rail='true'] .nav__foot {
1350  padding: 12px;
1351  align-items: center;
1352  gap: 4px;
1353}
1354
1355/* The model chip keeps its dot but loses the pill: a bordered box holding one
1356   small circle read as a broken button rather than a status light. */
1357.app[data-rail='true'] .enginechip {
1358  border: 0;
1359  background: transparent;
1360}
1361.app[data-rail='true'] .enginechip:hover {
1362  background: var(--st-surface-2);
1363}
1364.app[data-rail='true'] .enginechip__dot {
1365  width: 10px;
1366  height: 10px;
1367}
1368
1369/* The expanded rail spaces its groups by 20px, and the workspace block adds an
1370   8px margin on top of that. With the group heading hidden the two stack into a
1371   ~28px void between Skills and the first folder — a gap that reads as a missing
1372   element rather than as grouping. Tighter and uniform here. */
1373.app[data-rail='true'] .nav__scroll {
1374  gap: 8px;
1375}
1376.app[data-rail='true'] .ws {
1377  margin-top: 0;
1378  gap: 4px;
1379}
1380/* The "Workspaces" heading leaves a 26px block behind when its label and tools
1381   are hidden — empty space with nothing in it, which reads as a missing item. */
1382.app[data-rail='true'] .ws__head {
1383  display: none;
1384}
1385/* 1px between a folder and its conversations is tighter than the 4px the rest
1386   of the rail uses; at 40px targets they nearly touch. */
1387.app[data-rail='true'] .ws__group {
1388  gap: 4px;
1389}
1390.app[data-rail='true'] .ws__list {
1391  gap: 4px;
1392}
1393
1394/* Stacked, so the two bottom controls match every other item instead of being
1395   squeezed into one row at two different widths. */
1396.app[data-rail='true'] .nav__foot {
1397  flex-direction: column;
1398}
1399.app[data-rail='true'] .nav__foot > .row {
1400  flex-direction: column;
1401  gap: 4px;
1402  width: 40px;
1403}
1404
1405/* The workspace row is a folder and nothing else — the disclosure chevron had
1406   no room beside it and read as a stray glyph. */
1407.app[data-rail='true'] .ws__name {
1408  border-radius: var(--st-r-md);
1409}
1410
1411/* The expanded tree indents a conversation under its folder by 22px. In a 64px
1412   rail that pushed the 40px target past the right edge, so the row rendered as
1413   a glyph sliced off by the sidebar boundary. */
1414.app[data-rail='true'] .ws__session {
1415  padding-left: 0;
1416  gap: 0;
1417  justify-content: center;
1418}
1419.app[data-rail='true'] .ws__sessions {
1420  padding-left: 0;
1421  margin-left: 0;
1422  gap: 4px;
1423}
1424.app[data-rail='true'] .ws {
1425  align-items: center;
1426}
1427
1428.navsessions {
1429  display: flex;
1430  flex-direction: column;
1431  gap: 2px;
1432}
1433.navsession {
1434  display: flex;
1435  align-items: center;
1436  gap: 8px;
1437  height: 32px;
1438  padding: 0 10px;
1439  border: 0;
1440  border-radius: 8px;
1441  background: transparent;
1442  color: var(--st-ink-muted);
1443  font: 400 var(--st-fs-sm)/1 var(--st-font);
1444  cursor: pointer;
1445  text-align: left;
1446  width: 100%;
1447  transition: background var(--st-t-micro), color var(--st-t-micro);
1448}
1449.navsession:hover {
1450  background: var(--st-surface-2);
1451  color: var(--st-ink);
1452}
1453/* The chat row marks itself with aria-current="page", like every other current
1454   destination; the rule below used to look for "true", so the conversation you
1455   were reading was the one row with no mark at all. */
1456.navsession[aria-current='page'],
1457.navsession[aria-current='true'] {
1458  color: var(--st-ink);
1459  background: var(--st-surface-2);
1460  font-weight: 500;
1461}
1462/* Targeted at the title, not at every span in the row.
1463   `.navsession span` also matched the timestamp and the unread dot, and being
1464   (0,1,1) it outranked their own (0,1,0) rules — so `flex: none` on the meta
1465   silently lost and the dot rendered as a 42px pill instead of a 6px dot. */
1466.navsession__title {
1467  overflow: hidden;
1468  text-overflow: ellipsis;
1469  white-space: nowrap;
1470  flex: 1;
1471}
1472.navsessions .row .st-btn--icon {
1473  opacity: 0;
1474  transition: opacity var(--st-t-control);
1475}
1476.navsessions .row:hover .st-btn--icon,
1477.navsessions .row:focus-within .st-btn--icon {
1478  opacity: 1;
1479}
1480
1481/* The engine chip is the sidebar's status line: model + live state. */
1482.enginechip {
1483  display: flex;
1484  align-items: center;
1485  gap: 10px;
1486  width: 100%;
1487  padding: 10px 12px;
1488  border-radius: 14px;
1489  border: 1px solid var(--st-line);
1490  background: var(--st-surface-2);
1491  cursor: pointer;
1492  text-align: left;
1493  transition: border-color var(--st-t-control);
1494}
1495.enginechip:hover {
1496  border-color: color-mix(in srgb, var(--st-ink-muted) 42%, var(--st-line));
1497}
1498.enginechip__dot {
1499  width: 8px;
1500  height: 8px;
1501  border-radius: 50%;
1502  flex: none;
1503  background: var(--st-ink-muted);
1504}
1505.enginechip[data-state='ready'] .enginechip__dot {
1506  background: var(--st-accent);
1507  box-shadow: 0 0 0 4px var(--st-accent-tint);
1508}
1509.enginechip[data-state='busy'] .enginechip__dot {
1510  background: var(--st-info);
1511  box-shadow: 0 0 0 4px var(--st-info-tint);
1512  animation: st-pulse 1.6s var(--st-ease-in-out) infinite;
1513}
1514.enginechip[data-state='warn'] .enginechip__dot {
1515  background: var(--st-warn);
1516  box-shadow: 0 0 0 4px var(--st-warn-tint);
1517}
1518.enginechip__text {
1519  min-width: 0;
1520  flex: 1;
1521  display: flex;
1522  flex-direction: column;
1523  gap: 2px;
1524}
1525.enginechip__title {
1526  font-size: var(--st-fs-sm);
1527  font-weight: 700;
1528  color: var(--st-ink);
1529  white-space: nowrap;
1530  overflow: hidden;
1531  text-overflow: ellipsis;
1532}
1533.enginechip__sub {
1534  font-size: var(--st-fs-xs);
1535  color: var(--st-ink-muted);
1536  white-space: nowrap;
1537  overflow: hidden;
1538  text-overflow: ellipsis;
1539}
1540@keyframes st-pulse {
1541  0%,
1542  100% {
1543    opacity: 1;
1544  }
1545  50% {
1546    opacity: 0.4;
1547  }
1548}
1549
1550/* ============================================================ 3. utilities == */
1551
1552.row {
1553  display: flex;
1554  align-items: center;
1555  gap: 12px;
1556}
1557.row--between {
1558  justify-content: space-between;
1559}
1560.col {
1561  display: flex;
1562  flex-direction: column;
1563}
1564.spacer {
1565  flex: 1;
1566}
1567.stack {
1568  display: flex;
1569  flex-direction: column;
1570  gap: 16px;
1571}
1572.stack--sm {
1573  gap: 10px;
1574}
1575.stack--lg {
1576  gap: 24px;
1577}
1578.grid {
1579  display: grid;
1580  gap: 14px;
1581}
1582.grid--2 {
1583  grid-template-columns: repeat(2, minmax(0, 1fr));
1584}
1585/* Cards size to their own content rather than to the tallest in the row. */
1586.grid--start {
1587  align-items: start;
1588}
1589@media (max-width: 1180px) {
1590}
1591@media (max-width: 900px) {
1592  .grid--2 {
1593    grid-template-columns: minmax(0, 1fr);
1594  }
1595  .wrap {
1596    padding: 20px 18px 64px;
1597  }
1598  .main__head {
1599    padding: 12px 18px;
1600  }
1601}
1602
1603.eyebrow {
1604  font-size: var(--st-fs-xs);
1605  font-weight: 500;
1606  letter-spacing: 0.06em;
1607  text-transform: uppercase;
1608  color: var(--st-ink-muted);
1609}
1610.h1 {
1611  font-size: clamp(30px, 3.4vw, 40px);
1612  font-weight: 900;
1613  letter-spacing: -0.02em;
1614  line-height: 1.05;
1615  margin: 0;
1616}
1617.h2 {
1618  font-size: var(--st-fs-xl);
1619  font-weight: 700;
1620  letter-spacing: -0.01em;
1621  margin: 0;
1622}
1623.h3 {
1624  font-size: var(--st-fs-lg);
1625  font-weight: 700;
1626  margin: 0;
1627}
1628.h4 {
1629  font-size: var(--st-fs-base);
1630  font-weight: 700;
1631  margin: 0;
1632}
1633.muted {
1634  color: var(--st-ink-muted);
1635}
1636.soft {
1637  color: var(--st-ink-soft);
1638}
1639.small {
1640  font-size: var(--st-fs-sm);
1641}
1642.xs {
1643  font-size: var(--st-fs-xs);
1644}
1645.mono {
1646  font-family: var(--st-font-mono);
1647  font-size: 13px;
1648}
1649.num {
1650  font-variant-numeric: tabular-nums;
1651}
1652.strong {
1653  font-weight: 700;
1654  color: var(--st-ink);
1655}
1656.divider {
1657  height: 1px;
1658  background: var(--st-line-soft);
1659  border: 0;
1660  margin: 0;
1661}
1662
1663/* Rows: the workhorse for model lists, files, skills and requests. */
1664.listrow {
1665  position: relative;
1666  display: flex;
1667  align-items: center;
1668  gap: 16px;
1669  padding: 18px 20px;
1670  transition: background var(--st-t-micro);
1671}
1672/* Separators start where the content starts rather than running edge to edge —
1673   the difference between a list that looks drawn and one that looks gridded. */
1674.listrow::before {
1675  content: '';
1676  position: absolute;
1677  inset: 0 0 auto 20px;
1678  height: 1px;
1679  background: var(--st-line-soft);
1680}
1681.listrow:first-child::before {
1682  display: none;
1683}
1684.listrow:hover {
1685  background: var(--st-surface-2);
1686}
1687/* A row that carries a note and an action rather than content: no hover, no
1688   separator emphasis. */
1689.listrow--quiet {
1690  color: var(--st-ink-muted);
1691}
1692.listrow--quiet::before {
1693  background: transparent;
1694}
1695.listrow--quiet:hover {
1696  background: transparent;
1697}
1698
1699.listrow--selectable {
1700  cursor: pointer;
1701}
1702.listrow[data-selected='true'] {
1703  background: var(--st-accent-tint);
1704}
1705.listrow__main {
1706  min-width: 0;
1707  flex: 1;
1708}
1709.listrow__title {
1710  display: flex;
1711  align-items: center;
1712  gap: 10px;
1713  font-weight: 700;
1714  color: var(--st-ink);
1715  font-size: var(--st-fs-base);
1716}
1717.listrow__desc {
1718  font-size: var(--st-fs-sm);
1719  color: var(--st-ink-muted);
1720  margin-top: 3px;
1721}
1722.listrow__side {
1723  display: flex;
1724  align-items: center;
1725  gap: 10px;
1726  flex: none;
1727}
1728
1729/* Selection radio, used by the model picker. */
1730.radio {
1731  width: 20px;
1732  height: 20px;
1733  flex: none;
1734  border-radius: 50%;
1735  border: 1.5px solid var(--st-line);
1736  background: var(--st-surface);
1737  display: grid;
1738  place-items: center;
1739  transition: border-color var(--st-t-control), background var(--st-t-control);
1740}
1741.radio[data-on='true'] {
1742  border-color: var(--st-accent);
1743  border-width: 5px;
1744  background: var(--st-surface);
1745}
1746
1747/* Metric rows — the reference grid of .st-metric cards. */
1748.metricgrid {
1749  display: grid;
1750  gap: 14px;
1751}
1752
1753/* Text-valued metrics sit a step down from the numeric stat size, so a long
1754   name like "Apple M4 (8-core GPU)" stays on one line and the row keeps its
1755   rhythm. Uses the kit's --st-fs-lg. */
1756.st-metric__value--text {
1757  font-size: var(--st-fs-lg);
1758  font-weight: 700;
1759  line-height: 1.25;
1760}
1761
1762/* Form rows inside a card. */
1763.field {
1764  display: flex;
1765  align-items: center;
1766  gap: 24px;
1767  padding: 18px 20px;
1768  border-top: 1px solid var(--st-line-soft);
1769}
1770.field:first-child {
1771  border-top: 0;
1772}
1773.field__main {
1774  flex: 1;
1775  min-width: 0;
1776}
1777.field__label {
1778  font-size: var(--st-fs-md);
1779  font-weight: 500;
1780  color: var(--st-ink);
1781}
1782.field__impact {
1783  margin-top: 4px;
1784  font-size: var(--st-fs-xs);
1785  color: var(--st-ink-soft);
1786}
1787.field__hint {
1788  font-size: var(--st-fs-sm);
1789  color: var(--st-ink-muted);
1790  margin-top: 3px;
1791}
1792.field__control {
1793  flex: none;
1794  width: 260px;
1795  display: flex;
1796  justify-content: flex-end;
1797  align-items: center;
1798}
1799.field__control--wide {
1800  width: 360px;
1801}
1802
1803/* Select — a capsule field with a real chevron, and a glass popup. The popup
1804   replaces the OS-drawn menu a native <select> produced, which shared nothing
1805   with the rest of the app. */
1806.select__trigger {
1807  display: inline-flex;
1808  align-items: center;
1809  justify-content: space-between;
1810  gap: 10px;
1811  width: 100%;
1812  cursor: pointer;
1813  text-align: left;
1814}
1815.select__trigger[aria-expanded='true'] {
1816  border-color: var(--st-focus);
1817}
1818.select__value {
1819  min-width: 0;
1820  overflow: hidden;
1821  text-overflow: ellipsis;
1822  white-space: nowrap;
1823}
1824.select__pop {
1825  position: fixed;
1826  z-index: 70;
1827  max-height: 320px;
1828  overflow-y: auto;
1829  padding: 6px;
1830  background: var(--st-material-tint-strong);
1831  -webkit-backdrop-filter: var(--st-material-regular);
1832  backdrop-filter: var(--st-material-regular);
1833  border: 1px solid var(--st-line);
1834  /* 14px outer with 6px of padding gives the options 8px — concentric. */
1835  border-radius: var(--st-r-md);
1836  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
1837}
1838.select__pop[data-up] {
1839  transform: translateY(-100%);
1840}
1841.select__opt {
1842  display: flex;
1843  align-items: center;
1844  gap: 8px;
1845  height: 36px;
1846  padding: 0 10px;
1847  border-radius: var(--st-r-sm);
1848  cursor: pointer;
1849  font-size: var(--st-fs-md);
1850  color: var(--st-ink-soft);
1851}
1852.select__opt[data-active] {
1853  background: var(--st-surface-2);
1854  color: var(--st-ink);
1855}
1856.select__opt[aria-selected='true'] {
1857  font-weight: 700;
1858  color: var(--st-ink);
1859}
1860.select__tick {
1861  display: inline-flex;
1862  width: 14px;
1863  flex: none;
1864  color: var(--st-accent-text);
1865}
1866/* accent-color gives the filled track; color-scheme gives the empty one a
1867   matching neutral in each theme. */
1868.st-slider {
1869  height: 20px;
1870  color-scheme: light;
1871}
1872[data-theme='dark'] .st-slider {
1873  color-scheme: dark;
1874}
1875.st-slider::-webkit-slider-thumb {
1876  width: 16px;
1877  height: 16px;
1878  border-radius: 50%;
1879  background: var(--st-surface);
1880  border: 2px solid var(--st-accent);
1881  box-shadow: var(--st-sh-card);
1882}
1883
1884textarea.st-input {
1885  height: auto;
1886  min-height: 96px;
1887  padding: 12px 14px;
1888  line-height: 1.6;
1889  resize: vertical;
1890  font-family: var(--st-font-mono);
1891  font-size: 13px;
1892}
1893
1894/* Steps — the wizard's progress bar. */
1895.steps {
1896  display: grid;
1897  grid-auto-flow: column;
1898  grid-auto-columns: 1fr;
1899  border: 1px solid var(--st-line);
1900  border-radius: var(--st-r-md);
1901  overflow: hidden;
1902  background: var(--st-surface-2);
1903}
1904.step {
1905  display: flex;
1906  align-items: center;
1907  justify-content: center;
1908  gap: 8px;
1909  padding: 13px 10px;
1910  font-size: var(--st-fs-sm);
1911  color: var(--st-ink-muted);
1912  border-left: 1px solid var(--st-line);
1913  position: relative;
1914  white-space: nowrap;
1915  overflow: hidden;
1916  transition: color var(--st-t-control), background var(--st-t-control);
1917}
1918.step:first-child {
1919  border-left: 0;
1920}
1921.step__n {
1922  font-variant-numeric: tabular-nums;
1923}
1924.step[data-state='done'] {
1925  color: var(--st-ink-soft);
1926}
1927.step[data-state='done'] .step__n {
1928  color: var(--st-accent-text);
1929}
1930.step[data-state='active'] {
1931  background: var(--st-surface);
1932  color: var(--st-ink);
1933  font-weight: 700;
1934}
1935.step[data-state='active']::after {
1936  content: '';
1937  position: absolute;
1938  left: 0;
1939  right: 0;
1940  bottom: 0;
1941  height: 2px;
1942  background: var(--st-accent);
1943  transform-origin: center;
1944  animation: st-mark var(--st-t-local) var(--st-ease-enter) both;
1945}
1946@keyframes st-mark {
1947  from {
1948    transform: scaleX(0);
1949  }
1950  to {
1951    transform: scaleX(1);
1952  }
1953}
1954
1955/* Label/value rows, as used by the tuning preview. */
1956.effectrow {
1957  display: flex;
1958  align-items: baseline;
1959  justify-content: space-between;
1960  /* A long value takes its own line rather than splitting beside its label.
1961     "Comfortable · about 1.9 GB of 12 GB" wrapped after "of" in the narrow
1962     panel, leaving a two-word second line under a right-aligned column. */
1963  flex-wrap: wrap;
1964  gap: 2px 16px;
1965  padding: 13px 0;
1966  border-bottom: 1px solid var(--st-line-soft);
1967  font-size: var(--st-fs-md);
1968}
1969.effectrow:last-child {
1970  border-bottom: 0;
1971}
1972.effectrow > :first-child {
1973  flex: none;
1974}
1975.effectrow > :last-child {
1976  margin-left: auto;
1977  text-align: right;
1978  max-width: 62%;
1979}
1980
1981/* File tree — rows, not a table: the workspace is browsed, not scanned. */
1982.treerow {
1983  display: flex;
1984  align-items: center;
1985  gap: 8px;
1986  height: 34px;
1987  padding-right: 14px;
1988  cursor: pointer;
1989  border-top: 1px solid transparent;
1990  border-bottom: 1px solid transparent;
1991  transition: background var(--st-t-micro);
1992}
1993.treerow:hover {
1994  background: var(--st-surface-2);
1995}
1996.treerow[data-selected='true'] {
1997  background: var(--st-accent-tint);
1998}
1999.treerow:focus-visible {
2000  outline-offset: -2px;
2001}
2002.treerow__icon {
2003  width: 17px;
2004  height: 17px;
2005  flex: none;
2006  display: grid;
2007  place-items: center;
2008  color: var(--st-icon);
2009}
2010.treerow__icon svg {
2011  color: currentColor;
2012}
2013.treerow__chev {
2014  width: 14px;
2015  height: 14px;
2016  display: grid;
2017  place-items: center;
2018  flex: none;
2019  color: var(--st-ink-muted);
2020}
2021.treerow__chev svg {
2022  transition: transform var(--st-t-control) var(--st-ease-standard);
2023  color: currentColor;
2024}
2025.treerow__chev[data-open='true'] svg {
2026  transform: rotate(180deg);
2027}
2028.treerow__name {
2029  flex: 1;
2030  min-width: 0;
2031  overflow: hidden;
2032  text-overflow: ellipsis;
2033  white-space: nowrap;
2034  font-size: var(--st-fs-md);
2035  color: var(--st-ink-soft);
2036}
2037.treerow[data-kind='dir'] .treerow__name {
2038  color: var(--st-ink);
2039  font-weight: 500;
2040}
2041.treerow__meta {
2042  font-size: var(--st-fs-xs);
2043  color: var(--st-ink-muted);
2044  font-variant-numeric: tabular-nums;
2045  flex: none;
2046}
2047
2048/* Empty states. */
2049.empty {
2050  display: flex;
2051  flex-direction: column;
2052  align-items: center;
2053  gap: 10px;
2054  text-align: center;
2055  padding: 56px 24px;
2056  color: var(--st-ink-muted);
2057}
2058.empty__icon {
2059  display: grid;
2060  place-items: center;
2061  width: 48px;
2062  height: 48px;
2063  border-radius: 16px;
2064  background: var(--st-surface-2);
2065  border: 1px solid var(--st-line);
2066  color: var(--st-icon);
2067}
2068.empty__title {
2069  font-size: var(--st-fs-base);
2070  font-weight: 700;
2071  color: var(--st-ink);
2072}
2073
2074/* Overlays.
2075   Both the scrim and its occupant stay mounted and are driven by [data-open],
2076   so enter and exit are *transitions* rather than one-shot keyframes: closing
2077   while opening reverses from wherever the animation got to. `visibility`
2078   flips discretely at the correct end of each run, which also keeps a closed
2079   drawer out of the tab order. */
2080.scrim {
2081  position: fixed;
2082  inset: 0;
2083  background: color-mix(in srgb, var(--st-ink) 42%, transparent);
2084  -webkit-backdrop-filter: var(--st-material-thick);
2085  backdrop-filter: var(--st-material-thick);
2086  z-index: 60;
2087  opacity: 0;
2088  visibility: hidden;
2089  transition:
2090    opacity var(--st-t-local) var(--st-ease-standard),
2091    visibility var(--st-t-local) allow-discrete;
2092}
2093.scrim[data-open='true'] {
2094  opacity: 1;
2095  visibility: visible;
2096}
2097/* A dialog that mounts already-visible fades in from transparent. */
2098@starting-style {
2099  .modal[data-open='true'] {
2100    opacity: 0;
2101  }
2102  .scrim[data-open='true'] {
2103    opacity: 0;
2104  }
2105}
2106.modal {
2107  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular-soft);
2108  position: fixed;
2109  z-index: 61;
2110  left: 50%;
2111  top: 10vh;
2112  transform: translateX(-50%);
2113  width: min(680px, calc(100vw - 40px));
2114  max-height: 78vh;
2115  display: flex;
2116  flex-direction: column;
2117  background: var(--st-surface);
2118  border: 1px solid var(--st-line);
2119  border-radius: var(--st-r-xl);
2120  box-shadow: var(--st-sh-pop);
2121  overflow: hidden;
2122  opacity: 0;
2123  visibility: hidden;
2124  --st-from-scale: 0.98;
2125  transition:
2126    opacity var(--st-t-local) var(--st-ease-standard),
2127    transform var(--st-t-local) var(--st-ease-standard),
2128    visibility var(--st-t-local) allow-discrete;
2129}
2130.modal[data-open='true'] {
2131  opacity: 1;
2132  visibility: visible;
2133  transform: translateX(-50%) scale(1);
2134}
2135.modal:not([data-open='true']) {
2136  transform: translateX(-50%) scale(0.98);
2137}
2138.modal__head {
2139  display: flex;
2140  align-items: center;
2141  gap: 12px;
2142  padding: 14px 16px;
2143  border-bottom: 1px solid var(--st-line);
2144}
2145.modal__body {
2146  overflow-y: auto;
2147  padding: 6px 0 12px;
2148}
2149.modal__group {
2150  padding: 14px 18px 6px;
2151  font-size: 11px;
2152  font-weight: 500;
2153  letter-spacing: 0.06em;
2154  text-transform: uppercase;
2155  color: var(--st-ink-muted);
2156}
2157
2158/* Modal search fields are borderless and autofocused; the global focus ring
2159   draws a box around nothing. Mark the focus on the rule underneath instead. */
2160.st-input--bare {
2161  border: 0;
2162  height: 30px;
2163  padding: 0;
2164  background: transparent;
2165  border-radius: 0;
2166}
2167.st-input--bare:focus,
2168.st-input--bare:focus-visible {
2169  outline: none;
2170  box-shadow: inset 0 -2px 0 var(--st-focus);
2171}
2172.shortcutrow__binding {
2173  display: flex;
2174  gap: 4px;
2175  align-items: center;
2176}
2177.shortcutrow__or {
2178  font-size: var(--st-fs-xs);
2179  color: var(--st-ink-muted);
2180  margin: 0 2px;
2181}
2182
2183/* The request drawer reuses the kit's drawer chrome. */
2184/* The kit's drawer already animates by transform under [data-open]; this only
2185   swaps its timing onto the motion scale and adds the discrete visibility flip
2186   so a closed drawer leaves the tab order. */
2187.st-drawer.sheet {
2188  width: min(560px, 100vw);
2189  /* The kit's drawer sets no z-index, so the scrim (60) was painting over it and
2190     swallowing every click inside. */
2191  z-index: 61;
2192  visibility: hidden;
2193  transition:
2194    transform var(--st-t-local) var(--st-ease-standard),
2195    visibility var(--st-t-local) allow-discrete;
2196}
2197.st-drawer.sheet[data-open='true'] {
2198  visibility: visible;
2199}
2200.sheet__head {
2201  flex: none;
2202}
2203.sheet__body {
2204  gap: 20px;
2205}
2206.sheet__foot {
2207  flex: none;
2208  display: flex;
2209  gap: 8px;
2210  justify-content: flex-end;
2211  padding: 14px 20px;
2212  border-top: 1px solid var(--st-line);
2213}
2214
2215/* Reveal-on-mount, used sparingly at the top of a screen. */
2216.reveal {
2217  --st-from-y: 8px;
2218  animation: st-enter var(--st-t-surface) var(--st-ease-enter) both;
2219}
2220.reveal[data-i='1'] {
2221  animation-delay: 40ms;
2222}
2223.reveal[data-i='2'] {
2224  animation-delay: 80ms;
2225}
2226.reveal[data-i='3'] {
2227  animation-delay: 120ms;
2228}
2229.reveal[data-i='4'] {
2230  animation-delay: 160ms;
2231}
2232.reveal[data-i='5'] {
2233  animation-delay: 200ms;
2234}
2235.reveal[data-i='6'] {
2236  animation-delay: 240ms;
2237}
2238
2239.skel {
2240  border-radius: 10px;
2241  background: var(--st-surface-2);
2242  border: 1px solid var(--st-line-soft);
2243}
2244
2245/* =========================================================== 4. components == */
2246
2247/* ---- chat ---------------------------------------------------------------- */
2248/* Conversation + optional context rail, the way DSH splits the workspace. */
2249/* The context rail is a grid track, so it opens and closes by animating the
2250   track rather than the panel's width — a layout property the audit forbids and
2251   which janks. Same technique as the sidebar rail. */
2252.chatsplit {
2253  flex: 1;
2254  min-height: 0;
2255  display: grid;
2256  grid-template-columns: minmax(0, 1fr) 0px;
2257  transition: grid-template-columns var(--st-t-surface) var(--st-ease-standard);
2258}
2259.chatsplit[data-context='true'] {
2260  grid-template-columns: minmax(0, 1fr) 340px;
2261}
2262/* The conversation and its composer share one column, so the composer stays
2263   aligned with the transcript when the context panel takes width. */
2264.chatcol {
2265  display: flex;
2266  flex-direction: column;
2267  min-width: 0;
2268  min-height: 0;
2269}
2270.contextpanel {
2271  width: 100%;
2272  min-width: 0;
2273  display: flex;
2274  flex-direction: column;
2275  min-height: 0;
2276  background: var(--st-surface);
2277  border-left: 1px solid var(--st-line);
2278  /* Stays mounted so it can animate out as well as in; visibility flips
2279     discretely at the end of the close, which also keeps it out of the tab
2280     order while hidden. */
2281  opacity: 0;
2282  visibility: hidden;
2283  transition:
2284    opacity var(--st-t-local) var(--st-ease-standard),
2285    visibility var(--st-t-local) allow-discrete;
2286}
2287.chatsplit[data-context='true'] .contextpanel {
2288  opacity: 1;
2289  visibility: visible;
2290}
2291@media (prefers-reduced-motion: reduce) {
2292  .chatsplit {
2293    transition: none;
2294  }
2295}
2296/* Rail sections collapse, so five cards do not have to be scrolled past to
2297   reach the fifth. The body animates on a grid track, like the other trees. */
2298.railsection {
2299  padding: 0;
2300  overflow: hidden;
2301}
2302.railsection__head {
2303  display: flex;
2304  align-items: center;
2305  gap: 8px;
2306  width: 100%;
2307  padding: var(--st-s-4);
2308  border: 0;
2309  background: transparent;
2310  cursor: pointer;
2311  font-family: inherit;
2312}
2313.railsection__head:hover {
2314  background: var(--st-surface-2);
2315}
2316.railsection__chev {
2317  flex: none;
2318  opacity: 0.45;
2319  transform: rotate(180deg);
2320  transition: transform var(--st-t-control) var(--st-ease-standard);
2321}
2322.railsection[data-open] .railsection__chev {
2323  transform: rotate(0deg);
2324}
2325.railsection__body {
2326  display: grid;
2327  grid-template-rows: 0fr;
2328  transition: grid-template-rows var(--st-t-local) var(--st-ease-standard);
2329}
2330.railsection__body > * {
2331  overflow: hidden;
2332  min-height: 0;
2333}
2334.railsection[data-open] .railsection__body {
2335  grid-template-rows: 1fr;
2336}
2337.railsection__inner {
2338  padding: 0 var(--st-s-4) var(--st-s-4);
2339}
2340/* A tool that has not been reached for is quieter than one that has. */
2341.contextpanel [data-used] .small.strong {
2342  color: var(--st-ink);
2343}
2344.contextpanel .railsection__inner > .col > .row:not([data-used]) .small.strong {
2345  color: var(--st-ink-muted);
2346  font-weight: 500;
2347}
2348@media (prefers-reduced-motion: reduce) {
2349  .railsection__body,
2350  .railsection__chev {
2351    transition: none;
2352  }
2353}
2354.contextpanel__head {
2355  flex: none;
2356}
2357.contextpanel__body {
2358  flex: 1;
2359  min-height: 0;
2360  overflow-y: auto;
2361  padding: 12px;
2362  gap: 12px;
2363  display: flex;
2364  flex-direction: column;
2365  gap: 14px;
2366}
2367@media (max-width: 1180px) {
2368  .contextpanel {
2369    width: 300px;
2370  }
2371}
2372@media (max-width: 980px) {
2373  .chatsplit {
2374    grid-template-columns: minmax(0, 1fr);
2375  }
2376  .contextpanel {
2377    display: none;
2378  }
2379}
2380
2381.chat {
2382  display: flex;
2383  flex-direction: column;
2384}
2385.chat__inner {
2386  width: 100%;
2387  max-width: 920px;
2388  margin: 0 auto;
2389  padding: 28px 28px 20px;
2390  display: flex;
2391  flex-direction: column;
2392  gap: 22px;
2393  flex: 1;
2394}
2395.chat__intro {
2396  display: flex;
2397  flex-direction: column;
2398  align-items: center;
2399  text-align: center;
2400  padding: 40px 0 20px;
2401  margin: auto 0;
2402}
2403.chat__prompts {
2404  display: grid;
2405  grid-template-columns: repeat(2, minmax(0, 1fr));
2406  gap: 10px;
2407  margin-top: 24px;
2408  width: 100%;
2409  max-width: 640px;
2410}
2411@media (max-width: 720px) {
2412  .chat__prompts {
2413    grid-template-columns: minmax(0, 1fr);
2414  }
2415}
2416.chat__prompt {
2417  display: flex;
2418  align-items: center;
2419  gap: 10px;
2420  padding: 13px 15px;
2421  border-radius: var(--st-r-md);
2422  border: 1px solid var(--st-line);
2423  background: var(--st-surface);
2424  color: var(--st-ink-soft);
2425  font: 400 var(--st-fs-sm)/1.4 var(--st-font);
2426  text-align: left;
2427  cursor: pointer;
2428  transition: border-color var(--st-t-control), background var(--st-t-control);
2429}
2430.chat__prompt:hover {
2431  border-color: color-mix(in srgb, var(--st-ink-muted) 42%, var(--st-line));
2432  background: var(--st-surface-2);
2433}
2434.chat__prompt svg {
2435  color: var(--st-icon);
2436  flex: none;
2437}
2438
2439.st-msg {
2440  --st-from-y: 6px;
2441  /* `backwards`, not `both`.
2442
2443     `both` keeps the final keyframe applying after the animation ends, and an
2444     animated value outranks a normal declaration in the cascade — so the
2445     `opacity: 1` at the end of st-enter pinned every turn at full strength and
2446     silently defeated focus mode's "earlier turns recede" rule. The rule was in
2447     the stylesheet, matched the element, and lost anyway.
2448
2449     `backwards` still covers the element before the animation starts, and the
2450     keyframe's end state (opacity 1, no transform) is the element's natural
2451     state, so nothing snaps when it finishes. */
2452  animation: st-enter var(--st-t-local) var(--st-ease-enter) backwards;
2453}
2454.st-msg--assistant {
2455  max-width: 100%;
2456}
2457.st-msg--assistant .st-bubble {
2458  width: 100%;
2459}
2460.st-bubble p {
2461  margin: 0 0 10px;
2462}
2463.st-bubble p:last-child {
2464  margin-bottom: 0;
2465}
2466.st-msg__meta .st-btn--icon {
2467  width: 28px;
2468  height: 28px;
2469}
2470.md-li {
2471  display: flex;
2472  gap: 9px;
2473  margin: 0 0 6px;
2474}
2475.md-dot {
2476  color: var(--st-ink-muted);
2477  min-width: 12px;
2478}
2479.md-code {
2480  font-family: var(--st-font-mono);
2481  font-size: var(--st-fs-sm);
2482  padding: 2px 6px;
2483  border-radius: 6px;
2484  background: var(--st-surface-2);
2485  border: 1px solid var(--st-line);
2486}
2487
2488.md-image {
2489  max-width: 100%;
2490  height: auto;
2491  border-radius: 8px;
2492}
2493
2494.typing {
2495  display: inline-flex;
2496  gap: 4px;
2497  align-items: center;
2498  height: 20px;
2499}
2500.typing i {
2501  width: 6px;
2502  height: 6px;
2503  border-radius: 50%;
2504  background: var(--st-ink-muted);
2505  animation: st-typing 1.1s var(--st-ease-in-out) infinite;
2506}
2507.typing i:nth-child(2) {
2508  animation-delay: 0.15s;
2509}
2510.typing i:nth-child(3) {
2511  animation-delay: 0.3s;
2512}
2513@keyframes st-typing {
2514  0%,
2515  100% {
2516    opacity: 0.28;
2517    transform: translateY(0);
2518  }
2519  40% {
2520    opacity: 1;
2521    transform: translateY(-3px);
2522  }
2523}
2524.caret {
2525  display: inline-block;
2526  width: 7px;
2527  height: 15px;
2528  margin-left: 3px;
2529  vertical-align: -2px;
2530  background: var(--st-accent);
2531  border-radius: 2px;
2532  animation: st-blink 1s steps(2, start) infinite;
2533}
2534@keyframes st-blink {
2535  50% {
2536    opacity: 0;
2537  }
2538}
2539
2540/* The wrapper owns the flex slot and the positioning context, so the slash menu
2541   can be a sibling of the glass composer rather than a descendant of it. */
2542.composerwrap {
2543  position: relative;
2544  flex: none;
2545}
2546.composer {
2547  padding: 14px 28px 18px;
2548  border-top: 1px solid var(--st-line);
2549  background: var(--st-material-tint);
2550  -webkit-backdrop-filter: var(--st-material-regular);
2551  backdrop-filter: var(--st-material-regular);
2552}
2553/* The box's third line: the keys you need, inside the surface you are typing
2554   into, rather than floating underneath it. */
2555.composer__hints {
2556  margin-top: 8px;
2557  padding: 0 4px;
2558  font-size: var(--st-fs-xs);
2559  color: var(--st-ink-muted);
2560  min-height: 16px;
2561}
2562
2563/* The native field sits on the material; on a translucent surface a solid
2564   field would read as a second card, so it goes transparent. */
2565.composer .st-composer {
2566  background: transparent;
2567}
2568/* Optical alignment. The transcript's column carries 28px of horizontal padding
2569   so bubbles never touch the scroller, and the composer's box carried none — so
2570   its border sat 28px proud of every message card on both sides and the column
2571   read as two different widths. Matching the *content* box lines the composer's
2572   edge up with the cards it sits beneath. */
2573.composer__inner {
2574  max-width: calc(920px - 56px);
2575  margin: 0 auto;
2576  position: relative;
2577}
2578.composer .st-composer {
2579  border-width: 1.5px;
2580  border-color: var(--st-line);
2581}
2582.composer .st-composer:focus-within {
2583  border-color: var(--st-focus);
2584}
2585.composer .st-composer textarea {
2586  width: 100%;
2587}
2588/* The composer is white on white, so the kit's surface-2 track disappears.
2589   Swap the track to --st-line, which is the token meant for visible rules. */
2590.composer__meter .st-progress {
2591  background: var(--st-line);
2592  border: 0;
2593  flex: 1;
2594}
2595
2596/* ---- tool calls ---------------------------------------------------------- */
2597.toolcard {
2598  border: 1px solid var(--st-line);
2599  border-radius: var(--st-r-lg);
2600  background: var(--st-surface);
2601  overflow: hidden;
2602  --st-from-y: 8px;
2603  animation: st-enter var(--st-t-surface) var(--st-ease-enter) both;
2604}
2605.toolcard[data-state='proposed'] {
2606  border-color: var(--st-warn);
2607}
2608.toolcard[data-state='denied'] {
2609  opacity: 0.75;
2610}
2611.toolcard__head {
2612  display: flex;
2613  align-items: center;
2614  gap: 10px;
2615  padding: 12px 16px;
2616  border-bottom: 1px solid var(--st-line);
2617  background: var(--st-surface-2);
2618}
2619.toolcard__head svg {
2620  color: var(--st-icon);
2621}
2622.toolcard[data-state='proposed'] .toolcard__head svg {
2623  color: var(--st-warn);
2624}
2625.toolcard__body {
2626  padding: 14px 16px;
2627}
2628.toolcard__preview {
2629  display: block;
2630  font-family: var(--st-font-mono);
2631  font-size: var(--st-fs-sm);
2632  padding: 10px 12px;
2633  border-radius: var(--st-r-md);
2634  background: var(--st-code-bg);
2635  color: var(--st-code-ink);
2636  overflow-x: auto;
2637  white-space: pre;
2638}
2639.toolcard__result {
2640  display: flex;
2641  align-items: center;
2642  gap: 8px;
2643  margin-top: 12px;
2644  font-size: var(--st-fs-sm);
2645  color: var(--st-ink-muted);
2646}
2647.toolcard__result svg {
2648  color: var(--st-accent-text);
2649  flex: none;
2650}
2651.toolcard[data-state='denied'] .toolcard__result svg {
2652  color: var(--st-ink-muted);
2653}
2654.toolcard__foot {
2655  display: flex;
2656  align-items: center;
2657  gap: 10px;
2658  padding: 11px 16px;
2659  border-top: 1px solid var(--st-line);
2660  background: var(--st-warn-tint);
2661}
2662.kbd {
2663  display: inline-block;
2664  font: 500 11px/1 var(--st-font-mono);
2665  padding: 3px 6px;
2666  border-radius: 6px;
2667  border: 1px solid var(--st-line);
2668  background: var(--st-surface);
2669  color: var(--st-ink-soft);
2670}
2671
2672/* ---- slash commands ------------------------------------------------------ */
2673/* Positioned by its host, not by itself: the host carries the composer's
2674   padding so the menu lands on the same column, and sits above the wrapper. */
2675.slashmenu-host {
2676  position: absolute;
2677  left: 0;
2678  right: 0;
2679  bottom: 100%;
2680  padding: 0 28px 10px;
2681  pointer-events: none;
2682}
2683.slashmenu-host .slashmenu {
2684  pointer-events: auto;
2685}
2686.slashmenu {
2687  position: static;
2688  max-width: 920px;
2689  margin: 0 auto;
2690  -webkit-backdrop-filter: var(--st-material-regular);
2691  backdrop-filter: var(--st-material-regular);
2692  max-height: 340px;
2693  overflow-y: auto;
2694  padding: 6px;
2695  /* A menu of command names over suggestion cards is the busiest backdrop in
2696     the app; legibility wins over transparency here. */
2697  border-radius: var(--st-r-lg);
2698  border: 1px solid var(--st-line);
2699  background: var(--st-material-tint-strong);
2700  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular-soft);
2701  z-index: 30;
2702  --st-from-y: 6px; --st-from-scale: 0.99;
2703  animation: st-enter var(--st-t-control) var(--st-ease-enter) both;
2704}
2705.slashmenu__label {
2706  font-size: 11px;
2707  font-weight: 500;
2708  letter-spacing: 0.06em;
2709  text-transform: uppercase;
2710  color: var(--st-ink-muted);
2711  padding: 8px 12px 6px;
2712}
2713.slashmenu__item {
2714  display: flex;
2715  align-items: center;
2716  gap: 12px;
2717  width: 100%;
2718  padding: 9px 12px;
2719  border: 0;
2720  border-radius: 10px;
2721  background: transparent;
2722  color: var(--st-ink-soft);
2723  font: 500 var(--st-fs-md)/1.2 var(--st-font);
2724  text-align: left;
2725  cursor: pointer;
2726}
2727.slashmenu__item[data-active='true'] {
2728  background: var(--st-surface-2);
2729  color: var(--st-ink);
2730}
2731.slashmenu__item svg {
2732  color: var(--st-icon);
2733  flex: none;
2734}
2735.slashmenu__item[data-active='true'] svg {
2736  color: var(--st-accent);
2737}
2738.slashmenu__name {
2739  font-family: var(--st-font-mono);
2740  font-size: 13px;
2741  min-width: 96px;
2742}
2743.slashmenu__hint {
2744  font-size: var(--st-fs-sm);
2745  color: var(--st-ink-muted);
2746  font-weight: 400;
2747}
2748.slashmenu__empty {
2749  padding: 14px;
2750}
2751
2752/* ---- shortcuts ----------------------------------------------------------- */
2753.shortcutrow {
2754  display: flex;
2755  align-items: center;
2756  gap: 16px;
2757  padding: 10px 18px;
2758  border-top: 1px solid var(--st-line-soft);
2759}
2760.shortcutrow__label {
2761  flex: 1;
2762  font-size: var(--st-fs-md);
2763  color: var(--st-ink-soft);
2764}
2765.shortcutrow__keys {
2766  display: flex;
2767  gap: 4px;
2768  flex: none;
2769}
2770
2771/* ---- gauge readout (the kit draws the arc, we place the number) ---------- */
2772.gauge__readout {
2773  position: absolute;
2774  inset: 0;
2775  display: flex;
2776  flex-direction: column;
2777  align-items: center;
2778  justify-content: center;
2779  gap: 2px;
2780}
2781
2782/* The kit's collapse body holds generated prose, so keep its line breaks. */
2783.st-collapse__body {
2784  white-space: pre-wrap;
2785  line-height: 1.65;
2786}
2787.st-code pre code {
2788  font: inherit;
2789}
2790
2791/* =========================================================== 5. first run == */
2792.setup {
2793  position: fixed;
2794  inset: 0;
2795  overflow-y: auto;
2796  background: var(--st-bg);
2797}
2798.setup__inner {
2799  max-width: 1000px;
2800  margin: 0 auto;
2801  padding: 48px 28px 64px;
2802  display: flex;
2803  flex-direction: column;
2804  min-height: 100%;
2805}
2806.setup__stage {
2807  margin-top: 24px;
2808  flex: 1;
2809  --st-from-x: 28px;
2810  animation: st-enter var(--st-t-choreo) var(--st-ease-enter) both;
2811}
2812/* Forward steps arrive from the right, Back returns from the left — same
2813   recipe, mirrored origin. */
2814.setup__stage[data-dir='back'] {
2815  --st-from-x: -28px;
2816}
2817.setup__panel {
2818  background: var(--st-surface);
2819  border: 1px solid var(--st-line);
2820  border-radius: var(--st-r-xl);
2821  box-shadow: var(--st-sh-card);
2822  padding: 28px;
2823}
2824.setup__note {
2825  display: flex;
2826  align-items: flex-start;
2827  gap: 10px;
2828  margin-top: 18px;
2829  padding: 14px 16px;
2830  border-radius: var(--st-r-md);
2831  border: 1px solid var(--st-line);
2832  background: var(--st-accent-tint);
2833  color: var(--st-ink-soft);
2834  font-size: var(--st-fs-sm);
2835  line-height: 1.55;
2836}
2837.setup__note svg {
2838  color: var(--st-accent-text);
2839  margin-top: 2px;
2840}
2841.setup__foot {
2842  display: flex;
2843  align-items: center;
2844  gap: 10px;
2845  margin-top: 28px;
2846  padding-top: 20px;
2847  border-top: 1px solid var(--st-line);
2848}
2849
2850.checks {
2851  position: relative;
2852  margin-top: 22px;
2853  border: 1px solid var(--st-line);
2854  border-radius: var(--st-r-lg);
2855  overflow: hidden;
2856  background: var(--st-surface);
2857}
2858/* While the probe runs, a single accent line sweeps the list. */
2859.checks[data-scanning='true']::after {
2860  content: '';
2861  position: absolute;
2862  left: 0;
2863  right: 0;
2864  top: 0;
2865  height: 2px;
2866  background: var(--st-accent);
2867  opacity: 0.85;
2868  animation: st-scan 1.15s var(--st-ease-in-out) infinite;
2869}
2870@keyframes st-scan {
2871  0% {
2872    transform: translateY(0);
2873    opacity: 0;
2874  }
2875  15% {
2876    opacity: 0.85;
2877  }
2878  85% {
2879    opacity: 0.85;
2880  }
2881  100% {
2882    transform: translateY(216px);
2883    opacity: 0;
2884  }
2885}
2886.checkrow {
2887  display: flex;
2888  align-items: center;
2889  gap: 16px;
2890  padding: 17px 20px;
2891  border-top: 1px solid var(--st-line-soft);
2892  --st-from-y: 6px;
2893  animation: st-enter var(--st-t-local) var(--st-ease-enter) both;
2894}
2895.checkrow:first-child {
2896  border-top: 0;
2897}
2898.checkrow__label {
2899  flex: 1;
2900  font-weight: 700;
2901  color: var(--st-ink);
2902}
2903.checkrow__value {
2904  display: inline-flex;
2905  align-items: center;
2906  gap: 9px;
2907  font-size: var(--st-fs-md);
2908  color: var(--st-ink-soft);
2909}
2910.checkrow[data-state='warn'] .checkrow__value {
2911  color: var(--st-warn-text);
2912}
2913.checkrow[data-state='fail'] .checkrow__value {
2914  color: var(--st-danger-text);
2915}
2916.checkrow__mark {
2917  display: inline-grid;
2918  place-items: center;
2919  width: 22px;
2920  height: 22px;
2921  border-radius: 50%;
2922  background: var(--st-accent-tint);
2923  color: var(--st-accent-text);
2924  animation: st-markpop 420ms var(--st-ease-spring) both;
2925}
2926.checkrow[data-state='warn'] .checkrow__mark {
2927  background: var(--st-warn-tint);
2928  color: var(--st-warn-text);
2929}
2930.checkrow[data-state='fail'] .checkrow__mark {
2931  background: var(--st-danger-tint);
2932  color: var(--st-danger-text);
2933}
2934.checkrow__mark svg {
2935  width: 15px;
2936  height: 15px;
2937}
2938@keyframes st-markpop {
2939  0% {
2940    transform: scale(0.4);
2941    opacity: 0;
2942  }
2943  60% {
2944    transform: scale(1.08);
2945    opacity: 1;
2946  }
2947  100% {
2948    transform: scale(1);
2949  }
2950}
2951
2952.stageMark {
2953  width: 24px;
2954  height: 24px;
2955  flex: none;
2956  display: grid;
2957  place-items: center;
2958  border-radius: 50%;
2959}
2960.stageMark[data-state='done'] {
2961  background: var(--st-accent-tint);
2962  color: var(--st-accent-text);
2963}
2964.stageMark[data-state='done'] svg {
2965  width: 16px;
2966  height: 16px;
2967  animation: st-markpop 420ms var(--st-ease-spring) both;
2968}
2969.stageMark[data-state='wait'] .dot {
2970  width: 8px;
2971  height: 8px;
2972  border-radius: 50%;
2973  background: var(--st-line);
2974}
2975.stageMark[data-state='active'] {
2976  background: var(--st-info-tint);
2977}
2978.spinner {
2979  width: 14px;
2980  height: 14px;
2981  border-radius: 50%;
2982  border: 2px solid var(--st-info-tint);
2983  border-top-color: var(--st-info);
2984  animation: st-spin 720ms linear infinite;
2985}
2986@keyframes st-spin {
2987  to {
2988    transform: rotate(360deg);
2989  }
2990}
2991
2992.ready {
2993  display: flex;
2994  flex-direction: column;
2995  align-items: center;
2996  text-align: center;
2997  padding: 20px 0 4px;
2998}
2999.ready__ring {
3000  position: relative;
3001  width: 64px;
3002  height: 64px;
3003  display: grid;
3004  place-items: center;
3005  border-radius: 50%;
3006  background: var(--st-accent-tint);
3007  color: var(--st-accent-text);
3008  animation: st-ringpop 560ms var(--st-ease-spring) both;
3009}
3010.ready__ring svg {
3011  width: 30px;
3012  height: 30px;
3013}
3014.ready__ring::after {
3015  content: '';
3016  position: absolute;
3017  inset: 0;
3018  border-radius: 50%;
3019  border: 1px solid var(--st-accent);
3020  opacity: 0.45;
3021  animation: st-ripple 1.8s var(--st-ease-standard) infinite;
3022}
3023@keyframes st-ringpop {
3024  0% {
3025    transform: scale(0.6);
3026    opacity: 0;
3027  }
3028  70% {
3029    transform: scale(1.04);
3030    opacity: 1;
3031  }
3032  100% {
3033    transform: scale(1);
3034  }
3035}
3036@keyframes st-ripple {
3037  from {
3038    transform: scale(1);
3039    opacity: 0.45;
3040  }
3041  to {
3042    transform: scale(1.6);
3043    opacity: 0;
3044  }
3045}
3046
3047/* ---- sidebar: collapse row, workspaces tree, more menu -------------------- */
3048
3049/* Collapse control shares the brand row; the compact rail shows only its icon. */
3050.nav__collapse {
3051  flex: none;
3052  display: flex;
3053  align-items: center;
3054  gap: 10px;
3055  height: 34px;
3056  margin: 0 12px 10px;
3057  padding: 0 10px;
3058  border: 0;
3059  border-radius: var(--st-r-pill);
3060  background: transparent;
3061  color: var(--st-ink-muted);
3062  font: 500 var(--st-fs-sm) var(--st-font);
3063  cursor: pointer;
3064  transition:
3065    background var(--st-t-micro),
3066    color var(--st-t-micro);
3067}
3068.nav__collapse:hover {
3069  background: var(--st-surface-2);
3070  color: var(--st-ink);
3071}
3072
3073.ws {
3074  display: flex;
3075  flex-direction: column;
3076  gap: 2px;
3077  margin-top: 8px;
3078}
3079.ws__head {
3080  display: flex;
3081  align-items: center;
3082  justify-content: space-between;
3083  gap: 8px;
3084  min-height: 26px;
3085  padding: 0 4px 0 10px;
3086}
3087.ws__tools {
3088  display: flex;
3089  align-items: center;
3090}
3091.ws__tools .st-btn--icon {
3092  width: 24px;
3093  height: 24px;
3094}
3095.ws__search {
3096  display: flex;
3097  align-items: center;
3098  gap: 8px;
3099  margin: 2px 8px 4px;
3100  padding: 0 4px;
3101  color: var(--st-ink-muted);
3102}
3103.ws__search .st-input {
3104  flex: 1;
3105  min-width: 0;
3106}
3107.ws__list {
3108  display: flex;
3109  flex-direction: column;
3110  gap: 8px;
3111}
3112.ws__group {
3113  display: flex;
3114  flex-direction: column;
3115  gap: 1px;
3116}
3117.ws__row {
3118  display: flex;
3119  align-items: center;
3120  gap: 2px;
3121  border-radius: var(--st-r-pill);
3122}
3123.ws__row.is-active {
3124  background: var(--st-surface-2);
3125}
3126.ws__name {
3127  flex: 1;
3128  min-width: 0;
3129  display: flex;
3130  align-items: center;
3131  gap: 7px;
3132  height: 30px;
3133  padding: 0 8px;
3134  border: 0;
3135  border-radius: var(--st-r-pill);
3136  background: transparent;
3137  color: var(--st-ink-soft);
3138  font: 600 var(--st-fs-sm) var(--st-font);
3139  cursor: pointer;
3140  text-align: left;
3141}
3142.ws__name > span {
3143  overflow: hidden;
3144  text-overflow: ellipsis;
3145  white-space: nowrap;
3146}
3147.ws__name:hover {
3148  background: var(--st-surface-2);
3149}
3150.ws__chev {
3151  flex: none;
3152  opacity: 0.5;
3153  transform: rotate(180deg);
3154  transition: transform var(--st-t-control) var(--st-ease-standard);
3155}
3156.ws__chev.is-open {
3157  transform: rotate(0deg);
3158}
3159.ws__drop {
3160  flex: none;
3161  display: inline-flex;
3162  align-items: center;
3163  justify-content: center;
3164  width: 22px;
3165  height: 22px;
3166  margin-right: 4px;
3167  border: 0;
3168  border-radius: var(--st-r-pill);
3169  background: transparent;
3170  color: var(--st-ink-muted);
3171  cursor: pointer;
3172  opacity: 0;
3173  transition: opacity var(--st-t-micro);
3174}
3175.ws__row:hover .ws__drop {
3176  opacity: 1;
3177}
3178/* The tree opens and closes by animating a grid track — the same technique the
3179   two rails use, so nothing here transitions a layout property directly. */
3180.ws__sessions {
3181  display: grid;
3182  grid-template-rows: 0fr;
3183  opacity: 0;
3184  transition:
3185    grid-template-rows var(--st-t-local) var(--st-ease-standard),
3186    opacity var(--st-t-local) var(--st-ease-standard);
3187}
3188.ws__sessions > * {
3189  overflow: hidden;
3190  min-height: 0;
3191}
3192.ws__sessions[data-open] {
3193  grid-template-rows: 1fr;
3194  opacity: 1;
3195}
3196/* Workspace tree: branches animate on a grid track, like the rails. */
3197.treebranch {
3198  display: grid;
3199  grid-template-rows: 0fr;
3200  transition: grid-template-rows var(--st-t-local) var(--st-ease-standard);
3201}
3202.treebranch > * {
3203  overflow: hidden;
3204  min-height: 0;
3205}
3206.treebranch[data-open] {
3207  grid-template-rows: 1fr;
3208}
3209@media (prefers-reduced-motion: reduce) {
3210  .treebranch {
3211    transition: none;
3212  }
3213}
3214
3215/* File preview in the workspace detail panel. */
3216.filepreview {
3217  max-height: 320px;
3218  overflow: auto;
3219  border-radius: var(--st-r-md);
3220  background: var(--st-surface-2);
3221  border: 1px solid var(--st-line-soft);
3222}
3223/* Sits on the kit's dark code surface, so it takes the code surface's ink.
3224   It set `var(--st-ink-soft)` — a *light-theme* colour meant for light
3225   backgrounds — which put #303030 text on #1b1f23: a contrast ratio of **1.26**,
3226   where body text needs 4.5. The file preview was, in the literal sense,
3227   unreadable. */
3228.filepreview__body {
3229  margin: 0;
3230  padding: 12px 14px;
3231  font-size: 13px;
3232  line-height: 1.65;
3233  white-space: pre;
3234  tab-size: 2;
3235  color: var(--st-code-ink);
3236  /* `white-space: pre` on a 360px panel against lines of up to 330 characters
3237     meant 2242px of the file was clipped, and `.st-code`'s own `overflow:
3238     hidden` made it unreachable — you could not read past the right edge of a
3239     long line, or even see that there was more. It scrolls now, as the chat's
3240     code blocks already did. */
3241  overflow-x: auto;
3242  overscroll-behavior-x: contain;
3243}
3244
3245.ws__empty {
3246  padding: 2px 10px 2px 26px;
3247}
3248/* Sessions sit under their folder, indented to the folder's label. */
3249.ws__session {
3250  gap: 2px;
3251  padding-left: 22px;
3252}
3253.navsession__meta {
3254  flex: none;
3255  font-size: var(--st-fs-xs);
3256  color: var(--st-ink-muted);
3257}
3258
3259/* Unread marker: a dot, sized to the row's line height so it never shifts text. */
3260.navsession__unread {
3261  flex: none;
3262  width: 6px;
3263  height: 6px;
3264  margin-left: 6px;
3265  border-radius: 50%;
3266  background: var(--st-accent);
3267}
3268
3269/* Pin control: quiet until it matters, permanent once it does. */
3270.ws__pin {
3271  flex: none;
3272  opacity: 0;
3273  color: var(--st-ink-muted);
3274  transition: opacity var(--st-t-micro), color var(--st-t-micro);
3275}
3276.ws__session:hover .ws__pin,
3277.ws__pin:focus-visible,
3278.ws__pin[data-pinned] {
3279  opacity: 1;
3280}
3281.ws__pin[data-pinned] {
3282  color: var(--st-accent-text);
3283}
3284.navsession.is-pinned .navsession__title {
3285  font-weight: 600;
3286}
3287@media (hover: none) {
3288  .ws__pin {
3289    opacity: 1;
3290  }
3291}
3292
3293/* The More menu. Portalled, so it can never be nested inside another material. */
3294.menu {
3295  position: fixed;
3296  z-index: 70;
3297  min-width: 208px;
3298  padding: 6px;
3299  background: var(--st-material-tint-strong);
3300  -webkit-backdrop-filter: var(--st-material-regular);
3301  backdrop-filter: var(--st-material-regular);
3302  border: 1px solid var(--st-line);
3303  border-radius: var(--st-r-md);
3304  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
3305  --st-from-y: 6px;
3306  animation: st-enter var(--st-t-control) var(--st-ease-enter) both;
3307}
3308.menu__item {
3309  display: flex;
3310  align-items: center;
3311  gap: 10px;
3312  height: 36px;
3313  padding: 0 10px;
3314  border-radius: var(--st-r-sm);
3315  color: var(--st-ink-soft);
3316  font-size: var(--st-fs-md);
3317  text-decoration: none;
3318}
3319.menu__item:hover {
3320  background: var(--st-surface-2);
3321  color: var(--st-ink);
3322}
3323.menu__item--danger {
3324  width: 100%;
3325  border: 0;
3326  background: transparent;
3327  cursor: pointer;
3328  font-family: inherit;
3329  text-align: left;
3330}
3331.menu__item--danger:hover {
3332  background: var(--st-danger-tint);
3333  color: var(--st-danger-text);
3334}
3335.menu__item[aria-current='page'] {
3336  color: var(--st-ink);
3337  font-weight: 700;
3338}
3339
3340/* First run, presented over the live shell. The wizard was built for a full
3341   window, so it is centred and given a scroll rather than rewritten. */
3342.setupmodal {
3343  position: fixed;
3344  inset: 0;
3345  z-index: 80;
3346  display: flex;
3347  align-items: flex-start;
3348  justify-content: center;
3349  padding: 4vh 24px;
3350  overflow-y: auto;
3351}
3352.setupmodal__surface {
3353  position: relative;
3354  /* Must outrank the scrim's z-index *within this stacking context* — at
3355     z-index 1 the 40px backdrop blur covered the wizard entirely. */
3356  z-index: 61;
3357  width: min(920px, 100%);
3358  border-radius: var(--st-r-xl);
3359  background: var(--st-surface);
3360  border: 1px solid var(--st-line);
3361  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
3362  overflow-x: hidden;
3363  overflow-y: auto;
3364  --st-from-scale: 0.99;
3365  animation: st-enter var(--st-t-local) var(--st-ease-enter) both;
3366}
3367/* The wizard is built as a full-window overlay (`position: fixed; inset: 0`),
3368   which contributes no height when nested inside a box. Inside the modal it
3369   becomes a normal block so the surface can size to its content. */
3370.setupmodal .setup {
3371  position: static;
3372  inset: auto;
3373  overflow: visible;
3374  background: transparent;
3375}
3376.setupmodal .setup__inner {
3377  max-width: none;
3378  min-height: 0;
3379  padding: 24px 28px 28px;
3380}
3381
3382/* Session telemetry. Reads as information, not controls: muted, tabular figures
3383   so the numbers do not jitter as they change. */
3384.telemetry {
3385  display: flex;
3386  align-items: center;
3387  justify-content: center;
3388  gap: 8px;
3389  margin-top: 8px;
3390  flex-wrap: wrap;
3391}
3392.telemetry__chip {
3393  display: inline-flex;
3394  align-items: center;
3395  gap: 7px;
3396  height: 26px;
3397  padding: 0 10px;
3398  border: 0;
3399  border-radius: var(--st-r-pill);
3400  background: transparent;
3401  color: var(--st-ink-muted);
3402  font: 400 var(--st-fs-xs) var(--st-font);
3403  font-variant-numeric: tabular-nums;
3404  cursor: pointer;
3405  white-space: nowrap;
3406  transition:
3407    background var(--st-t-micro),
3408    color var(--st-t-micro);
3409}
3410.telemetry__chip:hover,
3411.telemetry__chip[aria-expanded='true'] {
3412  background: var(--st-surface-2);
3413  color: var(--st-ink);
3414}
3415.telemetry__chip .num {
3416  color: var(--st-ink-soft);
3417  font-weight: 700;
3418}
3419.telemetry__chip > svg {
3420  flex: none;
3421  opacity: 0.75;
3422}
3423.telemetry__dot {
3424  opacity: 0.45;
3425}
3426
3427/* ---- telemetry detail popover -------------------------------------------- */
3428.telepop {
3429  position: fixed;
3430  z-index: 72;
3431  min-width: 300px;
3432  padding: 14px 16px;
3433  background: var(--st-material-tint-strong);
3434  -webkit-backdrop-filter: var(--st-material-regular);
3435  backdrop-filter: var(--st-material-regular);
3436  border: 1px solid var(--st-line);
3437  border-radius: var(--st-r-lg);
3438  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
3439  --st-from-y: 6px;
3440  animation: st-enter var(--st-t-control) var(--st-ease-enter) both;
3441}
3442.telepop__head {
3443  display: flex;
3444  align-items: center;
3445  gap: 9px;
3446  padding-bottom: 11px;
3447  margin-bottom: 4px;
3448  border-bottom: 1px solid var(--st-line-soft);
3449  font-size: var(--st-fs-md);
3450  font-weight: 700;
3451  color: var(--st-ink);
3452}
3453.telepop__row {
3454  display: flex;
3455  align-items: center;
3456  justify-content: space-between;
3457  gap: 24px;
3458  padding: 7px 0;
3459  font-size: var(--st-fs-sm);
3460}
3461.telepop__label {
3462  display: inline-flex;
3463  align-items: center;
3464  gap: 8px;
3465  color: var(--st-ink-muted);
3466}
3467.telepop__value {
3468  color: var(--st-ink);
3469}
3470.telepop__bar {
3471  display: flex;
3472  gap: 2px;
3473  height: 7px;
3474  margin: 8px 0 10px;
3475  border-radius: var(--st-r-pill);
3476  overflow: hidden;
3477}
3478.telepop__seg {
3479  min-width: 3px;
3480  border-radius: var(--st-r-pill);
3481}
3482.telepop__seg[data-tone='system'],
3483.telepop__dot[data-tone='system'] {
3484  background: var(--st-ink-muted);
3485}
3486.telepop__seg[data-tone='tools'],
3487.telepop__dot[data-tone='tools'] {
3488  background: var(--st-accent);
3489}
3490.telepop__seg[data-tone='messages'],
3491.telepop__dot[data-tone='messages'] {
3492  background: var(--st-info);
3493}
3494.telepop__dot {
3495  width: 9px;
3496  height: 9px;
3497  flex: none;
3498  border-radius: 50%;
3499}
3500
3501/* The hints are the box's second line, directly under the text area. */
3502.composer__hints {
3503  margin-top: 2px;
3504}
3505
3506.scopes {
3507  gap: 8px;
3508  flex-wrap: wrap;
3509  padding-top: 10px;
3510  border-top: 1px solid var(--st-line-soft);
3511}
3512
3513/* A file the model has been allowed to open. A dot in the flow of the row,
3514   quiet enough not to compete with selection. */
3515.treerow__seen {
3516  flex: none;
3517  width: 5px;
3518  height: 5px;
3519  margin-right: 6px;
3520  border-radius: 50%;
3521  background: var(--st-icon);
3522  opacity: 0.75;
3523}
3524
3525/* The monitor's resting state: what has happened, while nothing is happening. */
3526.herorest > div {
3527  min-width: 110px;
3528}
3529.herorest .eyebrow {
3530  margin: 0;
3531}
3532
3533/* Sparkline hover: a marker on the sample under the pointer, and a readout
3534   that names the value and how long ago it was. */
3535.spark {
3536  position: relative;
3537  width: 100%;
3538  cursor: crosshair;
3539}
3540.spark__readout {
3541  position: absolute;
3542  top: -6px;
3543  right: 0;
3544  padding: 2px 8px;
3545  border-radius: var(--st-r-sm);
3546  background: var(--st-surface);
3547  border: 1px solid var(--st-line);
3548  font-size: var(--st-fs-xs);
3549  color: var(--st-ink);
3550  white-space: nowrap;
3551  pointer-events: none;
3552}
3553.spark__ago {
3554  color: var(--st-ink-muted);
3555}
3556
3557/* The reason a model is recommended, stated rather than implied. */
3558.whyline {
3559  display: flex;
3560  align-items: flex-start;
3561  gap: 6px;
3562  margin-top: 8px;
3563  font-size: var(--st-fs-xs);
3564  line-height: 1.6;
3565  color: var(--st-accent-text);
3566  max-width: 62ch;
3567}
3568.whyline svg {
3569  flex: none;
3570  margin-top: 2px;
3571}
3572
3573/* A section heading row inside the parameter table. Quiet enough to read as
3574   structure rather than as a row of data. */
3575.paramgroup td {
3576  padding: 14px 14px 6px;
3577  background: var(--st-surface-2);
3578  border-bottom: 1px solid var(--st-line-soft);
3579}
3580.paramgroup .eyebrow {
3581  margin: 0;
3582  display: inline;
3583}
3584.paramgroup .xs {
3585  margin-left: 8px;
3586}
3587
3588/* Sortable column headers. The chevron only appears on the active column, so
3589   an unsorted table has no arrows competing with the data. */
3590.thsort {
3591  display: inline-flex;
3592  align-items: center;
3593  gap: 3px;
3594  padding: 0;
3595  border: 0;
3596  background: transparent;
3597  color: inherit;
3598  font: inherit;
3599  letter-spacing: inherit;
3600  text-transform: inherit;
3601  cursor: pointer;
3602}
3603.thsort:hover {
3604  color: var(--st-ink);
3605}
3606.thsort__chev {
3607  opacity: 0;
3608  transform: rotate(180deg);
3609  transition: transform var(--st-t-micro), opacity var(--st-t-micro);
3610}
3611.thsort__chev[data-active] {
3612  opacity: 0.6;
3613}
3614.thsort__chev[data-dir='asc'] {
3615  transform: rotate(0deg);
3616}
3617
3618/* ---- serving: request log filter ------------------------------------------ */
3619.servefilter {
3620  padding: 10px 14px;
3621  margin-bottom: 12px;
3622  align-items: center;
3623  flex-wrap: wrap;
3624}
3625
3626/* The rail's sections hide as a group when there is no conversation, so the
3627   empty state is not competing with five cards of zeroes. */
3628.contextpanel__sections[hidden] {
3629  display: none;
3630}
3631
3632/* ---- connection state ------------------------------------------------------ */
3633.connbar {
3634  flex: none;
3635  display: flex;
3636  align-items: center;
3637  gap: 10px;
3638  padding: 10px 28px;
3639  font-size: var(--st-fs-sm);
3640  background: var(--st-warn-tint);
3641  color: var(--st-warn-text);
3642  border-bottom: 1px solid var(--st-line);
3643}
3644.connbar[data-state='offline'] {
3645  background: var(--st-danger-tint);
3646  color: var(--st-danger-text);
3647}
3648.connbar__dot {
3649  flex: none;
3650  width: 8px;
3651  height: 8px;
3652  border-radius: 50%;
3653  background: currentColor;
3654}
3655.connbar__text {
3656  flex: 1;
3657  min-width: 0;
3658}
3659
3660/* The recommended model carries one step more weight than the rest.
3661   Restrained on purpose: it already explains itself in words, so this only has
3662   to make it findable, not to shout. An accent hairline down the leading edge
3663   and a marginally larger title, nothing more. */
3664.listrow[data-recommended] {
3665  position: relative;
3666}
3667/* `::after`, not `::before` — `.listrow::before` is the separator hairline, and
3668   taking it over would silently drop the separator above any recommended row
3669   that is not the first. It happened to be invisible because the recommended
3670   row sits at the top, where the separator is hidden anyway. */
3671.listrow[data-recommended]::after {
3672  content: '';
3673  position: absolute;
3674  left: 0;
3675  top: 10px;
3676  bottom: 10px;
3677  width: 2px;
3678  border-radius: var(--st-r-pill);
3679  background: var(--st-accent);
3680}
3681.listrow[data-recommended] .listrow__title {
3682  font-size: var(--st-fs-lg);
3683}
3684
3685/* A failed operation carries both the reason and the way out. */
3686.verror {
3687  gap: 10px;
3688  flex-wrap: wrap;
3689  padding: 8px 10px;
3690  border-radius: var(--st-r-md);
3691  background: var(--st-danger-tint);
3692}
3693
3694/* Skill scope: three answers where a switch offers two. */
3695.skillScope {
3696  flex-direction: column;
3697  align-items: flex-end;
3698  gap: 4px;
3699}
3700.skillScope__where {
3701  text-align: right;
3702}
3703
3704/* A group heading inside a flush card: the eyebrow carries the source, the
3705   right-hand figure says how much of it is switched on. */
3706.skillgroup__head {
3707  padding: 10px 16px;
3708  border-bottom: 1px solid var(--st-line-soft);
3709  background: var(--st-surface-2);
3710}
3711
3712/* ---- skill instructions ---------------------------------------------------- */
3713.skilldetail {
3714  margin-top: 10px;
3715  display: flex;
3716  flex-direction: column;
3717  gap: 12px;
3718  max-width: 640px;
3719}
3720.skilldetail__body {
3721  margin: 0;
3722  padding: 12px 14px;
3723  border-radius: var(--st-r-md);
3724  background: var(--st-surface-2);
3725  border: 1px solid var(--st-line-soft);
3726  font-size: var(--st-fs-xs);
3727  line-height: 1.65;
3728  color: var(--st-ink-soft);
3729  white-space: pre-wrap;
3730  max-height: 260px;
3731  overflow-y: auto;
3732}
3733.skilldetail__triggers {
3734  display: flex;
3735  flex-direction: column;
3736  gap: 6px;
3737}
3738
3739/* ---- settings section index ---------------------------------------------- */
3740.settingsindex {
3741  position: sticky;
3742  top: 0;
3743  z-index: 2;
3744  display: flex;
3745  align-items: center;
3746  gap: 4px;
3747  flex-wrap: wrap;
3748  margin: 0 0 12px;
3749  padding: 6px 0 10px;
3750  background: var(--st-bg);
3751}
3752.settingsindex__item {
3753  height: 28px;
3754  padding: 0 12px;
3755  border: 1px solid transparent;
3756  border-radius: var(--st-r-pill);
3757  background: transparent;
3758  color: var(--st-ink-muted);
3759  font: 500 var(--st-fs-sm) var(--st-font);
3760  cursor: pointer;
3761  transition:
3762    background var(--st-t-micro),
3763    color var(--st-t-micro),
3764    border-color var(--st-t-micro);
3765}
3766.settingsindex__item:hover {
3767  background: var(--st-surface-2);
3768  color: var(--st-ink);
3769}
3770/* Two search fields on neighbouring screens looked like different controls:
3771   Skills' had a border and a surface, this one was borderless transparent text
3772   that read as a label rather than something you can type into. Same field, same
3773   affordance — just narrower, because it shares its row with six tabs. */
3774.settingsindex__search {
3775  margin-left: auto;
3776  width: 190px;
3777  max-width: 190px;
3778  height: 32px;
3779  padding: 0 12px;
3780  border: 1px solid var(--st-line);
3781  border-radius: var(--st-r-pill);
3782  background: var(--st-surface);
3783  font-size: var(--st-fs-sm);
3784}
3785.settingsindex {
3786  flex-wrap: wrap;
3787}
3788/* A field hidden by the settings search must not leave its row behind. */
3789.settings-body .field[hidden],
3790.settings-body section[hidden] {
3791  display: none;
3792}
3793.settingsindex__item[aria-current] {
3794  background: var(--st-surface);
3795  border-color: var(--st-line);
3796  color: var(--st-ink);
3797  font-weight: 700;
3798}
3799
3800/* ---- serving: copyable endpoints and a pasteable request ------------------ */
3801.compatrow {
3802  padding: 12px 0;
3803  border-top: 1px solid var(--st-line);
3804}
3805.compatrow__label {
3806  margin-bottom: 4px;
3807}
3808/* The copy control matches the address it copies, not the kit's 42px control
3809   height — at 42px it was the tallest thing in a row whose content is one line
3810   of 12px text, and it set the row's height by itself. */
3811.compatrow .st-btn--icon {
3812  width: 30px;
3813  height: 30px;
3814  min-height: 30px;
3815}
3816/* The address is the point of the row, so it wraps rather than truncates. */
3817.compatrow__url {
3818  min-width: 0;
3819  overflow-wrap: anywhere;
3820  font-size: var(--st-fs-xs);
3821  line-height: 1.5;
3822}
3823.sample {
3824  border-top: 1px solid var(--st-line);
3825  padding-top: 12px;
3826}
3827.sample__body {
3828  margin: 0;
3829  padding: 12px 14px;
3830  border-radius: var(--st-r-md);
3831  background: var(--st-surface-2);
3832  border: 1px solid var(--st-line-soft);
3833  font-size: var(--st-fs-xs);
3834  line-height: 1.6;
3835  color: var(--st-ink-soft);
3836  white-space: pre;
3837  overflow-x: auto;
3838}
3839
3840/* ---- command palette ------------------------------------------------------ */
3841.palette__row mark {
3842  background: color-mix(in srgb, var(--st-accent) 26%, transparent);
3843  color: inherit;
3844  border-radius: 2px;
3845  padding: 0 1px;
3846}
3847.palette__keys {
3848  display: inline-flex;
3849  gap: 3px;
3850  margin-left: 8px;
3851  flex: none;
3852}
3853.palette__keys kbd,
3854.modal kbd {
3855  display: inline-flex;
3856  align-items: center;
3857  justify-content: center;
3858  min-width: 18px;
3859  height: 18px;
3860  padding: 0 4px;
3861  border-radius: var(--st-r-sm);
3862  border: 1px solid var(--st-line);
3863  background: var(--st-surface-2);
3864  font: 500 var(--st-fs-xs) var(--st-font);
3865  color: var(--st-ink-muted);
3866}
3867/* An action that changes something is not navigation, and should not read
3868   like it. */
3869.palette__row[data-danger] .navitem__text {
3870  color: var(--st-ink-soft);
3871}
3872.palette__row[data-danger] > svg {
3873  color: var(--st-danger-text);
3874}
3875
3876/* ---- context rail: reference-panel weight ---------------------------------
3877   The rail is a reference panel, not content. Five bordered, elevated cards
3878   competed with the transcript they describe, so the rail's sections drop the
3879   card chrome entirely and are separated by a hairline instead. The rule is
3880   that the quietest surface should be the one you read least; here that is the
3881   chrome around the figures, not the figures. */
3882.contextpanel .railsection {
3883  background: transparent;
3884  border: 0;
3885  border-top: 1px solid var(--st-line-soft);
3886  border-radius: 0;
3887  box-shadow: none;
3888}
3889.contextpanel .railsection:first-child {
3890  border-top: 0;
3891}
3892.contextpanel .railsection__head {
3893  padding: 10px 4px;
3894  border-radius: var(--st-r-sm);
3895}
3896.contextpanel .railsection__inner {
3897  padding: 0 4px 14px;
3898}
3899/* The panel itself keeps a surface, so the rail reads as one object rather than
3900   a stack of fragments. */
3901.contextpanel {
3902  background: var(--st-surface);
3903  border-left: 1px solid var(--st-line);
3904}
3905
3906/* ---- regressions repaired -------------------------------------------------
3907   These three classes were referenced by components but defined in no
3908   stylesheet: `.spec__sub` and `.st-toast__body` were collateral damage from an
3909   earlier "dead CSS" sweep (the sweep checked `className="..."` literals and
3910   missed them), and `.st-msg__actions` was reported as shipped without its CSS
3911   ever landing. `npm run audit` now fails on any class a component uses that no
3912   stylesheet defines, so this cannot happen quietly again. */
3913.spec__sub {
3914  margin-top: 6px;
3915  font-size: var(--st-fs-xs);
3916  color: var(--st-ink-muted);
3917}
3918.st-toast__body {
3919  margin-top: 2px;
3920  font-size: var(--st-fs-sm);
3921  color: var(--st-ink-muted);
3922  line-height: 1.5;
3923}
3924/* Jump to the newest message. Floats above the transcript, clear of the
3925   composer, and only while there is something below the fold worth reaching. */
3926.jumplatest {
3927  position: sticky;
3928  bottom: 16px;
3929  z-index: 3;
3930  /* clear of the navigation above it where it sits at the top of the transcript, and of the messages beside it */
3931  margin: 14px auto 14px;
3932  display: flex;
3933  align-items: center;
3934  gap: 4px;
3935  height: 32px;
3936  padding: 0 14px 0 10px;
3937  border: 1px solid var(--st-line);
3938  border-radius: var(--st-r-pill);
3939  background: var(--st-surface);
3940  color: var(--st-ink-soft);
3941  font: 600 var(--st-fs-sm) var(--st-font);
3942  cursor: pointer;
3943  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
3944  animation: st-enter var(--st-t-local) var(--st-ease-enter) both;
3945}
3946.jumplatest:hover {
3947  color: var(--st-ink);
3948}
3949/* A finished reply announces itself on the pill. Opacity only — a cue that
3950   moves would pull the eye off whatever the reader is actually reading. */
3951.jumplatest[data-finished] {
3952  /* One dip and back, on the longest token in the scale — a cue, not a loop. */
3953  animation: st-cue var(--st-t-choreo) var(--st-ease-in-out) both;
3954}
3955@keyframes st-cue {
3956  0%, 100% { opacity: 1; }
3957  45% { opacity: 0.4; }
3958}
3959@media (prefers-reduced-motion: reduce) {
3960  .jumplatest,
3961  .jumplatest[data-finished] {
3962    animation: none;
3963  }
3964  /* Under reduced motion the cue still has to be perceivable, so it becomes a
3965     colour change rather than a pulse. */
3966  .jumplatest[data-finished] {
3967    color: var(--st-accent-text);
3968    /* `--st-accent-line` was never a token. The declaration was dropped, so the
3969       colour change worked and the border it was meant to carry did not — a
3970       reduced-motion affordance that was half-present and looked deliberate. */
3971    border-color: var(--st-accent);
3972  }
3973}
3974
3975/* Long transcripts: skip laying out turns that are far off screen. The
3976   intrinsic size is a guess that keeps the scrollbar from jumping; it is
3977   replaced by the real height as soon as a turn is near the viewport. */
3978.st-msg {
3979  content-visibility: auto;
3980  contain-intrinsic-size: auto 120px;
3981}
3982
3983/* Per-turn actions stay out of the way until the turn is being read. */
3984.st-msg__actions {
3985  display: inline-flex;
3986  align-items: center;
3987  gap: 2px;
3988  margin-left: 4px;
3989  opacity: 0;
3990  transition: opacity var(--st-t-micro);
3991}
3992.st-msg:hover .st-msg__actions,
3993.st-msg:focus-within .st-msg__actions {
3994  opacity: 1;
3995}
3996@media (hover: none) {
3997  .st-msg__actions {
3998    opacity: 1;
3999  }
4000}
4001
4002/* An icon button that reports a pressed state (the sidebar's search toggle). */
4003.st-btn--icon.is-on {
4004  background: var(--st-surface-2);
4005  color: var(--st-ink);
4006}
4007
4008/* ==================================================== 6. system overrides ==
4009   Rules that deliberately depart from the kit. They live at the end of the
4010   sheet for one reason: an override of an *app-layer* class has to come after
4011   that class, and keeping every departure in one place means the rule is simply
4012   "if it redefines a component, it is here".
4013
4014   Each is documented where its tokens are declared, above section 1. */
4015
4016/* The toggle, rebuilt. It was a pure-white knob with a hard shadow on the loud
4017   solid accent — the same glare problem the buttons had, missed here. It now
4018   shares --st-accent-surface with the buttons so the two agree, carries a
4019   hairline so it reads on white, and its knob has a neutral shadow. */
4020.st-toggle {
4021  width: calc(44px * var(--st-ui-scale));
4022  height: calc(26px * var(--st-ui-scale));
4023  background: color-mix(in srgb, var(--st-ink) 12%, transparent);
4024  border: 1px solid var(--st-line);
4025  transition:
4026    background var(--st-t-control) var(--st-ease-standard),
4027    border-color var(--st-t-control) var(--st-ease-standard);
4028}
4029.st-toggle::after {
4030  top: calc(2px * var(--st-ui-scale));
4031  left: calc(2px * var(--st-ui-scale));
4032  width: calc(20px * var(--st-ui-scale));
4033  height: calc(20px * var(--st-ui-scale));
4034  background: var(--st-surface);
4035  box-shadow: var(--st-sh-card);
4036  transition:
4037    transform var(--st-t-control) var(--st-ease-standard),
4038    scale var(--st-t-micro) var(--st-ease-standard);
4039}
4040.st-toggle[aria-checked='true'] {
4041  background: var(--st-accent-surface);
4042  border-color: var(--st-accent-surface-edge);
4043}
4044.st-toggle[aria-checked='true']::after {
4045  transform: translateX(calc(18px * var(--st-ui-scale)));
4046}
4047.st-toggle:active::after {
4048  scale: 0.92;
4049}
4050@media (prefers-reduced-motion: reduce) {
4051  .st-toggle:active::after {
4052    scale: 1;
4053  }
4054}
4055
4056/* Press compresses the control rather than nudging it down — the platform's
4057   press response, and the only motion a button needs. */
4058.st-btn:active:not(:disabled) {
4059  transform: scale(0.97);
4060}
4061@media (prefers-reduced-motion: reduce) {
4062  .st-btn:active:not(:disabled) {
4063    transform: none;
4064  }
4065}
4066
4067/* Capsules are for controls; the kit's 8/14/20/24 scale is for surfaces. */
4068.st-btn,
4069.st-input,
4070.st-tab,
4071.navitem,
4072.navsession,
4073.slashmenu__item,
4074.treerow {
4075  border-radius: var(--st-r-pill);
4076}
4077.st-tabs {
4078  border-radius: var(--st-r-pill);
4079}
4080
4081/* Concentric corners: inner radius = outer − gap. */
4082.st-card .st-composer,
4083.st-card--flush .st-card {
4084  border-radius: var(--st-r-nested);
4085}
4086
4087/* Large accent-filled areas take a tinted material in dark mode, so the
4088   brightest object on screen is not the thing you are invited to click. */
4089.st-btn--primary {
4090  background: var(--st-accent-surface);
4091  color: var(--st-accent-surface-ink);
4092  /* A tinted fill needs an edge to read as a control on a near-white page,
4093     which is where the definition comes from now that the fill is quiet. */
4094  border: 1px solid var(--st-accent-surface-edge);
4095  box-shadow: var(--st-accent-surface-shadow), inset 0 1px 0 var(--st-specular);
4096}
4097.st-btn--primary:hover:not(:disabled) {
4098  background: var(--st-accent-surface-hover);
4099}
4100.st-msg--user .st-bubble {
4101  background: var(--st-accent-surface);
4102  color: var(--st-accent-surface-ink);
4103  white-space: pre-wrap;   /* a typed or pasted message keeps its line breaks (#3720) */
4104  overflow-wrap: anywhere;
4105}
4106
4107/* October 2026 clarity pass. App-specific extensions survive design-kit sync. */
4108.main, .main__body, .chatcol, .main__titles {
4109  min-width: 0;
4110}
4111.main__title, .h2, .h3, .h4 {
4112  font-weight: 700;
4113}
4114.main__head {
4115  min-height: 76px;
4116  height: auto;
4117  padding-block: 14px;
4118  flex: none;
4119}
4120.main__sub {
4121  overflow-wrap: anywhere;
4122}
4123.main__actions {
4124  flex-wrap: wrap;
4125  justify-content: flex-end;
4126}
4127.main__head::after {
4128  display: none;
4129}
4130.reveal {
4131  animation: none;
4132}
4133.scrim {
4134  backdrop-filter: none !important;
4135  -webkit-backdrop-filter: none !important;
4136  background: color-mix(in srgb, var(--st-ink) 28%, transparent);
4137}
4138textarea.st-input {
4139  border-radius: 20px;
4140  padding: 16px;
4141  min-height: 120px;
4142  line-height: 1.55;
4143}
4144.st-tab[aria-checked='true'] {
4145  background: var(--st-surface);
4146  color: var(--st-ink);
4147  box-shadow: var(--st-sh-card);
4148}
4149.st-input, .st-select, .field__control {
4150  max-width: 100%;
4151}
4152.st-card {
4153  min-width: 0;
4154}
4155.row {
4156  min-width: 0;
4157}
4158.section-toolbar, .parameter-toolbar {
4159  display: flex;
4160  align-items: center;
4161  justify-content: space-between;
4162  gap: 16px;
4163  flex-wrap: wrap;
4164}
4165.parameter-toolbar .st-input {
4166  flex: 1;
4167  min-width: 180px;
4168}
4169.tuning-grid {
4170  display: grid;
4171  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
4172  gap: 32px;
4173}
4174.tuning-impact {
4175  padding: 16px 0;
4176}
4177.settings-group-label {
4178  padding: 18px 24px 10px;
4179  font-size: var(--st-fs-sm);
4180  font-weight: 700;
4181  color: var(--st-ink-muted);
4182}
4183.summary-list {
4184  margin: 16px 0;
4185}
4186.summary-list > div {
4187  display: flex;
4188  justify-content: space-between;
4189  gap: 20px;
4190  padding-block: 12px;
4191  border-bottom: 1px solid var(--st-line);
4192}
4193.summary-list dt {
4194  color: var(--st-ink-muted);
4195}
4196.summary-list dd {
4197  margin: 0;
4198  text-align: right;
4199  font-weight: 700;
4200}
4201.parameter-group {
4202  border-top: 1px solid var(--st-line);
4203  padding-top: 20px;
4204}
4205.parameter-row {
4206  display: grid;
4207  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
4208  align-items: start;
4209  gap: 28px;
4210  padding-block: 16px;
4211  border-bottom: 1px solid var(--st-line);
4212}
4213.parameter-key {
4214  display: block;
4215  margin-block: 5px;
4216  color: var(--st-ink-muted);
4217  font-size: 12px;
4218}
4219.parameter-control {
4220  display: flex;
4221  gap: 8px;
4222  align-items: center;
4223  justify-content: flex-end;
4224}
4225.parameter-control .st-input {
4226  width: 150px;
4227}
4228.config-editor {
4229  height: 400px;
4230  width: 100%;
4231  font-family: var(--st-font-mono, monospace);
4232  font-size: 13px;
4233  resize: vertical;
4234}
4235.config-savebar {
4236  position: sticky;
4237  bottom: 0;
4238  display: flex;
4239  justify-content: space-between;
4240  flex-wrap: wrap;
4241  gap: 12px;
4242  padding: 16px;
4243  border: 1px solid var(--st-line);
4244  border-radius: 20px;
4245  background: var(--st-material-tint-strong);
4246  backdrop-filter: var(--st-material-thin);
4247  z-index: 3;
4248}
4249.config-savebar > p {
4250  width: 100%;
4251  margin: 0;
4252}
4253.validation-list > div {
4254  display: flex;
4255  gap: 8px;
4256  padding: 10px 0;
4257}
4258.validation-list [data-tone='error'] {
4259  color: var(--st-danger-text);
4260}
4261.check-label {
4262  display: flex;
4263  align-items: center;
4264  gap: 8px;
4265  white-space: nowrap;
4266}
4267.mobile-bar {
4268  display: none;
4269}
4270.nav-new {
4271  display: flex;
4272  align-items: center;
4273  justify-content: center;
4274  gap: 9px;
4275  width: 100%;
4276  min-height: 40px;
4277  border: 1px solid var(--st-line);
4278  border-radius: 14px;
4279  background: var(--st-surface);
4280  color: var(--st-ink);
4281  font-weight: 700;
4282}
4283.nav-search {
4284  margin-block: 12px;
4285  width: 100%;
4286}
4287.nav-search input {
4288  width: 100%;
4289}
4290.nav-list-label {
4291  padding: 10px 12px 4px;
4292  font-size: 11px;
4293  color: var(--st-ink-muted);
4294}
4295.session-overflow {
4296  flex: none;
4297}
4298.ws-view {
4299  flex: none;
4300}
4301.recent-chat {
4302  display: flex;
4303  justify-content: space-between;
4304  width: 100%;
4305  padding: 14px;
4306  border: 0;
4307  border-bottom: 1px solid var(--st-line);
4308  background: transparent;
4309  color: var(--st-ink);
4310  text-align: left;
4311  gap: 14px;
4312}
4313.nav-scrim {
4314  position: fixed;
4315  inset: 0;
4316  z-index: 19;
4317  border: 0;
4318  background: color-mix(in srgb, var(--st-ink) 28%, transparent);
4319}
4320.app[data-rail='true'] .nav-new {
4321  width: 40px;
4322}
4323.app[data-rail='true'] .nav-new span {
4324  display: none;
4325}
4326.dialog-layer {
4327  position: fixed;
4328  inset: 0;
4329  z-index: 160;
4330  display: grid;
4331  place-items: center;
4332  padding: 24px;
4333}
4334.dialog-scrim {
4335  position: absolute;
4336  inset: 0;
4337  border: 0;
4338  background: color-mix(in srgb, var(--st-ink) 28%, transparent);
4339}
4340.dialog-surface {
4341  position: relative;
4342  display: flex;
4343  flex-direction: column;
4344  width: min(560px, 100%);
4345  max-height: calc(100dvh - 48px);
4346  border: 1px solid var(--st-line);
4347  border-radius: 24px;
4348  background: var(--st-surface);
4349  color: var(--st-ink);
4350  box-shadow: var(--st-sh-pop);
4351  overflow: hidden;
4352  animation: st-enter var(--st-t-local) var(--st-ease-enter);
4353}
4354.dialog-surface--sheet {
4355  width: min(680px, 100%);
4356}
4357.dialog-head {
4358  display: flex;
4359  align-items: center;
4360  justify-content: space-between;
4361  gap: 16px;
4362  padding: 20px 24px;
4363  border-bottom: 1px solid var(--st-line);
4364}
4365.dialog-head h2 {
4366  margin: 0;
4367  font-size: var(--st-fs-lg);
4368  font-weight: 700;
4369}
4370.dialog-body {
4371  padding: 24px;
4372  overflow: auto;
4373  min-height: 0;
4374}
4375.dialog-actions {
4376  display: flex;
4377  justify-content: flex-end;
4378  flex-wrap: wrap;
4379  gap: 10px;
4380  padding: 16px 24px;
4381  border-top: 1px solid var(--st-line);
4382}
4383.dialog-body > :first-child {
4384  margin-top: 0;
4385}
4386.dialog-body > :last-child {
4387  margin-bottom: 0;
4388}
4389.dialog-body .contextpanel {
4390  display: flex;
4391  border: 0;
4392  width: 100%;
4393  position: static;
4394}
4395.dialog-body .contextpanel__head {
4396  display: none;
4397}
4398.dialog-body .contextpanel__body {
4399  padding: 0;
4400}
4401.app-recovery {
4402  max-width: 560px;
4403  margin: 12vh auto;
4404  padding: 24px;
4405}
4406.chatsplit, .chatsplit[data-context='true'] {
4407  grid-template-columns: minmax(0, 1fr);
4408}
4409.chatsplit[data-inline-context='true'] {
4410  grid-template-columns: minmax(0, 1fr) 320px;
4411}
4412.contextpanel {
4413  display: flex;
4414}
4415.chatsplit:not([data-inline-context='true']) > .contextpanel {
4416  display: none;
4417}
4418.st-msg--assistant .st-bubble {
4419  background: transparent;
4420  box-shadow: none;
4421  padding-inline: 0;
4422}
4423.message-overflow {
4424  position: relative;
4425}
4426.message-overflow summary {
4427  cursor: pointer;
4428  list-style: none;
4429  padding: 4px 8px;
4430}
4431.message-overflow[open] > div {
4432  position: absolute;
4433  right: 0;
4434  bottom: 30px;
4435  display: flex;
4436  gap: 6px;
4437  padding: 8px;
4438  background: var(--st-surface);
4439  border: 1px solid var(--st-line);
4440  border-radius: 14px;
4441  box-shadow: var(--st-sh-pop);
4442  z-index: 5;
4443}
4444.md-table-wrap {
4445  overflow: auto;
4446  margin-block: 16px;
4447}
4448.md-table {
4449  width: 100%;
4450  border-collapse: collapse;
4451  font-size: var(--st-fs-sm);
4452}
4453.md-table th, .md-table td {
4454  padding: 10px;
4455  border-bottom: 1px solid var(--st-line);
4456  text-align: left;
4457}
4458.st-bubble h2, .st-bubble h3, .st-bubble h4 {
4459  font-size: var(--st-fs-lg);
4460  margin-block: 1.4em .6em;
4461  font-weight: 700;
4462}
4463.st-bubble a {
4464  color: var(--st-accent);
4465  text-decoration: underline;
4466}
4467.snapshot-view {
4468  position: fixed;
4469  inset: 0;
4470  z-index: 80;
4471  background: var(--st-bg);
4472  overflow: auto;
4473  padding: 40px;
4474}
4475.snapshot-view > .stack {
4476  max-width: 1280px;
4477  margin: auto;
4478}
4479.overview-metrics {
4480  display: grid;
4481  grid-template-columns: repeat(4, minmax(0, 1fr));
4482  gap: 16px;
4483}
4484.disclosure {
4485  border-top: 1px solid var(--st-line);
4486  padding-block: 18px;
4487}
4488.disclosure > summary {
4489  cursor: pointer;
4490  font-weight: 700;
4491}
4492.disclosure > div {
4493  margin-top: 18px;
4494}
4495.empty-inline {
4496  padding: 24px;
4497  color: var(--st-ink-muted);
4498}
4499.settings-section {
4500  scroll-margin-top: 90px;
4501}
4502@media (max-width: 1279px) {
4503  .app {
4504  grid-template-columns: 64px minmax(0, 1fr);
4505}
4506.app[data-nav-open='true'] {
4507  grid-template-columns: 64px minmax(0, 1fr);
4508}
4509.app[data-nav-open='true'] > .nav {
4510  position: fixed;
4511  left: 0;
4512  top: 0;
4513  bottom: 0;
4514  width: 280px;
4515  z-index: 20;
4516  background: var(--st-surface);
4517  box-shadow: var(--st-sh-pop);
4518}
4519.nav[data-overlay='true'] {
4520  position: fixed;
4521  left: 0;
4522  top: 0;
4523  bottom: 0;
4524  width: 280px;
4525  z-index: 20;
4526}
4527
4528}
4529@media (max-width: 900px) {
4530  .tuning-grid {
4531  grid-template-columns: minmax(0, 1fr);
4532  gap: 16px;
4533}
4534.overview-metrics {
4535  grid-template-columns: repeat(2, minmax(0, 1fr));
4536}
4537.main__body {
4538  padding: 24px;
4539}
4540
4541}
4542@media (max-width: 767px) {
4543  .app, .app[data-nav-open='true'] {
4544  grid-template-columns: minmax(0, 1fr);
4545}
4546.app:not([data-nav-open='true']) > .nav {
4547  display: none;
4548}
4549.mobile-bar {
4550  display: flex;
4551  align-items: center;
4552  gap: 12px;
4553  padding: 8px 16px;
4554  border-bottom: 1px solid var(--st-line);
4555  background: var(--st-material-tint);
4556  backdrop-filter: var(--st-material-thin);
4557  flex: none;
4558}
4559.main__head {
4560  padding: 16px;
4561  gap: 12px;
4562  align-items: flex-start;
4563  flex-wrap: wrap;
4564  position: relative;
4565  top: auto;
4566}
4567.main__title {
4568  font-size: 22px;
4569}
4570.main__body {
4571  padding: 20px 16px;
4572}
4573.main__actions {
4574  margin-left: auto;
4575}
4576.main__sub {
4577  font-size: 12px;
4578}
4579.grid--2, .grid--3 {
4580  grid-template-columns: minmax(0, 1fr);
4581}
4582.parameter-row {
4583  grid-template-columns: minmax(0, 1fr);
4584  gap: 12px;
4585}
4586.parameter-control {
4587  justify-content: flex-start;
4588}
4589.parameter-control .st-input {
4590  width: 100%;
4591}
4592.config-savebar {
4593  position: static;
4594  padding: 12px;
4595}
4596.config-savebar > .row {
4597  flex-wrap: wrap;
4598}
4599.dialog-layer {
4600  padding: 12px;
4601}
4602.dialog-surface {
4603  max-height: calc(100dvh - 24px);
4604}
4605.dialog-head, .dialog-body, .dialog-actions {
4606  padding: 16px;
4607}
4608.composer {
4609  padding-inline: 16px;
4610}
4611.composer__hints {
4612  font-size: var(--st-fs-xs);
4613}
4614.chat {
4615  padding: 20px 16px;
4616}
4617.st-field {
4618  flex-wrap: wrap;
4619  gap: 12px;
4620}
4621.st-field__label {
4622  min-width: 0;
4623  width: 100%;
4624}
4625.listrow {
4626  flex-wrap: wrap;
4627  gap: 14px;
4628}
4629.listrow__main {
4630  width: 100%;
4631}
4632.listrow__actions {
4633  margin-left: auto;
4634}
4635.snapshot-view {
4636  padding: 20px;
4637}
4638.settings-index {
4639  top: 0;
4640}
4641.focusbar__keys {
4642  display: none;
4643}
4644.app[data-focus='true'] .mobile-bar {
4645  display: none;
4646}
4647
4648}
4649.field__label {
4650  font-weight: 700;
4651}
4652.settings-section {
4653  scroll-margin-top: 120px;
4654}
4655.reading-preview {
4656  padding: 20px;
4657  margin-block: 16px;
4658  border: 1px solid var(--st-line);
4659  border-radius: 20px;
4660  background: var(--st-surface);
4661}
4662.reading-preview .brand {
4663  margin-bottom: 8px;
4664}
4665.settings-about-brand {
4666  margin-bottom: 16px;
4667}
4668.skill-controls {
4669  display: flex;
4670  flex-direction: column;
4671  gap: 12px;
4672  flex: none;
4673  max-width: 280px;
4674}
4675.skill-controls > .row {
4676  justify-content: flex-end;
4677}
4678.model-details {
4679  margin-top: 10px;
4680  font-size: var(--st-fs-xs);
4681  color: var(--st-ink-muted);
4682}
4683.model-details > summary {
4684  cursor: pointer;
4685}
4686.section-toolbar > .st-input {
4687  max-width: 280px;
4688}
4689.nav-search {
4690  display: flex;
4691  align-items: center;
4692  gap: 8px;
4693  border: 1px solid var(--st-line);
4694  border-radius: var(--st-r-pill);
4695  padding-inline: 12px;
4696}
4697.nav-search input {
4698  padding: 0;
4699  min-width: 0;
4700}
4701.ws-view {
4702  border: 0;
4703  background: transparent;
4704  color: var(--st-ink-muted);
4705  border-radius: 8px;
4706  padding: 6px;
4707}
4708.st-msg--assistant .st-bubble {
4709  border: 0;
4710}
4711.st-msg__actions {
4712  opacity: 1;
4713}
4714.select__option[aria-disabled='true'] {
4715  opacity: .45;
4716  cursor: not-allowed;
4717}
4718[data-contrast='increased'] {
4719  --st-ink-muted: var(--st-ink-soft);
4720  --st-line-soft: var(--st-line);
4721}
4722[data-theme='light'][data-contrast='increased'] {
4723  --st-ink-soft: var(--st-ink);
4724  --st-line: var(--st-ink-muted);
4725}
4726[data-theme='dark'][data-contrast='increased'] {
4727  --st-ink-soft: var(--st-ink);
4728  --st-line: var(--st-ink-muted);
4729}
4730@media (max-width: 767px) {
4731  .field {
4732  flex-wrap: wrap;
4733  gap: 12px;
4734  padding: 16px;
4735}
4736.field__main {
4737  flex-basis: 100%;
4738}
4739.field__control, .field__control--wide {
4740  width: 100%;
4741  justify-content: flex-start;
4742}
4743.field__control .select {
4744  width: 100%;
4745}
4746.settingsindex {
4747  position: static;
4748}
4749.settings-section {
4750  scroll-margin-top: 16px;
4751}
4752.settingsindex__search {
4753  width: 100%;
4754  max-width: none;
4755  margin: 10px 0 0;
4756}
4757.skill-controls {
4758  max-width: 100%;
4759  width: 100%;
4760}
4761.skill-controls > .row {
4762  justify-content: flex-start;
4763}
4764.summary-list > div {
4765  flex-wrap: wrap;
4766  gap: 8px;
4767}
4768.summary-list dd {
4769  text-align: left;
4770  overflow-wrap: anywhere;
4771}
4772.setupmodal {
4773  padding: 12px;
4774}
4775.setupmodal__surface {
4776  max-height: calc(100dvh - 24px);
4777}
4778.setup__inner {
4779  padding: 24px 16px;
4780}
4781.setup__stage {
4782  margin-top: 24px;
4783}
4784.steps {
4785  gap: 6px;
4786  flex-wrap: wrap;
4787}
4788.step {
4789  font-size: 11px;
4790}
4791
4792}
4793.chatsplit[data-inline-context='true'] .contextpanel, .dialog-body .contextpanel {
4794  opacity: 1;
4795  visibility: visible;
4796}
4797.dialog-surface {
4798  z-index: 1;
4799}
4800.dialog-body .contextpanel {
4801  height: auto;
4802}
4803.dialog-body .contextpanel__body {
4804  overflow: visible;
4805}
4806@media (max-width: 767px) {
4807  .overview-metrics {
4808    grid-template-columns: minmax(0, 1fr);
4809  }
4810}
4811@media (max-width: 767px) {
4812  .app[data-layout='mobile'], .app[data-layout='mobile'][data-nav-open='true'] {
4813    grid-template-columns: minmax(0, 1fr);
4814  }
4815  .app[data-layout='mobile'] > .main {
4816    grid-column: 1;
4817  }
4818}
4819textarea.config-editor.st-input {
4820  height: 400px;
4821  min-height: 240px;
4822}
4823.app[data-focus='true'] .chat__inner > .st-msg {
4824  opacity: 1;
4825}
4826
4827.nav-new.st-btn--primary {
4828  background: var(--st-accent-surface);
4829  color: var(--st-accent-surface-ink);
4830  border-color: var(--st-accent-surface-edge);
4831}
4832
4833.steps-current {
4834  display: none;
4835}
4836@media (max-width: 600px) {
4837  .steps-current {
4838    display: block;
4839    margin-bottom: 8px;
4840  }
4841  .setup-progress .step {
4842    justify-content: center;
4843    padding: 10px;
4844    min-width: 0;
4845  }
4846  .setup-progress .step > span:not(.step__n) {
4847    display: none;
4848  }
4849}
4850
4851.response-stats {
4852  padding: 8px;
4853  line-height: 1.5;
4854  overflow-wrap: anywhere;
4855}
4856
4857.connection-details {
4858  flex-basis: 100%;
4859  margin-inline-start: 24px;
4860}
4861.connectionbar {
4862  flex-wrap: wrap;
4863}
4864
4865/* Engine / models / onboarding: tactile controls, opaque information surfaces. */
4866.eyebrow {
4867  display: block;
4868  color: var(--st-ink-muted);
4869  font-size: var(--st-fs-xs);
4870  font-weight: 700;
4871  letter-spacing: .1em;
4872  margin-bottom: 8px;
4873}
4874.demo-strip {
4875  display: flex;
4876  align-items: center;
4877  gap: 8px;
4878  color: var(--st-ink-muted);
4879  font-size: var(--st-fs-sm);
4880  padding: 12px 0;
4881}
4882.instrument-layout {
4883  display: grid;
4884  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
4885  gap: 32px;
4886  align-items: start;
4887}
4888.instrument-controls {
4889  min-width: 0;
4890}
4891.instrument-heading {
4892  margin: 8px 0 24px;
4893}
4894.instrument-heading .h3 {
4895  font-size: 24px;
4896  line-height: 1.25;
4897  margin-bottom: 12px;
4898}
4899.tuning-dials {
4900  display: grid;
4901  grid-template-columns: repeat(2, minmax(0, 1fr));
4902  gap: 24px;
4903  margin-bottom: 24px;
4904}
4905.tactile-control {
4906  min-width: 0;
4907  --dial-tone: var(--st-accent-text);
4908}
4909.tactile-control[data-tone='info'] {
4910  --dial-tone: var(--st-info-text);
4911}
4912.dial-reset {
4913  color: var(--st-ink-muted);
4914  font: inherit;
4915  font-size: var(--st-fs-xs);
4916  border: 0;
4917  background: transparent;
4918  min-height: 40px;
4919  cursor: pointer;
4920  border-radius: var(--st-r-pill);
4921  padding: 0 8px;
4922}
4923.dial-reset:disabled {
4924  opacity: .5;
4925  cursor: default;
4926}
4927.dial {
4928  position: relative;
4929  width: min(100%, 232px);
4930  aspect-ratio: 1;
4931  margin: 8px auto 0;
4932  border-radius: 50%;
4933  cursor: ns-resize;
4934  touch-action: none;
4935  user-select: none;
4936}
4937.dial svg {
4938  display: block;
4939  width: 100%;
4940  height: 100%;
4941  overflow: visible;
4942}
4943.dial-track, .dial-fill {
4944  fill: none;
4945  stroke-width: 8;
4946  stroke-linecap: round;
4947}
4948.dial-track {
4949  stroke: var(--st-line);
4950}
4951.dial-fill {
4952  stroke: var(--dial-tone);
4953  transition: stroke-dasharray var(--st-t-local) var(--st-ease-standard);
4954}
4955.dial-face {
4956  fill: var(--st-surface);
4957  stroke: var(--st-line);
4958  stroke-width: 1;
4959}
4960.dial-detent {
4961  stroke: var(--st-ink-muted);
4962  stroke-width: 1.5;
4963  stroke-linecap: round;
4964}
4965.dial-detent--recommended {
4966  stroke: var(--dial-tone);
4967  stroke-width: 3;
4968}
4969.dial-saved {
4970  fill: var(--st-surface);
4971  stroke: var(--st-ink-muted);
4972  stroke-width: 2;
4973}
4974.dial-pointer {
4975  transform-origin: 110px 110px;
4976  transition: transform var(--st-t-local) var(--st-ease-spring);
4977  stroke: var(--dial-tone);
4978  stroke-width: 4;
4979  stroke-linecap: round;
4980}
4981.dial[data-dragging='true'] .dial-pointer, .dial[data-dragging='true'] .dial-fill {
4982  transition: none;
4983}
4984.dial-value {
4985  position: absolute;
4986  inset: 36% 15% auto;
4987  text-align: center;
4988  pointer-events: none;
4989}
4990.dial-value strong {
4991  display: block;
4992  font-size: 32px;
4993  line-height: 1.2;
4994  font-weight: 700;
4995  font-variant-numeric: tabular-nums;
4996}
4997.dial-value span {
4998  display: block;
4999  margin-top: 6px;
5000  font-size: 11px;
5001  color: var(--st-ink-muted);
5002}
5003.dial-caption {
5004  font-size: 11px;
5005  color: var(--st-ink-muted);
5006  text-align: center;
5007  margin: -8px 0 16px;
5008}
5009.dial-entry {
5010  display: flex;
5011  align-items: center;
5012  justify-content: space-between;
5013  gap: 12px;
5014  font-size: var(--st-fs-xs);
5015  color: var(--st-ink-muted);
5016  margin-bottom: 12px;
5017}
5018.dial-entry input {
5019  width: 96px;
5020  min-width: 0;
5021  text-align: center;
5022  font-variant-numeric: tabular-nums;
5023}
5024.batch-auto {
5025  margin-top: 12px;
5026  font-size: var(--st-fs-xs);
5027}
5028.performance-preview {
5029  min-width: 0;
5030  background: var(--st-surface);
5031  border: 1px solid var(--st-line);
5032  border-radius: var(--st-r-xl);
5033  padding: 24px;
5034  display: grid;
5035  gap: 24px;
5036}
5037.performance-preview .select {
5038  width: 100%;
5039}
5040.speed-pair {
5041  display: grid;
5042  grid-template-columns: repeat(2, minmax(0, 1fr));
5043  gap: 16px;
5044}
5045.speed-pair > div {
5046  display: flex;
5047  flex-direction: column;
5048  gap: 8px;
5049  min-width: 0;
5050  border-top: 3px solid var(--st-accent);
5051  padding-top: 12px;
5052}
5053.speed-pair > div[data-tone='info'] {
5054  border-color: var(--st-info);
5055}
5056.speed-number {
5057  font-size: 30px;
5058  line-height: 1.2;
5059  font-weight: 700;
5060  font-variant-numeric: tabular-nums;
5061}
5062.speed-empty {
5063  font-size: 16px;
5064}
5065.experience-path {
5066  list-style: none;
5067  display: grid;
5068  grid-template-columns: repeat(3, minmax(0, 1fr));
5069  gap: 12px;
5070  padding: 0;
5071  margin: 0;
5072}
5073.experience-path li {
5074  display: flex;
5075  flex-direction: column;
5076  gap: 8px;
5077  color: var(--st-ink-muted);
5078  font-size: 11px;
5079}
5080.experience-path strong {
5081  display: block;
5082  margin-top: 4px;
5083  color: var(--st-ink);
5084  font-weight: 500;
5085  font-size: 12px;
5086}
5087.memory-budget {
5088  display: grid;
5089  gap: 12px;
5090  min-width: 0;
5091}
5092.memory-summary {
5093  display: flex;
5094  align-items: baseline;
5095  justify-content: space-between;
5096  gap: 12px;
5097  flex-wrap: wrap;
5098}
5099.memory-summary > strong {
5100  font-size: 24px;
5101  font-weight: 700;
5102  font-variant-numeric: tabular-nums;
5103}
5104.memory-summary small, .memory-summary > span {
5105  color: var(--st-ink-muted);
5106  font-size: 12px;
5107  font-weight: 400;
5108}
5109.memory-strip {
5110  display: flex;
5111  height: 12px;
5112  border-radius: var(--st-r-pill);
5113  overflow: hidden;
5114  gap: 3px;
5115  background: var(--st-surface-2);
5116}
5117.memory-strip span {
5118  min-width: 0;
5119}
5120.memory-legend {
5121  display: flex;
5122  flex-wrap: wrap;
5123  gap: 8px 12px;
5124  color: var(--st-ink-muted);
5125  font-size: 11px;
5126}
5127.memory-legend span {
5128  display: flex;
5129  align-items: center;
5130  gap: 4px;
5131}
5132.memory-legend i {
5133  width: 6px;
5134  height: 6px;
5135  border-radius: 50%;
5136}
5137.memory-strip [data-part='weights'], .memory-legend [data-part='weights'] { background: var(--st-accent); }
5138.memory-strip [data-part='cache'], .memory-legend [data-part='cache'] { background: var(--st-info); }
5139.memory-strip [data-part='runtime'], .memory-legend [data-part='runtime'] { background: var(--st-ink-muted); }
5140.memory-strip [data-part='free'], .memory-legend [data-part='free'] { background: var(--st-line); }
5141.impact-sentence {
5142  padding: 12px 0;
5143  border-top: 1px solid var(--st-line);
5144  border-bottom: 1px solid var(--st-line);
5145  font-size: 13px;
5146  line-height: 1.5;
5147  min-height: 48px;
5148}
5149.evidence-details {
5150  font-size: 12px;
5151  color: var(--st-ink-muted);
5152}
5153.evidence-details summary {
5154  cursor: pointer;
5155  min-height: 32px;
5156  color: var(--st-ink);
5157}
5158.evidence-details p {
5159  margin: 8px 0;
5160  overflow-wrap: anywhere;
5161}
5162.test-stages {
5163  list-style: none;
5164  padding: 0;
5165  margin: 16px 0;
5166  display: grid;
5167  gap: 16px;
5168}
5169.test-stages li {
5170  display: flex;
5171  align-items: center;
5172  gap: 16px;
5173  color: var(--st-ink-muted);
5174}
5175.test-stages li > span {
5176  width: 32px;
5177  height: 32px;
5178  display: grid;
5179  place-items: center;
5180  border: 1px solid var(--st-line);
5181  border-radius: 50%;
5182  font-size: 12px;
5183}
5184.test-stages li[data-state='done'] { color: var(--st-accent-text); }
5185.test-stages li[data-state='active'] { color: var(--st-ink); font-weight: 700; }
5186.test-stages li[data-state='active'] > span { background: var(--st-info-tint); border-color: var(--st-info); color: var(--st-info-text); }
5187.test-stages li[data-state='done'] > span { background: var(--st-accent-tint); border-color: var(--st-accent); }
5188.running-model {
5189  display: flex;
5190  align-items: center;
5191  gap: 20px;
5192  border-bottom: 1px solid var(--st-line);
5193  padding: 0 0 32px;
5194}
5195.running-model > div:first-of-type {
5196  flex: 1;
5197  min-width: 0;
5198  overflow-wrap: anywhere;
5199}
5200.running-model-icon {
5201  display: grid;
5202  place-items: center;
5203  width: 56px;
5204  height: 56px;
5205  flex-shrink: 0;
5206  border: 1px solid var(--st-line);
5207  border-radius: var(--st-r-md);
5208  color: var(--st-accent-text);
5209}
5210.recommendation-grid, .profile-choice {
5211  display: grid;
5212  grid-template-columns: repeat(3, minmax(0, 1fr));
5213  gap: 16px;
5214}
5215.recommendation-card {
5216  background: var(--st-surface);
5217  border: 1px solid var(--st-line);
5218  border-radius: var(--st-r-xl);
5219  padding: 24px;
5220  display: flex;
5221  flex-direction: column;
5222  gap: 12px;
5223  min-width: 0;
5224}
5225.recommendation-card[data-selected='true'] {
5226  border-color: var(--st-accent);
5227}
5228.recommendation-profile {
5229  display: inline-flex;
5230  align-items: center;
5231  gap: 8px;
5232  font-weight: 700;
5233}
5234.recommendation-purpose {
5235  min-height: 40px;
5236}
5237.recommendation-name {
5238  min-height: 72px;
5239  overflow-wrap: anywhere;
5240}
5241.recommendation-name h3 { margin: 0; }
5242.recommendation-name code {
5243  display: inline-block;
5244  margin-top: 8px;
5245  color: var(--st-ink-muted);
5246  font-size: 12px;
5247}
5248.recommendation-stat > strong {
5249  font-size: 30px;
5250  font-weight: 700;
5251  font-variant-numeric: tabular-nums;
5252}
5253.recommendation-stat > span {
5254  margin-left: 6px;
5255  font-size: 12px;
5256  color: var(--st-ink-muted);
5257}
5258.recommendation-stat > p { margin-top: 4px; }
5259.recommendation-facts {
5260  display: grid;
5261  gap: 8px;
5262}
5263.recommendation-facts > span {
5264  display: flex;
5265  justify-content: space-between;
5266  flex-wrap: wrap;
5267  gap: 8px;
5268  font-size: 12px;
5269  color: var(--st-ink-muted);
5270}
5271.recommendation-facts b { color: var(--st-ink); font-weight: 500; }
5272.recommendation-action { margin-top: auto; }
5273.recommendation-empty {
5274  display: flex;
5275  flex: 1;
5276  flex-direction: column;
5277  justify-content: center;
5278  gap: 16px;
5279  padding: 32px 0;
5280}
5281.recommendation-update {
5282  display: flex;
5283  align-items: center;
5284  justify-content: space-between;
5285  gap: 16px;
5286  padding: 12px 16px;
5287  background: var(--st-info-tint);
5288  color: var(--st-info-text);
5289  border-radius: var(--st-r-md);
5290  font-size: 13px;
5291}
5292.profile-option {
5293  position: relative;
5294  font: inherit;
5295  display: flex;
5296  flex-direction: column;
5297  align-items: flex-start;
5298  gap: 12px;
5299  background: var(--st-surface);
5300  color: var(--st-ink);
5301  border: 1px solid var(--st-line);
5302  border-radius: var(--st-r-lg);
5303  padding: 20px;
5304  cursor: pointer;
5305  text-align: left;
5306  transition: border-color var(--st-t-control) var(--st-ease-standard), background-color var(--st-t-control) var(--st-ease-standard);
5307}
5308.profile-option[aria-checked='true'] {
5309  border-color: var(--st-accent);
5310  background: var(--st-accent-tint);
5311}
5312.profile-option > span { font-size: 12px; color: var(--st-ink-muted); }
5313.profile-option > svg:last-child:not(:first-child) { position: absolute; top: 20px; right: 16px; color: var(--st-accent-text); }
5314.catalog-toolbar {
5315  display: grid;
5316  grid-template-columns: auto minmax(180px, 1fr) auto;
5317  align-items: center;
5318  gap: 16px;
5319}
5320.catalog-filters {
5321  display: flex;
5322  flex-wrap: wrap;
5323  gap: 12px;
5324  padding: 16px 0;
5325}
5326.catalog-filters .select { width: auto; max-width: 100%; }
5327.model-browser { display: grid; gap: 16px; min-width: 0; }
5328.model-family {
5329  border: 1px solid var(--st-line);
5330  border-radius: var(--st-r-lg);
5331  overflow: hidden;
5332  background: var(--st-surface);
5333}
5334.family-toggle {
5335  display: flex;
5336  align-items: center;
5337  gap: 16px;
5338  width: 100%;
5339  text-align: left;
5340  padding: 20px 24px;
5341  border: 0;
5342  background: transparent;
5343  color: var(--st-ink);
5344  font: inherit;
5345  cursor: pointer;
5346}
5347.family-toggle > span:first-of-type { flex: 1; min-width: 0; }
5348.family-toggle strong { display: block; font-size: 18px; font-weight: 700; }
5349.family-toggle small { display: block; margin-top: 4px; color: var(--st-ink-muted); font-size: 12px; }
5350.family-count { font-size: 12px; color: var(--st-ink-muted); }
5351.family-toggle[aria-expanded='true'] > svg:last-child { transform: rotate(180deg); }
5352.model-version { padding: 24px; border-top: 1px solid var(--st-line); }
5353.model-version .h4 { overflow-wrap: anywhere; }
5354.variant-row {
5355  display: grid;
5356  grid-template-columns: minmax(100px, 1fr) minmax(65px, .6fr) minmax(90px, .7fr) minmax(150px, 1.1fr) auto;
5357  align-items: center;
5358  gap: 16px;
5359  padding: 20px 0;
5360  border-bottom: 1px solid var(--st-line);
5361}
5362.variant-row:last-of-type { border-bottom: 0; }
5363.variant-identity, .variant-fact { display: grid; gap: 4px; overflow-wrap: anywhere; }
5364.variant-fact > span, .variant-fact > small { font-size: 11px; color: var(--st-ink-muted); }
5365.variant-fact > strong, .variant-identity > strong { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
5366.variant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
5367.variant-actions .check-label { font-size: 12px; }
5368.compare-tray { position: sticky; bottom: 12px; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); padding: 12px 16px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; z-index: 2; }
5369.compare-tray > span { margin-right: auto; }
5370.variant-comparison { display: grid; gap: 24px; }
5371.variant-comparison > section { padding-top: 16px; border-top: 1px solid var(--st-line); }
5372.variant-comparison .performance-preview { margin: 16px 0; }
5373.download-activity { display: grid; gap: 16px; padding: 20px 24px; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); }
5374.download-activity-row { display: grid; gap: 12px; }
5375.setup-redesign .setup__stage { margin-top: 24px; }
5376.setup-headline { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
5377.setup-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--st-line); padding-top: 24px; margin-top: 8px; }
5378.setup-actions > :first-child:not(:last-child) { margin-right: auto; }
5379.computer-capacity { padding: 24px; border: 1px solid var(--st-line); border-radius: var(--st-r-lg); display: grid; justify-items: center; gap: 16px; }
5380.computer-capacity > svg { color: var(--st-accent-text); }
5381.computer-capacity > strong { display: flex; align-items: baseline; gap: 8px; font-size: 40px; font-weight: 700; }
5382.computer-capacity small { font-size: 14px; font-weight: 500; color: var(--st-ink-muted); }
5383.capacity-blocks { display: flex; gap: 4px; height: 32px; width: min(100%, 440px); }
5384.capacity-blocks span { flex: 1; background: var(--st-line); border-radius: 2px; }
5385.capacity-blocks [data-used='true'] { background: var(--st-accent); }
5386.computer-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
5387.computer-specs dt { font-size: 12px; color: var(--st-ink-muted); margin-bottom: 6px; }
5388.computer-specs dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
5389.setup-recommendation .recommendation-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
5390.setup-recommendation .recommendation-purpose { min-height: 0; }
5391.setup-recommendation .recommendation-name { min-height: 0; }
5392.setup-recommendation .recommendation-action { display: none; }
5393.setup-config-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 0; gap: 16px; }
5394.setup-config-summary > span { display: grid; gap: 8px; font-size: 12px; color: var(--st-ink-muted); }
5395.setup-config-summary strong { font-size: 24px; color: var(--st-ink); font-weight: 700; }
5396.setup-ready { padding: 16px 0; }
5397.setup-ready > .st-pill { justify-self: start; align-self: start; }
5398.select__opt[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
5399@media (max-width: 1190px) {
5400  .instrument-layout { grid-template-columns: minmax(0, 1fr); }
5401  .instrument-controls { max-width: 680px; }
5402  .recommendation-card { padding: 20px; }
5403  .recommendation-card .row--between { flex-wrap: wrap; }
5404  .variant-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
5405  .variant-actions { grid-column: 2 / -1; justify-content: flex-end; }
5406}
5407@media (max-width: 900px) {
5408  .recommendation-grid { grid-template-columns: minmax(0, 1fr); }
5409  .recommendation-card { gap: 12px; }
5410  .recommendation-name, .recommendation-purpose { min-height: 0; }
5411  .recommendation-empty { padding: 12px 0; }
5412  .running-model { flex-wrap: wrap; }
5413  .running-model > .row { width: 100%; }
5414  .family-count { display: none; }
5415}
5416@media (max-width: 600px) {
5417  .tuning-dials { grid-template-columns: minmax(0, 1fr); gap: 32px; }
5418  .tactile-control > .row, .dial-entry, .tactile-control > p, .batch-auto { max-width: 360px; margin-left: auto; margin-right: auto; }
5419  .performance-preview { padding: 20px; gap: 20px; }
5420  .speed-number { font-size: 24px; }
5421  .catalog-toolbar { grid-template-columns: 1fr auto; gap: 12px; }
5422  .catalog-toolbar > input { grid-column: 1 / -1; grid-row: 2; }
5423  .variant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
5424  .variant-actions { grid-column: 1 / -1; justify-content: space-between; }
5425  .family-toggle, .model-version { padding: 16px; }
5426  .profile-choice { grid-template-columns: minmax(0, 1fr); gap: 8px; }
5427  .profile-option { padding: 16px; gap: 8px; display: grid; grid-template-columns: 24px 1fr; }
5428  .profile-option > span { grid-column: 2; }
5429  .profile-option > svg:last-child:not(:first-child) { top: 16px; }
5430  .setup-recommendation .recommendation-card { grid-template-columns: minmax(0, 1fr); }
5431  .setup-headline { font-size: 24px; }
5432  .setup-config-summary { gap: 8px; }
5433  .setup-config-summary strong { font-size: 18px; }
5434  .computer-capacity > strong { flex-wrap: wrap; justify-content: center; }
5435  .computer-specs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
5436  .setup-actions { justify-content: stretch; }
5437  .setup-actions > .st-btn--primary { width: 100%; }
5438  .recommendation-update { flex-direction: column; align-items: flex-start; }
5439}
5440@media (prefers-reduced-motion: reduce) {
5441  .dial-pointer, .dial-fill { transition: none; }
5442}
5443:root[data-motion='reduced'] .dial-pointer, :root[data-motion='reduced'] .dial-fill { transition: none; }
5444@media (forced-colors: active) {
5445  .dial-track, .dial-fill, .dial-detent, .dial-pointer { stroke: CanvasText; }
5446  .dial-face, .dial-saved { fill: Canvas; stroke: CanvasText; }
5447  .memory-strip span { outline: 1px solid CanvasText; }
5448}
5449.dial-stops { display: flex; justify-content: space-between; font-size: 11px; color: var(--st-ink-muted); max-width: 240px; margin: -12px auto 20px; gap: 8px; }
5450.dialog-surface--wide { width: min(1240px, calc(100vw - 48px)); max-width: none; }
5451.dialog-surface--wide .variant-comparison { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; margin-top: 24px; }
5452.variant-comparison > section > .h4 { min-height: 40px; overflow-wrap: anywhere; }
5453.variant-comparison .performance-preview { padding: 16px; }
5454.variant-comparison .speed-number { font-size: 24px; }
5455.model-reference-controls { display: flex; flex-wrap: wrap; gap: 8px; }
5456.model-reference-controls .select { width: auto; }
5457@media (max-width: 767px) {
5458  .dialog-surface--wide { width: 100%; }
5459  .dialog-surface--wide .variant-comparison { grid-template-columns: minmax(0, 1fr); }
5460}
5461.models-redesign p, .performance-preview p, .recommendation-card p, .setup-redesign p, .setup-redesign h2, .setup-redesign h3 { margin: 0; }
5462.setup-redesign .eyebrow { margin-bottom: 0; }
5463.setup-redesign .setup-headline { margin: 0; }
5464@media (max-width: 767px) {
5465  .main__body:has(.models-redesign) .wrap, .main__body:has(.tuning) .wrap { padding: 0 0 88px; }
5466  .setupmodal .setup-redesign .setup__inner { padding: 20px 16px; }
5467}
5468.dial[data-custom='true'] .dial-pointer, .dial[data-custom='true'] .dial-fill { visibility: hidden; }
5469
5470/* Persona review: concise surfaces, details on demand. */
5471.tuning-dials { grid-template-columns: minmax(0, 1fr); gap: 20px; }
5472.tuning-dials > .tactile-control { max-width: 380px; width: 100%; margin-inline: auto; }
5473.batch-disclosure > summary { display: flex; flex-wrap: wrap; gap: 8px; }
5474.batch-disclosure > summary .accent { margin-inline-start: auto; }
5475.batch-disclosure .tactile-control { max-width: 380px; margin-inline: auto; }
5476.performance-preview { gap: 20px; }
5477.speed-summary { display: grid; gap: 8px; }
5478.speed-pair > div { border: 0; padding: 0; gap: 4px; }
5479.speed-pair > div[data-tone='info'] > span { color: var(--st-info-text); }
5480.speed-pair > div[data-tone='accent'] > span { color: var(--st-accent-text); }
5481.speed-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
5482.speed-value small { font-size: var(--st-fs-sm); font-weight: 400; color: var(--st-ink-muted); }
5483.experience-details-content { display: grid; gap: 16px; padding-top: 16px; }
5484.experience-path li, .experience-path strong, .memory-legend { font-size: var(--st-fs-sm); }
5485.lifecycle-notice { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
5486.lifecycle-notice > span:first-child { white-space: nowrap; }
5487.config-savebar > .lifecycle-notice { flex-basis: 100%; }
5488.config-savebar > .row { margin-inline-start: auto; }
5489.parameter-toolbar { flex-wrap: wrap; }
5490.recommendation-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
5491.recommendation-name { min-height: 0; }
5492.profile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
5493.recommendation-profile { padding: 4px 8px; border-radius: var(--st-r-pill); background: var(--st-surface-2); font-size: var(--st-fs-sm); }
5494.recommendation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
5495.recommendation-card .speed-pair { max-width: 440px; }
5496.recommendation-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--st-line); padding-top: 16px; }
5497.recommendation-missing > div { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
5498.recommendation-missing > details { flex-basis: 100%; }
5499.profile-guide { line-height: 1.7; }
5500.comparison-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
5501.comparison-facts { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-rows: repeat(10, auto); column-gap: 24px; margin-top: 24px; }
5502.comparison-facts > section { display: grid; grid-template-rows: subgrid; grid-row: span 10; min-width: 0; gap: 0; }
5503.comparison-facts h3 { margin: 0; padding-bottom: 16px; overflow-wrap: anywhere; }
5504.comparison-facts h3 small { display: block; font-size: var(--st-fs-sm); font-weight: 400; margin-top: 8px; }
5505.comparison-facts dl { display: contents; }
5506.comparison-facts dl > div { padding: 12px 0; border-top: 1px solid var(--st-line); }
5507.comparison-facts dt { color: var(--st-ink-muted); font-size: var(--st-fs-sm); margin-bottom: 4px; }
5508.comparison-facts dd { margin: 0; font-size: var(--st-fs-sm); font-weight: 700; overflow-wrap: anywhere; }
5509.comparison-facts .evidence-details { padding: 12px 0; }
5510.comparison-facts .model-action { align-self: start; }
5511.setup-review { display: grid; gap: 20px; border-top: 1px solid var(--st-line); padding-top: 24px; }
5512.setup-recommendation .recommendation-card { display: flex; border: 0; padding: 0; border-radius: 0; background: transparent; }
5513.setup-recommendation .recommendation-facts { max-width: 440px; }
5514.setup-config-summary { padding: 0; }
5515.setup-ready .disclosure { text-align: left; }
5516.setup-review > .row { flex-wrap: wrap; }
5517@media (max-width: 767px) {
5518  .comparison-facts { display: flex; flex-direction: column; gap: 32px; }
5519  .comparison-facts > section { display: block; }
5520  .comparison-facts dl { display: block; }
5521  .comparison-facts dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
5522  .config-savebar { position: static; }
5523  .config-savebar > .row { margin: 0; width: 100%; }
5524  .setup-config-summary { grid-template-columns: minmax(0, 1fr); }
5525  .setup-config-summary > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
5526  .setup-config-summary strong { font-size: var(--st-fs-lg); }
5527}
5528.recommendation-facts { max-width: 440px; }
5529.recommendation-facts > span { display: grid; justify-content: start; gap: 4px; font-size: var(--st-fs-sm); }
5530.recommendation-facts b { font-weight: 700; }
5531@media (min-width: 1050px) {
5532  .recommendation-grid:has(> article:only-child) > .recommendation-card {
5533    display: grid;
5534    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
5535    grid-template-areas: 'profiles profiles' 'name facts' 'fit speeds' 'review action' 'details details';
5536    align-items: start;
5537    gap: 16px 32px;
5538  }
5539  .recommendation-grid:has(> article:only-child) .profile-chips { grid-area: profiles; }
5540  .recommendation-grid:has(> article:only-child) .recommendation-name { grid-area: name; }
5541  .recommendation-grid:has(> article:only-child) .recommendation-fit { grid-area: fit; }
5542  .recommendation-grid:has(> article:only-child) .recommendation-facts { grid-area: facts; }
5543  .recommendation-grid:has(> article:only-child) .speed-summary { grid-area: speeds; }
5544  .recommendation-grid:has(> article:only-child) .recommendation-review { grid-area: review; }
5545  .recommendation-grid:has(> article:only-child) .recommendation-action { grid-area: action; margin: 0; }
5546  .recommendation-grid:has(> article:only-child) .recommendation-card > details { grid-area: details; }
5547}
5548.recommendation-missing > details { flex-basis: auto; }
5549.recommendation-missing > details[open] { flex-basis: 100%; }
5550.recommendation-missing > details > summary { display: flex; align-items: center; min-height: 40px; }
5551.models-redesign .running-model { padding-bottom: 20px; }
5552.recommendation-card .speed-pair > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
5553.setup-redesign .profile-option { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 16px; gap: 8px; align-items: start; }
5554.setup-redesign .profile-option > span { grid-column: 2; }
5555.setup-redesign .profile-option > strong { padding-right: 20px; }
5556@media (min-width: 768px) {
5557  .setup-recommendation .recommendation-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'name facts' 'fit speeds' 'review review' 'details details'; gap: 12px 24px; }
5558  .setup-recommendation .recommendation-name { grid-area: name; }
5559  .setup-recommendation .recommendation-fit { grid-area: fit; }
5560  .setup-recommendation .recommendation-facts { grid-area: facts; }
5561  .setup-recommendation .speed-summary { grid-area: speeds; }
5562  .setup-recommendation .recommendation-review { grid-area: review; }
5563  .setup-recommendation .recommendation-card > details { grid-area: details; }
5564}
5565.comparison-controls > .select { flex: 1; width: auto; min-width: min(240px, 100%); }
5566
5567@media (max-width: 900px) {
5568  .running-model > .stack { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
5569}
5570
5571.model-source { display: grid; justify-items: start; gap: 8px; margin-top: 16px; }
5572.model-source code { overflow-wrap: anywhere; white-space: normal; font-size: var(--st-fs-sm); }
5573@media (max-height: 600px) { .config-savebar { position: static; } }
5574
5575/* Review corrections — compact navigation, visible setup control, quiet lists. */
5576.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
5577.nav__top .nav__collapse { margin: 0; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--st-r-md); }
5578.nav__scroll { gap: 12px; padding-top: 20px; }
5579.nav__scroll > .navitem { margin-bottom: 8px; }
5580.ws { margin-top: 8px; gap: 12px; }
5581.ws__head { min-height: 36px; padding: 0 4px 0 10px; }
5582.ws__head .navgroup__label { padding: 0; text-transform: none; font-size: var(--st-fs-sm); letter-spacing: 0; }
5583.ws__tools { gap: 4px; }
5584.ws__tools .st-btn--icon { width: 32px; height: 32px; }
5585.ws__head:has(.nav-search) { padding: 0; }
5586.ws__head .nav-search { margin: 0; padding: 0 4px 0 12px; min-width: 0; min-height: 36px; }
5587.ws__head .nav-search .st-btn { flex: none; width: 28px; height: 28px; }
5588.navsession__time { flex: none; margin-left: auto; font-size: var(--st-fs-xs); color: var(--st-ink-muted); }
5589.ws__session { padding-left: 16px; }
5590.navsessions { gap: 4px; }
5591.chat-toolbar { display: flex; align-items: center; justify-content: flex-end; flex: none; min-height: 48px; padding: 4px 24px; }
5592.chat-toolbar .main__actions { display: flex; align-items: center; gap: 12px; }
5593.setup-redesign .setup__inner > .section-toolbar { margin-bottom: 24px; }
5594.capacity-pools { display: flex; width: min(100%, 400px); height: 12px; gap: 4px; border-radius: var(--st-r-pill); overflow: hidden; }
5595.capacity-pools > span { background: var(--st-accent); }
5596.capacity-pools > span[data-pool='gpu'] { background: var(--st-info); }
5597.hardware-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; padding: 12px 0; }
5598.hardware-line > div { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
5599.hardware-line .st-icon { flex: none; color: var(--st-ink-muted); margin-top: 2px; }
5600.hardware-line span { display: grid; gap: 4px; min-width: 0; }
5601.hardware-line strong { font-size: var(--st-fs-sm); font-weight: 700; overflow-wrap: anywhere; }
5602.hardware-line small { font-size: var(--st-fs-xs); color: var(--st-ink-muted); }
5603.setup-choice-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 24px 0 8px; }
5604.setup-model-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
5605.setup-model-summary .h2 { overflow-wrap: anywhere; }
5606.setup-model-actions { flex-wrap: wrap; }
5607.setup-choice-panel .tuning-dials { display: block; }
5608.setup-choice-panel .tactile-control { padding: 0; }
5609.setup-fit-preview { display: grid; gap: 12px; width: 100%; max-width: 320px; padding: 16px 0; }
5610.setup-fit-preview > strong { font-size: var(--st-fs-lg); font-variant-numeric: tabular-nums; }
5611.setup-fit-preview small { font-size: var(--st-fs-xs); color: var(--st-ink-muted); font-weight: 400; }
5612.setup-fit-preview .memory-strip { height: 8px; }
5613.form-stack { display: grid; gap: 20px; }
5614.form-stack > p { margin: 0; }
5615.input-field { display: grid; gap: 8px; min-width: 0; font-size: var(--st-fs-sm); }
5616.input-field > span { font-weight: 700; }
5617.input-field .st-input { width: 100%; }
5618.request-section > .section-toolbar:has(input) { margin-block: 20px; flex-wrap: wrap; gap: 16px; }
5619.request-section > .st-tablewrap { margin-top: 20px; }
5620.skills-page { display: grid; gap: 32px; }
5621.skills-page .section-toolbar { flex-wrap: wrap; gap: 16px; }
5622.skill-group { display: grid; gap: 16px; }
5623.skill-group > h2 { margin: 0; }
5624.skill-group > h2 span { font-weight: 400; margin-left: 8px; }
5625.skill-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 0; }
5626.skill-symbol { display: grid; place-items: center; width: 56px; height: 56px; color: var(--st-accent); background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); }
5627.skill-copy { display: grid; gap: 8px; }
5628.skill-copy h3, .skill-copy p { margin: 0; }
5629.skill-row-actions { display: flex; gap: 20px; align-items: center; }
5630.skill-instructions { min-height: 200px; resize: vertical; line-height: 1.6; font-family: var(--st-font); }
5631@media (max-width: 767px) {
5632  .setup-choice-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
5633  .setup-choice-panel .tuning-dials { grid-row: 1; }
5634  .setup-model-summary { gap: 12px; }
5635  .hardware-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
5636  .chat-toolbar { padding-inline: 16px; }
5637  .skill-row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
5638  .skill-symbol { width: 44px; height: 44px; border-radius: var(--st-r-md); }
5639  .skill-row-actions { grid-column: 2; justify-content: flex-end; }
5640}
5641
5642/* October 6 review: quiet chrome, purposeful controls and an output workspace. */
5643:root { color-scheme: light; }
5644:root[data-theme='dark'] { color-scheme: dark; }
5645.chat-toolbar { height: var(--st-header-h); min-height: var(--st-header-h); border-bottom: 1px solid var(--st-line); background: var(--st-surface); }
5646.chat__progress { display: none; }
5647.sampling-field { display: flex; flex-direction: column; gap: 12px; }
5648.sampling-field .st-input { width: 100%; }
5649.st-slider { appearance: none; -webkit-appearance: none; height: 24px; background: transparent; cursor: pointer; }
5650.st-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--st-line); }
5651.st-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 16px; width: 16px; margin-top: -5px; border-radius: 50%; background: var(--st-accent); border: 2px solid var(--st-surface); box-shadow: none; }
5652.st-slider::-moz-range-track { height: 6px; border-radius: 6px; background: var(--st-line); }
5653.st-slider::-moz-range-thumb { height: 13px; width: 13px; border-radius: 50%; background: var(--st-accent); border: 2px solid var(--st-surface); }
5654* { scrollbar-color: var(--st-line) transparent; }
5655*::-webkit-scrollbar-thumb { background: var(--st-line); border: 3px solid transparent; background-clip: padding-box; border-radius: 12px; }
5656[data-theme='dark'] * { scrollbar-color: var(--st-line) transparent; }
5657[data-theme='dark'] *::-webkit-scrollbar-thumb { background-color: var(--st-line); }
5658.composer .st-composer { padding: 16px; }
5659.composer .st-composer textarea { min-height: 76px; padding: 4px; }
5660.st-composer__bar { gap: 6px; align-items: center; flex-wrap: wrap; }
5661.composer-add { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--st-ink); background: var(--st-surface-2); cursor: pointer; }
5662.composer-choice { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--st-ink-muted); padding: 7px 4px; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; max-width: 100%; }
5663.composer-choice:hover { background: var(--st-surface-2); color: var(--st-ink); }
5664.composer-choice:disabled { opacity: .5; cursor: default; }
5665.composer-model span { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
5666.composer-file-error { border: 0; background: transparent; color: var(--st-danger-text); font: inherit; font-size: 12px; }
5667.model-choice-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--st-line); }
5668.toolcard, .toolcard[data-state='proposed'] { border: 1px solid var(--st-line); border-radius: var(--st-r-lg); background: var(--st-surface); box-shadow: none; overflow: hidden; }
5669.toolcard__head { background: transparent; border-bottom: 0; padding: 16px 18px 8px; }
5670.toolcard[data-state='proposed'] .toolcard__head svg { color: var(--st-ink-muted); }
5671.toolcard__body { padding: 8px 18px 16px; }
5672.toolcard__preview { display: block; background: var(--st-surface-2); color: var(--st-ink); border: 1px solid var(--st-line); border-radius: var(--st-r-sm); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
5673.toolcard__foot { padding: 12px 18px; background: transparent; border-top: 1px solid var(--st-line); gap: 8px; flex-wrap: wrap; }
5674.api-status { display: inline-flex; align-items: center; gap: 8px; }
5675.api-status__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--st-ink-muted); }
5676.api-status[data-active='true'] .api-status__dot { background: var(--st-accent); outline: 4px solid color-mix(in srgb, var(--st-accent) 12%, transparent); }
5677.key-input { display: flex; gap: 8px; align-items: center; }
5678.key-input .st-input { min-width: 0; flex: 1; }
5679.dialog-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-surface-2); color: var(--st-accent); }
5680.key-url { overflow-wrap: anywhere; padding: 14px; background: var(--st-surface-2); border-radius: 10px; }
5681.settings-about-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 22px 20px 0; }
5682.settings-about-version { margin: 0; font-size: var(--st-fs-base); }
5683.prompt-progress { display: flex; align-items: center; gap: 16px; }
5684.prompt-progress > .st-bar { flex: 1; }
5685.hardware-section { display: flex; flex-direction: column; gap: 20px; }
5686.hardware-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
5687.hardware-cards article { display: flex; align-items: flex-start; gap: 14px; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-r-lg); padding: 20px; min-width: 0; }
5688.hardware-cards article > svg { color: var(--st-ink-muted); flex: none; margin-top: 4px; }
5689.hardware-cards h3 { margin: 6px 0; overflow-wrap: anywhere; }
5690.tasks-page { display: flex; flex-direction: column; gap: 20px; }
5691.tasks-empty { min-height: 270px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; text-align: center; }
5692.tasks-empty > svg { color: var(--st-ink-muted); margin-bottom: 12px; }
5693.task-templates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; border-top: 1px solid var(--st-line); padding-top: 36px; }
5694.task-template { display: flex; text-align: left; gap: 16px; padding: 12px; border: 0; border-radius: var(--st-r-md); background: transparent; color: var(--st-ink); font: inherit; cursor: pointer; }
5695.task-template:hover { background: var(--st-surface-2); }
5696.task-template > span:last-child { display: flex; flex-direction: column; gap: 8px; }
5697.task-template .xs { display: flex; align-items: center; gap: 6px; }
5698.task-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--st-line); border-radius: 14px; color: var(--st-ink-muted); background: var(--st-surface); }
5699.task-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--st-line); }
5700.task-copy { flex: 1; min-width: 0; }
5701.task-copy h2 { overflow-wrap: anywhere; }
5702.task-copy p { margin-top: 6px; }
5703.text-action { padding: 8px 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--st-accent-text, var(--st-ink)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
5704.task-schedule { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
5705.task-assistant { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--st-line); }
5706.tasks-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
5707.tasks-actions > .select__trigger { width: auto; min-width: 130px; }
5708.tasks-search { width: 170px; max-width: 180px; }
5709.chatsplit[data-preview='true'] { grid-template-columns: minmax(340px,1fr) minmax(440px,1.15fr); }
5710.chatsplit[data-preview='true'] .chat__inner { padding-inline: 28px; }
5711.chatsplit[data-preview='true'] .composer { padding-inline: 20px; }
5712.artifact-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--st-surface); border-left: 1px solid var(--st-line); }
5713.artifact-panel__head { display: flex; align-items: center; gap: 10px; padding: 10px 18px; height: 54px; flex: none; border-bottom: 1px solid var(--st-line); }
5714.artifact-panel__head h2 { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
5715.artifact-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px 0; flex: none; }
5716.artifact-tabs button { display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 10px 9px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--st-ink-muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
5717.artifact-tabs button[aria-selected='true'] { border-bottom-color: var(--st-accent); color: var(--st-ink); }
5718.artifact-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--st-line); flex: none; min-height: 49px; }
5719.artifact-toolbar > .xs { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
5720.artifact-content { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: auto; }
5721.artifact-content > iframe { flex: 1; width: 100%; min-height: 400px; border: 0; background: white; }
5722.artifact-browser-note { padding: 10px 16px; border-top: 1px solid var(--st-line); }
5723.artifact-cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
5724.artifact-card { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); font: inherit; color: var(--st-ink); text-align: left; cursor: pointer; }
5725.artifact-card:hover { border-color: var(--st-accent); }
5726.artifact-card__icon { display: grid; place-items: center; color: var(--st-accent); flex: none; }
5727.artifact-card > span:nth-child(2) { min-width: 0; flex: 1; }
5728.artifact-card strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
5729.artifact-card small { display: block; color: var(--st-ink-muted); margin-top: 4px; }
5730.document-markdown { padding: 32px; line-height: 1.65; max-width: 76ch; width: 100%; margin-inline: auto; color: var(--st-ink); }
5731.document-markdown h2 { font-size: 24px; line-height: 1.2; margin: 20px 0 12px; }
5732.document-markdown h3 { font-size: 18px; margin: 24px 0 8px; }
5733.document-markdown p, .document-markdown ul { margin: 12px 0; }
5734.document-markdown li { margin: 6px 0; }
5735.document-markdown blockquote { border-left: 3px solid var(--st-accent); padding: 6px 18px; margin: 24px 0; color: var(--st-ink-muted); }
5736.document-source { padding: 24px; margin: 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
5737.preview-placeholder { padding: 30px; }
5738.pdf-view { display: flex; flex-direction: column; min-height: 0; height: 100%; }
5739.pdf-controls > .select__trigger { width: auto; min-width: 120px; }
5740.pdf-controls { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--st-line); flex-wrap: wrap; }
5741.pdf-canvas-wrap { flex: 1; min-height: 0; overflow: auto; padding: 24px; background: var(--st-surface-2); position: relative; }
5742.pdf-canvas-wrap canvas { display: block; margin-inline: auto; background: white; box-shadow: none; }
5743.pdf-loading { position: absolute; left: 24px; top: 8px; }
5744.pdf-text { margin-top: 20px; font-size: 12px; line-height: 1.5; }
5745.dialog-body:has(> .artifact-panel) { display: flex; flex-direction: column; padding: 0; flex: 1; overflow: hidden; }
5746.dialog-body > .artifact-panel { flex: 1; border: 0; min-height: 60vh; }
5747@media (max-width: 767px) {
5748  .chat-toolbar { min-height: 44px; height: 44px; }
5749  .composer .st-composer { padding: 12px; }
5750  .composer-model span { max-width: 115px; }
5751  .composer-choice { font-size: 11px; }
5752  .st-composer__bar { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; }
5753  .st-composer__bar > .spacer { display: none; }
5754  .composer-add { grid-column: 1; grid-row: 1; }
5755  .composer-choice:not(.composer-model):not(.composer-effort) { grid-column: 2 / 5; grid-row: 1; justify-self: start; }
5756  .composer-model { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
5757  .composer-effort { grid-column: 3; grid-row: 2; }
5758  .st-composer__bar > .st-btn { grid-column: 4; grid-row: 2; }
5759  .composer-file-error { grid-column: 1 / -1; }
5760  .task-templates, .task-schedule { grid-template-columns: minmax(0,1fr); }
5761  .task-row { flex-wrap: wrap; }
5762  .task-row > .row { margin-left: 64px; }
5763  .tasks-search { max-width: 100%; width: 100%; }
5764  .artifact-tabs button { flex: none; }
5765  .hardware-cards { grid-template-columns: minmax(0,1fr); }
5766  .document-markdown { padding: 22px; }
5767}
5768@media (prefers-reduced-motion: reduce) { .api-status__dot { transition: none; } }
5769
5770.composer-menu-note { padding: 8px 12px; margin: 0; border-top: 1px solid var(--st-line); line-height: 1.5; }
5771button.menu__item { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
5772button.menu__item:hover { background: var(--st-surface-2); }
5773button.menu__item:disabled { opacity: .5; cursor: default; }
5774
5775/* Follow-up annotations: quieter navigation, editable shortcuts and preview tabs. */
5776.main__head.main__head--plain { background: var(--st-surface); --st-material-thin: none; mask-image: none; border-bottom-color: transparent; }
5777[data-theme='dark'] .st-composer__bar > .st-btn--primary { background: var(--st-surface-2); border-color: var(--st-line); color: var(--st-ink); box-shadow: none; }
5778[data-theme='dark'] .st-composer__bar > .st-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--st-ink) 12%, var(--st-surface)); }
5779.nav__bottom { display: flex; align-items: center; gap: 8px; }
5780.nav__bottom .nav__more { flex: 1; min-width: 0; }
5781.theme-switch { flex: none; color: var(--st-ink-muted); }
5782.theme-switch__icon { display: grid; place-items: center; animation: theme-reveal var(--st-t-local) var(--st-ease-enter); }
5783@keyframes theme-reveal { from { opacity: 0; transform: rotate(-70deg) scale(.8); } to { opacity: 1; transform: rotate(0) scale(1); } }
5784.app[data-rail='true'] .nav__bottom { flex-direction: column; gap: 2px; }
5785.app[data-rail='true'] .nav__bottom .nav__more { flex: none; }
5786.task-tree { margin: 8px 0 14px; }
5787.task-tree .ws__name { font-weight: 600; }
5788.task-tree .navsessions { margin-left: 13px; padding-left: 10px; border-left: 1px solid var(--st-line); }
5789.task-tree .ws-view { display: inline-block; margin: 8px 10px; }
5790.task-tree .ws__row > .st-btn { width: 28px; height: 28px; min-height: 28px; }
5791.shortcut-editor { display: flex; flex-direction: column; gap: 18px; margin: 18px 0; }
5792.shortcut-editor .shortcutrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
5793.shortcutrow__label { flex: 1; }
5794.shortcut-capture { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 96px; min-height: 34px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--st-ink); background: var(--st-surface-2); border: 1px solid var(--st-line); border-radius: var(--st-r-sm); cursor: pointer; }
5795.shortcut-capture[data-recording] { border-color: var(--st-accent); color: var(--st-accent); }
5796.cloudflare-flow { display: flex; flex-direction: column; gap: 18px; }
5797.cloudflare-intro { display: flex; align-items: center; gap: 14px; }
5798.cloudflare-intro .dialog-feature-icon { flex: none; margin: 0; }
5799.cloudflare-intro p { margin: 4px 0; }
5800.setup-steps { list-style: none; counter-reset: setup-step; display: flex; flex-direction: column; gap: 22px; padding: 0; margin: 0; }
5801.setup-steps > li { counter-increment: setup-step; display: flex; align-items: flex-start; gap: 12px; }
5802.setup-steps > li::before { content: counter(setup-step); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--st-line); border-radius: 50%; color: var(--st-ink-muted); font-size: 12px; }
5803.setup-steps > li > div { min-width: 0; flex: 1; }
5804.setup-steps p { margin: 8px 0; }
5805.install-command { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin: 10px 0; background: var(--st-surface-2); border-radius: var(--st-r-sm); }
5806.install-command code { font-size: 12px; overflow-wrap: anywhere; }
5807.tunnel-ready { display: flex; align-items: center; gap: 6px; }
5808.tunnel-connected { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--st-surface-2); border: 1px solid var(--st-line); border-radius: var(--st-r-md); }
5809.tunnel-connected .key-url { flex: 1; min-width: 0; }
5810.monitor-capture { padding: 8px; }
5811.artifact-tabs { flex-wrap: wrap; overflow: visible; gap: 2px 8px; padding-bottom: 4px; }
5812.artifact-tabs button { flex: 1 1 calc(33.333% - 8px); max-width: calc(33.333% - 5px); padding: 8px 4px; }
5813.artifact-tabs button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
5814.artifact-tabs button > .st-icon { flex: none; }
5815.image-preview { min-height: 100%; display: grid; place-items: center; padding: 24px; overflow: auto; background: var(--st-surface-2); }
5816.image-preview img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
5817.image-preview[data-size='actual'] { display: block; }
5818.image-preview[data-size='actual'] img { max-width: none; max-height: none; }
5819.code-preview { margin: 0; padding: 24px 0; font-size: 12px; line-height: 1.8; tab-size: 2; }
5820.code-preview__line { display: block; padding-right: 24px; }
5821.code-preview__line > span { display: inline-block; width: 46px; padding-right: 14px; text-align: right; color: var(--st-ink-muted); user-select: none; }
5822.table-preview { padding: 18px; }
5823.table-preview .section-toolbar { flex-wrap: wrap; gap: 12px; }
5824.table-preview .st-input { width: min(100%, 210px); }
5825.table-sort { border: 0; padding: 4px 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
5826@media (prefers-reduced-motion: reduce) { .theme-switch__icon { animation: none; } }
5827@media (max-width: 767px) { .artifact-tabs button { flex-basis: calc(50% - 8px); max-width: calc(50% - 4px); } .shortcutrow__label { font-size: 12px; } }
5828@media (max-width: 1500px) {
5829  .chatsplit[data-preview='true'] .st-composer__bar { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; }
5830  .chatsplit[data-preview='true'] .st-composer__bar > .spacer { display: none; }
5831  .chatsplit[data-preview='true'] .composer-add { grid-column: 1; grid-row: 1; }
5832  .chatsplit[data-preview='true'] .composer-choice:not(.composer-model):not(.composer-effort) { grid-column: 2 / 5; grid-row: 1; justify-self: start; }
5833  .chatsplit[data-preview='true'] .composer-model { grid-column: 1 / 3; grid-row: 2; }
5834  .chatsplit[data-preview='true'] .composer-effort { grid-column: 3; grid-row: 2; }
5835  .chatsplit[data-preview='true'] .st-composer__bar > .st-btn { grid-column: 4; grid-row: 2; }
5836}
5837
5838/* One continuous title bar for the conversation and its previews. */
5839.chat-toolbar {
5840  display: grid;
5841  grid-template-columns: minmax(0,1fr);
5842  padding: 0;
5843  justify-content: stretch;
5844}
5845.chat-toolbar[data-preview='true'] {
5846  grid-template-columns: minmax(340px,1fr) minmax(440px,1.15fr);
5847}
5848.chat-toolbar__conversation {
5849  display: flex;
5850  align-items: center;
5851  min-width: 0;
5852  height: 100%;
5853  gap: 12px;
5854  padding: 0 20px;
5855}
5856.chat-toolbar__conversation h1 {
5857  min-width: 0;
5858  font-size: var(--st-fs-sm);
5859  font-weight: 600;
5860  white-space: nowrap;
5861  overflow: hidden;
5862  text-overflow: ellipsis;
5863}
5864.chat-toolbar__conversation .spacer { min-width: 0; }
5865.chat-agents {
5866  display: inline-flex;
5867  align-items: center;
5868  gap: 6px;
5869  flex: none;
5870  border: 0;
5871  background: transparent;
5872  color: var(--st-ink-muted);
5873  font: inherit;
5874  font-size: var(--st-fs-sm);
5875  cursor: pointer;
5876  padding: 8px 4px;
5877}
5878.chat-agents:hover, .chat-agents[aria-expanded='true'] { color: var(--st-ink); }
5879.chat-toolbar__previews {
5880  display: flex;
5881  align-items: center;
5882  min-width: 0;
5883  height: 100%;
5884  border-left: 1px solid var(--st-line);
5885}
5886.artifact-tabs {
5887  flex: 1;
5888  min-width: 0;
5889  display: flex;
5890  flex-wrap: nowrap;
5891  gap: 4px;
5892  padding: 6px 8px;
5893  overflow-x: auto;
5894  overflow-y: hidden;
5895  scrollbar-width: thin;
5896}
5897.artifact-tabs button {
5898  flex: 0 0 auto;
5899  max-width: 185px;
5900  padding: 9px 12px;
5901  border: 0;
5902  border-radius: var(--st-r-sm);
5903}
5904.artifact-tabs button[aria-selected='true'] { background: var(--st-surface-2); color: var(--st-ink); }
5905.preview-window-actions { display: flex; gap: 2px; flex: none; padding: 0 10px 0 4px; }
5906.chatsplit[data-expanded='true'], .chat-toolbar[data-expanded='true'] { grid-template-columns: minmax(0,1fr); }
5907.chatsplit[data-expanded='true'] > .chatcol, .chat-toolbar[data-expanded='true'] > .chat-toolbar__conversation { display: none; }
5908.agent-summary { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; }
5909.agent-summary + .agent-summary { border-top: 1px solid var(--st-line-soft); }
5910.agent-summary__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-ink-muted); flex: none; margin-top: 6px; }
5911.agent-summary__dot[data-working='true'] { background: var(--st-accent); }
5912.agent-summary__copy { flex: 1; min-width: 0; }
5913.agent-summary__copy strong { font-size: var(--st-fs-sm); font-weight: 600; }
5914.agent-summary__copy p { font-size: var(--st-fs-xs); color: var(--st-ink-muted); margin: 5px 0; line-height: 1.5; }
5915.agent-summary__metrics { display: flex; flex-direction: column; gap: 5px; text-align: right; color: var(--st-ink-muted); font-size: var(--st-fs-xs); white-space: nowrap; }
5916.anchored-popover { min-width: 0; max-height: calc(100dvh - 24px); overflow: auto; }
5917.anchored-popover .telepop__head { justify-content: space-between; }
5918.popover-note { margin: 12px 0 0; line-height: 1.6; }
5919.context-meter { height: 6px; margin: 8px 0 14px; background: var(--st-surface-2); border-radius: 999px; overflow: hidden; }
5920.context-meter > span { display: block; height: 100%; background: var(--st-accent); border-radius: inherit; }
5921.telemetry { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 30px; flex-wrap: wrap; }
5922.telemetry__chip { white-space: nowrap; }
5923.chat-template { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; padding: 16px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); color: var(--st-ink); background: var(--st-surface); text-align: left; font: inherit; cursor: pointer; }
5924.chat-template strong { font-size: var(--st-fs-sm); }
5925.chat-template span { grid-column: 1; line-height: 1.5; }
5926.chat-template > svg { grid-row: 1 / 3; grid-column: 2; align-self: center; }
5927.artifact-card { padding: 0 10px 0 0; gap: 0; cursor: default; }
5928.artifact-card__open { display: flex; align-items: center; flex: 1; min-width: 0; gap: 14px; background: transparent; color: inherit; text-align: left; border: 0; font: inherit; padding: 18px 16px; cursor: pointer; border-radius: inherit; }
5929.artifact-card__open > span:last-child { min-width: 0; }
5930.artifact-card-wrap > p { margin: 6px 4px; }
5931.task-tree .ws__session .navsession { flex: 1; min-width: 0; }
5932.task-tree .navsessions .row .session-overflow { flex: none; opacity: 1; width: 26px; height: 28px; }
5933.task-tree .ws__session { gap: 0; }
5934.nav__bottom { justify-content: space-between; }
5935.nav__bottom .theme-switch { flex: none; }
5936.chat-media { display: flex; flex-direction: column; gap: 24px; margin: 20px 0; }
5937.chat-media__item { margin: 0; overflow: hidden; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); }
5938.chat-media__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: var(--st-fs-xs); }
5939.chat-media__head > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
5940.chat-media__image { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; }
5941.chat-media__image img, .chat-media video { display: block; width: 100%; max-height: 380px; object-fit: contain; background: var(--st-surface-2); }
5942.chat-media figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--st-ink-muted); font-size: var(--st-fs-xs); line-height: 1.5; }
5943@media (max-width: 767px) {
5944  .chat-toolbar__conversation { padding-inline: 12px; gap: 6px; }
5945  .chat-agents { font-size: var(--st-fs-xs); }
5946  .preview-window-actions { padding-right: 4px; }
5947  .artifact-tabs button { max-width: 160px; }
5948  .telemetry { gap: 0; }
5949  .telemetry__chip { padding-inline: 6px; font-size: 11px; }
5950}
5951
5952/* Eight annotation refinements — media, approvals, tabs and connection setup. */
5953.chat-media__image img { height: auto; max-height: none; }
5954.toolcard--compact { display: flex; flex-wrap: wrap; align-items: flex-start; }
5955.toolcard__disclosure { flex: 1; min-width: min(100%, 220px); }
5956.toolcard__disclosure > summary { display: flex; align-items: center; gap: 9px; padding: 16px; cursor: pointer; list-style: none; min-height: 60px; }
5957.toolcard__disclosure > summary::-webkit-details-marker { display: none; }
5958.toolcard__title { font-size: var(--st-fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
5959.toolcard__scope { white-space: nowrap; }
5960.toolcard__chevron { margin-left: auto; transition: transform var(--st-t-control) var(--st-ease-enter); }
5961.toolcard__disclosure[open] .toolcard__chevron { transform: rotate(180deg); }
5962.toolcard__disclosure[open] { flex-basis: 100%; }
5963.toolcard__disclosure .toolcard__body { padding: 0 16px 14px; }
5964.toolcard__disclosure .toolcard__body p { margin: 10px 0 0; }
5965.toolcard__quick-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 12px; margin-left: auto; }
5966.toolcard__quick-actions > span { font-size: 11px; margin-right: 3px; }
5967.toolcard__running { padding: 20px 16px; }
5968.artifact-tab { display: flex; align-items: center; flex: 0 0 auto; max-width: 220px; border-radius: var(--st-r-sm); }
5969.artifact-tab[data-selected='true'] { background: var(--st-surface-2); }
5970.artifact-tabs .artifact-tab__select { min-width: 0; max-width: none; flex: 1; padding: 9px 4px 9px 10px; background: transparent; }
5971.artifact-tabs .artifact-tab__select > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
5972.artifact-tabs .artifact-tab__close { display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; margin: 0 4px; opacity: 0; transition: opacity var(--st-t-micro); }
5973.artifact-tab:hover .artifact-tab__close, .artifact-tab:focus-within .artifact-tab__close { opacity: 1; }
5974.artifact-tab__close:hover { color: var(--st-ink); background: var(--st-line-soft); }
5975.subagent-row { display: flex; gap: 9px; align-items: flex-start; padding: 11px 0; }
5976.subagent-row + .subagent-row { border-top: 1px solid var(--st-line-soft); }
5977.subagent-row__icon { display: flex; flex: none; margin-top: 2px; color: var(--st-ink-muted); }
5978.subagent-row__copy { min-width: 0; flex: 1; }
5979.subagent-row__title { display: flex; align-items: center; gap: 8px; }
5980.subagent-row__title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--st-fs-xs); font-weight: 600; }
5981.subagent-row__status { flex: none; font-size: 11px; color: var(--st-ink-muted); }
5982.subagent-row__copy p { font-size: var(--st-fs-xs); color: var(--st-ink-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 4px 0 0; }
5983.subagent-row__metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--st-ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
5984.subagent-row[data-status='working'] .subagent-row__icon, .subagent-row[data-status='working'] .subagent-row__status { color: var(--st-info-text); }
5985.subagent-row[data-status='completed'] .subagent-row__icon { color: var(--st-accent-text); }
5986.subagent-row[data-status='failed'] .subagent-row__icon, .subagent-row[data-status='failed'] .subagent-row__status { color: var(--st-danger-text); }
5987.context-ring { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; }
5988.context-ring__track { opacity: 0.25; }
5989.context-ring__fill { transition: stroke-dasharray var(--st-t-local) var(--st-ease-enter); }
5990.context-ring[data-unknown='true'] .context-ring__track { stroke-dasharray: 3 2; }
5991.context-ring[data-level='medium'] { color: var(--st-warn-text); }
5992.context-ring[data-level='high'] { color: var(--st-danger-text); }
5993.protocol-switch { align-self: flex-start; width: fit-content; max-width: 100%; }
5994.tunnel-wizard { display: flex; flex-direction: column; gap: 26px; }
5995.tunnel-progress { display: flex; list-style: none; padding: 0; margin: 0; }
5996.tunnel-progress > li { flex: 1; min-width: 0; position: relative; }
5997.tunnel-progress > li:not(:last-child)::after { position: absolute; content: ''; height: 1px; background: var(--st-line); top: 13px; left: calc(50% + 19px); width: calc(100% - 38px); }
5998.tunnel-progress > li[data-complete='true']::after { background: var(--st-accent); }
5999.tunnel-progress button { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; border: 0; padding: 0; background: none; color: var(--st-ink-muted); font: inherit; cursor: pointer; }
6000.tunnel-progress button:disabled { cursor: default; }
6001.tunnel-progress button > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--st-line); border-radius: 50%; font-size: var(--st-fs-xs); transition: color var(--st-t-control), background var(--st-t-control), border-color var(--st-t-control); }
6002.tunnel-progress small { font-size: 11px; }
6003.tunnel-progress [data-current='true'] button { color: var(--st-ink); }
6004.tunnel-progress [data-current='true'] button > span { border-color: var(--st-accent); background: var(--st-accent-tint); color: var(--st-accent-text); }
6005.tunnel-progress [data-complete='true'] button > span { border-color: var(--st-accent); color: var(--st-accent-text); }
6006.tunnel-stage { display: flex; flex-direction: column; gap: 16px; min-height: 285px; --st-from-y: 6px; animation: st-enter var(--st-t-local) var(--st-ease-enter) both; }
6007.tunnel-stage > p, .tunnel-stage h3 { margin: 0; }
6008.tunnel-stage h3:focus-visible { outline: none; }
6009.tunnel-stage p { line-height: 1.6; }
6010.tunnel-stage .tunnel-step-label { margin-bottom: -8px; letter-spacing: .06em; font-size: 11px; }
6011.tunnel-choices { display: flex; flex-direction: column; gap: 10px; }
6012.tunnel-choices > button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--st-line); background: var(--st-surface); border-radius: var(--st-r-md); color: var(--st-ink); font: inherit; cursor: pointer; transition: background var(--st-t-control), border-color var(--st-t-control); }
6013.tunnel-choices > button[aria-checked='true'] { border-color: var(--st-accent); background: var(--st-accent-tint); }
6014.tunnel-choices > button > span:nth-child(2) { flex: 1; min-width: 0; }
6015.tunnel-choices strong { display: block; font-size: var(--st-fs-sm); }
6016.tunnel-choices small { display: block; font-size: var(--st-fs-xs); color: var(--st-ink-muted); line-height: 1.5; margin-top: 4px; }
6017.tunnel-choice-dot { width: 19px; height: 19px; display: grid; place-items: center; flex: none; border: 1px solid var(--st-line); border-radius: 50%; color: var(--st-accent-text); }
6018.tunnel-choices [aria-checked='true'] .tunnel-choice-dot { border-color: var(--st-accent); }
6019.tunnel-footnote { margin-top: auto; }
6020.tunnel-check { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface-2); }
6021.tunnel-check > svg { color: var(--st-accent-text); }
6022.tunnel-check strong { display: block; font-size: var(--st-fs-sm); }
6023.tunnel-check span { display: block; margin-top: 4px; font-size: var(--st-fs-xs); color: var(--st-ink-muted); }
6024.tunnel-key-step { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); }
6025.tunnel-key-step > p { margin: 0; }
6026.tunnel-key-step > svg { color: var(--st-ink-muted); }
6027.tunnel-review { margin: 0; padding: 0 16px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); }
6028.tunnel-review > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: var(--st-fs-sm); }
6029.tunnel-review > div + div { border-top: 1px solid var(--st-line-soft); }
6030.tunnel-review dt { color: var(--st-ink-muted); }
6031.tunnel-review dd { display: flex; align-items: center; gap: 6px; margin: 0; text-align: right; overflow-wrap: anywhere; }
6032.tunnel-stage--status { justify-content: center; min-height: 300px; }
6033.tunnel-stage__symbol { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--st-accent-tint); color: var(--st-accent-text); }
6034.tunnel-stage .install-command { margin: 0; }
6035.tunnel-stage .install-command code { overflow-wrap: anywhere; white-space: normal; }
6036.wizard-next { transform: rotate(180deg); }
6037@media (hover: none) { .artifact-tabs .artifact-tab__close { opacity: 1; } }
6038@media (prefers-reduced-motion: reduce) {
6039  .tunnel-stage { animation: none; }
6040  .tunnel-progress button > span, .tunnel-choices > button, .context-ring__fill, .toolcard__chevron { transition: none; }
6041}
6042
6043/* Time-skip: a bounded, simulated two-stream run inside the preview sidebar. */
6044.chatsplit[data-preview='true'][data-timeskip='true']:not([data-expanded='true']),
6045.chat-toolbar[data-preview='true'][data-timeskip='true']:not([data-expanded='true']) {
6046  grid-template-columns: minmax(320px,1fr) minmax(340px,400px);
6047}
6048.timeskip-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--st-line); background: var(--st-surface); color: var(--st-ink); }
6049.timeskip-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 48px; padding: 12px 20px; border-bottom: 1px solid var(--st-line-soft); }
6050.timeskip-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; color: var(--st-accent-text); }
6051.timeskip-status i { display: block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
6052.timeskip-status[data-busy] i { animation: st-pulse 1.6s ease-in-out infinite; }
6053.timeskip-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 18px; flex: 1; min-height: 0; }
6054.timeskip-heading, .timeskip-request, .timeskip-flow, .timeskip-result, .timeskip-inspection, .timeskip-hint { width: 100%; max-width: 400px; margin-inline: auto; }
6055.timeskip-heading h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; margin: 0; animation: st-enter var(--st-t-local) var(--st-ease-enter) both; --st-from-y: 5px; }
6056.timeskip-heading p { color: var(--st-ink-muted); font-size: 12px; line-height: 1.65; min-height: 40px; margin: 10px 0 16px; }
6057.timeskip-request { display: flex; align-items: center; gap: 8px; border: 1px solid var(--st-line-soft); border-radius: var(--st-r-sm); padding: 9px 10px; color: var(--st-ink-muted); font-size: 11px; }
6058.timeskip-request > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
6059.timeskip-request > svg { flex: none; }
6060.timeskip-flow { padding-top: 16px; }
6061.timeskip-seed { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 6px 8px; background: var(--st-surface); color: var(--st-ink-muted); border: 0; font: inherit; font-size: 11px; border-radius: var(--st-r-sm); cursor: pointer; }
6062.timeskip-seed:hover { background: var(--st-surface-2); color: var(--st-ink); }
6063.timeskip-fork { display: block; width: 100%; height: 36px; }
6064.timeskip-fork path { fill: none; stroke: var(--st-line); stroke-width: 1.5; }
6065.timeskip-streams { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
6066.timeskip-stream { min-width: 0; }
6067.timeskip-stream__label { display: flex; align-items: center; gap: 7px; width: 100%; padding: 10px 9px; border: 1px solid transparent; border-radius: var(--st-r-sm); background: var(--st-surface-2); color: var(--st-ink); font: inherit; font-size: 12px; cursor: pointer; transition: background var(--st-t-local), border-color var(--st-t-local), color var(--st-t-local); }
6068.timeskip-stream__label > span { color: var(--st-ink-muted); font-size: 11px; }
6069.timeskip-stream__label > svg { margin-left: auto; flex: none; }
6070.timeskip-stream__label:hover, .timeskip-stream__label[aria-expanded='true'] { border-color: var(--st-line); }
6071.timeskip-stream[data-chosen] .timeskip-stream__label { background: var(--st-accent-tint); color: var(--st-accent-text); }
6072.timeskip-stream[data-chosen] .timeskip-stream__label > span { color: inherit; }
6073.timeskip-checkpoints { padding-top: 12px; }
6074.timeskip-checkpoint { position: relative; padding: 8px 0 12px 22px; min-height: 65px; font-size: 12px; animation: st-enter var(--st-t-surface) var(--st-ease-enter) both; --st-from-y: 6px; }
6075.timeskip-checkpoint:not(:last-child)::after { content: ''; position: absolute; width: 1px; top: 27px; bottom: -4px; left: 7px; background: var(--st-line); }
6076.timeskip-checkpoint > strong { display: block; font-weight: 500; line-height: 1.5; }
6077.timeskip-checkpoint > span:last-child { display: block; font-size: 11px; color: var(--st-ink-muted); margin-top: 3px; line-height: 1.5; }
6078.timeskip-checkpoint__dot { position: absolute; display: grid; place-items: center; left: 0; top: 10px; width: 15px; height: 15px; border: 1px solid var(--st-line); border-radius: 50%; color: var(--st-ink-muted); background: var(--st-surface); }
6079.timeskip-checkpoint[data-tone='good'] .timeskip-checkpoint__dot { background: var(--st-accent-tint); border-color: transparent; color: var(--st-accent-text); }
6080.timeskip-checkpoint[data-tone='gap'] .timeskip-checkpoint__dot { color: var(--st-warn-text); background: var(--st-warn-tint); border-color: transparent; }
6081.timeskip-checkpoint[data-tone='gap'] > span:last-child { color: var(--st-warn-text); }
6082.timeskip-checkpoint[data-pending] > strong { color: var(--st-ink-muted); }
6083.timeskip-stream__foot { font-size: 11px; line-height: 1.5; min-height: 30px; padding: 6px 0 0; color: var(--st-ink-muted); text-align: center; }
6084.timeskip-stream[data-chosen] .timeskip-stream__foot { color: var(--st-accent-text); }
6085.timeskip-stream__foot[data-rejected] { color: var(--st-warn-text); }
6086.timeskip-route { display: block; width: 100%; height: 68px; overflow: visible; }
6087.timeskip-route__track { fill: none; stroke: var(--st-line); stroke-width: 1.5; }
6088.timeskip-route__chosen { fill: none; stroke: var(--st-accent); stroke-width: 2; stroke-linecap: round; }
6089.timeskip-route circle { fill: var(--st-accent); }
6090.timeskip-route__halo { opacity: .14; }
6091.timeskip-reason { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 58px; font-size: 12px; line-height: 1.5; background: var(--st-surface-2); border: 1px solid var(--st-line-soft); border-radius: var(--st-r-sm); transition: background var(--st-t-local); }
6092.timeskip-reason > svg { color: var(--st-accent-text); flex: none; }
6093.timeskip-reason > span { animation: st-enter var(--st-t-local) var(--st-ease-enter) both; --st-from-y: 4px; }
6094.timeskip-reason[data-chosen] { background: var(--st-accent-tint); border-color: transparent; }
6095.timeskip-inspection { border: 1px solid var(--st-line); padding: 10px 12px; margin-top: 12px; border-radius: var(--st-r-sm); animation: st-enter var(--st-t-local) var(--st-ease-enter) both; font-size: 12px; }
6096.timeskip-inspection[hidden] { display: none; }
6097.timeskip-inspection p { line-height: 1.6; margin: 6px 0 12px; }
6098.timeskip-inspection ul { padding: 0; margin: 0; list-style: none; }
6099.timeskip-inspection li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--st-line-soft); font-size: 11px; }
6100.timeskip-inspection li span { color: var(--st-ink-muted); }
6101.timeskip-inspection li strong { text-align: right; font-weight: 500; }
6102.timeskip-result { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 0; border-bottom: 1px solid var(--st-line-soft); }
6103.timeskip-result > svg { flex: none; color: var(--st-ink-muted); }
6104.timeskip-result strong { display: block; font-size: 12px; font-weight: 600; }
6105.timeskip-result span { display: block; color: var(--st-ink-muted); font-size: 11px; margin-top: 4px; line-height: 1.6; }
6106.timeskip-result[data-ready] > svg { color: var(--st-accent-text); }
6107.timeskip-hint { font-size: 11px; line-height: 1.6; color: var(--st-ink-muted); margin-block: 12px 0; }
6108.timeskip-footer { display: flex; justify-content: space-between; align-items: center; flex: none; gap: 8px; padding: 12px 20px; min-height: 49px; border-top: 1px solid var(--st-line); font-size: 11px; color: var(--st-ink-muted); }
6109.timeskip-footer button { display: flex; align-items: center; gap: 6px; border: 0; padding: 4px; border-radius: var(--st-r-sm); background: transparent; color: var(--st-ink); font: inherit; cursor: pointer; }
6110.timeskip-footer button:hover { color: var(--st-accent-text); }
6111.timeskip-dots { display: flex; gap: 4px; }
6112.timeskip-dots i { width: 20px; height: 3px; background: var(--st-line); border-radius: 2px; }
6113.timeskip-dots i[data-on] { background: var(--st-accent); }
6114.timeskip-chat-card { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; margin: 18px 0 0; padding: 16px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); color: var(--st-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--st-t-control); }
6115.timeskip-chat-card > svg:first-child { color: var(--st-accent-text); }
6116.timeskip-chat-card > svg { flex: none; }
6117.timeskip-chat-card > span { flex: 1; }
6118.timeskip-chat-card strong { display: block; font-size: 13px; }
6119.timeskip-chat-card span > span { display: block; font-size: 12px; margin-top: 4px; color: var(--st-ink-muted); }
6120.timeskip-chat-card:hover { border-color: var(--st-accent); }
6121.dialog-body:has(> .timeskip-panel) { display: flex; flex-direction: column; padding: 0; min-height: 0; overflow: hidden; }
6122.dialog-body > .timeskip-panel { border: 0; min-height: 0; }
6123@media (max-width: 400px) {
6124  .timeskip-scroll { padding-inline: 14px; }
6125  .timeskip-streams { gap: 16px; }
6126  .timeskip-topline, .timeskip-footer { padding-inline: 14px; }
6127}
6128@media (hover: none) {
6129  .timeskip-stream__label, .timeskip-seed, .timeskip-footer button { min-height: 44px; }
6130}
6131
6132/* Audit palette: button ink meets AA on the requested brand green. */
6133:root {
6134 --st-audit-primary: #10b981;
6135  --st-audit-primary-dark: #087654;
6136  --st-audit-primary-dark-hover: #087654;
6137 --st-audit-primary-ink: #ffffff;
6138 --st-audit-primary-hover: #22ce95;
6139 --st-audit-white: #ffffff;
6140 --st-audit-scrim: rgb(0 0 0 / .36);
6141 --st-audit-scrim-dark: rgb(0 0 0 / .55);
6142 --st-audit-amber: #8a5a00;
6143 --st-audit-amber-dark: #edc66b;
6144}
6145/* Audit fixes: shared states and overlay ownership. */
6146:root {
6147   --layer-base: 0;
6148   --layer-sticky: 10;
6149   --layer-sidebar: 20;
6150   --layer-popover: 100;
6151   --layer-dialog: 160;
6152   --layer-dialog-popover: 180;
6153   --layer-toast: 200;
6154   
6155}
6156
6157html, body {
6158   overflow: hidden;
6159   
6160}
6161
6162.main__body, .dialog-body {
6163   scrollbar-gutter: stable;
6164   
6165}
6166
6167.dialog-layer {
6168   z-index: var(--layer-dialog);
6169   
6170}
6171
6172.dialog-scrim, .scrim {
6173   background: var(--st-audit-scrim);
6174   
6175}
6176
6177[data-theme='dark'] .dialog-scrim, [data-theme='dark'] .scrim {
6178   background: var(--st-audit-scrim-dark);
6179   
6180}
6181
6182.dialog-surface, .palette, .setup__panel {
6183   opacity: 1;
6184   background: var(--st-surface);
6185   animation: none;
6186   
6187}
6188
6189.dialog-head, .dialog-actions {
6190   flex-shrink: 0;
6191   
6192}
6193
6194.select__pop {
6195   z-index: var(--layer-dialog-popover);
6196   background: var(--st-surface);
6197   
6198}
6199
6200.menu, .anchored-popover {
6201   z-index: var(--layer-popover);
6202   background: var(--st-surface);
6203   
6204}
6205
6206/* The accent fill is the tinted material, not the raw brand green with white
6207   ink. This block used to paint #10b981 behind #ffffff: 2.54:1, under AA, and it
6208   also undid section 6's tinted primary. The fill, the edge and the specular
6209   line all come from the accent-surface tokens, so the button and the reader's
6210   own message bubble keep agreeing in both themes. */
6211
6212.st-btn:disabled {
6213   background: var(--st-surface-2);
6214   border-color: var(--st-line);
6215   color: var(--st-ink-muted);
6216   opacity: .65;
6217   box-shadow: none;
6218   
6219}
6220
6221/* The toggle follows the same accent material; its knob is the surface, not a
6222   white disc on a saturated track. */
6223
6224input[type='checkbox'], input[type='radio'] {
6225   accent-color: var(--st-audit-primary);
6226   
6227}
6228
6229textarea {
6230   font-family: inherit;
6231   
6232}
6233
6234.error-notice {
6235   display:flex;
6236   gap:10px;
6237   align-items:flex-start;
6238   padding:12px 14px;
6239   margin:12px 0;
6240   border:1px solid var(--st-danger-text);
6241   border-radius:12px;
6242   background:var(--st-surface);
6243   color:var(--st-danger-text);
6244   font-size:13px;
6245   
6246}
6247
6248.error-notice > svg {
6249   flex-shrink:0;
6250   margin-top:2px;
6251   
6252}
6253
6254.error-notice > div {
6255   flex:1;
6256   min-width:0;
6257   
6258}
6259
6260.error-notice p {
6261   margin:4px 0 0;
6262   color:var(--st-ink-soft);
6263   
6264}
6265
6266.st-input[aria-invalid='true'] {
6267   border-color:var(--st-danger-text);
6268   
6269}
6270
6271.preview-badge {
6272   display:inline-flex;
6273   flex-shrink:0;
6274   align-items:center;
6275   border:1px solid var(--st-line);
6276   border-radius:6px;
6277   color:var(--st-ink-muted);
6278   padding:3px 6px;
6279   font-size:11px;
6280   font-weight:500;
6281   white-space:nowrap;
6282   
6283}
6284
6285.st-msg {
6286   min-width:0;
6287   
6288}
6289
6290.st-msg__meta {
6291   display:flex;
6292   flex-direction:row;
6293   flex-wrap:nowrap;
6294   min-width:0;
6295   width:100%;
6296   gap:8px;
6297   
6298}
6299
6300.st-msg__actions {
6301   display:flex;
6302   flex-wrap:nowrap;
6303   opacity:0;
6304   
6305}
6306
6307.st-msg:hover .st-msg__actions, .st-msg:focus-within .st-msg__actions {
6308   opacity:1;
6309   
6310}
6311
6312.message-overflow {
6313   position:relative;
6314   
6315}
6316
6317.message-overflow[open] > div {
6318   position:absolute;
6319   top:100%;
6320   bottom:auto;
6321   left:0;
6322   min-width:240px;
6323   width:max-content;
6324   max-width:calc(100vw - 40px);
6325   background:var(--st-surface);
6326   border:1px solid var(--st-line);
6327   border-radius:12px;
6328   padding:10px;
6329   z-index:5;
6330   display:flex;
6331   flex-direction:column;
6332   align-items:stretch;
6333   box-shadow:var(--st-sh-pop);
6334   
6335}
6336
6337.st-msg--user .message-overflow[open] > div {
6338   left:auto;
6339   right:0;
6340   
6341}
6342
6343.response-stats {
6344   white-space:nowrap;
6345   
6346}
6347
6348.composer .st-composer textarea {
6349   min-height:44px;
6350   height:44px;
6351   max-height:180px;
6352   padding:12px 16px;
6353   
6354}
6355
6356.composer {
6357   padding-top:10px;
6358   padding-bottom:10px;
6359   
6360}
6361
6362.composer-model {
6363   max-width:270px;
6364   
6365}
6366
6367.composer-model span {
6368   overflow:hidden;
6369   text-overflow:ellipsis;
6370   white-space:nowrap;
6371   
6372}
6373
6374.chat-toolbar__conversation h1 {
6375   min-width:0;
6376   overflow:hidden;
6377   text-overflow:ellipsis;
6378   white-space:nowrap;
6379   
6380}
6381
6382.tool-summary {
6383   font-size:13px;
6384   color:var(--st-ink-soft);
6385   
6386}
6387
6388.tool-summary summary {
6389   display:flex;
6390   align-items:center;
6391   gap:6px;
6392   font-weight:500;
6393   list-style:none;
6394   
6395}
6396
6397.tool-summary summary::-webkit-details-marker {
6398   display:none;
6399   
6400}
6401
6402.tool-summary[open] summary > svg:first-child {
6403   transform:rotate(180deg);
6404   
6405}
6406
6407@media (hover:none) {
6408   .st-msg__actions {
6409   opacity:1;
6410   
6411}
6412 
6413}
6414
6415
6416.text-action {
6417   padding:0;
6418   border:0;
6419   background:none;
6420   color:var(--st-accent-text);
6421   cursor:pointer;
6422   font:inherit;
6423   font-size:12px;
6424   text-decoration:underline;
6425   
6426}
6427
6428
6429.model-hero {
6430   display:flex;
6431   align-items:center;
6432   gap:20px;
6433   border:1px solid var(--st-line);
6434   border-radius:20px;
6435   padding:26px;
6436   background:var(--st-surface);
6437   
6438}
6439
6440.model-hero > div {
6441   flex:1;
6442   min-width:0;
6443   
6444}
6445.model-hero h2 {
6446   margin:6px 0;
6447   font-size:24px;
6448   letter-spacing:-.5px;
6449   
6450}
6451.model-hero p {
6452   margin:0;
6453   
6454}
6455
6456.model-hero__icon {
6457   color:var(--st-accent-text);
6458   
6459}
6460.model-status {
6461   font-size:12px;
6462   color:var(--st-ink-soft);
6463   white-space:nowrap;
6464   
6465}
6466
6467.model-version-layout {
6468   display:grid;
6469   grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);
6470   gap:28px;
6471   align-items:start;
6472   
6473}
6474
6475.version-ladder {
6476   display:flex;
6477   flex-direction:column;
6478   gap:5px;
6479   
6480}
6481.version-rung {
6482   display:flex;
6483   gap:12px;
6484   align-items:center;
6485   width:100%;
6486   text-align:left;
6487   padding:13px;
6488   background:var(--st-surface);
6489   border:1px solid var(--st-line);
6490   border-radius:12px;
6491   font:inherit;
6492   color:var(--st-ink);
6493   cursor:pointer;
6494   
6495}
6496
6497.version-rung[aria-pressed='true'] {
6498   border-color:var(--st-accent-text);
6499   background:var(--st-accent-surface);
6500   
6501}
6502.version-rung small {
6503   display:block;
6504   color:var(--st-ink-muted);
6505   font-size:12px;
6506   margin-top:4px;
6507   
6508}
6509.version-rung__node {
6510   color:var(--st-accent-text);
6511   
6512}
6513.version-rung__state {
6514   margin-left:auto;
6515   font-size:11px;
6516   color:var(--st-ink-soft);
6517   text-align:right;
6518   
6519}
6520.version-rung[data-fit='too-big'] .version-rung__node {
6521   color:var(--st-ink-muted);
6522   
6523}
6524
6525.version-detail {
6526   border:1px solid var(--st-line);
6527   border-radius:20px;
6528   padding:24px;
6529   background:var(--st-surface);
6530   position:sticky;
6531   top:12px;
6532   
6533}
6534.version-detail h2 {
6535   font-size:30px;
6536   margin:20px 0 4px;
6537   
6538}
6539.version-numbers {
6540   display:flex;
6541   gap:28px;
6542   margin:24px 0;
6543   
6544}
6545.version-numbers strong {
6546   font-size:22px;
6547   
6548}
6549.version-numbers span {
6550   display:block;
6551   font-size:12px;
6552   color:var(--st-ink-muted);
6553   margin-top:6px;
6554   
6555}
6556.installed-version {
6557   display:flex;
6558   justify-content:space-between;
6559   align-items:center;
6560   border-bottom:1px solid var(--st-line);
6561   padding:14px 0;
6562   
6563}
6564.installed-version small {
6565   display:block;
6566   color:var(--st-ink-muted);
6567   margin-top:4px;
6568   
6569}
6570
6571@media(max-width:850px) {
6572   .model-version-layout {
6573   grid-template-columns:1fr;
6574   
6575}
6576.model-hero {
6577   padding:18px;
6578   
6579}
6580.model-hero h2 {
6581   font-size:19px;
6582   
6583}
6584.version-detail {
6585   position:static;
6586   
6587}
6588 
6589}
6590
6591
6592.simple-engine {
6593   display:flex;
6594   flex-direction:column;
6595   gap:24px;
6596   
6597}
6598.auto-tune-card {
6599   padding:24px;
6600   background:var(--st-surface);
6601   border:1px solid var(--st-line);
6602   border-radius:20px;
6603   
6604}
6605.auto-tune-card > svg {
6606   color:var(--st-accent-text);
6607   
6608}
6609.auto-tune-card h2 {
6610   margin-top:12px;
6611   
6612}
6613
6614.workload-cards {
6615   display:flex;
6616   gap:8px;
6617   
6618}
6619.workload-cards button {
6620   flex:1;
6621   min-width:0;
6622   padding:12px;
6623   text-align:left;
6624   border:1px solid var(--st-line);
6625   border-radius:12px;
6626   background:var(--st-surface);
6627   color:var(--st-ink);
6628   font:inherit;
6629   cursor:pointer;
6630   
6631}
6632.workload-cards button[aria-pressed='true'] {
6633   border-color:var(--st-accent-text);
6634   background:var(--st-accent-surface);
6635   
6636}
6637.workload-cards span {
6638   display:block;
6639   font-size:12px;
6640   color:var(--st-ink-soft);
6641   margin-top:6px;
6642   
6643}
6644.simple-engine input[type='range'] {
6645   width:100%;
6646   accent-color:var(--st-accent);
6647   
6648}
6649
6650.engine-subtabs {
6651   display:flex;
6652   gap:24px;
6653   border-bottom:1px solid var(--st-line);
6654   
6655}
6656.engine-subtabs button {
6657   padding:10px 0;
6658   border:0;
6659   border-bottom:2px solid transparent;
6660   background:none;
6661   font:inherit;
6662   color:var(--st-ink-muted);
6663   cursor:pointer;
6664   
6665}
6666.engine-subtabs button[aria-selected='true'] {
6667   color:var(--st-ink);
6668   border-bottom-color:var(--st-accent);
6669   
6670}
6671
6672.expert-engine {
6673   gap:12px;
6674   
6675}
6676.parameter-group {
6677   margin:0;
6678   
6679}
6680.parameter-group > h2 {
6681   margin:12px 0 4px;
6682   
6683}
6684.parameter-row {
6685   display:grid;
6686   grid-template-columns:minmax(220px,1fr) minmax(230px,1fr);
6687   gap:20px;
6688   padding:10px 0;
6689   
6690}
6691.parameter-key {
6692   display:inline;
6693   margin-left:8px;
6694   font-size:11px;
6695   
6696}
6697.parameter-row .parameter-support {
6698   display:block;
6699   
6700}
6701.parameter-toolbar {
6702   gap:12px;
6703   padding:8px 0;
6704   
6705}
6706.parameter-control {
6707   display:flex;
6708   align-items:center;
6709   gap:8px;
6710   
6711}
6712.parameter-control > :first-child {
6713   flex:1;
6714   
6715}
6716.parameter-control .st-input {
6717   min-height:32px;
6718   
6719}
6720.config-savebar {
6721   display:flex;
6722   flex-wrap:nowrap;
6723   align-items:center;
6724   gap:12px;
6725   padding:10px 14px;
6726   margin-top:12px;
6727   min-height:0;
6728   position:sticky;
6729   bottom:0;
6730   background:var(--st-surface);
6731   
6732}
6733.config-editor {
6734   min-height:320px;
6735   font-family:var(--st-font-mono);
6736   
6737}
6738.tuning {
6739   padding-bottom:24px;
6740   
6741}
6742
6743.tune-progress {
6744   text-align:center;
6745   padding:10px 20px 24px;
6746   
6747}
6748.tune-orbit {
6749   width:180px;
6750   height:180px;
6751   margin:0 auto 20px;
6752   display:grid;
6753   place-items:center;
6754   position:relative;
6755   color:var(--st-accent-text);
6756   
6757}
6758.tune-orbit > svg:first-child {
6759   position:absolute;
6760   inset:0;
6761   width:100%;
6762   height:100%;
6763   transform:rotate(180deg);
6764   
6765}
6766.tune-orbit circle {
6767   fill:none;
6768   stroke:var(--st-line);
6769   stroke-width:3;
6770   
6771}
6772.tune-orbit circle+circle {
6773   stroke:var(--st-accent);
6774   stroke-linecap:round;
6775   transition:stroke-dasharray var(--st-t-local) var(--st-ease-standard);
6776   
6777}
6778.tune-orbit[data-complete='true'] {
6779   color:var(--st-accent-text);
6780   
6781}
6782.tune-steps {
6783   display:flex;
6784   justify-content:center;
6785   gap:6px;
6786   margin-top:24px;
6787   
6788}
6789.tune-steps span {
6790   width:22px;
6791   height:5px;
6792   border-radius:2px;
6793   background:var(--st-line);
6794   
6795}
6796.tune-steps span[data-done='true'] {
6797   background:var(--st-accent);
6798   
6799}
6800
6801@media(prefers-reduced-motion:reduce) {
6802   .tune-orbit circle+circle {
6803   transition:none;
6804   
6805}
6806 
6807}
6808[data-motion='reduced'] .tune-orbit circle+circle {
6809   transition:none;
6810   
6811}
6812
6813
6814.request-status {
6815   display:inline-flex;
6816   padding:3px 8px;
6817   border-radius:6px;
6818   background:var(--st-surface-2);
6819   color:var(--st-ink-soft);
6820   font-size:12px;
6821   white-space:nowrap;
6822   
6823}
6824.request-status[data-state='generating'] {
6825   color:var(--st-info-text);
6826   
6827}
6828.request-status[data-state='done'] {
6829   color:var(--st-accent-text);
6830   
6831}
6832.request-status[data-state='error'],.task-failed {
6833   color:var(--st-danger-text);
6834   
6835}
6836.request-status[data-state='shared'] {
6837   color:var(--st-warn-text);
6838   
6839}
6840
6841.setupmodal__surface {
6842   max-height:calc(100dvh - 48px);
6843   overflow:auto;
6844   background:var(--st-surface);
6845   opacity:1;
6846   animation:none;
6847   
6848}
6849.setup-redesign .setup-actions {
6850   position:sticky;
6851   bottom:0;
6852   padding:16px 0;
6853   background:var(--st-surface);
6854   z-index:2;
6855   
6856}
6857.setup-headline:focus {
6858   outline:none;
6859   
6860}
6861.setup-redesign .version-rung {
6862   padding:9px 12px;
6863   
6864}
6865.settings-body output {
6866   white-space:nowrap;
6867   min-width:44px;
6868   
6869}
6870
6871
6872.preview-controls {
6873   display:flex;
6874   align-items:center;
6875   gap:8px;
6876   
6877}
6878.preview-controls > .st-btn:first-child svg {
6879   transform:rotate(90deg);
6880   
6881}
6882.preview-controls > .st-btn:nth-of-type(2) svg {
6883   transform:rotate(180deg);
6884   
6885}
6886.pdf-controls .preview-controls {
6887   width:100%;
6888   
6889}
6890.preview-controls > .st-tabs {
6891   margin-left:auto;
6892   
6893}
6894.pdf-canvas-wrap {
6895   overflow:auto;
6896   align-items:normal;
6897   
6898}
6899.pdf-canvas-wrap > canvas {
6900   flex-shrink:0;
6901   margin:0 auto;
6902   
6903}
6904.pdf-text {
6905   white-space:pre-wrap;
6906   
6907}
6908.artifact-tabs {
6909   overflow-x:auto;
6910   min-width:0;
6911   flex:1;
6912   mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent);
6913   padding-right:18px;
6914   
6915}
6916.preview-window-actions {
6917   flex-shrink:0;
6918   
6919}
6920.timeskip-checkpoint[data-tone='gap'] > span:last-child {
6921   color:var(--st-audit-amber);
6922   
6923}
6924.timeskip-topline {
6925   border-bottom:1px solid var(--st-line);
6926   
6927}
6928.timeskip-footer {
6929   flex-wrap:wrap;
6930   gap:10px;
6931   
6932}
6933.timeskip-footer .st-btn {
6934   padding:6px 10px;
6935   
6936}
6937.timeskip-footer .st-btn--primary {
6938   color:var(--st-audit-primary-ink);
6939   
6940}
6941
6942[data-theme='dark'] .timeskip-checkpoint[data-tone='gap'] > span:last-child {
6943   color:var(--st-audit-amber-dark);
6944   
6945}
6946
6947
6948/* Expert chrome stays compact enough to keep multiple groups in view. */
6949.tuning[data-mode='expert'], .expert-engine {
6950  gap: 12px;
6951}
6952.expert-engine .engine-details {
6953  margin: 0;
6954  padding: 0;
6955}
6956.expert-engine .parameter-row {
6957  padding: 4px 0;
6958}
6959.expert-engine .parameter-support {
6960  font-size: 11px;
6961  line-height: 1.25;
6962}
6963.expert-engine .parameter-group h2 {
6964  margin: 8px 0 4px;
6965}
6966.expert-engine .parameter-toolbar {
6967  margin: 0;
6968}
6969
6970.expert-engine .parameter-group {
6971  padding-top: 4px;
6972}
6973.expert-engine .parameter-control > .st-toggle {
6974  flex: 0 0 42px;
6975  width: 42px;
6976}
6977.expert-engine .parameter-support:not([data-unsupported]) {
6978  display: none;
6979}
6980.expert-engine .parameter-row {
6981  align-items: center;
6982}
6983.expert-engine .parameter-control > .st-btn {
6984  margin-left: auto;
6985}
6986
6987[data-theme='dark'] .st-btn--primary:not(:disabled) {
6988  background: var(--st-audit-primary-dark);
6989  border-color: var(--st-audit-primary-dark);
6990  color: var(--st-audit-white);
6991}
6992[data-theme='dark'] .st-btn--primary:hover:not(:disabled) {
6993  background: var(--st-audit-primary-dark-hover);
6994  border-color: var(--st-audit-primary-dark-hover);
6995  color: var(--st-audit-white);
6996}
6997
6998.st-msg__actions:has([aria-expanded='true']) {
6999  opacity: 1;
7000}
7001.menu .response-stats {
7002  white-space: normal;
7003  padding: 8px;
7004}
7005
7006/* The reading size reaches everything in a conversation, not only paragraphs: headings, inline code, tables, code blocks and the
7007   model's reasoning keep their usual proportion (18px, 13px, 13px at the 16px default) at any size. */
7008.st-bubble h2, .st-bubble h3, .st-bubble h4 { font-size: var(--st-fs-read-lg); }
7009.st-bubble .md-code { font-size: var(--st-fs-read-sm); }
7010.st-bubble .md-table { font-size: var(--st-fs-read-sm); }
7011.st-bubble .md-table th, .st-bubble .md-table td { font-size: inherit; }
7012.st-bubble .st-code pre, .st-bubble .st-code pre code, .st-bubble .st-code .syntax-text { font-size: var(--st-fs-read-sm); }
7013.st-msg--assistant .st-collapse__body { font-size: var(--st-fs-read-sm); }
7014.error-notice .error-detail { margin-top: 6px; }
7015.error-notice .error-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; font-family: var(--st-font-mono); max-height: 3.3em; overflow-y: auto; }
7016.error-detail-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; font-family: var(--st-font-mono); }
7017/* What you type and the small print under each message follow the reading size too, so the whole conversation changes together. */
7018.st-composer textarea { font-size: var(--st-content-fs, 12px); }
7019.st-msg__meta, .st-msg__meta time { font-size: var(--st-fs-read-sm); }
7020
7021/* What an approval is about, shown without opening the card: the file or the command. */
7022.toolcard__what { display: block; margin: 4px 0 2px; padding: 6px 10px; background: var(--st-surface-2); color: var(--st-ink); border: 1px solid var(--st-line); border-radius: var(--st-r-sm); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 6.5em; overflow: auto; font-size: 12px; }
7023.tool-summary__target { min-width: 0; max-width: 28em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--st-font-mono); font-size: 12px; }
7024
7025/* ---- Models: the version list and "This computer" ---- */
7026.version-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); color: var(--st-ink); font: inherit; cursor: pointer; text-align: left; }
7027.version-trigger__need { margin-left: auto; font-size: var(--st-fs-sm); text-align: right; }
7028@media (max-width: 560px) {
7029  .version-trigger { flex-wrap: wrap; padding-block: 10px; row-gap: 2px; }
7030  .version-trigger__need { order: 3; flex-basis: 100%; margin-left: 0; text-align: left; }
7031  .version-trigger .version-trigger__chev { order: 2; margin-left: auto; }
7032}
7033.version-trigger svg:last-child { flex: none; }
7034/* The version list: one row per version, 14px names, 13px detail, small tags; the technical line is behind "Show details". */
7035.version-menu { display: flex; flex-direction: column; max-height: min(70vh, 560px); overflow: auto; padding: 6px; }
7036.version-section + .version-section { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--st-hairline); }
7037.version-section__title { padding: 8px 10px 4px; font-size: var(--st-fs-xs); font-weight: 600; color: var(--st-ink-muted); }
7038.version-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--st-r-sm); background: transparent; color: var(--st-ink); font: inherit; font-size: var(--st-fs-md); text-align: left; cursor: pointer; }
7039.version-row:hover, .version-row:focus-visible { background: var(--st-surface-2); }
7040.version-row.is-on { background: var(--st-accent-tint); }
7041.version-row__check { padding-top: 3px; color: var(--st-accent-text); }
7042.version-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
7043.version-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
7044.version-row__title strong { font-weight: 600; overflow-wrap: anywhere; }
7045.version-row__word { font-size: var(--st-fs-sm); color: var(--st-ink-muted); }
7046.version-row__tech { font-size: var(--st-fs-sm); line-height: 1.4; color: var(--st-ink-muted); }
7047.version-row__size { font-size: var(--st-fs-sm); line-height: 20px; color: var(--st-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
7048.version-row__fit { font-size: var(--st-fs-sm); line-height: 1.4; color: var(--st-ink-muted); }
7049.version-row__fit[data-fit='ssd'], .version-row__fit[data-fit='no'] { color: var(--st-warn-text); }
7050.version-more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--st-r-sm); background: transparent; color: var(--st-ink-soft); font: inherit; font-size: var(--st-fs-sm); font-weight: 600; cursor: pointer; text-align: left; }
7051.version-more:hover, .version-more:focus-visible { background: var(--st-surface-2); color: var(--st-ink); }
7052.version-more__chev { transition: transform var(--st-t-local) var(--st-ease-standard); }
7053.version-more__chev.is-open { transform: rotate(180deg); }
7054.version-more__rows { animation: st-enter var(--st-t-local) var(--st-ease-enter) both; --st-from-y: -4px; }
7055.version-row__tags { display: inline-flex; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
7056.version-tag { padding: 0 8px; border-radius: var(--st-r-pill); font-size: var(--st-fs-xs); font-weight: 600; line-height: 20px; white-space: nowrap; }
7057.version-tag--have { box-shadow: inset 0 0 0 1px var(--st-line); color: var(--st-ink-soft); }
7058.version-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--st-hairline); }
7059.version-foot__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: var(--st-r-sm); background: transparent; color: var(--st-ink-soft); font: inherit; font-size: var(--st-fs-sm); cursor: pointer; }
7060.version-foot__btn:hover, .version-foot__btn:focus-visible { background: var(--st-surface-2); color: var(--st-ink); }
7061.pc-card { display: flex; flex-direction: column; gap: 18px; }
7062.pc-card p { margin: 2px 0 0; }
7063.pc-meter { display: flex; flex-direction: column; gap: 7px; }
7064.pc-meter__top { display: flex; align-items: baseline; gap: 8px; font-size: var(--st-fs-sm); }
7065.pc-meter__top span:first-child { font-weight: 700; margin-right: auto; }
7066.pc-meter__top b { font-size: var(--st-fs-lg); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
7067.pc-meter__track { height: 10px; border-radius: var(--st-r-pill); background: var(--st-surface-2); border: 1px solid var(--st-line); overflow: hidden; }
7068.pc-meter__track i { display: block; height: 100%; background: var(--st-accent); border-radius: var(--st-r-pill); }
7069.pc-note { font-size: var(--st-fs-sm); color: var(--st-ink-soft); }
7070
7071/* ---- approval card: calm, compact, one question ---- */
7072.askcard { border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); margin: 6px 0; }
7073.askcard__top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
7074.askcard__icon { flex: none; display: grid; place-items: center; color: var(--st-ink-muted); }
7075.askcard__text { flex: 1; min-width: 0; }
7076.askcard__q { margin: 0; font-size: var(--st-fs-md); font-weight: 700; line-height: 1.3; }
7077.askcard__why { margin: 0; font-size: var(--st-fs-sm); color: var(--st-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7078.askcard__acts { display: flex; gap: 8px; flex: none; }
7079.askcard__details { border-top: 1px solid var(--st-line-soft); }
7080.askcard__details summary { list-style: none; cursor: pointer; padding: 6px 14px; font-size: var(--st-fs-xs); font-weight: 500; color: var(--st-ink-muted); display: flex; align-items: center; gap: 6px; }
7081.askcard__details summary::-webkit-details-marker { display: none; }
7082.askcard__details[open] summary svg { transform: rotate(180deg); }
7083.askcard__details pre { margin: 0 14px 10px; padding: 8px 10px; background: var(--st-code-bg); color: var(--st-code-ink); border-radius: var(--st-r-sm); font: 12px/1.5 var(--st-font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
7084@media (max-width: 560px) { .askcard__top { flex-wrap: wrap; } .askcard__acts { margin-left: 32px; } }
7085
7086/* ---- an opened task ---- */
7087.main__back { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; padding: 0; border: 0; background: transparent; color: var(--st-ink-muted); font: inherit; font-size: var(--st-fs-sm); font-weight: 500; cursor: pointer; }
7088.main__back svg { transform: rotate(90deg); }
7089.main__back:hover { color: var(--st-ink); }
7090.task-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
7091.task-state { font-size: var(--st-fs-sm); font-weight: 700; color: var(--st-ink-muted); margin-left: 10px; }
7092.task-state[data-state="running"], .task-state[data-state="running"] { color: var(--st-accent-text); }
7093.task-detail { display: flex; flex-direction: column; gap: 16px; }
7094.task-detail .label { display: block; font-size: var(--st-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-muted); margin: 0 0 6px; }
7095.task-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; padding: 18px 4px; }
7096.task-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 2px 20px; border-left: 1px solid var(--st-line-soft); min-width: 0; }
7097.task-facts > div:first-child { border-left: 0; }
7098.task-facts strong { display: flex; align-items: center; gap: 8px; font-weight: 700; }
7099.task-facts strong svg { flex: none; color: var(--st-icon); }
7100.task-facts .is-good { color: var(--st-accent-text); }
7101.task-facts .is-good svg { color: currentColor; }
7102.task-facts .is-bad { color: var(--st-danger-text); }
7103
7104/* ---- Tune model: the steps and the live speed ---- */
7105.tune-run { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0; margin: 0 -4px; }
7106.tune-steps2 { list-style: none; margin: 0; padding: 0 20px 0 4px; display: flex; flex-direction: column; }
7107.tune-step { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; position: relative; }
7108.tune-step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 56px; bottom: -8px; width: 2px; background: var(--st-line); }
7109.tune-step[data-s="done"]:not(:last-child)::after { background: var(--st-accent); }
7110.tune-step__badge { width: 44px; height: 44px; border-radius: var(--st-r-md); display: grid; place-items: center; background: var(--st-surface-2); border: 1px solid var(--st-line); color: var(--st-ink-muted); position: relative; }
7111.tune-step[data-s="run"] .tune-step__badge { background: var(--st-accent-tint); color: var(--st-accent-text); border-color: var(--st-accent); }
7112.tune-step[data-s="run"] .tune-step__state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: st-pulse 1.6s var(--st-ease-in-out) infinite; }
7113.tune-step[data-s="done"] .tune-step__badge { background: var(--st-accent); color: var(--st-accent-ink); border-color: transparent; animation: tune-pop 260ms var(--st-ease); }
7114.tune-step__text { display: flex; flex-direction: column; min-width: 0; }
7115.tune-step__text small { color: var(--st-ink-muted); font-size: var(--st-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7116.tune-step[data-s="pending"] .tune-step__text strong { color: var(--st-ink-muted); }
7117.tune-step__state { font-size: var(--st-fs-xs); font-weight: 700; color: var(--st-ink-muted); }
7118.tune-step[data-s="run"] .tune-step__state, .tune-step[data-s="done"] .tune-step__state { color: var(--st-accent-text); }
7119.tune-live { border-left: 1px solid var(--st-line); background: var(--st-surface-2); padding: 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 0 var(--st-r-md) var(--st-r-md) 0; }
7120.tune-live .label, .tune-hero .label { display: block; font-size: var(--st-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-muted); }
7121.tune-live__big { font-size: var(--st-fs-display); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
7122.tune-live__big small { display: block; margin-top: 4px; font-size: var(--st-fs-sm); font-weight: 500; color: var(--st-ink-muted); letter-spacing: 0; }
7123.tune-spark { width: 100%; height: 64px; }
7124.tune-spark--empty { border-bottom: 1px dashed var(--st-line); }
7125.tune-spark__fill { fill: var(--st-accent-tint); }
7126.tune-spark__line { fill: none; stroke: var(--st-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
7127.tune-spark circle { fill: var(--st-accent); }
7128.tune-live__bar { height: 8px; border-radius: var(--st-r-pill); background: var(--st-line); overflow: hidden; }
7129.tune-live__bar i { display: block; height: 100%; width: 100%; background: var(--st-accent); border-radius: var(--st-r-pill); transform-origin: left center; transition: transform var(--st-t-local) var(--st-ease-standard); }
7130.tune-live__list { list-style: none; margin: 0; padding: 0; font-size: var(--st-fs-sm); }
7131.tune-live__list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--st-line-soft); }
7132.tune-live__list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-ink-soft); }
7133.tune-live__list b { font-variant-numeric: tabular-nums; color: var(--st-ink-muted); }
7134.tune-live__list b[data-up] { color: var(--st-accent-text); }
7135.tune-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
7136.tune-hero { border-radius: var(--st-r-lg); padding: 22px; background: color-mix(in srgb, var(--st-accent) 6%, var(--st-surface)); border: 1px solid color-mix(in srgb, var(--st-accent) 28%, transparent); }
7137.tune-hero__big { font-size: var(--st-fs-display); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; color: var(--st-accent-text); animation: tune-pop var(--st-t-local) var(--st-ease-enter); }
7138.tune-hero p { margin: 8px 0 0; }
7139.tune-compare { display: flex; flex-direction: column; gap: 10px; }
7140.tune-compare > div { display: grid; grid-template-columns: 64px 1fr 56px; gap: 10px; align-items: center; }
7141.tune-compare b { text-align: right; font-variant-numeric: tabular-nums; }
7142.tune-compare__bar { height: 12px; border-radius: var(--st-r-pill); background: var(--st-line); overflow: hidden; }
7143.tune-compare__bar i { display: block; height: 100%; width: 100%; border-radius: var(--st-r-pill); background: var(--st-ink-muted); transform-origin: left center; transition: transform var(--st-t-local) var(--st-ease-standard); }
7144.tune-compare > div[data-new] .tune-compare__bar i { background: var(--st-accent); }
7145.tune-compare p { margin: 4px 0 0; grid-column: 1 / -1; }
7146@keyframes tune-pop { 0% { transform: scale(.7); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
7147@media (max-width: 720px) { .tune-run, .tune-result { grid-template-columns: 1fr; } .tune-live { border-left: 0; border-top: 1px solid var(--st-line); border-radius: 0 0 var(--st-r-md) var(--st-r-md); margin-top: 8px; } }
7148@media (prefers-reduced-motion: reduce) {
7149  .tune-step[data-s="run"] .tune-step__badge, .tune-step[data-s="run"] .tune-step__state::before, .tune-step[data-s="run"] .tune-step__badge svg, .tune-step[data-s="done"] .tune-step__badge, .tune-hero__big { animation: none !important; }
7150  .tune-live__bar i, .tune-compare__bar i { transition: none; }
7151}
7152
7153/* ---- tool rows: compact, no dividers between them ---- */
7154.tool-summary { border-top: 0; padding-block: 3px; color: var(--st-ink-muted); }
7155.tool-summary summary { font-weight: 500; min-height: 22px; cursor: pointer; }
7156.tool-summary > div { margin-top: 6px; padding-left: 20px; }
7157
7158/* ---- the live status line ---- */
7159.live-status { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; min-height: 28px; margin-top: 6px; color: var(--st-ink-soft); font-size: var(--st-fs-sm); }
7160/* no fixed widths (a long time such as "103m 19s" or "1,234,567 tokens" must never run into its neighbour): the word takes what it needs up to 24 characters and gives way first,
7161   the time and the count keep their own width and drop to a second line when the row is too narrow */
7162.live-status__verb { flex: 0 1 24ch; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7163.live-status__time, .live-status__tokens { flex: none; font-variant-numeric: tabular-nums; color: var(--st-ink-muted); white-space: nowrap; }
7164.live-status__tokens:empty { display: none; }
7165@media (max-width: 520px) { .live-status__verb { flex: 1 1 0; min-width: 12ch; } }
7166.live-status__verb { font-weight: 700; color: var(--st-ink); animation: live-verb var(--st-t-control) var(--st-ease-enter); }
7167.live-status__pulse { width: 14px; height: 14px; position: relative; flex: none; }
7168.live-status__pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--st-accent); opacity: .9; animation: st-pulse 1.6s var(--st-ease-in-out) infinite; }
7169.live-status__pulse i:nth-child(2) { animation-delay: .45s; opacity: .5; }
7170@keyframes live-verb { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
7171@media (prefers-reduced-motion: reduce) { .live-status__pulse i, .live-status__verb { animation: none; } }
7172
7173/* ---- reasoning: one quiet line, the answer is the main content ---- */
7174.rz { border-left: 2px solid var(--st-line); padding: 0 0 0 12px; margin: 2px 0 6px; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7175.rz > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 24px; }
7176.rz > summary::-webkit-details-marker { display: none; }
7177.rz__label { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7178.rz[data-live] .rz__label { color: var(--st-ink-soft); }
7179.rz__chev { flex: none; transition: transform var(--st-dur) var(--st-ease); }
7180.rz[open] .rz__chev { transform: rotate(180deg); }
7181.rz__body { margin: 8px 0 4px; max-height: 168px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 13px; color: var(--st-ink-muted); scrollbar-width: thin; }
7182.rz__jump { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px; padding: 0; border: 0; background: transparent; color: var(--st-accent-text); font: inherit; font-size: var(--st-fs-xs); font-weight: 700; cursor: pointer; }
7183.rz__jump svg { transform: rotate(0deg); }
7184
7185/* ---- the goal bar ---- */
7186.goalbar { display: flex; align-items: center; gap: 6px; margin: 0 14px -8px; padding: 6px 6px 14px 12px; border: 1px solid var(--st-line); border-bottom: 0; border-radius: var(--st-r-md) var(--st-r-md) 0 0; background: var(--st-surface-2); color: var(--st-ink-soft); font-size: var(--st-fs-sm); }
7187.goalbar > svg { flex: none; color: var(--st-icon); }
7188.goalbar__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7189.goalbar__text > span { color: var(--st-ink-muted); }
7190.goalbar__state { color: var(--st-ink-muted); }
7191.goalbar[data-phase='complete'] .goalbar__state { color: var(--st-accent-text); }
7192.goalbar[data-phase='blocked'] .goalbar__state { color: var(--st-warn-text); }
7193.goalbar[data-phase="complete"] > svg { color: var(--st-accent-text); }
7194.goalbar .st-btn--icon { width: 28px; height: 28px; }
7195
7196/* ---- Time-skip: working in the chat ---- */
7197.tsw { border: 1px solid var(--st-line); border-radius: var(--st-r-lg); background: var(--st-surface); overflow: hidden; margin: 6px 0; }
7198.tsw__stage { padding: 24px 22px 16px; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 8px;  }
7199.tsw__ver { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
7200.tsw__ver span { font-size: var(--st-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-muted); }
7201.tsw__ver i { display: block; height: 6px; border-radius: var(--st-r-pill); background: var(--st-line); }
7202.tsw__ver--b { border-color: var(--st-accent); }
7203.tsw__ver--b i { background: color-mix(in srgb, var(--st-accent) 55%, var(--st-line)); }
7204.tsw__flow { position: relative; height: 40px; }
7205.tsw__flow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--st-line); }
7206.tsw__flow i { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--st-accent); animation: st-pulse 1.6s var(--st-ease-in-out) infinite; }
7207.tsw__flow i:nth-child(1) { left: 18%; } .tsw__flow i:nth-child(2) { left: 50%; animation-delay: .2s; } .tsw__flow i:nth-child(3) { left: 82%; animation-delay: .4s; }
7208.tsw__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--st-line-soft); }
7209.tsw__step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
7210.tsw__step strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7211.tsw__prog { height: 6px; border-radius: 6px; background: var(--st-line); overflow: hidden; margin-top: 6px; }
7212.tsw__prog i { display: block; height: 100%; width: 100%; background: var(--st-accent); border-radius: 6px; transform-origin: left center; transition: transform var(--st-t-local) var(--st-ease-standard); }
7213@media (max-width: 560px) { .tsw__stage { grid-template-columns: 1fr; } .tsw__flow { display: none; } }
7214@media (prefers-reduced-motion: reduce) { .tsw__flow i, .tsw__ver--b i { animation: none; } .tsw__prog i { transition: none; } }
7215
7216/* ---- Time-skip: A versus B, one window whatever was made ---- */
7217.tsc { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
7218.tsc-files { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--st-line-soft); scrollbar-width: thin; }
7219.tsc-files button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--st-ink-muted); font: inherit; font-size: var(--st-fs-sm); cursor: pointer; white-space: nowrap; }
7220.tsc-files button[aria-selected="true"] { color: var(--st-ink); font-weight: 700; border-bottom-color: var(--st-accent); }
7221.tsc-files small, .tsc-one small { color: var(--st-ink-muted); font-weight: 400; }
7222.tsc-more { align-self: center; padding: 0 8px; font-size: var(--st-fs-xs); color: var(--st-ink-muted); }
7223.tsc-one { display: flex; align-items: center; gap: 8px; font-size: var(--st-fs-sm); }
7224.tsc-stage { display: flex; flex-direction: column; height: clamp(240px, 46vh, 420px); overflow: auto; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); padding: 10px 12px; scrollbar-width: thin; }
7225.tsc-heads { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: -10px; z-index: 1; margin: -10px -12px 8px; padding: 8px 12px; background: var(--st-surface); border-bottom: 1px solid var(--st-line-soft); font-size: var(--st-fs-xs); color: var(--st-ink-muted); text-transform: uppercase; letter-spacing: .06em; }
7226.tsc-heads b { color: var(--st-ink); }
7227.tsc-pair { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
7228.tsc-pair--text > div + div { border-left: 1px solid var(--st-line-soft); padding-left: 12px; }
7229.tsc-doc p { margin: 0 0 6px; line-height: 1.5; overflow-wrap: anywhere; font-size: var(--st-fs-sm); }
7230.tsc-doc mark { background: color-mix(in srgb, var(--st-accent) 22%, transparent); color: var(--st-ink); border-radius: 6px; padding: 0; box-decoration-break: clone; }
7231.tsc-pair--text > div:first-child mark { background: color-mix(in srgb, var(--st-danger) 16%, transparent); }
7232.tsc-doc--md .tsc-h { font-weight: 700; }
7233.tsc-doc--md .tsc-h1 { font-size: var(--st-fs-base); } .tsc-doc--md .tsc-h2 { font-size: var(--st-fs-md); }
7234.tsc-doc--md .tsc-li { position: relative; padding-left: 16px; } .tsc-doc--md .tsc-li::before { content: "•"; position: absolute; left: 4px; color: var(--st-ink-muted); }
7235.tsc-doc--md .tsc-code, .tsc-doc--md .tsc-fence { font-family: var(--st-font-mono); font-size: 12px; background: var(--st-surface-2); padding: 0 6px; margin: 0; }
7236.tsc-pair--html { flex: 1 1 0; min-height: 120px; align-items: stretch; }
7237.tsc-pair--html iframe { width: 100%; height: 100%; min-height: 120px; border: 1px solid var(--st-line); border-radius: var(--st-r-sm); background: var(--st-surface); }
7238.tsc-pair--pictures { flex: 1 1 0; min-height: 120px; align-items: stretch; }
7239.tsc-picture { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; padding: 6px; border: 1px solid var(--st-line); border-radius: var(--st-r-sm); background: var(--st-surface-2); cursor: zoom-in; overflow: hidden; }
7240.tsc-picture img { max-width: 100%; max-height: 100%; object-fit: contain; }
7241.tsc-picture--empty { cursor: default; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7242.tsc-enlarged { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
7243.tsc-tools { flex: none; display: flex; justify-content: flex-end; margin: -4px 0 4px; }
7244.tsc-note { margin: 0; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7245.tsc-diff { font-family: var(--st-font-mono); font-size: 12px; line-height: 1.5; }
7246.tsc-diff__stats { display: flex; gap: 10px; margin-bottom: 6px; font-family: var(--st-font); font-size: var(--st-fs-xs); font-weight: 700; }
7247.tsc-add { color: var(--st-accent-text); } .tsc-del { color: var(--st-danger-text); }
7248.tsc-diff__row { display: grid; grid-template-columns: 34px 34px 14px 1fr; gap: 6px; }
7249.tsc-diff__row code { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
7250.tsc-diff__no { color: var(--st-ink-muted); text-align: right; user-select: none; }
7251.tsc-diff__sign { color: var(--st-ink-muted); text-align: center; font-weight: 700; user-select: none; }
7252.tsc-diff__row--add .tsc-diff__sign { color: var(--st-accent-text); }
7253.tsc-diff__row--del .tsc-diff__sign { color: var(--st-danger-text); }
7254.tsc-diff__row--add { background: var(--st-accent-tint); } .tsc-diff__row--del { background: var(--st-danger-tint); }
7255.tsc-diff__gap { padding: 2px 8px; color: var(--st-ink-muted); font-family: var(--st-font); font-size: var(--st-fs-xs); background: var(--st-surface-2); margin: 2px 0; }
7256@media (max-width: 560px) { .tsc-pair, .tsc-heads { grid-template-columns: 1fr; } .tsc-pair--text > div + div { border-left: 0; padding-left: 0; } }
7257
7258/* ---- Settings > Storage: downloaded optimized models ---- */
7259.storage-models { list-style: none; margin: 0; padding: 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); overflow: hidden; }
7260.storage-model { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px 8px 14px; }
7261.storage-model + .storage-model { border-top: 1px solid var(--st-line-soft); }
7262.storage-model__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
7263.storage-model__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
7264.storage-model__size { font-variant-numeric: tabular-nums; font-size: var(--st-fs-sm); }
7265
7266/* ---- About > Privacy: plain text ---- */
7267.privacy-notes { padding: 2px 0; }
7268.privacy-notes p { margin: 0; max-width: 68ch; font-size: var(--st-fs-sm); line-height: 1.6; color: var(--st-ink-soft); }
7269
7270/* ---- an opened task: the name, and a last answer that is easy to read ---- */
7271.task-name { margin: 0 0 2px; font-size: var(--st-fs-xl); letter-spacing: -.02em; }
7272.task-answer { font-size: var(--st-fs-md); line-height: 1.65; color: var(--st-ink); max-width: 72ch; }
7273.task-answer > * + * { margin-top: 12px; }
7274.task-answer h1, .task-answer h2, .task-answer h3 { margin: 18px 0 6px; line-height: 1.3; letter-spacing: -.01em; }
7275.task-answer h1 { font-size: var(--st-fs-lg); } .task-answer h2, .task-answer h3 { font-size: var(--st-fs-base); }
7276.task-answer p { margin: 0; }
7277.task-answer ul, .task-answer ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
7278.task-answer pre { max-height: 260px; overflow: auto; }
7279.task-answer table { font-size: var(--st-fs-sm); }
7280
7281/* ---- Tune model: one result card for every outcome ---- */
7282.tune-outcome { display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: start; padding: 4px 4px 8px; }
7283.tune-outcome__tile { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent-tint); color: var(--st-accent-text); position: relative; animation: tune-pop var(--st-t-local) var(--st-ease-enter); }
7284.tune-outcome__tile::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--st-accent); opacity: .25; }
7285.tune-outcome[data-tone="warn"] .tune-outcome__tile { background: var(--st-warn-tint); color: var(--st-warn-text); } .tune-outcome[data-tone="warn"] .tune-outcome__tile::before { border-color: var(--st-warn); }
7286.tune-outcome[data-tone="bad"] .tune-outcome__tile { background: var(--st-danger-tint); color: var(--st-danger-text); } .tune-outcome[data-tone="bad"] .tune-outcome__tile::before { border-color: var(--st-danger); }
7287.tune-outcome[data-tone="neutral"] .tune-outcome__tile { background: var(--st-surface-2); color: var(--st-ink-muted); } .tune-outcome[data-tone="neutral"] .tune-outcome__tile::before { border-color: var(--st-line); }
7288.tune-outcome__body h3 { margin: 4px 0 4px; font-size: var(--st-fs-xl); letter-spacing: -.02em; }
7289.tune-outcome__body p { margin: 0 0 14px; color: var(--st-ink-soft); }
7290.tune-outcome__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); overflow: hidden; }
7291.tune-outcome__facts > div { padding: 10px 14px; border-left: 1px solid var(--st-line-soft); min-width: 0; }
7292.tune-outcome__facts > div:first-child { border-left: 0; }
7293.tune-outcome__facts dt { font-size: var(--st-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-muted); }
7294.tune-outcome__facts dd { margin: 2px 0 0; font-weight: 700; font-size: var(--st-fs-md); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
7295.tune-outcome[data-code="faster"] .tune-outcome__facts > div:nth-child(2) dd { color: var(--st-accent-text); }
7296.tune-outcome__details { margin-top: 10px; font-size: var(--st-fs-sm); color: var(--st-ink-muted); }
7297.tune-outcome__details summary { cursor: pointer; }
7298.tune-outcome__details pre { max-height: 120px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; font-size: 12px; }
7299.tune-actions-gap { flex: 1; }
7300@media (max-width: 560px) { .tune-outcome { grid-template-columns: 1fr; } }
7301@media (prefers-reduced-motion: reduce) { .tune-outcome__tile { animation: none; } }
7302
7303/* ---- Models: the family switch, one-view layout, the tuning line ---- */
7304.family-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--st-line); border-radius: var(--st-r-pill); background: var(--st-surface-2); }
7305.family-switch button { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--st-r-pill); font: 600 var(--st-fs-sm)/1 var(--st-font); color: var(--st-ink-muted); cursor: pointer; white-space: nowrap; }
7306.family-switch button[aria-selected="true"] { background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-sh-card); }
7307.family-switch--single { padding: 7px 14px; font-weight: 700; border-color: transparent; background: transparent; }
7308.native-model-layout--fit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
7309.native-model-layout--fit > .stack, .native-model-layout--fit > aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
7310.native-choice__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
7311.native-choice__label { font-size: var(--st-fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-muted); }
7312.native-choice__tools { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
7313.native-choice__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; margin-top: 14px; align-items: start; }
7314.native-choice__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
7315.native-choice__col .native-resource-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
7316.native-choice__col .native-resource-choice button { min-height: 42px; padding: 6px 10px; }
7317.native-choice__col .native-resource-choice small { display: none; }
7318.native-version { margin-bottom: 4px; }
7319.native-about { margin: 8px 0 0; }
7320.native-tune-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: var(--st-fs-sm); color: var(--st-ink-muted); }
7321.native-tune-line > svg { flex: none; color: var(--st-icon); }
7322.native-tune-line .st-btn { height: auto; padding: 0 4px; color: var(--st-accent-text); background: transparent; font-weight: 700; }
7323.native-tuned { margin: 8px 0 10px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface-2); }
7324.native-tuned ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: var(--st-fs-sm); }
7325.native-tuned li { display: flex; gap: 8px; align-items: baseline; }
7326.native-tuned li span { color: var(--st-ink-muted); }
7327@media (max-width: 980px) { .native-model-layout--fit { grid-template-columns: 1fr; } }
7328
7329/* the Subagents counts sit on the title's row, to its right */
7330.telepop__head { display: flex; align-items: baseline; gap: 10px; }
7331.telepop__detail { margin-right: auto; font-size: var(--st-fs-sm); color: var(--st-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
7332.telepop__head > .st-btn { align-self: center; margin-left: auto; }
7333.telepop__detail + .st-btn { margin-left: 0; }
7334/* a popover with nothing under its title (Subagents, none recorded) is one row: no rule and no space below it */
7335.telepop__head:last-child { align-items: center; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
7336
7337/* the way back to the newest message: a small round arrow, shown only while scrolled up */
7338.jumplatest-row { position: relative; height: 0; flex: none; z-index: 3; }
7339.jumplatest { position: absolute; bottom: 12px; left: 50%; margin: 0 0 0 -19px; width: 38px; height: 38px; padding: 0; justify-content: center; gap: 0; border-radius: 50%; }
7340.jumplatest svg { flex: none; }
7341
7342/* ---- chat statistics: figures that move keep their width ---- */
7343.telemetry__chip, .telepop__value { font-variant-numeric: tabular-nums; }
7344
7345.ts-empty { margin: 12px 0; color: var(--st-ink-soft); }
7346
7347/* /plan: the card in the chat, the same steps in the sidebar, and queued messages */
7348.plan { border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); margin: 8px 0; }
7349.plan__head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 4px; }
7350.plan__head b { font-size: var(--st-fs-md); }
7351.plan__head span { color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7352.plan__goal { margin: 0; padding: 2px 16px 0; color: var(--st-ink-soft); font-size: var(--st-fs-sm); }
7353.plan__steps { list-style: none; margin: 0; padding: 6px 16px 10px; display: flex; flex-direction: column; }
7354.plan__step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; align-items: start; font-size: var(--st-fs-md); line-height: 1.4; }
7355.plan__no { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--st-line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--st-ink-muted); font-variant-numeric: tabular-nums; }
7356.plan__step[data-state="done"] { color: var(--st-ink-muted); }
7357.plan__step[data-state="done"] .plan__no { background: var(--st-accent); border-color: transparent; color: var(--st-accent-ink); }
7358.plan__step[data-state="failed"] .plan__no { border-color: var(--st-danger); color: var(--st-danger); }
7359.plan__step[data-state="running"] { font-weight: 700; }
7360.plan__step[data-state="running"] .plan__no { border-color: var(--st-accent); color: var(--st-accent-text); animation: st-pulse 1.6s var(--st-ease-in-out) infinite; }
7361.plan__text small { display: block; font-weight: 400; color: var(--st-ink-muted); font-size: var(--st-fs-sm); margin-top: 2px; }
7362@media (prefers-reduced-motion: reduce) { .plan__step[data-state="running"] .plan__no { animation: none; } }
7363.plan__note { margin: 0; padding: 0 16px 12px; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7364.plan__acts { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px 16px; border-top: 1px solid var(--st-line-soft); }
7365.plan__sp { flex: 1; }
7366.plan__edit { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px 10px; }
7367.plan__row { display: grid; grid-template-columns: 22px 1fr 28px; gap: 8px; align-items: center; }
7368.plan-panel { padding: 8px 0; overflow: auto; }
7369.plan-panel .plan__head, .plan-panel .plan__steps, .plan-panel .plan__goal { padding-left: 20px; padding-right: 20px; }
7370.queued { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 80%; margin: 6px 0 0 auto; }
7371.queued__bubble { background: transparent; border: 1px dashed var(--st-line); color: var(--st-ink-soft); padding: 10px 16px; border-radius: var(--st-r-lg) var(--st-r-lg) 6px var(--st-r-lg); font-weight: 500; overflow-wrap: anywhere; }
7372.queued__line { display: flex; align-items: center; gap: 6px; color: var(--st-ink-muted); font-size: var(--st-fs-xs); }
7373.queued__x { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 50%; color: var(--st-icon); display: grid; place-items: center; cursor: pointer; }
7374.queued__x:hover { background: var(--st-surface-2); }
7375
7376.st-card--flush:has(> .privacy-notes) { border: 0; background: transparent; box-shadow: none; }
7377.privacy-notes { padding: 2px 4px; }
7378.plan__step[data-state="skipped"] { color: var(--st-ink-muted); text-decoration: line-through; }
7379.plan__step[data-state="skipped"] .plan__text small { text-decoration: none; }
7380
7381/* Computer use: one compact segmented control on a single line (round 8, item 2) */
7382.native-choice__col .native-resource-choice { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-surface-2); max-width: 100%; }
7383.native-choice__col .native-resource-choice button { min-height: 0; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: var(--st-fs-sm); color: var(--st-ink-soft); }
7384.native-choice__col .native-resource-choice button strong { font-weight: 600; font-size: inherit; }
7385.native-choice__col .native-resource-choice button > svg, .native-choice__col .native-resource-choice button > span + svg { display: none; }
7386.native-choice__col .native-resource-choice button[data-selected="true"] { background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-sh-card); }
7387.native-choice__col .native-resource-choice button:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 1px; }
7388
7389/* Context dropdown and the two Computer use buttons share one line, the buttons level with the dropdown (tester report 2026-10-17: they sat
7390   16px lower, from the 16px top margin of the onboarding version of this control, and touched the separator under the row). They wrap
7391   below the dropdown only when the card is too narrow for both. */
7392.native-choice__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 4px; }
7393.native-choice__row > .native-choice__col:first-child { flex: 0 1 240px; min-width: 200px; }
7394.native-choice__row > .native-choice__col:last-child { flex: 0 1 auto; }
7395.native-choice__col .native-resource-choice { margin-top: 0; height: 44px; box-sizing: border-box; align-items: center; align-self: flex-start; }
7396.native-choice__col .native-resource-choice button { height: 36px; }
7397
7398/* the version dropdown's chevron turns when it opens (round 8, item 7) */
7399.version-trigger__chev { transition: transform var(--st-t-local) var(--st-ease-in-out); }
7400.version-trigger[aria-expanded="true"] .version-trigger__chev { transform: rotate(180deg); }
7401@media (prefers-reduced-motion: reduce) { .version-trigger__chev { transition: none; } }
7402
7403/* Models navbar: the family as an icon, a name and a chevron (round 8, item 5) */
7404.family-trigger { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 10px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); color: var(--st-ink); font: 700 var(--st-fs-md) var(--st-font); cursor: pointer; }
7405.family-trigger:hover { background: var(--st-surface-2); }
7406.family-trigger svg:first-child { color: var(--st-icon); }
7407.family-trigger__chev { color: var(--st-icon); transition: transform var(--st-t-local) var(--st-ease-in-out); }
7408.family-trigger[aria-expanded="true"] .family-trigger__chev { transform: rotate(180deg); }
7409@media (prefers-reduced-motion: reduce) { .family-trigger__chev { transition: none; } }
7410.family-menu { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
7411.family-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--st-ink); text-align: left; font: inherit; cursor: pointer; }
7412.family-menu__item:hover, .family-menu__item:focus-visible { background: var(--st-surface-2); }
7413.family-menu__item[aria-checked="true"] { background: var(--st-surface-2); }
7414.family-menu__item small { display: block; color: var(--st-ink-muted); font-size: var(--st-fs-xs); }
7415.family-menu__check { margin-left: auto; color: var(--st-accent-text); }
7416
7417/* Deliverables: file cards, the Edited summary and grouped activity lines (round 8, item 12) */
7418.fcard { position: relative; display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 10px 10px 10px 14px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); }
7419.fcard__type { flex: none; min-width: 46px; padding: 3px 7px; border: 1px solid var(--st-line); border-radius: 6px; text-align: center; font-size: var(--st-fs-xs); font-weight: 800; letter-spacing: .04em; color: var(--st-ink-soft); }
7420.fcard__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
7421.fcard__name strong { font-size: var(--st-fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
7422.fcard__name span { color: var(--st-ink-muted); font-size: var(--st-fs-xs); font-variant-numeric: tabular-nums; }
7423.fcard__split { display: inline-flex; flex: none; }
7424.fcard__open, .fcard__more { height: 32px; border: 1px solid var(--st-line); background: var(--st-surface); color: var(--st-ink); font: 600 var(--st-fs-sm) var(--st-font); cursor: pointer; }
7425.fcard__open { padding: 0 16px; border-radius: 8px 0 0 8px; }
7426.fcard__more { width: 30px; display: grid; place-items: center; border-left: 0; border-radius: 0 8px 8px 0; padding: 0; }
7427.fcard__open:hover, .fcard__more:hover { background: var(--st-surface-2); }
7428.fcard__open:disabled { opacity: .6; cursor: progress; }
7429.fcard__chev { transition: transform var(--st-t-local) var(--st-ease-standard); }
7430.fcard__more[aria-expanded="true"] .fcard__chev { transform: rotate(180deg); }
7431.pm { display: inline-flex; gap: 5px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
7432.pm__a { color: var(--st-accent-text); }
7433.pm__d { color: var(--st-danger-text); }
7434.edited { margin: 10px 0; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); overflow: hidden; }
7435.edited__head { padding: 10px 16px; border-bottom: 1px solid var(--st-line-soft); font-size: var(--st-fs-sm); }
7436.edited__row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; border: 0; background: transparent; color: var(--st-ink); font: inherit; font-size: var(--st-fs-sm); text-align: left; cursor: pointer; }
7437.edited__row span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
7438.edited__row:hover:not(:disabled) { background: var(--st-surface-2); }
7439.edited__row--all { border-top: 1px solid var(--st-line-soft); color: var(--st-ink-soft); }
7440.edited__row:disabled { cursor: default; }
7441.act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7442.act__line { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
7443.act__line:disabled { cursor: default; }
7444.act__chev { color: var(--st-icon); transition: transform var(--st-t-local) var(--st-ease-standard); }
7445.act[data-open] .act__chev { transform: rotate(180deg); }
7446.act__live { width: 6px; height: 6px; border-radius: 50%; background: var(--st-accent); animation: st-pulse 1.6s var(--st-ease-in-out) infinite; }
7447/* The step that is running reads as the current one (ink, not the muted past-tense of the lines above it) and its last output sits under it on one fixed line. */
7448.act[data-live] .act__line { color: var(--st-ink); }
7449/* A file the model is writing right now: its size beside the name (figures do not jitter), and the last three lines in a box that is always three lines
7450   high, the newest line at the bottom, so nothing under it moves while the text grows. Nothing here animates (the one dot pulse is gated already). */
7451.act__meta { color: var(--st-ink-muted); font-size: var(--st-fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
7452.act__tail { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; box-sizing: border-box; max-width: 72ch; height: calc(3 * 1.45 * var(--st-fs-xs) + 16px); margin: -2px 0 8px; padding: 8px 12px; overflow: hidden; border-radius: var(--st-r-md); background: var(--st-surface-2); font-family: var(--st-font-mono); font-size: var(--st-fs-xs); line-height: 1.45; color: var(--st-ink-muted); }
7453.act__tail > span { display: block; flex: none; overflow: hidden; white-space: pre; text-overflow: ellipsis; }
7454.act__output { margin: -4px 0 8px; padding-left: 1px; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--st-font-mono); font-size: var(--st-fs-xs); line-height: 1.4; color: var(--st-ink-muted); }
7455.act__thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 6px; border: 1px solid var(--st-line); cursor: pointer; }
7456.act__files { flex-basis: 100%; list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
7457.act__skill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--st-ink-soft); }
7458.act__skill .small { margin-left: 6px; }
7459.act__files button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--st-ink-soft); font: inherit; cursor: pointer; }
7460@media (prefers-reduced-motion: reduce) { .act__live, .fcard__chev, .act__chev { animation: none; transition: none; } }
7461
7462/* Dropping files on the chat (round 8, item 8) */
7463.chatcol { position: relative; }
7464.dropzone { position: absolute; inset: 8px; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--st-accent); border-radius: var(--st-r-lg); background: color-mix(in srgb, var(--st-surface) 88%, var(--st-accent) 12%); color: var(--st-ink); pointer-events: none; }
7465.dropzone span { color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7466/* A calm sign that the drop will be taken: the box fades in, its dashed edge breathes, the clip bobs. */
7467.dropzone { animation: dropzone-in var(--st-t-control) var(--st-ease-enter) both; }
7468@keyframes dropzone-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
7469@media (prefers-reduced-motion: reduce) { .dropzone, .dropzone .st-icon, .dropzone svg { animation: none; } }
7470
7471/* The chat's project folder, above the message box (round 8, item 4) */
7472.folderchip { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; margin: 0 0 6px 6px; border-radius: 8px; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
7473.folderchip__pick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 600 var(--st-fs-sm) var(--st-font); cursor: pointer; }
7474.folderchip__pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
7475.folderchip__pick:hover:not(:disabled), .folderchip__x:hover:not(:disabled) { background: var(--st-surface-2); color: var(--st-ink); }
7476.folderchip[data-set="true"] .folderchip__pick { color: var(--st-ink-soft); }
7477.folderchip[data-missing="true"] .folderchip__pick { color: var(--st-danger-text); }
7478.folderchip__x { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--st-icon); cursor: pointer; opacity: 0; }
7479.folderchip:hover .folderchip__x, .folderchip:focus-within .folderchip__x { opacity: 1; }
7480.folderchip button:disabled { opacity: .55; cursor: default; }
7481
7482/* Time-skip as two agents: the plan, the lever and its why, and A / B progress (round 8, item 11) */
7483.tsf { padding: 4px 18px 14px; display: flex; flex-direction: column; gap: 14px; }
7484.tsf__plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
7485.tsf__plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 6px 0; font-size: var(--st-fs-sm); line-height: 1.4; color: var(--st-ink); }
7486.tsf__plan li[data-state="done"] { color: var(--st-ink-muted); }
7487.tsf__plan li[data-state="running"] { font-weight: 700; }
7488.tsf__no { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--st-line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--st-ink-muted); font-variant-numeric: tabular-nums; }
7489.tsf__plan li[data-state="done"] .tsf__no { background: var(--st-accent); border-color: transparent; color: var(--st-accent-ink); }
7490.tsf__plan li[data-lever] { margin: 2px -10px; padding: 8px 10px; border-radius: 10px; background: var(--st-surface-2); }
7491.tsf__why { display: block; margin-top: 3px; font-weight: 400; color: var(--st-ink-soft); font-size: var(--st-fs-xs); }
7492.tsf__why strong { color: var(--st-accent-text); font-weight: 700; }
7493.tsf__note { margin: 0; }
7494.tsf__lanes { display: flex; flex-direction: column; gap: 10px; }
7495.tsf__lane { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 4px; align-items: center; }
7496.tsf__name { grid-row: span 2; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--st-line); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--st-ink-soft); }
7497.tsf__prog { height: 6px; border-radius: 999px; background: var(--st-surface-2); overflow: hidden; }
7498.tsf__prog i { display: block; height: 100%; width: 100%; background: var(--st-accent); border-radius: inherit; transform-origin: left center; transition: transform var(--st-t-local) var(--st-ease-standard); }
7499.tsf__words { grid-column: 2; font-size: var(--st-fs-xs); color: var(--st-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
7500.tsf__lane[data-state="waiting"] .tsf__name, .tsf__lane[data-state="pending"] .tsf__name { opacity: .6; }
7501@media (prefers-reduced-motion: reduce) { .tsf__prog i { transition: none; } }
7502.ts-keep__buttons { display: inline-flex; gap: 8px; }
7503
7504/* A neutral, theme-following button for content cards: no green (round 8 follow-up) */
7505.st-btn.btn-neutral { background: var(--st-surface); color: var(--st-ink); border: 1px solid var(--st-line); box-shadow: none; }
7506.st-btn.btn-neutral:hover:not(:disabled) { background: var(--st-surface-2); }
7507.storage-model--shared { background: var(--st-surface-2); }
7508.storage-model--shared small { font-size: var(--st-fs-xs); }
7509
7510/* Math in answers (#3268): KaTeX draws it; its own stylesheet and fonts load with it, on the first answer that has a formula. */
7511.md-math--source { font-size: var(--st-fs-math-source); }
7512.md-math-block { margin: 0.6em 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
7513.md-math--display { display: block; margin: 0.6em 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
7514.md-math-block .md-math--display { margin: 0; }
7515.md-math .katex { font-size: var(--st-fs-math); }
7516.md-math .katex-display { margin: 0; }
7517
7518/* A message the person typed keeps its line breaks (#3720). */
7519.st-bubble__text { white-space: pre-wrap; overflow-wrap: anywhere; }
7520
7521/* ---- the approval dock: a question for the person stays above the message box while a long reply scrolls (#4725) ---- */
7522.approvaldock { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; margin: 0 0 10px; }
7523.approvaldock > .askcard, .approvaldock > .toolcard { margin: 0; flex: none; border-color: var(--st-accent); }
7524.approval-wait { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
7525
7526/* ---- a Copy control shows that it worked: a check mark for a moment, and the action row it sits in stays visible meanwhile (#4748) ---- */
7527.st-btn--icon[data-copied] { color: var(--st-accent-text); background: var(--st-accent-tint); }
7528.st-code .st-btn--icon[data-copied] { color: var(--st-accent); background: color-mix(in srgb, var(--st-code-ink) 8%, transparent); }
7529.menu__item[data-copied] { color: var(--st-accent-text); }
7530.st-msg__actions:has([data-copied]) { opacity: 1; }
7531
7532/* ---- why Start tuning is greyed out: one sentence in the dialog's footer, left of the button (#4804) ---- */
7533.tune-why { flex: 1 1 200px; min-width: 0; margin: 0; align-self: center; text-align: left; }
7534
7535/* ---- the progress card of a download, load or tuning: calm and plain (GUI feedback 2, item 3). One step line, one small line of numbers, a thin bar, Stop as a word. ---- */
7536.native-progress { display: grid; gap: 14px; border: 1px solid var(--st-line); background: var(--st-surface); padding: 16px 18px; }
7537.native-progress__row { display: flex; align-items: center; gap: 14px; min-width: 0; }
7538.native-progress__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
7539.native-progress__step { margin: 0; font-size: var(--st-fs-md); font-weight: 600; color: var(--st-ink); line-height: 1.35; overflow-wrap: anywhere; }
7540.native-progress__numbers { margin: 0; font-size: var(--st-fs-sm); color: var(--st-ink-muted); font-variant-numeric: tabular-nums; line-height: 1.4; }
7541.native-progress__ring { position: relative; flex: none; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--st-accent); }
7542.native-progress__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--st-accent); opacity: 0; animation: native-ring 1.8s var(--st-ease-in-out) infinite; }
7543.native-progress[data-state='running'] .native-progress__ring { animation: native-breathe 1.8s var(--st-ease-in-out) infinite; }
7544.native-progress:not([data-state='running']) .native-progress__ring { background: var(--st-ink-muted); }
7545.native-progress:not([data-state='running']) .native-progress__ring::before { animation: none; }
7546@keyframes native-ring { 0% { transform: scale(1); opacity: .35; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
7547@keyframes native-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
7548.native-progress__stop { flex: none; appearance: none; border: 0; background: transparent; padding: 6px 4px; margin: -6px -4px; font: inherit; font-size: var(--st-fs-sm); font-weight: 600; color: var(--st-ink-muted); cursor: pointer; border-radius: 6px; transition: color var(--st-t-micro) var(--st-ease-standard); }
7549.native-progress__stop:hover:not(:disabled) { color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
7550.native-progress__stop:disabled { cursor: default; opacity: .6; }
7551.native-progress__stop:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }
7552.native-progress__bar { position: relative; height: 4px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--st-ink) 9%, transparent); }
7553.native-progress__bar > i { position: absolute; inset: 0; border-radius: inherit; background: var(--st-accent); transform-origin: left center; transform: scaleX(0); transition: transform var(--st-t-surface) var(--st-ease-standard); }
7554.native-progress__bar[data-indeterminate] > i { width: 40%; transform: none; transition: none; animation: native-glide 1.8s var(--st-ease-in-out) infinite; }
7555@keyframes native-glide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
7556@media (prefers-reduced-motion: reduce) {
7557  .native-progress__ring, .native-progress[data-state='running'] .native-progress__ring { animation: none; }
7558  .native-progress__ring::before { animation: none; display: none; }
7559  .native-progress__bar[data-indeterminate] > i { animation: none; width: 100%; opacity: .35; }
7560  .native-progress__bar > i { transition: none; }
7561}
7562html[data-motion='reduced'] .native-progress__ring, html[data-motion='reduced'] .native-progress[data-state='running'] .native-progress__ring { animation: none; }
7563html[data-motion='reduced'] .native-progress__ring::before { animation: none; display: none; }
7564html[data-motion='reduced'] .native-progress__bar[data-indeterminate] > i { animation: none; width: 100%; opacity: .35; }
7565.native-choice > .native-progress { margin: 16px 0 12px; }
7566.native-vision-note { margin: 8px 0 0; max-width: 68ch; }
7567/* ---- Serving: the second address and the one line that says why it is not the same (#4798) ---- */
7568.serving-two-addresses { margin: 6px 0 0; max-width: 60ch; }
7569
7570/* ---- Context memory: the one line under the chosen format (#3723) ---- */
7571.native-kv-hint { display: block; margin-top: 6px; line-height: 1.5; }
7572
7573/* ---- a message for one helper, under its row (#4749) ---- */
7574.subagent-row__reply { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
7575.subagent-row__reply .st-input { flex: 1; min-width: 0; }
7576.subagent-row__copy p.subagent-row__note { white-space: normal; margin: 6px 0 0; }
7577
7578/* ---- a message sent while an answer is being written: the one waiting to go, and what Enter will do (#4783) ---- */
7579.parked { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
7580.parked__item { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border: 1px dashed var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); }
7581.parked__item .xs { flex: none; }
7582.parked__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--st-fs-sm); }
7583.composer__busy-hint { margin: 8px 4px 0; }
7584
7585/* ---- quoting a turn or a passage into the next message (#4785) ---- */
7586.quotes { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; max-height: 30vh; overflow-y: auto; }
7587.quote { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--st-line); border-left: 3px solid var(--st-accent); border-radius: var(--st-r-md); background: var(--st-surface); }
7588.quote__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--st-ink); font: inherit; text-align: left; cursor: pointer; }
7589.quote__text, .sent-quote__text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--st-fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
7590.sent-quotes { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
7591.sent-quote { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border: 0; border-left: 3px solid var(--st-accent); border-radius: var(--st-r-sm); background: var(--st-surface-2); color: var(--st-ink-soft); font: inherit; text-align: left; cursor: pointer; }
7592.sent-quotes[data-open] .sent-quote__text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
7593.quote-selection { position: fixed; z-index: var(--layer-popover, 100); padding: 6px 12px; border: 1px solid var(--st-line); border-radius: var(--st-r-pill); background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-sh-pop); font: 600 var(--st-fs-sm) var(--st-font); cursor: pointer; }
7594
7595/* ---- the agent's own question: the approval card with options (#4244) ---- */
7596.askq { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
7597.approvaldock > .askq { border-color: var(--st-accent); margin: 0; flex: none; }
7598.askq__item { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 6px 0; }
7599.askq__item + .askq__item { border-top: 1px solid var(--st-line-soft); padding-top: 8px; }
7600.askq__detail { margin: 2px 0 0; }
7601.askq__opts { display: flex; flex-direction: column; gap: 6px; margin-left: 44px; }
7602.askq__opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); color: var(--st-ink); font: inherit; text-align: left; cursor: pointer; }
7603.askq__opt[data-on] { border-color: var(--st-accent); background: var(--st-accent-tint); }
7604.askq__opt:disabled { opacity: .6; cursor: default; }
7605.askq__own { margin-left: 44px; width: calc(100% - 44px); }
7606.askq__problem { margin: 0 14px 0 44px; }
7607/* The answer buttons stay in view while the questions scroll inside the dock. */
7608.askq__acts { display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; margin: 0; padding: 8px 14px 0 44px; background: var(--st-surface); }
7609.approvaldock:has(.askq) { max-height: 56vh; }
7610@media (max-width: 560px) { .askq__opts, .askq__own, .askq__problem { margin-left: 0; } .askq__acts { padding-left: 14px; } .askq__own { width: 100%; } .askq__item { padding-right: 0; } }