:root{color:#20271f;font-synthesis:none;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--line:#e4e7d9;--muted:#5f695b;--forest:#243d31;--leaf:#dbe9b5;--danger:#a22f25;background:#f7f7ef;font-family:Inter,Microsoft YaHei,PingFang SC,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:inherit}h1,h2,p,dl,dd{margin:0}h2{font-size:1rem}:focus-visible{outline-offset:3px;outline:3px solid #718c3a}.site-width{width:min(100% - 40px,960px);margin-inline:auto}.site-header{border-bottom:1px solid var(--line);background:#fcfcf6}.header-inner{justify-content:space-between;align-items:center;gap:16px;min-height:64px;display:flex}.brand{align-items:center;gap:10px;font-size:1.2rem;font-weight:750;text-decoration:none;display:flex}.brand img{border-radius:12px}.header-link{color:#415540;padding:12px 0 12px 12px;font-size:.88rem;text-decoration:none}.header-link:hover{text-decoration:underline}.header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 8px;display:flex}.logout-button{font-size:.86rem}.page-nav{gap:6px;padding-bottom:9px;display:flex}.page-nav a{color:#415540;border-radius:11px;place-items:center;min-height:44px;padding-inline:14px;font-size:.9rem;font-weight:650;text-decoration:none;display:grid}.page-nav a:hover{background:#edf2e4}.page-nav a[aria-current=page]{color:#233d29;background:#e4edcb}.main{padding-block:28px 100px}.day-heading{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:16px 20px;margin-bottom:20px;display:flex}h1{letter-spacing:-.045em;font-size:clamp(1.85rem,5vw,2.6rem);line-height:1.2}.full-date{color:var(--muted);margin-top:5px;font-size:.93rem}.calendar{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.calendar .icon-button,.calendar-input{border:1px solid var(--line);background:#fcfcf6;border-radius:11px}.calendar-input{color:#29352a;width:144px;min-width:0;min-height:44px;padding:0 9px;font-size:.86rem}.today-button{font-size:.85rem}.day-grid{gap:18px;display:grid}.summary{background:radial-gradient(ellipse at top right, #3b5740, var(--forest) 62%);color:#f7faee;border-radius:25px;align-self:start;padding:22px 18px 16px;box-shadow:0 9px 26px #344d2714}.summary h2{color:#dae5d5;padding-left:4px;font-size:.9rem}.calorie{align-items:baseline;gap:9px;margin:5px 4px 19px;display:flex}.calorie strong{letter-spacing:-.06em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(2.85rem,10vw,4rem);line-height:1.05}.calorie span{color:#e1e8d7;flex:none;font-size:.88rem}.macro-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.macro-list div{background:#ffffff13;border:1px solid #ffffff19;border-radius:14px;padding:11px 10px}.macro-list dt{color:#e6edda;font-size:.78rem}.macro-list dt:before{content:"";background:#e0eead;border-radius:50%;width:7px;height:7px;margin-right:5px;display:inline-block}.macro-list .fat dt:before{background:#f9ce83}.macro-list .carbs dt:before{background:#cdd8f0}.macro-list dd{overflow-wrap:anywhere;margin-top:5px;font-size:1.05rem;font-weight:700}.macro-list small{font-size:.72rem;font-weight:400}.calorie-target{color:#eef4df;grid-template-columns:1fr auto;gap:8px;margin:-6px 4px 15px;font-size:.81rem;display:grid}.calorie-target progress{grid-column:1/-1}.summary progress{color:#dbe9b5;appearance:none;background:#ffffff26;border:0;border-radius:9px;width:100%;height:6px}.summary progress::-webkit-progress-bar{background:#ffffff26;border-radius:9px}.summary progress::-webkit-progress-value{background:#dbe9b5;border-radius:9px}.summary progress::-moz-progress-bar{background:#dbe9b5;border-radius:9px}.macro-list .macro-target{color:#e6edda;gap:5px;font-size:.7rem;font-weight:450;display:grid}.macro-target progress{height:4px}.summary-link{color:#e6efd2;text-underline-offset:3px;align-items:center;gap:7px;min-height:44px;margin:6px 4px -6px;font-size:.84rem;display:inline-flex}.meals{gap:10px;display:grid}.meal-card,.backup-card{border:1px solid var(--line);background:#fefef9;border-radius:18px}.meal-card{padding:10px 13px 11px}.meal-header{align-items:center;gap:9px;display:flex}.meal-header h2{flex:1}.meal-kcal{color:var(--muted);font-size:.8rem}.meal-icon{border-radius:12px;place-items:center;width:36px;height:36px;font-family:system-ui,sans-serif;font-size:1.18rem;display:grid}.sand{color:#724c14;background:#f8ebcb}.leaf{color:#3c5b27;background:#e6efd2}.lilac{color:#4d4b76;background:#e9e8f4}.peach{color:#7a4329;background:#f9e8de}.meal-empty{color:var(--muted);margin:0 0 4px 45px;font-size:.85rem}.meal-items,.food-results{margin:0;padding:0;list-style:none}.meal-items{padding-top:3px}.entry{width:100%;color:inherit;text-align:left;background:0 0;border:0;border-top:1px solid #eef0e7;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;display:flex}.entry:hover{background:#f1f4e9}.entry strong{overflow-wrap:anywhere;font-size:.94rem;display:block}.entry small,.entry-end{color:var(--muted);font-size:.8rem}.entry-end{text-align:right;flex:none}.entry-end span{margin-left:4px;font-size:1rem}.add-button,.text-button{color:#365437;background:0 0;border:0;border-radius:10px;min-height:44px;padding:0 9px;font-weight:650}.add-button:hover,.text-button:hover{background:#edf2e4}.add-button{font-size:.87rem}.quick-bar{z-index:2;border-top:1px solid var(--line);padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:#fcfcf6;justify-items:center;display:grid;position:fixed;inset:auto 0 0}.quick-bar button{width:min(100%,440px);box-shadow:0 3px 10px #243d312a}.quick-bar span{margin-right:3px}.primary-button,.secondary-button,.danger-button{border:1px solid #0000;border-radius:12px;min-height:45px;padding:0 15px;font-weight:700}.primary-button{background:var(--leaf);color:#223d28}.primary-button:hover{background:#cddd9e}.secondary-button{color:#304d35;background:#fbfcf6;border-color:#d6dfce;font-size:.86rem}.secondary-button:hover{background:#edf2e4}.icon-button{aspect-ratio:1;color:#3b5239;background:#eff2e7;border:0;border-radius:11px;place-items:center;width:44px;padding:0;font-size:1.45rem;display:grid}.icon-button:hover{background:#e7eddc}.backup-card{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding:15px;scroll-margin-top:12px;display:flex}.backup-card p{margin-top:5px}.muted{color:var(--muted);font-size:.86rem;line-height:1.6}.backup-actions{flex-wrap:wrap;gap:8px;display:flex}.status,.error{overflow-wrap:anywhere;margin-top:9px;font-size:.9rem;line-height:1.55}.status{color:#3f5a36}.error,.danger{color:var(--danger)}.main-error{margin-bottom:15px}.edit-status{margin:-7px 0 12px}.backup-feedback{flex-basis:100%}body:has(dialog[open]){overflow:hidden}.editor{width:min(100%,550px);max-width:100%;max-height:95dvh;color:inherit;background:#fefef9;border:0;border-radius:24px 24px 0 0;margin:auto auto 0;padding:0;box-shadow:0 18px 65px #172a2680}.editor::backdrop{background:#19261fb3}.editor-form{flex-direction:column;max-height:95dvh;display:flex}.dialog-header,.dialog-footer{justify-content:space-between;align-items:center;gap:8px;padding:11px 16px;display:flex}.dialog-header{border-bottom:1px solid var(--line)}.dialog-header h2{font-size:1.2rem}.dialog-footer{border-top:1px solid var(--line);padding-bottom:calc(11px + env(safe-area-inset-bottom));flex-wrap:wrap}.dialog-footer p{margin-right:auto}.danger-button{background:var(--danger);color:#fff}.save{flex:1}.editor-body{overscroll-behavior:contain;gap:13px;padding:13px 16px 18px;display:grid;overflow-y:auto}.editor label{justify-items:stretch;gap:5px;font-size:.86rem;font-weight:650;display:grid}.editor input,.editor select,.editor textarea{color:#20271f;background:#fff;border:1px solid #d6dfce;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:8px 9px;font-size:1rem;font-weight:400}.editor textarea{resize:vertical}.record-context{grid-template-columns:minmax(68px,.75fr) minmax(116px,1.25fr) minmax(80px,.85fr);gap:7px;display:grid}.record-context input,.record-context select{padding-inline:5px;font-size:.9rem}.toggle-group{background:#eff2e7;border-radius:12px;gap:5px;margin-bottom:12px;padding:4px;display:flex}.toggle-group button{color:#3a5038;background:0 0;border:0;border-radius:9px;flex:1;min-height:38px;font-weight:650}.toggle-group button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #192a2115}.selected-food{background:#eef4e1;border-radius:12px;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;display:flex}.selected-food strong{overflow-wrap:anywhere}.selected-food a,.selected-source{color:#496348;margin-top:4px;font-size:.8rem;display:block}.selected-food button{flex:none}.food-results{border:1px solid var(--line);border-radius:11px;max-height:146px;margin-top:7px;overflow-y:auto}.food-results li+li{border-top:1px solid #edf0e5}.food-results button{width:100%;min-height:43px;color:inherit;text-align:left;background:0 0;border:0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 8px;padding:8px;font-size:.88rem;display:flex}.food-results button:hover{background:#edf2e4}.food-results small{color:var(--muted);font-size:.74rem}.food-picker .muted{margin-top:6px}.custom-nutrients{border:1px solid var(--line);border-radius:11px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:9px 0 0;padding:8px;display:grid}.custom-nutrients legend{padding-inline:3px;font-size:.84rem}.editor .food-saving{align-items:center;gap:9px;min-height:44px;margin-top:7px;padding:6px 0;display:flex}.editor .food-saving input{width:18px;min-height:18px;accent-color:var(--forest);flex:none;margin:0}.food-saving small{color:var(--muted);margin-top:3px;font-weight:400;display:block}.nutrition-preview{background:#eef4e1;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:9px;display:grid}.nutrition-preview dt{color:var(--muted);font-size:.76rem}.nutrition-preview dd{overflow-wrap:anywhere;margin-top:3px;font-size:.95rem;font-weight:750}.nutrition-preview small{font-size:.72rem;font-weight:400}.page-title{margin-bottom:19px}.page-title p{color:var(--muted);margin-top:6px;font-size:.9rem}.goal-grid,.weight-grid{align-items:start;gap:14px;display:grid}.form-card{border:1px solid var(--line);background:#fefef9;border-radius:18px;min-width:0;padding:15px}.login-card{max-width:440px;margin:24px auto 0}.login-card>.text-button{margin-top:8px}.section-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.section-heading .text-button{font-size:.82rem}.setting-fields{gap:12px;display:grid}.setting-fields.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.setting-fields label{align-content:start;gap:5px;min-width:0;font-size:.87rem;font-weight:650;display:grid}.setting-fields input,.setting-fields select{color:#20271f;background:#fff;border:1px solid #d6dfce;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:7px 9px;font-size:1rem;font-weight:400}.setting-fields input:disabled{background:#f2f3ed}.setting-fields small{color:var(--muted);font-weight:400;line-height:1.45}.effective-date{gap:5px;margin-top:13px}.calculation-note{margin-block:8px 11px;font-size:.78rem}.calculation-card{background:#eef4e1;border-radius:12px;margin-top:14px;padding:11px 12px}.calculation-card dl{gap:6px;margin-top:8px;font-size:.84rem;display:grid}.calculation-card dl div{flex-wrap:wrap;justify-content:space-between;gap:5px 12px;display:flex}.calculation-card dd{font-weight:650}.form-action{width:100%;margin-top:13px}.upcoming-goals{margin-top:18px}.upcoming-goals .meal-items{margin-top:7px}.weight-grid form h2{margin-bottom:12px}.range-control{margin:0}.range-control button{white-space:nowrap;min-width:56px;font-size:.83rem}.weight-summary{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-top:10px;display:flex}.weight-summary strong{color:var(--forest);font-size:1.65rem}.weight-summary small{font-size:.85rem;font-weight:500}.weight-summary span{color:#42613c;font-size:.85rem}.weight-chart{width:100%;height:166px;display:block}.trend-empty{margin-top:11px}@media (width>=700px){.site-width{width:min(100% - 64px,960px)}.main{padding-top:45px}.day-heading{margin-bottom:23px}.day-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px}.summary{padding:27px 19px 19px}.meal-card{padding:12px 15px}.editor{border-radius:21px;margin:auto}.goal-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px}.weight-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:20px}.form-card{padding:20px}.weight-chart{height:190px}}
