:root {
  --theme-primary: #4338ca;
  --theme-primary-deep: #1e1b4b;
  --theme-accent: #0f766e;
  --theme-background: #f8fafc;
  --theme-surface: #ffffff;
  --theme-border: #e2e8f0;
  --theme-text-secondary: #64748b;
  --theme-primary-hover: #3730a3;
  --theme-primary-soft: #ede9fe;
  --theme-text-primary: #1e293b;
  --theme-accent-soft: #ccfbf1;
  --theme-border-active: #6366f1;
  --theme-on-primary: #f8fafc;
  --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;
  --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: #4338ca;
  --indigo-deep: #1e1b4b;
  --indigo-soft: #ede9fe;
  --indigo-mid: #e2e8f0;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --card: #ffffff;
  --navy: #1e1b4b;
  --teal: #0f766e;
  --danger: var(--status-error);
  --ok: var(--status-success);
  --shadow: 0 16px 40px rgba(49, 46, 129, 0.12);
  --btn-bg: var(--theme-primary);
  --btn-ink: var(--theme-on-primary);
  --btn-bg-hover: var(--theme-primary-hover);
  --btn-ink-hover: var(--theme-on-primary);
  --chrome-bg: var(--theme-primary-deep);
  --chrome-ink: var(--theme-on-primary);
  --header-bar: var(--theme-surface);
  --header-ink: var(--theme-primary-deep);
  --header-accent: var(--theme-accent);
  --header-ghost-bg: var(--theme-surface);
  --header-ghost-border: var(--theme-border);
  --sidebar-bg: var(--theme-surface);
  --sidebar-ink: var(--theme-primary-deep);
  --sidebar-muted: var(--theme-text-secondary);
  --sidebar-hover: var(--theme-primary-soft);
  --sidebar-card: var(--theme-surface);
  --summary-bg: var(--theme-primary-soft);
  --summary-ink: var(--theme-text-primary);
  --summary-muted: var(--theme-text-secondary);
  --summary-cell-bg: var(--theme-surface);
  --summary-cell-border: var(--theme-border);
  --summary-cell-ink: var(--theme-text-primary);
  --summary-cell-muted: var(--theme-text-secondary);
  --summary-total-bg: var(--theme-primary);
  --summary-total-ink: var(--theme-on-primary);
  --summary-btn-bg: var(--theme-primary);
  --summary-btn-ink: var(--theme-on-primary);
  --summary-btn-hover: var(--theme-primary-hover);
  --summary-btn-ink-hover: var(--theme-on-primary);
  --item-bg: var(--theme-surface);
  --item-ink: var(--theme-text-primary);
  --item-muted: var(--theme-text-secondary);
  --item-border: var(--theme-border);
  --badge-bg: var(--theme-primary);
  --badge-ink: var(--theme-on-primary);
  --pick-on-bg: var(--theme-primary);
  --pick-on-ink: var(--theme-on-primary);
  --serif: Georgia, "Iowan Old Style", Palatino, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--theme-font, var(--sans));
  color: var(--theme-text-primary, var(--ink));
  line-height: 1.65;
  background: var(--theme-background, var(--paper));
}
body.has-watermark {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.has-watermark #main {
  flex: 1 0 auto;
  width: 100%;
}
body.has-watermark::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/img/projectrs.png") center 42% / min(560px, 78vw) no-repeat;
  opacity: 0.045;
  animation: watermarkDrift 22s ease-in-out infinite;
}
body.has-watermark .site-header,
body.has-watermark .context-nav,
body.has-watermark #main,
body.has-watermark .site-footer,
body.has-watermark .app-shell { position: relative; z-index: 1; }
body.dashboard-body.has-watermark::before { opacity: 0.035; background-position: center 30%; }
a { color: var(--indigo); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 40; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
  animation: headerEnter .65s cubic-bezier(.22, 1, .36, 1) both;
}
body.site-nav-open {
  overflow: hidden;
}
body.site-nav-open .site-header {
  z-index: 10060;
}
.site-header__bar {
  position: relative;
  background: var(--header-bar);
  color: var(--header-ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--theme-primary) 10%, transparent);
  transition: box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.site-header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.site-header__bar > .wrap,
.site-header__bar > .header-glow {
  position: relative;
  z-index: 1;
}
.site-header.is-scrolled .site-header__bar {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--theme-primary-deep) 14%, transparent);
  border-bottom-color: color-mix(in srgb, var(--theme-border-active) 90%, transparent);
}
.header-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--theme-border-active), var(--theme-primary-soft), var(--theme-border-active), transparent);
  background-size: 200% 100%;
  animation: headerGlow 5s linear infinite;
  opacity: 0.85;
}
.header-ribbon {
  overflow: hidden;
  background: var(--chrome-bg);
  background-size: 200% 100%;
  animation: ribbonShift 12s ease infinite;
  color: var(--chrome-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-ribbon__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 7px 0;
  animation: marquee 28s linear infinite;
}
.header-ribbon__track span:not([aria-hidden]) {
  white-space: nowrap;
}
.header-ribbon span[aria-hidden="true"] { opacity: 0.45; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; transition: transform .35s ease, filter .35s ease; }
.brand:hover { transform: translateY(-1px); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--theme-primary) 22%, transparent)); }
.brand small { display: block; font-weight: 700; color: var(--indigo); letter-spacing: 0.08em; font-size: 11px; text-transform: uppercase; }
.brand--logo { padding: 4px 0; }
.brand__logo { height: 60px; width: auto; max-width: min(280px, 58vw); object-fit: contain; display: block; transition: transform .4s ease, height .35s ease; }
.site-header.is-scrolled .brand__logo { height: 53px; }
.brand__logo--sidebar { height: 40px; max-width: 100%; }
.app-sidebar__brand--logo { padding: 8px 4px 16px; }
.policy-merchant { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--theme-primary-soft); }
.policy-merchant ul { margin: 8px 0 0; padding-left: 1.2rem; line-height: 1.55; }
.policy-note { background: var(--theme-background); border-left: 4px solid var(--theme-primary); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.checkout-legal { font-size: 14px; line-height: 1.55; color: #334155; margin: 12px 0; }
.checkout-page { overflow: visible; max-width: 100%; }
.checkout-page .card.checkout-consent {
  margin: 18px 0;
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}
.checkout-page .card.checkout-consent:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.checkout-consent__body {
  padding: 18px 18px 14px;
}
.checkout-consent__accept {
  padding: 16px 18px 18px;
  background: var(--theme-background);
  border-top: 1px solid var(--theme-primary-soft);
}
.checkout-consent__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--header-ink);
}
.checkout-undertaking__scroll {
  max-height: min(220px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  -webkit-overflow-scrolling: touch;
}
.checkout-undertaking__lead { margin: 0 0 10px; font-weight: 600; color: var(--theme-primary); }
.checkout-undertaking__list { margin: 10px 0; padding-left: 1.2rem; }
.checkout-undertaking__declare { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--theme-primary-soft); }
.checkout-page label.checkout-consent__label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: #334155;
  cursor: pointer;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.checkout-consent__text { flex: 1; min-width: 0; }
.checkout-consent__label input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; }
.checkout-consent__label a { word-break: break-word; color: var(--theme-primary); }
.payment-invoice-iframe {
  display: block;
  width: 100%;
  height: min(1120px, 92vh);
  min-height: min(1120px, 92vh);
  margin: 0 0 20px;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--theme-primary-deep) 8%, transparent);
}
.payment-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.payment-success-downloads__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.checkout-summary ul { margin: 0; padding-left: 1.2rem; line-height: 1.55; }
.nav-links {
  display: flex;
  gap: 8px 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links__primary { display: flex; gap: 4px 14px; align-items: center; flex-wrap: wrap; }
.nav-links__actions { display: flex; gap: 10px; align-items: center; margin-left: 8px; }
.nav-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 4px;
  border-radius: 8px;
  transition: color .25s ease;
}
.nav-link__text { position: relative; z-index: 1; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--theme-border-active), var(--theme-border-active));
  transform: translateX(-50%);
  transition: width .28s cubic-bezier(.22, 1, .36, 1);
}
.nav-link:hover { color: var(--indigo); }
.nav-link:hover::after,
.nav-link.is-active::after { width: calc(100% - 8px); }
.nav-link.is-active { color: var(--indigo-deep); }
.site-header .nav-link { color: var(--header-ink); }
.site-header .nav-link:hover,
.site-header .nav-link.is-active { color: var(--header-accent); }
.site-header .nav-link::after { background: var(--header-accent); }
.site-header .brand { color: var(--header-ink); }
.site-header .brand small { color: var(--header-accent); }
.site-header .btn-ghost {
  background: var(--header-ghost-bg);
  color: var(--header-ink);
  border-color: var(--header-ghost-border);
}
.nav-link--signin { font-weight: 700; }
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnSheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--indigo-mid);
  background: rgba(255, 255, 255, 0.9);
  color: var(--indigo);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nav-toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 15%, transparent); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-border-active));
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.nav-toggle__bars span:nth-child(2) { width: 85%; margin-left: auto; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.context-nav {
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary-soft) 95%, transparent), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid var(--line);
  animation: rise .45s ease both;
}
.context-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
  min-height: 44px;
}
.context-nav__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-deep);
  flex-shrink: 0;
}
.context-nav__links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.context-nav__link {
  font-size: 13px;
  font-weight: 650;
  color: var(--theme-primary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.context-nav__link:hover,
.context-nav__link.is-active { color: var(--indigo); border-bottom-color: var(--theme-border-active); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-gold, .site-header .btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--theme-primary-deep) 22%, transparent);
}
.btn-primary:hover, .btn-gold:hover { background: var(--btn-bg-hover); color: var(--btn-ink-hover); }
.btn-ghost, .nav-toggle {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.hero-panel .btn-ghost { background: #fff; color: var(--indigo); }

.hero-panel {
  position: relative;
  overflow: hidden;
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 28px 8px 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, var(--theme-primary-soft) 55%, var(--theme-primary-soft) 100%);
  background-size: 180% 180%;
  animation: shift 18s ease infinite;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: var(--shadow);
}
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; padding: 18px 18px 8px; }
.hero-actions--auth { align-items: center; }
.hero-actions__form { margin: 0; display: inline-flex; }
.hero-auth-note { margin: 14px 0 0; font-size: 14px; max-width: 42ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-shrink: 0; }
.hero-panel .wrap { position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 8s ease-in-out infinite; }
.orb-a { width: 160px; height: 160px; background: var(--theme-primary-soft); top: -50px; right: 6%; opacity: .8; }
.orb-b { width: 110px; height: 110px; background: var(--theme-primary-soft); bottom: -36px; left: 4%; animation-delay: -2s; opacity: .9; }
.orb-c { width: 70px; height: 70px; background: var(--theme-border-active); top: 28%; right: 40%; animation-delay: -4s; opacity: .55; }
.kicker, .hero-panel .kicker, .page-hero .kicker { color: var(--theme-primary); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--header-ink); }
.hero-panel h1, .hero-panel p, .page-hero h1, .page-hero p, .page-hero .lede { color: var(--header-ink); }
h1 { font-size: clamp(26px, 3.2vw, 40px); margin: 6px 0 10px; }
h2 { font-size: clamp(20px, 2.4vw, 28px); }
h3 { font-size: 1.05rem; }
.lede, .hero-panel .lede { font-size: 15px; color: var(--header-ink); max-width: 42rem; line-height: 1.55; }
body { font-size: 15px; }
.price-pill, .hero-panel .price-pill {
  display: inline-block;
  margin: 16px 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  color: var(--theme-primary);
  font-weight: 800;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 20px;
  margin-top: 8px;
}
.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.home-hero__orb--a { width: 130px; height: 130px; background: var(--theme-primary-soft); top: 0; right: 12%; opacity: 0.7; }
.home-hero__orb--b { width: 90px; height: 90px; background: var(--theme-primary-soft); bottom: 8%; left: 8%; animation-delay: -3s; }
.home-reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-reveal.is-visible { transform: none; }
.dpr-carousel {
  border-radius: 22px;
  border: 1px solid var(--theme-primary-soft);
  background: linear-gradient(145deg, #fff 0%, var(--theme-primary-soft) 100%);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  padding: 20px 18px 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.dpr-carousel__viewport { position: relative; flex: 1; min-height: 180px; }
.dpr-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.dpr-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dpr-slide__step {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 8px;
}
.dpr-slide h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--header-ink); }
.dpr-slide p { margin: 0; font-size: 14px; color: var(--header-ink); line-height: 1.5; }
.dpr-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.dpr-carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  color: var(--theme-primary);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dpr-carousel__arrow:hover { transform: scale(1.05); box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-primary) 15%, transparent); }
.dpr-carousel__dots { display: flex; gap: 6px; }
.dpr-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--theme-primary-soft);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.dpr-carousel__dot.is-active { background: var(--theme-border-active); transform: scale(1.2); }
.btn-create-dpr { font-weight: 800; }
.create-dpr-modal[hidden] { display: none !important; }
.create-dpr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-dpr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--theme-primary-deep) 55%, transparent);
  backdrop-filter: blur(4px);
}
.create-dpr-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 28px 64px color-mix(in srgb, var(--theme-primary-deep) 35%, transparent);
  animation: rise 0.35s ease both;
}
.create-dpr-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--theme-primary);
  cursor: pointer;
}
.create-dpr-modal__lede { font-size: 14px; margin: 0 0 16px; color: var(--muted); }
.create-dpr-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.create-dpr-modal__foot { margin: 14px 0 0; font-size: 13px; }
body.modal-open { overflow: hidden; }
.cta-band--home h2 { font-size: 1.25rem; }
.dash-flash {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.dash-flash--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}
.auth-shell {
  min-height: 100vh;
  background: var(--paper);
}
.auth-shell--user {
  background:
    radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--theme-primary-soft) 45%, transparent), transparent 55%),
    radial-gradient(700px 360px at 100% 100%, color-mix(in srgb, var(--theme-primary-soft) 35%, transparent), transparent 50%),
    var(--paper);
}
.auth-shell--admin {
  background: linear-gradient(145deg, #0f172a 0%, var(--theme-primary-deep) 42%, var(--theme-primary-deep) 100%);
}
.auth-shell__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}
.auth-shell__grid--admin {
  max-width: 980px;
  grid-template-columns: 1fr minmax(300px, 420px);
}
.auth-shell__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  gap: 12px;
}
.auth-shell__brand--admin {
  color: var(--theme-text-secondary);
  padding-right: 24px;
}
.auth-shell__logo img { display: block; max-width: 100%; height: auto; }
.auth-shell__kicker {
  margin: 20px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.auth-shell__brand--admin .auth-shell__kicker { color: var(--theme-primary); margin-top: 0; }
.auth-shell__headline {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--header-ink);
}
.auth-shell__brand--admin .auth-shell__headline { color: #fff; }
.auth-shell__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--header-ink);
  max-width: 28rem;
}
.auth-shell__brand--admin .auth-shell__lede { color: var(--theme-text-secondary); }
.auth-shell__bullets {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--theme-primary);
}
.auth-shell__bullets li {
  padding-left: 1.25rem;
  position: relative;
}
.auth-shell__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-border-active));
}
.auth-shell__back {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-primary);
  text-decoration: none;
}
.auth-shell__back:hover { text-decoration: underline; }
.auth-shell__back--light { color: var(--theme-primary); }
.auth-shell__admin-badge {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--theme-text-secondary);
}
.auth-shell__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}
.auth-shell__note a { color: var(--theme-text-secondary); }
.auth-shell__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
}
.auth-shell__main--admin { padding-left: 0; }
.auth-shell__panel {
  width: 100%;
  max-width: 440px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-primary) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.auth-shell__panel--admin {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.auth-form__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.auth-form--admin .auth-form__kicker { color: var(--theme-primary); }
.auth-form__title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--header-ink);
}
.auth-form--admin .auth-form__title { color: #f8fafc; }
.auth-form__sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-form--admin .auth-form__sub { color: #94a3b8; }
.auth-form__flash { margin: 0 0 14px; }
.auth-form__card {
  margin-bottom: 16px;
  border-radius: 16px;
}
.auth-form__card--admin {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(71, 85, 105, 0.65);
  color: #e2e8f0;
}
.auth-form__card--admin label { color: #cbd5e1; }
.auth-form__card--admin input {
  background: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}
.auth-form__submit { width: 100%; margin-top: 4px; }
.auth-form__submit--admin {
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  border: none;
}
.auth-form__links {
  margin: 0;
  font-size: 13px;
  text-align: center;
}
.auth-form__links--admin a { color: var(--theme-primary); }
.auth-form__card-title { margin: 0 0 8px; font-size: 1rem; }
.footer-admin-entry {
  margin: 10px 0 0;
  text-align: center;
  width: 100%;
}
.footer-admin-link {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.85;
}
.footer-admin-link:hover {
  color: var(--theme-primary);
  text-decoration: underline;
}
@media (max-width: 860px) {
  .auth-shell__grid,
  .auth-shell__grid--admin {
    grid-template-columns: 1fr;
  }
  .auth-shell__brand {
    padding-bottom: 8px;
    text-align: center;
    align-items: center;
  }
  .auth-shell__bullets { justify-items: start; text-align: left; }
  .auth-shell__main--admin { padding-left: clamp(16px, 3vw, 32px); }
}
.auth-page--admin { border-top: 3px solid var(--theme-border-active); }
@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .dpr-carousel { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .dpr-slide { transition: opacity 0.2s ease; transform: none; }
  .home-hero__orb { animation: none; }
}
.report-card {
  background: #fff;
  color: var(--header-ink);
  border: 1px solid var(--theme-primary-soft);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.report-card header { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--theme-primary); }
.report-card table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.report-card td { padding: 8px 0; border-bottom: 1px solid var(--theme-primary-soft); }
.report-card td:last-child { text-align: right; font-weight: 700; }
.bars { display: grid; gap: 8px; margin-top: 16px; }
.bars span { display: block; height: 10px; border-radius: 999px; transform-origin: left; animation: grow 1.3s ease both; }
.bars span:nth-child(1) { width: 88%; background: var(--theme-primary); }
.bars span:nth-child(2) { width: 66%; background: var(--theme-border-active); animation-delay: .15s; }
.bars span:nth-child(3) { width: 46%; background: var(--theme-primary-soft); animation-delay: .3s; }

.band { padding: 10px 0 20px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat {
  background: linear-gradient(180deg, #ffffff, var(--theme-primary-soft));
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--theme-primary-soft);
  border-top: 4px solid var(--theme-border-active);
}
.stat:nth-child(2) { border-top-color: var(--theme-border-active); }
.stat:nth-child(3) { border-top-color: var(--theme-border-active); }
.stat strong { display: block; font-size: 22px; color: var(--header-ink); }
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e4e1ff;
  border-radius: 24px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 7%, transparent);
}
.section h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 8px; }
.section--compact { padding: 24px 22px; }
.section--compact h2 { margin-bottom: 12px; }
.home-feature-grid .card h3 { font-size: 0.95rem; margin: 0; }
.stat-row--compact .stat strong { font-size: 18px; }
.nav-create-dpr { margin: 0; display: inline-flex; }
.grid { display: grid; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.actions form { margin: 0; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .tone-teal, .tone-blue, .tone-gold, .tone-coral, .tone-violet {
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px color-mix(in srgb, var(--theme-primary) 16%, transparent); }
.card h3 { margin-top: 0; }
.icon-dot, .steps article::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
}
.icon-dot { width: 42px; height: 42px; border-radius: 14px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.steps { counter-reset: step; }
.steps article { counter-increment: step; }
.steps article::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.chip:nth-child(3n+2) { background: var(--theme-primary-soft); }
.chip:nth-child(3n) { background: var(--theme-primary-soft); color: var(--theme-primary); }
.cta-band {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(120deg, var(--theme-primary-soft), var(--theme-primary-soft));
  border: 1px solid var(--theme-primary-soft);
  color: var(--header-ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-band h2, .cta-band p { color: var(--header-ink); margin: 0 0 8px; }
.site-footer {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--theme-text-secondary);
  margin-top: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(520px 180px at 12% 0%, color-mix(in srgb, var(--theme-border-active) 28%, transparent), transparent 62%),
    radial-gradient(420px 160px at 88% 100%, color-mix(in srgb, var(--theme-border-active) 20%, transparent), transparent 58%),
    linear-gradient(168deg, var(--theme-primary-deep) 0%, var(--theme-primary-deep) 52%, var(--theme-primary-hover) 100%);
  border-top: 1px solid color-mix(in srgb, var(--theme-border-active) 28%, transparent);
}
.site-footer--compact {
  padding: 14px 0 10px;
}
.site-footer a { color: var(--theme-text-secondary); text-decoration: none; transition: color .22s ease; }
.site-footer a:hover { color: #fff; }
.footer-aurora { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
  animation: footerFloat 14s ease-in-out infinite;
}
.footer-orb--a { width: 140px; height: 140px; background: var(--theme-border-active); top: -40px; left: -20px; }
.footer-orb--b { width: 120px; height: 120px; background: var(--theme-border-active); bottom: -20px; right: 4%; animation-delay: -4s; }
.footer-shell { position: relative; z-index: 1; }
.footer-compact-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border-active) 20%, transparent);
}
.footer-brand__logo { display: inline-block; transition: transform .25s ease; }
.footer-brand__logo:hover { transform: translateY(-1px); }
.footer-brand__logo img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(1.06);
  display: block;
}
.footer-tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--theme-text-secondary) 88%, transparent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  max-width: 420px;
}
.footer-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.footer-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 28%, transparent);
  color: var(--theme-text-secondary);
}
.footer-pricing-link {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: color-mix(in srgb, var(--theme-text-secondary) 95%, transparent);
}
.footer-cta--sm {
  padding: 7px 12px !important;
  font-size: 12px !important;
  min-height: 0;
  white-space: nowrap;
}
.footer-compact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 8px 0 6px;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-heading {
  margin: 0 0 4px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list--dense {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 2px;
}
.footer-list a {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--theme-text-secondary) 92%, transparent);
  line-height: 1.25;
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-list a::before { display: none; }
.footer-bottom--compact {
  margin-top: 0;
  padding: 8px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--theme-border-active) 16%, transparent);
  background: none;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  font-size: 10px;
  color: color-mix(in srgb, var(--theme-text-secondary) 72%, transparent);
}
.footer-copy { margin: 0; }
.footer-note { margin: 0; text-align: right; line-height: 1.35; }
.footer-note strong { color: #fff; font-weight: 700; }
.footer-reveal {
  opacity: 1;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.footer-reveal.is-visible { transform: none; }
@media (min-width: 901px) {
  .site-footer--compact .footer-tagline { -webkit-line-clamp: 1; }
  .footer-list--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1px; }
}
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 700; color: var(--header-ink); }
input, select, textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  color: var(--header-ink);
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--theme-border-active); box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-border-active) 15%, transparent); }
textarea { min-height: 120px; }
:focus-visible { outline: 3px solid var(--theme-border-active); outline-offset: 2px; }
.page-hero {
  background: linear-gradient(180deg, #ffffff, var(--theme-primary-soft));
  padding: 46px 0 22px;
  border-bottom: 1px solid var(--theme-primary-soft);
  animation: rise .6s ease both;
}
.policy h2 { font-size: 26px; margin-top: 28px; }
.policy p, .policy li { color: var(--header-ink); }
.policy-note { background: var(--theme-primary-soft); border-left: 4px solid var(--theme-border-active); padding: 12px 14px; border-radius: 12px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: start; }
.error { background: #ffe4e6; color: var(--danger); padding: 10px 12px; border-radius: 12px; }
.ok { background: #ecfdf5; color: var(--ok); padding: 10px 12px; border-radius: 12px; }
.draft-banner { background: var(--theme-primary-soft); border: 1px solid var(--theme-primary-soft); padding: 12px; border-radius: 12px; }
table.data, main table { width: 100%; border-collapse: collapse; background: #fff; }
main th, main td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px; font-size: 14px; }
.select-shell { position: relative; display: block; width: 100%; }
.select-shell::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.select-shell--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--theme-primary-soft) 95%, transparent), rgba(255, 255, 255, 0.85));
  z-index: 0;
}
.select-shell select { position: relative; z-index: 1; background: transparent; }
.wizard-form select,
.select-wizard {
  appearance: auto;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 44px 13px 16px;
  border-radius: 16px;
  border: 2px solid var(--theme-primary-soft);
  background-color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wizard-form select:hover,
.select-wizard:hover {
  border-color: var(--theme-border-active);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary) 14%, transparent);
}
.wizard-form select:focus,
.select-wizard:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-border-active) 20%, transparent), 0 10px 28px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.select-wizard--hero {
  font-size: 15px;
  line-height: 1.4;
  padding: 14px 16px;
  border-width: 2px;
  border-color: var(--theme-border-active);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--theme-background) 100%);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.report-type-field,
