.navbar{display:flex;position:sticky;top:0;z-index:100;align-items:center;padding:14px 24px;border-bottom:1px solid #e5e7eb;background:#fff}.navbarLogo{font-weight:700;font-size:18px;color:#2563eb;text-decoration:none}.navbarLinks{display:flex;gap:18px;margin-left:30px}.navbarLinks a{text-decoration:none;color:#374151;font-weight:500}.navbarLinks a:hover{color:#2563eb}.logoutBtn{margin-left:auto;padding:6px 14px;border:none;background:#f3f4f6;border-radius:6px;cursor:pointer}.logoutBtn:hover{background:#e5e7eb}.budgetPage{padding:24px;max-width:1280px;margin:0 auto;color:#111827;background:#f8fafc;min-height:100vh}.budgetHeader{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.budgetTitle{font-size:48px;line-height:1;font-weight:800;margin:0;color:#0f172a}.budgetSub{margin:8px 0 0;color:#6b7280;font-size:18px}.budgetActions{display:flex;gap:10px;flex-wrap:wrap}.btn{border-radius:14px;border:1px solid #e5e7eb;background:#fff;color:#111827;padding:12px 16px;cursor:pointer;font-size:15px;font-weight:600;transition:all .18s ease;box-shadow:0 1px 2px #0f172a0a}.btn:hover{background:#f8fafc;border-color:#d1d5db}.btn:disabled{opacity:.6;cursor:not-allowed}.btnPrimary{background:#2563eb;color:#fff;border-color:#2563eb}.btnPrimary:hover{background:#1d4ed8;border-color:#1d4ed8}.errorBox{margin-bottom:16px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:14px;padding:14px 16px;font-size:14px}.budgetStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.statCard{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 1px 2px #0f172a0a}.statLabel{font-size:13px;color:#6b7280;margin-bottom:8px;font-weight:600}.statValue{font-size:28px;font-weight:800;color:#0f172a}.budgetGrid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 1px 2px #0f172a0a}.card h2{margin:0;font-size:20px;font-weight:800;color:#0f172a}.sectionSub{margin-top:6px;margin-bottom:0;color:#6b7280;font-size:14px}.budgetTableWrap{overflow-x:auto;margin-top:16px}.budgetTable{width:100%;border-collapse:collapse}.budgetTable th,.budgetTable td{text-align:left;padding:14px 10px;border-bottom:1px solid #eef2f7;vertical-align:middle}.budgetTable th{font-size:12px;color:#6b7280;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.budgetTable td{font-size:14px;color:#111827}.budgetTable tbody tr:hover{background:#f8fafc}.categoryCell{min-width:170px}.categoryName{font-weight:700;color:#0f172a;margin-bottom:8px}.progressWrap{display:flex;flex-direction:column;gap:6px;min-width:220px}.progressTrack{width:100%;height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progressFill{height:100%;border-radius:999px;transition:width .25s ease}.progressFill.ok{background:#22c55e}.progressFill.warn{background:#f59e0b}.progressFill.danger{background:#ef4444}.progressMeta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#6b7280}.utilBadge{display:inline-flex;align-items:center;justify-content:center;min-width:78px;text-align:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}.utilBadge.ok{background:#ecfdf5;color:#059669}.utilBadge.warn{background:#fff7ed;color:#ea580c}.utilBadge.danger{background:#fef2f2;color:#dc2626}.alertsHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.alertsCount{min-width:30px;height:30px;border-radius:999px;background:#0f172a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}.alertsEmpty{margin-top:16px;color:#6b7280;font-size:14px}.alertsList{display:flex;flex-direction:column;gap:12px;margin-top:16px}.alertItem{border:1px solid #e5e7eb;border-left-width:4px;border-radius:14px;padding:14px;background:#fff}.alertItem.nearLimit{border-left-color:#f59e0b}.alertItem.warning{border-left-color:#f97316}.alertItem.critical{border-left-color:#ef4444}.alertTopRow{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.alertTitle{font-size:14px;font-weight:800;color:#111827}.alertBadge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800}.alertBadge.nearLimit{background:#fef3c7;color:#b45309}.alertBadge.warning{background:#ffedd5;color:#c2410c}.alertBadge.critical{background:#fee2e2;color:#b91c1c}.alertBody{font-size:14px;color:#374151;line-height:1.5}.alertMeta{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;font-size:12px;color:#6b7280}.modalOverlay{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000}.modalCard{width:min(760px,100%);max-height:90vh;overflow-y:auto;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:20px;box-shadow:0 20px 50px #0f172a2e}.modalHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.modalTitle{font-size:28px;font-weight:800;color:#0f172a}.modalSub{font-size:14px;color:#6b7280;margin-top:6px}.modalError{margin-bottom:14px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:14px;padding:12px 14px;font-size:14px}.modalGrid{display:grid;grid-template-columns:1fr;gap:12px}.modalRow{display:grid;grid-template-columns:1fr 160px;gap:14px;align-items:center}.modalCat{font-size:15px;font-weight:700;color:#111827}.modalInput{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;font-size:14px;color:#111827;background:#fff;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.modalInput:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.modalFooter{display:flex;justify-content:flex-end;margin-top:18px}@media(max-width:900px){.budgetStats,.budgetGrid{grid-template-columns:1fr}}@media(max-width:700px){.budgetHeader{flex-direction:column;align-items:flex-start}.modalRow{grid-template-columns:1fr}.budgetTitle{font-size:38px}.statValue{font-size:24px}}.insightsPage{width:100%;min-height:100vh;padding:24px 24px 40px;background:#f8fafc;box-sizing:border-box}.insightsTopBar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}.insightsTitle{margin:0;font-size:36px;line-height:1.1;font-weight:800;letter-spacing:-.02em;color:#0f172a}.insightsSub{margin:8px 0 0;font-size:15px;color:#64748b}.insightsFilterCard{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px #0f172a0d}.dateField{display:flex;flex-direction:column;gap:6px}.dateField label{font-size:13px;font-weight:600;color:#475569}.dateField input{height:46px;min-width:176px;padding:0 14px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#0f172a;font-size:14px;outline:none;box-sizing:border-box}.dateField input:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1f}.applyBtn{height:46px;padding:0 18px;border:1px solid #2563eb;border-radius:12px;background:#2563eb;color:#fff;font-size:14px;font-weight:700;cursor:pointer}.applyBtn:hover{background:#1d4ed8;border-color:#1d4ed8}.applyBtn:disabled{opacity:.65;cursor:not-allowed}.insightsErrorWrap{margin-bottom:16px}.insightStatsGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}.insightStatCard{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;box-shadow:0 6px 20px #0f172a0d}.insightStatCard--success{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}.insightStatCard--danger{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fef2f2)}.insightStatLabel{font-size:13px;font-weight:700;color:#475569;margin-bottom:10px}.insightStatValue{font-size:28px;line-height:1.1;font-weight:800;color:#0f172a;letter-spacing:-.02em}.insightStatSubtext{margin-top:6px;font-size:12px;color:#64748b}.insightsLoadingCard{display:flex;justify-content:center;align-items:center;min-height:220px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 8px 24px #0f172a0d}.insightsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.insightCard{background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 8px 28px #0f172a0f}.insightCardHeader{padding:18px 18px 14px;border-bottom:1px solid #eef2f7}.insightCardTitle{margin:0;font-size:18px;font-weight:800;color:#0f172a}.insightCardSub{margin:5px 0 0;font-size:13px;color:#64748b}.summaryList{padding:16px 18px 18px}.summaryRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #f1f5f9}.summaryRow:last-child{border-bottom:none}.summaryRow--net{padding-top:18px}.summaryLabelWrap{display:flex;align-items:center;gap:10px}.summaryDot{width:10px;height:10px;border-radius:999px;flex-shrink:0}.summaryDot--income{background:#16a34a}.summaryDot--expense{background:#dc2626}.summaryDot--net{background:#2563eb}.summaryLabel{font-size:15px;font-weight:600;color:#334155}.summaryValue{font-size:16px;font-weight:800;letter-spacing:-.01em}.summaryValue--income{color:#15803d}.summaryValue--expense{color:#dc2626}.tableWrap{overflow-x:auto}.insightTable{width:100%;border-collapse:separate;border-spacing:0;min-width:560px}.insightTable thead tr{background:#f8fafc}.insightTable th{text-align:left;padding:14px 18px;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#475569;border-bottom:1px solid #e2e8f0;white-space:nowrap}.insightTable td{padding:14px 18px;font-size:14px;color:#0f172a;border-bottom:1px solid #f1f5f9;vertical-align:middle}.insightTable tbody tr:last-child td{border-bottom:none}.right{text-align:right}.amountCell{font-variant-numeric:tabular-nums;font-weight:700;color:#0f172a}.merchantCell{max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.categoryPill{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid #dbe3ee;background:#f8fafc;color:#334155;font-size:12px;font-weight:700;white-space:nowrap}.cadenceBadge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;white-space:nowrap}.insightEmpty{padding:20px 18px;color:#64748b;font-size:14px}@media(max-width:1100px){.insightsGrid{grid-template-columns:1fr}}@media(max-width:700px){.insightsPage{padding:18px 16px 32px}.insightsTitle{font-size:30px}.insightsFilterCard,.dateField{width:100%}.dateField input{width:100%;min-width:0}.applyBtn{width:100%}.insightTable{min-width:520px}}.rulesPage{max-width:1200px;margin:0 auto;padding:24px}.rulesHeader{margin-bottom:20px}.rulesTitle{margin:0;font-size:36px;font-weight:800}.rulesSub{margin-top:8px;opacity:.85}.rulesGrid{display:grid;grid-template-columns:1fr;gap:20px}.rulesCard{border:1px solid #ddd;border-radius:12px;padding:20px;background:#fff}.rulesCard h2{margin-top:0;margin-bottom:16px}.rulesForm{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rulesForm label{display:flex;flex-direction:column;gap:6px}.rulesForm input,.rulesForm select{padding:10px 12px;border:1px solid #ccc;border-radius:8px;font:inherit}.checkboxRow{flex-direction:row!important;align-items:center;gap:10px!important;margin-top:26px}.rulesActions{grid-column:1 / -1;display:flex;gap:10px;margin-top:8px}.rulesActions button,.actionCell button{padding:10px 14px;border:none;border-radius:8px;cursor:pointer;font:inherit}.rulesActions button,.actionCell button:not(.dangerBtn){background:#111827;color:#fff}.secondaryBtn{background:#e5e7eb!important;color:#111827!important}.dangerBtn{background:#b91c1c!important;color:#fff!important}.rulesAlert{margin-bottom:14px;padding:10px 12px;border-radius:8px}.rulesAlert.error{background:#fee2e2;color:#991b1b}.rulesAlert.success{background:#dcfce7;color:#166534}.rulesTableWrap{overflow-x:auto}.rulesTable{width:100%;border-collapse:collapse}.rulesTable th,.rulesTable td{border-bottom:1px solid #e5e7eb;padding:12px 10px;text-align:left;vertical-align:top}.rulesTable th{background:#f9fafb}.actionCell{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:900px){.rulesForm{grid-template-columns:1fr}.checkboxRow{margin-top:0}}.rulesCard,.rulesCard h2,.rulesCard p,.rulesCard label,.rulesCard span,.rulesTable,.rulesTable th,.rulesTable td{color:#111827!important}.rulesTable th{background:#f9fafb!important}.rulesTable td{background:#fff!important}.insightsVisualsPage{width:100%;min-height:100vh;padding:24px 24px 40px;background:#f8fafc;box-sizing:border-box}.insightsVisualsTopBar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}.insightsVisualsTitle{margin:0;font-size:36px;line-height:1.1;font-weight:800;letter-spacing:-.02em;color:#0f172a}.insightsVisualsSub{margin:8px 0 0;font-size:15px;color:#64748b}.insightsVisualsFilterCard{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px #0f172a0d}.visualDateField{display:flex;flex-direction:column;gap:6px}.visualDateField label{font-size:13px;font-weight:600;color:#475569}.visualDateField input{height:46px;min-width:176px;padding:0 14px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#0f172a;font-size:14px;outline:none;box-sizing:border-box}.visualDateField input:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1f}.visualApplyBtn{height:46px;padding:0 18px;border:1px solid #2563eb;border-radius:12px;background:#2563eb;color:#fff;font-size:14px;font-weight:700;cursor:pointer}.visualApplyBtn:hover{background:#1d4ed8;border-color:#1d4ed8}.visualApplyBtn:disabled{opacity:.65;cursor:not-allowed}.insightsVisualsErrorWrap{margin-bottom:16px}.visualStatsGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}.visualStatCard{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;box-shadow:0 6px 20px #0f172a0d}.visualStatCard--success{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}.visualStatCard--danger{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fef2f2)}.visualStatLabel{font-size:13px;font-weight:700;color:#475569;margin-bottom:10px}.visualStatValue{font-size:28px;line-height:1.1;font-weight:800;color:#0f172a;letter-spacing:-.02em}.visualStatSubtext{margin-top:6px;font-size:12px;color:#64748b}.visualLoadingCard{display:flex;justify-content:center;align-items:center;min-height:220px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 8px 24px #0f172a0d}.visualChartsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.visualChartCard{background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 8px 28px #0f172a0f}.visualChartHeader{padding:18px 18px 14px;border-bottom:1px solid #eef2f7}.visualChartTitle{margin:0;font-size:18px;font-weight:800;color:#0f172a}.visualChartSub{margin:5px 0 0;font-size:13px;color:#64748b}.visualChartBody{padding:16px 18px 18px;min-height:360px}.visualEmpty{padding:20px 0;color:#64748b;font-size:14px}@media(max-width:1100px){.visualChartsGrid{grid-template-columns:1fr}}@media(max-width:700px){.insightsVisualsPage{padding:18px 16px 32px}.insightsVisualsTitle{font-size:30px}.insightsVisualsFilterCard,.visualDateField{width:100%}.visualDateField input{width:100%;min-width:0}.visualApplyBtn{width:100%}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;min-height:100%}body{min-width:320px;min-height:100vh;background:#f8fafc;color:#0f172a}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}
