/* —— Fluid layout tokens (mobile → 4K); shared across marketing, app, ops, blog —— */
body.luxe {
  --page-edge: clamp(1rem, 2.5vw, 4rem);
  --pd-cursor-size-scale: 0.5;
  --page-width-app: min(calc(100% - 2 * var(--page-edge)), 92vw, 1920px);
  --page-width-marketing: min(calc(100% - 2 * var(--page-edge)), 90vw, 1840px);
  --page-width-quote-public: min(calc(100% - 2 * var(--page-edge)), 92vw, 1080px);
  --page-width-blog-article: min(calc(100% - 2 * var(--page-edge)), 94vw, 1960px);
  --page-width: var(--page-width-app);
  --prose-measure: min(100%, 78ch);
  --auth-panel-max: min(100%, 56rem);
  --auth-form-max: min(100%, 32rem);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.24), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.2), transparent 45%),
    radial-gradient(circle at 50% 120%, rgba(212, 175, 115, 0.22), transparent 45%),
    linear-gradient(170deg, #030712, #0b1220 48%, #121a2d);
}

body.luxe .topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(7, 11, 20, 0.52);
  backdrop-filter: blur(18px) saturate(150%);
  padding-left: max(var(--page-edge), calc((100vw - var(--page-width)) / 2));
  padding-right: max(var(--page-edge), calc((100vw - var(--page-width)) / 2));
}

body.luxe.site-marketing:not(.blog-site),
body.luxe[data-pd-nav="public"]:not(.blog-site) {
  --page-width: var(--page-width-marketing);
}

body.luxe.blog-site {
  --page-width: var(--page-width-marketing);
}

body.luxe.quote-page {
  --page-width: var(--page-width-quote-public);
}

@media (max-width: 640px) {
  body.luxe {
    --page-edge: 0.75rem;
  }
}

body.luxe.site-marketing .topbar,
body.luxe[data-pd-nav="public"] .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  box-sizing: border-box;
}

body.luxe.site-marketing,
body.luxe[data-pd-nav="public"] {
  --site-header-height: 84px;
  padding-top: var(--site-header-height);
  scroll-padding-top: var(--site-header-height);
}

body.luxe.app-page,
body.luxe.quote-page,
body.luxe[data-pd-nav="company-login"],
body.luxe[data-pd-nav="company-workspace"],
body.luxe[data-pd-nav="platform-owner"],
body.luxe[data-pd-nav="minimal"] {
  padding-top: 0;
}

body.luxe.app-page .topbar,
body.luxe.quote-page .topbar,
body.luxe[data-pd-nav="company-login"] .topbar,
body.luxe[data-pd-nav="company-workspace"] .topbar,
body.luxe[data-pd-nav="platform-owner"] .topbar,
body.luxe[data-pd-nav="minimal"] .topbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  z-index: 15;
  flex-wrap: wrap;
  row-gap: 10px;
  overflow: visible;
}

body.luxe .topbar-menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  body.luxe.site-marketing,
  body.luxe[data-pd-nav="public"] {
    --site-header-height: calc(64px + env(safe-area-inset-top, 0px));
    padding-top: var(--site-header-height);
    scroll-padding-top: var(--site-header-height);
  }

  body.luxe .brand-logo {
    width: min(200px, 56vw);
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  body.luxe .topbar .menu {
    display: none !important;
  }

  body.luxe .topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.luxe.site-marketing .topbar,
  body.luxe[data-pd-nav="public"] .topbar {
    grid-template-columns: unset;
    grid-template-areas: unset;
  }

  body.luxe .topbar .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.luxe .topbar-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
  }

  body.luxe .topbar-menu-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.topbar-mobile-open .topbar-menu-toggle .topbar-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.topbar-mobile-open .topbar-menu-toggle .topbar-menu-bar:nth-child(2) {
    opacity: 0;
  }

  body.topbar-mobile-open .topbar-menu-toggle .topbar-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.luxe .topbar .topbar-actions {
    display: none !important;
  }
}

.topbar-mobile-backdrop[hidden],
.topbar-mobile-panel[hidden] {
  display: none !important;
}

.topbar-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
}

.topbar-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(88vw, 320px);
  height: 100%;
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 18, 32, 0.97);
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: -12px 0 40px rgba(2, 6, 23, 0.45);
  overflow-y: auto;
  transform: translateX(104%);
  transition: transform 0.24s ease;
}

body.topbar-mobile-open .topbar-mobile-panel {
  transform: translateX(0);
}

.topbar-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.topbar-mobile-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.topbar-mobile-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.topbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-mobile-links a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.topbar-mobile-links a:hover,
.topbar-mobile-links a.is-active {
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}

.topbar-mobile-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.topbar-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.topbar-mobile-actions .btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 961px) {
  body.luxe .topbar-menu-toggle {
    display: none !important;
  }

  .topbar-mobile-panel,
  .topbar-mobile-backdrop {
    display: none !important;
  }
}

html[data-pd-theme="light"] .topbar-mobile-panel {
  background: rgba(255, 255, 255, 0.98);
  border-left-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] .topbar-mobile-links a {
  color: #334155;
}

html[data-pd-theme="light"] .topbar-mobile-links a:hover,
html[data-pd-theme="light"] .topbar-mobile-links a.is-active {
  background: rgba(14, 165, 233, 0.1);
  color: #0f172a;
}

html[data-pd-theme="light"] .topbar-mobile-close,
html[data-pd-theme="light"] body.luxe .topbar-menu-toggle {
  color: #334155;
  border-color: rgba(100, 116, 139, 0.32);
  background: rgba(248, 250, 252, 0.98);
}

body.luxe .brand {
  font-size: 1.34rem;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

body.luxe .brand-logo {
  width: auto;
  max-width: min(220px, 38vw);
  max-height: 44px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

body.luxe .topbar a.brand {
  display: inline-flex;
  align-items: center;
  max-height: 48px;
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}

html[data-pd-theme="light"] body.luxe .brand-logo.brand-logo-fallback-light {
  filter: contrast(1.45) brightness(0.5) saturate(1.2);
}

body.luxe .menu a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #dbeafe;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

body.luxe .menu a::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(125, 211, 252, 0.68), rgba(125, 211, 252, 0.26) 38%, rgba(125, 211, 252, 0) 72%);
  transform: scale(0.18);
  opacity: 0;
  transition: transform 0.34s ease, opacity 0.26s ease;
  pointer-events: none;
}

body.luxe .menu a:hover,
body.luxe .menu a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(186, 230, 253, 0.75);
  border-color: rgba(125, 211, 252, 0.38);
}

body.luxe .menu a:hover::before,
body.luxe .menu a:focus-visible::before {
  transform: scale(1.26);
  opacity: 1;
}

body.luxe .topbar::before {
  content: "";
  position: absolute;
  inset: -120% -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 40%, rgba(96, 165, 250, 0.4), transparent 36%),
    radial-gradient(circle at 85% 45%, rgba(13, 148, 136, 0.34), transparent 36%),
    radial-gradient(circle at 55% 60%, rgba(212, 175, 115, 0.24), transparent 34%);
  filter: blur(22px);
  animation: liquidHeaderFlow 15s ease-in-out infinite;
}

body.luxe .topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 62%);
  transform: translateX(-130%);
  animation: headerShimmer 5.2s ease-in-out infinite;
}

body.luxe .menu a .nav-ripple {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  z-index: 4;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1),
    rgba(186, 230, 253, 0.95) 20%,
    rgba(125, 211, 252, 0.86) 42%,
    rgba(56, 189, 248, 0.58) 62%,
    rgba(56, 189, 248, 0) 80%
  );
  animation: navRipple 1200ms cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
}

body.luxe .menu a.nav-tap {
  animation: navTapPulse 700ms ease-out;
}

@keyframes liquidHeaderFlow {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); }
  33% { transform: translateX(7%) translateY(-6%) scale(1.04); }
  66% { transform: translateX(-6%) translateY(6%) scale(1.06); }
}

@keyframes navRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(24);
    opacity: 0;
  }
}

@keyframes navTapPulse {
  0% {
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
  28% {
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.55), 0 0 24px rgba(125, 211, 252, 0.45);
  }
  100% {
    box-shadow: 0 0 0 rgba(125, 211, 252, 0);
  }
}

body.luxe .topbar .header-wave {
  position: absolute;
  left: var(--wave-x, 50%);
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  background: radial-gradient(
    circle,
    rgba(224, 242, 254, 0.8),
    rgba(125, 211, 252, 0.5) 38%,
    rgba(125, 211, 252, 0) 75%
  );
  mix-blend-mode: screen;
  animation: headerWaveExpand 760ms ease-out forwards;
  z-index: 3;
}

@keyframes headerWaveExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(80);
    opacity: 0;
  }
}

@keyframes headerShimmer {
  0% { transform: translateX(-130%); opacity: 0; }
  18% { opacity: 0.4; }
  50% { opacity: 0.58; }
  82% { opacity: 0.2; }
  100% { transform: translateX(130%); opacity: 0; }
}

.luxe-main {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.luxe-hero {
  margin-top: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 55%);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.72);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.luxe-copy h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
}

.luxe-copy .subtext {
  margin-left: 0;
}

.luxe-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(212, 165, 116, 0.28);
  border-radius: 20px;
  padding: clamp(12px, 1.8vw, 16px) clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.9) 42%, rgba(2, 6, 23, 0.88) 100%),
    radial-gradient(circle at 88% 12%, rgba(232, 180, 168, 0.14), transparent 48%),
    radial-gradient(circle at 8% 92%, rgba(56, 189, 248, 0.1), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 48px rgba(2, 6, 23, 0.55),
    0 0 36px rgba(201, 149, 108, 0.07);
  overflow: hidden;
}

.luxe-pipeline {
  min-height: 100%;
}

.luxe-pipeline-stats {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(8px, 1.6vh, 12px);
  min-height: 0;
}

.luxe-pipeline-footer {
  margin-top: auto;
  padding-top: clamp(12px, 2vh, 16px);
  border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.luxe-pipeline-punch {
  margin: 0 0 10px;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(0.76rem, 1.35vw, 0.92rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(118deg, #fde8e4 0%, #e8b4a8 22%, #d4a574 48%, #f0d4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(201, 149, 108, 0.12));
}

.luxe-pipeline-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.luxe-pipeline-perks li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  font-size: clamp(0.58rem, 1.1vw, 0.66rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 165, 116, 0.28);
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .luxe-pipeline-punch {
    white-space: normal;
    font-size: 0.78rem;
  }

  .luxe-pipeline-perks {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .luxe-pipeline-perks li {
    white-space: normal;
    padding: 8px 12px;
  }
}

.luxe-pipeline .depth-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(212, 165, 116, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 116, 0.1) 1px, transparent 1px);
}

.tilt-strong:not(.home-price-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(125, 211, 252, 0.28),
    rgba(125, 211, 252, 0.12) 35%,
    rgba(125, 211, 252, 0) 72%
  );
  mix-blend-mode: screen;
}

.luxe-pipeline.tilt-strong::after {
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 180, 168, 0.24),
    rgba(212, 165, 116, 0.1) 38%,
    rgba(212, 165, 116, 0) 72%
  );
}

.luxe-badge {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(212, 165, 116, 0.42);
  background: linear-gradient(135deg, rgba(232, 180, 168, 0.14), rgba(201, 149, 108, 0.08));
  color: #f5e6d3;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  text-transform: uppercase;
  margin-bottom: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.luxe-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 14px;
  border: 1px solid rgba(212, 165, 116, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(15, 23, 42, 0.62));
  padding: clamp(12px, 1.6vw, 15px) clamp(13px, 1.8vw, 15px);
  margin-top: 0;
  transform: translateZ(12px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.luxe-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
  opacity: 0.55;
}

.luxe-panel:hover {
  border-color: rgba(232, 180, 168, 0.32);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35), 0 0 20px rgba(201, 149, 108, 0.08);
}

.luxe-panel-label {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(118deg, #fde8e4 0%, #e8b4a8 28%, #d4a574 52%, #e8c9a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.luxe-panel-value {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 35%, #f0d4c8 72%, #e8c9a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 10px rgba(201, 149, 108, 0.15));
}

.luxe-pipeline .meter {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: none;
  overflow: hidden;
}

.luxe-pipeline .meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8835a 0%, #d4a574 38%, #e8b4a8 68%, #f5d0c5 100%);
  box-shadow: 0 0 14px rgba(212, 165, 116, 0.45);
}

.meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0d9488 70%, #67e8f9);
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.55);
}

.luxe-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* —— Homepage WHY section (transparent glass + accent colors) —— */
.section-why {
  background: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}

.section-head-why .why-eyebrow {
  color: #d4af73;
  letter-spacing: 0.12em;
}

.why-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

body.luxe .why-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 22px 26px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--why-accent) 28%, transparent);
  background: rgba(15, 23, 42, 0.1) !important;
  backdrop-filter: blur(11px) saturate(125%);
  -webkit-backdrop-filter: blur(11px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.luxe .why-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 16% 0%, var(--why-glow, rgba(212, 175, 115, 0.12)), transparent 58%);
}

body.luxe .why-feature-card::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--why-accent), transparent);
}

.why-feature-card--quote {
  --why-accent: #d4af73;
  --why-glow: rgba(212, 175, 115, 0.14);
}

.why-feature-card--follow {
  --why-accent: #a78bfa;
  --why-glow: rgba(167, 139, 250, 0.13);
}

.why-feature-card--visibility {
  --why-accent: #f0ab6e;
  --why-glow: rgba(240, 171, 110, 0.12);
}

body.luxe .why-feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--why-accent) 42%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 44px rgba(2, 6, 23, 0.32);
}

.why-feature-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--why-accent);
  background: color-mix(in srgb, var(--why-accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--why-accent) 26%, transparent);
}

.why-feature-icon svg {
  width: 22px;
  height: 22px;
}

body.luxe .why-feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

body.luxe .why-feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #b8c5d6;
}

@media (max-width: 980px) {
  .why-feature-grid {
    grid-template-columns: 1fr;
  }
}

body.luxe .glass-card,
body.luxe .price-card:not(.home-price-card),
body.luxe .step {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
}

body.luxe .featured:not(.home-price-card) {
  background:
    linear-gradient(155deg, rgba(37, 99, 235, 0.35), rgba(13, 148, 136, 0.18));
}

@media (max-width: 980px) {
  .luxe-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .luxe-feature-grid {
    grid-template-columns: 1fr;
  }
}

.capture-page-shell {
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 16px 32px;
  box-sizing: border-box;
}

.capture-split {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.capture-intro {
  position: relative;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(13, 148, 136, 0.16), transparent 50%);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.58);
  overflow: hidden;
}

.capture-intro h1 {
  margin: 10px 0 12px;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  color: #f8fafc;
}

.capture-intro-lead {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  max-width: var(--prose-measure);
}

.capture-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capture-metric {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 10px;
  background: rgba(2, 6, 23, 0.35);
  text-align: center;
}

.capture-metric-value {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e0f2fe;
}

.capture-metric-label {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #94a3b8;
}

.capture-points {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.capture-points p {
  margin: 0;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(2, 132, 199, 0.14);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.capture-points span {
  color: #e0f2fe;
  font-weight: 700;
  margin-right: 4px;
}

.capture-points-compact {
  margin-top: 14px;
}

.capture-form-panel {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 28px);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.5);
  margin-bottom: 0;
}

.capture-form-panel h2 {
  margin: 0 0 6px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.35rem;
}

.capture-form-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capture-form-grid .span-full {
  grid-column: 1 / -1;
}

.capture-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.capture-channel-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.capture-channel {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.38);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.capture-channel:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.capture-channel-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.capture-channel strong {
  font-size: 0.95rem;
  color: #e0f2fe;
}

.capture-channel em {
  font-style: normal;
  font-size: 0.82rem;
  color: #94a3b8;
}

.capture-intro-contact .contact-quick-actions {
  margin-top: 16px;
}

/* —— Luxury rose-gold heading (marketing cards) —— */
.luxe-heading-rose {
  background: linear-gradient(
    118deg,
    #fde8e4 0%,
    #e8b4a8 18%,
    #d4a574 40%,
    #c9956c 55%,
    #e8c9a0 72%,
    #fcefe8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(201, 149, 108, 0.22));
}

/* —— Contact page: standard width + fluid equal cards —— */
.contact-page .capture-page-shell {
  width: var(--page-width);
  max-width: calc(100% - 2 * var(--page-edge));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(14px, 2.2vw, 24px) clamp(12px, 1.5vw, var(--page-edge)) clamp(22px, 3vw, 36px);
  box-sizing: border-box;
}

.contact-page .capture-split {
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-page .capture-intro,
.contact-page .capture-form-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contact-page .capture-intro {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: clamp(14px, 1.8vw, 20px);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.45);
}

.contact-page .capture-intro .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.contact-page .capture-intro h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.15;
}

.contact-page .capture-intro-lead {
  font-size: clamp(0.84rem, 1.6vw, 0.92rem);
  line-height: 1.5;
}

.contact-page .capture-intro-canada {
  margin: 8px 0 0;
}

.contact-page .contact-dir {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.contact-page .contact-dir-item.capture-channel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 16px);
  padding: clamp(8px, 1.2vw, 10px) clamp(10px, 1.5vw, 14px);
  border-radius: 10px;
  min-width: 0;
}

.contact-page .contact-dir-label {
  flex: 0 0 clamp(4.8rem, 12vw, 5.5rem);
  font-size: clamp(0.64rem, 1.4vw, 0.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.contact-page .contact-dir-value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: clamp(0.76rem, 1.6vw, 0.84rem);
  font-weight: 600;
  color: #e0f2fe;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-page .contact-dir-item:hover .contact-dir-value {
  color: #f8fafc;
}

.contact-page .contact-meta-strip {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(10px, 2vw, 16px);
  padding: clamp(7px, 1.2vw, 10px) clamp(10px, 1.5vw, 14px);
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.32);
}

.contact-page .contact-meta-strip p {
  margin: 0;
  border: none;
  padding: 0;
  background: transparent;
  font-size: clamp(0.74rem, 1.4vw, 0.8rem);
  color: #94a3b8;
}

.contact-page .contact-meta-strip span {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 5px;
}

.contact-page .contact-quick-actions {
  margin-top: auto;
  padding-top: 10px;
  gap: 8px;
}

.contact-page .capture-form-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: clamp(14px, 1.8vw, 20px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.42);
}

.contact-page .capture-form-panel h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.2;
}

.contact-page .capture-form-panel > .quote-meta {
  font-size: clamp(0.8rem, 1.5vw, 0.86rem);
  margin: 0;
}

.contact-page .capture-form-grid {
  margin-top: 12px;
  gap: clamp(8px, 1.4vw, 12px);
  flex: 1 1 auto;
}

.contact-page .capture-form-grid label {
  gap: 5px;
  font-size: clamp(0.84rem, 1.5vw, 0.9rem);
  font-weight: 500;
}

