okami.mom/strata

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

Niko1221rc1 merge gui-fb2 (35d4781f1): two files conflicted (apps/host/server/native-control.mjs, apps/host/src/components/NativeModels.tsx), resolved at token level; images/visionPrepared take both the DeepSeek tower check and picturesMissinga2f602398

main
50.3 KiB1479 linesraw
1/* ============================================================================
2   Strata — the liquid layer
3   ----------------------------------------------------------------------------
4   Refinements on top of app.css. Everything here is expressed in the tokens the
5   app already declares (kit/tokens.css and app.css section 1), so light and dark
6   stay one layout and the reduced-motion / reduced-transparency gates still hold.
7
8   The design intent, in one paragraph: the app should read as a single pane of
9   glass resting on a lit surface, not as a white rectangle with lines drawn on
10   it. Depth comes from one ambient wash behind the shell, from a translucent
11   navigation layer that samples it, and from hairlines and specular edges rather
12   than from heavier borders or louder fills. Motion stays short and calm; a
13   control answers the pointer, it does not perform.
14
15   Load order matters: this file is imported after app.css, so a rule here wins
16   over an equal-specificity rule there. Prefer editing the source rule in
17   app.css when the intent changes; use this layer for the material, depth and
18   interaction treatment that the shell shares.
19   ========================================================================== */
20
21/* ------------------------------------------------------- 1. depth: ambient --
22   Apple's material only means anything when there is something behind it. In the
23   packaged app that is the desktop, through a translucent window; everywhere
24   else it is this: two very low-opacity light fields over the page colour, fixed
25   to the window, so the navigation glass has a gradient to sample and the shell
26   has a light direction (warm at the top left, cool at the bottom right).
27
28   It is one layer, it never moves, and it is deliberately too quiet to read as a
29   gradient: at 6% accent over #f9fafb the strongest corner is ~1.015:1 from the
30   page. No card, table or transcript sits on it — it is the light the shell is
31   lit by, and only the glass in front of it reacts to it.
32
33   The main column deliberately keeps the flat page colour. A material is
34   supposed to be visibly a material: the sidebar is a pane, so it can be a
35   slightly different tone from the page behind a hairline, the way a frosted
36   sidebar reads on a desktop. Painting the same wash across both sides removed
37   that edge and turned the whole window into a tinted wallpaper.
38
39   Both accessibility gates remove it, because without the glass it has no job:
40   reduced transparency and the app's own "opaque" preference. */
41:root {
42  --st-ambient-warm: color-mix(in srgb, var(--st-accent) 6%, transparent);
43  --st-ambient-cool: color-mix(in srgb, var(--st-info) 2.5%, transparent);
44  --st-hairline: color-mix(in srgb, var(--st-line) 70%, transparent);
45  --st-hairline-strong: color-mix(in srgb, var(--st-line) 92%, transparent);
46  --st-nav-material: color-mix(in srgb, var(--st-surface) 68%, transparent);
47  --st-fill-hover: color-mix(in srgb, var(--st-ink) 5%, transparent);
48  --st-fill-press: color-mix(in srgb, var(--st-ink) 9%, transparent);
49}
50
51body {
52  background-color: var(--st-bg);
53  background-image:
54    radial-gradient(130% 100% at 0% 0%, var(--st-ambient-warm), transparent 55%),
55    radial-gradient(80% 60% at 100% 100%, var(--st-ambient-cool), transparent 50%);
56  background-repeat: no-repeat;
57  background-attachment: fixed;
58}
59
60@media (prefers-reduced-transparency: reduce) {
61  body {
62    background-image: none;
63  }
64}
65[data-transparency='opaque'] body {
66  background-image: none;
67}
68
69/* ------------------------------------------------- 2. the sidebar material --
70   The sidebar is the navigation layer, which is precisely what Liquid Glass is
71   for: it is chrome over the working surface, it holds no content of its own, and
72   it is the one region of the shell that is always present. It used to be painted
73   flat `--st-surface` with a hard right border, which read as a separate window
74   glued to the side of the app.
75
76   Now it samples the ambient layer through the thick material, carries a hairline
77   instead of a rule, and lets the footer dissolve into it rather than stacking a
78   second opaque panel under the first.
79
80   The material token is what collapses the blur under reduced transparency, so
81   the geometry is identical when the effect is off. */
82.nav {
83  background: var(--st-nav-material);
84  -webkit-backdrop-filter: var(--st-material-thick);
85  backdrop-filter: var(--st-material-thick);
86  border-right: 1px solid var(--st-hairline);
87}
88.nav__top {
89  border-bottom: 1px solid var(--st-hairline);
90}
91.nav__foot {
92  background: transparent;
93  border-top: 1px solid var(--st-hairline);
94}
95
96/* The brand row is a window control, not a header: it keeps the height of the
97   working bar but drops the rule, so the top of the sidebar reads as one
98   continuous pane. */
99.nav__top {
100  border-bottom-color: transparent;
101}
102
103/* --------------------------------------------- 3. navigation interaction ----
104   Rows answer the pointer with a translucent wash rather than an opaque grey
105   rectangle, and the current row is marked with the accent at low strength plus
106   a hairline ring — a selected item in a sidebar, not a button. */
107.navitem,
108.navsession,
109.ws__name,
110.enginechip {
111  transition:
112    background-color var(--st-t-control) var(--st-ease-standard),
113    color var(--st-t-control) var(--st-ease-standard),
114    box-shadow var(--st-t-control) var(--st-ease-standard);
115}
116.navitem:hover,
117.navsession:hover,
118.ws__name:hover {
119  background: var(--st-fill-hover);
120}
121.navitem:active,
122.navsession:active {
123  background: var(--st-fill-press);
124}
125.navitem[aria-current='page'] {
126  background: color-mix(in srgb, var(--st-accent) 10%, transparent);
127  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-accent) 16%, transparent);
128  color: var(--st-ink);
129}
130.navsession[aria-current='page'],
131.navsession[aria-current='true'] {
132  background: color-mix(in srgb, var(--st-accent) 8%, transparent);
133  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-accent) 14%, transparent);
134}
135
136/* A navigational row is already marked by its hover surface; the browser's
137   default underline on a hovered link is the one piece of web chrome that was
138   still showing in the sidebar. */
139.navitem,
140.navsession,
141.ws__name,
142.nav__brand,
143.ws-view {
144  text-decoration: none;
145}
146.navitem:hover,
147.navsession:hover,
148.ws__name:hover,
149.nav__brand:hover,
150.ws-view:hover {
151  text-decoration: none;
152}
153
154/* The engine chip is the one row in the footer that carries state, so it keeps a
155   surface of its own — but a hairline one, so the dot does the talking. */
156.enginechip {
157  background: color-mix(in srgb, var(--st-ink) 4%, transparent);
158  box-shadow: inset 0 0 0 1px var(--st-hairline);
159}
160.enginechip:hover {
161  background: color-mix(in srgb, var(--st-ink) 7%, transparent);
162}
163
164/* --------------------------------------------- 4. sidebar typography ------
165   Group labels ("Tasks", "Workspaces") were 14px at regular weight, the same
166   size as the rows beneath them, so the two levels read as one flat list. They
167   are one step down and one weight up now: still sentence case (this is a
168   sidebar, not a form), but no longer mistakable for a destination.
169
170   The empty line under a group sits at the same left edge as the titles it
171   stands in for, instead of hanging 16px to their left. */
172.ws__head .navgroup__label,
173.task-tree .navgroup__label {
174  font-size: var(--st-fs-xs);
175  font-weight: 600;
176  letter-spacing: 0.01em;
177  color: var(--st-ink-muted);
178}
179.task-tree .navsessions .ws__empty,
180.ws .navsessions .ws__empty {
181  padding-left: 26px;
182}
183
184/* The theme switch shared a row with "More" but was 42px tall against a 36px
185   row, so the pair sat three pixels out of line. It matches the row now, and the
186   two icon-only window controls at either end of the sidebar take the same
187   shape — the kit makes a control a capsule, and at 36×36 that is a circle. */
188.nav__bottom .theme-switch {
189  width: 36px;
190  height: 36px;
191}
192.nav__top .nav__collapse {
193  border-radius: var(--st-r-pill);
194}
195
196/* --------------------------------------------------- 5. sheets over glass --
197   A modal was a white rectangle on a flat 36% black wash: the working screen
198   behind it neither dimmed gradually nor lost focus, it just went grey. The
199   scrim now frosts what is behind it, so the sheet sits over the app rather than
200   over a colour, and the sheet itself takes the specular top edge and the same
201   entrance every other surface uses.
202
203   The scrim is the one place a material is deliberately heavy: it covers a whole
204   screen, and it is removed entirely under reduced transparency. */
205.dialog-scrim {
206  -webkit-backdrop-filter: var(--st-material-thin);
207  backdrop-filter: var(--st-material-thin);
208}
209.dialog-surface {
210  box-shadow: var(--st-sh-pop), inset 0 1px 0 var(--st-specular);
211  animation: st-enter var(--st-t-local) var(--st-ease-enter);
212}
213.dialog-head {
214  border-bottom: 1px solid var(--st-hairline);
215}
216.dialog-actions {
217  border-top: 1px solid var(--st-hairline);
218}
219
220/* ---------------------------------------------- 6. the settings value column --
221   A field's control column is a fixed 260px, which is right for a select or a
222   toggle. The electricity price is three things — a number, its unit and a
223   currency button — and at 260px the unit wrapped to five lines beside the
224   input. A control that is itself a stack gets the room it needs, and the row
225   wraps cleanly when it still runs out. */
226.field__control:has(> .stack) {
227  width: min(100%, 380px);
228}
229.field__control > .stack {
230  width: 100%;
231  align-items: flex-end;
232}
233.field__control .row {
234  flex-wrap: wrap;
235  justify-content: flex-end;
236  gap: 8px 12px;
237}
238
239/* The selected section in the settings index is the same kind of state as the
240   selected row in the sidebar, so it takes the same treatment (accent tint and
241   a hairline ring), not a flat grey fill. */
242.settings-dialog .settingsindex__item[aria-selected='true'] {
243  background: color-mix(in srgb, var(--st-accent) 9%, transparent);
244  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-accent) 15%, transparent);
245  color: var(--st-ink);
246}
247.settings-dialog .settingsindex__item {
248  transition:
249    background-color var(--st-t-control) var(--st-ease-standard),
250    color var(--st-t-control) var(--st-ease-standard),
251    box-shadow var(--st-t-control) var(--st-ease-standard);
252}
253
254/* --------------------------------------------------- 7. failures, quietly ---
255   An error card was a white box with a full-strength red rule around it — the
256   loudest border in the app, on the one surface a person is already worried
257   about. It takes the danger tint and a danger hairline instead, so it reads as
258   a flagged area rather than an alarm, and keeps the 14px surface radius. */
259.error-notice {
260  background: color-mix(in srgb, var(--st-danger) 4%, var(--st-surface));
261  border-color: color-mix(in srgb, var(--st-danger) 26%, transparent);
262  border-radius: var(--st-r-md);
263}
264.error-notice > svg {
265  color: var(--st-danger-text);
266}
267.error-notice details > summary {
268  color: var(--st-ink-muted);
269}
270
271/* ------------------------------------------------- 8. seams and scrollbars --
272   The working bar met the page with a full-strength `--st-line` rule in some
273   screens and a fade in others. One hairline now, so the bar reads as the top of
274   the same pane rather than as a separate strip.
275
276   Scrollbars: the thumb was `--st-line`, which on a white page is almost the
277   colour of the page. It is the ink at 14% instead — visible when you look for
278   it, never before. */
279.chat-toolbar,
280.main__head {
281  border-bottom-color: var(--st-hairline);
282}
283*::-webkit-scrollbar-thumb {
284  background-color: color-mix(in srgb, var(--st-ink) 14%, transparent);
285  border: 3px solid transparent;
286  background-clip: padding-box;
287  border-radius: 12px;
288}
289*::-webkit-scrollbar-thumb:hover {
290  background-color: color-mix(in srgb, var(--st-ink) 26%, transparent);
291}
292* {
293  scrollbar-color: color-mix(in srgb, var(--st-ink) 20%, transparent) transparent;
294}
295[data-theme='dark'] *::-webkit-scrollbar-thumb {
296  background-color: color-mix(in srgb, var(--st-ink) 16%, transparent);
297}
298[data-theme='dark'] * {
299  scrollbar-color: color-mix(in srgb, var(--st-ink) 22%, transparent) transparent;
300}
301
302/* ------------------------------------------------ 9. selection controls ----
303   A checkbox is drawn by the operating system — a 13px grey square with a blue
304   tick — and it sat in these screens beside capsule buttons, tinted toggles and
305   hairline cards as the one control that came from somewhere else. It is a
306   18px rounded square in the app's own accent now, with the tick drawn by the
307   element itself.
308
309   `appearance: none` is only applied where the element is not inside forced
310   colours, so a high-contrast theme still gets the system control. */
311@media not (forced-colors: active) {
312  input[type='checkbox'] {
313    appearance: none;
314    -webkit-appearance: none;
315    width: 18px;
316    height: 18px;
317    flex: none;
318    margin: 0;
319    display: inline-grid;
320    place-items: center;
321    border: 1.5px solid color-mix(in srgb, var(--st-ink) 22%, var(--st-line));
322    border-radius: 6px;
323    background: var(--st-surface);
324    cursor: pointer;
325    transition:
326      background-color var(--st-t-micro) var(--st-ease-standard),
327      border-color var(--st-t-micro) var(--st-ease-standard);
328  }
329  input[type='checkbox']:hover:not(:disabled) {
330    border-color: color-mix(in srgb, var(--st-ink) 26%, var(--st-line));
331  }
332  input[type='checkbox']:checked {
333    background: var(--st-accent);
334    border-color: var(--st-accent);
335  }
336  input[type='checkbox']:checked::after {
337    content: '';
338    width: 9px;
339    height: 5px;
340    margin-top: -2px;
341    border: 2px solid var(--st-accent-ink);
342    border-top: 0;
343    border-right: 0;
344    transform: rotate(-45deg);
345  }
346  input[type='checkbox']:disabled {
347    opacity: 0.5;
348    cursor: not-allowed;
349  }
350}
351
352/* "Other local models..." is part of the Model files card, beside "Storage settings"
353   (owner, 11-01), as a quiet text action. */
354.model-files__actions {
355  display: flex;
356  flex-wrap: wrap;
357  gap: 4px 8px;
358}
359.model-files__actions .other-models {
360  font-weight: 500;
361}
362
363/* ------------------------------------------- 10. the primary action, quiet ---
364   "New chat" is the one action on every screen, so it has to read as a control
365   without becoming the brightest object in the window.
366
367   Light mode used to give it the full #10b981 fill with the near-black accent
368   ink. The owner asked for white or green text instead, and white on #10b981 is
369   2.54:1 (it failed `npm run contrast`, passes 1 and 7 of the pass log). White
370   needs a deeper green behind it, but every other primary in light mode is the
371   tinted accent surface with deep-green text (New skill, Run now, Connect an
372   app...), so a deep solid button would be the one object in the app that
373   looked different. It takes the same tinted surface and green text as they do:
374   #086a4a on the 20% tint is 5.47:1, and the hover and edge come from the same
375   tokens, so there is one primary button, not two.
376
377   Dark mode takes the tinted accent material below, because a large saturated
378   fill on a near-black page is the one thing that actually glares (9.86:1
379   against the page; see interaction-guidelines §12).
380
381   Both carry the specular top edge, so the control is lit the same way as every
382   other surface in the shell. */
383.nav-new.st-btn--primary {
384  background: var(--st-accent-surface);
385  border: 1px solid var(--st-accent-surface-edge);
386  color: var(--st-accent-surface-ink);
387  box-shadow:
388    inset 0 1px 0 var(--st-specular),
389    var(--st-sh-card);
390  transition:
391    background-color var(--st-t-control) var(--st-ease-standard),
392    box-shadow var(--st-t-control) var(--st-ease-standard);
393}
394.nav-new.st-btn--primary:hover:not(:disabled) {
395  background: var(--st-accent-surface-hover);
396}
397.nav-new.st-btn--primary:active:not(:disabled) {
398  background: color-mix(in srgb, var(--st-accent) 36%, var(--st-surface));
399}
400[data-theme='dark'] .nav-new.st-btn--primary {
401  background: color-mix(in srgb, var(--st-accent) 22%, var(--st-surface));
402  border-color: color-mix(in srgb, var(--st-accent) 30%, transparent);
403  color: var(--st-accent-surface-ink);
404  box-shadow: inset 0 1px 0 var(--st-specular-soft);
405}
406[data-theme='dark'] .nav-new.st-btn--primary:hover:not(:disabled) {
407  background: color-mix(in srgb, var(--st-accent) 30%, var(--st-surface));
408}
409
410/* -------------------------------------------- 11. the first place you type ---
411   The empty chat focuses its composer, and that focus was a 1.5px saturated ring
412   around a 740px box — the loudest thing on the first screen, before the reader
413   has done anything. The ring is now the accent at reading strength with a soft
414   halo outside the border, so the field reads as lit rather than outlined. */
415.chatcol:has(.first-chat-start) .st-composer:focus-within {
416  border-color: color-mix(in srgb, var(--st-accent) 42%, var(--st-line));
417  outline: 4px solid color-mix(in srgb, var(--st-accent) 9%, transparent);
418  outline-offset: 1px;
419}
420
421/* ------------------------------------------------------- 12. the switch ---
422   The switch's knob was `--st-ink-muted`: a grey disc on a grey track, so the
423   off state read as a disabled control, and the on state — a solid green track
424   with a near-white disc — belonged to a different design language than every
425   other control on the screen.
426
427   The knob is now the surface (and the ink in dark mode, where the surface is
428   darker than the track it sits on), with the same soft elevation the rest of
429   the control layer uses. The track keeps the full accent when on: a switch is
430   a small fill, well under the area that makes the accent glare. */
431.st-toggle {
432  border: 1px solid var(--st-hairline-strong);
433  background: color-mix(in srgb, var(--st-ink) 10%, var(--st-surface));
434}
435.st-toggle::after {
436  background: var(--st-surface);
437  border: 1px solid var(--st-hairline);
438  box-shadow: var(--st-sh-card);
439}
440.st-toggle[aria-checked='true'] {
441  background: var(--st-accent);
442  border-color: color-mix(in srgb, var(--st-accent) 72%, var(--st-ink));
443}
444.st-toggle[aria-checked='true']::after {
445  background: var(--st-surface);
446}
447[data-theme='dark'] .st-toggle::after,
448[data-theme='dark'] .st-toggle[aria-checked='true']::after {
449  background: var(--st-ink);
450}
451
452/* ------------------------------------------------ 13. empty states, one voice --
453   `Empty` drew a 48px grey tile with a navy glyph, while the chat's first screen
454   and the new Tasks state drew a tinted accent tile — three empty screens, two
455   languages. The shared component takes the tinted tile now, so every screen
456   that says "nothing here yet" says it the same way.
457
458   The Serving search field was 170px wide (a browser default) and its own
459   placeholder — "Client, model or request ID…" — was cut off mid-word. The
460   toolbar fields get a width that fits their label; the Tasks field keeps its
461   narrower one because that row also carries a view switch and a sort menu. */
462.empty {
463  gap: 14px;
464}
465.empty__icon {
466  width: 56px;
467  height: 56px;
468  border-radius: var(--st-r-lg);
469  border: 1px solid color-mix(in srgb, var(--st-accent) 18%, transparent);
470  background: color-mix(in srgb, var(--st-accent) 7%, var(--st-surface));
471  color: var(--st-accent-text);
472}
473.section-toolbar > .st-input:not(.tasks-search) {
474  width: 236px;
475}
476
477/* ------------------------------------------------ 14. an empty screen ------
478   Tasks, with nothing in it, was a 72px grey clock hanging a third of the way
479   down a 270px box, a heading, and a sentence that pointed at a "+" in the far
480   corner. The block now fills most of the working area (so it reads as the
481   screen's state, not as the first item of a list), the clock is a tinted tile
482   in the same language as the chat's hero, and the advice is the action itself:
483   a labelled primary button, using the string the header's + already carries. */
484.tasks-empty {
485  min-height: clamp(360px, calc(100dvh - 240px), 900px);
486  gap: 18px;
487}
488.tasks-empty__art {
489  display: grid;
490  place-items: center;
491  width: 64px;
492  height: 64px;
493  margin-bottom: 2px;
494  border-radius: var(--st-r-lg);
495  border: 1px solid color-mix(in srgb, var(--st-accent) 18%, transparent);
496  background: color-mix(in srgb, var(--st-accent) 7%, var(--st-surface));
497  color: var(--st-accent-text);
498}
499.tasks-empty h2,
500.tasks-empty p {
501  margin: 0;
502}
503.tasks-empty p {
504  font-size: var(--st-fs-sm);
505}
506.tasks-empty .st-btn {
507  margin-top: 6px;
508}
509
510/* --------------------------------------------------- 15. the transcript -----
511   Three things a long conversation needed:
512
513   1. A question is a new turn, an answer is its continuation, so the space
514      before a question is larger than the space after it. Both were 22px.
515   2. A code block floated on the page with no edge of its own. In light mode the
516      dark fill did the separating; in dark mode the fill (#0a0c0e) was darker
517      than the page (#0e1113) by almost nothing, so the block read as a hole with
518      text in it. It is a panel now: a slightly raised fill in dark and a 12%
519      specular edge in both themes.
520   3. The block's header was 59px tall for one word and one button. It is a
521      40px bar with a 28px copy target. */
522.chat__inner > .st-msg--user:not(:first-child) {
523  margin-top: 10px;
524}
525.st-code {
526  border: 1px solid color-mix(in srgb, var(--st-code-ink) 12%, transparent);
527}
528[data-theme='dark'] {
529  --st-code-bg: color-mix(in srgb, var(--st-surface) 78%, var(--st-bg));
530}
531.st-code__head {
532  min-height: 40px;
533  padding: 4px 6px 4px 14px;
534}
535.st-code .st-btn--icon {
536  width: 28px;
537  height: 28px;
538}
539
540/* Reasoning is one quiet line until it is opened. Closed, the 2px rule was a
541   short stray bar beside the bulb — the quote mark of a block that is not
542   showing anything. The rule belongs to the opened state, where it marks the
543   passage that the answer came from. */
544.rz {
545  border-left: 0;
546  padding-left: 0;
547}
548.rz[open] {
549  border-left: 2px solid var(--st-hairline);
550  padding-left: 12px;
551}
552
553/* ------------------------------------------------- 16. the working bar ------
554   The chat header held the conversation title at 13px, a 26px bordered model
555   chip at 12px, and a borderless 36px "Subagents" control at 13px: three sizes
556   and two shapes for one row. The title is the row's subject and takes the
557   reading step; both dropdowns are quiet capsules of the same height, with the
558   border left to the hover state so the chrome stays behind the conversation. */
559.chat-toolbar__conversation h1,
560.main__head .main__title {
561  font-size: var(--st-fs-md);
562  letter-spacing: -0.01em;
563}
564/* One title step for the chat's "New conversation" and every screen header
565   (Tasks, Skills, Monitor, Serving, Model, Engine): --st-fs-md, 600. */
566.main__head .main__title { font-weight: 600; }
567.chat-model-badge.chat-model-picker,
568.chat-agents {
569  height: 30px;
570  padding: 0 8px;
571  border: 1px solid transparent;
572  border-radius: var(--st-r-pill);
573  background: transparent;
574  font-size: var(--st-fs-sm);
575  color: var(--st-ink-muted);
576  transition:
577    background-color var(--st-t-micro) var(--st-ease-standard),
578    border-color var(--st-t-micro) var(--st-ease-standard),
579    color var(--st-t-micro) var(--st-ease-standard);
580}
581.chat-model-badge.chat-model-picker:hover,
582.chat-model-badge.chat-model-picker[aria-expanded='true'],
583.chat-agents:hover,
584.chat-agents[aria-expanded='true'] {
585  background: var(--st-fill-hover);
586  border-color: var(--st-hairline);
587  color: var(--st-ink);
588}
589
590/* ----------------------------------------------------- 17. the composer ----
591   The row under the field had three heights in it (34px add, 33px choices,
592   42px Send) and two label sizes (12px choices, 13px Send). It is one 36px row
593   now, and the three text controls are capsules like every other control in the
594   app, so "Manual" and "Medium" read as settings rather than as captions. */
595.composer-choice {
596  height: calc(36px * var(--st-ui-scale));
597  padding: 6px 9px;
598  border-radius: var(--st-r-pill);
599  font-size: var(--st-fs-sm);
600  transition:
601    background-color var(--st-t-micro) var(--st-ease-standard),
602    color var(--st-t-micro) var(--st-ease-standard);
603}
604.composer-add {
605  width: calc(36px * var(--st-ui-scale));
606  height: calc(36px * var(--st-ui-scale));
607}
608/* Attach and dictate are peers in the same bar: the add button had a filled
609   circle and the microphone was a bare glyph, so one looked like a tool and the
610   other like an ornament. Both are 36px circles now. */
611.composer .st-composer__bar > .st-btn--icon {
612  width: calc(36px * var(--st-ui-scale));
613  height: calc(36px * var(--st-ui-scale));
614  background: var(--st-surface-2);
615}
616.composer .st-composer__bar > .st-btn--icon:hover:not(:disabled) {
617  background: color-mix(in srgb, var(--st-ink) 8%, var(--st-surface));
618  color: var(--st-ink);
619}
620.composer-mic {
621  width: calc(36px * var(--st-ui-scale));
622  height: calc(36px * var(--st-ui-scale));
623  border-radius: var(--st-r-pill);
624  background: var(--st-surface-2);
625}
626.composer-mic:hover,
627.composer-mic[aria-pressed='true'] {
628  background: color-mix(in srgb, var(--st-ink) 8%, var(--st-surface));
629}
630.composer-mic[aria-pressed='true'] {
631  color: var(--st-accent-text);
632}
633.composer__inner .st-btn--primary {
634  height: calc(36px * var(--st-ui-scale));
635}
636.folderchip__pick {
637  border-radius: var(--st-r-pill);
638}
639
640/* ------------------------------------------- 18. the conversation list -----
641   In a 268px sidebar a chat title had about 118px: a fixed 64px timestamp, a
642   6px unread dot and a 36px overflow button were all reserved whether or not
643   they were showing, so every title was cut after a dozen characters ("Which
644   Qwen size fit…").
645
646   The actions move out of the flow and appear over the row on hover, the time
647   takes only the width its words need, and the title gets the rest — roughly
648   180px, long enough to tell two chats apart. On hover the time and dot fade
649   out as the "…" fades in, so the same corner is never claimed twice.
650
651   The active workspace used to be a full-width grey band with its two actions
652   always visible. It is a stronger label instead (ink name, accent folder), and
653   the actions join it on hover. */
654.ws__row {
655  position: relative;
656}
657.ws__row.is-active {
658  background: transparent;
659}
660.ws__row.is-active .ws__name {
661  color: var(--st-ink);
662}
663.ws__row.is-active .ws__name .st-icon {
664  color: var(--st-accent-text);
665}
666.ws__row > .st-btn--icon {
667  position: absolute;
668  top: 50%;
669  right: 2px;
670  width: 28px;
671  height: 28px;
672  translate: 0 -50%;
673  opacity: 0;
674  pointer-events: none;
675  transition: opacity var(--st-t-micro) var(--st-ease-standard);
676}
677.ws__row > .st-btn--icon:nth-last-child(2) {
678  right: 30px;
679}
680.ws__row:hover > .st-btn--icon,
681.ws__row:focus-within > .st-btn--icon {
682  opacity: 1;
683  pointer-events: auto;
684}
685
686.ws__session {
687  position: relative;
688}
689.ws__session .navsession {
690  position: relative;
691  padding-right: 22px;
692}
693.ws__session .navsession__time {
694  width: auto;
695  min-width: 0;
696  margin-left: auto;
697  padding-left: 8px;
698  white-space: nowrap;
699  transition: opacity var(--st-t-micro) var(--st-ease-standard);
700}
701/* The unread dot takes a gutter of its own at the right edge, so every
702   timestamp ends on the same line whether or not its chat is unread. */
703.ws__session .navsession__unread {
704  position: absolute;
705  top: 50%;
706  right: 8px;
707  margin: 0;
708  translate: 0 -50%;
709  transition: opacity var(--st-t-micro) var(--st-ease-standard);
710}
711/* A chat that has a turn running: a small ring turns BEFORE the chat's name (GUI feedback 2, item 6). It is an SVG circle, not a bordered box: a border-radius
712   on a 12px box at 90% interface size lands on fractional pixels and the turning corners looked square; a stroked circle with round caps stays round at
713   any size and any angle. The unread dot keeps the gutter at the right. Reduced motion holds it still (a quarter arc). */
714.ws__session .navsession__working {
715  flex: none;
716  display: inline-grid;
717  place-items: center;
718  width: 14px;
719  height: 14px;
720  color: var(--st-info);
721}
722.ws__session .navsession__working svg {
723  display: block;
724  width: 100%;
725  height: 100%;
726  overflow: visible;
727  shape-rendering: geometricPrecision;
728  animation: st-spin 1.1s linear infinite;
729  will-change: transform;
730}
731.navsession__track,
732.navsession__arc {
733  fill: none;
734  stroke-width: 2;
735}
736.navsession__track {
737  stroke: color-mix(in srgb, var(--st-info) 22%, transparent);
738}
739.navsession__arc {
740  stroke: currentColor;
741  stroke-linecap: round;
742  stroke-dasharray: 26 74;
743}
744.navsession[data-working] .navsession__title {
745  color: var(--st-ink);
746}
747@media (prefers-reduced-motion: reduce) {
748  .ws__session .navsession__working svg {
749    animation: none;
750  }
751}
752html[data-motion='reduced'] .ws__session .navsession__working svg {
753  animation: none;
754}
755.ws__session .session-overflow {
756  position: absolute;
757  top: 50%;
758  right: 2px;
759  width: 28px;
760  height: 28px;
761  translate: 0 -50%;
762  opacity: 0;
763  pointer-events: none;
764  transition: opacity var(--st-t-micro) var(--st-ease-standard);
765}
766.ws__session:hover .session-overflow,
767.ws__session:focus-within .session-overflow {
768  opacity: 1;
769  pointer-events: auto;
770}
771.ws__session:hover .navsession__time,
772.ws__session:hover .navsession__unread {
773  opacity: 0;
774}
775
776/* ---------------------------------------------- 19. the overlays' backdrop --
777   The command palette and the first-run sheet dim the app through `.scrim`,
778   which was the one surface explicitly barred from carrying a material — so the
779   two overlays people meet most often were the only ones with a flat grey
780   backdrop, beside dialogs that frost. Same frost, same gate: the token falls
781   back to `none` under reduced transparency. */
782.scrim[data-open='true'] {
783  -webkit-backdrop-filter: var(--st-material-thin) !important;
784  backdrop-filter: var(--st-material-thin) !important;
785}
786
787
788/* ------------------------------------------------- 20. the palette foot ----
789   The palette explained nothing about what to do once a row was highlighted:
790   Enter and Escape were only in the muscle memory of people who already use
791   command palettes. A 34px footer names both, with the same key chips the rows
792   already use, and the list gets the flexible slot so the footer stays put. */
793.palette__list {
794  flex: 1;
795  min-height: 0;
796  overflow-y: auto;
797  padding: 8px;
798}
799.palette__foot {
800  flex: none;
801  display: flex;
802  align-items: center;
803  gap: 10px;
804  padding: 8px 16px;
805  border-top: 1px solid var(--st-hairline);
806  color: var(--st-ink-muted);
807  font-size: var(--st-fs-xs);
808}
809.palette__hint {
810  display: inline-flex;
811  align-items: center;
812  gap: 6px;
813}
814.modal__head {
815  border-bottom-color: var(--st-hairline);
816}
817
818
819/* ------------------------------------------------ 21. focus mode, actually --
820   Focus mode exists to leave the conversation alone. Its own note says the bar
821   keeps "what is loaded, what it is doing, and the way out", and the composer
822   was trimmed to "the field and Send" — but the chat toolbar (title, model
823   picker, Subagents, more) stayed at full height, and the composer still showed
824   attach, dictate, mode and effort. Two bars and five controls in a mode whose
825   purpose is removing chrome.
826
827   The bar already names the model and its state, so the toolbar goes; the field
828   and Send are what a reader needs, so the rest of the row goes with it. */
829.app[data-focus='true'] .chat-toolbar {
830  display: none;
831}
832.app[data-focus='true'] .composer-add,
833.app[data-focus='true'] .composer-mic,
834.app[data-focus='true'] .composer-choice,
835.app[data-focus='true'] .folderchip {
836  display: none;
837}
838
839
840/* ---------------------------------------------- 22. the screen header ------
841   The header row of a screen had 42px buttons beside the 40px family picker on
842   Models, so two controls on the same line sat two pixels out of alignment.
843   Header actions take the height of that picker; the 2px is small, but a header
844   is the one row where every edge is read at a glance. */
845.main__actions .st-btn {
846  height: calc(40px * var(--st-ui-scale));
847}
848
849
850/* ----------------------------------------------------- 23. soft seams ------
851   Form rows were divided by a full-strength soft line, which in a settings card
852   reads as a stack of boxes. The row is still separated, but by the same
853   hairline the rest of the shell uses. */
854.field {
855  border-top-color: var(--st-hairline);
856}
857
858
859/* ------------------------------------------- 24. one checkbox, everywhere ---
860   The Models screen carried its own checkbox rules (17px, 4px radius, white
861   tick) that beat the shared control, so a checkbox there was a different
862   object from the one in the first-run sheet and in a list. They are the same
863   control: 18px, 6px radius, accent fill, ink tick. */
864.native-image-reading input[type='checkbox'],
865.native-gpu-options input[type='checkbox'] {
866  width: 18px;
867  height: 18px;
868  margin: 0;
869  border: 1.5px solid color-mix(in srgb, var(--st-ink) 22%, var(--st-line));
870  border-radius: 6px;
871  background: var(--st-surface);
872}
873.native-image-reading input[type='checkbox']::after,
874.native-gpu-options input[type='checkbox']::after {
875  width: 9px;
876  height: 5px;
877  margin-top: -2px;
878  border: 2px solid var(--st-accent-ink);
879  border-top: 0;
880  border-right: 0;
881  transform: rotate(-45deg);
882}
883.native-image-reading input[type='checkbox']:checked,
884.native-gpu-options input[type='checkbox']:checked {
885  background: var(--st-accent);
886  border-color: var(--st-accent);
887}
888
889
890/* ------------------------------------------- 25. expert hints, readable ----
891   The expert toggles carried their explanation at 11px — the smallest text in
892   the app, on the screen that asks the most of its reader. They take the normal
893   small step (13px). The "Read pictures" hint beside it ran the full card width
894   (~105 characters); it is capped at the reading measure so it wraps. */
895.native-toggle small {
896  font-size: var(--st-fs-sm);
897  line-height: 1.5;
898}
899.native-image-reading label > span > small {
900  display: block;
901  max-width: 68ch;
902  line-height: 1.55;
903}
904
905
906/* ---------------------------------------- 26. secondary actions, one shape --
907   The Storage tab's two headings carried bordered 34px buttons ("Change
908   folder", "Change directory"), while the same kind of secondary action on
909   Models is a ghost button. They agree now: text and icon, a hover wash, no
910   frame — the heading's subject stays the loudest thing on the row. */
911.storage-directory__heading .st-btn {
912  background: transparent;
913  border-color: transparent;
914  color: var(--st-ink-muted);
915}
916.storage-directory__heading .st-btn:hover:not(:disabled) {
917  background: var(--st-fill-hover);
918  border-color: transparent;
919  color: var(--st-ink);
920}
921
922
923/* ------------------------------------------------ 27. the settings pane ----
924   Two details in the panels that do not use the generic field rows:
925
926   1. Their intro sentence ran ~95 characters on one line while every other
927      prose block in the app sits at the 68ch measure. It wraps there now.
928   2. Tools drew its section headings at .h4 (16px) while Appearance draws the
929      same level at .h3 (18px); two panels, one dialog, two hierarchies. Tools
930      takes the 18px step. */
931.settings-models__intro {
932  max-width: 68ch;
933}
934.settings-tools .settings-section > h2 {
935  font-size: var(--st-fs-lg);
936}
937
938
939/* ---------------------------------------------- 28. the deliverable card ---
940   The file-type badge ("MD", "TS") was a white chip with a hairline, sitting a
941   few pixels from an Open button drawn the same way — two outline boxes, one of
942   which is clickable. The badge is a tinted label now, and the split Open
943   control takes capsule ends like every other control in the app. */
944.fcard__type {
945  border-color: transparent;
946  background: color-mix(in srgb, var(--st-ink) 6%, var(--st-surface));
947  color: var(--st-ink-soft);
948}
949.fcard__open {
950  border-radius: var(--st-r-pill) 0 0 var(--st-r-pill);
951}
952.fcard__more {
953  border-radius: 0 var(--st-r-pill) var(--st-r-pill) 0;
954}
955
956
957/* The activity line is a disclosure trigger with no pointer feedback at all:
958   it looked like a caption. On hover the sentence and its chevron take the ink
959   colour, which is the same cue the sidebar's rows use without a capsule across
960   the full transcript width. */
961.act__line:hover:not(:disabled),
962.act__line:hover:not(:disabled) .act__chev {
963  color: var(--st-ink);
964}
965
966
967/* ------------------------------------------- 29. empty states in settings --
968   The Models panel's empty state drew a bare 26px glyph inside its dashed card,
969   while every other empty screen uses the tinted tile. The tile is drawn on the
970   existing <svg> (a padding box around the same 26px glyph), so the component's
971   markup is untouched. */
972.provider-empty > svg {
973  box-sizing: content-box;
974  padding: 15px;
975  margin-bottom: 4px;
976  border: 1px solid color-mix(in srgb, var(--st-accent) 18%, transparent);
977  border-radius: var(--st-r-lg);
978  background: color-mix(in srgb, var(--st-accent) 7%, var(--st-surface));
979  color: var(--st-accent-text);
980}
981
982
983/* ------------------------------------------- 30. two hover fills, one wash --
984   The edited-files rows and the Monitor tables hovered to an opaque grey
985   (--st-surface-2) while every other row in the app answers with a translucent
986   ink wash. On a card whose surface is not pure white the opaque fill reads as a
987   different material; the same wash is used here. */
988.edited__row:hover:not(:disabled) {
989  background: var(--st-fill-hover);
990}
991.st-table tbody tr:hover td {
992  background: var(--st-fill-hover);
993}
994
995
996/* The slash menu's selected row was an opaque surface-2 band on a material
997   surface. Selection is a wash here too: 7% ink, so it darkens whatever the
998   menu is sitting on and stays quieter than the accent icon. */
999.slashmenu__item[data-active='true'] {
1000  background: color-mix(in srgb, var(--st-ink) 7%, transparent);
1001}
1002
1003
1004/* ------------------------------------------------ 31. hover that eases ----
1005   The file cards' Open halves and the edited-file rows swapped their hover fill
1006   instantly while every other row eases. The same micro duration as the rest of
1007   the control layer, and still none when motion is reduced. */
1008.fcard__open,
1009.fcard__more,
1010.edited__row {
1011  transition:
1012    background-color var(--st-t-micro) var(--st-ease-standard),
1013    color var(--st-t-micro) var(--st-ease-standard);
1014}
1015@media (prefers-reduced-motion: reduce) {
1016  .fcard__open,
1017  .fcard__more,
1018  .edited__row {
1019    transition: none;
1020  }
1021}
1022
1023
1024/* ------------------------------------- 32. the same ease for every row ------
1025   Rows and menu items swapped their hover fill instantly; the file cards now ease
1026   (pass 77). The table cells, menu items and palette rows take the same micro
1027   duration, so a pointer moving across the control layer never hits a snap. */
1028.menu__item,
1029.palette__row,
1030.st-table tbody td {
1031  transition:
1032    background-color var(--st-t-micro) var(--st-ease-standard),
1033    color var(--st-t-micro) var(--st-ease-standard);
1034}
1035@media (prefers-reduced-motion: reduce) {
1036  .menu__item,
1037  .palette__row,
1038  .st-table tbody td {
1039    transition: none;
1040  }
1041}
1042
1043
1044/* ------------------------------------------- 33. a menu row's second line ----
1045   The chat model picker draws each row as <span><strong>name</strong>
1046   <small>GPU 1</small></span>, but the small was inline: the menu read
1047   “Qwen3.8-Flash-NextGPU 1”. The caption takes its own muted line, the same
1048   pattern the mode menu uses. */
1049.menu__item > span > small {
1050  display: block;
1051  margin-top: 2px;
1052  color: var(--st-ink-muted);
1053  font-size: var(--st-fs-xs);
1054  font-weight: 400;
1055}
1056
1057
1058/* The picker's rows are menuitemradio; the current model now carries the same
1059   check the mode menu uses, pushed to the row's trailing edge. */
1060.menu__check {
1061  margin-left: auto;
1062  flex: none;
1063  color: var(--st-accent-text);
1064}
1065
1066
1067/* The composer menus' group headings (“Reasoning effort”, “Thinking budget”)
1068   were 12px regular muted — body-sized text introducing 15px rows. They take the
1069   same label step as the saved-settings and slash menus. */
1070.composer-menu-heading {
1071  font-size: 11px;
1072  font-weight: 500;
1073  letter-spacing: .06em;
1074  text-transform: uppercase;
1075  color: var(--st-ink-muted);
1076}
1077
1078
1079/* Provider rows carried their icon as a bare 20px glyph while identity rows
1080   elsewhere sit in a small tinted tile. The tile is drawn on the svg's padding
1081   box, so the component markup is untouched. */
1082.provider-card svg {
1083  box-sizing: content-box;
1084  padding: 8px;
1085  border-radius: 12px;
1086  background: var(--st-surface-2);
1087  color: var(--st-ink-soft);
1088}
1089
1090
1091/* The task board's columns were top-aligned at their content height, so an
1092   empty board showed four cards of three different heights. A board reads as
1093   columns: they share the row's height and their empty states line up. */
1094.board {
1095  align-items: stretch;
1096}
1097
1098
1099/* The dashboard's “Favorite model” is the only stat that can be longer than its
1100   tile. Values are single-line ellipsed; the model may use two lines at a hyphen
1101   rather than losing its identity to “Qwen3.8-Flash-…”. */
1102.usage-stats > div:last-child dd {
1103  white-space: normal;
1104  text-overflow: clip;
1105  line-height: 1.2;
1106  padding-top: 2px;
1107}
1108
1109/* ------------------------------------------------ 17. the motion system -----
1110   One scale (app.css section 1: micro 100, control 160, local 240, surface 320,
1111   choreo 460ms; standard / enter / exit curves) and three habits, so the app
1112   answers a touch the same way everywhere:
1113
1114   - a control that is pressed gives a little (a 3% scale, micro time);
1115   - a surface that appears arrives from the side it belongs to, decelerating,
1116     and leaves faster than it came (enter = local/surface, exit = control);
1117   - a disclosure opens by growing and fading in, never by snapping.
1118
1119   Everything animates transform, opacity, or one small block-size (a disclosure),
1120   never a transcript's layout, so streaming text and scrolling cost nothing
1121   extra on a weak GPU while a heavy model is running beside the app. The
1122   reduced-motion gate zeroes the durations (tokens) and the distances below. */
1123:root {
1124  --st-press-scale: 0.97;
1125  --st-panel-shift: 28px;
1126}
1127.st-btn {
1128  transition:
1129    background-color var(--st-t-control) var(--st-ease-standard),
1130    border-color var(--st-t-control) var(--st-ease-standard),
1131    color var(--st-t-control) var(--st-ease-standard),
1132    box-shadow var(--st-t-control) var(--st-ease-standard),
1133    transform var(--st-t-micro) var(--st-ease-standard);
1134}
1135.st-btn:not(:disabled):active {
1136  transform: scale(var(--st-press-scale));
1137}
1138@media (prefers-reduced-motion: reduce) {
1139  :root { --st-press-scale: 1; --st-panel-shift: 0px; }
1140}
1141
1142/* Reasoning ("Thought for 38s"): the summary is a control (hover wash, press),
1143   the chevron turns, and the passage grows open and fades in — it used to jump.
1144   The rule that marks the passage belongs to the body, so the line above it
1145   never moves. Where ::details-content is not supported it simply opens. */
1146.rz > summary {
1147  width: fit-content;
1148  max-width: 100%;
1149  margin-left: -8px;
1150  padding: 2px 8px;
1151  border-radius: var(--st-r-pill);
1152  transition:
1153    background-color var(--st-t-control) var(--st-ease-standard),
1154    transform var(--st-t-micro) var(--st-ease-standard);
1155}
1156.rz > summary:hover {
1157  background: var(--st-fill-hover);
1158}
1159.rz > summary:active {
1160  background: var(--st-fill-press);
1161  transform: scale(var(--st-press-scale));
1162}
1163.rz > summary:focus-visible {
1164  box-shadow: inset 0 0 0 1px var(--st-ink-muted);
1165}
1166.rz__chev {
1167  transition: transform var(--st-t-local) var(--st-ease-standard);
1168}
1169.rz[open] {
1170  border-left: 0;
1171  padding-left: 0;
1172}
1173.rz__body {
1174  margin-left: 2px;
1175  padding-left: 12px;
1176  border-left: 2px solid var(--st-hairline);
1177}
1178@supports (interpolate-size: allow-keywords) {
1179  .rz::details-content {
1180    block-size: 0;
1181    opacity: 0;
1182    overflow: hidden;
1183    transition:
1184      content-visibility var(--st-t-surface) allow-discrete,
1185      block-size var(--st-t-surface) var(--st-ease-standard),
1186      opacity var(--st-t-local) var(--st-ease-standard);
1187  }
1188  .rz[open]::details-content {
1189    block-size: auto;
1190    opacity: 1;
1191  }
1192}
1193
1194/* Code blocks: a block is a figure inside the answer, so it gets room before and
1195   after, and it is lighter than the text around it — a 34px bar, 10px of padding,
1196   code at the reading step below the body (12px minimum at the default size: pass 37's
1197   floor stays; 13px against 16px body at the larger sizes). */
1198.st-bubble .st-code {
1199  margin: 16px 0 20px;
1200}
1201.st-bubble .st-code:first-child {
1202  margin-top: 0;
1203}
1204.st-bubble .st-code:last-child {
1205  margin-bottom: 0;
1206}
1207.st-code__head {
1208  min-height: 34px;
1209  padding-block: 2px;
1210}
1211.st-code pre {
1212  padding: 10px 14px;
1213  line-height: 1.5;
1214}
1215.st-code .st-btn--icon {
1216  width: 28px;
1217  height: 28px;
1218}
1219.st-code .st-btn--icon[data-open] {
1220  color: var(--st-accent);
1221  background: color-mix(in srgb, var(--st-code-ink) 10%, transparent);
1222  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-accent) 45%, transparent);
1223}
1224
1225/* The sidebar preview arrives from the right with a rise and fade, the
1226   chosen file's content crossfades when you switch tabs, and a closed panel
1227   leaves the same way (a bare shell over the column it vacated; the page itself
1228   is already gone, so nothing heavy is animated). Both take the 460 ms step of
1229   the motion scale (`--st-t-choreo`), slower than a menu or a drawer so the
1230   panel arrives and leaves calmly, with the same easings as before; reduced
1231   motion makes the step 1 ms. */
1232.chatsplit .artifact-panel {
1233  animation: st-panel-in var(--st-t-choreo) var(--st-ease-enter) both;
1234}
1235.chatsplit .artifact-panel[data-leaving] {
1236  position: absolute;
1237  inset: 0 0 0 auto;
1238  width: min(48%, 640px);
1239  z-index: 3;
1240  pointer-events: none;
1241  animation: st-panel-out var(--st-t-choreo) var(--st-ease-exit) both;
1242}
1243.artifact-content {
1244  animation: st-enter var(--st-t-control) var(--st-ease-enter) both;
1245  --st-from-y: 4px;
1246}
1247@keyframes st-panel-in {
1248  from {
1249    opacity: 0;
1250    transform: translateX(var(--st-panel-shift));
1251  }
1252  to {
1253    opacity: 1;
1254    transform: none;
1255  }
1256}
1257@keyframes st-panel-out {
1258  from {
1259    opacity: 1;
1260    transform: none;
1261  }
1262  to {
1263    opacity: 0;
1264    transform: translateX(var(--st-panel-shift));
1265  }
1266}
1267.st-code__actions {
1268  display: inline-flex;
1269  align-items: center;
1270  gap: 2px;
1271}
1272
1273/* ------------------------------------------- 18. "This computer" on Models ----
1274   Free graphics memory and free RAM come first (real readings, a bar that is
1275   filled by what is in use), a loaded model gets its own tinted block with what
1276   it takes, and the SSD appears only in that block or in the fit line when the
1277   model does not fit in memory. */
1278.pc-label {
1279  margin: 0;
1280  font-size: var(--st-fs-xs);
1281  font-weight: 600;
1282  color: var(--st-ink-muted);
1283}
1284.pc-free {
1285  display: flex;
1286  flex-direction: column;
1287  gap: 12px;
1288}
1289.pc-free .pc-meter__track i {
1290  width: 100%;
1291  transform-origin: left center;
1292  transition: transform var(--st-t-surface) var(--st-ease-standard);
1293}
1294.pc-meter[data-low] .pc-meter__track i {
1295  background: var(--st-warn);
1296}
1297
1298
1299/* -------------------------------------------- 27. GUI feedback 2 (11-02) ----
1300   Item 2: a checkbox's tick is white on the accent fill in light mode (it was the dark ink: a black tick on green); dark mode keeps the dark ink on its
1301   lighter green. Item 4: a checkbox that is locked while a load runs keeps its tick at nearly full strength, so a locked "on" still reads as on. */
1302:root { --st-check-ink: #ffffff; }
1303[data-theme='dark'] { --st-check-ink: var(--st-accent-ink); }
1304@media not (forced-colors: active) {
1305  input[type='checkbox']:checked::after,
1306  .native-image-reading input[type='checkbox']::after,
1307  .native-gpu-options input[type='checkbox']::after {
1308    border-color: var(--st-check-ink);
1309  }
1310  input[type='checkbox']:disabled:checked,
1311  .native-image-reading input[type='checkbox']:disabled:checked {
1312    opacity: 0.8;
1313  }
1314}
1315
1316/* Item 8: a run that made many files is one compact block: the two folders, then a count that opens the list. Same border, radius and hover wash as the
1317   "Edited files" block it stands in for; the list scrolls inside the block so a long run never pushes the chat down. */
1318.fsum {
1319  margin: 10px 0;
1320  border: 1px solid var(--st-line);
1321  border-radius: var(--st-r-md);
1322  background: var(--st-surface);
1323  overflow: hidden;
1324}
1325.fsum__places {
1326  list-style: none;
1327  margin: 0;
1328  padding: 0;
1329}
1330.fsum__places li {
1331  display: flex;
1332  align-items: center;
1333  gap: 10px;
1334  min-width: 0;
1335  padding: 10px 12px 10px 16px;
1336  font-size: var(--st-fs-sm);
1337}
1338.fsum__places li + li {
1339  border-top: 1px solid var(--st-line-soft);
1340}
1341.fsum__places .st-icon {
1342  flex: none;
1343  color: var(--st-icon);
1344}
1345.fsum__label {
1346  flex: none;
1347  color: var(--st-ink-muted);
1348}
1349.fsum__name {
1350  flex: 1 1 auto;
1351  min-width: 0;
1352  overflow: hidden;
1353  text-overflow: ellipsis;
1354  white-space: nowrap;
1355  font-weight: 600;
1356  color: var(--st-ink);
1357}
1358.fsum__open {
1359  flex: none;
1360  height: 28px;
1361  padding: 0 12px;
1362  border: 1px solid var(--st-line);
1363  border-radius: 8px;
1364  background: var(--st-surface);
1365  color: var(--st-ink);
1366  font: 600 var(--st-fs-sm) var(--st-font);
1367  cursor: pointer;
1368  transition: background-color var(--st-t-micro) var(--st-ease-standard);
1369}
1370.fsum__open:hover {
1371  background: var(--st-fill-hover);
1372}
1373.fsum__toggle {
1374  display: flex;
1375  align-items: center;
1376  gap: 8px;
1377  width: 100%;
1378  padding: 10px 16px;
1379  border: 0;
1380  border-top: 1px solid var(--st-line-soft);
1381  background: transparent;
1382  color: var(--st-ink-soft);
1383  font: inherit;
1384  font-size: var(--st-fs-sm);
1385  text-align: left;
1386  cursor: pointer;
1387  transition: background-color var(--st-t-micro) var(--st-ease-standard);
1388}
1389.fsum__toggle:first-child {
1390  border-top: 0;
1391}
1392.fsum__toggle:hover {
1393  background: var(--st-fill-hover);
1394}
1395.fsum__toggle > span:not(.pm) {
1396  font-variant-numeric: tabular-nums;
1397}
1398.fsum__toggle .pm {
1399  margin-left: auto;
1400}
1401.fsum__chev {
1402  flex: none;
1403  color: var(--st-icon);
1404  transform: rotate(-90deg);
1405  transition: transform var(--st-t-local) var(--st-ease-standard);
1406}
1407.fsum__toggle[aria-expanded='true'] .fsum__chev {
1408  transform: none;
1409}
1410.fsum__open:focus-visible,
1411.fsum__toggle:focus-visible,
1412.fsum__file:focus-visible {
1413  outline: 2px solid var(--st-accent);
1414  outline-offset: -2px;
1415}
1416.fsum__list {
1417  list-style: none;
1418  margin: 0;
1419  padding: 0;
1420  max-height: min(320px, 50vh);
1421  overflow: auto;
1422  overscroll-behavior: contain;
1423  border-top: 1px solid var(--st-line-soft);
1424}
1425.fsum__file {
1426  display: flex;
1427  align-items: baseline;
1428  gap: 10px;
1429  width: 100%;
1430  min-width: 0;
1431  padding: 6px 16px;
1432  border: 0;
1433  background: transparent;
1434  color: var(--st-ink);
1435  font: inherit;
1436  font-size: var(--st-fs-sm);
1437  text-align: left;
1438  cursor: pointer;
1439}
1440.fsum__file:hover {
1441  background: var(--st-fill-hover);
1442}
1443.fsum__type {
1444  flex: none;
1445  min-width: 34px;
1446  color: var(--st-ink-muted);
1447  font-size: var(--st-fs-xs);
1448  font-weight: 700;
1449}
1450.fsum__fname {
1451  flex: 0 1 auto;
1452  min-width: 0;
1453  overflow: hidden;
1454  text-overflow: ellipsis;
1455  white-space: nowrap;
1456}
1457.fsum__dir {
1458  flex: 1 1 0;
1459  min-width: 0;
1460  overflow: hidden;
1461  text-overflow: ellipsis;
1462  white-space: nowrap;
1463  color: var(--st-ink-muted);
1464  font-size: var(--st-fs-xs);
1465}
1466.fsum__size {
1467  flex: none;
1468  margin-left: auto;
1469  color: var(--st-ink-muted);
1470  font-size: var(--st-fs-xs);
1471  font-variant-numeric: tabular-nums;
1472}
1473@media (prefers-reduced-motion: reduce) {
1474  .fsum__chev,
1475  .fsum__open,
1476  .fsum__toggle {
1477    transition: none;
1478  }
1479}