/* Shared client typography and component rhythm. */
:root{--type-caption:12px;--type-body:14px;--type-input:16px;--type-section:18px;--type-title:24px;--client-radius:18px;--client-accent:#087d83}
body.client-brand-preview:not(.client-light-mode){--client-accent:#65d7d1}
body :is(.client-foundation,.session-v2){line-height:1.5;-webkit-text-size-adjust:100%}
body :is(.client-foundation,.session-v2) :is(button,input,select,textarea){font-family:inherit}
body :is(.client-foundation,.session-v2) :is(h1,h2,h3){line-height:1.25;font-weight:700!important;text-shadow:none!important}
body .client-foundation :is(.t2-greeting,.w3-heading,.s4-heading){margin-bottom:30px}
body .client-foundation :is(.t2-section-title,.w3-section-title,.s4-section-title){margin:24px 0 12px;flex-wrap:wrap}
body .client-foundation :is(.t2-section-title,.w3-section-title,.s4-section-title)>span{letter-spacing:0;text-transform:none}
body .client-foundation :is(.t2-card,.w3-row,.s4-card,.w3-next,.foundation-account,.foundation-settings){border-radius:var(--client-radius)}
body .client-foundation :is(.t2-card,.w3-row,.s4-card,.w3-next) h3{font-size:16px;font-weight:650!important}
body .client-foundation :is(.t2-card,.w3-row,.s4-card,.w3-next) :is(p,small){line-height:1.5}
body .client-foundation :is(.t2-hero-copy,.w3-hero-copy,.s4-hero-copy) :is(small,p){letter-spacing:.04em;line-height:1.5}
body .client-foundation .s4-macros small{font-size:12px;letter-spacing:0}
body .client-foundation .s4-macros em{font-size:14px}
body .client-foundation :is(.s4-stats,.s4-macros)>div{padding:14px 10px}
body .client-foundation .s4-stats small{font-size:12px;letter-spacing:0;text-transform:none}
body .client-foundation :is(.t2-habits label,.s4-habits label){min-height:48px;box-sizing:border-box}
body .client-foundation :is(.t2-section-title,.w3-section-title,.s4-section-title)>button,body .client-foundation :is(.w3-arrow,.t2-note button,.s4-habits b){color:var(--client-accent)}
body:has(.client-foundation) .client-foundation .foundation-tabs button.active{color:var(--client-accent)!important}
body .client-foundation .foundation-tabs button span{font-size:12px!important;letter-spacing:0;font-weight:600!important}
body .client-foundation .foundation-header>a{font-size:11px;letter-spacing:.12em}
body .client-foundation .xp-foot,body .client-foundation .xp-heading>span,body .client-foundation .xp-numbers>span{font-size:12px;line-height:1.5;letter-spacing:0}
body .client-foundation .xp-heading>strong{font-size:12px;white-space:nowrap}
body .client-foundation .xp-heading{align-items:flex-start}.xp-main{min-width:0}
body .client-foundation .t2-note small{font-size:12px;letter-spacing:.02em}
body .client-foundation .t2-note strong{font-size:14px;line-height:1.5;font-weight:550}
body .client-foundation .foundation-profile h1{font-size:24px!important}
body .client-foundation .foundation-settings button{font-size:14px;font-weight:500;min-height:52px}
body .client-foundation :is(.client-privacy-footer button,.movement-count,.movement-pagination,.movement-card-copy>span,.movement-card-copy small){font-size:12px!important;line-height:1.5}
body .client-foundation .movement-card-copy strong{font-size:14px!important;line-height:1.4}
body .client-foundation .movement-filters label{font-size:14px;line-height:1.5}
body .client-foundation :is(.w3-library-head button,.t2-note button){min-width:44px;min-height:44px}
body.client-brand-preview .session-v2 .session-save-hint{font-size:12px;line-height:1.5}
body.client-brand-preview .session-v2 .session-exercise-head p{font-size:14px!important;line-height:1.5}
body.client-brand-preview .session-v2 .previous-performance strong{font-size:14px!important;line-height:1.5}
body.client-brand-preview .session-v2 .exercise-view-toggle,body.client-brand-preview .session-v2 .exercise-check::after{font-size:14px!important}
body.client-brand-preview .session-v2 .completed-exercise-summary{font-size:14px;line-height:1.5}
body.client-brand-preview .session-v2 .view-exercise{color:var(--client-accent);font-size:14px}
@media(max-width:380px){body .client-foundation .s4-macros{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .client-foundation .t2-habits{grid-template-columns:1fr}body .client-foundation .foundation-tabs button span{font-size:11px!important}body .client-foundation .w3-next{align-items:flex-start}body .client-foundation .w3-next>span{padding:12px 10px}.s4-stats{gap:6px}body .client-foundation .s4-stats>div{padding:12px 8px}}
body .client-foundation #home-announcements.t2-note{flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px}
body .client-foundation #home-announcements.t2-note>.dialogue-avatar{flex:0 0 38px;width:38px;height:42px;margin:0;border:0;background:none;box-shadow:none;transform:none}
body .client-foundation #home-announcements.t2-note>.dialogue-avatar img{width:38px;height:42px}
body .client-foundation #home-announcements.t2-note>div{flex:1;min-width:0}
body .client-foundation .t2-note strong{display:block;-webkit-line-clamp:unset}
body .client-foundation .w3-library-dialog .movement-filters>label:first-child{grid-column:1/-1}
@media(max-width:420px){body .client-foundation .w3-library-dialog .movement-filters{grid-template-columns:1fr}}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card){font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--client-surface)!important;color:var(--client-ink)!important;border:1px solid var(--client-line)!important;border-radius:22px;line-height:1.5}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) :is(h2,h3){font-family:inherit;color:var(--client-ink)!important;line-height:1.25;text-shadow:none;font-weight:700}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) h2{font-size:24px}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) h3{font-size:18px}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) :is(p,li,.update-body){font-size:14px!important;line-height:1.6;color:var(--client-ink)!important}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) :is(small,.eyebrow,.update-meta){font-size:12px!important;line-height:1.5;color:var(--client-muted)!important}
body.client-brand-preview :is(.client-exercise-guide,.home-announcement-dialog,.workout-success-card) button{min-height:44px;font-family:inherit;font-size:14px}
body.client-brand-preview .workout-success-card .success-streak{background:var(--client-soft);border-color:var(--client-line);color:var(--client-ink)}
body.client-brand-preview .client-exercise-guide{max-height:85dvh;overflow:auto}
body.client-brand-preview .client-exercise-guide .catalogue-avatar{height:220px}
body .client-foundation :is(.s4-weight-tools,.client-activity-card) :is(p,label,summary){font-size:14px!important;line-height:1.5}
body .client-foundation :is(.s4-weight-tools,.client-activity-card) :is(small,.eyebrow){font-size:12px!important;line-height:1.5}

