/* VSHVDOW Athletic — v12 · glowing depth (coach, 2 Nov: "a glowing depth effect for the whole app").
   Choices: light from within (glass lit at its edges, lifted off the wallpaper on layered shadows) · medium ·
   pure white · the big numbers and the tab bar glow most · tilt moves only the light (ui/depth.js sets --lx/--ly,
   opt-in per phone) · light mode = deep soft shadows · coach panel the same.
   Nothing here animates by itself, so it costs nothing while scrolling. */

:root{--lx:28%;--ly:-6%}

/* ---------- dark: light from within */
:root:not(.light){
  --depth-shadow:
    inset 0 1px 0 rgb(255 255 255 / .14),
    inset 0 0 0 .5px rgb(255 255 255 / .06),
    inset 0 -18px 34px -28px rgb(255 255 255 / .16),
    0 0 0 .5px rgb(0 0 0 / .7),
    0 2px 6px rgb(0 0 0 / .45),
    0 24px 48px -20px rgb(0 0 0 / .95),
    0 0 60px -22px rgb(255 255 255 / .3);
  --sheen:radial-gradient(130% 110% at var(--lx) var(--ly),rgb(255 255 255 / .13),rgb(255 255 255 / .035) 42%,rgb(255 255 255 / 0) 72%);
}
/* the face of the glass catches the light (ultra clear keeps its see-through body) */
:root.ultra:not(.light) :is(.gl,.card,.meal-card,.post,.pmeal,.soc-chat){
  background:radial-gradient(130% 110% at var(--lx) var(--ly),rgb(255 255 255 / .12),rgb(255 255 255 / .028) 45%,rgb(255 255 255 / 0) 72%),var(--noise),linear-gradient(170deg,rgb(255 255 255 / .04),rgb(255 255 255 / .01) 40%,rgb(255 255 255 / .02))!important}
/* the rim: brightest where the light is, a faint return on the far edge */
:root:not(.light) :is(.gl,.card,.hdr .brand,.avatar,.tabbar,.side,.gl-pill)::before,:root:not(.light) .sheet::after{
  background:radial-gradient(95% 75% at var(--lx) var(--ly),rgb(255 255 255 / .95),rgb(255 255 255 / .3) 30%,rgb(255 255 255 / .07) 60%,rgb(255 255 255 / .16) 100%)}
/* small glass (header pills, round buttons, chips) floats too */
:root:not(.light) :is(.hdr .brand,.hdr .avatar,.hdr .sq,.hdr-pill,.gl-pill,.sq,.b,.chip,.btn.line){
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .16),0 0 0 .5px rgb(0 0 0 / .6),0 10px 24px -12px rgb(0 0 0 / .9),0 0 30px -16px rgb(255 255 255 / .2)}
/* sheets rise out of the dark */
:root:not(.light) .sheet{box-shadow:inset 0 1px 0 rgb(255 255 255 / .18),0 -30px 80px -30px rgb(0 0 0 / .95),0 0 80px -40px rgb(255 255 255 / .25)}

/* ---------- the tab bar floats on light; the active icon is lit */
:root:not(.light) .tabbar{
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .2),0 0 0 .5px rgb(255 255 255 / .1),0 20px 44px -14px rgb(0 0 0 / .95),0 0 56px -12px rgb(255 255 255 / .26)}
:root:not(.light) .tabbar a[aria-current=page] :is(.ico,svg,.avatar){filter:drop-shadow(0 0 4px rgb(255 255 255 / .9)) drop-shadow(0 0 12px rgb(255 255 255 / .45))}
:root:not(.light) .tab-lens{box-shadow:inset 0 1px 0 rgb(255 255 255 / .45),0 0 0 .5px rgb(255 255 255 / .22),0 0 24px -2px rgb(255 255 255 / .38)}

/* ---------- big numbers glow from behind */
:root:not(.light) :is(.dial-n,.stat>.v,.tb-clock,.wk-time .num,.resume .num,
  .num[style*="font-size: 2"],.num[style*="font-size: 3"],.num[style*="font-size: 4"],.num[style*="font-size: 5"],.num[style*="font-size: 6"],.num[style*="font-size: 7"],.num[style*="font-size: 8"],.num[style*="font-size: 9"]){
  text-shadow:0 0 16px rgb(255 255 255 / .42),0 0 52px rgb(255 255 255 / .2)}
/* on a white (selected) card the glow would blur the digits: none there */
:root:not(.light) :is(.inv,.ink,.over-inv,[style*="background: var(--ink)"],[style*="background: rgb(250, 250, 250)"]) :is(.num,.dial-n,.stat>.v){text-shadow:none}

/* ---------- the room: a faint light that follows the same direction, behind everything */
:root:not(.light) .aurora::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(90% 55% at var(--lx) calc(var(--ly) + 4%),rgb(255 255 255 / .07),rgb(255 255 255 / 0) 70%)}

