:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#18372d;background:#f5f4ee;font-synthesis:none;--green:#173f32;--lime:#c4f493;--muted:#738178}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:14px;padding:13px 18px;font-weight:650;background:var(--green);color:white}button:disabled{opacity:.5;cursor:default}button.secondary{background:#e9eee4;color:var(--green)}button.danger{background:#fbe8e3;color:#9a3d32;padding:8px 12px}input,select,textarea{width:100%;border:1px solid #d7ded3;border-radius:12px;background:#fff;padding:13px;color:#18372d;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #7eb49a;outline-offset:1px}label{display:block;font-size:13px;font-weight:600;margin:15px 0 6px}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;font-weight:650}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:16px}small,.muted{color:var(--muted);font-size:13px}.shell{max-width:1120px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{padding:35px 25px;border-right:1px solid #dfe4d9;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:35px}.brand{font-weight:750;font-size:21px;display:flex;align-items:center;gap:10px}.brand img{width:36px}.nav{display:grid;gap:8px}.nav button{background:transparent;color:#6a7b70;text-align:left;display:flex;gap:12px;align-items:center}.nav button.active{background:#e4eadb;color:#163b2e}.nav .symbol{font-size:22px;width:24px}.sidebar footer{margin-top:auto;font-size:12px;color:#738178;display:grid;gap:12px}.sidebar a{color:inherit}.main{padding:38px 38px 100px;min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:750;color:#7a8a7b;margin-bottom:8px}.status{border-radius:100px;background:#e8edde;padding:8px 13px;font-size:11px;white-space:nowrap}.hero{background:#173f32;color:white;border-radius:25px;padding:28px;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;gap:15px}.hero p{color:#d5e4d6;font-size:14px;margin:10px 0 24px}.hero h2{font-size:27px}.level{height:88px;width:88px;border:1px solid #769775;border-radius:50%;display:grid;align-content:center;text-align:center;background:#24533e;box-shadow:0 0 0 9px #ffffff08}.level b{font-size:34px;color:var(--lime);line-height:1}.level small{color:#d2dfc9;font-size:10px;text-transform:uppercase;margin-top:5px}.progress{background:#ffffff20;border-radius:10px;height:7px;overflow:hidden}.progress span{display:block;background:var(--lime);height:100%;border-radius:10px}.hero .xp{margin-top:9px;color:#cfe2bd;font-size:11px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 28px}.card{background:white;border:1px solid #e2e6dc;border-radius:20px;padding:21px;min-width:0}.card .big{font-size:27px;font-weight:650;margin:10px 0 5px;letter-spacing:-.8px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px;gap:12px}.section-head button{padding:9px 12px;font-size:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #edf0e9;padding:16px 0}.row:last-child{border:0}.row p{font-size:13px;margin-top:5px;color:#7b897d}.row .amount{font-weight:650;white-space:nowrap;font-size:15px}.row .left{min-width:0;overflow-wrap:anywhere}.check{background:#eaf0e1;color:#335d37;border-radius:50%;width:43px;height:43px;padding:0;font-size:22px;flex-shrink:0}.check.done{background:#c7ec9e}.empty{border:1px dashed #d4ddcd;background:#f9faf6;border-radius:18px;padding:26px;text-align:center;color:#7a887b;font-size:14px;line-height:1.6}.tag{font-size:11px;color:#5e775d;background:#edf3e4;border-radius:8px;padding:4px 8px}.goal{margin-bottom:12px}.goal .progress{background:#edf1e8;margin:15px 0 10px}.goal .progress span{background:#81ad5d}.goal button{font-size:12px;padding:9px 12px}.goal footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.sub{font-size:14px;color:#7a887d;margin:8px 0 24px;line-height:1.6}.filters{display:flex;gap:10px;margin-bottom:20px}.filters>*{flex:1}.chart-row{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:12px;font-size:12px;margin:15px 0}.bar{height:7px;border-radius:10px;background:#edf2e8}.bar span{display:block;background:#8fb679;height:100%;border-radius:10px}.scan-zone{padding:35px 22px;border:1px dashed #aebfa7;background:#eef3e7;border-radius:24px;text-align:center;line-height:1.7}.scan-zone .scan-icon{font-size:45px;margin-bottom:10px}.scan-zone button{margin:20px 0 12px}.scan-zone input{display:none}.notice{padding:14px;background:#fff3da;color:#7f622c;font-size:13px;border-radius:12px;margin:16px 0;line-height:1.6}.receipt-item{display:grid;grid-template-columns:1fr 95px 35px;gap:7px;padding:12px 0;border-bottom:1px solid #e7eadf}.receipt-item select{grid-column:1/3}.receipt-item button{padding:8px}.receipt-item input{padding:9px}.receipt-total{padding:16px;background:#eaf2df;border-radius:12px;font-size:14px;margin:15px 0}.receipt-total.bad{background:#fff0db;color:#8e602a}.raw{white-space:pre-wrap;font-size:11px;line-height:1.5;max-height:250px;overflow:auto;background:#f2f3ee;padding:12px}.login{max-width:420px;margin:8vh auto;padding:30px}.login .brand{margin-bottom:35px}.login h1{font-size:32px}.login button{width:100%;margin-top:24px}.login .sub{margin-bottom:15px}.error{color:#ad4436;font-size:13px;margin-top:15px}dialog{border:0;border-radius:22px;padding:27px;width:calc(100% - 30px);max-width:440px;color:#18372d;max-height:90vh;overflow:auto}dialog::backdrop{background:#0b271c77;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head button{padding:6px 11px;background:#eef1e8;color:#466148}.form-actions{display:flex;gap:10px;margin-top:25px}.form-actions button{flex:1}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#173f32;color:#fff;border-radius:13px;padding:13px 20px;max-width:92vw;z-index:20;font-size:13px;box-shadow:0 6px 25px #0002;display:none}.hint{font-size:12px;line-height:1.6;color:#84917f;margin-top:18px}.pill{color:#3e6736;background:#edf5e6;border-radius:9px;padding:5px 8px;font-size:11px}.intro{margin-bottom:24px}.account{display:grid;gap:12px}.account a{color:#265e43}.receipt-preview{max-height:160px;max-width:100%;border-radius:12px;margin-top:15px}.positive{color:#5a8b40}.month-label{font-size:13px;color:#7d8b79;margin-bottom:10px}.nowrap{white-space:nowrap}@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;height:auto;width:100%;z-index:10;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid #e0e5da;background:#fafbf6f2;backdrop-filter:blur(18px)}.sidebar>.brand,.sidebar footer{display:none}.nav{display:flex;justify-content:space-around;gap:0}.nav button{display:flex;flex-direction:column;gap:3px;font-size:10px;padding:7px 10px;border-radius:12px;font-weight:550}.nav .symbol{font-size:21px;text-align:center}.main{padding:27px 19px 110px}.top{margin-bottom:23px}.top h1{font-size:28px}.hero{padding:24px 21px}.hero h2{font-size:24px}.hero p{font-size:12px;max-width:190px}.level{width:74px;height:74px;margin-top:8px}.level b{font-size:30px}.grid{gap:11px}.card{padding:18px 15px;border-radius:18px}.card .big{font-size:24px}.chart-row{grid-template-columns:90px 1fr auto;gap:7px;font-size:11px}.status{font-size:10px;padding:7px 10px}.login{margin:5vh auto}.section-head h2{font-size:19px}}@media(min-width:761px){#toast{bottom:30px}}

