/* Website onboarding pages for the Sales Chrome extension. Extracted from design PHP. */

/* ---- onboarding-setup.php ---- */

/* Onboarding setup screen. Theme colors, font, and buttons inherit from base.css. */
.onboarding-setup {
  --setup-accent: var(--accent);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.btn-crm{text-decoration: none;}
.onboarding-setup__topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.25fr) minmax(100px, 1fr);
  align-items: start;
  gap: var(--sp-5);
  padding: var(--sp-4) clamp(20px, 2.3vw, 44px) 0;
}
.onboarding-setup__brand {
  padding-top: 2px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.onboarding-setup__step-count {
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.onboarding-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
}
.onboarding-progress::before,
.onboarding-progress__line {
  content: "";
  position: absolute;
  top: 13px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border-strong);
}
.onboarding-progress__line {
  right: 50%;
  background: var(--setup-accent);
}
.onboarding-progress__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.onboarding-progress__marker {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-contrast);
}
.onboarding-progress__step.is-complete .onboarding-progress__marker {
  border-color: var(--setup-accent);
  background: var(--setup-accent);
  color: #fff;
}
.onboarding-progress__step.is-current { color: var(--text); }
.onboarding-progress__step.is-current .onboarding-progress__marker {
  border-color: var(--setup-accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  width: min(100% - 64px, 1450px);
  margin: clamp(50px, 8vh, 104px) auto 0;
  padding-bottom: var(--sp-12);
}
.onboarding-hero__content { min-width: 0; padding-left: clamp(0px, 1.2vw, 18px); }
.onboarding-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--setup-accent) 20%, transparent);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--setup-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.onboarding-hero__eyebrow-icon { font-size: 17px; line-height: 1; }
.onboarding-hero__title {
  max-width: 720px;
  margin: var(--sp-5) 0 var(--sp-3);
  color: var(--text);
  font-size: clamp(34px, 3.5vw, 60px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.13;
}
.onboarding-hero__title span { display: block; color: var(--setup-accent); }
.onboarding-hero__description {
  max-width: 520px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.65;
}
.onboarding-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.onboarding-hero__login { min-width: 176px; gap: 20px; }
.onboarding-hero__login-arrow { font-size: 20px; line-height: 1; }
.onboarding-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 26px);
  margin-top: clamp(42px, 6vh, 72px);
}
.onboarding-feature { display: flex; align-items: center; gap: 11px; min-width: 0; }
.onboarding-feature__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--brand);
}
.onboarding-feature__icon--orange { background: var(--accent-soft); color: var(--setup-accent); }
.onboarding-feature__icon--teal { background: var(--teal-bg); color: var(--teal); }
.onboarding-feature__icon--blue { background: var(--brand-soft); color: var(--brand); }
.onboarding-feature__icon svg { width: 22px; height: 22px; }
.onboarding-feature__copy { min-width: 0; }
.onboarding-feature__title { color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.4; }
.onboarding-feature__text { margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.onboarding-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
}
.onboarding-hero__globe {
  width: min(100%, 680px);
  max-height: 590px;
  object-fit: contain;
  object-position: center;
}
.onboarding-hero__visual-placeholder {
  display: none;
  width: min(100%, 600px);
  aspect-ratio: 1 / 1;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
  padding: var(--sp-6);
}
@media (max-width: 1100px) {
  .onboarding-hero { width: min(100% - 48px, 900px); gap: var(--sp-8); margin-top: clamp(44px, 7vh, 72px); }
  .onboarding-hero__title { font-size: clamp(34px, 4.2vw, 48px); }
  .onboarding-hero__features { grid-template-columns: 1fr; gap: var(--sp-3); margin-top: var(--sp-8); }
  .onboarding-feature__icon { flex-basis: 42px; width: 42px; height: 42px; }
  .onboarding-hero{grid-template-columns:1fr;}
}
@media (max-width: 760px) {
  .onboarding-setup__topbar { grid-template-columns: 1fr auto; align-items: center; padding: var(--sp-4); }
  .onboarding-setup__brand { font-size: 14px; }
  .onboarding-setup__step-count { font-size: 12px; }
  .onboarding-progress { grid-column: 1 / -1; grid-row: 2; width: min(100%, 520px); margin: var(--sp-3) auto 0; }
  .onboarding-hero { grid-template-columns: 1fr; width: min(100% - 40px, 560px); margin-top: var(--sp-8); gap: var(--sp-6); }
  .onboarding-hero__content { padding-left: 0; }
  .onboarding-hero__title { font-size: clamp(34px, 8vw, 48px); }
  .onboarding-hero__description { font-size: 15px; }
  .onboarding-hero__visual { grid-row: 1; }
  .onboarding-hero__globe { width: min(100%, 390px); max-height: 340px; }
  .onboarding-hero__content { grid-row: 2; }
  .onboarding-hero__features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-8); }
  .onboarding-feature { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .onboarding-feature__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .onboarding-feature__title { font-size: 11px; }
  .onboarding-feature__text { font-size: 10px; }
}
@media (max-width: 420px) {
  .onboarding-hero { width: calc(100% - 32px); }
  .onboarding-hero__title { font-size: 34px; }
  .onboarding-hero__actions { align-items: stretch; flex-direction: column; }
  .onboarding-hero__actions .btn-crm { width: 100%; }
  .onboarding-hero__features { grid-template-columns: 1fr; }
  .onboarding-feature { flex-direction: row; align-items: center; }
  .onboarding-feature__copy { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-setup *, .onboarding-setup *::before, .onboarding-setup *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Extension notification: below the stepper so it does not cover step labels (QA B20). */
.extension-notification {
  position: fixed;
  z-index: 10000;
  top: auto;
  bottom: 16px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg, 0 8px 28px rgba(16, 24, 40, .18));
  animation: extension-notification-in .22s ease-out both;
}
.extension-notification__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 20px;
}
.extension-notification__logo {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.extension-notification__title {
  margin: 1px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.extension-notification__description {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}
.extension-notification__close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.extension-notification__close:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.extension-notification__close svg {
  display: block;
  width: 16px;
  height: 16px;
}
.extension-notification.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
@keyframes extension-notification-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .extension-notification {
    top: auto;
    bottom: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .extension-notification { animation: none; }
  .extension-notification.is-hiding { transition: none; }
}


/* ---- onboarding-complete.php ---- */


/* Uses the existing CRM theme tokens.
   All artwork/icons are external SVG image assets. */

.sales-setup-complete {
  --setup-orange: var(--accent);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 34px) clamp(18px, 2.5vw, 40px) 36px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}


.setup-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 15px;
  border-radius: var(--radius-pill, 999px);
  background: var(--brand-soft, var(--surface-3));
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.setup-success-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-contrast, #fff);
}

