:root{--bg:#f4f7f7;--surface:#fff;--surface2:#edf5f3;--text:#152b2a;--muted:#718481;--line:#e1eae8;--primary:#0c7567;--primary2:#085c51;--red:#dc5262;--shadow:0 8px 30px #1b47410a;color-scheme:light}html[data-theme=dark]{--bg:#0c181a;--surface:#142426;--surface2:#1d3434;--text:#edf8f6;--muted:#9ab0ac;--line:#2a4242;--primary:#24b49f;--primary2:#1c9d8c;--red:#ff7b88;--shadow:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #55b8a7;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.8px}h2{font-size:19px}h3{font-size:16px}.small{font-size:12px}.muted{color:var(--muted)}.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:800;letter-spacing:-.6px}.brand.big{font-size:26px}.logo{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--primary);color:white;font-weight:800}.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,420px);background:var(--surface);padding:32px;border-radius:24px;box-shadow:var(--shadow)}.auth-card h1{margin-top:25px}.auth-card p{margin:7px 0 22px}.auth-card .small{text-align:center;margin:16px 0 0}label{display:block;font-weight:600;font-size:13px;margin-bottom:14px}input,select,textarea{display:block;width:100%;padding:12px 13px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;margin-top:7px;min-height:46px}textarea{resize:vertical;min-height:75px}.primary{background:var(--primary);border:0;color:white;font-weight:700;padding:12px 17px;border-radius:12px}.primary:hover{background:var(--primary2)}.wide{width:100%;margin-top:10px}.link{border:0;background:transparent;color:var(--primary);padding:12px;font-weight:700}.topbar{height:70px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%}.header-right{display:flex;align-items:center;gap:13px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d9f2eb;color:#09685a;font-weight:800}.icon-btn{background:var(--surface2);border:0;border-radius:11px;padding:8px 12px;color:var(--text)}.layout{display:flex;max-width:1380px;margin:auto;min-height:calc(100dvh - 70px)}.sidebar{width:240px;padding:28px 16px;border-right:1px solid var(--line);flex-shrink:0}.side-title{font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:800;padding:0 14px;margin-bottom:16px}.nav-item{display:flex;gap:12px;width:100%;border:0;background:transparent;color:var(--muted);font-weight:650;text-align:left;border-radius:12px;padding:13px 14px;margin:3px 0}.nav-item.active,.nav-item:hover{background:var(--surface2);color:var(--primary)}.content{padding:32px;min-width:0;width:100%}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:800;color:var(--primary);margin-bottom:4px}.page-heading input{max-width:170px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow)}.card.balance{background:linear-gradient(135deg,#0b7567,#094e4b);color:white;border:0}.card.balance .muted{color:#b5e6db}.card-title{font-size:13px;color:var(--muted);font-weight:650}.big-num{font-size:27px;letter-spacing:-1px;font-weight:800;margin-top:10px;overflow-wrap:anywhere}.green{color:#1aa68e}.red{color:var(--red)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 13px;gap:10px}.secondary{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:10px 13px;border-radius:11px;font-weight:650}.list{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}.tx{display:flex;align-items:center;gap:12px;padding:15px;border-bottom:1px solid var(--line)}.tx:last-child{border-bottom:0}.tx-icon{display:grid;place-items:center;background:var(--surface2);color:var(--primary);border-radius:13px;width:43px;height:43px;flex-shrink:0;font-size:20px}.tx-main{flex:1;min-width:0}.tx-name{font-weight:750}.tx-sub{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-money{font-weight:800;white-space:nowrap}.tx-actions{display:flex;gap:5px}.tx-actions button{border:0;background:var(--surface2);border-radius:8px;padding:7px;color:var(--text)}.empty{text-align:center;padding:40px 15px;color:var(--muted)}.wallet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.wallet-name{font-weight:750}.wallet-balance{font-size:24px;font-weight:800;margin:12px 0}.pill{display:inline-block;border-radius:100px;padding:3px 10px;background:var(--surface2);color:var(--primary);font-size:12px}.bar-row{display:grid;grid-template-columns:100px 1fr 110px;gap:10px;align-items:center;margin:13px 0;font-size:13px}.track{height:10px;border-radius:30px;background:var(--surface2);overflow:hidden}.fill{height:100%;border-radius:30px;background:var(--primary)}.chart{display:flex;align-items:end;gap:12px;height:190px;padding:18px 0 0}.chart-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0}.chart-bars{width:100%;height:150px;display:flex;align-items:end;justify-content:center;gap:4px}.chart-bar{width:35%;max-width:28px;border-radius:6px 6px 0 0;min-height:2px;background:var(--primary)}.chart-bar.expense{background:#e9a65b}.chart-label{font-size:11px;color:var(--muted)}.legend{font-size:12px;color:var(--muted)}.legend b{display:inline-block;width:9px;height:9px;background:var(--primary);border-radius:3px;margin:0 5px}.legend b.expense{background:#e9a65b}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row select{width:auto;margin:0;min-width:135px}.bottom-nav{display:none}dialog{border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);width:min(94vw,480px);max-height:88dvh;padding:22px;box-shadow:0 24px 90px #0003}dialog::backdrop{background:#061916a8}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.form-grid .full{grid-column:1/-1}#toast{position:fixed;top:15px;left:50%;transform:translateX(-50%);z-index:99;background:#173c36;color:white;border-radius:12px;padding:11px 17px;box-shadow:0 10px 30px #0002;display:none;max-width:90vw}#toast.show{display:block}.hint{font-size:12px;color:var(--muted);margin-top:8px}.danger{color:var(--red)}@media(max-width:850px){.sidebar{display:none}.content{padding:22px 18px 100px}.cards{grid-template-columns:1fr 1fr}.cards .balance{grid-column:1/-1}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;align-items:center;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:10}.bottom-nav button{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;min-width:55px;gap:2px}.bottom-nav button.active{color:var(--primary)}.bottom-nav button span{font-size:23px;line-height:1.1}.bottom-nav button small{font-size:10px}.bottom-nav .add-nav{background:var(--primary);color:white;width:52px;height:52px;border-radius:17px;font-size:29px;margin-top:-26px;box-shadow:0 8px 18px #0c756744;display:grid;place-items:center}.topbar{height:62px;padding:0 18px}.layout{min-height:calc(100dvh - 62px)}}@media(max-width:420px){h1{font-size:23px}.page-heading input{max-width:145px;font-size:13px}.cards{gap:10px}.card{padding:17px}.big-num{font-size:22px}.tx{padding:12px 10px;gap:8px}.tx-icon{width:36px;height:36px}.tx-money{font-size:13px}.tx-actions{flex-direction:column}.bar-row{grid-template-columns:75px 1fr 95px;font-size:11px;gap:6px}}[hidden]{display:none!important}
