@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Geist:wght@400;500;600;700&display=swap');

/* ════════════════════════════════════════
   Aurora Studio — design tokens
   Sunrise palette · soft AI / generative calm
   Ported from converti2 for the auth app.
════════════════════════════════════════ */

:root {
  --bg-base:        #FFF8F1;
  --ink:            #1A1530;
  --ink-muted:      #6B6580;
  --ink-faint:      #ABA5C0;

  --surface:        rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-solid:  #FFFFFF;
  --border-soft:    rgba(26, 21, 48, 0.08);
  --border-mid:     rgba(26, 21, 48, 0.14);
  --border-focus:   rgba(255, 155, 122, 0.55);

  --accent-peach:      #FFC9A8;
  --accent-lavender:   #C9B8FF;
  --accent-mint:       #A8E6CF;
  --accent-coral:      #FF9B7A;
  --accent-coral-deep: #F07A55;

  --gradient-aurora-a: radial-gradient(60% 50% at 20% 10%, var(--accent-peach) 0%, transparent 60%);
  --gradient-aurora-b: radial-gradient(70% 60% at 80% 90%, var(--accent-lavender) 0%, transparent 65%);
  --gradient-aurora-c: radial-gradient(55% 45% at 95% 50%, var(--accent-mint) 0%, transparent 55%);

  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 12px rgba(255, 155, 122, 0.08);
  --shadow-md: 0 8px 32px rgba(255, 155, 122, 0.12), 0 2px 8px rgba(26, 21, 48, 0.04);
  --shadow-lg: 0 24px 64px rgba(255, 155, 122, 0.18), 0 8px 24px rgba(26, 21, 48, 0.06);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui:      'Geist', 'Inter', system-ui, sans-serif;
}

/* ── Canvas ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The three aurora blobs frame the work without competing with it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--gradient-aurora-a),
    var(--gradient-aurora-b),
    var(--gradient-aurora-c);
  opacity: 0.55;
  filter: blur(4px);
}

/* ── Auth shell: centers a single card on the canvas ── */
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.card__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-coral-deep);
  margin: 0 0 6px;
}

.card h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 30px;
  margin: 0 0 4px;
  color: var(--ink);
}

.card__sub {
  margin: 0 0 28px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* ── Fields ─────────────────────────────── */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}

.field input::placeholder { color: var(--ink-faint); }

/* A bare label used where there's no <label> element (e.g. the Specs group). */
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.field textarea::placeholder { color: var(--ink-faint); }

/* Native file input — give the picker button the Aurora ghost look. */
.field input[type="file"] {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 16px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.field input[type="file"]::file-selector-button:hover {
  background: var(--surface-solid);
  border-color: var(--ink-muted);
}

/* ── Buttons ────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-deep) 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--ink-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ── Links & switch line ────────────────── */
a { color: var(--accent-coral-deep); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-coral); }

.switch {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ── Flash messages ─────────────────────── */
.flash {
  margin-bottom: 20px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.flash--alert  { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.2); }
.flash--notice { background: rgba(16, 185, 129, 0.10); color: #047857; border: 1px solid rgba(16, 185, 129, 0.22); }

/* ════════════════════════════════════════
   Dashboard
════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

.dashboard {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px;
}

.dashboard .card { max-width: none; }

.dashboard h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.identity__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-deep) 100%);
}

.identity__label { font-size: 12px; color: var(--ink-muted); }
.identity__email { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ════════════════════════════════════════
   Campaign list
════════════════════════════════════════ */
.funnel-list { list-style: none; margin: 24px 0 0; padding: 0; }
.funnel-list__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.funnel-list__step { font-size: 12.5px; color: var(--ink-muted); }

/* ════════════════════════════════════════
   Wizard shell — fixed 100vh frame
   nav · canvas (scale-to-fit) · maistro
════════════════════════════════════════ */
body.is-wizard { height: 100vh; overflow: hidden; }

.wizard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "topbar topbar topbar"
    "nav    canvas maistro"
    "footer footer footer";
  height: 100vh;
  overflow: hidden;
}
/* When a step has no Maistro panel, drop its column. */
.wizard:not(:has(.wizard__maistro)) {
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "nav    canvas"
    "footer footer";
}
/* Collapsed desktop Maistro: the rail shrinks to a slim reopen tab. */
@media (min-width: 861px) {
  .wizard[data-maistro-collapsed] { grid-template-columns: 240px minmax(0, 1fr) 46px; }
  .wizard[data-maistro-collapsed] .maistro__sheet { display: none; }
  .wizard[data-maistro-collapsed] .maistro__reopen { display: flex; }
}

/* ── Top bar: slim, full-width — back to funnels + the funnel being edited ── */
.wizard__topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 18px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--border-soft);
}
.wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
}
.wizard__back-arrow { font-size: 16px; color: var(--ink-muted); line-height: 1; }
.wizard__wordmark { font-family: var(--font-display); font-style: italic; font-size: 17px; }
.wizard__funnel-name {
  padding-left: 14px;
  border-left: 1px solid var(--border-mid);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Nav: steps as little cards, flex-distributed to fill the height ── */
.wizard__nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface-strong);
  border-right: 1px solid var(--border-soft);
  overflow: hidden;
}
.wizard__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard__step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.wizard__step-title { color: var(--ink); text-decoration: none; }
a.wizard__step-title:hover { text-decoration: underline; }
.wizard__step-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border-mid);
  color: var(--ink-muted);
}
.wizard__step--current {
  background: var(--surface-strong);
  border-color: var(--border-mid);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.wizard__step--current .wizard__step-index {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-deep) 100%);
  border-color: transparent;
  color: #fff;
}
.wizard__step--done .wizard__step-index {
  background: var(--accent-mint);
  border-color: transparent;
  color: var(--ink);
}
.wizard__step--locked { color: var(--ink-faint); opacity: 0.75; }
.wizard__step--locked .wizard__step-index { color: var(--ink-faint); }