.expense-wheel-layout{display:grid;grid-template-columns:minmax(200px,270px) minmax(0,1fr);align-items:center;gap:30px;padding:10px 0}
.expense-wheel{width:100%;max-width:260px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto;box-shadow:inset 0 0 0 1px #18372d08}
.wheel-center{background:#fff;color:#18372d;width:69%;height:69%;border-radius:50%;padding:14px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 0 0 5px #ffffff35}
.wheel-center small{font-size:12px;font-weight:500}.wheel-center strong{font-size:23px;letter-spacing:-.8px;white-space:nowrap}.wheel-center span{font-size:10px;color:#83917f;font-weight:400}
.wheel-legend{display:grid;gap:5px;min-width:0}.wheel-category{display:flex;align-items:center;gap:11px;width:100%;background:transparent;color:#18372d;text-align:left;padding:12px 9px;border-radius:12px;border:1px solid transparent;font-weight:500}
.wheel-category:hover,.wheel-category.is-selected{background:#f1f5e9;border-color:#dae5ce}.wheel-category:focus-visible,.wheel-center:focus-visible{outline:2px solid #63976d;outline-offset:3px}.wheel-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}.wheel-category-name{flex:1;font-size:13px}.wheel-category-name small{display:block;font-size:11px;margin-top:3px;font-weight:400}.wheel-category b{font-size:13px;white-space:nowrap}
@media(max-width:950px){.expense-wheel-layout{grid-template-columns:1fr;gap:20px}.expense-wheel{max-width:250px}.wheel-legend{width:100%}}

.history-filters{margin-bottom:14px}.history-filters>label:first-child{margin-top:0}.history-count{display:block;margin-top:12px;padding-top:12px;border-top:1px solid #e7ecdf}.history-filters .split{align-items:start}.history-filters input[type=date]{min-height:47px}

.insight-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.insight-tabs button{flex:1;white-space:nowrap;padding:12px 10px;font-size:13px}.currency-mode{display:flex;align-items:center;gap:12px;margin:14px 0 22px;font-size:14px}.currency-mode input{width:22px;height:22px;flex-shrink:0}.rate-details{margin:18px 0;font-size:14px}.shopping-product{margin-top:18px}.shopping-product h3{margin:9px 0}.shopping-product p{line-height:1.6}.shopping-product button{width:100%;margin-top:15px}.unit-price{font-size:22px;font-weight:650}.price-best{background:#edf3e6;border-radius:12px;padding:14px;margin:16px 0;line-height:1.6}.price-best p{margin:6px 0}.amount{flex-shrink:0}.row .amount{font-size:14px}.shopping-product small{line-height:1.5}
