:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#f2f5f8;color:#172434;font-synthesis:none;-webkit-font-smoothing:antialiased;--dark:#111e2e;--muted:#778392;--line:#e9edf1;--green:#168c73;--red:#c35150}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}.app{max-width:640px;margin:auto;min-height:100dvh;background:#f7f9fb;padding-bottom:calc(104px + env(safe-area-inset-bottom));box-shadow:0 5px 30px #101c2c0d}.topbar{padding:calc(23px + env(safe-area-inset-top)) 22px 17px;background:#f7f9fb;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:10px;font-weight:760;letter-spacing:1.9px;color:#8a96a7;margin-bottom:6px}.topbar h1{margin:0;font-size:27px;letter-spacing:-.8px;font-weight:730}.icon-button{border:0;background:white;border-radius:14px;width:43px;height:43px;font-size:23px;color:#354656;box-shadow:0 2px 10px #101d2b0c}.page{padding:0 19px}.hero{background:linear-gradient(125deg,#172a3e 0%,#142939 64%,#155251 155%);color:white;border-radius:24px;padding:25px 23px 23px;box-shadow:0 14px 28px #152b3d1b;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;right:-45px;top:-75px;width:200px;height:200px;border-radius:50%;border:40px solid #ffffff09;pointer-events:none}.hero-label{font-size:12px;letter-spacing:.2px;color:#b2bdc9}.hero-amount{font-size:31px;letter-spacing:-1px;font-weight:730;margin:12px 0 13px;line-height:1.15}.hero-foot{font-size:11px;color:#9bb8bb;display:flex;gap:9px;align-items:center;flex-wrap:wrap}.hero-foot .dot{background:#46be9e;width:6px;height:6px;border-radius:50%;display:inline-block}.secondary-balances{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 2px}.balance-chip{background:#e8eef1;padding:7px 11px;border-radius:10px;font-size:12px;color:#394f5e;font-weight:600}.section-title{font-size:17px;font-weight:720;letter-spacing:-.3px;margin:25px 1px 13px;display:flex;justify-content:space-between;align-items:center}.section-title button{border:0;background:none;color:var(--green);font-weight:680;font-size:12px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:16px}.stat{background:white;border:1px solid #edf0f2;padding:17px 15px;border-radius:18px;box-shadow:0 2px 11px #26374b04}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:18px;letter-spacing:-.45px;font-weight:760;margin-top:8px}.income{color:var(--green)}.expense{color:var(--red)}.stat-note{font-size:11px;color:#a0a9b3;margin-top:5px}.card-list{background:white;border:1px solid #edf0f2;border-radius:20px;padding:1px 15px;overflow:hidden}.list-row{display:flex;align-items:center;gap:12px;min-height:66px;padding:9px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.row-icon{height:40px;width:40px;border-radius:13px;display:grid;place-items:center;font-size:19px;flex-shrink:0;background:#eef4f2}.row-middle{min-width:0;flex:1}.row-title{font-size:14px;font-weight:665;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub{font-size:11px;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-right{text-align:right;flex-shrink:0}.row-value{font-size:14px;font-weight:730;white-space:nowrap}.row-action{border:0;background:none;text-align:left;width:100%;padding:0;color:inherit}.row-meta{font-size:10px;color:#9aa4b0;margin-top:4px}.empty{padding:27px 18px;text-align:center;color:#87929f;font-size:13px;line-height:1.7}.empty-symbol{font-size:34px;margin-bottom:7px}.subheading{font-size:11px;color:var(--muted);font-weight:650;letter-spacing:.7px;text-transform:uppercase;padding:3px 0 10px}.category-row{padding:12px 0 11px;border-bottom:1px solid var(--line)}.category-row:last-child{border:0}.category-labels{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:8px}.category-labels strong{font-size:12px}.bar-track{background:#eff2f4;border-radius:99px;height:7px;overflow:hidden}.bar-fill{height:100%;border-radius:99px;min-width:3px}.notice{padding:13px 14px;border-radius:15px;background:#fff9e9;color:#766443;font-size:12px;line-height:1.6;margin-top:16px}.small-note{color:#8994a1;font-size:11px;line-height:1.5;margin-top:13px}.month-select{appearance:none;padding:9px 11px;background:white;border:1px solid #e0e7ec;border-radius:11px;color:#344858;min-width:140px;max-width:170px}.month-picker-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 15px}.month-picker-row h2{font-size:16px;margin:0}.page-kicker{font-size:12px;color:var(--muted);margin:0 1px 16px}.mini-action{border:1px solid #dce7e4;background:#f5fcfa;color:var(--green);border-radius:11px;padding:9px 12px;font-weight:700;font-size:12px}.setting-card{background:white;border:1px solid #edf0f2;border-radius:20px;padding:17px;margin-bottom:13px}.setting-card h3{margin:0 0 8px;font-size:15px}.setting-card p{font-size:12px;line-height:1.6;color:#71808c;margin:0 0 14px}.setting-btn{width:100%;text-align:left;padding:12px 13px;border:1px solid #e1e9ed;border-radius:12px;background:#fff;color:#2b4651;font-size:13px;font-weight:600;margin-top:8px}.setting-btn.primary{background:#e7f4ee;color:#1a816b;border-color:#cee8dc}.setting-btn.danger{color:var(--red);border-color:#f1dcdb}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,640px);height:calc(75px + env(safe-area-inset-bottom));padding:6px 6px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -5px 22px #192b3f12;display:grid;grid-template-columns:1fr 1fr 76px 1fr 1fr;align-items:center;z-index:3}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;border:0;color:#8c9aa5;font-size:10px;font-weight:650;min-height:52px}.nav-item.is-active{color:var(--green)}.nav-icon{font-size:25px;line-height:1}.add-fab{height:57px;width:57px;margin:auto;border:none;border-radius:19px;background:#178b75;box-shadow:0 6px 16px #158d7470;color:#fff;font-size:35px;font-weight:300;line-height:1}.sheet{border:0;padding:0;background:#fff;border-radius:24px 24px 0 0;position:fixed;bottom:0;top:auto;left:0;right:0;width:min(100%,640px);max-width:640px;max-height:93dvh;overflow:auto;box-shadow:0 -12px 50px #10203033}.sheet::backdrop{background:#0d1b2cb0}.sheet-inner{padding:25px 20px calc(27px + env(safe-area-inset-bottom));margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.dialog-head h2{margin:0;font-size:23px}.close-button{background:#f1f4f6;font-size:28px;width:38px;height:38px;box-shadow:none}.type-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border-radius:14px;background:#f0f3f5;gap:4px;margin-bottom:20px}.type-button{border:none;background:transparent;color:#71808c;border-radius:11px;padding:11px 6px;font-size:13px;font-weight:700}.type-button.active{background:#fff;color:#142638;box-shadow:0 2px 5px #172a3e12}.field-label{display:block;font-size:12px;color:#71808c;font-weight:680;margin:0 0 7px}.amount-input-wrap{display:flex;align-items:center;border-bottom:1px solid #e4e9ed;margin-bottom:19px}.amount-input-wrap input{width:100%;border:0;outline:none;background:white;font-size:39px;font-weight:700;letter-spacing:-1px;padding:3px 0 10px;min-width:0}.currency-symbol{font-size:24px;font-weight:630;color:#a3aeb8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px}.field{font-size:12px;color:#667786;font-weight:680;display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.form-grid .field{margin:0}.field.full{grid-column:1/-1}.field input,.field select{width:100%;min-width:0;height:45px;border:1px solid #e2e8eb;background:#f7f9fa;border-radius:11px;padding:0 12px;color:#203244;font-size:14px;outline-color:#148d74;font-weight:500}.primary-button{display:block;border:0;border-radius:13px;background:#188c75;color:#fff;font-weight:750;text-align:center;width:100%;padding:15px;margin-top:18px;font-size:14px}.primary-button:disabled{background:#8ba89f}.helper-text{font-size:12px;color:#778692;line-height:1.6}.form-error{color:#b64747;font-size:12px;line-height:1.4;margin-top:9px}.danger-text-button,.text-button{margin-top:12px;padding:12px;border:0;background:none;color:#b84c49;font-weight:650;width:100%;font-size:13px}.text-button{color:#258b79}.secondary-action{background:#244456}.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translate(-50%,15px);max-width:min(88vw,500px);z-index:50;background:#1a2d3c;color:white;padding:12px 18px;font-size:12px;line-height:1.5;border-radius:12px;box-shadow:0 7px 30px #10223445;opacity:0;pointer-events:none;transition:.2s}.toast.visible{transform:translate(-50%,0);opacity:1}.boot-error{max-width:640px;margin:45px auto;padding:25px;background:#fff6f3;color:#943a3a;border-radius:18px;line-height:1.6}@media(max-width:360px){.page{padding:0 12px}.topbar{padding-left:14px;padding-right:14px}.hero{padding:20px 17px}.stat{padding:13px 10px}.stat-value{font-size:16px}.row-value{font-size:13px}.form-grid{grid-template-columns:1fr}}@media(min-width:641px){.sheet{border-radius:24px;bottom:50%;transform:translateY(50%);max-height:90dvh}.app{border-left:1px solid #e4ebed;border-right:1px solid #e4ebed}}@media(prefers-reduced-motion:reduce){.toast{transition:none}}

.ck-check{display:flex;gap:11px;align-items:flex-start;font-size:12px;line-height:1.5;margin:12px 0;color:#455766}.ck-check input{width:19px;height:19px;flex-shrink:0;accent-color:#188c75}.sheet details{background:#f2f5f8;border-radius:12px;padding:12px;margin-top:8px}.sheet details ul{padding-left:19px;line-height:1.6}.sheet details li{margin-top:7px}
