/* Shared continuation of the adopted Home / Progress / Nutrition family.
   Keep domain controls and saved data in their existing modules. */
html[data-theme="dark"] body.app-view:not([data-page="home"]):not([data-page="nutrition"]):not([data-page="food"]):not([data-page="progress"]){
 --ff-bg:#191a1d;--ff-card:#25262a;--ff-soft:#303136;--ff-border:#44454b;
 --ff-ink:#f3f0eb;--ff-muted:#c1bfbd;--ff-accent:#f4ba86;--ff-accent-ink:#211a15;
 --ff-tint:#f4ba861a;--ff-ring:#44454b;--approved-success:#f4ba86;
 background:var(--ff-bg);color:var(--ff-ink)
}
html[data-theme="light"] body.app-view:not([data-page="home"]):not([data-page="nutrition"]):not([data-page="food"]):not([data-page="progress"]){
 --ff-bg:#f7f5f0;--ff-card:#fff;--ff-soft:#eeece7;--ff-border:#d8d5d0;
 --ff-ink:#242529;--ff-muted:#62605c;--ff-accent:#8d4b20;--ff-accent-ink:#fff;
 --ff-tint:#f4ba8626;--ff-ring:#d8d5d0;--approved-success:#8d4b20;
 background:var(--ff-bg);color:var(--ff-ink)
}
/* Portals inherit the same palette from body, including Premium and recovery. */
html[data-theme] body.app-view :is(#ff-dialog,#app-menu,#premium-dialog){background:var(--ff-card);color:var(--ff-ink);border:1px solid var(--ff-border);border-radius:18px}
html[data-theme] body.app-view .app-topbar .wordmark>span{display:none}
html[data-theme] body.app-view:not([data-page="home"]) .app-topbar .wordmark:before{content:'//';display:inline-block;color:var(--ff-accent);font-size:25px;letter-spacing:-5px;margin-right:10px;font-style:italic}
html[data-theme] body.app-view:not([data-page="home"]) .app-topbar .wordmark{flex-direction:row;align-items:center}
/* Retire the legacy sidebar at tablet widths as well as small phones. */
@media(max-width:959px){
 html.web-layout[data-theme] body.app-view:not([data-page="home"]):not([data-page="nutrition"]):not([data-page="food"]):not([data-page="progress"]):not([data-page="progress-sleep"]) main{width:100%;max-width:430px!important;margin:0 auto!important;padding:92px 18px 116px!important}
 html.web-layout[data-theme] body.app-view #bottom{left:50%!important;transform:translateX(-50%)!important;top:auto!important;bottom:0!important;width:100%!important;max-width:430px!important;height:auto;flex-direction:row!important;align-items:center;padding:7px 8px max(10px,env(safe-area-inset-bottom))!important;border:0!important;border-top:1px solid var(--ff-border)!important;background:var(--ff-bg)!important}
 html.web-layout[data-theme] body.app-view #bottom>button{flex:1;flex-direction:column!important;justify-content:center;gap:5px!important;min-width:0;min-height:56px!important;padding:5px 2px!important;font-size:11px;box-shadow:none!important}
 html.web-layout[data-theme] body.app-view #bottom>button[aria-pressed="true"]{background:transparent!important}
 html.web-layout[data-theme] body.app-view #bottom>button[aria-pressed="true"]:after{content:none}
}
@media(min-width:960px){
 html.web-layout[data-theme] body.app-view:not([data-page="home"]) #bottom{position:fixed!important;top:0!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important;width:640px!important;max-width:calc(100vw - 320px)!important;height:72px;display:flex!important;flex-direction:row!important;align-items:stretch;padding:0 8px!important;gap:7px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;z-index:85}
 html.web-layout[data-theme] body.app-view:not([data-page="home"]) #bottom>button{flex:1 1 0!important;width:auto!important;flex-direction:row!important;justify-content:center;gap:7px!important;min-height:52px!important;padding:10px 5px!important;font-size:13px;position:relative;white-space:normal;box-shadow:none!important}
 html.web-layout[data-theme] body.app-view:not([data-page="home"]) #bottom>button[aria-pressed="true"]:after{content:'';position:absolute;bottom:0;left:5px;right:5px;height:3px;background:var(--ff-accent)}
 html.web-layout[data-theme] body.app-view #bottom #more-menu{top:76px!important;bottom:auto!important;max-height:calc(100dvh - 96px);overflow:auto}
}
/* Settings: the reference's two-column desktop and stacked mobile composition. */
html[data-theme] .vf-family .rp-settings{gap:14px;max-width:1120px}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px!important;border-radius:16px;min-height:0}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card h3{font-size:16px!important;margin:0;line-height:1.4}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card :is(.ff-three,.ff-two){grid-column:auto;background:var(--ff-soft);padding:4px;gap:4px;border-radius:10px}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card button{font-size:14px!important;min-height:44px!important;padding:8px!important;border-radius:8px;line-height:1.4}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.ff-settings-list{gap:12px}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.ff-settings-list>:is(.ff-secondary,.ff-row){min-height:64px!important;padding:14px 16px!important;font-size:15px!important;background:var(--ff-card);border:1px solid var(--ff-border);border-radius:14px}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.ff-settings-list .ff-row b{font-size:15px}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.ff-settings-list .ff-row small{font-size:12px;line-height:1.5}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.ff-settings-premium{background:var(--ff-card);border:1px solid var(--ff-accent);border-radius:14px;min-height:76px;padding:16px}
html[data-theme] .vf-family .rp-settings .sf-settings-account>.rp-settings-extra{margin:0;padding:12px 16px;border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card)}
.rp-settings-extra>summary{display:flex;align-items:center;min-height:44px}
@media(min-width:960px){
 html.web-layout[data-theme] .vf-family .rp-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px 24px}
 html.web-layout[data-theme] .vf-family .rp-settings>.ff-heading{grid-column:1/-1;margin:0 0 8px}
 html.web-layout[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card{grid-column:1;min-height:108px}
}
@media(max-width:359px){
 html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card{padding:12px!important}
 html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card button{font-size:12px!important;padding:6px 4px!important}
}
html[data-text-size="large"] .vf-family .rp-settings{display:flex!important;flex-direction:column;align-items:stretch}
html[data-text-size="large"] .vf-family .rp-settings .sf-settings-preferences>.ff-card button{font-size:20px!important;overflow-wrap:anywhere}
html[data-text-size="large"] .vf-family .rp-settings .sf-settings-preferences>.ff-card :is(.ff-three,.ff-two){display:flex;flex-wrap:wrap}
html[data-text-size="large"] .vf-family .rp-settings .sf-settings-preferences>.ff-card :is(.ff-three,.ff-two)>button{flex:1 1 100px}