/* ── Canvas: the fixed cell centers the stage; the stage is scaled to fit. ── */
.wizard__canvas {
  grid-area: canvas;
  position: relative;
  /* Short steps fill the frame and never scroll; a tall step (catalog, video) is
     shown at natural size and scrolls vertically. overflow-x stays hidden — the
     width fit guarantees the scaled stage never exceeds the frame horizontally. */
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  /* Anchor the stage to the top, centered horizontally. Top anchoring + a top
     transform-origin keeps the whole scaled stage — Continue included — inside the
     frame; centering an oversized stage would let its scaled bottom clip. */
  place-items: start center;
  padding: 32px;
}
.wizard__stage {
  width: min(720px, 100%);
  transform-origin: top center;
}
.wizard__header { margin-bottom: 24px; }
.wizard__header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  margin: 4px 0 0;
}

.wizard__placeholder {
  padding: 28px;
  background: var(--surface);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-md);
}
.wizard__placeholder-note { margin: 0 0 12px; color: var(--ink-muted); font-size: 14px; }
.wizard__status { display: inline-block; font-size: 12.5px; font-weight: 600; }
.wizard__status--done { color: #047857; }
.wizard__status--todo { color: var(--ink-faint); }


/* ── Maistro rail (desktop) / popup (mobile). A full-height flex frame. ── */
.wizard__maistro {
  grid-area: maistro;
  background: var(--surface-strong);
  border-left: 1px solid var(--border-soft);
  overflow: hidden;
}
.maistro__backdrop { display: none; }
.maistro__sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px 18px;
}
.maistro__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.maistro__badge {
  margin-right: auto;
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-coral) 100%);
}
/* Collapse chevron: desktop rail only. */
.maistro__collapse {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.maistro__collapse:hover { background: var(--surface); color: var(--ink); }
.maistro__close { display: none; }
/* Slim reopen tab: shown only while collapsed (see the collapsed grid rule). */
.maistro__reopen {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.maistro__reopen-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-coral-deep);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}
.maistro__hint { font-size: 13px; color: var(--ink-muted); }

/* The swappable conversation frame fills the sheet below the header; its transcript scrolls and its
   composer pins to the bottom (unchanged from when they were direct children of the sheet). */
.maistro__conversation { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.maistro-transcript {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.maistro-msg {
  max-width: 90%;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: var(--radius-sm);
}
.maistro-msg--user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-deep) 100%);
}
.maistro-msg--assistant {
  align-self: flex-start;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.maistro__compose { flex: 0 0 auto; margin-top: 12px; }
.maistro-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  resize: none;
}
.maistro-form textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.maistro-form .btn-primary { width: auto; margin-top: 8px; padding: 9px 22px; }

/* ── Step nav footer — sticky to the bottom, shared by desktop and mobile ──
   Aurora identity: frosted surface, hairline top border echoing the topbar, pill/circle
   controls like the nav cards, coral only on the live advance action. */
.step-nav {
  grid-area: footer;
  background: var(--surface-strong);
  border-top: 1px solid var(--border-soft);
  padding: 9px 20px;
}
.step-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.step-nav__side { display: flex; align-items: center; gap: 10px; }
.step-nav__side--left { justify-self: start; }
.step-nav__side--right { justify-self: end; }
.step-nav__name {
  justify-self: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.step-nav__nextform { margin: 0; }
.step-nav__advance { display: flex; }
.step-nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.step-nav__btn:hover {
  background: var(--surface-strong);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.step-nav__btn--advance {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-deep) 100%);
  box-shadow: var(--shadow-sm);
}
.step-nav__btn--advance:hover { box-shadow: var(--shadow-md); }
/* The Maistro spark lives in the footer on mobile only (desktop shows the rail). */
.step-nav__spark { display: none; }

