:root{--green:#236455;--ink:#243b35;--muted:#77857e;--line:#e5eae3;--bg:#f7f8f3;--soft:#edf3e9;--gold:#b38445;--red:#b34747;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;background:white;padding:12px 18px;color:var(--ink);min-height:46px}button:hover{border-color:#8eafa0;background:#f4f8f2}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:var(--red)}input,select,textarea{border:1px solid #dbe2d8;border-radius:10px;padding:12px;background:white;color:var(--ink);min-width:0;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #a7c9b4;outline-offset:1px}textarea{resize:vertical;min-height:88px}label{display:block;font-size:14px;color:#566b60;margin-bottom:6px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:600;letter-spacing:-1px;margin-bottom:12px}h2{font-size:20px;font-weight:600}h3{font-size:17px}.muted{color:var(--muted);font-size:14px;line-height:1.8}.eyebrow{font-size:11px;letter-spacing:2px;color:#7a8f79;font-weight:700;margin-bottom:16px}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:36px 24px;border-right:1px solid var(--line);background:#fcfdf9;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:600}.brand-mark{border-radius:15px;background:var(--green);color:#fff;width:44px;height:44px;display:grid;place-items:center;font-size:26px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:1.5px;margin-top:6px}.nav{display:grid;gap:10px;margin-top:56px}.nav button{border:0;background:transparent;display:flex;gap:14px;align-items:center;text-align:left;color:#78877b}.nav button.active{background:#e9f0e4;color:var(--green);font-weight:600}.nav svg{width:21px;height:21px}.sidebar-foot{margin-top:auto;font-size:12px;line-height:1.9;color:#83917e;padding:16px 10px}.status-dot{display:inline-block;width:7px;height:7px;background:#7ca77a;border-radius:50%;margin-right:5px}.main{width:100%;max-width:1360px;padding:32px 48px 56px;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:30px;font-size:13px;color:var(--muted)}.account{border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:4px;font-size:13px}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#e4ecde;border-radius:50%;color:var(--green)}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px 0 30px}.hero p{font-size:15px;color:var(--muted);margin:0;line-height:1.8}.date{display:flex;gap:8px;align-items:center}.date input{width:160px;font-size:14px;background:#fff}.date button{padding:10px 15px}.today-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.section-head h2{margin:0}.section-head span{font-size:12px;color:var(--muted)}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:24px}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.shortcut{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:18px;gap:14px;border-radius:15px;background:#fbfcf8;min-height:138px}.shortcut .symbol{height:38px;width:38px;display:grid;place-items:center;border-radius:12px;background:#edf2e5;color:#5f7c4f}.symbol svg{width:22px;height:22px}.shortcut:nth-child(2) .symbol{background:#f8eee7;color:#b28362}.shortcut:nth-child(3) .symbol{background:#edf0f8;color:#788eb9}.shortcut:nth-child(4) .symbol{background:#f5edec;color:#ad7e80}.shortcut strong{font-size:17px;font-weight:500}.shortcut small{font-size:11px;color:#90978b}.shortcut .sub{margin-top:auto}.welcome-panel{background:#edf2e6;border:1px solid #dfe6d6;position:relative;overflow:hidden;min-height:164px}.welcome-panel h3{font-weight:500;font-size:21px;line-height:1.6;position:relative;z-index:1;margin-bottom:12px}.leaf{position:absolute;font-size:104px;color:#cfddc3;right:2px;bottom:-22px;transform:rotate(-25deg)}.nutrition-main{font-size:38px;color:var(--green);font-weight:500;margin:22px 0 6px}.nutrition-main small{font-size:13px;color:var(--muted);font-weight:400}.nutrients{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.nutrients span{display:block;color:var(--muted);font-size:12px;margin-bottom:9px}.nutrients strong{font-size:17px;font-weight:500}.nutrition-note{font-size:12px;line-height:1.8;background:#f7f8f1;border-radius:10px;padding:12px;color:#82876d;margin-top:20px}.timeline{margin-top:30px}.record{display:grid;grid-template-columns:54px 40px minmax(0,1fr) auto;gap:14px;align-items:start;padding:23px 0;border-bottom:1px solid var(--line)}.record:last-child{border-bottom:0}.record time{font-size:13px;color:var(--muted);padding-top:8px;font-variant-numeric:tabular-nums}.record .symbol{background:#f0f4ec;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:var(--green)}.record h3{font-size:15px;margin:0 0 8px}.record p{font-size:14px;color:#6e7d73;line-height:1.7;margin:0;overflow-wrap:anywhere}.record button{border:0;font-size:13px;padding:7px;min-height:36px;background:transparent;color:#7e8f80}.empty{text-align:center;padding:48px 14px}.empty .empty-symbol{display:grid;place-items:center;margin:0 auto 18px;width:60px;height:60px;border-radius:50%;background:#f1f5ed;color:#839d76}.empty-symbol svg{width:26px}.empty h3{font-weight:500}.empty p{color:var(--muted);font-size:14px;line-height:1.9}.favorites{display:grid;gap:10px}.favorite{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:10px;font-size:14px}.favorite small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.badge{font-size:11px;border-radius:6px;padding:4px 7px;color:var(--green);background:var(--soft)}.intro{max-width:520px;margin:12vh auto;text-align:center}.intro .brand{justify-content:center;margin-bottom:48px}.intro h1{font-size:38px;line-height:1.5}.intro p{color:var(--muted);line-height:1.9}.intro button{display:block;width:100%;margin:12px 0;padding:17px}.intro small{display:block;margin-top:24px;color:var(--muted);line-height:1.8}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.row>*{flex:1}.row>.fixed{flex:0 0 auto}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.settings-grid .card{margin:0}.stack{display:grid;gap:14px}.setting-line{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.setting-line span{flex:1}.setting-line button{font-size:13px;min-height:38px;padding:8px 12px}.filterbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}.filterbar input{width:160px}.filterbar select{width:auto}.filterbar button{font-size:14px}.filterbar button.active{background:var(--green);color:white}.chart{width:100%;height:260px;display:block}.chart text{fill:#7c8c7f;font-size:12px}.chart-details{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.chart-details span{font-size:12px;background:#f1f4ee;border-radius:7px;padding:8px}.chart-details b{color:var(--green)}.photo-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.photo-grid img{width:90px;height:90px;object-fit:cover;border-radius:10px;cursor:pointer}dialog{border:1px solid var(--line);border-radius:22px;padding:0;width:620px;max-width:calc(100% - 28px);max-height:90vh;color:var(--ink);box-shadow:0 30px 100px #1d392744}dialog::backdrop{background:#18372866;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.modal-head button{border:0;min-height:36px;padding:4px 12px}.modal-body{padding:24px 28px}.modal-body .field{margin-bottom:18px}.modal-body .row{align-items:flex-start}.modal-foot{display:flex;gap:12px;justify-content:flex-end;padding:20px 28px;border-top:1px solid var(--line);background:#fafbf7;position:sticky;bottom:0}.error{color:var(--red);font-size:14px;line-height:1.6;margin-bottom:14px}.error:empty{display:none}.check{display:flex;gap:8px;align-items:center}.check input{width:20px;height:20px}.food-item{border:1px solid var(--line);padding:14px;border-radius:12px;margin-bottom:12px}.food-item .row{gap:8px}.food-item input,.food-item select{font-size:14px;padding:10px}.food-item p{margin:8px 0 0;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#23493d;color:#fff;padding:14px 22px;box-shadow:0 8px 25px #18372822;z-index:9;border-radius:12px;display:none;max-width:90%;font-size:14px}.invitation{font-family:monospace;font-size:14px;word-break:break-all;background:#edf3e9;padding:14px;border-radius:10px;user-select:all}.mobile-only{display:none}a{color:var(--green)}
@media(min-width:1500px){.main{padding:40px 64px}.today-grid{grid-template-columns:minmax(0,1fr) 330px}}@media(max-width:1150px){.main{padding:28px}.layout{grid-template-columns:190px 1fr}.sidebar{padding:30px 18px}.today-grid{grid-template-columns:minmax(0,1fr) 260px}.shortcuts{grid-template-columns:repeat(3,1fr)}.shortcut{padding:14px}.card{padding:20px}}@media(max-width:900px){.today-grid{grid-template-columns:1fr}.aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.welcome-panel{display:none}.hero{flex-wrap:wrap}.settings-grid{grid-template-columns:1fr}.shortcuts{grid-template-columns:repeat(4,1fr)}.main{padding:24px}.layout{grid-template-columns:170px 1fr}.brand{font-size:18px}.brand-mark{width:36px;height:36px}}@media(max-width:650px){.layout{display:block}.sidebar{position:fixed;top:auto;bottom:0;width:100%;height:auto;padding:8px 20px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-right:0;z-index:3}.sidebar>.brand,.sidebar-foot{display:none}.nav{display:flex;margin:0;justify-content:space-around;gap:8px}.nav button{flex:1;display:flex;flex-direction:column;gap:5px;font-size:12px;padding:6px 10px}.main{padding:20px 18px 110px}.topbar{padding-bottom:18px}.hero{margin:12px 0 25px;gap:18px}h1{font-size:28px}.eyebrow{font-size:10px;margin-bottom:12px}.hero p{font-size:13px}.shortcuts{grid-template-columns:repeat(3,1fr);gap:8px}.shortcut{min-height:125px;gap:10px;padding:12px}.shortcut strong{font-size:16px}.shortcut small{font-size:10px}.card{padding:18px;border-radius:16px;margin-bottom:18px}.section-head{margin-bottom:16px}.section-head h2{font-size:18px}.aside{display:block}.welcome-panel{display:none}.record{grid-template-columns:42px 32px minmax(0,1fr) auto;gap:8px;padding:18px 0}.record .symbol{width:32px;height:32px}.record button{font-size:12px}.nutrition-main{margin:14px 0 6px}.intro{padding:24px;margin:6vh auto}.intro h1{font-size:32px}.modal-body,.modal-head{padding:20px}.modal-foot{padding:16px 20px}.date{width:100%}.date input{flex:1}.chart{height:220px}.filterbar input{width:135px}.filterbar{gap:8px}.food-item .row{flex-wrap:wrap}.food-item .row>*{flex-basis:40%}#toast{bottom:100px}}

.pressure-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pressure-columns section{min-width:0;padding:14px;background:#f8faf4;border-radius:12px}.pressure-columns h3{font-size:16px}.pressure-columns label{font-size:13px}.pressure-columns input{padding:12px 8px}