.contact-page .capture-form-grid input,
.contact-page .capture-form-grid select,
.contact-page .capture-form-grid textarea {
  padding: clamp(7px, 1.2vw, 10px) clamp(9px, 1.4vw, 12px);
  border-radius: 9px;
  font-size: clamp(0.86rem, 1.5vw, 0.9rem);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.88);
  color-scheme: dark;
}

.contact-page .capture-form-grid textarea {
  min-height: clamp(68px, 12vw, 88px);
  resize: vertical;
}

.contact-page .capture-form-actions {
  margin-top: 2px;
}

.contact-page .capture-form-actions .btn {
  padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2vw, 20px);
  font-size: clamp(0.84rem, 1.5vw, 0.9rem);
}

@media (max-width: 900px) {
  .contact-page .capture-split {
    grid-template-columns: 1fr;
  }

  .contact-page .capture-intro,
  .contact-page .capture-form-panel {
    height: auto;
  }

  .contact-page .contact-dir-value {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: unset;
    overflow: visible;
  }
}

@media (min-width: 1400px) {
  .contact-page .capture-split {
    gap: 24px;
  }
}

.capture-page .footer {
  width: var(--page-width);
  max-width: calc(100% - 2 * var(--page-edge));
}

body.luxe .footer {
  width: var(--page-width);
  max-width: calc(100% - 2 * var(--page-edge));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.luxe.site-marketing .legal-card p,
body.luxe.site-marketing .legal-card li,
body.luxe .luxe-copy .subtext,
body.luxe .get-started-lead {
  max-width: var(--prose-measure);
}

.branding-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.35);
}

.branding-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #e0f2fe;
}

.branding-form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.branding-form-grid .span-full {
  grid-column: 1 / -1;
}

.branding-pdf-footer-option {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

.branding-checkbox,
.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer;
  font-size: 0.92rem;
  color: #cbd5e1;
  font-weight: 500;
}

.branding-checkbox input,
.checkbox-row input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.checkbox-row-list {
  display: grid;
  gap: 10px;
}

.automation-form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.automation-form-grid .span-full {
  grid-column: 1 / -1;
}

.automation-timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-block > label {
  font-weight: 600;
  color: #e2e8f0;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #94a3b8;
}

.field-hint code {
  font-size: 0.82rem;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.5);
  padding: 1px 5px;
  border-radius: 4px;
}

html[data-pd-theme="light"] .branding-pdf-footer-option {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.quick-quote-panel,
#automation-panel {
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.35);
}

.branding-panel summary,
.quick-quote-panel summary,
#automation-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #e0f2fe;
}

.quick-quote-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-quote-grid .span-full {
  grid-column: 1 / -1;
}

html[data-pd-theme="light"] .quick-quote-panel,
html[data-pd-theme="light"] #automation-panel,
html[data-pd-theme="light"] body.luxe .branding-panel {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-pd-theme="light"] body.luxe .branding-panel summary,
html[data-pd-theme="light"] body.luxe .quick-quote-panel summary,
html[data-pd-theme="light"] body.luxe #automation-panel summary {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .checkbox-row,
html[data-pd-theme="light"] body.luxe .branding-checkbox {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .field-block > label {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .field-hint {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .field-hint code {
  color: #0369a1;
  background: #e0f2fe;
}

html[data-pd-theme="light"] body.luxe .quote-end-right {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-pd-theme="light"] body.luxe .quote-end-right h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .totals-preview {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

html[data-pd-theme="light"] body.luxe .totals-preview p,
html[data-pd-theme="light"] body.luxe .totals-preview p span,
html[data-pd-theme="light"] body.luxe .totals-preview p strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .totals-preview .grand {
  border-top-color: #cbd5e1;
}

html[data-pd-theme="light"] body.luxe .quote-tax-tools p {
  color: #475569;
}

.quote-brand-banner {
  margin-bottom: 14px;
}

.quote-brand-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.65), rgba(2, 6, 23, 0.85));
}

.quote-brand-logo {
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
}

.quote-brand-name {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.25rem;
  color: var(--quote-brand-color, #38bdf8);
}

.quote-brand-tagline,
.quote-brand-contact {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.form-card {
  max-width: min(100%, 54rem);
  margin: 0 auto;
}

.form-card.tilt-soft {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-form {
  display: grid;
  gap: 14px;
}

.app-form label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
}

.app-form input,
.app-form select,
.app-form textarea {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22);
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.slot-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.75);
}

.slot-btn.active {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
  color: #dbeafe;
}

.form-status {
  margin: 2px 0 0;
  min-height: 24px;
  font-weight: 600;
}

.form-status.loading {
  color: #93c5fd;
}

.form-status.success {
  color: #5eead4;
}

.form-status.error {
  color: #fca5a5;
}

.contact-wrap {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.contact-page .contact-hero {
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.2), transparent 52%);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.56);
  margin-bottom: 16px;
}

.contact-quick-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.contact-card {
  margin-bottom: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(2, 6, 23, 0.4);
}

.contact-tag {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.contact-page .contact-card h2 {
  margin: 0;
  font-size: 1.24rem;
}

.contact-page .contact-card p {
  margin: 0;
}

.contact-link {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.6);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(224, 242, 254, 0.16), 0 10px 24px rgba(8, 47, 73, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(186, 230, 253, 0.95);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(224, 242, 254, 0.26), 0 12px 28px rgba(56, 189, 248, 0.35);
}

.contact-meta-card {
  margin-top: 14px;
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.12), rgba(2, 132, 199, 0.06));
}

.contact-meta-card strong {
  color: #e2e8f0;
}

.app-wrap,
.legal-wrap.app-wrap,
.platform-admin-wrap,
.luxe-main.app-wrap,
.contact-wrap.app-wrap {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.app-wrap > .app-hero,
.app-wrap > .legal-header,
.app-wrap > .team-section,
.app-wrap > .team-section-divider,
.app-wrap > .legal-card,
.app-wrap > .admin-shell,
.app-wrap > .analytics-strip,
.app-wrap > .platform-admin-grid,
.app-wrap > .platform-login-card,
.app-wrap > .platform-login-shell,
.app-wrap > .owner-page-diff,
.app-wrap > .invite-split,
.platform-admin-wrap > .app-hero,
.platform-admin-wrap > .legal-header,
.platform-admin-wrap > .legal-card,
.platform-admin-wrap > .admin-shell,
.platform-admin-wrap > .platform-admin-grid,
.platform-admin-wrap > .platform-login-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.app-hero {
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.2), transparent 52%);
}

.app-auth-card {
  margin-bottom: 14px;
}

.app-workspace-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.app-workspace-hero h1 {
  margin-bottom: 6px;
}

.app-login-page main {
  max-width: var(--page-width);
}

.workflow-strip-mount {
  width: min(var(--page-width), calc(100% - 2 * var(--page-edge)));
  max-width: 100%;
  margin: 14px auto 16px;
  padding: 0 4px;
  box-sizing: border-box;
}

.workflow-strip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.78));
}

.workflow-strip-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.workflow-strip-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.workflow-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.35);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

a.workflow-step:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.45);
}

.workflow-step.is-active {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22);
  background: rgba(14, 116, 144, 0.22);
}

.workflow-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.workflow-step-copy {
  display: grid;
  gap: 2px;
}

.workflow-step-copy strong {
  font-size: 0.88rem;
  color: #f1f5f9;
}

.workflow-step-copy em {
  font-style: normal;
  font-size: 0.78rem;
  color: #94a3b8;
}

.get-started-section .section-head {
  margin-bottom: 36px;
}

.get-started-lead {
  max-width: var(--prose-measure);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.luxe .get-started-panel-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(186, 230, 253, 0.2);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background:
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(15, 23, 42, 0.52) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 64px rgba(2, 6, 23, 0.48);
}

body.luxe .get-started-panel-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(13, 148, 136, 0.12), transparent 55%);
}

.get-started-panel-glass > * {
  position: relative;
  z-index: 1;
}

.get-started-panel-head {
  text-align: center;
  margin-bottom: 32px;
}

.get-started-panel-head h3 {
  margin-top: 8px;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.get-started-panel-sub {
  margin: 12px auto 0;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
}

.get-started-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px 6px;
  align-items: stretch;
  margin-bottom: 32px;
}

.get-started-flow-arrow {
  align-self: center;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.55), rgba(13, 148, 136, 0.35));
  position: relative;
  flex-shrink: 0;
}

.get-started-flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: rgba(56, 189, 248, 0.65);
}

.get-started-step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 18px 16px 20px;
  background: rgba(15, 23, 42, 0.45);
  text-align: left;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.get-started-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.85;
  background: radial-gradient(circle at 20% 0%, var(--step-glow, rgba(56, 189, 248, 0.14)), transparent 58%);
}

.get-started-step--signin { --step-glow: rgba(56, 189, 248, 0.16); --step-accent: #38bdf8; }
.get-started-step--quotes { --step-glow: rgba(14, 165, 233, 0.16); --step-accent: #0ea5e9; }
.get-started-step--team { --step-glow: rgba(13, 148, 136, 0.16); --step-accent: #14b8a6; }
.get-started-step--notify { --step-glow: rgba(129, 140, 248, 0.14); --step-accent: #818cf8; }

.get-started-step:hover {
  border-color: color-mix(in srgb, var(--step-accent) 45%, transparent);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(2, 6, 23, 0.38);
}

.get-started-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.get-started-step-num {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #e0f2fe;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.5), rgba(13, 148, 136, 0.35));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.get-started-step-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--step-accent, #38bdf8);
  background: color-mix(in srgb, var(--step-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-accent) 28%, transparent);
}

.get-started-step-icon svg {
  width: 20px;
  height: 20px;
}

.get-started-step h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.02rem;
  color: #f1f5f9;
  line-height: 1.25;
}

.get-started-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94a3b8;
}

.get-started-step p strong {
  color: #bae6fd;
  font-weight: 600;
}

.get-started-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 4px;
  border-top: 1px solid rgba(186, 230, 253, 0.12);
  background: rgba(15, 23, 42, 0.22);
  border-radius: 0 0 16px 16px;
  margin: 0 -clamp(28px, 4vw, 40px) -clamp(28px, 4vw, 40px);
}

.get-started-cta-primary {
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
}

/* —— Homepage THE FLOW (transparent glass — canvas visible) —— */
body.luxe.site-marketing .noise-layer {
  opacity: 0.26;
}

/* Homepage sections: align card rails to page left/right edges */
body.luxe.site-marketing .luxe-main > .section {
  padding-left: 0;
  padding-right: 0;
}

.home-page-rail {
  width: 100%;
}

.section-flow {
  position: relative;
  background: transparent;
  padding-top: 16px;
  padding-bottom: 16px;
}

.section-head-flow h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em 0.5em;
}

.section-head-flow .flow-arrow {
  font-size: 0.72em;
  font-weight: 500;
  color: rgba(56, 189, 248, 0.75);
  letter-spacing: 0;
}

.flow-section-lead {
  max-width: 46ch;
  margin: 10px auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #94a3b8;
}

.flow-rail {
  width: 100%;
  padding: 6px 0 4px;
}

.flow-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px 14px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}

.flow-timeline::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.08),
    rgba(56, 189, 248, 0.22) 22%,
    rgba(13, 148, 136, 0.24) 50%,
    rgba(56, 189, 248, 0.22) 78%,
    rgba(56, 189, 248, 0.08)
  );
}

.flow-connector {
  align-self: center;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.62));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.flow-connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(56, 189, 248, 0.65);
}

body.luxe .flow-step {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 22px 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(186, 230, 253, 0.18);
  background: rgba(15, 23, 42, 0.2) !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(2, 6, 23, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.luxe .flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, var(--flow-glow, rgba(56, 189, 248, 0.12)), transparent 58%);
}

body.luxe .flow-step::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(90deg, transparent, var(--flow-accent, #38bdf8), transparent);
}

body.luxe .flow-step--build { --flow-glow: rgba(56, 189, 248, 0.14); --flow-accent: #38bdf8; }
body.luxe .flow-step--follow { --flow-glow: rgba(14, 165, 233, 0.14); --flow-accent: #0ea5e9; }
body.luxe .flow-step--close { --flow-glow: rgba(13, 148, 136, 0.14); --flow-accent: #14b8a6; }

body.luxe .flow-step:hover {
  transform: translateY(-5px);
  border-color: rgba(186, 230, 253, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 40px rgba(2, 6, 23, 0.36);
}

.flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.flow-step-num {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #dbeafe;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.45), rgba(13, 148, 136, 0.3));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.flow-step-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--flow-accent, #38bdf8);
  background: color-mix(in srgb, var(--flow-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--flow-accent) 24%, transparent);
}

.flow-step-icon svg {
  width: 22px;
  height: 22px;
}

body.luxe .flow-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.22rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

body.luxe .flow-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #b8c5d6;
}

@media (max-width: 900px) {
  .flow-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: none;
  }

  .flow-timeline::before,
  .flow-connector {
    display: none;
  }

  body.luxe .flow-step {
    min-height: 0;
  }
}

/* —— Homepage final CTA (aurora glass banner) —— */
.section-final-cta {
  padding-top: 28px;
  padding-bottom: 32px;
  background: transparent;
}

.final-cta-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 52px);
  border: 1px solid rgba(212, 175, 115, 0.32);
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 48px rgba(212, 175, 115, 0.08),
    0 32px 72px rgba(2, 6, 23, 0.32);
}

.final-cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(212, 175, 115, 0.45),
    rgba(56, 189, 248, 0.2) 38%,
    rgba(13, 148, 136, 0.25) 68%,
    rgba(212, 175, 115, 0.35)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
}

.final-cta-aurora {
  position: absolute;
  inset: -25% -15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 48% 42% at 12% 18%, rgba(212, 175, 115, 0.14), transparent 58%),
    radial-gradient(ellipse 44% 38% at 88% 72%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 105%, rgba(13, 148, 136, 0.12), transparent 58%);
  animation: final-cta-aurora-drift 14s ease-in-out infinite alternate;
}

@keyframes final-cta-aurora-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(2%, -1.5%) scale(1.04); opacity: 1; }
}

.final-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 28px 48px;
  align-items: center;
}

.final-cta-copy {
  text-align: left;
}

.final-cta-eyebrow {
  margin: 0 0 10px;
  color: #d4af73;
  letter-spacing: 0.12em;
}

.final-cta-title {
  margin: 0 0 14px;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #f8fafc;
  text-wrap: balance;
}

.final-cta-title em {
  font-style: normal;
  background: linear-gradient(118deg, #fde68a 0%, #7dd3fc 48%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final-cta-lead {
  margin: 0 0 20px;
  max-width: 54ch;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #94a3b8;
}

.final-cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.final-cta-perks li {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(186, 230, 253, 0.18);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.final-cta-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(100%, 220px);
}

.final-cta-actions-wrap .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 0.95rem;
}

.final-cta-btn-primary {
  box-shadow:
    0 0 28px rgba(37, 99, 235, 0.38),
    0 8px 24px rgba(2, 6, 23, 0.35);
}

.final-cta-btn-ghost {
  border-color: rgba(212, 175, 115, 0.35) !important;
  color: #fde68a !important;
  background: rgba(212, 175, 115, 0.06) !important;
}

.final-cta-btn-ghost:hover {
  background: rgba(212, 175, 115, 0.14) !important;
  border-color: rgba(253, 230, 138, 0.45) !important;
}

@media (max-width: 820px) {
  .final-cta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .final-cta-copy {
    text-align: center;
  }

  .final-cta-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta-perks {
    justify-content: center;
  }

  .final-cta-actions-wrap {
    margin: 0 auto;
    width: min(100%, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta-aurora {
    animation: none;
  }
}

.workflow-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workflow-path-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.88));
}

.workflow-path-card.owner {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(150deg, rgba(69, 26, 3, 0.35), rgba(15, 23, 42, 0.88));
}

.workflow-path-card h3 {
  margin: 6px 0 10px;
}

.workflow-path-steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #cbd5e1;
  display: grid;
  gap: 6px;
}

.workflow-path-steps li {
  font-size: 0.9rem;
}

.workflow-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-login-path {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-login-path-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 600;
}

.page-role-callout {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.app-hero-onboard {
  border-color: rgba(251, 191, 36, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 12% 22%, rgba(251, 191, 36, 0.18), transparent 55%);
}

.app-hero-onboard .eyebrow {
  color: #fcd34d;
}

.app-hero-ops {
  border-color: rgba(52, 211, 153, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 12% 22%, rgba(52, 211, 153, 0.16), transparent 55%);
}

.app-hero-ops .eyebrow {
  color: #6ee7b7;
}

.owner-page-diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.owner-page-diff article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.35);
}

.owner-page-diff article.is-here {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18);
}

.owner-page-diff h3 {
  margin: 4px 0 6px;
  font-size: 0.95rem;
}

.owner-page-diff p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .owner-page-diff {
    grid-template-columns: 1fr;
  }
}

.topbar .menu a.is-active {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 116, 144, 0.24);
}

.footer-owner-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}

.footer-owner-links p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.pd-nav-platform-owner .topbar .menu a[href*="/ops/"] {
  border-color: rgba(251, 191, 36, 0.35);
}

@media (max-width: 1024px) {
  .get-started-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .get-started-flow-arrow {
    display: none;
  }
}

@media (max-width: 860px) {
  .workflow-path-grid {
    grid-template-columns: 1fr;
  }

  .workflow-strip-steps {
    grid-template-columns: 1fr;
  }

  .get-started-steps {
    grid-template-columns: 1fr;
  }

  .get-started-panel-glass {
    padding: 22px 16px;
  }

  .get-started-cta {
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -22px;
  }
}

.auth-gate-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.82));
}

.workspace-quick-links {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.app-page .form-card {
  max-width: none;
}

.app-auth-form {
  max-width: var(--auth-form-max);
}

body.luxe.app-login-page .app-auth-card,
body.luxe.recovery-page .invite-split,
body.luxe.recovery-page main .legal-card.app-auth-card,
body.luxe.recovery-page main .form-card,
body.luxe[data-pd-nav="minimal"] .invite-split {
  width: 100%;
  max-width: var(--auth-panel-max);
  margin-left: auto;
  margin-right: auto;
}

body.luxe[data-pd-nav="platform-owner"] .platform-login-shell {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 0;
  box-sizing: border-box;
}

body.luxe[data-pd-nav="platform-owner"] .app-hero .page-role-callout {
  max-width: 68ch;
}

.platform-login-split {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(300px, 0.92fr);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.45);
  min-height: min(58vh, 520px);
}

.platform-login-showcase {
  position: relative;
  display: flex;
  align-items: center;
  padding: 36px 40px;
}

.platform-login-showcase-bg {
  position: absolute;
  inset: 0;
}

.platform-login-split--onboard .platform-login-showcase-bg {
  background: linear-gradient(145deg, rgba(69, 26, 3, 0.94), rgba(30, 27, 75, 0.9) 42%, rgba(15, 23, 42, 0.96));
}

