:root {
  --bg-top: #f8faf7;
  --bg-bottom: #f1f5f2;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: #f7fbf8;
  --text: #24312b;
  --muted: #5a6962;
  --line: rgba(45, 106, 79, 0.12);
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --accent: #d86f2f;
  --shadow-md: 0 14px 35px rgba(20, 48, 37, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 48, 37, 0.1);
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(217, 240, 225, 0.84), transparent 36%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
}

h1,
h2,
h3,
.navbar-brand,
.site-footer h2 {
  font-family: "Fraunces", Georgia, serif;
}

.navbar-custom {
  background: rgba(45, 106, 79, 0.96);
  box-shadow: 0 10px 30px rgba(19, 52, 39, 0.14);
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: #fff;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.navbar-custom .navbar-brand {
  letter-spacing: 0.02em;
}

.navbar-custom .nav-link:hover,
.navbar-custom .navbar-brand:hover {
  color: #ffd700;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, #d9f0e1, #f7f9fc);
  padding: 80px 20px 40px;
  text-align: center;
}

.hero-section h1 {
  color: var(--primary);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
}

.hero-section p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 20px;
}

.hero-home {
  padding: 96px 0 78px;
  text-align: left;
}

.hero-home h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 52ch;
  color: #4b5b54;
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-secondary-btn {
  border-width: 2px;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-secondary-btn:hover {
  background-color: #d9f0e1;
  color: var(--primary-dark);
  border-color: var(--primary);
}

.hero-summary {
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.hero-summary-grid {
  display: grid;
  gap: 1rem;
}

.hero-summary-item {
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(45, 106, 79, 0.08);
}

.hero-summary-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.hero-summary-item span {
  color: var(--muted);
  line-height: 1.6;
}

.section-intro {
  max-width: 760px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.section-copy {
  color: var(--muted);
  line-height: 1.7;
}

.feature-card,
.card {
  border-radius: 22px;
  border: 1px solid rgba(45, 106, 79, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h2 {
  color: var(--primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
}

.calculator-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calculator-card h3,
.benefit-card h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.calculator-card p,
.benefit-card p,
.tip-card span {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.tool-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary);
  font-size: 1.5rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(217, 240, 225, 0.45), rgba(247, 249, 252, 0));
}

.benefit-card,
.tip-card {
  padding: 1.35rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(45, 106, 79, 0.08);
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.06);
}

.benefit-step {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tip-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.btn-primary-custom {
  background-color: #429972 !important;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 24px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.btn-outline-light,
.btn-outline-success {
  border-radius: 12px;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(45, 106, 79, 0.18);
}

.form-control:focus,
.form-select:focus {
  border-color: #429972;
  box-shadow: 0 0 0 0.18rem rgba(66, 153, 114, 0.16);
}

.hero-ownership {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-top: 1.1rem;
}

.calculator-page {
  padding-bottom: 1rem;
}

.page-hero {
  padding: 72px 20px 42px;
}

.page-hero h1 {
  max-width: 14ch;
  margin: 0 auto;
}

.page-hero p {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.main-card {
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(23, 52, 39, 0.07);
}

.debt-row {
  background: #f8fbf9 !important;
}

.dti-result {
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 240, 225, 0.8), rgba(247, 249, 252, 0.95));
}

.result-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4f5d57;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dti-result strong {
  color: var(--primary-dark);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
}

.result-note {
  color: var(--muted);
  line-height: 1.7;
}

.results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-stat {
  padding: 1rem;
  border-radius: 18px;
  background: #f8fbf9;
  border: 1px solid rgba(45, 106, 79, 0.08);
}

.result-stat span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-stat strong {
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.status-good {
  background: rgba(45, 106, 79, 0.12);
  color: var(--primary-dark);
}

.status-watch {
  background: rgba(216, 111, 47, 0.15);
  color: #8a451c;
}

.status-alert {
  background: rgba(183, 38, 55, 0.14);
  color: #8d2030;
}

.site-footer {
  margin-top: auto;
  background:
    radial-gradient(circle at center, rgba(242, 213, 152, 0.18), transparent 55%),
    linear-gradient(180deg, #f7f4ee, #f0eadb);
  border-top: 1px solid rgba(47, 93, 80, 0.12);
  padding: 3.5rem 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo-link {
  flex-shrink: 0;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 28px;
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 18px 40px rgba(31, 65, 56, 0.14);
}

.footer-copy {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.site-footer h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  color: #1f4138;
}

.site-footer p {
  margin: 0;
  color: #5d6a70;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-company {
  color: var(--accent);
  font-weight: 800;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  width: 320px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

@media (max-width: 991.98px) {
  .hero-home {
    padding: 76px 0 62px;
    text-align: center;
  }

  .hero-home h1,
  .hero-lead,
  .page-hero h1 {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .site-footer {
    padding: 2.75rem 0;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    gap: 1.25rem;
  }

  .footer-copy {
    flex: 1;
    justify-items: end;
  }

  .footer-logo {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }

  .site-footer h2 {
    font-size: clamp(1.65rem, 5vw, 2rem);
    line-height: 1.05;
  }

  .site-footer p {
    font-size: 0.96rem;
    line-height: 1.5;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 64px 16px 36px;
  }

  .hero-home {
    padding: 68px 0 50px;
  }

  .page-hero {
    padding: 60px 16px 32px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    align-items: center;
    gap: 0.9rem;
  }

  .footer-logo {
    width: 86px;
    height: 86px;
    padding: 0.55rem;
    border-radius: 20px;
  }

  .site-footer h2 {
    font-size: clamp(1.2rem, 4.4vw, 1.55rem);
    line-height: 1.1;
  }

  .footer-copy {
    gap: 0.3rem;
  }

  .site-footer p {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

/* StatementIQ client-ready application redesign */
.statementiq-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f4f7f6 0%, #eef3f5 45%, #f7f4ef 100%);
  color: #18241f;
  font-family: "Manrope", sans-serif;
}

.statementiq-page h1,
.statementiq-page h2,
.statementiq-page h3 {
  letter-spacing: 0;
}

.statement-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 42, 38, 0.96);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #d7f3e4;
  color: #142a26;
}

.statement-links .nav-link {
  color: rgba(255, 255, 255, 0.78);
}

.statement-links .nav-link:hover {
  color: #ffffff;
}

.statement-signin,
.statement-signup,
.hero-actions .btn,
.toolbar-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.statement-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 44px;
  background: #142a26;
  color: #ffffff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 42, 38, 0.96) 0%, rgba(20, 42, 38, 0.86) 48%, rgba(20, 42, 38, 0.64) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
}

.statement-hero .container-fluid {
  position: relative;
  z-index: 1;
}

.product-kicker,
.section-kicker {
  color: #d96c47;
  font-family: "Manrope", sans-serif;
}

.statement-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  font-weight: 700;
  line-height: 0.92;
}

.hero-copy {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-outline {
  border-color: rgba(255,255,255,0.42) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 13px 22px !important;
}

.hero-outline:hover {
  background: rgba(255,255,255,0.1) !important;
}

.security-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.security-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-shell {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background: rgba(245, 248, 246, 0.96);
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  color: #18241f;
}

.shell-toolbar,
.panel-heading,
.workspace-header,
.review-summary,
.filter-bar,
.rule-card,
.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shell-toolbar {
  padding: 0.5rem 0.55rem 1rem;
}

.shell-toolbar strong,
.panel-heading strong {
  display: block;
  color: #18241f;
  font-weight: 800;
}

.shell-toolbar span,
.panel-heading span,
.review-summary span,
.metric-card span,
.metric-card small,
.rule-card p,
.rule-card span,
.rule-meta small,
.upload-card p,
.upload-card small,
.wizard-step small,
.report-card p {
  color: #66736d;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24,36,31,0.1);
  border-radius: 10px;
  background: #ffffff;
  color: #22352e;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card,
.chart-panel,
.wizard-panel,
.upload-card,
.validation-grid div,
.review-panel,
.transaction-table-panel,
.transaction-editor,
.rules-list,
.rule-lab,
.report-card {
  border: 1px solid rgba(24, 36, 31, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 38, 34, 0.07);
}

.metric-card {
  padding: 1rem;
}

.metric-card strong {
  display: block;
  margin: 0.35rem 0;
  color: #18241f;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.metric-card.income { border-top: 4px solid #246b5a; }
.metric-card.spending { border-top: 4px solid #d96c47; }
.metric-card.cashflow { border-top: 4px solid #5177b8; }
.metric-card.review { border-top: 4px solid #b68b2c; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.chart-panel {
  min-height: 318px;
  padding: 1rem;
}

.workflow-band,
.reports-band {
  padding: 32px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(24,36,31,0.08);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-grid article {
  padding: 1.25rem;
  border-left: 4px solid #246b5a;
  background: #f7faf9;
}

.workflow-grid span {
  color: #d96c47;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workflow-grid h2 {
  margin: 0.55rem 0;
  color: #18241f;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.workflow-grid p {
  margin: 0;
  color: #66736d;
  line-height: 1.65;
}

.app-workspace,
.transactions-section,
.rules-section {
  padding: 54px 0;
}

.workspace-header {
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.workspace-header h2,
.report-card h2 {
  max-width: 820px;
  margin: 0;
  color: #18241f;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.05;
}

.import-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 0.95fr) minmax(460px, 1.2fr);
  gap: 1rem;
  align-items: stretch;
}

.wizard-panel,
.review-panel,
.transaction-editor,
.rule-lab {
  padding: 1rem;
}

.wizard-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(24,36,31,0.08);
}

.wizard-step:last-child {
  border-bottom: 0;
}

.wizard-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef2f0;
  color: #66736d;
  font-weight: 800;
}

.wizard-step.active span {
  background: #d7f3e4;
  color: #246b5a;
}

.wizard-step strong,
.rule-card h3,
.suggestion-card h3,
.editor-empty h3 {
  color: #18241f;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.upload-panel {
  display: grid;
  gap: 1rem;
}

.upload-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 1.25rem;
  border-style: dashed;
  background: #f9fbfa;
}

.upload-card > i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: #d7f3e4;
  color: #246b5a;
  font-size: 1.6rem;
}

.upload-card h3 {
  color: #18241f;
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.validation-grid div {
  padding: 0.9rem;
}

.validation-grid strong,
.validation-grid span,
.review-summary span,
.review-summary strong {
  display: block;
}

.validation-grid strong,
.review-summary strong {
  color: #18241f;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: 8px;
  background: #f7faf9;
}

.review-table-wrap {
  max-height: 320px;
  overflow: auto;
}

.statement-table {
  margin: 0;
}

.statement-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(24,36,31,0.1);
  background: #f4f7f6;
  color: #4b5a54;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statement-table tbody tr {
  cursor: pointer;
}

.statement-table tbody tr:hover,
.statement-table .selected-row {
  background: #f3f8f6;
}

.statement-table small,
.transaction-link + small {
  display: block;
  max-width: 320px;
  color: #66736d;
  font-size: 0.78rem;
  line-height: 1.4;
}

.compact-table {
  font-size: 0.92rem;
}

.amount-negative {
  color: #ad4931 !important;
  font-weight: 800;
}

.amount-positive {
  color: #246b5a !important;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.reviewed,
.status-pill.suggested-rule {
  background: #dff5e8;
  color: #1d5b49;
}

.status-pill.needs-review,
.status-pill.uncategorized-fallback {
  background: #fff0d7;
  color: #865514;
}

.status-pill.possible-duplicate {
  background: #fde0df;
  color: #9b342d;
}

.filter-bar {
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(24,36,31,0.08);
  border-radius: 8px;
  background: #ffffff;
}

.filter-bar label {
  flex: 1 1 210px;
}

.filter-bar span {
  display: block;
  margin-bottom: 0.35rem;
  color: #4b5a54;
  font-size: 0.82rem;
  font-weight: 800;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.transaction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.transaction-table-panel {
  overflow: hidden;
}

.transaction-editor {
  position: sticky;
  top: 96px;
  align-self: start;
}

.transaction-editor form {
  display: grid;
  gap: 0.85rem;
}

.transaction-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #18241f;
  font-weight: 800;
  text-align: left;
}

.editor-empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.editor-empty i {
  color: #9aa6a0;
  font-size: 2.3rem;
}

.editor-empty p {
  max-width: 28ch;
  color: #66736d;
}

.editor-toggles {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: #f7faf9;
  font-weight: 700;
}

.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1rem;
}

.rules-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.rule-card {
  padding: 0.9rem;
  box-shadow: none;
}

.rule-priority {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #142a26;
  color: #ffffff;
  font-weight: 800;
}

.rule-card p {
  margin: 0.2rem 0;
}

.rule-meta {
  min-width: 80px;
  text-align: center;
}

.suggestion-card {
  padding: 1rem;
  border-radius: 8px;
  background: #f7faf9;
}

.suggestion-card span {
  color: #d96c47;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suggestion-card p {
  color: #66736d;
  line-height: 1.6;
}

.preview-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.preview-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(24,36,31,0.08);
}

.reports-band {
  background: #142a26;
}

.report-card {
  padding: 1.3rem;
  background: #ffffff;
}

.roadmap-list {
  display: grid;
  min-width: 300px;
  gap: 0.7rem;
}

.roadmap-list span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #f7faf9;
  color: #18241f;
  font-weight: 800;
}

.statement-footer {
  margin-top: 0;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 0.6rem;
}

.app-toast {
  max-width: 340px;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #142a26;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  font-weight: 700;
}

.empty-table {
  padding: 2rem !important;
  color: #66736d !important;
  text-align: center;
}

/* StatementIQ style for supporting calculator pages */
.calculator-page {
  background:
    linear-gradient(180deg, #f4f7f6 0%, #eef3f5 52%, #f7f4ef 100%);
  color: #18241f;
}

.calculator-page .navbar-custom {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 42, 38, 0.96);
  backdrop-filter: blur(18px);
}

.calculator-page .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.calculator-page .navbar-brand:not(.brand-mark)::before {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #d7f3e4;
  color: #142a26;
  font-family: "bootstrap-icons";
  content: "\f52f";
}

.calculator-page .navbar-custom .nav-link {
  color: rgba(255,255,255,0.78);
}

.calculator-page .navbar-custom .nav-link:hover,
.calculator-page .navbar-custom .navbar-brand:hover {
  color: #ffffff;
}

.calculator-page .page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px 46px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(90deg, rgba(20, 42, 38, 0.96) 0%, rgba(20, 42, 38, 0.82) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
  text-align: left;
}

.calculator-page .page-hero .container {
  max-width: 1180px;
}

.calculator-page .page-hero h1,
.calculator-page .page-hero h1[style] {
  max-width: 820px;
  margin: 0;
  color: #ffffff !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
}

.calculator-page .page-hero p,
.calculator-page .page-hero .lead {
  max-width: 660px;
  margin-left: 0;
  color: rgba(255,255,255,0.76) !important;
  font-size: 1.08rem;
  line-height: 1.75;
}

.calculator-page .page-hero::after {
  position: absolute;
  right: max(24px, 8vw);
  bottom: -46px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(215,243,228,0.16), rgba(217,108,71,0.12));
  content: "";
}

.calculator-page .tip-card,
.calculator-page .main-card,
.calculator-page .dti-result,
.calculator-page .result-stat,
.calculator-page .card {
  border: 1px solid rgba(24, 36, 31, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(18, 38, 34, 0.07);
}

.calculator-page .tip-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
}

.calculator-page .tip-card::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: #d96c47;
  content: "";
}

.calculator-page .tip-card strong,
.calculator-page .main-card h2,
.calculator-page .dti-result strong,
.calculator-page .result-stat strong {
  color: #18241f;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.calculator-page .tip-card span,
.calculator-page .main-card p,
.calculator-page .result-note,
.calculator-page .result-stat span {
  color: #66736d;
}

.calculator-page .main-card {
  padding: clamp(1.2rem, 2vw, 1.6rem) !important;
}

.calculator-page .main-card h2 {
  margin-bottom: 1rem;
}

.calculator-page .btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  background: #246b5a !important;
  box-shadow: 0 10px 24px rgba(36, 107, 90, 0.2);
}

.calculator-page .btn-primary-custom:hover {
  background: #142a26 !important;
}

.calculator-page .form-control,
.calculator-page .form-select {
  border-radius: 8px;
  border-color: rgba(24,36,31,0.14);
  background-color: #fbfdfc;
}

.calculator-page .form-label {
  color: #4b5a54;
  font-size: 0.84rem;
  font-weight: 800;
}

.calculator-page .debt-row {
  border-radius: 8px;
  background: #f7faf9 !important;
}

.calculator-page .dti-result {
  background:
    linear-gradient(135deg, rgba(215, 243, 228, 0.78), rgba(255, 255, 255, 0.96));
}

.calculator-page .result-label {
  color: #246b5a;
}

.calculator-page .site-footer {
  margin-top: auto;
  background: #142a26;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.calculator-page .site-footer h2 {
  color: #ffffff;
}

.calculator-page .site-footer p {
  color: rgba(255,255,255,0.7);
}

.calculator-page .footer-logo {
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.calculator-page .modal-content {
  border: 1px solid rgba(24,36,31,0.1);
  border-radius: 8px;
}

@media (max-width: 1199.98px) {
  .metric-grid,
  .review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-layout,
  .transaction-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .transaction-editor {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .statement-hero h1 {
    max-width: 13ch;
  }

  .dashboard-grid,
  .workflow-grid,
  .report-card {
    grid-template-columns: 1fr;
  }

  .product-shell {
    margin-top: 1rem;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .statement-hero {
    padding: 48px 0 34px;
  }

  .statement-hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-actions .btn,
  .toolbar-actions .btn,
  .workspace-header .btn {
    width: 100%;
  }

  .metric-grid,
  .validation-grid,
  .review-summary {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    min-height: 260px;
  }

  .app-workspace,
  .transactions-section,
  .rules-section {
    padding: 38px 0;
  }

  .filter-bar {
    display: grid;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .app-toast {
    max-width: none;
  }

  .calculator-page .page-hero {
    text-align: left;
  }

  .calculator-page .page-hero::after {
    display: none;
  }
}
