/* The Hub is the sole appearance authority. Tokens are shared; original artwork,
   scenic heroes, branded cards and module-owned gradients are NOT flattened. */
html[data-wz-mode=dark] {
  --wz-universe-background:
    radial-gradient(ellipse 68% 49% at 10% 18%,rgba(66,149,222,.27) 0%,rgba(66,149,222,0) 76%),
    radial-gradient(ellipse 72% 47% at 90% 28%,rgba(215,239,255,.13) 0%,rgba(215,239,255,0) 76%),
    radial-gradient(ellipse 73% 53% at 46% 90%,rgba(41,105,160,.23) 0%,rgba(41,105,160,0) 80%),
    linear-gradient(155deg,#091c36 0%,#061426 56%,#10304b 100%);
  --wz-page-wash:var(--wz-universe-background);
  --wz-global-canvas:#061426;--wz-canvas:var(--wz-global-canvas);--wz-panel:#10283d;--wz-ink:#f2f7fc;
  --wz-muted:#b9cbda;--wz-edge:#36536a;--wz-link:#85cfff;
  --wz-page-bg:var(--wz-canvas);--wz-surface:#10283d;--wz-surface-raised:#15354d;
  --wz-border:#36536a;--wz-text:#f2f7fc;--wz-accent:#60b9ff;
  --wz-accent-contrast:#061426;--wz-danger:#ff9d9d;
  --wz-radius-card:18px;--wz-radius-control:14px;
  --wz-touch-min:44px;--wz-safe-bottom:env(safe-area-inset-bottom,0px);
}
:root, html[data-wz-mode=light] {
  --wz-universe-background:
    radial-gradient(ellipse 78% 45% at 7% 16%,rgba(255,255,255,.96) 0%,rgba(255,255,255,0) 80%),
    radial-gradient(ellipse 69% 44% at 91% 27%,rgba(123,187,235,.43) 0%,rgba(123,187,235,0) 82%),
    radial-gradient(ellipse 83% 57% at 37% 91%,rgba(255,255,255,.8) 0%,rgba(255,255,255,0) 80%),
    linear-gradient(155deg,#eff9ff 0%,#cde7fb 55%,#e6f4ff 100%);
  --wz-page-wash:var(--wz-universe-background);
  --wz-global-canvas:#dcecf9;--wz-canvas:var(--wz-global-canvas);--wz-panel:#fafcff;--wz-ink:#102139;
  --wz-muted:#475f74;--wz-edge:#c9d8e5;--wz-link:#0758ad;
  --wz-page-bg:var(--wz-canvas);--wz-surface:#fafcff;--wz-surface-raised:#ffffff;
  --wz-border:#c9d8e5;--wz-text:#102139;--wz-accent:#076fd9;
  --wz-accent-contrast:#ffffff;--wz-danger:#a42237;
  --wz-radius-card:18px;--wz-radius-control:14px;
  --wz-touch-min:44px;--wz-safe-bottom:env(safe-area-inset-bottom,0px);
}
html[data-wz-mode] #account-theme-toggle { display:none!important; }
/* Short, optional explanations stay available without crowding mobile results/forms. */
html[data-wz-mode] body :is(main,dialog) details.wz-guidance {
  display:block!important; grid-column:1/-1; min-width:0; margin:8px 0!important;
  padding:0!important; border:0!important; border-top:1px solid var(--wz-edge)!important;
  border-radius:0!important; background:transparent!important; box-shadow:none!important;
  color:var(--wz-ink)!important;
}
html[data-wz-mode] body :is(main,dialog) details.wz-guidance>summary {
  display:list-item!important; min-height:44px; box-sizing:border-box; padding:10px 2px;
  color:var(--wz-link)!important; font-size:16px!important; line-height:1.5; font-weight:600;
  cursor:pointer; overflow-wrap:anywhere; white-space:normal;
}
html[data-wz-mode] body :is(main,dialog) details.wz-guidance>summary:focus-visible {
  outline:3px solid var(--wz-link); outline-offset:2px; border-radius:8px;
}
html[data-wz-mode] body :is(main,dialog) details.wz-guidance>p {
  margin:4px 0 12px!important; color:var(--wz-muted)!important; line-height:1.5;
}
/* Influencer already has an accessible expand control and a full task guide.
   Keep the step title/status; show its description when that step is opened. */
html[data-wz-module="influencer"][data-wz-mode] body .step-card:not(.expanded) .step-copy small {display:none}
html[data-wz-module="nutrition"][data-wz-mode] body h1 {text-shadow:none!important}
/* One shared outer brand canvas everywhere, including Hub. Soft radial blends
   suggest blurred light/cloud texture without literal cloud shapes or assets.
   Full illustrative hero/card backgrounds remain independent of this outer canvas. */
/* The build declares this layer first. Important declarations in the first
   layer win over legacy unlayered/app layers without escalating selectors.
   Only page canvases are governed here; original nested heroes, icons, scenes,
   cards and their pseudo-elements remain untouched. Old page-wide preserve
   markers cannot reintroduce a separate mockup canvas. */
@layer wzBrandCanvas {
  html[data-wz-mode] body {
    background-color:var(--wz-global-canvas)!important;
    background-image:var(--wz-universe-background)!important;
    background-attachment:fixed!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
  }
  html[data-wz-mode] body > main {
    background:transparent!important;
  }
}
/* Use the Hub artwork and brand contrast on the Calisthenics shell. */
html[data-wz-module="calisthenics"][data-wz-mode] #wz-standard-header.wz-standard-header {
 background-image:linear-gradient(to bottom,transparent 45%,var(--wz-panel)),var(--cali-ridge)!important;
 background-size:cover!important;background-position:center!important
}
html[data-wz-module="calisthenics"][data-wz-mode="light"] {--cali-ridge:url("assets/home/ridge-day.webp")}
html[data-wz-module="calisthenics"][data-wz-mode="dark"] {--cali-ridge:url("assets/home/ridge-night.webp")}
html[data-wz-module="calisthenics"][data-wz-mode] #wz-standard-header .wz-greeting {color:var(--wz-ink)!important;background:var(--wz-panel);border-radius:6px;padding-inline:3px}

html[data-wz-module="calisthenics"][data-wz-mode] #wz-standard-header#wz-standard-header.wz-standard-header .wz-profile-toggle .wz-greeting,
html[data-wz-module="calisthenics"][data-wz-mode] #wz-standard-header#wz-standard-header.wz-standard-header .wz-profile-toggle .wz-greeting * {color:var(--wz-ink)!important}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone nav.cali-nav.wz-fixed-nav a[aria-current="page"] {border-bottom-color:var(--wz-link)!important}

/* Module chrome follows the appearance selected on Home. */
html[data-wz-module][data-wz-mode] nav:is(.wz-fixed-nav, .creator-nav) {
  box-sizing: border-box;
  height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px)) !important;
  border: 1px solid var(--wz-edge) !important;
  border-radius: 16px 16px 0 0 !important;
  background: var(--wz-panel) !important;
  box-shadow: 0 -4px 18px rgb(15 45 72 / 18%) !important;
}
html[data-wz-module][data-wz-mode] #wz-standard-header .wz-home {
  box-sizing: border-box;
  display: inline-grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
}
html[data-wz-module][data-wz-mode] #wz-standard-header .wz-home span { display: none !important; }

/* Gym and Calisthenics use the same seven-day layout in the shared appearance. */
html[data-wz-mode] body :is(#calisthenics-connected .restored-date-strip, .gc-today-content .gc-core-week) {
 display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; padding:2px; border-radius:13px;
 border:1px solid var(--wz-edge);
}
html[data-wz-mode] body :is(#calisthenics-connected .restored-date-strip, .gc-today-content .gc-core-week) > :is(a,button) {
 position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
 min-width:0; min-height:44px; margin:0; padding:3px 0; gap:1px; border-radius:10px;
}
html[data-wz-mode] #calisthenics-connected .restored-date-strip [data-workout="true"]::after {
 content:""; position:absolute; bottom:3px; width:4px; height:4px; border-radius:50%; background:currentColor;
}