.report-format-field { margin-bottom: 18px; }
.report-tier-panel--setup { margin-top: 8px; }
.re-cost-statement {
  margin: 14px 0 16px;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.re-cost-statement__head,
.re-cost-statement__row {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(150px, 220px);
  gap: 10px 12px;
  align-items: start;
  padding: 12px 14px;
}
.re-cost-statement__head {
  background: linear-gradient(180deg, var(--theme-primary), var(--theme-primary-hover));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-items: center;
}
.re-cost-statement__row:nth-child(even) { background: var(--theme-background); }
.re-cost-statement__row + .re-cost-statement__row { border-top: 1px solid var(--theme-primary-soft); }
.re-cost-statement__col--finance { display: flex; justify-content: flex-start; align-items: flex-start; padding-top: 2px; }
.re-cost-ticks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.re-cost-statement__row.is-excluded { background: #f8fafc; }
.re-cost-statement__row.is-excluded .re-cost-statement__name { color: #64748b; }
.re-cost-statement__finance-label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; margin: 0; font-size: 12px; font-weight: 700; color: var(--header-ink); }
.re-cost-statement__head .re-cost-statement__col--finance { color: #fff; }
.re-cost-statement__treat { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; color: #0f766e; font-weight: 600; }
.re-cost-statement__finance-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-primary);
  cursor: pointer;
}
.re-cost-statement__name {
  display: block;
  font-size: 13px;
  color: var(--header-ink);
  line-height: 1.35;
  margin: 0 0 2px;
}
.re-cost-statement__hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.35;
}
.re-cost-statement__amount-input,
.re-cost-construction-display {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 8px;
  font-size: 13px;
}
.re-cost-construction-display {
  background: var(--theme-primary-soft);
  color: var(--header-ink);
  font-weight: 600;
}
.re-cost-statement__override { display: block; margin-top: 8px; }
.re-cost-statement__override-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-primary);
  margin-bottom: 4px;
}
.re-cost-statement__override input {
  width: 100%;
  padding: 7px 10px;
  border: 1px dashed var(--theme-border-active);
  border-radius: 8px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .re-cost-statement__head { display: none; }
  .re-cost-statement__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "finance"
      "label"
      "amount";
  }
  .re-cost-statement__col--finance { grid-area: finance; justify-content: flex-start; }
  .re-cost-statement__col--label { grid-area: label; }
  .re-cost-statement__col--amount { grid-area: amount; grid-column: auto; padding-left: 0; }
}
.loan-assess-inline { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0 10px; color: var(--theme-primary); }
.loan-assess-summary { background: var(--theme-primary-soft); border: 1px solid var(--theme-primary-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0 14px; font-weight: 600; color: var(--header-ink); }

.wizard-statutory-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.wizard-statutory-row { padding: 12px 14px; border: 1px solid var(--theme-primary-soft); border-radius: 12px; background: var(--theme-background); }
.wizard-statutory-row__toggle { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--header-ink); margin-bottom: 0; cursor: pointer; }
.wizard-statutory-row__toggle input { margin-top: 3px; accent-color: var(--theme-primary); }
.wizard-statutory-row__fields { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--theme-primary-soft); }

.report-tier-badge--finish {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary-soft), #f8fafc);
  border: 1px solid var(--theme-primary-soft);
  margin: 0 0 16px;
}
.report-tier-badge--finish .report-tier-badge__label { font-weight: 700; color: var(--header-ink); }
.report-tier-badge--setup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
  margin: 0;
}
.wizard-step--eligibility .field-hint { max-width: 52rem; }
.wizard-eligibility-hero {
  position: relative;
  margin: 20px 0;
  color: var(--theme-text-primary);
  background: transparent;
  box-shadow: none;
}
.elig-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.elig-facility {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.elig-facility__head,
.wizard-shell .wizard-step .elig-facility__head h3,
.elig-facility__eyebrow {
  color: var(--theme-on-deep, #f8fafc) !important;
}
.elig-facility__head {
  margin: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary) 58%, var(--theme-border-active));
}
.elig-facility__head--wc {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 46%, #38bdf8);
}
.elig-facility__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.elig-facility__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.elig-facility__rows {
  margin: 0;
  padding: 6px 0;
}
.elig-facility__rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 18px;
  border-top: 1px solid var(--theme-border, #eef2f7);
}
.elig-facility__rows dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-secondary, #64748b);
}
.elig-facility__rows dd {
  margin: 0;
  text-align: right;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--header-ink, #0f172a);
}
.elig-facility__key {
  background: var(--theme-primary-soft, #eef2ff);
}
.elig-facility__key dd {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--theme-primary, #312e81);
}
.elig-aggregate {
  margin-top: 18px;
}
.elig-aggregate__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--header-ink, #0f172a);
}
.wizard-eligibility-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.elig-stat {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
}
.elig-stat__label {
  display: block;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--theme-on-deep, #f8fafc) !important;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary));
}
.elig-stat--total .elig-stat__label { background: linear-gradient(135deg, #92400e, #d97706); }
.elig-stat--promoter .elig-stat__label { background: linear-gradient(135deg, #065f46, #059669); }
.elig-stat__value {
  display: block;
  padding: 14px 12px 16px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--header-ink, #0f172a);
  line-height: 1.2;
  background: #fff;
}
.wizard-eligibility-note { color: var(--theme-text-secondary) !important; margin-top: 12px; }
.eligible-meta--panel {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.eligible-meta--panel h3 { margin: 0 0 14px; color: var(--header-ink); font-size: 1.05rem; }
.wizard-form select optgroup {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
}
.wizard-form select option {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--header-ink);
  padding: 8px;
}
.income-template-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--header-ink);
  background: linear-gradient(135deg, var(--theme-primary-soft), var(--theme-primary-soft));
  border: 1px solid var(--theme-border-active);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.income-panel h3 { margin-top: 0; }
.template-picker-field { margin-bottom: 8px; }
.template-picker { display: flex; flex-direction: column; gap: 20px; margin: 12px 0 16px; }
.template-picker__group-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--theme-primary);
  padding-left: 4px;
}
.template-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.template-picker__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--theme-primary-soft);
  background: linear-gradient(145deg, #ffffff 0%, var(--theme-primary-soft) 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.template-picker__card:hover {
  border-color: var(--theme-border-active);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  transform: translateY(-2px);
}
.template-picker__card:focus-visible {
  outline: 3px solid var(--theme-border-active);
  outline-offset: 2px;
}
.template-picker__card.is-selected {
  border-color: var(--theme-primary);
  background: linear-gradient(145deg, var(--theme-primary-soft) 0%, var(--theme-primary-soft) 100%);
  box-shadow: 0 0 0 1px var(--theme-primary), 0 12px 32px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}
.template-picker__card.is-selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}
.template-picker__card { position: relative; }
.template-picker__card-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--header-ink);
  padding-right: 28px;
}
.template-picker__card-desc {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: var(--header-ink);
}
.template-criteria-list {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}
.template-criteria-list li { margin-bottom: 6px; }
.template-picker__guidelines { margin-top: 10px; }
.wizard-setup-financing { margin-top: 14px; border-top: 1px solid var(--border-subtle, #e2e8f0); padding-top: 12px; }
.wizard-setup-financing__details { margin-top: 10px; }
.wizard-setup-financing__toggles { margin-top: 12px; }
.wizard-bank-extra { margin-top: 12px; border-left: 4px solid var(--accent, var(--theme-border-active)); }

.template-picker__summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--header-ink);
  background: color-mix(in srgb, var(--theme-primary-soft) 95%, transparent);
  border: 1px solid var(--theme-primary-soft);
}
.wizard-shell { max-width: min(1180px, 96vw); width: 100%; margin-left: auto; margin-right: auto; position: relative; }
.wizard-shell::before {
  content: ""; position: absolute; inset: -40px -20px auto; height: 220px; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--theme-border-active) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.wizard-hero { margin-bottom: 8px; }
.wizard-main { display: block; width: 100%; }
.wizard-step {
  display: none; padding: 28px 28px 24px; border: 1px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  background: linear-gradient(165deg, rgba(255,255,255,0.96) 0%, color-mix(in srgb, var(--theme-primary-soft) 88%, transparent) 100%);
  backdrop-filter: blur(12px); box-shadow: 0 24px 48px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.wizard-step.active { display: block; animation: wizardIn .45s cubic-bezier(.22,1,.36,1) both; }
.wizard-progress { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0 8px; position: relative; }
.wizard-progress::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--theme-primary-soft), var(--theme-primary-soft), var(--theme-primary-soft)); transform: translateY(-50%);
}
.wizard-progress-dot {
  position: relative; z-index: 1; flex: 1; text-align: center; padding: 10px 0; border-radius: 999px;
  background: #fff; color: var(--theme-primary); font-weight: 700; font-size: 13px; border: 1px solid var(--theme-primary-soft);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.wizard-progress-dot.done { background: var(--status-success-bg); color: var(--status-success); border-color: transparent; }
.wizard-progress-dot.active {
  background: var(--theme-primary); color: var(--theme-on-primary); border-color: transparent;
}
.wizard-progress-dot.active { transform: scale(1.04); }
.wizard-progress-labels { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 20px; font-size: 12px; color: var(--muted); }
.wizard-progress-labels li { transition: color .2s ease; }
.wizard-progress-labels li.active { color: var(--theme-primary); font-weight: 700; }
.wizard-step-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.wizard-step-pill {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--theme-primary-soft); background: rgba(255,255,255,0.85); cursor: pointer; text-align: left;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.wizard-step-pill strong { color: var(--theme-primary-deep); font-size: 14px; }
.wizard-step-pill span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.wizard-step-pill__status {
  display: none;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #059669;
  margin-top: 2px;
}
.wizard-step-pill.is-complete {
  border-color: var(--status-success);
  background: var(--status-success-bg);
  box-shadow: none;
}
.wizard-step-pill.is-complete strong { color: var(--status-success); }
.wizard-step-pill.is-complete span:not(.wizard-step-pill__num) { color: #64748b; }
.wizard-step-pill.is-complete .wizard-step-pill__num {
  background: #bbf7d0;
  color: var(--header-ink);
  border: 1px solid #86efac;
}
.wizard-step-pill.is-complete .wizard-step-pill__status {
  color: #475569;
  font-weight: 700;
}
.wizard-step-pill.active, .wizard-step-pill:hover {
  border-color: var(--theme-border-active); background: var(--theme-primary-soft); box-shadow: var(--theme-shadow); transform: translateY(-2px);
}
.wizard-main .wizard-step { width: 100%; max-width: none; }
.wizard-checklist { margin: 12px 0; padding-left: 18px; color: var(--header-ink); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--theme-primary-soft); flex-wrap: wrap; }
.wizard-nav--finish { align-items: flex-end; }
.wizard-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 0; }
.wizard-step h3 { margin: 20px 0 8px; font-size: 1rem; color: var(--theme-primary); }
.field-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--theme-text-secondary); }
.field-hint.accent { color: var(--theme-primary); font-weight: 600; padding: 10px 12px; background: color-mix(in srgb, var(--theme-primary-soft) 90%, transparent); border-radius: 12px; border: 1px solid var(--theme-primary-soft); }
.notice-banner { background: linear-gradient(90deg, var(--theme-primary-soft), var(--theme-primary-soft)); border: 1px solid var(--theme-primary-soft); padding: 12px 16px; border-radius: 14px; color: var(--header-ink); margin: 12px 0; }
.preview-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.preview-summary { border: 1px solid var(--theme-primary-soft); }

