/* Dispensary onboarding wizard — generated from the dashboard's onboarding page
   (shell + card styles). Plain CSS, no inline styles: see scripts/check-csp.mjs. */
/*
  Shared background/header/logo shell for every account screen (login, create
  account, forgot/reset password) and the onboarding wizard. Ported from
  AiAssistantPresentation's onboarding.html + css/auth-shell.css: blue header
  bar, centered Bamboo mark + eyebrow, blurred storefront photo under a navy
  gradient. Each page supplies its own card as the default slot — this
  component only owns what sits outside the form.
*/
/*
  Vue's scoped-style attribute is only ever added to elements THIS component
  renders — never to <html> — so a `:root { ... }` block here would compile to
  `[data-v-hash]:root`, a selector that can never match anything and silently
  drops every variable it defines (confirmed: the eyebrow/header/page colors
  below were rendering as unset/inherited, not lime/blue, until this was
  fixed). Declared on .ash-page instead — the actual scoped root — so the
  custom properties cascade to every descendant that reads them.
*/
.ash-page {
  --ash-blue: #4d76ec;
  --ash-lime: #c8f53a;
  --ash-page-bg: #101533;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ash-page-bg);
  position: relative;
  overflow: hidden;
}

.ash-bg,
.ash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.ash-bg {
  background-image: url("/assets/onboarding-bg.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(0.85);
  transform: scale(1.05);
}

.ash-overlay {
  background: linear-gradient(180deg, rgba(22, 30, 86, 0.78) 0%, rgba(16, 21, 51, 0.72) 100%);
}

.ash-header {
  position: relative;
  z-index: 1;
  background: var(--ash-blue);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
}

.ash-header-logo {
  display: block;
}

.ash-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 5vh, 48px) 16px clamp(32px, 6vh, 64px);
  box-sizing: border-box;
}

.ash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 4vh, 36px);
  text-align: center;
}

.ash-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.ash-brand-logo {
  display: block;
}

.ash-wordmark {
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.ash-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--ash-lime);
  text-transform: uppercase;
}

.ash-slot {
  width: 100%;
  box-sizing: border-box;
}

/*
  Vue's scoped-style attribute is only ever added to elements THIS component
  renders — never to <html> — so a `:root { ... }` block here compiles to
  `[data-v-hash]:root`, a selector that can never match anything and silently
  drops every variable it defines (same bug found in AuthShellLayout.vue's
  eyebrow/header colors). Declared on .su-card instead — the actual root of
  everything in this wizard — so the custom properties cascade to every
  descendant (stepper, panels, options, buttons) that reads them.
*/
.su-card {
  --su-ink: #1b1f4b;
  --su-blue: #4d76ec;
  --su-blue-hover: #3d63d4;
  --su-lime: #c8f53a;
  --su-lime-wash: #f7fce3;
  --su-muted: #7b819f;
  --su-muted-soft: #a0a6c2;
  --su-muted-blue: #6270a8;
  --su-muted-blue-soft: #8892c2;
  --su-border: #e3e6f0;
  --su-border-strong: #c9cddd;
  --su-field: #fafbfd;
  --su-divider: #eef0f6;
  --su-icon-wash: #eef1fd;
  --su-card-face: #fcfdff;
  --su-card-pad: clamp(20px, 4vw, 32px);
  /* Building/preview screens only (.ob-build/.ob-preview) — ported from
     AiAssistantPresentation/css/onboarding-result.css's own :root block,
     declared here for the same reason as the --su-* tokens above. */
  --ob-panel: #1a2662;
  --ob-bubble: #14205a;
  --ob-chat: #e7edfb;
  --ob-halo: #e8ecfb;
  --ob-track: #bccbf6;
  --ob-caller-border: #dfe4f2;
  --ob-avatar-caller: #4f5b88;

  width: 100%;
  background: var(--su-card-face);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: var(--su-card-pad);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--su-ink);
  font-family: Inter, sans-serif;
}

.su-card input,
.su-card textarea { font-family: inherit; }
.su-card input::placeholder,
.su-card textarea::placeholder { color: var(--su-muted-soft); }
.su-card input:focus,
.su-card textarea:focus {
  outline: none;
  border-color: var(--su-blue);
  background: #fff;
  box-shadow: 0 0 0 1px #4d76ec, 0 8px 20px -6px rgba(77, 118, 236, 0.4);
}

