/* One glass treatment for public pages, accounts and workspaces. */
body[data-fitvich-glass]{--fv-night:#070e20;--fv-lime:#c6ff36;--fv-glass:#ffffff;--fv-edge:#d5deec;--fv-spring:cubic-bezier(.2,.85,.3,1.08);--fv-ease:cubic-bezier(.22,1,.36,1)}
body[data-fitvich-glass]:not([data-site-width]){background:radial-gradient(ellipse at 90% 0,#c6ff3612,transparent 45%),radial-gradient(ellipse at 0 35%,#315fe911,transparent 55%),#f1f4fa}
body[data-fitvich-glass] :is(.personal-app,.space-shell){background:transparent}
body[data-fitvich-glass] :is(.personal-header,.app-top,.space-topbar,.space-sidebar,.personal-bottom-nav,.space-bottom-nav,.cms-topbar),body[data-fitvich-glass][data-site-width]>header{background:var(--fv-night);color:#fff;border-color:#ffffff24;box-shadow:inset 0 1px 0 #ffffff12,0 6px 24px #070e2014}
body[data-fitvich-glass] .cms-topbar .cms-save-state{color:#c2cce6}
body[data-fitvich-glass] :is(.space-topbar,.app-top,.personal-header) :is(.space-header-icon,.personal-notifications-trigger,.student-notifications-trigger){background:#ffffff0b;color:#fff;border-color:#ffffff30;box-shadow:inset 0 1px 0 #ffffff25}
body[data-fitvich-glass] .personal-header .personal-notifications-badge{border-color:var(--fv-night)}
body[data-fitvich-glass] :is(.panel,.personal-section,.personal-quick-actions,.space-week,.space-coach-card,.space-level-summary,.notice-item,.coach-student,.personal-feedback-card,.student-list-tools,.personal-feedback-filters,.space-feed-card,.chat-composer){background:var(--fv-glass);border-color:var(--fv-edge);box-shadow:inset 0 1px 0 #fff,0 6px 24px #131e4607}
body[data-fitvich-glass] :is(.space-shortcuts>button,.space-quick-stats>button,.personal-tile:not(.featured),.login-options>a:not(.selected),.personal-menu-grid>button:not([aria-current=page])){background:var(--fv-glass);border-color:var(--fv-edge);box-shadow:inset 0 1px 0 #fff,0 3px 14px #131e4605}
body[data-fitvich-glass] :is(.welcome,.space-next-workout,.cms-feature,.level-card){background:linear-gradient(125deg,#17264b,var(--fv-night));color:#fff}
body[data-fitvich-glass] :is([data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=popover-content],[data-slot=select-content],[data-slot=dropdown-menu-content],.personal-menu-sheet){background:var(--fv-glass);border-color:#ffffffb3;box-shadow:inset 0 1px 0 #fff,0 24px 80px #070e2033,0 0 0 1px #131e4610}
body[data-fitvich-glass] .space-mobile-menu[data-slot=dialog-content]{background:var(--fv-night);color:#fff}
body[data-fitvich-glass] :is([data-slot=dialog-overlay],[data-slot=alert-dialog-overlay],[data-slot=sheet-overlay]){background:#070e2066}
body[data-fitvich-glass] :is(.personal-notifications-heading,.student-notifications-heading){background:#e4ebf780}
body[data-fitvich-glass] :is([data-slot=button],.button,.nav-cta,.personal-account,.space-header-icon){box-shadow:inset 0 1px 0 #ffffff24}
/* The public landing page retains its dark sections and pricing hierarchy. */
body[data-fitvich-glass][data-site-width]{background:#f1f4fa}
body[data-fitvich-glass][data-site-width] :is(.plan:not(.featured),.assessment){background:var(--fv-glass);border:1px solid var(--fv-edge);border-radius:22px;box-shadow:inset 0 1px 0 #fff,0 10px 32px #131e4608}
body[data-fitvich-glass][data-site-width] :is(.plan.featured,.campaign,.pt-group,.about-mark){border-radius:22px;box-shadow:inset 0 1px 0 #ffffff26,0 14px 36px #070e2018}
body[data-fitvich-glass][data-site-width] :is(.pt-group,.about-mark){background:linear-gradient(135deg,#ffffff0c,#070e2073);border-color:#ffffff30}
body[data-fitvich-glass][data-site-width] :is(.button,.pt-select){border-radius:14px}
body[data-fitvich-glass][data-site-width] .strip{background:var(--fv-night)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 body[data-fitvich-glass]{--fv-glass:linear-gradient(135deg,#fffffff0,#ffffffc9);--fv-edge:#ffffffba}
 body[data-fitvich-glass] :is(.panel,.personal-section,.personal-quick-actions,.space-week,.space-coach-card,.space-level-summary,.notice-item,.coach-student,.personal-feedback-card,.space-feed-card,.chat-composer,.student-list-tools,.personal-feedback-filters,[data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=popover-content],[data-slot=select-content],[data-slot=dropdown-menu-content],.personal-menu-sheet){-webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%)}
 body[data-fitvich-glass] :is(.space-topbar,.personal-bottom-nav,.space-bottom-nav,.cms-topbar){background:#070e20f5;-webkit-backdrop-filter:blur(20px) saturate(120%);backdrop-filter:blur(20px) saturate(120%)}
 body[data-fitvich-glass][data-site-width] :is(.plan,.assessment,.pt-group,.campaign){-webkit-backdrop-filter:blur(14px) saturate(120%);backdrop-filter:blur(14px) saturate(120%)}
 body[data-fitvich-glass] :is([data-slot=dialog-overlay],[data-slot=sheet-overlay],[data-slot=alert-dialog-overlay]){-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
}
@media(prefers-reduced-motion:no-preference){
 body[data-fitvich-glass] :is(button,a,summary,[role=tab]){transition:scale 300ms var(--fv-spring),translate 300ms var(--fv-ease),background-color 220ms ease,border-color 220ms ease,box-shadow 260ms ease,color 220ms ease}
 body[data-fitvich-glass] :is(button,.button,.pt-select,summary):not(:disabled):active{scale:.97;transition-duration:100ms}
 body[data-fitvich-glass] :is([data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=popover-content],[data-slot=select-content],[data-slot=dropdown-menu-content])[data-state=open]{animation:fv-glass-in 340ms var(--fv-spring) both}
 body[data-fitvich-glass] :is([data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=popover-content],[data-slot=select-content],[data-slot=dropdown-menu-content])[data-state=closed]{animation:fv-glass-out 140ms ease-in both}
 body[data-fitvich-glass] :is(.app-wrap,.login,.cms-content){animation:fv-content-in 380ms var(--fv-ease) both}
 body[data-fitvich-glass][data-site-width] :is(.hero-content,.section-heading){animation:fv-content-in 600ms var(--fv-ease) both}
 body[data-fitvich-glass] :is(.student-notification-item,.student-message-alert){animation:fv-content-in 260ms var(--fv-ease) both}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body[data-fitvich-glass] :is(.button,.plan,.personal-tile,.space-shortcuts>button,.space-quick-stats>button,.login-options>a){transition:translate 320ms var(--fv-ease),box-shadow 320ms ease,background-color 220ms ease}
 body[data-fitvich-glass] :is(.plan,.personal-tile,.space-shortcuts>button,.space-quick-stats>button,.login-options>a):hover{translate:0 -3px;box-shadow:inset 0 1px 0 #ffffff80,0 14px 30px #070e2014}
 body[data-fitvich-glass] :is(.space-header-icon,.personal-account,.student-notifications-trigger):hover{scale:1.045}
}
@keyframes fv-content-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes fv-glass-in{from{opacity:0;scale:.96}to{opacity:1;scale:1}}
@keyframes fv-glass-out{to{opacity:0;scale:.98}}
@media(prefers-reduced-motion:reduce){body[data-fitvich-glass] *,body[data-fitvich-glass] *::before,body[data-fitvich-glass] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){body[data-fitvich-glass]{--fv-glass:#fff;--fv-edge:#d5deec}body[data-fitvich-glass] *,body[data-fitvich-glass] *::before,body[data-fitvich-glass] *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}body[data-fitvich-glass] :is(.space-topbar,.personal-bottom-nav,.space-bottom-nav,.cms-topbar){background:var(--fv-night)}}
@media(forced-colors:active){body[data-fitvich-glass] :is(.panel,.plan,.notice-item,.personal-header,.app-top,.space-topbar,.space-sidebar,[data-slot=popover-content],[data-slot=dialog-content]){background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}}
/* Fluid FITVICH surfaces: bounded motion, no perpetual page animation. */
body[data-fitvich-glass] :is(.library-category-card,.compact-library-item,.coach-plan-folder,.dossier-disclosure,.nutrition-fold,.manual-list article){background:var(--fv-glass);border:1px solid var(--fv-edge);box-shadow:inset 0 1px 0 #ffffff28,0 8px 26px #070e2010;border-radius:20px}
body[data-fitvich-glass] :is(button,.button,summary){transition:background-color .22s ease,border-color .22s ease,box-shadow .25s ease,transform .25s cubic-bezier(.22,1,.36,1)}
body[data-fitvich-glass] button:active:not(:disabled){transform:scale(.975)}
@supports(backdrop-filter:blur(1px)){body[data-fitvich-glass] :is(.library-category-card,.coach-plan-folder,.nutrition-fold){backdrop-filter:blur(12px) saturate(135%);-webkit-backdrop-filter:blur(12px) saturate(135%)}}
@media(prefers-reduced-motion:no-preference){body[data-fitvich-glass] :is([role=tabpanel],.library-category-grid,.compact-library,.dossier-report-content){animation:fv-content-in .32s cubic-bezier(.22,1,.36,1) both}body[data-fitvich-glass] details[open]>:not(summary){animation:fv-content-in .24s ease both}body[data-fitvich-glass] [data-slot=dialog-content][data-state=open]{animation:fv-glass-in .28s cubic-bezier(.22,1,.36,1)}}
.category-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-editor-grid details{min-width:0;padding:14px}.category-editor-grid input{max-width:100%}.category-editor-grid summary{min-height:44px;cursor:pointer;font-weight:600}@media(max-width:640px){.category-editor-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-fitvich-glass] *,body[data-fitvich-glass] *::before,body[data-fitvich-glass] *::after{animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){body[data-fitvich-glass] :is(.library-category-card,.compact-library-item,.coach-plan-folder,.dossier-disclosure,.nutrition-fold,.manual-list article){background:var(--card);backdrop-filter:none;-webkit-backdrop-filter:none}}
/* Visible depth behind transparent surfaces, in both themes. */
html body[data-fitvich-glass]:not([data-site-width]){background:radial-gradient(ellipse at 85% 12%,#b6e75588,transparent 46%),radial-gradient(ellipse at 8% 48%,#80b9e477,transparent 48%),linear-gradient(135deg,#e2eaf2,#edf3db 58%,#d7e6f1)!important;background-attachment:fixed;--fv-glass:linear-gradient(135deg,#ffffffa8,#ffffff54);--fv-edge:#ffffffc9}
html[data-theme=dark] body[data-fitvich-glass]:not([data-site-width]){background:radial-gradient(ellipse at 90% 8%,#648f304f,transparent 48%),radial-gradient(ellipse at 10% 48%,#235b8559,transparent 52%),#090f1e!important;--fv-glass:linear-gradient(135deg,#26374d99,#101c306b);--fv-edge:#ffffff32}
html body[data-fitvich-glass] :is(.space-shell,.space-workspace,.personal-app){background:transparent!important}
html body[data-fitvich-glass] :is(.space-week,.space-coach-card,.space-level-summary,.space-feed-card,.space-shortcuts>button,.space-quick-stats>button,.personal-section,.personal-quick-actions,.personal-tile:not(.featured),.panel,.library-category-card,.coach-plan-folder){background:var(--fv-glass)!important;border:1px solid var(--fv-edge)!important;border-radius:24px;box-shadow:inset 0 1px 0 #ffffff8c,inset 0 -1px 0 #ffffff1a,0 12px 36px #101e3520!important;backdrop-filter:blur(20px) saturate(155%);-webkit-backdrop-filter:blur(20px) saturate(155%)}
html body[data-fitvich-glass] :is(.space-topbar,.personal-bottom-nav,.space-bottom-nav){background:#0b172eb8!important;border:1px solid #ffffff40;box-shadow:inset 0 1px 0 #ffffff38,0 8px 32px #0002;backdrop-filter:blur(26px) saturate(165%);-webkit-backdrop-filter:blur(26px) saturate(165%)}
html body[data-fitvich-glass] :is([data-slot=dialog-content],[data-slot=popover-content],.personal-menu-sheet){background:var(--fv-glass)!important;backdrop-filter:blur(32px) saturate(160%);-webkit-backdrop-filter:blur(32px) saturate(160%);border:1px solid var(--fv-edge)!important;box-shadow:inset 0 1px 0 #ffffff80,0 24px 80px #070e2040!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){html body[data-fitvich-glass] :is(.space-shortcuts>button,.space-quick-stats>button,.library-category-card,.personal-tile):hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffffa8,0 18px 36px #101e3528!important}}
@media(prefers-reduced-transparency:reduce){html body[data-fitvich-glass]:not([data-site-width]){--fv-glass:var(--card)}html body[data-fitvich-glass] *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@supports not (backdrop-filter:blur(1px)){html body[data-fitvich-glass]:not([data-site-width]){--fv-glass:var(--card)}}
/* Light glass needs dark ink, including secondary labels. */
html:not([data-theme=dark]) body[data-fitvich-glass] :is(.space-week,.space-coach-card,.space-level-summary,.space-feed-card,.space-shortcuts>button,.space-quick-stats>button,.personal-section,.personal-quick-actions,.personal-tile:not(.featured),.panel,.library-category-card,.coach-plan-folder,[data-slot=dialog-content],[data-slot=popover-content]){color:#172442}
html:not([data-theme=dark]) body[data-fitvich-glass] :is(.space-week,.space-coach-card,.space-level-summary,.space-feed-card,.space-shortcuts,.space-quick-stats,.personal-section,.panel,.library-category-card,.coach-plan-folder) :is(.muted,.text-muted-foreground,small,.overline,.space-feed-meta){color:#46556b!important;opacity:1}
html:not([data-theme=dark]) body[data-fitvich-glass] :is(.space-week-days span,.space-week-days strong,.space-quick-stats span,.space-quick-stats strong,.space-section-title>button,.space-page-heading .overline,.space-page-heading p.muted){color:#3d4d62!important}
html:not([data-theme=dark]) body[data-fitvich-glass] :is(.space-coach-card,.space-level-summary) :is(h2,h3,p,span,strong){color:#172442}

/* Keep exercise interactions light; retain glass on the surrounding shell. */
body[data-fitvich-glass] .workout-body,body[data-fitvich-glass] .workout-body *{animation:none!important}
body[data-fitvich-glass] .workout-body :is(.exercise-row,.exercise-details,.panel,details){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-fitvich-glass] .workout-check [data-slot=checkbox]{transition:none!important;transform:none!important;touch-action:manipulation}
@media(max-width:767px){body[data-fitvich-glass] :is(.space-feed-card,.compact-library-item,.library-category-card,.coach-plan-folder){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* Explicit readable surfaces for transparent PNG customization. */
html body[data-fitvich-glass] .workout-png-dialog[data-slot=dialog-content]{--png-surface:#f8fafc;--png-ink:#172442;--png-muted:#46556b;--png-field:#fff;--png-border:#8190a3;background:var(--png-surface)!important;color:var(--png-ink)!important}
html[data-theme=dark] body[data-fitvich-glass] .workout-png-dialog[data-slot=dialog-content]{--png-surface:#172338;--png-ink:#f4f7fc;--png-muted:#c3cede;--png-field:#24334b;--png-border:#8495ae;color-scheme:dark}
html body[data-fitvich-glass] .workout-png-dialog :is(label,legend,[data-slot=dialog-title],[role=status]){color:var(--png-ink)!important}
html body[data-fitvich-glass] .workout-png-dialog [data-slot=dialog-description]{color:var(--png-muted)!important}
html body[data-fitvich-glass] .workout-png-dialog :is(select,option){background:var(--png-field)!important;color:var(--png-ink)!important;border:1px solid var(--png-border);border-radius:10px;padding:10px;max-width:100%}
html body[data-fitvich-glass] .workout-png-dialog input[type=checkbox]{accent-color:#537b00;width:18px;height:18px;flex-shrink:0}
html body[data-fitvich-glass] .workout-png-dialog .actions :is(button,a){background:#c6ff36!important;color:#172442!important;border:1px solid #729a20!important}
html body[data-fitvich-glass] .workout-png-dialog :focus-visible{outline:2px solid var(--png-ink);outline-offset:3px}
/* Light menu surfaces must not inherit the dark navigation's white ink. */
html:not([data-theme=dark]) body[data-fitvich-glass] .space-mobile-menu[data-slot=dialog-content]{background:#f5f8fc!important;color:#172442!important}
html:not([data-theme=dark]) body[data-fitvich-glass] :is(.space-mobile-menu,.personal-menu-sheet,[data-slot=dropdown-menu-content],[data-slot=select-content]) :is(button,a,label,span,small,strong,h2,[role=menuitem],[role=option],.space-nav-item,.space-nav-group){color:#172442!important}
html:not([data-theme=dark]) body[data-fitvich-glass] .space-mobile-menu :is([data-slot=dialog-description],.space-nav-group){color:#46556b!important}
html:not([data-theme=dark]) body[data-fitvich-glass] .space-mobile-menu .space-nav-item[aria-current=page]{background:#c6ff36!important;color:#172442!important}
html:not([data-theme=dark]) body[data-fitvich-glass] .space-mobile-links{border-color:#cbd5e1}
/* Keep the home profile photo free of a rectangular frame in dark mode. */
html[data-theme=dark] body[data-fitvich-glass] .fitness-page-heading .space-edit-profile{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-theme=dark] body[data-fitvich-glass] .fitness-page-heading .space-edit-profile::before,html[data-theme=dark] body[data-fitvich-glass] .fitness-page-heading .space-edit-profile::after{display:none!important}
/* Header profile: only the circular avatar remains visible. */
html body[data-fitvich-glass] .space-topbar .space-header-profile{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:50%!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;min-width:0!important}
html body[data-fitvich-glass] .space-topbar .space-header-profile>span:last-child:not(.student-avatar){display:none!important}
html body[data-fitvich-glass] .space-topbar .space-header-profile::before,html body[data-fitvich-glass] .space-topbar .space-header-profile::after{display:none!important}
html body[data-fitvich-glass] .space-topbar .space-header-profile .student-avatar{border-radius:50%!important;overflow:hidden}
