/* Cove v2 (cove-4-ui final/v2.css, approved by Jesse 2026-12-01): shared layer for every screen.
   1. brighter, more saturated colours (no purple)   2. panel tokens (A+ "Panels, modern")
   3. VidPRO motion: hover 110ms, press 80ms (scale .965), move 200ms, enter 180ms (fade + rise 6px), leave 120ms,
      one curve: ease-out cubic. The app's own keyframes in style.css carry the enter/leave times, so the design's
      @starting-style enter rules (.v2-ready) are not copied: they would play every entrance twice. */

/* ---------- colours ---------- */
html:root{
  --accent:#1F6BFF;--on-accent:#fff;
  --s-on:#18B55B;--s-idle:#F2A100;--s-dnd:#EE3F33;--s-off:#9A9CA6;--bad:#E5342A;
  /* panels: light = white cards on the grey base with a soft wide shadow */
  --pnl:var(--card);--in:var(--soft);--psh:var(--lift);
  /* VidPRO motion */
  --e:cubic-bezier(.33,1,.68,1);--ease:var(--e);--fold:var(--e);--ez:var(--e);
  --t-hover:110ms;--t-press:80ms;--t-move:200ms;--t-enter:180ms;--t-leave:120ms;
  --t1:110ms;--t2:200ms;--t3:200ms;
}
html[data-theme=dark],html[data-theme=black]{
  --accent:#3D86FF;--live:#22CF6E;
  --s-on:#22CF6E;--s-idle:#FFB31F;--s-dnd:#FF5247;--bad:#FF5247;
  /* panels: dark = raised tone, no shadow (shadows vanish on dark anyway) */
  --pnl:var(--sheet);--in:var(--card);--psh:none;
}
/* avatars: solid colour, white letter */
html .c1{--c:#1F6BFF}html .c2{--c:#F08C00}html .c3{--c:#F0493E}html .c4{--c:#0FB39A}html .c5{--c:#E8417A}html .c6{--c:#1EA0E6}
html .av{background:var(--c);color:#fff}
html:is([data-theme=dark],[data-theme=black]) .av{background:color-mix(in srgb,var(--c) 88%,#000)}

/* ---------- motion ---------- */
/* hover: colour and fill follow the pointer; press: shrink 3.5% around the centre */
:where(.ib,.btn,.ch,.dm,.sv,.cvsw,.mb,.m,.fr,.sr,.rx button,.dk,.send,.seg button,.kr,.box,.wbar button,.chip,.pill,.row,.it,.opt,.nav a,.nav button,.tab,.sw,.sws button,.find,.inp,.x,.gh,.room,.nb,.card,.tile){
  transition:background-color var(--t-hover) var(--e),color var(--t-hover) var(--e),box-shadow var(--t-hover) var(--e),
             border-color var(--t-hover) var(--e),opacity var(--t-hover) var(--e),transform var(--t-press) var(--e),border-radius var(--t-move) var(--e)}
:where(.ib,.btn,.sv,.cvsw,.dk,.send,.seg button,.sws button,.chip,.tab,.x):active{transform:scale(.965)}
html .btn:active,html .ib:active,html .send:active,html .dk:active{transform:scale(.965)}
/* switch: the knob slides, the colour mixes */
html .tog{transition:background-color var(--t-move) var(--e)}
html .tog::after{transition:transform var(--t-move) var(--e)}

/* sliding selected pill on every segmented control: v2.js marks it .v2s and places the pill with --thx/--thw
   (the long settings pages already have their own, from settings-page.js, with the same variables) */
.seg.v2s{position:relative;isolation:isolate}
.seg.v2s>button.on{background:transparent!important;box-shadow:none!important;color:var(--card)}
.seg.v2s::before{content:"";position:absolute;z-index:-1;left:0;top:var(--thy,3px);width:var(--thw,0);height:var(--thh,30px);border-radius:8px;
  background:var(--ink);pointer-events:none;transform:translateX(var(--thx,0));transition:transform var(--t-move) var(--e),width var(--t-move) var(--e)}
.seg.v2s.still::before{transition:none}

/* animations off: the app's setting (data-motion=off) and the system setting */
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{transition-duration:0s!important;animation-duration:0s!important;animation-delay:0s!important}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0s!important;animation-duration:0s!important;animation-delay:0s!important}
}

/* shadows, round 3 (2026-12-01): one wide, faint layer that fades out before the card's sides. Light only. */
html:root:not([data-theme=dark]):not([data-theme=black]){
  --lift:0 14px 40px -18px rgba(20,20,40,.13);
  --pop:0 24px 64px -24px rgba(20,20,40,.24);
}