/* ════════════════════════════════════════
   Mobile — single column, scrolling canvas,
   sticky bottom nav, Maistro popup (≤860px)
════════════════════════════════════════ */
@media (max-width: 860px) {
  .wizard,
  .wizard:not(:has(.wizard__maistro)) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "topbar"
      "canvas"
      "footer";
  }

  /* Slimmer bar on mobile; the wordmark drops, the arrow + name carry it. */
  .wizard__topbar { height: 42px; padding: 0 14px; }
  .wizard__wordmark { display: none; }
  .wizard__funnel-name {
    padding-left: 0;
    border-left: none;
    color: var(--ink);
  }

  /* The step rail is replaced by the bottom nav. */
  .wizard__nav { display: none; }

  /* Canvas scrolls instead of scaling; inputs keep full size. */
  .wizard__canvas {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px;
  }
  .wizard__stage { width: 100%; transform: none !important; }

  /* Footer spans the single column edge-to-edge, with safe-area padding. */
  .step-nav { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .step-nav__inner { max-width: none; }
  .step-nav__name { font-family: var(--font-ui); font-style: normal; font-weight: 600; font-size: 14px; }
  .step-nav__btn { width: 42px; height: 42px; font-size: 18px; }
  /* The Maistro spark appears in the footer on mobile (no rail here). */
  .step-nav__spark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-size: 17px;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-coral) 100%);
  }

  /* Mobile uses the popup's open/close, not the desktop collapse. */
  .maistro__collapse { display: none; }

  /* Maistro becomes a bottom-sheet popup, hidden until opened. */
  .wizard__maistro { display: none; }
  .wizard[data-maistro-open] .wizard__maistro {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
    border: none;
  }
  .maistro__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    border: none;
    background: rgba(26, 21, 48, 0.35);
  }
  .maistro__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82vh;
    background: var(--surface-solid);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .maistro__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 15px;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    cursor: pointer;
  }
}

/* ════════════════════════════════════════
   Profile step — form · upload zone · places
════════════════════════════════════════ */
.profile-form { max-width: 560px; }
.profile-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); resize: vertical;
}
.profile-form textarea:focus {
  outline: none; border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.profile-form__save { width: auto; margin-top: 8px; padding: 11px 26px; }

.upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px dashed var(--border-mid);
  border-radius: var(--radius-md); transition: border-color .15s, background .15s;
}
.upload-zone.is-dragging { border-color: var(--accent-coral); background: var(--surface-strong); }
.upload-zone__hint { font-size: 13px; color: var(--ink-muted); }
.upload-zone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone__preview img { max-width: 120px; max-height: 120px; border-radius: var(--radius-sm); }

/* ── Catalog step ──────────────────────────── */
/* Named catalog containers; each splits into a Services and a Listings subsection. */
.catalogs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

/* List view: one row per catalog, linking into its editor. */
.catalog-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.catalog-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.catalog-row__open {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: var(--ink); text-decoration: none;
}
.catalog-row__title { font-size: 15px; font-weight: 650; }
.catalog-row__count { font-size: 12px; color: var(--ink-muted); }
.catalog-row__remove {
  flex: 0 0 auto; margin-right: 8px;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-faint); font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: var(--radius-sm);
}
.catalog-row__remove:hover { color: var(--accent-coral-deep); background: var(--surface-strong); }

/* Detail view: the single-catalog editor page. */
.catalog-detail { max-width: 640px; margin: 0 auto; padding: 20px; }
.catalog-detail__back {
  display: inline-block; margin-bottom: 16px;
  font-size: 14px; color: var(--ink-muted); text-decoration: none;
}
.catalog-detail__back:hover { color: var(--ink); }

.catalog-box {
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.catalog-box__header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.catalog-box__titleform { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.catalog-box__title {
  flex: 1; min-width: 0;
  padding: 6px 8px;
  font-size: 16px; font-weight: 650; color: var(--ink);
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
}
.catalog-box__title:hover { background: var(--surface-strong); }
.catalog-box__title:focus { background: var(--surface-strong); border-color: var(--border-mid); outline: none; }
.catalog-box__remove {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-faint); font-size: 20px; line-height: 1; border-radius: var(--radius-sm);
}
.catalog-box__remove:hover { color: var(--accent-coral-deep); background: var(--surface-strong); }

.catalog-section { margin-bottom: 24px; }
.catalog-section:last-of-type { margin-bottom: 0; }
.catalog-section__title {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* Unified add-item form: a Service/Listing toggle morphs the fields below it. */
.item-form__kind { display: flex; gap: 8px; margin-bottom: 12px; }
.item-form__kindopt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; cursor: pointer;
  font-size: 13px; color: var(--ink-muted);
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
}
.item-form__kindopt:has(input:checked) {
  color: var(--ink); border-color: var(--accent-coral); background: var(--surface-strong);
}

.service-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-list__item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* A small sunrise-gradient bead marks each service. */
.service-list__item::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-lavender));
}

.service-list__form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }

/* The brief reads as content, hints on hover, glows on focus — like the catalog card. */
.service-list__brief {
  flex: 1;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.service-list__brief:hover { background: var(--surface-strong); }
.service-list__brief:focus {
  outline: none;
  background: var(--surface-solid);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}

.service-list__remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.service-list__remove:hover { color: var(--accent-coral-deep); background: var(--surface-strong); }

/* Add button — shared by steps (services, catalog…): a compact centered pill on
   desktop, a round + on mobile. Sits on top of .btn-primary. */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 12px auto 0;
  padding: 10px 24px;
}
.add-btn__icon { font-size: 18px; line-height: 1; }

@media (max-width: 860px) {
  .add-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
  }
  .add-btn__label { display: none; }
  .add-btn__icon { font-size: 26px; }
}

/* ── Step guidance ─────────────────────────── */
.step-guide {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-lavender);
  border-radius: var(--radius-md);
}

.step-guide__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-coral-deep);
}

.step-guide__intro {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
}

