:root {
  --theme-primary: #1d4ed8;
  --theme-primary-deep: #172554;
  --theme-accent: #0891b2;
  --theme-background: #f8faff;
  --theme-surface: #ffffff;
  --theme-border: #dbeafe;
  --theme-text-secondary: #64748b;
  --theme-primary-hover: #1e40af;
  --theme-primary-soft: #dbeafe;
  --theme-text-primary: #172554;
  --theme-accent-soft: #cffafe;
  --theme-border-active: #3b82f6;
  --theme-on-primary: #f8fafc;
  --theme-on-deep: #f8fafc;
  --theme-on-accent: #0b1120;
  --theme-on-surface: #0b1120;
  --theme-radius: 16px;
  --theme-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --theme-space: 16px;
  --theme-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --theme-motion: 1;
  --theme-card-border-width: 1px;
  --status-success: #15803D;
  --status-success-bg: #DCFCE7;
  --status-warning: #B45309;
  --status-warning-bg: #FEF3C7;
  --status-error: #B91C1C;
  --status-error-bg: #FEE2E2;
  --status-info: #1D4ED8;
  --status-info-bg: #DBEAFE;
  --status-pending: #475569;
  --status-pending-bg: #F1F5F9;
  --chart-revenue: #4338CA;
  --chart-expenses: #B45309;
  --chart-ebitda: #0F766E;
  --chart-pat: #1D4ED8;
  --chart-outstanding: #881337;
  --chart-cashflow: #0891B2;
  --chart-working-capital: #166534;
  --indigo: #1d4ed8;
  --indigo-deep: #172554;
  --indigo-soft: #dbeafe;
  --indigo-mid: #dbeafe;
  --ink: #172554;
  --muted: #64748b;
  --line: #dbeafe;
  --paper: #f8faff;
  --card: #ffffff;
  --navy: #172554;
  --teal: #0891b2;
  --danger: #B91C1C;
  --ok: #15803D;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --btn-bg: #1d4ed8;
  --btn-ink: #f8fafc;
  --btn-bg-hover: #1e40af;
  --btn-ink-hover: #f8fafc;
  --chrome-bg: #172554;
  --chrome-ink: #f8fafc;
  --header-bar: #ffffff;
  --header-ink: #172554;
  --header-accent: #0891b2;
  --header-ghost-bg: #ffffff;
  --header-ghost-border: #dbeafe;
  --sidebar-bg: #ffffff;
  --sidebar-ink: #172554;
  --sidebar-muted: #64748b;
  --sidebar-hover: #dbeafe;
  --sidebar-card: #ffffff;
  --summary-bg: #dbeafe;
  --summary-ink: #172554;
  --summary-muted: #64748b;
  --summary-cell-bg: #ffffff;
  --summary-cell-border: #dbeafe;
  --summary-cell-ink: #0b1120;
  --summary-cell-muted: #64748b;
  --summary-total-bg: #1d4ed8;
  --summary-total-ink: #f8fafc;
  --summary-btn-bg: #1d4ed8;
  --summary-btn-ink: #f8fafc;
  --summary-btn-hover: #1e40af;
  --summary-btn-ink-hover: #f8fafc;
  --item-bg: #ffffff;
  --item-ink: #172554;
  --item-muted: #64748b;
  --item-border: #dbeafe;
  --badge-bg: #1d4ed8;
  --badge-ink: #f8fafc;
  --pick-on-bg: #1d4ed8;
  --pick-on-ink: #f8fafc;
  --admin-indigo: #1d4ed8;
  --admin-indigo-deep: #172554;
  --admin-indigo-soft: #dbeafe;
}