/* Report preview page */
.preview-page { max-width: 100%; margin: 0 auto; }
.preview-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 32px 28px 36px; margin-bottom: 28px;
  background: linear-gradient(135deg, var(--theme-primary-deep) 0%, var(--theme-primary) 42%, var(--theme-border-active) 100%);
  color: #fff; box-shadow: 0 24px 48px color-mix(in srgb, var(--theme-primary-deep) 28%, transparent);
}
.preview-hero__orb { position: absolute; border-radius: 50%; filter: blur(0); pointer-events: none; }
.preview-hero__orb--a { width: 200px; height: 200px; background: rgba(255,255,255,0.12); top: -60px; right: -40px; }
.preview-hero__orb--b { width: 120px; height: 120px; background: color-mix(in srgb, var(--theme-border-active) 35%, transparent); bottom: -30px; left: 12%; }
.preview-hero__inner { position: relative; z-index: 1; max-width: 640px; }
.preview-hero__badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.preview-hero h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.preview-hero__lead { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--theme-text-secondary); opacity: 0.95; }
.preview-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.preview-summary-band,
.preview-card--viewer,
.preview-card--studio,
.preview-card--checkout,
.preview-card--downloads,
.preview-card--html-report {
  grid-column: 1 / -1;
}
.preview-card {
  background: #fff; border-radius: 20px; padding: 22px 24px; border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--theme-primary) 7%, transparent);
}
.preview-card__title { margin: 0 0 6px; font-size: 1.35rem; color: var(--header-ink); }
.preview-card__subtitle { margin: 0 0 16px; color: #64748b; font-size: 1rem; }
.preview-tier-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, var(--theme-primary-soft), var(--theme-primary-soft)); border: 1px solid var(--theme-primary-soft); }
.preview-tier-chip__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--theme-primary); }
.preview-tier-chip__value { font-weight: 700; color: var(--header-ink); }
.preview-tier-chip__meta { font-size: 13px; color: #475569; }
.preview-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.preview-kv dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin: 0; }
.preview-kv dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; color: #1e293b; }
.preview-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 520px) { .preview-metrics { grid-template-columns: repeat(3, 1fr); } }
.preview-metric {
  background: linear-gradient(145deg, var(--theme-background), #fff); border: 1px solid var(--theme-primary-soft); border-radius: 16px; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px; min-height: 88px;
}
.preview-metric--accent { background: linear-gradient(145deg, var(--theme-primary-soft), var(--theme-primary-soft)); border-color: var(--theme-border-active); }
.preview-metric__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--theme-primary); }
.preview-metric__value { font-size: 1.15rem; font-weight: 800; color: var(--header-ink); line-height: 1.2; }
.preview-facility-list { list-style: none; margin: 0; padding: 0; }
.preview-facility-list li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--theme-primary-soft); }
.preview-facility-list li:last-child { border-bottom: 0; }
.preview-facility-list span { font-size: 13px; color: #475569; }
.preview-card--downloads h3 { margin-top: 0; color: var(--header-ink); }
.preview-download-lead { margin: 0 0 18px; color: #475569; line-height: 1.5; max-width: 56rem; }
.preview-download-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.preview-download-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 20px 18px; border-radius: 18px;
  text-decoration: none; color: inherit; border: 2px solid var(--theme-primary-soft); background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.preview-download-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px color-mix(in srgb, var(--theme-primary) 14%, transparent); border-color: var(--theme-border-active); }
.preview-download-card--pdf { border-color: #fca5a5; background: linear-gradient(160deg, #fff5f5, #fff); }
.preview-download-card--pdf:hover { border-color: #f87171; }
.preview-download-card--xlsx { border-color: #6ee7b7; background: linear-gradient(160deg, #ecfdf5, #fff); }
.preview-download-card--xlsx:hover { border-color: #34d399; }
.preview-download-card__icon {
  font-size: 11px; font-weight: 900; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 8px;
  background: var(--theme-primary-deep); color: #fff;
}
.preview-download-card--xlsx .preview-download-card__icon { background: #047857; }
.preview-download-card__title { font-size: 1.1rem; font-weight: 800; color: var(--header-ink); }
.preview-download-card__hint { font-size: 12px; color: #64748b; line-height: 1.4; }
.preview-checkout { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--theme-primary-soft); }
.preview-price-pill { margin-bottom: 12px; }
.preview-test-banner { margin-top: 16px; margin-bottom: 0; }
.preview-alert { border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.preview-alert ul { margin: 8px 0 0; padding-left: 1.2rem; }
.preview-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.preview-alert--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.preview-alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.preview-locked-note { text-align: center; color: #64748b; margin: 24px 0; }
.preview-footer-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--theme-primary-soft); }
.btn--wide { width: 100%; max-width: 320px; }
@keyframes wizardIn { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }
.card-inset { background: linear-gradient(145deg, rgba(255,255,255,0.92), color-mix(in srgb, var(--theme-primary-soft) 75%, transparent)); border-radius: 20px; padding: 20px 22px; margin: 16px 0 24px; border: 1px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 32px color-mix(in srgb, var(--theme-primary) 6%, transparent); }
.bank-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bank-picker__head h3 { margin: 0; color: var(--header-ink); }
.bank-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.bank-badge--ok, .bank-badge[data-state="verified"] { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; border-color: #6ee7b7; }
.bank-picker__method { margin-bottom: 18px; }
.bank-method-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) { .bank-method-cards { grid-template-columns: 1fr; } }
.bank-method-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 14px 44px; border-radius: 16px; border: 2px solid var(--theme-primary-soft); background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; min-height: 72px; }
.bank-method-card input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.bank-method-card__check { position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--theme-primary-soft); background: #fff; box-sizing: border-box; }
.bank-method-card:has(input:checked) { border-color: var(--theme-primary); background: linear-gradient(145deg, var(--theme-primary-soft), #fff); box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 12%, transparent); }
.bank-method-card:has(input:checked) .bank-method-card__check { border-color: var(--theme-primary); background: var(--theme-primary); box-shadow: inset 0 0 0 4px #fff; }
.bank-method-card__title { display: block; font-weight: 800; font-size: 14px; color: var(--header-ink); margin-bottom: 4px; }
.bank-method-card__desc { display: block; font-size: 12px; line-height: 1.45; color: #64748b; font-weight: 500; }
.bank-method-card--ifsc:has(input:checked) { border-color: #059669; background: linear-gradient(145deg, #ecfdf5, #fff); }
.bank-method-card--ifsc:has(input:checked) .bank-method-card__check { border-color: #059669; background: #059669; }
.bank-picker[data-method="ifsc"] .bank-ifsc-panel { border-color: #6ee7b7; }
.bank-cascade { margin-top: 8px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.85); border: 1px dashed var(--theme-primary-soft); }
.bank-cascade__intro { margin: 0 0 14px; font-size: 13px; color: #475569; }
.bank-cascade__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.bank-cascade__grid .field--full { grid-column: 1 / -1; }
.bank-cascade__grid select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--theme-primary-soft); font-size: 14px; background: #fff; }
.bank-cascade__grid select:disabled { opacity: 0.65; background: #f8fafc; }
.field-hint--inline { min-height: 1.2em; margin-top: 4px; font-size: 12px; }
.bank-quick-code { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--theme-primary-soft); }
.bank-quick-code label { font-weight: 700; font-size: 13px; color: var(--theme-primary); display: block; margin-bottom: 6px; }
.bank-ifsc-panel { padding: 16px 18px; border-radius: 14px; border: 2px solid #a7f3d0; background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%); }
.bank-ifsc-panel__lead { margin: 0 0 12px; font-size: 13px; color: #047857; }
.ifsc-input--large { font-size: 1.15rem; padding: 14px 16px; letter-spacing: 0.08em; }
@media (max-width: 640px) { .bank-cascade__grid { grid-template-columns: 1fr; } }
.bank-picker--v2 { background: linear-gradient(165deg, var(--theme-background) 0%, #fff 45%); border: 1px solid var(--theme-primary-soft); }
.bank-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.bank-step__num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary)); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 26px; }
.bank-field { flex: 1; min-width: 0; }
.bank-combo { position: relative; }
.bank-combo__input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--theme-primary-soft); font-size: 15px; background: #fff; box-shadow: 0 1px 2px color-mix(in srgb, var(--theme-primary) 6%, transparent); }
.bank-combo__input:focus { outline: none; border-color: var(--theme-border-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-border-active) 20%, transparent); }
.bank-combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; z-index: 60; background: #fff; border: 1px solid var(--theme-primary-soft); border-radius: 14px; box-shadow: 0 20px 48px color-mix(in srgb, var(--theme-primary) 18%, transparent); }
.bank-combo__option { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; transition: background .12s ease; }
.bank-combo__option:hover, .bank-combo__option:focus-visible { background: var(--theme-primary-soft); outline: none; }
.bank-combo__option-title { display: block; font-weight: 650; color: var(--header-ink); font-size: 14px; }
.bank-combo__option-meta { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.bank-combo__empty { padding: 12px 14px; font-size: 13px; color: #64748b; }
.bank-selected-card { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%); border: 1px solid var(--theme-accent-soft); }
.bank-selected-card__title { margin: 0 0 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #047857; }
.bank-branch-summary__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 0; }
.bank-branch-summary__grid dt { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.bank-branch-summary__grid dd { margin: 2px 0 0; font-weight: 650; color: #1e293b; font-size: 14px; }
.bank-branch-summary__full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .bank-branch-summary__grid { grid-template-columns: 1fr; }
  .bank-step { flex-direction: column; }
  .bank-step__num { margin-top: 0; }
}
.bank-picker__summary { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--theme-primary-soft); }
.ifsc-display { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ifsc-display__label { font-size: 12px; font-weight: 700; color: var(--theme-primary); text-transform: uppercase; letter-spacing: 0.06em; }
.ifsc-display__code { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 1.25rem; font-weight: 700; color: var(--header-ink); letter-spacing: 0.08em; }
.ifsc-display__code--pulse { animation: ifscPulse .65s ease; }
.ifsc-input { font-family: ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes ifscPulse { 0% { color: var(--theme-primary); transform: scale(1.02); } 100% { color: var(--header-ink); transform: none; } }
.combo-list { position: relative; z-index: 20; margin-top: 6px; max-height: 220px; overflow: auto; border-radius: 14px; border: 1px solid var(--theme-primary-soft); background: #fff; box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 15%, transparent); }
.combo-list__ai-label { margin: 0; padding: 8px 12px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--theme-primary); background: var(--theme-background); border-bottom: 1px solid var(--theme-primary-soft); position: sticky; top: 0; }
.field--ai-suggest > label::after { content: ' · AI picks'; font-size: 10px; font-weight: 600; color: var(--theme-primary); margin-left: 4px; }
.combo-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--theme-primary-soft); background: #fff; cursor: pointer; transition: background .15s ease; }
.combo-item:last-child { border-bottom: 0; }
.combo-item strong { display: block; color: var(--header-ink); font-size: 14px; margin-bottom: 2px; }
.combo-item span { display: block; color: #64748b; font-size: 12px; }
.combo-item:hover, .combo-item:focus-visible { background: var(--theme-primary-soft); outline: none; }
.combo-empty { margin: 0; padding: 14px; font-size: 13px; color: #64748b; line-height: 1.5; }
.loan-terms-block h3 { margin-top: 0; color: var(--theme-primary); }
.msme-primary-security-section { margin-bottom: 20px; border: 2px solid var(--theme-border-active); background: linear-gradient(135deg, var(--theme-background), #fff); box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 8%, transparent); }
.msme-primary-security-section > h3.re-subhead { margin-top: 0; border-bottom: 0; font-size: 1.1rem; }
.term-loan-purposes-block { margin: 18px 0; padding-top: 4px; border-top: 1px dashed var(--theme-primary-soft); }
.term-loan-purposes-block > h4 { margin: 0 0 8px; color: var(--theme-primary); font-size: 1rem; }
.wizard-term-purpose-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 12px; }
.wizard-term-purpose-row__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.wizard-term-purpose-row__head strong { font-size: 13px; line-height: 1.45; max-width: 88%; font-weight: 600; color: var(--header-ink); }
.wizard-term-purpose-list .wizard-term-purpose-row { margin-bottom: 10px; }
.wizard-term-purpose-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--theme-primary-soft); }
.term-purpose-save-status { margin: 0; min-height: 1.2em; }
.btl-module { margin-bottom: 22px; }
.btl-offscreen-store {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btl-summary-wrap {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--theme-background) 0%, #fff 55%, var(--theme-primary-soft) 100%);
  border: 1px solid var(--theme-primary-soft);
}
.btl-purpose-card--compact {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.btl-purpose-card__compact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
}
.btl-purpose-card__compact-icon {
  font-size: 28px;
  line-height: 1;
  padding-top: 2px;
}
.btl-purpose-card__title { display: block; font-size: 15px; color: var(--header-ink); margin: 0 0 4px; }
.btl-purpose-card__summary { margin: 0 0 8px; font-size: 12px; }
.btl-purpose-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  font-size: 11px;
}
.btl-purpose-card__metrics div { margin: 0; }
.btl-purpose-card__metrics dt {
  margin: 0;
  color: var(--theme-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btl-purpose-card__metrics dd { margin: 2px 0 0; font-weight: 700; color: var(--header-ink); font-size: 13px; }
.btl-purpose-card__compact-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.btl-purpose-card__metrics.purpose-assess-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.btl-purpose-card__metrics.purpose-assess-metrics > div { min-height: 64px; }
.purpose-assess-kicker {
  margin: 2px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.wc-purpose-card .purpose-assess-kicker { color: var(--theme-accent); }
.purpose-assess-metrics div {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, var(--theme-primary-soft));
  border: 1px solid var(--theme-primary-soft);
}
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 1) { background: var(--theme-primary-soft); border-color: var(--theme-primary-soft); }
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 2) { background: #ecfdf5; border-color: #a7f3d0; }
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 3) { background: #fff7ed; border-color: #fed7aa; }
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 4) { background: #fdf2f8; border-color: #fbcfe8; }
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 5) { background: var(--theme-primary-soft); border-color: var(--theme-primary-soft); }
.wc-purpose-card .purpose-assess-metrics div:nth-child(6n + 6) { background: #f0fdfa; border-color: var(--theme-accent-soft); }
.btl-purpose-card--compact {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--theme-border-active), var(--theme-border-active) 40%, #22d3ee) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.wc-purpose-card.btl-purpose-card--compact {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--theme-accent), var(--theme-border-active)) border-box;
}
.btl-purpose-card__compact-actions .btl-purpose-edit,
.btl-purpose-card__compact-actions .wc-purpose-edit {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}
.wc-purpose-card .wc-purpose-edit {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.btl-purpose-card__compact-actions .btl-purpose-remove,
.btl-purpose-card__compact-actions .wc-purpose-remove {
  color: #be123c;
  border: 1px solid #fecdd3;
  background: #fff1f2;
}
.wc-purpose-card__body[hidden],
.btl-purpose-card__body[hidden] { display: none !important; }
body.btl-purpose-modal-open { overflow: hidden; }
body > .loan-dialog-top {
  z-index: 16000;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 36px 32px;
}
body > .loan-dialog-top .btl-purpose-modal__backdrop { z-index: 0; }
body > .loan-dialog-top .btl-purpose-modal__dialog {
  width: min(1180px, calc(100vw - 72px));
  max-height: calc(100dvh - 56px);
  margin-top: 4px;
  z-index: 1;
}
@media (max-width: 800px) {
  .btl-purpose-card__metrics.purpose-assess-metrics { grid-template-columns: 1fr 1fr; }
  body > .loan-dialog-top { padding: 12px; }
  body > .loan-dialog-top .btl-purpose-modal__dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
}
.btl-purpose-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.btl-purpose-modal[hidden] { display: none !important; }
.btl-purpose-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}
.btl-purpose-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-width: none;
  max-height: min(calc(100dvh - 24px), calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, var(--theme-background) 100%);
  border: 1px solid var(--theme-border-active);
  box-shadow: 0 28px 90px color-mix(in srgb, var(--theme-primary-deep) 35%, transparent);
  overflow: hidden;
}
.btl-purpose-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-border-active));
  color: #fff;
}
.btl-purpose-modal__header h3 { margin: 4px 0 0; font-size: 1.15rem; color: #fff; }
.btl-purpose-modal__eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.btl-purpose-modal__close { color: #fff !important; border-color: rgba(255,255,255,0.35) !important; }
.btl-purpose-modal__body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.btl-purpose-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--theme-primary-soft);
  background: #fff;
}
.btl-purpose-section {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-border-active) 6%, transparent);
}
.btl-purpose-modal-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.btl-purpose-modal-section-head--sm { margin-bottom: 10px; }
.btl-purpose-modal-section-head__emoji { font-size: 22px; line-height: 1.2; }
.btl-purpose-modal-section-head__title { margin: 0; font-size: 14px; color: var(--theme-primary-hover); }
.btl-finance-highlight {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary-soft), #fff);
  border: 1px solid var(--theme-primary-soft);
}
.btl-finance-highlight__sub {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.btl-purpose-subsidy {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: linear-gradient(160deg, #fffbeb, #fff);
}
.btl-subsidy-detail { margin-top: 8px; }
.btl-purpose-cgtmse-block {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffbeb 0%, #fff 45%, #fef3c7 100%);
  border: 1px solid #fde68a;
}
.btl-purpose-cgtmse-block--active { display: block; }
.btl-purpose-cgtmse-block--hybrid .btl-purpose-cgtmse-field--coverage { display: none; }
.btl-purpose-cgtmse-block:not(.btl-purpose-cgtmse-block--hybrid) .btl-purpose-cgtmse-field--portion { display: none; }
.btl-purpose-cgtmse-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.btl-purpose-cgtmse-metrics p {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btl-purpose-cgtmse-metrics span { color: #92400e; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.btl-purpose-cgtmse-metrics strong { font-size: 14px; color: #78350f; }
.btl-purpose-cgtmse-total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fef3c7, #fff) !important;
  border-color: #f59e0b !important;
}
.btl-purpose-cgtmse-total strong { font-size: 1.05rem !important; color: #b45309 !important; }
.btl-purpose-collateral-block:not(.btl-purpose-collateral-block--active) .btl-purpose-collateral-list,
.btl-purpose-collateral-block:not(.btl-purpose-collateral-block--active) .btl-purpose-add-collateral,
.btl-purpose-collateral-block:not(.btl-purpose-collateral-block--active) [data-btl-collateral-hint] {
  display: none;
}
.btl-purpose-collateral-block--active {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--theme-primary-soft);
}
.btl-purpose-property-host .btl-mortgage-card {
  margin-bottom: 12px;
  border-color: var(--theme-primary-soft);
}
.btl-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.btl-step { font-size: 11px; padding: 6px 10px; border-radius: 999px; background: var(--theme-primary-soft); color: var(--theme-primary); cursor: pointer; border: 1px solid transparent; }
.btl-step--active { background: var(--theme-primary); color: #fff; }
.btl-panel { display: none; margin-bottom: 16px; }
.btl-panel--active { display: block; }
.btl-purpose-list { display: flex; flex-direction: column; gap: 12px; }
.btl-purpose-card__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.btl-summary-grid { display: none !important; }
.loan-asset-cost-retired { display: none !important; }
.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, #f8fafc) !important; }
.btl-summary-grid p { margin: 0; padding: 10px 12px; background: var(--theme-background); border: 1px solid var(--theme-primary-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.btl-summary-grid strong { font-size: 15px; color: var(--header-ink); }
.wc-module { margin-bottom: 22px; }
.wc-assess-sector { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e8ecf4; }
.wc-assess-sector__title { margin: 0 0 10px; font-size: 14px; color: var(--theme-primary-hover); }
.wc-assess-result { margin-top: 14px; background: var(--theme-background); }
.wc-assess-breakdown { margin-top: 10px; }
.wc-assess-method-badge { font-size: 13px; font-weight: 600; color: var(--theme-primary); margin: 8px 0 4px; }
.wc-assess-panel--turnover { background: var(--theme-background); border: 1px solid var(--theme-primary-soft); border-radius: 10px; padding: 12px; margin: 12px 0; }
.wc-assess-panel--cycle { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px; margin: 12px 0; }
.wc-dp-table { width: 100%; margin-top: 10px; }
.wc-dp-table td { vertical-align: middle; }
.wc-dp-table td input { width: 100%; max-width: 220px; }
.emi-preview { margin-top: 12px; background: linear-gradient(135deg, var(--theme-primary-soft), #fff); }
.emi-preview__amount { font-size: 1.35rem; font-weight: 800; color: var(--header-ink); margin: 6px 0; }
.stage-panel h3 { margin-top: 0; }
.assessment-results { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--theme-primary-soft), #fff); border: 1px solid var(--theme-primary-soft); }
.assessment-results p { margin: 6px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eligible-loan-summary { margin-top: 28px; margin-bottom: 8px; padding: 18px 16px; }
.eligible-loan-summary h3 { margin: 0 0 8px; color: var(--header-ink); font-size: 1.05rem; }
.eligible-loan-summary .assessment-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--theme-primary-soft); font-size: 1.05rem; }
.eligible-loan-summary .assessment-total strong { color: var(--theme-primary); font-size: 1.2rem; }
.eligible-amount-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.report-tier-panel { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--theme-border-active); }
.report-tier-badge { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 10px 0; }
.report-tier-badge__label { font-size: 15px; font-weight: 700; color: var(--header-ink); }
.report-tier-badge__finance { font-size: 12px; color: #64748b; }
.report-tier-disclaimer { font-size: 11px; color: #64748b; line-height: 1.45; }
.report-tier-catalog-wrap { margin: 12px 0 14px; max-height: 280px; overflow: auto; border: 1px solid var(--theme-primary-soft); border-radius: 10px; background: #fff; }
.report-tier-catalog { width: 100%; border-collapse: collapse; font-size: 11px; }
.report-tier-catalog thead th { position: sticky; top: 0; background: var(--theme-primary); color: #fff; text-align: left; padding: 8px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.report-tier-catalog td { padding: 8px 10px; border-bottom: 1px solid var(--theme-primary-soft); vertical-align: top; }
.report-tier-catalog td:first-child { white-space: nowrap; font-weight: 600; color: var(--header-ink); width: 38%; }
.report-tier-catalog__row--active td { background: var(--theme-primary-soft); box-shadow: inset 3px 0 0 var(--theme-primary); }
.report-tier-catalog .muted { font-size: 10px; color: #64748b; line-height: 1.35; }
.eligible-meta { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--theme-primary-soft); }
.eligible-meta__heading { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--theme-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.eligible-meta__tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.eligible-meta__tab { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--theme-primary-soft); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 6%, transparent); }
.eligible-meta__tab--emi { grid-column: 1 / -1; background: linear-gradient(135deg, var(--theme-primary-soft), #fff); border-color: var(--theme-primary-soft); }
.eligible-meta__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-primary); margin-bottom: 4px; }
.eligible-meta__tab strong { display: block; font-size: 15px; color: var(--header-ink); line-height: 1.35; }
.eligible-emi { font-size: 1.25rem !important; font-weight: 800 !important; color: var(--theme-primary) !important; }
.loan-facet-hidden, [data-loan-facet][hidden] { display: none !important; }
.loan-facet-block[data-loan-facet][hidden] { display: none !important; }
.tpl-scope-hidden, [data-tpl-scope][hidden] { display: none !important; }
.wizard-section { margin-bottom: var(--theme-space, 28px); padding-bottom: 8px; border-bottom: 1px solid var(--theme-border); }
.wizard-section:last-of-type { border-bottom: 0; }
.wizard-section.card-inset { border-bottom: 0; margin-bottom: 20px; }
.wizard-section > h3, .wizard-section.card-inset > h3 { margin: 0 0 14px; color: var(--theme-primary-deep); font-size: 1.05rem; }
.loan-assessment-vendor { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--theme-primary-soft); }
.loan-assessment-vendor > h3 { margin-top: 0; font-size: 1rem; color: var(--theme-primary); }
.re-subhead { margin: 20px 0 10px; font-size: 0.95rem; color: var(--theme-primary); font-weight: 700; border-bottom: 1px solid var(--theme-primary-soft); padding-bottom: 6px; }
.re-cost-total { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--theme-primary-soft), #fff); border: 1px solid var(--theme-primary-soft); font-size: 1.05rem; }
.assessment-label { color: #64748b; font-size: 13px; }
.field { position: relative; }
.wizard-step.active { overflow: visible; }
.field--ai-hint:focus-within { z-index: 2; }
.field--ai-suggest:focus-within { z-index: 2; }
.field--ai-hint input:not([type="hidden"]),
.field--ai-hint select,
.field--ai-hint textarea {
  cursor: help;
}
.field--ai-hint:focus-within input:not([type="hidden"]),
.field--ai-hint:focus-within select,
.field--ai-hint:focus-within textarea {
  border-color: var(--theme-border-active);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-border-active) 15%, transparent);
}
.ai-field-tooltip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10050;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--header-ink);
  background: #fff;
  border: 1px solid var(--theme-border-active);
  border-radius: 10px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 22%, transparent);
  pointer-events: none;
}
.field--ai-hint:focus-within .ai-field-tooltip {
  display: block;
}
.combo-list.wizard-ai-suggest-list--open {
  position: fixed;
  margin-top: 0;
  z-index: 10000;
}
.cma-report-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.cma-report-tab { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--theme-primary-soft); color: var(--theme-primary); border: 1px solid var(--theme-primary-soft); }
.cma-report-section { margin-bottom: 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--theme-primary-soft); background: linear-gradient(180deg, var(--theme-background) 0%, #fff 100%); }
.cma-report-section > h3 { margin-top: 0; color: var(--header-ink); font-size: 1.05rem; border-bottom: 1px solid var(--theme-primary-soft); padding-bottom: 8px; }
.ai-field-tooltip__badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 4px;
}
.ai-field-tooltip__text {
  display: block;
}
.repeater.compact { padding: 12px; margin-bottom: 10px; }
.req { color: var(--theme-primary); }
.wizard-layout { display: block; }
.step-nav button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 0; cursor: pointer; color: var(--header-ink); }
.step-nav button.active { color: var(--theme-primary); font-weight: 800; }
.step { display: none; }
.step.active { display: block; }
.save-state { font-size: 13px; color: var(--muted); transition: color .2s ease; }
.save-state.save-state--error { color: var(--danger); font-weight: 600; }
.repeater { border: 1px dashed var(--theme-primary-soft); border-radius: 16px; padding: 12px; margin-bottom: 12px; background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.expense-plan__head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.expense-plan__head h3 { margin-top: 0; }
.expense-plan__head .btn { flex-shrink: 0; }
.expense-plan__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.expense-catalog-pick select { min-width: 220px; max-width: 100%; }
.expense-catalog-pick__list.is-filtering { min-height: 10rem; max-height: 14rem; }
.expense-catalog-search { min-width: 160px; max-width: 240px; flex: 1 1 160px; }
.wizard-reconcile-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid #c62828;
  background: #ffebee;
  color: #b71c1c;
  font-size: 0.92rem;
}
.wizard-reconcile-alert ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.wizard-reconcile-alert strong { display: block; margin-bottom: 0.25rem; }
.wizard-statutory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.wizard-statutory-pick { flex: 1 1 220px; min-width: 200px; margin: 0; }
.wizard-statutory-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.wizard-statutory-row__title { font-size: 0.95rem; }
.stat-board__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.stat-cards { display: flex; flex-direction: column; gap: 10px; }
.stat-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--item-border); border-radius: 14px; background: var(--item-bg); color: var(--item-ink); }
.stat-card__main { min-width: 0; }
.stat-card__meta { display: block; margin-top: 3px; color: var(--item-muted); font-size: 0.84rem; }
.stat-card__actions { display: flex; gap: 8px; flex-shrink: 0; }
.wizard-statutory-row__fields[hidden] { display: none !important; }
.biz-pan-field[hidden] { display: none !important; }
.stat-dialog .btl-purpose-modal__dialog { width: min(720px, calc(100vw - 40px)); }
.addr-board__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.addr-cards { display: flex; flex-direction: column; gap: 10px; }
.addr-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--item-border); border-radius: 14px; background: var(--item-bg); color: var(--item-ink); }
.addr-card--registered, .addr-card--branch { border-color: var(--item-border); background: var(--item-bg); }
.addr-card__kind { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; background: var(--badge-bg); color: var(--badge-ink); }
.addr-card--branch .addr-card__kind { background: var(--badge-bg); color: var(--badge-ink); }
.addr-card__line { display: block; color: var(--item-ink); }
.addr-card__meta { display: block; margin-top: 3px; color: var(--item-muted); font-size: 0.84rem; }
.addr-card__actions { display: flex; gap: 8px; flex-shrink: 0; }
.addr-dialog .btl-purpose-modal__dialog, #loc-dialog .btl-purpose-modal__dialog { width: min(760px, calc(100vw - 40px)); }
.re-sec-stack { display: flex; flex-direction: column; gap: 16px; }
.re-sec-board { overflow: hidden; padding-top: 0; }
.re-sec-board .loan-facility-head { margin: 0 -22px 16px; border-radius: 18px 18px 0 0; }
.re-sec-board .loan-facility-head .re-subhead,
.re-sec-board .loan-facility-head__text,
.re-sec-board .loan-facility-head__eyebrow { color: #fff; }
.re-sec-board .loan-facility-head__text { margin: 4px 0 0; opacity: 0.92; }
.re-sec-board .loan-facility-head__mark { font-size: 28px; line-height: 1; }
.re-sec-dialog .btl-purpose-modal__dialog { width: min(920px, calc(100vw - 40px)); }
.re-sec-panel { margin: 0 0 14px; padding: 14px 14px 6px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.re-sec-id { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.re-sec-id--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.re-sec-area { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; }
.re-sec-card { align-items: flex-start; }
.re-sec-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.re-sec-values div { padding: 8px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.re-sec-values dt { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.re-sec-values dd { margin: 2px 0 0; font-weight: 800; color: #0f172a; }
.re-sec-values div:last-child { background: color-mix(in srgb, var(--theme-primary-soft) 70%, #fff); border-color: var(--theme-primary-soft); }
.re-sec-values[hidden], .re-sec-grand[hidden] { display: none !important; }
.re-sec-grand { margin-top: 16px; }
.re-disb { margin-top: 0; }
.re-disb .loan-facility-head .btn { margin-left: auto; align-self: center; flex-shrink: 0; }
.re-disb-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.re-disb-summary div { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.re-disb-summary span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.re-disb-summary strong { display: block; margin-top: 4px; font-size: 1.15rem; color: #0f172a; }
.re-disb-summary div:nth-child(2) { background: color-mix(in srgb, var(--theme-primary-soft) 70%, #fff); border-color: var(--theme-primary-soft); }
.re-disb-summary div:nth-child(3) { background: #f0fdf4; border-color: #bbf7d0; }
.re-disb-scroll { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.re-disb-scroll[hidden] { display: none !important; }
.re-disb-class { margin: 0 0 12px; }
.re-disb-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.re-disb-pct { font-weight: 800; text-align: center; white-space: nowrap; color: var(--theme-primary); }
.re-disb-table th { padding: 10px 12px; text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, var(--theme-primary), var(--theme-primary-hover)); }
.re-disb-table td { padding: 8px 10px; border-top: 1px solid #e2e8f0; vertical-align: middle; }
.re-disb-table tbody tr:nth-child(even) td { background: #f8fafc; }
.re-disb-table input { width: 100%; min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 8px; }
.re-disb-table input[type="date"] { min-width: 148px; }
.re-disb-sr { text-align: center; font-weight: 800; color: #64748b; }
.re-disb-cum { font-weight: 800; white-space: nowrap; color: #0f172a; }
.re-disb-table tfoot td { font-weight: 800; background: color-mix(in srgb, var(--theme-primary-soft) 70%, #fff); }
@media (max-width: 720px) {
  .re-disb-summary { grid-template-columns: 1fr; }
}
.re-sec-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.re-sec-total span { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.re-sec-total strong { font-size: 1.2rem; color: #0f172a; }
.re-sec-total .field-hint { flex-basis: 100%; margin: 0; }
.re-sec-follow { margin-top: 8px; padding: 14px; border-radius: 16px; border: 1px solid #dbe4f0; background: #fff; }
.re-sec-follow[hidden] { display: none !important; }
#re-collateral-add[hidden] { display: none !important; }
.re-sec-follow__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.re-sec-follow__title { margin: 0 0 2px; font-weight: 800; color: #0f172a; }
@media (max-width: 720px) {
  .re-sec-values, .re-sec-follow__bar { grid-template-columns: 1fr; display: flex; flex-direction: column; align-items: stretch; }
}
.re-sec-type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.re-sec-type-pick .addr-kind-option { min-height: 64px; }
@media (max-width: 720px) {
  .re-sec-id, .re-sec-id--3, .re-sec-type-pick { grid-template-columns: 1fr; }
  .re-sec-board .loan-facility-toolbar { align-items: stretch; }
  .re-sec-board .loan-add-details { width: 100%; }
}
.loan-add-details.is-disabled { opacity: 0.45; cursor: not-allowed; }
#loc-dialog-suggestions, #addr-dialog-suggestions { position: relative; z-index: 2; }
.addr-kind-label { margin: 0 0 8px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.addr-kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.addr-kind-option { text-align: left; border: 1px solid var(--item-border); border-radius: 14px; background: var(--card); padding: 12px 14px; cursor: pointer; }
.addr-kind-option strong { display: block; color: var(--item-ink); }
.addr-kind-option span { display: block; margin-top: 2px; color: var(--item-muted); font-size: 0.8rem; }
.addr-kind-option.is-on { border-color: transparent; background: var(--pick-on-bg); }
.addr-kind-option.is-on strong, .addr-kind-option.is-on span { color: var(--pick-on-ink); }
.wizard-statutory-list { display: flex; flex-direction: column; gap: 10px; }
#expenses .expense-row[data-template] { display: none !important; }
.expense-row__percent[hidden], .expense-row__monthly[hidden], .expense-row__annual[hidden] { display: none !important; }
.expense-row.addr-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; padding: 12px 14px; }
.expense-row__fields[hidden] { display: none !important; }
.addr-kind-pick--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people-total, .expense-summary__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ops-overall, .income-live, .expense-summary, .people-total { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--summary-bg); color: var(--summary-ink); }
.ops-overall .expense-summary__title, .expense-summary__title, .income-live__head strong { color: var(--summary-ink); }
.ops-overall__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ops-overall__grid > div, .people-total > div, .income-live__cell, .expense-summary__cell { background: var(--summary-cell-bg); border: 1px solid var(--summary-cell-border); border-radius: 14px; padding: 12px 14px; }
.ops-overall__grid span, .people-total span, .income-live__cell span, .expense-summary__cell span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--summary-cell-muted); }
.ops-overall__grid strong, .people-total strong, .income-live__cell strong, .expense-summary__cell strong { display: block; margin-top: 4px; font-size: 1.15rem; color: var(--summary-cell-ink); }
.ops-overall__grand, .people-total > div:last-child, .income-live__cell.is-total { background: var(--summary-total-bg) !important; border-color: transparent !important; }
.ops-overall__grand span, .ops-overall__grand strong, .people-total > div:last-child span, .people-total > div:last-child strong, .income-live__cell.is-total span, .income-live__cell.is-total strong { color: var(--summary-total-ink) !important; }
.income-studio { border: 1px solid var(--item-border); background: var(--item-bg); color: var(--item-ink); }
.income-studio__kicker { margin: 0 0 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); }
.income-studio__head h3 { margin: 0 0 6px; }
.income-act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.income-act__opt { text-align: left; border: 1px solid var(--item-border); border-radius: 16px; background: var(--card); padding: 14px; cursor: pointer; color: var(--item-ink); }
.income-act__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--indigo-soft); color: var(--ink); font-size: 0.75rem; font-weight: 800; margin-bottom: 8px; }
.income-act__opt strong { display: block; color: var(--item-ink); }
.income-act__opt span { display: block; margin-top: 2px; color: var(--item-muted); font-size: 0.8rem; }
.income-act__opt.is-on { border-color: transparent; background: var(--pick-on-bg); box-shadow: var(--shadow); }
.income-act__opt.is-on strong, .income-act__opt.is-on span, .income-act__opt.is-on .income-act__mark { color: var(--pick-on-ink); }
.income-act__opt.is-on .income-act__mark { background: rgba(255,255,255,.16); }
.income-fields { margin-top: 8px; }
.income-fields[hidden] { display: none !important; }
.income-live__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.income-live__head strong { font-size: 0.95rem; }
.income-live__head span { color: var(--summary-muted); font-size: 0.78rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.income-live__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.income-live .btn-primary, .loan-summary .btn-primary, .ops-overall .btn-primary { background: var(--summary-btn-bg); color: var(--summary-btn-ink); }
.income-live .btn-primary:hover, .loan-summary .btn-primary:hover, .ops-overall .btn-primary:hover { background: var(--summary-btn-hover); color: var(--summary-btn-ink-hover); }
.income-live__cell.is-negative { background: #fef2f2 !important; border-color: #fecaca !important; }
.income-live__cell.is-negative span, .income-live__cell.is-negative strong { color: #991b1b !important; }
.loan-summary { margin-top: 12px; }
.loan-summary .income-live__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loan-chart-btn { margin-top: 12px; }
#existing-amort-modal .btl-purpose-modal__dialog { width: min(980px, calc(100vw - 32px)); }
.loan-chart-kpis { margin-bottom: 12px; }
.expense-summary__title { margin: 0 0 8px; font-weight: 800; }
.expense-row { display: grid; grid-template-columns: minmax(180px, 2.2fr) minmax(150px, 1.5fr) minmax(80px, .8fr) minmax(110px, 1.1fr) minmax(80px, .8fr) auto; gap: 10px; align-items: end; padding: 10px 12px; margin-bottom: 8px; }
.expense-row .field { margin: 0; }
.expense-row .field label { font-size: 12px; }
.expense-row input[readonly] { background: #f5f7ff; color: var(--theme-primary); }
.expense-row [data-remove] { align-self: end; }
.expense-summary__title { margin: 0 0 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.expense-summary__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.expense-summary__cell.is-positive { background: #f0fdf4 !important; border-color: #86efac !important; }
.expense-summary__cell.is-positive span, .expense-summary__cell.is-positive strong { color: #166534 !important; }
.expense-summary__cell.is-negative { background: #fef2f2 !important; border-color: #fca5a5 !important; }
.expense-summary__cell.is-negative span, .expense-summary__cell.is-negative strong { color: #991b1b !important; }
@media (max-width: 860px) {
  .expense-plan__head { flex-direction: column; }
  .expense-row { grid-template-columns: 1fr 1fr; }
  .expense-row__name { grid-column: 1 / -1; }
  .expense-summary__grid, .people-total, .addr-kind-pick--3, .ops-overall__grid, .income-act, .income-live__grid, .loan-summary .income-live__grid { grid-template-columns: 1fr; }
  .income-live__head { flex-direction: column; }
}
.skeleton { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--theme-primary-soft), #fff, var(--theme-primary-soft)); background-size: 200% 100%; animation: shine 1.2s infinite; }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes float { 50% { transform: translateY(14px); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shift { 50% { background-position: 100% 40%; } }
@keyframes headerEnter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes headerGlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes ribbonShift { 50% { background-position: 100% 50%; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes btnSheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes footerFloat { 50% { transform: translate(12px, -18px) scale(1.05); } }
@keyframes chipPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes watermarkDrift { 50% { transform: translateY(-8px) scale(1.01); opacity: 0.055; } }
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-ribbon__track, .header-glow, .btn-glow::before, .footer-orb, .footer-chip, body.has-watermark::before { animation: none !important; }
  .footer-reveal { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .footer-compact-top { grid-template-columns: auto 1fr; }
  .footer-compact-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .footer-compact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-note { text-align: left; }
}
@media (max-width: 860px) {
  .hero, .grid-2, .grid-3, .grid-4, .wizard-layout, .wizard-main, .wizard-step-nav, .row-2, .stat-row, .cta-band, .split { grid-template-columns: 1fr; }
  .wizard-step-nav { display: flex; flex-direction: column; }
  .cta-band { display: grid; }
  .nav-toggle { display: inline-flex; z-index: 202; position: relative; }
  .site-header__bar { position: relative; z-index: 201; }
  .site-header__bar::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { position: static; }
  body.site-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: auto;
  }
  .wrap.nav > .nav-links {
    display: none;
  }
  body > #nav.nav-links.site-nav-drawer,
  #nav.nav-links.site-nav-drawer {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-height, 118px);
    bottom: 0;
    z-index: 10050;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 18px max(28px, env(safe-area-inset-bottom));
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    border-top: 1px solid var(--theme-primary-soft);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--theme-primary-deep) 18%, transparent);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
  }
  body > #nav.nav-links.site-nav-drawer.open,
  #nav.nav-links.site-nav-drawer.open {
    display: flex;
  }
  .site-nav-drawer .nav-link {
    color: #0f172a;
  }
  .site-nav-drawer .nav-link__text {
    color: inherit;
  }
  .nav-links__primary,
  .nav-links__actions { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-links__actions { padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); gap: 10px; }
  .nav-link { padding: 12px 8px; font-size: 15px; }
  .nav-links__actions .btn { width: 100%; justify-content: center; }
  .header-ribbon__track { animation-duration: 36s; }
  .footer-compact-links { grid-template-columns: 1fr 1fr; }
  .footer-list--dense { grid-template-columns: 1fr; }
  .footer-chips { display: none; }
}
.auth-page { max-width: 520px; margin: 0 auto; }
.auth-google { margin-bottom: 16px; }
.auth-google-title { margin: 0 0 8px; font-size: 1.1rem; }
.auth-google-disabled code { font-size: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-size: 13px; white-space: nowrap; }

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(640px 240px at 100% 0%, color-mix(in srgb, var(--theme-primary-soft) 22%, transparent), transparent 55%),
    radial-gradient(520px 200px at 0% 100%, color-mix(in srgb, var(--theme-primary-soft) 25%, transparent), transparent 50%),
    var(--paper);
}
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.app-sidebar {
  position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 24px 18px;
  background: var(--sidebar-bg); color: var(--sidebar-ink); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; z-index: 30;
}
.app-sidebar--pro {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  box-shadow: inset -1px 0 0 var(--line);
}
.app-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--sidebar-card);
  border: 1px solid var(--line);
  color: var(--sidebar-ink);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.app-sidebar__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--btn-ink);
  background: var(--btn-bg);
  box-shadow: none;
}
.app-sidebar__user { margin: 0; font-size: 13px; font-weight: 750; color: var(--sidebar-ink); word-break: break-word; line-height: 1.3; }
.app-sidebar__role { margin: 2px 0 0; font-size: 11px; color: var(--sidebar-muted); font-weight: 650; }
.app-sidebar--pro .app-nav-link { transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease; }
.app-sidebar--pro .app-nav-link:hover { transform: translateX(3px); }
.app-sidebar--pro .app-nav-link.is-active { transform: translateX(2px); }
.app-sidebar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sidebar-ink); font-weight: 800; }
.app-sidebar__brand small { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--header-accent); text-transform: uppercase; }
.app-sidebar__nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.app-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; color: var(--sidebar-ink); font-weight: 650; font-size: 14px; border: 1px solid transparent;
}
.app-nav-link:hover { background: var(--sidebar-hover); border-color: transparent; color: var(--sidebar-ink); }
.app-nav-link.is-active { background: var(--btn-bg); color: var(--btn-ink); box-shadow: none; }
.app-nav-link--muted { font-size: 13px; color: var(--sidebar-muted); }
.app-nav-icon { opacity: 0.85; font-size: 15px; }
.app-sidebar__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.app-sidebar__cta { width: 100%; }
.app-sidebar__logout { width: 100%; }
.app-main-wrap { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20;
}
.app-topbar--pro {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.app-topbar--pro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--theme-border-active), var(--theme-primary-soft), var(--theme-border-active), transparent);
  background-size: 200% 100%;
  animation: headerGlow 6s linear infinite;
  opacity: 0.75;
}
.app-topbar__menu { display: none; }
.app-topbar__titles { flex: 1; min-width: 0; }
.app-topbar__title { font-weight: 800; color: var(--ink); margin: 0; line-height: 1.2; }
.app-topbar__subtitle { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.app-topbar__new { margin: 0; }
.app-topbar__new-btn { padding: 10px 16px; font-size: 14px; }
.app-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-primary-soft) 55%, var(--theme-primary-soft) 100%);
  box-shadow: inset -1px 0 0 var(--line);
}
.app-main { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }
.app-main--workspace { max-width: 1180px; }
.app-main--embed { max-width: 1120px; }
.app-main--wizard,
.app-main--checkout {
  max-width: min(1400px, 100%);
  padding-left: 20px;
  padding-right: 20px;
}
.app-main--embed .page-hero {
  margin-left: 0;
  margin-right: 0;
  border-radius: 20px;
  border: 1px solid var(--theme-primary-soft);
}
.app-main--embed .wrap.section,
.app-main--embed .wrap:not(.page-hero .wrap) {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.app-nav-group {
  margin: 0 0 8px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.app-nav-group[open] {
  border-color: color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.app-nav-group__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.app-nav-group__summary::-webkit-details-marker { display: none; }
.app-nav-group__summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--theme-primary);
  transition: transform 0.2s ease;
}
.app-nav-group:not([open]) .app-nav-group__summary::after { transform: rotate(-90deg); }
.app-nav-group__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 8px 10px;
}
.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.app-shell.sidebar-collapsed .app-sidebar {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 961px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .app-shell.sidebar-collapsed .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    box-shadow: 24px 0 48px color-mix(in srgb, var(--theme-primary-deep) 18%, transparent);
  }
  .app-shell.sidebar-collapsed.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .app-shell--nav-toggle .app-topbar__menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
.app-topbar__menu-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-primary);
}
.app-nav-section {
  margin: 14px 0 6px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.app-nav-section:first-of-type { margin-top: 4px; }
.btn-sm { padding: 8px 14px !important; font-size: 13px !important; min-height: 0; }
.dash-page { animation: rise .45s ease both; }
.dash-page--single { display: flex; flex-direction: column; gap: 0; }
.dash-panel--single { width: 100%; }
.dash-account-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff, var(--theme-primary-soft));
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.dash-account-strip__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}
.dash-account-strip__meta {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.dash-account-strip__meta strong { color: var(--header-ink); font-size: 14px; }
.dash-account-strip__meta span { color: var(--muted); }
.dash-resources-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed var(--theme-primary-soft);
}
.dash-resource-pill {
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--theme-primary);
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.dash-resource-pill:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-active);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.dash-page--single .report-card-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-hero { margin-bottom: 28px; }
.dash-hero--compact { margin-bottom: 20px; }
.dash-hero h1 { margin: 4px 0 10px; font-size: clamp(28px, 4vw, 40px); }
.dash-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.dash-stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.dash-stat-card--accent { background: linear-gradient(135deg, var(--theme-primary-soft), #fff); border-color: var(--theme-primary-soft); }
.dash-stat-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-stat-value { display: block; font-size: 28px; font-family: var(--serif); color: var(--ink); margin: 6px 0; }
.dash-stat-hint { font-size: 12px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 20px; margin-bottom: 20px; }
.dash-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.dash-panel--wide { margin-bottom: 0; }
.dash-panel--warn { border-color: #fecdd3; background: linear-gradient(145deg, #fff, #fff1f2); }
.dash-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-panel__head h2 { margin: 0; font-size: 1.15rem; }
.dash-empty { text-align: center; padding: 32px 16px; }
.dash-project-list { display: flex; flex-direction: column; gap: 14px; }
.dash-project-card {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start;
  padding: 16px; border-radius: 16px; border: 1px solid var(--theme-primary-soft); background: linear-gradient(145deg, #fff, var(--theme-background));
}
.dash-project-card h3 { margin: 4px 0; font-size: 1.1rem; }
.dash-project-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.dash-project-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 420px; justify-content: flex-end; }
.dash-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--theme-primary-soft); color: var(--theme-primary); }
.dash-badge--ok { background: #ecfdf5; color: #047857; }
.dash-badge--draft { background: #fef3c7; color: #92400e; }
.dash-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 14px; }
.dash-dl dt { color: var(--muted); font-weight: 600; }
.dash-dl dd { margin: 0; }
.dash-hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.dash-subhead { margin: 0 0 8px; font-size: 0.95rem; }
.dash-links { list-style: none; padding: 0; margin: 0; }
.dash-links li { margin: 8px 0; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th, .dash-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.dash-back { margin-top: 24px; }
/* —— Account profile (/account/profile) — teal · slate · amber —— */
.dash-page--profile {
  max-width: 1080px;
  margin: 0 auto;
  --profile-teal: var(--theme-accent);
  --profile-teal-soft: var(--theme-accent-soft);
  --profile-amber: #d97706;
  --profile-amber-soft: #fef3c7;
  --profile-slate: #334155;
  --profile-slate-soft: #f1f5f9;
  --profile-indigo: var(--theme-primary);
  --profile-indigo-soft: var(--theme-primary-soft);
}
.dash-page--profile .profile-hero,
body.dashboard-body--profile .profile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 22px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(128deg, #ffffff 0%, #f0fdfa 32%, #fffbeb 62%, #f8fafc 100%);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}
.dash-page--profile .profile-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 92% 15%, color-mix(in srgb, var(--theme-accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 85%, rgba(217, 119, 6, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 35% at 55% 50%, color-mix(in srgb, var(--theme-border-active) 10%, transparent), transparent 55%);
}
.dash-page--profile .profile-hero__orb--a { background: color-mix(in srgb, var(--theme-accent) 45%, transparent); opacity: 0.9; }
.dash-page--profile .profile-hero__orb--b { background: rgba(251, 191, 36, 0.35); }
.dash-page--profile .profile-hero__orb--c {
  width: 100px;
  height: 100px;
  background: rgba(100, 116, 139, 0.2);
  top: 50%;
  right: 28%;
  animation-delay: -4s;
}
.profile-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
  flex: 1 1 280px;
  min-width: 0;
}
.dash-page--profile .profile-hero__avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-accent) 0%, var(--theme-border-active) 52%, #475569 100%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--theme-accent) 28%, transparent), 0 8px 20px color-mix(in srgb, var(--theme-primary) 15%, transparent);
  border: 3px solid rgba(255, 255, 255, 0.85);
}
.dash-page--profile .profile-hero__copy .kicker { color: var(--profile-teal); letter-spacing: 0.16em; }
.profile-hero__copy h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  color: #0f172a;
}
.profile-hero__copy .lede { max-width: 36rem; margin: 0; }
.dash-page--profile .profile-hero__pills {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-page--profile .profile-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dash-page--profile .profile-pill--teal { color: var(--theme-accent); background: var(--profile-teal-soft); border-color: var(--theme-accent-soft); }
.dash-page--profile .profile-pill--amber { color: #92400e; background: var(--profile-amber-soft); border-color: #fde68a; }
.dash-page--profile .profile-pill--slate { color: var(--profile-slate); background: var(--profile-slate-soft); border-color: #cbd5e1; }
.profile-hero__meta {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: #475569;
}
.dash-page--profile .profile-hero__meta li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.dash-page--profile .profile-hero__meta strong { color: var(--profile-slate); margin-right: 6px; font-weight: 800; }
.profile-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-page--profile .profile-hero__actions .btn-primary {
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent));
  border-color: var(--theme-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}
.profile-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-page--profile .profile-card {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dash-page--profile .profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--profile-teal), var(--profile-indigo));
  opacity: 0.85;
}
.dash-page--profile .profile-card--form::before { background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent)); }
.dash-page--profile .profile-card--signin::before { background: linear-gradient(90deg, #64748b, #334155); }
.dash-page--profile .profile-card--google::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.dash-page--profile .profile-card--tip::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.dash-page--profile .profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}
.dash-page--profile .profile-card--form { background: linear-gradient(180deg, #fff 0%, #f0fdfa 120%); }
.dash-page--profile .profile-card--signin { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.dash-page--profile .profile-card--tip { background: linear-gradient(135deg, #fffbeb 0%, #fff 55%); border-color: #fde68a; }
.dash-page--profile .profile-card--google { background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%); border-color: #a7f3d0; }
.profile-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-card__head h2 { margin: 0 0 4px; font-size: 1.15rem; color: #0f172a; }
.profile-card__head .muted { margin: 0; font-size: 13px; }
.profile-card__head--compact { margin-bottom: 12px; }
.profile-card__head--compact h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.dash-page--profile .profile-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: none;
}
.dash-page--profile .profile-card__icon--teal { background: var(--profile-teal-soft); color: var(--theme-accent); }
.dash-page--profile .profile-card__icon--slate { background: var(--profile-slate-soft); color: var(--profile-slate); }
.dash-page--profile .profile-card__icon--amber { background: var(--profile-amber-soft); color: #b45309; }
.dash-page--profile .profile-card__icon--indigo { background: var(--profile-indigo-soft); color: var(--profile-indigo); }
.dash-page--profile .profile-card__icon--mint { background: #ecfdf5; color: #047857; font-weight: 800; }
.profile-fields { display: flex; flex-direction: column; gap: 14px; }
.profile-card__note { margin: 14px 0 16px; font-size: 12px; }
.dash-page--profile .profile-card--form .btn-primary {
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent));
  border-color: var(--theme-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-accent) 22%, transparent);
}
.dash-page--profile .field input:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}
.profile-dl { margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.dash-page--profile .profile-dl div:nth-child(odd) { background: #f0fdfa; border: 1px solid var(--theme-accent-soft); }
.dash-page--profile .profile-dl div:nth-child(even) { background: #f8fafc; border: 1px solid #e2e8f0; }
.profile-dl dt { margin: 0; color: #64748b; font-weight: 700; }
.profile-dl dd { margin: 0; color: #0f172a; font-weight: 650; word-break: break-word; }
.dash-page--profile .profile-card--tip .profile-card__head--compact + .muted + .btn,
.dash-page--profile .profile-card--tip h3 { color: #92400e; }
.profile-btn-block { width: 100%; justify-content: center; }
.profile-google-btn { display: flex; justify-content: center; margin-top: 8px; }
.dash-page--profile .dash-flash--ok {
  border-left: 4px solid var(--theme-accent);
  background: #f0fdfa;
  color: var(--theme-accent);
}
/* Profile shell when hero section is present (works even if layout skips body class / profile.css) */
body.dashboard-body:has(.dash-page--profile),
body.dashboard-body--profile {
  --paper: #f8fafc;
  background:
    radial-gradient(640px 240px at 100% 0%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 55%),
    radial-gradient(520px 200px at 0% 100%, rgba(251, 191, 36, 0.08), transparent 50%),
    var(--paper);
}
body.dashboard-body:has(.dash-page--profile) .app-sidebar--pro,
body.dashboard-body--profile .app-sidebar--pro {
  background: linear-gradient(185deg, #ffffff 0%, #f0fdfa 42%, #f8fafc 100%);
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.35), 4px 0 24px rgba(15, 23, 42, 0.04);
}
body.dashboard-body:has(.dash-page--profile) .app-sidebar__profile,
body.dashboard-body--profile .app-sidebar__profile {
  border-color: var(--theme-accent-soft);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-accent) 10%, transparent);
}
body.dashboard-body:has(.dash-page--profile) .app-sidebar__avatar,
body.dashboard-body--profile .app-sidebar__avatar {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-accent) 35%, transparent);
}
body.dashboard-body:has(.dash-page--profile) .app-nav-link.is-active,
body.dashboard-body--profile .app-nav-link.is-active {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
body.dashboard-body:has(.dash-page--profile) .app-nav-link:hover,
body.dashboard-body--profile .app-nav-link:hover {
  border-color: var(--theme-accent-soft);
}
body.dashboard-body:has(.dash-page--profile) .app-topbar--pro::after,
body.dashboard-body--profile .app-topbar--pro::after {
  background: linear-gradient(90deg, transparent, var(--theme-accent), #fbbf24, #64748b, transparent);
  opacity: 0.85;
}
body.dashboard-body:has(.dash-page--profile) .app-sidebar__cta.btn-primary,
body.dashboard-body--profile .app-sidebar__cta.btn-primary {
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent));
  border-color: var(--theme-accent);
}
@media (max-width: 960px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { padding: 22px 20px; }
  .profile-hero__actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-page--profile .profile-hero__orb { animation: none; }
}
.dash-watermark { margin-bottom: 8px; }
.dash-ticket-list { list-style: none; padding: 0; margin: 0; }
.dash-ticket-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dash-hero--rich {
  position: relative;
  overflow: hidden;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end;
  padding: 24px 26px; border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--theme-primary-soft) 45%, var(--theme-primary-soft) 100%);
  background-size: 180% 180%;
  animation: shift 16s ease infinite;
  border: 1px solid var(--theme-primary-soft); box-shadow: 0 18px 48px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.dash-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}
.dash-hero__orb--a { width: 120px; height: 120px; background: var(--theme-primary-soft); top: -30px; right: 8%; opacity: 0.65; }
.dash-hero__orb--b { width: 80px; height: 80px; background: var(--theme-primary-soft); bottom: -20px; left: 35%; animation-delay: -3s; opacity: 0.7; }
.dash-hero__copy { max-width: 560px; position: relative; z-index: 1; }
.dash-hero__actions { position: relative; z-index: 1; }
.dash-quicktips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 18px;
}
.dash-quicktip {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--theme-primary-soft);
  color: var(--header-ink);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.dash-quicktip strong { color: var(--theme-primary); margin-right: 4px; }
.dash-reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-reveal.is-visible { transform: none; }
.dash-stat-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 8px;
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.dash-stat-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.dash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  border-color: var(--theme-primary-soft);
}
.dash-stat-value {
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-border-active));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-stat-value--text {
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--theme-primary);
  background: none;
}
.dash-stats--rich .dash-stat-card:nth-child(1) { animation-delay: 0.05s; }
.dash-stats--rich .dash-stat-card:nth-child(2) { animation-delay: 0.1s; }
.dash-stats--rich .dash-stat-card:nth-child(3) { animation-delay: 0.15s; }
.dash-stats--rich .dash-stat-card:nth-child(4) { animation-delay: 0.2s; }
.dash-panel--pro {
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  transition: box-shadow 0.3s ease;
}
.dash-panel--pro:hover { box-shadow: 0 18px 48px color-mix(in srgb, var(--theme-primary) 11%, transparent); }
.dash-empty__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--theme-primary-soft), #fff);
  border: 1px solid var(--theme-primary-soft);
  margin-bottom: 12px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.report-card--pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--theme-border-active), var(--theme-border-active), var(--theme-border-active));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: headerGlow 8s linear infinite;
}
.report-card--pro:hover::before,
.report-card--pro.is-open::before { opacity: 1; }
.dash-stats--rich .dash-stat-card--glow {
  background: linear-gradient(145deg, #fff, var(--theme-primary-soft));
  border-color: var(--theme-border-active);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.dash-grid--reports { align-items: start; }
.dash-panel--flush { padding-bottom: 12px; }
.dash-panel--account { background: linear-gradient(160deg, #fff, var(--theme-background)); }
.dash-panel__head--stack { flex-direction: column; align-items: stretch; gap: 14px; }
.dash-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-filter {
  border: 1px solid var(--indigo-mid); background: #fff; color: var(--indigo-deep);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dash-filter:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-primary) 12%, transparent); }
.dash-filter.is-active {
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}
.dash-empty--rich { padding: 48px 24px; }
.dash-empty__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.dash-aside-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-links--tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-links--tiles a {
  display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 650;
  font-size: 13px; color: var(--indigo-deep); background: var(--theme-background); border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.dash-links--tiles a:hover { background: #fff; border-color: var(--theme-border-active); }
.report-card-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.report-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(105deg, #ffffff 0%, var(--theme-background) 55%, var(--theme-primary-soft) 100%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 7%, transparent);
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
  animation: rise .45s ease both;
  overflow: hidden;
}
.report-card--horizontal {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.report-card--horizontal:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-primary) 12%, transparent);
  border-color: var(--theme-primary-soft);
}
.report-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr) minmax(120px, 0.75fr);
  gap: 14px 18px;
  align-items: center;
  padding: 12px 16px 10px;
}
.report-card__identity { min-width: 0; }
.report-card__title {
  margin: 4px 0 2px;
  font-size: 1.02rem;
  -webkit-line-clamp: 1;
}
.report-card__meta {
  margin: 0;
  font-size: 11px;
}
.report-card__metrics--inline {
  margin: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.report-card__metrics--inline .report-card__metric {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-card__aside {
  text-align: right;
  min-width: 0;
}
.report-card__foot--inline {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.report-card__lifetime--compact,
.report-card__payment-hint--compact {
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 999px;
}
.report-card__lifetime--compact {
  background: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #047857;
  font-weight: 750;
}
.report-card__payment-hint--compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.report-card__chips--inline {
  margin: 0;
  padding: 0 16px 8px;
  flex-wrap: wrap;
}
.report-card__action-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 12px 12px;
  border-top: 1px dashed color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), #fff);
}
.report-action-grid--rail {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.report-card__drawer-meta--inline {
  margin: 0;
  flex: 0 0 auto;
  grid-template-columns: auto;
  font-size: 10px;
  white-space: nowrap;
}
.report-action--compact {
  min-height: 44px;
  width: auto;
  min-width: 72px;
  padding: 8px 12px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.report-action--compact .report-action__label {
  font-size: 12px;
}
.report-action--compact .report-action__hint {
  display: none;
}
.report-action-grid--rail .report-action {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.report-action-grid--rail .report-action button {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.promoter-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.promoter-row__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.wizard-promoters-block .promoter-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.wizard-promoters-block .promoter-row:last-of-type {
  border-bottom: 0;
}
.dash-report-category__head {
  margin-bottom: 8px;
}
#project-overview .dash-panel__head h2 {
  font-size: 1.35rem;
}
.report-card--horizontal.report-card--purchased {
  background: linear-gradient(105deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%);
}
.report-card--purchased {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
}
.report-card--draft {
  border-color: color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
}
.report-card.is-filtered-out { display: none; }
.report-card--horizontal.is-open {
  display: flex;
  flex-direction: column;
  border-color: var(--theme-border-active);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-primary) 14%, transparent);
}
.report-card:not(.report-card--horizontal).is-open {
  border-color: var(--theme-border-active);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--theme-primary) 16%, transparent);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: stretch;
  background: linear-gradient(105deg, #ffffff 0%, var(--theme-background) 42%, var(--theme-primary-soft) 100%);
}
.report-card:not(.report-card--horizontal).is-open.report-card--purchased {
  background: linear-gradient(105deg, #ffffff 0%, #f0fdf4 38%, #ecfdf5 100%);
}
.report-card__summary {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 14px 16px 34px; font: inherit; color: inherit; position: relative;
}
.report-card__summary:focus-visible { outline: 3px solid var(--theme-border-active); outline-offset: 2px; border-radius: 20px; }
.report-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.report-card__ref { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.report-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.report-badge--draft { background: #fef3c7; color: #92400e; }
.report-badge--ok { background: #ecfdf5; color: #047857; }
.report-badge--prep { background: var(--theme-primary-soft); color: var(--theme-primary); }
.report-badge--warn { background: #ffe4e6; color: #9f1239; }
.report-card__title {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.report-card__meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.report-card__meta-dot { opacity: 0.5; }
.report-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.report-card__metric {
  font-size: 11px;
  line-height: 1.25;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #334155;
  max-width: 100%;
}
.report-card__metric--soft { background: rgba(241, 245, 249, 0.9); }
.report-card__metric em {
  display: block;
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin-bottom: 2px;
}
.report-card__updated { font-size: 10px; font-weight: 600; }
.report-card__drawer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
  margin: 0 0 10px;
}
.report-card__drawer-meta dt { margin: 0; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.report-card__drawer-meta dd { margin: 2px 0 0; font-weight: 650; color: var(--header-ink); }
.report-card__lifetime {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  color: #047857;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.report-card__payment-hint { margin: 0 0 8px; font-size: 11px; }
.dash-report-category { margin-bottom: 22px; }
.dash-report-category.is-filtered-out { display: none; }
.dash-report-category__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.dash-report-category__head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.dash-payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.dash-payment-tabs--inline { margin: 0; justify-content: flex-end; }
.dash-payment-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--theme-primary);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dash-payment-tab:hover { border-color: var(--theme-border-active); background: var(--theme-primary-soft); }
.dash-payment-tab.is-active {
  border-color: var(--theme-border-active);
  background: linear-gradient(145deg, var(--theme-primary-soft), #fff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.dash-payment-tab__count {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary-soft) 95%, transparent);
  font-variant-numeric: tabular-nums;
}
.dash-badge--pay-success { background: #d1fae5; color: #047857; }
.dash-badge--pay-pending { background: #fef3c7; color: #b45309; }
.dash-badge--pay-failed { background: #ffe4e6; color: #9f1239; }
.dash-table--payments time { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11px; }
.dash-table__sub { display: block; font-size: 11px; margin-top: 2px; }
.dash-table--compact th:nth-child(n+4),
.dash-table--compact td:nth-child(n+4) { font-size: 11px; }
.dash-code { font-size: 10px; }
.report-card__stats {
  margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px;
}
.report-card__stats dt { margin: 0; color: var(--muted); font-weight: 600; }
.report-card__stats dd { margin: 2px 0 0; font-weight: 700; color: var(--header-ink); line-height: 1.35; }
.dash-panel--pro.dash-panel--single {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-background) 100%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.dash-panel__head--stack h2 {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.report-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.report-card__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px;
}
.report-card__tier-price { font-weight: 800; color: var(--indigo-deep); }
.report-card__chevron {
  position: absolute; right: 16px; bottom: 16px; width: 10px; height: 10px;
  border-right: 2px solid var(--theme-border-active); border-bottom: 2px solid var(--theme-border-active);
  transform: rotate(-45deg); transition: transform .25s ease;
}
.report-card.is-open .report-card__chevron {
  right: auto;
  left: 16px;
  bottom: 50%;
  transform: translateY(50%) rotate(135deg);
}
@media (max-width: 640px) {
  .report-card.is-open {
    grid-template-columns: 1fr;
  }
  .report-card.is-open .report-card__summary {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
  }
  .report-card.is-open .report-card__chevron {
    left: auto;
    right: 16px;
    bottom: 16px;
    transform: rotate(-45deg);
  }
}
.report-card.is-open .report-card__summary {
  border-right: 1px solid color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
  padding-bottom: 16px;
  align-self: stretch;
}
.report-card__drawer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff);
  animation: reportDrawerSlide .32s ease both;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.report-card.is-open .report-card__drawer {
  border-top: 0;
  padding: 16px 18px 18px 14px;
}
@keyframes reportDrawerSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
.report-card__drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
}
.report-card__drawer-intro { flex: 1 1 160px; min-width: 0; }
.report-card__drawer-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.report-card.is-open .report-card__drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
}
.report-card.is-open .report-card__drawer-meta div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.report-card__lifetime--pill,
.report-card__payment-hint--pill {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.report-card__lifetime--pill {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.report-card__payment-hint--pill {
  background: #f8fafc;
  border: 1px solid var(--line);
}
.report-card__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--theme-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.report-card__close:hover {
  background: var(--theme-primary-soft);
  border-color: var(--theme-border-active);
  transform: scale(1.04);
}
.report-card__chips--drawer {
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.report-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.report-action-grid--horizontal {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.report-card.is-open .report-action-grid--horizontal .report-action {
  flex: 0 0 auto;
  width: min(152px, 28vw);
  min-height: 96px;
  scroll-snap-align: start;
  padding: 10px 12px;
}
.report-card.is-open .report-action__label { font-size: 13px; }
.report-card.is-open .report-action__hint {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.report-action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.report-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-primary) 12%, transparent); border-color: var(--theme-primary-soft); }
.report-action button {
  all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
}
.report-action--primary { border-color: var(--theme-border-active); background: linear-gradient(145deg, var(--theme-primary-soft), #fff); }
.report-action--download { border-color: #6ee7b7; background: linear-gradient(145deg, #ecfdf5, #fff); }
.report-action--pay { border-color: #fcd34d; background: linear-gradient(145deg, #fffbeb, #fff); }
.report-action--muted { opacity: 0.85; cursor: default; }
.report-action--muted:hover { transform: none; box-shadow: none; }
.report-action__icon { font-size: 14px; font-weight: 800; color: var(--indigo); }
.report-action__label { font-size: 14px; font-weight: 800; color: var(--ink); }
.report-action__hint { font-size: 11px; color: var(--muted); line-height: 1.35; }
.dash-table--rich tbody tr:hover { background: var(--theme-background); }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 88vw); transform: translateX(-105%);
    transition: transform .25s ease; box-shadow: 24px 0 48px color-mix(in srgb, var(--theme-primary-deep) 15%, transparent);
  }
  .app-shell.sidebar-open .app-sidebar { transform: translateX(0); }
  .app-topbar__menu { display: inline-flex; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-project-card { flex-direction: column; }
  .dash-project-card__actions { max-width: none; justify-content: flex-start; }
  .report-card__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .report-card__aside {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
  }
  .report-card__foot--inline {
    flex-direction: row;
    align-items: center;
  }
  .report-card.is-open {
    grid-template-columns: 1fr;
  }
  .report-card.is-open .report-card__summary {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
  }
  .report-card.is-open .report-card__chevron {
    left: auto;
    right: 16px;
    bottom: 16px;
    transform: rotate(-135deg);
  }
  .report-action-grid { grid-template-columns: 1fr; }
  .report-card.is-open .report-action-grid--horizontal {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .report-card.is-open .report-action-grid--horizontal .report-action {
    width: calc(50% - 5px);
    min-width: 0;
  }
  .app-topbar__new { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-hero--rich, .dash-hero__orb, .report-card--pro::before { animation: none !important; }
  .dash-reveal { transform: none; }
}
@media (max-width: 520px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-quicktips { flex-direction: column; }
  .app-main { padding: 16px; }
  .report-card__stats { grid-template-columns: 1fr; }
  .dash-links--tiles { grid-template-columns: 1fr; }
  .report-card__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .report-card__metrics--inline {
    flex-wrap: wrap;
  }
  .report-card__drawer-meta--inline {
    width: 100%;
  }
}

/* —— Pricing page —— */
.page-hero--pricing { padding-bottom: 28px; }
.price-pill--soft { background: linear-gradient(135deg, var(--theme-primary-soft), #fff); border: 1px solid var(--indigo-mid); }
.pricing-rollout { margin-bottom: 8px; line-height: 1.55; }
.pricing-grid-section { padding-top: 8px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid var(--indigo-mid);
  background: linear-gradient(165deg, #fff 0%, var(--theme-background) 100%);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px color-mix(in srgb, var(--theme-primary) 16%, transparent); }
.pricing-card--featured {
  border-color: var(--indigo-deep);
  background: linear-gradient(165deg, #fff 0%, var(--theme-primary-soft) 55%, var(--theme-primary-soft) 100%);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--theme-primary) 22%, transparent);
}
.pricing-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
}
.pricing-card__tier { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pricing-card__name { margin: 0; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.pricing-card__price { margin: 4px 0 0; font-size: 2.25rem; font-weight: 800; color: var(--indigo-deep); line-height: 1; }
.pricing-card__currency { font-size: 1.1rem; vertical-align: super; margin-right: 2px; }
.pricing-card__band { margin: 0; font-size: 12px; font-weight: 600; color: var(--theme-primary); }
.pricing-card__tagline { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; min-height: 3em; }
.pricing-card__list { margin: 8px 0 0; padding-left: 1.15rem; flex: 1; font-size: 13px; line-height: 1.55; color: var(--theme-primary); }
.pricing-card__list li { margin-bottom: 6px; }
.pricing-card__deliver { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip--soft { background: #fff; border: 1px solid var(--indigo-mid); font-size: 11px; padding: 4px 10px; }
.pricing-compare-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--indigo-mid); background: #fff; box-shadow: var(--shadow); }
.pricing-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.pricing-compare thead th { background: var(--indigo-deep); color: #fff; text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing-compare__row--featured td { background: var(--theme-primary-soft); }
.pricing-facts { margin-top: 20px; }
.pricing-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-border-active));
  color: #fff;
  border: none;
}
.pricing-cta__inner h2 { color: #fff; margin-top: 0; }
.pricing-cta__inner p { color: var(--theme-text-secondary); margin-bottom: 0; }
.pricing-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pricing-cta__inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.pricing-legal { margin-top: 16px; text-align: center; }
.pricing-intro { max-width: 62ch; margin-bottom: 20px; }
.page-hero--features .hero-actions,
.page-hero--contact .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.feature-pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-pillar { animation: rise .55s ease both; }
.feature-pillar--delay-0 { animation-delay: 0s; }
.feature-pillar--delay-1 { animation-delay: 0.08s; }
.feature-pillar--delay-2 { animation-delay: 0.16s; }
.feature-pillar--delay-3 { animation-delay: 0.24s; }
.feature-pillar--delay-4 { animation-delay: 0.32s; }
.feature-pillar--delay-5 { animation-delay: 0.4s; }
.feature-pillar--delay-6 { animation-delay: 0.48s; }
.feature-pillar--delay-7 { animation-delay: 0.56s; }
.feature-pillar--delay-8 { animation-delay: 0.64s; }
.feature-pillar--delay-9 { animation-delay: 0.72s; }
.feature-pillar--delay-10 { animation-delay: 0.8s; }
.feature-pillar--delay-11 { animation-delay: 0.88s; }
.feature-pillar--delay-12 { animation-delay: 0.96s; }
.feature-pillar__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary-soft), #fff);
  font-size: 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.feature-block__head { max-width: 720px; margin-bottom: 22px; }
.feature-detail-card { border-left: 4px solid var(--theme-border-active); }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.workflow-step { display: flex; gap: 14px; align-items: flex-start; }
.workflow-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.tier-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.tier-teaser__tier { margin: 0 0 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tier-teaser__price { margin: 0; font-weight: 800; color: var(--indigo-deep); font-size: 1.35rem; line-height: 1.2; }
.tier-teaser__name { margin: 6px 0 8px; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.tier-teaser__band { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--theme-primary); line-height: 1.45; }
.tier-teaser__band-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 2px; }
.tier-teaser__tagline { margin: 0; font-size: 13px; color: #475569; line-height: 1.45; }
.tier-teaser--featured { border: 2px solid var(--theme-border-active); box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 18%, transparent); }
.section-cta { margin-top: 24px; text-align: center; }
.pricing-matrix-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--indigo-mid); background: #fff; box-shadow: var(--shadow); }
.pricing-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.pricing-matrix thead th {
  background: var(--theme-background);
  padding: 12px 10px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--line);
  text-align: center;
  min-width: 100px;
}
.pricing-matrix thead th:first-child { text-align: left; min-width: 200px; }
.pricing-matrix__price { display: block; font-weight: 800; color: var(--indigo-deep); font-size: 12px; }
.pricing-matrix__name { display: block; font-size: 10px; font-weight: 650; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.pricing-matrix td { padding: 10px; border-bottom: 1px solid var(--line); text-align: center; }
.pricing-matrix td:first-child { text-align: left; font-weight: 600; color: var(--header-ink); }
.pricing-matrix__yes { color: #047857; font-weight: 800; font-size: 16px; }
.pricing-matrix__no { color: var(--theme-text-secondary); }
.page-hero--contact {
  padding-bottom: 28px;
  background:
    radial-gradient(640px 220px at 0% 0%, color-mix(in srgb, var(--theme-border-active) 22%, transparent), transparent 58%),
    radial-gradient(520px 200px at 100% 20%, color-mix(in srgb, var(--theme-primary-soft) 28%, transparent), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--theme-primary-soft));
}
.contact-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.contact-hero-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--theme-primary-soft);
  color: var(--theme-primary);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.contact-details-band {
  margin: -8px auto 24px;
  position: relative;
  z-index: 2;
}
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.contact-detail-card {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(165deg, #ffffff 0%, var(--theme-primary-soft) 100%);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--theme-primary) 10%, transparent);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: rise .55s ease both;
}
.contact-detail-card:nth-child(2) { animation-delay: .06s; }
.contact-detail-card:nth-child(3) { animation-delay: .12s; }
.contact-detail-card:nth-child(4) { animation-delay: .18s; }
.contact-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--theme-primary) 16%, transparent);
  border-color: var(--theme-primary-soft);
}
.contact-detail-card--featured {
  background: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-border-active) 52%, var(--theme-border-active) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 20px 48px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}
.contact-detail-card--featured .contact-detail-card__lead,
.contact-detail-card--featured .contact-detail-card__meta { color: color-mix(in srgb, var(--theme-text-secondary) 92%, transparent); }
.contact-detail-card--featured .contact-detail-card__title { color: #fff; }
.contact-detail-card--featured .contact-detail-card__value { color: #fff; }
.contact-detail-card--featured .contact-detail-card__value:hover { color: var(--theme-text-secondary); }
.contact-detail-card--featured .contact-detail-card__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}
.contact-detail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 10px;
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.contact-detail-card__title {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  font-weight: 800;
}
.contact-detail-card__lead {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.contact-detail-card__value {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--header-ink);
  word-break: break-word;
  line-height: 1.35;
}
.contact-detail-card__value--link { font-weight: 750; color: var(--theme-primary); }
.contact-detail-card__meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.contact-detail-card__links {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.contact-guidance {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 4px solid var(--theme-border-active);
  background: linear-gradient(90deg, var(--theme-primary-soft), #fff);
}
.contact-guidance__title {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--header-ink);
}
.contact-guidance__list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--header-ink);
  line-height: 1.5;
}
.contact-form-section {
  margin-bottom: 28px;
  padding-bottom: 8px;
}
.contact-form-shell {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--theme-primary) 12%, transparent);
  background:
    radial-gradient(480px 180px at 100% 0%, color-mix(in srgb, var(--theme-primary-soft) 20%, transparent), transparent 55%),
    #fff;
}
.contact-form-head { margin-bottom: 22px; max-width: 56ch; }
.contact-form-head h2 { margin: 4px 0 8px; font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--header-ink); }
.contact-form-head__lede { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.contact-form .field:last-of-type { margin-bottom: 0; }
.contact-form__note { font-size: 13px; color: var(--muted); margin: 14px 0 16px; }
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.contact-success p { margin: 8px 0 0; }
@media (max-width: 960px) {
  .contact-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .contact-details-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-actions .btn { width: 100%; justify-content: center; }
}
.page-hero--about {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 56px) 0 32px;
  background:
    radial-gradient(720px 280px at 8% 0%, color-mix(in srgb, var(--theme-border-active) 26%, transparent), transparent 58%),
    radial-gradient(600px 240px at 92% 30%, color-mix(in srgb, var(--theme-primary-soft) 32%, transparent), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--theme-primary-soft) 70%, var(--theme-primary-soft) 100%);
  border-bottom: 1px solid var(--theme-primary-soft);
}
.page-hero--about__inner { position: relative; z-index: 1; }
.about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.about-orb--a { width: 140px; height: 140px; background: var(--theme-primary-soft); top: 8%; right: 10%; opacity: 0.75; }
.about-orb--b { width: 100px; height: 100px; background: var(--theme-primary-soft); bottom: 5%; left: 6%; animation-delay: -2.5s; opacity: 0.85; }
.about-orb--c { width: 64px; height: 64px; background: var(--theme-border-active); top: 42%; right: 38%; animation-delay: -4s; opacity: 0.5; }
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 20px;
  max-width: 720px;
}
.about-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 10%, transparent);
  animation: rise 0.65s ease both;
}
.about-stat:nth-child(2) { animation-delay: 0.08s; }
.about-stat:nth-child(3) { animation-delay: 0.16s; }
.about-stat strong {
  display: block;
  font-size: 15px;
  color: var(--theme-primary);
  margin-bottom: 4px;
}
.about-stat span { font-size: 12px; color: var(--muted); font-weight: 650; }
.page-hero--about .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.about-pillars { margin: 28px auto 8px; }
.about-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-pillar {
  position: relative;
  padding: 22px 20px;
  border-radius: 22px;
  background: linear-gradient(165deg, #fff 0%, #f8f7ff 100%);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 9%, transparent);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
  overflow: hidden;
}
.about-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--theme-border-active) 12%, transparent) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.about-pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--theme-primary) 16%, transparent);
  border-color: var(--theme-primary-soft);
}
.about-pillar:hover::after { transform: translateX(120%); }
.about-pillar--accent {
  background: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-border-active) 55%, var(--theme-border-active) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--theme-text-secondary);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}
.about-pillar--accent h2,
.about-pillar--accent p,
.about-pillar--accent a { color: #fff; }
.about-pillar--accent p { color: color-mix(in srgb, var(--theme-text-secondary) 92%, transparent); }
.about-pillar--accent .about-pillar__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}
.about-pillar h2 { margin: 0 0 10px; font-size: 1.15rem; }
.about-pillar p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--header-ink); }
.about-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
  margin-bottom: 12px;
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.about-mission { padding-top: 28px; }
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  box-shadow: var(--shadow);
}
.about-panel--do {
  border-top: 4px solid var(--theme-border-active);
  background: linear-gradient(180deg, #fff 0%, var(--theme-primary-soft) 100%);
}
.about-panel--dont {
  border-top: 4px solid var(--theme-border-active);
  background: linear-gradient(180deg, #fff 0%, var(--theme-primary-soft) 100%);
}
.about-panel h2 { margin: 6px 0 12px; font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.about-panel p { margin: 0 0 12px; color: var(--header-ink); line-height: 1.65; }
.about-panel p:last-child { margin-bottom: 0; }
.about-section-head { max-width: 640px; margin-bottom: 20px; }
.about-section-head h2 { margin: 4px 0 0; }
.about-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.about-process-step {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.about-process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--theme-primary) 14%, transparent);
}
.about-process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  margin-bottom: 10px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}
.about-process-step h3 { margin: 0 0 6px; font-size: 1rem; color: var(--header-ink); }
.about-process-step p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.about-values { margin: 8px auto 24px; }
.about-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.about-value {
  padding: 16px 14px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--theme-primary-soft), #fff);
  border: 1px solid var(--theme-primary-soft);
  transition: transform 0.25s ease;
}
.about-value:hover { transform: scale(1.03); }
.about-value span { font-size: 22px; display: block; margin-bottom: 8px; }
.about-value strong { display: block; font-size: 13px; color: var(--header-ink); margin-bottom: 6px; }
.about-value p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.about-business-card {
  border-left: 4px solid var(--theme-border-active);
  padding: clamp(20px, 3vw, 28px);
}
.about-business-card__head h2 { margin: 4px 0 0; }
.about-business-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 18px 0 0;
}
.about-business-dl dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  font-weight: 800;
  margin-bottom: 4px;
}
.about-business-dl dd { margin: 0; font-size: 14px; color: var(--header-ink); line-height: 1.5; }
.about-cta { margin-bottom: 32px; }
.about-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--theme-primary-deep) 0%, var(--theme-primary) 45%, var(--theme-border-active) 100%);
  background-size: 200% 200%;
  animation: shift 14s ease infinite;
  color: #fff;
  box-shadow: 0 24px 56px color-mix(in srgb, var(--theme-primary-deep) 35%, transparent);
}
.about-cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.about-cta-band p { margin: 0; color: var(--theme-text-secondary); max-width: 42ch; line-height: 1.55; }
.about-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.about-cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.about-reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-reveal.is-visible { transform: none; }
@media (max-width: 960px) {
  .about-hero-stats { grid-template-columns: 1fr; }
  .about-pillar-grid,
  .about-mission-grid,
  .about-process-steps,
  .about-value-grid { grid-template-columns: 1fr 1fr; }
  .about-business-dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-pillar-grid,
  .about-mission-grid,
  .about-process-steps,
  .about-value-grid { grid-template-columns: 1fr; }
  .about-cta-actions { width: 100%; }
  .about-cta-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .about-orb, .about-cta-band, .about-stat { animation: none !important; }
  .about-reveal { transform: none; }
}
.page-hero--samples { padding-bottom: 24px; }
.sample-hero-stats { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.sample-stat {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}
.sample-stat strong { color: var(--indigo-deep); }
.sample-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sample-jump__link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--indigo);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--indigo-mid);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sample-jump__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 15%, transparent); }
.sample-disclaimer { margin-bottom: 8px; }
.sample-category__head { max-width: 640px; margin-bottom: 22px; }
.sample-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sample-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  transition: transform .28s ease, box-shadow .28s ease;
  animation: rise .5s ease both;
}
.sample-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px color-mix(in srgb, var(--theme-primary) 14%, transparent); }
.sample-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sample-card__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.sample-card__tier {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  max-width: 55%;
  line-height: 1.35;
}
.sample-card__title { margin: 0; font-size: 1.25rem; color: var(--ink); }
.sample-card__activity { margin: 0; font-size: 14px; font-weight: 650; color: var(--theme-primary); }
.sample-card__blurb { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1; }
.sample-card__meta {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.sample-card__meta div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.sample-card__meta dt { margin: 0; color: var(--muted); font-weight: 600; }
.sample-card__meta dd { margin: 0; color: var(--ink); font-weight: 650; }
.sample-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sample-card__sections {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--theme-primary);
}
.sample-card__sections li { margin-bottom: 4px; }
.sample-card__downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sample-card__pricing-note { margin: 0; font-size: 12px; color: var(--muted); }
.sample-tier-table-wrap { overflow-x: auto; padding: 0; }
.sample-tier-table { width: 100%; font-size: 14px; margin: 0; }
.sample-tier-table th { text-align: left; white-space: nowrap; }
.sample-tier-table__dl { white-space: nowrap; }
.sample-tier-table__dl a { margin-right: 12px; font-weight: 650; }
@media (max-width: 1024px) {
  .sample-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .feature-pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .tier-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-pillar-grid,
  .workflow-steps,
  .tier-teaser-grid { grid-template-columns: 1fr; }
  .context-nav__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Formula dictionary */
.formulas-hero { background: linear-gradient(135deg, var(--theme-primary-soft) 0%, var(--theme-primary-soft) 48%, #fff 100%); border-bottom: 1px solid var(--theme-primary-soft); }
.formulas-hero__inner { padding: 32px 0 28px; max-width: 720px; }
.formulas-hero__lead { font-size: 15px; line-height: 1.55; color: #4b5563; margin-top: 8px; }
.formulas-page { padding-bottom: 48px; }
.formulas-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; position: sticky; top: 12px; z-index: 2; padding: 12px 0; background: linear-gradient(180deg, rgba(255,255,255,0.98) 70%, transparent); }
.formulas-jump__link {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--theme-primary-soft); color: var(--theme-primary); text-decoration: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.formulas-jump__link:hover { background: var(--theme-primary-soft); border-color: var(--theme-border-active); }
.formulas-category { margin-bottom: 40px; }
.formulas-category__head h2 { font-size: 1.25rem; margin-bottom: 6px; color: var(--header-ink); }
.formulas-category__head p { color: #6b7280; font-size: 14px; max-width: 62ch; margin-bottom: 16px; }
.formulas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.formula-card {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--theme-primary-soft);
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.formula-card__name { font-size: 15px; margin: 0 0 10px; color: var(--header-ink); }
.formula-card__expr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; color: var(--theme-primary); background: var(--theme-primary-soft); padding: 10px 12px; border-radius: 10px; margin: 0 0 10px; }
.formula-card__detail { font-size: 13px; line-height: 1.5; color: #64748b; margin: 0; }
.liability-plan { margin-top: 20px; }
.liability-row { border-top: 1px dashed var(--theme-primary-soft); padding-top: 16px; margin-top: 12px; }
.liability-row:first-of-type { border-top: none; padding-top: 0; }
.term-assets-block { margin-top: 16px; border: 1px solid var(--theme-primary-soft); }
.term-asset-row { border-top: 1px dashed var(--theme-primary-soft); padding-top: 14px; margin-top: 10px; }
.term-asset-importance-preview { font-size: 12px; line-height: 1.45; color: #475569; background: #f8fafc; padding: 10px 12px; border-radius: 10px; margin: 8px 0 0; }

/* ——— Wizard UI (compact type, motion, polish) ——— */
.wizard-shell--pro {
  --wizard-progress: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--header-ink);
}
.wizard-shell--pro.is-ready .wizard-hero--pro {
  animation: wizardHeroIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-entry-progress {
  margin: 0 0 18px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(134, 239, 172, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 244, 0.92) 100%);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.wizard-entry-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wizard-entry-progress__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803d;
}
.wizard-entry-progress__pct {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #166534;
  line-height: 1;
}
.wizard-entry-progress__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(187, 247, 208, 0.65);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(22, 101, 52, 0.1);
}
.wizard-entry-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: #86efac;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.wizard-entry-progress__track-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #14532d;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.wizard-entry-progress__segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px 6px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .wizard-entry-progress__seg {
    height: auto;
    min-height: 6px;
    padding-bottom: 18px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  .wizard-entry-progress__seg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    border-radius: 999px;
    background: rgba(187, 247, 208, 0.55);
  }
  .wizard-entry-progress__seg-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    z-index: 1;
  }
  .wizard-entry-progress__seg-label {
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #16a34a;
    text-align: center;
  }
  .wizard-entry-progress__seg.is-done .wizard-entry-progress__seg-label {
    color: #15803d;
  }
}
.wizard-entry-progress__seg {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(187, 247, 208, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.wizard-entry-progress__seg:hover,
.wizard-entry-progress__seg:focus-visible {
  box-shadow: 0 0 0 2px rgba(134, 239, 172, 0.85);
  outline: none;
}
.wizard-entry-progress__seg-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #86efac;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.wizard-entry-progress__seg.is-done .wizard-entry-progress__seg-fill {
  background: #4ade80;
}
.wizard-entry-progress__seg-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wizard-shell--pro.is-ready .wizard-entry-progress {
  animation: wizardHeroIn 0.55s 0.04s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-entry-progress__segments--groups {
  display: none;
}
.wizard-group-cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 12px;
  position: sticky;
  top: 8px;
  z-index: 40;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.wizard-group-card {
  flex: 1 1 0;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text-primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 6%, transparent);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.wizard-group-card[hidden] {
  display: none !important;
}
.wizard-group-card:hover,
.wizard-group-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--theme-border-active);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  outline: none;
}
.wizard-group-card.is-active {
  border-color: var(--theme-border-active);
  background: var(--theme-primary-soft);
  box-shadow: var(--theme-shadow);
}
.wizard-group-card.is-complete:not(.is-active) {
  border-color: var(--theme-border);
  background: var(--theme-surface);
}
.wizard-group-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wizard-group-card__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 45%, transparent);
}
.wizard-group-card.is-active .wizard-group-card__num {
  background: var(--theme-primary);
  color: #fff;
  border-color: var(--theme-primary);
}
.wizard-group-card.is-complete:not(.is-active) .wizard-group-card__num {
  background: #d1fae5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
}
.wizard-group-card__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}
.wizard-group-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.28;
  color: var(--header-ink);
}
.wizard-group-card__range {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wizard-group-card__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
  margin-top: auto;
}
.wizard-group-card__status {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #64748b;
}
.wizard-group-card__status[data-state="active"] {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
}
.wizard-group-card__status[data-state="started"] {
  background: #fef3c7;
  color: #b45309;
}
.wizard-group-card__status[data-state="complete"] {
  background: #d1fae5;
  color: #047857;
}
.wizard-group-card__pct {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--theme-primary);
}
.wizard-group-card.is-complete:not(.is-active) .wizard-group-card__pct {
  color: #059669;
}
@media (max-width: 900px) {
  .wizard-group-card {
    flex: 0 0 auto;
    min-width: 118px;
    max-width: 148px;
  }
}
.wizard-shell--pro.is-ready .wizard-group-cards {
  animation: wizardHeroIn 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-shell--pro.is-ready .wizard-progress--pro {
  animation: wizardHeroIn 0.55s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-subsection-panel.is-section-complete {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.12);
}
.wizard-sub-acc-panel.is-sub-complete > .wizard-sub-acc-trigger {
  background: linear-gradient(90deg, rgba(209, 250, 229, 0.55), transparent);
}
.wizard-sub-acc-panel.is-section-complete > .wizard-sub-acc-trigger .wizard-sub-acc-badge[data-state="complete"] {
  background: #d1fae5;
  color: #047857;
}
.report-download-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.report-download-modal[hidden] {
  display: none !important;
}
.report-download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.report-download-modal__panel {
  position: relative;
  width: min(480px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 25%, transparent);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-primary-deep) 22%, transparent);
  text-align: center;
}
.report-download-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.report-download-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  font-size: 1.35rem;
}
.report-download-modal__meta {
  margin: 1rem 0;
  text-align: left;
  display: grid;
  gap: 0.65rem;
}
.report-download-modal__meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0;
}
.report-download-modal__meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}
.report-download-modal__meta code {
  font-size: 0.85em;
  font-weight: 500;
}
.report-download-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.report-download-modal__lead {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}
.historical-preview-modal__panel {
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: auto;
  text-align: left;
}
.historical-preview-years {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.historical-import-zone {
  margin-bottom: 1rem;
  border: 1px dashed color-mix(in srgb, var(--theme-border-active) 45%, transparent);
}
.hist-preview-table input {
  width: 100%;
  font-size: 0.9rem;
}
.fsa-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.fsa-modal[hidden] { display: none !important; }
.fsa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.fsa-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 96vw);
  max-height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0f172a;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}
