:root{--ink:#173d35;--accent:#176b55;--mint:#d7f5e6;--gold:#f1b449;--paper:#f3f6f4;--line:#dce5df;--muted:#677971;--red:#b13b37}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}header{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:4}.wordmark{display:flex;gap:11px;align-items:center}.wordmark strong{font-size:19px;letter-spacing:-.5px}.wordmark small{display:block;font-size:12px;max-width:235px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.logo{background:var(--ink);color:#fff;border-radius:13px;display:grid;place-items:center;width:42px;height:42px;font-size:16px;font-weight:750}.offline{font-size:12px;color:var(--accent);padding:4px 9px;border:1px solid var(--line);border-radius:20px}main{max-width:980px;margin:auto;padding:23px 18px 115px}h1{font-size:28px;letter-spacing:-1px;margin:0 0 4px;line-height:1.2}h2{font-size:19px;letter-spacing:-.35px;margin:0 0 15px}h3{font-size:16px;margin:0 0 8px}p{margin:0 0 15px}.muted{color:var(--muted);font-size:14px}.topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px}.period{display:flex;gap:10px;align-items:center;margin:16px 0 18px}.period label{font-size:12px;color:var(--muted);flex:1}.period input{margin-top:4px;padding:8px 10px;font-size:14px;min-width:0}.hero{background:var(--ink);color:#fff;padding:23px;border-radius:20px;position:relative;overflow:hidden;margin-bottom:16px}.hero .muted{color:#b8d3ca}.hero strong.big{font-size:34px;line-height:1.25;letter-spacing:-1px;display:block;margin:5px 0 13px;font-weight:700}.hero-footer{display:flex;justify-content:space-between;align-items:end;border-top:1px solid #ffffff26;padding-top:15px;gap:14px}.hero-footer strong{display:block;font-size:18px}.badge{background:#ffffff1c;font-size:12px;padding:5px 10px;border-radius:6px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.metric{background:#fff;border:1px solid var(--line);padding:16px 14px;border-radius:15px;min-width:0}.metric .label{font-size:13px;color:var(--muted);display:block}.metric strong{font-size:23px;display:block;letter-spacing:-.6px;overflow-wrap:anywhere;margin:5px 0}.metric small{font-size:12px;color:var(--muted)}.metric.negative strong,.negative{color:var(--red)}.section{margin-top:23px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.section-heading h2{margin:0}.panel{background:#fff;padding:19px;border:1px solid var(--line);border-radius:17px;margin-bottom:13px}.row{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #eef2ef;font-size:14px;align-items:center}.row:last-child{border-bottom:0}.row strong{text-align:right;white-space:nowrap}.row.total{font-weight:700;font-size:16px;padding-top:15px}.progress{height:8px;background:#e8efea;border-radius:9px;overflow:hidden;margin:13px 0}.progress span{display:block;height:100%;background:var(--gold);border-radius:9px}.notice{padding:12px 14px;background:#fff2d9;border-left:3px solid var(--gold);border-radius:7px;font-size:13px;margin-bottom:10px}.notice.info{background:#e8f0ec;border-color:#9dbdb0}.notice.danger{background:#fdeceb;border-color:var(--red)}button,input,select,textarea{font:inherit}button{border:0;border-radius:11px;padding:12px 16px;background:var(--accent);color:#fff;min-height:46px;cursor:pointer;font-size:14px;font-weight:650}button.secondary{background:#e9f1ec;color:var(--ink)}button.danger{background:#f9e8e5;color:var(--red)}button.small{padding:7px 11px;min-height:37px;font-size:13px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button:disabled{opacity:.5}.actions{display:flex;gap:8px;flex-wrap:wrap}.full{width:100%}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.quick button{background:#fff;color:var(--ink);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:7px;padding:14px 6px}.quick svg{width:19px;height:19px}.record{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;margin-bottom:10px}.record-head{display:flex;justify-content:space-between;gap:10px}.record-head strong{font-size:15px}.record .summary{font-size:15px;margin:8px 0;color:var(--ink)}.record .actions{justify-content:flex-end}.tag{font-size:11px;background:#fff0ce;color:#77500e;border-radius:4px;padding:3px 6px;align-self:start}.search{display:flex;gap:8px;margin:15px 0}.search input{flex:1;min-width:0}.search select{max-width:160px}.empty{text-align:center;padding:35px 12px}.empty p{color:var(--muted)}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #cad8d0;border-radius:9px;background:#fff;color:var(--ink);font-size:16px;min-height:46px}textarea{min-height:76px;resize:vertical}label.field{display:block;margin-bottom:15px;font-size:14px;color:#40594e}label.field>input,label.field>select,label.field>textarea{margin-top:5px}.field small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.span2{grid-column:1/-1}.form-section{border-top:1px solid var(--line);padding-top:19px;margin-top:14px}.form-section h3{margin-bottom:15px}nav{position:fixed;bottom:0;left:0;right:0;padding:7px 8px max(9px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -2px 20px #173d350a;border-top:1px solid var(--line);display:flex;justify-content:space-around;z-index:6}nav button{background:none;color:var(--muted);font-size:11px;border-radius:11px;min-width:58px;padding:7px 9px;display:flex;flex-direction:column;gap:3px;align-items:center}nav button.active{background:#e7f2eb;color:var(--accent)}svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}dialog{border:0;border-radius:22px 22px 0 0;padding:22px 20px 30px;position:fixed;top:auto;bottom:0;margin:0;max-height:92dvh;width:100%;max-width:none;color:var(--ink);overflow-y:auto;background:var(--paper)}dialog::backdrop{background:#102b25a6}dialog .topline{position:sticky;top:-22px;padding-top:15px;padding-bottom:10px;background:var(--paper);z-index:1}dialog h2{margin:0}dialog .error{color:var(--red);font-size:14px;margin-bottom:12px}#toast{position:fixed;bottom:94px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:11px 18px;border-radius:12px;font-size:14px;z-index:10;max-width:90%;opacity:0;transition:opacity .15s;pointer-events:none}#toast.show{opacity:1}.chart{width:100%;height:190px;display:block}.chart text{font-family:inherit;fill:var(--muted);font-size:11px}.chart .gridline{stroke:#e4ebe7;stroke-dasharray:3 4}.legend{display:flex;gap:13px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px}.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:6px;margin:15px 0}.tabs button{white-space:nowrap;background:#e5ede8;color:var(--ink);padding:9px 14px}.tabs button.active{background:var(--ink);color:#fff}.menu-item{width:100%;display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);color:var(--ink);padding:18px;text-align:left;border-radius:13px;margin:9px 0}.menu-item small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:3px}.pill{font-size:12px;background:var(--mint);padding:4px 10px;border-radius:15px}details{font-size:14px;margin:10px 0}summary{font-weight:650;cursor:pointer;padding:8px 0}details p{color:var(--muted)}.chart-grid{display:grid;gap:0}.balance-name{display:flex;gap:12px;align-items:center;margin-bottom:15px}.avatar{width:42px;height:42px;border-radius:50%;background:var(--mint);display:grid;place-items:center;font-size:16px;font-weight:700}@media(min-width:700px){main{padding-top:30px}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr 1fr;gap:14px}.hero{max-width:none}.hero strong.big{font-size:43px}dialog{max-width:580px;left:50%;transform:translateX(-50%);border-radius:22px;bottom:5vh;max-height:85vh}nav{justify-content:center;gap:35px}header{padding-left:max(20px,calc((100vw - 944px)/2));padding-right:max(20px,calc((100vw - 944px)/2))}}@media(max-width:360px){main{padding:18px 12px 105px}.metric{padding:12px}.metric strong{font-size:21px}.quick button{font-size:12px}.wordmark small{max-width:175px}}
[hidden]{display:none!important}

/* Multilingual controls */
.header-tools{display:flex;align-items:center;gap:8px}.language-switch{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.language-switch span{white-space:nowrap}.language-switch select{width:auto;min-width:92px;min-height:34px;border:1px solid rgba(255,255,255,.28);border-radius:9px;background:#fff;color:#173c35;padding:5px 26px 5px 8px;font:inherit}.lang-bn{font-family:system-ui,"Noto Sans Bengali","Nirmala UI",sans-serif}.lang-bn button,.lang-bn input,.lang-bn select,.lang-bn textarea{font-family:inherit}@media(max-width:430px){.language-switch span{display:none}.header-tools{gap:6px}.language-switch select{max-width:92px;padding-left:6px}}
