/* "Find your EZPZ setup" questionnaire — one component for the homepage
   modal, the /setup/ signup step and the dashboard modal. Everything is
   scoped under .ezq so it can't collide with the host page's CSS; tokens
   follow the onboarding shell (onboarding.css) and dashboard home. */

.ezq {
  /* The public site's palette (theme3 homepage): deep purple, violet, lavender. */
  --ezq-bg: #0c0520;
  --ezq-surface: rgba(148, 103, 254, .05);
  --ezq-surface-2: rgba(148, 103, 254, .1);
  --ezq-border: rgba(148, 103, 254, .16);
  --ezq-border-strong: rgba(148, 103, 254, .32);
  --ezq-text: #f3eeff;
  --ezq-muted: #b9aee0;
  --ezq-faint: #8475b3;
  --ezq-primary: #9467fe;
  --ezq-primary-2: #7c4dde;
  --ezq-primary-soft: rgba(148, 103, 254, .15);
  --ezq-accent: #c4a3ff;
  --ezq-green: #22c55e;
  --ezq-amber: #f59e0b;
  --ezq-radius: 16px;
  --ezq-ease: cubic-bezier(.2, .8, .2, 1);
  --ezq-font: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ezq-font-title: 'Poppins', 'Inter', system-ui, sans-serif;
  --ezq-title-grad: linear-gradient(140deg, #fff 0%, #e8d8ff 45%, #c4a3ff 90%);

  font-family: var(--ezq-font);
  color: var(--ezq-text);
  line-height: 1.5;
  text-align: left;
}
.ezq *, .ezq *::before, .ezq *::after { box-sizing: border-box; }
.ezq [hidden] { display: none !important; }
.ezq button { font-family: inherit; }

/* ── Modal shell ─────────────────────────────────────────────────────── */
.ezq-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 2, 22, .74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s var(--ezq-ease);
}
.ezq-overlay.is-open { opacity: 1; }
.ezq-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(148, 103, 254, .16), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(124, 77, 222, .12), transparent 60%),
    var(--ezq-bg);
  border: 1px solid var(--ezq-border);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(148, 103, 254, .08) inset;
  transform: translateY(12px) scale(.98);
  transition: transform .3s var(--ezq-ease);
  overflow: hidden;
}
.ezq-overlay.is-open .ezq-dialog { transform: none; }
/* Page mode (/setup/): the same card, in the page flow instead of a modal. */
.ezq-page .ezq-overlay {
  position: static; display: block; padding: 0; opacity: 1;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ezq-page .ezq-dialog { transform: none; max-height: none; margin: 0 auto; }

/* ── Header: progress + close ────────────────────────────────────────── */
.ezq-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px 0;
}
.ezq-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ezq-muted); white-space: nowrap;
}
.ezq-brand i { color: var(--ezq-primary); font-size: 14px; }
.ezq-progress {
  flex: 1; height: 4px; border-radius: 99px; background: var(--ezq-surface-2); overflow: hidden;
}
.ezq-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ezq-primary-2), var(--ezq-primary), #c4a3ff);
  border-radius: inherit; transition: width .45s var(--ezq-ease);
}
.ezq-icon-btn {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--ezq-muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ezq-icon-btn:hover { background: var(--ezq-surface-2); color: var(--ezq-text); }
.ezq-icon-btn:focus-visible { outline: 2px solid var(--ezq-primary); outline-offset: 2px; }

/* ── Body / screens ──────────────────────────────────────────────────── */
.ezq-body { flex: 1; overflow-y: auto; padding: 26px 34px 8px; }
.ezq-screen { animation: ezq-in .35s var(--ezq-ease); }
.ezq-screen.is-back { animation-name: ezq-in-back; }
@keyframes ezq-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes ezq-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.ezq-step { font-size: 12.5px; font-weight: 600; color: var(--ezq-primary); letter-spacing: .04em; margin: 0 0 8px; }
.ezq-title {
  font-family: var(--ezq-font-title); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px;
  color: #fff; background: var(--ezq-title-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ezq-sub { font-size: 15px; color: var(--ezq-muted); margin: 0 0 22px; }

.ezq-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ezq-options.is-list { grid-template-columns: 1fr; }
.ezq-option {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 14px;
  text-align: left; color: var(--ezq-text);
  background: var(--ezq-surface);
  border: 1px solid var(--ezq-border);
  border-radius: 14px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s var(--ezq-ease), box-shadow .15s;
}
.ezq-option:hover { border-color: var(--ezq-border-strong); background: var(--ezq-surface-2); transform: translateY(-1px); }
.ezq-option:focus-visible { outline: 2px solid var(--ezq-primary); outline-offset: 2px; }
.ezq-option[aria-pressed="true"] {
  border-color: var(--ezq-primary);
  background: var(--ezq-primary-soft);
  box-shadow: 0 0 0 1px var(--ezq-primary) inset, 0 8px 30px rgba(148, 103, 254, .18);
}
.ezq-option-icon {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 18px;
  background: rgba(148, 103, 254, .12); color: #c4a3ff;
}
.ezq-option[aria-pressed="true"] .ezq-option-icon { background: var(--ezq-primary); color: #fff; }
.ezq-option-text { display: flex; flex-direction: column; min-width: 0; }
.ezq-option-label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ezq-option-hint { font-size: 12.5px; color: var(--ezq-muted); line-height: 1.35; }
.ezq-option-key {
  margin-left: auto; flex: none;
  font-size: 11px; font-weight: 600; color: var(--ezq-faint);
  border: 1px solid var(--ezq-border); border-radius: 6px; padding: 1px 6px;
}
.ezq-option[aria-pressed="true"] .ezq-option-key { color: #fff; border-color: rgba(255,255,255,.4); }
.ezq-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px;
  background: rgba(245, 158, 11, .14); color: var(--ezq-amber);
}
.ezq-option .ezq-badge { margin-left: 6px; vertical-align: 1px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ezq-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 34px 22px;
}
.ezq-foot-note { font-size: 12.5px; color: var(--ezq-faint); margin-right: auto; }
.ezq-foot-note.is-error { color: #fda4af; }
.ezq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font-size: 15px; font-weight: 600; text-decoration: none !important;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ezq-ease), box-shadow .15s, background .15s, opacity .15s;
}
.ezq-btn:focus-visible { outline: 2px solid var(--ezq-primary); outline-offset: 2px; }
.ezq-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--ezq-primary), var(--ezq-primary-2));
  box-shadow: 0 4px 14px rgba(148, 103, 254, .4);
}
.ezq-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(148, 103, 254, .5); }
.ezq-btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.ezq-btn-ghost { color: var(--ezq-muted) !important; background: transparent; }
.ezq-btn-ghost:hover { color: var(--ezq-text) !important; background: var(--ezq-surface-2); }
.ezq-btn-outline { color: var(--ezq-text) !important; border-color: var(--ezq-border-strong); background: transparent; }
.ezq-btn-outline:hover { background: var(--ezq-surface-2); }
.ezq-kbd { font-size: 11px; opacity: .7; font-weight: 500; }