/* ---------- light mode: deep soft shadows, bright rims */
:root.light{
  --depth-shadow:
    inset 0 1px 0 #fff,
    0 0 0 .5px rgb(10 10 10 / .08),
    0 1px 2px rgb(0 0 0 / .05),
    0 8px 18px -8px rgb(0 0 0 / .14),
    0 30px 60px -28px rgb(0 0 0 / .3);
}
:root.light :is(.gl,.card,.hdr .brand,.avatar,.tabbar,.side,.gl-pill)::before{
  background:radial-gradient(95% 75% at var(--lx) var(--ly),#fff,rgb(255 255 255 / .6) 35%,rgb(255 255 255 / .2) 100%)}
:root.light :is(.hdr .brand,.hdr .avatar,.hdr .sq,.hdr-pill,.gl-pill,.sq,.b,.chip,.btn.line){
  box-shadow:inset 0 1px 0 #fff,0 0 0 .5px rgb(10 10 10 / .08),0 6px 16px -8px rgb(0 0 0 / .18)}
:root.light .tabbar{box-shadow:inset 0 1px 0 #fff,0 0 0 .5px rgb(10 10 10 / .08),0 22px 44px -16px rgb(0 0 0 / .32)}
:root.light .sheet{box-shadow:0 -24px 60px -24px rgb(0 0 0 / .3)}

@media (prefers-reduced-transparency:reduce){
  :root:not(.light) :is(.dial-n,.stat>.v,.tb-clock,.num){text-shadow:none}
  .aurora::before{display:none}
}

/* ---------- the athlete's sections in the coach panel: every tab always in view (they wrap instead of
   scrolling sideways out of sight — Nutrition, Check-ins and Profile were hidden on laptops and phones) */
.hscroll:has(> .ctabs){overflow:visible}
.ctabs{flex-wrap:wrap;min-width:0;gap:4px;border-radius:24px}
.ctabs button{font-size:13.5px;font-weight:600}
@media (max-width:700px){.ctabs{border-radius:20px;padding:4px}.ctabs button{padding:8px 12px;font-size:13px}}

/* ---------- v10.5 · no card taller than the screen: Progress splits body mass from its chart, tiles tighter */
.wtiles{margin-top:14px;gap:6px}
.wtiles>div{padding:10px 12px 9px}
.wtiles .wv{font-size:18px;margin-top:4px}
.wtiles .ws{margin-top:2px}
/* a post's photo never pushes the post past the screen (tap opens it full size) */
.post-img img{max-height:min(52vh,460px);width:100%;object-fit:cover}
.car-s{max-height:min(52vh,460px)}

/* ---------- v10.6 · prescriptions as labelled values: athlete tiles, the coach's editor and preview */
.rxt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:16px}
.rxt-c{padding:11px 12px 10px;border-radius:16px;background:var(--glass-2);border:1px solid var(--glass-brd);min-width:0}
.rxt-v{margin-top:5px;font-size:18px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rxt-v small{font-size:12px;font-weight:600;color:var(--dim)}
.rxt-note{margin-top:10px;font-size:13.5px;line-height:1.5;color:var(--muted)}
/* builder: each week range is a button showing what's set; a line under each exercise says what the athlete reads */
.rxcell{display:flex;align-items:center;gap:6px;justify-content:flex-start;text-align:start;font-size:12.5px;min-height:34px;padding:6px 10px;border-radius:10px;border:1px solid var(--line2);background:rgb(255 255 255 / .02)}
.rxcell:hover{border-color:var(--ink)}
.rxcell.chk{border-style:dashed}
.rxline{margin:0 0 6px 44px;font-size:12px;color:var(--muted);line-height:1.45}
.rxline span{color:var(--dim);margin-inline-end:8px;font-weight:600}
/* the exercise editor */
.sheet.wide:has(.fx){max-width:1120px}
.fx{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.9fr);gap:28px;align-items:start}
@media (max-width:900px){.fx{grid-template-columns:1fr}}
.fx-l{display:block;font-size:12.5px;font-weight:600;color:var(--dim)}
.fx-kinds{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.fx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px 14px}
.fx-f{display:flex;flex-direction:column;min-width:0}
.fx-t{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--line2);text-align:start;align-self:end}
.fx-in{display:flex;align-items:center;gap:8px;margin-top:6px}
.fx-in .box{flex:1;min-width:0;height:44px;font-size:16px;font-weight:600}
.fx-u{flex:none;font-size:12.5px;font-weight:600;color:var(--dim);background:transparent;border:0;color-scheme:dark}
select.fx-u{border:1px solid var(--line2);border-radius:10px;height:44px;padding:0 8px;color:var(--ink)}
.fx-check{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px dashed var(--line2);font-size:13px;line-height:1.45;color:var(--muted)}
.fx-pv{position:sticky;top:0}
.fx-phone{margin-top:8px;padding:20px 16px 18px;border-radius:34px;border:1px solid var(--line2);background:radial-gradient(120% 80% at 30% 0%,rgb(255 255 255 / .06),transparent 60%),#050505;color:#fafafa;box-shadow:0 0 0 6px rgb(255 255 255 / .03),0 30px 60px -30px rgb(0 0 0 / .9)}
:root.light .fx-phone{background:#0a0a0a}
.fx-phone .lbl{color:#8c8c8c}
.fx-ph-name{font-size:22px;font-weight:700;letter-spacing:-.02em;margin-top:8px}
.fx-ph-cue{margin-top:12px;font-size:13.5px;line-height:1.5}
.fx-ph-sets{margin-top:14px;display:flex;flex-direction:column;gap:6px}
.fx-ph-h,.fx-ph-r{display:grid;grid-template-columns:28px repeat(auto-fit,minmax(0,1fr)) 40px;gap:6px;align-items:center}
.fx-ph-h{font-size:11.5px;font-weight:600;color:#8c8c8c}
.fx-ph-r i{display:block;height:36px;border-radius:12px;border:1px solid #363636}
.fx-ph-r b{display:block;height:36px;border-radius:12px;border:1px solid #363636}
.fx-ph-done{margin-top:14px;height:44px;border-radius:999px;border:1px solid #363636;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}
.fx-phone .rxt-c{background:rgb(255 255 255 / .04);border-color:rgb(255 255 255 / .1)}
.fx-line{margin-top:12px;font-size:14px;font-weight:600;line-height:1.45}
/* the editor is a work surface: solid, so the table behind never shows through the boxes */
.sheet.wide:has(.fx){background:#0b0b0b!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:root.light .sheet.wide:has(.fx){background:#fafafa!important}
.minv{margin-top:10px}
.minv.on{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