.platform-login-split--onboard .platform-login-showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 28%, rgba(251, 191, 36, 0.32), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 72%, rgba(129, 140, 248, 0.22), transparent 50%);
}

.platform-login-split--ops .platform-login-showcase-bg {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.94), rgba(15, 23, 42, 0.92) 48%, rgba(8, 47, 73, 0.96));
}

.platform-login-split--ops .platform-login-showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 28%, rgba(52, 211, 153, 0.3), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 72%, rgba(56, 189, 248, 0.22), transparent 50%);
}

.platform-login-showcase-inner {
  position: relative;
  z-index: 1;
}

.platform-login-showcase h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.platform-login-lead {
  margin: 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.platform-login-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.platform-login-points li {
  position: relative;
  padding-left: 1.25em;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.platform-login-split--onboard .platform-login-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fcd34d;
  font-weight: 700;
}

.platform-login-split--ops .platform-login-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7b7;
  font-weight: 700;
}

.platform-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px 36px;
  background: rgba(15, 23, 42, 0.94);
}

.platform-login-panel > .block-hero-head {
  margin: -32px -36px 22px;
  border-radius: 0;
}

.platform-login-panel .block-hero-head h3 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
}

.platform-login-panel .app-auth-form {
  max-width: none;
  width: 100%;
}

.platform-login-panel .app-form label,
.platform-login-panel .app-form input {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.auth-split .app-auth-form {
  max-width: none;
}

.auth-forgot-row {
  margin: 0 0 10px;
}

.auth-forgot-link {
  font-size: 0.88rem;
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-link:hover {
  color: #bae6fd;
  text-decoration: underline;
}

html[data-pd-theme="light"] body.luxe .auth-forgot-link {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .auth-forgot-link:hover {
  color: #0c4a6e;
}

.auth-intro {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.82));
  overflow: hidden;
}

.auth-intro h3 {
  margin: 0 0 8px;
}

.auth-intro p {
  margin: 0;
  color: #cbd5e1;
}

.auth-points {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.auth-points p {
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(2, 132, 199, 0.14);
  font-size: 0.88rem;
}

.auth-points span {
  color: #e0f2fe;
  font-weight: 700;
  margin-right: 4px;
}

.auth-intro-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -30px;
  bottom: -40px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38), rgba(56, 189, 248, 0.02) 68%);
  animation: authGlowPulse 6.6s ease-in-out infinite;
}

@keyframes authGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.74; }
  50% { transform: scale(1.08); opacity: 1; }
}

.platform-admin-wrap {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.luxe[data-pd-nav="platform-owner"] .legal-wrap.app-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.luxe[data-pd-nav="platform-owner"] .legal-wrap.app-wrap > * {
  margin-bottom: 0;
}

.platform-admin-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.platform-login-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.platform-login-visual {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  height: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(circle at 82% 68%, rgba(129, 140, 248, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.92));
}

.platform-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.45), rgba(125, 211, 252, 0));
  filter: blur(1px);
  opacity: 0.6;
  animation: platformWaveMove 7s linear infinite;
}

.platform-wave:nth-child(1) { top: 20px; animation-delay: 0s; }
.platform-wave:nth-child(2) { top: 52px; animation-delay: -2s; opacity: 0.45; }
.platform-wave:nth-child(3) { top: 84px; animation-delay: -4s; opacity: 0.35; }

@keyframes platformWaveMove {
  0% { transform: translateX(-12%) translateY(0); }
  50% { transform: translateX(8%) translateY(2px); }
  100% { transform: translateX(-12%) translateY(0); }
}

.platform-admin-top {
  display: grid;
  gap: 18px;
}

.platform-session-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.72));
  box-sizing: border-box;
}

.platform-session-strip-text {
  flex: 1 1 200px;
  min-width: 0;
}

.platform-session-strip .eyebrow {
  display: block;
  margin: 0 0 4px;
}

.platform-access-meta {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.platform-session-strip .platform-access-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
}

.platform-access-points li {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  background: rgba(3, 105, 161, 0.18);
  font-size: 0.78rem;
  line-height: 1.3;
  color: #cbd5e1;
  width: fit-content;
  box-sizing: border-box;
}

.platform-access-points .pill-key {
  color: #e0f2fe;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-wrap > .platform-session-strip {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.platform-admin-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.platform-admin-forms > * {
  min-width: 0;
}

.platform-ops-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94));
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.35);
  box-sizing: border-box;
}

.platform-ops-card-head {
  position: relative;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.platform-ops-card-head .eyebrow {
  display: block;
  margin: 0 0 8px;
}

.platform-ops-card-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.platform-ops-card-lead {
  margin: 0;
  max-width: var(--prose-measure);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
}

.platform-ops-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 20px;
}

.platform-ops-card-body form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-ops-card-body form button[type="submit"] {
  margin-top: auto;
  width: 100%;
}

.platform-ops-card-create .platform-ops-card-head {
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.22), transparent 52%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
}

.platform-ops-card-create .platform-ops-card-head .eyebrow {
  color: #fcd34d;
}

.platform-ops-card-reset .platform-ops-card-head {
  background:
    radial-gradient(circle at 88% 24%, rgba(56, 189, 248, 0.24), transparent 52%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
}

.platform-ops-card-reset .platform-ops-card-head .eyebrow {
  color: #7dd3fc;
}

.platform-ops-card-body .app-form label,
.platform-ops-card-body .app-form input,
.platform-ops-card-body .app-form select,
.platform-ops-card-body .app-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.platform-ops-card-body .app-auth-form {
  max-width: none;
}

.platform-ops-card-body .form-status {
  margin-top: 10px;
  margin-bottom: 0;
}

.platform-admin-audit {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.9));
}

.platform-audit-window {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.platform-admin-intro {
  position: relative;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.82));
  overflow: visible;
  box-sizing: border-box;
}

.platform-admin-intro h2,
.platform-admin-form-wrap h2 {
  margin-top: 0;
}

.platform-admin-form-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.52);
  box-sizing: border-box;
}

.platform-admin-form-wrap form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.platform-admin-form-wrap form button[type="submit"] {
  margin-top: auto;
  width: 100%;
}

.platform-admin-form-wrap .app-form label,
.platform-admin-form-wrap .app-form input,
.platform-admin-form-wrap .app-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.platform-admin-form-wrap .app-auth-form {
  max-width: none;
}

.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.05fr);
  gap: 12px;
}

.admin-panel {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.9));
}

.admin-panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.admin-panel-platform-settings {
  margin-bottom: 0;
}

.admin-panel-site-settings {
  margin-bottom: 0;
}

.admin-site-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.admin-site-settings-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.28);
}

.admin-site-settings-col--wide {
  grid-column: span 1;
}

.admin-site-settings-heading {
  margin: 0 0 4px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1rem;
  color: #e0f2fe;
}

.admin-site-logo-upload {
  display: grid;
  gap: 10px;
}

.admin-site-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-site-header-preview,
.admin-site-canada-preview {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.admin-site-preview-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.admin-site-preview-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.admin-site-header-preview-bar {
  display: flex;
  align-items: center;
  min-height: 48px;
  max-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.72);
  overflow: hidden;
}

.pd-file-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pd-file-input {
  max-width: 100%;
  font: inherit;
  font-size: 0.84rem;
  color: #cbd5e1;
  color-scheme: dark;
}

.pd-file-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(29, 78, 216, 0.28));
  color: #e0f2fe;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pd-file-input::file-selector-button:hover {
  border-color: rgba(125, 211, 252, 0.75);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.48), rgba(29, 78, 216, 0.38));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.pd-file-name {
  font-size: 0.8rem;
  color: #94a3b8;
  word-break: break-all;
}

.pd-file-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.branding-logo-preview {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.branding-logo-preview .quote-brand-logo {
  display: block;
}

.admin-site-header-preview-bar .brand-logo {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.admin-site-save-row {
  margin-top: 8px;
}

.admin-plan-chip--block {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .admin-site-settings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-ops-tabs {
  margin-bottom: 16px;
}

.admin-tab-panel {
  display: block;
}

.admin-tab-panel.hidden {
  display: none !important;
}

.admin-panel-platform-settings .eyebrow {
  margin-bottom: 6px;
}

.admin-panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-plans-hero-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-plan-hero-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.9));
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
}

.admin-plan-hero-card.is-expanded {
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.admin-plan-collapse-head {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid transparent;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.06));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.admin-plan-hero-card.is-expanded .admin-plan-collapse-head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
}

.admin-plan-collapse-head:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
}

.admin-plan-collapse-head:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55);
}

.admin-plan-collapse-head .admin-org-name {
  font-size: 0.98rem;
}

.admin-plan-collapse-head .admin-org-slug {
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-plan-collapse-head .admin-org-bullet {
  width: 8px;
  height: 8px;
  margin-top: 5px;
}

.admin-plan-collapse-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-plan-badges .access-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
}

.admin-plan-chevron {
  width: 8px;
  height: 8px;
  margin-top: 0;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.admin-plan-hero-card.is-expanded .admin-plan-chevron {
  transform: rotate(-135deg);
  border-color: #7dd3fc;
}

.admin-plan-hero-details.is-collapsed {
  display: none;
}

.admin-plan-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 0;
  padding: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-plan-editor-form {
  min-width: 0;
  padding: 14px 16px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-plan-editor-preview {
  padding: 14px 16px 12px;
  background: rgba(2, 6, 23, 0.22);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.admin-plan-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}

.admin-plan-form-grid--limits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 4px;
}

.admin-plan-field--full {
  grid-column: 1 / -1;
}

.admin-plan-limits-chips {
  grid-column: span 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  align-self: end;
  padding-bottom: 2px;
}

.admin-plan-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}

.admin-plan-field input,
.admin-plan-field textarea {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.admin-plan-field--textarea textarea {
  min-height: 72px;
  width: 100%;
}

.admin-plan-editor-form .admin-plan-chip-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.admin-plan-field input[type="text"],
.admin-plan-field input[type="number"],
.admin-plan-field input[type="email"],
.admin-plan-field input[type="tel"],
.admin-plan-field input[type="url"],
.admin-plan-field input[type="search"],
.admin-plan-field textarea,
.admin-plan-edit-form textarea,
.admin-plan-hero-card .admin-plan-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font: inherit;
  font-size: 0.84rem;
  color-scheme: dark;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-plan-field input[type="email"]:-webkit-autofill,
.admin-plan-field input[type="tel"]:-webkit-autofill,
.admin-plan-field input[type="text"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.92) inset;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
}

.admin-plan-field textarea,
.admin-plan-edit-form textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.55) rgba(15, 23, 42, 0.85);
}

.admin-plan-field textarea::-webkit-scrollbar,
.admin-plan-edit-form textarea::-webkit-scrollbar {
  width: 8px;
}

.admin-plan-field textarea::-webkit-scrollbar-track,
.admin-plan-edit-form textarea::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 4px;
}

.admin-plan-field textarea::-webkit-scrollbar-thumb,
.admin-plan-edit-form textarea::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 4px;
  border: 2px solid rgba(15, 23, 42, 0.85);
}

.admin-plan-field input[type="text"]:focus,
.admin-plan-field input[type="number"]:focus,
.admin-plan-field input[type="email"]:focus,
.admin-plan-field input[type="tel"]:focus,
.admin-plan-field input[type="url"]:focus,
.admin-plan-field input[type="search"]:focus,
.admin-plan-field textarea:focus,
.admin-plan-edit-form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.admin-plan-preview-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.admin-plan-preview-card {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  pointer-events: none;
  transform: none !important;
  overflow: hidden;
}

.admin-plan-preview-card.home-price-card--featured {
  border-color: rgba(232, 180, 168, 0.75);
  box-shadow: 0 0 0 1px rgba(232, 180, 168, 0.25);
}

.admin-plan-preview-card .home-price-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.admin-plan-preview-card--compact.home-price-card--featured .home-price-card-body,
.admin-plan-preview-card.home-price-card--featured {
  padding-top: 28px;
}

.admin-plan-preview-card--compact .home-price-ribbon {
  margin: 0;
  width: 100%;
}

.admin-plan-preview-card .tag {
  position: static;
  display: inline-block;
  margin: 0 0 6px;
  right: auto;
  top: auto;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
}

.admin-plan-preview-card--compact {
  padding: 12px 11px 10px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-plan-preview-card--compact h3 {
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.admin-plan-preview-card--compact .price,
.admin-plan-preview-card--compact .admin-plan-preview-price {
  font-size: 1.05rem;
  margin: 4px 0 6px;
}

.admin-plan-preview-card--compact .price-card-sub--compact {
  margin: 0 0 6px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.admin-plan-preview-card--compact ul {
  margin: 0;
  gap: 4px;
  font-size: 0.72rem;
}

.admin-plan-preview-card--compact .tag {
  font-size: 0.62rem;
  padding: 2px 6px;
}

.admin-plan-preview-price--trial {
  font-size: 0.95rem;
  color: #bae6fd;
}

.admin-plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.admin-plan-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  min-height: 0;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.28);
  font-size: 0.74rem;
  color: #cbd5e1;
  cursor: pointer;
}

.admin-plan-chip input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.admin-plan-compact-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 16px 12px;
  margin-top: 0;
  border-top: none;
}

.admin-plan-compact-footer .admin-plan-limits-details {
  flex: none;
  margin: 0;
  padding: 8px 12px;
  min-width: 0;
}

.admin-plan-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-plan-compact-footer .admin-plan-limits-details summary {
  font-size: 0.8rem;
}

.admin-plan-compact-footer .admin-plan-limits-details[open] {
  padding-bottom: 8px;
}

.admin-plan-compact-footer .admin-plan-limits-details[open] summary {
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .admin-plan-editor {
    grid-template-columns: 1fr;
  }

  .admin-plan-editor-form {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .admin-plan-form-grid,
  .admin-plan-form-grid--limits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-plan-hero-card--new {
  margin-bottom: 18px;
}

.admin-plan-hero-head {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-plan-hero-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.admin-plan-hero-head h4 {
  margin: 0;
}

.admin-plan-preview-wrap {
  display: grid;
  gap: 6px;
}

.admin-plan-preview-card .price,
.admin-plan-preview-price {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.2rem;
  margin: 6px 0;
  color: #f8fafc;
}

.admin-plan-hero-body {
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-plan-hero-body .admin-plan-form-grid {
  max-width: none;
}

.admin-plan-hero-footer {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-plan-section-label {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.admin-plan-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}

.admin-plan-hero-card label,
.admin-platform-defaults-form label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
}

.admin-plan-hero-card input[type="text"],
.admin-plan-hero-card input[type="number"],
.admin-plan-hero-card textarea,
.admin-platform-defaults-form input[type="number"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font: inherit;
  font-size: 0.84rem;
}

.admin-plan-hero-card textarea {
  min-height: 52px;
  resize: vertical;
}

.admin-plan-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.admin-plan-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  align-self: end;
  min-height: 38px;
}

.admin-plan-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.admin-plan-limits-details {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.45);
}

.admin-plan-limits-details summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-plan-limits-details[open] summary {
  margin-bottom: 10px;
}

.admin-plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-plan-hero-card input:focus,
.admin-plan-hero-card textarea:focus,
.admin-platform-defaults-form input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.admin-plan-hero-card input:disabled,
.admin-plan-hero-card textarea:disabled {
  opacity: 0.55;
}

.admin-platform-defaults {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-platform-defaults summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.admin-platform-defaults-form {
  margin-top: 10px;
}

.price-card-sub {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* —— Homepage pricing (luxury glass) —— */
.section-pricing {
  position: relative;
}

.plans-hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin-bottom: 26px;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
  border: 1px solid rgba(186, 230, 253, 0.2);
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(2, 6, 23, 0.26);
}

.plans-hero-aurora {
  position: absolute;
  inset: -30% -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 45% at 18% 0%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 40% at 82% 100%, rgba(13, 148, 136, 0.12), transparent 55%);
}

.plans-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0;
}

.plans-hero-inner .eyebrow {
  margin: 0 0 8px;
}

.plans-hero-inner h2 {
  margin: 0 0 12px;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-wrap: balance;
}

.section-head-pricing .section-pricing-lead,
.plans-hero-inner .section-pricing-lead,
.section-resources-lead {
  max-width: 62ch;
  margin: 10px auto 0;
  text-align: center;
  color: #94a3b8;
}

.section-resources .hero-actions {
  margin-top: 24px;
}

.home-pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
}

body.luxe .price-card.home-price-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background:
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 32%,
      rgba(15, 23, 42, 0.55) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(2, 6, 23, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.luxe .price-card.home-price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse 90% 70% at 8% -10%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(ellipse 80% 60% at 100% 110%, rgba(13, 148, 136, 0.16), transparent 55%);
}

body.luxe .price-card.home-price-card:hover:not(.home-price-card--featured) {
  transform: translateY(-5px);
  border-color: rgba(186, 230, 253, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 58px rgba(2, 6, 23, 0.52);
}

body.luxe .price-card.home-price-card.home-price-card--featured {
  transform: none;
  z-index: 2;
  border-width: 2px;
  border-color: rgba(232, 180, 168, 0.88);
  background:
    linear-gradient(
      148deg,
      rgba(232, 180, 168, 0.18) 0%,
      rgba(255, 255, 255, 0.1) 28%,
      rgba(15, 23, 42, 0.62) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(253, 232, 228, 0.45),
    inset 0 0 0 1px rgba(232, 180, 168, 0.28),
    0 0 0 1px rgba(232, 180, 168, 0.35),
    0 20px 48px rgba(140, 90, 70, 0.22),
    0 0 40px rgba(232, 180, 168, 0.16);
}

body.luxe .price-card.home-price-card.home-price-card--featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 36px rgba(232, 180, 168, 0.22);
}

body.luxe .price-card.home-price-card.home-price-card--featured::before {
  background:
    radial-gradient(ellipse 95% 75% at 6% -8%, rgba(232, 180, 168, 0.34), transparent 58%),
    radial-gradient(ellipse 85% 65% at 98% 108%, rgba(201, 149, 108, 0.22), transparent 56%);
}

body.luxe .price-card.home-price-card.home-price-card--featured:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 208, 197, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(253, 232, 228, 0.55),
    inset 0 0 0 1px rgba(232, 180, 168, 0.35),
    0 0 0 1px rgba(232, 180, 168, 0.45),
    0 28px 58px rgba(140, 90, 70, 0.28),
    0 0 48px rgba(232, 180, 168, 0.2);
}

body.luxe .price-card.home-price-card.home-price-card--featured.price-card--sales {
  border-color: rgba(232, 180, 168, 0.88);
}

.home-price-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 12px;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1210;
  background: linear-gradient(90deg, #f5d0c5, #e8b4a8, #c9956c, #e8b4a8, #f5d0c5);
  border-bottom: 1px solid rgba(212, 165, 116, 0.65);
  box-shadow: none;
}

body.luxe .price-card.home-price-card.home-price-card--featured .home-price-card-body {
  padding-top: 36px;
}

.home-price-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-price-ribbon span::before {
  content: "★";
  font-size: 0.82rem;
  line-height: 1;
}

