:root{--bg:#f6f5ef;--paper:#fffefa;--ink:#243c35;--muted:#7a857d;--green:#194b40;--lime:#dbeab8;--line:#e6e8de;--orange:#bb693f;--red:#b24d43;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:15px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #a2c56b;outline-offset:3px}input,select,textarea{width:100%;min-height:48px;border:1px solid #dadfd5;background:white;border-radius:12px;padding:12px;color:var(--ink)}textarea{min-height:85px;resize:vertical}label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px}h2{font-size:20px}h3{font-size:16px}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.btn{border:0;border-radius:12px;padding:13px 20px;min-height:48px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:white;text-decoration:none}.btn.secondary{background:#edf0e6;color:var(--green)}.btn.ghost{background:transparent;color:var(--muted)}.btn.danger{background:#fae9e5;color:var(--red)}.full{width:100%}.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.stack{display:grid;gap:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px}.error{color:var(--red);background:#fff0ec;padding:12px;border-radius:10px;font-size:13px;line-height:1.6}.hint{font-size:13px;line-height:1.7;color:var(--muted)}.logo{display:flex;align-items:center;gap:12px;font-weight:700;font-size:21px}.catmark{width:42px;height:42px;color:var(--green)}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{padding:32px 24px;border-right:1px solid var(--line);position:fixed;top:0;bottom:0;width:230px;display:flex;flex-direction:column;background:var(--paper)}.side-nav{display:grid;gap:8px;margin-top:50px}.navbtn{border:0;background:transparent;padding:14px 16px;border-radius:12px;color:var(--muted);text-align:left;font-weight:600;display:flex;align-items:center;gap:12px}.navbtn.active{color:var(--green);background:#eaf0df}.side-note{margin-top:auto;font-size:12px;color:var(--muted);line-height:1.8}.main{grid-column:2;padding:40px 5%;max-width:1450px;width:100%;margin:auto}.topbar{margin-bottom:32px}.userbadge{display:inline-flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}.avatar{width:34px;height:34px;border-radius:50%;background:var(--lime);color:var(--green);display:grid;place-items:center}.hero{background:var(--green);color:#fff;border-radius:24px;padding:30px;position:relative;overflow:hidden}.hero .eyebrow,.hero .muted{color:#b9ccc2}.hero .amount{font-size:46px;letter-spacing:-1px;font-weight:650;margin:14px 0}.hero small{color:#b9ccc2}.hero-top{position:relative;z-index:1}.hero-icon{position:absolute;right:25px;bottom:-18px;width:180px;opacity:.12;transform:rotate(-12deg)}.hero-footer{display:flex;gap:32px;border-top:1px solid #ffffff26;margin-top:24px;padding-top:20px}.hero-footer b{display:block;font-size:22px;margin-top:7px}.summary-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}.quick{background:#f0f2e7;border:0;border-radius:16px;padding:20px 6px;color:var(--ink);display:grid;gap:10px;justify-items:center;font-size:13px}.quick svg{width:27px;height:27px}.section{margin-top:30px}.section-head{margin-bottom:18px}.text-btn{color:var(--green);font-size:13px;background:none;border:0;padding:8px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat-value{font-size:26px;font-weight:650;margin:12px 0 6px}.category-line{display:flex;gap:13px;align-items:center;margin:18px 0}.bar{height:6px;background:#eef0e7;border-radius:8px;overflow:hidden;margin-top:9px}.bar i{display:block;height:100%;background:#7c9870;border-radius:8px}.category-body{flex:1}.txn{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;color:var(--ink);background:none;border-top:0;border-left:0;border-right:0}.txn:last-child{border-bottom:0}.txn-icon{background:#edf0e3;border-radius:13px;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;font-size:20px}.txn-body{min-width:0;flex:1}.txn-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550;font-size:14px}.txn-meta{font-size:12px;color:var(--muted);margin-top:7px}.txn-amount{text-align:right;flex-shrink:0;font-weight:600;font-size:16px}.positive{color:#3b8163}.negative{color:var(--orange)}.pill{display:inline-block;font-size:11px;border-radius:6px;padding:3px 6px;background:#f5ead5;color:#8c703b;margin-left:5px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.filters input{flex:1;min-width:160px}.filters select{width:auto;max-width:180px}.tabs{display:flex;gap:6px;padding:5px;border-radius:14px;background:#e9ede2;overflow-x:auto}.tab{border:0;border-radius:10px;padding:11px 16px;white-space:nowrap;background:none;color:var(--muted)}.tab.active{background:var(--paper);color:var(--green);box-shadow:0 2px 5px #20332908}.empty{padding:40px 15px;text-align:center;color:var(--muted);line-height:1.8}.mobile-nav{display:none}.notice{background:#f3ecdc;border-radius:14px;padding:14px 18px;font-size:13px;color:#846b3a;line-height:1.6}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:var(--green);color:#fff;padding:8vw 7vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art .catmark{color:#dbeab8;width:60px;height:60px}.auth-art h1{font-size:44px;line-height:1.5;margin:36px 0 20px}.auth-art p{color:#becfc3;line-height:1.9}.auth-art .art-cat{width:260px;align-self:center;margin-top:50px;color:#dbeab8}.auth-form{display:flex;align-items:center;justify-content:center;padding:35px}.auth-inner{width:100%;max-width:360px}.auth-inner h2{font-size:28px;margin-bottom:10px}.auth-inner form{margin-top:32px}.auth-inner .logo{margin-bottom:44px}.auth-footer{margin-top:30px;color:var(--muted);font-size:12px;line-height:1.8;text-align:center}dialog{border:0;border-radius:24px;background:var(--paper);padding:28px;width:540px;max-width:calc(100% - 24px);max-height:90dvh;color:var(--ink);box-shadow:0 25px 90px #152c352e}dialog::backdrop{background:#16352f70;backdrop-filter:blur(3px)}.dialog-head{margin-bottom:24px}.close{border:0;background:#eef0e7;border-radius:50%;width:34px;height:34px;font-size:22px;color:var(--muted)}.amount-input{font-size:30px;font-weight:650;padding:16px}.editor-actions{display:flex;gap:10px;margin-top:24px}.editor-actions .btn{flex:1}.details-toggle{cursor:pointer;color:var(--muted);font-size:13px;padding:8px 0}details[open] summary{margin-bottom:14px}.filebox{border:1px dashed #b4c2aa;border-radius:12px;padding:14px;background:#f4f6ed}.filebox input{min-height:0;border:0;padding:4px;background:transparent;font-size:12px}.attachments{display:grid;gap:8px}.attachments a{color:var(--green);font-size:13px}.member{padding:18px 0;border-bottom:1px solid var(--line)}.member small{display:block;margin-top:5px}.loading{padding:80px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#203b33;color:white;padding:13px 22px;border-radius:12px;z-index:100;max-width:90%;font-size:14px;display:none}.subnote{margin-top:18px;font-size:12px;color:var(--muted);line-height:1.8}
@media(max-width:950px){.shell{grid-template-columns:180px 1fr}.sidebar{width:180px;padding:28px 18px}.main{padding:30px 24px}.summary-grid{grid-template-columns:1fr}.hero .amount{font-size:40px}.stat-grid{gap:10px}.card{padding:20px}.auth-art{padding:45px}.auth-art h1{font-size:34px}}
@media(max-width:640px){.shell{display:block}.sidebar{display:none}.main{padding:24px 18px 110px}.topbar{margin-bottom:24px}.topbar h1{font-size:25px}.topbar .btn{display:none}.eyebrow{font-size:10px}.hero{padding:24px;border-radius:22px}.hero .amount{font-size:36px}.hero-footer{gap:28px}.hero-footer b{font-size:20px}.summary-grid{gap:16px}.quick-actions{margin-top:16px}.quick{padding:17px 5px}.section{margin-top:24px}.stat-grid{grid-template-columns:1fr}.stat-grid .card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px}.stat-grid .stat-value{font-size:23px;margin:0}.stat-grid .hint{font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:#fffefaf5;border-top:1px solid var(--line);justify-content:space-around;z-index:20;backdrop-filter:blur(12px)}.mobile-nav button{border:0;background:none;color:var(--muted);display:grid;justify-items:center;gap:5px;font-size:10px;min-width:58px;padding:5px}.mobile-nav svg{width:22px;height:22px}.mobile-nav button.active{color:var(--green)}.mobile-nav button.add{background:var(--green);color:#fff;border-radius:15px;width:56px;margin-top:-20px;height:56px;box-shadow:0 4px 14px #194b4030}.auth-shell{display:block;background:var(--bg)}.auth-art{display:none}.auth-form{min-height:100dvh;padding:30px}.auth-inner .logo{margin-bottom:50px}.filters{gap:7px}.filters input{flex-basis:100%}.filters select{flex:1;max-width:none;min-width:0;font-size:13px}.tab{font-size:13px;padding:10px 14px}.txn{gap:10px}.txn-amount{font-size:14px}.txn-icon{width:38px;height:38px;border-radius:11px}.txn-title{font-size:13px}dialog{padding:24px 20px;border-radius:22px;max-height:90dvh}.grid2{gap:12px}.card{padding:20px}.userbadge{font-size:12px}}

.hero-icon,.auth-art .art-cat{height:auto}

.member-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.member-actions button{min-height:44px;white-space:nowrap}.member>div:first-child{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.member.row{flex-wrap:wrap}.member-actions{width:100%;justify-content:flex-start}}

.ledger-summary-row{gap:20px;align-items:center}.ledger-total{flex:1;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.ledger-total-values{display:flex;gap:28px;flex-wrap:wrap}.ledger-total-values>span{display:flex;align-items:baseline;gap:12px;color:var(--muted);font-size:14px}.ledger-total strong{color:var(--green,#194f43);font-size:24px;letter-spacing:-.5px}.ledger-total strong small{font-size:12px;font-weight:500;letter-spacing:0}@media(max-width:700px){.ledger-summary-row{flex-wrap:wrap;gap:12px}.ledger-summary-row #result-count{flex:1}.ledger-summary-row #reset-filter{order:1}.ledger-total{order:2;flex-basis:100%;background:#eaf0e2;border-radius:16px;padding:16px;gap:8px}.ledger-total-values{gap:12px;width:100%}.ledger-total-values>span{justify-content:space-between;width:100%}.ledger-total strong{font-size:23px}}

.review-notice{padding:16px;border-radius:14px;background:#f3f0df;color:#435647;font-size:14px;line-height:1.6}.review-notice p{margin:8px 0 0}.review-reason{white-space:pre-wrap}.editor-actions{flex-wrap:wrap}

.similar-card{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#fffefb;overflow-wrap:anywhere}.similar-card summary{padding:14px;cursor:pointer;min-height:44px}.similar-card summary b,.similar-card summary span,.similar-card summary small{display:block;margin-top:5px}.similar-card summary small{color:var(--muted)}.similar-body{padding:0 14px 14px;font-size:14px;line-height:1.6}.similar-body .btn{white-space:normal;width:100%;min-height:44px}
