/* ==========================================================================================================
   v11.0 · deep space & real liquid
   · the athlete app's black wave wallpaper (wall-athlete.jpg); the coach panel is pure black (v16)
   · glass that is clear, not foggy: little blur, no milky glow, a bright rim and a thick liquid edge
   · no blur behind the header pills
   · the sign-in screen: the mist photo, no grain
   ========================================================================================================== */

/* ---------- wallpapers (dark): the athlete app wears the coach's black wave; the coach panel is pure black (v16).
   Light mode keeps the light silk. To change one, replace the picture in public/img (same name). */
:root:not(.light)[data-wall=athlete]{--wall:url(../img/wall-athlete.jpg)}
:root[data-wall] .aurora{background-position:center bottom!important}
:root[data-wall=athlete] .aurora{background-position:center center!important}
:root[data-wall] .aurora::after{display:none}

/* ---------- real liquid glass, dark: clear body (little blur), no milky glow, light bent at the edges */
:root:not(.light){
  --glass-blur:blur(9px) saturate(175%);
  --glass-blur-lite:blur(7px) saturate(165%);
  --glass:rgb(255 255 255 / .022);
  --sheen:radial-gradient(130% 110% at var(--lx) var(--ly),rgb(255 255 255 / .055),rgb(255 255 255 / .012) 42%,rgb(255 255 255 / 0) 72%);
  --depth-shadow:
    inset 0 1px .5px rgb(255 255 255 / .34),
    inset 0 -1px 1px rgb(255 255 255 / .07),
    inset 0 0 0 .5px rgb(255 255 255 / .07),
    inset 14px 14px 26px -22px rgb(255 255 255 / .22),
    inset -14px -16px 26px -20px rgb(0 0 0 / .65),
    0 0 0 .5px rgb(0 0 0 / .7),
    0 24px 48px -22px rgb(0 0 0 / .95);
  --lq-blur:blur(8px) saturate(190%) brightness(1.04);
  --lq-fill:linear-gradient(180deg,rgb(255 255 255 / .11),rgb(255 255 255 / .025) 48%,rgb(255 255 255 / .06)),linear-gradient(rgb(10 10 10 / .38),rgb(10 10 10 / .38));
}
:root:not(.light) :is(.gl,.card,.meal-card,.post,.pmeal,.soc-chat){
  background:var(--sheen),linear-gradient(165deg,rgb(255 255 255 / .03),rgb(255 255 255 / .006) 45%,rgb(255 255 255 / .018))!important;
  box-shadow:var(--depth-shadow)!important;
  -webkit-backdrop-filter:var(--glass-blur-lite)!important;backdrop-filter:var(--glass-blur-lite)!important}
