/* 12_Setup / Setup_Panels: route-only glass groups and original wizard controls. */
html[data-wz-screen="gym-setup"][data-wz-mode="light"] body.gym-core.gym-core {--gws-glass:linear-gradient(125deg,#eff8ff,#dceefd);--gc-panel:#e7f3fd;--gc-raised:#e2effb;--gc-line:#b8d1e7;--gc-sub:#294560}
html[data-wz-screen="gym-setup"][data-wz-mode="dark"] body.gym-core.gym-core {--gws-glass:linear-gradient(125deg,#123b4e,#082a3d);--gc-panel:#092d40;--gc-raised:#133b50;--gc-line:#3d6579;--gc-sub:#d2e5f1;--gc-link:#65e5f5}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core main.gw-page {padding-bottom:calc(142px + env(safe-area-inset-bottom))!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-heading {margin:0 0 10px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-steps {gap:0;padding:5px 2px;border:1px solid var(--gc-line);border-radius:13px;background:var(--gws-glass)!important;margin:0 0 8px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-steps button {display:flex;flex-direction:column;justify-content:flex-start;gap:3px;padding:3px 2px;background:none!important;border:0!important;border-radius:0;font-size:12px;min-width:0;min-height:50px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-steps b {margin:0;width:1.9em;height:1.9em;font-size:13px;flex:none}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-steps button::after {top:15px;left:calc(50% + 17px);right:calc(-50% + 17px);background:var(--gc-line)}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-status {margin:6px 0 9px;font-size:13px;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-content {display:flex;flex-direction:column;gap:9px;min-width:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-single,.gw-section-group) {gap:9px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-card,.gw-optional,.form-workout-row) {margin:0!important;padding:10px 11px;border-radius:13px!important;background:var(--gws-glass)!important;border:1px solid var(--gc-line)!important;box-shadow:var(--gc-shadow)!important;min-width:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-card h2 {display:flex;align-items:center;gap:7px;font-size:16px!important;line-height:1.35;margin:0 0 6px!important;min-width:0;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-card h2 svg {width:20px;height:20px;flex:0 0 20px;color:var(--gc-text)}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-card p,.gw-card small) {font-size:13px;line-height:1.45;margin:5px 0;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-field {display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.4;margin:6px 0 0;color:var(--gc-text)!important;min-width:0;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(input,select,textarea) {min-width:0;max-width:100%;min-height:44px;font-size:16px;line-height:1.35;background:var(--gc-panel)!important;color:var(--gc-text)!important;border:1px solid var(--gc-line)!important;border-radius:9px;padding:8px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core input[type=checkbox] {width:24px;height:24px;min-height:24px;flex:0 0 24px;accent-color:#075ac1}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-ack {min-height:44px;align-items:center;line-height:1.45;gap:9px;padding:10px;font-size:14px;overflow-wrap:anywhere;background:var(--gws-glass);border:1px solid var(--gc-line);border-radius:10px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build-pair {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:8px;min-width:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build {padding:9px!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build h2 {font-size:15px!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build h2 svg {display:none}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build .gw-selected-illustration {display:flex;flex-direction:column;align-items:center;gap:3px;margin:6px 0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build .gw-selected-illustration .wz-physique-art {width:88px;max-width:100%;border-radius:9px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build .gw-selected-illustration p {font-size:12px;text-align:center}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-gallery-browse>summary {min-height:44px;font-size:13px;line-height:1.4;padding:7px 0;color:var(--gc-link);overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build .gw-photo-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-photo span {font-size:12px!important;min-height:44px;overflow-wrap:anywhere!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-photo [data-presentation] {min-height:0!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-optional {padding:0 11px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-optional>summary {min-height:44px;padding:11px 0;font-size:14px;line-height:1.4;color:var(--gc-text);overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-optional[open] {padding-bottom:10px;display:grid;gap:8px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-preferences>.gw-grid {display:flex;flex-direction:column;gap:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-preferences .gw-field {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));align-items:center;gap:8px;padding:5px 0;margin:0;border-bottom:1px solid var(--gc-line)}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-preferences .gw-field:last-child {border-bottom:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .form-physique {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .form-physique>.gw-edit {grid-column:2;grid-row:1 / span 3;min-width:44px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .form-physique>.wz-physique-art {width:64px;max-width:100%}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr));gap:3px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-choice {min-width:0;min-height:44px;padding:6px 1px;gap:3px;display:flex;flex-direction:column}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-choice strong {font-size:12px;line-height:1.35;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-choices button,.b3-day-modes button) {font-size:13px;min-width:44px;min-height:44px;padding:8px 6px;line-height:1.35}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-content :is(.gw-choices,.b3-day-grid,.b3-day-modes) [aria-pressed=true] {background:linear-gradient(#0868cb,#0057c8)!important;color:#fff!important;border-color:#0868cb!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-grid [aria-pressed=true] strong {color:inherit!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-controls {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:0;background:none!important;border:0;box-shadow:none}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-controls>button {flex:1 1 130px;min-height:46px;font-size:14px;line-height:1.4;margin:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-controls>.gw-later {flex-basis:100%;background:none!important;border:0!important;color:var(--gc-link)!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(button.gw-primary,#gw-controls button.gw-primary) {background:linear-gradient(#0868cb,#0057c8)!important;color:#fff!important;border-color:#0868cb!important}
html[data-wz-screen="gym-setup"][data-wz-mode="dark"] body.gym-core.gym-core :is(button.gw-primary,#gw-controls button.gw-primary) {background:linear-gradient(#52e7f2,#12c1db)!important;color:#06273a!important;border-color:#52e7f2!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-confirm :is(h2,p,button) {overflow-wrap:anywhere;white-space:normal;min-width:0}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-confirm,.gw-picker,.comparison-dialog) {background:var(--gc-panel)!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-picker,.comparison-dialog) :is(button,a) {min-height:44px;min-width:44px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core nav.gym-nav {height:auto!important;min-height:68px!important;align-items:stretch}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core nav.gym-nav>a {height:auto!important;min-height:52px;min-width:0;white-space:normal!important;overflow-wrap:anywhere}

html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-choices [aria-pressed=true] :is(small,strong,svg) {color:inherit!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gw-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.b3-day-modes,.b3-day-count) {background:var(--gc-panel)!important;border-color:var(--gc-line);margin:8px 0;padding:6px;gap:6px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-count {flex-wrap:wrap}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-count :is(strong,span) {color:var(--gc-text)!important;white-space:normal;overflow-wrap:anywhere}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.b3-day-note,.b3-day-hint) {color:var(--gc-sub)!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-day-check {color:inherit;width:1.5em;height:1.5em;flex-basis:auto;font-size:13px;border:0;background:none!important;box-shadow:none!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-day {grid-template-columns:minmax(44px,3em) minmax(0,1fr) auto;gap:8px}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-day :is(strong,small) {white-space:normal;overflow-wrap:anywhere;overflow:visible}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-day small {display:block;grid-column:2;grid-row:2}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-day .b3-builder-arrow {grid-column:3;grid-row:1 / span 2}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-date {height:auto;min-height:44px;padding:5px;grid-row:1 / span 2}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .comparison-dialog .form-two {grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}

html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-estimate,.gw-saved-note,.gw-info) {background:var(--gc-panel)!important;border-color:var(--gc-line);color:var(--gc-text)!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-content .gw-choices button svg {color:inherit!important}

/* Native error text and its surface must change theme together. */
html[data-wz-screen="gym-setup"] body.gym-core.gym-core #gw-status[data-error=true] {background:var(--gc-panel)!important;color:var(--wz-danger)!important;border-color:var(--wz-danger)!important}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .b3-builder-day .b3-builder-arrow {color:var(--gc-text)!important}

/* The existing save-and-exit action belongs in the board's top toolbar. */
html[data-wz-screen="gym-setup"] main.gw-page {box-sizing:border-box;min-width:0!important;max-width:min(430px,100%)!important}
html[data-wz-screen="gym-setup"] .gws-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 6px}
html[data-wz-screen="gym-setup"] .gws-toolbar>span {font-size:13px;color:var(--gc-sub)}
html[data-wz-screen="gym-setup"] .gws-toolbar .gw-later {width:auto;min-height:44px;margin:0;padding:6px 0;background:none!important;border:0!important;color:var(--gc-link)!important;font-size:13px}
html[data-wz-screen="gym-setup"] .gw-heading h1 {font-size:26px!important;line-height:1.2}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build-pair {grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core .gws-build .gw-selected-illustration .wz-physique-art {width:100%;max-width:126px;object-fit:contain}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(input,select,textarea,.gw-confirm,.gw-picker,.comparison-dialog) {box-sizing:border-box}
html[data-wz-screen="gym-setup"] body.gym-core.gym-core :is(.gw-confirm,.gw-picker,.comparison-dialog) {max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--gc-line);border-radius:16px}

/* G03 review composition: summary, start, real week, saved details, activation. */
html[data-wz-screen=gym-setup] body.gym-core.gym-core .gws-review-page #gw-content .gw-review-plan{display:flex;align-items:center;gap:9px;min-height:46px;padding:8px 11px!important}
html[data-wz-screen=gym-setup] .gw-review-plan>svg,html[data-wz-screen=gym-setup] .gw-review-start>svg,html[data-wz-screen=gym-setup] .form-edit-row>svg{width:24px;height:24px;flex:none;color:var(--gc-text)}
html[data-wz-screen=gym-setup] .gw-review-plan>strong{font-size:.9375rem;line-height:1.3}
html[data-wz-screen=gym-setup] .gw-review-start{display:flex;align-items:center;gap:10px;min-height:44px}
html[data-wz-screen=gym-setup] .gw-review-start>span{margin-left:auto;text-align:right;font-size:.875rem}
html[data-wz-screen=gym-setup] .gw-review-section-title{font-size:1.0625rem!important;line-height:1.3;margin:4px 0 0!important}
html[data-wz-screen=gym-setup] .gws-review-page .form-workout-row>summary{grid-template-columns:72px minmax(0,1fr) auto!important;gap:9px!important}
html[data-wz-screen=gym-setup] .gw-review-workout-art{display:grid!important;place-items:center;width:72px;height:54px;overflow:hidden;border-radius:8px;background:var(--gc-raised)}
html[data-wz-screen=gym-setup] .gw-review-workout-art img{width:100%;height:100%;object-fit:contain}
html[data-wz-screen=gym-setup] .gw-review-workout-art>svg{width:34px;height:34px;color:var(--gc-link)}
html[data-wz-screen=gym-setup] .gws-review-page .form-workout-row>summary>span:last-child{white-space:normal;max-width:86px;min-height:44px;display:flex;align-items:center;text-align:center;border:1px solid var(--gc-line);border-radius:9px;padding:4px 8px;color:var(--gc-link);background:var(--gc-panel)}
html[data-wz-screen=gym-setup] body.gym-core.gym-core .gws-review-page .form-edit-row{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 10px!important;min-height:54px}
html[data-wz-screen=gym-setup] .form-edit-row>span{display:grid;gap:2px;min-width:0}
html[data-wz-screen=gym-setup] .form-edit-row>span>small{font-size:.8125rem;line-height:1.3}
html[data-wz-screen=gym-setup] .gws-review-page .form-edit-row>button{position:static!important;min-width:64px!important;min-height:44px!important;margin:0!important}
html[data-wz-screen=gym-setup] .gw-review-status>h2{font-size:1rem!important}
html[data-wz-screen=gym-setup] .gw-review-status>p,html[data-wz-screen=gym-setup] .gw-review-first-week>p{font-size:.875rem!important;line-height:1.4;margin:5px 0 0!important}
html[data-wz-screen=gym-setup] .gw-review-nutrition{display:flex;gap:10px;align-items:center}
html[data-wz-screen=gym-setup] .gw-review-nutrition>span{display:grid;gap:3px;flex:1;min-width:0}
html[data-wz-screen=gym-setup] .gw-review-nutrition small{font-size:.8125rem;line-height:1.35}
html[data-wz-screen=gym-setup] .gw-review-nutrition>a{display:flex;align-items:center;text-align:center;max-width:105px;min-height:44px;color:var(--gc-link)}
html[data-wz-screen=gym-setup] .gws-review-page #gw-controls{flex-direction:column!important}
html[data-wz-screen=gym-setup] body.gym-core.gym-core .gws-review-page #gw-controls>button{flex:none!important;width:100%;min-height:44px}
html[data-wz-screen=gym-setup] .gws-review-page #gw-controls>button:disabled{opacity:.55!important;cursor:default}
html[data-wz-screen=gym-setup] .gws-review-page .gw-ack{padding:10px;border:1px solid var(--gc-line);border-radius:11px;background:var(--gc-panel);font-size:.875rem;line-height:1.4}

html[data-wz-screen=gym-setup] .gw-review-draft-preferences{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:9px 0;font-size:.875rem;line-height:1.4}
html[data-wz-screen=gym-setup] .gw-review-draft-preferences :is(dt,dd){margin:0}
html[data-wz-screen=gym-setup] .gw-review-draft-preferences>dd{text-align:right;font-weight:600}
