/* Guided setup: one decision group per screen, shared across all viewports. */
.onboarding-shell{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1fr);gap:72px;align-items:start;max-width:1000px;margin:0 auto}.ob-companion{position:sticky;top:40px;padding-top:30px}.ob-companion h2{font-size:42px;line-height:1.12;letter-spacing:-1.5px;margin:14px 0 28px}.ob-preview-photo{position:relative;border-radius:24px;overflow:hidden;background:#e4ecdd;aspect-ratio:4/3}.ob-preview-photo img{width:100%;height:100%;object-fit:cover;display:block}.ob-preview-photo>span{position:absolute;bottom:12px;left:12px;padding:9px 12px;background:#fffffff0;border-radius:20px;font-size:12px}.ob-companion dl{margin:24px 0}.ob-companion dl>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dce4d8;font-size:14px}.ob-companion dt{color:#718073}.ob-companion dd{margin:0;text-align:right;font-weight:600}.ob-companion>p:last-child{font-size:13px;line-height:1.6;color:#667568;max-width:290px}.goal-journey .ob-form{padding:32px;border-radius:24px;background:#fff;border:1px solid #e0e7dc;box-shadow:0 12px 40px #244e3b06;margin:0;min-width:0}.ob-topline{display:flex;align-items:center;justify-content:space-between;color:#6c796e;font-size:12px}.ob-back{font:inherit;background:none;border:0;color:#4f6555;padding:4px 0;min-height:40px;cursor:pointer;text-decoration:none}.ob-progress{height:4px;border-radius:10px;background:#edf0e9;overflow:hidden;margin:16px 0 30px}.ob-progress i{height:100%;display:block;background:#295b45;border-radius:10px}.ob-chapter{font-size:10px!important;letter-spacing:1.7px;text-transform:uppercase;font-weight:700;color:#6c8063;margin:0 0 10px}.ob-form h2{font-size:30px!important;line-height:1.14!important;letter-spacing:-1px;margin:0 0 10px}.ob-question-hint{font-size:14px!important;line-height:1.6;color:#6b776f;margin:0 0 24px}.ob-fields{min-width:0}.goal-journey .ob-choices{display:grid;gap:10px;border:0;padding:0;margin:0}.ob-choice{position:relative;display:flex;align-items:center;gap:14px;min-height:70px;padding:16px;border:1px solid #dfe5dc;border-radius:14px;cursor:pointer;background:#fff;transition:border-color .15s,background .15s}.ob-choice>input{position:absolute;opacity:0;width:1px!important;height:1px;padding:0!important}.ob-choice strong{display:block;font-size:15px;font-weight:600;line-height:1.4}.ob-choice small{display:block;font-size:12px;line-height:1.6;color:#748075;margin-top:4px}.ob-choice>span:first-of-type{flex:1}.ob-choice-check{width:23px;height:23px;display:grid;place-items:center;border:1px solid #d0dacf;border-radius:50%;color:transparent;font-size:12px;flex-shrink:0}.ob-choice:has(input:checked){background:#eff5e9;border-color:#819d70}.ob-choice:has(input:checked) .ob-choice-check{background:#285540;color:white;border-color:#285540}.ob-choice:has(input:focus-visible){outline:3px solid #658c4d;outline-offset:3px}.goal-journey .ob-equipment{border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.ob-equipment label{position:relative;display:flex;gap:9px;align-items:center;padding:12px;border:1px solid #dfe5dc;border-radius:12px;font-size:13px;min-height:56px;cursor:pointer}.ob-equipment input{width:17px;height:17px;accent-color:#285540;flex-shrink:0}.ob-equipment label:has(input:checked){background:#eff5e9;border-color:#819d70}.ob-note{font-size:12px!important;color:#6b776f;line-height:1.7}.ob-actions{margin-top:28px;display:grid;gap:12px}.ob-actions>.btn{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding-inline:22px;border-radius:13px;font-size:15px}.ob-actions small{font-size:11px;line-height:1.6;text-align:center;color:#7a837b}.ob-form .goal-extra{border-top:1px solid #edf0e9;padding-top:6px}.ob-form .goal-extra>summary{font-size:12px}.ob-form .goal-measurement-grid{gap:0 14px}.ob-form .goal-measurement-grid .field{font-size:12px;line-height:1.6;margin:10px 0}.ob-form .field{font-size:13px}.ob-form .body-snapshot{padding:16px}.ob-form .body-snapshot .body-measurement-summary{font-size:11px}.ob-plan-overview{padding:4px 0 20px;display:grid;gap:9px}.ob-plan-overview>strong{font-size:22px}.ob-plan-overview>span{color:#5a7753;font-size:14px}.ob-plan-overview>p{font-size:13px;color:#6b776f;margin:0}.hc-page:has(.onboarding-shell)>.hf-mobile-nav{display:none}.hc-page:has(.onboarding-shell)>.hc-footer{display:none}.goal-landing .onboarding-shell{display:block}.goal-landing .ob-companion{display:none}.goal-landing .ob-form{box-shadow:none}.ob-choices:has(input[name=goals]){grid-template-columns:1fr 1fr}.ob-choices:has(input[name=goals]) .ob-choice{min-height:76px;padding:13px}.ob-choices:has(input[name=goals]) .ob-choice strong{font-size:14px}.goal-wizard{padding-top:20px}
@media(max-width:760px){.onboarding-shell{display:block;max-width:480px}.ob-companion{display:none}.goal-wizard{margin-top:12px;padding:0 16px 140px}.goal-journey .ob-form{padding:22px;border-radius:20px;min-height:600px}.ob-form h2{font-size:28px!important}.ob-progress{margin:12px 0 26px}.ob-question-hint{font-size:13px!important;margin-bottom:22px}.ob-choice{min-height:70px;padding:14px}.ob-actions{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#f9fbf6f5;backdrop-filter:blur(12px);border-top:1px solid #e3e9df;margin:0;padding:14px max(20px,calc((100vw - 440px)/2)) max(14px,env(safe-area-inset-bottom));gap:8px}.ob-actions small{font-size:10px}.ob-form .error-text{margin-bottom:18px}.goal-landing .ob-actions{position:static;background:none;border:0;padding:0;backdrop-filter:none;margin-top:24px}.goal-landing .ob-form{min-height:auto}.ob-form .form-grid{grid-template-columns:1fr 1fr;gap:0 12px}.ob-form .ob-meal-times{grid-template-columns:1fr}.ob-form .goal-options{gap:6px}.ob-form .goal-options label{font-size:12px;min-height:40px}.ob-form .goal-options input{width:15px!important;height:15px}.hc-page:has(.onboarding-shell) .hc-nav{padding-block:12px}.body-snapshot .body-bmi{font-size:32px}.ob-form fieldset{padding:10px}.ob-form .goal-extra[open]{margin-bottom:22px}}
@media(max-width:360px){.goal-journey .ob-form{padding:18px}.ob-form h2{font-size:25px!important}.ob-choices:has(input[name=goals]){grid-template-columns:1fr}.ob-choices:has(input[name=goals]) .ob-choice{min-height:54px}.ob-form .goal-measurement-grid{grid-template-columns:1fr 1fr}.ob-equipment label{font-size:12px;padding:10px}}
@media(prefers-reduced-motion:reduce){.ob-choice{transition:none}}
.ob-form input:not([type=radio]):not([type=checkbox]),.ob-form select{font-size:16px;min-height:48px}.ob-form input:focus-visible,.ob-form select:focus-visible{outline:3px solid #658c4d;outline-offset:2px}
/* The primary action owns the bottom edge during setup. No competing navigation. */
.hc-page:has(.onboarding-shell)>.hf-mobile-nav{display:none!important}
.ob-top-label{font-size:10px;font-weight:650;letter-spacing:1.4px;color:#6e806f}.ob-goal-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#54765a;background:#f0f4ec;flex:none!important}.ob-choices:has(input[name=goals]) .ob-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;position:relative;gap:11px;min-height:112px;padding:16px;border-radius:18px;background:#fcfdfb}.ob-choices:has(input[name=goals]) .ob-choice>span:not(.ob-goal-icon):not(.ob-choice-check){flex:none}.ob-choices:has(input[name=goals]) .ob-choice-check{position:absolute;right:13px;top:13px;width:20px;height:20px}.ob-choices:has(input[name=goals]) .ob-choice strong{font-size:14px;line-height:1.35;font-weight:600;max-width:150px}.ob-choices:has(input[name=goals]) .ob-choice:has(input:checked){background:#eaf2e1;border-color:#78956b;box-shadow:0 0 0 1px #78956b inset}.ob-choice:has(input:checked) .ob-goal-icon{background:#dbe9ce;color:#254d38}.ob-actions>.btn{background:#234e3d;color:#fff;border:1px solid #234e3d;box-shadow:0 5px 16px #234e3d17;touch-action:manipulation}.ob-actions>.btn:active{background:#163b2b}.ob-actions>.btn:focus-visible{outline:3px solid #8bab73;outline-offset:3px}.ob-form .error-text:not(:empty){padding:12px 14px;background:#fff3ed;border-radius:10px;font-size:13px;margin:12px 0;color:#8d3925}
@media(max-width:760px){
 .hc-page:has(.onboarding-shell){background:linear-gradient(160deg,#f4f7ee 0%,#fafbf6 65%);min-height:100svh}
 .hc-page:has(.onboarding-shell) .hc-nav{border-bottom:0;min-height:64px;padding:12px 22px!important;background:transparent}
 .hc-page:has(.onboarding-shell) .hc-brand{font-size:19px;letter-spacing:-.6px}
 .hc-page:has(.onboarding-shell) .hc-nav nav a{background:#ffffff80;font-size:12px;border-color:#dce4d5}
 .goal-wizard{width:100%;margin:0 auto!important;padding:0 20px calc(126px + env(safe-area-inset-bottom))!important;max-width:520px}
 .goal-journey .ob-form{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0!important;min-height:0}
 .ob-topline{min-height:32px;font-size:11px;color:#7b897b}
 .ob-back{min-height:38px;font-size:12px;padding:0}
 .ob-progress{height:3px;margin:7px 0 22px;background:#e0e8d8}
 .ob-progress i{background:#6d8d59}
 .ob-chapter{font-size:10px!important;letter-spacing:1.5px;margin-bottom:8px}
 .hc-page .ob-form h2{font-size:30px!important;font-weight:650;line-height:1.1!important;letter-spacing:-1px;margin-bottom:12px;max-width:345px}
 .ob-question-hint{font-size:13px!important;line-height:1.5;margin-bottom:21px;color:#718071;max-width:310px}
 .goal-journey .ob-choices{gap:10px}
 .ob-choices:has(input[name=goals]){grid-template-columns:repeat(2,minmax(0,1fr))}
 .ob-choices:has(input[name=goals]) .ob-choice{min-height:103px;padding:13px 14px;border-radius:17px;border-color:#e0e7da;background:#fffffff0;box-shadow:0 3px 12px #244e3b03}
 .ob-choices:has(input[name=goals]) .ob-choice strong{font-size:13px;line-height:1.35;padding-right:0}
 .ob-goal-icon{width:32px;height:32px;border-radius:10px}.ob-goal-icon svg{width:23px;height:23px}
 .ob-choices:has(input[name=goals]) .ob-choice-check{top:12px;right:12px;width:18px;height:18px;font-size:10px}
 .ob-actions{position:fixed;left:0;right:0;bottom:0;z-index:150;display:grid!important;visibility:visible!important;pointer-events:auto;padding:14px max(20px,calc((100vw - 480px)/2)) calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e0e7da;background:#fafcf7f5;backdrop-filter:blur(14px);box-shadow:0 -8px 22px #244e3b04;gap:8px}
 .ob-actions>.btn{display:flex!important;visibility:visible!important;position:relative;min-height:54px;border-radius:16px;font-size:15px;padding:14px 20px;width:100%;margin:0}
 .ob-actions small{font-size:10px;line-height:1.4;color:#7c8879;max-width:100%}
 .ob-choice:not(:has(input[name=goals])){border-radius:17px;background:#fffffff0;padding:16px;min-height:82px}
 .ob-equipment label{background:#fffffff0;border-radius:14px}
 .ob-form .goal-extra{border-color:#dfe7d8}.ob-form .goal-extra>summary{font-size:13px}
 .ob-form .form-grid input,.ob-form .form-grid select,.ob-form .goal-measurement-grid input{border-color:#d8e2d0;border-radius:13px;background:#fff;min-height:52px}
}
@media(max-width:360px){.goal-wizard{padding-inline:16px!important}.hc-page .ob-form h2{font-size:27px!important}.ob-choices:has(input[name=goals]){grid-template-columns:repeat(2,minmax(0,1fr))}.ob-choices:has(input[name=goals]) .ob-choice{padding:12px;min-height:98px}.ob-choices:has(input[name=goals]) .ob-choice strong{font-size:12px}.ob-question-hint{margin-bottom:17px}}
@media(max-height:700px) and (max-width:760px){.ob-progress{margin-bottom:15px}.ob-choices:has(input[name=goals]) .ob-choice{min-height:88px;gap:6px}.hc-page .ob-form h2{font-size:27px!important}.ob-goal-icon{width:27px;height:27px}.ob-question-hint{margin-bottom:16px}.ob-actions{padding-top:10px}}
.ob-actions .error-text:empty{display:none}.ob-form .ob-actions .error-text:not(:empty){margin:0;padding:9px 12px;font-size:12px;line-height:1.4}.ob-actions .error-text+button{margin-top:0}@media(max-width:760px){.goal-wizard:has(.ob-actions .error-text:not(:empty)){padding-bottom:calc(180px + env(safe-area-inset-bottom))!important}}

.ob-selection-count{font-size:12px!important;color:#6b7e65;margin:14px 0 0}.ob-choices:has(input[name=goals]) .ob-choice-check{border-radius:6px}.ob-choice>input[type=checkbox]{position:absolute;opacity:0;width:1px!important;height:1px;min-height:1px;padding:0!important}.ob-choices:has(input[name=goals]) .ob-choice>input:focus-visible~.ob-choice-check{outline:3px solid #658c4d;outline-offset:3px}
/* Keep native iOS time/number controls inside their two-column form fields. */
.ob-form .goal-time-grid>* , .ob-form .goal-measurement-grid>*{min-width:0}
.ob-form input[type=time],.ob-form input[type=number]{min-width:0;width:100%;max-width:100%;box-sizing:border-box}

/* Keep measurements clear of the phone keyboard and fixed-footer touch targets. */
@media(max-width:760px){.ob-form[data-goal-step="body"] .ob-actions{position:static;left:auto;right:auto;bottom:auto;padding:20px 0 0;margin-top:18px;border-top:1px solid #e0e7da;background:transparent;box-shadow:none;backdrop-filter:none}}