.step-guide__points {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ── Catalog step ──────────────────────────── */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* One saved listing — a square, image-forward tile: featured photo up top, a
   draggable filmstrip, then a compact editable footer. */
.catalog-item {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.18s, transform 0.18s;
}
.catalog-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Featured photo — the dominant zone, pinned to most of the tile (62% floor). */
.catalog-item__featured {
  position: relative;
  flex: 1 0 62%;
  min-height: 0;
  background: linear-gradient(135deg, var(--accent-peach), var(--accent-lavender));
}
.catalog-item__featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-item__nophoto {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.85);
}

/* Delete — a frosted round control floating over the image. */
.catalog-item__featured form.button_to { display: contents; }
.catalog-item__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.catalog-item:hover .catalog-item__remove { opacity: 1; }
.catalog-item__remove:hover { background: #fff; color: var(--accent-coral-deep); }
@media (hover: none) { .catalog-item__remove { opacity: 1; } }

/* Draggable filmstrip — the first thumb is featured; drag to re-arrange. */
.catalog-item__strip {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  overflow-x: auto;
  background: var(--surface-strong);
  border-top: 1px solid var(--border-soft);
  scrollbar-width: thin;
}
.catalog-item__thumb {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  border: 1px solid var(--border-soft);
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.catalog-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-item__thumb.is-featured {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 2px rgba(255, 155, 122, 0.3);
}
.catalog-item__thumb.is-dragging { opacity: 0.4; }
.catalog-item__thumb:active { cursor: grabbing; }

/* Photo actions: a featured/reorder hint and a one-tap "add photos" button. */
.catalog-item__photos-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px;
}
.catalog-item__photos-hint { margin: 0; font-size: 11px; color: var(--ink-muted); }
.catalog-item__addphotos-btn {
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--ink-muted);
  background: var(--surface); border: 1px dashed var(--border-mid); border-radius: var(--radius-pill);
}
.catalog-item__addphotos-btn:hover { color: var(--ink); border-color: var(--accent-coral); }

/* Compact editable footer. */
.catalog-item__info {
  flex: 0 0 auto;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.catalog-item__edit { display: flex; flex-direction: column; gap: 1px; }
.catalog-item__title,
.catalog-item__desc {
  width: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  resize: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.catalog-item__title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-item__desc { font-size: 12.5px; color: var(--ink-muted); }
.catalog-item__title:hover,
.catalog-item__desc:hover { background: var(--surface-strong); }
.catalog-item__title:focus,
.catalog-item__desc:focus {
  outline: none;
  background: var(--surface-solid);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}

/* Saved specs — a single clipped row so the tile stays square. */
.catalog-item__specs {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 6px;
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.catalog-item__specs li {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 9px;
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--ink-muted);
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}
.catalog-item__spec-name { font-weight: 600; color: var(--ink); }

/* Specs builder inside the add form — grouped in a soft panel. */
.catalog-specs {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.spec-row__name,
.spec-row__value {
  padding: 9px 12px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.spec-row__name { flex: 0 0 38%; }
.spec-row__value { flex: 1; }
.spec-row__name:focus,
.spec-row__value:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.spec-row__remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 16px;
  color: var(--ink-muted);
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.spec-row__remove:hover { color: var(--accent-coral-deep); border-color: var(--border-mid); }

.catalog-specs__add { margin-top: 4px; }

/* ── Videos step ────────────────────────────── */
.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* One uploaded clip — a square tile: video preview up top, caption below, remove floating over it. */
.video-item {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.18s, transform 0.18s;
}
.video-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.video-item__preview {
  flex: 1 0 62%;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-peach), var(--accent-lavender));
}

.video-item__caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-item form.button_to { display: contents; }
.video-item__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.video-item:hover .video-item__remove { opacity: 1; }
.video-item__remove:hover { background: #fff; color: var(--accent-coral-deep); }
@media (hover: none) { .video-item__remove { opacity: 1; } }

/* ── Objectives step ───────────────────────── */
.objectives { display: flex; flex-direction: column; gap: 14px; }

.objective-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.objective-card--locked { border-color: var(--accent-coral); }

.objective-card__head { display: flex; align-items: center; gap: 12px; }
.objective-card__icon { font-size: 22px; }
.objective-card__meta { flex: 1; }
.objective-card__title { margin: 0; font-size: 15px; }
.objective-card__note { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }
.objective-card__badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-coral-deep); padding: 3px 9px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent-coral) 18%, transparent);
}

.objective-card__body { margin-top: 14px; }
.objective-card__body.is-hidden { display: none; }
.objective-card__input { width: 100%; }

.objective-card__switch { position: relative; display: inline-flex; cursor: pointer; }
.objective-card__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.objective-card__switch-track {
  width: 40px; height: 22px; border-radius: var(--radius-pill);
  background: var(--border-mid); transition: background .15s ease;
}
.objective-card__switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s ease;
}
.objective-card__switch input:checked + .objective-card__switch-track { background: var(--accent-coral); }
.objective-card__switch input:checked + .objective-card__switch-track::after { transform: translateX(18px); }

