@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap";html{min-width:320px;min-height:100%}.auth-page{color:#172033;background:#f5f7fb;place-items:center;min-height:100vh;padding:24px;font-family:Inter,system-ui,sans-serif;display:grid}.auth-card{background:#fff;border-radius:20px;width:100%;max-width:400px;padding:36px;box-shadow:0 12px 40px #14233c14}.auth-logo{color:#fff;background:#2563eb;border-radius:14px;place-items:center;width:48px;height:48px;font-size:28px;font-weight:800;display:grid}.auth-card h1{margin:16px 0 4px;font-size:28px}.auth-subtitle{color:#64748b;margin:0 0 28px}.auth-card h2{margin-bottom:22px;font-size:20px}.auth-card label{margin:16px 0 7px;font-size:14px;font-weight:600;display:block}.auth-card input{box-sizing:border-box;width:100%;font:inherit;border:1px solid #dbe2ea;border-radius:9px;padding:12px}.auth-card>button[type=submit]{color:#fff;width:100%;font:inherit;cursor:pointer;background:#2563eb;border:0;border-radius:9px;margin-top:24px;padding:13px;font-weight:700}.auth-card>button:disabled{opacity:.6;cursor:wait}.auth-message{color:#334155;overflow-wrap:anywhere;font-size:14px}.auth-switch{text-align:center;color:#64748b;margin-top:24px;font-size:14px}.auth-link{color:#2563eb;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}:root{color:#20283a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-optical-sizing:auto;background:#f6f8fc;font-family:DM Sans,sans-serif;font-weight:400}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{z-index:2;background:#fff;border-right:1px solid #e9edf5;flex-direction:column;width:245px;padding:30px 18px 18px;display:flex;position:fixed;inset:0 auto 0 0}.brand{letter-spacing:-1px;align-items:center;gap:11px;padding:0 10px;font-family:Manrope,sans-serif;font-size:21px;font-weight:800;display:flex}.brand-icon{color:#fff;background:#456fe5;border-radius:12px;place-items:center;width:38px;height:38px;display:grid}.brand-accent{color:#456fe5}.nav-caption{color:#9aa4b7;letter-spacing:1.1px;margin:48px 10px 14px;font-size:10px;font-weight:700}.nav-item{color:#707c91;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;width:100%;margin-bottom:5px;padding:13px 12px;font-size:13px;font-weight:500;display:flex}.nav-item.active{color:#3e67d8;background:#edf2ff;font-weight:700}.nav-item:hover{background:#f2f5fb}.sidebar-bottom{margin-top:auto}.profile{border-top:1px solid #edf0f5;align-items:center;gap:11px;margin-top:20px;padding:19px 5px 5px;display:flex}.avatar{color:#456fe5;background:#e8edff;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:700;display:grid}.profile strong,.profile small{display:block}.profile strong{font-size:12px}.profile small{color:#8b95a8;margin-top:4px;font-size:11px}.main-content{max-width:1700px;margin-left:245px;padding:0 42px 28px}.topbar{border-bottom:1px solid #e9edf5;justify-content:space-between;align-items:center;height:72px;display:flex}.breadcrumb{color:#7c879a;font-size:12px}.breadcrumb span{color:#c0c7d3;padding:0 9px}.help-button,.text-button{color:#6e7a90;background:0 0;border:0;align-items:center;gap:8px;font-size:12px;display:flex}.page-heading{justify-content:space-between;align-items:center;gap:20px;padding:34px 0 26px;display:flex}.eyebrow{color:#6480d4;letter-spacing:1.2px;margin:0 0 9px;font-size:10px;font-weight:700}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-1px;margin-bottom:7px;font:800 28px Manrope,sans-serif}.subtitle{color:#8690a3;margin-bottom:0;font-size:13px}.month-picker{color:#66748c;background:#fff;border:1px solid #e2e7f0;border-radius:9px;align-items:center;gap:9px;padding:11px 12px;display:flex}.month-picker input{color:#39455b;background:0 0;border:0;outline:0;width:145px;font-size:12px}.summary-grid{grid-template-columns:1.3fr 1fr 1fr;gap:18px;display:grid}.summary-card,.envelope-card,.operations-card{background:#fff;border:1px solid #e9edf5;border-radius:13px;box-shadow:0 3px 12px #263d6a05}.summary-card{min-width:0;padding:22px}.summary-top{color:#7e899c;justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.summary-icon{color:#456fe5;background:#edf2ff;border-radius:11px;place-items:center;width:38px;height:38px;display:grid}.summary-icon.blue{color:#4d88cf;background:#eaf5ff}.summary-icon.orange{color:#e39a4c;background:#fff3e5}.summary-value{letter-spacing:-.8px;margin:19px 0 8px;font:800 25px Manrope,sans-serif}.summary-foot{color:#9aa3b2;font-size:11px}.primary-card{background:#fff}.progress-track,.envelope-progress{background:#edf0f6;border-radius:10px;height:6px;overflow:hidden}.progress-track{margin-top:21px}.progress-fill{background:#5479e7;border-radius:10px;height:100%}.progress-label{color:#919bad;justify-content:space-between;margin-top:9px;font-size:10px;display:flex}.progress-label strong{color:#4c6fd3}.section-heading{justify-content:space-between;align-items:center;gap:15px;margin:36px 0 17px;display:flex}.section-heading h2{letter-spacing:-.4px;margin-bottom:5px;font:700 17px Manrope,sans-serif}.section-heading p{color:#9099aa;margin-bottom:0;font-size:11px}.text-button{color:#496dd5;font-weight:600}.envelope-grid{grid-template-columns:1fr 1fr;gap:18px;display:grid}.envelope-card{min-width:0;padding:21px}.envelope-heading{align-items:center;gap:12px;display:flex}.envelope-symbol{border-radius:12px;place-items:center;width:43px;height:43px;display:grid}.envelope-name{flex:1}.envelope-name h3{margin-bottom:4px;font-size:13px;font-weight:700}.envelope-name p{color:#98a1b0;margin-bottom:0;font-size:11px}.more-button{color:#9aa3b1;background:0 0;border:0;font-size:23px}.envelope-balance{letter-spacing:-.5px;margin:23px 0 15px;font:800 23px Manrope,sans-serif}.envelope-balance small{color:#9aa3b1;letter-spacing:0;font:400 11px DM Sans,sans-serif}.envelope-progress{height:7px}.envelope-progress>div{border-radius:10px;height:100%}.envelope-stats{color:#929cad;justify-content:space-between;margin-top:10px;font-size:10px;display:flex}.envelope-stats strong{color:#4d5b73}.envelope-footer{color:#8994a7;border-top:1px solid #f0f2f7;justify-content:space-between;gap:8px;margin-top:21px;padding-top:15px;font-size:10px;display:flex}.operations-heading{margin-top:38px}.primary-button{color:#fff;background:#456fe5;border:0;border-radius:8px;align-items:center;gap:8px;padding:11px 14px;font-size:11px;font-weight:600;display:flex;box-shadow:0 4px 10px #456fe51c}.primary-button:hover{background:#355ed0}.operations-card{overflow:hidden}.operation-row{border-bottom:1px solid #f0f2f7;align-items:center;gap:13px;padding:15px 20px;display:flex}.operation-icon{color:#e18a5c;background:#fff0e9;border-radius:11px;place-items:center;width:38px;height:38px;display:grid}.operation-icon.credit{color:#36a979;background:#e9f8f0}.operation-description{flex:1;min-width:0}.operation-description strong,.operation-description span{display:block}.operation-description strong{color:#39445a;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.operation-description span{color:#9aa3b2;margin-top:5px;font-size:10px}.operation-amount{color:#d76d51;white-space:nowrap;font-size:12px;font-weight:700}.operation-amount.positive{color:#2b9b70}.operations-bottom{color:#9aa3b2;background:#fbfcfe;padding:13px 20px;font-size:10px}.page-footer{text-align:center;color:#a1a9b7;padding-top:27px;font-size:10px}.page-footer span{padding:0 5px}@media (width>=1500px){.main-content{margin-left:245px;padding-left:55px;padding-right:55px}}@media (width<=1050px){.sidebar{width:205px}.main-content{margin-left:205px;padding-left:24px;padding-right:24px}.summary-grid{grid-template-columns:1fr 1fr}.primary-card{grid-column:span 2}}@media (width<=700px){.sidebar{border-bottom:1px solid #e9edf5;border-right:0;width:100%;height:auto;padding:12px 16px;position:static}.brand{font-size:19px}.nav-caption,.sidebar-bottom{display:none}.sidebar nav{-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:8px;max-width:100%;margin-top:12px;display:flex;overflow:auto hidden}.sidebar nav::-webkit-scrollbar{display:none}.nav-item,.nav-item:not(.active){white-space:nowrap;flex:none;width:auto;margin:0;padding:10px 12px;display:flex}.nav-item.active{margin-top:0}.main-content{width:100%;min-width:0;margin-left:0;padding:0 14px 24px}.topbar{height:48px}.page-heading{flex-direction:column;align-items:stretch;gap:16px;padding:22px 0 18px}h1{overflow-wrap:anywhere;font-size:24px}.summary-grid,.envelope-grid{grid-template-columns:minmax(0,1fr);gap:12px}.primary-card{grid-column:auto}.summary-card,.envelope-card{padding:17px}.section-heading{align-items:flex-start;gap:10px;margin-top:28px}.section-heading h2{font-size:15px}.text-button{white-space:normal;font-size:11px}.operations-heading{flex-wrap:wrap}.operation-row{gap:10px;padding:12px 10px}.operation-amount{font-size:11px}.month-picker{width:100%;min-width:0}.month-picker input{flex:1;min-width:0}.year-navigator{align-self:flex-start;max-width:100%}.budget-cards-grid{grid-template-columns:minmax(0,1fr)}.statistics-kpi-grid{grid-template-columns:minmax(0,1fr);gap:12px}.statistics-kpi{padding:18px}.statistics-kpi h2{font-size:24px}.statistics-month-selector{flex-direction:column;align-items:stretch;gap:8px}.statistics-month-selector select{width:100%;min-height:44px}.statistics-card{padding:15px}.budget-chart,.statistics-chart{max-width:100%;height:250px}.operation-modal{padding:18px}.operation-form-actions{flex-wrap:wrap}.operation-form-actions button{min-height:44px}}.modal-backdrop{z-index:1000;background:#0f172a7a;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0;overflow-y:auto}.operation-modal{background:#fff;border-radius:18px;width:100%;max-width:480px;max-height:calc(100vh - 40px);padding:28px;overflow-y:auto;box-shadow:0 20px 60px #0f172a33}.operation-modal h2{margin:0 0 8px}.operation-modal>p{color:#64748b;margin:0 0 22px}.operation-modal form,.operation-modal form label{flex-direction:column;gap:8px;display:flex}.operation-modal form{gap:16px}.operation-modal form label{font-size:14px;font-weight:600}.operation-modal input,.operation-modal select,.operation-modal textarea{box-sizing:border-box;color:#1e293b;width:100%;font:inherit;background:#fff;border:1px solid #dbe2ea;border-radius:8px;padding:11px 12px}.operation-modal input:focus,.operation-modal select:focus,.operation-modal textarea:focus{outline-offset:1px;outline:2px solid #4778e6}.operation-form-actions{justify-content:flex-end;gap:10px;margin-top:6px;display:flex}.secondary-button{cursor:pointer;background:#fff;border:1px solid #dbe2ea;border-radius:8px;padding:10px 16px}.operation-error{color:#b91c1c;margin:0;font-size:14px}@media (width<=520px){.operation-modal{padding:20px}}.delete-confirm-modal{max-width:440px}.delete-button{color:#fff;font:inherit;cursor:pointer;background:#dc2626;border:none;border-radius:8px;padding:10px 16px;font-weight:600}.delete-button:hover{background:#b91c1c}.operation-icon.refund{color:#356ac3;background-color:#e4edff}.statistics-card{background:#fff;border:1px solid #e9edf5;border-radius:13px;margin-top:24px;padding:24px;box-shadow:0 3px 12px #263d6a05}.statistics-heading h2{letter-spacing:-.4px;margin-bottom:6px;font:700 17px Manrope,sans-serif}.statistics-heading p{color:#9099aa;margin-bottom:0;font-size:12px}.budget-chart{width:100%;height:300px;margin-top:20px}@media (width<=520px){.statistics-card{padding:16px}.budget-chart{height:260px}}.statistics-page{flex-direction:column;gap:24px;display:flex}.statistics-chart{width:100%;height:320px;margin-top:20px}.statistics-empty{color:#9099aa;text-align:center;padding:32px 0}@media (width<=520px){.statistics-chart{height:260px}}.statistics-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px;display:grid}.statistics-kpi{background:#fff;border:1px solid #e8ebf0;border-radius:16px;min-width:0;padding:24px}.statistics-kpi p{color:#64748b;margin:0 0 14px;font-size:14px}.statistics-kpi h2{color:#172033;overflow-wrap:anywhere;margin:0 0 10px;font-size:26px;font-weight:700}.statistics-kpi span{color:#64748b;font-size:12px}@media (width<=900px){.statistics-kpi-grid{grid-template-columns:1fr;gap:12px}}.statistics-kpi .kpi-success{color:#15803d}.statistics-kpi .kpi-danger{color:#dc2626}.statistics-kpi .kpi-neutral{color:#64748b}.statistics-kpi h2{font-size:28px;font-weight:700;transition:color .2s}.statistics-month-selector{align-items:center;gap:12px;margin-bottom:20px;display:flex}.statistics-month-selector label{color:#64748b;font-size:14px}.statistics-month-selector select{color:#172033;cursor:pointer;background:#fff;border:1px solid #e8ebf0;border-radius:10px;padding:10px 14px;font-size:14px}@media (width<=600px){.statistics-month-selector{flex-direction:column;align-items:flex-start}}.budget-cards-section{margin-bottom:24px}.budget-cards-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;display:grid}.budget-month-card{color:#334155;text-align:left;cursor:pointer;background:#fff;border:1px solid #dbe2ea;border-radius:14px;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;display:flex}.budget-month-card strong{text-transform:capitalize;font-size:16px}.budget-month-card span,.budget-month-card small{font-size:13px}.budget-month-card.selected{background:#eff6ff;border:2px solid #4778e6}.budget-month-card.selected small{color:#4778e6;font-weight:600}.year-picker{color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:10px;min-width:125px;padding:10px 14px;transition:border-color .2s,box-shadow .2s;display:inline-flex;box-shadow:0 2px 5px #0f172a0a}.year-picker:hover{border-color:#4778e6}.year-picker:focus-within{border-color:#4778e6;box-shadow:0 0 0 3px #4778e61f}.year-picker select{appearance:none;color:#1e293b;font:inherit;cursor:pointer;background:0 0;border:none;outline:none;flex:1;min-width:55px;font-size:15px;font-weight:600}.year-picker option{color:#1e293b;background:#fff}.year-navigator{background:#fff;border:1px solid #e8edf5;border-radius:16px;align-items:center;gap:12px;padding:6px;display:flex;box-shadow:0 3px 10px #0f172a0a}.year-nav-button{color:#475569;cursor:pointer;background:#f1f5f9;border:none;border-radius:11px;justify-content:center;align-items:center;width:38px;height:38px;transition:background .2s,color .2s;display:flex}.year-nav-button:hover{color:#4778e6;background:#e7efff}.year-display{flex-direction:column;align-items:center;gap:2px;min-width:88px;display:flex}.year-display strong{color:#1e293b;font-size:20px;line-height:1.2}.year-display span{color:#94a3b8;font-size:11px}.year-arrow-left{transform:rotate(90deg)}.year-arrow-right{transform:rotate(-90deg)}@media (width<=700px){button,select,input{touch-action:manipulation}.nav-item,.primary-button,.text-button,.year-nav-button,.more-button{min-height:44px}.operation-description{flex:auto;min-width:0}.operation-description strong{max-width:100%}.statistics-page,.statistics-card,.operations-card,.summary-card,.envelope-card,.budget-chart,.statistics-chart{min-width:0}.modal-backdrop{align-items:flex-start;padding:12px}.operation-modal{max-height:calc(100dvh - 24px);margin:auto 0;overflow-y:auto}.envelope-grid{gap:8px}.envelope-card h3{margin-bottom:6px;font-size:14px}.envelope-card p{margin-top:4px;margin-bottom:4px}.envelope-card .progress-bar{margin-top:8px;margin-bottom:8px}.envelope-grid{grid-template-columns:minmax(0,1fr);gap:10px}.envelope-card{border-radius:12px;padding:12px 14px}.envelope-heading{gap:10px;margin-bottom:8px}.envelope-symbol{flex-shrink:0;width:36px;height:36px}.envelope-symbol svg{width:18px;height:18px}.envelope-name h3{margin:0;font-size:14px}.envelope-name p{margin:2px 0 0;font-size:11px}.envelope-balance{margin:4px 0 8px;font-size:22px}.envelope-balance small{font-size:11px}.envelope-progress{margin:7px 0}.envelope-stats{margin-top:5px;font-size:11px}.envelope-footer{gap:6px;margin-top:8px;padding-top:7px;font-size:11px}.envelope-footer span{min-width:0}.envelope-footer span:last-child{text-align:right}.more-button{flex-shrink:0}.budget-cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.budget-month-card{text-align:center;border-radius:10px;justify-content:center;align-items:center;min-width:0;min-height:48px;padding:8px 4px;display:flex}.budget-month-card strong{font-size:12px;font-weight:600;line-height:1.3}}.text-button{color:var(--primary-color,#4778e6);font:inherit;cursor:pointer;background:0 0;border:none;margin-top:8px;padding:6px 0;font-size:13px;font-weight:600}@media (width<=700px){.budget-month-card{min-width:0;padding:8px 4px}.budget-month-card strong{font-size:12px}.budget-cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.budget-month-card.compact{text-align:center;grid-column:1/-1;justify-content:center;align-items:center;width:100%;min-height:44px;padding:10px 12px;display:flex}.budget-month-card.compact strong{font-size:15px;font-weight:600;line-height:1.3}}.delete-button{box-sizing:border-box;color:#dc2626;cursor:pointer;background:#fff1f2;border:1px solid #fecaca;border-radius:8px;justify-content:center;align-self:stretch;align-items:center;width:40px;height:100%;min-height:44px;padding:0;display:inline-flex}.delete-button:hover{background:#fee2e2;border-color:#f87171}.delete-button:focus-visible{outline-offset:2px;outline:2px solid #dc2626}.budget-cards-section .section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.budget-cards-section .section-heading>div:first-child{flex:1}.budget-cards-section .section-heading>button{flex:none}@media (width<=700px){.budget-cards-section .section-heading{flex-wrap:wrap}.budget-cards-section .section-heading>div:first-child{width:100%}}.budget-action-button{box-sizing:border-box;cursor:pointer;appearance:none;border:1px solid #0000;border-radius:12px;flex:0 0 44px;justify-content:center;align-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;transition:background-color .2s,border-color .2s;display:inline-flex}.budget-add-button{color:#fff;background:#4778e6;border-color:#4778e6}.budget-add-button:hover{background:#3565d4;border-color:#3565d4}.budget-delete-button{color:#dc2626;background:#fef2f2;border-color:#fecaca}.budget-delete-button:hover{background:#fee2e2;border-color:#f87171}.budget-action-button:focus-visible{outline-offset:2px;outline-offset:2px;outline:2px solid #64748b}
