@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#203a32;background:#f5f7f6;font-synthesis:none;font-size:16px;--green:#163f33;--lime:#d4f284;--muted:#73827b;--line:#e5eae7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #77ac46;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #5a8b6d;outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Manrope',sans-serif}h1{font-size:clamp(1.9rem,3vw,2.6rem);letter-spacing:-1.5px;line-height:1.25;font-weight:650}h2{font-size:1.1rem;letter-spacing:-.4px}h3{font-size:1rem;font-weight:650}p{line-height:1.6}a{text-decoration:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#123b30;color:#d9e6df;padding:38px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;font-family:'Manrope',sans-serif;font-size:1.75rem;font-weight:800;letter-spacing:-1.4px}.brand-mark{display:grid;place-items:center;background:#d4f284;color:#173e31;width:35px;height:35px;border-radius:11px;margin-right:10px;font-style:italic;font-size:1.65rem}.brand-dot{color:var(--lime)}.workspace-label{margin:58px 10px 18px;font-size:.68rem;letter-spacing:1.6px;color:#8fa99b;font-weight:700}.nav-item{display:flex;align-items:center;gap:14px;border-radius:9px;width:100%;padding:14px 16px;text-align:left;font-size:.94rem;margin:5px 0;color:#bed0c6}.nav-item span{font-size:1.3rem;width:23px;text-align:center}.nav-item.active{background:#d4f284;color:#214033;font-weight:700}.nav-item:not(.active):hover{background:#ffffff10}.sidebar-bottom{margin-top:auto;padding:20px 11px 0}.local-icon{display:block;font-size:1.9rem;color:#d4f284;margin-bottom:14px}.sidebar-bottom strong{font-size:.87rem}.sidebar-bottom p{font-size:.8rem;color:#9db5a9;margin:8px 0 24px}.prototype{font-size:.65rem;letter-spacing:1.3px;color:#8eaa9a}main{margin-left:224px}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:#fff8}.breadcrumb{font-size:.85rem;color:#73827b}.breadcrumb span{margin:0 12px;color:#b3bdb7}.avatar{background:#e3eadc;border:3px solid white;border-radius:50%;width:39px;height:39px;font-weight:600}.page{max-width:1400px;margin:auto;padding:38px 44px 50px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.eyebrow{font-size:.7rem;letter-spacing:1.5px;font-weight:700;color:#6f8477;text-transform:uppercase;margin-bottom:9px}.page-heading p{color:var(--muted);font-size:.94rem;margin-top:10px}.date-control{display:flex;flex-direction:column;gap:5px;font-size:.75rem;color:var(--muted)}input,select,textarea{border:1px solid #dce4df;border-radius:9px;background:#fff;color:#294336;padding:11px 12px;min-width:0;width:100%}.date-control input{font-size:.85rem}.setup-banner{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid #d7e3cd;border-radius:12px;background:#eff5e8;padding:15px 20px;margin-bottom:24px}.setup-banner strong{font-size:.9rem;display:block}.setup-banner span{font-size:.85rem;color:#687b6a;display:block;margin-top:3px}.small-button{padding:10px 14px;background:#fff;border:1px solid #dce4d7;border-radius:8px;font-size:.82rem;font-weight:600;white-space:nowrap}.small-button:hover{background:#eef4e9}.stats-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:18px;margin-bottom:33px}.calorie-card{background:#173f33;border-radius:17px;padding:22px 24px;color:#fff;overflow:hidden}.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.68rem;letter-spacing:1.4px;color:#b9d2c1}.pill{background:#ffffff10;border:1px solid #ffffff12;border-radius:20px;padding:6px 10px;letter-spacing:0;white-space:nowrap;font-size:.7rem}.energy-content{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:23px}.big-number{font-family:'Manrope';font-size:2.9rem;line-height:1.1;font-weight:650;letter-spacing:-2px}.big-number span{display:block;font-family:'DM Sans';font-size:.8rem;letter-spacing:0;font-weight:400;color:#bcd1c3;margin-top:8px}.energy-content p{font-size:.8rem;color:#b9cdbf;margin-top:20px}.energy-content p strong{color:#d4f284;font-weight:600}.ring{width:120px;height:120px;border-radius:50%;padding:9px;background:conic-gradient(#d4f284 var(--progress),#426154 0);flex-shrink:0;transform:rotate(-90deg)}.ring>div{background:#173f33;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;height:100%;transform:rotate(90deg)}.ring strong{font-family:Manrope;font-size:1.7rem;font-weight:500}.ring span{font-size:.61rem;color:#bbd0c2;margin-top:5px}.metric-card{background:#fff;border:1px solid var(--line);padding:22px;border-radius:17px}.metric-title{display:flex;align-items:center;gap:10px;font-size:.88rem;font-weight:500}.metric-icon{background:#f1f4e9;border-radius:9px;padding:5px 8px;font-size:1.2rem;color:#617d32}.metric-value{font-family:Manrope;font-size:2.2rem;font-weight:600;letter-spacing:-1px;margin:22px 0 15px;white-space:nowrap}.metric-value span{font-family:'DM Sans';font-size:.83rem;color:#8a968e;font-weight:400;letter-spacing:0}.metric-card p{font-size:.75rem;color:#859187;margin-top:12px}progress{width:100%;height:7px;border:0;border-radius:20px;background:#edf0e9;display:block}progress::-webkit-progress-bar{background:#edf0e9;border-radius:20px}progress::-webkit-progress-value{background:#9dbd62;border-radius:20px}progress::-moz-progress-bar{background:#9dbd62;border-radius:20px}.water-card{background:#f0f6fc;border-color:#e0eaf5}.water-card .metric-icon{background:#dfeefa;color:#619ac2}.water-actions{display:flex;gap:6px}.water-actions button{border:1px solid #d5e3f0;border-radius:7px;background:#fff8;color:#4f7e9a;font-size:.8rem;padding:6px 11px}.water-actions button:last-child{flex:1}.main-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:30px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.section-heading h2 span{display:inline-grid;place-items:center;background:#e6ebe6;font-family:'DM Sans';font-size:.7rem;border-radius:5px;min-width:22px;height:22px;margin-left:8px}.text-button{color:#628266;font-size:.79rem;font-weight:500;padding:5px 0}.text-button:hover{text-decoration:underline}.meal-list{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.empty-state{text-align:center;padding:43px 20px}.empty-symbol{margin:0 auto 16px;border:1px dashed #a7ba9d;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;color:#749269;font-size:1.5rem}.empty-state p{font-size:.86rem;color:var(--muted);margin:9px 0 19px}.meal-row{display:flex;gap:14px;padding:20px;border-bottom:1px solid var(--line);align-items:flex-start}.meal-row:last-child{border-bottom:0}.meal-row.selected{background:#f9fbf6}.meal-symbol{flex-shrink:0;display:grid;place-items:center;width:43px;height:43px;font-size:1.55rem;background:#f1f3e9;border-radius:12px;color:#7e9464}.meal-info{min-width:0;flex:1}.meal-meta{text-transform:uppercase;font-size:.62rem;letter-spacing:.7px;color:#819085;margin-bottom:6px}.meal-meta span{margin:0 4px}.meal-info h3{font-size:.88rem;overflow-wrap:anywhere;line-height:1.45}.meal-sub{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:.68rem}.badge{font-size:.63rem;display:inline-block;padding:3px 7px;border-radius:5px;white-space:nowrap}.rough{color:#93732c;background:#faf1dd}.good{color:#58794c;background:#edf3e5}.exact{color:#427967;background:#e5f1ec}.correct-button{font-size:.68rem;margin-top:6px}.meal-numbers{text-align:right;flex-shrink:0;display:flex;flex-direction:column;gap:6px}.meal-numbers strong{font-size:1rem}.meal-numbers small{font-size:.65rem;font-weight:400;color:#849187}.meal-numbers>span{font-size:.72rem;color:#8b978e}.daily-total{display:flex;justify-content:space-between;align-items:center;padding:18px 2px;border-bottom:1px solid var(--line);font-size:.87rem}.daily-total span{font-size:.72rem;color:#89968c}.daily-total b{margin:0 9px;color:#bcc6be}.recommend-card{display:flex;justify-content:space-between;align-items:center;background:#e9efe1;border:1px solid #dce5d1;border-radius:13px;padding:23px 20px;margin-top:24px;gap:12px}.recommend-card .eyebrow{font-size:.61rem;color:#7c8f65}.recommend-card h3{font-size:1.15rem}.recommend-card p{font-size:.78rem;color:#7e8b71;margin-top:5px}.recommend-card button{border:1px solid #c8d7b9;border-radius:50%;min-width:40px;height:40px;font-size:1.3rem}.privacy-note{color:#97a198;font-size:.69rem;text-align:center;margin-top:22px}.chat-panel{background:white;border:1px solid #dfe6e0;border-radius:15px;overflow:hidden;box-shadow:0 7px 24px #233a2504}.chat-heading{display:flex;align-items:center;padding:21px;gap:12px;border-bottom:1px solid var(--line)}.chat-symbol{display:grid;place-items:center;background:#edf4e1;color:#577745;width:40px;height:40px;border-radius:11px;font-size:1.6rem}.chat-heading h2{font-size:1rem}.chat-heading p{font-size:.72rem;color:#8a978d;margin-top:3px}.local-label{margin-left:auto;letter-spacing:1px;font-size:.6rem;color:#82927c;background:#f2f5ee;padding:5px 7px;border-radius:5px}.messages{min-height:212px;max-height:360px;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:13px}.message{padding:14px 16px;background:#f3f5f1;border-radius:0 12px 12px 12px;font-size:.86rem;line-height:1.65;max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#e9f0db;border-radius:12px 0 12px 12px}.chat-bottom{padding:0 17px 15px}.prompt-chips{display:flex;gap:7px;margin-bottom:12px;flex-wrap:wrap}.prompt-chips button,.portion-chips button{border:1px solid #e2e7de;border-radius:20px;padding:7px 10px;color:#7b8974;font-size:.69rem}.prompt-chips button:hover{background:#f1f5e9}#chat-form{border:1px solid #dbe3d5;border-radius:11px;padding:10px}textarea{border:0;resize:vertical;padding:5px;background:transparent;font-size:.86rem;line-height:1.6;min-height:65px}textarea::placeholder{color:#9ba594}.compose-tools{display:flex;align-items:center;justify-content:space-between}.photo-button{font-size:.7rem;color:#7c8d75}.send{background:#173f33;color:#e1f2bd;border-radius:9px;width:34px;height:34px;font-size:1.25rem}.chat-note{font-size:.66rem;line-height:1.5;color:#9aa394;margin:10px 4px 0}.selection{display:flex;justify-content:space-between;font-size:.73rem;padding:8px;background:#eff4e6;margin-bottom:10px;border-radius:5px}.selection button{font-size:1rem}.suggestion-intro{font-size:.81rem;color:#7a8873;margin:16px 0}.suggestion{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:16px 0}.suggestion p{font-size:.78rem;color:#8a9484;margin:5px 0}.suggestion strong{font-size:.75rem;font-weight:500;color:#63805b}.suggestion h3{font-size:.88rem}.mobile-nav{display:none}.muted{color:#849080;font-size:.84rem;line-height:1.65}.profile-card{max-width:690px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px;margin-bottom:24px}.profile-card h2{margin-bottom:22px}.profile-card p{margin:12px 0 20px;font-size:.9rem;color:#7f8a7b}label{display:flex;flex-direction:column;gap:8px;font-size:.82rem;font-weight:500}form label{margin-bottom:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.primary{background:#183f31;color:white;border-radius:9px;padding:13px 20px;font-size:.85rem;font-weight:500}.primary:hover{background:#29583d}.confidence-guide{display:grid;grid-template-columns:auto 1fr;gap:13px 12px;align-items:start;font-size:.82rem;color:#7d8978}.confidence-guide .badge{font-size:.7rem}.history-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:26px}.history-stats>div{background:#fff;border:1px solid var(--line);padding:24px;border-radius:13px}.history-stats span{font-size:.84rem;color:#7f8d7b;display:block;margin-bottom:18px}.history-stats strong{font-family:Manrope;font-size:2.1rem}.history-stats small{font-size:.86rem;font-weight:400;color:#97a18f}.history-chart,.history-list{background:#fff;border:1px solid var(--line);padding:27px;border-radius:15px;margin-bottom:26px}.history-chart .section-heading>span{font-size:.8rem;color:#87927e}.bars{display:flex;gap:20px;padding:15px 10px 22px}.bar-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:.75rem}.bar-column>span{color:#7b8b71;font-size:.75rem}.bar-track{height:170px;width:100%;max-width:55px;border-radius:7px;background:#f2f5ee;display:flex;align-items:flex-end;overflow:hidden}.bar-track div{background:#a9c881;width:100%;border-radius:7px 7px 0 0}.bar-column small{color:#98a38f;font-size:.68rem}.history-list h2{margin-bottom:12px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;width:100%;border-top:1px solid var(--line);padding:20px 0;font-size:.87rem}.history-row>span{font-size:.8rem;color:#87927d}dialog{border:1px solid #dae4d5;border-radius:20px;padding:28px;max-width:550px;width:calc(100% - 28px);max-height:90dvh;color:#284231;box-shadow:0 20px 100px #123b3030}dialog::backdrop{background:#102f2670;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:12px}.dialog-heading h2{font-size:1.6rem}.close{font-size:1.5rem}.dialog-heading+p{margin-bottom:22px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:23px}.danger{color:#ad514d;font-size:.82rem}.review-total{padding:16px;background:#edf4e6;border-radius:9px;font-size:.94rem;font-weight:600}.portion-chips{display:flex;gap:8px;margin:-6px 0 20px;flex-wrap:wrap}.portion-chips button{min-width:46px;font-size:.78rem}.photo-upload{padding:18px;border:1px dashed #b3c4a1;border-radius:10px;margin-bottom:20px;background:#f6f8f2}.photo-upload p{font-size:.8rem;color:#819275}.photo-upload input{font-size:.8rem}.photo-upload img{max-width:100%;max-height:210px;object-fit:contain;display:block;margin:12px auto}.photo-upload img[hidden]{display:none}#nutrition-hint{margin:0 0 16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#163f33;color:#fff;padding:14px 22px;border-radius:12px;box-shadow:0 6px 30px #163f3320;font-size:.85rem;max-width:90%;opacity:0;pointer-events:none;transition:.2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}.notice{padding:15px;background:#fff0d8;font-size:.87rem}
@media(min-width:1500px){.page{padding-top:48px}.stats-grid{gap:24px}.main-grid{gap:38px}.calorie-card{padding:25px 28px}.metric-card{padding:25px}.ring{height:134px;width:134px}.messages{min-height:245px}}
@media(max-width:1180px){.sidebar{width:190px;padding:30px 15px}main{margin-left:190px}.page{padding:30px 25px}header{padding:0 25px}.stats-grid{gap:12px;grid-template-columns:1.5fr 1fr 1fr}.calorie-card,.metric-card{padding:19px 17px}.ring{width:94px;height:94px;padding:7px}.ring strong{font-size:1.35rem}.ring span{font-size:.54rem}.big-number{font-size:2.45rem}.metric-value{font-size:1.9rem}.main-grid{gap:20px;grid-template-columns:1fr 1fr}.meal-row{gap:10px;padding:16px 12px}.meal-symbol{display:none}.card-top{font-size:.61rem;letter-spacing:.8px}.pill{font-size:.63rem;padding:5px 7px}}
@media(max-width:950px){.sidebar{width:170px}.brand{font-size:1.5rem}.brand-mark{width:29px;height:29px}main{margin-left:170px}.page{padding:25px 22px}.stats-grid{grid-template-columns:1fr 1fr}.calorie-card{grid-column:1/-1}.energy-content{margin-top:10px}.big-number span{display:inline;margin-left:12px}.energy-content p{margin-top:12px}.ring{height:95px;width:95px}.metric-value{margin-top:17px}.main-grid{grid-template-columns:1fr}.chat-panel{grid-row:1}.messages{min-height:100px;max-height:260px}.meal-symbol{display:grid}.page-heading{align-items:start}.date-control input{max-width:150px}.page-heading h1{font-size:1.9rem}.history-stats{gap:10px}.history-stats>div{padding:16px}.history-stats span{font-size:.75rem}.history-stats strong{font-size:1.6rem}}
@media(max-width:650px){.sidebar{display:none}main{margin:0}header{height:68px;padding:0 22px}.breadcrumb:before{content:'nourish.';font-family:Manrope;font-weight:800;font-size:1.4rem;letter-spacing:-1px;color:#173f33}.breadcrumb{font-size:0}.breadcrumb span{display:none}.page{padding:26px 18px 105px}.page-heading{flex-direction:column;gap:17px;margin-bottom:22px}.page-heading h1{font-size:2rem}.page-heading p{font-size:.85rem}.date-control{flex-direction:row;align-items:center;gap:12px}.date-control input{padding:7px 10px;max-width:180px}.eyebrow{font-size:.65rem}.setup-banner{padding:15px;gap:12px;align-items:start}.setup-banner span{font-size:.77rem;line-height:1.5}.setup-banner .small-button{font-size:.72rem;padding:9px 10px}.stats-grid{gap:11px;margin-bottom:27px}.calorie-card{padding:21px}.card-top{font-size:.68rem}.pill{font-size:.7rem}.big-number{font-size:2.8rem}.big-number span{display:block;margin:7px 0 0;font-size:.78rem}.energy-content{margin-top:18px}.ring{height:112px;width:112px}.ring strong{font-size:1.6rem}.ring span{font-size:.61rem}.metric-card{padding:18px}.metric-title{font-size:.85rem}.metric-value{font-size:1.9rem;margin:17px 0 13px}.metric-value span{font-size:.74rem}.metric-card p{font-size:.7rem}.main-grid{gap:26px}.chat-heading{padding:17px}.messages{padding:17px;min-height:115px}.message{font-size:.88rem}.chat-note{font-size:.7rem}.prompt-chips button{font-size:.73rem}textarea{font-size:1rem}.photo-button{font-size:.77rem}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e1e7de;padding:7px 20px max(9px,env(safe-area-inset-bottom));z-index:3;justify-content:space-around}.mobile-nav .nav-item{width:auto;min-width:80px;flex-direction:column;padding:5px 15px;gap:3px;font-size:.69rem;margin:0;color:#8b9984}.mobile-nav .nav-item.active{background:#edf3e3;color:#355839}.mobile-nav .nav-item span{font-size:1.15rem}.history-stats{grid-template-columns:1fr 1fr}.history-stats>div:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.history-stats>div:last-child span{margin:0}.history-chart,.history-list{padding:20px 15px}.history-chart .section-heading{align-items:start;flex-direction:column}.bars{gap:9px;padding:12px 0 20px}.bar-column>span{font-size:.65rem}.bar-track{height:130px}.history-row{flex-wrap:wrap;gap:8px}.history-row strong{width:100%}.profile-card{padding:22px}.form-grid{gap:12px}.form-grid label{font-size:.77rem}.confidence-guide{font-size:.76rem}dialog{padding:22px 18px}.dialog-heading h2{font-size:1.4rem}#toast{bottom:90px;min-width:260px;text-align:center}.meal-meta{font-size:.67rem}.badge{font-size:.65rem}.meal-numbers>span{font-size:.74rem}.meal-info h3{font-size:.9rem}.daily-total{font-size:.84rem}}
/* Maintain readable control and body text across the compact journal layout. */
.message,textarea,.profile-card p,.empty-state p{font-size:1rem}
.text-button,.small-button,.metric-title,.metric-card p,.metric-value span,.water-actions button,.prompt-chips button,.photo-button,.chat-heading p,.selection,.suggestion p,.suggestion strong,.recommend-card p,.primary,label,.form-grid label,.date-control,.history-row,.history-row>span,.history-stats span,.history-chart .section-heading>span{font-size:.875rem}
.badge,.meal-meta,.meal-sub,.meal-numbers>span,.meal-numbers small,.correct-button,.chat-note,.privacy-note,.chat-heading .local-label,.pill,.card-top,.eyebrow,.prototype,.workspace-label,.bar-column small,.bar-column>span,.ring span{font-size:.75rem}
.metric-value{white-space:normal}.metric-value span{display:inline-block}.meal-meta{letter-spacing:.3px}.setup-banner span,.confidence-guide{font-size:.875rem}.ring span{font-size:.75rem;text-align:center;line-height:1.2;max-width:60px}.ring strong{line-height:1.1}.energy-content{flex-wrap:wrap}.form-grid{min-width:0}
@media(max-width:400px){.metric-card{padding:14px 12px}.meal-row{flex-wrap:wrap}.meal-symbol{display:none}.setup-banner{flex-direction:column}.dialog-footer .primary{padding:12px}.history-stats strong{font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.delete-entry{color:#9b3434;border:1px solid #e8caca;border-radius:7px;padding:9px 12px;font-size:.875rem;min-height:40px;background:#fff8f8}.delete-entry:hover{background:#fbe9e9}.delete-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin-bottom:22px;border:1px solid #c9d9b9;border-radius:10px;background:#edf4e6;font-size:.875rem;line-height:1.5}.delete-notice span{overflow-wrap:anywhere;min-width:0}@media(max-width:500px){.delete-notice{align-items:flex-start;flex-direction:column}}
.journal-actions,.saved-strip{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.saved-strip{padding:12px 2px 16px;font-size:.82rem;color:#7b897d}.saved-strip strong{font-size:.78rem;text-transform:uppercase;letter-spacing:.6px}.saved-chip{border:1px solid #dce5d5;background:#f5f8f1;border-radius:999px;padding:7px 11px;font-size:.78rem;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-chip:hover{background:#eaf2df}.lookup-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:18px 0}.lookup-form label{margin:0}.lookup-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:18px}.lookup-layout section{min-width:0}.lookup-layout h3{margin-bottom:10px}.lookup-row,.builder-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 0}.lookup-row div,.builder-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}.lookup-row strong,.builder-row strong{font-size:.84rem;overflow-wrap:anywhere}.lookup-row span,.builder-row span{font-size:.75rem;color:#65766b}.lookup-row small,.builder-row small{font-size:.7rem;color:#909b92}.builder-row label{display:grid;grid-template-columns:auto 64px;align-items:center;gap:5px;font-size:.72rem;margin:0}.builder-row label small{grid-column:1/-1;text-align:right}.builder-row input{padding:7px}.builder-row>button{font-size:1.25rem;color:#9b3434}.meal-builder{background:#f7f9f5;border:1px solid var(--line);border-radius:12px;padding:16px}.builder-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dbe4d5;padding:16px 0;margin-top:4px;font-size:.82rem}.meal-builder>label{margin:0 0 13px}.field-help{font-size:.7rem;color:#879287;font-weight:400}.check-label{display:flex!important;flex-direction:row!important;align-items:center;gap:9px}.check-label input{width:auto}.meal-builder>.primary{width:100%}@media(max-width:720px){.lookup-layout{grid-template-columns:1fr}.lookup-form{grid-template-columns:1fr}.lookup-form button{width:100%}.section-heading{align-items:flex-start}.journal-actions{justify-content:flex-end}}
.barcode-actions{display:flex;gap:8px}.scanner-panel{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr;gap:14px;align-items:center;padding:12px;margin:10px 0 16px;background:#102f28;color:#fff;border-radius:12px}.scanner-panel[hidden]{display:none}.scanner-panel video{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#081c18}.scanner-panel strong{font-size:.9rem}.scanner-panel p{font-size:.75rem;line-height:1.5;color:#bfd0c8;margin:7px 0 12px}.scanner-panel .small-button{background:#fff}.food-results{max-height:370px;overflow:auto;padding-right:3px}@media(max-width:720px){.barcode-actions{display:grid;grid-template-columns:1fr 1.35fr}.scanner-panel{grid-template-columns:1fr}.scanner-panel video{aspect-ratio:16/10}.food-results{max-height:330px}}
.weight-form-grid{display:grid;grid-template-columns:1fr 1fr .65fr auto;gap:10px;align-items:end}.weight-form-grid label{margin:0}.weight-goal-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:22px 0}.weight-goal-form label{margin:0}.weigh-in-list{border-top:1px solid var(--line)}.weigh-in-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}.weigh-in-row div{display:flex;flex-direction:column;gap:3px}.weigh-in-row span{font-size:.78rem;color:var(--muted)}.weight-progress{background:#fff;border:1px solid var(--line);padding:27px;border-radius:15px;margin-bottom:26px}.weight-progress .section-heading>span{font-size:.8rem;color:#87927e}.weight-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.weight-summary>div{padding:17px;background:#f5f8f1;border-radius:11px;display:flex;flex-direction:column;gap:8px}.weight-summary span,.weight-summary>div>small{font-size:.75rem;color:var(--muted)}.weight-summary strong{font-family:Manrope;font-size:1.6rem}.weight-summary strong small{font-size:.8rem}.weight-line{height:150px;display:flex;align-items:flex-end;gap:8px;padding:20px 4px 0;overflow-x:auto}.weight-point{height:100%;min-width:54px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.weight-point>span{width:7px;min-height:8px;background:#8eb765;border-radius:7px}.weight-point strong{font-size:.75rem}.weight-point small{font-size:.65rem;color:var(--muted)}@media(max-width:720px){.weight-form-grid{grid-template-columns:1fr 1fr}.weight-form-grid .primary{grid-column:1/-1}.weight-goal-form{grid-template-columns:1fr}.weight-summary{grid-template-columns:1fr}.weight-summary>div{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}}
.home-weight{background:#fff;border:1px solid var(--line);border-radius:13px;margin:-10px 0 28px;padding:0 18px}.home-weight summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;cursor:pointer;list-style:none}.home-weight summary::-webkit-details-marker{display:none}.home-weight summary>span:first-child{display:flex;flex-direction:column;gap:4px}.home-weight summary small{color:var(--muted);font-weight:400}.home-weight summary>span:last-child{color:#55765c;font-size:.82rem}.home-weight form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;padding:0 0 17px}.home-weight form label{margin:0}.optional-note{padding:13px;background:#f3f5f2;border:1px solid #e2e7e0;border-radius:10px}.optional-note>span{font-size:.72rem;color:var(--muted);font-weight:400}.optional-note input{background:#fff}.portion-detail{font-size:.78rem;color:#6f7e73;margin-top:5px;line-height:1.45}@media(max-width:500px){.home-weight form{grid-template-columns:1fr}.home-weight summary{align-items:flex-start}.home-weight summary>span:last-child{white-space:nowrap}}
.saved-strip{display:block}.saved-meals{width:100%;border:1px solid var(--line);border-radius:11px;background:#fafcf8}.saved-meals summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;cursor:pointer;list-style:none}.saved-meals summary::-webkit-details-marker{display:none}.saved-meals summary>span:first-child{display:flex;flex-direction:column;gap:3px}.saved-meals summary small{font-size:.72rem;color:var(--muted);font-weight:400}.saved-meals summary>span:last-child{font-size:.76rem;color:#55765c}.saved-meal-list{border-top:1px solid var(--line);padding:0 13px;max-height:330px;overflow:auto}.saved-meal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.saved-meal-row:last-child{border-bottom:0}.saved-meal-row>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}.saved-meal-row>div:first-child strong{overflow-wrap:anywhere}.saved-meal-row>div:first-child span{font-size:.72rem;color:var(--muted)}.saved-meal-row>div:last-child{display:flex;gap:7px;flex-shrink:0}.saved-meal-row .delete-entry{min-height:auto;padding:8px 10px}@media(max-width:500px){.saved-meal-row{align-items:flex-start;flex-direction:column}.saved-meal-row>div:last-child{width:100%}.saved-meal-row>div:last-child button{flex:1}}
.field-error{display:block;min-height:1.1em;color:#a33f3f;font-size:.74rem;font-weight:500;line-height:1.35}.field-error:empty{min-height:0}[aria-invalid="true"]{border-color:#bd5a55!important;background:#fff7f6!important}
.photo-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-choice{display:block!important;margin:0!important;padding:12px;text-align:center;border:1px solid #cbd8be;border-radius:9px;background:#fff;color:#41604a;cursor:pointer}.photo-choice input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}@media(max-width:420px){.photo-choices{grid-template-columns:1fr}}
.allergy-fieldset{border:1px solid var(--line);border-radius:12px;padding:17px;margin:22px 0}.allergy-fieldset legend{font-weight:600;padding:0 7px}.allergy-fieldset p,.allergy-fieldset>small{font-size:.78rem;color:var(--muted);line-height:1.45}.allergy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 17px}.allergy-grid label{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0;font-weight:400}.allergy-grid input{width:auto}.allergy-fieldset>label{margin:0 0 10px}.suggestion small{display:block;color:#658060;font-size:.68rem;margin-top:5px}.recommend-actions{display:flex;gap:10px;align-items:center;margin-top:17px}.allergy-note{font-size:.72rem;color:var(--muted);line-height:1.5;margin-top:12px}@media(max-width:500px){.allergy-grid{grid-template-columns:1fr 1fr}.recommend-actions button{flex:1}}
.activity-budget{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;margin:-10px 0 20px}.activity-budget .section-heading{margin-bottom:15px}.activity-budget .section-heading>span{font-size:.75rem;color:var(--muted)}.budget-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.budget-grid>div{background:#f5f8f1;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:4px}.budget-grid small,.budget-grid span{font-size:.7rem;color:var(--muted)}.budget-grid strong{font-family:Manrope;font-size:1.05rem}.activity-budget>p{font-size:.82rem;margin:15px 0 7px}.activity-budget>small{font-size:.7rem;color:var(--muted)}.activity-form-grid,.energy-profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.activity-form-grid label,.energy-profile-grid label{margin:0}.activity-actions{display:flex;gap:10px;align-items:center}.home-activity form{display:block}.home-activity .activity-form-grid{margin-bottom:16px}.calculation-preview{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:18px 0}.calculation-preview span{display:flex;justify-content:space-between;gap:10px;background:#f5f8f1;border-radius:8px;padding:11px;font-size:.76rem}.energy-profile-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:720px){.budget-grid{grid-template-columns:1fr 1fr}.budget-grid>div:last-child{grid-column:1/-1}.energy-profile-grid{grid-template-columns:1fr 1fr}}
@media(max-width:500px){.activity-form-grid,.energy-profile-grid,.calculation-preview{grid-template-columns:1fr}.activity-actions{align-items:stretch;flex-direction:column}.activity-actions button{width:100%}}
.stats-grid.two-cards{grid-template-columns:1.7fr 1fr}.main-grid.no-chat{grid-template-columns:minmax(0,850px)}
.customize-selects{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.customize-selects label{margin:0}.module-fieldset{border:1px solid var(--line);border-radius:12px;padding:17px;margin:20px 0}.module-fieldset legend{font-weight:600;padding:0 7px}.module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.module-grid label{display:flex;flex-direction:row;align-items:center;gap:9px;margin:0;padding:10px;background:#f5f8f1;border-radius:8px}.module-grid input{width:auto;accent-color:var(--green)}
html[data-accent="blue"]{--green:#245577;--lime:#a9dcff}html[data-accent="berry"]{--green:#68405d;--lime:#f4b6d4}html[data-accent="blue"] .sidebar,html[data-accent="blue"] .calorie-card,html[data-accent="blue"] .ring>div,html[data-accent="blue"] .send{background:#245577}html[data-accent="berry"] .sidebar,html[data-accent="berry"] .calorie-card,html[data-accent="berry"] .ring>div,html[data-accent="berry"] .send{background:#68405d}
html[data-density="compact"] .page{padding-top:24px}html[data-density="compact"] .stats-grid{margin-bottom:20px}html[data-density="compact"] .calorie-card,html[data-density="compact"] .metric-card{padding:16px}html[data-density="compact"] .meal-row{padding:14px}html[data-density="compact"] .profile-card{padding:20px}
html[data-theme="dark"]{color:#e7eee9;background:#15201c;--muted:#a6b4ac;--line:#3a4942}html[data-theme="dark"] body,html[data-theme="dark"] main{background:#15201c}html[data-theme="dark"] header,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .journal-panel,html[data-theme="dark"] .chat-panel,html[data-theme="dark"] .meal-list,html[data-theme="dark"] .profile-card,html[data-theme="dark"] .history-chart,html[data-theme="dark"] .history-list,html[data-theme="dark"] .history-stats>div,html[data-theme="dark"] .weight-progress,html[data-theme="dark"] .home-weight,html[data-theme="dark"] .activity-budget{background:#1e2b26;color:#e7eee9}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .small-button{background:#26362f;color:#eef4f0;border-color:#46574f}html[data-theme="dark"] .module-grid label,html[data-theme="dark"] .budget-grid>div,html[data-theme="dark"] .calculation-preview span{background:#26362f}html[data-theme="dark"] .mobile-nav{background:#1e2b26;border-color:#3a4942}
@media(prefers-color-scheme:dark){html[data-theme="system"]{color:#e7eee9;background:#15201c;--muted:#a6b4ac;--line:#3a4942}html[data-theme="system"] body,html[data-theme="system"] main{background:#15201c}html[data-theme="system"] header,html[data-theme="system"] .metric-card,html[data-theme="system"] .journal-panel,html[data-theme="system"] .chat-panel,html[data-theme="system"] .meal-list,html[data-theme="system"] .profile-card,html[data-theme="system"] .history-chart,html[data-theme="system"] .history-list,html[data-theme="system"] .history-stats>div,html[data-theme="system"] .weight-progress,html[data-theme="system"] .home-weight,html[data-theme="system"] .activity-budget{background:#1e2b26;color:#e7eee9}html[data-theme="system"] input,html[data-theme="system"] select,html[data-theme="system"] textarea,html[data-theme="system"] .small-button{background:#26362f;color:#eef4f0;border-color:#46574f}html[data-theme="system"] .module-grid label,html[data-theme="system"] .budget-grid>div,html[data-theme="system"] .calculation-preview span{background:#26362f}html[data-theme="system"] .mobile-nav{background:#1e2b26;border-color:#3a4942}}
@media(max-width:720px){.stats-grid.two-cards{grid-template-columns:1fr 1fr}.customize-selects{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.module-grid{grid-template-columns:1fr}}
html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#94a49c;opacity:1}html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{outline-color:#a8d77e;background:#2b3d35}html[data-theme="dark"] #chat-form,html[data-theme="dark"] .optional-note,html[data-theme="dark"] .photo-upload,html[data-theme="dark"] .meal-builder,html[data-theme="dark"] .saved-meals,html[data-theme="dark"] .recommend-card,html[data-theme="dark"] .setup-banner{background:#24332d;border-color:#46574f}html[data-theme="dark"] .message{background:#2b3933;color:#edf3ef}html[data-theme="dark"] .message.user{background:#344b3e}html[data-theme="dark"] .water-card{background:#202f38;border-color:#3c515d}html[data-theme="dark"] .delete-entry{background:#392928;border-color:#704744;color:#f0b2ae}html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.8}
@media(prefers-color-scheme:dark){html[data-theme="system"]{color-scheme:dark}html[data-theme="system"] input::placeholder,html[data-theme="system"] textarea::placeholder{color:#94a49c;opacity:1}html[data-theme="system"] input:focus,html[data-theme="system"] select:focus,html[data-theme="system"] textarea:focus{outline-color:#a8d77e;background:#2b3d35}html[data-theme="system"] #chat-form,html[data-theme="system"] .optional-note,html[data-theme="system"] .photo-upload,html[data-theme="system"] .meal-builder,html[data-theme="system"] .saved-meals,html[data-theme="system"] .recommend-card,html[data-theme="system"] .setup-banner{background:#24332d;border-color:#46574f}html[data-theme="system"] .message{background:#2b3933;color:#edf3ef}html[data-theme="system"] .message.user{background:#344b3e}html[data-theme="system"] .water-card{background:#202f38;border-color:#3c515d}html[data-theme="system"] .delete-entry{background:#392928;border-color:#704744;color:#f0b2ae}html[data-theme="system"] input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.8}}
:root{--accent-strong:#173f33;--accent:#567d5b;--accent-soft:#e9f0db;--accent-highlight:#d4f284;--accent-on:#fff;--highlight-text:#203a32}html[data-accent="blue"]{--accent-strong:#245577;--accent:#397da8;--accent-soft:#e2f1fa;--accent-highlight:#a9dcff}html[data-accent="berry"]{--accent-strong:#68405d;--accent:#9a557e;--accent-soft:#f7e5ef;--accent-highlight:#f4b6d4}html[data-accent="amber"]{--accent-strong:#6b4b16;--accent:#9a6a19;--accent-soft:#f8edd8;--accent-highlight:#ffd58a}
.sidebar,.calorie-card,.ring>div,.send,.primary,#toast{background:var(--accent-strong)}.brand-mark,.nav-item.active,.mobile-nav .nav-item.active{background:var(--accent-highlight);color:var(--highlight-text)}.brand-dot,.local-icon,.energy-content p strong{color:var(--accent-highlight)}.text-button,.photo-button,.home-weight summary>span:last-child,.saved-meals summary>span:last-child,.suggestion strong,.small-button{color:var(--accent)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.ring{background:conic-gradient(var(--accent-highlight) var(--progress),#426154 0)}.recommend-card,.setup-banner{background:var(--accent-soft);border-color:var(--accent)}.recommend-card button,.small-button{border-color:var(--accent)}.module-grid input{accent-color:var(--accent-strong)}.empty-symbol,.meal-symbol,.chat-symbol{color:var(--accent)}
html[data-theme="dark"]{--accent:#a8d77e;--accent-soft:#26372f}html[data-theme="dark"][data-accent="blue"]{--accent:#8fd3ff;--accent-soft:#203746}html[data-theme="dark"][data-accent="berry"]{--accent:#f1a9d0;--accent-soft:#3b2935}html[data-theme="dark"][data-accent="amber"]{--accent:#ffd08a;--accent-soft:#3a3122}html[data-theme="dark"] .text-button,html[data-theme="dark"] .photo-button,html[data-theme="dark"] .home-weight summary>span:last-child,html[data-theme="dark"] .saved-meals summary>span:last-child,html[data-theme="dark"] .suggestion strong,html[data-theme="dark"] .small-button{color:var(--accent)}html[data-theme="dark"] .meal-meta,html[data-theme="dark"] .meal-numbers>span,html[data-theme="dark"] .saved-meal-row span{color:#b8c6bf}html[data-theme="dark"] .recommend-card{background:var(--accent-soft);border-color:var(--accent)}html[data-theme="dark"] .recommend-card h3,html[data-theme="dark"] .recommend-card p{color:#eef4f0}
@media(prefers-color-scheme:dark){html[data-theme="system"]{--accent:#a8d77e;--accent-soft:#26372f}html[data-theme="system"][data-accent="blue"]{--accent:#8fd3ff;--accent-soft:#203746}html[data-theme="system"][data-accent="berry"]{--accent:#f1a9d0;--accent-soft:#3b2935}html[data-theme="system"][data-accent="amber"]{--accent:#ffd08a;--accent-soft:#3a3122}html[data-theme="system"] .text-button,html[data-theme="system"] .photo-button,html[data-theme="system"] .home-weight summary>span:last-child,html[data-theme="system"] .saved-meals summary>span:last-child,html[data-theme="system"] .suggestion strong,html[data-theme="system"] .small-button{color:var(--accent)}html[data-theme="system"] .meal-meta,html[data-theme="system"] .meal-numbers>span,html[data-theme="system"] .saved-meal-row span{color:#b8c6bf}html[data-theme="system"] .recommend-card{background:var(--accent-soft);border-color:var(--accent)}html[data-theme="system"] .recommend-card h3,html[data-theme="system"] .recommend-card p{color:#eef4f0}}
.sync-card{margin-bottom:24px}.sync-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.sync-card strong{overflow-wrap:anywhere}.sync-card button{min-height:44px}
.finder-dialog{max-width:980px}.finder-dialog .lookup-layout{grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr)}.builder-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center}.builder-row>div:first-child{grid-column:1/-1}.builder-row label{grid-column:1;grid-template-columns:minmax(0,1fr) minmax(92px,130px)}.builder-row>button{grid-column:2;grid-row:2;min-width:36px;min-height:44px}.builder-row label small{text-align:left}.builder-row strong{line-height:1.35}
@media(max-width:850px){.finder-dialog .lookup-layout{grid-template-columns:1fr}.finder-dialog{max-width:650px}}
.sync-status{display:flex;align-items:center;gap:9px;font-weight:650;color:#426c4c!important}.sync-status>span{width:9px;height:9px;border-radius:50%;background:#62a96d;box-shadow:0 0 0 4px #62a96d22;flex:0 0 auto}.danger-button{min-height:44px;padding:10px 14px;border:1px solid #d59b97;border-radius:8px;background:#fff7f6;color:#9b3434;font-size:.82rem;font-weight:650}.danger-button:hover{background:#fbe9e9}.privacy-link,.sidebar-privacy{min-height:44px;color:var(--accent);font-size:.82rem;font-weight:650;text-decoration:underline;text-underline-offset:3px}.sidebar-privacy{display:block;color:#cce0d4;text-align:left;margin:8px 0 14px}.privacy-note button{display:inline;min-height:44px;margin-left:4px}.privacy-content{overflow:auto;max-height:65dvh;padding-right:5px}.privacy-content h3{margin:22px 0 5px}.privacy-content p{color:#66786e;font-size:.87rem;line-height:1.65;margin:0 0 9px}.privacy-content a{color:var(--accent);font-weight:650;text-decoration:underline}.privacy-dialog{max-width:680px}.small-button,.text-button,.prompt-chips button,.portion-chips button,.recommend-card button,.water-actions button,.send,.close{min-height:44px}.send{width:44px;height:44px}.close{min-width:44px}.recommend-card button{min-width:44px;height:44px}
.info-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:12px}.sidebar-links{margin:5px 0 9px}.sidebar-links .sidebar-privacy{display:inline-flex;align-items:center;margin:0 12px 0 0;padding:0}.updates-list{max-height:65dvh;overflow:auto;padding-right:5px}.updates-list section{padding:16px 0;border-top:1px solid var(--line)}.updates-list section:first-child{border-top:0;padding-top:4px}.updates-list section>div{display:flex;align-items:center;gap:10px}.updates-list section>div span{padding:3px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.7rem;font-weight:700}.updates-list ul{margin:9px 0 0;padding-left:20px;color:#66786e}.updates-list li{margin:5px 0;font-size:.87rem;line-height:1.45}
.profile-card>p,.chat-heading p,.chat-note,.privacy-note,.metric-card p,.page-heading p,.meal-numbers small,.meal-sub{color:var(--muted)}
html[data-theme="dark"] dialog{background:#1e2b26;color:#eef4f0;border-color:#526159}html[data-theme="dark"] .dialog-heading h2,html[data-theme="dark"] .privacy-content h3{color:#f4f8f5}html[data-theme="dark"] .profile-card>p,html[data-theme="dark"] .privacy-content p,html[data-theme="dark"] .updates-list ul,html[data-theme="dark"] .muted,html[data-theme="dark"] .chat-note,html[data-theme="dark"] .privacy-note{color:#c3d0c9}html[data-theme="dark"] .sync-status{color:#cdebb5!important}html[data-theme="dark"] .danger-button{background:#392928;border-color:#8d5b57;color:#ffc7c2}
@media(prefers-color-scheme:dark){html[data-theme="system"] dialog{background:#1e2b26;color:#eef4f0;border-color:#526159}html[data-theme="system"] .dialog-heading h2,html[data-theme="system"] .privacy-content h3{color:#f4f8f5}html[data-theme="system"] .profile-card>p,html[data-theme="system"] .privacy-content p,html[data-theme="system"] .updates-list ul,html[data-theme="system"] .muted,html[data-theme="system"] .chat-note,html[data-theme="system"] .privacy-note{color:#c3d0c9}html[data-theme="system"] .sync-status{color:#cdebb5!important}html[data-theme="system"] .danger-button{background:#392928;border-color:#8d5b57;color:#ffc7c2}}
@media(max-width:500px){.sync-actions{display:grid;grid-template-columns:1fr}.sync-actions button{width:100%}.privacy-dialog{padding:22px 18px}.privacy-content{max-height:62dvh}}

/* Full palettes: canvas and surfaces change with the selected color. */
:root{--page-bg:#f2f6f2;--surface:#fff;--surface-soft:#f6f9f4;--surface-strong:#edf3e9}
html[data-accent="blue"]{--page-bg:#eaf3f8;--surface:#fafdff;--surface-soft:#f1f7fb;--surface-strong:#e2eff7}
html[data-accent="berry"]{--page-bg:#f6edf3;--surface:#fffafd;--surface-soft:#fbf2f7;--surface-strong:#f3e4ed}
html[data-accent="amber"]{--page-bg:#f8f1e5;--surface:#fffdf8;--surface-soft:#fbf5ea;--surface-strong:#f4e7d1}
html,body,main{background:var(--page-bg)}
header,.metric-card,.journal-panel,.chat-panel,.meal-list,.profile-card,.history-chart,.history-list,.history-stats>div,.weight-progress,.home-weight,.activity-budget,dialog,.saved-meals{background:var(--surface)}
.meal-row.selected,.optional-note,.photo-upload,.module-grid label,.budget-grid>div,.calculation-preview span,.protein-result>span{background:var(--surface-soft)}
.mobile-nav,.message,.finder-result,.meal-builder{background:var(--surface)}
.message.user,.setup-banner,.recommend-card{background:var(--surface-strong)}

html[data-theme="dark"]{--page-bg:#131d19;--surface:#1d2924;--surface-soft:#25342e;--surface-strong:#2a3b33}
html[data-theme="dark"][data-accent="blue"]{--page-bg:#111c24;--surface:#192934;--surface-soft:#223642;--surface-strong:#274253}
html[data-theme="dark"][data-accent="berry"]{--page-bg:#21171e;--surface:#2c2029;--surface-soft:#382a34;--surface-strong:#493343}
html[data-theme="dark"][data-accent="amber"]{--page-bg:#211b12;--surface:#2c251a;--surface-soft:#393022;--surface-strong:#493b27}
html[data-theme="dark"] body,html[data-theme="dark"] main,html[data-theme="dark"] header,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .journal-panel,html[data-theme="dark"] .chat-panel,html[data-theme="dark"] .meal-list,html[data-theme="dark"] .profile-card,html[data-theme="dark"] .history-chart,html[data-theme="dark"] .history-list,html[data-theme="dark"] .history-stats>div,html[data-theme="dark"] .weight-progress,html[data-theme="dark"] .home-weight,html[data-theme="dark"] .activity-budget,html[data-theme="dark"] dialog{background:var(--surface)}
html[data-theme="dark"] body,html[data-theme="dark"] main{background:var(--page-bg)}
html[data-theme="dark"] #chat-form,html[data-theme="dark"] .optional-note,html[data-theme="dark"] .photo-upload,html[data-theme="dark"] .meal-builder,html[data-theme="dark"] .saved-meals{background:var(--surface-soft)}
html[data-theme="dark"] .message.user,html[data-theme="dark"] .recommend-card,html[data-theme="dark"] .setup-banner{background:var(--surface-strong)}
@media(prefers-color-scheme:dark){
 html[data-theme="system"]{--page-bg:#131d19;--surface:#1d2924;--surface-soft:#25342e;--surface-strong:#2a3b33}
 html[data-theme="system"][data-accent="blue"]{--page-bg:#111c24;--surface:#192934;--surface-soft:#223642;--surface-strong:#274253}
 html[data-theme="system"][data-accent="berry"]{--page-bg:#21171e;--surface:#2c2029;--surface-soft:#382a34;--surface-strong:#493343}
 html[data-theme="system"][data-accent="amber"]{--page-bg:#211b12;--surface:#2c251a;--surface-soft:#393022;--surface-strong:#493b27}
 html[data-theme="system"] body,html[data-theme="system"] main,html[data-theme="system"] header,html[data-theme="system"] .metric-card,html[data-theme="system"] .journal-panel,html[data-theme="system"] .chat-panel,html[data-theme="system"] .meal-list,html[data-theme="system"] .profile-card,html[data-theme="system"] .history-chart,html[data-theme="system"] .history-list,html[data-theme="system"] .history-stats>div,html[data-theme="system"] .weight-progress,html[data-theme="system"] .home-weight,html[data-theme="system"] .activity-budget,html[data-theme="system"] dialog{background:var(--surface)}
 html[data-theme="system"] body,html[data-theme="system"] main{background:var(--page-bg)}
 html[data-theme="system"] #chat-form,html[data-theme="system"] .optional-note,html[data-theme="system"] .photo-upload,html[data-theme="system"] .meal-builder,html[data-theme="system"] .saved-meals{background:var(--surface-soft)}
 html[data-theme="system"] .message.user,html[data-theme="system"] .recommend-card,html[data-theme="system"] .setup-banner{background:var(--surface-strong)}
}
.protein-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.protein-guide-grid label{margin:0}.protein-guide-grid label>small{color:var(--muted);font-size:.7rem;font-weight:400;line-height:1.4;margin-top:-3px}.protein-result{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.protein-result>span{display:flex;flex-direction:column;gap:5px;border:1px solid var(--line);border-radius:10px;padding:14px;font-size:.76rem;color:var(--muted)}.protein-result strong{color:inherit;font-family:Manrope;font-size:1.15rem}.medical-copy{font-size:.76rem!important;line-height:1.55!important}.medical-note{display:flex;gap:12px;align-items:flex-start;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:13px 15px;margin-top:18px}.medical-note strong{font-size:.76rem;white-space:nowrap}.medical-note span{font-size:.72rem;line-height:1.5;color:var(--muted)}
@media(max-width:500px){.protein-guide-grid,.protein-result{grid-template-columns:1fr}.medical-note{display:block}.medical-note strong{display:block;margin-bottom:5px;white-space:normal}}
.guide-card{padding:0;overflow:hidden}.guide-card>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 30px;cursor:pointer;list-style:none}.guide-card>summary::-webkit-details-marker{display:none}.guide-card>summary>span:first-child{display:flex;flex-direction:column;gap:5px}.guide-card>summary small{font-size:.68rem;letter-spacing:1.3px;font-weight:700;color:#6f8477}.guide-card>summary strong{font-family:Manrope;font-size:1.08rem}.guide-state{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:.78rem;font-weight:650;white-space:nowrap}.guide-state b{font-size:1rem;transition:transform .18s}.guide-card[open] .guide-state b{transform:rotate(180deg)}.guide-body{border-top:1px solid var(--line);padding:4px 30px 30px}.guide-body>p:first-child{margin-top:20px}@media(max-width:500px){.guide-card>summary{padding:20px;align-items:flex-start}.guide-card>summary strong{font-size:.96rem}.guide-body{padding:4px 20px 22px}.guide-state{font-size:.72rem}}
.guide-state i{font-style:normal}.guide-card.sync-card{padding:0}.guide-card .weigh-in-list{margin-bottom:0}

/* Everyday Forward workouts */
.brand>span:nth-child(2){font-size:1.12rem;line-height:.92;letter-spacing:-.7px;text-transform:lowercase}.brand>span:nth-child(2) b{font-size:1.28rem;color:#fff}.workout-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.workout-choice-grid>button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:145px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:15px;text-align:left}.workout-choice-grid>button:hover{border-color:var(--accent);transform:translateY(-1px)}.workout-choice-grid>button>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--accent-soft);color:var(--accent-strong);font-size:1.15rem}.workout-choice-grid strong{font-family:Manrope;font-size:.98rem}.workout-choice-grid small{color:var(--muted);line-height:1.45}.workout-settings,.workout-history,.workout-plan,.workout-player,.workout-complete{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:24px}.workout-settings>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;cursor:pointer;list-style:none}.workout-settings>summary::-webkit-details-marker{display:none}.workout-settings>summary>span:first-child{display:flex;flex-direction:column;gap:4px}.workout-settings summary small{color:var(--muted);font-weight:400}.workout-settings summary>span:last-child{color:var(--accent);font-size:.8rem}.workout-settings form{padding:24px;border-top:1px solid var(--line)}.workout-settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}.equipment-options{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 22px}.equipment-options label{flex-direction:row;align-items:center;background:var(--surface-soft);border:1px solid var(--line);padding:10px 12px;border-radius:9px;margin:0}.equipment-options input{width:auto;accent-color:var(--accent-strong)}.workout-plan{padding:26px}.workout-plan-head{display:flex;justify-content:space-between;gap:20px}.workout-plan-head h2{font-size:1.6rem}.workout-plan-head p{color:var(--muted);margin-top:7px}.workout-duration{min-width:88px;height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong)}.workout-duration strong{font:700 1.7rem Manrope}.workout-duration span{font-size:.68rem}.workout-plan-meta{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.workout-plan-meta span{background:var(--surface-soft);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:.73rem}.exercise-preview-list article{display:grid;grid-template-columns:118px 1fr;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.exercise-preview-list article>div:last-child{display:flex;flex-direction:column;gap:5px}.exercise-preview-list article span,.exercise-preview-list article small{color:var(--muted);font-size:.78rem}.pose-preview{height:62px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;background:var(--surface-soft);border-radius:9px}.pose-preview span{font-size:.55rem!important;letter-spacing:.8px}.pose-preview b{color:var(--accent-strong);font:700 1.2rem Manrope}.workout-actions{display:flex;gap:10px;margin-top:18px}.workout-history{padding:24px}.workout-history article{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid var(--line)}.workout-history article>div{display:flex;flex-direction:column;gap:4px}.workout-history article span{color:var(--muted);font-size:.77rem}.workout-complete{display:flex;gap:15px;align-items:center;padding:18px 22px;background:var(--accent-soft)}.workout-complete>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-strong);color:white}.workout-complete p{color:var(--muted);font-size:.82rem;margin-top:4px}.workout-player{max-width:720px;margin:0 auto;padding:26px}.player-progress{display:flex;justify-content:space-between;color:var(--muted);font-size:.78rem;margin-bottom:10px}.workout-player progress{margin-bottom:28px}.exercise-stage{text-align:center}.movement-illustration{display:grid;grid-template-columns:1fr auto 1fr;gap:15px;align-items:end;max-width:430px;margin:0 auto 22px;padding:22px;background:var(--surface-soft);border-radius:14px}.movement-illustration>div{font-family:monospace;font-size:1.5rem;line-height:1.05}.movement-illustration>span{grid-row:2;color:var(--muted);font-size:.6rem;letter-spacing:1px}.movement-illustration>b{align-self:center;color:var(--accent)}.exercise-stage h1{margin:5px 0 16px}.exercise-target strong{font:700 2.7rem Manrope}.exercise-target span{display:block;color:var(--muted);font-size:.78rem}.form-cue{margin:18px auto;max-width:520px;color:var(--accent-strong);font-weight:600}.exercise-instructions{max-width:520px;margin:0 auto 10px;background:var(--surface-soft);border-radius:10px;text-align:left}.exercise-instructions summary{padding:13px 15px;cursor:pointer;font-weight:600}.exercise-instructions p{padding:0 15px 15px;color:var(--muted);font-size:.85rem}.player-controls{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.rest-screen{text-align:center;padding:45px 15px}.rest-screen>strong{display:block;font:700 4rem Manrope;color:var(--accent-strong)}.rest-screen p{color:var(--muted);margin:12px 0 22px}.substitute-reasons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.exercise-library{display:grid;gap:10px;max-height:60dvh;overflow:auto}.exercise-library article{padding:14px;background:var(--surface-soft);border-radius:10px}.exercise-library article span,.exercise-library article p{display:block;color:var(--muted);font-size:.78rem;margin-top:4px}
html[data-theme="dark"] .workout-choice-grid>button,html[data-theme="dark"] .workout-settings,html[data-theme="dark"] .workout-history,html[data-theme="dark"] .workout-plan,html[data-theme="dark"] .workout-player{background:var(--surface);color:#eef4f0}
@media(prefers-color-scheme:dark){html[data-theme="system"] .workout-choice-grid>button,html[data-theme="system"] .workout-settings,html[data-theme="system"] .workout-history,html[data-theme="system"] .workout-plan,html[data-theme="system"] .workout-player{background:var(--surface);color:#eef4f0}}
@media(max-width:760px){.workout-choice-grid{grid-template-columns:1fr}.workout-choice-grid>button{min-height:0}.workout-settings-grid{grid-template-columns:1fr}.workout-plan{padding:20px}.exercise-preview-list article{grid-template-columns:90px 1fr}.workout-history article{flex-direction:column}.workout-player{padding:20px}.movement-illustration{padding:18px 10px}}
@media(max-width:650px){.breadcrumb:before{content:'everyday forward';font-size:1.12rem}.mobile-nav{padding-left:4px;padding-right:4px}.mobile-nav .nav-item{min-width:0;flex:1;padding:5px 3px}.workout-plan-head{align-items:flex-start}.workout-duration{min-width:70px;width:70px;height:70px}.workout-duration strong{font-size:1.35rem}.workout-actions{display:grid}.substitute-reasons{grid-template-columns:1fr}}
.movement-illustration{display:block;color:var(--accent-strong);padding:12px 18px}.exercise-art{display:block;width:100%;height:auto;max-height:190px;margin:auto;color:var(--accent-strong)}.exercise-art text{fill:var(--muted);font:600 9px 'DM Sans',sans-serif;letter-spacing:1px;text-anchor:middle}.pose-preview{height:72px;display:grid;place-items:center;background:var(--surface-soft);border-radius:9px;overflow:hidden}.pose-preview .exercise-art{width:112px;max-height:68px}.pose-preview .exercise-art text{font-size:15px}.pose-preview .exercise-art path,.pose-preview .exercise-art circle{vector-effect:non-scaling-stroke}.exercise-art.compact{padding:3px}
.exercise-preview-list article{grid-template-columns:42px 1fr}.exercise-number{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.workout-day-marker{display:block;margin-top:4px;color:var(--accent-strong);font-size:.62rem;font-style:normal;white-space:nowrap}.history-stats{grid-template-columns:repeat(4,1fr)}
.exercise-image{display:block;width:min(100%,430px);max-height:270px;object-fit:contain;margin:0 auto 14px}.exercise-image.compact{width:108px;height:72px;object-fit:contain;margin:0}.exercise-preview-list article:has(.exercise-image){grid-template-columns:118px 1fr;align-items:center}
.library-list .exercise-image.compact{width:min(100%,300px);height:180px;margin:12px auto;object-fit:contain}
@media(max-width:650px){.history-stats{grid-template-columns:1fr 1fr}.history-stats>div:last-child{grid-column:auto;display:block}.history-stats>div:last-child span{margin-bottom:18px}}
.exercise-art .art-person line,.exercise-art .art-person path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.exercise-art .art-person .neck{stroke-width:7}.exercise-art .art-person .shoulder{stroke-width:12}.exercise-art .art-person .torso{stroke-width:17}.exercise-art .art-person .limb.arm{stroke-width:9}.exercise-art .art-person .limb.leg{stroke-width:11}.exercise-art .art-person .head,.exercise-art .art-person .hand{fill:currentColor;stroke:var(--surface-soft);stroke-width:1.5}.exercise-art .art-person .foot{stroke-width:7}.exercise-art .art-ground{fill:none;stroke:var(--muted);stroke-width:2;opacity:.3}.exercise-art .art-arrow{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.exercise-art .art-prop{fill:none;stroke:var(--muted);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.8}.exercise-art .art-weight{fill:var(--accent);stroke:none}.exercise-art .art-band{fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:4 3}.exercise-art .art-anchor{fill:var(--accent)}.illustration-unavailable{display:flex;flex-direction:column;gap:5px;align-items:center;padding:28px;color:var(--muted)}.illustration-unavailable span{font-size:.75rem}