.su-stepper { position: relative; display: flex; align-items: center; gap: 12px; }
.su-steps { flex: 1; display: flex; align-items: center; }
.su-step-group { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.su-step-group:last-child { flex: 0 0 auto; }
.su-step-line { flex: 1; margin-right: 8px; height: 2px; background: var(--su-border); border-radius: 1px; }
.su-step-line.is-filled { background: var(--su-lime); }
.su-step {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-sizing: border-box; font-size: 12px; font-weight: 800; background: #fcfdff;
  color: var(--su-muted-soft); border: 2px solid var(--su-border); box-shadow: 0 5px 15px rgba(23, 44, 74, 0.08);
}
.su-step.is-active { color: var(--su-blue); border-color: var(--su-lime); }
.su-step.is-done { background: var(--su-lime); border-color: var(--su-lime); color: var(--su-blue); }

.su-heading { display: flex; flex-direction: column; gap: 4px; }
.su-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.su-preset-tag { flex-shrink: 0; border-radius: 999px; padding: 7px 12px; background: var(--su-lime); color: var(--su-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.su-title { margin: 0; font-family: Magra, serif; font-size: clamp(20px, 3vw, 24px); font-weight: 700; letter-spacing: -0.3px; }
.su-subtitle { margin: 0; font-size: 14px; color: var(--su-muted-blue); font-weight: 500; }
.su-divider { height: 1px; background: var(--su-divider); margin-left: calc(-1 * var(--su-card-pad)); margin-right: calc(-1 * var(--su-card-pad)); }

.su-panel { display: flex; flex-direction: column; }
.su-label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.su-input {
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  height: 46px; border: 1px solid var(--su-border); border-radius: 10px; padding: 0 14px; font-size: 14px;
  color: var(--su-ink); background: var(--su-field); width: 100%; box-sizing: border-box;
}
.su-dd { position: relative; }.su-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; font-family: inherit; font-weight: 500; }.su-dd-btn.is-placeholder { color: #9aa5bd; }.su-dd-btn.is-open { border-color: var(--su-blue); background: #fff; box-shadow: 0 0 0 1px #4d76ec, 0 8px 20px -6px rgba(77, 118, 236, 0.4); }.su-dd-chev { flex-shrink: 0; color: var(--su-muted-blue); transition: transform 0.15s; }.su-dd-btn.is-open .su-dd-chev { transform: rotate(180deg); }.su-dd-menu {  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;  background: #fff; border: 1px solid var(--su-border); border-radius: 12px;  box-shadow: 0 12px 32px rgba(27, 31, 75, 0.14);}.su-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--su-ink); cursor: pointer; }.su-dd-item:hover { background: var(--su-field); }.su-dd-item.is-on { background: var(--su-lime-wash); font-weight: 600; }
.su-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }@media (max-width: 380px) { .su-tiles { grid-template-columns: 1fr; } }
.su-phone-group { transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; display: flex; height: 46px; border: 1px solid var(--su-border); border-radius: 10px; background: var(--su-field); }
.su-phone-group > .su-pp { border-radius: 9px 0 0 9px; }
.su-phone-group > .su-pp .su-pp-btn { border-radius: 9px 0 0 9px; }
.su-phone-group:focus-within { border-color: var(--su-blue); background: #fff; box-shadow: 0 0 0 1px #4d76ec, 0 8px 20px -6px rgba(77, 118, 236, 0.4); }
.su-pp { position: relative; flex-shrink: 0; border-right: 1px solid var(--su-border); background: #f3f5fa; }
.su-pp-btn { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--su-ink); }
.su-pp-btn:hover, .su-pp-btn.is-open { background: #eaeef8; }
.su-pp-btn.is-open .su-dd-chev { transform: rotate(180deg); }
.su-pp-flag { font-size: 21px; line-height: 1; width: 26px; text-align: center; flex-shrink: 0; }
.su-pp-menu { width: 320px; max-width: calc(100vw - 48px); max-height: min(440px, 55vh); overflow-y: auto; }
.su-pp-menu .su-dd-item { justify-content: flex-start; }
.su-pp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-pp-dial { color: var(--su-muted-blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.su-phone-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 14px; color: var(--su-ink); outline: none; border-radius: 0 9px 9px 0; }
.su-card .su-phone-input:focus { box-shadow: none; border: 0; background: transparent; }
.su-consent { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--su-muted-blue); cursor: pointer; }
.su-consent input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; margin: 0; border: 1.5px solid var(--su-border-strong); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background 0.15s, border-color 0.15s; }
.su-consent input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.12s; }
.su-consent input:checked { background: var(--su-blue); border-color: var(--su-blue); }
.su-consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.su-consent input:focus-visible { outline: 2px solid var(--su-blue); outline-offset: 2px; }
.su-error { margin: 0; font-size: 13px; color: #d92d20; }
.su-textarea {
  resize: vertical; border: 1px solid var(--su-border); border-radius: 10px; padding: 12px 14px; font-size: 14px;
  line-height: 1.5; color: var(--su-ink); background: var(--su-field); width: 100%; box-sizing: border-box;
}
.su-group { display: flex; flex-direction: column; gap: 10px; }
.su-group-title { font-size: 14px; font-weight: 600; }

.su-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 10px; cursor: pointer;
  font-family: inherit; color: var(--su-ink); background: var(--su-field); border: 1.5px solid var(--su-border); box-sizing: border-box;
}
.su-option.is-on { background: var(--su-lime-wash); border-color: var(--su-lime); }
.su-option--check { height: 46px; padding: 0 14px; font-size: 14px; font-weight: 700; }
.su-option--row { padding: 12px 14px; }
.su-option--voice { align-items: flex-start; }
.su-option-icon {
  width: 24px; height: 24px; border-radius: 50%; background: var(--su-icon-wash); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--su-blue);
}
.su-option-label { flex: 1; font-family: Magra, serif; }
.su-checkbox {
  position: relative; width: 18px; height: 18px; border-radius: 4px; box-sizing: border-box; flex-shrink: 0;
  background: #fff; border: 2px solid var(--su-border-strong);
}
.su-checkbox svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; }
.su-option.is-on .su-checkbox { background: var(--su-blue); border-color: var(--su-blue); }
.su-option.is-on .su-checkbox svg { display: block; }
.su-radio { position: relative; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; flex-shrink: 0; border: 2px solid var(--su-border-strong); }
.su-option.is-on .su-radio { border-color: var(--su-blue); }
.su-radio-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.su-option.is-on .su-radio-dot { background: var(--su-blue); }
.su-option--voice .su-radio { margin-top: 2px; }
.su-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.su-option-name { font-size: 14px; font-weight: 700; font-family: Magra, serif; }
.su-option-hint { font-size: 12px; font-weight: 600; color: var(--su-blue); }
.su-voice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.su-voice-head { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.su-voice-name { font-weight: 800; font-family: Magra, serif; }
.su-voice-sep { color: var(--su-muted-soft); font-weight: 600; }
.su-voice-desc { font-weight: 600; color: var(--su-muted-blue); font-size: 13px; }
.su-voice-sample { font-size: 12px; font-weight: 600; color: var(--su-muted-blue-soft); font-style: italic; }
.su-voice-row { position: relative; }
.su-voice-row .su-option--voice { padding-right: 62px; }
.su-voice-play {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--su-blue); background: var(--su-field); color: var(--su-blue); cursor: pointer; padding: 0;
}
.su-voice-play:hover, .su-voice-play.is-playing { background: var(--su-blue); color: #fff; }

.su-phone { position: relative; }
.su-phone-icon { position: absolute; left: 14px; top: 15px; color: var(--su-blue); }
.su-input--phone { padding: 0 14px 0 40px; }

.su-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -5px; }
.su-spacer { flex: 1; }
.su-back { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--su-blue); padding: 8px 4px; }
.su-required { color: #d92d20; }
.su-next {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px;
  border: 0; cursor: pointer; background: var(--su-blue); color: #fff; font-family: inherit; font-size: 16px; font-weight: 700;
  transition: filter 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.su-next:hover:not(:disabled) { filter: brightness(1.06); }
.su-next:active:not(:disabled) { filter: brightness(0.92); transform: scale(0.98); }
.su-next:disabled { opacity: 0.6; cursor: default; }

.su-error { margin: 0; font-size: 13px; color: #d92d20; }

/* --------------------------------------------------------------------------
   Building screen (.ob-build) — ported from AiAssistantPresentation/css/
   onboarding-result.css
   -------------------------------------------------------------------------- */

.ob-build { align-items: center; text-align: center; gap: 18px; padding-top: clamp(30px, 6vw, 44px); padding-bottom: clamp(30px, 6vw, 44px); }
.ob-spinner { width: 110px; height: 110px; animation: ob-spin 1100ms linear infinite; }
.ob-spinner-halo { fill: var(--ob-halo); }
.ob-spinner-track { fill: none; stroke: var(--ob-track); stroke-width: 10; }
.ob-spinner-arc { fill: none; stroke: var(--su-blue); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 82 271; }
@keyframes ob-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .ob-spinner { animation-duration: 3.5s; } }
.ob-build-title { margin: 0; max-width: 22ch; font-family: Magra, serif; font-size: clamp(22px, 3.4vw, 27px); font-weight: 700; line-height: 1.25; letter-spacing: -0.4px; color: var(--su-blue); }
.ob-build-title-tail { white-space: nowrap; }
.ob-build-sub { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--su-muted-blue); }
.ob-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.ob-tag { border-radius: 999px; padding: 8px 12px; background: var(--su-lime); color: var(--su-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Preview screen (.ob-preview) — dark header, live chat transcript, footer.
   Also ported from onboarding-result.css; .ob-chips/.ob-chat-limit-note/
   .ob-error-note are new (the mockup's transcript was static, no interaction
   at all — this one picks from a fixed set of questions, no free-text input).
   -------------------------------------------------------------------------- */

.ob-preview { padding: 0; gap: 0; overflow: hidden; }
.ob-head { display: flex; align-items: center; gap: 14px; padding: 17px var(--su-card-pad); background: var(--ob-panel); }
.ob-head-text { flex: 1; min-width: 0; }
.ob-head-title { margin: 0; font-family: Magra, serif; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: #fff; }
.ob-head-sub { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.62); }
.ob-badge { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; border-radius: 999px; padding: 7px 13px; background: var(--su-lime); color: var(--su-ink); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.ob-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--su-blue); }

.ob-chat { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px var(--su-card-pad); background: var(--ob-chat); list-style: none; max-height: 340px; overflow-y: auto; }
.ob-turn { display: flex; align-items: flex-end; gap: 10px; }
.ob-turn--caller { flex-direction: row-reverse; }
.ob-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.ob-avatar--caller { background: var(--ob-avatar-caller); }
.ob-avatar--ai { background: var(--su-blue); }
.ob-bubble { max-width: 78%; border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 500; line-height: 20px; }
.ob-bubble p { margin: 0; }
.ob-bubble--caller { background: #fff; color: var(--su-ink); border: 1px solid var(--ob-caller-border); border-radius: 16px 16px 4px 16px; }
.ob-bubble--ai { background: var(--ob-bubble); color: #fff; border-radius: 16px 16px 16px 4px; }
.ob-thinking { opacity: 0.7; font-style: italic; }

.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px var(--su-card-pad); background: var(--su-card-face); }
.ob-chip {
  border: 1.5px solid var(--su-border); color: var(--su-muted-blue); border-radius: 999px; padding: 9px 15px;
  font-size: 13px; font-weight: 600; cursor: pointer; background: var(--su-field); font-family: inherit;
}
.ob-chip:hover:not(:disabled) { border-color: var(--su-blue); color: var(--su-blue); }
.ob-chip:disabled { cursor: default; opacity: 0.55; }
.ob-chip.is-asked { border-color: var(--su-lime); background: var(--su-lime-wash); color: var(--su-ink); opacity: 1; }

.ob-chat-limit-note,
.ob-error-note { margin: 0; padding: 14px var(--su-card-pad); font-size: 13px; font-weight: 600; background: var(--su-card-face); border-top: 1px solid var(--su-divider); }
.ob-chat-limit-note { color: var(--su-muted-blue); }
.ob-error-note { color: #d92d20; }

.ob-foot { display: flex; padding: 18px var(--su-card-pad); background: var(--su-card-face); }
.ob-foot-cta { width: 100%; }

@media (max-width: 440px) {
  .ob-bubble { max-width: 86%; }
  .ob-head { gap: 10px; }
  .ob-head-title { font-size: 15px; }
}
@media (max-width: 400px) {
  .ob-head { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Stats strip (.ob-stats) — a sibling of .su-card, not a descendant, so it
   cannot see the --su-* / --ob-* custom properties declared on .su-card (those
   only cascade to descendants); literal color values instead, matching
   --su-blue/--su-lime.
   -------------------------------------------------------------------------- */

.ob-stats {
  width: 100%; max-width: 560px; box-sizing: border-box; margin-top: 20px; padding: 20px 0; border-radius: 14px;
  background: #4d76ec; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); display: grid; grid-template-columns: repeat(3, 1fr);
}
.ob-stat { padding: 0 10px; text-align: center; }
.ob-stat-value { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; color: #fff; font-family: Inter, sans-serif; }
.ob-stat-unit { color: #c8f53a; }
.ob-stat-label { margin: 4px 0 0; font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.3; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); font-family: Inter, sans-serif; }
@media (max-width: 440px) {
  .ob-stat { padding: 0 6px; }
  .ob-stat-value { font-size: 18px; }
  .ob-stat-label { font-size: 9px; letter-spacing: 0.4px; }
}

/* Panel gaps that the Vue template set with inline style="" (blocked by CSP here). */
.su-panel--18 { gap: 18px; }
.su-panel--20 { gap: 20px; }
.su-panel--22 { gap: 22px; }
.su-pp-menu[hidden] { display: none; }
.su-page-slot { width: 100%; max-width: 560px; box-sizing: border-box; }
.su-page-slot [hidden] { display: none !important; }

/* Minimal reset (the dashboard gets this from Tailwind's preflight): full-bleed header, border-box sizing. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; }
