@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Manrope,Arial,sans-serif;color:#26392f;background:#f7f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}.app{max-width:480px;min-height:100dvh;margin:auto;background:#f7f5ef;padding-bottom:100px}.top{height:76px;padding:20px 23px 10px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:16px;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;background:#45775c;color:white;width:29px;height:29px;border-radius:9px;font-size:23px;font-weight:400}.icon-button{border:0;background:#ebece4;color:#52725e;border-radius:50%;width:38px;height:38px;font-size:21px}.view{display:none;padding:0 23px}.view.active{display:block}.greeting{padding:30px 2px 22px}.eyebrow{font:700 10px 'DM Sans',sans-serif;letter-spacing:2.3px;color:#78947f}.greeting h1,.page-title h1{font-size:37px;line-height:1.22;letter-spacing:-2px;margin:11px 0 12px;font-weight:800}.greeting h1 em{font-style:normal;color:#4f8260}.greeting p,.page-title p{color:#88958b;font-size:13px;line-height:1.7;margin:0;max-width:310px}.date-switch{background:#fff;border-radius:18px;padding:12px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 28px #5260520b;margin-bottom:16px}.date-switch button{border:0;background:#f5f6f1;border-radius:12px;width:35px;height:35px;color:#547660;font-size:26px;line-height:1}.date-switch>div{text-align:center}.date-switch strong{display:block;font-size:13px}.date-switch span{display:block;color:#9ba89e;font-size:10px;margin-top:2px}.calorie-card,.panel{background:#fff;border-radius:23px;padding:22px;box-shadow:0 8px 28px #5260520b}.card-head{display:flex;justify-content:space-between;font-size:13px;font-weight:800}.muted{color:#a5b0a6;font-size:11px;font-weight:600}.calorie-main{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.calorie-main>div:first-child strong{font-size:39px;letter-spacing:-2px;display:block;line-height:1}.calorie-main>div:first-child span{font-size:12px;color:#a1aaa2}.ring{width:106px;height:106px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#638d6b 0%,#e9eee8 0%)}.ring>div{background:#fff;border-radius:50%;width:77px;height:77px;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring strong{font-size:21px;line-height:1}.ring span{font-size:9px;color:#a2ada4}.progress-track{height:7px;background:#eef1eb;border-radius:8px;overflow:hidden}.progress-track div{height:100%;width:0;background:#638d6b;border-radius:8px}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:19px}.macro-grid>div{background:#f8f9f5;border-radius:13px;padding:10px 8px;display:flex;flex-wrap:wrap;align-items:center;column-gap:5px}.macro-grid span:not(.macro-dot){font-size:10px;color:#8c9b90}.macro-grid strong{font-size:12px;width:100%;margin-left:11px}.macro-dot{width:6px;height:6px;border-radius:50%}.protein{background:#db9f78}.fat{background:#a6a2d9}.carbs{background:#e6c875}.section{margin-top:32px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-head h2,.panel h2{font-size:19px;margin:5px 0 0;letter-spacing:-.7px}.text-button{border:0;background:none;color:#528460;font-size:12px;font-weight:800;padding:8px 0}.meal-card{background:#fff;border-radius:16px;margin-bottom:9px;padding:14px 16px;box-shadow:0 5px 18px #52605209}.meal-top{display:flex;justify-content:space-between;align-items:center}.meal-name{font-size:13px;font-weight:800}.meal-kcal{font-size:12px;color:#75917a;font-weight:800}.meal-items{margin-top:8px}.meal-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:1px solid #f1f3ef;font-size:11px;color:#64766a}.meal-item small{color:#a0ada2}.meal-item button{border:0;background:none;color:#a5b3a7;font-size:17px;padding:0 0 0 10px}.empty-meal{font-size:11px;color:#b3bfb4;margin:7px 0 0}.water-card{background:#e5f0ee;border-radius:18px;padding:16px;margin:20px 0;display:flex;align-items:center;justify-content:space-between}.water-card>div:first-child{display:flex;align-items:center;gap:12px}.water-icon{display:grid;place-items:center;background:#d0e5e4;border-radius:12px;width:42px;height:42px;color:#55909c;font-size:32px}.water-card strong{font-size:13px}.water-card p{margin:3px 0 0;font-size:10px;color:#819d9d}.water-actions{display:flex;gap:6px}.water-actions button{border:0;border-radius:10px;background:#fff;color:#5794a1;width:30px;height:30px;font-size:20px;line-height:1}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:480px;width:100%;height:78px;padding-bottom:env(safe-area-inset-bottom);display:flex;background:#fff;box-shadow:0 -7px 25px #465a4b13;z-index:5}.bottom-nav button{flex:1;border:0;background:none;color:#aebcb0;font-size:10px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.bottom-nav button span{font-size:22px;line-height:1}.bottom-nav button.selected{color:#4c805b}.page-title{padding:32px 0 27px}.page-title h1{margin-bottom:8px}.panel{margin-bottom:16px}.panel h2{margin-top:0}.chart{height:170px;display:flex;align-items:end;gap:8px;padding:22px 0 12px;border-bottom:1px solid #e6ebe5}.chart-bar{flex:1;min-width:15px;max-width:40px;background:#d9e9da;border-radius:7px 7px 0 0;position:relative}.chart-bar:last-child{background:#5b8a66}.chart-bar span{position:absolute;bottom:-29px;left:50%;transform:translateX(-50%);font-size:9px;color:#9cab9f}.chart-empty{align-self:center;text-align:center;color:#a0aea2;font-size:12px;line-height:1.7;width:100%}.weight-list{margin-top:28px}.weight-row,.week-row,.library-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #eef1eb;font-size:12px}.weight-row:last-child,.week-row:last-child,.library-row:last-child{border:0}.weight-row span,.week-row span,.library-row span{color:#95a397}.weight-row button,.library-row button{border:0;background:none;color:#b1bdb2;font-size:17px}.week-row strong{color:#4e7b59}.library{margin-top:16px;background:#fff;border-radius:20px;padding:8px 17px}.library-row{gap:12px}.library-row>div:first-child{flex:1}.library-row strong{display:block;font-size:12px}.library-row span{font-size:10px}.primary{border:0;background:#4f805e;color:white;border-radius:14px;padding:15px 18px;font-size:12px;font-weight:800}.primary:hover{background:#416e50}.secondary{border:1px solid #dce6dd;background:white;color:#54775b;border-radius:14px;padding:14px 18px;font-size:12px;font-weight:800}.full{width:100%}dialog{border:0;border-radius:24px;padding:0;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 35px);box-shadow:0 20px 70px #243a2c45;color:#26392f}dialog::backdrop{background:#1b302783;backdrop-filter:blur(3px)}.dialog-body{padding:23px;overflow:auto;max-height:calc(100dvh - 35px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-head h2{font-size:20px;margin:0}.close{border:0;background:#f1f4ee;color:#6f8b73;border-radius:50%;width:30px;height:30px;font-size:22px}.dialog-note{font-size:11px;color:#8a9b8f;line-height:1.6;margin:0 0 16px}label{display:block;font-size:11px;font-weight:800;margin-bottom:13px}label input,label select{display:block;width:100%;border:1px solid #dfe8df;background:#fbfcfa;border-radius:11px;padding:12px;margin-top:6px;color:#26392f;outline:none}label input:focus,label select:focus{border-color:#5a8a64}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.preview{background:#f2f6f0;padding:13px;border-radius:12px;margin-bottom:15px;font-size:11px;color:#65816b}.dialog-body .secondary{margin-top:9px}@media(min-width:650px){body{background:#e8ede7}.app{box-shadow:0 0 55px #36514213}}

