:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:#17354e;background:#f3f7fa;font-synthesis:none;font-weight:400;--text:#17354e;--muted:#788da4;--accent:#288fca;--line:#eaf0f6;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse 580px 440px at 50% 0,#dfedfc 0%,#eff7fd 66%,transparent 100%);min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #77bdeb;outline-offset:3px}input,textarea{color:var(--text)}button{border:0;background:none}p,h1,h2,h3{margin:0}svg{flex-shrink:0}button svg{pointer-events:none}.app-shell{width:100%;max-width:520px;margin:0 auto;padding:22px 18px 128px}.brand-header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 9px}.brand{display:flex;gap:10px;align-items:center;font-size:20px;font-weight:650;letter-spacing:1px}.brand-icon{height:34px;width:34px;display:grid;place-items:center;background:#f6fbff;border-radius:10px;border:1px solid #d4e7f8;color:#247eb5}.settings-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#ffffffa6}.settings-button:hover{background:#fff}.page-heading{margin:23px 10px 19px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}h1{font-size:27px;font-weight:700;letter-spacing:1px;line-height:1.4}.today-date{font-size:12px;color:#627c94;white-space:nowrap}.page-heading>p{font-size:13px;letter-spacing:.6px;color:#7088a0;margin-top:4px;line-height:1.7}.cards{display:grid;gap:13px}.card{border-radius:22px;background:#fff;padding:14px 16px 17px;box-shadow:0 5px 20px #57799603}.section-heading{display:flex;align-items:center;justify-content:space-between;min-height:38px;gap:8px}h2{font-size:17px;letter-spacing:.2px;font-weight:650;line-height:1.4}.text-button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;font-size:12px;color:var(--muted);padding:0 0 0 8px;white-space:nowrap}.text-button:hover{color:var(--accent)}.current-weight{display:flex;align-items:baseline;justify-content:center;gap:10px;margin-top:8px;line-height:1.1}.current-weight>span:first-child{font-size:56px;font-weight:600;letter-spacing:-2px;color:#102d46}.unit{font-size:16px;font-weight:400;color:#4b6883}.current-caption{text-align:center;font-size:11px;color:#8ca0b3;margin-top:5px}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:20px -3px 17px}.stats>div{text-align:center;position:relative}.stats>div+div:before{content:"";position:absolute;left:0;top:7px;height:31px;width:1px;background:var(--line)}.stats>div>span{font-size:11px;color:var(--muted);display:block;margin-bottom:6px}.stats strong{font-size:19px;font-weight:550;letter-spacing:-.3px}.stats small{font-size:11px;font-weight:400;margin-left:4px}.teal{color:#168e79!important}.muted{color:var(--muted)}.progress-line{display:flex;gap:11px;align-items:center}.progress-track{background:#e4ecf5;flex:1;height:7px;border-radius:9px;overflow:hidden}.progress-track>div{height:100%;background:#3199cf;border-radius:9px;transition:width .4s ease}.progress-line>span{font-size:12px;color:#5d7792;min-width:27px;text-align:right}.progress-caption{font-size:11px;color:var(--muted);line-height:1.7;margin-top:7px}.progress-caption b{font-weight:500}.segmented{display:flex;border:1px solid #e8eff7;border-radius:10px;background:#fbfdff;align-items:center;padding:2px;height:32px}.segmented button{font-size:11px;min-width:45px;padding:6px 9px;border-radius:8px;position:relative;color:#6c849d}.segmented button:after{content:"";position:absolute;inset:-8px 0}.segmented button.active{background:#2d93cc;color:#fff;box-shadow:0 2px 4px #238bc426}.range-button{display:flex;align-items:center;gap:6px;width:100%;min-height:40px;font-size:10px;color:#8a9eb1;padding:0;margin:0 0 2px}.range-button.is-custom{color:#2583b8}.range-caption{margin-left:auto;font-size:10px}.empty-chart{min-height:175px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:10px}.empty-icon{display:grid;place-items:center;width:56px;height:56px;border:1px solid #e3eef9;border-radius:50%;color:#7994ad;background:#f0f7fd;margin-bottom:15px}.empty-chart>strong{font-size:14px;font-weight:500;letter-spacing:.3px}.empty-chart>p{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.7}.trend{padding-bottom:13px}.chart-readout{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin:0 1px 1px}.chart-readout strong{font-size:15px;color:#327da8;font-weight:600}.chart-readout small{font-weight:400;font-size:10px}.chart-hint{margin-left:auto;font-size:10px;color:#9caec0}.weight-chart{width:100%;display:block;overflow:visible}.chart-grid{stroke:#eaf0f6;stroke-width:.8;stroke-dasharray:3 3}.chart-axis{font-size:10px;fill:#8096ab}.weight-chart g[role=button]{cursor:pointer;outline:none}.weight-chart g[role=button]:focus-visible circle:first-child{fill:#9ed6f666}.chart-foot{display:flex;justify-content:space-between;gap:8px;margin-top:4px;font-size:10px;color:#8da0b2}.chart-foot b{font-weight:500;color:#4e809e}.empty-records{min-height:144px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#869cb1;gap:17px}.empty-records p{font-size:12px;letter-spacing:.2px}.record-row{display:flex;align-items:center;text-align:left;gap:8px;width:100%;padding:13px 0;min-height:68px}.record-row+.record-row{border-top:1px solid #f0f4f8}.record-row:last-child{padding-bottom:0}.record-copy{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1}.record-date{font-size:13px;white-space:nowrap}.record-date small{font-size:11px;color:var(--muted);margin-left:6px}.record-date .today{color:#298fc8}.record-note{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b9eb1;font-size:11px}.record-values{display:flex;align-items:flex-end;flex-direction:column;gap:4px}.record-values strong{font-weight:550;font-size:15px;white-space:nowrap}.record-values strong small{font-size:11px;margin-left:4px;font-weight:400}.record-values>span{font-size:10px}.record-row>svg{color:#90a3b6}.local-note{margin-top:20px;text-align:center;font-size:10px;color:#a1afbf;letter-spacing:.2px}.action-bar{position:fixed;bottom:0;left:0;right:0;z-index:4;pointer-events:none}.action-bar>div{max-width:520px;margin:0 auto;padding:14px 22px calc(11px + env(safe-area-inset-bottom));background:linear-gradient(#ffffffd9,#fff 40%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:26px 26px 0 0;box-shadow:0 -5px 20px #537ca503;pointer-events:auto}.primary-button{background:#2d93cc;color:#fff;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:16px;font-size:15px;font-weight:550;padding:12px 18px;width:100%;box-shadow:0 4px 12px #298fca0c;transition:background .16s,transform .16s}.primary-button:hover{background:#2384bd}.primary-button:active{transform:scale(.985)}.add-button{border-radius:24px;min-height:48px;font-size:16px;letter-spacing:1px}.action-bar p{font-size:10px;color:#859bb1;text-align:center;margin-top:9px;letter-spacing:.8px}.toast{position:fixed;z-index:30;top:20px;left:50%;transform:translate(-50%);max-width:calc(100% - 36px);padding:12px 17px;border-radius:14px;background:#17354ef2;box-shadow:0 8px 25px #25485a1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;display:flex;align-items:center;gap:8px;font-size:12px;white-space:normal;animation:toast-in .2s ease}.storage-error{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.6;margin-bottom:14px;padding:12px;background:#fff4df;border-radius:12px;color:#876326}.sheet-dialog{border:0;padding:0;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:100%;max-height:92dvh;border-radius:26px 26px 0 0;color:var(--text);background:#fff;box-shadow:0 -10px 60px #0c23302b;overflow:auto}.sheet-dialog::backdrop{background:#1126387a;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.sheet-panel{padding:10px 23px calc(24px + env(safe-area-inset-bottom));max-height:92dvh;overflow-y:auto}.sheet-grab-handle{height:4px;width:46px;background:#cbd8e5;border-radius:4px;margin:0 auto 12px}.sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.sheet-title{font-size:22px;font-weight:650;letter-spacing:.3px}.icon-button{width:44px;height:44px;display:grid;place-items:center;color:#7f96ac;border-radius:50%;margin-right:-9px}.icon-button:hover{background:#f2f7fb}.form-stack{display:flex;flex-direction:column;gap:21px}.field{display:flex;flex-direction:column;gap:9px;min-width:0}.field-label{font-size:13px;font-weight:500;color:#39536e}.field-optional{font-weight:400;color:#8fa1b2;margin-left:4px}.text-input{display:block;border:1px solid #dce7f1;background:#f5f8fb;border-radius:12px;padding:12px 13px;min-height:46px;width:100%;min-width:0;box-shadow:none;-webkit-appearance:none;appearance:none;font-size:16px;line-height:1.5}.text-input::placeholder{color:#9aabbd;font-size:13px}.text-input[type=date]{min-width:0;text-align:left;min-height:48px}.text-input:focus{border-color:#57a9d7;background:#fafdff}.note-input{resize:vertical;min-height:85px;font-size:14px}.field-help{font-size:11px;color:var(--muted);line-height:1.7}.field-error,.form-error{font-size:12px;line-height:1.7;color:#b74d49}.form-error{background:#fff2f0;padding:10px 12px;border-radius:10px}.weight-field-label{display:block;margin-bottom:5px}.weight-stepper{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}.stepper-button{display:grid;place-items:center;width:47px;height:47px;border:1px solid #b9d8ed;border-radius:50%;color:var(--accent);background:#f2f9ff;flex-shrink:0}.weight-input-wrap{display:flex;align-items:baseline;justify-content:center;min-width:0;flex:1;gap:3px}.weight-input{width:130px;min-width:0;border:0;background:transparent;font-size:49px;font-weight:600;letter-spacing:-1px;line-height:1.2;text-align:center;padding:3px 0;color:#16364d;border-radius:7px;outline-offset:0!important;-moz-appearance:textfield}.weight-input::-webkit-inner-spin-button,.weight-input::-webkit-outer-spin-button{-webkit-appearance:none}.weight-input::placeholder{color:#cbd8e4}.input-unit{font-size:16px;color:#54718a}.weight-stepper+.field-help{text-align:center}.character-count{text-align:right;font-size:10px;color:#9aacc0;margin-top:-3px}.form-actions{display:flex;flex-direction:column;gap:10px;margin-top:0}.secondary-button,.danger-button{display:flex;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:11px 15px;border-radius:13px;font-size:14px}.secondary-button{background:#edf4fa;color:#5b7790}.danger-button{background:#c76059;color:#fff}.danger-text-button{min-height:44px;color:#bb655f;font-size:13px}.button-row{display:flex;gap:10px;align-items:stretch}.button-row>*{flex:1}.confirm-panel,.import-confirm{padding:15px;background:#f6f8fb;border:1px solid #e7edf4;border-radius:14px;display:flex;flex-direction:column;gap:10px}.confirm-title{font-size:14px;font-weight:600}.confirm-copy{font-size:12px;line-height:1.7;color:#748ba2;overflow-wrap:anywhere}.settings-summary{padding:18px;background:#f0f7fd;border-radius:14px;font-size:13px;line-height:1.8;color:#6c859c;display:flex;flex-direction:column;gap:7px}.settings-summary strong{font-size:17px;font-weight:600;color:#254e69}.settings-summary p{font-size:12px}.settings-list{display:flex;flex-direction:column;gap:0;margin:15px 0}.settings-action{display:flex;width:100%;align-items:center;gap:13px;padding:17px 0;text-align:left;min-height:70px}.settings-action+.settings-action{border-top:1px solid #edf2f7}.settings-action-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#f0f6fb;color:#4b8fb8;flex-shrink:0}.settings-action-copy{display:flex;flex-direction:column;gap:5px}.settings-action-copy strong{font-size:14px;font-weight:500}.settings-action-copy>span{font-size:11px;color:#8b9db0;line-height:1.5}.file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.history-summary{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#8398ad;margin-top:-14px;margin-bottom:4px}.history-empty{font-size:13px;text-align:center;padding:50px 0;color:#8a9eb2}.history-panel .record-row:last-child{padding-bottom:13px}@keyframes toast-in{0%{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}@media(min-width:600px){.app-shell{padding-top:32px}.page-heading{margin-top:27px}.card{padding-left:23px;padding-right:23px}.current-weight>span:first-child{font-size:62px}.stats{margin-top:24px;margin-bottom:20px}.stats strong{font-size:21px}.empty-chart{min-height:185px}.sheet-dialog{inset:50% 0 auto;transform:translateY(-50%);border-radius:26px;max-height:88dvh}.sheet-panel{max-height:88dvh}.action-bar>div{padding-bottom:15px}.range-button{font-size:11px}.page-heading>p{font-size:14px}}@media(max-width:359px){.app-shell{padding-left:12px;padding-right:12px}.card{padding-left:13px;padding-right:13px}.today-date{font-size:10px}h1{font-size:25px}.page-heading{margin-left:5px;margin-right:5px}.page-heading>p{font-size:12px;letter-spacing:0}.stats strong{font-size:18px}.segmented button{min-width:40px;padding-left:7px;padding-right:7px}.sheet-panel{padding-left:18px;padding-right:18px}.weight-input{width:116px;font-size:44px}.range-button{font-size:9px;gap:4px}.range-caption{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}@media(max-width:599px){.app-shell{padding-top:17px}.brand-header{height:34px}.page-heading{margin-top:19px;margin-bottom:15px}.current-caption{font-size:10px;margin-top:3px}.current-weight>span:first-child{font-size:52px}.current-weight{margin-top:3px}.stats{margin-top:14px;margin-bottom:13px}.overview{padding-top:10px;padding-bottom:14px}.overview .section-heading,.overview .text-button{min-height:36px}.empty-chart{min-height:141px}.empty-records{min-height:116px}.card.recent{padding-bottom:16px}}.danger-text-button{display:flex;gap:6px;align-items:center;justify-content:center}.settings-action-copy{flex:1}.settings-summary h3{font-size:16px;color:#325773;font-weight:600}.settings-summary{flex-direction:row;align-items:center;gap:12px}.button-row.form-actions{flex-direction:row}.weight-stepper~.field-help{text-align:center}.login-shell{width:min(100%,480px);margin:0 auto;padding:50px 22px 35px;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:28px}.login-shell>.brand{justify-content:center}.login-card{border-radius:26px;background:#fff;padding:30px 24px;box-shadow:0 10px 50px #50749208;text-align:center}.login-symbol{height:62px;width:62px;margin:0 auto 21px;border-radius:21px;display:grid;place-items:center;background:#eef7fd;color:#308ec4}.login-card h1{font-size:24px;letter-spacing:.3px}.login-intro{font-size:12px;line-height:1.8;color:#7a91a7;margin-top:8px;margin-bottom:27px}.login-form{text-align:left;gap:18px}.login-privacy{font-size:11px;line-height:1.9;color:#8b9fb3;margin-top:25px}.login-footer{text-align:center;font-size:12px;color:#8199af;letter-spacing:.4px}.login-loading{min-height:146px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#7b94aa;font-size:13px}.spinning{animation:spin 1s linear infinite}.account-status{display:flex;justify-content:space-between;gap:12px;font-size:10px;line-height:1.7;color:#8299af;margin-top:13px}.account-status>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-status>span:last-child{white-space:nowrap}.migration-notice{display:flex;gap:10px;align-items:center;margin-bottom:14px;padding:13px 14px;border:1px solid #dceaf5;background:#f5fbff;border-radius:15px}.migration-notice>div{min-width:0;flex:1}.migration-notice strong{font-size:12px;font-weight:550;color:#4e7793}.migration-notice p{font-size:11px;line-height:1.8;color:#8a9eaf;margin-top:3px}.check-label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;font-size:12px;line-height:1.8;color:#5a748b;text-align:left;cursor:pointer}.check-label input{width:19px;height:19px;min-width:19px;margin:1px 0 0;accent-color:#2d93cc}.check-label span{overflow-wrap:anywhere}.logout-button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:46px;border:1px solid #e3ebf3;border-radius:13px;font-size:13px;color:#7d8fa2}.storage-error p{flex:1}.storage-error .text-button{color:#876326;padding:0 3px;flex-shrink:0}.settings-action-copy{flex:1;min-width:0}.settings-action-copy strong,.settings-summary h3{overflow-wrap:anywhere}.settings-summary h3{font-size:16px;color:#345c77}.import-confirm .button-row{flex-wrap:wrap}.import-confirm .button-row>button{min-width:100px;font-size:12px;padding-left:9px;padding-right:9px}.local-note{line-height:1.7}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:360px){.login-shell{padding-left:16px;padding-right:16px}.login-card{padding:26px 20px}.login-card h1{font-size:22px}.account-status{gap:7px}.check-label{font-size:11px}}@media(prefers-reduced-motion:reduce){.spinning{animation:none}}