/* ── Objectives form builder ───────────────── */
.form-builder { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .form-builder { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.form-builder__list { display: flex; flex-direction: column; gap: 10px; }

/* A field card: two tidy rows — [handle · label · remove] over [type · required] —
   with any option chips flowing full-width beneath. Roomy enough for the narrow frame. */
.field-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 12px 12px 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-row:hover { border-color: var(--border-mid); box-shadow: var(--shadow-md); }

.field-row__handle {
  grid-row: 1 / span 2; align-self: stretch;
  display: flex; align-items: center;
  cursor: grab; color: var(--ink-faint); font-size: 15px; user-select: none;
  transition: color 0.15s;
}
.field-row__handle:hover { color: var(--ink-muted); }
.field-row:active .field-row__handle { cursor: grabbing; }

.field-row__label { grid-row: 1; grid-column: 2; min-width: 0; font-weight: 600; }
.field-row__type  { grid-row: 2; grid-column: 2; min-width: 0; }

.field-row__remove {
  grid-row: 1; grid-column: 3;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: none; background: none; border-radius: var(--radius-pill);
  cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-faint);
  transition: color 0.15s, background 0.15s;
}
.field-row__remove:hover { color: var(--accent-coral-deep); background: rgba(240, 122, 85, 0.1); }

/* Required — a pill toggle that lights coral when checked. */
.field-row__required {
  grid-row: 2; grid-column: 3;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  font-size: 12.5px; color: var(--ink-muted);
  padding: 7px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  background: var(--surface); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.field-row__required:has(input:checked) {
  border-color: var(--border-focus); color: var(--accent-coral-deep);
  background: rgba(255, 155, 122, 0.08); font-weight: 600;
}

/* Shared control look for the builder's text/select inputs — matches the app's .field inputs. */
.field-row__label, .field-row__type, .field-row__option-input {
  font: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-row__label:focus, .field-row__type:focus, .field-row__option-input:focus {
  outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.field-row__label::placeholder, .field-row__option-input::placeholder { color: var(--ink-faint); }

/* Custom chevron on the type select. */
.field-row__type {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6580' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

/* Options — indented under the field, chips of small inputs. */
.field-row__options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; padding-left: 26px; }
.field-row__options.is-hidden { display: none; }
.field-row__option { display: inline-flex; align-items: center; gap: 2px; }
.field-row__option-input { width: 128px; padding: 8px 10px; }
.field-row__option-remove {
  border: none; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-faint);
  padding: 2px 4px; transition: color 0.15s;
}
.field-row__option-remove:hover { color: var(--accent-coral-deep); }
.form-builder__add { align-self: flex-start; margin-top: 2px; }

/* Live preview panel. */
.form-builder__preview {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border: 1px dashed var(--border-mid); border-radius: var(--radius-md);
  background: var(--surface);
}
.form-builder__preview:empty::before { content: "Live preview"; color: var(--ink-faint); font-size: 13px; font-style: italic; }
.preview-field { display: flex; flex-direction: column; gap: 6px; }
.preview-field__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.preview-field input, .preview-field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink-muted);
  padding: 10px 12px; background: var(--surface-strong);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.preview-field textarea { min-height: 64px; resize: none; }
.preview-field__options { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-field__option {
  font-size: 12px; padding: 4px 12px; color: var(--ink-muted); background: var(--surface-strong);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
}

/* ── Location & language step ──────────────── */
.location-language { display: flex; flex-direction: column; gap: 16px; }

/* Language picker — flag + name radio chips (not a dropdown). The native radio is
   hidden; the chip reflects its state via :has(). */
.language-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.language-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.language-option:hover { border-color: var(--border-mid); background: var(--surface-strong); }
.language-option__input { position: absolute; opacity: 0; width: 0; height: 0; }
.language-option__flag { font-size: 18px; line-height: 1; }
.language-option__name { font-size: 13.5px; color: var(--ink); }
.language-option:has(.language-option__input:checked) {
  border-color: var(--accent-coral);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}
.language-option:has(.language-option__input:checked) .language-option__name {
  font-weight: 600;
  color: var(--accent-coral-deep);
}
.language-option:has(.language-option__input:focus-visible) {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.25);
}

.location-search { position: relative; }
.location-search__input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.location-search__input::placeholder { color: var(--ink-faint); }
.location-search__input:focus {
  outline: none;
  background: var(--surface-solid);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 155, 122, 0.15);
}

/* Suggestions float over the top of the map as a frosted menu. */
.location-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.location-search__results:empty { display: none; }
.location-search__result {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.location-search__result:hover { background: var(--surface-solid); }

.location-map__canvas { height: 320px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }

.location-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.location-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: var(--radius-md); font-size: 14px;
}
.location-item__remove {
  border: none; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-muted);
}
.location-item__remove:hover { color: var(--accent-coral-deep); }

