:root{font-family:"Helvetica Neue",Arial,ui-sans-serif,sans-serif;font-synthesis:none;--bg:#f5f4ef;--surface:#fffefa;--panel:#eaeae2;--ink:#222720;--muted:#73776e;--line:#d7d9cf;--accent:#d7f152;--accent-ink:#272f0e;--positive:#386b42;--danger:#b74338;--night:#252c25;--night-muted:#b8c1b4;color:var(--ink);background:var(--bg)}
:root[data-theme=dark]{--bg:#171917;--surface:#1e231e;--panel:#292f29;--ink:#eeefe7;--muted:#a2ab9e;--line:#394037;--accent:#d7f152;--accent-ink:#272f0e;--positive:#a2cc9d;--danger:#f69586;--night:#30382b;--night-muted:#c0cbb6}
:root[data-accent=mint]{--accent:#b4e9ef;--accent-ink:#193b3d}:root[data-accent=peach]{--accent:#ffbb7d;--accent-ink:#512c0e}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button,input,select,a{touch-action:manipulation}button{cursor:pointer;border:1px solid transparent;background:var(--panel);color:var(--ink);min-height:44px;padding:12px 18px;border-radius:3px;font-size:12px;font-weight:600;transition:background .15s,transform .15s}button:hover{filter:brightness(.95)}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px}a{color:inherit}.shell{max-width:1280px;margin:auto;padding:0 40px 60px 230px}header{display:flex;align-items:center;justify-content:space-between;padding:32px 0 24px;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}.brand-monogram{display:grid;place-items:center;width:42px;height:42px;background:var(--ink);color:var(--bg);font-size:22px;font-weight:800;letter-spacing:-2px;border-radius:0 12px 0 0;flex-shrink:0}.brand>span:last-child{font-size:16px;font-weight:650;letter-spacing:-.5px}.brand small{display:block;font-size:9px;letter-spacing:.3px;font-weight:400;color:var(--muted);margin-top:5px}.header-actions{display:flex;gap:10px}.icon{background:none;border-color:var(--line);font-size:10px;padding:9px 12px;min-height:36px}.page-intro{display:flex;align-items:baseline;justify-content:space-between;flex-direction:row-reverse;margin:38px 0 34px}.eyebrow{font-size:9px;font-weight:500;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}h1{font-size:40px;letter-spacing:-1.8px;font-weight:500;margin:30px 0 20px}.page-intro h1{margin:0}.heading-dot{color:var(--muted)}h2{font-size:17px;font-weight:500;letter-spacing:-.4px;margin:0}h3{font-size:14px;margin:0}.muted{font-size:13px;color:var(--muted);line-height:1.7}.small{font-size:11px}.dashboard{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);column-gap:38px;row-gap:28px}.hero{padding:8px 0 26px;margin:0;border-bottom:1px solid var(--line);min-width:0}.balance-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:100%;background:var(--positive)}.total{font-size:clamp(44px,5.5vw,76px);font-weight:450;letter-spacing:-4px;line-height:1.15;margin:22px 0 12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.balance-details{margin:0 0 28px;color:var(--muted);font-size:11px}.balance-details summary{font-size:10px;font-weight:400}.balance-details p{font-size:12px}.actions{display:flex;gap:9px;flex-wrap:wrap}.primary{background:var(--accent);color:var(--accent-ink)}.secondary{background:transparent;border-color:var(--line)}.hero .actions button{padding:13px 16px;font-size:11px}.insight{background:var(--panel);padding:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:20px;border-radius:0 18px 0 0;min-width:0}.insight-index{font-size:9px;color:var(--muted);letter-spacing:1.8px}.insight strong{font-size:20px;letter-spacing:-.5px;font-weight:500;line-height:1.3}.insight p{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0 0}.insight button{border:1px solid var(--ink);background:none;padding:9px 14px;min-height:36px;font-size:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 0 20px}.buckets-block .section-head{margin:0 0 22px}.section-head h1{margin:0}.link{background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:10px;padding:7px 0;color:var(--ink)}.allocation-strip{height:5px;display:flex;gap:3px;margin-bottom:10px}.allocation-strip span{background:var(--ink);min-width:1px}.allocation-strip .strip-1{opacity:.75}.allocation-strip .strip-2{opacity:.55}.allocation-strip .strip-3{background:var(--accent)}.allocation-strip .strip-4{opacity:.3}.allocation-strip .strip-5{opacity:.15}.envelopes{border:0;background:none}.envelope{display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.category-icon{width:24px;height:28px;display:grid;place-items:center;flex-shrink:0;color:var(--muted)}.category-icon svg{width:18px;height:18px}.envelope-name{display:grid;gap:5px;flex:1;min-width:0}.envelope-name strong{font-size:12px;font-weight:500}.envelope-name span{font-size:9px;letter-spacing:.3px}.envelope>b{font-size:16px;letter-spacing:-.5px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.goal-card{align-self:start;position:relative;overflow:hidden;background:var(--night);color:#f3f5ed;padding:26px;min-height:360px;display:flex;flex-direction:column}.goal-card .eyebrow{color:var(--night-muted);font-size:9px}.goal-card h2{font-size:37px;line-height:1.1;letter-spacing:-1.8px;margin:24px 0 8px;font-weight:400}.goal-subtitle{color:var(--night-muted);font-size:10px;line-height:1.6}.goal-card p{color:#f3f5ed;font-size:12px;margin-top:18px;line-height:1.6}.goal-plan{color:var(--night-muted);margin:auto -10px 5px;opacity:.55}.goal-plan svg{width:100%;height:115px}.bar{height:4px;background:var(--line);margin:16px 0 12px;overflow:hidden}.bar i{display:block;height:100%;background:var(--ink)}.goal-card .bar{background:#ffffff25;margin:12px 0 14px;flex-shrink:0}.goal-card .bar i{background:var(--accent)}.goal-caption{font-size:9px;color:var(--night-muted);line-height:1.5}.card{background:var(--surface);border:1px solid var(--line);padding:24px;border-radius:4px}.stack{display:grid;gap:14px}.card-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.card .amount{font-size:31px;font-weight:450;letter-spacing:-1px;margin:18px 0 12px}.fold{border:0;border-bottom:1px solid var(--line);padding:18px 0;margin:0;background:none;border-radius:0}.dashboard+.fold{margin-top:22px}.fold summary{font-size:12px}.fold[open] summary{margin-bottom:20px}summary{cursor:pointer;line-height:1.7;font-size:12px;font-weight:500}summary::marker{color:var(--muted)}.fold .tag{float:right}.row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:17px 0}.row:last-child{border:0}.row strong{display:block;font-size:13px;font-weight:500;line-height:1.6;margin-bottom:5px}.row b{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.tag{font-size:9px;color:var(--muted);background:var(--panel);padding:4px 7px;border-radius:2px}.positive{color:var(--positive)}.danger,.link.danger{color:var(--danger)}.link.danger{margin-left:12px}.empty{border:1px dashed var(--line);padding:35px 24px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.warning{padding:17px;background:var(--panel);border-left:2px solid var(--danger);font-size:12px;line-height:1.8;margin:16px 0}.warning h2{color:inherit}.check{display:flex;align-items:center;gap:12px;line-height:1.7}.check input{width:20px;height:20px;flex-shrink:0}.banner{padding:14px;background:var(--panel);font-size:12px}nav{position:fixed;left:max(24px,calc(50% - 600px));top:155px;width:155px;display:flex;flex-direction:column;gap:5px}nav:before{content:'НАВИГАЦИЯ';font-size:8px;letter-spacing:1.9px;color:var(--muted);margin:0 0 16px 12px}nav button{display:flex;align-items:center;gap:12px;background:none;color:var(--muted);padding:12px;min-height:45px;border-radius:0;font-size:12px}nav button svg{width:17px;height:17px;flex-shrink:0}nav button span{font-size:11px;font-weight:500}nav button.active{background:var(--accent);color:var(--accent-ink)}dialog{max-height:90dvh;width:min(460px,calc(100% - 28px));padding:28px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#11181180;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dialog-head h2{font-size:20px}.dialog-head button{background:none;padding:8px}label{display:block;margin:18px 0 7px;font-size:12px}input,select{width:100%;padding:13px;border:1px solid var(--line);border-radius:2px;background:var(--bg);color:var(--ink);font-size:14px}input:focus,select:focus{outline:2px solid var(--ink);outline-offset:2px}.check input{accent-color:var(--positive)}form>.primary{width:100%;margin-top:18px}#form-error{font-size:12px;color:var(--danger);line-height:1.7}#correction-preview{padding:12px;background:var(--panel);line-height:1.8;font-size:11px}#notice{position:fixed;top:16px;left:50%;transform:translateX(-50%);padding:14px 20px;background:var(--ink);color:var(--bg);font-size:12px;line-height:1.5;z-index:5;width:max-content;max-width:90%;box-shadow:0 5px 20px #0002}#notice:empty{display:none}.appearance-card{margin:24px 0}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.theme-options button{border:1px solid var(--line);background:var(--bg);font-size:11px;min-height:90px}.theme-options button span{display:block;font-size:24px;font-weight:400;margin-bottom:10px}.theme-options button[aria-pressed=true],.accent-options button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:transparent}.accent-options{display:flex;gap:9px;flex-wrap:wrap}.accent-options button{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);font-size:11px}.swatch{width:12px;height:12px;display:block;border-radius:50%;border:1px solid #0002}.swatch.violet{background:#d7f152}.swatch.mint{background:#b4e9ef}.swatch.peach{background:#ffbb7d}.install-card{display:flex;align-items:center;gap:20px;margin:18px 0}.install-card button{flex-shrink:0;font-size:11px}.bank-history{max-height:65vh;overflow:auto}.bank-history strong{font-size:12px;overflow-wrap:anywhere}.bank-history .row{align-items:flex-start}.bank-history .row>div:first-child{flex:1;min-width:0}.bank-history .row>div:last-child{text-align:right}.bank-history .tag{display:inline-block;margin:6px 0}.bank-history .link{display:block}.row .link{min-height:36px;padding:5px 0}body[data-page=bank] .hero{padding:24px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}footer{font-size:9px;color:var(--muted);letter-spacing:.3px;line-height:1.8;margin:30px 0 12px}
@media(min-width:1200px){.dashboard{column-gap:48px}.hero .total{font-size:79px}}
@media(max-width:1000px) and (min-width:761px){.shell{padding-left:200px;padding-right:26px}.dashboard{grid-template-columns:1.4fr 1fr;gap:22px}.hero .total{font-size:52px;letter-spacing:-2.5px}.hero .actions{gap:6px}.hero .actions button{padding:10px;font-size:10px}nav{left:22px;width:145px}.goal-card{padding:23px}.goal-card h2{font-size:32px}}
@media(max-width:760px){.shell{padding:0 22px calc(110px + env(safe-area-inset-bottom))}header{padding:22px 0 20px}.brand-monogram{width:34px;height:34px;font-size:19px}.brand>span:last-child{font-size:15px}.brand small{font-size:8px}.header-actions{gap:6px}.icon{font-size:9px;padding:8px;min-height:34px}.page-intro{margin:28px 0}.page-intro h1{font-size:34px;letter-spacing:-1.5px}.page-intro .eyebrow{font-size:8px;letter-spacing:1px}.dashboard{display:flex;flex-direction:column;gap:25px}.hero{padding:3px 0 25px;border-bottom:1px solid var(--line)}.hero .total{font-size:clamp(42px,9vw,66px);letter-spacing:-2.6px;margin-top:18px}.balance-details{margin-bottom:25px}.hero .actions{gap:8px}.hero .actions button{flex:1;padding:13px 8px;font-size:10px}.insight{display:grid;grid-template-columns:1fr auto;column-gap:16px;row-gap:10px;padding:19px;border-radius:0 12px 0 0}.insight-index{grid-column:1/-1;font-size:8px}.insight strong{font-size:16px;letter-spacing:-.3px}.insight p{font-size:11px;line-height:1.6;margin-top:6px}.insight button{font-size:9px;padding:8px 10px;align-self:center}.buckets-block{margin-top:5px}.buckets-block .section-head{margin-bottom:20px}.section-head h2{font-size:19px}.envelope{padding:16px 0}.envelope-name strong{font-size:12px}.envelope>b{font-size:16px}.goal-card{min-height:260px;padding:24px;display:grid;grid-template-columns:1fr 120px;column-gap:12px}.goal-card h2{font-size:36px;margin:18px 0 8px}.goal-card p{font-size:11px}.goal-plan{align-self:center;margin:0 -15px 0 0}.goal-plan svg{height:100px}.goal-card .bar,.goal-caption{grid-column:1/-1}.goal-card .bar{margin-top:20px}.goal-caption{font-size:9px}nav{top:auto;left:0;bottom:0;width:100%;padding:9px 14px calc(9px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);flex-direction:row;gap:4px;z-index:2}nav:before{display:none}nav button{flex:1;min-width:0;flex-direction:column;justify-content:center;gap:6px;padding:8px 3px;min-height:53px;border-radius:2px}nav button.active{background:var(--accent);color:var(--accent-ink)}nav button svg{width:18px;height:18px}nav button span{font-size:9px}.card{padding:20px}.fold{padding:19px 0}.install-card{display:block}.install-card button{width:100%}.row{flex-wrap:wrap}.bank-history .row>div:last-child{text-align:left}.theme-options{gap:7px}.theme-options button{font-size:10px;padding:10px 6px}.header-actions #account{max-width:110px}h1{font-size:30px}}
@media(max-width:370px){.shell{padding-left:17px;padding-right:17px}.brand small{display:none}.brand>span:last-child{font-size:13px}.brand{gap:8px}.brand-monogram{width:30px;height:30px;font-size:17px}.icon{font-size:8px;padding:7px}.header-actions{gap:4px}.hero .total{font-size:42px}.hero .actions button{font-size:9px}.envelope>b{font-size:14px}.goal-card{grid-template-columns:1fr 85px}.goal-card h2{font-size:31px}.insight button{padding:7px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.hero .actions .primary{flex:1.4}.envelope-name span{font-size:10px}.goal-caption{font-size:10px}}
