:root {
  --bg: #07090d;
  --bg-2: #10141c;
  --panel: rgba(244, 247, 251, 0.97);
  --panel-soft: rgba(236, 241, 246, 0.96);
  --line: rgba(214, 226, 236, 0.12);
  --line-strong: rgba(122, 145, 154, 0.24);
  --text: #18130f;
  --muted: #5d6b7d;
  --accent: #7a919a;
  --accent-soft: rgba(122, 145, 154, 0.12);
  --ink-900: #05070b;
  --ink-800: #11161d;
  --cloud-100: #dbe5f0;
  --cloud-50: #f4f7fb;
  --success: #7a919a;
  --danger: #dc2626;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(122, 145, 154, 0.14), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #04060a 0%, #0b0e14 46%, #07090d 100%);
  color: var(--text);
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.glass, .panel-shell, .lead-card, .login-card, .assistant-card { box-shadow: var(--shadow); }

.ambient-grid { display: none; }

.marketing-site-shell {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  gap: 24px;
}
.marketing-topbar,
.marketing-hero-card,
.marketing-feature-grid,
.plans-section-card,
.marketing-convert-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
}
.marketing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.marketing-topbar-actions { display: flex; gap: 12px; }
.marketing-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 34px;
  padding: 38px;
  background:
    radial-gradient(circle at 78% 20%, rgba(122, 145, 154, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.98) 0%, rgba(7, 9, 13, 0.98) 100%);
  border: 1px solid rgba(122, 145, 154, 0.14);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.marketing-hero-copy {
  max-width: 720px;
  padding-top: 4px;
}
.marketing-proof-stage {
  margin-top: 0;
  min-height: 100%;
}
.marketing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.marketing-feature-card,
.plans-section-card {
  background: rgba(12, 14, 19, 0.9);
  border: 1px solid rgba(122, 145, 154, 0.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.marketing-feature-card h3,
.plans-section-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: #f4f7fb;
}
.marketing-feature-card p { margin: 0; color: #475467; line-height: 1.6; }
.marketing-feature-card p,
.plans-section-card p,
.pricing-card p,
.pricing-card li,
.trust-note,
.footer-copy { color: #b8c4d1; }
.pricing-inline {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 14px;
  font-weight: 700;
  color: #cad6da;
}
.marketing-heading { margin-bottom: 20px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pricing-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(241, 246, 251, 0.98) 0%, rgba(227, 236, 244, 0.98) 100%);
  border: 1px solid rgba(122, 145, 154, 0.18);
}
.pricing-card h4 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.pricing-card strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}
.pricing-card p,
.pricing-card li {
  color: #475467;
  line-height: 1.6;
}
.pricing-card ul { margin: 14px 0 0; padding-left: 18px; }
.featured-plan {
  background: linear-gradient(180deg, #0b0d12 0%, #151922 100%);
  color: #fff;
  border-color: rgba(122, 145, 154, 0.24);
}
.featured-plan p,
.featured-plan li,
.featured-plan .eyebrow { color: rgba(255,255,255,0.78); }
.pricing-cta { width: 100%; margin-top: 12px; }
.marketing-convert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.trust-note {
  margin: 14px 0 0;
  color: #475467;
  line-height: 1.6;
}
.portal-entry-copy {
  max-width: 640px;
  padding-top: 4px;
}
.portal-entry-copy {
  max-width: 640px;
  padding-top: 4px;
}
.portal-entry-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 4.8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  max-width: 760px;
  text-wrap: balance;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.brand-tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.landing-brand-copy .brand-tagline,
.landing-brand-copy .brand-name {
  color: #f4f7fb;
}
.marketing-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.1rem, 5.4vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  color: #f4f7fb;
  text-wrap: balance;
}
.marketing-hero-copy .muted {
  color: #c7d4df;
  max-width: 60ch;
}
.marketing-hero-copy .eyebrow + .eyebrow {
  color: #8da2aa;
}
.marketing-hero-copy .quote-box strong,
.quote-box strong,
.plans-compare-card h4 { color: #f4f7fb; }
.simple-wordmark {
  align-items: center;
}
.landing-brand-lockup {
  gap: 18px;
}
.landing-brand-copy {
  display: grid;
  gap: 2px;
}
.brand-name {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
}
.brand-logo, .mini-logo {
  display: none;
}
.mini-wordmark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #0d0f14 0%, #202531 100%);
  color: #f4f7fb;
}
.pulse-mark { animation: none; }
.portal-entry-copy > .muted {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.48;
  color: #3f4d63;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.hero-proof {
  position: relative;
  margin-top: 32px;
  min-height: 312px;
  max-width: 520px;
}
.hero-dark-stage {
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.06), transparent 20%), linear-gradient(135deg, #05070b 0%, #0a0d12 48%, #11161d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 28px 70px rgba(11, 18, 32, 0.18);
}
.hero-beam {
  position: absolute;
  left: -10%;
  right: 30%;
  bottom: 46px;
  height: 90px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 40%, transparent 100%);
  filter: blur(18px);
  opacity: 0.35;
  transform: rotate(-8deg);
}
.hero-cube-cluster {
  position: absolute;
  right: 48px;
  top: 26px;
  width: 220px;
  height: 182px;
  transform: rotate(-18deg);
  animation: clusterFloat 9s ease-in-out infinite;
}
.cube {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1f28 0%, #07090d 100%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06), inset -1px -1px 0 rgba(0,0,0,0.4), 0 18px 30px rgba(0,0,0,0.32);
}
.cube::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
.cube-a { top: 16px; left: 58px; }
.cube-b { top: 58px; left: 6px; }
.cube-c { top: 60px; left: 110px; }
.cube-d { top: 102px; left: 58px; }
.cube-e { top: 16px; left: 122px; }
.cube-f { top: 102px; left: 122px; }
.quote-preview-card {
  position: relative;
  max-width: 312px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}
