:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f3fa;--bg-accent:#eceaf8;--surface:#fff;--surface-solid:#fff;--surface-2:#f2effa;--text:#1d1b2f;--muted:#79758f;--border:#6c5dd324;--primary:#6c5dd3;--primary-hover:#5a4cb5;--primary-light:#ede9fc;--pink:#ff80a9;--pink-light:#ffeaf0;--green:#10b981;--green-light:#ecfdf5;--amber:#f59e0b;--amber-light:#fef3c7;--red:#ef4444;--red-light:#ffeeef;--blue:#3b82f6;--blue-light:#eff6ff;--shadow:0 16px 40px #6c5dd314;--shadow-soft:0 8px 24px #6c5dd30a;--radius-lg:16px;--radius-md:12px;--radius-sm:8px;--font:"Manrope", system-ui, -apple-system, sans-serif;--transition:all .2s cubic-bezier(.4, 0, .2, 1);--hero-bg:linear-gradient(135deg, #4f40c7 0%, #3d2fa1 100%)}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#110e1a;--bg-accent:#171424;--surface:#1b172a;--surface-solid:#1b172a;--surface-2:#242038;--text:#eae8f2;--muted:#9590ad;--border:#6c5dd338;--primary:#9a8dfb;--primary-hover:#b4a9ff;--primary-light:#6c5dd32e;--pink:#ff9fb9;--pink-light:#ff80a921;--green:#34d399;--green-light:#34d3991f;--amber:#fbbf24;--amber-light:#fbbf241f;--red:#f87171;--red-light:#f871711f;--blue:#60a5fa;--blue-light:#60a5fa1f;--shadow:0 20px 48px #0006;--shadow-soft:0 10px 24px #0000003d;--hero-bg:linear-gradient(135deg, #1b163a 0%, #110e25 100%)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:var(--bg);color:var(--text);transition:background-color .3s,color .3s;overflow-x:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;transition:var(--transition);background:0 0;border:0;justify-content:center;align-items:center;gap:8px;display:inline-flex}button:disabled{cursor:not-allowed;opacity:.6}a{color:var(--primary);transition:var(--transition);text-decoration:none}a:hover{color:var(--primary-hover)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--muted)}.appShell{grid-template-columns:280px minmax(0,1fr);min-height:100vh;transition:grid-template-columns .3s cubic-bezier(.4,0,.2,1);display:grid}.appShell.sidebarCollapsed{grid-template-columns:88px minmax(0,1fr)}.sidebar{background:var(--surface);border-right:1px solid var(--border);z-index:50;min-height:100vh;box-shadow:var(--shadow-soft);grid-template-rows:auto 1fr auto;transition:width .3s;display:grid;position:sticky;top:0}.brandBlock{border-bottom:1px solid var(--border);align-items:center;gap:12px;min-height:82px;padding:18px 24px;display:flex}.brandBlock img{object-fit:contain;border-radius:8px;width:40px;height:40px}.brandBlock div{flex-direction:column;min-width:0;display:flex}.brandBlock strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:1.15rem;font-weight:800;overflow:hidden}.brandBlock span{color:var(--muted);font-size:.78rem;font-weight:600}.sidebarToggle{background:var(--surface-2);width:32px;height:32px;color:var(--muted);border-radius:8px;margin-left:auto}.sidebarToggle:hover{color:var(--primary);background:var(--primary-light)}.navList{flex-direction:column;gap:6px;padding:24px 16px;display:flex}.navList button{border-radius:var(--radius-sm);width:100%;min-height:46px;color:var(--muted);justify-content:flex-start;padding:10px 16px;font-size:.94rem;font-weight:700;position:relative}.navList button:hover{background:var(--surface-2);color:var(--text)}.navList button.active{background:var(--primary-light);color:var(--primary)}.navList button.active:after{content:"";background:var(--primary);border-radius:2px;width:4px;position:absolute;top:12px;bottom:12px;right:6px}.sidebarFooter{border-top:1px solid var(--border);flex-direction:column;gap:12px;padding:20px 16px;display:flex}.sidebarFooter div{flex-direction:column;min-width:0;padding:0 8px;display:flex}.sidebarFooter strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.94rem;overflow:hidden}.sidebarFooter span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;overflow:hidden}.appShell.sidebarCollapsed .brandBlock div,.appShell.sidebarCollapsed .navList span,.appShell.sidebarCollapsed .sidebarFooter div,.appShell.sidebarCollapsed .sidebarFooter button span{display:none}.appShell.sidebarCollapsed .brandBlock{justify-content:center;padding:18px 10px}.appShell.sidebarCollapsed .sidebarToggle{margin-left:0}.appShell.sidebarCollapsed .navList button{justify-content:center;padding:10px}.appShell.sidebarCollapsed .navList button.active:after{right:2px}.appShell.sidebarCollapsed .sidebarFooter{align-items:center}.appShell.sidebarCollapsed .sidebarFooter button{border-radius:50%;width:40px;height:40px;padding:0}.mainColumn{flex-direction:column;min-width:0;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--border);z-index:40;justify-content:space-between;align-items:center;gap:16px;min-height:82px;padding:12px 32px;display:flex;position:sticky;top:0}.topbar .titleArea{flex-direction:column;display:flex}.breadcrumb{color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px;font-size:.76rem;font-weight:800}.topbar h1{color:var(--text);font-size:1.3rem;font-weight:800}.topSearch{width:min(320px,30vw);margin-left:auto;display:block;position:relative}.topSearch svg{color:var(--muted);position:absolute;top:12px;left:12px}.topSearch input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);width:100%;min-height:40px;transition:var(--transition);outline:none;padding:10px 12px 10px 38px}.topSearch input:focus{border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 3px var(--primary-light)}.topbarActions{align-items:center;gap:12px;display:flex}.topbarActions .iconButton{border-radius:var(--radius-sm);background:var(--surface-2);width:40px;height:40px;color:var(--muted);position:relative}.topbarActions .iconButton:hover{background:var(--primary-light);color:var(--primary)}.topbarActions .iconButton .badge{background:var(--red);border:1.5px solid var(--surface);border-radius:50%;width:8px;height:8px;position:absolute;top:6px;right:6px}.userDropdownContainer{position:relative}.topUser{border-radius:var(--radius-sm);background:var(--surface-2);cursor:pointer;transition:var(--transition);align-items:center;gap:10px;padding:6px 12px;display:flex}.topUser:hover{background:var(--primary-light)}.topUser div{text-align:left;flex-direction:column;display:flex}.topUser strong{color:var(--text);font-size:.88rem;font-weight:800}.topUser span{color:var(--muted);font-size:.74rem;font-weight:600}.dropdownMenu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);width:220px;box-shadow:var(--shadow);flex-direction:column;gap:4px;padding:8px;display:flex;position:absolute;top:calc(100% + 8px);right:0}.dropdownMenu button{border-radius:var(--radius-sm);width:100%;min-height:38px;color:var(--muted);justify-content:flex-start;padding:8px 12px;font-size:.88rem;font-weight:700}.dropdownMenu button:hover{background:var(--surface-2);color:var(--text)}.dropdownMenu button.dangerText:hover{background:var(--red-light);color:var(--red)}.dropdownMenu hr{border:0;border-top:1px solid var(--border);margin:4px 0}.content{width:100%;max-width:1540px;margin:0 auto;padding:32px}.pageStack{flex-direction:column;gap:24px;display:flex}.pageHead{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.pageHead h1{color:var(--text);margin:4px 0;font-size:1.8rem;font-weight:800}.pageHead p{color:var(--muted);font-size:.94rem;font-weight:600}.headActions{align-items:center;gap:10px;display:flex}.purpleDashboardHero{background:var(--hero-bg);border-radius:var(--radius-lg);color:#fff;flex-direction:column;gap:28px;padding:32px;display:flex;box-shadow:0 20px 48px #6c5dd329}.purpleHeroStats{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.purpleMetricCard{border-radius:var(--radius-md);transition:var(--transition);background:#ffffff14;border:1px solid #ffffff1f;flex-direction:column;gap:8px;padding:24px;display:flex}.purpleMetricCard:hover{background:#ffffff1f;transform:translateY(-2px)}.purpleMetricCard span{text-transform:uppercase;color:#ffffffd9;letter-spacing:.5px;font-size:.78rem;font-weight:800}.purpleMetricCard strong{font-size:2rem;font-weight:900}.purpleMetricCard .trendTag{background:#ffffff29;border-radius:6px;align-self:flex-start;padding:3px 8px;font-size:.72rem;font-weight:800}.purpleHeroAnalytics{grid-template-columns:1.25fr .75fr;gap:24px;display:grid}.dashboardGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;display:grid}.purpleAnalyticsPanel{border-radius:var(--radius-md);background:#ffffff0a;border:1px solid #ffffff14;flex-direction:column;padding:24px;display:flex}.purpleAnalyticsPanel h2{color:#fff;font-size:1.15rem;font-weight:800}.purpleAnalyticsPanel p{color:#ffffffd9;font-size:.84rem}.statGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.statGrid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.statCard,.miniMetric{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);transition:var(--transition);flex-direction:column;gap:6px;padding:20px;display:flex}.statCard:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.statCard span,.miniMetric span{color:var(--muted);font-size:.82rem;font-weight:700}.statCard strong,.miniMetric strong{color:var(--text);font-size:1.6rem;font-weight:800}.statCard.success{border-left:4px solid var(--green)}.statCard.warning{border-left:4px solid var(--amber)}.statCard.danger{border-left:4px solid var(--red)}.trendChart{grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:12px;min-height:240px;padding-top:16px;display:grid}.trendGroup{flex-direction:column;gap:8px;height:200px;display:flex}.trendBars{flex:1;grid-template-columns:1fr 1fr;align-items:end;gap:4px;display:grid}.trendBars span,.trendBars b{border-radius:4px 4px 0 0;min-height:6px;display:block}.trendBars span{background:#ffffffd9}.trendBars b{background:var(--pink)}.trendGroup small{color:#ffffffd9;text-align:center;font-size:.72rem;font-weight:800}.legend{color:#fffc;gap:16px;font-size:.82rem;font-weight:700;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.blueDot,.greenDot,.amberDot,.redDot{border-radius:50%;width:10px;height:10px}.blueDot{background:#fff}.greenDot{background:var(--pink)}.barList{flex-direction:column;gap:16px;display:flex}.meter{flex-direction:column;gap:6px;display:flex}.meter div{color:#fff;justify-content:space-between;font-size:.82rem;font-weight:700;display:flex}.meter i{background:#ffffff1f;border-radius:4px;height:8px;display:block;overflow:hidden}.meter b{background:#fff;border-radius:4px;height:100%;display:block}.meter.success b{background:var(--pink)}.meter.warning b{background:var(--amber)}.meter.danger b{background:var(--red)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);flex-direction:column;gap:16px;padding:24px;display:flex}.panelHead{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.panelHead h2{color:var(--text);margin-bottom:2px;font-size:1.15rem;font-weight:800}.panelHead p{color:var(--muted);font-size:.88rem;font-weight:600}.dataPanel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);flex-direction:column;gap:20px;padding:24px;display:flex}.dataPanelHead{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.dataPanelHead h2{color:var(--text);font-size:1.2rem;font-weight:800}.dataPanelHead p{color:var(--muted);font-size:.88rem}.dataPanelActions{align-items:center;gap:10px;display:flex}.tableToolbar{background:var(--surface-2);border-radius:var(--radius-sm);flex-wrap:wrap;align-items:center;gap:12px;padding:12px;display:flex}.tableToolbar select,.tableToolbar input[type=date]{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);outline:none;width:auto;min-width:160px;min-height:38px;padding:6px 12px;font-size:.88rem}.tableSearch{flex:1;min-width:260px;display:block;position:relative}.tableSearch svg{color:var(--muted);pointer-events:none;position:absolute;top:11px;left:12px}.tableSearch input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:38px;transition:var(--transition);outline:none;padding:8px 12px 8px 38px}.tableSearch input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.tableWrap{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%;font-size:.94rem}th,td{border-bottom:1px solid var(--border);vertical-align:middle;padding:14px 16px}th{background:var(--surface-2);color:var(--muted);text-transform:uppercase;letter-spacing:.5px;font-size:.78rem;font-weight:800}tr:last-child td{border-bottom:0}tr:hover td{background:#6c5dd305}td strong{color:var(--text);font-weight:800}.subline{color:var(--muted);margin-top:2px;font-size:.8rem}.num{text-align:right;font-weight:700}.emptyCell{text-align:center;color:var(--muted);padding:40px;font-weight:600}.selectCol{text-align:center;width:48px}.actionCol{text-align:center;width:80px}.rowMenu{display:inline-block;position:relative}.rowMenuList{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow);z-index:30;flex-direction:column;gap:2px;min-width:160px;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);right:0}.rowMenuList button{width:100%;min-height:36px;color:var(--muted);border-radius:6px;justify-content:flex-start;padding:8px 12px;font-size:.88rem;font-weight:700}.rowMenuList button:hover{background:var(--primary-light);color:var(--primary)}.rowMenuList button.dangerText:hover{background:var(--red-light);color:var(--red)}.rowMenuEmpty{color:var(--muted);padding:8px 12px;font-size:.82rem;font-weight:700;display:block}.exportMenu{display:inline-block;position:relative}.exportMenuList{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow);z-index:30;flex-direction:column;gap:2px;min-width:150px;padding:6px;display:none;position:absolute;top:calc(100% + 4px);right:0}.exportMenu:hover .exportMenuList,.exportMenu:focus-within .exportMenuList{display:flex}.exportMenuList button{width:100%;min-height:36px;color:var(--muted);cursor:pointer;transition:var(--transition);background:0 0;border:0;border-radius:6px;justify-content:flex-start;align-items:center;gap:8px;padding:8px 12px;font-size:.88rem;font-weight:700;display:flex}.exportMenuList button:hover{background:var(--primary-light);color:var(--primary)}.tableFooter{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:8px;display:flex}.tableFooter span{color:var(--muted);font-size:.88rem;font-weight:600}.paginationControls{align-items:center;gap:10px;display:flex}.paginationControls strong{white-space:nowrap}.paginationControls select{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);outline:none;min-height:34px;padding:4px 8px}label{color:var(--text);flex-direction:column;gap:6px;font-size:.88rem;font-weight:800;display:flex}input,select,textarea{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:42px;color:var(--text);transition:var(--transition);outline:none;padding:10px 14px}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}textarea{resize:vertical;min-height:100px}.formGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.formStack{flex-direction:column;gap:14px;display:flex}.paymentBreakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.wide{grid-column:1/-1}.formSection{color:var(--primary);border-bottom:1px solid var(--border);grid-column:1/-1;align-items:center;gap:8px;margin-top:8px;padding-bottom:8px;font-size:1rem;font-weight:800;display:flex}.verifyBox{flex-direction:column;justify-content:flex-end;gap:8px;display:flex}.estimateGrid{background:var(--surface-2);border-radius:var(--radius-md);border:1px solid var(--border);grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;display:grid}.borrowerPicker{grid-column:1/-1;position:relative}.borrowerPickerRow{grid-template-columns:1fr auto;align-items:flex-end;gap:12px;display:grid}.borrowerMenu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);max-height:260px;box-shadow:var(--shadow);z-index:99;padding:6px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.borrowerOption{text-align:left;border-radius:6px;flex-direction:column;gap:2px;width:100%;padding:10px 12px;display:flex}.borrowerOption:hover{background:var(--primary-light)}.borrowerOption strong{color:var(--text);font-size:.94rem}.borrowerOption span{color:var(--muted);font-size:.8rem}.borrowerOption small{color:var(--primary);font-size:.74rem;font-weight:700}.button{border-radius:var(--radius-sm);background:var(--primary);color:#fff;min-height:40px;padding:10px 20px;font-size:.94rem;font-weight:700;box-shadow:0 4px 14px #6c5dd333}.button:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-1px)}.button.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:none}.button.secondary:hover:not(:disabled){background:var(--surface-2)}.button.success{background:var(--green);box-shadow:0 4px 14px #10b98133}.button.success:hover:not(:disabled){background:#059669}.button.danger{background:var(--red);box-shadow:0 4px 14px #ef444433}.button.danger:hover:not(:disabled){background:#dc2626}.iconButton{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);width:38px;height:38px;color:var(--text)}.iconButton:hover:not(:disabled){background:var(--surface-2)}.iconButton.dangerIcon{color:var(--red)}.iconButton.dangerIcon:hover:not(:disabled){background:var(--red-light)}.linkButton{color:var(--primary);text-underline-offset:3px;font-weight:800;-webkit-text-decoration:underline #0000;text-decoration:underline #0000}.linkButton:hover{text-decoration-color:currentColor}.pill{background:var(--surface-2);min-height:26px;color:var(--muted);white-space:nowrap;border-radius:99px;align-items:center;padding:4px 10px;font-size:.76rem;font-weight:800;display:inline-flex}.pill.approved,.pill.active,.pill.paid,.pill.fully_paid,.pill.partially_paid{background:var(--green-light);color:var(--green)}.pill.pending,.pill.due-soon{background:var(--amber-light);color:var(--amber)}.pill.rejected,.pill.overdue,.pill.defaulted{background:var(--red-light);color:var(--red)}.pill.closed{background:var(--blue-light);color:var(--blue)}.pill.kyc-new{background:var(--surface-2);color:var(--muted)}.pill.kyc-poor{background:var(--red-light);color:var(--red)}.pill.kyc-good{background:var(--blue-light);color:var(--blue)}.pill.kyc-excellent{background:var(--green-light);color:var(--green)}.pill.duplicate{background:var(--amber-light);color:var(--amber);margin-top:4px}.profileHeader{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.profileHeader h2{margin:4px 0;font-size:1.5rem;font-weight:800}.profileHeader p{color:var(--muted);font-size:.94rem}.profileStats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:12px;display:grid}.detailGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.detailItem{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);flex-direction:column;gap:4px;padding:16px;display:flex}.detailItem span{color:var(--muted);font-size:.78rem;font-weight:700}.detailItem strong{color:var(--text);font-size:1.05rem;font-weight:800}.staticDetails{flex-direction:column;gap:8px;display:flex}.detailRow{border-bottom:1px dashed var(--border);grid-template-columns:200px 1fr;align-items:center;gap:16px;padding:10px 0;display:grid}.detailRow:last-child{border-bottom:0}.detailLabel{color:var(--muted);font-size:.88rem;font-weight:700}.detailValue{color:var(--text);font-weight:800}.notice{background:var(--primary-light);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--primary);padding:14px;font-size:.94rem}.decisionBox{border-top:1px solid var(--border);flex-direction:column;gap:14px;margin-top:16px;padding-top:16px;display:flex}.settingsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.settingsSection{border-top:4px solid var(--primary)}.settingsSection.sectionLoanRules{border-top-color:var(--green)}.settingsSection.sectionPenalty{border-top-color:var(--red)}.settingsSection.sectionReferral{border-top-color:var(--amber)}.settingsSection.sectionEmail{border-top-color:var(--blue)}.settingsSection.sectionBusiness{border-top-color:var(--text)}.settingsSectionHead>div{align-items:center;gap:12px;display:flex}.sectionIcon{background:var(--primary-light);width:40px;height:40px;color:var(--primary);border-radius:var(--radius-sm);justify-content:center;align-items:center;display:flex}.sectionLoanRules .sectionIcon{background:var(--green-light);color:var(--green)}.sectionPenalty .sectionIcon{background:var(--red-light);color:var(--red)}.sectionReferral .sectionIcon{background:var(--amber-light);color:var(--amber)}.sectionEmail .sectionIcon{background:var(--blue-light);color:var(--blue)}.sectionBusiness .sectionIcon{background:var(--surface-2);color:var(--text)}.settingsSplit{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.toggleLine{flex-direction:row;align-items:center;gap:8px;display:inline-flex}.toggleLine input{width:20px;height:20px;min-height:20px}.referralList{flex-direction:column;gap:10px;display:flex}.referralList div{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 16px}.historyFilters{grid-template-columns:1fr auto auto auto auto;align-items:center;gap:12px;display:grid}.paymentHistoryRow td{background:var(--surface-2)}.paymentHistory{flex-direction:column;gap:10px;display:flex}.paymentChips{flex-wrap:wrap;gap:8px;display:flex}.paymentChips span{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--muted);padding:6px 12px;font-size:.8rem;font-weight:700}.modalBackdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:100;background:#1d1b2f66;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);flex-direction:column;gap:20px;width:min(640px,100%);max-height:min(90vh,880px);padding:32px;display:flex;position:relative;overflow-y:auto}.modal-lg{width:min(960px,100%)}.modal h2{color:var(--text);padding-right:48px;font-size:1.4rem;font-weight:900}.modalClose{background:var(--surface-2);width:36px;height:36px;color:var(--muted);border-radius:50%;position:absolute;top:24px;right:24px}.modalClose:hover{background:var(--red-light);color:var(--red)}.modalBody{flex-direction:column;gap:16px;display:flex}.modalFooter{border-top:1px solid var(--border);justify-content:flex-end;gap:12px;padding-top:12px;display:flex}.toastStack{z-index:110;flex-direction:column;gap:10px;width:min(360px,100vw - 48px);display:flex;position:fixed;bottom:24px;right:24px}.toast{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow);color:var(--text);align-items:center;gap:12px;padding:16px;font-size:.94rem;font-weight:700;display:flex}.toast.success{border-color:#10b9814d}.toast.success svg{color:var(--green)}.toast.error{border-color:#ef44444d}.toast.error svg{color:var(--red)}.authPage{background:radial-gradient(circle at top right, var(--primary-light), transparent 36rem), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.authPanel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:min(1040px,100%);box-shadow:var(--shadow);grid-template-columns:1.1fr .9fr;display:grid;overflow:hidden}.authVisual{background:linear-gradient(135deg, var(--bg-accent) 0%, var(--surface-2) 100%);border-right:1px solid var(--border);flex-direction:column;justify-content:center;gap:24px;padding:48px;display:flex}.authVisual img{object-fit:contain;width:140px;height:140px}.authVisual h1{color:var(--text);font-size:clamp(1.8rem,4vw,3rem);font-weight:900;line-height:1.1}.authVisual p{color:var(--muted);font-size:1.05rem;line-height:1.6}.authForm{flex-direction:column;justify-content:center;gap:20px;padding:48px;display:flex}.authDivider{text-align:center;color:var(--muted);text-transform:uppercase;align-items:center;margin:10px 0;font-size:.8rem;font-weight:800;display:flex}.authDivider:before,.authDivider:after{content:"";border-bottom:1px solid var(--border);flex:1}.authDivider:before{margin-right:12px}.authDivider:after{margin-left:12px}.googleButton{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-solid);min-height:42px;color:var(--text);font-weight:700}.googleButton:hover{background:var(--surface-2)}@media (width<=1200px){.appShell{grid-template-columns:1fr}.sidebar{width:280px;transition:transform .3s cubic-bezier(.4,0,.2,1);position:fixed;inset:0 auto 0 0;transform:translate(-105%)}.sidebar.open{transform:translate(0)}.topbar{padding:12px 24px}.mobileMenuBtn{display:inline-flex!important}.statGrid,.statGrid.five{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.authPanel{grid-template-columns:1fr}.authVisual{border-right:0;border-bottom:1px solid var(--border);text-align:center;align-items:center;padding:32px}.authForm{padding:32px}.purpleHeroAnalytics,.dashboardGrid{grid-template-columns:1fr}.statGrid,.statGrid.five{grid-template-columns:repeat(2,minmax(0,1fr))}.detailGrid,.settingsGrid{grid-template-columns:1fr}.settingsSplit{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.content{padding:16px}.topSearch,.topUser div{display:none}.pageHead{flex-direction:column;align-items:stretch}.headActions{width:100%;margin-top:10px}.headActions button{flex:1}.purpleHeroStats,.statGrid,.statGrid.five,.formGrid,.paymentBreakdown,.estimateGrid,.profileStats,.historyFilters,.settingsSplit{grid-template-columns:1fr}.modal{padding:20px}}.navItemWrapper{flex-direction:column;display:flex}.menuChevron{transition:transform .15s}.subItemsContainer{border-left:1px solid var(--border);flex-direction:column;gap:4px;margin-top:4px;margin-left:24px;padding-left:12px;display:flex;overflow:hidden}.subNavItem{color:var(--muted);border-radius:var(--radius-sm);width:100%;transition:var(--transition);justify-content:flex-start;align-items:center;gap:8px;display:flex;min-height:36px!important;padding:6px 12px!important;font-size:.86rem!important;font-weight:600!important}.subNavItem:hover{background:var(--surface-2);color:var(--text)}.subNavItem.active{background:var(--primary-light)!important;color:var(--primary)!important}.appShell.sidebarCollapsed .subItemsContainer{display:none}.settingsPanelContainer{width:100%;max-width:900px}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-md);flex-direction:row;align-items:center;gap:4px;padding:4px;display:inline-flex}.segmented button{border-radius:var(--radius-sm);color:var(--muted);transition:var(--transition);white-space:nowrap;background:0 0;justify-content:center;align-items:center;min-height:32px;padding:6px 14px;font-size:.88rem;font-weight:700;display:inline-flex}.segmented button:hover{color:var(--text);background:#6c5dd30f}.segmented button.active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow-soft)}.authForm .segmented{width:100%;display:flex}.authForm .segmented button{flex:1}.passwordInputWrapper{align-items:center;width:100%;display:flex;position:relative}.passwordInputWrapper input{width:100%;padding-right:44px}.passwordToggle{color:var(--muted);cursor:pointer;transition:var(--transition);background:0 0;border:0;justify-content:center;align-items:center;padding:8px;display:inline-flex;position:absolute;right:4px}.passwordToggle:hover{color:var(--text)}.compactSegment{border-radius:var(--radius-sm);border:0;gap:2px;padding:3px}.compactSegment button{border-radius:6px;min-height:26px;padding:4px 10px;font-size:.78rem}.dashboardQuickActions{gap:12px;margin-top:auto;padding-top:24px;display:flex}.dashboardQuickActions .button.secondary{color:#fff!important;box-shadow:none!important;border-radius:var(--radius-sm)!important;min-height:36px!important;transition:var(--transition)!important;background:#ffffff26!important;border:1px solid #ffffff40!important;padding:8px 16px!important;font-size:.88rem!important}.dashboardQuickActions .button.secondary:hover{background:#ffffff40!important;border-color:#fff6!important}.summaryList{flex-direction:column;gap:16px;width:100%;display:flex}.summaryLine{grid-template-columns:1fr auto;align-items:center;gap:8px 12px;display:grid}.summaryLine span{color:var(--muted);font-size:.94rem;font-weight:700}.summaryLine strong{color:var(--text);text-align:right;font-size:.94rem;font-weight:800}.summaryLine i{background:var(--surface-2);border:1px solid var(--border);border-radius:4px;grid-column:1/-1;height:8px;display:block;overflow:hidden}.summaryLine b{background:var(--primary);border-radius:4px;height:100%;display:block}