:root:not(.light) .sheet{background:linear-gradient(180deg,rgb(255 255 255 / .06),rgb(255 255 255 / 0) 120px),rgb(10 10 10 / .97)!important;-webkit-backdrop-filter:blur(30px) saturate(160%)!important;backdrop-filter:blur(30px) saturate(160%)!important}
:root:not(.light) .sheet.wide:has(.fx){background:#0a0a0a!important}
/* the rim: thin and bright where the light is, a faint return on the far edge, nothing in between */
:root:not(.light) :is(.gl,.card,.hdr .brand,.avatar,.tabbar,.side,.gl-pill)::before{
  background:radial-gradient(95% 75% at var(--lx) var(--ly),rgb(255 255 255 / .8),rgb(255 255 255 / .18) 32%,rgb(255 255 255 / .03) 62%,rgb(255 255 255 / .12) 100%)!important}

/* ---------- the header: no blur behind its pills; deep smoked glass with the liquid rim instead */
:is(.hdr,.lhdr) :is(.brand,.avatar,.sq,.hdr-pill,.gl-pill,.hdr-r>*):not(#_):not(#__){
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:root:not(.light) :is(.hdr,.lhdr) :is(.brand,.avatar,.sq,.hdr-pill,.gl-pill,.hdr-r>*):not(.over-inv):not(#_):not(#__){
  background:linear-gradient(180deg,rgb(255 255 255 / .09),rgb(255 255 255 / .02) 50%,rgb(255 255 255 / .05)),rgb(12 12 12 / .9)!important}
:root.light :is(.hdr,.lhdr) :is(.brand,.avatar,.sq,.hdr-pill,.gl-pill,.hdr-r>*):not(.over-inv):not(#_):not(#__){background:rgb(250 250 250 / .94)!important}

/* ---------- sign-in: the app's own wallpaper, crisp; no grain, no mist */
/* sign-in: the original mist photo (img/wl-mist.jpg), without the grain on top */
.wl2-veil::after{display:none!important}
.wl2-pill{background:linear-gradient(180deg,rgb(255 255 255 / .1),rgb(255 255 255 / .02) 50%,rgb(255 255 255 / .05)),rgb(6 6 6 / .9)!important;
  box-shadow:inset 0 1px .5px rgb(255 255 255 / .4),inset 0 -1px 1px rgb(255 255 255 / .08),0 0 0 .5px rgb(255 255 255 / .14),0 22px 50px -18px rgb(0 0 0 / .9)!important}

/* ---------- the keyboard: sheets sit above it, screens get room under it, the tab bar steps aside */
html.kb .scrim{top:var(--vvt,0px)!important;bottom:auto!important;height:var(--vvh,100%)!important}
html.kb .sheet{max-height:calc(var(--vvh,100dvh) - 10px)!important}
html.kb .main{padding-bottom:calc(var(--kb,0px) + 28px)!important}
html.kb .tabbar,html.kb .resume{opacity:0;pointer-events:none;transform:translateY(20px)}

/* ---------- the auto timer (intervals, holds) */
.atm{margin-top:18px;padding:20px 18px 16px;border-radius:28px;text-align:center;position:relative;isolation:isolate;
  background:radial-gradient(120% 90% at 50% 0%,rgb(255 255 255 / .07),rgb(255 255 255 / 0) 60%),rgb(255 255 255 / .02);
  box-shadow:inset 0 1px .5px rgb(255 255 255 / .3),inset 0 0 0 .5px rgb(255 255 255 / .08),0 20px 40px -24px rgb(0 0 0 / .9)}
.atm-ring{position:relative;width:180px;height:180px;margin:0 auto}
.atm-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.atm-trk{fill:none;stroke:rgb(255 255 255 / .08);stroke-width:8}
.atm-arc{fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round;transition:stroke-dashoffset .5s linear;filter:drop-shadow(0 0 8px rgb(255 255 255 / .55))}
.atm.k-rec .atm-arc,.atm.k-rest .atm-arc,.atm.k-switch .atm-arc,.atm.k-ready .atm-arc{stroke:rgb(255 255 255 / .45);filter:none}
.atm-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.atm-k{font-size:13px;font-weight:600;color:var(--muted)}
.atm.k-work .atm-k{color:var(--ink)}
.atm-v{font-size:52px;font-weight:300;line-height:1.05;letter-spacing:-.02em;text-shadow:0 0 22px rgb(255 255 255 / .35)}
.atm-s{font-size:12px;color:var(--dim);max-width:130px}
.atm-next{margin-top:10px;font-size:12.5px;color:var(--muted)}
.atm-b{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.atm-b .btn{width:auto;min-width:150px;justify-content:center;gap:8px}
.atm-own{margin-top:10px}
.atm.run.k-work{box-shadow:inset 0 1px .5px rgb(255 255 255 / .4),inset 0 0 0 .5px rgb(255 255 255 / .14),0 0 40px -12px rgb(255 255 255 / .35)}
:root.light .atm-trk{stroke:rgb(10 10 10 / .08)}
:root.light .atm-arc{stroke:#0a0a0a;filter:none}
:root.light .atm.k-rec .atm-arc,:root.light .atm.k-rest .atm-arc,:root.light .atm.k-switch .atm-arc{stroke:rgb(10 10 10 / .35)}
.optag{display:inline-block;padding:1px 8px;border-radius:999px;border:1px solid var(--line2);font-size:11px;color:var(--ink)}
.fx-meth{flex-wrap:wrap}
.rxt .rxt-c.wide{grid-column:1 / -1}
.atm-b .b{height:46px;padding:0 18px;gap:8px}
.atm-b .atm-main{min-width:132px;justify-content:center}

/* ---------- train together */
.duo-row{display:flex;align-items:center;gap:14px}
.duo-ic{flex:none;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgb(255 255 255 / .06);box-shadow:inset 0 1px .5px rgb(255 255 255 / .3),inset 0 0 0 .5px rgb(255 255 255 / .1)}
.duo-t{font-size:15px;font-weight:600;margin-top:3px}
.duo-s{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.duo.duo-on{box-shadow:var(--depth-shadow),0 0 36px -14px rgb(255 255 255 / .35)!important}
.duo .btn.inv{background:var(--ink);color:var(--bg)}
:root.light .duo-ic{background:rgb(10 10 10 / .05)}
