/* ==========================================================================
   MINIMAL GLASS. Loaded last. The same ombre and glass, with compact Inter headings and body text,
   JetBrains Mono for secondary lines and figures, crisper shapes, one solid control
   colour, quieter structure and a single motion language. Colours and curves come from :root in index.html.
   ========================================================================== */

/* ---- Type ---- */
body{font-size:var(--vx-fs-9);line-height:1.55;font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--display);font-size:var(--font-size-heading);font-weight:600;letter-spacing:normal;line-height:1.35;text-wrap:balance}
p,.note,.card p,.glist-row small{text-wrap:pretty}
/* Simple compact headings match the familiar Inter semibold row titles. */
/* The Studio's title sits a level down, inside its library section; it is a page title all the same. */
.screen>.title h2,.studio-title h2,.panel>h2,.setup-head h2,.pitch-slide b{font-family:var(--display);font-weight:600;letter-spacing:normal;line-height:1.35}
.screen>.title h2,.studio-title h2{font-size:var(--verser-page-title-size)}
#homeTitle,.panel>h2,.setup-head h2,.pitch-slide b{font-size:var(--verser-page-title-size);line-height:1.35}
.hero-title,body.desk .screen #taskPane .task-pane-title,body.desk .screen #taskPane .task-brief-day,body.desk .screen #taskPane .task-brief-start .hero-title{font-family:var(--display);font-size:var(--verser-page-title-size);font-weight:600;letter-spacing:normal;line-height:1.35}
/* Figures remain in JetBrains Mono, apart from the kit's dedicated KPI face. */
.metric{font-family:var(--mono);font-weight:700;letter-spacing:-.03em}
#homeKpis>.card .metric{font-size:40px;line-height:1}
/* Eyebrows are small metadata, not a banner: mono, sentence case, no tracking. */
.k{font-family:var(--mono);font-size:var(--vx-fs-5);font-weight:500;letter-spacing:0;color:var(--eyebrow)}
.btn,.seg-tab,.role-chip{font-weight:500}
.btn.primary,.btn.hot{font-weight:600}

/* ---- Shape: controls are crisp, containers are soft, chips stay round. ---- */
.btn{border-radius:var(--r-btn);box-shadow:none}
.btn.block,.btn.block:not(.primary):not(.hot){border-radius:var(--r-btn)}
span.btn,.btn.icon-btn{border-radius:var(--r-pill)}
.field{border-radius:var(--r-btn)}
.toast{border-radius:var(--vx-r-md)}
.card[aria-pressed=true]{border-color:var(--border-selected);background:var(--fill-2);box-shadow:inset 0 0 0 1px var(--border-selected)}

/* ---- Grain: a still layer of fine noise over the ombre, under everything else, so the backdrop reads as a
   surface rather than a flat render. ---- */
html::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ---- Motion. Presses answer at once on a strong ease-out; hover lives only where there is a pointer. ---- */
/* Only the press moves; colours change at once, so a state (a listening mic, a picked chip) never shows half-way.
   :where() keeps this a default: a control's own transition (a like or follow easing in) always wins. */
:where(.btn,button.card,.seg-tab,button.glist-row,.profile-btn,.hub-chip){transition:transform .16s var(--ease-out),opacity .12s ease}
:is(.btn,button.card,.seg-tab,.profile-btn,.hub-chip):active:not(:disabled):not([aria-disabled="true"]){transform:scale(.97)}
/* Wide rows move less, or the press reads as a wobble. */
button.glist-row:active:not(:disabled){transform:scale(.985)}
@media (hover:hover) and (pointer:fine){
  /* Hover lays a faint light over whatever the control's own colour is, so it never hides a state. */
  :is(.btn:not(.primary):not(.hot),.role-chip,.seg-tab:not(.verser-chip),button.glist-row,button.card):not(:disabled):not(:active):hover{box-shadow:inset 0 0 0 100px var(--surface-fill-1)}
  .btn.primary:not(:disabled):hover{background:var(--primary-hover)}
}
/* A screen settles in as it opens: its top blocks rise 6px and fade, a beat apart. Short, because tabs are
   switched many times a day. The Live stage and sign in keep their own motion. */
.screen.active:not(#liveScreen):not(#loginScreen):not(#orgSetupScreen)>:is(.title,.panel,.glist,.card,.seg,.home-head,.list,.cards,.toolbar,.wizard-card,.row2){animation:mg-in .28s var(--ease-out) backwards}
.screen.active>:nth-child(2){animation-delay:30ms}
.screen.active>:nth-child(3){animation-delay:60ms}
.screen.active>:nth-child(4){animation-delay:90ms}
.screen.active>:nth-child(n+5){animation-delay:120ms}
/* The rows of the longer lists (Toolbox, Admin settings, Staff, Documents) follow in a quick cascade, done
   within about half a second. Only while the screen is opening (workspace.js), so a refresh or a filter never replays
   it. Direct rows only: a spinner or a placeholder's pulse inside a row keeps its own animation. Tasks has its own. */
.screen.entering :is(.glist,#adminStaffList,#documentList)>*{animation:mg-in .3s var(--ease-out) 60ms backwards}
.screen.entering :is(.glist,#adminStaffList,#documentList)>:nth-child(2){animation-delay:95ms}
.screen.entering :is(.glist,#adminStaffList,#documentList)>:nth-child(3){animation-delay:130ms}
.screen.entering :is(.glist,#adminStaffList,#documentList)>:nth-child(4){animation-delay:165ms}
.screen.entering :is(.glist,#adminStaffList,#documentList)>:nth-child(5){animation-delay:200ms}
.screen.entering :is(.glist,#adminStaffList,#documentList)>:nth-child(n+6){animation-delay:235ms}
@keyframes mg-in{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){
  .screen.active>:not([role="tablist"]){animation:mg-fade .2s ease backwards!important}   /* a tab row keeps its own (its edge fade, and a sticky row's glass, follow the scroll: no motion) */
  .screen.entering :is(.glist,#adminStaffList,#documentList)>*{animation:mg-fade .2s ease backwards!important}
  :is(.btn,button.card,.seg-tab,button.glist-row,.profile-btn,.hub-chip):active{transform:none}
}
@keyframes mg-fade{from{opacity:0}}