body.luxe .price-card.home-price-card.home-price-card--featured .home-price-card-foot .btn-primary {
  background: linear-gradient(135deg, #e8b4a8, #c9956c) !important;
  border-color: rgba(245, 208, 197, 0.85) !important;
  color: #1a1210 !important;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(232, 180, 168, 0.32);
}

body.luxe .price-card.home-price-card.home-price-card--featured .home-price-card-foot .btn-primary:hover {
  background: linear-gradient(135deg, #f5d0c5, #e8b4a8) !important;
  border-color: rgba(253, 232, 228, 0.95) !important;
}

body.luxe .price-card.home-price-card.price-card--sales {
  border-color: rgba(129, 140, 248, 0.38);
  background:
    linear-gradient(
      148deg,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(255, 255, 255, 0.06) 34%,
      rgba(15, 23, 42, 0.56) 100%
    ) !important;
}

body.luxe .price-card.home-price-card.price-card--sales::before {
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(129, 140, 248, 0.2), transparent 58%),
    radial-gradient(ellipse 80% 60% at 100% 110%, rgba(13, 148, 136, 0.12), transparent 55%);
}

.home-price-card-body,
.home-price-card-foot {
  position: relative;
  z-index: 2;
}

.home-price-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  min-height: 0;
}

.home-price-card .tag {
  position: static;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.home-price-card.price-card--sales .tag {
  color: #ede9fe;
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.32);
}

.home-price-card h3 {
  margin: 0 0 4px;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.home-price-card .price {
  font-family: Sora, Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.home-price-card .price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
}

.home-price-card .price-custom {
  font-size: 1.55rem;
}

.home-price-card .price-card-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.home-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  flex: 1 1 auto;
}

.home-price-features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.home-price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0d9488);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.home-price-more {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  font-style: italic;
}

.home-price-more::before {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.home-price-card-foot {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(186, 230, 253, 0.12);
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-price-card-foot .btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.home-price-cta-sales {
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #ede9fe !important;
  background: rgba(167, 139, 250, 0.1) !important;
}

.home-price-cta-sales:hover {
  background: rgba(167, 139, 250, 0.2) !important;
  border-color: rgba(196, 181, 253, 0.55) !important;
}

@media (max-width: 1080px) {
  .home-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.home-pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

/* —— Site contact: Canada badge + phone —— */
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0 14px;
}

.footer-canada-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff1f2;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0.2));
  border: 1px solid rgba(248, 113, 113, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(248, 113, 113, 0.1);
}

.footer-canada-badge--compact {
  padding: 6px 12px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.footer-canada-heart {
  display: inline-block;
  color: #f87171;
  font-size: 0.82rem;
  line-height: 1;
  animation: pd-heartbeat 1.35s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.45));
}

@keyframes pd-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.24);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.16);
  }
  70% {
    transform: scale(1);
  }
}

.footer-phone-line {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-phone-line a {
  color: #bae6fd;
  text-decoration: none;
  font-weight: 600;
}

.footer-phone-line a:hover,
.footer-phone-line a:focus-visible {
  color: #e0f2fe;
  text-decoration: underline;
}

.capture-intro-canada {
  margin: 14px 0 2px;
}

.capture-points-phone {
  margin: 0 0 8px;
}

.capture-points-phone a {
  color: #bae6fd;
  font-weight: 600;
  text-decoration: none;
}

.capture-points-phone a:hover,
.capture-points-phone a:focus-visible {
  color: #e0f2fe;
  text-decoration: underline;
}

.capture-channel--phone strong {
  font-family: Sora, Inter, sans-serif;
  letter-spacing: 0.01em;
}

html[data-pd-theme="light"] body.luxe .footer-canada-badge {
  color: #7f1d1d;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.85), rgba(254, 243, 199, 0.75));
  border-color: rgba(248, 113, 113, 0.45);
}

html[data-pd-theme="light"] body.luxe .footer-canada-heart {
  color: #dc2626;
}

.price-card .btn {
  margin-top: 4px;
}

.admin-users-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.45), rgba(15, 23, 42, 0.62));
}

.admin-users-toolbar label {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.admin-users-toolbar input,
.admin-users-toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.admin-users-toolbar input:focus,
.admin-users-toolbar select:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.admin-user-row {
  align-items: center;
}

.admin-session-bar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}

.admin-session-bar h2 {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
}

.admin-session-bar .quote-meta {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  text-align: right;
  justify-self: end;
  max-width: min(100%, 42rem);
}

.admin-session-bar .workspace-quick-links {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  justify-self: end;
  justify-content: flex-end;
}

.quote-page .app-wrap.quote-shell {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.quote-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.quote-section {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.quote-items-section {
  margin-bottom: 14px;
}

.quote-items {
  display: grid;
  gap: 10px;
}

.quote-item-row {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.42);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.quote-item-row p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.quote-totals-section,
.quote-respond-section {
  margin-bottom: 0;
}

.audit-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.platform-admin-audit .audit-filter-chips {
  row-gap: 8px;
}

.platform-admin-audit .audit-chip {
  white-space: nowrap;
}

.audit-chip {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.audit-chip.active {
  border-color: rgba(125, 211, 252, 0.46);
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.28);
}

.audit-row {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.44);
}

.audit-title {
  margin: 0 0 6px;
}

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

.team-page .workflow-strip-mount {
  margin-bottom: 22px;
}

.team-page .team-wrap > .legal-header,
.team-page .team-wrap > .team-section {
  margin-top: 0;
  margin-bottom: 18px;
}

.team-page .legal-header.app-hero,
.team-page .team-section {
  padding: 22px 26px;
  text-align: left;
}

.team-page .legal-header.app-hero .eyebrow,
.team-page .team-section .eyebrow {
  display: block;
  margin: 0 0 10px;
}

.team-page .legal-header.app-hero h1 {
  margin: 0 0 12px;
  line-height: 1.15;
}

.team-page .team-section-title {
  margin: 0 0 12px;
  line-height: 1.2;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-family: Sora, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-page .team-section-sub {
  display: inline;
  font-size: 0.72em;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
}

.team-page .legal-header.app-hero .subtext,
.team-page .legal-header.app-hero .team-hero-note,
.team-page .team-section .subtext,
.team-page .team-section .team-permissions-note {
  margin: 0 0 16px;
  max-width: 58ch;
  line-height: 1.65;
}

.team-page .team-section .team-permissions-note:last-of-type {
  margin-bottom: 14px;
}

.team-page .team-section-form {
  margin-top: 4px;
}

.team-page .team-section .form-status {
  margin-top: 10px;
  margin-bottom: 0;
}

.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.team-session-bar .session-lead {
  margin: 0 0 12px;
  max-width: 52ch;
  line-height: 1.6;
  color: #cbd5e1;
}

.session-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.session-or {
  font-size: 0.82rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.team-section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-section-divider::before,
.team-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.45) 20%,
    rgba(148, 163, 184, 0.45) 80%,
    transparent
  );
}

.team-section-divider span {
  flex-shrink: 0;
  padding: 0 4px;
}

#team-auth-gate.auth-gate-card {
  display: grid;
  gap: 10px;
}

#team-auth-gate.auth-gate-card .subtext {
  margin-bottom: 12px;
}

#team-auth-gate.auth-gate-card .btn {
  justify-self: start;
  width: fit-content;
}

.team-session-bar {
  margin-bottom: 0;
}

.team-page .team-section .team-access-bar {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  padding: 14px 16px;
  margin-top: 4px;
}

.team-layout {
  display: grid;
  gap: 18px;
}

.team-forms-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.team-forms-row .team-section {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-forms-row .team-section-form {
  flex: 1;
}

.team-section-org {
  width: 100%;
}

.team-section-org .quote-meta {
  margin: 0 0 14px;
}

.team-invites-heading {
  margin: 16px 0 10px;
  font-size: 1.02rem;
  font-family: Sora, Inter, sans-serif;
  font-weight: 600;
}

.members-list {
  display: grid;
  gap: 8px;
}

.member-row {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.member-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.member-row p {
  margin: 0;
  font-size: 0.88rem;
}

.member-row select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.75);
  font: inherit;
}

.member-row .mini-btn,
.app-page .mini-btn {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.app-page .mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.52);
  background: rgba(14, 116, 144, 0.2);
}

.create-quote-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-builder-compact {
  padding: 14px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.32);
  margin-bottom: 6px;
}

.quote-builder-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.quote-builder-compact-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.quote-builder-compact-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-builder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
}

.quote-builder-row--meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.quote-head-field--template {
  flex: 1 1 180px;
  max-width: 240px;
}

.quote-head-field--title {
  flex: 2 1 220px;
  max-width: 380px;
}

.quote-head-field--mode {
  flex: 0 1 150px;
  max-width: 168px;
}

.quote-slim-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.quote-slim-field--trade {
  flex: 0 1 96px;
  max-width: 104px;
}

.quote-slim-field--scope {
  flex: 1 1 200px;
  max-width: 300px;
}

.quote-slim-field--expiry {
  flex: 0 1 148px;
  max-width: 160px;
}

.quote-slim-field input,
.quote-slim-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  box-sizing: border-box;
}

.quote-builder-hint {
  margin-top: 4px;
  margin-bottom: 10px;
}

.quote-head-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.quote-head-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.quote-head-field input,
.quote-head-field select,
.ai-mode-label select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  box-sizing: border-box;
}

.quote-head-ai .btn {
  width: 100%;
  min-height: 40px;
  white-space: nowrap;
}

.ai-mode-label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.draft-saved-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.55));
}

.draft-saved-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.draft-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.app-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 320px), 42%);
  gap: clamp(12px, 2vw, 18px);
  align-items: start;
}

.quote-end-left {
  display: grid;
  gap: 12px;
}

.quote-end-right {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  padding: 12px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 86px;
  z-index: 4;
}

.quote-end-right h3 {
  margin: 0;
  font-size: 1rem;
  color: #e2e8f0;
}

.quote-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quote-top-grid .span-2 {
  grid-column: span 2;
}

.quote-tax-tools {
  display: grid;
  gap: 8px;
  align-content: end;
}

.quote-tax-tools p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.line-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.line-items-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.line-items {
  display: grid;
  gap: 8px;
}

.line-items-table-scroll {
  width: 100%;
  max-height: 460px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
}

.line-items-table-head {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 170px 140px minmax(360px, 1fr) 120px 150px 110px;
  gap: 8px;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 10px 10px 8px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(10px);
}

.line-items-table-head span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.tax-preset-btn {
  margin-top: 0;
  width: fit-content;
}

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

.totals-preview {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.totals-preview p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.totals-preview p span {
  color: #cbd5e1;
}

.totals-preview p strong {
  color: #f8fafc;
  font-weight: 700;
}

.totals-preview .grand {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 8px;
  margin-top: 2px;
  font-size: 1.02rem;
}

.line-item-row {
  display: grid;
  min-width: 1120px;
  grid-template-columns: 170px 140px minmax(360px, 1fr) 120px 150px 110px;
  gap: 8px;
}

.line-item-row select,
.line-item-row input {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.line-item-row button {
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
  font: inherit;
  cursor: pointer;
}

.quotes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quotes-dashboard-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 10px;
}

.analytics-strip {
  margin: 10px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ops-metrics-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.ops-metrics-group {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.82));
}

.ops-metrics-group-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.ops-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-metric-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(2, 6, 23, 0.35);
  min-height: 72px;
}

.ops-metric-card--warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.22);
}

.ops-metric-card--zero .ops-metric-value {
  color: #64748b;
}

.ops-metric-label {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.ops-metric-value {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #f8fafc;
}

.ops-metric-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.app-page .mini-btn.btn-primary {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(140deg, #1d4ed8, #2563eb 45%, #0d9488 120%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.app-page .mini-btn.btn-primary:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(140deg, #1e40af, #2563eb 45%, #0f766e 120%);
  transform: translateY(-1px);
}

.admin-plan-delete {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.admin-plan-delete:hover {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(153, 27, 27, 0.38);
  color: #fff;
}

@media (max-width: 980px) {
  .ops-metrics-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ops-metrics-row {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

.analytics-card p {
  margin: 0 0 4px;
  color: #93c5fd;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.analytics-card h3 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 1.2rem;
  color: #f8fafc;
}

.quote-toolbar {
  margin: 2px 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.quote-toolbar-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 10px;
  width: 100%;
}

.status-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-chip {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(2, 6, 23, 0.45);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.status-chip.active {
  border-color: rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.28);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 8px 20px rgba(2, 132, 199, 0.24);
}

.status-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.52);
}

.status-chip[data-status="draft"].active {
  border-color: rgba(125, 211, 252, 0.58);
  background: rgba(14, 116, 144, 0.32);
}

.status-chip[data-status="sent"].active,
.status-chip[data-status="viewed"].active {
  border-color: rgba(167, 139, 250, 0.58);
  background: rgba(91, 33, 182, 0.26);
}

.status-chip[data-status="accepted"].active {
  border-color: rgba(52, 211, 153, 0.58);
  background: rgba(5, 150, 105, 0.28);
}

.status-chip[data-status="rejected"].active {
  border-color: rgba(251, 113, 133, 0.58);
  background: rgba(190, 24, 93, 0.25);
}

.status-chip[data-status="archived"].active {
  border-color: rgba(148, 163, 184, 0.58);
  background: rgba(51, 65, 85, 0.35);
}

.quote-search-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #cbd5e1;
  min-width: 0;
}

.quote-search-wrap input {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.quote-sort-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #cbd5e1;
  min-width: 0;
}

.quote-sort-wrap select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.quote-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

.quote-access-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-badge {
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.24);
}

.access-badge.warning {
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
  background: rgba(113, 63, 18, 0.25);
}

.admin-orgs-hero-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-org-hero-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.95));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.38);
}

.admin-org-hero-head {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-org-hero-body {
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-org-hero-footer {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-org-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-org-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}

.admin-org-bullet {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.admin-org-identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-org-name {
  margin: 0;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.admin-org-slug {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.admin-org-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-org-subscription {
  margin-bottom: 4px;
}

.ops-plan-badge {
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  background: rgba(12, 74, 110, 0.35);
  font-weight: 600;
}

.ops-status-badge {
  text-transform: lowercase;
}

.ops-status-active {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.35);
}

.ops-status-trial {
  border-color: rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
  background: rgba(49, 46, 129, 0.35);
}

.ops-status-warn {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(113, 63, 18, 0.3);
}

.ops-status-muted {
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.35);
}

.ops-usage-badge.ops-usage-near {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
  background: rgba(113, 63, 18, 0.35);
}

.ops-usage-badge.ops-usage-at {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.ops-quote-usage-line.ops-quote-usage-near {
  color: #fde68a;
}

.ops-quote-usage-line.ops-quote-usage-at {
  color: #fecaca;
}

.ops-usage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ops-usage-filter.active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 116, 144, 0.35);
  color: #e0f2fe;
}

.admin-org-usage-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}

.ops-usage-meter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
}

.ops-usage-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-usage-meter-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ops-usage-meter-count {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}

.ops-usage-meter-unlimited {
  font-size: 0.82rem;
  color: #a5b4fc;
  font-weight: 600;
}

.ops-usage-meter-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.75);
  overflow: hidden;
}

.ops-usage-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.85));
}

.ops-usage-meter-fill.is-warn {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.92), rgba(245, 158, 11, 0.92));
}

.ops-usage-meter-fill.is-danger {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.95), rgba(239, 68, 68, 0.95));
}

.quote-usage-banner {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 1;
  transform: none;
  display: block;
}

.quote-usage-banner.is-warn,
.quote-usage-banner.is-danger {
  display: block !important;
}

#workspace-meta.is-usage-warn {
  color: #fde68a;
}

#workspace-meta.is-usage-danger {
  color: #fecaca;
}

.quote-usage-banner.is-warn {
  color: #fde68a;
}

.quote-usage-banner.is-warn strong {
  color: #fef3c7;
}

.quote-usage-banner.is-danger {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.quote-usage-banner.is-danger strong {
  color: #fee2e2;
}

.admin-org-hero-footer .admin-org-toolbar {
  padding-top: 0;
  border-top: none;
}

.admin-org-stats-line {
  margin: 0;
  opacity: 0.92;
}

.admin-org-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-org-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.admin-org-compact-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-org-compact-field > span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.admin-org-hero-card input[type="number"],
.admin-org-hero-card input[type="text"],
.admin-org-hero-card input[type="date"],
.admin-org-hero-card select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.82);
  font: inherit;
  font-size: 0.86rem;
  min-width: 0;
}

.admin-org-hero-card input[type="number"]:focus,
.admin-org-hero-card input[type="text"]:focus,
.admin-org-hero-card input[type="date"]:focus,
.admin-org-hero-card select:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.admin-org-hero-card input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-org-compact-field select,
.admin-org-toolbar-group select[data-action="org-plan"] {
  min-width: 118px;
}

.admin-org-trial-field.hidden {
  display: none;
}

.admin-ent-toggle[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 116, 144, 0.22);
}

.admin-org-entitlements {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(2, 6, 23, 0.55);
}

.admin-org-entitlements.is-collapsed {
  display: none;
}

.admin-ent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.admin-ent-cell {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.admin-ent-cell .admin-org-compact-field {
  flex: 1;
}

.admin-ent-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.admin-ent-full {
  grid-column: 1 / -1;
}

.admin-org-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
}

.admin-ent-check {
  padding-bottom: 6px;
}

.admin-org-check input[type="checkbox"] {
  accent-color: #38bdf8;
}

.admin-org-entitlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 720px) {
  .admin-ent-grid {
    grid-template-columns: 1fr;
  }
}

.quote-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.quote-card h3 {
  margin: 3px 0 4px;
}

.quote-card-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 6px;
}

.quote-card-details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.32);
}

.quote-card-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quote-card-detail.span-full {
  grid-column: 1 / -1;
}

.quote-card-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.quote-card-detail-value {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.35;
  word-break: break-word;
}

.quote-card-detail--status .quote-card-detail-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.quote-card-detail--categories .quote-card-detail-value {
  font-size: 0.84rem;
}

.quote-total {
  font-family: Sora, Inter, sans-serif;
  font-size: 1.2rem;
  color: #e0f2fe;
}

.quote-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.followup-form {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.followup-form label {
  display: grid;
  gap: 6px;
}

.followup-form select,
.followup-form input {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quote-link {
  margin: 10px 0 2px;
  font-size: 0.86rem;
  color: #7dd3fc;
  overflow-wrap: anywhere;
}

.quote-audit-log {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.44);
  padding: 8px 10px;
}

.quote-audit-log summary {
  cursor: pointer;
  list-style: none;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-audit-log summary::-webkit-details-marker {
  display: none;
}

.quote-audit-log summary::before {
  content: "▸";
  display: inline-block;
  font-size: 0.86rem;
  line-height: 1;
  color: #7dd3fc;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.quote-audit-log[open] summary::before {
  transform: rotate(90deg);
}

.quote-audit-log-body {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.quote-audit-log p {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.invite-main {
  width: var(--page-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.invite-split {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.52);
}

.invite-visual {
  position: relative;
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.24), transparent 56%),
    radial-gradient(circle at 82% 76%, rgba(129, 140, 248, 0.2), transparent 52%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.84));
}

.invite-visual h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
}

.invite-visual p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 52ch;
}

