/* Adopted Concept 03: Adaptive Home. Public demo records remain unchanged. */
html[data-theme="dark"] body[data-page="home"]{--ff-bg:#111314;--hm-header:#151718;--ff-card:#222324;--ff-soft:#272829;--ff-border:#464646;--ff-ink:#faf9f7;--ff-muted:#d0ccc6;--ff-accent:#ffad65;--ff-accent-ink:#19120c;--ff-tint:#ff9a4010;--hm-hero:#252523;background:var(--ff-bg);color:var(--ff-ink)}
html[data-theme="light"] body[data-page="home"]{--ff-bg:#faf1e8;--hm-header:#faf1e8;--ff-card:#f8eee4;--ff-soft:#f6eadf;--ff-border:#decec1;--ff-ink:#151413;--ff-muted:#5d5148;--ff-accent:#a43d00;--ff-accent-ink:#19120c;--ff-tint:#f8812310;--hm-hero:#f1e7dc;background:var(--ff-bg);color:var(--ff-ink)}
body[data-page="home"] .wordmark:before{content:'//';color:#ff9651;font-size:27px;letter-spacing:-5px;margin-right:10px;display:inline-block;font-style:italic}
html[data-theme] body[data-page="home"] .app-topbar .wordmark{display:flex;flex-direction:row;align-items:center;font-size:18px;letter-spacing:.4px}
body[data-page="home"] .wordmark>span,body[data-page="home"] .rewards-header,body[data-page="home"] .topbar-settings{display:none!important}
.hm-home{container-type:inline-size;container-name:home;color:var(--ff-ink);font-family:Arial,Helvetica,system-ui,sans-serif}
.hm-overview{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:'greeting greeting' 'update update' 'workout day' 'quick status';gap:18px 28px;align-items:stretch}
.hm-greeting{grid-area:greeting;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0;margin:0;border:0;position:static;background:none;min-height:0;max-width:none}
html[data-theme] #screen .hm-greeting h2{font-size:40px;line-height:1.08;font-weight:800;letter-spacing:-1.2px;margin:7px 0}
html[data-theme] #screen .hm-greeting p{font-size:16px;line-height:1.3;color:var(--ff-ink);margin:0 0 7px}
.hm-tag{display:inline-block;border:1px solid var(--ff-accent);color:var(--ff-accent);border-radius:16px;font-size:12px;font-weight:700;padding:2px 10px;letter-spacing:.2px}
html[data-theme] #screen .hm-season{display:block;min-height:44px;border:0;background:transparent;color:var(--ff-ink);font-size:13px;text-align:right;padding:0;white-space:nowrap;font-weight:400}
.hm-season small{display:block;font-size:11px;line-height:1.4}
.hm-home svg:not(.hm-photo){width:21px;height:21px;flex-shrink:0}
html[data-theme] #screen .hm-home button{font-family:inherit;cursor:pointer;box-sizing:border-box;white-space:normal;line-height:1.3;border-radius:8px}
.hm-update{grid-area:update;display:flex;align-items:center;gap:20px;background:linear-gradient(110deg,var(--ff-tint),var(--ff-card));border:1px solid var(--ff-border);border-radius:10px;padding:0 15px;min-height:48px;margin:0;font-size:13px}
.hm-update>span{display:flex;align-items:center;gap:12px;color:var(--ff-accent);font-size:12px;flex-shrink:0;border-right:1px solid var(--ff-border);padding-right:20px}
html[data-theme] #screen .hm-update p{margin:0;flex:1;font-size:13px;color:var(--ff-ink)}
html[data-theme] #screen .hm-home .hm-link{min-height:44px;border:0;background:transparent;color:var(--ff-accent);font-weight:700;padding:4px 0;font-size:12px}
.hm-workout{grid-area:workout;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--ff-border);border-radius:12px;background:var(--hm-hero);display:flex;align-items:center;min-height:234px}
.hm-photo{display:block;overflow:hidden}
.hm-workout>.hm-photo{position:absolute;inset:0 0 0 auto;width:59%;height:100%;z-index:-2;mask-image:linear-gradient(90deg,transparent,#000 20%)}
.hm-workout:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--hm-hero) 0%,transparent 69%)}
.hm-workout-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px 20px;width:100%;box-sizing:border-box;gap:9px}
.hm-eyebrow{font-size:11px;letter-spacing:.3px;font-weight:700;color:var(--ff-accent)}
html[data-theme] #screen .hm-home .hm-workout h3{font-size:34px;letter-spacing:-1px;line-height:1.04;margin:0;max-width:65%;font-weight:800;color:var(--ff-ink)}
html[data-theme] #screen .hm-workout p{font-size:14px;line-height:1.4;margin:0;color:var(--ff-ink)}
.hm-workout-actions{display:flex;align-items:center;gap:16px;margin-top:5px;flex-wrap:wrap}
html[data-theme] #screen .hm-home .hm-primary,html[data-theme] #hm-dialog .hm-primary{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(110deg,#ffa052,#ff792a);border:1px solid #ffb581;color:#17100a;font-size:14px;font-weight:750;padding:11px 20px;min-height:44px;width:auto;margin:0;border-radius:8px}
html[data-theme] #screen .hm-home .hm-detail{min-height:44px;border:0;background:transparent;color:var(--ff-ink);font-weight:600;padding:4px 0;font-size:12px}
.hm-day{grid-area:day;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
html[data-theme] #screen .hm-home .hm-day>h3{font-size:21px;font-weight:750;margin:0 0 -4px;line-height:1.1}
.hm-meal{display:flex;align-items:center;gap:15px;background:var(--ff-card);border:1px solid var(--ff-border);border-radius:12px;padding:8px;min-width:0;flex:1}
.hm-meal>.hm-photo{width:41%;height:118px;border-radius:9px;flex-shrink:0}
.hm-meal>div{min-width:0;flex:1}.hm-meal .hm-eyebrow{font-size:10px;letter-spacing:.3px}
.hm-meal h4{font-size:18px;line-height:1.1;margin:7px 0;font-weight:750;letter-spacing:-.3px}
html[data-theme] #screen .hm-meal p{font-size:12px;color:var(--ff-muted);line-height:1.35;margin:0}
.hm-meal-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
html[data-theme] #screen .hm-meal .hm-link,html[data-theme] #screen .hm-meal .hm-detail{font-size:11px}
html[data-theme] #screen .hm-home .hm-wellbeing{display:flex;align-items:center;gap:12px;background:var(--ff-card);border:1px solid var(--ff-border);padding:0 12px;width:100%;text-align:left;min-height:48px;margin:0;color:var(--ff-ink)}
.hm-wellbeing>svg{color:var(--ff-accent)}.hm-wellbeing b{flex:1;font-size:13px;font-weight:600}.hm-wellbeing .hm-link{font-size:12px}
.hm-quick{grid-area:quick;display:flex;align-items:center;gap:12px;min-width:0}
html[data-theme] #screen .hm-quick h3{font-size:16px;font-weight:700;white-space:nowrap;margin:0 12px 0 0}
html[data-theme] #screen .hm-quick>button{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:44px;background:linear-gradient(var(--ff-soft),var(--ff-card));color:var(--ff-ink);border:1px solid var(--ff-border);padding:7px 10px;font-size:12px;margin:0}
.hm-status{grid-area:status;display:flex;align-items:center;justify-content:space-between;gap:10px;border-left:1px solid var(--ff-border);padding-left:24px;font-size:12px}
.hm-demo{margin:10px 0 0;text-align:right;font-size:9px;letter-spacing:.7px;color:var(--ff-muted)}
@media(min-width:960px){
 html.web-layout[data-theme] body[data-page="home"] .app-topbar{position:fixed;top:0;left:0;transform:none;max-width:none;width:100%;margin:0;padding:12px max(32px,calc((100vw - 1100px)/2));min-height:76px;background:var(--hm-header)}
 html.web-layout[data-theme] body[data-page="home"] main{margin:0 auto!important;max-width:1100px!important;width:calc(100% - 64px);padding:100px 0 22px!important;min-height:0!important;box-sizing:border-box}
 html.web-layout[data-theme] body[data-page="home"] #bottom{position:fixed;z-index:81;top:0;bottom:auto;left:50%;transform:translateX(-50%);display:flex!important;flex-direction:row;align-items:center;justify-content:center;gap:12px;width:auto;max-width:660px;height:76px;padding:0;background:transparent;border:0;box-shadow:none}
 html.web-layout[data-theme] body[data-page="home"] #bottom>button{flex-direction:row;flex:none;gap:8px;padding:15px 12px;min-height:76px!important;width:auto!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--ff-ink);font-size:13px;white-space:nowrap}
 html.web-layout[data-theme] body[data-page="home"] #bottom>button[aria-pressed="true"]{color:var(--ff-accent);border-bottom-color:var(--ff-accent)!important;box-shadow:none!important}
 html.web-layout[data-theme] body[data-page="home"] #bottom>button svg{width:21px;height:21px}
 html.web-layout[data-theme] body[data-page="home"] .rp-header-profile{margin-left:auto}
 html.web-layout[data-theme] body[data-page="home"] #bottom #more-menu{inset:70px auto auto!important}
}
@media(max-width:1100px) and (min-width:960px){html.web-layout[data-theme] body[data-page="home"] #bottom{gap:2px}html.web-layout[data-theme] body[data-page="home"] #bottom>button{padding:15px 8px}}
@container home (max-width:760px){
 .hm-overview{grid-template-columns:minmax(0,1fr);grid-template-areas:'greeting' 'update' 'workout' 'day' 'quick' 'status';gap:12px}
 html[data-theme] #screen .hm-greeting h2{font-size:27px;letter-spacing:-.8px;margin:6px 0}
 html[data-theme] #screen .hm-greeting p{font-size:12px;margin-bottom:6px}.hm-tag{font-size:10px;padding:2px 8px}
 html[data-theme] #screen .hm-season{font-size:10px;min-height:32px;max-width:80px;line-height:1.2;flex-shrink:0;white-space:normal}.hm-season small{font-size:9px}
 .hm-update{gap:7px;padding:4px 10px;display:grid;grid-template-columns:1fr auto;min-height:48px;box-sizing:border-box}
 .hm-update>span{font-size:10px;border:0;padding:0;gap:7px}.hm-update>span svg{width:18px;height:18px}
 html[data-theme] #screen .hm-update p{font-size:10px;grid-column:1;grid-row:2;margin:-2px 0 2px 25px;line-height:1.3}
 html[data-theme] #screen .hm-update .hm-link{font-size:10px;grid-column:2;grid-row:1/3;max-width:80px;text-align:right}
 .hm-workout{min-height:178px}.hm-workout-copy{padding:16px 14px;gap:8px}
 html[data-theme] #screen .hm-home .hm-workout h3{font-size:28px;max-width:62%;letter-spacing:-.7px}
 html[data-theme] #screen .hm-workout p{font-size:11px;max-width:64%}.hm-eyebrow{font-size:9px}
 .hm-workout-actions{gap:12px;margin-top:0}
 html[data-theme] #screen .hm-home .hm-primary{font-size:12px;min-height:40px;padding:9px 13px}
 html[data-theme] #screen .hm-home .hm-detail{font-size:10px;min-height:40px}
 .hm-day{gap:10px}.hm-day>h3{display:none}.hm-meal{gap:12px;padding:6px;min-height:100px;box-sizing:border-box}.hm-meal>.hm-photo{height:96px;width:36%;border-radius:8px}
 .hm-meal h4{font-size:15px;margin:5px 0}.hm-meal .hm-eyebrow{font-size:9px}
 html[data-theme] #screen .hm-meal p{font-size:10px}.hm-meal-actions{gap:20px}
 html[data-theme] #screen .hm-meal .hm-link,html[data-theme] #screen .hm-meal .hm-detail{font-size:10px;min-height:32px}
 html[data-theme] #screen .hm-home .hm-wellbeing{min-height:44px;padding:0 10px;gap:9px}.hm-wellbeing b{font-size:12px}.hm-wellbeing .hm-link{font-size:10px}
 .hm-quick{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.hm-quick h3{grid-column:1/-1;font-size:12px!important;margin:0!important}
 html[data-theme] #screen .hm-quick>button{min-height:36px;font-size:11px;padding:5px 8px}.hm-quick svg{width:16px!important;height:16px!important}
 .hm-status{border-left:0;border-top:1px solid var(--ff-border);padding:1px 0 0;font-size:10px}.hm-status .hm-link{font-size:10px!important;min-height:36px!important}
 .hm-demo{font-size:8px;margin-top:3px}
}
@media(max-width:959px){html[data-theme] body[data-page="home"] main{padding:76px 16px 90px!important;width:100%;box-sizing:border-box}html[data-theme] body[data-page="home"] .app-topbar{min-height:60px;padding:8px 16px}html[data-theme] body[data-page="home"] .app-topbar .wordmark{font-size:15px}html[data-theme] body[data-page="home"] #bottom>button{min-height:48px!important;font-size:10px}html[data-theme] body[data-page="home"] #bottom>button[aria-pressed="true"]{background:transparent!important}}
html.device-embed[data-theme] body[data-page="home"] .app-topbar .wordmark{font-size:15px}
html[data-theme] body[data-page="home"] :is(#hm-dialog,#ff-dialog,#ex-dialog){box-sizing:border-box;max-width:min(560px,calc(100vw - 28px));width:560px;max-height:calc(100dvh - 36px);overflow:auto;padding:22px;background:var(--ff-bg);color:var(--ff-ink);border:1px solid var(--ff-border);border-radius:16px;font-family:Arial,Helvetica,sans-serif}
body[data-page="home"] dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
.hm-dialog-heading{display:flex;gap:14px;align-items:center;justify-content:space-between}.hm-dialog-heading h2{font-size:27px;margin:8px 0}.hm-dialog-heading button{width:44px;min-height:44px;border:1px solid var(--ff-border);background:var(--ff-card);color:var(--ff-ink);border-radius:9px;font-size:24px;cursor:pointer}
.hm-dialog-art{overflow:hidden;border-radius:10px;margin:14px 0;background:var(--hm-hero);height:150px}.hm-dialog-art .hm-photo{width:100%;height:100%}.hm-dialog-art .hm-photo-workout{object-position:right;max-width:220px;margin-left:auto}
#hm-dialog h3{font-size:19px;margin:18px 0 8px}#hm-dialog p{font-size:14px;line-height:1.6;color:var(--ff-muted)}.hm-dialog-note{padding:14px;border:1px solid var(--ff-border);border-radius:9px;font-size:12px;line-height:1.6;background:var(--ff-card)}.hm-dialog-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}#hm-dialog .hm-detail{min-height:44px;border:0;background:none;color:var(--ff-ink);cursor:pointer}
html[data-theme] body[data-page="home"] :is(#ff-dialog,#ex-dialog) button{min-height:44px}html[data-theme] body[data-page="home"] :is(#ff-dialog,#ex-dialog) :is(input,select){background:var(--ff-card);color:var(--ff-ink);border-color:var(--ff-border)}
html[data-text-size="large"] .hm-overview{display:flex;flex-direction:column}html[data-text-size="large"] .hm-home :is(p,.hm-button,.hm-eyebrow){font-size:18px!important}html[data-text-size="large"] .hm-workout h3{max-width:100%!important}html[data-text-size="large"] .hm-workout>.hm-photo{opacity:.25}.hm-home button:focus-visible,#hm-dialog button:focus-visible{outline:3px solid var(--ff-accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.hm-home *{scroll-behavior:auto}}

/* Keep the chapter on the greeting row without squeezing the headline. */
.hm-greeting{position:relative}.hm-greeting>div{width:100%}.hm-greeting>div>p:first-child{padding-right:120px}.hm-season{position:absolute;right:0;top:0}.hm-status{width:100%;box-sizing:border-box;max-width:none;margin:0;justify-self:stretch}.hm-workout-actions{max-width:100%}
@container home (max-width:760px){.hm-greeting>div>p:first-child{padding-right:90px}}

.hm-wellbeing .hm-link{display:flex;align-items:center}
html[data-theme=dark] body.app-view[data-home-flow=true]:not([data-page=home]):not([data-page=nutrition]):not([data-page=progress]){--ff-bg:#111314;--ff-card:#222324;--ff-soft:#272829;--ff-border:#464646;--ff-ink:#faf9f7;--ff-muted:#d0ccc6;--ff-accent:#ffad65;--ff-accent-ink:#19120c;--ff-tint:#ff9a4010;--hm-hero:#252523;background:var(--ff-bg);color:var(--ff-ink)}
html[data-theme=light] body.app-view[data-home-flow=true]:not([data-page=home]):not([data-page=nutrition]):not([data-page=progress]){--ff-bg:#faf1e8;--ff-card:#f8eee4;--ff-soft:#f6eadf;--ff-border:#decec1;--ff-ink:#151413;--ff-muted:#5d5148;--ff-accent:#a43d00;--ff-accent-ink:#19120c;--ff-tint:#f8812310;--hm-hero:#f1e7dc;background:var(--ff-bg);color:var(--ff-ink)}
body[data-home-flow=true] .rewards-header,body[data-home-flow=true] .topbar-settings{display:none!important}body[data-home-flow=true] .rp-header-profile{margin-left:auto}
.hm-plan-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--hm-hero);border:1px solid var(--ff-border);border-radius:12px;padding:18px;min-height:140px;box-sizing:border-box;display:flex;align-items:center;margin:14px 0}.hm-plan-hero>.hm-photo{position:absolute;right:0;top:0;width:45%;height:100%;z-index:-1;mask-image:linear-gradient(90deg,transparent,#000 30%)}.hm-plan-hero>div{max-width:65%}.hm-plan-hero h3{font-size:24px!important;line-height:1.1;margin:8px 0!important}.hm-plan-hero p{font-size:12px!important;line-height:1.4}
html[data-theme] body[data-home-flow=true] #screen .ff-primary{background:linear-gradient(110deg,#ffa052,#ff792a);color:#17100a;border:1px solid #ffb581}
@media(min-width:960px){html.web-layout[data-theme] body.app-view[data-home-flow=true] main{max-width:900px!important;width:calc(100% - 64px)!important;padding:100px 0 28px!important}html.web-layout[data-theme] body.app-view[data-home-flow=true] #bottom{max-width:660px!important;width:auto!important;gap:12px!important}html.web-layout[data-theme] body.app-view[data-home-flow=true] #bottom>button{flex:none!important;width:auto!important;padding:15px 12px!important;border-radius:0!important;background:transparent!important}html.web-layout[data-theme] body.app-view[data-home-flow=true] #bottom>button[aria-pressed=true]{color:var(--ff-accent)}body[data-home-flow=true] #ex-plan-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}body[data-home-flow=true] #ex-plan-form>.ev-goals,body[data-home-flow=true] #ex-plan-form>.ff-two,body[data-home-flow=true] #ex-plan-form>.ff-note{grid-column:1/-1}}

.hm-meal-art{height:230px}.hm-meal-art>.hm-photo{width:100%;height:100%}

/* Retire global marketing-footer padding inside the Home action row. */
html[data-theme] body[data-page=home] #screen footer.hm-status{padding:0 0 0 24px!important;border-top:0!important;min-height:44px;font-size:12px}
.hm-workout>.hm-photo{width:50%}
@container home (max-width:760px){.hm-workout>.hm-photo{width:59%}html[data-theme] body[data-page=home] #screen footer.hm-status{padding:1px 0 0!important;border-left:0!important;border-top:1px solid var(--ff-border)!important;min-height:36px;font-size:10px}}

html[data-theme] body[data-page=home] #screen .hm-status>span{color:var(--ff-ink)!important}

.hm-photo[data-photo-theme]{display:none}html[data-theme=dark] .hm-photo[data-photo-theme=dark],html[data-theme=light] .hm-photo[data-photo-theme=light]{display:block}
html[data-theme] #screen .hm-plan-hero>.hm-photo{width:45%!important;height:100%!important;max-width:none!important;max-height:none!important}

.hm-plan-hero{min-height:190px}html[data-theme] #screen .hm-plan-hero>.hm-photo{max-width:260px!important}