/* iPhone safe areas and reminder settings */
.top{height:calc(76px + env(safe-area-inset-top));padding-top:calc(20px + env(safe-area-inset-top))}.bottom-nav{height:calc(78px + env(safe-area-inset-bottom))}.app{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
#remindersView .page-title p{font-size:14px}#remindersView .page-title h1{font-size:33px}.reminder-status{padding:20px}.reminder-status strong{font-size:16px}.reminder-status p,.reminder-hint{font-size:13px;line-height:1.65;color:#63756a}.reminder-status p{margin:9px 0 0}#nextReminderText{color:#376b47;font-weight:700}.reminder-master{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#e6eee3;border-radius:18px;padding:18px;font-size:15px}.reminder-master small{display:block;font-size:12px;color:#63756a;font-weight:500;margin-top:5px}.reminder-master input,.reminder-toggle input{appearance:auto;width:24px;height:24px;margin:0;accent-color:#4f805e;flex-shrink:0}.reminder-card,.quiet-hours{border:1px solid #d9e3d8;border-radius:18px;background:#fff;padding:15px;margin:20px 0}.reminder-card legend,.quiet-hours legend{font-size:16px;font-weight:800;padding:0 7px;color:#31583c}.reminder-controls{display:flex;align-items:center;justify-content:space-between;gap:16px}.reminder-toggle{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:500}.reminder-time{font-size:12px}.reminder-time input{font-size:16px;min-height:44px;padding:8px;width:128px}.weekdays{display:flex;gap:5px;justify-content:space-between}.weekdays label{position:relative;flex:1;margin:0;font-size:13px;text-align:center}.weekdays input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.weekdays span{display:grid;place-items:center;height:44px;border-radius:11px;border:1px solid #dfe7dc;color:#596f60;background:#f5f7f1}.weekdays input:checked+span{background:#4f805e;color:#fff;border-color:#4f805e}.weekdays input:focus-visible+span{outline:3px solid #a9c29d;outline-offset:2px}.quiet-hours p,.quiet-hours small{font-size:12px;color:#63756a;line-height:1.6}.quiet-hours .form-grid{margin-top:14px}.quiet-hours input{font-size:16px;min-height:44px}#reminderFeedback{font-size:14px;line-height:1.6;color:#3d724c}#reminderFeedback.error{color:#a33b35}#testReminder{margin-top:10px}#remindersView button{font-size:14px;min-height:48px}
.server-login{max-width:440px;margin:12vh auto;padding:28px}.server-login h1{font-size:28px}.server-login p,.server-login label{font-size:14px;line-height:1.65}.server-login input{font-size:16px}.server-sync{font-size:12px;margin:5px 23px;color:#487a57}.server-sync.error,.login-feedback{color:#a33b35}.activity-card{margin-top:20px}.activity-card p{font-size:14px;line-height:1.7;color:#52685b}#healthSetup p{font-size:14px;line-height:1.7}.server-login[hidden],.app[hidden]{display:none}

#photoResult[hidden], #photoPreview[hidden] {display:none}
#photoNote {width:100%;min-height:80px;padding:12px;border:1px solid #d5ded3;border-radius:12px;font:inherit;resize:vertical}
#photoPrivacy,#photoUncertainty {font-size:13px;color:#657463}
.meal-item details {font-size:13px;max-width:300px;margin-top:6px}

.personal-plan{margin:18px 0;background:#edf2e9}.personal-plan h2{margin:8px 0}.personal-plan p{font-size:14px;line-height:1.6}.personal-plan .text-button{margin-top:12px}#planDialog{max-width:520px}#planDialog fieldset{border:0;padding:0;margin:0;min-width:0}#planDialog legend{font-size:20px;font-weight:800;margin-bottom:12px}#planDialog p,#planDialog li{font-size:14px;line-height:1.65}#planDialog small,#planDialog .plan-small{font-size:12px;color:#596e60;line-height:1.6}#planDialog input,#planDialog select{font-size:16px;width:100%;box-sizing:border-box}#planDialog [hidden]{display:none!important}.plan-actions{display:flex;gap:12px;margin-top:20px}.plan-actions button{flex:1;min-height:48px}.plan-number{font-size:42px;font-weight:800;color:#3c684a}.plan-number small{font-weight:500}#planError{color:#a33b35}#planResult details{background:#f1f4ed;padding:14px;border-radius:12px}#planResult li{margin-bottom:10px}#planDialog .close{min-width:44px;min-height:44px}#planEdit{margin-top:10px}

#barcodeDialog [hidden]{display:none!important}#barcodeDialog p{font-size:14px;line-height:1.6}#barcodeVideo{width:100%;max-height:240px;border-radius:14px;object-fit:cover}#barcodeDialog input,#barcodeDialog select{font-size:16px}#barcodeDialog .barcode-credit{font-size:12px;color:#627269}#barcodeTotal{font-weight:700;color:#356243}
