/* Stage 4: isolated nutrition and progress surfaces. */
body .s4-page{color:var(--client-ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body .s4-page h1,body .s4-page h2,body .s4-page h3,body .s4-page p{font-family:inherit!important;text-shadow:none!important;letter-spacing:normal;margin:0;color:inherit}
.s4-heading{margin-bottom:30px}body .s4-page .s4-heading h1{font-size:var(--type-title);letter-spacing:-.04em;font-weight:750;line-height:1.2}body .s4-page .s4-heading p{font-size:var(--type-body);color:var(--client-muted);margin-top:5px}
.s4-hero{position:relative;height:310px;isolation:isolate;margin-bottom:12px}.s4-scene{position:absolute;inset:0;border-radius:22px;background-color:#274b4c;background-size:cover;background-position:center}.s4-jack{position:absolute;z-index:1;height:calc(100% + 25px);width:68%;object-fit:contain;object-position:center bottom;right:0;bottom:0;filter:drop-shadow(0 6px 6px #102b3325)}.s4-shade{position:absolute;inset:0;z-index:2;border-radius:22px;background:linear-gradient(0deg,#0c252df5 0%,#14373cdf 17%,#173e4666 38%,transparent 65%)}.s4-hero-copy{position:absolute;z-index:3;left:20px;right:20px;bottom:20px;color:white}.s4-hero-copy small{font-size:var(--type-caption);letter-spacing:.16em;font-weight:800;color:#b4e0df}body .s4-page .s4-hero-copy h2{font-size:var(--type-title);font-weight:750;letter-spacing:-.03em;color:white;margin:6px 0}body .s4-page .s4-hero-copy p{font-size:var(--type-caption);color:#dfedef}
.s4-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:23px 0 11px}body .s4-page .s4-section-title h2{font-size:var(--type-section);letter-spacing:-.035em;font-weight:750}.s4-section-title>span,.s4-section-title>button{font-size:var(--type-caption);font-weight:650;color:var(--client-muted);text-transform:uppercase;letter-spacing:.04em}.s4-section-title>button{border:0;background:none;padding:6px 0;box-shadow:none}
.s4-macros,.s4-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.s4-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.s4-macros>div,.s4-stats>div{padding:13px 10px;background:var(--client-surface);border:1px solid var(--client-line);border-radius:15px;min-width:0}.s4-macros small,.s4-stats small{display:block;font-size:var(--type-caption);letter-spacing:.08em;color:var(--client-muted);font-weight:700;text-transform:uppercase}.s4-macros strong,.s4-stats strong{display:block;font-size:20px;margin-top:6px;font-weight:700;letter-spacing:-.03em}.s4-macros em{font-style:normal;font-size:var(--type-body)}.s4-macros>div>span{font-size:var(--type-caption);color:var(--client-muted)}
.s4-habits{display:grid;gap:9px}.s4-habits label{display:flex;align-items:center;gap:12px;padding:15px 13px;background:var(--client-surface);border:1px solid var(--client-line);border-radius:16px;cursor:pointer}.s4-habits input{appearance:auto;width:18px;height:18px;min-width:18px;margin:0;accent-color:#129d9e}.s4-habits label>span{flex:1}.s4-habits strong{font-size:var(--type-body);line-height:1.4;display:block}.s4-habits small{font-size:var(--type-caption);color:var(--client-muted);display:block;margin-top:4px}.s4-habits b{font-size:var(--type-caption);color:#108c91;white-space:nowrap}.s4-habits .done{background:var(--client-soft);border-color:var(--client-line)}
.s4-note{margin-top:22px;padding:18px;background:var(--client-soft);border:1px solid var(--client-line);border-radius:18px}.s4-note>small,.s4-card small{font-size:var(--type-caption);letter-spacing:.12em;color:var(--client-muted);font-weight:700}body .s4-page .s4-note h2{font-size:var(--type-input);line-height:1.3;letter-spacing:-.02em;margin:7px 0}body .s4-page .s4-note p,body .s4-page .s4-card p{font-size:var(--type-body);line-height:1.55;color:var(--client-muted)}.s4-card{margin-top:12px;padding:17px 15px;border:1px solid var(--client-line);border-radius:18px;background:var(--client-surface)}.s4-card>p{margin-top:8px!important}.s4-checkin{display:flex;gap:12px;align-items:center;justify-content:space-between}.s4-checkin>div{flex:1}body .s4-page .s4-checkin h2{font-size:22px;letter-spacing:-.03em;margin:7px 0}.s4-checkin>button{border:0;border-radius:12px;padding:11px 13px;background:linear-gradient(135deg,#4ac7bc,#168e99);color:white;font-size:var(--type-caption);font-weight:700;white-space:nowrap}
.s4-details{margin-top:18px;border-top:1px solid var(--client-line);padding-top:15px}.s4-details>summary{display:flex;justify-content:space-between;cursor:pointer;font-size:var(--type-body);font-weight:600;list-style:none}.s4-details>summary::-webkit-details-marker{display:none}.s4-details .client-xp-card{margin-top:14px}.s4-foods{margin-top:18px}.s4-foods h3{font-size:var(--type-body)!important;margin-bottom:8px!important}.s4-foods article{padding:13px;background:var(--client-surface);border-bottom:1px solid var(--client-line)}.s4-foods article strong{font-size:var(--type-body);display:block}.s4-foods article span{font-size:var(--type-caption);display:block;color:var(--client-muted);margin-top:4px}
.s4-breakdown{border:1px solid var(--client-line);border-radius:17px;overflow:hidden;background:var(--client-surface)}.s4-breakdown>div{display:flex;justify-content:space-between;padding:16px;font-size:var(--type-body)}.s4-breakdown>div+div{border-top:1px solid var(--client-line)}.s4-breakdown strong{color:#128e93}.s4-weight-tools{padding-top:18px}.s4-weight-tools .form-grid{grid-template-columns:1fr 1fr}.s4-weight-tools .weight-heading{min-height:0!important;background:none!important;padding:0!important;box-shadow:none!important}.s4-weight-tools .weight-heading:before,.s4-weight-tools .weight-heading:after{display:none!important}.s4-weight-tools .weight-heading h3{font-size:var(--type-section)!important}.s4-weight-tools .weight-heading .muted{font-size:var(--type-body)!important}.s4-weight-tools .weight-summary{gap:6px}.s4-weight-tools .weight-summary strong{font-size:var(--type-input)!important}
body .s4-page .client-xp-card{border-radius:18px;padding:14px 16px;background:var(--client-surface);box-shadow:none;border:1px solid var(--client-line)}.s4-page .xp-emblem,.s4-page .xp-numbers>small,.s4-page .xp-foot span:last-child{display:none}body .s4-page .s4-help{font-size:var(--type-caption);color:var(--client-muted);margin:9px 0}.s4-weight-details{scroll-margin-top:20px}
@media(max-width:420px){.s4-hero{height:285px}.s4-jack{width:72%}body .s4-page .s4-heading h1{font-size:var(--type-title)}.s4-macros>div{padding:12px 8px}.s4-macros strong{font-size:var(--type-section)}.s4-habits label{gap:9px}.s4-habits strong{font-size:var(--type-caption)}.s4-weight-tools .form-grid{grid-template-columns:1fr}}
.s4-records{display:grid;gap:14px}.s4-records>.s4-help{margin:0}.s4-record-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.s4-record-head h3{font-size:18px;margin:0;line-height:1.35}.s4-record-gain{flex-shrink:0;padding:7px 10px;border-radius:10px;background:#108f881c;color:var(--client-accent,#087d83);font-size:12px;font-weight:700}.s4-record-best{display:grid;gap:5px;margin:18px 0}.s4-record-best>strong{font-size:30px;line-height:1.2}.s4-record-best small,.s4-record-comparison small{font-size:12px;opacity:.75}.s4-record-best span,.s4-record-comparison span{font-size:12px;opacity:.75}.s4-record-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:14px;border-top:1px solid #8396a030}.s4-record-comparison>div{display:grid;gap:5px}.s4-record-comparison strong{font-size:16px}.s4-record>.s4-help{margin:14px 0 0}body.client-brand-preview:not(.client-light-mode) .s4-record-gain{color:#80dfcf}@media(max-width:360px){.s4-record-head{flex-wrap:wrap}}
.s4-milestones{display:grid;gap:14px}.s4-milestone-progress h3{font-size:20px;margin:8px 0}.s4-milestone-progress>small{font-size:12px;opacity:.75}.s4-milestone-progress progress{appearance:none;display:block;border:0;width:100%;height:8px;border-radius:8px;overflow:hidden;margin-top:16px;background:#8396a026}.s4-milestone-progress progress::-webkit-progress-bar{background:#8396a026;border-radius:8px}.s4-milestone-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#12a1a5,#6ed4b4);border-radius:8px}.s4-milestone-progress progress::-moz-progress-bar{background:#16a99c}.s4-badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.s4-badge{padding:18px 14px;border:1px solid #8396a035;border-radius:18px;background:#ffffff08;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.s4-badge.earned{background:#17a79a12;border-color:#32b5a857}.s4-badge-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#8396a012;color:#718994}.s4-badge-icon svg{width:44px;height:44px}.s4-badge.earned .s4-badge-icon{background:#17a79a20;color:#087d83}.s4-badge h3{font-size:16px;line-height:1.3;margin:2px 0}.s4-badge p{font-size:13px;line-height:1.45;margin:0}.s4-badge small,.s4-badge-status{font-size:12px;line-height:1.4}.s4-badge small{margin-top:auto;opacity:.75}.s4-badge-status{font-weight:600;color:#627984}body.client-brand-preview:not(.client-light-mode) .s4-badge.earned .s4-badge-icon{color:#80dfcf}body.client-brand-preview:not(.client-light-mode) .s4-badge-status{color:#b1c8d1}@media(min-width:700px){.s4-badge-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.s4-weight-badge-mark{width:64px;height:64px;border:2px solid #8396a035;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:700;color:inherit}.s4-badge.earned .s4-weight-badge-mark{border-color:#16a99c;background:#17a79a15;color:#087d83}body.client-brand-preview:not(.client-light-mode) .s4-badge.earned .s4-weight-badge-mark{color:#80dfcf}
/* A quieter Progress overview, with details revealed on demand. */
.progress-refined .progress-disclosure>summary>span:first-child{display:grid;gap:6px}.progress-refined .progress-disclosure summary small{font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;opacity:.7}.progress-refined .progress-disclosure>.s4-milestones,.progress-refined .progress-disclosure>.s4-records{padding-top:18px}.progress-refined .progress-disclosure>.s4-milestones+.s4-milestones{margin-top:24px}.progress-refined .progress-disclosure .s4-section-title{margin-bottom:0}.progress-weight-tools{display:grid;gap:24px;padding-top:18px}.progress-units{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.progress-form{display:grid;gap:14px;padding:20px;border:1px solid #8396a035;border-radius:18px;background:#ffffff08}.progress-form h3,.progress-weight-history h3{margin:0;font-size:18px}.progress-form label{display:grid;gap:8px;font-size:13px}.progress-inputs{display:grid;grid-template-columns:1fr 1fr;gap:14px}.progress-inputs .wide{grid-column:1/-1}body .progress-refined .progress-form input{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:16px;padding:12px;border:1px solid #8396a050;border-radius:12px;background:#ffffff08;color:inherit;box-shadow:none}body.client-light-mode .progress-form input{background:#f6f9fa!important;color:#162e39!important}body .progress-refined .progress-form button{min-height:46px;border-radius:12px;font-size:14px;box-shadow:none;background:#eaf5f3;color:#087d83;border:1px solid #83bfb650}body .progress-refined .progress-form .primary{background:linear-gradient(120deg,#24b5a5,#118e9a);color:white;border:0}.progress-weight-history>div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #8396a025;font-size:14px}.progress-weight-history h3{margin-bottom:8px}body .progress-refined .progress-units .unit-toggle{background:#8396a015;border:1px solid #8396a030;padding:4px;border-radius:12px}body .progress-refined .progress-units button{min-height:40px;min-width:42px;background:none;color:inherit;border:0;border-radius:9px;box-shadow:none}body .progress-refined .progress-units button.active{background:#087d83;color:white}.progress-refined input:focus-visible{outline:2px solid #20a99c;outline-offset:2px}@media(max-width:380px){.progress-inputs{grid-template-columns:1fr}.progress-form{padding:16px}}

.progress-refined .s4-details>summary>span:last-child{transition:transform .18s ease}.progress-refined .s4-details[open]>summary>span:last-child{transform:rotate(45deg)}
@media(prefers-reduced-motion:reduce){.progress-refined .s4-details>summary>span:last-child{transition:none}}

.progress-refined .s4-details>summary{display:grid;grid-template-columns:40px minmax(0,1fr) 18px;gap:12px;align-items:center;padding:4px 0}
.progress-refined .s4-details>summary>span:not(:last-child){display:grid;gap:6px}
.progress-refined .progress-section-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--client-soft);color:var(--client-accent);font-style:normal}
.progress-refined .progress-section-icon svg{width:22px;height:22px}
.progress-refined .s4-details>summary>span:last-child{text-align:center}
