:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}html,body,#root{width:100%;min-height:100vh;margin:0;padding:0}html{overflow-x:hidden}body{background:radial-gradient(circle at 0 0,#eef2ff 0%,#0000 28%),radial-gradient(circle at 100% 0,#ede9fe 0%,#0000 25%),linear-gradient(#f8fafc 0%,#f1f5f9 100%);overflow-x:hidden}a{color:inherit}*{box-sizing:border-box}:root{--bg:#f4f7fb;--panel:#ffffffe0;--panel-solid:#fff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--primary:#4f46e5;--primary-2:#7c3aed;--danger:#b91c1c;--shadow:0 18px 45px #0f172a14}html,body{margin:0;padding:0;overflow-x:hidden}body{color:var(--text);background:radial-gradient(circle at 0 0,#eef2ff 0%,#0000 28%),radial-gradient(circle at 100% 0,#ede9fe 0%,#0000 25%),linear-gradient(#f8fafc 0%,#f1f5f9 100%);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}img,svg,canvas{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}#root{width:100%;min-height:100vh}.app-shell{width:100%;max-width:1440px;margin:0 auto;padding:18px 20px 40px}.app-shell-wide{width:100%}.topbar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:var(--shadow);background:#ffffffbf;border:1px solid #e2e8f0f2;border-radius:22px;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px;padding:18px 22px;display:flex}.brand{align-items:center;gap:14px;min-width:0;display:flex}.brand-logo,.auth-logo{color:#fff;background:linear-gradient(135deg, var(--primary), var(--primary-2));border-radius:16px;flex-shrink:0;place-items:center;width:48px;height:48px;font-size:22px;font-weight:800;display:grid;box-shadow:0 12px 24px #4f46e538}.brand h2,.auth-brand h1{word-break:break-word;margin:0}.brand h2{font-size:20px}.brand p,.auth-brand p{color:var(--muted);word-break:break-word;margin:2px 0 0}.brand p{font-size:13px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.connect-btn,.secondary-btn,.auth-submit,.auth-tab{border-radius:14px;min-height:44px;font-size:15px;font-weight:700;transition:transform .2s,box-shadow .2s,opacity .2s}.connect-btn{cursor:pointer;color:#fff;background:linear-gradient(135deg, var(--primary), var(--primary-2));border:none;padding:13px 20px;box-shadow:0 12px 24px #4f46e538}.secondary-btn{border:1px solid var(--border);cursor:pointer;color:var(--text);background:#fff;padding:13px 18px}.connect-btn:hover:not(:disabled),.secondary-btn:hover:not(:disabled),.auth-submit:hover:not(:disabled),.auth-tab:hover{transform:translateY(-1px)}.connect-btn:disabled,.secondary-btn:disabled,.auth-submit:disabled{opacity:.65;cursor:not-allowed}.hero-panel{grid-template-columns:minmax(0,1.65fr) minmax(320px,.95fr);align-items:stretch;gap:24px;margin-bottom:24px;display:grid}.hero-copy,.hero-summary-card,.panel,.stat-card,.auth-card{background:var(--panel);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:var(--shadow);border:1px solid #e2e8f0f2}.hero-copy{border-radius:28px;min-width:0;padding:34px}.hero-badge{color:#3730a3;background:#e0e7ff;border-radius:999px;align-items:center;margin-bottom:16px;padding:8px 14px;font-size:13px;font-weight:700;display:inline-flex}.hero-copy h1{word-break:break-word;margin:0 0 14px;font-size:clamp(2rem,3vw,3rem);line-height:1.08}.hero-copy p{color:var(--muted);margin:0;font-size:17px;line-height:1.7}.hero-action-row{flex-wrap:wrap;gap:12px;margin-top:24px;display:flex}.hero-summary-card{color:#fff;background:linear-gradient(135deg,#111827,#1e1b4b);border-radius:28px;flex-direction:column;justify-content:center;min-width:0;padding:28px;display:flex}.hero-summary-card .mini-label{color:#cbd5e1;margin:0 0 10px;font-size:13px}.hero-summary-card h3{word-break:break-word;margin:0 0 18px;font-size:clamp(2rem,3vw,2.6rem);line-height:1.1}.hero-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.hero-summary-grid div{background:#ffffff14;border-radius:18px;min-width:0;padding:14px}.hero-summary-grid span{color:#cbd5e1;margin-bottom:6px;font-size:12px;display:block}.hero-summary-grid strong{word-break:break-word;font-size:18px}.alert-error{color:var(--danger);word-break:break-word;background:#fef2f2;border:1px solid #fecaca;border-radius:16px;margin-bottom:20px;padding:14px 16px;font-weight:600}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.stat-card{border-radius:22px;min-width:0;padding:22px}.stat-card p{color:var(--muted);margin:0 0 10px;font-size:14px}.stat-card h3{word-break:break-word;margin:0;font-size:clamp(1.5rem,2vw,1.95rem);line-height:1.1}.panel{border-radius:26px;width:100%;min-width:0;padding:24px}.panel-header{margin-bottom:20px}.panel-header-inline{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.panel-header h2{word-break:break-word;margin:0 0 6px;font-size:26px}.panel-header p{color:var(--muted);margin:0;font-size:14px}.section-chip-row{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.section-chip{border:1px solid var(--border);color:var(--muted);background:#f8fafc;border-radius:999px;align-items:center;padding:8px 12px;font-size:13px;font-weight:700;display:inline-flex}.charts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:24px;display:grid}.chart-panel{min-height:420px}.chart-box{width:100%}.chart-box-pie{flex-direction:column;gap:14px;display:flex}.banks-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;display:grid}.banks-grid-filters{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.bank-card,.account-card,.transaction-mobile-card{background:var(--panel-solid);border:1px solid var(--border);border-radius:22px;min-width:0}.bank-card{padding:20px;transition:transform .2s,box-shadow .2s,border-color .2s}.bank-card:hover,.account-card:hover,.transaction-mobile-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #0f172a0f}.bank-filter-card{appearance:none;text-align:left;cursor:pointer;width:100%}.bank-filter-card.active{background:#f8faff;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11f}.bank-card-top,.account-top{align-items:center;gap:14px;min-width:0;margin-bottom:18px;display:flex}.bank-card-top h3,.account-top h3{word-break:break-word;margin:0;font-size:18px}.bank-card-top p,.account-top p{color:var(--muted);word-break:break-word;margin:4px 0 0;font-size:14px;line-height:1.45}.bank-logo,.bank-logo-placeholder,.account-icon{border-radius:16px;flex-shrink:0;width:52px;height:52px}.bank-logo{object-fit:cover;border:1px solid var(--border);background:#fff}.bank-logo-placeholder,.account-icon{background:#eef2ff;place-items:center;font-size:24px;display:grid}.bank-card-bottom,.meta-row,.transaction-mobile-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.bank-card-bottom span,.meta-row span,.transaction-mobile-grid span{color:var(--muted);font-size:13px}.bank-card-bottom strong,.meta-row strong,.transaction-mobile-top strong,.transaction-mobile-grid strong{word-break:break-word}.bank-card-bottom strong{text-align:right;font-size:18px}.transaction-workspace{margin-top:24px}.transactions-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.filters-panel{border:1px solid var(--border);background:#f8fafc;border-radius:18px;margin-bottom:16px;padding:16px}.transaction-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.filter-search{grid-column:span 2}.filter-input,.filter-select{border:1px solid var(--border);width:100%;min-width:0;height:46px;color:var(--text);background:#fff;border-radius:14px;outline:none;padding:0 14px;font-size:14px}.filter-input:focus,.filter-select:focus,.auth-form input:focus{border-color:#a5b4fc;box-shadow:0 0 0 4px #6366f11f}.filter-clear-btn{white-space:nowrap;height:46px}.transaction-summary-bar{border:1px solid var(--border);background:#f8fafc;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;display:flex}.transaction-summary-bar span{color:var(--muted);font-size:14px}.transaction-summary-bar strong{word-break:break-word;font-size:15px}.transactions-table-wrap{-webkit-overflow-scrolling:touch;width:100%;overflow-x:auto}.transactions-table{border-collapse:collapse;width:100%;min-width:760px}.transactions-table th,.transactions-table td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:15px 14px;font-size:14px}.transactions-table th{color:var(--muted);background:#f8fafc;font-weight:700}.transactions-table tbody tr:hover{background:#f8fafc}.transaction-card-list{gap:14px;display:grid}.transaction-mobile-card{padding:16px}.transaction-mobile-top h3{word-break:break-word;margin:0 0 4px;font-size:16px}.transaction-mobile-top p{color:var(--muted);margin:0;font-size:13px}.transaction-mobile-top strong{text-align:right;font-size:16px}.transaction-mobile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;display:grid}.transaction-mobile-grid>div{border:1px solid var(--border);background:#f8fafc;border-radius:14px;flex-direction:column;gap:4px;min-width:0;padding:12px;display:flex}.accounts-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;display:grid}.account-card{padding:20px;transition:transform .2s,box-shadow .2s}.account-meta{flex-direction:column;gap:12px;display:flex}.meta-row{font-size:14px}.meta-row strong{text-align:right}.balance-highlight strong{font-size:18px}.empty-state{text-align:center;background:#f8fafcbf;border:1px dashed #cbd5e1;border-radius:20px;padding:48px 20px}.empty-state h3{margin:0 0 10px;font-size:20px}.empty-state p{color:var(--muted);margin:0;line-height:1.6}.auth-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{border-radius:28px;width:100%;max-width:480px;padding:30px}.auth-brand{align-items:center;gap:14px;margin-bottom:24px;display:flex}.auth-brand h1{font-size:28px}.auth-brand p{font-size:14px}.auth-toggle{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px;display:grid}.auth-tab{border:1px solid var(--border);color:var(--text);cursor:pointer;background:#fff;padding:12px 14px}.auth-tab.active{background:linear-gradient(135deg, var(--primary), var(--primary-2));color:#fff;border-color:#0000}.auth-form{flex-direction:column;gap:14px;display:flex}.auth-form input{border:1px solid var(--border);border-radius:14px;outline:none;width:100%;padding:14px 16px;font-size:15px}.auth-submit{cursor:pointer;color:#fff;background:linear-gradient(135deg, var(--primary), var(--primary-2));border:none;padding:14px 18px;box-shadow:0 12px 24px #4f46e538}.auth-error{color:var(--danger);word-break:break-word;background:#fef2f2;border:1px solid #fecaca;border-radius:14px;padding:12px 14px;font-size:14px;font-weight:600}.mobile-chart-legend{flex-direction:column;gap:10px;display:flex}.mobile-chart-legend-item{border:1px solid var(--border);background:#fff;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;display:flex}.mobile-chart-legend-label{color:var(--text);word-break:break-word;font-size:14px;line-height:1.4}@media (width<=1200px){.hero-panel,.charts-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transaction-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-search{grid-column:span 3}}@media (width<=900px){.app-shell{padding:16px}.topbar,.panel-header-inline,.transactions-header{flex-direction:column;align-items:stretch}.topbar-actions,.section-chip-row{justify-content:flex-start;width:100%}.topbar-actions button,.hero-action-row button{flex:auto}.stats-grid,.banks-grid,.banks-grid-filters,.accounts-grid{grid-template-columns:1fr}.transaction-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search{grid-column:span 2}}@media (width<=640px){.app-shell{padding:12px}.panel,.stat-card,.hero-copy,.hero-summary-card,.auth-card{border-radius:20px;padding:16px}.topbar{border-radius:18px;margin-bottom:18px;padding:14px}.topbar-actions,.hero-action-row{flex-direction:column;align-items:stretch}.topbar-actions button,.hero-action-row button{width:100%}.brand,.auth-brand,.account-top,.bank-card-top{align-items:flex-start}.brand-logo,.auth-logo{width:44px;height:44px;font-size:20px}.hero-copy p{font-size:15px}.hero-summary-grid,.transaction-mobile-grid,.stats-grid,.transaction-filters,.auth-toggle{grid-template-columns:1fr}.filter-search{grid-column:span 1}.panel-header h2{font-size:22px}.filters-panel{padding:12px}.transaction-summary-bar,.bank-card-bottom,.meta-row,.transaction-mobile-top,.mobile-chart-legend-item{flex-direction:column;align-items:flex-start}.transaction-mobile-top strong,.meta-row strong,.bank-card-bottom strong{text-align:left}.auth-shell{padding:16px}.auth-brand h1{font-size:24px}}.statement-upload-panel{margin-bottom:24px}.statement-upload-grid{grid-template-columns:1.1fr 1.4fr auto;align-items:end;gap:16px;display:grid}.statement-upload-field{flex-direction:column;gap:8px;display:flex}.statement-upload-field label{color:var(--text);font-size:14px;font-weight:700}.statement-upload-field select,.statement-upload-field input[type=file]{border:1px solid var(--border);width:100%;color:var(--text);background:#fff;border-radius:14px;padding:12px 14px}.statement-upload-field small{color:var(--muted);word-break:break-word;font-size:12px}.statement-upload-actions{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.alert-success{color:#166534;word-break:break-word;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:16px;margin-top:16px;padding:14px 16px;font-weight:600}@media (width<=900px){.statement-upload-grid{grid-template-columns:1fr}.statement-upload-actions{align-items:stretch}.statement-upload-actions .connect-btn{width:100%}}@media (width<=900px){.monthly-summary-cards{grid-template-columns:1fr}}.dashboard-two-column{grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);align-items:start;gap:24px;margin-bottom:24px;display:grid}.compact-panel{height:100%}.compact-upload-grid{grid-template-columns:1fr;gap:14px}.summary-line-chart{margin-top:20px}.monthly-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.statement-upload-actions{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}@media (width<=1024px){.dashboard-two-column{grid-template-columns:1fr}}@media (width<=900px){.monthly-summary-cards{grid-template-columns:1fr}}.insights-two-column{margin-bottom:24px}.insight-cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;display:grid}.insights-list{flex-direction:column;gap:12px;display:flex}.insight-item{border:1px solid var(--border);background:#fff;border-radius:16px;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.insight-item p{color:var(--text);margin:0;line-height:1.5}.insight-dot{background:linear-gradient(135deg, var(--primary), var(--primary-2));border-radius:999px;flex-shrink:0;width:10px;height:10px;margin-top:6px}.ranked-list{flex-direction:column;gap:12px;display:flex}.ranked-list-item{border:1px solid var(--border);background:#fff;border-radius:18px;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;display:flex}.ranked-list-left{align-items:center;gap:14px;min-width:0;display:flex}.ranked-list-left div p{color:var(--muted);margin:4px 0 0;font-size:13px}.rank-badge{color:#3730a3;background:#e0e7ff;border-radius:12px;flex-shrink:0;place-items:center;width:32px;height:32px;font-weight:800;display:grid}.compact-empty-state{min-height:180px}@media (width<=900px){.insight-cards-grid{grid-template-columns:1fr}.ranked-list-item{flex-direction:column;align-items:flex-start}}
