:root{color-scheme:light;--canvas:#cbd8e6;--shell:#e8eef5;--paper:#fff;--paper-blue:#f4f8fc;--ink:#18314d;--muted:#526b83;--blue:#174b84;--line:#a7bad0;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:Verdana,Tahoma,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;margin:0}body{overflow:hidden;background:repeating-linear-gradient(0deg,#ccd9e8 0 2px,#d5e0ec 2px 4px);color:var(--ink);font-size:14px;line-height:1.5;overscroll-behavior:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;min-width:44px;min-height:44px;border:1px solid #8faac5;border-radius:3px;padding:8px 12px;background:linear-gradient(#fff,#edf4fb 47%,#d4e2ee 49%,#eef4f9);color:#245476;box-shadow:0 1px #fff inset,0 1px 1px #7794b333}button:active{background:#c1d6e9;box-shadow:0 1px 3px #516c8755 inset}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}:focus-visible{outline:none}.keyboard-navigation :focus-visible:not([tabindex="-1"]){outline:2px solid #4c8ec3;outline-offset:2px}input:focus,textarea:focus,select:focus{border-color:#4c8ec3;box-shadow:0 0 0 1px #4c8ec3}h1,h2,h3,p,dl{margin:0}h2{font-size:14px}h3{font-size:14px}small{font-size:11px}.muted,.hint{font-size:12px;color:var(--muted);line-height:1.55}.hint{margin:5px 0 10px}.wide{width:100%}.primary-button{border-color:#245a8d;background:linear-gradient(#7daed5,#467fb2 47%,#28669f 49%,#306fa9);box-shadow:0 1px #b7d5ed inset,0 1px 2px #8a9fb444;color:#fff;text-shadow:0 1px #174773;font-weight:700}.primary-button:active{background:#174b84}.danger-button{color:#9a3c3c;border-color:#c1a3a3;background:linear-gradient(#fff,#f4e9e9)}
.app-shell{display:flex;flex-direction:column;width:min(720px,100%);height:100vh;height:100dvh;margin:auto;padding:max(8px,var(--safe-top)) 8px max(4px,var(--safe-bottom));overflow:hidden;border-inline:1px solid #859bb2;background:var(--shell);box-shadow:0 0 0 1px #eef4fa inset,0 0 14px #67819c55}.app-header{display:flex;flex:none;align-items:center;gap:9px;min-height:72px;padding:8px 11px;border:1px solid #0a3766;background:linear-gradient(#65a0d2,#3d7bb8 46%,#2264a5 47%,#0d4785);color:white;text-shadow:0 1px 1px #123f72;box-shadow:0 1px #a5c7e8 inset,0 2px 3px #627d9b55}.app-title{flex:1;min-width:0}.header-meta{font-size:10px;color:#dcecff;margin-bottom:3px}.app-title h1{font-size:23px;line-height:1.15;letter-spacing:.04em;white-space:nowrap}.app-title h1 small{font-size:8px;color:#c8def4;font-weight:400;letter-spacing:.1em;margin-left:4px}.header-button{font-size:12px;min-width:49px;padding:7px;box-shadow:0 1px #fff inset,0 1px 1px #173e67aa}.header-logo{flex:none;display:block;width:44px;height:44px;pointer-events:none;filter:drop-shadow(0 1px 1px #082e5870)}
@property --ledger-phase{syntax:'<angle>';inherits:false;initial-value:0deg}.header-logo-ink{opacity:1}.header-logo-reflection{opacity:0}@supports(opacity:calc(sin(1rad))){.header-logo-ink,.header-logo-reflection{animation:ledger-cycle 4.8s linear infinite}.header-logo-ink{opacity:calc(1 + min(0,sin(var(--ledger-phase))))}.header-logo-reflection{opacity:max(0,sin(var(--ledger-phase)))}}@keyframes ledger-cycle{from{--ledger-phase:0deg}to{--ledger-phase:360deg}}.header-motion-paused .header-logo-ink,.header-motion-paused .header-logo-reflection{animation-play-state:paused}
.primary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none;padding:7px 0}.primary-actions button{min-height:47px;font-weight:700;font-size:14px}.primary-actions button span{font-size:21px;font-weight:400;vertical-align:-1px}.page-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--line);background:var(--paper-blue);scrollbar-gutter:stable}.page-content{padding:0 11px 22px}.month-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;margin:4px -5px 2px}.month-nav button{border:0;box-shadow:none;background:transparent;font-size:25px;padding:4px}.month-nav #monthButton{font-size:15px;font-weight:700}.month-nav #monthButton span+span{font-size:11px;color:var(--muted)}.balance-card{padding:12px 2px 17px;border-bottom:1px solid #ccd7e3}.balance-card h2{font-weight:400;color:#4e6780;font-size:13px}.total-balance{font-size:clamp(29px,8.2vw,36px);line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-weight:700;color:#183f65;margin:7px 0 7px;overflow-wrap:anywhere}.budget-card{padding:12px 2px 15px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:37px}.section-heading>*{min-width:0}.text-button{border:0;background:transparent;box-shadow:none;color:#295c87;font-size:12px;padding:5px 0;min-height:44px;text-align:left}.text-button:active{background:#e2eaf4;box-shadow:none}.text-button span{margin-left:4px}.budget-remaining{font-size:26px;line-height:1.2;font-variant-numeric:tabular-nums;color:#245b82;margin:0 0 9px}.budget-details{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#647990}.budget-details strong{font-weight:400;color:#344f6a;margin-left:4px}.budget-track{height:4px;margin-top:9px;background:#dce5ee;border-radius:2px;overflow:hidden}.budget-track span{display:block;height:100%;width:0;background:#6e9cbd}.budget-card.over-budget .budget-remaining{color:#975347}.budget-card.over-budget .budget-track span{background:#b87565}.segmented{display:grid;grid-template-columns:1fr 1fr;border:1px solid #839db8;border-radius:3px;overflow:hidden;background:#d4e1ee;margin:0 0 6px}.segmented button{border:0;border-radius:0;box-shadow:0 1px #fff inset;background:linear-gradient(#f8fbfe,#dfe9f3);font-size:13px;padding:9px;min-height:44px}.segmented button+button{border-left:1px solid #839db8}.segmented [aria-selected=true]{background:linear-gradient(#7ca1c4,#4b779f);color:#fff;text-shadow:0 1px #345a7a;box-shadow:0 1px 2px #2a537777 inset}.log-tools{min-height:45px}.log-tools p{font-size:11px}.day-group{margin-bottom:8px}.day-title{display:flex;justify-content:space-between;gap:5px;background:#e4ecf4;border-block:1px solid #c0cfdd;padding:6px 7px;font-size:11px;font-weight:400;color:#536e86}.day-title span{font-size:10px}.entry-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:0;border-radius:0;background:#fff;box-shadow:none;padding:12px 8px;min-height:64px;border-bottom:1px solid #e2e8ef}.entry-row:active{background:#e6eff7}.entry-info{display:block;min-width:0}.entry-name{display:block;font-weight:400;font-size:14px;overflow-wrap:anywhere}.entry-meta{display:block;font-size:10px;color:#6b7f91;margin-top:3px}.entry-amount{flex:none;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#344f6c}.positive{color:#39765e}.voided{opacity:.6}.voided .entry-name,.voided .entry-amount{text-decoration:line-through}.empty-state{padding:27px 12px 33px;text-align:center;color:#5d758c;font-size:13px}.empty-state strong{display:block;font-weight:400;font-size:15px;color:#3b5a76;margin-bottom:5px}.source-list{margin-top:13px;background:#fff;border:1px solid #c6d2df}.source-row{display:flex;align-items:center;justify-content:space-between;padding:12px 10px;gap:10px;border-bottom:1px solid #e2e8ef}.source-row:last-child{border:0}.source-row dt{font-size:13px}.source-row dd{margin:0;font-size:16px;font-variant-numeric:tabular-nums;text-align:right}.source-row small{display:block;color:var(--muted);font-size:10px}.pool-card{margin:15px 0;padding:14px 10px;border:1px solid #bdccdc;background:#edf3f9}.pool-amount{font-size:24px;margin:6px 0 7px;font-variant-numeric:tabular-nums}.statusbar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;min-height:27px;padding:2px 3px 0;color:#61768b;font-size:10px}.statusbar button{min-height:44px;min-width:44px;font-size:10px;padding:2px;border:0;background:transparent;box-shadow:none}
.startup{flex:1;min-height:0;overflow:auto}.state-card{margin:clamp(25px,8svh,72px) auto 25px;width:min(420px,calc(100% - 20px));border:1px solid #6e8cac;background:#f8fbfe;box-shadow:0 4px 16px #24456425;padding:21px 20px 24px;text-align:center}.state-card h2{font-size:18px;color:#295677}.state-card p{color:#5c738a;font-size:13px;margin:15px 0}.state-card button{margin-top:10px}.startup-mark{margin:18px auto 3px}.startup-mark img{display:block;margin:auto;border-radius:8px;animation:boot-glow 1.8s ease-in-out infinite}@keyframes boot-glow{50%{opacity:.45}}.inline-error,.state-card .inline-error{color:#975347;white-space:pre-wrap}.sheet-dialog{padding:0;border:0;background:transparent;width:min(540px,calc(100% - 16px));max-width:540px;max-height:calc(100dvh - max(16px,var(--safe-top)) - max(16px,var(--safe-bottom)));overflow:visible}.sheet-dialog::backdrop{background:#10294499}.sheet-frame{display:flex;flex-direction:column;max-height:calc(100dvh - max(16px,var(--safe-top)) - max(16px,var(--safe-bottom)));border:1px solid #6689ab;border-radius:5px;background:#edf3f9;box-shadow:0 8px 30px #0b294b66;overflow:hidden}.sheet-header{display:flex;align-items:center;gap:7px;flex:none;min-height:51px;padding:3px 5px 3px 12px;background:linear-gradient(#f6fafe,#d2e0ed);border-bottom:1px solid #9eb4ca;box-shadow:0 1px #fff inset}.sheet-header h2{flex:1;font-size:15px;color:#274f72}.sheet-header button{flex:none;width:44px;height:44px;min-width:44px;background:transparent;box-shadow:none;border:0;font-size:25px;padding:0}.sheet-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px}.sheet-message{flex:none;border-top:1px solid #c3d0de;padding:10px 14px;color:#975347;font-size:12px;background:#fff9ee;white-space:pre-wrap;max-height:130px;overflow:auto}.form-grid{display:grid;gap:13px}.field{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:700;color:#42617c}.field input,.field select,.field textarea{display:block;width:100%;min-height:44px;padding:10px 9px;border:1px solid #9cb1c7;border-radius:3px;background:#fff;font-size:16px;font-weight:400;line-height:1.35;box-shadow:0 1px 2px #64839e18 inset}.field textarea{min-height:85px;resize:vertical}.field input[type=checkbox]{width:22px;height:22px;min-height:0}.amount-field{position:relative}.amount-field input{font-size:28px;font-variant-numeric:tabular-nums;padding-left:29px}.amount-field::before{content:'¥';position:absolute;bottom:11px;left:10px;font-size:20px;color:#72879c;font-weight:400}.form-grid fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:13px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:9px}.form-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.form-actions>*{flex:1 1 100px;min-width:44px}.form-section{margin:15px 0;padding-top:13px;border-top:1px solid #c4d2df}.form-section h3{margin-bottom:9px}.menu-list{display:grid;border:1px solid #bdccdc;background:#fff}.menu-list button{display:flex;justify-content:space-between;align-items:center;gap:7px;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid #d7e1eb;background:white;text-align:left;padding:13px 10px}.menu-list button:last-child{border:0}.menu-list button::after{content:'›';color:#7c94a9;font-size:21px}.menu-list button:active{background:#e5eef6}.detail-list{margin:0}.detail-row{display:grid;grid-template-columns:78px minmax(0,1fr);padding:9px 0;border-bottom:1px solid #dce4ed;font-size:12px;gap:9px}.detail-row dt{color:#61798e}.detail-row dd{margin:0;overflow-wrap:anywhere}.detail-amount{font-size:31px;font-variant-numeric:tabular-nums;margin:3px 0 15px;color:#274e70}.review-card{border:1px solid #b8cadd;background:#fff;padding:12px;margin-bottom:13px}.review-card h3{margin-bottom:9px}.review-card .hint{white-space:pre-wrap}.check-label{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px}.check-label input{width:19px;height:19px;flex:none}.difference-card{padding:13px;background:#fff8e9;border:1px solid #d4bd8c;margin:12px 0}.difference-card p{font-size:13px;margin-bottom:7px}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.image-preview{position:relative;min-width:0;padding:7px;background:#fff;border:1px solid #c5d2df}.image-preview img{display:block;width:100%;height:130px;object-fit:contain;background:#eef3f8}.image-preview .image-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-top:4px}.image-actions button{padding:5px;min-width:44px;font-size:11px}.image-actions button:last-child{grid-column:1/-1}.image-preview p{font-size:11px;color:#60798e}.image-input{display:block;padding:14px 8px;border:1px dashed #88a2bc;background:#f8fbfe;text-align:center;position:relative;color:#2d6087;font-size:14px;cursor:pointer}.image-input input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.job-row{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid #bdccdb;border-bottom:0;box-shadow:none;background:white;border-radius:0;padding:12px 9px}.job-row:last-child{border-bottom:1px solid #bdccdb}.job-row strong{font-size:13px;font-weight:400}.job-row small{display:block;color:#647c91;font-size:11px}.status-chip{font-size:10px;color:#5a738b;flex:none}.history-item{border-bottom:1px solid #d3dfea;padding:13px 0}.history-item strong{display:block;font-weight:400;font-size:14px}.history-item p{font-size:12px;color:var(--muted);margin-top:4px}.candidate-warnings{padding-left:18px;color:#8c6340;font-size:12px}.saving-indicator{color:#536c83;font-size:12px}.install-steps{font-size:13px;padding-left:20px}.install-steps li{margin:8px 0}#toast{position:fixed;z-index:50;left:50%;transform:translateX(-50%);bottom:max(35px,var(--safe-bottom));width:max-content;max-width:calc(100% - 32px);padding:9px 13px;border:1px solid #164a79;border-radius:4px;background:linear-gradient(#4078ae,#174b84);box-shadow:0 3px 10px #18314d66;color:white;font-size:12px;pointer-events:none}
@media(max-width:350px){.app-shell{padding-left:5px;padding-right:5px}.app-header{padding-inline:8px;gap:6px}.app-title h1{font-size:22px}.app-title h1 small{font-size:7px;letter-spacing:.06em}.header-logo{width:35px;height:39px}.header-button{min-width:45px;padding-inline:5px}.page-content{padding-inline:9px}.sheet-scroll{padding:11px}.budget-details{font-size:10px}.entry-row{padding-inline:5px;gap:5px}.entry-amount{font-size:15px}.image-preview img{height:110px}}
@media(min-width:600px){.page-content{padding-inline:23px}.balance-card{padding-top:16px}.total-balance{font-size:38px}.page-scroll{scrollbar-gutter:stable}.app-title h1 small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.header-logo-ink,.header-logo-reflection,.startup-mark img{animation:none!important}.header-logo-ink{opacity:1}.header-logo-reflection{opacity:0}}
.import-entry{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.import-entry>span+span{margin-left:0}.import-status-badge{display:inline-block;margin:0;padding:1px 5px;border:1px solid #8eaac4;border-radius:10px;background:#e3eef8;color:#315e84;font-size:10px;font-weight:400;line-height:1.4}.import-status-badge.has-failures{border-color:#c8ae93;background:#fff5e8;color:#86603f}.import-status-badge.is-active{border-color:#bdccdb;background:#edf3f9;color:#647d92}