html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card button[aria-pressed="true"]{background:#f4ba86;color:#211a15;border-color:transparent}
html[data-theme] body.app-view .exd :is(.exd-hero,.exd-picture){background:var(--ff-card)}

.sf-settings-preferences,.sf-settings-account{display:grid;align-content:start;gap:12px;min-width:0}
@media(min-width:960px){html.web-layout[data-theme] .rp-settings .sf-settings-preferences{grid-column:1}html.web-layout[data-theme] .rp-settings .sf-settings-account{grid-column:2}}
html[data-theme] .rp-settings .sf-settings-account>.ff-settings-list>.ff-secondary[aria-checked]::after{box-shadow:none;background:radial-gradient(circle at 11px 50%,#fff 0 7px,transparent 8px),#6c6b6a;border:1px solid var(--ff-border);box-sizing:border-box}
html[data-theme] .rp-settings .sf-settings-account>.ff-settings-list>.ff-secondary[aria-checked="true"]::after{background:radial-gradient(circle at calc(100% - 11px) 50%,#211a15 0 7px,transparent 8px),#f4ba86}

html[data-text-size="large"] .vf-family .rp-settings .sf-settings-preferences>.ff-card h3{font-size:22px!important}
html[data-text-size="large"] .vf-family .rp-settings .sf-settings-account>.ff-settings-list>.ff-secondary{font-size:20px!important;white-space:normal}
html[data-text-size="large"] .vf-family .rp-settings .sf-settings-account .ff-row b{font-size:20px!important}

/* The two Settings column wrappers replace the old direct-child heading rule. */
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card h3{display:flex;align-items:center;gap:10px}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card h3 svg{display:block;width:24px;height:24px;flex:0 0 24px;color:var(--ff-accent)}

html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card{margin:0!important}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card h3{margin:0!important}
html[data-theme] .vf-family .rp-settings .sf-settings-preferences>.ff-card :is(.ff-two,.ff-three){margin:0}

/* UI family finish: warm editorial cards selected from the Social reference. */
html[data-theme="dark"] body.app-view:not([data-page="home"]):not([data-page="nutrition"]):not([data-page="food"]):not([data-page="progress"]){--ff-bg:#18191b;--ff-card:#242528;--ff-soft:#303135;--ff-border:#44454a;--ff-accent:#ffae67;--ff-accent-ink:#20170e;--ff-tint:#ff851b19}
html[data-theme="light"] body.app-view:not([data-page="home"]):not([data-page="nutrition"]):not([data-page="food"]):not([data-page="progress"]){--ff-bg:#faf7f3;--ff-card:#fffdfb;--ff-soft:#f1ece7;--ff-border:#d8cfc7;--ff-accent:#a14209;--ff-accent-ink:#fff;--ff-tint:#ff851b17}
html[data-theme] body.app-view .vf-family .ff-primary{background:linear-gradient(180deg,#ff982f,#ff7c0a)!important;border-color:#e97408!important;color:#20170e!important;box-shadow:0 3px 9px #d56b0a15;font-weight:750}
html[data-theme] body.app-view .vf-family[data-family-screen="social"]{max-width:1120px;margin:0 auto}
html[data-theme] body.app-view .vf-family[data-family-screen="social"]>.sd-demo{display:none}
html[data-theme] body.app-view .vf-family .uf-social-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"challenge" "community" "story" "details";gap:14px;margin-top:18px}
html[data-theme] body.app-view .vf-family .uf-social-grid>*{min-width:0;margin:0!important;border-radius:18px!important;border:1px solid var(--ff-border)!important;padding:18px!important;background:var(--ff-card)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-challenge{grid-area:challenge;background:linear-gradient(140deg,var(--ff-card),var(--ff-bg))}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-card{grid-area:community}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card{grid-area:story;display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;align-items:center}
html[data-theme] body.app-view .vf-family .uf-social-grid .uf-community-details{grid-area:details}
html[data-theme] body.app-view .vf-family .uf-social-grid h3{font-size:18px!important;line-height:1.3;margin:0 0 8px!important}
html[data-theme] body.app-view .vf-family .uf-social-grid h4{font-size:21px;line-height:1.25;margin:12px 0 8px}
html[data-theme] body.app-view .vf-family .uf-social-grid p{font-size:14px;line-height:1.5;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;margin:20px 0 0!important}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list>button{min-width:0;min-height:100px!important;padding:0!important;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:8px}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list>button>span[aria-hidden]{display:none}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list .sd-photo{width:52px!important;height:52px!important;flex:0 0 52px!important;border-radius:50%;border:2px solid var(--ff-border)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list b{display:block;font-size:13px!important}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list small{font-size:10px!important;line-height:1.4;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-card>.ff-between{gap:10px;align-items:flex-start}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-card>.ff-between>a,html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-card>.ff-between>button{flex:0 0 auto;min-height:44px;padding:8px 10px;font-size:12px;color:var(--ff-accent);border-color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-challenge-summary{margin:14px 0;display:flex;align-items:center;gap:12px}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-challenge-summary strong{font-size:24px;color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-challenge-summary strong small{display:block;font-size:12px;color:var(--ff-muted);font-weight:400}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-challenge>.ff-primary{width:100%;min-height:46px;border-radius:10px;padding:10px 16px}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card>.sd-story{width:90px;height:140px;border-radius:10px;overflow:hidden}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card .ff-secondary{min-height:44px;color:var(--ff-accent);border-color:var(--ff-accent);border-radius:10px;padding:8px 12px}
html[data-theme] body.app-view .vf-family .uf-social-grid .uf-community-details>summary{min-height:44px;align-items:center;font-weight:700}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
html[data-theme] body.app-view .vf-family .uf-social-grid .sd-stats>button{min-height:48px;color:var(--ff-accent);font-weight:700;border-radius:10px;background:var(--ff-soft)}
html[data-theme] body.app-view .vf-family[data-family-screen="social"] .sd-tabs{min-height:46px;padding:3px;border:1px solid var(--ff-border);border-radius:10px;background:transparent!important}
html[data-theme] body.app-view .vf-family[data-family-screen="social"] .sd-tabs>button{min-height:44px;font-size:13px!important;border-radius:7px;color:var(--ff-ink)}
html[data-theme] body.app-view .vf-family[data-family-screen="social"] .sd-tabs>button[aria-pressed="true"]{color:var(--ff-accent);background:var(--ff-tint);box-shadow:inset 0 0 0 1px var(--ff-accent)}
@media(min-width:960px){html.web-layout[data-theme] body.app-view .vf-family .uf-social-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"community challenge" "details story";gap:16px}html.web-layout[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list .sd-photo{width:70px!important;height:70px!important;flex-basis:70px!important}html.web-layout[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card{grid-template-columns:110px minmax(0,1fr)}html.web-layout[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card>.sd-story{width:110px;height:156px}}
@media(max-width:359px){html[data-theme] body.app-view .vf-family .uf-social-grid>*{padding:12px!important}html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list{gap:4px!important}html[data-theme] body.app-view .vf-family .uf-social-grid .sd-friend-list .sd-photo{width:44px!important;height:44px!important;flex-basis:44px!important}html[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card{grid-template-columns:72px minmax(0,1fr);gap:12px}html[data-theme] body.app-view .vf-family .uf-social-grid .sd-journey-card>.sd-story{width:72px;height:132px}}
html[data-text-size="large"] body.app-view .vf-family .uf-social-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"challenge" "community" "story" "details"!important}
html[data-text-size="large"] body.app-view .vf-family .uf-social-grid .sd-friend-list{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-text-size="large"] body.app-view .vf-family .uf-social-grid :is(p,small,button,b){font-size:20px!important;white-space:normal;overflow-wrap:anywhere}

/* Profile uses the same identity-first cards and balanced desktop columns. */
html[data-theme] body.app-view .vf-family[data-family-screen="profile"]{max-width:1120px!important;width:100%;margin:0 auto}
html[data-theme] body.app-view .vf-family[data-family-screen="profile"]>.sd-demo{font-size:12px;color:var(--ff-muted);margin:0 0 14px}
html[data-theme] body.app-view .vf-family .uf-profile-identity{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px!important;margin:0 0 16px!important;border-radius:18px!important;border:1px solid var(--ff-border);background:linear-gradient(135deg,var(--ff-card),var(--ff-tint))!important}
html[data-theme] body.app-view .vf-family .uf-profile-identity>.sd-photo{width:68px;height:68px;border-radius:50%;border:2px solid var(--ff-border);overflow:hidden}
html[data-theme] body.app-view .vf-family .uf-profile-identity h3{font-size:23px;line-height:1.25;margin:0 0 4px;overflow-wrap:anywhere}
html[data-theme] body.app-view .vf-family .uf-profile-identity p{margin:0 0 6px;font-size:14px;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-profile-identity>.ff-secondary{min-height:44px;padding:10px 16px;border-radius:11px;border:1px solid #e97408;background:linear-gradient(180deg,#ff982f,#ff7c0a);color:#20170e;font-weight:750}
html[data-theme] body.app-view .vf-family .uf-profile-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"about" "stats" "links" "consistency";gap:14px}
html[data-theme] body.app-view .vf-family .uf-profile-grid>*{min-width:0;margin:0!important}
html[data-theme] body.app-view .vf-family .uf-profile-grid>.ff-card{border:1px solid var(--ff-border);border-radius:16px;padding:18px!important;background:var(--ff-card)}
html[data-theme] body.app-view .vf-family .uf-profile-grid h3{font-size:19px!important;line-height:1.3;margin:0 0 8px!important}
html[data-theme] body.app-view .vf-family .uf-profile-grid p{font-size:14px;line-height:1.5;margin:0;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-profile-about{grid-area:about}
html[data-theme] body.app-view .vf-family .uf-profile-grid>.sd-stats{grid-area:stats;display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-theme] body.app-view .vf-family .uf-profile-grid>.sd-stats>button{min-height:48px;border:1px solid var(--ff-border);background:var(--ff-card);color:var(--ff-ink);border-radius:11px;font-size:14px;font-weight:650}
html[data-theme] body.app-view .vf-family .uf-profile-links{grid-area:links;display:grid;gap:12px}
html[data-theme] body.app-view .vf-family .uf-profile-links>.ff-row{min-height:76px;padding:14px 16px!important;border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card);margin:0!important}
html[data-theme] body.app-view .vf-family .uf-profile-links b{font-size:16px!important}
html[data-theme] body.app-view .vf-family .uf-profile-links small{font-size:12px!important;line-height:1.5;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-profile-links svg{width:25px;height:25px;color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-profile-consistency{grid-area:consistency}
html[data-theme] body.app-view .vf-family .uf-profile-consistency .sd-week{margin:16px 0;gap:6px}
html[data-theme] body.app-view .vf-family .uf-profile-consistency .sd-week>span{min-width:0;min-height:54px;border-radius:10px;background:var(--ff-tint);color:var(--ff-accent);font-size:20px}
html[data-theme] body.app-view .vf-family .uf-profile-consistency .sd-week>span.pending{background:var(--ff-soft);color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .uf-profile-consistency .sd-week small{font-size:11px;line-height:1.5;color:var(--ff-ink)}
html[data-theme] body.app-view .vf-family .uf-profile-consistency>.ff-secondary{width:100%;min-height:44px;border-radius:10px;font-size:14px;margin:0;background:transparent;border:1px solid var(--ff-border);color:var(--ff-ink)}
@media(min-width:960px){html.web-layout[data-theme] body.app-view .vf-family .uf-profile-grid{grid-template-columns:1fr 1.1fr;grid-template-areas:"about stats" "links consistency";gap:16px 24px;align-items:start}}
@media(max-width:459px){html[data-theme] body.app-view .vf-family .uf-profile-identity{grid-template-columns:52px minmax(0,1fr) auto;gap:10px;padding:14px!important}html[data-theme] body.app-view .vf-family .uf-profile-identity>.sd-photo{width:52px;height:52px}html[data-theme] body.app-view .vf-family .uf-profile-identity h3{font-size:19px}html[data-theme] body.app-view .vf-family .uf-profile-identity>.ff-secondary{padding:8px 10px;font-size:12px}}
html[data-text-size="large"] body.app-view .vf-family .uf-profile-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"about" "stats" "links" "consistency"!important}
html[data-text-size="large"] body.app-view .vf-family .uf-profile-identity{grid-template-columns:68px minmax(0,1fr)}
html[data-text-size="large"] body.app-view .vf-family .uf-profile-identity>.ff-secondary{grid-column:1/-1}
html[data-text-size="large"] body.app-view .vf-family .uf-profile-grid :is(p,small,button,b){font-size:20px!important;white-space:normal;overflow-wrap:anywhere}

@media(min-width:960px){html.web-layout[data-theme] body.app-view.global-shell[data-page="profile"] main{width:min(1120px,calc(100% - 64px))!important;max-width:1120px!important;margin:0 auto!important;padding-left:0!important;padding-right:0!important}html.web-layout[data-theme] body.app-view .vf-family .uf-social-grid{align-items:stretch!important}}

/* More hub: eight equal tiles on desktop, compact navigation rows on phones. */
html[data-theme] body.app-view .vf-family[data-family-screen="more"]{max-width:1120px;width:100%;margin:0 auto}
html[data-theme] body.app-view .vf-family .uf-more-open-menu{display:none}
html[data-theme] body.app-view .vf-family .vf-more-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:20px}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row{grid-column:auto!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 16px;align-items:center!important;gap:14px!important;min-height:84px!important;padding:14px 16px!important;border:1px solid var(--ff-border)!important;border-radius:14px!important;background:var(--ff-card)!important;margin:0!important;text-align:left}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row>.ff-icon{width:32px!important;height:36px!important;color:var(--ff-accent);padding:0!important;background:none!important;border-radius:0!important}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row svg{width:30px!important;height:30px!important}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row>span:nth-child(2){display:block!important;min-width:0}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row b{display:block;font-size:17px!important;line-height:1.3;margin:0!important}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row small{display:block;font-size:12px!important;line-height:1.5;margin-top:4px!important;color:var(--ff-muted)}
html[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row>span[aria-hidden]{font-size:23px;color:var(--ff-muted);justify-self:end}
@media(min-width:960px){
 html.web-layout[data-theme] body.app-view.global-shell[data-page="more"] main{max-width:1120px!important;width:calc(100% - 64px)!important;margin:0 auto!important;padding-left:0!important;padding-right:0!important}
 html.web-layout[data-theme] body.app-view .vf-family[data-family-screen="more"]>.ff-heading{position:relative;padding-right:70px}
 html.web-layout[data-theme] body.app-view .vf-family .uf-more-open-menu{display:grid;place-items:center;position:absolute;right:0;top:4px;min-height:44px;min-width:48px;padding:8px;border:1px solid var(--ff-border);border-radius:18px;background:var(--ff-card);color:var(--ff-ink);font-size:18px;letter-spacing:2px}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row{grid-template-columns:minmax(0,1fr) 14px;grid-template-rows:34px auto;align-items:start!important;min-height:162px!important;padding:20px!important;gap:12px!important}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row>.ff-icon{grid-column:1/-1}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row b{font-size:20px!important}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row small{font-size:13px!important}
 html.web-layout[data-theme] body.app-view .vf-family .vf-more-grid>.ff-row>span[aria-hidden]{align-self:center}
}
html[data-text-size="large"] body.app-view .vf-family .vf-more-grid{grid-template-columns:minmax(0,1fr)!important}
html[data-text-size="large"] body.app-view .vf-family .vf-more-grid>.ff-row{grid-template-columns:36px minmax(0,1fr) 16px!important;grid-template-rows:auto!important;min-height:96px!important}
html[data-text-size="large"] body.app-view .vf-family .vf-more-grid>.ff-row>.ff-icon{grid-column:auto!important}
html[data-text-size="large"] body.app-view .vf-family .vf-more-grid>.ff-row :is(b,small){font-size:20px!important;white-space:normal;overflow-wrap:anywhere}

html[data-text-size="large"] body.app-view .vf-family .uf-profile-consistency .sd-week{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}

/* Selected Settings options match the approved orange control treatment. */
html[data-theme] body.app-view .vf-family .rp-settings .sf-settings-preferences>.ff-card button[aria-pressed="true"]{background:linear-gradient(180deg,#ff982f,#ff7c0a);color:#20170e;border-color:#e97408;font-weight:750}
html[data-theme] body.app-view .vf-family .rp-settings .sf-settings-account>.ff-settings-list>.ff-secondary[aria-checked="true"]::after{background:radial-gradient(circle at calc(100% - 11px) 50%,#20170e 0 7px,transparent 8px),#ff9227}
html[data-theme] body.app-view .vf-family .rp-settings .sf-settings-account>.ff-settings-premium{margin:0}
html[data-theme] body.app-view .vf-family .rp-settings .rp-settings-extra>summary::after{content:'+';margin-left:auto;color:var(--ff-accent);font-size:25px;font-weight:400}
html[data-theme] body.app-view .vf-family .rp-settings .rp-settings-extra[open]>summary::after{content:'−'}

/* Tips retains its approved photograph and destinations with compact family cards. */
html[data-theme] body.app-view .vf-family[data-family-screen="tips"] .vf-tips-hero{border:1px solid var(--ff-border);border-radius:14px;overflow:hidden;background:#181a17}
html[data-theme] body.app-view .vf-family .vf-tips-hero .vf-hero-copy{color:#fff;min-height:210px!important;padding:18px;gap:10px}
html[data-theme] body.app-view .vf-family .vf-tips-hero .vf-hero-copy :is(h3,p,small){color:#fff!important}
html[data-theme] body.app-view .vf-family .vf-guidance-topics{gap:10px;margin:14px 0}
html[data-theme] body.app-view #screen .vf-family .vf-guidance-topics .ff-row{display:grid;grid-template-columns:30px minmax(0,1fr) 14px;align-items:center!important;gap:12px;min-height:76px!important;padding:14px!important;border-radius:12px;border:1px solid var(--ff-border);background:var(--ff-card)}
html[data-theme] body.app-view .vf-family .vf-guidance-topics .ff-icon{padding:0;background:none;color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .vf-guidance-topics .ff-icon svg{width:27px;height:27px}
html[data-theme] body.app-view .vf-family .vf-guidance-topics .ff-row b{font-size:16px!important;line-height:1.3}
html[data-theme] body.app-view .vf-family .vf-guidance-topics .ff-row small{font-size:12px!important;line-height:1.5}
html[data-theme] body.app-view .vf-family .rp-tip-article{border-radius:16px!important;border:1px solid var(--ff-border);background:var(--ff-card)!important}
@media(min-width:960px){html.web-layout[data-theme] body.app-view .vf-family .vf-tips-hero .vf-hero-copy{min-height:280px!important;padding:24px}html.web-layout[data-theme] body.app-view #screen .vf-family .vf-guidance-topics .ff-row{min-height:88px!important}}
html[data-text-size="large"] body.app-view #screen .vf-family .vf-guidance-topics{grid-template-columns:minmax(0,1fr)!important}
html[data-text-size="large"] body.app-view #screen .vf-family .vf-guidance-topics .ff-row :is(b,small){font-size:20px!important;overflow-wrap:anywhere}
html[data-text-size="large"] body.app-view .vf-family .vf-tips-hero .vf-hero-copy{max-width:100%!important;width:100%!important;background:linear-gradient(90deg,#101410ed,#101410aa);min-height:260px!important}

/* Help uses the same readable cards, keeping truthful unconnected-support copy. */
html[data-theme] body.app-view .vf-family .uf-help-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
html[data-theme] body.app-view .vf-family .vf-help-search{display:grid;gap:8px;margin-bottom:18px;font-size:14px}
html[data-theme] body.app-view .vf-family .vf-help-search input{min-height:48px;border-radius:12px!important;margin:0;padding:12px 16px;border:1px solid var(--ff-border)}
html[data-theme] body.app-view .vf-family .vf-help-search input:focus-visible{outline:2px solid var(--ff-accent);outline-offset:2px}
html[data-theme] body.app-view .vf-family .vf-help-topics{border-radius:14px;background:var(--ff-card)}
html[data-theme] body.app-view .vf-family .vf-help-topics>.ff-card{background:var(--ff-card)!important;padding:12px 18px!important}
html[data-theme] body.app-view .vf-family .vf-help-topics>.ff-card:last-child{border-bottom:0}
html[data-theme] body.app-view .vf-family .vf-help-topics summary{min-height:44px;font-size:16px!important;line-height:1.4;gap:12px}
html[data-theme] body.app-view .vf-family .vf-help-topics details[open]>summary:after{transform:rotate(180deg)}
html[data-theme] body.app-view .vf-family .vf-help-topics p{font-size:14px;line-height:1.65;margin:4px 0 10px}
html[data-theme] body.app-view .vf-family .uf-help-contact>.ff-card{margin:0!important;padding:20px!important;border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card)!important}
html[data-theme] body.app-view .vf-family .uf-help-contact h3{display:flex;align-items:center;gap:12px;font-size:20px!important;line-height:1.3}
html[data-theme] body.app-view .vf-family .uf-help-contact h3 svg{width:26px;height:26px;flex:0 0 26px;color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-help-contact p{font-size:14px;line-height:1.65;margin-bottom:0}
@media(min-width:960px){html.web-layout[data-theme] body.app-view .vf-family .uf-help-grid{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:24px}}
html[data-text-size="large"] body.app-view .vf-family .uf-help-grid{grid-template-columns:minmax(0,1fr)!important}
html[data-text-size="large"] body.app-view .vf-family .uf-help-grid :is(summary,p){font-size:20px!important;overflow-wrap:anywhere}

html[data-theme] body.app-view .vf-family[data-family-screen="tips"] .vf-tips-hero{background:#151b17!important}
html[data-theme] body.app-view .vf-family .vf-tips-hero .vf-hero-copy{background:linear-gradient(90deg,#151b17 58%,#151b17d9)!important}
html[data-text-size="large"] body.app-view .vf-family .vf-tips-hero .vf-hero-copy{background:#151b17ed!important}

/* Privacy follows the reference's two cards and explicit bounded export. */
html[data-theme] body.app-view .vf-family[data-family-screen="privacy"]{max-width:1120px;width:100%;margin:0 auto}
html[data-theme] body.app-view .vf-family .uf-privacy-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:18px}
html[data-theme] body.app-view .vf-family .uf-privacy-grid>.ff-card{margin:0!important;padding:20px!important;border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card)!important}
html[data-theme] body.app-view .vf-family .uf-privacy-grid h3{display:flex;align-items:center;gap:12px;font-size:21px!important;line-height:1.3}
html[data-theme] body.app-view .vf-family .uf-privacy-grid h3 svg{width:27px;height:27px;flex:0 0 27px;color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-privacy-grid p{font-size:14px;line-height:1.7}
html[data-theme] body.app-view .vf-family[data-family-screen="privacy"]>button[data-ff="export"]{min-height:48px;border-radius:12px;width:100%;margin:0}
@media(min-width:960px){html.web-layout[data-theme] body.app-view.global-shell[data-page="privacy"] main{max-width:1120px!important;width:calc(100% - 64px)!important;margin:0 auto!important;padding-left:0!important;padding-right:0!important}html.web-layout[data-theme] body.app-view .vf-family .uf-privacy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
html[data-text-size="large"] body.app-view .vf-family .uf-privacy-grid{grid-template-columns:minmax(0,1fr)!important}
html[data-text-size="large"] body.app-view .vf-family .uf-privacy-grid p{font-size:20px!important;overflow-wrap:anywhere}

@media(min-width:960px){html.web-layout[data-theme] body.app-view.global-shell:is([data-page="profile"],[data-page="more"],[data-page="privacy"],[data-page="journey"],[data-page="body-measurements"],[data-page="body-insights"]) #screen{max-width:1120px!important;width:100%;margin:0 auto}}

/* Body journal keeps private photos hidden while reducing repeated chrome. */
html[data-theme] body.app-view .vf-family[data-family-screen="journey"] .pg-detail-hero{min-height:90px;padding:16px;margin-bottom:14px;border-radius:14px}
html[data-theme] body.app-view .vf-family[data-family-screen="journey"] .pg-detail-hero h3{display:none}
html[data-theme] body.app-view .vf-family[data-family-screen="journey"] .pg-detail-hero p{margin-top:8px;color:var(--ff-ink);font-size:13px}
html[data-theme] body.app-view .vf-family .uf-body-season{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;margin:12px 0}
html[data-theme] body.app-view .vf-family .uf-body-season .ff-season-select{display:flex!important;gap:14px;margin:0!important;min-height:44px}
html[data-theme] body.app-view .vf-family .uf-body-season select{max-width:none;min-width:130px;min-height:44px;padding:8px 12px;font-size:14px!important}
html[data-theme] body.app-view .vf-family .uf-body-season p{margin:0;font-size:12px;line-height:1.5}
html[data-theme] body.app-view .vf-family .uf-body-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:16px}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-card{border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card)!important;padding:18px!important;margin:0!important}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-tabs{margin:12px 0}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-photo-feature{grid-template-columns:minmax(0,1fr);gap:12px}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-photo-empty{min-height:180px;height:180px;border-radius:10px;background:var(--ff-soft)}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-photo-feature>div:last-child{font-size:14px}
html[data-theme] body.app-view .vf-family .uf-body-grid .ff-photo-feature>div:last-child>.ff-note{margin:6px 0;font-size:12px}
html[data-theme] body.app-view .vf-family .uf-body-grid :is(.ff-tabs,.ff-dates) button{min-height:44px;font-size:13px;border-radius:8px}
html[data-theme] body.app-view .vf-family .uf-body-grid button[aria-pressed="true"],html[data-theme] body.app-view .vf-family[data-family-screen="journey"]>.ff-tabs button[aria-pressed="true"]{background:var(--ff-tint);border-color:var(--ff-accent);color:var(--ff-accent)}
html[data-theme] body.app-view .vf-family .uf-body-goal{display:grid;gap:16px}
html[data-theme] body.app-view .vf-family .uf-body-goal h3{font-size:21px!important}
html[data-theme] body.app-view .vf-family .uf-body-goal p{font-size:14px;line-height:1.6}
html[data-theme] body.app-view .vf-family .uf-body-goal :is(.ff-primary,.ff-secondary){width:100%;min-height:44px;border-radius:10px;margin:0}
@media(min-width:960px){html.web-layout[data-theme] body.app-view .vf-family .uf-body-grid{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);gap:20px}html.web-layout[data-theme] body.app-view .vf-family .uf-body-season{justify-content:flex-start}}
html[data-text-size="large"] body.app-view .vf-family .uf-body-grid{grid-template-columns:minmax(0,1fr)!important}
html[data-text-size="large"] body.app-view .vf-family .uf-body-grid :is(button,p,small){font-size:20px!important;overflow-wrap:anywhere}
html[data-text-size="large"] body.app-view .vf-family .uf-body-season{align-items:stretch;flex-direction:column}

/* Exercise keeps its actual routine/session controls and original studio photographs. */
html[data-theme] body.app-view .exd .ff-primary,html[data-theme] body.app-view .exd .exd-ai-card>span:last-child{background:linear-gradient(180deg,#ff982f,#ff7c0a)!important;border:1px solid #e97408!important;color:#20170e!important;font-weight:750;min-height:44px!important;border-radius:10px}
html[data-theme] body.app-view .exd .exd-ai{background:var(--ff-card)!important;border:1px solid var(--ff-accent)!important;color:var(--ff-ink)!important}
html[data-theme] body.app-view .exd .exd-ai p{color:var(--ff-muted)!important}
html[data-theme] body.app-view .exd .exd-ai .exd-badge{background:var(--ff-tint);border-color:var(--ff-accent);color:var(--ff-accent)}
html[data-theme] body.app-view .exd .exd-hero{min-height:220px;border-radius:14px;background:#102823!important}
html[data-theme] body.app-view .exd .exd-hero-copy{padding:22px;max-width:68%}
html[data-theme] body.app-view .exd .exd-hero>.exd-picture{background:#102823;right:0;top:0;height:100%;width:65%}
html[data-theme] body.app-view .exd .exd-choices{gap:10px;margin:14px 0 20px}
html[data-theme] body.app-view .exd .exd-choice{min-height:128px!important;padding:14px!important;gap:8px!important;background:var(--ff-card);border-radius:12px}
html[data-theme] body.app-view .exd .exd-choice>svg{width:24px;height:24px}
html[data-theme] body.app-view .exd .exd-choice strong{font-size:14px;line-height:1.35;padding-right:8px}
html[data-theme] body.app-view .exd .exd-choice small{font-size:11px;line-height:1.4}
html[data-theme] body.app-view .exd .exd-choice .exd-badge{font-size:9px;top:14px;right:8px}
html[data-theme] body.app-view .exd .exd-today{padding:20px!important;border-radius:14px;margin:0!important}
html[data-theme] body.app-view .exd .exd-today-number{font-size:40px;margin:12px 0}
html[data-theme] body.app-view .exd .exd-ai-card{padding:18px;border-radius:14px}
html[data-theme] body.app-view .exd .exd-ai-card h3{margin:12px 0!important;font-size:20px!important}
html[data-theme] body.app-view .exd .exd-ai-card p{font-size:13px;line-height:1.5}
html[data-theme] body.app-view .exd .exd-home-side{gap:16px}
html[data-theme] body.app-view .exd .exd-popular{gap:10px}
html[data-theme] body.app-view .exd .exd-popular-card>.exd-picture{aspect-ratio:1.5}
html[data-theme] body.app-view .exd .exd-popular-card>span{padding:9px}
html[data-theme] body.app-view .exd .exd-popular-card strong{font-size:12px;line-height:1.35}
@media(min-width:1100px){html.web-layout[data-theme] body.app-view .exd .exd-overview{display:grid;grid-template-columns:minmax(0,1fr) 280px;column-gap:24px;align-items:start}html.web-layout[data-theme] body.app-view .exd .exd-overview>.exd-heading{grid-column:1;grid-row:1}html.web-layout[data-theme] body.app-view .exd .exd-overview>.exd-searchbar{grid-column:1;grid-row:2}html.web-layout[data-theme] body.app-view .exd .exd-home-layout{display:contents}html.web-layout[data-theme] body.app-view .exd .exd-home-main{grid-column:1;grid-row:3}html.web-layout[data-theme] body.app-view .exd .exd-home-side{grid-column:2;grid-row:1/4}html.web-layout[data-theme] body.app-view .exd .exd-choices{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:959px){html[data-theme] body.app-view .exd .exd-hero{min-height:175px}html[data-theme] body.app-view .exd .exd-hero-copy{padding:18px;max-width:74%}html[data-theme] body.app-view .exd .exd-choice{min-height:120px!important}html[data-theme] body.app-view .exd .exd-popular{gap:6px}html[data-theme] body.app-view .exd .exd-popular-card>span{padding:7px 4px}html[data-theme] body.app-view .exd .exd-popular-card strong{font-size:11px}}
html[data-text-size="large"] body.app-view .exd .exd-overview{display:block!important}
html[data-text-size="large"] body.app-view .exd :is(.exd-choices,.exd-popular){grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-text-size="large"] body.app-view .exd :is(.exd-choice strong,.exd-choice small,.exd-popular-card strong){font-size:20px!important;overflow-wrap:anywhere}

html[data-theme] body.app-view .exd .exd-choice>small{position:absolute;width:1px;height:1px;padding:0!important;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme] body.app-view .exd .exd-choice{min-height:108px!important}
html[data-theme] body.app-view .exd .exd-ai>svg{color:var(--ff-accent)!important}
html[data-text-size="large"] body.app-view .exd .exd-choice>small{position:static;width:auto;height:auto;margin:0;clip-path:none;white-space:normal}
html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid>div{display:grid;align-content:start;gap:16px}
html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid .ff-card{margin:0!important;padding:22px!important;border:1px solid var(--ff-border);border-radius:14px;background:var(--ff-card)}
html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid h3{font-size:22px!important;line-height:1.3;margin:0 0 10px!important}
html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid p{font-size:14px;line-height:1.6}
html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid :is(.ff-primary,.ff-secondary){min-height:44px;border-radius:10px;margin:0 8px 0 0}
@media(max-width:959px){html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid{display:grid;gap:16px}html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid .ff-card{padding:18px!important}html[data-theme] body.app-view .exd[data-exercise-page="plan"] .approved-week-grid .ff-primary{width:100%}}