/* ── Autosave status ───────────────────────── */
.autosave-status {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  min-height: 1em;
}
.autosave-error { display: block; margin-top: 4px; font-size: 12.5px; color: #b91c1c; }

/* ── Generation progress + regenerate ─────── */
.generation-progress {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px dashed var(--border-mid); border-radius: var(--radius-md);
  color: var(--ink-muted); font-size: 14px;
}
.regenerate { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.regenerate__form { margin: 0; }
.regenerate__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--accent-coral-deep);
  background: color-mix(in srgb, var(--accent-coral) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-coral) 45%, transparent);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.regenerate__btn:hover {
  background: color-mix(in srgb, var(--accent-coral) 20%, transparent);
  border-color: var(--accent-coral); transform: translateY(-1px);
}
.regenerate__icon { font-size: 14px; line-height: 1; }
.regenerate__note { font-size: 12px; color: var(--ink-muted); }
.audiences {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.audiences::-webkit-scrollbar { display: none; }
/* Spacers let the first and last card snap to the centre — scroll can't overscroll past the ends. */
.audiences::before, .audiences::after { content: ""; flex: 0 0 calc((100% - min(88%, 520px)) / 2 - 16px); }
.audience {
  position: relative;
  flex: 0 0 min(88%, 520px); scroll-snap-align: center;
  height: 420px; display: flex; flex-direction: column;
  background: var(--surface-strong); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px 18px;
  transition: opacity .3s ease, transform .3s ease;
}
/* Orange trash button floating in the card's top-right corner. */
.audience__delete-form { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 1; }
.audience__delete {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent-coral) 35%, transparent);
  border-radius: var(--radius-pill);
  background: var(--surface-strong); color: var(--accent-coral-deep);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.audience__delete:hover {
  background: color-mix(in srgb, var(--accent-coral) 12%, var(--surface-strong));
  border-color: var(--accent-coral); transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-coral) 22%, transparent);
}
.audience__delete-icon { width: 15px; height: 15px; }
/* Neighbour-dimming only kicks in once the controller is live (progressive enhancement). */
.audience-gallery.is-ready .audience { opacity: .45; transform: scale(.96); }
.audience-gallery.is-ready .audience.is-active { opacity: 1; transform: scale(1); }
.audience__header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; padding-bottom: 10px; padding-right: 34px;
  border-bottom: 1px solid var(--border-soft);
}
.audience__name { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.audience__meta { flex: none; font-size: 12px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.audience__terms { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }

/* `contain: inline-size` stops the horizontal scroll track's wide max-content from inflating the
   fit-controller's auto-sized canvas grid column, which otherwise shoves the whole stage off-centre. */
.audience-gallery { position: relative; contain: inline-size; }
.audience-gallery:focus-visible { outline: none; }

.audience-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  background: var(--surface-strong); box-shadow: var(--shadow-sm);
  cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink);
  transition: background .12s ease, transform .12s ease;
}
.audience-gallery__arrow:hover { background: color-mix(in srgb, var(--accent-peach) 18%, var(--surface-strong)); }
.audience-gallery__arrow--prev { left: 4px; }
.audience-gallery__arrow--next { right: 4px; }

.audience-gallery__dots {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; justify-content: center; gap: 8px;
}
.audience-gallery__dot {
  width: 8px; height: 8px; border-radius: var(--radius-pill);
  background: var(--border-soft); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.audience-gallery__dot.is-active { background: var(--accent-coral); transform: scale(1.25); }

/* A single audience has nothing to switch between: hide the controls. */
.audience-gallery:has(.audience:only-child) .audience-gallery__arrow,
.audience-gallery:has(.audience:only-child) .audience-gallery__dots { display: none; }

/* Mobile uses swipe, not arrows, and centres the card in the scrolling viewport (else it floats up). */
@media (max-width: 640px) {
  .audience-gallery__arrow { display: none; }
  .audience-gallery {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100dvh - 150px);
  }
}

.search-term { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); font-size: 13.5px; }
.search-term + .search-term { border-top: 1px solid var(--border-soft); }
.search-term:hover { background: color-mix(in srgb, var(--accent-peach) 14%, transparent); }
.search-term__text { flex: 1; color: var(--ink); }
.search-term__meta { display: flex; align-items: center; gap: 6px; }
.search-term__vol, .search-term__bid {
  font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11.5px;
  padding: 2px 9px; border-radius: var(--radius-pill);
}
.search-term__vol { color: var(--ink-muted); background: var(--surface); }
.search-term__bid { color: var(--accent-coral-deep); background: color-mix(in srgb, var(--accent-peach) 24%, transparent); }
.search-term__remove-form { margin: 0; flex: none; }
.search-term__remove {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer;
  line-height: 1; font-size: 15px; color: var(--ink-faint);
  transition: color .12s ease, background .12s ease;
}
.search-term__remove:hover { color: var(--accent-coral-deep); background: color-mix(in srgb, var(--accent-coral) 16%, transparent); }

/* ═══ Landing-pages step ═══════════════════════════════════════════════════════
   A carousel of live phone-frame cards (one per audience's page), mirroring the
   audiences gallery mechanics — native scroll-snap, centre-snap spacers, the
   `carousel` controller dimming neighbours. The whole view sits in one Turbo frame
   (#landing_pages_view) that swaps in place with the editor.
   ═════════════════════════════════════════════════════════════════════════════ */
.lp-gallery { position: relative; contain: inline-size; }
.lp-gallery:focus-visible { outline: none; }

.lp-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lp-track::-webkit-scrollbar { display: none; }
/* Spacers let the first/last card snap to centre — scroll can't overscroll past the ends. */
.lp-track::before, .lp-track::after { content: ""; flex: 0 0 calc((100% - min(72%, 250px)) / 2 - 20px); }