/* ── Building screen ─────────────────────────────────────────────────── */
.ezq-building { text-align: center; padding: 40px 0 30px; }
.ezq-orb {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ezq-primary), #c4a3ff, var(--ezq-accent), var(--ezq-primary));
  animation: ezq-spin 1.6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
          mask: radial-gradient(circle, transparent 54%, #000 56%);
}
@keyframes ezq-spin { to { transform: rotate(360deg); } }
.ezq-checks { list-style: none; padding: 0; margin: 22px auto 0; max-width: 320px; text-align: left; }
.ezq-checks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ezq-faint); padding: 6px 0;
  transition: color .3s;
}
.ezq-checks li i { font-size: 16px; }
.ezq-checks li.is-done { color: var(--ezq-text); }
.ezq-checks li.is-done i { color: var(--ezq-green); }

/* ── Result ──────────────────────────────────────────────────────────── */
.ezq-ai-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #c4a3ff;
  background: var(--ezq-primary-soft); border: 1px solid rgba(148, 103, 254, .3);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 12px;
}
.ezq-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 18px; }
.ezq-tool {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px; border-radius: 14px;
  background: var(--ezq-surface); border: 1px solid var(--ezq-border);
  color: var(--ezq-text) !important; text-decoration: none !important;
  transition: border-color .15s, background .15s, transform .15s var(--ezq-ease);
  animation: ezq-rise .45s var(--ezq-ease) both;
}
a.ezq-tool:hover { border-color: var(--ezq-border-strong); background: var(--ezq-surface-2); transform: translateY(-1px); }
@keyframes ezq-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ezq-tool .ezq-option-icon { width: 36px; height: 36px; font-size: 17px; }
.ezq-tool-main { min-width: 0; flex: 1; }
.ezq-tool-top { display: flex; align-items: center; gap: 8px; }
.ezq-tool-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ezq-tool-why { font-size: 13px; color: var(--ezq-muted); line-height: 1.4; margin-top: 3px; }
.ezq-tier {
  margin-left: auto; flex: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px;
  background: var(--ezq-surface-2); color: var(--ezq-muted);
}
/* Same plan colors as the sidebar badges (dashboard sidebar.html). */
.ezq-tier.is-pro { background: rgba(148, 103, 254, .16); color: #c4a3ff; }
.ezq-tier.is-premium { background: linear-gradient(135deg, #6759d1, #a99ef5); color: #fff; }
.ezq-tier.is-elite { background: linear-gradient(135deg, #b45309, #f59e0b); color: #fff; }
.ezq-tier.is-free { background: var(--ezq-green-soft, rgba(34,197,94,.12)); color: #86efac; }

.ezq-panels { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.ezq-panel {
  padding: 16px 18px; border-radius: 16px;
  background: var(--ezq-surface); border: 1px solid var(--ezq-border);
}
.ezq-panel h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ezq-muted); margin: 0 0 10px; }
.ezq-steps { list-style: none; padding: 0; margin: 0; counter-reset: ezq-step; }
.ezq-steps li { position: relative; padding: 0 0 10px 32px; font-size: 14px; line-height: 1.45; }
.ezq-steps li::before {
  counter-increment: ezq-step; content: counter(ezq-step);
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--ezq-primary-soft); color: #c4a3ff;
}
.ezq-plan-name { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.ezq-plan-note { font-size: 13.5px; color: var(--ezq-muted); margin: 0; }
.ezq-plan.is-owned .ezq-plan-name::after { content: ' ✓'; color: var(--ezq-green); }
.ezq-notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px;
  background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); color: #fcd34d;
}
.ezq-error { color: #fda4af; font-size: 13.5px; margin-top: 12px; }

/* ── Small screens: full-height sheet ────────────────────────────────── */
@media (max-width: 640px) {
  .ezq-overlay { padding: 0; align-items: stretch; }
  .ezq-dialog { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .ezq-page .ezq-dialog { height: auto; border-radius: 18px; }
  .ezq-body { padding: 20px 18px 8px; }
  .ezq-foot { padding: 14px 18px 18px; flex-wrap: wrap; }
  .ezq-foot-note { width: 100%; margin: 0 0 4px; }
  .ezq-foot .ezq-btn { flex: 1; }
  .ezq-options { grid-template-columns: 1fr; }
  .ezq-result-grid, .ezq-panels { grid-template-columns: 1fr; }
  .ezq-option-key { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ezq *, .ezq-overlay, .ezq-dialog { animation: none !important; transition: none !important; }
}

/* ── Setup agent (agent.js): chat beside "Your EZPZ desk", inside the .ezq shell ──
   Looks like the home page desk builder (landing/hero.css .lp-ob-*). Values
   are the landing tokens written out (the dashboard and onboarding pages
   don't define --lp-*): surface #150a36, field #10062a, member bubble
   #663fb8 (primary-2 80% over the page background). The desk itself is
   personalize/desk.css; this only places it, at its natural height (the
   screenshot keeps its 1024x600 shape) at the top of its column. */
.eza .ezq-overlay { padding: 16px; }
.eza .ezq-dialog {
  width: min(1200px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  max-height: none;
  border-color: var(--ezq-border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #1f1146 0, #150a36 160px);
}
/* /setup/: the same card in the page, tall enough that the chat scrolls inside it. */
.ezq-page.eza .ezq-dialog { width: 100%; height: clamp(600px, calc(100vh - 200px), 760px); }
.ezq-page.eza .ezq-dialog.is-result { height: auto; }
.eza-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header: EZPZ AI avatar, name, what's happening + progress, close */
.eza-head {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 12px 20px;
  border-bottom: 1px solid var(--ezq-border);
}
.eza-orb, .eza-avatar {
  position: relative; flex: none; border-radius: 999px;
  /* The EZPZ AI mark, as on the home page desk builder. */
  background: #000 url("../landing/img/ezpz-ai.webp") center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--ezq-border-strong);
}
.eza-orb { width: 40px; height: 40px; box-shadow: 0 0 0 1px var(--ezq-border-strong), 0 6px 18px rgba(148, 103, 254, .28); }
.eza-orb::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  background: conic-gradient(from 20deg, transparent 0turn, rgba(196, 163, 255, .85) .2turn, transparent .45turn, transparent 1turn);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.eza-avatar { width: 28px; height: 28px; }
.eza-who { flex: 1; min-width: 0; }
.eza-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ezq-text); }
.eza-subrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.eza-sub { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ezq-muted); }
.eza .eza-progress { flex: none; width: 96px; height: 4px; background: rgba(148, 103, 254, .11); }

/* Main: chat column (≈1fr) beside the desk column (≈1.15fr) */
.eza-main {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.eza-chatcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--ezq-border); }
.eza .ezq-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 10px; scrollbar-width: thin; scrollbar-color: var(--ezq-border-strong) transparent; }
.eza .ezq-foot { flex: none; flex-wrap: wrap; gap: 8px 12px; padding: 12px 20px 16px; border-top: 1px solid var(--ezq-border); }
.eza-deskcol { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; scrollbar-width: thin; scrollbar-color: var(--ezq-border-strong) transparent; }
.eza-strip { display: none; }
/* Result: full width, no desk ("Start over" brings it back). Also when
   desk.js didn't load (.is-nodesk): the chat alone. */
.eza-dialog.is-result .eza-main,
.eza-dialog.is-nodesk .eza-main { grid-template-columns: minmax(0, 1fr); }
.eza-dialog.is-result .eza-deskcol { display: none; }
.eza-dialog.is-result .eza-chatcol,
.eza-dialog.is-nodesk .eza-chatcol { border-right: 0; }
.eza-dialog.is-result .ezq-body { padding: 24px 32px 10px; }
.eza-dialog.is-result .ezq-foot { padding: 14px 32px 20px; }

/* Thread: EZPZ on the left with its avatar, the member on the right. */
.eza-chat, .eza-msgs { display: flex; flex-direction: column; gap: 12px; }
.eza-msg { display: flex; align-items: flex-start; gap: 8px; min-width: 0; animation: ezq-rise .3s var(--ezq-ease) both; }
.eza-msg.is-me { justify-content: flex-end; }
.eza-bubble { min-width: 0; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; color: var(--ezq-text); }
.eza-msg.is-agent .eza-bubble {
  max-width: calc(100% - 36px);
  border: 1px solid var(--ezq-border); border-top-left-radius: 4px;
  background: rgba(148, 103, 254, .06);
}
.eza-msg.is-agent .eza-text { font-weight: 500; }
.eza-msg.is-me .eza-bubble { max-width: 85%; border-bottom-right-radius: 4px; background: #663fb8; }
.eza-why { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--ezq-muted); }
.eza-dots { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; }
.eza-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ezq-muted); opacity: .5; animation: eza-blink 1s infinite; }
.eza-dots i:nth-child(2) { animation-delay: .15s; } .eza-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes eza-blink { 50% { opacity: .15; } }

/* The open question's choices, under its bubble (avatar width + gap in). */
.eza-options { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 36px; }
.eza-options:empty { display: none; }
.eza-chip {
  display: inline-flex; align-items: center; max-width: 100%; min-height: 40px;
  padding: 8px 16px; border: 1px solid var(--ezq-border-strong); border-radius: 999px;
  background: rgba(148, 103, 254, .06); color: var(--ezq-text);
  font-size: 14px; font-weight: 500; line-height: 1.25; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.eza-chip:hover { border-color: var(--ezq-accent); background: rgba(148, 103, 254, .11); }
.eza-chip:focus-visible { outline: 2px solid var(--ezq-accent); outline-offset: 2px; }
.eza-chip:disabled { opacity: .5; cursor: not-allowed; }

/* Composer: a rounded field with a round send button, then the quiet actions. */
.eza-composer { flex: 1 1 100%; margin: 0; }
.eza-field {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 16px;
  border: 1px solid var(--ezq-faint); /* 3:1 field boundary */
  border-radius: 999px; background: #10062a;
}
.eza-field:focus-within { border-color: var(--ezq-accent); box-shadow: 0 0 0 3px rgba(196, 163, 255, .22); }
.eza-input {
  flex: 1; min-width: 0; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none;
  background: none; box-shadow: none; -webkit-appearance: none; appearance: none;
  color: var(--ezq-text); font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
.eza-input::placeholder { color: var(--ezq-muted); opacity: 1; }
/* The field draws the focus ring for the input; this beats the host page's
   global rings (landing.css .lp-main :focus-visible, theme input:focus). */
.eza .eza-field .eza-input,
.eza .eza-field .eza-input:focus,
.eza .eza-field .eza-input:focus-visible { outline: none; border: 0; box-shadow: none; background: none; }
.eza-send {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: 1px solid rgba(148, 103, 254, .7); border-radius: 999px;
  background: #663fb8; color: var(--ezq-text);
  transition: border-color .15s, opacity .15s;
}
.eza-send:hover { border-color: var(--ezq-accent); }
.eza-send:focus-visible { outline: 2px solid var(--ezq-accent); outline-offset: 2px; }
.eza-send:disabled, .eza-input:disabled { opacity: .5; cursor: not-allowed; }
.eza-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.eza-actions:not(:has(> :not([hidden]))) { display: none; }
.eza-actions .ezq-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 999px; }
.eza-actions .eza-done { color: var(--ezq-accent) !important; }

/* Result screen */
.eza-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 16px 0; }
.eza-group { padding: 12px 13px; border-radius: 14px; background: var(--ezq-surface); border: 1px solid var(--ezq-border); animation: ezq-rise .45s var(--ezq-ease) both; }
.eza-group-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.eza-group-title i { color: #c4a3ff; }
.eza-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.eza-group li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ezq-text); }
.eza-group li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(196, 163, 255, .6); flex: none; }
.eza-group li .ezq-tier { margin-left: auto; }
.eza-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ezq-muted); margin: 6px 0 0; }
.eza-widgets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.eza-widgets span { font-size: 12.5px; color: var(--ezq-muted); background: var(--ezq-surface); border: 1px solid var(--ezq-border); padding: 4px 10px; border-radius: 99px; }

