:root{--ink:#202b28;--ink2:#56645e;--muted:#8e9b94;--line:#e6e9e1;--paper:#f7f8f4;--white:#fff;--green:#275b48;--dark:#193e32;--lime:#e6eecb;--accent:#e2a56a;--shadow:0 16px 45px rgba(32,52,41,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #93c7a4;outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.app-shell{max-width:480px;margin:0 auto;min-height:100svh;position:relative;padding:0 20px calc(106px + env(safe-area-inset-bottom));background:var(--paper)}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:27px 0 23px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:37px;height:37px;border-radius:13px;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 7px 18px #275b4824;font-weight:800;font-size:23px;line-height:1}.brand-text{font-weight:800;font-size:19px;letter-spacing:-.5px}.top-meta{font-size:12px;color:var(--ink2);border:1px solid #dfe6dc;border-radius:99px;padding:7px 10px;background:#fff9}
.page{display:none;animation:fadeIn .22s ease}.page.active{display:block}@keyframes fadeIn{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--green);text-transform:uppercase}.page-head{margin-bottom:22px}.page-head h1{font-size:28px;letter-spacing:-1px;font-weight:800;margin:9px 0 7px}.sub{color:#819087;font-size:13px;line-height:1.6}.card{border:1px solid #e9ece5;background:white;border-radius:23px;padding:19px;box-shadow:var(--shadow);margin-bottom:16px}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.card-title{font-size:16px;font-weight:800;margin:0}.pill{font-size:11px;display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:7px 10px;color:var(--green);background:#eff4e7;font-weight:700;white-space:nowrap}.hero{background:linear-gradient(143deg,#2c634f 0%,#1b4438 75%);border-radius:28px;color:#fff;padding:23px 22px 21px;box-shadow:0 17px 36px #275b4826;overflow:hidden;position:relative;margin-bottom:20px}.hero:before{content:"";position:absolute;width:195px;height:195px;border:1px solid #ffffff16;border-radius:50%;right:-65px;top:-105px;box-shadow:0 0 0 38px #ffffff08,0 0 0 78px #ffffff05}.hero>*{position:relative}.hero-top{display:flex;align-items:center;justify-content:space-between}.hero-overline{color:#c3dcc9;font-size:12px;font-weight:650}.hero-dot{display:inline-flex;align-items:center;gap:7px;color:#d8e9d9;font-size:11px}.hero-dot i{width:7px;height:7px;border-radius:50%;background:#cbe6a5}.hero-main{display:flex;align-items:center;justify-content:space-between;margin-top:24px;gap:8px}.hero-numbers{flex:1}.weight-number{font-size:54px;letter-spacing:-2.6px;font-weight:780;line-height:1}.weight-number small{font-size:16px;font-weight:500;color:#bfd7c8;margin-left:5px;letter-spacing:0}.hero-desc{font-size:12px;color:#d0e4d6;margin-top:10px}.ring{--progress:0%;width:112px;height:112px;border-radius:50%;background:conic-gradient(#dae8ad var(--progress),#ffffff2b var(--progress));display:grid;place-items:center;flex:none}.ring-inner{background:#255745;border-radius:50%;width:92px;height:92px;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring-inner strong{font-size:22px;line-height:1.2;letter-spacing:-.6px}.ring-inner span{font-size:10px;color:#c5dec7;margin-top:5px}.hero-bottom{margin-top:23px;padding-top:16px;border-top:1px solid #ffffff23;display:flex;justify-content:space-between;gap:10px}.hero-bottom div{display:flex;flex-direction:column;gap:6px}.hero-bottom span{font-size:11px;color:#b9d3c2}.hero-bottom strong{font-size:15px;color:#f5fbf5}.muted{color:var(--muted)}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:19px}.metric{padding:16px 12px;background:white;border:1px solid var(--line);border-radius:19px;min-width:0}.metric-label{font-size:11px;color:#829088}.metric-num{display:block;font-weight:800;font-size:20px;letter-spacing:-.6px;margin-top:10px;white-space:nowrap}.metric-foot{font-size:10px;color:#9aa79e;margin-top:6px;white-space:nowrap}.action-primary{border:none;background:var(--green);color:#fff;border-radius:15px;font-size:15px;font-weight:800;padding:15px 18px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-shadow:0 7px 20px #275b4826}.action-primary:hover{background:#1c4939}.action-ghost{border:1px solid #d9e3d7;border-radius:12px;background:white;color:var(--green);font-size:12px;font-weight:750;padding:10px 13px}.divider{height:1px;background:var(--line);margin:16px 0}.chart{width:100%;height:193px;display:block}.chart-empty{height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;color:#91a097;font-size:12px;text-align:center}.chart-empty svg{opacity:.65}.chips{display:flex;gap:6px}.chip{font-size:11px;border:none;background:#f1f4ef;color:#8d9990;border-radius:8px;padding:7px 10px;font-weight:700}.chip.selected{background:var(--green);color:#fff}.card-foot{font-size:11px;color:#a0aaa4;margin-top:8px}.section-label{font-size:16px;font-weight:850;letter-spacing:-.4px;margin:24px 0 13px;display:flex;align-items:center;justify-content:space-between}.section-link{font-size:12px;font-weight:700;color:var(--green);background:none;border:0}.habit-list{display:flex;flex-direction:column;gap:10px}.habit{display:flex;align-items:center;gap:11px;background:#f7f9f5;padding:13px;border-radius:14px;font-size:13px;color:#50665a}.habit-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#e9f0e6;color:var(--green);flex:none}.motto{padding:21px;border-radius:20px;background:#f0eadf;margin-bottom:10px;color:#645745;font-size:13px;line-height:1.8}.motto strong{font-size:16px;display:block;margin-bottom:5px;color:#4d4b3e}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);display:flex;align-items:center;justify-content:space-around;background:#fffefcf5;backdrop-filter:blur(18px);border-top:1px solid #e9ebe6;padding:10px 8px calc(12px + env(safe-area-inset-bottom));z-index:50;box-shadow:0 -6px 20px #1b443807}.nav-btn{flex:1;max-width:105px;border:0;background:none;color:#8f9b94;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:700;min-height:49px}.nav-btn.active{color:var(--green)}.nav-btn svg{width:21px;height:21px}.nav-btn.active .nav-icon{background:#eaf1e6}.nav-icon{display:grid;place-items:center;width:40px;height:29px;border-radius:11px;transition:background .15s}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:15px;min-width:0}.field label{font-size:12px;font-weight:750;color:#52665a}.field label em{font-weight:400;font-style:normal;color:#9aa79f}.field input,.field textarea{min-width:0;max-width:100%;border:1px solid #e1e6dd;border-radius:13px;background:#fafbf8;padding:12px 13px;color:var(--ink);outline:none;width:100%;font-size:15px}.field input:focus,.field textarea:focus{border-color:#72a18b;background:#fff}.field textarea{resize:vertical;min-height:104px;line-height:1.7}.field small{font-size:11px;color:#9ba79e}.field input[type=date]{min-height:46px}.mood-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mood-btn{display:flex;align-items:center;flex-direction:column;gap:6px;font-size:11px;font-weight:750;padding:12px 5px;border:1px solid #e4e8e0;border-radius:14px;background:#fafbf8;color:#718077}.mood-btn span{font-size:23px}.mood-btn.selected{background:#f2f6e6;border-color:#9ebc8c;color:#355d40}.toggle-list{display:flex;flex-wrap:wrap;gap:9px}.toggle{border:1px solid #e3e8df;border-radius:99px;padding:9px 12px;background:#fafbf8;color:#72847a;font-size:12px;font-weight:700}.toggle.active{background:#e9f2e6;border-color:#95b9a3;color:#275b48}.quiet-hint{background:#f1f5ed;border-radius:13px;padding:12px 14px;font-size:12px;line-height:1.75;color:#658072}.milestones{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.milestone{background:#f8f9f5;border:1px solid #e7ebe3;border-radius:18px;padding:18px 10px;text-align:center;color:#a0aca3}.milestone.earned{background:#f0f6e6;color:var(--green);border-color:#d3e2c8}.milestone-icon{font-size:23px;margin-bottom:8px;filter:grayscale(1);opacity:.5}.milestone.earned .milestone-icon{filter:none;opacity:1}.milestone strong{display:block;font-size:20px}.milestone small{font-size:10px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.day-label{text-align:center;font-size:10px;color:#a4b0a8}.cal-cell{height:35px;border:1px solid #e9eee5;border-radius:10px;background:#f4f6f2;display:flex;align-items:center;justify-content:center;color:#b4bdb5;font-size:11px;font-weight:700;padding:0}.cal-cell.l1{background:#e6f0dc;color:#386c4b}.cal-cell.l2{background:#a9d0ab;color:#204e35}.cal-cell.l3{background:#356b50;color:#fff}.cal-cell.today{box-shadow:0 0 0 2px #cb9b62 inset}.timeline{display:flex;flex-direction:column;gap:10px}.timeline-item{background:#fff;border:1px solid var(--line);border-radius:19px;padding:15px 16px;display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%}.timeline-pin{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;background:#f0f4ea;color:var(--green);flex:none}.timeline-main{flex:1;min-width:0}.timeline-date{font-weight:800;font-size:13px}.timeline-meta{color:#87958c;font-size:11px;margin-top:5px}.timeline-note{color:#45564c;font-size:12px;line-height:1.75;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.empty{border:1px dashed #d6e0d3;border-radius:20px;padding:28px 19px;background:#fff9;text-align:center;color:#87998c;font-size:13px;line-height:1.9}.empty strong{display:block;color:#51695b;font-size:15px;margin-bottom:3px}.quote-card{background:#ecf1e6;border:1px solid #dfe9d8;border-radius:20px;padding:22px;line-height:1.9;color:#355343;font-size:14px}.quote-card .quote-mark{font-family:Georgia,serif;font-size:50px;color:#a1bba0;line-height:1;display:block}.quote-card .quote-meta{font-size:11px;color:#78927c;margin-top:9px}.mini-btn{border:0;background:#e9efe4;color:#2f654b;font-size:11px;border-radius:8px;padding:8px 10px;font-weight:800}.stats2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-box{background:#f7f9f4;border-radius:14px;padding:16px}.stats-box strong{display:block;font-size:25px;letter-spacing:-.7px;margin-top:5px}.stats-box span{font-size:11px;color:#87978b}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid #eef0ea}.setting-row:last-child{border-bottom:0}.setting-row .setting-title{font-size:13px;font-weight:800}.setting-row .setting-desc{font-size:11px;color:#9aa79c;margin-top:6px;line-height:1.6}.setting-row button{flex:none}.footer-note{text-align:center;color:#a1ada2;font-size:11px;line-height:1.8;padding:6px 0 12px}.toast{position:fixed;z-index:100;bottom:calc(98px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);color:white;background:#234f3e;padding:11px 17px;border-radius:99px;font-size:12px;box-shadow:0 6px 21px #193e3250;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.record-note{font-size:12px;color:#92a197;line-height:1.6;margin-top:11px;text-align:center}.xsmall{font-size:11px}.inline-icon{width:17px;height:17px;vertical-align:-3px}.info-line{display:flex;gap:8px;align-items:center;color:#5f7867;font-size:12px}.chart-summary{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#5e8067}.chart-summary strong{color:#255d44;font-size:13px}.danger{color:#b15b50!important}.info-banner{padding:13px 14px;background:#ecf4e8;border:1px solid #dae7d6;border-radius:14px;color:#4b7255;font-size:12px;line-height:1.7}.file-hidden{display:none}.page-bottom-space{height:5px}@media(min-width:600px){body{background:#e9eee7}.app-shell{box-shadow:0 0 50px #234f3e18;min-height:100vh}.nav{box-shadow:0 -7px 22px #193e3210}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Smart external dining recommendations */
.segment-row{display:flex;background:#edf1e9;border-radius:13px;padding:4px;gap:4px;margin-bottom:17px}.segment-row button{flex:1;border:0;background:none;border-radius:10px;color:#7b8e81;font-weight:800;padding:11px 8px}.segment-row button.active{background:#fff;color:#275b48;box-shadow:0 3px 10px #31544410}.meal-select{width:100%;border:1px solid #dfe7da;background:#fafbf8;color:#223f30;font:inherit;border-radius:13px;padding:12px 13px;min-height:45px}.recommendation{border:1px solid #e2e8de;border-radius:18px;padding:16px;margin-top:11px;background:#fff}.rec-top{display:flex;align-items:center;gap:8px}.rec-num{background:#eaf3de;border-radius:10px;padding:6px 9px;color:#2a644e;font-size:12px;font-weight:850}.rec-title{font-weight:820;font-size:15px;line-height:1.55}.rec-text{font-size:12px;color:#708478;line-height:1.75;margin:8px 0 12px}.rec-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.rec-tag{color:#5a8169;font-size:11px;background:#f0f5ea;border-radius:8px;padding:6px 8px}.rec-action{border:1px solid #a9c7ab;background:#f9fcf5;color:#2a664d;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:750}.rec-action:disabled{opacity:.5}.meal-source{font-size:11px;color:#839488;line-height:1.7;margin-top:10px}.saved-meal{background:#f0f6e9;border-radius:14px;padding:12px 13px;margin:9px 0;font-size:12px;line-height:1.8;color:#38614d}.saved-meal strong{color:#1d4a36}.small-link{background:none;border:0;font-size:11px;color:#9c6f58;padding:4px 0}.meal-formline{display:flex;gap:8px}.meal-formline input{min-width:0;flex:1;border:1px solid #e1e6dd;border-radius:11px;padding:11px 12px;background:#fafbf8}.meal-formline button{flex:none}.loading-line{color:#6f8278;font-size:12px;line-height:1.7;padding:13px;background:#f2f6ef;border-radius:12px}.ai-chip{background:#f0e9db;color:#806547}