.setup-success-pill__icon svg {
  display: block;
  width: 12px;
  height: 12px;
}


.sales-setup-complete,
.sales-setup-complete * {
  box-sizing: border-box;
}

.sales-setup-complete::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16%;
  bottom: -12%;
  left: 48.5%;
  width: 62%;
  border-radius: 48% 0 0 48%;
  background: var(--surface-2);
  opacity: 0.78;
  pointer-events: none;
}

/* Top navigation and progress tracker */

.setup-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.3fr) minmax(100px, 1fr);
  align-items: start;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.setup-brand {
  padding-top: 2px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.setup-step-count {
  justify-self: end;
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.setup-progress {
  width: 100%;
  max-width: 540px;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  margin-top: -3px;
}

.setup-progress::before,
.setup-progress__line {
  content: "";
  position: absolute;
  top: 11px;
  left: 25%;
  right: 25%;
  height: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}

.setup-progress__line {
  right: 25%;
  background: var(--accent);
}

.setup-progress__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

.setup-progress__node {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
}

.setup-progress__node img {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.setup-progress__step.is-complete .setup-progress__node {
  border-color: var(--accent);
  background: var(--accent);
}

.setup-progress__step.is-current {
  color: var(--text);
}

/* Main content layout */

.setup-main {
  width: 100%;
  max-width: 1440px;
  margin: clamp(28px, 5.2vh, 52px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

/* Welcome section */

.setup-welcome {
  min-width: 0;
  position: relative;
  padding: 0 0 12px;
}

.setup-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 15px;
  border-radius: var(--radius-pill, 999px);
  background: var(--brand-soft, var(--surface-3));
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.setup-success-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.setup-welcome h1 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.setup-welcome h1 span {
  display: block;
  color: var(--accent);
}

.setup-welcome__copy {
  max-width: 440px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
}

/* Illustrations */

.setup-laptop-art {
  display: block;
  width: min(100%, 500px);
  height: clamp(170px, 24vw, 270px);
  margin: clamp(18px, 2.4vw, 34px) 0 0 -8px;
  object-fit: contain;
  object-position: left center;
}

.setup-paper-plane {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 1%;
  width: clamp(50px, 7vw, 92px);
  height: clamp(50px, 7vw, 92px);
  object-fit: contain;
  pointer-events: none;
}

/* Feature cards */

.setup-feature-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.35vw, 20px);
}

.setup-feature-card {
  display: grid;
  grid-template-columns: minmax(135px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  min-height: clamp(205px, 18vw, 270px);
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 20px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.setup-feature-card--gmail {
  background: color-mix(
    in srgb,
    var(--surface) 92%,
    var(--accent) 8%
  );
}

.setup-feature-card--everywhere {
  background: color-mix(
    in srgb,
    var(--surface) 92%,
    #16b8a6 8%
  );
}

.setup-feature-card__art {
  display: block;
  width: 100%;
  max-width: 225px;
  height: clamp(130px, 14vw, 190px);
  justify-self: center;
  object-fit: contain;
}

.setup-feature-card__content {
  min-width: 0;
}

.setup-feature-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
}

.setup-feature-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.setup-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 11px;
  border-radius: var(--radius-pill, 999px);
  background: var(--success, #087f5b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.setup-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
}

/* Feature action buttons */

.setup-feature-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 43px;
  margin-top: 17px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    border-color var(--fast, 0.15s) var(--ease, ease),
    background var(--fast, 0.15s) var(--ease, ease),
    color var(--fast, 0.15s) var(--ease, ease),
    transform var(--fast, 0.15s) var(--ease, ease);
}

.setup-feature-card__action img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.setup-feature-card__action:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.setup-feature-card__action--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--brand-contrast, #fff);
}

.setup-feature-card__action--primary:hover {
  border-color: var(--accent-hover, var(--accent));
  background: var(--accent-hover, var(--accent));
  color: var(--brand-contrast, #fff);
}

/* Large screens */

@media (min-width: 1600px) {
  .setup-main {
    margin-top: clamp(36px, 6vh, 70px);
  }
}

/* Tablet and compact desktop */

@media (max-width: 1100px) {
  .sales-setup-complete::before {
    left: 42%;
    width: 75%;
  }

  .setup-main {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
  }

  .setup-feature-card {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    padding: 18px;
  }

  .setup-feature-card__action {
    padding-inline: 14px;
  }

  .setup-paper-plane {
    right: -1%;
  }
}

/* Mobile and tablet */

@media (max-width: 767px) {
  .sales-setup-complete {
    padding: 18px 16px 28px;
  }

  .sales-setup-complete::before {
    top: 33%;
    left: 0;
    width: 100%;
    height: 70%;
    border-radius: 40% 40% 0 0;
  }

  .setup-topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .setup-brand {
    font-size: 13px;
  }

  .setup-step-count {
    font-size: 12px;
  }

  .setup-progress {
    grid-row: 2;
    grid-column: 1 / -1;
    max-width: 460px;
    margin: 4px auto 0;
  }

  .setup-main {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 34px;
  }

  .setup-welcome {
    padding-right: 42px;
  }

  .setup-welcome h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .setup-welcome__copy {
    max-width: 520px;
    font-size: 14px;
  }

  .setup-paper-plane {
    top: 0;
    right: -2px;
    width: 54px;
    height: 54px;
  }

  .setup-laptop-art {
    width: min(100%, 440px);
    height: clamp(150px, 48vw, 230px);
    margin: 12px auto 0;
    object-position: center;
  }

  .setup-feature-list {
    gap: 14px;
  }

  .setup-feature-card {
    min-height: 0;
    grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
    padding: 18px;
  }

  .setup-feature-card__art {
    height: clamp(112px, 28vw, 165px);
  }

  .setup-feature-card h2 {
    font-size: 16px;
  }

  .setup-feature-card p {
    font-size: 13px;
  }

  .setup-feature-card__action {
    min-height: 38px;
    margin-top: 12px;
    gap: 9px;
    font-size: 12px;
  }
}

/* Small mobile screens */

@media (max-width: 480px) {
  .setup-brand {
    white-space: normal;
    max-width: 150px;
  }

  .setup-welcome {
    padding-right: 0;
  }

  .setup-paper-plane {
    display: none;
  }

  .setup-feature-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .setup-feature-card__art {
    width: min(100%, 220px);
    height: 130px;
  }

  .setup-feature-card__content {
    width: 100%;
  }

  .setup-feature-card__title-row {
    margin-bottom: 7px;
  }

  .setup-feature-card__action {
    width: 100%;
  }
}

/* Accessibility: respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .setup-feature-card__action {
    transition: none;
  }
}


/* ---- setup-permissions.php ---- */

/* Popup-specific layout. Theme colors, typography and shared controls use CRM base tokens. */
.hsp-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(16,24,40,.48);font-family:var(--font);color:var(--text);overflow:hidden}
.hsp-modal{position:relative;width:min(100%,900px);max-height:min(92dvh,900px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow-lg)}
/* Keep the dialog frame and title area stationary; only the permission copy scrolls. */
.hsp-modal.is-consent{height:min(92dvh,900px);overflow:hidden;display:flex;flex-direction:column}
.hsp-modal.is-consent .hsp-main{display:none}
.hsp-modal.is-consent .hsp-consent.is-active{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;padding:26px clamp(18px,5vw,48px) 24px}
.hsp-modal.is-consent .hsp-consent h2{flex:0 0 auto;margin:0 38px 18px;padding:0;text-align:center}
.hsp-modal.is-consent .hsp-gmail-mark{flex:0 0 auto}
.hsp-modal.is-consent .hsp-provider,.hsp-modal.is-consent .hsp-email,.hsp-modal.is-consent .hsp-consent h3{flex:0 0 auto}
.hsp-modal.is-consent .hsp-consent-copy{flex:1 1 auto;min-height:100px;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.hsp-modal.is-consent .hsp-consent-actions{flex:0 0 auto;margin-top:18px;padding-top:0}
.hsp-close{position:absolute;top:20px;right:22px;z-index:2;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font:inherit;font-size:26px;line-height:1;cursor:pointer}.hsp-close:hover{background:var(--surface-hover);color:var(--text)}
.hsp-head{text-align:center;padding:0 28px 28px;border-bottom:1px solid var(--border)}
.hsp-hero-art{display:block;width:145px;height:118px;object-fit:contain;margin:-12px auto 12px}
.hsp-head h1{margin:0;color:var(--text);font-size:clamp(20px,2.1vw,26px);font-weight:600;line-height:1.35}
.hsp-body{padding:clamp(22px,4vw,44px) clamp(18px,5vw,64px) 32px;text-align:center}
.hsp-steps{max-width:660px;margin:0 auto 22px;display:grid;grid-template-columns:1fr 1fr 1fr;position:relative}
.hsp-steps:before{content:"";position:absolute;top:15px;left:16%;right:16%;height:2px;background:var(--border-strong)}
.hsp-step{position:relative;display:flex;align-items:center;flex-direction:column;gap:9px;color:var(--text-muted);font-size:13px}
.hsp-step__dot{width:30px;height:30px;border:2px solid var(--border-strong);border-radius:50%;background:var(--surface);display:grid;place-items:center;z-index:1}
.hsp-step.is-done .hsp-step__dot{border-color:var(--accent);background:var(--accent);color:#fff}.hsp-step.is-active .hsp-step__dot{border-color:var(--accent);background:var(--surface)}
.hsp-copy{margin:0 auto 8px;color:var(--text-muted);font-size:14px;line-height:1.6}.hsp-copy strong{color:var(--text);font-weight:600}
.hsp-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:720px;margin:26px auto 0;text-align:center}
.hsp-choice-grid:has(.hsp-choice:only-child){grid-template-columns:1fr;max-width:380px}
.hsp-choice{display:flex;flex-direction:column;align-items:center;min-height:250px;padding:22px 20px 20px;border:1px solid var(--border-strong);border-radius:var(--radius-xl);background:var(--surface);color:var(--text);cursor:pointer;transition:border-color .15s ease, box-shadow .15s ease}
.hsp-choice:hover{border-color:color-mix(in srgb, var(--accent) 55%, var(--border-strong))}
.hsp-choice.is-current{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent)}
.hsp-choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hsp-choice h2{margin:0 0 12px;font-size:21px;font-weight:600;line-height:1.3}.hsp-choice p{margin:0 0 16px;color:var(--text-muted);font-size:13px;line-height:1.55}.hsp-choice ul{list-style:disc;min-height:130px;align-self:stretch;margin:0 0 20px;padding-left:20px;text-align:left;color:var(--text-muted);font-size:14px;line-height:1.8}
.hsp-consent{display:none;padding:28px clamp(18px,5vw,48px) 32px;text-align:center}.hsp-consent.is-active{display:block}.hsp-main.is-hidden{display:none}
.hsp-consent h2{margin:0 0 18px;font-size:clamp(20px,2.3vw,28px);font-weight:500;line-height:1.35}.hsp-gmail-mark{width:87px;height:84px;object-fit:contain;display:block;margin:0 auto 6px}.hsp-provider{margin:0 0 22px;color:var(--text-muted);font-size:14px}.hsp-email{margin:0 0 26px;font-weight:600;color:var(--text);font-size:17px;overflow-wrap:anywhere}.hsp-consent h3{margin:0 0 8px;text-align:left;font-size:14px;font-weight:600}.hsp-consent-copy{height:auto;max-height:none;overflow:visible;border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 22px;text-align:left;color:var(--text-muted);font-size:14px;line-height:1.8}.hsp-consent-copy p{margin:0 0 14px}.hsp-consent-copy ul{padding-left:20px; list-style: disc;}.hsp-consent-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}
@media(max-width:600px){.hsp-overlay{padding:8px;place-items:center}.hsp-modal{max-height:96dvh;overflow-y:auto;border-radius:var(--radius-lg)}.hsp-modal.is-consent{height:96dvh;overflow:hidden}.hsp-head{padding:0 18px 22px}.hsp-hero-art{width:112px;height:90px}.hsp-choice-grid{grid-template-columns:1fr}.hsp-choice{min-height:0}.hsp-steps{margin-bottom:18px}.hsp-step{font-size:11px}.hsp-consent-copy{height:auto;max-height:none;overflow:visible;padding:14px}.hsp-modal.is-consent .hsp-consent-copy{min-height:80px;overflow-y:auto}.hsp-close{top:10px;right:10px}.hsp-consent h2{margin-top: 15px;}.hsp-choice ul{list-style:disc;min-height:auto;}}

.btn-crm{text-decoration:none}

/* ---- account-connection.php ---- */

.hcp-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(16,24,40,.48);font-family:var(--font);color:var(--text)}.hcp-modal{position:relative;width:min(100%,900px);min-height:320px;max-height:94dvh;display:grid;place-items:center;padding:70px 28px 48px;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow-lg);text-align:center}.hcp-close{position:absolute;right:22px;top:18px;width:32px;height:32px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font:inherit;font-size:21px;cursor:pointer}.hcp-close:hover{background:var(--surface-hover)}.hcp-state{display:flex;align-items:center;flex-direction:column;gap:20px}.hcp-loader{display:block;width:42px;height:42px;object-fit:contain;animation:hcp-spin 1s linear infinite}.hcp-copy{margin:0;color:var(--text-muted);font-size:16px;line-height:1.5}.hcp-success-art{display:block;width:190px;height:190px;object-fit:contain}.hcp-success-title{margin:0;color:var(--text);font-size:22px;font-weight:600;line-height:1.45}.hcp-done{margin-top:8px}.hcp-hidden{display:none!important}@keyframes hcp-spin{to{transform:rotate(360deg)}}@media(max-width:560px){.hcp-modal{min-height:270px;padding:58px 20px 32px}.hcp-success-art{width:150px;height:150px}.hcp-success-title{font-size:18px}.hcp-copy{font-size:14px}}