.fsa-modal__head,
.wizard-shell .fsa-modal__head h2,
.fsa-modal__eyebrow,
.fsa-modal__lead {
  color: var(--theme-on-deep, #f8fafc) !important;
}
.fsa-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 16px;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary) 62%, var(--theme-border-active));
}
.fsa-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fsa-modal__head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.fsa-modal__lead { margin: 0; max-width: 46rem; font-size: 13px; line-height: 1.45; }
.fsa-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 24px;
  overflow: auto;
  background: #f8fafc;
  color: #0f172a;
}
.fsa-result[hidden],
.fsa-upload[hidden],
.fsa-sheet[hidden] { display: none !important; }
.fsa-sheet { display: block; color: #0f172a; }
.fsa-empty,
.fsa-alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #111;
  background: #fff7ed;
  color: #111;
  font-weight: 700;
}
.fsa-alert[hidden] { display: none !important; }
.fsa-extracted {
  margin: 0 0 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
}
.fsa-extracted summary {
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  background: #111;
  color: #fff;
}
.fsa-extracted pre {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  color: #111;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
}
.fsa-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.fsa-drop {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1.5px dashed var(--theme-primary, #4338ca);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.fsa-drop.is-hot { background: var(--theme-primary-soft, #eef2ff); }
.fsa-drop__title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--header-ink, #0f172a); }
.fsa-drop__hint, .fsa-drop__file { margin: 0; color: var(--theme-text-secondary, #64748b); font-size: 13px; }
.fsa-upload { display: grid; gap: 12px; justify-items: start; }
.fsa-years { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.fsa-year-card {
  min-width: 180px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #111111;
  border-radius: 12px;
}
.fsa-year-card label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.fsa-year-card input,
.fsa-year-card select {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #111111;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #111;
}
.fsa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.fsa-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-primary-soft, #eef2ff);
  color: var(--header-ink, #0f172a);
  font-size: 12px;
  font-weight: 700;
}
.fsa-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fsa-tab {
  border: 1px solid var(--theme-border, #e5e7eb);
  background: #fff;
  color: var(--header-ink, #0f172a);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
.fsa-tab.is-active {
  background: var(--theme-primary, #312e81);
  color: var(--theme-on-deep, #fff);
  border-color: transparent;
}
.fsa-sheet__title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--header-ink, #0f172a);
}
.fsa-table-wrap { overflow: auto; margin-bottom: 12px; }
.fsa-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}
.fsa-table th,
.fsa-table td {
  border: 1px solid #111111;
  padding: 7px 8px;
  vertical-align: middle;
  text-align: left;
}
.fsa-table thead th {
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}
.fsa-table tbody th {
  background: #f3f4f6;
  color: #111111;
  font-weight: 700;
  width: 34%;
}
.fsa-table td.num, .fsa-table td:not(:first-child) { text-align: right; }
.fsa-table tbody tr:nth-child(even) td { background: #f8fafc; }
.fsa-table tr.fsa-total td,
.fsa-table tr.fsa-total th { background: #e5e7eb; font-weight: 800; }
.fsa-table input,
.fsa-table select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
.fsa-table thead input,
.fsa-table thead select { color: #fff; }
.fsa-table thead select option { color: #111; }
.wizard-shell--pro.is-ready .wizard-main {
  animation: wizardHeroIn 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-shell--pro.is-ready .wizard-step-nav {
  animation: wizardHeroIn 0.55s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wizardHeroIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.wizard-hero--pro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 45%, transparent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, color-mix(in srgb, var(--theme-primary-soft) 88%, transparent) 48%, color-mix(in srgb, var(--theme-primary-soft) 92%, transparent) 100%);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--theme-primary) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}
.wizard-hero--pro::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-border-active) 35%, transparent), transparent 70%);
  pointer-events: none;
  animation: wizardOrb 8s ease-in-out infinite alternate;
}
@keyframes wizardOrb {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-12px, 8px) scale(1.08); opacity: 1; }
}
.wizard-hero__inner { position: relative; z-index: 1; flex: 1 1 280px; min-width: 0; }
.wizard-hero__kicker { margin: 0 0 4px; font-size: 10px; letter-spacing: 0.14em; }
.wizard-shell--pro .wizard-hero h1 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.25;
}
.wizard-hero__lede {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--header-ink);
  max-width: 52rem;
}
.wizard-shell--pro .save-state--pill {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.wizard-shell--pro .save-state--pill:not(.save-state--error) {
  color: var(--theme-text-secondary);
}
.wizard-shell--pro .save-state--pill.save-state--ok {
  color: var(--status-success);
  border-color: var(--status-success);
  background: var(--status-success-bg);
}
.wizard-shell--pro .save-state--pill.save-state--error {
  color: var(--status-error);
  border-color: var(--status-error);
  background: var(--status-error-bg);
}
.wizard-progress--pro::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  height: 3px;
  width: calc((100% - 16%) * var(--wizard-progress, 0));
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 999px;
  background: var(--theme-accent);
  background-size: 200% 100%;
  animation: wizardProgressShine 3s linear infinite;
  box-shadow: 0 0 14px color-mix(in srgb, var(--theme-primary) 35%, transparent);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wizardProgressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.wizard-shell--pro .wizard-progress-dot {
  font-size: 11px;
  padding: 8px 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.wizard-shell--pro .wizard-progress-dot.active {
  transform: scale(1.06);
  animation: wizardDotPulse 2s ease-in-out infinite;
}
@keyframes wizardDotPulse {
  0%, 100% { box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary) 35%, transparent); }
  50% { box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 50%, transparent); }
}
.wizard-shell--pro .wizard-progress-labels {
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.wizard-shell--pro .wizard-step {
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 40%, transparent);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.92) 55%, color-mix(in srgb, var(--theme-primary-soft) 85%, transparent) 100%);
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--theme-primary) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.wizard-shell--pro .wizard-step.active {
  animation: wizardStepIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wizardStepIn {
  from { opacity: 0; transform: translateY(12px) scale(0.992); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}
.wizard-shell--pro .wizard-step > h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
}
.wizard-shell--pro .wizard-step h3,
.wizard-shell--pro .wizard-section > h3,
.wizard-shell--pro .wizard-section.card-inset > h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-primary-hover);
  margin: 16px 0 8px;
}
.wizard-shell--pro .wizard-step h4,
.wizard-shell--pro .re-subhead {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-primary);
}
.wizard-shell--pro label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--header-ink);
}
.wizard-shell--pro input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.wizard-shell--pro textarea {
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 10px;
}
.wizard-shell--pro .wizard-form select,
.wizard-shell--pro .select-wizard {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  padding: 8px 36px 8px 11px;
  border-radius: 10px;
}
.wizard-shell--pro .field { margin-bottom: 11px; gap: 4px; }
.wizard-shell--pro .field-hint {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}
.wizard-shell--pro .field-hint.accent {
  font-size: 11px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}