.invite-visual-grid {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.invite-pill {
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  width: fit-content;
  padding: 7px 14px;
  background: rgba(3, 105, 161, 0.22);
  color: #e0f2fe;
  font-size: 0.84rem;
}

.invite-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.78;
  pointer-events: none;
}

.invite-glow-a {
  width: 170px;
  height: 170px;
  right: 12%;
  top: 14%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.48), rgba(56, 189, 248, 0.04) 70%);
  animation: inviteFloatA 6.4s ease-in-out infinite;
}

.invite-glow-b {
  width: 210px;
  height: 210px;
  left: 8%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.42), rgba(129, 140, 248, 0.03) 72%);
  animation: inviteFloatB 7.2s ease-in-out infinite;
}

.invite-form-panel {
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.9));
}

.invite-form-panel h2 {
  margin: 0;
}

.recovery-wrap {
  width: 100%;
  max-width: none;
}

.recovery-form-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
}

.recovery-page .invite-form-panel .label-optional {
  font-weight: 400;
  color: #64748b;
  font-size: 0.82rem;
}

.auth-recovery-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(3, 105, 161, 0.14);
}

.auth-recovery-note-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.auth-recovery-note-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.auth-recovery-note-text strong {
  color: #e0f2fe;
  font-weight: 600;
}

.auth-recovery-note-link {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
}

.auth-recovery-note-link:hover {
  color: #bae6fd;
  text-decoration: underline;
}

@keyframes inviteFloatA {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-12px) translateX(8px) scale(1.06); }
}

@keyframes inviteFloatB {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(14px) translateX(-10px) scale(0.95); }
}

.quote-meta {
  margin: 3px 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.quote-items {
  display: grid;
  gap: 8px;
}

.quote-item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.52);
}

.quote-item-row p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.quote-totals {
  display: grid;
  gap: 8px;
}

.quote-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-totals .grand {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 8px;
  margin-top: 2px;
  font-size: 1.06rem;
}

.category-breakdown {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.category-breakdown .category-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.tax-breakdown {
  display: grid;
  gap: 6px;
}

.tax-breakdown .tax-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.quote-response-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.72));
}

.workspace-tab {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(2, 6, 23, 0.45);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.workspace-tab.active {
  border-color: rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.28);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 8px 20px rgba(2, 132, 199, 0.24);
}

.workspace-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.52);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body.luxe.site-marketing .topbar .topbar-signin,
body.luxe[data-pd-nav="public"] .topbar .topbar-signin {
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.site-marketing .topbar,
  body[data-pd-nav="public"] .topbar,
  body.luxe.site-marketing .topbar,
  body.luxe[data-pd-nav="public"] .topbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  body.site-marketing .topbar .brand,
  body[data-pd-nav="public"] .topbar .brand,
  body.luxe.site-marketing .topbar .brand,
  body.luxe[data-pd-nav="public"] .topbar .brand {
    grid-area: brand;
  }

  body.site-marketing .topbar .menu,
  body[data-pd-nav="public"] .topbar .menu,
  body.luxe.site-marketing .topbar .menu,
  body.luxe[data-pd-nav="public"] .topbar .menu {
    grid-area: nav;
    justify-content: flex-start;
    padding-top: 4px;
  }

  body.site-marketing .topbar .topbar-actions,
  body[data-pd-nav="public"] .topbar .topbar-actions,
  body.luxe.site-marketing .topbar .topbar-actions,
  body.luxe[data-pd-nav="public"] .topbar .topbar-actions {
    grid-area: actions;
    justify-self: end;
  }

  .menu-divider {
    display: none;
  }
}

/* Narrow phones — keep logo readable (hamburger handles nav) */
@media (max-width: 640px) {
  body.luxe .brand-logo {
    width: min(188px, 62vw);
    max-height: 46px;
  }

  body.luxe .topbar {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
    min-height: 60px;
  }
}

.topbar-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn,
.notifications-bell {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.topbar-icon-btn:hover,
.notifications-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.52);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
}

.settings-gear[aria-expanded="true"] {
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.notifications-bell.has-badge {
  border-color: rgba(56, 189, 248, 0.45);
}

.topbar-icon-svg,
.notifications-bell-icon {
  display: block;
  width: 21px;
  height: 21px;
  margin: 0;
  flex-shrink: 0;
}

.settings-gear .topbar-icon-svg {
  width: 20px;
  height: 20px;
}

.notifications-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(140deg, #0ea5e9, #2563eb);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.notifications-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.notification-category-chips {
  margin-bottom: 12px;
}

.notifications-panel {
  margin-top: 0;
}

.quote-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr min(480px, 92vw);
  pointer-events: none;
}

.quote-drawer:not(.hidden) {
  pointer-events: auto;
}

.quote-drawer-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.quote-drawer-panel {
  grid-column: 2;
  grid-row: 1;
  margin: 12px 12px 12px 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: -12px 0 40px rgba(2, 6, 23, 0.55);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  z-index: 1;
}

.quote-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.quote-drawer-header h3 {
  margin: 4px 0 0;
}

.drawer-notifications-list {
  max-height: none;
  padding: 10px 14px;
}

.quote-drawer-footer {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.drawer-open {
  overflow: hidden;
}

.notification-category-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.delivery-meta {
  font-size: 0.82rem;
}

.notification-status.failed {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.32);
}

.notifications-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.notifications-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.notifications-toolbar-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.notifications-toolbar-bottom .quote-search-wrap input,
.notifications-toolbar-bottom .quote-sort-wrap select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
}

.notifications-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
}

.notification-row {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.44);
}

.notification-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.notification-type {
  margin: 0 0 4px;
}

.notification-status {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.45);
  white-space: nowrap;
}

.notification-status.sent {
  border-color: rgba(52, 211, 153, 0.45);
  color: #bbf7d0;
  background: rgba(5, 150, 105, 0.22);
}

.notification-status.scheduled {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(113, 63, 18, 0.28);
}

.notification-row-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-page .quote-actions .quote-notifications-btn,
.app-page .notification-row-actions .btn {
  min-height: 34px;
}

@media (max-width: 960px) {
  .platform-admin-forms {
    grid-template-columns: 1fr;
  }

  .platform-session-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .platform-session-strip .platform-access-points {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .slot-list {
    grid-template-columns: 1fr 1fr;
  }

  body.luxe .brand-logo {
    width: min(200px, 52vw);
    max-height: 46px;
  }

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

  .contact-card {
    min-height: unset;
  }

  .app-grid-2 {
    grid-template-columns: 1fr;
  }

  .quote-top-grid {
    grid-template-columns: 1fr;
  }

  .quote-top-grid .span-2 {
    grid-column: auto;
  }

  .quick-customer-manual-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .team-forms-row {
    grid-template-columns: 1fr;
  }

  .auth-split,
  .platform-login-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .platform-login-showcase {
    padding: 28px 24px;
  }

  .platform-login-panel {
    padding: 24px 20px 28px;
  }

  .platform-login-panel > .block-hero-head {
    margin: -24px -20px 18px;
  }

  .capture-split {
    grid-template-columns: 1fr;
  }

  .capture-metrics {
    grid-template-columns: 1fr;
  }

  .capture-form-grid {
    grid-template-columns: 1fr;
  }

  .platform-admin-grid {
    width: 100%;
  }

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

  .admin-users-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-session-bar {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .admin-session-bar h2 {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }

  .admin-session-bar .quote-meta,
  .admin-session-bar .workspace-quick-links {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    text-align: left;
  }

  .admin-session-bar .workspace-quick-links {
    justify-content: flex-start;
  }

  .quote-main-grid {
    grid-template-columns: 1fr;
  }

  .quotes-dashboard-shell {
    width: 100%;
  }

  .invite-split {
    grid-template-columns: 1fr;
  }

  .invite-visual {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    min-height: 260px;
    padding: 26px;
  }

  .invite-form-panel {
    padding: 26px;
  }

  .quote-builder-controls {
    width: 100%;
  }

  .ai-mode-label select {
    min-width: 100%;
  }

  .quote-end-grid {
    grid-template-columns: 1fr;
  }

  .quote-end-right {
    position: static;
  }

  .analytics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .quote-toolbar {
    grid-template-columns: 1fr;
  }

  .quote-toolbar-bottom {
    grid-template-columns: 1fr;
  }

  .notifications-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-drawer {
    grid-template-columns: 1fr;
  }

  .quote-drawer-panel {
    grid-column: 1;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .notifications-toolbar-bottom {
    grid-template-columns: 1fr;
  }

  .quote-card-meta-grid {
    grid-template-columns: 1fr;
  }

  .followup-form {
    grid-template-columns: 1fr;
  }

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

  .line-items-table-head {
    display: none;
  }

  .line-item-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }
}

/* —— Settings panel (gear) —— */
.pd-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.pd-settings-panel {
  position: fixed;
  top: 76px;
  right: max(16px, calc((100vw - var(--page-width)) / 2));
  z-index: 61;
  width: min(360px, calc(100vw - 24px));
}

.pd-settings-panel-inner {
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.96);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  padding: 16px 16px 14px;
  backdrop-filter: blur(14px);
}

.pd-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.pd-settings-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.pd-settings-eyebrow {
  margin: 0 0 2px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.pd-settings-note {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.pd-settings-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.pd-settings-group {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin: 0 0 10px;
}

.pd-settings-group legend {
  padding: 0 4px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pd-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.pd-settings-row select {
  min-width: 120px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  padding: 6px 10px;
}

.pd-settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.pd-settings-toggle:last-child {
  margin-bottom: 0;
}

.pd-settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}

.pd-settings-range {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.pd-settings-range > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.pd-settings-range output {
  font-size: 0.82rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.pd-settings-range input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
}

.pd-settings-range input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-settings-actions {
  display: flex;
  justify-content: flex-end;
}

/* Motion / FX toggles */
html[data-pd-animations="off"] .reveal,
html[data-pd-animations="off"] .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html[data-pd-animations="off"] .orb,
html[data-pd-animations="off"] .menu a,
html[data-pd-animations="off"] .topbar-icon-btn,
html[data-pd-animations="off"] .notifications-bell,
html[data-pd-animations="off"] .workflow-step,
html[data-pd-animations="off"] .status-chip,
html[data-pd-animations="off"] .workspace-tab {
  animation: none !important;
}

html[data-pd-cursor="off"] #cursor-glow {
  display: none !important;
  opacity: 0 !important;
}

html[data-pd-background-fx="off"] #fx-canvas,
html[data-pd-background-fx="off"] .orb,
html[data-pd-background-fx="off"] .noise-layer {
  display: none !important;
  visibility: hidden !important;
}

html[data-pd-background-fx="on"] body.luxe #fx-canvas,
html[data-pd-background-fx="on"] body.luxe .orb,
html[data-pd-background-fx="on"] body.luxe .noise-layer {
  display: block !important;
  visibility: visible !important;
}

html[data-pd-background-fx="on"] body.luxe .orb {
  opacity: 0.72;
}

/* App/ops pages: cursor above cards — same diameter as marketing (50% default) */
body.luxe.app-page #cursor-glow,
body.luxe[data-pd-nav="company-workspace"] #cursor-glow,
body.luxe[data-pd-nav="company-login"] #cursor-glow,
body.luxe[data-pd-nav="platform-owner"] #cursor-glow,
body.luxe.team-page #cursor-glow {
  z-index: 4;
  mix-blend-mode: normal;
  width: calc(420px * var(--pd-cursor-size-scale, 0.5));
  height: calc(420px * var(--pd-cursor-size-scale, 0.5));
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, calc(0.38 * var(--pd-cursor-intensity, 1))),
    rgba(56, 189, 248, 0)
  );
}

html[data-pd-theme="light"] body.luxe.app-page #cursor-glow,
html[data-pd-theme="light"] body.luxe[data-pd-nav="company-workspace"] #cursor-glow,
html[data-pd-theme="light"] body.luxe[data-pd-nav="company-login"] #cursor-glow,
html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] #cursor-glow,
html[data-pd-theme="light"] body.luxe.team-page #cursor-glow {
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, calc(0.28 * var(--pd-cursor-intensity, 1))),
    rgba(37, 99, 235, 0)
  );
}

html[data-pd-compact="on"] body.luxe.app-page .legal-wrap,
html[data-pd-compact="on"] body.luxe.app-page .app-wrap {
  gap: 14px;
}

html[data-pd-compact="on"] body.luxe .legal-card,
html[data-pd-compact="on"] body.luxe .form-card {
  padding: 16px 18px;
}

html[data-pd-contrast="on"] body.luxe {
  color: #f8fafc;
}

html[data-pd-contrast="on"] body.luxe .quote-meta,
html[data-pd-contrast="on"] body.luxe .form-status {
  color: #cbd5e1;
}

