:root{font:100%/1.5 Segoe UI,Microsoft YaHei,system-ui,sans-serif;color:#2e2927;background:#f8f7f3;color-scheme:light;--wine: #753e42;--line: #dedbd4;--muted: #68625b;--serif: Georgia, "Songti SC", SimSun, serif}*{box-sizing:border-box}body,h1,h2,p{margin:0}a{color:inherit}button,select,input{font:inherit;color:inherit}button,select{cursor:pointer}svg{width:20px;height:20px;flex:none}:focus-visible{outline:3px solid #357765;outline-offset:3px}.shell{width:min(1100px,calc(100% - 2rem));margin:auto}.bar{background:#fffefa;border-bottom:1px solid var(--line)}.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:65px}.brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;font:bold 1.65rem/1 var(--serif);letter-spacing:-.065em}.brand-mark{display:inline-flex;align-items:center;justify-content:center;gap:2.5px;width:32px;height:30px;background:var(--wine);border-radius:10px 10px 6px 6px;transform:rotate(-7deg)}.brand-mark i{width:2px;height:13px;background:#ffedcc;border-radius:100%;transform:rotate(27deg)}.language,.search{display:flex;align-items:center;position:relative}.language svg,.search svg{position:absolute;left:.75rem;width:16px;pointer-events:none}select{appearance:none;background:#fffefa;border:1px solid var(--line);border-radius:7px;min-height:44px;padding:.55rem 2.3rem .55rem .8rem;background-image:linear-gradient(45deg,transparent 50%,#685d57 50%),linear-gradient(135deg,#685d57 50%,transparent 50%);background-size:5px 5px;background-repeat:no-repeat;background-position:right 14px center,right 9px center}.language select{padding-left:2.15rem;font-size:.875rem}nav{display:flex;justify-content:space-evenly;position:fixed;z-index:5;inset:auto 0 0;padding:.45rem .3rem calc(.45rem + env(safe-area-inset-bottom));background:#fffefa;border-top:1px solid var(--line)}nav a{display:flex;align-items:center;flex-direction:column;gap:.1rem;min-width:78px;padding:.3rem .75rem;text-decoration:none;border-radius:7px;font-weight:600;color:#665f59;font-size:.875rem}nav a[aria-current]{background:#f2e6e3;color:#70393f}main{padding-bottom:calc(5rem + env(safe-area-inset-bottom))}.heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin:1.8rem 0 1.25rem}h1,h2,.metric strong,.option strong{font-family:var(--serif);font-weight:500;letter-spacing:-.045em}h1{font-size:clamp(2.35rem,5vw,3.55rem);line-height:1.12}h2{font-size:clamp(1.35rem,2.8vw,1.75rem)}.month{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;color:var(--muted);text-transform:uppercase;font-size:.81rem;font-weight:650;letter-spacing:.1em}.month svg{width:15px;height:15px}.heading h1+p{color:var(--muted);margin-top:.55rem}.primary,.plain{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:7px;font-weight:600;font-size:.9375rem;text-decoration:none}.primary{background:var(--wine);color:#fff;padding:.67rem 1.05rem;gap:.5rem}.primary:hover{background:#593036}.plain{border:1px solid var(--line);color:#653a3d;background:#fffefa;padding:.45rem .85rem}.plain:hover,.option:hover{border-color:#a88377;background:#fbf6f1}.metrics{display:grid;gap:.8rem;margin-bottom:1.4rem}.metric{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;padding:1.35rem;min-height:142px;border-radius:12px}.metric-label{display:flex;align-items:center;gap:.6rem;font-size:.9375rem;font-weight:560}.metric strong{font-size:clamp(2.75rem,5.4vw,4.3rem);line-height:1.15;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}.spend{background:linear-gradient(105deg,#5d3035,#794447);color:#fff6e8}.spend .metric-label{color:#f5dfd5}.wheat{position:absolute;z-index:-1;right:-3%;bottom:-5%;height:106%;width:49%;object-fit:contain;object-position:right bottom;opacity:.87}.docs{background:#ece9df;color:#413c32;border:1px solid #dcd7c9}.paper-art{position:absolute;z-index:-1;right:19px;bottom:-1px;width:92px;height:113px;transform:rotate(12deg)}.paper-art i,.paper-art b{position:absolute;width:63px;height:94px;border:1.5px solid #aa997c;border-radius:3px}.paper-art i{top:13px;left:2px;transform:rotate(-17deg);background:repeating-linear-gradient(130deg,#e8dfce 0 3px,#d7cebd 3px 4px)}.paper-art b{top:7px;left:16px;background:#f6f1e6}.paper-art em{display:block;margin:15px 10px;height:49px;border-top:3px double #aa997c;border-bottom:3px double #aa997c;background:repeating-linear-gradient(0deg,transparent 0 7px,#beb199 7px 8px)}.panel,.option,.file-panel{background:#fffefa;border:1px solid var(--line);border-radius:12px}.panel{overflow:hidden}.panel-head,.filters{padding:1rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem}.ledger{width:100%;border-collapse:collapse;font-size:.9375rem}.ledger th{color:#6e665e;background:#f8f7f2;font-size:.81rem;font-weight:600;text-align:left}.ledger th,.ledger td{padding:.8rem 1.2rem;border-top:1px solid #e8e5df}.ledger .amount,.ledger th:last-child{text-align:right}.supplier{font-weight:600}.initials{display:inline-grid;place-items:center;width:35px;height:35px;margin-right:.8rem;border-radius:50%;background:var(--soft);color:var(--dark);font:600 .875rem var(--serif)}.cat-0{--soft:#efe4d2;--dark:#72502a}.cat-1{--soft:#e6ebdf;--dark:#506442}.cat-2{--soft:#e1e9ed;--dark:#3f626c}.cat-3{--soft:#ede3e6;--dark:#774d59}.category span{display:inline-block;font-size:.84rem;font-weight:550;padding:.17rem .6rem;border-radius:5px;color:var(--dark);background:var(--soft)}.date{color:var(--muted)}.amount{font-weight:650;font-variant-numeric:tabular-nums}footer{display:flex;justify-content:space-between;margin:1.5rem 0;color:var(--muted);font-size:.81rem}footer b{padding:0 .3rem;font-weight:400;color:#a99b8f}.filters{justify-content:flex-start}.search{flex:1 1 220px}.search input{width:100%;border:1px solid var(--line);border-radius:7px;background:#fffefa;padding:.6rem .7rem .6rem 2.35rem;min-height:44px}.results,.hint{color:var(--muted);font-size:.9rem}.results{padding:0 1rem .8rem}.empty,.file-panel{padding:1.3rem}.empty button,.file-panel button{margin-top:.75rem}.capture-options{display:grid;gap:1rem}.option{padding:1.6rem;text-align:left;display:grid;justify-items:start;gap:.45rem}.option i{background:#f3e6df;color:var(--wine);padding:.8rem;display:grid;border-radius:10px;margin-bottom:.5rem}.option strong{font-size:1.65rem}.option span{color:var(--muted)}.hint,.file-panel{margin-top:1rem}.file-panel{overflow-wrap:anywhere}.file-panel img{display:block;max-width:100%;max-height:310px;margin-top:.8rem}.photo-details{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.35rem 1rem;margin:1rem 0 0}.photo-details dt{color:var(--muted)}.photo-details dd{margin:0}.photo-actions{display:flex;flex-wrap:wrap;gap:.6rem}.photo-error{margin-top:.8rem;padding:.7rem 1rem;border-left:3px solid var(--wine);background:#f6e9e6;color:#642d31}.saved-notice{margin-top:1rem;padding:.8rem 1rem;background:#e6ebdf;color:#40543a;border-radius:7px}.photo-actions .primary{padding:.6rem 1rem;border:1px solid var(--wine)}button:disabled{opacity:.6;cursor:wait}.local-archive{margin-bottom:1.35rem}.local-archive ul{list-style:none;margin:0;padding:0}.local-archive li{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;border-top:1px solid var(--line);padding:1rem 1.25rem}.local-info{display:grid;justify-items:start;gap:.18rem;min-width:0;overflow-wrap:anywhere}.local-info small{color:var(--muted);font-size:.875rem}.sync-status{margin-top:.35rem;padding:.15rem .55rem;border-radius:4px;background:#efe4d2;color:#664724;font-size:.875rem}.local-actions{display:flex;align-items:center;gap:.6rem}.local-actions button:last-child{border:0;padding:.65rem;color:var(--wine);background:transparent;text-decoration:underline}.original-dialog{width:min(56rem,94vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:12px;color:inherit;background:#fffefa}.original-dialog::backdrop{background:#30252299}.original-dialog h2{overflow-wrap:anywhere}.document-fields{display:grid;gap:.8rem;margin:1rem 0}.document-fields label{display:grid;gap:.25rem;font-weight:600}.document-fields input,.document-fields textarea{width:100%;min-width:0;padding:.65rem .75rem;border:1px solid var(--line);border-radius:6px;background:#fffefa;font:inherit;font-weight:400}.document-fields textarea{resize:vertical}.edit-dialog{max-width:32rem;padding:1.4rem}.local-actions{flex-wrap:wrap}.document-notes{white-space:pre-wrap}.app-footer{align-items:center;flex-wrap:wrap;gap:.7rem}.network-state{color:var(--muted)}.update-notice{flex-basis:100%;border:1px solid var(--line);border-radius:8px;padding:1rem;background:#fffefa;color:var(--ink, #302522);font-size:1rem}.update-notice .photo-actions{margin-top:.6rem}.original-dialog img{display:block;max-width:100%;max-height:66vh;object-fit:contain;margin:auto}@media(max-width:610px){.ledger thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.ledger tbody,.ledger{display:block}.ledger tr{display:grid;grid-template-columns:1fr auto;gap:.18rem .45rem;align-items:center;padding:.8rem 1rem;border-top:1px solid var(--line)}.ledger td{padding:0;border:0}.initials{display:none}.ledger .amount{grid-area:1 / 2}.ledger .date{grid-area:2 / 1;font-size:.875rem}.ledger .category{grid-area:2 / 2;text-align:right}.panel-head .plain{font-size:.875rem}}@media(min-width:611px){.shell{width:min(1100px,calc(100% - 3.5rem))}.metrics{grid-template-columns:1.65fr 1fr;gap:1rem}.capture-options{grid-template-columns:1fr 1fr}.metric{min-height:170px;padding:1.55rem}.panel-head,.filters{padding:1.15rem 1.45rem}}@media(min-width:800px){main{padding-bottom:1rem}.top{min-height:77px}.brand{font-size:1.85rem}nav{position:static;padding:.24rem;gap:.2rem;background:#f4f2ec;border:1px solid #e8e4dc;border-radius:9px}nav a{flex-direction:row;justify-content:center;gap:.48rem;padding:.5rem 1rem}nav a svg{width:17px}nav a[aria-current]{background:#fffefa;box-shadow:0 1px 3px #38201921}.heading{margin:2.6rem 0 1.5rem}.metrics{margin-bottom:1.6rem}.metric{min-height:181px;padding:1.65rem 1.85rem}}@media(max-width:380px){.shell{width:calc(100% - 1.3rem)}.top{gap:.4rem}.brand{font-size:1.4rem;gap:.35rem}.brand-mark{width:27px;height:26px}.language svg{display:none}.language select{padding-left:.5rem;padding-right:1.5rem}.heading h1{font-size:2.05rem}}.account-strip{background:#f0eae2;border-bottom:1px solid #ded7cf}.account-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.65rem}.account-row label{font-size:.9rem}.account-row strong,.account-row select{margin-inline-start:.4rem}.access-page{max-width:34rem;margin:8vh auto}.access-card{padding:clamp(1.4rem,5vw,2.4rem);margin-block:1rem}.access-form{display:grid;gap:1rem}.access-form h1{font-size:clamp(1.6rem,6vw,2.3rem);margin:0 0 .25rem}.access-form label{display:grid;gap:.4rem;font-weight:600}.access-form input,.account-row select{font:inherit;background:#fff;border:1px solid #bab3ab;border-radius:.5rem;padding:.6rem}.access-form input{width:100%;font-size:1rem}.access-form .primary{justify-content:center}.account-actions,.account-dialog header{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.account-dialog header{justify-content:space-between}.account-dialog{width:min(32rem,94vw);max-height:90dvh;overflow-y:auto}.account-strip .account-row{flex-wrap:wrap}
