:root{font-family:Manrope,Segoe UI,sans-serif;color:#253b37;background:#f5f7f8;font-synthesis:none;font-size:15px;--bg:#f5f7f8;--surface:#fff;--text:#253b37;--muted:#798781;--border:#e8eeea;--green:#214f42;--soft:#eaf3ed;--input:#fafcfb}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{display:inline-flex;align-items:center;justify-content:center;gap:8px}button:focus-visible,a:focus-visible{outline:3px solid #7fb797;outline-offset:3px}input:focus,select:focus{outline:2px solid #7fb797;outline-offset:1px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1.2px;font-weight:750}h2{font-size:17px;font-weight:750;letter-spacing:-.35px}p{line-height:1.7}small{font-size:13px}input,select{min-height:46px;border:1px solid var(--border);border-radius:9px;padding:10px 12px;color:var(--text);background:var(--input);min-width:0}select{padding-right:32px}.app{max-width:1800px;margin:auto;min-height:100vh}.sidebar{width:260px;position:fixed;top:0;bottom:0;padding:36px 22px 22px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;font-size:18px;font-weight:800;letter-spacing:-.5px}.brand-icon{display:grid;place-items:center;border-radius:12px;width:43px;height:43px;flex-shrink:0;background:var(--green);color:#c9ebd1}.brand small{display:block;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:.1px;margin-top:5px}.nav-label{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:48px 12px 17px}.sidebar nav{display:grid;gap:8px}.sidebar nav button{justify-content:flex-start;padding:14px 16px;border:0;border-radius:9px;background:none;color:var(--muted);font-weight:600}.sidebar nav button.active{color:var(--green);background:var(--soft)}.sidebar nav button:hover{background:var(--soft)}.sidebar-note{margin-top:auto;padding:24px 16px;border-radius:14px;background:var(--soft);position:relative}.sidebar-note span{font-size:18px;font-weight:700;line-height:1.6;letter-spacing:-.4px}.sidebar-note p{font-size:12px;color:var(--muted);margin-top:13px;line-height:1.7}.profile{display:flex;align-items:center;gap:10px;padding-top:26px}.profile strong{font-size:11px}.profile small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.avatar{width:35px;height:35px;display:grid;place-items:center;background:#e4eae3;color:#43634e;border-radius:50%;font-weight:700;font-size:13px}main{margin-left:260px;padding:0 44px 24px}header{height:93px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px}.eyebrow span{color:var(--muted);font-weight:500;letter-spacing:.2px;margin-left:10px}.header-actions{display:flex;align-items:center;gap:18px}.icon-button{border:0;background:transparent;color:var(--muted);width:38px;height:38px;border-radius:8px;flex-shrink:0}.icon-button:hover{background:var(--soft)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:37px 0 28px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px}.primary{color:#fff;background:var(--green);border:1px solid var(--green);border-radius:9px;padding:13px 18px;font-size:13px;font-weight:650;min-height:46px;white-space:nowrap}.primary:hover{filter:brightness(1.12)}.period-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.month{display:flex;align-items:center;border:1px solid var(--border);border-radius:9px;background:var(--surface);height:42px}.month button{border:0;background:none;color:var(--muted);width:33px;height:40px}.month input{border:0;background:transparent;min-height:36px;padding:6px 4px;font-size:13px;width:160px}.local-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.local-label>span{width:5px;height:5px;background:#8aa792;border-radius:50%}.stat-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:18px}.stat{padding:23px 24px;background:var(--surface);border:1px solid var(--border);border-radius:14px;min-height:175px}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}.stat-top svg{flex-shrink:0;opacity:.65}.stat h2{font-size:32px;font-weight:700;margin:22px 0 8px;letter-spacing:-1px;position:relative;z-index:1}.stat p{font-size:11px;color:var(--muted)}.hero-stat{background:#214f42;color:#fff;border-color:#214f42;position:relative;overflow:hidden}.hero-stat .stat-top,.hero-stat p{color:#b8d0c3}.hero-decoration{position:absolute;width:180px;height:180px;border:24px solid #ffffff05;border-radius:50%;right:-50px;bottom:-100px}.content-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-top:25px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px}.text-button{border:0;padding:6px 0;color:var(--green);background:transparent;font-size:12px;font-weight:650}.transactions{padding:0 24px 18px}.day-heading{display:flex;justify-content:space-between;background:var(--input);padding:9px 11px;color:var(--muted);font-size:11px;border-radius:6px;margin:7px 0}.transaction{width:100%;border:0;border-bottom:1px solid var(--border);background:none;padding:16px 0;text-align:left;color:var(--text);gap:12px}.transaction:last-child{border-bottom:0}.transaction:hover .edit-hint{opacity:1}.category-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.transaction-description{display:grid;gap:5px;flex:1;min-width:0}.transaction-description strong{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction-description small{font-size:11px;color:var(--muted)}.expense-amount{font-size:13px;font-weight:650;white-space:nowrap}.edit-hint{opacity:0;color:var(--muted)}.empty{min-height:278px;padding:35px 25px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.empty>svg{margin-bottom:18px;color:#9cb3a4}.empty h3{color:var(--text);font-size:17px;letter-spacing:-.3px;margin-bottom:10px}.empty p{font-size:13px;max-width:300px}.empty button{margin-top:22px}.chart-empty{min-height:310px;gap:23px}.empty-ring{width:132px;height:132px;border:22px solid var(--soft);border-radius:50%}.donut{height:170px;width:170px;border-radius:50%;margin:5px auto 25px;display:grid;place-items:center}.donut>div{height:126px;width:126px;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px}.donut small{font-size:10px;color:var(--muted)}.donut strong{font-size:17px}.legend{padding:0 24px 25px}.legend>div{display:flex;align-items:center;gap:9px;padding:8px 0;font-size:11px}.legend>div>span:nth-child(2){flex:1}.legend strong{font-size:11px;width:35px;text-align:right}.legend>div>span:last-child{width:85px;text-align:right;color:var(--muted)}.color-dot{width:9px;height:9px;border-radius:3px;flex-shrink:0}.bottom-note{display:flex;justify-content:center;align-items:center;gap:9px;margin:30px 0;color:var(--muted);font-size:12px}.bottom-note svg{color:#7e9c85}footer{border-top:1px solid var(--border);padding-top:22px;margin-top:40px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.filters{padding:24px;display:flex;align-items:center;gap:14px}.search{display:flex;align-items:center;padding-left:12px;border:1px solid var(--border);border-radius:9px;flex:1;color:var(--muted)}.search input{border:0;background:none;width:100%}.filters>span{font-weight:700;white-space:nowrap}.category-form{display:flex;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--border)}.category-form input{flex:1}.categories-panel{padding:24px;max-width:850px}.category-row{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.category-row strong{font-size:14px;flex:1}.category-row small{color:var(--muted)}.muted{color:var(--muted);font-size:12px}.categories-panel>.muted{margin-top:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-panel{padding:26px;align-self:start}.settings-panel p{font-size:14px;color:var(--muted);margin:16px 0 23px}.secondary{border:1px solid var(--border);border-radius:9px;padding:13px 16px;background:var(--input);color:var(--text);min-height:46px;justify-content:flex-start;margin:12px 0;width:100%;font-size:13px}.settings-panel h2:not(:first-child){margin-top:28px}.mobile-nav{display:none}dialog{border:1px solid var(--border);border-radius:19px;padding:0;width:min(460px,calc(100% - 28px));background:var(--surface);color:var(--text);max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#102c2580;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.expense-form{padding:27px}.expense-form .panel-heading{padding:0 0 18px}.expense-form label{display:block;font-size:13px;margin-bottom:18px;font-weight:600}.expense-form label input,.expense-form label select{display:block;width:100%;margin-top:8px}.expense-form .amount-input{font-size:32px;font-weight:650;padding:16px}.expense-form label .muted{float:right;font-weight:400}.submit{width:100%;margin-top:4px}.danger{color:#b35a62;width:100%;margin-top:18px}.error{padding:14px 17px;border-radius:8px;background:#fceced;color:#9c3545;font-size:13px;margin-bottom:20px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);background:#214f42;color:#fff;box-shadow:0 8px 25px #0002;border-radius:10px;padding:16px 22px;font-size:14px;display:flex;align-items:center;gap:10px;z-index:10}.settings-panel .muted{font-size:12px}[data-theme=dark]{--bg:#15221e;--surface:#1c2b26;--text:#e1ebe4;--muted:#9daf9f;--border:#304138;--green:#43775b;--soft:#2b4033;--input:#192720;background:var(--bg);color:var(--text)}[data-theme=dark] .hero-stat{background:#2b5641}[data-theme=dark] .sidebar nav button.active{color:#bfdfc7}[data-theme=dark] .text-button{color:#acd0b5}@media(min-width:1600px){main{padding-left:65px;padding-right:65px}.content-grid{grid-template-columns:1.5fr 1fr}.stat{min-height:190px}}@media(max-width:1150px){.sidebar{width:220px;padding:30px 16px}.brand{font-size:16px}.brand small{font-size:9px}main{margin-left:220px;padding:0 26px 24px}.stat{padding:20px 18px}.stat h2{font-size:25px}.content-grid{grid-template-columns:1.2fr 1fr;gap:16px}.panel-heading{padding:20px}.panel-heading h2{font-size:15px}.transactions{padding:0 18px 16px}.edit-hint{display:none}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}}@media(max-width:850px){.sidebar{display:none}main{margin-left:0;padding:0 24px 105px}header{height:65px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:var(--surface);border-top:1px solid var(--border);padding:10px 5px max(10px,env(safe-area-inset-bottom));z-index:5}.mobile-nav button{display:flex;flex-direction:column;gap:5px;color:var(--muted);border:0;background:none;font-size:10px;min-width:65px;min-height:44px}.mobile-nav button.active{color:var(--green)}[data-theme=dark] .mobile-nav button.active{color:#b7d5b8}.page-heading{padding-top:26px}.page-heading h1{font-size:28px}.toast{bottom:90px;white-space:nowrap}.settings-grid{grid-template-columns:1fr 1fr}.desktop-avatar{display:none}}@media(max-width:600px){main{padding:0 18px 105px}header{height:58px}.eyebrow{font-size:9px}.eyebrow span{font-size:10px}.page-heading{align-items:flex-start;padding-bottom:23px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px;max-width:290px;line-height:1.7}.add-expense{position:fixed;bottom:92px;right:18px;width:54px;height:54px;border-radius:18px;padding:0;font-size:0;gap:0;box-shadow:0 5px 20px #14382b33;z-index:4}.add-expense svg{width:25px;height:25px}.local-label{font-size:10px;max-width:105px;line-height:1.5}.local-label>span{flex-shrink:0}.period-row{margin-bottom:16px}.month input{width:146px;font-size:12px}.stat-grid{grid-template-columns:1fr 1fr;gap:12px}.hero-stat{grid-column:1/-1}.stat{min-height:138px;padding:20px;border-radius:12px}.hero-stat{min-height:172px}.stat h2{font-size:25px;margin-top:17px}.hero-stat h2{font-size:36px;margin-top:24px}.stat-top{font-size:11px;align-items:flex-start}.stat-top svg{width:18px}.stat p{font-size:10px}.content-grid{grid-template-columns:1fr;gap:18px;margin-top:20px}.structure{order:2}.panel-heading{padding:21px 19px}.panel-heading h2{font-size:16px}.empty{min-height:255px}.bottom-note{font-size:10px;justify-content:flex-start;line-height:1.7}.bottom-note svg{flex-shrink:0}footer{font-size:9px;gap:18px;margin-top:25px;line-height:1.8}footer span{text-align:right}.filters{flex-wrap:wrap;padding:18px}.search{flex-basis:100%}.filters select{flex:1;max-width:65%}.filters>span{font-size:13px}.settings-grid{grid-template-columns:1fr}.settings-panel{padding:22px}.category-form{flex-wrap:wrap}.category-form input,.category-form button{width:100%}.category-row{gap:10px}.category-row strong{font-size:13px}.category-row small{font-size:11px}.expense-form{padding:23px}.expense-form .panel-heading h2{font-size:18px}.legend>div{font-size:12px}.legend strong{font-size:12px}.legend>div>span:last-child{width:95px}.transaction-description strong,.expense-amount{font-size:13px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}dialog[open]{animation:appear .18s ease-out}@keyframes appear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}.add-actions{display:flex;align-items:center;gap:10px}.add-income{width:auto;margin:0;background:var(--surface);border-color:var(--green);color:var(--green);font-weight:650;white-space:nowrap}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stat h2{font-size:27px}.balance-caption{font-size:11px;color:var(--muted);margin-top:12px}.income-amount{color:#34855d}.category-kind{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}.kind-toggle{display:flex;background:var(--input);border:1px solid var(--border);padding:4px;border-radius:10px;gap:5px;margin:0 0 22px}.kind-toggle button{flex:1;background:none;border:0;border-radius:7px;padding:11px;color:var(--muted)}.kind-toggle button.selected{background:var(--soft);color:var(--text);font-weight:700}.filters{flex-wrap:wrap}.filters .search{min-width:150px}.category-form,.page-heading{flex-wrap:wrap}[data-theme=dark] .income-amount{color:#8fcca0}[data-theme=dark] .add-income{color:#acd0b5}@media(max-width:1150px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat h2{font-size:28px}}@media(max-width:600px){.hero-stat{grid-column:auto}.stat{min-height:165px;padding:17px}.stat h2,.hero-stat h2{font-size:25px;margin-top:22px}.add-income{position:fixed;bottom:155px;right:18px;z-index:4;width:54px;height:54px;font-size:0;padding:0;border-radius:18px;gap:0;box-shadow:0 5px 20px #14382b20}.add-income svg{width:25px;height:25px}.add-income:after{content:"Доход";font-size:9px;position:absolute;bottom:4px}.add-expense:after{content:"Расход";font-size:9px;position:absolute;bottom:4px}.add-expense svg,.add-income svg{margin-bottom:7px}.balance-caption{font-size:11px}.filters .search{flex-basis:100%}.filters select{flex-basis:42%;max-width:100%}.filters>span{width:100%}}.settings-panel label{display:block;font-size:13px}.settings-panel label input{display:block;width:100%;margin:10px 0 16px}.settings-panel strong{overflow-wrap:anywhere}