.wizard-shell--pro .card-inset {
  padding: 14px 16px;
  margin: 12px 0 16px;
  border-radius: 14px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.wizard-shell--pro .wizard-step.active .card-inset,
.wizard-shell--pro .wizard-step.active .wizard-section.card-inset {
  animation: wizardInsetIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wizard-shell--pro .wizard-step.active .card-inset:nth-of-type(1) { animation-delay: 0.04s; }
.wizard-shell--pro .wizard-step.active .card-inset:nth-of-type(2) { animation-delay: 0.08s; }
.wizard-shell--pro .wizard-step.active .card-inset:nth-of-type(3) { animation-delay: 0.12s; }
.wizard-shell--pro .wizard-step.active .card-inset:nth-of-type(4) { animation-delay: 0.16s; }
.wizard-shell--pro .wizard-step.active .card-inset:nth-of-type(n+5) { animation-delay: 0.2s; }
@keyframes wizardInsetIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.wizard-shell--pro .card-inset:hover {
  border-color: color-mix(in srgb, var(--theme-border-active) 55%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 36px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.wizard-shell--pro .wizard-step-nav {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.wizard-shell--pro .wizard-step-pill {
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.wizard-shell--pro .wizard-step-pill strong {
  font-size: 11.5px;
  font-weight: 750;
}
.wizard-shell--pro .wizard-step-pill span {
  font-size: 10px;
}
.wizard-shell--pro .wizard-step-pill.active {
  background: linear-gradient(145deg, var(--theme-primary-soft), #fff);
  border-color: var(--theme-border-active);
  transform: translateY(-1px);
}
.wizard-shell--pro .wizard-nav {
  margin-top: 20px;
  padding-top: 14px;
}
.wizard-shell--pro .btn {
  font-size: 12px;
  padding: 9px 16px;
}
.wizard-shell--pro .template-picker__card-title { font-size: 10px; }
.wizard-shell--pro .template-picker__card-desc { font-size: 11px; }
.wizard-shell--pro .income-template-badge { font-size: 10px; padding: 6px 12px; }
.wizard-shell--pro .eligible-loan-summary h3 { font-size: 0.8125rem; }
.wizard-shell--pro .eligible-meta__tab strong { font-size: 13px; }
.wizard-shell--pro .eligible-emi { font-size: 1.05rem !important; }
.wizard-shell--pro .re-cost-total { font-size: 0.8125rem; padding: 10px 12px; }

/* ——— Wizard: single-page accordion ——— */
.wizard-shell--accordion .wizard-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wizard-shell--accordion.is-ready .wizard-accordion-panel {
  animation: wizardPanelIn 0.55s calc(var(--accordion-i, 0) * 0.07s) cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes wizardPanelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.wizard-shell--accordion .wizard-step {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wizard-shell--accordion .wizard-step:not(.is-expanded) {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.wizard-shell--accordion .wizard-step.is-expanded {
  box-shadow: 0 22px 56px color-mix(in srgb, var(--theme-primary) 14%, transparent);
  border-color: color-mix(in srgb, var(--theme-border-active) 55%, transparent);
  transform: translateY(-1px);
}
.wizard-shell--accordion .wizard-step.is-complete:not(.is-expanded) {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.5) 100%);
}
.wizard-accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px 14px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.25s ease;
}
.wizard-accordion-trigger:hover {
  background: color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
}
.wizard-accordion-step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-primary);
  background: linear-gradient(135deg, var(--theme-primary-soft), #fff);
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 12%, transparent);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.wizard-step.is-expanded .wizard-accordion-step-num {
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}
.wizard-step.is-complete:not(.is-expanded) .wizard-accordion-step-num {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  border-color: transparent;
}
.wizard-accordion-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wizard-accordion-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--header-ink);
}
.wizard-accordion-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.wizard-step.is-expanded .wizard-accordion-hint {
  color: var(--theme-primary);
}
.wizard-accordion-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.wizard-accordion-badge[data-state="active"] {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border-color: var(--theme-primary-soft);
  animation: wizardBadgePulse 2s ease-in-out infinite;
}
.wizard-accordion-badge[data-state="complete"] {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
@keyframes wizardBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-border-active) 25%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--theme-border-active) 0%, transparent); }
}
.wizard-accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  margin-right: 4px;
}
.wizard-step.is-expanded .wizard-accordion-chevron {
  transform: rotate(-135deg) translateY(-2px);
}
.wizard-accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  border-top: 0 solid color-mix(in srgb, var(--theme-primary-soft) 60%, transparent);
  pointer-events: none;
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    padding 0.35s ease,
    border-top-width 0.2s ease;
}
.wizard-step.is-expanded .wizard-accordion-body {
  max-height: min(12000px, var(--accordion-body-max, 12000px));
  opacity: 1;
  padding: 0 16px 18px;
  border-top-width: 1px;
  pointer-events: auto;
}
.wizard-step.is-expanded .wizard-accordion-body > :first-child {
  animation: accordionBodyIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes accordionBodyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.wizard-shell--accordion .wizard-step > h2 {
  display: none;
}
.wizard-step-nav--accordion {
  margin: 0 0 12px;
  position: sticky;
  top: 8px;
  z-index: 40;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  max-height: min(42vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
}
.wizard-step-nav--grouped {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  overflow-x: hidden;
}
.wizard-step-group[hidden] {
  display: none !important;
}
.wizard-step-group__title {
  margin: 0 0 4px 2px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--theme-primary);
  line-height: 1.35;
}
.wizard-step-group__pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.wizard-step-nav--compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  padding: 6px 8px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.wizard-step-nav--compact.wizard-step-nav--grouped {
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-x: hidden;
}
.wizard-step-nav--compact .wizard-step-pill {
  flex: 0 0 auto;
  width: min(148px, 38vw);
  scroll-snap-align: start;
}
.wizard-step-pill[hidden] {
  display: none !important;
}
.wizard-step-nav--accordion .wizard-step-pill {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wizard-step-nav--compact .wizard-step-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  padding: 5px 8px 5px 6px;
  border-radius: 10px;
  min-height: 0;
  font: inherit;
}
.wizard-step-nav--compact .wizard-step-pill__num {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  margin-bottom: 0;
  font-size: 9px;
  border-radius: 6px;
}
.wizard-step-nav--compact .wizard-step-pill__title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--header-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.wizard-step-nav--compact .wizard-step-pill__status {
  display: block !important;
  grid-column: 2;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #64748b;
}
.wizard-step-nav--compact .wizard-step-pill__status[data-state="complete"] {
  color: #047857;
}
.wizard-step-nav--compact .wizard-step-pill__status[data-state="active"] {
  color: var(--theme-primary);
}
.wizard-step-nav--compact .wizard-step-pill__hint {
  display: none;
}
.wizard-step-nav--compact .wizard-step-pill:hover .wizard-step-pill__hint,
.wizard-step-nav--compact .wizard-step-pill:focus-visible .wizard-step-pill__hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--header-ink);
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 15%, transparent);
  pointer-events: none;
}
.wizard-step-nav--compact .wizard-step-pill.active,
.wizard-step-nav--compact .wizard-step-pill:hover {
  transform: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.wizard-step-nav--compact .wizard-step-pill.is-complete {
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}
.wizard-shell--pro .wizard-step-nav--compact .wizard-step-pill {
  padding: 5px 8px 5px 6px;
  border-radius: 10px;
  transform: none;
}
.wizard-shell--pro .wizard-step-nav--compact .wizard-step-pill.active {
  transform: none;
  background: #ecfdf5;
}
.wizard-step-nav--accordion .wizard-step-pill.is-complete:not(.active) {
  border-color: #86efac;
  background: #ecfdf5;
}
.wizard-step-nav--accordion .wizard-step-pill.is-complete.active {
  background: #ecfdf5;
  border-color: var(--theme-border-active);
}
.wizard-step-nav--accordion .wizard-step-pill.is-complete.active strong {
  color: var(--header-ink);
}
.wizard-step-nav--accordion .wizard-step-pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  margin-bottom: 4px;
}
.wizard-progress-dot {
  cursor: pointer;
  font: inherit;
  appearance: none;
}
.wizard-progress-label-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.wizard-progress-labels li.is-complete .wizard-progress-label-btn {
  color: #059669;
}
.wizard-shell--accordion .save-state--pulse {
  animation: savePulse 0.7s ease;
}
@keyframes savePulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 8%, transparent); }
  40% { transform: scale(1.04); box-shadow: 0 8px 22px rgba(16, 185, 129, 0.25); border-color: #6ee7b7; color: #047857; }
  100% { transform: scale(1); }
}
.wizard-shell--accordion .wizard-nav {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 255, 0.95) 24%);
  padding-bottom: 8px;
  z-index: 5;
}
@media (max-width: 900px) {
  .wizard-step-nav--accordion:not(.wizard-step-nav--compact) {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .wizard-step-nav--accordion:not(.wizard-step-nav--compact) .wizard-step-pill {
    flex: 0 0 min(220px, 78vw);
    scroll-snap-align: start;
  }
  .wizard-step-nav--compact .wizard-step-pill {
    width: min(132px, 44vw);
  }
  .wizard-accordion-trigger {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .wizard-accordion-badge,
  .wizard-accordion-chevron {
    grid-column: 2;
  }
  .wizard-accordion-chevron {
    justify-self: end;
    grid-row: 1;
  }
  .wizard-accordion-badge {
    grid-row: 2;
    justify-self: start;
  }
  .wizard-progress-labels { display: none; }
}
@media (max-width: 520px) {
  .wizard-shell--accordion .wizard-accordion-body {
    padding: 0 12px 14px;
  }
  .wizard-accordion-trigger {
    padding: 12px;
    gap: 10px;
  }
}

/* Business setup — nested subsection accordions (step 1) */
.wizard-basics-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.wizard-subsection-panel {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 5%, transparent) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wizard-sub-acc-panel.is-sub-expanded {
  border-color: color-mix(in srgb, var(--theme-border-active) 45%, transparent) !important;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
}
.wizard-sub-acc-panel.is-sub-complete:not(.is-sub-expanded) {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.45)) !important;
}
.wizard-sub-acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px 12px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.wizard-sub-acc-trigger:hover {
  background: color-mix(in srgb, var(--theme-primary-soft) 70%, transparent);
}
.wizard-sub-acc-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.wizard-sub-acc-panel.is-sub-expanded .wizard-sub-acc-num {
  background: linear-gradient(135deg, var(--theme-border-active), var(--theme-primary));
  color: #fff;
  border-color: transparent;
}
.wizard-sub-acc-panel.is-sub-complete:not(.is-sub-expanded) .wizard-sub-acc-num {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
}
.wizard-sub-acc-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wizard-sub-acc-titles strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-primary-hover);
}
.wizard-sub-acc-titles span {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
}
.wizard-sub-acc-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.wizard-sub-acc-badge[data-state="active"] {
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  border-color: var(--theme-primary-soft);
}
.wizard-sub-acc-badge[data-state="complete"] {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.wizard-sub-acc-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.wizard-sub-acc-panel.is-sub-expanded .wizard-sub-acc-chevron {
  transform: rotate(-135deg);
}
.wizard-sub-acc-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
  border-top: 0 dashed color-mix(in srgb, var(--theme-primary-soft) 75%, transparent);
  pointer-events: none;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease,
    padding 0.32s ease,
    border-top-width 0.2s ease;
}
.wizard-sub-acc-panel.is-sub-expanded .wizard-sub-acc-body {
  max-height: min(10000px, var(--sub-acc-body-max, 10000px));
  opacity: 1;
  padding: 0 14px 12px;
  border-top-width: 1px;
  pointer-events: auto;
}
.wizard-sub-acc-body > h3:first-child,
.wizard-sub-acc-body > h4:first-child {
  display: none;
}
.wizard-sub-acc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--theme-primary-soft);
  display: flex;
  justify-content: flex-end;
}
.wizard-sub-acc-foot .btn-sm {
  font-size: 11px;
  padding: 8px 14px;
}
.row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .row-4 { grid-template-columns: 1fr; }
}
.re-inventory-workflow {
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.6), transparent);
  border-radius: 22px;
}
.re-inv-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
}
.re-inv-hero h3 { margin: 0 0 6px; }
.re-inv-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.re-inv-chip {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--theme-primary-soft);
  color: var(--header-ink);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 6%, transparent);
}
.re-inv-chip strong { color: var(--theme-primary); margin-left: 4px; }
.re-inv-chip--ok { background: #ecfdf5; border-color: #6ee7b7; }
.re-inv-chip--warn { background: #fffbeb; border-color: #fcd34d; }
.re-inventory-workflow .re-inv-step {
  margin-top: 14px;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--theme-primary-soft) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 85%, transparent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--theme-primary) 7%, transparent);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.re-inventory-workflow .re-inv-collapsible.is-open {
  border-color: color-mix(in srgb, var(--theme-border-active) 65%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.re-inv-collapsible__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.re-inv-collapsible__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.re-inv-collapsible__titles strong {
  font-size: 15px;
  color: var(--header-ink);
}
.re-inv-collapsible__titles span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.re-inv-collapsible__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  white-space: nowrap;
}
.re-inv-collapsible.is-open .re-inv-collapsible__badge {
  background: #d1fae5;
  color: #047857;
}
.re-inv-collapsible__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 4px;
}
.re-inv-collapsible.is-open .re-inv-collapsible__chev {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.re-inv-collapsible__body {
  padding: 0 18px 20px;
  border-top: 1px dashed color-mix(in srgb, var(--theme-primary-soft) 75%, transparent);
  animation: reInvBodyIn 0.35s ease;
}
@keyframes reInvBodyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.re-inv-step__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.re-inv-step__head span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.re-inv-step__head strong {
  font-size: 15px;
  color: var(--header-ink);
}
.re-inv-step__num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--theme-primary);
  background: linear-gradient(135deg, var(--theme-primary-soft), var(--theme-primary-soft));
  border: 1px solid var(--theme-primary-soft);
}
.re-inv-target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .re-inv-target-grid { grid-template-columns: 1fr; }
}
.re-inv-subtitle {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--theme-primary);
}
.re-inv-typology-card {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.re-inv-typology-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.re-typo-actions,
.re-typo-actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.re-typo-actions { margin-bottom: 12px; }
.re-inv-typology-card .re-typo-fields { display: none; }
#re-typology-modal .re-typo-fields { display: block; }
.re-typo-live,
.re-typo-dialog-live,
.re-typo-grand {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.re-typo-stat {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-primary-soft) 70%, #fff);
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 40%, transparent);
}
.re-typo-stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--theme-text-secondary);
}
.re-typo-stat strong { display: block; margin-top: 2px; font-size: 15px; color: var(--theme-text); }
.re-typo-stat strong.is-profit { color: var(--theme-success, #0f7a3a); }
.re-typo-stat strong.is-loss { color: var(--theme-danger, #b42318); }
.re-cost-finance-live { margin-top: 14px; }
.re-cost-finance-live__title { margin: 0 0 8px; font-weight: 700; color: var(--theme-text); }
.re-unit-mix-group {
  display: inline-flex;
  margin: 18px 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary-soft) 80%, #fff);
}
.re-econ-lead { margin: 0 0 12px; }
.re-econ-board { display: grid; gap: 16px; }
.re-econ-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--theme-primary-soft);
  background: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.re-econ-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.re-econ-card--res header { background: linear-gradient(135deg, #eff6ff, #fff); }
.re-econ-card--com header { background: linear-gradient(135deg, #fffbeb, #fff); }
.re-econ-card h4 { margin: 0; font-size: 1.05rem; }
.re-econ-card header p { margin: 2px 0 0; font-size: 12px; color: var(--theme-text-secondary); }
.re-econ-kpis { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.re-econ-kpis span { display: flex; flex-direction: column; min-width: 72px; }
.re-econ-kpis small { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--theme-text-secondary); }
.re-econ-kpis strong { font-size: 14px; }
.re-econ-scroll { overflow-x: auto; }
.re-econ-card table { margin: 0; }
.re-econ-card .is-profit { color: var(--theme-success, #0f7a3a); font-weight: 700; }
.re-econ-card .is-loss { color: var(--theme-danger, #b42318); font-weight: 700; }
.re-unit-mix-row[data-from-inventory="1"] {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 45%, transparent);
  background: color-mix(in srgb, var(--theme-primary-soft) 35%, #fff);
}
.re-unit-mix-row[data-from-inventory="1"] .row-2 { display: none; }
.re-unit-mix-row[data-from-inventory="1"] .re-unit-line-total { margin: 0; }
.re-typo-dialog-live { padding: 0 18px 8px; }
.re-inv-modal__wide.fsa-modal__dialog,
.fsa-modal__dialog.re-inv-modal__wide { width: min(1080px, calc(100vw - 32px)); max-width: 1080px; }
.re-floor-matrix { width: 100%; margin: 8px 0 16px; }
.re-floor-matrix input {
  width: 4.75rem;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--theme-border-active);
}
#re-open-floor-dialog { margin: 4px 0 12px; }
#re-inventory-panel[data-re-segment="residential"] .re-inv-commercial-targets,
#re-inventory-panel[data-re-segment="residential"] .re-inv-commercial-only,
#re-inventory-panel[data-re-segment="residential"] .re-seg-com,
#re-inventory-panel[data-re-segment="residential"] .re-inv-commercial-fields,
#re-floor-modal[data-re-segment="residential"] .re-inv-commercial-fields { display: none !important; }
#re-floor-modal[data-com-from-typology="1"] .re-inv-commercial-fields .row-2 { display: none !important; }
#re-inventory-panel[data-re-segment="commercial"] .re-inv-residential-targets,
#re-inventory-panel[data-re-segment="commercial"] .re-inv-residential-only,
#re-inventory-panel[data-re-segment="commercial"] .re-seg-res { display: none !important; }
#re-inventory-panel[data-com-from-typology="1"] .re-inv-commercial-fields .row-2 { display: none !important; }
#re-unit-mix .re-unit-mix-row input[readonly] { background: color-mix(in srgb, var(--theme-primary-soft) 55%, #fff); }
.re-inv-typology-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-primary);
  background: var(--theme-primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.btn-xs {
  font-size: 11px;
  padding: 4px 10px;
  min-height: auto;
}
.re-inv-floor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.re-inv-floor-card {
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--theme-border-active) 45%, transparent);
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.re-inv-floor-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px 14px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.re-inv-floor-collapsible:not(.is-open) .re-inv-floor-card__head {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: none;
}
.re-inv-floor-collapsible__trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin: 0 0 2px;
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
  border-radius: 12px;
  background: linear-gradient(165deg, #fff, var(--theme-primary-soft));
  cursor: pointer;
  font: inherit;
  color: var(--theme-primary);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.re-inv-floor-collapsible__trigger:hover {
  border-color: var(--theme-border-active);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-border-active) 15%, transparent);
}
.re-inv-floor-collapsible__trigger:focus-visible {
  outline: 2px solid var(--theme-border-active);
  outline-offset: 2px;
}
.re-inv-floor-collapsible__chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--theme-border-active);
  border-bottom: 2px solid var(--theme-border-active);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: 2px;
}
.re-inv-floor-collapsible.is-open .re-inv-floor-collapsible__chev {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.re-inv-floor-collapsible__badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--theme-primary);
}
.re-inv-floor-collapsible.is-open .re-inv-floor-collapsible__badge {
  color: #047857;
}
.re-inv-floor-collapsible__body {
  padding-top: 14px;
  animation: reInvBodyIn 0.3s ease;
}
.re-inv-floor-collapsible:not(.is-open) {
  background: rgba(248, 250, 252, 0.95);
}
@media (max-width: 640px) {
  .re-inv-floor-card__head {
    grid-template-columns: auto 1fr;
  }
  .re-inv-floor-res-total {
    grid-column: 1 / -1;
    padding-left: 2px;
  }
}
.re-inv-floor-label-field {
  flex: 1 1 200px;
  margin: 0;
}
.re-inv-floor-res-total {
  margin: 0;
  font-size: 13px;
  color: var(--header-ink);
}
.re-inv-alloc-block {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-primary-soft) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
}
.re-inv-alloc-block h5 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
}
.re-inv-alloc-count-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.re-inv-alloc-count-wrap .btn-xs {
  align-self: flex-end;
  margin-top: -4px;
}
.re-inv-match {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.re-inv-match--summary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--theme-primary-soft) 85%, transparent));
}
.re-inv-match--dock {
  position: sticky;
  top: 72px;
  z-index: 12;
  margin: 0 0 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.re-inv-match__pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.re-inv-match[data-state="ok"] .re-inv-match__pill,
.re-inv-match--dock[data-state="ok"] .re-inv-match__pill {
  background: #d1fae5;
  color: #047857;
}
.re-inv-match[data-state="warn"] .re-inv-match__pill,
.re-inv-match--dock[data-state="warn"] .re-inv-match__pill {
  background: #fef3c7;
  color: #b45309;
}
.re-inv-match__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.re-inv-match[data-state="ok"] {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}
.re-inv-match[data-state="warn"] {
  border-color: #fcd34d;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.98));
}
.re-inv-match__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--header-ink);
}
.re-inv-match__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
}
.re-inv-match__list li.is-ok { color: #047857; }
.re-inv-match__list li.is-warn { color: #b45309; }
.re-income-overview {
  padding: 18px 20px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.35), color-mix(in srgb, var(--theme-primary-soft) 75%, transparent)) !important;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent) !important;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 8%, transparent);
}
.re-income-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .re-income-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
.re-income-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--theme-primary-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.re-income-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
  font-weight: 700;
}
.re-income-stat strong {
  font-size: 1.05rem;
  color: var(--header-ink);
}
.re-income-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 820px) {
  .re-income-split { grid-template-columns: 1fr; }
}
.re-income-panel-block {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.re-income-panel-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--theme-primary);
}
.re-income-cost-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.re-income-cost-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 12px;
}
.re-income-cost-list li strong { color: var(--header-ink); }
.re-income-cost-total {
  border-bottom: none !important;
  margin-top: 6px;
  padding-top: 10px !important;
  font-weight: 700;
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary-soft) 80%, transparent), transparent);
  border-radius: 8px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.re-income-kv-compact {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.6;
}
.re-income-overview .table-data {
  width: 100%;
  font-size: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.re-income-overview .table-data td.is-profit,
.re-income-overview .is-profit { color: #047857; font-weight: 700; }
.re-income-overview .table-data td.is-loss,
.re-income-overview .is-loss { color: #b45309; font-weight: 700; }
.re-income-page {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.re-income-lead {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary-soft) 90%, transparent), rgba(236, 253, 245, 0.5));
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 25%, transparent);
}
.re-income-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.re-income-card {
  width: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border: 1px solid color-mix(in srgb, var(--theme-primary-soft) 55%, transparent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--theme-primary) 7%, transparent);
}
.re-income-card--accent {
  background: linear-gradient(145deg, color-mix(in srgb, var(--theme-primary-soft) 95%, transparent), color-mix(in srgb, var(--theme-primary-soft) 85%, transparent), rgba(236, 253, 245, 0.55));
  border-color: color-mix(in srgb, var(--theme-border-active) 45%, transparent);
}
.re-income-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in srgb, var(--theme-border-active) 35%, transparent);
}
.re-income-card__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--theme-primary-hover);
  letter-spacing: -0.02em;
}
.re-income-card__head p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.re-income-sellout-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .re-income-sellout-hero { grid-template-columns: 1fr; }
}
.re-income-sellout-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--theme-primary-soft);
}
.re-income-sellout-chip span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.re-income-sellout-chip strong {
  font-size: 0.95rem;
  color: var(--header-ink);
}
.re-income-sellout-chip small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}
.re-income-sellout-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
  margin: 12px 0 6px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}
