@font-face{font-family:Montserrat;src:url('./assets/montserrat.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('./assets/roboto.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#101010;--card:#252525;--ink:#fff;--muted:#b0b0b8;--accent:#bcb7ff;--accent-pale:#302b3e;--border:#3a3a3f;--red:#e8a0a0;--sand:#ffcb25;--soft:#2d2d32;--field:#202023;--line:#36363a;--surface-hover:#303035;--active:#332b43;--sidebar:#101010b3;--navigation:#1b1b1bf5;--gradient:linear-gradient(110deg,#c084fc 0%,#e392fa 28%,#93a9f9 100%);--text-gradient:var(--gradient);--button-ink:#20172e;--button-shadow:#0003;--goal-bg:#29272e;--shadow:0 8px 34px #00000014;--toast:#e6d9fa;--toast-ink:#27202e;--wave-opacity:.065}
:root[data-theme=light]{color-scheme:light;--bg:#f6f5fa;--card:#fff;--ink:#25242c;--muted:#6f6b7b;--accent:#70549b;--accent-pale:#f0eaf9;--border:#e2dfeb;--red:#994a55;--soft:#f1eff7;--field:#faf9fd;--line:#ece8f2;--surface-hover:#f6f3fa;--active:#eee7f8;--sidebar:#faf9fdd9;--navigation:#fffffff5;--text-gradient:linear-gradient(110deg,#8352ae 0%,#965297 28%,#4f66ad 100%);--goal-bg:#f3effa;--shadow:0 8px 34px #35265006;--toast:#292333;--toast-ink:#fff;--button-shadow:#57447714}
body{font-family:Roboto,sans-serif;background:var(--bg);color:var(--ink);line-height:1.45;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;background:url('./assets/hendrix-dark.png') center center/cover no-repeat;pointer-events:none}
:root[data-theme=light] body::before{background:linear-gradient(135deg,#faf9fd,#eeecf4 70%,#f8f7fb)}
:root[data-theme=light] body::after{content:'';position:fixed;inset:35% 0 0;background:url('./assets/waves.svg') center bottom/cover no-repeat;opacity:var(--wave-opacity);pointer-events:none;z-index:-1}
.app-shell{max-width:1536px;grid-template-columns:230px 1fr}.workspace{max-width:1280px;width:100%;padding-left:40px;padding-right:40px}.sidebar{border-color:var(--border);background:var(--sidebar);backdrop-filter:blur(14px)}
h1,h2,h3,.brand,.mobile-brand,.balance-number,.goal-number,.expected-total{font-family:Montserrat,sans-serif;letter-spacing:-.025em}h1{font-weight:750;font-size:29px}h2{font-weight:650;font-size:18px}h3{font-weight:600}.brand{font-size:19px;font-weight:750;letter-spacing:-.04em}.brand small{font-family:Roboto,sans-serif;font-size:12px;color:var(--muted)}.brand-mark{background:var(--gradient);color:var(--button-ink);border-radius:16px}.mobile-brand{font-size:21px;font-weight:750}
.topbar{gap:15px}.topbar-label{color:var(--muted);font-size:12px}.topbar-tools{display:flex;align-items:center;gap:20px}.theme-switch{display:flex;gap:3px;padding:4px;background:var(--soft);border:1px solid var(--border);border-radius:50px}.theme-switch button{display:flex;align-items:center;gap:7px;border:0;padding:7px 11px;min-height:34px;border-radius:30px;background:none;color:var(--muted);font-size:11px;line-height:1}.theme-switch svg{width:16px;height:16px}.theme-switch button[aria-pressed=true]{background:var(--gradient);color:var(--button-ink);box-shadow:0 2px 8px var(--button-shadow);font-weight:600}.theme-switch button:hover:not([aria-pressed=true]){background:var(--surface-hover)}
.family{color:var(--muted)}.avatar,.avatar.arina{background:var(--accent-pale);color:var(--accent);border-color:var(--bg)}.avatar.arina{background:var(--soft);color:var(--ink)}
.desktop-nav button{color:var(--muted);font-weight:500;border-radius:50px}.desktop-nav button.active{background:var(--active);color:var(--accent)}.desktop-nav button:hover:not(.active){background:var(--soft);color:var(--ink)}.sidebar-foot{color:var(--muted)}.sidebar-foot button{color:var(--accent)}
.prototype-banner{background:var(--soft);border:1px solid var(--border);color:var(--muted);border-radius:50px;padding-left:16px;padding-right:16px}.prototype-banner button{color:var(--muted)}
.card{background:var(--card);border-color:var(--border);box-shadow:var(--shadow)}.page-heading{margin-top:33px;margin-bottom:25px}.subtle,.period-subtitle,.eyebrow{color:var(--muted)}.eyebrow{font-weight:600;letter-spacing:1.7px}.balance-number{font-weight:750;font-size:44px;letter-spacing:-.04em;background:var(--text-gradient);background-clip:text;-webkit-background-clip:text;color:transparent}.balance-number.negative{background:none}.rub{font-size:.63em;font-weight:600;opacity:.85}.balance-description{color:var(--muted)}.tiny-icon{background:var(--soft);color:var(--accent)}.balance-pair,.balance-pair strong{color:var(--muted)}.balance-pair strong{font-weight:600;color:var(--ink)}.progress-track{background:var(--soft)}.progress-fill{background:var(--gradient)}
.primary{background:var(--gradient);color:var(--button-ink);border:1px solid transparent;box-shadow:0 4px 16px var(--button-shadow);border-radius:50px;font-weight:650}.primary:hover{background:var(--gradient);filter:brightness(1.08)}.primary svg{stroke-width:2}.secondary{background:transparent;border:1px solid var(--accent);color:var(--accent);border-radius:50px}.secondary:hover{background:var(--accent-pale)}.text-button{color:var(--accent)}button:focus-visible,a:focus-visible{outline-color:var(--accent)}.icon-button{background:var(--card);border-color:var(--border);color:var(--ink);border-radius:50%}.month-field input{color-scheme:inherit}.month-label{font-family:Roboto,sans-serif}
.goal-card{background:var(--goal-bg);border-color:var(--border);position:relative;overflow:hidden}.goal-card::before{content:'';height:2px;position:absolute;top:0;left:22px;right:22px;background:var(--gradient);opacity:.8}.goal-card .eyebrow{color:var(--accent)}.goal-number{font-size:36px;font-weight:750;background:var(--text-gradient);background-clip:text;-webkit-background-clip:text;color:transparent;letter-spacing:-.035em}.goal-caption,.goal-card .balance-pair{color:var(--muted)}.goal-card .progress-track{background:var(--soft)}.goal-toggle,.wish-add{color:var(--accent)}.goal-list{border-color:var(--border)}.wish-row small{color:var(--muted)}
.section-heading>span{color:var(--muted)}.category-row{border-color:var(--line)}.category-icon{background:var(--soft);color:var(--accent)}.category-bottom{color:var(--muted)}.category-row.over .progress-fill{background:var(--red)}.all-categories{color:var(--accent)}.expected-card .expected-badge{background:var(--accent-pale);color:var(--accent);font-size:8px;letter-spacing:.3px;border-radius:30px}.expected-total{font-size:28px;font-weight:700;color:var(--ink)}.expected-copy,.expected-row small,.small-note{color:var(--muted)}.expected-row{border-color:var(--line)}.demo-example{border-color:var(--border);background:var(--sidebar);color:var(--muted)}.demo-example strong{color:var(--ink)}.demo-example button{color:var(--accent)}.page-footer{color:var(--muted)}
.back-button{color:var(--muted)}.segmented{background:var(--soft);border:1px solid var(--border);border-radius:50px}.segmented button{color:var(--muted);border-radius:50px}.segmented button.active{background:var(--active);color:var(--ink);box-shadow:none}.amount-wrap{border-color:var(--border)}.field-label{color:var(--muted)}.amount-wrap input{font-family:Montserrat,sans-serif;color:var(--ink);font-weight:700}.amount-wrap input::placeholder{color:var(--muted);opacity:.55}.amount-wrap .currency{color:var(--accent)}.field input,.field select,.field textarea{background:var(--field);border-color:var(--border);color:var(--ink);font-family:Roboto,sans-serif;color-scheme:inherit}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-pale)}.field textarea::placeholder{color:var(--muted)}.field-help,.form-tip,.optional-comment{color:var(--muted)}.person-select label{background:var(--field);border-color:var(--border);color:var(--muted)}.person-select label:has(input:checked){background:var(--active);border-color:var(--accent);color:var(--accent)}.person-select label:has(input:focus-visible){outline-color:var(--accent)}.scope-note{background:var(--accent-pale);color:var(--accent)}.form-error{color:var(--red);background:var(--accent-pale)}.delete-button{color:var(--red)}
.history-summary,.date-heading{color:var(--muted)}.filter-chips button{border-color:var(--border);color:var(--muted);background:var(--card)}.filter-chips button.active{background:var(--gradient);color:var(--button-ink);border-color:transparent}.transaction{border-color:var(--line);color:var(--ink)}.transaction:hover{background:var(--surface-hover)}.transaction-icon,.transaction.income .transaction-icon{background:var(--soft);color:var(--accent)}.transaction.income .transaction-amount{color:var(--accent)}.transaction-info small{color:var(--muted)}.demo-label{color:var(--accent)}.empty-icon{background:var(--soft);color:var(--accent)}.empty-state p{color:var(--muted)}
.toast{background:var(--toast);color:var(--toast-ink)}.toast button{color:inherit;text-decoration:underline;text-underline-offset:3px}.mobile-nav{background:var(--navigation);border-color:var(--border)}.mobile-nav button{color:var(--muted)}.mobile-nav button.active{color:var(--accent)}.add-icon{background:var(--gradient);color:var(--button-ink);box-shadow:0 4px 12px var(--button-shadow);border-radius:16px}dialog{background:var(--card);color:var(--ink);border:1px solid var(--border)}dialog p{color:var(--muted)}dialog::backdrop{background:#0009}.dialog-close{background:var(--soft);color:var(--ink)}
@media(min-width:1450px){.workspace{padding-left:48px;padding-right:48px}.balance-number{font-size:48px}.goal-number{font-size:39px}}
@media(max-width:1200px) and (min-width:761px){.topbar-label{display:none}.topbar{justify-content:flex-end}.topbar-tools{width:100%;justify-content:space-between}.family>span:last-child{display:none}.balance-number{font-size:38px}.goal-number{font-size:31px}.expected-card .section-heading{display:block}.expected-badge{display:inline-block;margin-top:8px}}
@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr}.workspace{padding-left:27px;padding-right:27px}.brand{font-size:17px}.brand-mark{width:36px;height:42px;flex-shrink:0}}
@media(max-width:760px){.app-shell{display:block}.workspace{max-width:580px;padding-left:20px;padding-right:20px}.topbar{height:78px;justify-content:space-between;gap:10px}.topbar-tools{gap:8px}.family{display:none}.theme-switch{padding:3px;gap:2px}.theme-switch button{padding:7px;min-height:32px;width:32px;justify-content:center}.theme-switch span{display:none}.theme-switch svg{width:17px;height:17px}.prototype-banner{padding:8px 12px}.balance-number{font-size:39px}.goal-number{font-size:30px}h1{font-size:24px}h2{font-size:17px}.month-label{font-size:11px}.page-heading{margin-top:25px}.eyebrow{font-size:9px;letter-spacing:1.4px}.goal-card{padding:21px 22px}.expected-card .section-heading{display:flex}.expected-card .expected-badge{font-size:8px}.form-page h1{font-size:24px}.amount-wrap input{font-size:39px}.mobile-nav .mobile-add svg{stroke-width:1.9}.page-footer{font-size:9px}}
@media(max-width:370px){.workspace{padding-left:15px;padding-right:15px}.balance-number{font-size:35px}.brand,.mobile-brand{font-size:19px}.expected-card .section-heading{display:block}.expected-card .expected-badge{display:inline-block;margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.balance-number,.goal-number{width:fit-content;max-width:100%}
.theme-switch button{min-height:40px}
@media(max-width:760px){.theme-switch button{min-height:44px;width:44px}}