/* ---- email-verification.php ---- */

.evp-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(16,24,40,.48);font-family:var(--font);color:var(--text)}.evp-modal{position:relative;width:min(100%,900px);min-height:300px;display:grid;place-items:center;padding:64px 24px 42px;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow-lg);text-align:center}.evp-close{position:absolute;right:22px;top:18px;width:32px;height:32px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font:inherit;font-size:21px;cursor:pointer}.evp-close:hover{background:var(--surface-hover)}.evp-state{display:flex;flex-direction:column;align-items:center;gap:20px}.evp-loader{width:42px;height:42px;object-fit:contain;animation:evp-spin 1s linear infinite}.evp-message{margin:0;color:var(--text-muted);font-size:16px;line-height:1.5}.evp-hidden{display:none!important}@keyframes evp-spin{to{transform:rotate(360deg)}}@media(max-width:560px){.evp-modal{min-height:260px}.evp-message{font-size:14px}}

/* ---- connection-success.php ---- */

.csp-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(16,24,40,.48);font-family:var(--font);color:var(--text)}.csp-modal{position:relative;width:min(100%,900px);min-height:420px;display:grid;place-items:center;padding:54px 24px 48px;border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow-lg);text-align:center}
.csp-close{position:absolute;right:22px;top:18px;width:32px;height:32px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font:inherit;font-size:21px;cursor:pointer}.csp-close:hover{background:var(--surface-hover)}.csp-content{display:flex;flex-direction:column;align-items:center;gap:20px}.csp-art{display:block;width:180px;height:145px;object-fit:contain}.csp-title{margin:0;color:var(--text);font-size:clamp(20px,2.2vw,26px);font-weight:600;line-height:1.4}.csp-title span{display:block}.csp-done{min-width:108px;margin-top:8px}.csp-consent-badge{margin:0;max-width:36rem;color:var(--text-muted);font-size:14px;line-height:1.45;text-align:center}.csp-consent-badge strong{color:var(--text)}@media(max-width:560px){.csp-modal{min-height:340px}.csp-art{width:145px;height:120px}.csp-title{font-size:19px}}
