/* Approved 09_Settings board. Scope includes only the existing Settings route. */
html[data-wz-screen="gym-preferences"][data-wz-mode="light"] body.gym-core.gym-core {
 --gc-panel:#e6f2fd;--gc-card-glass:linear-gradient(130deg,#edf7ffb8,#dceeffc4);--gc-line:#bfd5e8;--gc-sub:#233e5a;
}
html[data-wz-screen="gym-preferences"][data-wz-mode="dark"] body.gym-core.gym-core {
 --gc-panel:#082b3c;--gc-card-glass:linear-gradient(130deg,#12394bd6,#062738e6);--gc-line:#345d70;--gc-sub:#d4e8f4;--gc-link:#65e5f5;
}
html body.gym-core.gym-core .gc-content.gym-settings-board {gap:6px}
html body.gym-core.gym-core .gym-settings-board .b3-g15-toolbar {justify-content:space-between;border-bottom:1px solid var(--gc-line);margin-bottom:1px}
html body.gym-core.gym-core .gym-settings-board .b3-g15-toolbar a {display:flex;align-items:center;min-height:44px;font-size:14px}
html body.gym-core.gym-core .gym-settings-board .b3-g15-back {color:var(--gc-text)!important}
html body.gym-core.gym-core .gym-settings-board .b3-g15-intro {margin:0 0 8px;font-size:15px;color:var(--gc-text)!important}
html body.gym-core.gym-core .gc-content.gym-settings-board .gc-settings-group {padding:0!important;margin:0 0 8px!important;border:0!important;background:none!important;background-image:none!important;box-shadow:none!important}
html body.gym-core.gym-core .gym-settings-board .gc-settings-group h2 {display:flex;align-items:center;gap:10px;font-size:20px!important;margin:0 8px 5px!important}
html body.gym-core.gym-core .gym-settings-board .gym-settings-list {padding:0 10px;border:1px solid var(--gc-line);border-radius:13px;background:var(--gc-card-glass);box-shadow:var(--gc-shadow)}
html body.gym-core.gym-core .gc-content.gym-settings-board .gym-settings-row {display:flex!important;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:52px;margin:0;padding:7px 4px;text-align:left;border:0!important;border-bottom:1px solid var(--gc-line)!important;border-radius:0;background:none!important;box-shadow:none!important;font-size:14px}
html body.gym-core.gym-core .gc-content.gym-settings-board .gym-settings-row:last-child {border-bottom:0!important}
html body.gym-core.gym-core .gc-content.gym-settings-board .gym-settings-row::before {background-color:var(--gc-text)}
html body.gym-core.gym-core .gym-settings-board .b3-g15-copy {gap:1px;flex:1;min-width:0}
html body.gym-core.gym-core .gym-settings-board .b3-g15-copy strong {font-size:14px;line-height:1.25}
html body.gym-core.gym-core .gym-settings-board .b3-g15-copy>span {font-size:13px;line-height:1.3;font-weight:400;color:var(--gc-sub)}
html body.gym-core.gym-core .gym-settings-board :is(.app-icon,.b3-g15-utility-symbol,.gym-settings-row>img) {display:inline-flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;color:var(--gc-text);background:none;border:0;border-radius:0}
html body.gym-core.gym-core .gym-settings-board .app-icon svg {width:24px;height:24px;filter:none}
html body.gym-core.gym-core .gym-settings-board .b3-g15-chevron {font-size:26px;line-height:1;color:var(--gc-link);flex:none}
html body.gym-core.gym-core .gym-settings-board .b3-g15-footer {margin:0}
html body.gym-core.gym-core .gym-settings-board .b3-g15-primary {display:flex;width:100%;padding:8px;min-height:44px;border:1px solid var(--gc-line);border-radius:10px;background:var(--gc-panel);color:var(--gc-text)!important;font-size:13px}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review .gc-review-actions {display:flex;gap:10px}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review .gc-review-actions>button {flex:1;min-width:0;width:auto}
@media (prefers-reduced-motion:no-preference) {html body.gym-core.gym-core .gc-content.gym-settings-board .gym-settings-row:hover {background:var(--gc-panel)!important}}

html body.gym-core.gym-core .gym-settings-board .app-icon {filter:none}

