:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#23362b;background:#f6f7f2;font-synthesis:none;font-weight:400;--green:#254b39;--lime:#eaf0d9;--muted:#748077;--line:#e5e9df;--cream:#fffef9;--shadow:0 12px 40px #2135280b}*{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:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8aa86a;outline-offset:3px}button{border:0;background:none;color:inherit}a{color:var(--green)}button svg,.icon svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{min-height:100svh;display:grid;grid-template-columns:230px 1fr}.sidebar{padding:40px 27px 26px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:fixed;height:100%;width:230px;background:#fcfcf8}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--green);font-size:25px;font-weight:650;letter-spacing:2px}.brand-mark{display:inline-grid;place-items:center;width:42px;height:42px;background:var(--green);color:#f1f5de;border-radius:14px;font-size:23px;font-weight:500}.brand-sub{font-size:11px;letter-spacing:3px;margin:13px 0 48px 2px;color:#8a948b}.nav{display:flex;gap:8px;flex-direction:column}.nav-btn{display:flex;align-items:center;gap:13px;padding:14px 17px;border-radius:11px;font-size:14px;text-align:left;color:#768075}.nav-btn.active{background:#eaf0e2;color:#254b39;font-weight:650}.sidebar-note{margin-top:auto;font-size:12px;line-height:1.9;color:#8b958b;padding:20px 11px}.sidebar-note svg{width:17px;height:17px;vertical-align:middle;margin-right:7px}.main{grid-column:2;padding:42px 55px 70px;max-width:1360px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:35px}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:650;color:#83917f;margin:0 0 9px}.topbar h1{font-size:29px;letter-spacing:-.6px;margin:0;font-weight:600}.topbar-actions{display:flex;gap:10px;align-items:center}.button{padding:12px 18px;border-radius:10px;font-size:13px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:44px;background:var(--green);color:#fff}.button.secondary{background:#fff;border:1px solid var(--line);color:#4c5d4e}.button.ghost{background:#eff2e9;color:#405b42}.button.full{width:100%}.button.small{padding:9px 13px;min-height:36px;font-size:12px}.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#71806e}.notice{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#ecefe5;color:#697760;border-radius:11px;font-size:12px;line-height:1.7;margin-bottom:24px}.notice svg{width:18px;height:18px;flex-shrink:0}.notice b{font-weight:650}.dashboard{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;margin-bottom:35px}.summary-card{background:var(--green);color:#f8faec;min-height:242px;border-radius:20px;padding:27px 28px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px}.summary-label{font-size:13px;letter-spacing:.5px;color:#dae4d0;margin-bottom:16px}.cal-number{font-size:60px;line-height:1.05;font-weight:550;letter-spacing:-3px}.cal-unit{font-size:12px;letter-spacing:1px;margin-left:8px;color:#b8c9b1}.summary-sub{font-size:11px;color:#c2cfb9;line-height:1.8;margin-top:13px}.summary-pills{display:flex;gap:7px;margin-top:22px;flex-wrap:wrap}.summary-pills span{font-size:10px;white-space:nowrap;padding:6px 9px;border-radius:6px;background:#ffffff10;color:#d9e4ce}.plate{width:158px;height:158px;border:1px solid #eaf0d933;border-radius:50%;display:grid;place-items:center;flex-shrink:0;position:relative;margin-right:3px}.plate:before{content:"";position:absolute;inset:10px;border:1px dashed #eaf0d93a;border-radius:50%}.plate:after{content:"";position:absolute;inset:26px;border:1px solid #eaf0d936;border-radius:50%}.plate svg{width:76px;height:76px;fill:none;stroke:#d5e2b5;stroke-width:1.1;position:relative;z-index:1}.insight-card{background:#eeefdf;border-radius:20px;padding:25px 26px;display:flex;flex-direction:column;justify-content:space-between}.card-kicker{font-size:10px;letter-spacing:2px;color:#7d8669}.insight-card h2{font-size:20px;line-height:1.6;font-weight:550;margin:13px 0 9px;letter-spacing:-.3px}.insight-card p{font-size:12px;line-height:1.8;color:#7e866f;margin:0}.steps-mini{display:flex;gap:7px;align-items:center;margin-top:23px;font-size:10px;color:#6c7c5d}.steps-mini span{padding:7px 8px;background:#ffffff6b;border-radius:6px}.steps-mini svg{width:14px;height:14px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-head h2{font-size:18px;font-weight:600;margin:0}.section-head .count{font-size:11px;color:#8a9588;margin-left:10px;font-weight:400}.date-control{display:flex;align-items:center;gap:8px}.date-control input{border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 10px;color:#687663;font-size:12px;max-width:146px}.meal-list{display:flex;flex-direction:column;gap:14px}.meal-card{border:1px solid var(--line);background:#fffefb;border-radius:15px;display:flex;align-items:center;gap:18px;padding:18px;text-align:left;width:100%;transition:box-shadow .2s,border-color .2s}.meal-card:hover{box-shadow:var(--shadow);border-color:#c7d4bd}.meal-thumb{width:78px;height:78px;border-radius:11px;background:#f1f1e5;display:grid;place-items:center;overflow:hidden;flex-shrink:0;color:#8a987c}.meal-thumb svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.3}.meal-thumb img{width:100%;height:100%;object-fit:cover}.meal-copy{flex:1;min-width:0}.meal-meta{font-size:10px;color:#87917f;display:flex;gap:8px;align-items:center;margin-bottom:7px}.meal-copy h3{font-size:16px;line-height:1.5;font-weight:550;margin:0 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meal-copy p{font-size:11px;color:#8a9487;margin:0;line-height:1.6}.meal-kcal{text-align:right;white-space:nowrap}.meal-kcal strong{font-size:22px;font-weight:550;letter-spacing:-.7px}.meal-kcal small{font-size:10px;color:#8e968a;display:block;margin-top:5px}.tag{font-size:9px;border-radius:4px;padding:3px 5px;background:#edf2e7;color:#70825c}.tag.amber{background:#f5eddd;color:#aa8c5b}.empty-state{background:#fffefb;border:1px dashed #d4dccb;border-radius:17px;text-align:center;padding:41px 20px 38px;position:relative}.empty-icon{margin:auto auto 13px;width:63px;height:63px;border-radius:50%;background:#eff3e5;display:grid;place-items:center;color:#809464}.empty-icon svg{width:29px;height:29px}.empty-state h3{font-size:16px;font-weight:550;margin:0 0 10px}.empty-state p{font-size:12px;color:#92998b;line-height:1.9;max-width:340px;margin:0 auto 20px}.footer-note{margin:23px 0 0;font-size:10px;color:#9aa392;display:flex;align-items:center;gap:6px;line-height:1.7}.footer-note svg{width:13px;height:13px}.mobile-nav{display:none}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-card{padding:25px;border:1px solid var(--line);background:#fffefb;border-radius:15px}.settings-card h2{font-size:16px;font-weight:550;margin:0 0 16px}.settings-card p{font-size:12px;line-height:1.9;color:#7c8776;margin:10px 0}.settings-row{font-size:12px;display:flex;justify-content:space-between;gap:15px;margin-top:15px;color:#7c8776}.settings-row strong{font-weight:500;color:#3f5740;overflow-wrap:anywhere}.settings-card .button{margin-top:14px}.settings-card.wide{grid-column:1/-1}.login-shell{max-width:440px;margin:7svh auto;padding:28px}.login-shell .brand{margin-bottom:38px}.login-shell h1{font-size:27px;font-weight:550}.login-shell>p{font-size:13px;line-height:1.9;color:#7d8876;margin-bottom:27px}.login-shell .privacy-note{font-size:11px;color:#899482;line-height:1.8;margin-top:22px}.login-switch{display:block;width:100%;text-align:center;font-size:12px;margin-top:17px;color:#678156}.form-field{margin-bottom:18px}.form-field label{display:block;font-size:12px;font-weight:550;margin-bottom:9px;color:#52664b}.form-field input,.form-field textarea,.form-field select{width:100%;border:1px solid #dce4d5;border-radius:9px;padding:12px;background:#fff;color:#33472d;min-height:44px}.form-field textarea{resize:vertical;min-height:85px}.form-field .hint{font-size:10px;color:#909a87;line-height:1.8;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.meal-type-select{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.meal-type-select button{border:1px solid var(--line);padding:9px 14px;font-size:12px;border-radius:8px;background:#fff}.meal-type-select button.selected{background:#eaf0df;border-color:#9aae89;color:#3e5a2e}.error-box{color:#9d4736;background:#faeee8;font-size:12px;line-height:1.7;padding:11px;border-radius:8px;margin:15px 0}.success-box{color:#456a34;background:#edf3e7;font-size:12px;line-height:1.7;padding:11px;border-radius:8px;margin:15px 0}dialog{border:0;border-radius:20px;background:#fdfef8;color:#293c25;max-width:640px;width:calc(100% - 36px);max-height:90svh;padding:0;box-shadow:0 25px 100px #14251c42}dialog::backdrop{background:#18302266;backdrop-filter:blur(4px)}.modal-head{position:sticky;top:0;z-index:3;background:#fdfef8;border-bottom:1px solid var(--line);padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-head h2{font-size:19px;font-weight:550;margin:0}.modal-head p{font-size:10px;color:#87957b;margin:6px 0 0}.modal-body{padding:23px 24px}.modal-footer{padding:17px 24px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.photo-slot{border:1px dashed #cfd9c2;border-radius:12px;overflow:hidden;background:#f0f3e8;min-height:155px;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;width:100%}.photo-slot img{width:100%;height:190px;object-fit:cover;display:block}.photo-slot .photo-placeholder{color:#879a74;padding:20px}.photo-slot .photo-placeholder svg{width:29px;height:29px}.photo-slot strong{font-size:12px;display:block;margin:10px 0 6px;font-weight:550}.photo-slot small{font-size:9px;color:#94a183}.photo-caption{position:absolute;bottom:8px;left:8px;font-size:10px;padding:5px 7px;background:#fffffff0;border-radius:5px;color:#4d6840}.photo-action-label{margin:0 0 16px;font-size:10px;color:#8b967f;line-height:1.8}.analyze-panel{padding:17px;border-radius:12px;background:#eaf0df;margin:15px 0 23px}.analyze-panel p{font-size:11px;line-height:1.9;color:#6f805d;margin:0 0 12px}.check-label{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.8;color:#61754e;margin-bottom:14px}.check-label input{margin-top:4px;accent-color:var(--green)}.detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 0 15px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:17px 0}.detail-stats span{font-size:11px;color:#839271}.detail-stats strong{display:block;font-size:26px;font-weight:550;color:#365327;margin-top:7px}.detail-stats small{font-size:11px;font-weight:400;color:#8e9c7e}.detail-section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}.detail-section-title h3{font-size:14px;font-weight:600;margin:0}.food-item{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:10px}.food-item-header{display:flex;gap:8px;align-items:center;margin-bottom:10px}.food-item-header input{flex:1;min-width:0;padding:9px;border:1px solid var(--line);border-radius:7px;font-size:12px}.remove-food{color:#9a9f92;font-size:20px;width:30px;height:34px}.food-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.food-fields label{font-size:9px;color:#8a977c;display:flex;flex-direction:column;gap:6px}.food-fields input{width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;font-size:12px;min-width:0}.nutrition-extra{margin-top:10px}.nutrition-extra summary{font-size:10px;color:#88977a;cursor:pointer}.nutrition-extra .food-fields{margin-top:10px}.estimate-note{font-size:11px;color:#869576;line-height:1.8;margin:10px 0}.manual-panel{background:#f0f3e8;padding:17px;border-radius:10px;margin-top:20px}.manual-panel .form-field{margin-bottom:12px}.manual-panel label{font-size:11px}.detail-buttons{display:flex;gap:10px;margin-top:18px}.detail-buttons button{flex:1}.small-link{font-size:11px;text-decoration:underline;color:#82916f;padding:8px}.toast{position:fixed;z-index:99;bottom:30px;left:50%;transform:translateX(-50%);background:#223e2c;color:#fff;padding:12px 20px;box-shadow:0 5px 20px #0002;border-radius:10px;font-size:12px;max-width:90vw;line-height:1.7}.loading-screen{height:70svh;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:12px;color:#78886d}.inline-alert{font-size:11px;line-height:1.8;color:#98734b;background:#f7efe2;border-radius:8px;padding:12px}.desktop-only{display:inline-flex}.busy-overlay{pointer-events:none;opacity:.65}.history-intro{font-size:12px;color:#87927d;line-height:1.9;margin-bottom:24px}
@media(min-width:1500px){.main{padding-top:52px}}@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:33px 19px}.main{padding:35px 30px}.dashboard{grid-template-columns:1.2fr 1fr}.plate{width:114px;height:114px}.plate svg{width:60px;height:60px}.summary-card{padding:24px}.cal-number{font-size:49px}.insight-card{padding:23px 20px}.insight-card h2{font-size:18px}.steps-mini{font-size:9px;gap:5px}.steps-mini span{padding:6px}.summary-pills{gap:5px}.summary-pills span{font-size:9px}}@media(max-width:800px){.app-shell{display:block}.sidebar{display:none}.main{padding:26px 22px 110px;max-width:650px}.topbar{margin-bottom:24px}.topbar h1{font-size:25px}.eyebrow{font-size:9px;margin-bottom:8px}.topbar-actions .button{font-size:12px;padding:11px 13px;min-height:40px}.topbar-actions .button svg{width:17px}.dashboard{grid-template-columns:1fr;gap:13px;margin-bottom:29px}.summary-card{min-height:221px;padding:26px}.plate{width:144px;height:144px;margin-right:0}.plate svg{width:72px;height:72px}.cal-number{font-size:58px}.insight-card{padding:19px 21px;display:block}.insight-card h2{font-size:17px;margin:6px 0}.insight-card h2 br{display:none}.insight-card p{font-size:11px}.card-kicker{font-size:9px}.steps-mini{margin-top:13px}.notice{font-size:10px;padding:11px 13px;margin-bottom:18px;gap:9px}.notice svg{width:16px}.section-head{margin-bottom:14px;flex-wrap:wrap}.section-head h2{font-size:17px}.section-head .count{font-size:10px;margin-left:7px}.date-control{gap:6px}.date-control input{font-size:11px;max-width:133px;min-height:34px;padding:7px}.date-control .icon-btn{width:32px;height:34px;border-radius:8px}.date-control .icon-btn svg{width:15px}.meal-card{gap:13px;padding:14px;border-radius:12px}.meal-thumb{width:61px;height:65px;border-radius:9px}.meal-copy h3{font-size:14px;margin-bottom:4px}.meal-copy p{font-size:10px}.meal-meta{font-size:9px;gap:5px;margin-bottom:5px}.meal-kcal strong{font-size:19px}.meal-kcal small{font-size:9px}.tag{font-size:8px;padding:2px 4px}.mobile-nav{display:flex;justify-content:space-around;align-items:center;position:fixed;bottom:0;left:0;right:0;background:#fcfdf9ed;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom));z-index:5}.mobile-nav .nav-btn{display:flex;flex-direction:column;gap:5px;font-size:9px;border-radius:8px;padding:6px 23px}.mobile-nav .nav-btn.active{background:none;color:#34552a;font-weight:700}.mobile-nav .nav-btn svg{width:21px;height:21px}.settings-grid{grid-template-columns:1fr}.settings-card{padding:21px}.settings-card.wide{grid-column:1}.empty-state{padding:28px 18px}.empty-state p{font-size:11px}.footer-note{font-size:9px}.toast{bottom:95px}.desktop-only{display:none}dialog{width:100%;margin:0;top:auto;bottom:0;max-width:100%;max-height:93svh;border-radius:20px 20px 0 0}.modal-head{padding:18px 20px}.modal-body{padding:20px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.modal-footer{padding:17px 20px}.photo-slot{min-height:143px}.photo-slot img{height:172px}.detail-buttons{position:sticky;bottom:0;background:#fdfef8;padding:13px 0 3px}.login-shell{margin:4svh auto;padding:28px}.summary-pills span{font-size:9px;padding:6px 8px}.food-fields{gap:7px}.form-grid{gap:11px}}@media(max-width:360px){.main{padding:22px 16px 110px}.plate{width:118px;height:118px}.cal-number{font-size:50px}.summary-card{padding:22px 20px}.meal-card{gap:9px}.meal-thumb{width:51px;height:60px}.meal-copy h3{font-size:12px}.meal-kcal strong{font-size:17px}.date-control input{max-width:122px}.photo-slot img{height:145px}}
.album-actions{display:flex;justify-content:space-around;gap:8px;margin-top:-9px;margin-bottom:10px}.album-actions .small-link{font-size:10px;padding:6px}

.setup-url{overflow-wrap:anywhere;font-weight:600;color:#254b39!important;background:#eef2e7;border-radius:9px;padding:13px}.login-shell #retry-boot{margin-top:10px}