h1, h2, h3, .kicker, .page-hero h1, .hero-panel h1, .hero-panel .kicker { color: var(--header-ink); }
.lede, .hero-panel .lede, .hero-panel p, .page-hero p, .page-hero .lede { color: var(--theme-text-secondary); }
.hero-panel, .page-hero, .page-home .home-hero--v2 {
  background: linear-gradient(165deg, var(--theme-background) 0%, var(--theme-primary-soft) 100%);
  border-color: var(--theme-border);
  color: var(--theme-text-primary);
}
.site-header.is-scrolled .site-header__bar {
  background: color-mix(in srgb, var(--header-bar) 94%, transparent);
  color: var(--header-ink);
}
.site-footer {
  color: var(--theme-on-deep);
  background: linear-gradient(168deg, var(--theme-primary-deep) 0%, var(--theme-primary) 100%);
  border-top-color: var(--theme-border-active);
}
.site-footer a, .site-footer a:hover { color: var(--theme-on-deep); }
.auth-shell__brand, .auth-shell__brand h1, .auth-shell__brand p,
.preview-hero, .preview-hero h1, .preview-hero__lead,
.about-pillar--accent, .about-pillar--accent h2, .about-pillar--accent p,
.pricing-cta, .pricing-cta p, .about-cta-band, .about-cta-band p {
  color: var(--theme-on-deep);
}
.preview-hero, .about-pillar--accent, .pricing-cta, .about-cta-band {
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary));
}
.wizard-eligibility-hero { background: transparent; color: var(--theme-text-primary); box-shadow: none; }
.wizard-eligibility-note { color: var(--theme-text-secondary) !important; }
.elig-facility__head,
.wizard-shell .wizard-step .elig-facility__head h3,
.elig-facility__eyebrow,
.elig-stat__label,
.fsa-modal__head,
.wizard-shell .fsa-modal__head h2,
.fsa-modal__eyebrow,
.fsa-modal__lead {
  color: var(--theme-on-deep) !important;
}
.wizard-shell, .wizard-shell .wizard-main { color: var(--theme-text-primary); }
.wizard-shell .wizard-hero--pro,
.wizard-shell .wizard-step,
.wizard-shell .card-inset,
.wizard-shell .wizard-group-cards,
.wizard-shell .wizard-entry-progress {
  background: linear-gradient(165deg, var(--theme-surface) 0%, var(--theme-primary-soft) 100%);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.wizard-shell .wizard-hero__lede,
.wizard-shell .wizard-group-card__range,
.wizard-shell .field-hint { color: var(--theme-text-secondary); }
.loan-facility-head,
.wizard-shell .wizard-step .loan-facility-head h3,
.wizard-shell .wizard-step .loan-facility-head .re-subhead,
.loan-facility-head .loan-facility-head__eyebrow,
.loan-facility-head .loan-facility-head__text { color: var(--theme-on-deep) !important; }
.loan-facility-head {
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary) 58%, var(--theme-border-active));
}
.wizard-shell .wizard-step h3,
.wizard-shell .wizard-section > h3,
.wizard-shell .wizard-group-card__title,
.wizard-shell .wizard-step-pill strong,
.wizard-shell .bank-picker__head h3,
.wizard-shell .bank-method-card__title { color: var(--header-ink); }
.wizard-shell .field-hint.accent,
.wizard-shell .wizard-group-card__pct,
.wizard-shell .wizard-progress-dot { color: var(--theme-primary); }
.wizard-shell .wizard-group-card__num {
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  border-color: var(--theme-border-active);
}
.wizard-shell .wizard-group-card.is-active .wizard-group-card__num,
.wizard-shell .wizard-progress-dot.active,
.wizard-shell .bank-step__num {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-color: var(--theme-primary);
}
.wizard-shell .wizard-group-card__status[data-state="active"] {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}
.wizard-shell .wizard-entry-progress__label,
.wizard-shell .wizard-entry-progress__pct,
.wizard-shell .wizard-entry-progress__track-pct,
.wizard-shell .wizard-entry-progress__seg-label,
.wizard-shell .wizard-entry-progress__seg.is-done .wizard-entry-progress__seg-label { color: var(--header-ink); }
.wizard-shell .wizard-entry-progress__track,
.wizard-shell .wizard-entry-progress__seg,
.wizard-shell .wizard-entry-progress__seg::before { background: var(--theme-primary-soft); }
.wizard-shell .wizard-entry-progress__fill,
.wizard-shell .wizard-entry-progress__seg-fill,
.wizard-shell .wizard-entry-progress__seg.is-done .wizard-entry-progress__seg-fill { background: var(--theme-primary); }
.wizard-shell .wizard-step-pill,
.wizard-shell .wizard-statutory-row,
.wizard-shell .stat-card,
.wizard-shell .addr-card,
.wizard-shell .income-studio,
.wizard-shell .loan-summary,
.wizard-shell .notice-banner {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
}
.btl-purpose-modal__dialog {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border-active);
}
.btl-purpose-modal__header {
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary));
  color: var(--theme-on-deep);
}
.btl-purpose-modal__header h3,
.btl-purpose-modal__eyebrow,
.btl-purpose-modal__close { color: var(--theme-on-deep) !important; }
.btl-purpose-modal__body,
.btl-purpose-modal__footer,
.btl-purpose-section,
.btl-finance-highlight {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
}
.wizard-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
.wizard-form select,
.wizard-form textarea,
.btl-purpose-modal input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
.btl-purpose-modal select,
.btl-purpose-modal textarea {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
}
.card, .preview-card, .dash-stat-card {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
}
.preview-page .preview-summary-band {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
.preview-page .preview-summary-band .preview-card__title,
.preview-page .preview-summary-stat__value { color: #0f172a !important; }
.preview-page .preview-summary-band .preview-card__subtitle,
.preview-page .preview-summary-stat__label { color: #475569 !important; }
.preview-page .preview-summary-stat {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  min-height: 92px;
}
