:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Helvetica Neue",sans-serif;color:#253B34;background:#EDF1EC;font-synthesis:none;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;font-size:17px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}#app{position:relative;min-height:100svh;max-width:500px;margin:auto;background:#F7F9F5;box-shadow:0 0 65px #34534912;padding-bottom:calc(94px + env(safe-area-inset-bottom))}.startup{text-align:center;padding:36vh 20px;color:#4B846E;font-weight:700}.startup-symbol{width:76px;height:76px;border-radius:25px;background:#E0F0E3;display:grid;place-items:center;font-size:38px;margin:auto}.topbar{position:sticky;top:0;z-index:10;background:rgba(247,249,245,.92);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 18px) 23px 15px;min-height:76px;border-bottom:1px solid #e7ede8}.brand{display:flex;align-items:center;gap:11px}.logo{height:40px;width:40px;background:#E6F0E9;border-radius:15px;display:grid;place-items:center;font-size:24px;color:#43876e}.brand-title{font-weight:800;font-size:19px;letter-spacing:-.5px}.brand-sub{color:#84988B;font-size:11px;margin-top:3px;font-weight:600;letter-spacing:1.1px}.icon-button{width:44px;height:44px;background:#EDF3EE;border-radius:15px;color:#538170;font-size:22px;display:grid;place-items:center}.main{padding:23px 22px 34px;min-height:75vh}.eyebrow{font-size:13px;font-weight:700;letter-spacing:1.8px;color:#7B9684}.page-title{font-size:31px;line-height:1.22;margin:8px 0;font-weight:800;letter-spacing:-.7px;color:#284a3c}.page-subtitle{font-size:15px;color:#87978d;line-height:1.65}.hero{position:relative;padding:20px 4px 12px;overflow:hidden}.home-hero{padding:29px 0 17px}.home-hero:after{content:"✿";font-size:160px;position:absolute;right:-4px;top:-30px;color:#e4eee1;transform:rotate(18deg);z-index:0}.home-hero>*{position:relative;z-index:1}.hello{font-size:38px;letter-spacing:-1px;line-height:1.25;margin:11px 0;color:#294e3f;font-weight:800}.section-head{display:flex;align-items:center;justify-content:space-between;margin:27px 0 14px}.section-head h2{margin:0;font-size:19px;font-weight:800}.section-head small{font-size:13px;color:#9AA79E}.card{background:#fff;border:1px solid #edf1ec;border-radius:24px;padding:20px;box-shadow:0 4px 20px rgba(52,91,64,.038)}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{min-height:145px;padding:20px 18px}.metric .label{font-size:14px;font-weight:650;color:#718578}.metric .value{font-size:37px;line-height:1.3;margin-top:12px;color:#386D59;font-weight:800;font-variant-numeric:tabular-nums}.metric .unit{font-size:14px;color:#859B8E;font-weight:550;margin-left:3px}.metric .hint{font-size:13px;color:#94A59B;margin-top:5px}.metric.sleep{background:#F0F1FA;border-color:#EDEAF8}.metric.sleep .value{color:#6862A3}.metric.meal{background:#FFF7EE;border-color:#FAF1E7}.metric.meal .value{color:#B68053}.metric.steps{background:#F1F7EC;border-color:#E6F1E0}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.quick{background:#fff;border:1px solid #e9eee9;border-radius:19px;min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:#465e51;font-size:14px;font-weight:750}.quick-icon{width:49px;height:49px;border-radius:17px;display:grid;place-items:center;font-weight:850;font-size:21px;background:#EAF5ED;color:#387f62}.quick[data-quick="sleep"] .quick-icon{background:#eeecfa;color:#7b70b8}.quick[data-quick="meals"] .quick-icon{background:#fff0e0;color:#cf985e}.quick[data-quick="life"] .quick-icon{background:#fceaf1;color:#b87593}.summary{display:grid;gap:14px}.summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#687e72;font-size:15px}.summary-line strong{font-size:19px;color:#355b49}.hairline{height:1px;background:#eef1ec}.tiny{font-size:12px;color:#99A49B;line-height:1.75}.list{display:grid;gap:12px}.record{display:block;width:100%;text-align:left;border:1px solid #e9eee9;background:#fff;border-radius:22px;padding:18px 19px;box-shadow:0 4px 16px #5374540b;color:inherit}.record:active,.quick:active,.large-primary:active{transform:scale(.985)}.record-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.date-badge{color:#8CA096;font-size:13px;font-weight:700}.record-title{font-size:18px;font-weight:800;line-height:1.35;margin:10px 0 8px;word-break:break-word}.record-desc{font-size:14px;color:#84938a;white-space:pre-line;overflow-wrap:anywhere;line-height:1.6}.arrow{font-size:24px;color:#9eada3}.tag{background:#e9f3eb;color:#3b8669;border-radius:10px;padding:6px 10px;font-size:12px;font-weight:700}.tag.sleep{background:#f0edfc;color:#7e73a8}.tag.meals{background:#fff0e1;color:#ab7c48}.tag.life{background:#fdeef4;color:#b37591}.large-primary{background:#3d8065;color:white;display:flex;width:100%;align-items:center;justify-content:center;gap:8px;min-height:58px;border-radius:19px;font-size:18px;font-weight:800;margin:20px 0;box-shadow:0 8px 18px #40795c26}.simple-button{background:#e7f1e8;color:#397857;border-radius:15px;font-size:14px;font-weight:750;padding:12px 16px;min-height:42px}.text-button{padding:10px 2px;color:#51866b;background:transparent;font-weight:750;font-size:14px}.empty{text-align:center;border:1px dashed #d7e5db;background:#f9fcf8;border-radius:24px;padding:38px 20px;color:#8d9f91;line-height:1.8}.empty-mark{display:block;font-size:36px;margin-bottom:8px;color:#86b99d}.chart{display:grid;gap:11px;padding-top:7px}.chart-line{display:grid;grid-template-columns:45px minmax(0,1fr) 68px;gap:10px;align-items:center;font-size:13px;color:#7c8d80}.chart-bar{height:13px;border-radius:10px;background:#edf1f4;overflow:hidden}.chart-fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#B8B0DE,#8278BB)}.chart-value{text-align:right;color:#5d6c61}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.calendar-nav{background:#edf4ee;color:#427a60;border-radius:13px;width:38px;height:38px;font-size:22px}.calendar-month{font-size:19px;font-weight:800}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.weekday{font-size:12px;color:#95a398;font-weight:750}.day{aspect-ratio:1;position:relative;border-radius:13px;background:transparent;font-size:14px;color:#56705b}.day.active{background:#cfe6d6;color:#1b6245;font-weight:800}.day.has-data:after{content:"";position:absolute;width:5px;height:5px;background:#4e9c74;border-radius:50%;bottom:6px;left:calc(50% - 2.5px)}.day.selected{outline:2px solid #4d8b69;outline-offset:0}.day.blank{visibility:hidden}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #dae9dd;background:#f8fcf7;color:#537d62;border-radius:11px;padding:8px 13px;font-size:14px;font-weight:700}.chip.selected{background:#dcefe2;border-color:#92b99b;color:#287046}.thumb-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.thumb{height:82px;width:82px;object-fit:cover;border-radius:14px;background:#edf1ed}.bottomnav{position:fixed;bottom:0;width:100%;max-width:500px;left:50%;transform:translateX(-50%);z-index:12;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);border-top:1px solid #e4eae3;padding:12px 8px calc(env(safe-area-inset-bottom) + 9px);box-shadow:0 -5px 18px #354c3b0b;backdrop-filter:blur(15px)}.navitem{background:transparent;color:#99a89d;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:52px;font-size:12px;font-weight:750}.navitem .nav-icon{font-size:22px;width:36px;height:28px;display:grid;place-items:center;line-height:1}.navitem.selected{color:#3c8564}.navitem.selected .nav-icon{background:#e7f2e8;border-radius:11px}.overlay{position:fixed;z-index:20;inset:0;background:#15291d5e;display:flex;justify-content:center;align-items:flex-end}.sheet{width:100%;max-width:500px;max-height:96svh;overflow:auto;overscroll-behavior:contain;background:#f8faf6;border-radius:27px 27px 0 0;padding:22px 23px calc(env(safe-area-inset-bottom) + 25px);box-shadow:0 -13px 60px #20382026}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}.sheet-title{font-size:23px;font-weight:850}.close{border-radius:50%;background:#e8f0e9;width:40px;height:40px;font-size:24px;color:#52735d}.form-field{margin:18px 0}.form-label{display:block;font-size:15px;font-weight:750;color:#4c6354;margin-bottom:9px}.field-control{width:100%;border:1.5px solid #e2e9e1;background:white;border-radius:15px;min-height:51px;padding:12px 14px;font-size:17px;color:#354a3e;outline:none;appearance:auto}.field-control:focus{border-color:#75ab8b;box-shadow:0 0 0 3px #d8ecdc}.field-control.note{min-height:100px;resize:vertical;line-height:1.6}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:11px}.form-two .form-field{min-width:0}.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.danger{background:#fff0ed;color:#b35850;border-radius:14px;padding:14px;font-weight:800}.neutral{background:#e8ede8;color:#537661;border-radius:14px;padding:14px;font-weight:800}.save{background:#3f8265;color:white;width:100%;min-height:58px;border-radius:18px;font-weight:850;font-size:18px;margin-top:8px}.photoadd{display:flex;align-items:center;justify-content:center;border:1.5px dashed #9cbda4;border-radius:18px;padding:21px;min-height:78px;background:#f3faf4;color:#438364;font-weight:800}.photoadd input{display:none}.photo-edit{width:93px;height:93px;position:relative}.photo-edit img{width:100%;height:100%;object-fit:cover;border-radius:13px;background:#dbe7db}.photo-remove{position:absolute;top:-8px;right:-8px;width:26px;height:26px;background:#b55b54;border-radius:50%;color:white;line-height:24px;font-size:18px;border:2px solid white}.status{position:fixed;z-index:30;bottom:calc(env(safe-area-inset-bottom) + 102px);left:50%;transform:translateX(-50%);max-width:90vw;background:#2f5b45;color:white;border-radius:16px;padding:13px 19px;font-size:14px;box-shadow:0 10px 30px #22332233;display:none;text-align:center}.status.show{display:block}.settings-card{margin-top:14px}.settings-card h3{font-size:18px;margin:0 0 10px}.settings-card p{font-size:14px;color:#768d7a;line-height:1.75}.settings-card .row{display:flex;justify-content:space-between;align-items:center;gap:10px}.footer-note{text-align:center;color:#9cad9f;font-size:12px;line-height:1.8;margin:36px auto}.install-steps{padding-left:22px;font-size:15px;line-height:1.9;color:#607464}.install-steps li{padding:2px 0}.install-banner{border:1px solid #dbebd9;border-radius:19px;background:linear-gradient(135deg,#eaf5e9,#f6fbf4);padding:17px;display:flex;align-items:center;justify-content:space-between;gap:14px}.install-banner p{font-size:13px;color:#6e8978;line-height:1.6;margin:5px 0}.separator{margin:22px 0;border:none;border-top:1px solid #e8eeea}@media(min-width:520px){#app{border-radius:0 0 22px 22px}.overlay{align-items:center}.sheet{border-radius:25px;max-height:88vh}.main{padding-left:28px;padding-right:28px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}