.site-header{z-index:100;isolation:isolate;-webkit-backdrop-filter:blur(12px);background:#fffffff0;border-bottom:1px solid #e5e7eb;position:sticky;top:0}.site-header .header-inner{width:100%;max-width:var(--site-width);justify-content:space-between;align-items:center;gap:12px;min-height:56px;margin:0 auto;padding:8px 16px;display:flex}.site-header .brand{min-width:0;color:var(--text);flex-shrink:0;align-items:center;gap:10px;text-decoration:none;display:flex}.site-header .brand img{border-radius:50%;flex:none;width:34px;height:34px;display:block}.site-header .brand>.brand-name{white-space:nowrap;flex-direction:row;align-items:center;gap:7px;min-width:0;display:flex}.site-header .brand .brand-name b{color:#111;letter-spacing:-.5px;font-size:19px;font-weight:800;line-height:1}.site-header .brand .brand-name b em{color:#2563eb;font-style:normal}.site-header .brand .brand-dot{background:#9ca3af;border-radius:50%;flex:none;width:4px;height:4px;margin:0}.site-header .brand .brand-name small{color:#6b7280;border:0;margin:0;padding:0;font-size:13px;font-weight:400;line-height:1.3;display:inline}.site-header .header-actions{flex:none;align-items:center;gap:6px;display:flex}.site-header .header-actions .share-button{color:#52525b;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;padding:0;text-decoration:none;transition:color .15s,border-color .15s;display:inline-flex}.site-header .header-actions .share-button svg{width:20px;height:20px;display:block}.site-header .header-actions .share-button:hover{color:#2563eb;border-color:#e5e7eb}.site-header .header-actions .share-button:active{background:0 0}.site-header .header-actions .share-button:focus{outline:none}.site-header .header-actions .share-button:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}@media (width<=760px){.site-header .header-inner{gap:8px;min-height:56px;padding:8px 12px}.site-header .brand{gap:8px}.site-header .brand img{width:32px;height:32px}.site-header .brand>.brand-name{gap:6px}.site-header .brand .brand-name b{font-size:18px}.site-header .brand .brand-name small{font-size:12px}.site-header .header-actions{gap:2px}.site-header .header-actions .share-button{width:44px;height:44px}}@media (width<=360px){.site-header .header-inner{gap:6px;padding-left:10px;padding-right:10px}.site-header .brand{gap:6px}.site-header .brand .brand-name{gap:5px}.site-header .brand .brand-name b{font-size:17px}.site-header .brand .brand-name small{font-size:11px}.site-header .header-actions .share-button{width:44px;height:44px}}:root{--site-width:1040px;--text:#0f172a;--brand:#2563eb;--muted:#64748b;--ledger-header-height:61px}.site-header{height:var(--ledger-header-height)}.site-header *{box-sizing:border-box}#header-status:not(:empty){z-index:500;color:#fff;background:#172a46;border-radius:12px;padding:.75rem 1rem;position:fixed;bottom:2rem;left:50%;transform:translate(-50%)}:root{--text:#172235;--site-width:1040px;--blue:#245dcc;color:var(--text);background:#f5f7fb;font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{width:100%;max-width:var(--site-width);margin:0 auto}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #4b84de}#ledger{--line:#dce3ed;min-height:100vh}#ledger .book{top:var(--ledger-header-height);z-index:10;box-shadow:0 1px 0 var(--line);background:#fff;justify-content:center;display:flex;position:sticky}.book button{color:#58677c;background:0 0;border:0;border-bottom:3px solid #0000;flex:1;max-width:176px;padding:14px 4px 12px;font-weight:600}.book [aria-current=page]{border-color:var(--blue);color:var(--blue)}.ledger-content,.ledger-guide{max-width:1000px;margin:0 auto;padding:32px 20px 70px}.ledger-content h1{letter-spacing:-.035em;margin:0 0 24px;font-size:clamp(25px,4vw,34px);line-height:1.3}.ledger-content h2{margin:20px 0 12px;font-size:19px}.home-cards{gap:14px;display:grid}.home-card,.panel,.stats{border:1px solid var(--line);background:#fff;border-radius:16px}.home-card{text-align:left;color:inherit;align-items:center;gap:16px;padding:22px;display:flex}.home-card:hover{border-color:#9db9e6}.home-card strong{font-size:19px;display:block}.home-card small,.record small{color:#58677c;margin-top:5px;font-size:14px;display:block}.icon{color:#2856bf;background:#eaf0ff;border-radius:13px;place-items:center;width:48px;height:48px;display:grid}.icon.view{color:#16755a;background:#e6f4ef}.icon.export{color:#78529a;background:#f1ebfb}.icon svg{width:24px;height:24px}.chev{color:#8491a2;margin-left:auto;font-size:25px}.panel{margin:14px 0;padding:20px}.panel>h2:first-child{margin-top:0}.panel p{color:#58677c;line-height:1.6}.ledger-content label:not(.choices label),.ledger-content legend{font-size:15px;font-weight:600;display:block}.ledger-content input:not([type=radio]):not([type=checkbox]),.ledger-content select,.ledger-content textarea{width:100%;min-width:0;max-width:100%;color:var(--text);background:#fff;border:1px solid #bac7d7;border-radius:9px;min-height:44px;margin-top:6px;padding:11px;font-size:16px;display:block}.ledger-content input[type=date],.ledger-content input[type=month]{-webkit-appearance:none;appearance:none;text-align:left}.ledger-content input::-webkit-date-and-time-value{text-align:left}.panel>label,.panel>fieldset{margin:0 0 18px}fieldset{border:0;min-width:0;padding:0}legend{margin:0 0 7px}.choices,.controls,.calc{flex-wrap:wrap;gap:8px;display:flex}.choices label{cursor:pointer;position:relative}.choices input{opacity:0;position:absolute}.choices span,.controls button,.calc button,.panel button,.back{border:1px solid var(--line);color:var(--text);background:#fff;border-radius:9px;padding:10px 14px;font-size:15px;display:inline-block}.choices input:checked+span,.calc [aria-pressed=true]{color:var(--blue);background:#edf3ff;border-color:#93b3ee}.choices input:focus-visible+span{outline:2px solid var(--blue)}.controls{margin:12px 0 0}.controls .primary{background:var(--blue);color:#fff;border-color:var(--blue)}.back{color:var(--blue);background:0 0;border:none;margin:0 0 16px;padding:0}.period{background:#e6ebf3;border-radius:11px;margin-bottom:16px;padding:4px;display:flex}.period button{color:#56677b;background:0 0;border:0;border-radius:8px;flex:1;padding:9px}.period [aria-current=page]{color:var(--blue);background:#fff;font-weight:700;box-shadow:0 1px 3px #12234218}.stats{grid-template-columns:1fr 1fr;gap:16px;padding:20px;display:grid}.stats dt{color:#59677b;font-size:14px}.stats dd,.balance dd{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:3px 0 0;font-weight:700}.stats dd{font-size:20px}.record{border-bottom:1px solid var(--line);padding:14px 0}.record:last-child{border:0}.record>div,.balance>div{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.record span{font-weight:700}.record p,.preview-list label{overflow-wrap:anywhere}.record footer{justify-content:flex-end;gap:8px;display:flex}.record footer button{padding:6px 10px;font-size:14px}.list details{border-bottom:1px solid var(--line)}.list summary{cursor:pointer;padding:14px 0}.list summary b{float:right}.balance>div{border-bottom:1px solid var(--line);padding:14px 0}.balance>div:nth-child(5){color:var(--blue);font-size:20px}.balance>div:last-child{border:0}.empty{margin:6px}.file{margin-top:15px!important}.preview-list{max-height:260px;overflow:auto}.preview-list label{padding:8px}#site-status.visible{z-index:200;bottom:max(28px, env(safe-area-inset-bottom));color:#fff;background:#1c2d49;border-radius:12px;width:max-content;max-width:90%;padding:12px 19px;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 3px 15px #1a2c4930}#site-status:not(.visible){display:none}@media (width<=540px){.ledger-content{padding:24px 14px 56px}.home-card{padding:18px 16px}.panel{padding:16px}.ledger-content h1{margin-bottom:18px}}.choice-error:not(:empty){color:#a02432;margin-top:6px;display:block}#rate-warning:not(:empty){color:#9a4600;margin:-12px 0 18px;font-size:14px;display:block}.transfer-confirm{width:min(360px,90vw);color:var(--text);border:0;border-radius:14px;padding:22px}.transfer-confirm::backdrop{background:#15223466}.transfer-confirm h2{margin:0;font-size:19px}.transfer-confirm p{white-space:pre-line;line-height:1.6}.ask-confirm .danger{color:#992c3a;background:#fff5f5;border-color:#dbb8bd}.install-entry{min-height:44px;color:var(--blue);background:0 0;border:0;margin-top:12px;padding:8px 4px;font-size:15px}.install-guide ol{padding-left:1.5em;line-height:1.65}.install-guide li+li{margin-top:6px}.scope{background:#e7ecf3;border-radius:12px;gap:4px;margin-bottom:16px;padding:4px;display:flex}.scope button{color:#526278;background:0 0;border:0;border-radius:8px;flex:1;padding:10px 6px}.scope [aria-current=page]{color:var(--blue);background:#fff;font-weight:700}.install-tip,.storage-note{color:#526278;font-size:14px;line-height:1.6}.install-tip{margin:0 4px 15px;display:block}.install-entry[hidden]+.install-tip{display:none}.storage-note{border-top:1px solid var(--line);padding:16px 4px}.storage-note a{color:var(--blue);white-space:nowrap}.clear-section{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.clear-entry{color:#992c3a;background:#fff;border:1px solid #dbb8bd;border-radius:9px;padding:10px 14px}.clear-dialog{border-radius:16px;width:min(448px,92vw);padding:20px}.clear-dialog::backdrop{background:#0006}.clear-dialog>*+*{margin-top:16px}.clear-dialog p{margin:0}.clear-dialog [role=status]:empty{display:none}.clear-dialog .clear-download{color:#1d4ed8;cursor:pointer;background:0 0;border:0;padding:0;font-size:15px;text-decoration:underline}.clear-dialog .clear-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.clear-dialog .clear-actions button{border-radius:9px;min-height:44px;padding:10px 14px;font-size:15px}.clear-dialog .clear-cancel{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.clear-dialog .clear-confirm{color:#992c3a;background:#fff5f5;border:1px solid #dbb8bd}.expense-safety-note{color:#92400e;background:linear-gradient(135deg,#fffbeb 0%,#fff7ed 100%);border:1px solid #fde68a;border-radius:16px;align-items:flex-start;gap:10px;margin:12px 0;padding:12px;display:flex;box-shadow:0 1px 4px #f59e0b14}.expense-safety-note svg{color:#d97706;flex:none;width:19px;height:19px;margin-top:2px}.expense-safety-note strong{color:#78350f;margin-bottom:4px;font-size:14px;display:block}.expense-safety-note p{color:#92400e;margin:0;font-size:13px;line-height:1.65}@media (width<=760px){.ledger-content,.ledger-guide{padding-inline:14px}}.ledger-title{max-width:1000px;margin:0 auto;padding:18px 20px 14px;font-size:26px;font-weight:700;line-height:1.3}@media (width<=760px){.ledger-title{padding:14px 14px 12px;font-size:22px}}.ledger-title p{color:#526174;margin:6px 0 0;font-size:15px;font-weight:400;line-height:1.5}.ledger-content .amount-income{color:#067647}.ledger-content .amount-expense{color:#b42318}.ledger-content .amount-zero{color:#000}.ledger-content .amount-neutral{color:#334155}.month-empty{margin:0 0 12px}.month-add{color:var(--blue);font:inherit;cursor:pointer;background:0 0;border:0;padding:4px 0;text-decoration:underline}.ledger-mode-section{margin:14px 0 26px}.ledger-mode-title{color:#334155;margin:0 0 5px;font-size:14px;font-weight:600;line-height:1.5}.ledger-mode-description{color:#64748b;margin:0 0 12px;font-size:13px;line-height:1.7}.ledger-mode{background:#f1f5f9;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;display:grid}.ledger-mode button{color:#64748b;min-width:0;font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;padding:8px 3px;font-size:13px;font-weight:400}.ledger-mode button[aria-pressed=true]{color:#334155;background:#fff;border-color:#e2e8f0;font-weight:600}.ledger-mode button:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.ledger-faq{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:28px 0 20px;padding:20px 22px}.ledger-faq h2{margin:0 0 17px;font-size:22px}.ledger-faq h3{margin:19px 0 7px;font-size:16px;line-height:1.5}.ledger-faq p{color:#475569;margin:0;font-size:14px;line-height:1.8}@media (width<=540px){.ledger-mode{gap:3px;padding:3px}.ledger-mode button{padding:8px 0;font-size:12px}.ledger-faq{padding:16px 15px}}