.dark-proof-card {
  margin-top: 116px;
}
.assembled-card {
  animation: cardAssemble 900ms cubic-bezier(.2,.8,.2,1) both;
}
.quote-preview-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.quote-preview-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.mini-logo {
  width: 42px;
  height: 42px;
}
.quote-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.22), rgba(34, 197, 94, 0.16));
  opacity: 0;
  animation: lineReveal 700ms ease forwards;
}
.line-mid { width: 74%; animation-delay: 180ms; }
.line-long { width: 100%; animation-delay: 80ms; }
.line-short { width: 48%; animation-delay: 280ms; }
.quote-totals {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.quote-totals small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quote-totals strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.portal-auth-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.tight-card {
  background: rgba(13, 16, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}
.secondary-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}
.auth-form { display: grid; gap: 12px; }
.lead-card, .login-card {
  background: rgba(13, 16, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}
.lead-card,
.login-card,
.lead-card h3,
.login-card h3,
.lead-card label,
.login-card label {
  color: #f4f7fb;
}
.lead-card h3, .login-card h3, .send-card h3 { margin: 8px 0 12px; font-size: 28px; line-height: 1.08; letter-spacing: -0.04em; }
.login-card .status-box,
.lead-card .status-box {
  min-height: 56px;
  display: flex;
  align-items: center;
  color: #d7e3ef;
  border-color: rgba(142, 164, 172, 0.22);
  background: rgba(20, 25, 33, 0.92);
}
.lead-card .muted,
.login-card .muted,
.lead-card .trust-note,
.login-card .trust-note {
  color: #9fb1c3;
}
.lead-card input,
.login-card input,
.lead-card textarea,
.login-card textarea,
.lead-card select,
.login-card select {
  background: #edf3fb;
  color: #11161d;
  border-color: rgba(169, 187, 194, 0.3);
}
.lead-card input::placeholder,
.login-card input::placeholder,
.lead-card textarea::placeholder,
.login-card textarea::placeholder {
  color: #7f94ac;
}
.lead-card .secondary-btn,
.login-card .secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7fb;
  border-color: rgba(142, 164, 172, 0.24);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: #98afb7;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; transition: grid-template-columns 180ms ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 88px 1fr; }
.sidebar {
  padding: 22px 14px;
  border-right: 1px solid rgba(122, 145, 154, 0.12);
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(16px);
  transition: padding 180ms ease, width 180ms ease;
}
.main-panel { padding: 30px 34px 40px; }
.sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.sidebar-toggle {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-row h1 { margin: 0; font-size: 32px; font-family: 'Space Grotesk', Manrope, sans-serif; letter-spacing: -0.04em; }
.brand-orb { display: none; }
.shell-brand-lockup { margin-bottom: 0; padding: 6px 8px 6px; flex: 1; }
.text-brand-lockup {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-badge,
.hero-badge {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}
.hero-badge {
  width: 64px;
  height: 64px;
}
.brand-stack {
  display: grid;
  gap: 2px;
}
.brand-kicker {
  font-family: 'Space Grotesk', Manrope, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #f4f7fb;
}
.brand-subline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #95a8b8;
}
.brand-wordmark { display: none; }
.sidebar-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.accent-card { background: linear-gradient(180deg, rgba(246, 247, 255, 1) 0%, rgba(240, 249, 255, 1) 100%); }
.brand-story-card { display: none; }

.stage-nav { display: grid; gap: 10px; }
.stage-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #f4f7fb;
  cursor: pointer;
  min-height: 58px;
}
.stage-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #d6e6f2;
  background: rgba(122, 145, 154, 0.1);
  flex: 0 0 auto;
}
.stage-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}
.stage-copy strong {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stage-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91a4b3;
}
.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(122, 145, 154, 0.12);
  color: #b8d6e7;
}
.pro-stage-link {
  background: linear-gradient(180deg, rgba(122, 145, 154, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(122, 145, 154, 0.18);
}
.pro-stage-link.locked {
  opacity: 0.88;
}
.pro-stage-link.active {
  background: linear-gradient(180deg, rgba(96,165,250,0.16) 0%, rgba(255,255,255,0.08) 100%);
}
.pro-stage-link.active .stage-badge {
  background: linear-gradient(180deg, rgba(96,165,250,0.3) 0%, rgba(96,165,250,0.16) 100%);
}
.stage-link.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(96,165,250,0.24);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}
.stage-link.active .stage-icon {
  background: linear-gradient(180deg, #8ea4ac 0%, #5f7279 100%);
  color: #05070b;
}
.app-shell.sidebar-collapsed .sidebar {
  padding-inline: 10px;
}
.app-shell.sidebar-collapsed .brand-stack-shell,
.app-shell.sidebar-collapsed .stage-copy,
.app-shell.sidebar-collapsed .stage-badge {
  display: none;
}
.app-shell.sidebar-collapsed .brand-badge {
  width: 36px;
  height: 36px;
}
.app-shell.sidebar-collapsed .sidebar-top {
  flex-direction: column;
  align-items: center;
}
.app-shell.sidebar-collapsed .shell-brand-lockup {
  padding-inline: 0;
  justify-content: center;
}
.app-shell.sidebar-collapsed .text-brand-lockup {
  justify-content: center;
}
.app-shell.sidebar-collapsed .stage-link {
  justify-content: center;
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.topbar-main {
  display: grid;
  gap: 14px;
}
.topbar h2 {
  display: block;
  margin: 0;
  font-size: 52px;
  line-height: .94;
  letter-spacing: -0.065em;
  font-family: 'Space Grotesk', Manrope, sans-serif;
  color: #f4f0e8;
}
.live-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #f4f0e8;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 145, 154, 0.12);
  border: 1px solid rgba(122, 145, 154, 0.24);
  color: #c7e1f3;
  font-weight: 800;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #8ea4ac 0%, #5f7279 100%);
  color: #05070b;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 18px 30px rgba(122, 145, 154, 0.24); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #f4f0e8;
  border: 1px solid rgba(122, 145, 154, 0.2);
}
.primary-large, .large { width: 100%; padding: 16px 18px; font-size: 17px; }
.small-btn { padding: 10px 14px; font-size: 13px; }

.workspace { display: grid; }
.stage-panel { display: none; }
.stage-panel.active { display: block; }
.panel-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
}
.panel-intro { margin-bottom: 28px; }
.block-heading, .section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.panel-intro h3, .review-header h3 { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.03em; }
.stage-panel:not(#homeStage) .panel-intro h3,
.stage-panel:not(#homeStage) .review-header h3,
.stage-panel:not(#homeStage) .send-card h3 {
  display: none;
}
.form-shell { max-width: 1320px; }
.review-shell, .send-shell { max-width: 1240px; }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.review-header-actions {
  display: flex;
  gap: 12px;
}
.review-adjustments-card {
  display: grid;
  gap: 20px;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid rgba(17,24,39,0.06);
  background: linear-gradient(180deg, #f9fbfd 0%, #f4f8fb 100%);
}
.review-adjustments-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}
.compact-field {
  margin-bottom: 0;
}
.review-stage-actions {
  margin-top: 18px;
}
.profile-block, .quote-section-card, .sticky-card, .home-card, .saved-quotes-card, .home-hero-panel, .trade-switcher-card {
  background: linear-gradient(180deg, rgba(245,248,252,0.98) 0%, rgba(235,241,247,0.98) 100%);
  border: 1px solid rgba(24, 20, 15, 0.06);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(11, 18, 32, 0.08);
}
.home-shell { display: grid; gap: 18px; }
.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  background: linear-gradient(135deg, #0a0d12 0%, #171c25 100%);
}
.home-hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(96,165,250,0.22), transparent 68%);
  pointer-events: none;
}
.home-hero-panel h3 {
  margin: 8px 0 14px;
  font-size: 56px;
  line-height: .92;
  letter-spacing: -0.075em;
  font-family: 'Space Grotesk', Manrope, sans-serif;
  max-width: 12ch;
  color: #f4f0e8;
}
.home-hero-panel .muted,
.home-hero-panel .eyebrow { color: #c9d7e3; }
.vertical-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}
.premium-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-grid { display: grid; gap: 18px; }
.stat-card { min-height: 180px; }
.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.notification-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  color: var(--text);
  line-height: 1.45;
}
.notification-item.success {
  border-color: rgba(18, 185, 129, 0.2);
  background: var(--accent-soft);
}
.saved-quotes-list { display: grid; gap: 12px; margin-top: 18px; }
.saved-quote-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.saved-quote-item p, .saved-quote-item span { margin: 4px 0 0; color: var(--muted); }
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.empty-state-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: #fff;
}
.block-heading h4, .section-heading h4, .sticky-card h4, .home-card h4, .saved-quotes-card h4 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; font-family: 'Space Grotesk', Manrope, sans-serif; }
.spaces-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(17,24,39,0.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(249,250,252,0.98) 0%, rgba(255,255,255,0.98) 100%);
}
.unified-spaces-card {
  display: grid;
  gap: 18px;
}
.spaces-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.spaces-card h5 {
  margin: 4px 0 0;
  font-size: 18px;
}
.spaces-list {
  display: grid;
  gap: 14px;
}
.space-item {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17,24,39,0.07);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}
.space-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.space-item-head h6 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.space-item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.unified-space-grid .field {
  margin-bottom: 0;
}
.unified-space-grid .field-span-2 {
  grid-column: span 2;
}
.space-heading-grid {
  margin-bottom: 0;
}
.space-subsection {
  display: grid;
  gap: 12px;
}
.space-subsection-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.space-subsection-head strong {
  font-size: 15px;
}
.space-material-list,
.space-surface-list {
  display: grid;
  gap: 12px;
}
.space-material-card,
.space-surface-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,0.07);
  background: rgba(248,250,252,0.9);
  display: grid;
  gap: 12px;
}
.collapsible-surface-card {
  padding: 0;
  overflow: hidden;
}
.space-surface-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.space-surface-summary::-webkit-details-marker {
  display: none;
}
.space-surface-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}
.space-surface-meta {
  color: #667085;
  font-weight: 700;
}
.space-inline-toggle {
  display: grid;
  grid-template-columns: 180px minmax(0, 220px);
  gap: 12px;
  align-items: center;
}
.space-material-title,
.space-surface-title {
  font-weight: 800;
  color: #0f172a;
}
.material-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.wide-material-grid {
  grid-template-columns: 0.9fr 1.2fr 1fr 1fr 0.8fr;
}
.prep-grid {
  grid-template-columns: minmax(0, 240px);
}
.space-item-actions {
  display: flex;
  justify-content: flex-end;
}
.sent-quotes-card {
  margin-top: 24px;
}
.quote-cut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.quotecut-stage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,253,0.98) 100%);
  color: #111827;
  border: 1px solid rgba(17,24,39,0.08);
  margin-bottom: 24px;
}
.quotecut-stage-hero-copy {
  max-width: 72ch;
}
.quotecut-stage-hero h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #111827;
  max-width: 15ch;
}
.quotecut-stage-hero .muted {
  color: #516074;
  max-width: 58ch;
}
.quotecut-hero-aside {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0f172a 0%, #16233b 100%);
  color: #fff;
  align-content: start;
}
.quotecut-hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.9);
}
.quotecut-hero-aside strong {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.quotecut-hero-aside p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.quotecut-stage-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 22px;
  align-items: start;
}
.quotecut-stage-sidebar,
.quotecut-stage-main {
  display: grid;
  gap: 18px;
}
.quotecut-pick-card,
.quotecut-empty-card,
.quotecut-access-card {
  min-height: 100%;
}
.quotecut-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quotecut-empty-tile {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(17,24,39,0.08);
  background: linear-gradient(180deg, rgba(248,250,252,0.92) 0%, rgba(255,255,255,0.98) 100%);
  display: grid;
  gap: 10px;
  align-content: start;
}
.quotecut-empty-tile strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}
.quotecut-picker-item {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.quotecut-picker-item.active {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 16px 30px rgba(37,99,235,0.08);
  transform: translateY(-1px);
}
.quotecut-picker-item.active strong {
  color: #0f172a;
}
.quotecut-shell {
  display: grid;
  gap: 18px;
}
.quotecut-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(255,255,255,0.98) 100%);
  color: #111827;
  border: 1px solid rgba(17,24,39,0.08);
}
.quotecut-topbar-copy {
  max-width: 68ch;
}
.quotecut-topbar h4 {
  margin: 4px 0 8px;
  font-size: 24px;
  color: #111827;
  text-transform: none;
  letter-spacing: -0.03em;
}
.quotecut-topbar .muted {
  color: #516074;
}
.quotecut-topbar-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}
.quotecut-topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #243043;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quotecut-step-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quotecut-step-line span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #5b6476;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quotecut-step-line span.active {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}
.quotecut-glow-box {
  background: linear-gradient(180deg, #f5fbff 0%, #eef6ff 100%);
}
.success-amount {
  color: #16a34a;
}
.quotecut-progress-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #111827;
  margin-bottom: 14px;
  border: 1px solid rgba(17,24,39,0.06);
}
.quotecut-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.quotecut-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,0.16);
  overflow: hidden;
}
.quotecut-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 52%, #22c55e 100%);
}
.quotecut-progress-card .muted {
  color: #516074;
}
.quotecut-section-subtitle {
  margin-top: 8px !important;
}
.quotecut-compare-table,
.quotecut-order-list,
.quotecut-supplier-groups {
  display: grid;
  gap: 12px;
}
.quotecut-compare-row,
.quotecut-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) .6fr .7fr .7fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(255,255,255,0.86);
}
.quotecut-compare-row p,
.quotecut-order-item p {
  margin-top: 4px;
  color: #475467;
  font-size: 14px;
}
.quotecut-price-stack {
  display: grid;
  gap: 4px;
}
.old-price {
  text-decoration: line-through;
  color: #98a2b3;
  font-size: 14px;
}
.supplier-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.supplier-chip.bunnings { background: #0f766e; }
.supplier-chip.reece { background: #2563eb; }
.supplier-chip.beaumont { background: #7c3aed; }
.supplier-chip.tilecloud { background: #0891b2; }
.quotecut-supplier-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,0.08);
  background: #f8fbff;
  display: grid;
  gap: 14px;
}
.quotecut-supplier-header,
.quotecut-order-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.quotecut-supplier-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quotecut-supplier-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  color: #475467;
  font-size: 14px;
}
.primary-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,0.24);
}
.primary-inline-btn.small-btn {
  padding: 9px 14px;
}
.quotecut-master-actions {
  margin-bottom: 14px;
}
@media (max-width: 1180px) {
  .quotecut-stage-hero,
  .quotecut-stage-grid,
  .space-item-grid,
  .material-grid,
  .wide-material-grid,
  .prep-grid,
  .quote-cut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quotecut-empty-grid {
    grid-template-columns: 1fr;
  }
  .quotecut-compare-row,
  .quotecut-order-item {
    grid-template-columns: minmax(0, 1fr) 1fr;
  }
  .quotecut-topbar {
    grid-template-columns: 1fr;
  }
  .quotecut-topbar-meta,
  .quotecut-step-line {
    justify-items: start;
    justify-content: flex-start;
  }
  .space-inline-toggle {
    grid-template-columns: 1fr 1fr;
  }
  .unified-space-grid .field-span-2 {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .quotecut-stage-hero,
  .spaces-card-head,
  .space-item-head,
  .space-subsection-head,
  .space-surface-summary,
  .space-inline-toggle {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .quotecut-stage-grid,
  .space-item-grid,
  .material-grid,
  .wide-material-grid,
  .prep-grid,
  .quote-cut-grid {
    grid-template-columns: 1fr;
  }
  .quotecut-topbar,
  .quotecut-supplier-header,
  .quotecut-order-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .quotecut-supplier-totals {
    justify-content: flex-start;
  }
  .quotecut-topbar-meta,
  .quotecut-step-line {
    justify-items: start;
    justify-content: flex-start;
  }
  .unified-space-grid .field-span-2 {
    grid-column: span 1;
  }
}

.field { margin-bottom: 18px; }
.static-field .readonly-field-value {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248,250,252,0.9);
  color: #475467;
  font-weight: 600;
}
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
input, select, textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255,255,255,0.96);
  color: #18130f;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(15, 157, 122, 0.34);
  box-shadow: 0 0 0 3px rgba(15, 157, 122, 0.08);
}
textarea { min-height: 120px; resize: vertical; }
.section-grid { display: grid; gap: 18px; margin-bottom: 4px; }
.trade-switcher-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  margin-bottom: 24px;
  align-items: end;
}
.prominent-trade-card {
  padding: 26px 28px;
  border: 1px solid rgba(14,27,24,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,248,0.98) 100%);
}
.trade-switcher-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  user-select: none;
}
.trade-switcher-copy {
  max-width: 42ch;
  margin: 0;
}
.trade-selector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: end;
}
.trade-selector-field {
  margin-bottom: 0;
}
.trade-select-wrap {
  position: relative;
}
.trade-select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #5b6476;
  pointer-events: none;
}
.trade-select-wrap select {
  appearance: none;
  padding-right: 52px;
  font-weight: 800;
  background: #fff;
  min-height: 58px;
}
.trade-selector-hint {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 13px;
}
.trade-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243,247,244,0.96) 0%, rgba(255,255,255,0.98) 100%);
  border: 1px solid rgba(14,27,24,0.08);
  align-content: center;
  min-height: 58px;
}
.trade-summary-card strong {
  font-size: 20px;
  line-height: 1.05;
  color: #111827;
}
.trade-summary-card p {
  margin: 0;
  font-size: 13px;
}
.trade-library-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,27,24,0.06);
  color: #243043;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.create-main { display: grid; gap: 18px; }
