*{box-sizing:border-box} :root{font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#243c39;background:#f6f7f3;font-synthesis:none;--green:#1e6156;--muted:#6d7e77;--line:#e3e8e1}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #d99a60;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}button,input,select,textarea{transition:border-color .15s,background .15s}input,select,textarea{color:#243c39}button:hover{filter:brightness(.97)}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:224px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:36px 22px;display:flex;flex-direction:column;position:fixed;height:100vh;z-index:1}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:750;letter-spacing:1px}.brand-mark{background:var(--green);color:#fff;border-radius:15px 15px 15px 5px;display:grid;place-items:center;width:42px;height:45px;font-size:23px}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:2px;margin-top:6px}.nav-caption{font-size:11px;color:#8d9a94;letter-spacing:2px;margin:56px 14px 14px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:15px 13px;background:transparent;color:#687a72;border-radius:10px;text-align:left;margin-bottom:9px;font-size:14px}.nav-item>span{font-size:21px;line-height:20px}.nav-item small{font-size:10px;margin-left:auto;color:#93a097}.nav-item.active{color:var(--green);background:#edf4ee;font-weight:650}.side-note{margin-top:auto;padding:18px 10px 0;color:#88968e;font-size:11px}.side-note p{font-size:12px;color:#5c7669}.tiny-dot{display:inline-block;background:#60907b;width:6px;height:6px;border-radius:50%}main{margin-left:224px;padding:0 46px 28px;width:calc(100% - 224px);max-width:1700px}.topbar{height:89px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:11px}.breadcrumb{color:#8a978f}.breadcrumb b{color:#60746a;font-weight:500;margin-left:6px}.privacy-pill{border:1px solid #dce6da;background:#eef3e9;padding:7px 11px;border-radius:20px;font-size:10px;color:#617a4e}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:37px 0 29px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:#789184;margin:0 0 12px}h1{font-size:31px;letter-spacing:-.7px;margin:0 0 11px;font-weight:650}h2{font-size:18px;margin:0;font-weight:650}h3{font-size:14px;margin:0 0 8px}.muted{color:var(--muted);font-size:12px;line-height:1.8;margin:0}.primary,.secondary,.subtle{border-radius:8px;min-height:42px;padding:10px 17px;font-size:12px;white-space:nowrap}.primary{background:var(--green);color:#fff;box-shadow:0 4px 7px #1e615611}.primary>span{font-size:20px;vertical-align:middle;margin-right:6px}.secondary{background:#fff;border:1px solid #d7e0d7;color:#435e51}.subtle{background:#eff2ec;color:#607365}.text-button{background:transparent;color:var(--green);font-size:12px;min-height:36px;padding:7px 0}.summary-grid{display:grid;grid-template-columns:1.15fr 1fr 1.15fr;gap:16px;margin-bottom:28px}.summary{border:1px solid var(--line);border-radius:13px;background:#fff;padding:24px;position:relative;overflow:hidden;min-height:165px}.summary>span:first-child{font-size:12px;color:#6a7f70;position:relative;z-index:1}.summary>span small{font-size:10px;margin-left:9px;color:inherit;opacity:.6}.summary strong{display:block;font-size:31px;letter-spacing:-1px;font-weight:600;margin-top:15px;position:relative;z-index:1}.summary strong small{font-size:14px;font-weight:400;letter-spacing:0}.summary p{font-size:11px;color:#8b9b90;margin:10px 0 0;position:relative;z-index:1}.summary p b{font-weight:400}.main-summary{background:#235d52;border-color:#235d52;color:#fff}.main-summary>span:first-child{color:#d0e4d6}.main-summary p{color:#c0d8ca}.decor-circle{border:28px solid #ffffff06;border-radius:50%;height:170px;width:170px;position:absolute;right:-46px;bottom:-65px}.calm{background:#f0f1e6}.summary .goal{font-size:17px;letter-spacing:0;margin-top:24px}.goal span{color:#9b996a;float:right;font-size:24px}.records-panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:25px 25px 19px;gap:14px}.panel-heading p{font-size:11px;margin-top:7px}.tools{display:flex;gap:9px;padding:0 25px 19px}.search{display:flex;align-items:center;flex:1;background:#f7f8f5;border:1px solid #e4e8e0;border-radius:8px;min-width:90px}.search>span{font-size:23px;color:#8a9b8d;padding:0 10px}.search input{border:0;background:transparent;width:100%;min-width:0;outline:none;padding:10px 8px 10px 0;font-size:12px}.search:focus-within{outline:2px solid #769e83}.tools select,.tools>input{padding:9px;border:1px solid var(--line);border-radius:8px;font-size:11px;min-width:0;background:#fff}.record-tabs{border-top:1px solid #f2f4ef;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 25px}.tab{padding:15px 0;font-size:12px;background:transparent;color:#829185;border-bottom:2px solid transparent}.tab.active{color:var(--green);border-bottom-color:var(--green);font-weight:650}.tab span{background:#f0f3ed;border-radius:5px;padding:2px 5px;font-size:10px;margin-left:5px}#result-count{margin-left:auto;color:#96a095;font-size:10px}.empty{min-height:225px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:28px}.empty-icon{width:52px;height:58px;border-radius:9px;background:#f2f4eb;display:grid;place-items:center;color:#9caa8e;font-size:29px;margin-bottom:15px}.empty h3{font-size:14px;font-weight:550}.empty p{font-size:12px;color:#8a978d;line-height:1.9;margin:3px 0 14px}.record-row{display:flex;align-items:center;gap:14px;padding:19px 25px;border-bottom:1px solid #eef1ea}.record-row:last-child{border-bottom:0}.receipt-thumb{height:48px;width:43px;border-radius:7px;background:#f2f3ec;display:grid;place-items:center;flex-shrink:0;color:#9cab92;overflow:hidden;font-size:24px}.receipt-thumb img{height:100%;width:100%;object-fit:cover}.record-info{flex:1;min-width:0}.record-title{font-size:13px;font-weight:600;margin:0 0 6px;overflow-wrap:anywhere}.record-meta{font-size:10px;color:#89968c;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.category-pill{color:#637e65;background:#f0f4ec;padding:3px 7px;border-radius:4px}.record-note{color:#819081;font-size:11px;margin:7px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.record-right{text-align:right;min-width:120px}.record-amount{font-size:15px;font-weight:600}.record-amount small{font-size:10px;font-weight:400;color:#879388}.record-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:4px}.record-actions button{font-size:11px;padding:5px 0;background:transparent;color:#6a8174;min-height:30px}.record-actions .delete{color:#b47c65}.filtered-total{text-align:right;font-size:11px;padding:13px 25px;background:#fafbf8;color:#7e9081}.filtered-total b{color:#375b48;font-size:13px;margin-left:5px}.backup-bar{margin-top:24px;display:flex;align-items:center;justify-content:space-between;padding:24px 0;gap:20px;border-top:1px solid var(--line)}.backup-bar h3{font-size:12px}.backup-bar p{font-size:11px;color:#8a998e;margin:0;line-height:1.8}.backup-actions{display:flex;gap:8px}.backup-actions button{font-size:11px}.footer-note{font-size:10px;color:#9aa69b;margin:0;text-align:center;line-height:1.8}dialog{border:1px solid #dce4da;border-radius:16px;padding:0;color:#243c39;box-shadow:0 24px 100px #18372d33;max-height:92dvh;width:min(780px,calc(100% - 32px))}dialog::backdrop{background:#19352d77;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 28px;border-bottom:1px solid var(--line)}.dialog-heading .eyebrow{font-size:9px;margin-bottom:8px}.dialog-heading h2{font-size:20px}.icon-button{background:#f1f4ee;border-radius:50%;width:34px;height:34px;font-size:25px;color:#6c7e70}.editor-grid{display:grid;grid-template-columns:230px 1fr;gap:26px;padding:25px 28px}.upload-box{border:1px dashed #bfcdbb;border-radius:11px;background:#f6f8f1;min-height:250px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;cursor:pointer}.upload-box #upload-hint{padding:22px 12px}.upload-icon{display:block;font-size:37px;color:#7f9775;margin-bottom:16px}.upload-box b{display:block;font-size:13px;font-weight:550}.upload-box small{display:block;font-size:10px;color:#8c9a86;line-height:1.8;margin-top:10px}.upload-box img{max-width:100%;max-height:330px;object-fit:contain}#photo{font-size:10px;width:100%;margin-top:12px;color:#7b8c78}.manual-note{font-size:11px;color:#83917c;line-height:1.9}.fields{display:flex;flex-direction:column;gap:15px}.fields>label,.two-cols label{display:flex;flex-direction:column;gap:8px;font-size:12px}.fields label>span:not(.check span){display:contents;color:#b17c60}.fields label small{font-size:10px;color:#9ba693}.fields input:not([type=checkbox]),.fields textarea,.fields select{width:100%;border:1px solid #dce4d7;border-radius:7px;padding:11px 10px;font-size:13px;background:#fff;min-width:0}.fields input:focus,.fields textarea:focus,.fields select:focus{outline:2px solid #72987e;outline-offset:1px}.fields textarea{resize:vertical;min-height:78px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields .check{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:11px;line-height:1.6}.check input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--line)}.error{color:#a74432;font-size:12px;margin:0;line-height:1.7;min-height:0}.error:empty{display:none}.confirm-content{padding:27px 0 0}.confirm-content h2,.confirm-content>p{padding:0 27px}.confirm-content p{font-size:13px;line-height:1.9;white-space:pre-wrap;color:#72806f;margin:16px 0 25px}#confirm-dialog{max-width:430px}.toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);z-index:10;background:#244c3e;color:#fff;padding:15px 22px;border-radius:9px;max-width:calc(100% - 28px);font-size:12px;line-height:1.6;box-shadow:0 5px 24px #122f2633;overflow-wrap:anywhere}.future-card{margin-top:30px;padding:55px 25px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:center}.future-card p{font-size:13px;color:#6d7e77;line-height:2}.future-card button{margin-top:20px}.future-icon{font-size:55px;color:#adba94;display:block;margin-bottom:20px}#future-page{padding-top:40px}
@media(min-width:1450px){main{padding-left:65px;padding-right:65px}.summary{min-height:180px}}@media(max-width:1100px){.sidebar{width:190px;padding:28px 16px}.brand{font-size:18px}main{margin-left:190px;width:calc(100% - 190px);padding:0 26px 25px}.summary{padding:20px}.summary-grid{gap:11px}.summary .goal{font-size:14px}.tools{flex-wrap:wrap}.tools .search{min-width:180px}.page-heading{gap:12px}h1{font-size:27px}.backup-bar{align-items:flex-start}.backup-actions{flex-shrink:0}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto;width:100%;padding:18px 20px 0;border-right:0;border-bottom:1px solid var(--line);background:#fff}.brand{font-size:19px}.brand-mark{width:35px;height:38px;font-size:19px;border-radius:11px 11px 11px 4px}.brand small{font-size:9px;letter-spacing:1.5px}.nav-caption,.side-note{display:none}.sidebar nav{display:flex;gap:7px;margin-top:20px}.nav-item{width:auto;justify-content:center;flex:1;margin:0;border-radius:7px 7px 0 0;padding:12px 3px;font-size:11px;gap:6px}.nav-item>span{font-size:18px}.nav-item small{display:none}.nav-item.active{border-bottom:2px solid var(--green)}main{margin:0;width:100%;padding:0 19px 24px}.topbar{height:58px;font-size:10px}.privacy-pill{font-size:9px;padding:6px 8px}.page-heading{display:block;margin:28px 0 23px}.eyebrow{font-size:8px;letter-spacing:1.8px}h1{font-size:27px}.page-heading .primary{margin-top:19px;width:100%;font-size:13px;min-height:46px}.summary-grid{grid-template-columns:1.15fr 1fr;gap:10px;margin-bottom:21px}.summary{padding:18px 14px;min-height:137px}.summary strong{font-size:27px;margin-top:13px}.summary strong small{font-size:11px}.summary>span:first-child{font-size:11px}.summary p{font-size:9px;margin-top:9px}.summary>span small{display:block;margin:4px 0 0}.summary.calm{display:none}.panel-heading{padding:19px 16px 17px;display:block}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px}.panel-heading>.text-button{margin-top:4px;font-size:11px}.tools{padding:0 16px 16px;gap:7px}.tools .search{flex:1 0 100%;min-height:41px}.tools select{flex:1;width:95px;font-size:10px}.tools>input{flex:1;width:115px;font-size:10px}.tools .subtle{padding:8px;font-size:10px;min-height:37px}.record-tabs{padding:0 16px;gap:20px}.tab{font-size:11px}#result-count{font-size:9px}.empty{min-height:220px;padding:22px 13px}.empty h3{font-size:13px}.empty p{font-size:11px}.record-row{padding:16px;gap:10px;align-items:flex-start}.receipt-thumb{height:42px;width:35px}.record-right{min-width:95px}.record-title{font-size:12px}.record-amount{font-size:13px}.record-amount small{font-size:9px}.record-meta{gap:5px;font-size:9px}.record-note{font-size:10px}.record-actions{gap:11px}.record-actions button{font-size:10px}.filtered-total{padding:12px 16px;font-size:10px}.backup-bar{display:block;padding:21px 0 17px;margin-top:22px}.backup-bar p{font-size:10px}.backup-actions{margin-top:15px;display:grid;grid-template-columns:1fr 1fr}.backup-actions button{min-height:41px}.footer-note{font-size:9px}.editor-grid{display:flex;flex-direction:column;padding:19px;gap:19px}.dialog-heading{padding:20px}.dialog-heading h2{font-size:18px}.upload-box{min-height:130px}.upload-box #upload-hint{padding:16px}.upload-icon{font-size:28px;margin-bottom:7px}.upload-box small{margin-top:7px}.upload-box img{max-height:250px}.manual-note{margin-bottom:0}.fields{gap:17px}.fields input:not([type=checkbox]),.fields select,.fields textarea{font-size:16px;padding:11px 8px}.two-cols{gap:9px;grid-template-columns:1.1fr 1fr}.fields .check{font-size:12px}.dialog-footer{padding:17px 20px;position:sticky;bottom:0;background:#fff}.dialog-footer button{min-height:44px}.confirm-content h2,.confirm-content>p{padding-left:22px;padding-right:22px}.toast{bottom:18px;width:max-content;font-size:12px}dialog{max-height:94dvh;width:calc(100% - 20px)}.future-card{padding:35px 18px}}
.backup-content{padding:24px 28px}.backup-content>p{margin-bottom:14px}.download-link{display:inline-block;margin:8px 0 22px;text-decoration:none}.backup-content summary{font-size:12px;color:#5e7a64;cursor:pointer;margin:10px 0}.backup-content textarea{margin-top:12px;max-width:100%;width:100%;font-family:Consolas,monospace;font-size:11px;padding:10px;border:1px solid #dce4d7;border-radius:7px}.backup-content details label{display:block;font-size:11px}
#import-report { width: min(35rem, calc(100% - 2rem)); }
#import-report .backup-content { overflow-y: auto; }
.import-counts { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
.import-counts th, .import-counts td { padding: .5rem .25rem; border-bottom: 1px solid currentColor; }
.import-counts :is(th, td):not(:first-child) { text-align: right; }
#import-conflicts { margin-top: 1rem; }
#import-conflict-items { padding-inline-start: 1.2rem; }
#import-conflict-items li + li { margin-top: .45rem; }
.import-pages { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