/* Light theme (app / ops / team) */
html[data-pd-theme="light"] body.luxe {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.1), transparent 44%),
    linear-gradient(170deg, #f8fafc, #eef2ff 52%, #e2e8f0);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] {
  background:
    radial-gradient(ellipse 80% 50% at 10% -8%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(52, 211, 153, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 45%),
    linear-gradient(175deg, #f8fafc 0%, #eef2ff 48%, #e8eef4 100%);
}

html[data-pd-theme="light"] body.luxe .topbar {
  border-bottom-color: rgba(59, 130, 246, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

html[data-pd-theme="light"] body.luxe .topbar-icon-btn,
html[data-pd-theme="light"] body.luxe .notifications-bell {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .menu a {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .legal-card,
html[data-pd-theme="light"] body.luxe .form-card,
html[data-pd-theme="light"] body.luxe .pd-settings-panel-inner {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.35);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-meta,
html[data-pd-theme="light"] body.luxe .pd-settings-note {
  color: #334155;
}

/* Section copy under headings (base styles.css uses #d1d5db) */
html[data-pd-theme="light"] body.luxe .legal-card p,
html[data-pd-theme="light"] body.luxe .legal-card li {
  color: #334155;
}

/* Quotes dashboard metrics labels + values */
html[data-pd-theme="light"] body.luxe .analytics-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .analytics-card p {
  color: #334155;
  font-weight: 600;
}

html[data-pd-theme="light"] body.luxe .analytics-card h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-total {
  color: #0c4a6e;
  font-weight: 700;
}

html[data-pd-theme="light"] body.luxe .access-badge {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.42);
}

html[data-pd-theme="light"] body.luxe .access-badge.warning {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(180, 83, 9, 0.38);
}

html[data-pd-theme="light"] body.luxe .quote-card > p {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .quote-card .quote-meta {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .quote-card .quote-meta strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-link {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .quote-toolbar {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe input,
html[data-pd-theme="light"] body.luxe select,
html[data-pd-theme="light"] body.luxe textarea {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .pd-settings-row select {
  background: #fff;
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .btn-ghost {
  color: #1e293b;
  border-color: rgba(100, 116, 139, 0.4);
}

html[data-pd-theme="light"] body.luxe h1,
html[data-pd-theme="light"] body.luxe h2,
html[data-pd-theme="light"] body.luxe h3,
html[data-pd-theme="light"] body.luxe .legal-header h1,
html[data-pd-theme="light"] body.luxe .quote-card h3,
html[data-pd-theme="light"] body.luxe .pd-settings-head h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .eyebrow,
html[data-pd-theme="light"] body.luxe .workflow-strip-label,
html[data-pd-theme="light"] body.luxe .pd-settings-eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .subtext,
html[data-pd-theme="light"] body.luxe label,
html[data-pd-theme="light"] body.luxe .quote-search-wrap,
html[data-pd-theme="light"] body.luxe .quote-sort-wrap,
html[data-pd-theme="light"] body.luxe .pd-settings-toggle,
html[data-pd-theme="light"] body.luxe .pd-settings-row {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .workflow-strip {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .workflow-step {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .workflow-step-copy strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .workflow-step-copy em {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .workflow-step-num {
  color: #0c4a6e;
  background: rgba(56, 189, 248, 0.22);
}

html[data-pd-theme="light"] body.luxe .get-started-panel-glass {
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.92) 100%) !important;
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .get-started-step {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(100, 116, 139, 0.24);
}

html[data-pd-theme="light"] body.luxe .get-started-step h4 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .get-started-step p,
html[data-pd-theme="light"] body.luxe .get-started-panel-sub {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .get-started-cta {
  background: rgba(241, 245, 249, 0.9);
  border-top-color: rgba(100, 116, 139, 0.18);
}

html[data-pd-theme="light"] body.luxe .flow-step {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .flow-step h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .flow-step p,
html[data-pd-theme="light"] body.luxe .flow-section-lead {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .plans-hero-shell {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(100, 116, 139, 0.24);
}

html[data-pd-theme="light"] body.luxe .plans-hero-inner h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .plans-hero-inner .section-pricing-lead {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .why-feature-card {
  background: rgba(255, 255, 255, 0.48) !important;
}

html[data-pd-theme="light"] body.luxe .why-feature-card h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .why-feature-card p {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .final-cta-shell {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(180, 140, 60, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 56px rgba(15, 23, 42, 0.1);
}

html[data-pd-theme="light"] body.luxe .final-cta-title {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .final-cta-lead {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .final-cta-perks li {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .workspace-tabs {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.3);
}

html[data-pd-theme="light"] body.luxe .workspace-tab {
  background: #fff;
  color: #334155;
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .workspace-tab.active {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.45);
}

html[data-pd-theme="light"] body.luxe .status-chip {
  background: #fff;
  color: #475569;
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .status-chip.active {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
}

html[data-pd-theme="light"] body.luxe .quote-search-wrap input,
html[data-pd-theme="light"] body.luxe .quote-sort-wrap select {
  color: #0f172a;
  background: #fff;
}

html[data-pd-theme="light"] body.luxe .quote-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.3);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .form-status {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .menu a.is-active {
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .page-role-callout {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .pd-settings-group legend {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .quote-head-label {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .draft-saved-panel {
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.98));
  border-color: rgba(14, 116, 144, 0.35);
}

/* Team workspace — light mode */
html[data-pd-theme="light"] body.luxe .team-page .team-section .team-access-bar,
html[data-pd-theme="light"] body.luxe .team-access-bar,
html[data-pd-theme="light"] body.luxe .auth-intro,
html[data-pd-theme="light"] body.luxe .auth-gate-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .team-page .team-section,
html[data-pd-theme="light"] body.luxe #team-auth-gate.team-section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .auth-intro h3,
html[data-pd-theme="light"] body.luxe .auth-gate-card h3,
html[data-pd-theme="light"] body.luxe .team-page .team-section-title {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .team-page .team-section-sub {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .app-hero,
html[data-pd-theme="light"] body.luxe .legal-header.app-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.32);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

html[data-pd-theme="light"] body.luxe .legal-header.app-hero .eyebrow,
html[data-pd-theme="light"] body.luxe .app-hero .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .legal-header.app-hero h1,
html[data-pd-theme="light"] body.luxe .app-hero h1 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .app-workspace-hero .quote-meta,
html[data-pd-theme="light"] body.luxe .app-workspace-hero #workspace-meta {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe #workspace-meta.is-usage-warn {
  color: #92400e;
}

html[data-pd-theme="light"] body.luxe #workspace-meta.is-usage-danger {
  color: #991b1b;
}

html[data-pd-theme="light"] body.luxe .quote-usage-banner {
  color: #334155;
  background: rgba(254, 243, 199, 0.55);
  border-color: rgba(217, 119, 6, 0.35);
}

html[data-pd-theme="light"] body.luxe .quote-usage-banner.is-warn {
  color: #78350f;
  background: rgba(254, 243, 199, 0.75);
  border-color: rgba(217, 119, 6, 0.4);
}

html[data-pd-theme="light"] body.luxe .quote-usage-banner.is-warn strong {
  color: #92400e;
}

html[data-pd-theme="light"] body.luxe .quote-usage-banner.is-danger {
  color: #7f1d1d;
  background: rgba(254, 226, 226, 0.85);
  border-color: rgba(220, 38, 38, 0.4);
}

html[data-pd-theme="light"] body.luxe .quote-usage-banner.is-danger strong {
  color: #991b1b;
}

html[data-pd-theme="light"] body.luxe .auth-intro p,
html[data-pd-theme="light"] body.luxe .auth-gate-card p,
html[data-pd-theme="light"] body.luxe .team-permissions-note,
html[data-pd-theme="light"] body.luxe .team-hero-note,
html[data-pd-theme="light"] body.luxe .legal-header.app-hero .subtext,
html[data-pd-theme="light"] body.luxe .team-section .subtext,
html[data-pd-theme="light"] body.luxe .team-session-bar .session-lead {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .session-or,
html[data-pd-theme="light"] body.luxe .team-section-divider {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .team-section-divider::before,
html[data-pd-theme="light"] body.luxe .team-section-divider::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 116, 139, 0.35) 20%,
    rgba(100, 116, 139, 0.35) 80%,
    transparent
  );
}

/* Invite / recovery split — light mode */
html[data-pd-theme="light"] body.luxe .invite-split {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .invite-visual {
  border-right-color: rgba(100, 116, 139, 0.22);
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.12), transparent 56%),
    radial-gradient(circle at 82% 76%, rgba(99, 102, 241, 0.1), transparent 52%),
    linear-gradient(140deg, rgba(248, 250, 252, 0.98), rgba(224, 242, 254, 0.55));
}

html[data-pd-theme="light"] body.luxe .invite-visual .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .invite-visual h1 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .invite-visual p {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .invite-pill {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.85);
  border-color: rgba(14, 116, 144, 0.28);
}

html[data-pd-theme="light"] body.luxe .invite-form-panel {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
}

html[data-pd-theme="light"] body.luxe .invite-form-panel h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .recovery-form-lead {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .recovery-page .label-optional {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note {
  background: rgba(224, 242, 254, 0.75);
  border-color: rgba(14, 116, 144, 0.28);
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note-title {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note-text {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note-text strong {
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note-link {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .auth-recovery-note-link:hover {
  color: #0c4a6e;
}

/* Platform onboarding & operations — light mode */
html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .owner-page-diff article {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .owner-page-diff article.is-here {
  border-color: rgba(14, 116, 144, 0.45);
  box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.55));
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .owner-page-diff h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .owner-page-diff p {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .app-hero-onboard {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.35));
  border-color: rgba(180, 83, 9, 0.28);
}

html[data-pd-theme="light"] body.luxe .app-hero-onboard .eyebrow {
  color: #b45309;
}

html[data-pd-theme="light"] body.luxe .app-hero-ops {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(209, 250, 229, 0.45));
  border-color: rgba(5, 150, 105, 0.28);
}

html[data-pd-theme="light"] body.luxe .app-hero-ops .eyebrow {
  color: #047857;
}

html[data-pd-theme="light"] body.luxe .platform-login-card,
html[data-pd-theme="light"] body.luxe .platform-login-shell,
html[data-pd-theme="light"] body.luxe .platform-admin-grid {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .platform-login-split {
  border-color: rgba(100, 116, 139, 0.32);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .platform-login-panel {
  background: rgba(255, 255, 255, 0.98);
}

html[data-pd-theme="light"] body.luxe .platform-login-lead,
html[data-pd-theme="light"] body.luxe .platform-login-points li {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .platform-login-showcase h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .platform-login-visual {
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(circle at 82% 68%, rgba(99, 102, 241, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(241, 245, 249, 0.98), rgba(224, 242, 254, 0.65));
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .platform-wave {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0));
}

html[data-pd-theme="light"] body.luxe .platform-admin-intro,
html[data-pd-theme="light"] body.luxe .platform-access-card,
html[data-pd-theme="light"] body.luxe .platform-admin-form-wrap,
html[data-pd-theme="light"] body.luxe .platform-ops-card,
html[data-pd-theme="light"] body.luxe .platform-admin-audit,
html[data-pd-theme="light"] body.luxe .admin-panel,
html[data-pd-theme="light"] body.luxe .admin-users-toolbar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .platform-session-strip {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.5));
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .platform-session-strip .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .platform-access-meta {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .platform-access-points li {
  color: #334155;
  background: rgba(224, 242, 254, 0.75);
  border-color: rgba(14, 116, 144, 0.28);
}

html[data-pd-theme="light"] body.luxe .platform-access-points .pill-key {
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .platform-ops-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

html[data-pd-theme="light"] body.luxe .platform-ops-card-create .platform-ops-card-head {
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.2), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.35));
  border-bottom-color: rgba(180, 83, 9, 0.18);
}

html[data-pd-theme="light"] body.luxe .platform-ops-card-create .platform-ops-card-head .eyebrow {
  color: #b45309;
}

html[data-pd-theme="light"] body.luxe .platform-ops-card-reset .platform-ops-card-head {
  background:
    radial-gradient(circle at 88% 24%, rgba(56, 189, 248, 0.16), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.45));
  border-bottom-color: rgba(14, 116, 144, 0.18);
}

html[data-pd-theme="light"] body.luxe .platform-ops-card-reset .platform-ops-card-head .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .platform-ops-card-lead {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .platform-access-card .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .platform-admin-intro h2,
html[data-pd-theme="light"] body.luxe .platform-admin-form-wrap h2,
html[data-pd-theme="light"] body.luxe .platform-ops-card-head h2,
html[data-pd-theme="light"] body.luxe .platform-admin-audit h2,
html[data-pd-theme="light"] body.luxe .auth-intro h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .platform-admin-audit .quote-meta,
html[data-pd-theme="light"] body.luxe .platform-login-card > p,
html[data-pd-theme="light"] body.luxe .platform-admin-intro .quote-meta {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .app-form label {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .app-form input,
html[data-pd-theme="light"] body.luxe .app-form select,
html[data-pd-theme="light"] body.luxe .app-form textarea {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .app-form input:focus,
html[data-pd-theme="light"] body.luxe .app-form select:focus,
html[data-pd-theme="light"] body.luxe .app-form textarea:focus {
  border-color: rgba(14, 116, 144, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

html[data-pd-theme="light"] body.luxe .audit-chip {
  background: #fff;
  color: #475569;
  border-color: rgba(100, 116, 139, 0.32);
}

html[data-pd-theme="light"] body.luxe .audit-chip.active {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.42);
}

html[data-pd-theme="light"] body.luxe .audit-row p,
html[data-pd-theme="light"] body.luxe .audit-title {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .audit-title strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .admin-users-toolbar label {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .admin-users-toolbar input,
html[data-pd-theme="light"] body.luxe .admin-users-toolbar select {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

/* Ops monitor — session shell + metric cards */
html[data-pd-theme="light"] body.luxe .admin-shell.legal-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.94));
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  border-radius: 20px;
}

html[data-pd-theme="light"] body.luxe .admin-session-bar.platform-admin-intro {
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.55), rgba(255, 255, 255, 0.98));
  border-color: rgba(14, 116, 144, 0.22);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

html[data-pd-theme="light"] body.luxe .analytics-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.96));
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .admin-panel {
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
}

html[data-pd-theme="light"] body.luxe .admin-users-toolbar {
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.98), rgba(255, 255, 255, 0.99));
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

html[data-pd-theme="light"] body.luxe .member-row {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .member-row p strong {
  color: #0f172a;
}

/* User management action buttons — were white-on-white in light mode */
html[data-pd-theme="light"] body.luxe .member-row .mini-btn,
html[data-pd-theme="light"] body.luxe .app-page .mini-btn {
  background: #fff;
  color: #1e293b;
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .member-row .mini-btn:hover,
html[data-pd-theme="light"] body.luxe .app-page .mini-btn:hover {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(14, 116, 144, 0.45);
  color: #0c4a6e;
  transform: translateY(-1px);
}

html[data-pd-theme="light"] body.luxe .app-page .mini-btn.btn-primary,
html[data-pd-theme="light"] body.luxe .admin-panel .mini-btn.btn-primary,
html[data-pd-theme="light"] body.luxe .admin-plan-hero-card .mini-btn.btn-primary {
  color: #fff !important;
  border-color: rgba(37, 99, 235, 0.5) !important;
  background: linear-gradient(140deg, #1d4ed8, #2563eb 45%, #0d9488 120%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

html[data-pd-theme="light"] body.luxe .app-page .mini-btn.btn-primary:hover,
html[data-pd-theme="light"] body.luxe .admin-panel .mini-btn.btn-primary:hover,
html[data-pd-theme="light"] body.luxe .admin-plan-hero-card .mini-btn.btn-primary:hover {
  color: #fff !important;
  border-color: rgba(29, 78, 216, 0.65) !important;
  background: linear-gradient(140deg, #1e40af, #2563eb 45%, #0f766e 120%) !important;
}

html[data-pd-theme="light"] body.luxe .admin-plan-delete {
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: rgba(254, 242, 242, 0.98) !important;
}

html[data-pd-theme="light"] body.luxe .admin-plan-delete:hover {
  color: #fff !important;
  border-color: rgba(220, 38, 38, 0.65) !important;
  background: #dc2626 !important;
}

html[data-pd-theme="light"] body.luxe .ops-metrics-group {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .ops-metrics-group-label {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .ops-metric-card {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.24);
}

html[data-pd-theme="light"] body.luxe .ops-metric-card--warn {
  background: rgba(254, 243, 199, 0.55);
  border-color: rgba(217, 119, 6, 0.35);
}

html[data-pd-theme="light"] body.luxe .ops-metric-label {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .ops-metric-value {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .ops-metric-card--zero .ops-metric-value {
  color: #94a3b8;
}

html[data-pd-theme="light"] body.luxe .ops-metric-sub {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .mini-btn[data-action="reset"] {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.4);
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .mini-btn[data-action="reset"]:hover {
  background: rgba(186, 230, 253, 0.98);
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .mini-btn[data-action="remove"] {
  background: #fff;
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

html[data-pd-theme="light"] body.luxe .mini-btn[data-action="remove"]:hover {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(220, 38, 38, 0.5);
  color: #991b1b;
}

html[data-pd-theme="light"] body.luxe .mini-btn[data-action="status"] {
  background: #fff;
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .platform-login-card.legal-card,
html[data-pd-theme="light"] body.luxe .platform-login-split,
html[data-pd-theme="light"] body.luxe .platform-admin-grid.legal-card {
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

html[data-pd-theme="light"] body.luxe .legal-header.app-hero .subtext a,
html[data-pd-theme="light"] body.luxe .team-hero-note a {
  color: #0369a1;
  font-weight: 600;
}

html[data-pd-theme="light"] body.luxe .auth-points p {
  color: #334155;
  background: rgba(224, 242, 254, 0.65);
  border-color: rgba(14, 116, 144, 0.28);
}

html[data-pd-theme="light"] body.luxe .auth-points span {
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .member-row,
html[data-pd-theme="light"] body.luxe .audit-row {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .member-row p {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .member-row select {
  color: #0f172a;
  background: #fff;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .admin-org-hero-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-head {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-card input[type="text"],
html[data-pd-theme="light"] body.luxe .admin-plan-hero-card input[type="number"],
html[data-pd-theme="light"] body.luxe .admin-plan-hero-card textarea,
html[data-pd-theme="light"] body.luxe .admin-platform-defaults-form input[type="number"] {
  color: #0f172a;
  background: #fff;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .admin-plan-collapse-head {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.06));
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-card.is-expanded .admin-plan-collapse-head {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.08));
  border-bottom-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .admin-plan-collapse-head:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-card label,
html[data-pd-theme="light"] body.luxe .admin-platform-defaults-form label {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .admin-plan-section-label {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .admin-plan-limits-details {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-pd-theme="light"] body.luxe .admin-plan-limits-details summary {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .admin-platform-defaults {
  border-top-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .admin-platform-defaults summary {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-body,
html[data-pd-theme="light"] body.luxe .admin-plan-hero-details {
  border-top-color: rgba(100, 116, 139, 0.16);
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-body {
  border-bottom-color: rgba(100, 116, 139, 0.16);
}

html[data-pd-theme="light"] body.luxe .admin-plan-chevron {
  border-color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-plan-hero-card.is-expanded .admin-plan-chevron {
  border-color: #0284c7;
}

html[data-pd-theme="light"] body.luxe .admin-plan-preview-label {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-org-slug {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-plan-chip {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .admin-plan-field input[type="text"],
html[data-pd-theme="light"] body.luxe .admin-plan-field input[type="number"],
html[data-pd-theme="light"] body.luxe .admin-plan-field textarea,
html[data-pd-theme="light"] body.luxe .admin-plan-edit-form textarea {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.32);
  color: #0f172a;
  color-scheme: light;
  scrollbar-color: rgba(148, 163, 184, 0.55) #f1f5f9;
}

html[data-pd-theme="light"] body.luxe .admin-plan-field textarea::-webkit-scrollbar-track,
html[data-pd-theme="light"] body.luxe .admin-plan-edit-form textarea::-webkit-scrollbar-track {
  background: #f1f5f9;
}

html[data-pd-theme="light"] body.luxe .admin-plan-field textarea::-webkit-scrollbar-thumb,
html[data-pd-theme="light"] body.luxe .admin-plan-edit-form textarea::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-color: #f1f5f9;
}

html[data-pd-theme="light"] body.luxe .admin-plan-compact-footer {
  border-top-color: rgba(100, 116, 139, 0.18);
}

html[data-pd-theme="light"] body.luxe .admin-plan-editor-form {
  border-right-color: rgba(100, 116, 139, 0.18);
}

html[data-pd-theme="light"] body.luxe .admin-plan-editor-preview {
  background: rgba(241, 245, 249, 0.85);
}

html[data-pd-theme="light"] body.luxe .admin-plan-field {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-plan-preview-card--compact h3,
html[data-pd-theme="light"] body.luxe .admin-plan-preview-card--compact .price {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .admin-plan-preview-card--compact ul {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .admin-org-hero-head {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
}

html[data-pd-theme="light"] body.luxe .admin-org-name {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .admin-org-hero-card input[type="number"],
html[data-pd-theme="light"] body.luxe .admin-org-hero-card input[type="text"],
html[data-pd-theme="light"] body.luxe .admin-org-hero-card input[type="date"],
html[data-pd-theme="light"] body.luxe .admin-org-hero-card select {
  color: #0f172a;
  background: #fff;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .admin-org-entitlements {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Ops — usage filters, meters, status badges, entitlements toggle */
html[data-pd-theme="light"] body.luxe .ops-usage-filter {
  background: #fff;
  color: #334155;
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .ops-usage-filter:hover {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(14, 116, 144, 0.45);
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe .ops-usage-filter.active {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.45);
}

html[data-pd-theme="light"] body.luxe .ops-usage-meter-row {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .ops-usage-meter-label {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .ops-usage-meter-count {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .ops-usage-meter-unlimited {
  color: #4338ca;
}

html[data-pd-theme="light"] body.luxe .ops-usage-meter-track {
  background: rgba(226, 232, 240, 0.95);
}

html[data-pd-theme="light"] body.luxe .ops-status-active {
  color: #065f46;
  background: rgba(209, 250, 229, 0.95);
  border-color: rgba(5, 150, 105, 0.4);
}

html[data-pd-theme="light"] body.luxe .ops-status-trial {
  color: #4338ca;
  background: rgba(224, 231, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
}

html[data-pd-theme="light"] body.luxe .ops-status-warn {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(180, 83, 9, 0.38);
}

html[data-pd-theme="light"] body.luxe .ops-status-muted {
  color: #475569;
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .ops-usage-badge.ops-usage-near {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(180, 83, 9, 0.38);
}

html[data-pd-theme="light"] body.luxe .ops-usage-badge.ops-usage-at {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(220, 38, 38, 0.35);
}

html[data-pd-theme="light"] body.luxe .ops-quote-usage-line.ops-quote-usage-near {
  color: #92400e;
}

html[data-pd-theme="light"] body.luxe .ops-quote-usage-line.ops-quote-usage-at {
  color: #991b1b;
}

html[data-pd-theme="light"] body.luxe .admin-ent-toggle[aria-expanded="true"] {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.45);
}

html[data-pd-theme="light"] body.luxe .admin-org-check {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .admin-ent-hint {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-org-compact-field > span:first-child {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-org-entitlement-actions {
  border-top-color: rgba(100, 116, 139, 0.18);
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .mini-btn,
html[data-pd-theme="light"] body.luxe .admin-panel .mini-btn,
html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .mini-btn {
  background: #fff;
  color: #1e293b;
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe[data-pd-nav="platform-owner"] .mini-btn:hover,
html[data-pd-theme="light"] body.luxe .admin-panel .mini-btn:hover,
html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .mini-btn:hover {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(14, 116, 144, 0.45);
  color: #0c4a6e;
}

html[data-pd-theme="light"] body.luxe #admin-site-logo-reset {
  background: rgba(241, 245, 249, 0.98);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.38);
}

html[data-pd-theme="light"] body.luxe #admin-site-logo-reset:hover {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.45);
}

/* Site settings tab — light mode */
html[data-pd-theme="light"] body.luxe .admin-site-settings-col {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .admin-site-settings-heading {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .admin-site-header-preview,
html[data-pd-theme="light"] body.luxe .admin-site-canada-preview {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .admin-site-preview-label {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .admin-site-header-preview-bar {
  background: rgba(241, 245, 249, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .pd-file-input {
  color: #334155;
  color-scheme: light;
}

html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .pd-file-input::file-selector-button {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.95), rgba(219, 234, 254, 0.9));
  color: #1e40af;
}

html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .pd-file-input::file-selector-button:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.98), rgba(224, 242, 254, 0.95));
}

html[data-pd-theme="light"] body.luxe .admin-panel-site-settings .pd-file-name {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .team-section-org .quote-meta,
html[data-pd-theme="light"] body.luxe #org-meta {
  color: #334155;
}

/* Notifications — light mode */
html[data-pd-theme="light"] body.luxe .notification-row {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.32);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .notification-type {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .notification-type strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .notification-category-tag {
  color: #0369a1;
  border-color: rgba(14, 116, 144, 0.35);
  background: rgba(224, 242, 254, 0.7);
}

html[data-pd-theme="light"] body.luxe .notification-row .quote-meta {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .notification-row .quote-meta strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .delivery-meta {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .notification-status {
  color: #334155;
  background: #f1f5f9;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .notification-status.sent {
  color: #065f46;
  background: rgba(209, 250, 229, 0.95);
  border-color: rgba(5, 150, 105, 0.4);
}

html[data-pd-theme="light"] body.luxe .notification-status.scheduled {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(180, 83, 9, 0.35);
}

html[data-pd-theme="light"] body.luxe .notification-status.failed {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(220, 38, 38, 0.35);
}

html[data-pd-theme="light"] body.luxe .notifications-panel-head .quote-meta,
html[data-pd-theme="light"] body.luxe #notifications-count {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .quote-drawer-panel {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

body.luxe.workspace-auth-pending .legal-wrap.app-wrap,
body.luxe.workspace-auth-pending .workspace-tabs {
  visibility: hidden;
  pointer-events: none;
}

.app-workspace-page .workspace-panel {
  opacity: 1;
  transform: none;
}

.app-workspace-page .workspace-panel.reveal {
  opacity: 1;
  transform: none;
}

.quick-quote-explainer,
.quote-builder-explainer {
  margin: 0 0 10px;
}

.quote-packages-bar {
  margin: 0;
  padding: 14px 18px 18px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.create-hero-tier2 .quote-packages-bar {
  padding: 20px 18px 22px;
}

.create-hero-tier2 .block-hero-head,
.create-hero-tier2 .create-hero-head {
  padding-bottom: 14px;
}

.create-hero-tier2 .quote-package-chips {
  margin-top: 2px;
  gap: 12px;
}

.quote-card--revision-pending {
  border-color: rgba(251, 191, 36, 0.55);
  border-left: 4px solid #f59e0b;
  background: linear-gradient(155deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.quote-status-pill--revision {
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.quote-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.quote-revision-note-banner {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #fde68a;
  background: rgba(180, 83, 9, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.quote-card-identity h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.quote-card-customer {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.quote-card-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.quote-card-status-line .quote-meta-status {
  font-weight: 700;
  color: #cbd5e1;
}

.quote-card-total {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.quote-card-categories {
  margin: 8px 0 0;
}

.quote-revision-log {
  margin-top: 14px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.28);
}

.quote-revision-log summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  list-style: none;
}

.quote-revision-log summary::-webkit-details-marker {
  display: none;
}

.quote-revision-log-list {
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-revision-log-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}

.quote-revision-log-item.is-requested {
  border-left: 3px solid #fbbf24;
}

.quote-revision-log-item.is-published {
  border-left: 3px solid #38bdf8;
}

.quote-revision-log-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  align-items: baseline;
}

.quote-revision-log-head strong {
  font-size: 0.88rem;
}

.quote-revision-log-note {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.quote-revision-log-total {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7dd3fc;
}

.business-settings-card--customers {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.72));
}

.customers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customers-search-wrap {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.customers-table-wrap {
  margin-bottom: 14px;
}

.customer-edit-panel {
  margin-top: 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.35);
}

.customer-edit-panel h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.customer-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-edit-grid .span-full {
  grid-column: 1 / -1;
}

.quote-customer-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-customer-summary {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-clarity-banner {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  font-size: 0.88rem;
}

.quote-clarity-banner.is-warn {
  color: #fde68a;
  line-height: 1.45;
}

.quote-clarity-banner.is-warn strong {
  color: #fef3c7;
}

.customer-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.customer-modal.hidden {
  display: none;
}

.customer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.customer-modal-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
}

.customer-modal-card--stacked {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-color: rgba(56, 189, 248, 0.35);
}

.customer-modal-card--hero {
  border-color: rgba(56, 189, 248, 0.35);
}

.customer-modal-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 16px;
}

.customer-modal-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.42), rgba(99, 102, 241, 0.3), rgba(15, 23, 42, 0.88));
}

.customer-modal-hero--match .customer-modal-hero-bg {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.38), rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.88));
}

.customer-modal-hero--new .customer-modal-hero-bg {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(59, 130, 246, 0.32), rgba(15, 23, 42, 0.88));
}

.customer-modal-hero-inner {
  position: relative;
  z-index: 1;
}

.customer-modal-hero h4 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
}

.customer-modal-body {
  padding: 16px 20px 8px;
}

.customer-modal-grid {
  margin-bottom: 0;
}

.customer-modal-grid label,
.customer-modal-grid input,
.customer-modal-grid select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.customer-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.customer-modal-body .customer-match-list {
  margin: 0;
}

.customer-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.customer-match-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
}

.tax-rate-alerts-panel {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.tax-rate-alerts-panel ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.quote-health-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-health-badge--green {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.quote-health-badge--amber {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.quote-health-badge--red {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.quote-health-badge--neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.quote-tier2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quote-tier2-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.4);
}

.quote-tier2-card.is-selected {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.quote-tier2-card ul {
  margin: 8px 0;
  padding-left: 18px;
  font-size: 0.88rem;
}

.quote-tier2-selected-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #38bdf8;
}

.quote-revision-diff {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.quote-revision-diff-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.deposit-link-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.portal-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: inherit;
  text-decoration: none;
}

.portal-quote-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

body.quote-page-public .reveal {
  opacity: 1;
  transform: none;
}

.customer-detail-portal-wrap {
  display: inline-flex;
}

.customer-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.22);
}

.customer-portal-btn-icon {
  font-size: 0.9em;
  opacity: 0.85;
}

.customer-portal-btn:hover {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(14, 116, 144, 0.35);
}

@media (max-width: 800px) {
  .quote-tier2-grid {
    grid-template-columns: 1fr;
  }
}

.customers-table tbody tr.customer-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.customers-table tbody tr.customer-row:hover,
.customers-table tbody tr.customer-row.is-active {
  background: rgba(56, 189, 248, 0.08);
}

.customers-table tbody tr.customer-row.is-active {
  outline: 1px solid rgba(56, 189, 248, 0.35);
  outline-offset: -1px;
}

.customer-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.16);
}

.customer-stat-pill--accepted {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.customer-stat-pill--rejected {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.customer-stat-pill--pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.customer-detail-hero {
  position: relative;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

.customer-detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.18), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(74, 222, 128, 0.12), transparent 38%);
  pointer-events: none;
}

.customer-detail-hero-inner {
  position: relative;
  padding: 20px 22px 18px;
}

.customer-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.customer-detail-head h4 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}

.customer-detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-stats-hero {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.customer-stat-card {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

.customer-stat-card p {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.customer-stat-card h3 {
  margin: 0 0 4px;
  font-size: 1.65rem;
  line-height: 1.1;
}

.customer-stat-card--accepted {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.customer-stat-card--rejected {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.customer-stat-card--pending {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.customer-stat-card--draft {
  border-color: rgba(148, 163, 184, 0.28);
}

.customer-quotes-panel h5 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.customer-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-quote-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.customer-quote-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.55);
}

.customer-quote-row.is-accepted {
  border-left: 3px solid #4ade80;
}

.customer-quote-row.is-rejected {
  border-left: 3px solid #f87171;
}

.customer-quote-row.is-pending {
  border-left: 3px solid #fbbf24;
}

.customer-quote-title {
  font-weight: 600;
}

.customer-quote-meta {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-quote-total {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .customer-stats-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .customer-edit-grid {
    grid-template-columns: 1fr;
  }

  .customer-stats-hero {
    grid-template-columns: 1fr;
  }

  .customer-quote-row {
    grid-template-columns: 1fr;
  }
}

.quote-packages-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.quote-packages-head h3 {
  margin: 0;
  font-size: 1rem;
}

.line-items-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quote-head-clear {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.quote-package-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .quote-package-chips {
    grid-template-columns: 1fr;
  }
}

.quote-package-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  height: auto;
  min-height: 72px;
  padding: 14px;
  line-height: 1.35;
}

.quote-package-chip span {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 400;
}

.quote-package-chip.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.tier-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.4);
  vertical-align: middle;
}

/* Tier 1 — Canada rebates, clarity, cold blocks */
.tier1-panel {
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 14px;
  padding: 10px 14px 14px;
  background: rgba(15, 23, 42, 0.4);
}

.tier1-panel > summary {
  cursor: pointer;
  font-weight: 600;
  color: #6ee7b7;
}

.tier1-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.tier1-tab {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tier1-tab.is-active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.tier1-tab-panel {
  display: none;
}

.tier1-tab-panel.is-active {
  display: block;
}

.tier1-rebate-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tier1-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.45) rgba(15, 23, 42, 0.6);
}

.tier1-scroll::-webkit-scrollbar {
  width: 8px;
}

.tier1-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 8px;
}

.tier1-scroll::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.45);
  border-radius: 8px;
}

.tier1-rebate-summary {
  margin: 4px 0 6px;
}

.tier1-rebate-link {
  font-size: 0.82rem;
  color: #7dd3fc;
}

.tier1-refresh-status {
  margin: 8px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.tier1-refresh-status.is-loading {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #93c5fd;
}

.tier1-refresh-status.is-ok {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.tier1-refresh-status.is-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.tier1-rebate-live {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.tier1-rebate-live h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #6ee7b7;
}

.tier1-rebate-live-list {
  margin: 0 0 8px;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tier1-rebate-live-list li {
  margin: 4px 0;
}

.tier1-clarity-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 10px 0;
  font-size: 1.1rem;
}

.tier1-clarity-score.is-good strong {
  color: #6ee7b7;
}

.tier1-clarity-score.is-warn strong {
  color: #fbbf24;
}

.tier1-clarity-score.is-low strong {
  color: #f87171;
}

.tier1-clarity-checks {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.88rem;
}

.tier1-clarity-checks li {
  margin: 6px 0;
}

.tier1-clarity-checks li.pass {
  color: #94a3b8;
}

.tier1-clarity-checks li.fail {
  color: #fca5a5;
}

.tier1-rebate-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.tier1-rebate-row {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 10px;
}

.tier1-rebate-row.is-ended {
  opacity: 0.65;
}

.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}

.pd-modal:not(.hidden) {
  pointer-events: auto;
}

.pd-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pd-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.65);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: min(90vh, 560px);
  overflow: hidden;
}

.pd-modal-header,
.pd-modal-footer {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.pd-modal-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.pd-modal-header h3 {
  margin: 4px 0 0;
}

.pd-modal-body {
  padding: 12px 16px 16px;
  overflow: auto;
}

body.modal-open {
  overflow: hidden;
}

.outcome-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.outcome-pick.is-won.is-active {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.outcome-pick.is-lost.is-active {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.outcome-reasons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outcome-reason-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0;
  font-size: 0.86rem;
}

html[data-pd-theme="light"] body.luxe .pd-modal-panel {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

.tier1-cold-blocks {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.tier1-stale-banner {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  font-size: 0.9rem;
}

.tier1-clarity-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.tier1-clarity-pill.is-good {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
}

.tier1-clarity-pill.is-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.tier1-insights-panel {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
}

.quote-page-public .quote-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.quote-clarity-public {
  margin-top: 12px;
}

.quote-clarity-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(56, 189, 248, 0.12);
  font-size: 0.92rem;
}

.quote-clarity-badge.is-good {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}

.quote-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.quote-rebates-list {
  display: grid;
  gap: 12px;
}

.quote-rebate-row {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 12px;
}

.quote-rebate-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.outcome-reasons-fieldset {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.outcome-reasons-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

/* Create quote — dual hero blocks */
.create-hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .create-hero-duo {
    grid-template-columns: 1fr;
  }
}

.create-hero-block {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

.create-hero-builder,
.create-hero-tier2 {
  margin-bottom: 18px;
}

.create-hero-builder .quote-builder-form {
  padding: 14px 18px 18px;
}

.create-hero-tier2 {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.55));
}

.create-hero-tier2 .block-hero-head,
.create-hero-tier2 .create-hero-head {
  background: transparent;
}

.tier2-package-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 14px;
}

.tier2-tagline-field {
  margin: 0;
}

.tier2-toolbar-actions {
  margin: 0;
  padding-top: 2px;
}

.business-settings-card.app-form label,
.business-settings-card .app-form label {
  color: #cbd5e1;
}

.business-settings-card.app-form input,
.business-settings-card.app-form select,
.business-settings-card.app-form textarea,
.business-settings-card .app-form input,
.business-settings-card .app-form select,
.business-settings-card .app-form textarea {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.business-settings-card.app-form input:focus,
.business-settings-card.app-form select:focus,
.business-settings-card.app-form textarea:focus,
.business-settings-card .app-form input:focus,
.business-settings-card .app-form select:focus,
.business-settings-card .app-form textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22);
}

.ai-preferences-field {
  margin: 0 0 14px;
}

.business-settings-card--tier2 {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.72));
}

.tier2-settings-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.tier2-tier-tabs {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.quote-card--rejected {
  border-color: rgba(248, 113, 113, 0.55);
  border-left: 4px solid #ef4444;
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.quote-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
  vertical-align: middle;
}

.quote-status-pill--rejected {
  color: #fff;
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.quote-status-pill--accepted {
  color: #052e16;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
}

.quote-rejected-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #f87171, #dc2626);
  margin-right: 6px;
}

.quote-meta-status {
  font-weight: 600;
}

.quote-card--rejected .quote-meta-status {
  color: #fca5a5;
}

.send-btn.send-btn--declined-quote {
  box-shadow: none;
}

.customer-feedback-hero {
  position: relative;
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.customer-feedback-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.14));
  pointer-events: none;
}

.customer-feedback-hero-inner {
  position: relative;
  padding: 28px 24px 24px;
}

.star-rating-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.star-btn {
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease, transform 0.12s ease;
}

.star-btn:hover,
.star-btn.is-active {
  color: #fbbf24;
}

.star-btn.is-selected {
  transform: scale(1.12);
  color: #f59e0b;
}

.star-rating-caption {
  margin: 0 0 14px;
  font-size: 0.88rem;
  opacity: 0.9;
}

.create-hero-head,
.block-hero-head {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
}

.block-hero-head-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.block-hero-head-inner {
  position: relative;
  z-index: 1;
}

.block-hero-head--cyan .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(6, 182, 212, 0.38), rgba(37, 99, 235, 0.28) 48%, rgba(15, 23, 42, 0.55));
}

.block-hero-head--violet .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.22) 50%, rgba(15, 23, 42, 0.55));
}

.block-hero-head--gold .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(245, 158, 11, 0.32), rgba(234, 179, 8, 0.18) 45%, rgba(15, 23, 42, 0.55));
}

.block-hero-head--blue .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.32), rgba(59, 130, 246, 0.24) 50%, rgba(15, 23, 42, 0.55));
}

.block-hero-head--teal .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(20, 184, 166, 0.35), rgba(14, 165, 233, 0.22) 50%, rgba(15, 23, 42, 0.5));
}

.block-hero-head--compact {
  padding: 12px 16px 10px;
}

.block-hero-head .eyebrow {
  margin: 0;
  color: #fcd34d;
}

.create-hero-head h3,
.block-hero-head h3 {
  margin: 6px 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.block-hero-head--compact h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.create-hero-block .quick-quote-grid,
.create-hero-block .automation-form-grid {
  padding: 14px 18px 18px;
}

/* Business settings */
.business-settings-hero {
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.business-settings-tabs {
  margin-bottom: 14px;
}

.business-settings-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.business-settings-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 16px 18px 18px;
  background: rgba(15, 23, 42, 0.55);
}

.business-settings-card--usage {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.72));
}

.plan-usage-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-usage-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-usage-plan-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.plan-usage-plan-name {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
}

.plan-usage-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 116, 144, 0.25);
  color: #bae6fd;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.plan-usage-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
}

.plan-usage-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.plan-usage-row-head strong {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.plan-usage-count {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.plan-usage-unlimited {
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 600;
}

.plan-usage-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-usage-badge.is-warn {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(113, 63, 18, 0.35);
  color: #fde68a;
}

.plan-usage-badge.is-danger {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.plan-usage-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.7);
  overflow: hidden;
}

.plan-usage-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.85));
  transition: width 0.35s ease;
}

.plan-usage-meter-fill.is-warn {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
}

.plan-usage-meter-fill.is-danger {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.95), rgba(239, 68, 68, 0.95));
}

.plan-usage-meta,
.plan-usage-foot {
  margin: 0;
}

.business-settings-card--branding {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.72));
}

.business-settings-card--catalog {
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), rgba(15, 23, 42, 0.72));
}

.business-settings-card--tax {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.72));
}

.business-settings-card--ai {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.1), rgba(15, 23, 42, 0.72));
}

.business-card-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.business-card-head h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
}

.business-readonly input,
.business-readonly textarea,
.business-readonly select,
.business-readonly button:not([type="submit"]) {
  opacity: 0.85;
}

.feature-coming-soon {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(125, 211, 252, 0.35);
  background: rgba(14, 116, 144, 0.12);
}

.feature-coming-soon p {
  margin: 0 0 6px;
}

.ai-notes-examples {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.catalog-table-wrap,
.catalog-tax-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.catalog-table,
.catalog-tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.catalog-table th,
.catalog-table td,
.catalog-tax-table th,
.catalog-tax-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  vertical-align: middle;
}

.catalog-table thead th,
.catalog-tax-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.35);
}

.catalog-table input,
.catalog-table select,
.catalog-tax-table input {
  width: 100%;
  min-width: 64px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.86rem;
}

.catalog-table select {
  cursor: pointer;
}

.catalog-escalation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.catalog-tax-actions {
  margin-top: 8px;
}

.send-btn.is-accepted {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
}

.followup-pending-amber {
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: rgba(245, 158, 11, 0.65);
  font-weight: 600;
}

.followup-pending-amber:hover {
  filter: brightness(1.05);
}

.followup-auto-sent {
  color: #fef3c7;
  background: rgba(180, 83, 9, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.55);
  font-weight: 600;
  cursor: pointer;
}

html[data-pd-theme="light"] body.luxe .followup-pending-amber {
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #fcd34d);
}

html[data-pd-theme="light"] body.luxe .followup-auto-sent {
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(245, 158, 11, 0.5);
}

/* Dashboard badges */
.revision-pending-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  margin-right: 6px;
}

.customer-feedback-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  margin-left: 4px;
}

.outcome-btn-prominent {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
  animation: outcome-pulse 2s ease-in-out infinite;
}

@keyframes outcome-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.55);
  }
}

/* Customer link — rebates hero */
.quote-rebates-hero {
  position: relative;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
}

.quote-rebates-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.12));
  pointer-events: none;
}

.quote-rebates-hero-inner {
  position: relative;
  padding: 28px 24px 22px;
}

.quote-rebates-hero-inner h2 {
  margin: 6px 0 10px;
  font-size: 1.5rem;
}

.quote-rebates-lead {
  max-width: 52ch;
  margin-bottom: 18px;
  opacity: 0.92;
}

.quote-rebates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.quote-rebate-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.quote-rebate-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 70%);
  pointer-events: none;
}

.quote-rebate-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.quote-rebate-card-amount {
  font-size: 1.1rem;
  margin: 8px 0;
}

.quote-rebate-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
}

.quote-rebate-total {
  margin-top: 14px;
  font-weight: 600;
}

.quote-rebate-card-link {
  margin-top: 10px;
}

/* Light mode — create quote sections & business settings */
html[data-pd-theme="light"] body.luxe .create-hero-block,
html[data-pd-theme="light"] body.luxe .create-hero-builder,
html[data-pd-theme="light"] body.luxe .create-hero-tier2 {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.35);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-pd-theme="light"] body.luxe .create-hero-tier2 {
  background: linear-gradient(160deg, rgba(237, 233, 254, 0.55), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .create-hero-head {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(241, 245, 249, 0.98));
  border-bottom-color: rgba(100, 116, 139, 0.25);
}

html[data-pd-theme="light"] body.luxe .create-hero-head h3,
html[data-pd-theme="light"] body.luxe .create-hero-head .quote-meta {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head {
  border-bottom-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head--cyan .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(6, 182, 212, 0.14), rgba(37, 99, 235, 0.1) 48%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head--violet .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.08) 50%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head--gold .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(245, 158, 11, 0.12), rgba(234, 179, 8, 0.08) 45%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head--blue .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.12), rgba(59, 130, 246, 0.08) 50%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head--teal .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.08) 50%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head .quote-meta {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .create-hero-block .block-hero-head .eyebrow {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .quote-packages-bar {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(14, 116, 144, 0.35);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .quote-packages-head h3 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-package-chip {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.32);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-package-chip span {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .tier1-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .tier1-panel > summary {
  color: #047857;
}

html[data-pd-theme="light"] body.luxe .tier1-tab {
  background: #fff;
  color: #475569;
  border-color: rgba(100, 116, 139, 0.3);
}

html[data-pd-theme="light"] body.luxe .tier1-tab.is-active {
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.4);
}

html[data-pd-theme="light"] body.luxe .business-settings-hero {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.32);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

html[data-pd-theme="light"] body.luxe .business-settings-card--branding {
  background: linear-gradient(160deg, rgba(224, 242, 254, 0.9), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card--catalog {
  background: linear-gradient(160deg, rgba(209, 250, 229, 0.5), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card--tax {
  background: linear-gradient(160deg, rgba(254, 243, 199, 0.45), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card--ai {
  background: linear-gradient(160deg, rgba(237, 233, 254, 0.55), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card--usage {
  background: linear-gradient(160deg, rgba(237, 233, 254, 0.4), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .plan-usage-plan-name {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .plan-usage-status {
  color: #0369a1;
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.35);
}

html[data-pd-theme="light"] body.luxe .plan-usage-row {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .plan-usage-row-head strong {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .plan-usage-count {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .plan-usage-unlimited {
  color: #4338ca;
}

html[data-pd-theme="light"] body.luxe .plan-usage-badge.is-warn {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(180, 83, 9, 0.38);
}

html[data-pd-theme="light"] body.luxe .plan-usage-badge.is-danger {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(220, 38, 38, 0.35);
}

html[data-pd-theme="light"] body.luxe .plan-usage-meter-track {
  background: rgba(226, 232, 240, 0.95);
}

html[data-pd-theme="light"] body.luxe .plan-usage-meta,
html[data-pd-theme="light"] body.luxe .plan-usage-foot {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .plan-usage-foot a {
  color: #0369a1;
  font-weight: 600;
}

html[data-pd-theme="light"] body.luxe .catalog-table input,
html[data-pd-theme="light"] body.luxe .catalog-table select,
html[data-pd-theme="light"] body.luxe .catalog-tax-table input {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .catalog-table thead th,
html[data-pd-theme="light"] body.luxe .catalog-tax-table thead th {
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .feature-coming-soon {
  background: rgba(224, 242, 254, 0.6);
  border-color: rgba(14, 116, 144, 0.35);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-rebates-hero-inner h2,
html[data-pd-theme="light"] body.luxe .quote-rebates-lead {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-rebate-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.3);
}

html[data-pd-theme="light"] body.luxe .business-settings-card--tier2 {
  background: linear-gradient(160deg, rgba(237, 233, 254, 0.55), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .business-settings-card.app-form label,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form label {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .business-settings-card.app-form input,
html[data-pd-theme="light"] body.luxe .business-settings-card.app-form select,
html[data-pd-theme="light"] body.luxe .business-settings-card.app-form textarea,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form input,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form select,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form textarea {
  background: #fff;
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.35);
}

html[data-pd-theme="light"] body.luxe .business-settings-card.app-form input:focus,
html[data-pd-theme="light"] body.luxe .business-settings-card.app-form select:focus,
html[data-pd-theme="light"] body.luxe .business-settings-card.app-form textarea:focus,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form input:focus,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form select:focus,
html[data-pd-theme="light"] body.luxe .business-settings-card .app-form textarea:focus {
  border-color: rgba(14, 116, 144, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

html[data-pd-theme="light"] body.luxe .customer-feedback-hero-inner h2,
html[data-pd-theme="light"] body.luxe .star-rating-caption {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quote-card--rejected {
  border-color: rgba(220, 38, 38, 0.45);
  background: linear-gradient(155deg, rgba(254, 226, 226, 0.65), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .quote-card--rejected .quote-meta-status {
  color: #b91c1c;
}

html[data-pd-theme="light"] body.luxe .quote-revision-history-item {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .quote-revision-note-banner {
  color: #92400e;
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(217, 119, 6, 0.35);
}

html[data-pd-theme="light"] body.luxe .quote-card--revision-pending {
  border-color: rgba(217, 119, 6, 0.45);
  background: linear-gradient(155deg, rgba(254, 243, 199, 0.65), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .quote-card-status-line,
html[data-pd-theme="light"] body.luxe .quote-card-customer {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .quote-card-status-line .quote-meta-status {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .quote-revision-log {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .quote-revision-log-item {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .business-settings-card--customers {
  background: linear-gradient(160deg, rgba(224, 242, 254, 0.55), rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .customer-edit-panel {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .customer-detail-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.55));
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .customer-portal-btn {
  color: #0369a1;
  border-color: rgba(14, 116, 144, 0.38);
  background: rgba(224, 242, 254, 0.75);
}

html[data-pd-theme="light"] body.luxe .customer-portal-btn:hover {
  color: #0c4a6e;
  border-color: rgba(14, 116, 144, 0.5);
  background: rgba(186, 230, 253, 0.95);
}

html[data-pd-theme="light"] body.luxe.quote-page-public .legal-header.app-hero,
html[data-pd-theme="light"] body.luxe.quote-page-public .legal-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.32);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe.quote-page-public .portal-quote-row {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.28);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe.quote-page-public .portal-quote-row:hover {
  border-color: rgba(14, 116, 144, 0.45);
  background: rgba(241, 245, 249, 0.98);
}

html[data-pd-theme="light"] body.luxe .notifications-toolbar-bottom .quote-search-wrap,
html[data-pd-theme="light"] body.luxe .notifications-toolbar-bottom .quote-sort-wrap {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .customer-stat-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .customer-quote-row {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .customers-table tbody tr.customer-row:hover,
html[data-pd-theme="light"] body.luxe .customers-table tbody tr.customer-row.is-active {
  background: rgba(14, 165, 233, 0.08);
}

html[data-pd-theme="light"] body.luxe .quote-revision-log-body p {
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
}

/* —— Create quote UX: quick customer, tax block, accessibility —— */
.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;
}

.quick-customer-controls {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.quick-customer-controls input {
  flex: 1;
  min-width: 0;
}

.quick-customer-controls .btn {
  flex-shrink: 0;
  align-self: center;
}

.quick-customer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 116, 144, 0.15);
  font-size: 0.88rem;
  color: #e0f2fe;
}

.quick-customer-detail-email::before {
  content: "✉ ";
  opacity: 0.75;
}

.quick-customer-detail-phone::before {
  content: "☎ ";
  opacity: 0.75;
}

.create-sub-hero--tax {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.35);
}

.quote-tax-province-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px 16px;
  align-items: end;
}

.quote-tax-province-grid .span-full {
  grid-column: 1 / -1;
}

.quote-tax-province-grid label,
.quote-tax-province-grid select,
.quote-tax-province-grid input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.quote-tax-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-top-grid--slim {
  margin-bottom: 4px;
}

.quick-customer-manual {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 116, 144, 0.12);
}

.quick-customer-manual-hint {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.quick-customer-manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.quick-customer-manual-grid .span-full {
  grid-column: 1 / -1;
}

.quick-customer-manual-grid label,
.quick-customer-manual-grid input,
.quick-customer-manual-grid select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.quick-customer-detail-postal::before {
  content: "⌂ ";
  opacity: 0.75;
}

.quick-customer-detail-province::before {
  content: "▸ ";
  opacity: 0.75;
}

.quick-customer-detail-country::before {
  content: "Country: ";
  opacity: 0.85;
  font-size: 0.82em;
}

@media (max-width: 720px) {
  .quote-tax-province-grid {
    grid-template-columns: 1fr;
  }
}

/* App sign-in — split showcase + form */
body.luxe.app-login-page .app-login-shell {
  width: min(var(--page-width), calc(100% - 2 * var(--page-edge)));
  margin: 28px auto 56px;
  padding: 0 4px;
  box-sizing: border-box;
}

.app-login-split {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(300px, 0.92fr);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.45);
  min-height: min(72vh, 620px);
}

.app-login-showcase {
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 36px;
}

.app-login-showcase-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.96), rgba(30, 27, 75, 0.9) 42%, rgba(15, 23, 42, 0.94));
}

.app-login-showcase-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 28%, rgba(56, 189, 248, 0.38), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 72%, rgba(167, 139, 250, 0.28), transparent 50%);
}

.app-login-showcase-inner {
  position: relative;
  z-index: 1;
}

.app-login-showcase h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.2;
}

.app-login-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.app-login-points li {
  position: relative;
  padding-left: 1.25em;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.app-login-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

.app-login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 28px;
}

.app-login-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-login-stats strong {
  font-size: 1.45rem;
  color: #7dd3fc;
  line-height: 1.1;
}

.app-login-stats span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.app-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px 36px;
  background: rgba(15, 23, 42, 0.94);
}

.app-login-panel > .block-hero-head {
  margin: -32px -36px 22px;
  border-radius: 0;
}

.app-login-panel-head h2,
.app-login-panel .block-hero-head h2 {
  margin: 6px 0 8px;
  font-size: 1.45rem;
}

/* Signed-in dashboard — app login & team (balanced split) */
.session-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.4);
  background: rgba(15, 23, 42, 0.65);
}

.app-login-authed-split {
  min-height: min(62vh, 480px);
}

.session-split-col {
  display: grid;
  grid-template-rows: 148px 1fr;
  min-height: 0;
}

.session-split-col--accent {
  background: rgba(15, 23, 42, 0.5);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.session-split-col--actions {
  background: rgba(15, 23, 42, 0.82);
}

.session-split-hero {
  margin: 0;
  padding: 22px 24px 18px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  box-sizing: border-box;
}

.session-split-hero .block-hero-head-inner {
  width: 100%;
}

.session-split-title {
  margin: 6px 0 6px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-word;
}

.session-split-lead {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #94a3b8;
}

.session-split-body {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.session-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.session-checklist li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.session-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

.session-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.session-mini-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.35);
}

.session-mini-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.session-mini-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #94a3b8;
}

.session-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.session-action-primary {
  grid-column: 1 / -1;
}

.session-action-switch {
  grid-column: 1 / -1;
  justify-self: start;
}

.session-footnote {
  margin: 0;
  font-size: 0.84rem;
}

.session-footnote.success {
  color: #5eead4;
}

.team-session-authed-split {
  margin-top: 14px;
}

.quote-sidebar-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.quote-sidebar-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.quote-sidebar-card-body {
  display: grid;
  gap: 10px;
}

.quote-sidebar-card-body.app-form label {
  margin: 0;
}

.quote-sidebar-card--totals.totals-preview {
  padding: 12px 14px;
}

.totals-preview-lines {
  display: grid;
  gap: 8px;
}

.create-hero-tier1-bottom {
  margin-top: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.create-hero-tier1-bottom .tier1-panel {
  margin: 0;
  padding: 12px 14px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.team-session-intro .block-hero-head {
  margin: 0;
  border-radius: 0;
}

.outcome-reasons-fieldset:not(.hidden) + .quote-response-actions #decline-start-btn {
  display: none;
}

@media (max-width: 900px) {
  .app-login-split,
  .platform-login-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-login-showcase,
  .platform-login-showcase {
    padding: 28px 24px;
  }

  .app-login-panel,
  .platform-login-panel {
    padding: 28px 24px 32px;
  }

  .app-login-panel > .block-hero-head,
  .platform-login-panel > .block-hero-head {
    margin: -28px -24px 20px;
  }

  .session-split {
    grid-template-columns: 1fr;
  }

  .session-split-col {
    grid-template-rows: auto 1fr;
  }

  .session-split-col--accent {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .session-split-hero {
    min-height: 0;
  }

  .session-mini-cards {
    grid-template-columns: 1fr;
  }

  .quote-head-field--template,
  .quote-head-field--title,
  .quote-head-field--mode,
  .quote-slim-field--trade,
  .quote-slim-field--scope,
  .quote-slim-field--expiry {
    flex: 1 1 100%;
    max-width: none;
  }

  .quote-card-details {
    grid-template-columns: 1fr;
  }
}

html[data-pd-theme="light"] body.luxe .quick-customer-details {
  background: rgba(224, 242, 254, 0.65);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .quick-customer-manual {
  background: rgba(224, 242, 254, 0.55);
  border-color: rgba(14, 165, 233, 0.35);
}

html[data-pd-theme="light"] body.luxe .quick-customer-manual-hint {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .quote-clarity-banner.is-warn {
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(217, 119, 6, 0.5);
}

html[data-pd-theme="light"] body.luxe .quote-clarity-banner.is-warn strong {
  color: #92400e;
}

html[data-pd-theme="light"] body.luxe .create-sub-hero--tax {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .block-hero-head .eyebrow {
  color: #b45309;
}

html[data-pd-theme="light"] body.luxe .customer-modal-card {
  background: #fff;
}

html[data-pd-theme="light"] body.luxe .app-login-panel {
  background: rgba(255, 255, 255, 0.98);
}

html[data-pd-theme="light"] body.luxe .quote-card-details {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .quote-card-detail-value {
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .quote-sidebar-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .create-hero-tier1-bottom {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(100, 116, 139, 0.28);
}

html[data-pd-theme="light"] body.luxe .session-split {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .session-split-col--accent {
  background: rgba(248, 250, 252, 0.98);
  border-right-color: rgba(100, 116, 139, 0.2);
}

html[data-pd-theme="light"] body.luxe .session-split-col--actions {
  background: rgba(255, 255, 255, 0.98);
}

html[data-pd-theme="light"] body.luxe .session-split-hero {
  border-bottom-color: rgba(100, 116, 139, 0.18);
}

html[data-pd-theme="light"] body.luxe .session-split .block-hero-head--violet .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(139, 92, 246, 0.14), rgba(99, 102, 241, 0.08) 50%, rgba(248, 250, 252, 0.96));
}

html[data-pd-theme="light"] body.luxe .session-split .block-hero-head--teal .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(20, 184, 166, 0.16), rgba(14, 165, 233, 0.1) 50%, rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .session-split-title,
html[data-pd-theme="light"] body.luxe .session-split .block-hero-head h2 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .session-split-lead,
html[data-pd-theme="light"] body.luxe .session-checklist li,
html[data-pd-theme="light"] body.luxe .session-mini-card p {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .session-checklist li::before {
  color: #0891b2;
}

html[data-pd-theme="light"] body.luxe .session-mini-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.22);
}

html[data-pd-theme="light"] body.luxe .session-mini-card-label {
  color: #0e7490;
}

html[data-pd-theme="light"] body.luxe .session-split .btn-ghost {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
  color: #334155;
}

html[data-pd-theme="light"] body.luxe .session-split .btn-ghost:hover {
  background: #fff;
  border-color: rgba(14, 165, 233, 0.35);
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .app-login-split {
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-pd-theme="light"] body.luxe .app-login-showcase-bg {
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.98), rgba(237, 233, 254, 0.92) 42%, rgba(248, 250, 252, 0.98));
}

html[data-pd-theme="light"] body.luxe .app-login-showcase-bg::after {
  background:
    radial-gradient(ellipse 80% 60% at 18% 28%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 72%, rgba(167, 139, 250, 0.16), transparent 50%);
}

html[data-pd-theme="light"] body.luxe .app-login-showcase h1 {
  color: #0f172a;
}

html[data-pd-theme="light"] body.luxe .app-login-points li {
  color: #475569;
}

html[data-pd-theme="light"] body.luxe .app-login-stats strong {
  color: #0369a1;
}

html[data-pd-theme="light"] body.luxe .app-login-stats span {
  color: #64748b;
}

html[data-pd-theme="light"] body.luxe .app-login-panel .block-hero-head--cyan .block-hero-head-bg {
  background: linear-gradient(125deg, rgba(6, 182, 212, 0.16), rgba(37, 99, 235, 0.1) 48%, rgba(255, 255, 255, 0.98));
}

html[data-pd-theme="light"] body.luxe .quote-builder-compact {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(100, 116, 139, 0.28);
}

/* Right-click deterrent — tiny crack at cursor (~1.5in, ~1s) */
.pd-crack-overlay {
  position: fixed;
  width: 1.5in;
  height: 1.5in;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 2147483646;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: 4px;
  transition: opacity 0.06s ease-out;
}

.pd-crack-overlay.is-active {
  opacity: 1;
}

.pd-crack-overlay.is-fade {
  opacity: 0;
  transition: opacity 0.16s ease-in;
}

.pd-crack-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 72%
  );
  opacity: 0.9;
}

.pd-crack-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pd-crack-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(15, 23, 42, 0.65));
  animation: pd-crack-draw 0.2s ease-out forwards;
}

html[data-pd-theme="light"] .pd-crack-lines {
  stroke: rgba(15, 23, 42, 0.88);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

html[data-pd-theme="light"] .pd-crack-flash {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(15, 23, 42, 0.14) 0%,
    rgba(15, 23, 42, 0.05) 42%,
    transparent 74%
  );
}

@keyframes pd-crack-draw {
  from {
    stroke-dasharray: 1 400;
    stroke-dashoffset: 0;
    opacity: 0.25;
  }
  to {
    stroke-dasharray: 400 400;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-crack-lines {
    animation: none;
  }
}