/* Phones and narrow tablets: one column, the desk folded into a strip at the
   top ("Your desk · 6 tools · Pro") that opens it above the chat. */
@media (max-width: 860px) {
  .eza-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .eza-chatcol { border-right: 0; }
  .eza-deskcol { order: -1; overflow: visible; padding: 10px 16px; border-bottom: 1px solid var(--ezq-border); }
  .eza-deskcol.is-open { max-height: 62vh; max-height: 62svh; overflow-y: auto; }
  .eza-deskcol:not(.is-open) .eza-desk { display: none; }
  .eza-desk { margin-top: 10px; }
  .eza-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; min-height: 44px; padding: 8px 14px; cursor: pointer;
    border: 1px solid var(--ezq-border-strong); border-radius: 12px;
    background: rgba(148, 103, 254, .06); color: var(--ezq-text);
    font-size: 14px; text-align: left;
  }
  .eza-strip:focus-visible { outline: 2px solid var(--ezq-accent); outline-offset: 2px; }
  .eza-strip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .eza-strip-title { font-weight: 600; }
  .eza-strip-meta { color: var(--ezq-muted); }
  .eza-strip i { flex: none; color: var(--ezq-muted); transition: transform .2s var(--ezq-ease); }
  .eza-strip[aria-expanded="true"] i { transform: rotate(180deg); }
  .eza .ezq-body { padding: 14px 16px 8px; }
  .eza .ezq-foot { padding: 10px 16px 14px; }
  .eza-dialog.is-result .ezq-body { padding: 20px 18px 8px; }
  .eza-dialog.is-result .ezq-foot { padding: 14px 18px 18px; }
  .ezq-page.eza .ezq-dialog { height: clamp(520px, calc(100vh - 140px), 760px); height: clamp(520px, calc(100svh - 140px), 760px); }
  .ezq-page.eza .ezq-dialog.is-result { height: auto; }
}
@media (max-width: 640px) {
  .eza .ezq-overlay { padding: 0; }
  .eza .ezq-dialog { width: 100%; height: 100%; border-radius: 0; }
  .ezq-page.eza .ezq-dialog { border-radius: 18px; }
  .eza-head { padding: 12px 12px 10px 16px; }
  .eza .eza-progress { width: 72px; }
  .eza-msg.is-agent .eza-bubble { max-width: calc(100% - 36px); }
  .eza-msg.is-me .eza-bubble { max-width: 92%; }
}

