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