.lp-card {
  flex: 0 0 min(72%, 250px); scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  transition: opacity .3s ease, transform .3s ease;
}
/* Neighbour-dimming only once the controller is live (progressive enhancement). */
.lp-gallery.is-ready .lp-card { opacity: .4; transform: scale(.95); }
.lp-gallery.is-ready .lp-card.is-active { opacity: 1; transform: scale(1); }

/* The phone frame: a solid dark bezel at true iPhone 12 Pro proportions (390:844), a forehead bar with
   a speaker slot, the responsive page filling the rest. aspect-ratio (not a fixed height) keeps the
   frame un-squeezed at any card width. */
.lp-card__device {
  width: 100%; aspect-ratio: 390 / 844;
  display: flex; flex-direction: column;
  border: 8px solid #1c1c1e; border-radius: 34px; overflow: hidden;
  background: #fff; box-shadow: 0 14px 34px -16px rgba(15,15,22,.5);
}
.lp-card__bar { flex: none; height: 20px; background: #1c1c1e; display: flex; align-items: center; justify-content: center; }
.lp-card__bar::after { content: ""; width: 46px; height: 5px; background: rgba(255,255,255,.22); border-radius: 3px; }
/* The screen is a fixed window onto the zoomed 390px-wide frame; phone_preview_controller sizes it. */
.lp-card__screen { flex: 1; width: 100%; position: relative; overflow: hidden; background: #fff; }
.lp-card__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.lp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.lp-card__label { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-card__edit {
  flex: none; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft); background: var(--surface-strong);
  transition: background .12s ease, border-color .12s ease;
}
.lp-card__edit:hover { border-color: var(--accent-coral); background: color-mix(in srgb, var(--accent-coral) 10%, var(--surface-strong)); }

/* Arrows + dots — the audiences gallery look. */
.lp-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  background: var(--surface-strong); box-shadow: var(--shadow-sm);
  cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink);
  transition: background .12s ease;
}
.lp-gallery__arrow:hover { background: color-mix(in srgb, var(--accent-peach) 18%, var(--surface-strong)); }
.lp-gallery__arrow--prev { left: 4px; }
.lp-gallery__arrow--next { right: 4px; }
.lp-gallery__dots { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.lp-gallery__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--border-soft); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.lp-gallery__dot.is-active { background: var(--accent-coral); transform: scale(1.25); }
/* A single page has nothing to switch between: hide the controls. */
.lp-gallery:has(.lp-card:only-child) .lp-gallery__arrow,
.lp-gallery:has(.lp-card:only-child) .lp-gallery__dots { display: none; }

@media (max-width: 640px) {
  .lp-gallery__arrow { display: none; }
  .lp-gallery { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 150px); }
  /* The device keeps its 390:844 aspect ratio; centre the track in the tall viewport. */
  .lp-track { flex: 1; align-items: center; }
}

/* ── Landing-pages step (desktop): split the canvas — copy on the left, the live phone preview on
   the right. The phone is height-driven: it fills the space between header and footer and derives its
   width from the 390:844 ratio, so it never scrolls. Mobile keeps the stacked carousel above. ── */
@media (min-width: 861px) {
  .wizard__canvas:has(.lp-gallery) { overflow: hidden; place-items: stretch; }
  .wizard__canvas:has(.lp-gallery) .wizard__stage {
    width: 100%; min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);   /* one full-height row so both columns fill the canvas */
    column-gap: 48px;
    align-items: stretch;
  }
  /* min-height:0 lets the row cap the tall phone to the canvas height instead of overflowing it. */
  .wizard__canvas:has(.lp-gallery) .wizard__main { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
  .wizard__canvas:has(.lp-gallery) [id^="step-region-"] { min-height: 0; }
  .wizard__canvas:has(.lp-gallery) .lp-gallery {
    height: 100%; display: flex; flex-direction: column; justify-content: center; min-height: 0;
  }
  .wizard__canvas:has(.lp-gallery) .lp-track { flex: 1; min-height: 0; align-items: center; }
  /* The card is a grid: the bezel takes the 1fr row (a grid track gives it a definite height that
     survives the card's own width sizing — a flex:1 child would collapse to zero here), the foot
     takes the auto row. width:0/min-width:100% keeps the long label from stretching the card. */
  .wizard__canvas:has(.lp-gallery) .lp-card {
    flex: 0 0 auto; height: 100%;
    display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; row-gap: 12px;
  }
  .wizard__canvas:has(.lp-gallery) .lp-card__device {
    height: 100%; width: auto; max-width: 100%; aspect-ratio: 390 / 844;
  }
  .wizard__canvas:has(.lp-gallery) .lp-card__foot { width: 0; min-width: 100%; }
  .wizard__canvas:has(.lp-gallery) .lp-card__label { min-width: 0; }
}

/* ── The editor overlay: a full-screen layer that scales up over the carousel on open and scales
   down away on close. Lives in the top-level #lp_editor frame, outside the fit transform. ── */
.lp-editor-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
/* Editing keeps the Maistro rail lit and clickable: the screen passes clicks through except on the
   scrim/panel, and neither the scrim nor the centred panel reaches into the 320px rail column. */
