:root{--bg:#f6f5f0;--card:#fff;--ink:#22352f;--muted:#7a847d;--accent:#216b52;--accent-pale:#edf5ed;--border:#e6e8e1;--red:#a33d37;--sand:#e4c48e;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;font-feature-settings:"tnum"}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #93b69f;outline-offset:4px}button{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.65}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650;margin-bottom:8px}h2{font-size:19px;letter-spacing:-.45px;font-weight:650;margin-bottom:8px}h3{font-size:15px;margin-bottom:8px}.app-shell{max-width:1600px;margin:auto;min-height:100dvh;display:grid;grid-template-columns:230px 1fr}.sidebar{padding:36px 23px;position:sticky;top:0;height:100dvh;border-right:1px solid var(--border);display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;letter-spacing:-.6px}.brand small{display:block;font-size:12px;font-weight:450;color:var(--muted);letter-spacing:0;margin-top:2px}.brand-mark{width:42px;height:46px;border-radius:15px;background:var(--accent);color:white;display:grid;place-items:center;font-size:25px;font-weight:500}.desktop-nav{display:grid;gap:9px;margin-top:56px}.desktop-nav button{display:flex;align-items:center;gap:13px;background:none;border:0;border-radius:12px;padding:15px 14px;text-align:left;font-weight:550;color:#78817a}.desktop-nav button.active{background:#e8eee4;color:var(--accent)}.sidebar-foot{margin-top:auto;font-size:12px;color:var(--muted)}.sidebar-foot button{display:block;background:none;border:0;padding:8px 0;color:var(--accent);font-size:12px}.prototype-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--sand);margin-right:7px}.workspace{min-width:0;padding:0 44px 22px}.topbar{height:97px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar-label{font-size:13px;color:var(--muted)}.family{display:flex;align-items:center;font-size:12px;gap:0}.family>span:last-child{margin-left:10px}.avatar{background:#e3e9dd;border:2px solid var(--bg);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:#46664e;font-weight:600}.avatar.arina{margin-left:-8px;background:#eadfce;color:#806543}.mobile-brand{display:none}.prototype-banner{min-height:39px;background:#edece4;color:#727666;border-radius:9px;padding:9px 13px;display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:11px}.prototype-banner strong{font-weight:600}.prototype-banner button{border:0;background:none;padding:0;color:#666f60;font-size:11px;text-decoration:underline;text-underline-offset:3px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:32px 0 25px}.subtle{color:var(--muted);font-size:13px;margin:0}.period-control{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}.icon-button{border:1px solid var(--border);background:white;border-radius:10px;min-width:36px;height:36px;display:grid;place-items:center;padding:7px}.icon-button svg{width:18px;height:18px}.month-field{position:relative;text-align:center;min-width:146px}.month-label{font-size:13px;font-weight:650;white-space:nowrap}.month-field input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;color-scheme:light}.period-subtitle{font-size:11px;color:var(--muted);margin-top:3px}.overview{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}.card{border-radius:var(--radius);background:var(--card);border:1px solid var(--border);padding:25px;min-width:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--muted);display:block;margin-bottom:13px}.balance-number{font-size:46px;line-height:1.12;letter-spacing:-2px;font-weight:650;white-space:nowrap}.rub{font-size:.63em;font-weight:450;opacity:.6;letter-spacing:0}.balance-description{font-size:12px;color:var(--muted);margin:10px 0 21px}.balance-card{position:relative;overflow:hidden}.balance-top{display:flex;align-items:center;justify-content:space-between}.tiny-icon{width:35px;height:35px;border-radius:12px;background:#f3f5ef;color:#8b9c86;display:grid;place-items:center;margin-top:-15px}.progress-track{height:5px;background:#edf0e9;border-radius:10px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);border-radius:10px;transition:width .3s}.balance-pair{display:flex;justify-content:space-between;margin-top:9px;font-size:11px;color:var(--muted)}.balance-pair strong{color:var(--ink);font-weight:550}.card-actions{display:flex;gap:9px;margin-top:23px}.primary,.secondary,.text-button{border:0;border-radius:12px;padding:13px 17px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}.primary{background:var(--accent);color:#fff}.primary:hover{background:#195b45}.primary svg{width:17px;height:17px}.secondary{background:#f0f2eb;color:#536a56}.secondary:hover{background:#e6ece1}.text-button{background:none;color:var(--accent);padding:8px 0;min-height:40px}.goal-card{background:#eaf1e7;border-color:#e1e9dd}.goal-card .eyebrow{color:#62816b}.goal-number{font-size:37px;letter-spacing:-1.5px;font-weight:650;line-height:1.2}.goal-caption{font-size:12px;color:#718671;margin:9px 0 16px;min-height:18px}.goal-card .progress-track{background:#d9e4d3}.goal-card .balance-pair{color:#73856f}.goal-toggle{padding:10px 0 0;background:none;border:0;color:var(--accent);font-weight:600;font-size:12px;display:flex;align-items:center;gap:6px}.goal-toggle svg{width:15px;height:15px}.goal-list{margin-top:15px;border-top:1px solid #d5dfcf;padding-top:4px}.wish-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;font-size:12px}.wish-row small{display:block;font-size:10px;color:var(--muted)}.wish-right{text-align:right;white-space:nowrap;font-weight:600}.wish-add{background:transparent;border:0;padding:4px 0 0;font-size:10px;color:var(--accent);display:block;margin-left:auto}.categories-card{padding:24px 25px 8px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;gap:12px}.section-heading h2{margin:0}.section-heading>span{font-size:10px;color:var(--muted);text-align:right}.category-row{padding:14px 0;border-bottom:1px solid #f0f1eb;display:flex;gap:13px;align-items:center}.category-icon{width:37px;height:37px;border-radius:12px;background:#f5f5ef;display:grid;place-items:center;color:#8b9886;flex-shrink:0}.category-icon svg{width:18px;height:18px}.category-main{flex:1;min-width:0}.category-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px;margin-bottom:6px}.category-top strong{font-size:13px;font-weight:600;white-space:nowrap}.category-bottom{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-top:5px}.category-main .progress-track{height:3px}.category-row.over .category-top strong,.negative{color:var(--red)!important}.category-row.over .progress-fill{background:var(--red)}.all-categories{width:100%;border:0;background:none;padding:16px 0;color:var(--accent);font-size:12px;font-weight:600}.side-stack{display:grid;gap:22px}.expected-card .section-heading{align-items:flex-start}.expected-badge{font-size:9px;color:#8a806b;background:#f5efe3;border-radius:6px;padding:4px 7px;white-space:nowrap}.expected-total{font-size:29px;font-weight:600;letter-spacing:-1px;margin:15px 0 8px}.expected-copy{font-size:12px;color:var(--muted);margin:0 0 18px}.expected-row{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #f0f1eb;font-size:12px}.expected-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.expected-row strong{font-weight:600;white-space:nowrap}.small-note{font-size:11px;color:var(--muted);line-height:1.65}.demo-example{background:none;border:1px dashed #c9d5c3;border-radius:13px;padding:18px;font-size:12px;color:#61735e;line-height:1.5}.demo-example strong{display:block;color:var(--ink);font-size:13px;margin-bottom:5px}.demo-example button{border:0;background:none;color:var(--accent);font-size:12px;font-weight:650;padding:11px 0 0}.page-footer{text-align:center;font-size:10px;color:#9b9f96;margin-top:28px}.mobile-nav{display:none}.form-page{max-width:630px;margin:28px auto 0}.back-button{background:none;border:0;padding:0;display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:23px;min-height:32px}.back-button svg{width:17px;height:17px}.form-page h1{font-size:27px;margin-bottom:18px}.segmented{background:#eeeee6;display:flex;border-radius:13px;padding:5px;margin-bottom:23px}.segmented button{flex:1;border:0;background:none;padding:11px;border-radius:9px;font-size:13px;font-weight:550;color:#7d8579}.segmented button.active{background:white;color:var(--ink);box-shadow:0 2px 7px #2531260c}.form-card{padding:27px}.amount-wrap{position:relative;border-bottom:1px solid var(--border);padding-bottom:23px;margin-bottom:23px}.field-label{display:block;font-size:12px;color:#647364;margin-bottom:8px;font-weight:550}.amount-wrap input{font-size:43px;line-height:1.2;font-weight:550;letter-spacing:-1px;padding:0 45px 0 0;width:100%;border:0;background:transparent;color:var(--ink);outline:none;min-height:60px;border-radius:0}.amount-wrap input::placeholder{color:#c4ccc0}.amount-wrap .currency{position:absolute;right:8px;bottom:28px;font-size:27px;color:#a7b1a1}.field{margin-bottom:21px}.field input,.field select,.field textarea{width:100%;border:1px solid #e0e5db;border-radius:11px;min-height:49px;background:#fafbf7;padding:12px 13px;font-size:16px;color:var(--ink);outline:none}.field select{appearance:auto}.field input:focus,.field select:focus,.field textarea:focus{border-color:#75a087;box-shadow:0 0 0 3px #216b520c}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field input[type=date]{min-width:0;width:100%;padding:10px;font-size:15px;appearance:none}.person-select{display:flex;gap:6px;min-height:49px}.person-select label{flex:1;display:grid;place-items:center;min-width:0;border:1px solid #e0e5db;border-radius:11px;background:#fafbf7;font-size:13px;cursor:pointer;position:relative}.person-select input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.person-select label:has(input:checked){border-color:#7b9d7b;background:#edf4e9;color:var(--accent);font-weight:600}.person-select label:has(input:focus-visible){outline:3px solid #93b69f}.field-help{font-size:10px;color:var(--muted);margin-top:6px}.optional-comment{border:0;background:none;color:var(--muted);font-size:12px;padding:0;margin-bottom:21px;text-decoration:underline;text-underline-offset:3px}.form-submit{width:100%;margin-top:3px;min-height:52px;font-size:14px}.form-tip{font-size:11px;color:var(--muted);margin:13px 0 0;text-align:center}.form-error{color:var(--red);background:#fcf0eb;border-radius:9px;padding:11px 13px;font-size:12px;margin-bottom:17px;display:none}.scope-note{background:var(--accent-pale);border-radius:9px;padding:10px 12px;font-size:12px;margin-bottom:20px;color:#4e6e51}.delete-button{display:block;margin:20px auto 0;background:none;border:0;color:var(--red);font-size:12px;padding:8px}.history-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px;color:var(--muted);font-size:12px}.filter-chips{display:flex;gap:7px}.filter-chips button{border:1px solid var(--border);background:transparent;border-radius:20px;padding:7px 14px;font-size:12px}.filter-chips button.active{background:var(--ink);color:white;border-color:var(--ink)}.history-card{padding:12px 24px 20px}.date-heading{font-size:11px;color:var(--muted);font-weight:550;margin:20px 0 5px}.transaction{display:flex;align-items:center;gap:13px;border:0;border-bottom:1px solid #edf0e9;background:none;padding:15px 0;width:100%;text-align:left}.transaction:hover{background:#fafbf7}.transaction-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#f2f4ed;color:#81907c;flex-shrink:0}.transaction.income .transaction-icon{background:#edf5eb;color:var(--accent)}.transaction-info{min-width:0;flex:1}.transaction-info strong{display:block;font-size:13px;font-weight:550}.transaction-info small{display:block;font-size:10px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.transaction-amount{font-weight:600;white-space:nowrap;font-size:14px}.transaction.income .transaction-amount{color:var(--accent)}.demo-label{font-size:9px;color:#a0926d;font-weight:500;margin-left:5px}.empty-state{text-align:center;padding:55px 24px}.empty-icon{width:59px;height:59px;display:grid;place-items:center;background:#f0f3eb;color:#9aab90;border-radius:20px;margin:0 auto 22px}.empty-state h2{font-size:20px}.empty-state p{font-size:13px;color:var(--muted);max-width:290px;margin:0 auto 24px}.empty-state .text-button{display:block;margin:8px auto 0}.toast{position:fixed;bottom:26px;left:calc(50% + 115px);transform:translateX(-50%) translateY(25px);background:#263c31;color:white;border-radius:14px;padding:15px 18px;font-size:12px;box-shadow:0 8px 30px #172d2426;max-width:calc(100% - 40px);width:max-content;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;display:flex;gap:18px;align-items:center}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}.toast button{border:0;background:none;color:#c2e5b8;font-weight:600;font-size:12px;padding:0;white-space:nowrap}dialog{border:0;border-radius:24px;box-shadow:0 20px 90px #1830253d;padding:34px;max-width:460px;width:calc(100% - 36px);color:var(--ink)}dialog::backdrop{background:#172b2355;backdrop-filter:blur(3px)}dialog p{font-size:13px;color:#72806f;line-height:1.7}dialog h2{font-size:24px;margin-top:14px}.dialog-close{position:absolute;right:15px;top:15px;border:0;background:#f2f4ed;border-radius:50%;font-size:24px}.hidden{display:none!important}
@media(min-width:1450px){.workspace{padding-left:58px;padding-right:58px}.overview{gap:27px}.card{padding:29px}.categories-card{padding:27px 29px 8px}.balance-number{font-size:51px}.goal-number{font-size:41px}}
@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr}.sidebar{padding:30px 16px}.workspace{padding:0 27px 24px}.brand{font-size:18px}.desktop-nav button{padding-left:10px;font-size:13px}.overview{gap:16px}.card{padding:21px}.categories-card{padding:21px 21px 5px}.balance-number{font-size:38px}.goal-number{font-size:32px}.topbar-label{font-size:11px}.toast{left:calc(50% + 95px)}.page-heading{gap:12px}h1{font-size:27px}.month-field{min-width:130px}}
@media(max-width:760px){body{font-size:14px}.app-shell{display:block}.sidebar{display:none}.workspace{padding:0 20px 110px;max-width:580px;margin:0 auto}.topbar{height:73px}.mobile-brand{display:block;font-size:21px;letter-spacing:-.6px;font-weight:700}.topbar-label{display:none}.family>span:last-child{display:none}.avatar{width:29px;height:29px;font-size:11px}.prototype-banner{min-height:34px;font-size:10px;padding:8px 10px}.prototype-banner button{font-size:10px}.banner-desktop{display:none}.page-heading{margin:26px 0 20px;gap:10px;align-items:flex-start}h1{font-size:25px;margin:0 0 6px;letter-spacing:-.8px}.page-heading .subtle{font-size:11px;max-width:150px}.period-control{gap:3px;margin-top:-1px}.icon-button{min-width:30px;height:32px;padding:5px;border-radius:9px}.month-field{min-width:116px}.month-label{font-size:11px}.period-subtitle{display:none}.overview{display:flex;flex-direction:column;gap:16px}.card{padding:22px;width:100%;border-radius:19px}.balance-number{font-size:43px;letter-spacing:-1.5px}.balance-description{margin:8px 0 19px;font-size:11px}.eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:10px}.balance-pair{font-size:10px}.card-actions{margin-top:20px}.card-actions .primary{flex:1;font-size:13px}.card-actions .secondary{font-size:12px}.goal-number{font-size:30px}.goal-caption{margin:6px 0 13px;font-size:11px}.goal-card .eyebrow{margin-bottom:8px}.goal-card{padding:20px 22px}.goal-list{margin-top:11px}.categories-card{padding:22px 22px 5px}.section-heading h2{font-size:17px}.category-row{padding:13px 0}.category-top{font-size:12px}.category-top strong{font-size:13px}.side-stack{width:100%;gap:16px}.expected-card .expected-total{font-size:28px}.page-footer{margin-top:23px;font-size:9px}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:5;height:calc(76px + env(safe-area-inset-bottom));padding:6px 20px max(8px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #e4e8df;backdrop-filter:blur(12px);justify-content:space-around;align-items:center}.mobile-nav button{position:relative;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#8b9587;min-width:82px;min-height:57px;font-size:9px;letter-spacing:.1px}.mobile-nav button.active{color:var(--accent);font-weight:650}.mobile-nav svg{width:21px;height:21px}.mobile-nav .mobile-add{margin-top:-11px;gap:4px}.add-icon{width:43px;height:43px;border-radius:15px;background:var(--accent);color:white;display:grid;place-items:center;box-shadow:0 4px 10px #216b521a}.mobile-nav .mobile-add svg{width:23px;height:23px}.toast{left:50%;bottom:calc(88px + env(safe-area-inset-bottom));font-size:11px;width:calc(100% - 32px);max-width:520px;padding:14px 16px;gap:12px}.form-page{margin-top:22px}.back-button{margin-bottom:17px}.form-page h1{font-size:25px;margin-bottom:18px}.segmented{margin-bottom:17px}.form-card{padding:23px 20px}.amount-wrap{margin-bottom:21px;padding-bottom:19px}.amount-wrap input{font-size:41px}.amount-wrap .currency{bottom:24px}.form-two{gap:12px}.field{margin-bottom:19px}.field-label{font-size:11px}.person-select{gap:5px}.person-select label{font-size:12px}.field input[type=date]{font-size:16px;padding:11px 8px;letter-spacing:-.4px}.form-submit{min-height:53px}.form-tip{font-size:10px}.history-summary{margin-bottom:14px;font-size:10px}.filter-chips{gap:5px}.filter-chips button{font-size:11px;padding:7px 12px}.history-card{padding:5px 18px 16px}.transaction{gap:11px;padding:14px 0}.transaction-amount{font-size:13px}.transaction-icon{width:35px;height:35px;border-radius:11px}.transaction-info strong{font-size:12px}.transaction-info small{font-size:10px}.empty-state{padding:40px 15px}.expected-copy{font-size:11px}.demo-example{padding:17px}.form-page .subtle{font-size:12px}.scope-note{font-size:11px}dialog{padding:29px 23px}dialog p{font-size:13px}}
@media(max-width:370px){.workspace{padding-left:15px;padding-right:15px}.month-field{min-width:107px}.month-label{font-size:10px}h1{font-size:23px}.card{padding:19px}.categories-card{padding:19px 19px 5px}.balance-number{font-size:38px}.form-card{padding:21px 16px}.form-two{gap:8px}.person-select label{font-size:11px}}