.re-income-sellout-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-border-active), #10b981);
  transition: width 0.35s ease;
}
.re-income-sellout-bar__caption {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 14px;
}
.re-income-page .table-data {
  width: 100%;
  font-size: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.re-income-page .table-data tr.re-income-total-row {
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary-soft) 95%, transparent), rgba(236, 253, 245, 0.6));
  font-weight: 700;
}
.re-income-page .table-data td.is-profit,
.re-income-page .is-profit { color: #047857; font-weight: 700; }
.re-income-page .table-data td.is-loss,
.re-income-page .is-loss { color: #b45309; font-weight: 700; }
.re-income-empty {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.re-wizard-block {
  margin-top: 20px;
  margin-bottom: 8px;
  border-top: 3px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent);
}
.re-wizard-block:first-of-type {
  border-top: none;
  margin-top: 12px;
}
.re-wizard-block h3 {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
}
#real-estate-wizard .re-subhead,
.re-wizard-block .re-subhead {
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-primary-soft) 65%, transparent);
  border-left: 3px solid var(--theme-border-active);
}
.wizard-shell--accordion.is-ready .wizard-sub-acc-panel {
  animation: wizardPanelIn 0.5s calc(var(--sub-i, 0) * 0.05s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.projection-summary-panel {
  margin-top: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 22%, transparent);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #fff 100%);
}
.income-panel + .projection-summary-panel {
  margin-top: 1.75rem;
}
.projection-load-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 12px 0 16px;
}
.projection-load-hint {
  font-size: 0.875rem;
  max-width: 36rem;
}
.projection-fin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.projection-fin-tabs__btn {
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  background: #fff;
  color: var(--theme-primary-hover);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.875rem;
  cursor: pointer;
}
.projection-fin-tabs__btn.is-active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}
.projection-fin-table {
  width: 100%;
  font-size: 0.8125rem;
}
.projection-fin-table,
.projection-summary-panel table.table-data,
.re-income-page table.table-data,
.re-income-overview table.table-data {
  border-collapse: collapse;
  border: 1px solid #111111;
}
.projection-fin-table th,
.projection-fin-table td,
.projection-summary-panel table.table-data th,
.projection-summary-panel table.table-data td,
.re-income-page table.table-data th,
.re-income-page table.table-data td,
.re-income-overview table.table-data th,
.re-income-overview table.table-data td {
  padding: 8px 10px;
  vertical-align: middle;
  border: 1px solid #111111;
}
.projection-fin-table__label {
  text-align: left;
  font-weight: 600;
  min-width: 10rem;
  white-space: normal;
}
.projection-fin-table__emphasis th,
.projection-fin-table__emphasis td {
  font-weight: 700;
  background: color-mix(in srgb, var(--theme-primary-soft) 55%, transparent);
}
.projection-fin-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.projection-fin-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}
.projection-fin-block {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.projection-fin-block__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--header-ink);
  letter-spacing: -0.01em;
}
.projection-fin-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.projection-fin-jump__link {
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary-soft) 90%, transparent);
  color: var(--theme-primary);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 25%, transparent);
}
.projection-fin-jump__link:hover {
  background: var(--theme-primary-soft);
}
.projection-fin-table__avg {
  font-weight: 600;
  background: rgba(248, 250, 252, 0.9);
}
.projection-fin-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
}
.projection-fin-foot {
  margin: 0.65rem 0 0;
}
.projection-fin-placeholder {
  margin: 0.5rem 0;
}
.report-preview-shell {
  margin: 1.25rem 0;
  border: 1px solid color-mix(in srgb, var(--theme-border-active) 28%, transparent);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.report-preview-shell__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.report-preview-shell__head h3 {
  margin: 0;
}
.wizard-report-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 960px) {
  .wizard-report-layout {
    grid-template-columns: 1fr;
  }
}
.report-section-manager {
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  background: color-mix(in srgb, var(--theme-primary-soft) 45%, transparent);
  max-height: min(78vh, 920px);
  overflow: auto;
}
.report-section-manager .report-section-reorder__list {
  max-height: min(52vh, 560px);
}
.report-section-add {
  margin-top: 1rem;
}
.report-section-remove {
  color: #b91c1c;
}
.wizard-pdf-document .cover {
  margin-bottom: 1.5rem;
}
.wizard-pdf-toc {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--theme-primary-soft);
  border-radius: 8px;
  background: var(--theme-background);
}
.wizard-pdf-running-header,
.wizard-pdf-running-footer {
  font-size: 0.6875rem;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: #f8fafc;
}
.wizard-pdf-running-footer {
  margin-top: 10px;
  margin-bottom: 0;
}
.wizard-report-viewer .preview-viewer-tabs {
  margin-bottom: 12px;
}
.report-section-reorder {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-primary-soft) 45%, transparent);
  border: 1px dashed color-mix(in srgb, var(--theme-border-active) 35%, transparent);
}
.report-section-reorder__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.report-section-reorder__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8125rem;
}
.report-section-reorder__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.wizard-finish-cta {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--theme-primary-soft);
  background: linear-gradient(145deg, var(--theme-primary-soft) 0%, #fff 55%);
}
.wizard-finish-cta__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--header-ink);
}
.wizard-checklist--compact {
  margin-top: 12px;
  font-size: 13px;
}
.report-html-preview {
  max-height: min(70vh, 720px);
  overflow: auto;
  padding: 0.5rem 0.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}
