.startup-hint,.connection-error{width:min(920px,calc(100% - 32px));margin:12px auto;padding:12px 14px;border:1px solid #efc9c4;border-radius:10px;background:#fff3f1;color:#9f4d45;font-size:13px}.connection-error{display:flex;justify-content:space-between;align-items:center;gap:12px}.connection-error button{border:0;border-radius:8px;background:#b75049;color:#fff;min-height:38px;padding:7px 12px;white-space:nowrap}
:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#203039;background:#f7f9fa;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.chart-viewport:focus-visible{outline:3px solid #78b7c9;outline-offset:2px}.app-header{height:64px;background:#fff;border-bottom:1px solid #e3e9ec}.header-inner{height:100%;width:min(920px,calc(100% - 32px));margin:auto;display:flex;justify-content:space-between;align-items:center}.app-header h1{font-size:19px;letter-spacing:.01em;margin:0;font-weight:750}.icon-button{height:42px;width:42px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#435a65}.icon-button:hover{background:#eef4f6}.icon-button svg,.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-main{width:min(920px,calc(100% - 32px));margin:0 auto;padding:23px 0 105px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.page-heading h2{font-size:22px;line-height:1.2;margin:0 0 4px}.page-heading p{font-size:12px;color:#788b95;margin:0}.zoom-controls{display:flex;align-items:center;gap:4px;border:1px solid #dce6ea;border-radius:12px;background:#fff;flex:none;padding:3px}.zoom-controls button{border:0;background:transparent;border-radius:9px;color:#2b6d80;font-size:21px;width:37px;height:35px}.zoom-controls button:hover{background:#edf5f7}.zoom-controls span{font-size:11px;color:#607781;min-width:35px;text-align:center}.chart-viewport{height:min(56vh,560px);min-height:340px;overflow:auto;background:#fff;border:1px solid #e1e8eb;border-radius:12px;overscroll-behavior:contain;scrollbar-color:#b7cdd5 transparent}.chart-viewport svg{display:block;height:100%;max-width:none}.chart-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:15px;color:#657a84;font-size:11px}.chart-legend span{display:flex;gap:6px;align-items:center}.key{display:inline-block;width:18px;border-top:3px solid}.key.personal{border-color:#d55e55}.key.middle{border-color:#508494}.key.reference{border-color:#b2c8d0}.chart-note{font-size:11px;color:#879aa3;line-height:1.5;margin:10px 0 0}.empty-state{border:1px solid #e1e8eb;border-radius:12px;background:#fff;text-align:center;padding:100px 20px;color:#596f7a}.empty-state p{font-size:16px;font-weight:650;margin:0 0 7px}.empty-state span{font-size:12px;color:#9aabb2}.records-list{background:#fff;border:1px solid #e1e8eb;border-radius:12px;overflow:hidden}.record-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:15px 16px;border-bottom:1px solid #e9eef0}.record-row:last-child{border-bottom:0}.record-main{min-width:0}.record-when{font-size:14px;font-weight:700;color:#21343c}.record-age{font-size:12px;color:#82949c;margin-top:5px}.record-note{font-size:12px;color:#82949c;overflow-wrap:anywhere;margin-top:4px}.record-result{text-align:right;white-space:nowrap}.record-height{font-size:19px;font-weight:750;color:#127b97}.record-height small{font-size:11px;font-weight:500}.record-percent{font-size:12px;color:#567d8c;margin-top:2px}.record-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.record-actions button{border:0;background:#edf4f6;color:#306b7c;border-radius:8px;min-height:34px;padding:5px 13px;font-size:12px}.record-actions button.delete{background:#fcf0ef;color:#b44e48}.fab{position:fixed;right:max(24px,calc((100vw - 920px)/2 + 20px));bottom:calc(80px + env(safe-area-inset-bottom));height:56px;width:56px;border:0;border-radius:50%;background:#117e99;color:#fff;font-size:34px;font-weight:300;line-height:1;box-shadow:0 5px 17px #144b5f37;z-index:10}.fab:hover{background:#086981}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dce6e9;padding-bottom:env(safe-area-inset-bottom);z-index:9}.nav-inner{height:68px;width:min(920px,100%);margin:auto;display:grid;grid-template-columns:1fr 1fr}.bottom-nav button{border:0;background:transparent;color:#8296a0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;min-height:54px}.bottom-nav button[aria-current="page"]{color:#117e99;font-weight:700}.notice{position:fixed;top:74px;left:50%;transform:translateX(-50%);z-index:40;background:#e8f4f6;color:#175d70;border:1px solid #cde7ee;padding:11px 14px;border-radius:10px;width:min(500px,calc(100% - 28px));box-shadow:0 8px 25px #263e4c20;font-size:13px}.notice.error{background:#fff0ee;color:#a44742;border-color:#f2d1cc}dialog{border:0;padding:0;box-shadow:0 20px 70px #172d3a3d}dialog::backdrop{background:#18344380}.sheet{width:min(440px,calc(100% - 20px));max-height:min(90vh,800px);border-radius:16px}.dialog-content{padding:23px;overflow:auto;max-height:min(90vh,800px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.dialog-content h2{font-size:20px;margin:0}.dialog-content h3{font-size:15px;margin:0 0 12px}.close-button{border:0;background:transparent;color:#687e88;font-size:27px;line-height:1;width:36px;height:36px;border-radius:8px}.dialog-content label:not(.file-button){display:block;font-size:13px;font-weight:650;color:#435b65;margin-bottom:18px}.dialog-content input,.dialog-content select,.dialog-content textarea{display:block;width:100%;min-height:46px;margin-top:8px;padding:10px 12px;border:1px solid #d9e5e8;border-radius:9px;color:#223840;background:#fff;min-width:0}.dialog-content textarea{resize:vertical}.primary-button,.secondary-button,.danger-button{border:0;border-radius:9px;min-height:43px;padding:10px 14px;font-size:13px;font-weight:700}.primary-button{width:100%;background:#117e99;color:#fff}.secondary-button{background:#eef4f6;color:#306c7e}.danger-button{background:#c9514a;color:#fff}.settings-divider{height:1px;background:#e8eef0;margin:25px 0 20px}.backup-row{display:flex;gap:9px;flex-wrap:wrap}.file-button{display:inline-flex;align-items:center;cursor:pointer}.file-button input{display:none}.settings-footnote{font-size:11px;line-height:1.6;color:#899ca5;margin:23px 0 0}.confirm-dialog{width:min(390px,calc(100% - 28px));border-radius:15px}.confirm-dialog p{font-size:13px;color:#607580;line-height:1.6;margin:14px 0 25px}.confirm-actions{display:flex;justify-content:flex-end;gap:9px}@media(max-width:600px){.app-header{height:58px}.app-main{padding-top:18px;padding-bottom:calc(150px + env(safe-area-inset-bottom))}.page-heading h2{font-size:20px}.chart-viewport{height:clamp(280px,calc(100dvh - 365px),560px);min-height:0}.record-row{padding:14px}.fab{right:20px;bottom:calc(82px + env(safe-area-inset-bottom))}.sheet{position:fixed;bottom:0;margin:0 auto;max-height:92dvh;width:100%;max-width:none;border-radius:18px 18px 0 0}.sheet .dialog-content{max-height:92dvh;padding-bottom:calc(23px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:no-preference){.fab,.primary-button,.secondary-button{transition:background .15s ease,transform .15s ease}.fab:hover,.primary-button:hover{transform:translateY(-1px)}}