.create-side { position: relative; }
.sticky-card { position: sticky; top: 24px; }
.mini-summary { display: grid; gap: 12px; margin: 18px 0; }
.mini-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.mini-summary span { color: var(--muted); }
.mini-summary strong { max-width: 55%; text-align: right; font-size: 14px; }
.stage-actions.right { justify-content: flex-end; }
.stage-actions.split { justify-content: space-between; }

.quote-document {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #101828;
  border-radius: 30px;
  padding: 46px;
  min-height: 70vh;
  border: 1px solid rgba(17,24,39,0.06);
  box-shadow: 0 26px 70px rgba(11,18,32,0.08);
}
.quote-sheet { display: grid; gap: 28px; }
.quote-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dbe3f1;
}
.quote-sheet-header h2 { margin: 0 0 12px; font-size: 48px; line-height: 1.02; color: #0b1220; letter-spacing: -0.05em; font-family: 'Space Grotesk', Manrope, sans-serif; }
.branded-header { align-items: flex-start; }
.quote-meta { display: grid; gap: 12px; min-width: 240px; }
.quote-meta-card { padding: 18px; border-radius: 18px; background: #f8fbff; border: 1px solid #dbe3f1; }
.quote-meta .meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.quote-hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1220 0%, #111827 72%, #12332a 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.quote-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}
.quote-hero-box h3 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.quote-hero-box p, .quote-hero-side p { margin: 0; color: rgba(255,255,255,.82); }
.quote-hero-side { display: grid; align-content: start; gap: 6px; }
.quote-hero-side strong { font-size: 20px; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quote-box { border: 1px solid rgba(122, 145, 154, 0.16); border-radius: 16px; padding: 20px; background: rgba(255,255,255,0.04); }

.trade-coverage-card {
  display: grid;
  gap: 22px;
}

.trade-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 145, 154, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #e5ebed;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.quote-box h3,
.quote-box h4 {
  color: #f4f7fb;
}
.quote-box h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.quote-box p,
.quote-box .muted,
.quote-box li,
.quote-box span {
  color: #c7d4df;
}
.quote-box p { margin: 0; line-height: 1.6; }
.marketing-footer {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 8px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.marketing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
  color: #f4f0e8;
}
.marketing-footer-links a {
  text-decoration: none;
}
.footer-copy {
  max-width: 48ch;
  margin: 0;
}
.quote-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.quote-list li { margin-bottom: 6px; }
.client-total { align-items: flex-end; }
.quote-total {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f6fbf9 0%, #eef8f3 100%);
  border: 1px solid rgba(18,185,129,0.14);
}
.quote-total .total-label { font-size: 14px; color: #475467; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.quote-total strong { font-size: 62px; line-height: .95; color: #0f172a; letter-spacing: -0.04em; }
.quote-summary { display: grid; gap: 12px; color: #334155; align-content: center; }
.quote-summary div { font-size: 18px; }
.quote-summary div:first-child { font-weight: 700; color: #0f172a; }

.send-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-bottom: 18px; align-items: start; }
.send-card {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.primary-action { background: linear-gradient(180deg, #f8fafc 0%, #f2fbf7 100%); }
.status-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
}
.status-box.muted {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
}
.status-box.success { color: #166534; border-color: rgba(22, 163, 74, 0.18); background: rgba(22, 163, 74, 0.08); }
.status-box.error { color: #fecaca; border-color: rgba(248, 113, 113, 0.24); background: rgba(127, 29, 29, 0.28); }
.status-box a { color: inherit; font-weight: 800; }

.assistant-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.assistant-card {
  width: min(640px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.support-assistant-card {
  width: min(760px, 100%);
}
.assistant-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.assistant-body ul { margin: 0 0 20px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.assistant-feedback { display: grid; gap: 12px; }
.assistant-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}
.assistant-transcript {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
  margin: 6px 0 4px;
}
.assistant-message {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.assistant-message.user {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}
.assistant-message.assistant {
  background: linear-gradient(180deg, #f6fffb 0%, #eefbf6 100%);
}
.assistant-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.assistant-message-body {
  color: #0f172a;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media print {
  body { background: #fff; color: #111; }
  .sidebar, .topbar, .stage-actions, .send-grid, .status-box, .review-header, .assistant-panel { display: none !important; }
  .app-shell { display: block; }
  .panel-shell, .quote-document { background: #fff !important; border: 0 !important; box-shadow: none !important; }
}

@media (max-width: 1180px) {
  .app-shell, .send-grid, .create-layout, .home-grid, .premium-home-grid, .home-hero-panel, .marketing-hero-card, .marketing-feature-grid, .pricing-grid, .marketing-convert-grid { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .create-side { order: -1; }
  .sticky-card { position: static; }
}

@media (max-width: 860px) {
  .three-up, .two-up, .quote-grid, .quote-hero-box, .review-adjustments-grid { grid-template-columns: 1fr; }
  .topbar, .review-header, .quote-sheet-header, .quote-total, .stage-actions.split, .block-heading, .section-heading { flex-direction: column; }
  .marketing-site-shell, .main-panel, .sidebar { padding: 20px; }
  .marketing-topbar { flex-direction: column; align-items: flex-start; }
  .marketing-hero-card, .plans-section-card, .marketing-feature-card { padding: 28px; }
  .topbar-actions, .vertical-actions { width: 100%; }
  .topbar-actions button, .stage-actions button, .vertical-actions button { width: 100%; }
  .portal-entry-copy h1 { font-size: 34px; }
  .topbar h2, .home-hero-panel h3 { font-size: 34px; }
  .quote-sheet-header h2 { font-size: 34px; }
  .live-strip { border-radius: 20px; }
  .portal-entry-shell, .main-panel, .sidebar { padding: 20px; }
  .portal-entry-card { padding: 28px; gap: 26px; }
  .landing-brand-lockup { gap: 14px; }
  .hero-badge { width: 52px; height: 52px; }
  .saved-quote-item { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
}

@keyframes pulseGlow {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 20px 45px rgba(11, 18, 32, 0.16)); }
  50% { transform: translateY(-2px) scale(1.01); filter: drop-shadow(0 22px 48px rgba(18, 185, 129, 0.12)); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(0); opacity: 1; }
}

@keyframes cardAssemble {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes clusterFloat {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-8px); }
}

@keyframes lineReveal {
  from { opacity: 0; transform: scaleX(0.7); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}


.topbar.spacious-topbar {
  align-items: flex-start;
  gap: 18px;
}
.topbar-main {
  display: grid;
  gap: 14px;
}
.topbar-main h2 {
  margin: 0;
  font-size: clamp(52px, 5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.panel-shell.roomy-shell {
  padding: 40px 42px;
}
.trade-switcher-card,
.profile-block,
.quote-section-card,
.send-card,
.saved-quotes-card,
.home-card,
.review-adjustments-card,
.pipeline-card {
  border-radius: 26px;
}
.trade-switcher-card,
.profile-block,
.quote-section-card,
.saved-quotes-card,
.pipeline-card {
  border: 1px solid rgba(17,24,39,0.07);
  background: rgba(255,255,255,0.92);
}
.trade-switcher-card,
.profile-block,
.quote-section-card,
.pipeline-card {
  padding: 28px;
}
.block-heading,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 20px;
  align-items: start;
}
.block-heading .muted,
.section-heading .muted {
  margin: 2px 0 0;
}
.stage-link {
  min-height: 84px;
  border-radius: 24px;
}
.stage-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}
.topbar-actions .secondary-btn,
.secondary-btn,
button {
  min-height: 54px;
  border-radius: 18px;
}
.pipeline-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pipeline-pill {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #d5ddf0;
  background: #fff;
  color: #243043;
  font-weight: 700;
}
.pipeline-pill.active {
  background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  color: #fff;
  border-color: transparent;
}
.pro-feature-block {
  margin-top: 24px;
}
.pro-lock-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-weight: 600;
}
.inline-field-note {
  margin-top: 8px;
  font-size: 13px;
}
.locked-field {
  opacity: 0.72;
}
.spaces-rollup-summary {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  line-height: 1.5;
}
.quote-rollup-summary {
  margin-top: 12px;
}
.follow-up-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  color: #475467;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .block-heading,
  .section-heading {
    grid-template-columns: 1fr;
  }
}

.compact-hero-panel h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1.02;
}
.home-hero-panel {
  align-items: start;
}
.home-hero-panel h3,
.home-card h4,
.saved-quotes-card h4,
.send-card h3 {
  text-wrap: balance;
  max-width: 12ch;
}
.home-hero-panel .muted,
.home-card .muted,
.saved-quotes-card .muted {
  max-width: 56ch;
}
.saved-quote-actions.wrap-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quote-hub-item {
  align-items: center;
}
.send-shell .stage-actions {
  margin-top: 24px;
}
.send-shell .secondary-action {
  align-self: start;
}
.status-box {
  display: block;
}
.send-grid.more-air-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}
.pipeline-card {
  grid-column: 1 / -1;
}
.send-card {
  min-height: 100%;
}
.topbar-main h2 {
  font-size: clamp(44px, 4vw, 68px);
}
.block-heading h4, .section-heading h4, .sticky-card h4, .home-card h4, .saved-quotes-card h4 {
  font-size: 18px;
  line-height: 1.15;
}
.eyebrow {
  margin-bottom: 8px;
}
@media (max-width: 1200px) {
  .home-hero-panel h3,
  .compact-hero-panel h3 {
    max-width: none;
  }
}

.profile-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.profile-plan-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(17,24,39,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,250,253,0.96) 100%);
  display: grid;
  gap: 18px;
}
.profile-plan-card h4 {
  margin: 0;
  font-size: 28px;
}
.profile-plan-strip {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(17,24,39,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,250,253,0.96) 100%);
}
.profile-strip-heading {
  display: grid;
  align-content: start;
  gap: 10px;
}
.profile-strip-heading h4 {
  margin: 0;
  font-size: 28px;
}
.profile-strip-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-overview-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,0.07);
  background: rgba(255,255,255,0.78);
  display: grid;
  gap: 8px;
  align-content: start;
}
.account-overview-item strong {
  font-size: 15px;
}
.payment-overview-item {
  min-width: 0;
}
.payment-method-box {
  padding-top: 14px;
  border-top: 1px solid rgba(17,24,39,0.08);
  display: grid;
  gap: 8px;
}
.payment-method-box strong {
  font-size: 16px;
}
.quote-hub-item {
  padding-block: 18px;
}
.home-shell .saved-quotes-card,
.quotesStage .saved-quotes-card {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .profile-intro-grid,
  .profile-plan-strip,
  .profile-strip-metrics,
  .trade-switcher-card,
  .trade-switcher-head,
  .account-overview-grid {
    grid-template-columns: 1fr;
  }
  .trade-switcher-copy {
    max-width: none;
  }
  .trade-selector-layout {
    grid-template-columns: 1fr;
  }
}