.report-html-preview__block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.report-html-preview__heading {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--header-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.report-html-preview__body--scoped {
  font-size: 0.8125rem;
  line-height: 1.45;
}
.report-html-preview__body--scoped table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.report-html-preview__body--scoped th,
.report-html-preview__body--scoped td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  vertical-align: top;
}
.report-html-preview__body--scoped .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wc-assess-margins {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.loan-assess-lead {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-primary-soft), #f8fafc);
  border: 1px solid var(--theme-primary-soft);
  color: var(--theme-primary-hover);
  font-size: 13px;
  line-height: 1.5;
}
.loan-facility-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: -20px -22px 18px;
  padding: 18px 22px 16px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary) 58%, var(--theme-border-active));
  color: #fff;
}
.loan-facility-head--wc {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 46%, #38bdf8);
}
.loan-facility-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.loan-facility-toolbar .field-hint { margin: 0; }
.loan-add-details {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--theme-primary-deep), var(--theme-primary));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary) 25%, transparent);
}
.loan-add-details--wc {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.loan-purpose-picker {
  margin: 0 0 14px;
  padding: 14px 14px 4px;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff, #fff);
}
.loan-purpose-picker[hidden] { display: none !important; }
.loan-facility-cards { display: grid; gap: 12px; }
.loan-facility-head__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
  flex: 0 0 auto;
}
.loan-facility-head__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}
.loan-facility-head h3,
.loan-facility-head .re-subhead {
  margin: 2px 0 0;
  color: #fff;
  border: 0;
  font-size: 1.15rem;
}
.loan-facility-head__text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.45;
}
.loan-subsidy-card {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #fcd34d;
  background: linear-gradient(145deg, #fffbeb 0%, #fff 55%, #fef3c7 100%);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.08);
}
.loan-subsidy-card--wait { display: none !important; }
#loan-assessment-cgtmse-panel[hidden] { display: none !important; }
.loan-subsidy-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.loan-subsidy-card__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #fde68a;
  font-size: 20px;
}
.loan-subsidy-card__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}
.loan-subsidy-card h4 {
  margin: 2px 0 4px;
  color: #78350f;
  font-size: 1.05rem;
}
.loan-subsidy-card__head p {
  margin: 0;
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}
.wc-assess-launcher {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f0fdfa 0%, #fff 48%, #ecfeff 100%);
  border: 1px solid var(--theme-accent-soft);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-accent) 8%, transparent);
}
.wc-assess-launcher__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.wc-assess-launcher__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.wc-assess-launcher__metrics p {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--theme-accent-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.wc-assess-launcher__metrics strong {
  font-size: 16px;
  color: var(--header-ink);
  letter-spacing: 0;
  text-transform: none;
}
.wc-purpose-heading { margin-top: 8px; }
#wc-assess-modal:not(.is-open) { display: none !important; }
.wc-assess-modal .btl-purpose-modal__dialog { width: min(1080px, calc(100vw - 24px)); }
.wc-purpose-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-primary));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}
.wc-assess-method-field select {
  font-weight: 700;
  border: 2px solid var(--theme-accent);
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 70%);
  min-height: 48px;
}
.wc-derived-field[readonly] {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}
.wc-assess-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.wc-assess-result p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #ecfeff, var(--theme-primary-soft));
  border: 1px solid var(--theme-accent-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wc-assess-result span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.wc-assess-result strong { font-size: 16px; color: var(--header-ink); }
.wc-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.wc-method-card[hidden],
#wc-cycle-inputs[hidden],
.wc-assess-margins[hidden] { display: none !important; }
.wc-mpbf-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.wc-mpbf-method {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.wc-mpbf-method h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1e3a8a;
}
.wc-mpbf-final {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
@media (max-width: 720px) {
  .wc-mpbf-methods { grid-template-columns: 1fr; }
}
.wc-method-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--theme-primary-soft);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary-deep) 6%, transparent);
}
.wc-method-card--applied {
  border-color: var(--theme-primary);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-primary) 16%, transparent);
}
.wc-assess-panel--cycle.wc-method-card--applied {
  border-color: var(--theme-accent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-accent) 16%, transparent);
}
.wc-method-card--idle { opacity: 0.92; }
.wc-method-card__head h4 {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--header-ink);
}
.wc-assess-panel--cycle .wc-method-card__head h4 { color: var(--theme-accent); }
.wc-method-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wc-assess-panel--cycle .wc-method-card__pill {
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
}
.wc-assess-panel--mpbf {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.wc-assess-panel--mpbf .wc-method-card__head h4 { color: #92400e; }
.wc-assess-panel--mpbf .wc-method-card__pill {
  background: #fef3c7;
  color: #92400e;
}
.wc-assess-panel--mpbf .wc-method-calc {
  background: #fffbeb;
  border-color: #fcd34d;
}
.wc-assess-panel--mpbf .wc-method-calc__total strong { color: #b45309; }
.wc-method-card--applied .wc-method-card__pill::after { content: ' · Applied'; }
.wc-method-card--idle .wc-method-card__pill::after { content: ' · Reference'; }
.wc-method-calc {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed var(--theme-primary-soft);
}
.wc-assess-panel--cycle .wc-method-calc {
  background: #f0fdfa;
  border-color: var(--theme-accent-soft);
}
.wc-method-calc p {
  margin: 0;
  padding: 8px 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.wc-method-calc p:last-child { border-bottom: 0; }
.wc-method-calc strong { color: var(--header-ink); font-size: 14px; }
.wc-method-calc em { font-style: normal; font-weight: 700; color: var(--theme-primary); }
.wc-method-calc__total {
  margin-top: 4px;
  font-weight: 700;
}
.wc-method-calc__total strong { font-size: 16px; color: var(--theme-primary); }
.wc-assess-panel--cycle .wc-method-calc__total strong { color: var(--theme-accent); }
.wc-method-calc__note,
.wc-method-card__status {
  display: block !important;
  border-bottom: 0 !important;
  font-size: 12px !important;
  line-height: 1.45;
  color: #64748b !important;
}
.wc-method-card--applied .wc-method-card__status { color: var(--header-ink) !important; font-weight: 600; }
.wc-assess-panel--cycle.wc-method-card--applied .wc-method-card__status { color: var(--theme-accent) !important; }
@media (max-width: 800px) {
  .wc-method-grid,
  .wc-assess-result,
  .wc-assess-launcher__metrics { grid-template-columns: 1fr; }
  .wc-assess-launcher__top { flex-direction: column; }
  .loan-facility-head { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .btl-purpose-card__compact { grid-template-columns: auto 1fr; }
  .btl-purpose-card__compact-actions { grid-column: 1 / -1; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-shell--pro.is-ready .wizard-hero--pro,
  .wizard-shell--pro.is-ready .wizard-progress--pro,
  .wizard-shell--pro.is-ready .wizard-main,
  .wizard-shell--pro.is-ready .wizard-step-nav,
  .wizard-shell--pro .wizard-step.active,
  .wizard-shell--pro .wizard-step.active .card-inset,
  .wizard-shell--pro .wizard-progress-dot.active,
  .wizard-hero--pro::after {
    animation: none !important;
  }
  .wizard-shell--pro .wizard-step.active { filter: none; }
  .wizard-step.is-expanded .wizard-accordion-body,
  .wizard-accordion-badge[data-state="active"],
  .wizard-shell--accordion .save-state--pulse {
    animation: none !important;
  }
}

.dash-success-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.dash-success-dialog.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.dash-success-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--theme-primary-deep) 35%, transparent);
  backdrop-filter: blur(4px);
}
.dash-success-dialog__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #ecfdf5 100%);
  border: 2px solid #6ee7b7;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--theme-primary) 20%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-success-dialog.is-visible .dash-success-dialog__panel {
  transform: translateY(0) scale(1);
}
.dash-success-dialog__icon { margin: 0 auto 12px; }
.dash-success-dialog__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #059669;
}
.dash-success-dialog__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--header-ink);
}
.dash-success-dialog__message {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.dash-success-dialog__ok {
  min-width: 140px;
  border-radius: 999px;
  padding: 10px 22px;
}
body.dash-dialog-open { overflow: hidden; }

.payment-success-downloads {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--theme-primary-soft);
  background: linear-gradient(180deg, var(--theme-background) 0%, #fff 100%);
}
.payment-success-downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.payment-success-downloads__prep {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

/* CSP-safe scroll-reveal stagger (public/assets/js/app.js) */
.reveal-stagger-50-0 { transition-delay: 0ms; }
.reveal-stagger-50-1 { transition-delay: 50ms; }
.reveal-stagger-50-2 { transition-delay: 100ms; }
.reveal-stagger-50-3 { transition-delay: 150ms; }
.reveal-stagger-50-4 { transition-delay: 200ms; }
.reveal-stagger-50-5 { transition-delay: 250ms; }
.reveal-stagger-50-6 { transition-delay: 300ms; }
.reveal-stagger-50-7 { transition-delay: 350ms; }
.reveal-stagger-50-8 { transition-delay: 400ms; }
.reveal-stagger-50-9 { transition-delay: 450ms; }
.reveal-stagger-50-10 { transition-delay: 500ms; }
.reveal-stagger-50-11 { transition-delay: 550ms; }
.reveal-stagger-50-12 { transition-delay: 600ms; }
.reveal-stagger-50-13 { transition-delay: 650ms; }
.reveal-stagger-50-14 { transition-delay: 700ms; }
.reveal-stagger-50-15 { transition-delay: 750ms; }
.reveal-stagger-50-16 { transition-delay: 800ms; }
.reveal-stagger-50-17 { transition-delay: 850ms; }
.reveal-stagger-50-18 { transition-delay: 900ms; }
.reveal-stagger-50-19 { transition-delay: 950ms; }
.reveal-stagger-50-20 { transition-delay: 1000ms; }
.reveal-stagger-50-21 { transition-delay: 1050ms; }
.reveal-stagger-50-22 { transition-delay: 1100ms; }
.reveal-stagger-50-23 { transition-delay: 1150ms; }
.reveal-stagger-50-24 { transition-delay: 1200ms; }
.reveal-stagger-50-25 { transition-delay: 1250ms; }
.reveal-stagger-50-26 { transition-delay: 1300ms; }
.reveal-stagger-50-27 { transition-delay: 1350ms; }
.reveal-stagger-50-28 { transition-delay: 1400ms; }
.reveal-stagger-50-29 { transition-delay: 1450ms; }
.reveal-stagger-50-30 { transition-delay: 1500ms; }
.reveal-stagger-50-31 { transition-delay: 1550ms; }
.reveal-stagger-60-0 { transition-delay: 0ms; }
.reveal-stagger-60-1 { transition-delay: 60ms; }
.reveal-stagger-60-2 { transition-delay: 120ms; }
.reveal-stagger-60-3 { transition-delay: 180ms; }
.reveal-stagger-60-4 { transition-delay: 240ms; }
.reveal-stagger-60-5 { transition-delay: 300ms; }
.reveal-stagger-60-6 { transition-delay: 360ms; }
.reveal-stagger-60-7 { transition-delay: 420ms; }
.reveal-stagger-60-8 { transition-delay: 480ms; }
.reveal-stagger-60-9 { transition-delay: 540ms; }
.reveal-stagger-60-10 { transition-delay: 600ms; }
.reveal-stagger-60-11 { transition-delay: 660ms; }
.reveal-stagger-60-12 { transition-delay: 720ms; }
.reveal-stagger-60-13 { transition-delay: 780ms; }
.reveal-stagger-60-14 { transition-delay: 840ms; }
.reveal-stagger-60-15 { transition-delay: 900ms; }
.reveal-stagger-60-16 { transition-delay: 960ms; }
.reveal-stagger-60-17 { transition-delay: 1020ms; }
.reveal-stagger-60-18 { transition-delay: 1080ms; }
.reveal-stagger-60-19 { transition-delay: 1140ms; }
.reveal-stagger-60-20 { transition-delay: 1200ms; }
.reveal-stagger-60-21 { transition-delay: 1260ms; }
.reveal-stagger-60-22 { transition-delay: 1320ms; }
.reveal-stagger-60-23 { transition-delay: 1380ms; }
.reveal-stagger-60-24 { transition-delay: 1440ms; }
.reveal-stagger-60-25 { transition-delay: 1500ms; }
.reveal-stagger-60-26 { transition-delay: 1560ms; }
.reveal-stagger-60-27 { transition-delay: 1620ms; }
.reveal-stagger-60-28 { transition-delay: 1680ms; }
.reveal-stagger-60-29 { transition-delay: 1740ms; }
.reveal-stagger-60-30 { transition-delay: 1800ms; }
.reveal-stagger-60-31 { transition-delay: 1860ms; }
.reveal-stagger-65-0 { transition-delay: 0ms; }
.reveal-stagger-65-1 { transition-delay: 65ms; }
.reveal-stagger-65-2 { transition-delay: 130ms; }
.reveal-stagger-65-3 { transition-delay: 195ms; }
.reveal-stagger-65-4 { transition-delay: 260ms; }
.reveal-stagger-65-5 { transition-delay: 325ms; }
.reveal-stagger-65-6 { transition-delay: 390ms; }
.reveal-stagger-65-7 { transition-delay: 455ms; }
.reveal-stagger-65-8 { transition-delay: 520ms; }
.reveal-stagger-65-9 { transition-delay: 585ms; }
.reveal-stagger-65-10 { transition-delay: 650ms; }
.reveal-stagger-65-11 { transition-delay: 715ms; }
.reveal-stagger-65-12 { transition-delay: 780ms; }
.reveal-stagger-65-13 { transition-delay: 845ms; }
.reveal-stagger-65-14 { transition-delay: 910ms; }
.reveal-stagger-65-15 { transition-delay: 975ms; }
.reveal-stagger-65-16 { transition-delay: 1040ms; }
.reveal-stagger-65-17 { transition-delay: 1105ms; }
.reveal-stagger-65-18 { transition-delay: 1170ms; }
.reveal-stagger-65-19 { transition-delay: 1235ms; }
.reveal-stagger-65-20 { transition-delay: 1300ms; }
.reveal-stagger-65-21 { transition-delay: 1365ms; }
.reveal-stagger-65-22 { transition-delay: 1430ms; }
.reveal-stagger-65-23 { transition-delay: 1495ms; }
.reveal-stagger-65-24 { transition-delay: 1560ms; }
.reveal-stagger-65-25 { transition-delay: 1625ms; }
.reveal-stagger-65-26 { transition-delay: 1690ms; }
.reveal-stagger-65-27 { transition-delay: 1755ms; }
.reveal-stagger-65-28 { transition-delay: 1820ms; }
.reveal-stagger-65-29 { transition-delay: 1885ms; }
.reveal-stagger-65-30 { transition-delay: 1950ms; }
.reveal-stagger-65-31 { transition-delay: 2015ms; }
.reveal-stagger-70-0 { transition-delay: 0ms; }
.reveal-stagger-70-1 { transition-delay: 70ms; }
.reveal-stagger-70-2 { transition-delay: 140ms; }
.reveal-stagger-70-3 { transition-delay: 210ms; }
.reveal-stagger-70-4 { transition-delay: 280ms; }
.reveal-stagger-70-5 { transition-delay: 350ms; }
.reveal-stagger-70-6 { transition-delay: 420ms; }
.reveal-stagger-70-7 { transition-delay: 490ms; }
.reveal-stagger-70-8 { transition-delay: 560ms; }
.reveal-stagger-70-9 { transition-delay: 630ms; }
.reveal-stagger-70-10 { transition-delay: 700ms; }
.reveal-stagger-70-11 { transition-delay: 770ms; }
.reveal-stagger-70-12 { transition-delay: 840ms; }
.reveal-stagger-70-13 { transition-delay: 910ms; }
.reveal-stagger-70-14 { transition-delay: 980ms; }
.reveal-stagger-70-15 { transition-delay: 1050ms; }
.reveal-stagger-70-16 { transition-delay: 1120ms; }
.reveal-stagger-70-17 { transition-delay: 1190ms; }
.reveal-stagger-70-18 { transition-delay: 1260ms; }
.reveal-stagger-70-19 { transition-delay: 1330ms; }
.reveal-stagger-70-20 { transition-delay: 1400ms; }
.reveal-stagger-70-21 { transition-delay: 1470ms; }
.reveal-stagger-70-22 { transition-delay: 1540ms; }
.reveal-stagger-70-23 { transition-delay: 1610ms; }
.reveal-stagger-70-24 { transition-delay: 1680ms; }
.reveal-stagger-70-25 { transition-delay: 1750ms; }
.reveal-stagger-70-26 { transition-delay: 1820ms; }
.reveal-stagger-70-27 { transition-delay: 1890ms; }
.reveal-stagger-70-28 { transition-delay: 1960ms; }
.reveal-stagger-70-29 { transition-delay: 2030ms; }
.reveal-stagger-70-30 { transition-delay: 2100ms; }
.reveal-stagger-70-31 { transition-delay: 2170ms; }

.js-scroll-fade { opacity: 0; transform: translateY(8px); }
.js-scroll-fade.is-visible { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }

/* Report card entrance stagger (CSP — no inline style) */
.report-card--enter-0 { animation-delay: 0s; }
.report-card--enter-1 { animation-delay: 0.05s; }
.report-card--enter-2 { animation-delay: 0.1s; }
.report-card--enter-3 { animation-delay: 0.15s; }
.report-card--enter-4 { animation-delay: 0.2s; }
.report-card--enter-5 { animation-delay: 0.25s; }
.report-card--enter-6 { animation-delay: 0.3s; }
.report-card--enter-7 { animation-delay: 0.35s; }
.report-card--enter-8 { animation-delay: 0.4s; }

/* ===== Account profile v3 (/account/profile) — teal shell via app-shell--profile ===== */
.app-shell--profile {
  --profile-teal: var(--theme-accent);
  --profile-teal-soft: var(--theme-accent-soft);
  --profile-amber-soft: #fef3c7;
  --profile-slate: #334155;
}
body.dashboard-body:has(.app-shell--profile),
body.dashboard-body--profile {
  background:
    radial-gradient(640px 240px at 100% 0%, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 55%),
    radial-gradient(520px 200px at 0% 100%, rgba(251, 191, 36, 0.08), transparent 50%),
    #f8fafc;
}
.app-shell--profile .app-sidebar--pro {
  background: linear-gradient(185deg, #ffffff 0%, #f0fdfa 42%, #f8fafc 100%);
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.35), 4px 0 24px rgba(15, 23, 42, 0.04);
}
.app-shell--profile .app-sidebar__profile {
  border-color: var(--theme-accent-soft);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-accent) 10%, transparent);
}
.app-shell--profile .app-sidebar__avatar {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-accent) 35%, transparent);
}
.app-shell--profile .app-nav-link.is-active {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-accent) 28%, transparent);
  color: #fff;
}
.app-shell--profile .app-nav-link:hover {
  border-color: var(--theme-accent-soft);
}
.app-shell--profile .app-topbar--pro::after {
  background: linear-gradient(90deg, transparent, var(--theme-accent), #fbbf24, #64748b, transparent);
  opacity: 0.85;
}
.app-shell--profile .app-sidebar__cta.btn-primary {
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent));
  border-color: var(--theme-accent);
}
.dash-hero--profile-teal {
  background: linear-gradient(128deg, #ffffff 0%, #f0fdfa 32%, #fffbeb 62%, #f8fafc 100%);
  background-size: 100% 100%;
  animation: none;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}
.dash-hero--profile-teal .kicker {
  color: var(--profile-teal);
  letter-spacing: 0.16em;
}
.dash-hero__orb--profile.dash-hero__orb--a {
  background: color-mix(in srgb, var(--theme-accent) 45%, transparent);
  opacity: 0.9;
}
.dash-hero__orb--profile.dash-hero__orb--b {
  background: rgba(251, 191, 36, 0.35);
}
.dash-profile-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 1;
  max-width: min(100%, 640px);
}
.dash-profile-identity__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-accent) 0%, var(--theme-accent) 55%, #475569 100%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.dash-profile-identity__loc {
  margin: 10px 0 0;
  font-size: 14px;
}
.dash-quicktip--profile-teal {
  border-color: var(--theme-accent-soft);
  background: var(--profile-teal-soft);
  color: var(--theme-accent);
}
.dash-quicktip--profile-teal strong { color: var(--theme-accent); }
.dash-quicktip--profile-amber {
  border-color: #fde68a;
  background: var(--profile-amber-soft);
  color: #92400e;
}
.dash-quicktip--profile-amber strong { color: #b45309; }
.dash-quicktip--profile-slate {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: var(--profile-slate);
}
.dash-quicktip--profile-slate strong { color: #334155; }
.dash-quicktip--profile-violet {
  border-color: var(--theme-primary-soft);
  background: linear-gradient(135deg, var(--theme-primary-soft) 0%, var(--theme-primary-soft) 100%);
  color: var(--header-ink);
}
.dash-quicktip--profile-violet strong { color: var(--theme-primary); }
.dash-page--profile-vivid .profile-pill--violet {
  color: var(--header-ink);
  background: var(--theme-primary-soft);
  border: 1px solid var(--theme-primary-soft);
}
.dash-btn--profile.btn-primary {
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent));
  border-color: var(--theme-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.dash-grid--profile {
  align-items: start;
}
.dash-grid__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-panel--profile-form {
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 120%);
  border-color: var(--theme-accent-soft);
  border-top: 4px solid var(--theme-accent);
}
.dash-panel--profile-side {
  border-top: 4px solid #64748b;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.dash-panel--profile-google {
  border-top: 4px solid #22c55e;
  background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
}
.dash-panel--profile-tip {
  border-top: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
  border-color: #fde68a;
}
.dash-profile-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.dash-profile-tag--teal { background: var(--profile-teal-soft); color: var(--theme-accent); }
.dash-profile-tag--slate { background: #f1f5f9; color: #334155; }
.dash-profile-tag--mint { background: #ecfdf5; color: #047857; }
.dash-profile-tag--amber { background: var(--profile-amber-soft); color: #92400e; }
.dash-page--profile .field input:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}
.dash-page--profile .profile-dl div:nth-child(odd) {
  background: #f0fdfa;
  border: 1px solid var(--theme-accent-soft);
  border-radius: 10px;
  padding: 8px 10px;
}
.dash-page--profile .profile-dl div:nth-child(even) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}
.dash-page--profile .profile-dl dt { color: #64748b; font-size: 11px; text-transform: uppercase; }
.dash-page--profile .profile-dl dd { margin: 4px 0 0; color: #0f172a; font-weight: 650; }
@media (max-width: 960px) {
  .dash-profile-identity { flex-direction: column; }
}

/* —— Profile vivid: teal · amber · violet (bundled for /account/profile) —— */
.dash-page--profile-vivid {
  --profile-violet: #7c3aed;
  --profile-violet-soft: #ede9fe;
}
.dash-hero--profile-vivid {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}
.dash-profile-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 90%, rgba(245, 158, 11, 0.16), transparent 50%),
    radial-gradient(ellipse 45% 40% at 55% 45%, color-mix(in srgb, var(--theme-primary) 12%, transparent), transparent 55%);
}
.dash-hero__orb--profile-violet {
  width: 120px;
  height: 120px;
  background: color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  top: 18%;
  right: 12%;
  animation-delay: -3s;
}
body.dashboard-body--profile .dash-profile-identity__avatar,
.dash-page--profile-vivid .dash-profile-identity__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--theme-accent) 0%, var(--theme-border-active) 52%, #f59e0b 100%);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--theme-accent) 28%, transparent), 0 10px 24px color-mix(in srgb, var(--theme-border-active) 18%, transparent);
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.dash-profile-identity__emoji {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
.dash-profile-identity__letter { font-size: 30px; font-weight: 800; }
.dash-page--profile-vivid .profile-hero__pills {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-page--profile-vivid .profile-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dash-page--profile-vivid .profile-pill--teal { color: var(--theme-accent); background: var(--theme-accent-soft); border-color: var(--theme-accent-soft); }
.dash-page--profile-vivid .profile-pill--amber { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.dash-page--profile-vivid .profile-pill--violet { color: var(--header-ink); background: var(--theme-primary-soft); border-color: var(--theme-primary-soft); }
.dash-profile-loc__emoji { margin-right: 4px; }
.dash-quicktips--profile-vivid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
@media (max-width: 720px) {
  .dash-quicktips--profile-vivid { grid-template-columns: 1fr; }
}
.dash-quicktips--profile-vivid .dash-quicktip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.dash-quicktip__emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.dash-panel--profile-vivid { border-radius: 20px; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07); }
.dash-panel__head--profile { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.dash-panel__head--profile h2 { margin: 0 0 6px; }
.dash-panel__emoji {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #f0fdfa, var(--theme-primary-soft));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}
.dash-panel--profile-form.dash-panel--profile-vivid {
  border-top: 4px solid var(--theme-accent);
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 70%, var(--theme-primary-soft) 130%);
}
.dash-panel--profile-tip.dash-panel--profile-vivid {
  border-top: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 50%, var(--theme-primary-soft) 100%);
}
.dash-page--profile-vivid .dash-btn--profile.btn-primary {
  background: linear-gradient(145deg, var(--theme-accent) 0%, var(--theme-border-active) 100%);
  border-color: var(--theme-primary);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-border-active) 28%, transparent);
}
.dash-btn--profile-ghost { border-color: var(--theme-primary-soft); background: rgba(255, 255, 255, 0.85); }
body.dashboard-body--profile {
  background:
    radial-gradient(720px 280px at 100% 0%, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 55%),
    radial-gradient(560px 240px at 0% 100%, rgba(251, 191, 36, 0.12), transparent 50%),
    radial-gradient(480px 200px at 42% 35%, color-mix(in srgb, var(--theme-border-active) 9%, transparent), transparent 55%),
    #f8fafc;
}
body.dashboard-body--profile:has(.dash-page--profile-vivid) .app-shell--profile .app-sidebar__avatar,
.app-shell--profile .app-sidebar__avatar {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-primary));
}

