:root{--ink:#253b33;--muted:#8b9a91;--green:#467b64;--pale:#e9f2eb;--line:#e8eeea;--bg:#f7f9f6;--orange:#d5985b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7bab8f;outline-offset:2px}.app{min-height:100vh;display:flex}.sidebar{width:226px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:31px 18px 24px;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:11px;padding:0 10px}.brand-icon{width:39px;height:39px;border-radius:13px;background:#477f66;color:white;display:inline-grid;place-items:center;font-size:25px;line-height:1}.brand strong{display:block;font-size:20px;letter-spacing:2px}.brand small,.side-bottom small{display:block;color:#a0ada5;font-size:11px;margin-top:3px;letter-spacing:.5px}.side-label{font-size:11px;color:#b6c0ba;margin:55px 11px 14px}.nav{display:grid;gap:5px}.nav button{border:0;background:transparent;text-align:left;padding:12px 13px;border-radius:9px;color:#829188;display:flex;align-items:center;gap:13px}.nav button.active{background:#eaf3ed;color:#477b62;font-weight:600}.nav-icon{font-size:18px;width:20px;text-align:center}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding:22px 7px 0;display:flex;gap:10px;align-items:flex-start;font-size:11px}.privacy-dot,.local-badge i{width:7px;height:7px;border-radius:50%;background:#86b99a;display:inline-block;margin-top:3px}main{margin-left:226px;min-width:0;flex:1}.topbar{height:76px;background:rgba(255,255,255,.78);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px}.top-title{color:#9ba9a0;font-size:13px}.top-title span{padding:0 10px;color:#d8dfda}.top-title b{color:#4b6054;font-weight:500}.top-actions{display:flex;align-items:center;gap:25px}.local-badge{font-size:11px;color:#91a397}.local-badge i{margin:0 6px 1px 0}.member-switch{border:0;background:none;display:flex;align-items:center;gap:9px;color:#40564a;font-weight:600}.avatar{border-radius:50%;background:#dcece1;color:#55836a;display:inline-grid;place-items:center;font-weight:600}.avatar.small{width:32px;height:32px;font-size:12px}.chevron{color:#a6b5aa}.content{max-width:1370px;margin:auto;padding:45px 48px 80px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:#89a796;font-weight:700;margin:0 0 11px}.page-head h1{font-size:27px;letter-spacing:.5px;margin:0 0 9px;font-weight:650}.page-head p{margin:0;color:#99a89e;font-size:13px}.date-label{color:#9baba0;font-size:12px}.hero{border-radius:16px;background:#e7f1e9;min-height:171px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.hero:after,.hero:before{content:"";position:absolute;border:1px solid rgba(102,153,119,.15);border-radius:50%;width:225px;height:225px;right:75px;top:-80px}.hero:after{width:160px;height:160px;right:10px;top:45px}.hero-copy{position:relative;z-index:1}.hero .overline{font-size:11px;letter-spacing:1.5px;color:#7fa28a}.hero h2{font-size:21px;margin:12px 0 8px}.hero p{color:#829c8b;margin:0;line-height:1.7;font-size:13px}.hero-art{font-size:79px;color:#a4c7ae;margin-right:75px;line-height:1;z-index:1}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 16px}.section-heading h2{font-size:17px;margin:0}.section-heading p{font-size:12px;color:#a4b0a8;margin:6px 0 0}.text-button{background:none;border:0;color:#71957e;font-size:12px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat-card,.panel,.record{background:#fff;border:1px solid #edf1ed;border-radius:14px}.stat-card{padding:20px;min-height:145px}.card-top{display:flex;justify-content:space-between;align-items:center;color:#819087;font-size:12px}.icon-box{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;font-size:17px;background:#eaf3ed;color:#6e9b7d}.icon-box.orange{background:#fbf2e8;color:#d5a572}.icon-box.blue{background:#edf2f6;color:#8daab9}.stat-number{font-size:28px;font-weight:600;margin:15px 0 3px}.stat-foot{font-size:11px;color:#adb9b1}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel{padding:23px;min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between}.panel-title h3{margin:0;font-size:15px}.panel-title span{font-size:11px;color:#a8b5ac}.empty{text-align:center;padding:35px 10px 20px;color:#a3b1a7;font-size:12px;line-height:1.8}.empty-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:#f1f6f2;display:grid;place-items:center;color:#a8c3b0;font-size:22px}.empty strong{display:block;color:#788e7f;font-size:13px;font-weight:500}.tip{margin-top:20px;color:#a1aea5;font-size:11px;line-height:1.7}.primary,.secondary,.danger{border-radius:9px;padding:10px 15px;border:0;font-weight:600;font-size:12px}.primary{background:#54856b;color:#fff}.primary:hover{background:#406e56}.secondary{background:#f0f5f1;color:#628571}.danger{background:#fbefed;color:#bd756b}.toolbar{display:flex;gap:8px}.records{display:grid;gap:12px}.record{padding:19px 21px}.record-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.record h3{margin:0 0 8px;font-size:15px}.record p{margin:6px 0;color:#87978c;line-height:1.6;white-space:pre-wrap}.meta{font-size:12px;color:#a1afa5}.pill{display:inline-block;border-radius:20px;padding:4px 9px;background:#eaf4ed;color:#6b9679;font-size:11px;white-space:nowrap}.pill.amber{background:#fbf2e6;color:#c4935c}.pill.gray{background:#f0f2f0;color:#98a39b}.record-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.record-actions button{border:0;background:#f4f7f4;color:#789381;border-radius:7px;padding:7px 10px;font-size:11px}.record-actions button.delete{color:#bf8279}.timeline{border-left:1px solid #dce9df;margin:18px 0 0 8px;padding-left:18px}.timeline-item{position:relative;margin:0 0 18px}.timeline-item:before{content:"";position:absolute;left:-23px;top:4px;width:9px;height:9px;background:#a5c5ad;border-radius:50%}.photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.photos img{width:76px;height:76px;object-fit:cover;border-radius:8px;cursor:pointer}.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.member-card .avatar{width:48px;height:48px;font-size:18px;margin-bottom:14px}.modal-backdrop{position:fixed;inset:0;background:rgba(30,48,37,.38);z-index:5;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:white;border-radius:16px;width:min(100%,520px);max-height:90vh;overflow:auto;padding:26px}.modal h2{margin:0;font-size:19px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.close{border:0;background:#f3f6f3;color:#819488;border-radius:50%;width:30px;height:30px;font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:7px;color:#667c6e;font-size:12px}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #e2eae3;border-radius:8px;padding:10px;background:white;color:#344b3d;min-width:0}.field textarea{min-height:80px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.form-note{font-size:11px;color:#a0afa4;line-height:1.6}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row strong{font-size:13px}.settings-row p{color:#a1aea5;font-size:12px;margin:6px 0 0;line-height:1.5}.mobile-brand,.mobile-nav{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#344f40;color:white;padding:10px 16px;border-radius:9px;z-index:10;display:none;font-size:12px}@media(max-width:800px){.sidebar{display:none}main{margin:0}.topbar{height:66px;padding:0 20px}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:17px}.mobile-brand .brand-icon{width:32px;height:32px;font-size:21px;border-radius:10px}.top-title,.local-badge{display:none}.content{padding:30px 20px 105px}.page-head h1{font-size:24px}.date-label{display:none}.hero{padding:25px;min-height:155px}.hero-art{font-size:58px;margin-right:5px}.hero:before{right:-50px}.hero:after{display:none}.cards{gap:9px}.stat-card{padding:15px 12px;min-height:130px}.stat-number{font-size:24px}.card-top{font-size:11px}.card-top .icon-box{width:30px;height:30px}.dashboard-grid{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;z-index:4;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:9px 0 calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:none;color:#a2b0a6;font-size:10px;display:grid;gap:4px;justify-items:center}.mobile-nav button.active{color:#56846a}.mobile-nav .nav-icon{font-size:19px}.member-grid{grid-template-columns:1fr 1fr}.section-heading{margin-top:28px}}@media(max-width:390px){.member-grid{grid-template-columns:1fr}.hero-art{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.top-actions{gap:0}}
.brand-icon{overflow:hidden;background:#e4f1e7}.brand-icon svg{width:100%;height:100%}.member-strip{display:flex;gap:12px;overflow-x:auto;padding:2px 0 16px;scroll-snap-type:x mandatory}.care-member{flex:0 0 250px;text-align:left;border:1px solid #e1ebe3;background:#fff;border-radius:14px;padding:16px;color:var(--ink);display:grid;gap:8px;scroll-snap-align:start}.care-member.selected{background:#e8f3ea;border-color:#8eb79b;box-shadow:0 0 0 1px #8eb79b}.care-member span,.care-member small{font-size:12px;line-height:1.5;color:#71897a}.care-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.care-copy{color:#72897a;line-height:1.6;min-height:24px}.large{font-size:15px;padding:15px 20px;width:100%}.trend-title{margin:24px 0 12px;font-weight:600}.trend-title small{font-weight:400;color:#9aaba0;font-size:11px}.trend{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.trend-day{display:grid;justify-items:center;gap:5px;color:#92a598;font-size:12px}.trend-day small{font-size:10px}.bar-track{height:38px;width:12px;background:#f0f5f1;border-radius:6px;display:flex;align-items:end;overflow:hidden}.bar{width:100%;background:#8bb99a;border-radius:6px}.diet-row{display:flex;gap:14px;padding:13px 0;border-bottom:1px solid var(--line);line-height:1.6}.diet-row:last-child{border:0}.diet-row strong{white-space:nowrap;color:#648a70}.diet-row span{color:#7f9185}.reminders{margin-top:16px}.center{text-align:center;padding-bottom:18px}.more-links button{display:flex;justify-content:space-between;width:100%;padding:18px 0;background:none;border:0;border-bottom:1px solid var(--line);color:var(--ink);text-align:left}.more-links button:last-child{border:0}.care-form{display:grid;gap:13px}.choices{display:flex;gap:8px;flex-wrap:wrap}.choices label,.check-setting{background:#f0f6f1;padding:10px 14px;border-radius:9px}.counter{display:flex;align-items:center;gap:12px}.counter button{width:44px;height:44px;border:0;border-radius:12px;background:#e6f1e8;color:#477b62;font-size:23px}.counter input{width:65px;text-align:center;border:1px solid #e2eae3;border-radius:8px;padding:10px;font-size:18px}[hidden]{display:none!important}@media(max-width:800px){.care-grid{grid-template-columns:1fr}.care-member{flex-basis:230px}.content{padding-top:24px}.mobile-nav button{min-width:55px;min-height:42px}}
.bar-steps{background:#7ea7c8}
.trend-num{font-size:10px;color:#6d8476;line-height:1}
.health-sync{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 0}
.health-hint{font-size:11px;color:#8a9b90;line-height:1.6;margin:8px 0 0}

.pill.blue{background:#edf2f6;color:#6e8fa3}
.pill.warn{background:#fceee6;color:#c46b3d}
.pill.danger{background:#fbeceb;color:#c0564b;font-weight:600}
.bp-strip{padding-bottom:8px}
.bp-chip{flex:0 0 auto;border:1px solid #e1ebe3;background:#fff;border-radius:999px;padding:8px 14px;color:var(--ink);scroll-snap-align:start}
.bp-chip.selected{background:#e8f3ea;border-color:#8eb79b;font-weight:600;box-shadow:0 0 0 1px #8eb79b}
.bp-chip.add{color:#628571;border-style:dashed}
.bp-profile-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px;color:#71897a;font-size:12px}
.bp-profile-bar strong{color:var(--ink);font-size:15px}
.bp-alert{background:#fbeceb;color:#a44a40;border-radius:14px;padding:14px 16px;margin:0 0 16px;font-weight:600;line-height:1.6}
.bp-stats{margin-bottom:16px}
.bp-panel{margin:0 0 8px}
.bp-ranges{display:flex;gap:6px}
.bp-range{border:0;background:#f0f5f1;color:#628571;border-radius:999px;padding:6px 11px;font-size:12px}
.bp-range.active{background:#54856b;color:#fff;font-weight:600}
.bp-chart-wrap{margin-top:8px}
.bp-chart{width:100%;height:auto;display:block}
.bp-grid{stroke:#edf2ee;stroke-width:1}
.bp-grid.bp-ref{stroke:#d7c4ae;stroke-dasharray:4 3}
.bp-axis{fill:#9aaba0;font-size:9px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.bp-empty-text{fill:#9aaba0;font-size:12px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.bp-line.sys{stroke:#c46b3d;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.bp-line.dia{stroke:#54856b;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.bp-dot.sys{fill:#c46b3d}
.bp-dot.dia{fill:#54856b}
.bp-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;color:#7f9185;font-size:11px}
.bp-legend i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle;background:#54856b}
.bp-legend i.sys{background:#c46b3d}
.bp-legend i.ref{background:#d7c4ae;height:0;border-top:2px dashed #d7c4ae}
.bp-flags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.bp-period{margin-left:8px;font-size:11px;color:#7f9185;font-weight:500}
.record h3 small{font-weight:400;color:#9aaba0;font-size:12px;margin-left:4px}
@media(max-width:800px){
  .bp-stats{grid-template-columns:1fr;gap:9px}
  .bp-stats .stat-card{min-height:auto;padding:14px 16px}
  .bp-stats .stat-number{font-size:24px;margin:8px 0 2px}
}

.sync-line{display:flex;align-items:center;gap:8px;font-size:15px;margin:2px 0 6px}
.sync-dot{width:10px;height:10px;border-radius:50%;background:#86b99a;display:inline-block}
.sync-dot.busy{background:#8daab9}.sync-dot.warn{background:#d5a572}.sync-dot.bad{background:#c0564b}
.sync-warn{background:#fbf2e6;color:#8f6330;border-radius:12px;padding:12px 14px;line-height:1.7;margin:12px 0;font-size:13px}
.sync-err{color:#bd756b;font-size:12px;line-height:1.6;margin:6px 0}
.more-links button span{color:#9aaba0;font-size:12px}
#syncScope{border:1px solid #e2eae3;border-radius:8px;padding:8px;background:#fff;color:#344b3d}