/* ── Plan comparison (plan_compare.js) ── */
.ezp { margin-top: 18px; }
.ezp-top h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ezq-muted); }
.ezp-reason { margin: 0 0 12px; font-size: 14.5px; color: var(--ezq-text); }
.ezp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ezp-card {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px;
  background: var(--ezq-surface); border: 1px solid var(--ezq-border);
}
.ezp-card.is-recommended {
  border-color: var(--ezq-primary);
  background: linear-gradient(180deg, rgba(148, 103, 254, .14), var(--ezq-surface) 70%);
  box-shadow: 0 0 0 1px var(--ezq-primary) inset, 0 14px 36px rgba(148, 103, 254, .22);
}
.ezp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ezp-name { font-size: 16px; font-weight: 700; color: #fff; }
.ezp-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--ezq-primary), var(--ezq-primary-2)); }
.ezp-badge.is-current { background: var(--ezq-surface-2); color: var(--ezq-muted); }
.ezp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.ezp-amount { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ezp-per { font-size: 13px; color: var(--ezq-muted); }
.ezp-save { font-size: 11px; font-weight: 700; color: #86efac; background: rgba(34, 197, 94, .12); padding: 2px 7px; border-radius: 99px; }
.ezp-billing { flex-basis: 100%; font-size: 12px; color: var(--ezq-faint); }
.ezp-meter { height: 6px; border-radius: 99px; background: var(--ezq-surface-2); overflow: hidden; }
.ezp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ezq-primary-2), #c4a3ff); }
.ezp-card.is-recommended .ezp-meter span { background: linear-gradient(90deg, var(--ezq-primary), var(--ezq-accent)); }
.ezp-cover { margin: 0; font-size: 13px; color: var(--ezq-text); }
.ezp-adds { margin: 0; font-size: 12.5px; color: var(--ezq-muted); line-height: 1.4; flex: 1; }
.ezp-trial { margin: 0; font-size: 12.5px; font-weight: 600; color: #86efac; }
.ezp-cta { width: 100%; min-height: 40px; font-size: 14px; }
.ezp-cta.is-static { opacity: .6; cursor: default; }
.ezp-more { display: inline-block; margin-top: 10px; font-size: 13px; color: #c4a3ff !important; }
@media (max-width: 640px) {
  .ezp-grid { grid-template-columns: 1fr; }
  .ezp-card.is-recommended { order: -1; }
}