/* —— Dashboard overview (/dashboard) workspace vivid —— */
body.dashboard-body--workspace-vivid {
  background:
    radial-gradient(720px 280px at 100% 0%, color-mix(in srgb, var(--theme-accent) 14%, transparent), transparent 55%),
    radial-gradient(560px 240px at 0% 100%, rgba(251, 191, 36, 0.1), transparent 50%),
    radial-gradient(480px 200px at 45% 35%, color-mix(in srgb, var(--theme-border-active) 10%, transparent), transparent 55%),
    #f8fafc;
}
.app-shell--workspace-vivid .app-sidebar--pro {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
}
.app-shell--workspace-vivid .app-sidebar__avatar {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.app-shell--workspace-vivid .app-nav-link.is-active {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.dash-hero--workspace-vivid {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}
.dash-hero__orb--workspace-violet {
  width: 120px;
  height: 120px;
  background: color-mix(in srgb, var(--theme-border-active) 35%, transparent);
  top: 18%;
  right: 12%;
}
.dash-workspace-pills {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-workspace-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dash-workspace-pill--teal { color: var(--theme-accent); background: var(--theme-accent-soft); border-color: var(--theme-accent-soft); }
.dash-workspace-pill--amber { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.dash-workspace-pill--violet { color: var(--header-ink); background: var(--theme-primary-soft); border-color: var(--theme-primary-soft); }
.dash-panel--workspace-vivid {
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.dash-page--workspace-vivid .dash-resource-pill {
  border-color: var(--theme-primary-soft);
  background: linear-gradient(180deg, #fff, var(--theme-primary-soft));
}
.amort-launch { margin: 12px 0 16px; }
.amort-schedule-modal .btl-purpose-modal__dialog { width: min(1080px, calc(100vw - 48px)); }
.amort-kpi, .viability-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.amort-kpi__card, .viability-kpi__card {
  border: 1px solid #111;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
}
.amort-kpi__card span, .viability-kpi__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #334155;
  margin-bottom: 4px;
}
.amort-kpi__card strong, .viability-kpi__value {
  display: block;
  font-size: 1.05rem;
  color: #111;
}
.viability-kpi__side { margin: 0 0 10px; color: #111; }
.viability-kpi__meta { margin-right: 16px; }
.projection-fin-subhead { margin: 8px 0; font-size: 0.95rem; color: #111; }
.amort-tabs { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.amort-tabs__btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.amort-tabs__btn.is-active { background: #111; color: #fff; }
.amort-schedule__scroll { max-height: min(52vh, 560px); overflow: auto; border: 1px solid #111; }
.amort-schedule__table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.amort-schedule__table th, .amort-schedule__table td {
  border: 1px solid #111;
  padding: 7px 9px;
  background: #fff;
}
.amort-schedule__table thead th {
  position: sticky;
  top: 0;
  background: #e5e7eb;
  color: #111;
  z-index: 1;
}
.amort-schedule__total th, .amort-schedule__total td { font-weight: 700; background: #f3f4f6; }
.amort-schedule__error { color: #991b1b; }
.cover-title-block { margin: 4px 0 12px; padding-top: 8px; border-top: 1px solid #e5e7eb; }
.biz-board { padding: 12px; background: linear-gradient(180deg, #f8fafc 0%, #fff 72%); }
.biz-board__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.biz-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #1e3a5f; font-weight: 700; }
.biz-lead { margin: 2px 0 0; color: #475569; font-size: 0.82rem; max-width: 46rem; }
.biz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.biz-card { border: 1px solid var(--item-border); border-left: 3px solid var(--badge-bg); border-radius: 12px; background: var(--item-bg); color: var(--item-ink); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.biz-card__kicker { margin: 0; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--item-muted); }
.biz-card__name { margin: 0; font-weight: 700; color: var(--item-ink); font-size: 0.92rem; line-height: 1.3; }
.biz-card__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.biz-chip { font-size: 0.7rem; line-height: 1.3; color: #1e3a5f; background: #e8eef6; border-radius: 999px; padding: 2px 7px; }
.biz-card__actions { display: flex; gap: 6px; margin-top: 2px; }
.biz-alert { color: #991b1b; font-size: 0.82rem; margin: 8px 0 0; }
.promoter-field-din[hidden] { display: none !important; }
.biz-dialog .btl-purpose-modal__dialog {
  width: min(980px, calc(100vw - 40px));
  background: #f8fafc;
  border: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
}
.biz-dialog .btl-purpose-modal__header {
  position: relative;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 58%, var(--theme-primary-deep) 100%);
  padding: 18px 68px 16px 20px;
}
.biz-dialog__x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #111827;
  color: #fff;
  font-size: 30px;
  line-height: 0.8;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.biz-dialog .btl-purpose-modal__body {
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--theme-border-active) 14%, transparent), transparent 46%), #f1f5f9;
  padding: 14px;
}
.biz-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px 14px;
  margin: 0 0 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.biz-panel__head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.biz-panel__head h4 { margin: 0; font-size: 0.98rem; color: #0f172a; }
.biz-panel__head p { margin: 2px 0 0; font-size: 0.78rem; color: #64748b; }
.biz-panel__head .btn { margin-left: auto; }
.biz-panel__mark {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #1e3a5f;
  border-radius: 999px;
  padding: 4px 8px;
}
.biz-experience {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a5f, var(--theme-primary));
  color: #fff;
}
.biz-experience__figure { font-size: 1.45rem; letter-spacing: -0.02em; }
.biz-experience-output { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.biz-panel--experience { position: relative; }
.biz-staff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.biz-staff__tile { display: flex; flex-direction: column; gap: 4px; border-radius: 12px; padding: 10px 12px; }
.biz-staff__tile span { font-size: 0.75rem; font-weight: 700; }
.biz-staff__tile input { width: 100%; border: 0; background: transparent; font-size: 1.2rem; font-weight: 800; color: inherit; padding: 0; }
.biz-staff__tile--skilled { background: #ecfdf5; color: #065f46; }
.biz-staff__tile--semi { background: #eff6ff; color: #1e3a8a; }
.biz-staff__tile--unskilled { background: #fff7ed; color: #9a3412; }
.biz-staff__total { margin: 8px 0 0; font-size: 0.84rem; color: #334155; }
.biz-activity { display: flex; gap: 8px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.biz-activity[hidden] { display: none !important; }
.biz-activity__index { width: 28px; height: 28px; border-radius: 50%; background: #1e3a5f; color: #fff; display: grid; place-items: center; font-size: 0.75rem; flex: 0 0 auto; }
.biz-activity__fields { flex: 1; display: grid; gap: 6px; }
.biz-activity__fields input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 8px; background: #fff; }
.biz-activity-remove { width: 32px; height: 32px; border: 1px solid #fecaca; border-radius: 50%; background: #fff; color: #b91c1c; font-size: 20px; line-height: 1; cursor: pointer; }
.biz-summary-label { display: block; margin: 8px 0 4px; font-size: 0.8rem; font-weight: 700; color: #334155; }
.biz-dialog .wizard-promoters-block { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.biz-dialog .promoter-row { margin-bottom: 8px; border-radius: 12px; }
.biz-people { margin-top: 8px; }
.biz-people__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .biz-board__bar, .stat-board__bar, .stat-card, .addr-board__bar, .addr-card { align-items: stretch; flex-direction: column; }
  .addr-kind-pick { grid-template-columns: 1fr; }
  .biz-staff { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .amort-kpi, .viability-kpi { grid-template-columns: 1fr; }
}
.addr-card, .stat-card, .biz-card, .income-live, .ops-overall, .expense-summary, .people-total, .wizard-group-card, .admin-panel, .btl-purpose-modal__dialog {
  border-radius: var(--theme-radius, 16px);
}
.ops-overall, .income-live, .expense-summary, .people-total { padding: var(--theme-space, 16px); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
select, textarea {
  background-color: var(--theme-surface);
  color: var(--theme-text-primary);
  border-color: var(--theme-border);
}
.btl-purpose-modal__dialog, .btl-purpose-modal__header, .btl-purpose-modal__footer {
  background: var(--theme-surface);
  color: var(--theme-text-primary);
}
.table-data, .amort-schedule__table { background: var(--theme-surface); color: var(--theme-text-primary); }
.table-data th, .amort-schedule__table th { background: var(--theme-primary-soft); color: var(--theme-text-primary); }
.table-data td, .amort-schedule__table td, .table-data th, .amort-schedule__table th { border-color: var(--theme-border); }
.table-data tr:nth-child(even) td { background: var(--theme-primary-soft); }
:focus-visible { outline: 2px solid var(--theme-border-active); outline-offset: 2px; }
.btl-summary-wrap--actions {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.purpose-security-line {
  margin: 6px 0 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--theme-accent-soft);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}
.color-select { position: relative; }
.color-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.color-select__btn,
.color-select__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.color-select__btn { padding: 12px 14px; min-height: 48px; }
.color-select__menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary) 18%, transparent);
}
.color-select__menu[hidden] { display: none !important; }
.color-select__group {
  margin: 8px 4px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-secondary);
}
.color-select__opt { margin-top: 4px; padding: 8px 10px; border: 0; }
.color-select__opt.is-on { outline: 2px solid var(--theme-primary); }
.color-select__emoji { font-size: 1.15rem; line-height: 1; }
.color-select__btn[data-tone="mfg"], .color-select__opt[data-tone="mfg"] { background: color-mix(in srgb, #6366f1 16%, var(--theme-surface)); }
.color-select__btn[data-tone="trade"], .color-select__opt[data-tone="trade"] { background: color-mix(in srgb, #0d9488 16%, var(--theme-surface)); }
.color-select__btn[data-tone="service"], .color-select__opt[data-tone="service"] { background: color-mix(in srgb, #d97706 16%, var(--theme-surface)); }
.color-select__btn[data-tone="vehicle"], .color-select__opt[data-tone="vehicle"] { background: color-mix(in srgb, #2563eb 16%, var(--theme-surface)); }
.color-select__btn[data-tone="home"], .color-select__opt[data-tone="home"] { background: color-mix(in srgb, #db2777 16%, var(--theme-surface)); }
.color-select__btn[data-tone="office"], .color-select__opt[data-tone="office"] { background: color-mix(in srgb, #7c3aed 16%, var(--theme-surface)); }
.color-select__btn[data-tone="mixed"], .color-select__opt[data-tone="mixed"] { background: color-mix(in srgb, #059669 16%, var(--theme-surface)); }
.figure-scale-field { max-width: 360px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.re-bank-layout { display: flex; flex-direction: column; gap: 18px; }
.re-bank-card {
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--theme-surface, #fff) 94%, #fff), color-mix(in srgb, var(--theme-primary-soft, #e8f1ff) 72%, #fff));
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1d4ed8) 18%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-primary, #1d4ed8) 8%, transparent);
}
.re-bank-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.re-bank-card__head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.re-bank-card__head p { margin: 0; color: var(--theme-text-secondary, #64748b); font-size: 0.92rem; }
.re-bank-card__kicker {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-primary, #1d4ed8), color-mix(in srgb, var(--theme-primary, #1d4ed8) 65%, #0f172a));
}
.re-bank-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.re-timeline-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-top: 16px; }
.re-timeline-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1d4ed8) 16%, #e2e8f0);
}
.re-timeline-card span { display: block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--theme-text-secondary, #64748b); margin-bottom: 6px; }
.re-timeline-card strong { display: block; font-size: 1.12rem; line-height: 1.25; }
.re-timeline-card small { display: block; margin-top: 4px; color: var(--theme-text-secondary, #64748b); font-size: 0.78rem; }
.re-fy-strip {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-primary-soft, #eef6ff) 78%, #fff);
  border: 1px dashed color-mix(in srgb, var(--theme-primary, #1d4ed8) 28%, transparent);
}
.re-fy-strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.re-fy-strip__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.re-fy-chip {
  min-width: 108px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #1d4ed8) 18%, #e2e8f0);
}
.re-fy-chip span { display: block; font-size: 0.78rem; color: var(--theme-text-secondary, #64748b); }
.re-fy-chip strong { font-size: 1rem; }
#re-bank-terms-mount .loan-terms-block { border: 0; box-shadow: none; background: transparent; padding: 0; margin: 0; }
@media (max-width: 900px) {
  .re-bank-dates { grid-template-columns: 1fr; }
}
