:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18243a;background:#f3f5fa;font-size:16px;line-height:1.4;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1d8ddd;outline-offset:3px}.shell{max-width:800px;margin:auto;padding:28px 20px max(24px,env(safe-area-inset-bottom))}header,.section-head,.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px}h1,h2,p{margin:0}h1{font-size:clamp(30px,6vw,42px);line-height:1.13;letter-spacing:-1.7px}h2{font-size:19px;letter-spacing:-.4px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#54718d;margin-bottom:7px}.muted{color:#62718a}.tiny{font-size:12px}.primary{background:#1267d6;border:0;color:white;border-radius:16px;padding:13px 18px;font-weight:700;white-space:nowrap;box-shadow:0 6px 16px #1267d61b}.notice{margin-top:16px;padding:10px 12px;background:#eaf1fc;border:1px solid #d7e6f9;border-radius:12px;font-size:12px;color:#315786}.error{background:#fff1ed;color:#9d321d;padding:12px;margin-top:12px;border-radius:12px}.period{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px;font-size:13px;font-weight:650;color:#66758c}input,select{background:#fff;color:#18243a;border:1px solid #dbe2ed;border-radius:12px;padding:11px;min-width:0}input[type=month]{max-width:190px}.hero{background:linear-gradient(155deg,#e2efff 0%,#f9fcff 55%,#f1effa 100%);border:1px solid #e0e8f3;border-radius:28px;padding:25px 18px 16px;text-align:center;box-shadow:0 10px 32px #213a6010}.ring{--pct:0%;width:230px;height:230px;background:conic-gradient(#176cdb 0%,#3cb6eb var(--pct),#dbe7f5 var(--pct),#dbe7f5 100%);border-radius:50%;margin:0 auto 22px;display:grid;place-items:center;box-shadow:0 10px 25px #176cdb19}.ring-inner{width:201px;height:201px;background:#f6faff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #a6cee7}.ring-inner span,.ring-inner small{font-size:12px;color:#62758c}.ring-inner strong{font-size:clamp(26px,6.8vw,34px);letter-spacing:-1.6px;margin:7px 0;max-width:192px;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.stats>div{display:flex;flex-direction:column;gap:5px;min-width:0}.stats span{font-size:11px;color:#607089}.stats b{font-size:clamp(12px,3.5vw,17px);overflow-wrap:anywhere}.link{border:0;background:none;color:#1267d6;font-weight:650;padding:13px 0}.inbox,.insights,section:not(.hero):not(.period){margin-top:26px}.section-head{margin-bottom:12px}.pill{font-size:12px;background:#e3ebfa;color:#174f9a;border-radius:30px;padding:4px 10px;font-weight:700}.panel,.entry{background:#fff;border:1px solid #e4e9f1;border-radius:20px}.entry{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px;margin:8px 0;color:inherit}.entry:hover{border-color:#94bceb}.entry-icon{width:40px;height:40px;border-radius:15px;display:grid;place-items:center;background:#edf3fa;font-size:20px;flex-shrink:0}.entry-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.entry-main b{font-size:14px;overflow-wrap:anywhere}.entry-main small{color:#62718a;font-size:11px;overflow-wrap:anywhere}.entry-amount{font-size:14px;white-space:nowrap}.history-row{margin:0;border:0;border-bottom:1px solid #edf0f5;border-radius:0}.history-row:first-child{border-radius:20px 20px 0 0}.history-row:last-child{border-radius:0 0 20px 20px;border-bottom:0}.empty{color:#6b7b91;font-size:14px;padding:18px}.break-row{padding:14px 16px;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;gap:10px;font-size:14px}.break-row:last-child{border-bottom:0}footer{margin:30px 0 0;color:#738298;font-size:11px;text-align:center}dialog{border:1px solid #dfe7f3;border-radius:25px;max-width:min(440px,calc(100% - 28px));width:100%;max-height:85dvh;overflow:auto;padding:20px;color:inherit;background:#f8faff;box-shadow:0 20px 65px #172b5260}dialog::backdrop{background:#18243a66}dialog form{display:grid;gap:13px}dialog label{display:grid;gap:6px;font-size:13px;font-weight:600}.icon{border:0;background:#e9eef6;border-radius:50%;width:36px;height:36px;font-size:24px;color:#41516c}.category{display:flex;width:100%;align-items:center;text-align:left;gap:10px;padding:14px;background:white;border:0;border-bottom:1px solid #e8edf4;color:inherit}.category:first-child{border-radius:14px 14px 0 0}.category:last-child{border-radius:0 0 14px 14px;border:0}.category:hover{background:#e7f0fc}.category span:last-child{margin-left:auto;color:#6b7b91}#pending-detail{margin-bottom:8px}[hidden]{display:none!important}@media(min-width:640px){.shell{padding:36px 28px}.hero{padding:30px}.ring{width:250px;height:250px}.ring-inner{width:219px;height:219px}}@media(prefers-color-scheme:dark){:root{color:#e7eefb;background:#141c2a;color-scheme:dark}.muted,.period,.entry-main small,.empty,footer{color:#a5b2c7}.hero{background:linear-gradient(155deg,#1e3653,#1a263a 55%,#2b2840);border-color:#34435a}.ring-inner{background:#1b2a40;border-color:#3f6686}.ring-inner span,.ring-inner small,.stats span{color:#a8b9cf}.panel,.entry,.category,input,select{background:#1c293d;color:#e7eefb;border-color:#314157}.entry-icon,.icon{background:#2c3c53;color:#e7eefb}.history-row,.break-row,.category{border-color:#314157}.notice{background:#203954;border-color:#345578;color:#c2dcff}dialog{background:#19273b;border-color:#34435a}.link{color:#7cbaff}.category:hover{background:#294568}}
.ring{position:relative;background:none}.progress-ring{position:absolute;width:100%;height:100%;inset:0;z-index:0}.ring-inner{position:relative;z-index:1}

#login-panel{padding:18px;margin:16px 0}#stage-controls{margin:8px 0 14px}#raw-inbox{margin-top:12px}#raw-evidence,#wallet-evidence{overflow-wrap:anywhere;white-space:pre-wrap}#ignored-raw{margin:12px 0}#raw-dialog [hidden],#stage-controls[hidden],#finance-data[hidden],#login-panel[hidden]{display:none!important}
