/* Gym's final source-facing paint layer. Important declarations in this named
   layer own only explicitly marked Gym components, ahead of older unlayered
   presentation rules. Shared header, footer, Profile More and form fields keep
   their existing owners. No specificity chains or native-control replacements. */
@layer gymDesignEffects{
 html[data-wz-module=gym]{--gym-design-effects-css:1}
 html[data-wz-module=gym] body.gym-design-effects{
  --gve-primary:linear-gradient(180deg,#23cfff 0%,#009bff 15%,#0075ed 45%,#005cff 100%);
  --gve-secondary:linear-gradient(165deg,#f5fdffdc,#d5efffba 64%,#c7e5facc);
  --gve-panel:linear-gradient(140deg,#f7fdffc7,#e0f2fcbc 62%,#d6edf7cc);
  --gve-ink:#08213c;--gve-edge:#9ed4f3;--gve-keyline:#ffffffc9;--gve-glow:#1882b52c;
 }
 html[data-wz-module=gym][data-wz-mode=dark] body.gym-design-effects{
  --gve-secondary:linear-gradient(160deg,#245571c7,#082d44b8 62%,#061f34d6);
  --gve-panel:linear-gradient(145deg,#245571a8,#092d42b8 65%,#041e33cf);
  --gve-ink:#eefaff;--gve-edge:#38728c;--gve-keyline:#bceaff56;--gve-glow:#0000004a;
 }
 body.gym-design-effects [data-gym-design-face]{
  box-sizing:border-box!important;min-height:44px!important;min-width:44px!important;
  border:solid transparent!important;border-width:5px 1px!important;border-radius:15px!important;
  padding:5px 12px!important;background:var(--gve-secondary)!important;background-clip:padding-box!important;
  color:var(--gve-ink)!important;-webkit-text-fill-color:currentColor!important;
  box-shadow:inset 0 1px 1px var(--gve-keyline),inset 0 -1px 1px var(--gve-edge)!important;
  filter:drop-shadow(0 2px 3px var(--gve-glow))!important;text-shadow:none!important;
  font-size:.875rem!important;font-weight:650!important;line-height:1.3!important;
  white-space:normal!important;overflow-wrap:normal!important;text-decoration:none!important;
  background-repeat:no-repeat!important;
 }
 body.gym-design-effects [data-gym-design-face=primary],
 body.gym-design-effects [data-gym-design-face][aria-pressed=true],
 body.gym-design-effects [data-gym-design-face][aria-selected=true],
 body.gym-design-effects [data-gym-design-face]:is(.active,.selected,.is-active,.is-selected){
  background:var(--gve-primary)!important;background-clip:padding-box!important;color:white!important;
  box-shadow:inset 0 1px 2px #d8ffffdb,inset 0 -1px 1px #0049ef9c!important;
  text-shadow:0 1px 1px #004e8c57!important;
 }
 body.gym-design-effects [data-gym-design-face=danger]{background:linear-gradient(#ff7971,#d62d36)!important;background-clip:padding-box!important;color:#fff!important}
 body.gym-design-effects [data-gym-design-face]:is(:disabled,[aria-disabled=true]){
  background:linear-gradient(#a8c5d9,#789bb7)!important;background-clip:padding-box!important;
  color:#fff!important;filter:none!important;opacity:.78!important;text-shadow:none!important;cursor:default!important;
 }
 body.gym-design-effects [data-gym-design-tile=true]{
  border-width:1px!important;border-color:var(--gve-edge)!important;border-radius:12px!important;
  padding:8px 6px!important;background-clip:border-box!important;
  box-shadow:inset 0 1px 2px var(--gve-keyline),0 2px 5px var(--gve-glow)!important;
 }
 body.gym-design-effects [data-gym-design-face]:focus-visible{outline:3px solid var(--pearl-link)!important;outline-offset:2px!important}
 /* C04/C10/C12/C14 use smaller painted pills and segmented faces. The native
    44px target remains; text can expand and wrap at enlarged sizes. */
 body.gym-design-effects [data-gym-design-face][data-gym-design-compact]{
  border-width:10px 1px!important;border-radius:14px!important;padding:0 8px!important;
  font-size:.75rem!important;line-height:1.3!important;white-space:nowrap!important;
 }
 body.gym-design-effects [data-gym-design-face][data-gym-design-compact=pill]{border-radius:20px!important}
 body.gym-design-effects [data-gym-design-face][data-gym-design-compact=tab]{border-width:8px 1px!important;border-radius:14px!important}
 body.gym-design-effects [data-gym-design-face][data-gym-design-compact] :is(span,strong){font-size:inherit!important;line-height:inherit!important}
 body.gym-design-effects [data-gym-design-face][data-gym-design-compact=tab]:not([aria-pressed=true]):not([aria-selected=true]):not(.active,.selected,.is-active,.is-selected){background:none!important;box-shadow:none!important;filter:none!important}
 body.gym-design-effects .glb-filter-actions>button{color:var(--pearl-link)!important}
 body.gym-design-effects .glb-filter-actions>button:last-child{background:none!important;box-shadow:none!important;filter:none!important}
 body.gym-design-effects[data-gym-design-roomy] [data-gym-design-face][data-gym-design-compact]{white-space:normal!important}
 body.gym-design-effects :is(.gch-chips,.v3-help-tabs)>[data-gym-design-caption]{font-size:.75rem!important;line-height:1.2!important;min-height:70px!important;padding:6px!important;gap:4px!important}
 body.gym-design-effects :is(.gch-chips,.v3-help-tabs)>[data-gym-design-caption] :is(span,strong){font-size:inherit!important;line-height:inherit!important}
 body.gym-design-effects [data-gym-design-face=primary]::before{display:none!important}
 body.gym-design-effects [data-gym-design-surface=true]:not([data-gym-design-face]):not(.danger,.error,.warning,.success,[role=alert]){
  background:var(--gve-panel)!important;border-color:var(--gve-edge)!important;
  box-shadow:inset 0 1px 1px var(--gve-keyline),0 3px 8px var(--gve-glow)!important;
  backdrop-filter:var(--gve-blur,blur(8px) saturate(1.08))!important;
  -webkit-backdrop-filter:var(--gve-blur,blur(8px) saturate(1.08))!important;
 }
 body.gym-design-effects [data-gym-design-dialog=true]{
  background:var(--gve-panel)!important;border:1px solid var(--gve-edge)!important;
  border-radius:20px!important;box-shadow:inset 0 1px 2px var(--gve-keyline),0 14px 36px #001e4557!important;
 }
 /* Complete scenes retain native copy above a single image, including its
    atmospheric background and contact shadow. Originals remain on failure. */
 body.gym-design-effects .v3-hero[data-gve-ready=true]{
  --gve-copy-reserve:130px;
  position:relative!important;isolation:isolate;overflow:hidden!important;min-height:124px!important;
  padding:14px var(--gve-copy-reserve) 18px 12px!important;border-radius:15px!important;
  background:#07538d!important;box-sizing:border-box!important;
 }
 body.gym-design-effects .v3-hero>.gve-scene:not([hidden]){
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;
  display:block!important;object-fit:cover!important;object-position:right center!important;z-index:-1!important;pointer-events:none!important;
 }
 body.gym-design-effects .gve-scene[hidden]{display:none!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true][data-gve-roomy]{--gve-copy-reserve:12px;padding:14px 12px 120px!important}
 body.gym-design-effects .v3-hero[data-gve-roomy]>.gve-scene:not([hidden]){inset:auto 0 0!important;height:112px!important;object-position:right bottom!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true]>.v3-banner-art{display:none!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true] .v3-hero-copy{position:relative!important;z-index:1!important;max-width:none!important;min-width:0!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true] h1{width:calc(100% + var(--gve-copy-reserve) - 12px)!important;max-width:none!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true] :is(h1,h2,p){color:white!important;-webkit-text-fill-color:white!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true] p{font-size:.8125rem!important;line-height:1.4!important;max-width:none!important}
 /* G12/G14 retain the source feature card's glass keyline and display copy. */
 @media(forced-colors:none){body.gym-design-effects .v3-hero[data-gve-ready=true]:not([data-gve-integrated]){border:1px solid #bcefff!important;box-shadow:inset 0 1px 1px #ffffffa6,0 3px 9px #0074b947!important}}
 body.gym-design-effects .v3-hero[data-gve-ready=true]:not([data-gve-integrated]) h2{font-size:1.375rem!important;line-height:1.15!important;letter-spacing:-.3px!important;margin:0 0 6px!important}
 body.gym-design-effects main[data-gve-main=true]>.wz-app-scene{display:none!important}
 body.gym-design-effects main[data-gve-main=true] #wz-standard-header{background:linear-gradient(115deg,#071d42,#084666)!important}
 body.gym-design-effects main[data-gve-main=true] h1.v3-page-title{color:var(--pearl-ink)!important;-webkit-text-fill-color:var(--pearl-ink)!important}
 /* G05/G08-G10/G12-G14/G21: one sky behind header, live title and decorative
    art, fading into the page. G12/G14 keep the feature-card edge in the PDF. */
 body.gym-design-effects main[data-gym-source-cover=true]{
  position:relative!important;isolation:isolate!important;
  background:transparent!important;
 }
 body.gym-design-effects main[data-gym-source-cover=true]::before{
  content:''!important;display:block!important;position:absolute!important;inset:0 0 auto!important;
  width:100%!important;height:260px!important;z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(#03294b 0%,#075b96 36%,#56bcec 72%,#b8e9fa00 100%)!important;
 }
 html[data-wz-mode=dark] body.gym-design-effects main[data-gym-source-cover=true]::before{background:linear-gradient(#001b2e 0%,#043b5b 50%,#07395300 100%)!important}
 body.gym-design-effects main[data-gym-source-cover=true]::after{content:none!important}
 body.gym-design-effects main[data-gym-source-cover=true]>.wz-app-scene{display:none!important}
 body.gym-design-effects main[data-gym-source-cover=true] #wz-standard-header{background:transparent!important}
 body.gym-design-effects main[data-gym-source-cover=true] [data-gym-header]{background:none!important;box-shadow:none!important}
 body.gym-design-effects main[data-gym-source-cover=true] h1[data-gym-cover-title]{color:white!important;-webkit-text-fill-color:white!important}
 body.gym-design-effects main[data-gym-source-cover=true] [data-gym-cover-copy]{color:white!important;-webkit-text-fill-color:white!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
 body.gym-design-effects .v3-hero[data-gve-ready=true][data-gve-integrated]{
  background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;isolation:auto!important;
 }
 body.gym-design-effects .v3-hero[data-gve-integrated]>.gve-scene:not([hidden]){
  inset:-12px -12px auto!important;width:calc(100% + 24px)!important;height:calc(100% + 6px)!important;
  mask-image:linear-gradient(transparent,#000 14%,#000 83%,transparent)!important;
  -webkit-mask-image:linear-gradient(transparent,#000 14%,#000 83%,transparent)!important;
 }
 body.gym-design-effects .v3-hero[data-gve-integrated][data-gve-roomy]>.gve-scene:not([hidden]){inset:auto -12px -12px!important;height:124px!important}
 body.gym-design-effects [data-gym-source-blend=true]{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
 body.gym-design-effects img[src*="/image-icon-review-20261117/"]{
  inset:-6px -12px auto!important;width:calc(100% + 24px)!important;height:calc(100% + 12px)!important;object-fit:cover!important;
  mask-image:linear-gradient(transparent,#000 12%,#000 82%,transparent)!important;
  -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 82%,transparent)!important;
 }
 /* C10's floor reflection/waves stay intact. Only the outer backdrop edge
    fades into the native canvas; ordinary movement photos are unaffected. */
 body.gym-design-effects .glr-reference-art{
  mask-image:linear-gradient(transparent,#000 5%,#000 88%,transparent)!important;
  -webkit-mask-image:linear-gradient(transparent,#000 5%,#000 88%,transparent)!important;
 }
 body.gym-design-effects .glb-row[data-gym-design-surface=true]{box-shadow:inset 0 1px 1px var(--gve-keyline)!important}
 /* C12 scene placement is owned by gym-plan-reference.css. */
 body.gym-design-effects #gym-plan-reference-content :is(.gpl-section,.gpl-tool-panel,.gpl-heading,.gpl-history){background:none!important;border:0!important;box-shadow:none!important}
 body.gym-design-effects #gym-plan-reference-content .kit-session-actions>a{width:max-content!important;max-width:100%!important}
 body.gym-design-effects #gym-plan-reference-content .gc-core-session>.kit-art{background:transparent!important}
 /* Wide movement frames follow the source. Contain preserves actual reviewed
    poses and presenter/movement bindings; no photo is swapped or recoloured. */
 html[data-wz-screen=gym-workout-preview] body.gym-design-effects .gc-core-exercise{grid-template-columns:20px 84px minmax(0,1fr) 58px!important;gap:6px!important;min-height:84px!important}
 html[data-wz-screen=gym-workout-preview] body.gym-design-effects .gp-movement{width:84px!important;height:64px!important;min-height:64px!important;max-height:64px!important;border-radius:8px!important}
 html[data-wz-screen=gym-workout-preview] body.gym-design-effects .gp-movement>img{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain!important}
 html[data-wz-screen=gym-workout-preview] body.gym-design-effects[data-gym-design-roomy] .gc-core-exercise{grid-template-columns:20px 84px minmax(0,1fr)!important}
 html[data-wz-screen=gym-workout-preview] body.gym-design-effects[data-gym-design-roomy] .kit-demo-link{grid-column:3!important;grid-row:auto!important;justify-self:start!important}
 body.gym-design-effects .kit-active-thumbnail{background:var(--gve-secondary)!important;border:1px solid var(--gve-edge)!important}
 body.gym-design-effects .glb-row>.kit-thumbnail{border-radius:7px!important;overflow:hidden!important}
 @media(max-width:350px){
  body.gym-design-effects .v3-hero[data-gve-ready=true]{--gve-copy-reserve:100px;padding-right:var(--gve-copy-reserve)!important}
  html[data-wz-screen=gym-workout-preview] body.gym-design-effects .gc-core-exercise{grid-template-columns:18px 68px minmax(0,1fr)!important}
  html[data-wz-screen=gym-workout-preview] body.gym-design-effects .gp-movement{width:68px!important;height:60px!important;min-height:60px!important}
  html[data-wz-screen=gym-workout-preview] body.gym-design-effects .kit-demo-link{grid-column:3!important;justify-self:start!important}
  body.gym-design-effects #gym-plan-reference-content .gc-core-program{grid-template-columns:minmax(0,1fr) 120px!important}
  body.gym-design-effects #gym-plan-reference-content :is(.kit-program-art,.gve-plan-art){width:138px!important;height:100px!important}
 }
 @media(prefers-reduced-motion:no-preference){body.gym-design-effects [data-gym-design-face]:not(:disabled):active{transform:translateY(1px)}}
 @media(prefers-reduced-transparency:reduce){
  html[data-wz-module=gym][data-wz-mode] body.gym-design-effects{--gve-secondary:var(--pearl-solid);--gve-panel:var(--pearl-solid);--gve-blur:none}
  body.gym-design-effects [data-gym-design-face]{filter:none!important}
  body.gym-design-effects [data-gym-design-surface=true],body.gym-design-effects [data-gym-design-dialog=true]{backdrop-filter:none!important}
 }
 @media(forced-colors:active){
  body.gym-design-effects{--gve-blur:none}
  body.gym-design-effects [data-gym-design-face],body.gym-design-effects [data-gym-design-face][aria-pressed],body.gym-design-effects [data-gym-design-face][aria-selected],body.gym-design-effects [data-gym-design-face]:is(.active,.selected,.is-active,.is-selected,:disabled){background:ButtonFace!important;color:ButtonText!important;border:1px solid ButtonText!important;filter:none!important;box-shadow:none!important}
  body.gym-design-effects [data-gym-design-surface=true]{background:Canvas!important;border-color:CanvasText!important;box-shadow:none!important}
  body.gym-design-effects .v3-hero[data-gve-ready=true]{background:Canvas!important;border:1px solid CanvasText!important}
  body.gym-design-effects .v3-hero[data-gve-ready=true]>.gve-scene{display:none!important}
  body.gym-design-effects .v3-hero[data-gve-ready=true] :is(h1,h2,p){color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}
  body.gym-design-effects [data-gym-design-face][data-gym-design-compact]{border:1px solid ButtonText!important}
  html[data-wz-mode] body.gym-design-effects main[data-gym-source-cover=true]{background:Canvas!important}
  body.gym-design-effects main[data-gym-source-cover=true]::before{display:none!important}
  body.gym-design-effects main[data-gym-source-cover=true] h1[data-gym-cover-title]{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}
  body.gym-design-effects main[data-gym-source-cover=true] [data-gym-cover-copy]{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}
  body.gym-design-effects [data-gym-design-surface=true]{backdrop-filter:none!important}
 }
}

/* Original art-only PDF components retain the complete prop and its scenery.
   They occupy the source's right-hand art zone instead of covering native copy. */
@layer gymDesignEffects {
 body.gym-design-effects .v3-hero[data-gve-original=true]>.gve-scene:not([hidden]){inset:auto -2px 0 auto!important;width:46%!important;height:100%!important;object-fit:contain!important;object-position:right bottom!important;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 100%)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 100%)!important}
 body.gym-design-effects .v3-hero[data-gve-original=true][data-gve-scene=preferences]>.gve-scene:not([hidden]){top:-10px!important;bottom:auto!important;width:52%!important;height:calc(100% + 10px)!important;object-position:right center!important}
 body.gym-design-effects .v3-hero[data-gve-original=true][data-gve-scene=lighter]{min-height:178px!important;padding:12px 12px 112px!important}
 body.gym-design-effects .v3-hero[data-gve-original=true][data-gve-scene=lighter]>.gve-scene:not([hidden]){width:72%!important;height:126px!important}
 body.gym-design-effects #gym-plan-reference-content .gve-plan-art{mask-image:linear-gradient(90deg,transparent,#000 8%)!important;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%)!important;filter:none!important}
 body.gym-design-effects[data-gym-design-roomy] .v3-hero[data-gve-original=true]>.gve-scene:not([hidden]){inset:auto 0 0 auto!important;width:150px!important;height:112px!important}
}