/* Profile appearance control shares the saved startup theme. */
#profile-theme .profile-theme-control{display:flex;align-items:center;gap:12px}
#profile-theme .profile-theme-track{display:block;position:relative;width:46px;height:28px;border-radius:99px;background:#8a9ba6;flex-shrink:0}
#profile-theme .profile-theme-track i{position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 4px #0003;transition:transform .2s ease}
#profile-theme[aria-checked="true"] .profile-theme-track{background:#159e98}
#profile-theme[aria-checked="true"] .profile-theme-track i{transform:translateX(18px)}
@media(prefers-reduced-motion:reduce){#profile-theme .profile-theme-track i{transition:none}}

body .client-foundation .profile-unit-settings{margin:18px 0;padding:20px;border:1px solid var(--client-line);border-radius:18px;background:var(--client-surface);color:var(--client-ink)}
body .client-foundation .profile-unit-settings h2{font-size:18px;margin:0 0 8px;color:var(--client-ink)}
body .client-foundation .profile-unit-settings p{font-size:14px;line-height:1.5;color:var(--client-muted);margin:0 0 16px}
.profile-unit-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .client-foundation .profile-unit-options button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px 6px;border:1px solid var(--client-line);border-radius:12px;background:var(--client-page);color:var(--client-ink);box-shadow:none;min-height:72px}
body .client-foundation .profile-unit-options button.active{background:var(--client-soft);border-color:var(--client-accent);box-shadow:inset 0 0 0 1px var(--client-accent)}
.profile-unit-options strong{font-size:16px}.profile-unit-options span{font-size:12px;color:var(--client-muted)}
.profile-unit-options button:focus-visible{outline:2px solid var(--client-accent);outline-offset:3px}