/* Contained phone surfaces and focused sheets, including keyboard-height screens. */
html[data-wz-screen="gym-preferences"] main.phone {box-sizing:border-box;min-width:0!important;max-width:min(430px,100%)!important}
html body.gym-core.gym-core .gym-settings-board {min-width:0;overflow-wrap:anywhere}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review {box-sizing:border-box;width:calc(100% - 32px);max-width:398px;max-height:calc(100dvh - 32px);overflow:auto;padding:16px;border:1px solid var(--gc-line);border-radius:16px;background:var(--gc-panel);color:var(--gc-text)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review::backdrop {background:#00152788;backdrop-filter:blur(3px)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review :is(input,select,textarea) {box-sizing:border-box;max-width:100%;min-width:0}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review :is(p,label) {font-size:14px;line-height:1.45;overflow-wrap:anywhere}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review .gc-review-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gc-review .gc-review-actions>button {flex:1 1 120px;min-height:44px;margin:0;white-space:normal}
html body.gym-core.gym-core .gym-settings-board h1 {font-size:26px!important;line-height:1.2;margin:0 2px!important}
html body.gym-core.gym-core .gym-settings-board .gym-settings-row {box-sizing:border-box}
html[data-wz-screen="gym-preferences"] dialog.gc-review label:has(input[type=radio]) {display:flex;align-items:center;gap:10px;min-height:44px}


/* S17/S18 only: native dialog lifecycle and shared appearance remain authoritative. */
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup {position:fixed}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup>h2 {display:flex;align-items:center;gap:10px;margin:0 44px 12px 0;padding:0 0 12px;border-bottom:1px solid var(--gc-line);font-size:20px;line-height:1.3}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gc-review-close {position:absolute;top:6px;right:6px;display:grid;place-items:center;width:44px;min-height:44px;margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--gc-text);font-size:28px;line-height:1}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gc-review-close:disabled {opacity:.45;cursor:wait}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-presenter-choices {min-width:0;margin:0;padding:0;border:0}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-presenter-choices legend {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-presenter-choices label {display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:0;cursor:pointer}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-presenter-choices input {appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--gc-link)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-settings-popup-note {margin:10px 0;padding:10px 0;border-top:1px solid var(--gc-line);border-bottom:1px solid var(--gc-line)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-presenter-detail {margin:6px 0;color:var(--gc-sub);font-size:12px}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-export-details summary {display:list-item;min-height:44px;padding:10px 0;cursor:pointer;font-size:14px;color:var(--gc-link)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup>p[role="status"]:empty {display:none}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup>h2 :is(.app-icon,.b3-g15-utility-symbol) {display:inline-flex;flex:none;width:24px;height:24px;background:none;border:0;color:var(--gc-text)}
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup>h2 svg {width:24px;height:24px}

/* Export details retains its native disclosure marker, without a second shared chevron. */
html[data-wz-screen="gym-preferences"] body.gym-core.gym-core dialog.gym-settings-popup .gym-export-details>summary::before{content:none!important}


/* G14 Part 3: native review/save ownership is retained; no imitation global Save. */
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-options{display:grid;gap:8px;min-width:0}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-note{font-size:12px!important;line-height:1.4;margin:0!important;color:var(--gc-sub)!important}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;padding:7px 4px!important;border:1px solid var(--gc-line)!important;border-radius:13px!important;background:var(--v3-glass)!important;color:var(--gc-text)!important;min-height:110px;min-width:0;width:100%;margin:0!important;white-space:normal;box-sizing:border-box}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice[aria-pressed=true]{background:linear-gradient(#08bfff,#0064ed)!important;color:#fff!important;border-color:#8beeff!important}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice .v3-presenter-art{width:100%;height:64px;object-fit:contain;object-position:bottom;flex:none}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice .v3-icon{width:48px;height:64px;display:flex;align-items:center;justify-content:center}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice strong{font-size:14px!important;line-height:1.3}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice small{font-size:11px!important;line-height:1.35;color:inherit!important}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice:focus-visible{outline:3px solid var(--gc-link);outline-offset:3px}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-edit{min-height:44px!important}
html[data-wz-screen=gym-preferences][data-wz-module=gym] body.gym-v3.gym-core.gym-core .v3-presenter-choice[aria-pressed=true] strong{color:#fff!important}
