:root{font-family:system-ui,-apple-system,Segoe UI,Tahoma,sans-serif;color:#18312f;background:#f5f8f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app{display:flex;min-height:100vh}.sidebar{background:#fff;border-left:1px solid #e1e9e6;width:240px;padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{color:#12685c;font-weight:800;font-size:25px;margin:0}nav{display:flex;flex-direction:column;gap:8px;margin-top:32px}.nav{border:0;background:transparent;text-align:right;padding:13px 15px;border-radius:12px;color:#4e6260}.nav.active,.nav:hover{background:#e6f4ef;color:#12685c;font-weight:700}.sidebar-bottom{margin-top:auto;overflow-wrap:anywhere}.logout{display:block;margin-top:12px}main{max-width:1150px;width:100%;margin:0 auto;padding:35px 30px 100px;flex:1}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:20px}h2,h3{margin:0 0 10px}header h2{font-size:28px}.muted{color:#78908a;margin:4px 0}.tiny{font-size:12px}.small{font-size:13px}.pill{padding:8px 14px;background:#e5f5ef;color:#116c57;border-radius:999px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:#fff;border:1px solid #e7eeea;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:12px}.stat span{color:#71867f;font-size:14px}.stat strong{font-size:25px;overflow-wrap:anywhere}.panel{background:#fff;border:1px solid #e2ebe7;border-radius:18px;padding:25px;margin-bottom:22px;box-shadow:0 5px 30px #153f2a06}.form h3{margin-bottom:20px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:20px}label{font-size:14px;color:#3a5650;display:flex;flex-direction:column;gap:8px;font-weight:650}input,select{padding:12px 13px;border-radius:10px;border:1px solid #d4e0db;background:#fff;color:#193c34;min-width:0;outline-color:#15806c}input:focus,select:focus{border-color:#168876}button:not(.nav):not(.ghost):not(.danger-link):not(.mobile-nav button){background:#126b5b;color:#fff;border:0;border-radius:10px;padding:12px 22px;font-weight:700}.ghost{background:transparent;border:0;color:#137264;padding:10px}.item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0;border-bottom:1px solid #eff2f0}.item:last-child{border-bottom:0}.item-end{display:flex;align-items:flex-end;flex-direction:column;gap:7px;text-align:left}.danger-link{background:transparent;border:0;color:#b34a4a;font-size:12px;padding:0}.positive{color:#159268}.negative{color:#cc5d5d}.alert,.notice{padding:13px 16px;margin-bottom:18px;border-radius:12px;font-size:14px}.alert{background:#fff0ef;color:#a0342d}.notice{background:#e5f6ed;color:#176b42}.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.between{display:flex;justify-content:space-between;align-items:center}.progress{height:10px;border-radius:999px;background:#edf2f0;overflow:hidden;margin:15px 0}.progress>div{height:100%;background:#178f74;border-radius:inherit}.center{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}.center .panel{width:min(100%,450px)}.auth{display:flex;flex-direction:column;gap:16px}.auth h1{margin:5px 0 0}.auth button{width:100%}.auth .brand{font-size:32px}.mobile-nav{display:none}code{direction:ltr;display:inline-block;background:#f1f4f1;border-radius:4px;padding:2px 5px}@media(max-width:800px){.sidebar{display:none}main{padding:23px 15px 92px}header h2{font-size:23px}.stats,.budget-grid{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat strong{font-size:18px}.fields{grid-template-columns:1fr}.panel{padding:18px}.mobile-nav{display:flex;position:fixed;bottom:0;right:0;left:0;justify-content:space-around;gap:2px;background:#fff;border-top:1px solid #dce6e1;padding:8px 4px max(8px,env(safe-area-inset-bottom));z-index:5}.mobile-nav button{flex:1;border:0;background:transparent;color:#6b7e77;padding:11px 2px;font-size:11px;border-radius:8px}.mobile-nav button.active{background:#e9f6f1;color:#136453;font-weight:700}}@media(max-width:410px){.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:15px}header .pill{display:none}}.month-charts{display:grid;grid-template-columns:repeat(6,minmax(35px,1fr));gap:12px;margin-top:22px;align-items:end}.month-chart{text-align:center;font-size:12px;color:#64748b}.bars{display:flex;align-items:end;justify-content:center;gap:5px;height:120px;border-bottom:1px solid #ddd}.bars>div{width:20px;min-height:2px;border-radius:5px 5px 0 0}.bar-income{background:#087f70}.bar-expense{background:#d07c72}.allocations{display:grid;gap:14px;margin:15px 0}.allocation{display:grid;gap:6px}.allocation .between{font-size:13px}.import-list{max-height:390px;overflow:auto;border:1px solid #e0e7e6;border-radius:12px}.import-list .item{gap:12px}.import-list .item input[type=checkbox]{width:18px;min-width:18px}.import-list .item select{width:auto;min-width:100px}.v4-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.v4-actions .ghost{border:1px solid #d4e0db!important;border-radius:10px}.v4-scroll{overflow-x:auto;max-height:480px;overflow-y:auto;margin:12px 0 24px}.v4-table{border-collapse:collapse;width:100%;font-size:13px;text-align:right}.v4-table th,.v4-table td{border-bottom:1px solid #e5eae8;padding:11px;white-space:nowrap}.v4-table th{background:#f4f7f5}.v4-upload{margin-top:24px}.v4-upload input{max-width:100%}.duplicate-row{background:#fff5ee}.duplicate-label{color:#b35e1e;font-size:12px}.report-panel h3{margin:22px 0 14px}.report-panel .between h3{margin:0}.no-print{display:flex}.mobile-nav{overflow-x:auto;justify-content:flex-start}.mobile-nav button{min-width:70px;flex-shrink:0}@media print{@page{size:A4;margin:14mm}body{background:#fff!important;font-family:Tahoma,Arial,sans-serif;color:#111!important}body *{visibility:hidden!important}.report-panel,.report-panel *{visibility:visible!important}.report-panel{position:absolute;top:0;right:0;left:0;margin:0!important;width:100%!important;max-width:none!important;border:0!important;box-shadow:none!important;padding:0!important}.report-panel .no-print{display:none!important;visibility:hidden!important}.report-panel .v4-scroll{max-height:none!important;overflow:visible!important}.report-panel .v4-table{font-size:10px}.report-panel .v4-table th,.report-panel .v4-table td{white-space:normal;padding:5px;overflow-wrap:anywhere}.report-panel tr{break-inside:avoid}.report-panel .stats{grid-template-columns:repeat(2,1fr)}.report-panel .stat{padding:10px}.report-panel .stat strong{font-size:17px}}.v5-cat-grid{display:grid;gap:10px}.v5-cat{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid #e5eeea;border-radius:12px}.v5-cat .muted{margin-inline-start:auto}.v5-dot{width:16px;height:16px;border-radius:50%;display:inline-block;flex:none}.v5-report .stat small{font-size:13px;color:#536f68}.v5-report-brand{color:#12685c;font-size:22px}.v5-bar-line{margin:12px 0}.v5-pie-layout{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:28px;align-items:center;margin:22px 0}.v5-pie{width:min(100%,240px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto}.v5-pie>div{width:59%;aspect-ratio:1;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:800;font-size:17px}.v5-pie small{font-size:11px;color:#658077}.v5-legend{display:grid;gap:12px}.v5-legend .between{gap:20px;font-size:13px;flex-wrap:wrap}.v5-legend span{display:inline-flex;align-items:center;gap:8px}.v5-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.v5-month-chart{display:grid;grid-template-columns:repeat(12,minmax(24px,1fr));gap:8px;margin:20px 0;min-height:185px}.v5-month-col{display:flex;flex-direction:column;justify-content:end;text-align:center;gap:7px;min-width:0}.v5-month-bars{display:flex;gap:3px;justify-content:center;align-items:end;height:145px;border-bottom:1px solid #cadbd3}.v5-month-bars div{width:45%;min-height:2px;border-radius:4px 4px 0 0}.v5-month-col small{font-size:11px}.v5-snapshot-chart{display:flex;align-items:end;gap:15px;overflow-x:auto;min-height:150px;padding:10px 2px 0}.v5-snapshot{display:flex;align-items:center;flex-direction:column;gap:6px;flex:none;min-width:90px;font-size:11px}.v5-snapshot>div{background:#168a73;border-radius:6px 6px 0 0;width:45px}.v5-snapshot small{color:#64748b}@media(max-width:650px){.v5-pie-layout{grid-template-columns:1fr}.v5-month-chart{overflow-x:auto;grid-auto-columns:26px;grid-auto-flow:column;grid-template-columns:none}.v5-snapshot>strong{font-size:10px}}@media print{.v5-pie-layout{grid-template-columns:180px 1fr!important}.v5-pie{width:170px!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.v5-month-chart,.v5-month-bars,.v5-snapshot-chart,.v5-snapshot>div,.v5-dot,.progress>div{print-color-adjust:exact;-webkit-print-color-adjust:exact}.v5-month-chart{grid-template-columns:repeat(12,1fr)!important}.v5-report h3{break-after:avoid}.v5-report .v5-pie-layout,.v5-report .stats{break-inside:avoid}.v5-report .v5-snapshot-chart{overflow:visible}}.subscriptions-v6 textarea{width:100%;border:1px solid #d4e0dc;border-radius:10px;padding:12px;resize:vertical;font:inherit;direction:rtl}.v6-alert{background:#fff7e9;border:1px solid #ead4aa;border-radius:10px;padding:14px;margin-top:16px}.v6-alert p{margin:6px 0}.v6-upload{display:inline-flex;align-items:center;background:#e8f4ee;color:#176859;border-radius:8px;padding:9px 13px;cursor:pointer}.v6-upload input{display:none}.v6-candidate{display:flex;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #e4ece9;flex-wrap:wrap}.v6-candidate>div{flex:1;min-width:220px}.v6-candidate p,.v6-candidate small{display:block;margin:4px 0;color:#677c76}.v6-candidate button{width:auto}.subscriptions-v6 .v4-table button{padding:6px 10px;font-size:12px}.v6-print{break-inside:avoid}@media print{.subscriptions-v6>.panel:not(.v6-print){display:none!important}.subscriptions-v6 .v6-print{display:block!important}.subscriptions-v6 .no-print{display:none!important}}.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.theme-toggle{border:1px solid #cfe0d9!important;border-radius:10px!important;padding:9px 12px!important;font-size:13px!important;font-weight:700;white-space:nowrap;text-align:center}.sidebar-bottom>.theme-toggle{display:block;width:100%;margin-bottom:14px}.login-theme{display:flex;justify-content:flex-start}@media(max-width:800px){.header-actions{justify-content:flex-start}.header-actions .theme-toggle{font-size:12px;padding:7px 9px!important}header{align-items:flex-start}}:root[data-theme=dark]{color-scheme:dark;color:#e4eee9;background:#101b1a}[data-theme=dark] body{background:#101b1a;color:#e4eee9}[data-theme=dark] .app,[data-theme=dark] main{background:#101b1a;color:#e4eee9}[data-theme=dark] .sidebar,[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] .mobile-nav{background:#192725;border-color:#354944;color:#e4eee9;box-shadow:none}[data-theme=dark] .brand,[data-theme=dark] .v5-report-brand{color:#74d9b7}[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] strong,[data-theme=dark] .item{color:inherit}[data-theme=dark] .muted,[data-theme=dark] .item .muted,[data-theme=dark] .stat span,[data-theme=dark] .month-chart,[data-theme=dark] .v5-snapshot small,[data-theme=dark] .v6-candidate p,[data-theme=dark] .v6-candidate small{color:#a2b8b0}[data-theme=dark] label{color:#c4dbd2}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .subscriptions-v6 textarea{background:#12201e;color:#eaf5f0;border-color:#415850}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#8ca69b}[data-theme=dark] input:focus-visible,[data-theme=dark] button:focus-visible,[data-theme=dark] select:focus-visible{outline:2px solid #72d9b4;outline-offset:2px}[data-theme=dark] .nav,[data-theme=dark] .mobile-nav button{color:#c6d7d0}[data-theme=dark] .nav.active,[data-theme=dark] .nav:hover,[data-theme=dark] .mobile-nav button.active{background:#234b40;color:#a5f1d0}[data-theme=dark] .pill,[data-theme=dark] .v6-upload{background:#234b40;color:#b4f4d9}[data-theme=dark] .ghost,[data-theme=dark] .theme-toggle{color:#b3f3d8;border-color:#426b5d!important}[data-theme=dark] .item,[data-theme=dark] .v4-table td,[data-theme=dark] .v4-table th,[data-theme=dark] .v5-cat,[data-theme=dark] .v6-candidate,[data-theme=dark] .import-list{border-color:#344740}[data-theme=dark] .v4-table th{background:#20342f;color:#cce2d8}[data-theme=dark] .progress,[data-theme=dark] .v5-month-bars{background:#30443e;border-color:#476158}[data-theme=dark] .v5-pie>div{background:#192725;color:#e4eee9}[data-theme=dark] .v5-pie small,[data-theme=dark] .v5-report .stat small{color:#9eb8ad}[data-theme=dark] .alert,[data-theme=dark] .duplicate-row{background:#452923;color:#ffb7ac}[data-theme=dark] .notice{background:#1b4435;color:#b5f5cb}[data-theme=dark] .v6-alert{background:#44331f;border-color:#82623a;color:#f4d6a1}[data-theme=dark] .positive{color:#64d9aa}[data-theme=dark] .negative,[data-theme=dark] .danger-link{color:#ff999d}[data-theme=dark] code{background:#243530;color:#bbebd9}[data-theme=dark] .bars{border-color:#476158}@media print{:root[data-theme=dark]{color-scheme:light!important;background:#fff!important;color:#111!important}[data-theme=dark] body,[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] .v5-pie>div{background:#fff!important;color:#111!important}[data-theme=dark] .v4-table th{background:#f4f7f5!important;color:#111!important}.theme-toggle{display:none!important}}