.lp-editor-screen { pointer-events: none; }
.lp-editor-screen__scrim, .lp-editor-screen__panel { pointer-events: auto; }
@media (min-width: 861px) {
  .lp-editor-screen { padding-right: 320px; }
  .lp-editor-screen__scrim { right: 320px; }
}
.lp-editor-screen__scrim {
  position: absolute; inset: 0; background: rgba(22, 18, 30, .3);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.lp-editor-screen__panel {
  position: relative; z-index: 1;
  width: min(820px, 92vw); height: min(580px, 86vh);
  display: flex; padding: 26px 30px;
  /* Frosted glass — translucent so the dimmed wizard shows through. */
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent);
  border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(15, 15, 22, .5);
  transform: scale(.92); opacity: 0;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
  will-change: transform, opacity;
}
.lp-editor-screen.is-open .lp-editor-screen__scrim { opacity: 1; }
.lp-editor-screen.is-open .lp-editor-screen__panel { transform: scale(1); opacity: 1; }
.lp-editor-screen.is-closing .lp-editor-screen__scrim { opacity: 0; }
.lp-editor-screen.is-closing .lp-editor-screen__panel { transform: scale(.92); opacity: 0; }
.lp-editor-screen__close,
.lp-editor-screen__view {
  position: absolute; top: 14px; z-index: 2;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink-muted); cursor: pointer;
  font-size: 15px; line-height: 1; transition: background .12s ease, color .12s ease;
}
.lp-editor-screen__close { right: 14px; }
.lp-editor-screen__view  { right: 56px; }   /* the eye icon sits just left of ✕ */
.lp-editor-screen__close:hover,
.lp-editor-screen__view:hover { background: color-mix(in srgb, var(--accent-coral) 12%, var(--surface)); color: var(--accent-coral-deep); }
@media (prefers-reduced-motion: reduce) { .lp-editor-screen__panel, .lp-editor-screen__scrim { transition: none; } }

/* ── The editor pop-up: content (left) · template (right). ── */
.lp-editor {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  grid-template-rows: minmax(0, 1fr);   /* one full-height row so both columns fill the panel */
  gap: 26px; align-items: stretch; text-align: left;
}
@media (max-width: 860px) { .lp-editor { grid-template-columns: 1fr; } }

.lp-editor__pane { display: flex; flex-direction: column; gap: 12px; width: 100%; min-height: 0; overflow-y: auto; padding-right: 4px; }
.lp-editor__pane-head { display: flex; align-items: center; justify-content: space-between; }
.lp-editor__pane-title { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); }

.lp-editor__fields { display: flex; flex-direction: column; gap: 12px; }
.lp-field { display: flex; flex-direction: column; gap: 5px; }
.lp-field__label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.lp-field__input {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink);
  padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface-strong); resize: vertical;
}
.lp-field__input:focus { outline: none; border-color: var(--accent-coral); }
.lp-field__group { margin: 8px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.lp-field__subgroup { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.lp-field__nest { display: flex; flex-direction: column; gap: 10px; padding-left: 10px; border-left: 2px solid var(--border-soft); }

.lp-templates { display: flex; flex-direction: column; gap: 8px; }
.lp-tpl {
  position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--surface-strong); transition: border-color .12s ease, background .12s ease;
}
.lp-tpl:hover { border-color: var(--ink-faint); }
.lp-tpl.is-selected { border-color: var(--accent-coral); background: color-mix(in srgb, var(--accent-coral) 8%, var(--surface-strong)); }
.lp-tpl__radio { position: absolute; opacity: 0; pointer-events: none; }
.lp-tpl__swatches { display: flex; gap: 3px; flex: none; }
.lp-tpl__swatches span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
.lp-tpl__name { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Ad account step — the user's Google Ads accounts and their live setup state. */
.ad-account-step__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.ad-account-step__lead  { margin: 0 0 16px; max-width: 44ch; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

.ad-accounts { display: flex; flex-direction: column; gap: 10px; }

.ad-account-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  background: var(--surface-strong); box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, box-shadow .15s ease;
}
.ad-account-card.is-selected { border-color: var(--accent-coral); background: color-mix(in srgb, var(--accent-coral) 8%, var(--surface-strong)); }
.ad-account-card form.button_to { display: contents; }
.ad-account-card .btn-primary, .ad-account-card .btn-ghost { margin-top: 0; }
.ad-account-card__select:disabled { background: color-mix(in srgb, var(--accent-mint) 60%, var(--surface-solid)); color: var(--ink); box-shadow: none; filter: none; cursor: default; }

.ad-account-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-account-card__name { overflow: hidden; font-size: 14px; font-weight: 600; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }

.ad-account-card__badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-size: 12px; font-weight: 600; border-radius: var(--radius-pill); }
.ad-account-card__badge--pending { color: var(--ink-muted); background: color-mix(in srgb, var(--ink-faint) 20%, transparent); }
.ad-account-card__badge--pending::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-lavender); animation: ad-account-pulse 1.1s ease-in-out infinite; }
.ad-account-card__badge--ready  { color: var(--ink); background: color-mix(in srgb, var(--accent-mint) 55%, transparent); }
.ad-account-card__badge--failed { color: var(--accent-coral-deep); background: color-mix(in srgb, var(--accent-coral-deep) 14%, transparent); }

.ad-account-card__error { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--accent-coral-deep); }

@keyframes ad-account-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
