/* CE Intake — app layer on top of the Napster design tokens.
 * tokens.css owns colour/type/spacing. Nothing here should re-declare a brand
 * value; reach for the var instead so this stays in sync with napster.com.
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }

/* .gate and .shell carry display:flex/grid, which outrank the UA stylesheet's
 * [hidden]{display:none}. Without this the gate never goes away when the guide
 * is revealed and both stack on the page. */
[hidden] { display: none !important; }

/* Atmospheric plum wash behind everything — the brand's "not-quite-black". */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(96, 22, 86, 0.40), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(55, 9, 113, 0.28), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ── Topbar ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 60px;
  padding: 0 var(--space-6);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--blur-panel);
  border-bottom: var(--panel-border);
}
.topbar-left { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.wordmark { height: 18px; width: auto; display: block; }
.topbar-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.14); }
.topbar-title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-eyebrow);
  white-space: nowrap;
}
.badge-version {
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  border: var(--panel-border);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  white-space: nowrap;
}

/* ── Landing gate ───────────────────────────────────────────────────── */

.gate {
  position: relative;
  z-index: 1;
  /* The glow is wider than a phone viewport; clip it or it scrolls the page. */
  overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.gate-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(221, 82, 203, 0.20), transparent 62%);
  filter: var(--blur-atmospheric);
  pointer-events: none;
}
.gate-inner { position: relative; max-width: 760px; }
.gate.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.gate-mark {
  width: 54px;
  height: auto;
  margin: 0 auto var(--space-6);
  animation: markPulse 2.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { opacity: .75; filter: drop-shadow(0 0 12px rgba(255, 16, 232, 0.35)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 30px rgba(255, 16, 232, 0.75)); }
}

/* Fills over PRELOAD_MS; the duration is set from JS so the two can't drift. */
.gate-progress {
  width: 260px;
  height: 2px;
  margin: var(--space-10) auto var(--space-4);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.gate-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--pink-deep), var(--pink-rim));
}
.gate-progress.is-running span {
  width: 100%;
  transition: width var(--preload-ms, 3500ms) cubic-bezier(.35, .1, .25, 1);
}
.gate-status { font-size: var(--fs-body-sm); color: var(--fg-subtle); margin: 0; }
/* With the bar gone (fallback), the status needs its own air below the title. */
.gate-progress[hidden] + .gate-status { margin-top: var(--space-8); color: var(--fg-muted); }

.shell.is-entering { animation: shellIn .6s ease both; }
@keyframes shellIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-mark { animation: none; }
  .shell.is-entering { animation: none; }
  .gate.is-leaving { transition: none; }
}
.gate-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, var(--fs-hero));
  font-weight: var(--fw-semibold);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-hero);
  margin: var(--space-5) 0 0;
}
.gate-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--fg);
  background: linear-gradient(96deg, var(--pink-deep), var(--pink-bright));
  border: 1px solid var(--pink-rim);
  border-radius: var(--r-md);
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: var(--shadow-glow-pink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 56px rgba(255, 16, 232, 0.5); }
.btn-primary:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-mic {
  width: 15px; height: 15px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--mic-mask) center / contain no-repeat;
  mask: var(--mic-mask) center / contain no-repeat;
  --mic-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3z'/><path d='M19 11a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.92V21a1 1 0 1 0 2 0v-3.08A7 7 0 0 0 19 11z'/></svg>");
}
.btn-ghost {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  background: var(--bg-panel);
  border: var(--panel-border);
  border-radius: var(--r-md);
  padding: 14px 22px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.25); }

/* ── Shell layout ───────────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 400px;
  gap: var(--space-8);
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
  align-items: start;
}

/* ── Left rail ──────────────────────────────────────────────────────── */

.rail {
  position: sticky;
  top: calc(60px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: none;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.rail-item:hover { color: var(--fg); background: var(--bg-panel); }
.rail-num {
  flex: 0 0 auto;
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  color: var(--fg-subtle);
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.rail-item.is-active { color: var(--fg); background: var(--bg-panel); }
.rail-item.is-active .rail-num { color: var(--pink); }
/* Kai is talking about this one — stronger than plain scroll-spy. */
.rail-item.is-focused {
  color: var(--fg);
  background: var(--plum-panel);
  border-color: var(--pink-rim);
}
.rail-item.is-focused .rail-num { color: var(--pink-rim); }

/* The first three sections are the actual setup; the rest is reference.
 * A hairline in the rail says so without a second heading. */
.rail-split {
  margin: var(--space-4) 13px var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--panel-border);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-subtle);
}

/* ── Document ───────────────────────────────────────────────────────── */

.doc { min-width: 0; }
.doc-head { padding-bottom: var(--space-6); }
.doc-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-hero);
  margin: var(--space-4) 0 0;
}
.doc-lead {
  margin: var(--space-5) 0 0;
  max-width: 62ch;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--fg-muted);
}
.doc-banner {
  margin-top: var(--space-8);
  padding: 12px var(--space-5);
  border-radius: var(--r-md);
  border: var(--panel-border-pink);
  background: rgba(221, 82, 203, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
}
.doc-banner strong { color: var(--pink-rim); }
.doc-foot {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: var(--panel-border);
  font-size: var(--fs-body-sm);
  color: var(--fg-subtle);
}

/* ── Right dock ─────────────────────────────────────────────────────── */

.dock {
  position: sticky;
  top: calc(60px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.avatar-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: min(560px, calc(100vh - 60px - var(--space-12)));
  border-radius: var(--r-lg);
  border: var(--panel-border);
  background: var(--bg-charcoal);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.avatar-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px var(--space-4);
  border-bottom: var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
}
.avatar-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--fg-subtle);
  flex: 0 0 auto;
}
.avatar-dot.is-live { background: var(--good); box-shadow: 0 0 10px var(--good); }
.avatar-dot.is-speaking { background: var(--pink); box-shadow: 0 0 12px var(--pink-glow); }
.avatar-name { font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.avatar-role { font-size: var(--fs-meta); color: var(--fg-muted); margin-left: 2px; }
.btn-end {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
  background: none;
  border: var(--panel-border);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  cursor: pointer;
}
.btn-end:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.28); }

/* Fixed panel height + flex:1 mount is the SDK-friendly sizing pattern.
 * Never hardcode a px height here, and never fight the SDK with !important —
 * sizing is passed to init() via `style` instead. */
.avatar-mount { position: relative; flex: 1; width: 100%; min-height: 0; overflow: hidden; }
.avatar-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  background: var(--bg-charcoal);
  z-index: 2;
}
.avatar-loading p { margin: 0; font-size: var(--fs-body-sm); color: var(--fg-muted); }
.avatar-poster {
  width: 84px; height: 84px;
  border-radius: var(--r-full);
  object-fit: cover;
  object-position: center 22%;
  opacity: .55;
  filter: grayscale(.3);
}
.avatar-spinner {
  width: 22px; height: 22px;
  border-radius: var(--r-full);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--pink);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 11px var(--space-4);
  border-top: var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  font-size: var(--fs-meta);
  line-height: 1.55;
  color: var(--fg-subtle);
}
.avatar-hint em { color: var(--fg-muted); font-style: normal; }

/* ── Toast ──────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.9);
  border: var(--panel-border);
  backdrop-filter: var(--blur-panel);
  font-size: var(--fs-body-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Progress (topbar) ──────────────────────────────────────────────── */

.progress { display: flex; align-items: center; gap: var(--space-3); }
.progress-dots { display: flex; gap: 6px; align-items: center; }
.progress-dots span {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.20);
  transition: background .2s ease, box-shadow .2s ease;
}
.progress-dots span.is-done { background: var(--pink); }
.progress-dots span.is-current { box-shadow: 0 0 0 3px rgba(221, 82, 203, 0.20); }
.progress-label {
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Rail steps are indicators, not links — the wizard owns navigation. */
.rail-item { cursor: default; }
.rail-item:hover { background: none; color: var(--fg-muted); }
.rail-item.is-active, .rail-item.is-active:hover { color: var(--fg); background: var(--plum-panel); border-color: rgba(255, 161, 243, 0.35); }
.rail-item.is-done .rail-num { color: var(--pink); }
.rail-split { margin-top: 0; border-top: none; padding-top: 0; }

/* ── Kai's speech bubble ────────────────────────────────────────────── */

.doc { max-width: 800px; width: 100%; justify-self: center; }
.bubble {
  position: relative;
  margin-top: var(--space-6);
  padding: var(--space-6) 30px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #2B0D26, #1A0818);
  border: 1px solid rgba(255, 161, 243, 0.20);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.bubble.is-speaking {
  border-color: rgba(255, 161, 243, 0.45);
  box-shadow: 0 0 40px rgba(221, 82, 203, 0.18);
}
.bubble-who { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; }
.bubble-avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  object-fit: cover;
  object-position: center 22%;
  padding: 2px;
  background: linear-gradient(135deg, var(--pink-rim), var(--pink-deep) 45%, var(--plum-deep));
  margin-right: 4px;
}
.bubble-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.bubble-bars i { display: block; width: 2px; border-radius: 1px; background: var(--pink); }
.bubble-bars i:nth-child(1) { height: 5px; }
.bubble-bars i:nth-child(2) { height: 10px; }
.bubble-bars i:nth-child(3) { height: 7px; }
.bubble.is-speaking .bubble-bars i { animation: bars .9s ease-in-out infinite; }
.bubble.is-speaking .bubble-bars i:nth-child(2) { animation-delay: .15s; }
.bubble.is-speaking .bubble-bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bars { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.bubble-bars i { transform-origin: bottom; }
.bubble-name { font-weight: var(--fw-semibold); }
.bubble-role { color: var(--fg-muted); }
.bubble-q {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: var(--fw-medium);
  line-height: 1.45;
  text-wrap: pretty;
}
.bubble-sub { font-size: var(--fs-body-sm); line-height: 1.65; color: var(--fg-muted); text-wrap: pretty; }
.bubble-tag {
  margin-top: 4px;
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Wizard stage ───────────────────────────────────────────────────── */

.stage { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }

.panel-card {
  background: var(--bg-panel);
  border: var(--panel-border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }

.field { display: flex; flex-direction: column; gap: var(--space-2); border-radius: var(--r-md); scroll-margin-top: 90px; }
.field-label { font-size: 13px; font-weight: var(--fw-semibold); }
.field-label .req { color: var(--pink-rim); }
.field-label .opt { color: var(--fg-muted); font-weight: var(--fw-regular); }
.group-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: var(--space-2);
}

.input {
  font-family: inherit;
  font-size: var(--fs-body-sm);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: var(--panel-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  outline: none;
  width: 100%;
  color-scheme: dark;
  transition: border-color .15s ease;
}
.input::placeholder { color: rgba(255, 255, 255, 0.32); }
.input:focus { border-color: rgba(255, 161, 243, 0.45); }
textarea.input { resize: vertical; min-height: 104px; line-height: 1.55; }
select.input { appearance: auto; }
select.input option { background: #141414; }

.hint { font-size: 12px; line-height: 1.5; color: var(--fg-muted); }
.field-error { display: none; font-size: 12px; color: var(--bad); }
.field.has-error .field-error { display: block; }
.field.has-error .input { border-color: rgba(255, 107, 122, 0.55); }

/* Big option cards (discovery, asset type) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-6);
  border-radius: var(--r-lg);
  border: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
}
.card:hover { filter: brightness(1.12); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.card-tile {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.card-badge {
  display: none;
  background: var(--pink-rim);
  color: #000;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.card-title { font-size: 15px; font-weight: var(--fw-semibold); line-height: 1.4; text-wrap: pretty; }
.card-desc { font-size: 13px; line-height: 1.5; color: var(--fg-muted); }

.opt.is-selected {
  border-color: rgba(255, 161, 243, 0.50);
  background: linear-gradient(180deg, rgba(78, 22, 64, 0.60), rgba(78, 22, 64, 0.25));
  box-shadow: 0 0 40px rgba(221, 82, 203, 0.18);
}
.opt.is-selected .card-tile, .opt.is-selected .choice-tile {
  border-color: rgba(255, 161, 243, 0.35);
  background: rgba(190, 54, 157, 0.20);
  color: var(--pink-rim);
}
.card.is-selected .card-badge { display: inline-block; }

/* Compact radio / checkbox rows */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choice, .check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s ease, background .15s ease, filter .15s ease;
}
.choice:hover, .check:hover { filter: brightness(1.15); }
.choice-tile {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  border: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.choice-text { flex: 1; min-width: 0; }
.choice-title { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); line-height: 1.4; }
.choice-desc { font-size: 13px; line-height: 1.5; color: var(--fg-muted); margin-top: 2px; }
.radio, .box {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.radio { border-radius: var(--r-full); }
.box { border-radius: 5px; color: transparent; }
.check .box { order: -1; }
.choice.is-selected .radio { border-color: var(--pink-rim); background: var(--pink-deep); box-shadow: inset 0 0 0 4px var(--pink-deep), inset 0 0 0 8px #fff; }
.check.is-selected .box { border-color: var(--pink-rim); background: var(--pink-deep); color: #fff; }
.ic { display: inline-flex; }

.acks-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-2); }
.acks-title { font-family: var(--font-display); font-size: var(--fs-subtitle); font-weight: var(--fw-semibold); line-height: 1.25; }
.acks-sub { font-size: var(--fs-body-sm); color: var(--fg-muted); }

/* Callouts (alignment / scoping meeting, come-back-later) */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: var(--panel-border-pink);
  background: rgba(221, 82, 203, 0.07);
}
.callout-ic {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(190, 54, 157, 0.20);
  border: 1px solid rgba(255, 161, 243, 0.35);
  color: var(--pink-rim);
  display: flex; align-items: center; justify-content: center;
}
.callout-title { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); }
.callout-text { margin-top: 4px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.70); }

/* Self-service resources */
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.resource {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  border: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.resource.is-hi {
  border-color: rgba(255, 161, 243, 0.50);
  background: linear-gradient(180deg, rgba(78, 22, 64, 0.60), rgba(78, 22, 64, 0.25));
}
.resource.is-hi .card-tile { border-color: rgba(255, 161, 243, 0.35); background: rgba(190, 54, 157, 0.20); color: var(--pink-rim); }
.resource .card-desc { flex: 1; }
.resource-cta {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--pink-rim);
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}
.resource-cta:hover { text-decoration: underline; }

/* Ticket (submitted) */
.ticket { align-items: center; text-align: center; }
.ticket-id {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--fw-semibold);
  letter-spacing: .02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ticket-note { margin: 0; max-width: 52ch; font-size: var(--fs-body-sm); line-height: 1.65; color: var(--fg-muted); }
.ticket-note a { color: var(--pink-rim); }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.btn-next, .btn-back {
  font-family: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--fg);
  border-radius: var(--r-md);
  padding: 12px 24px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease, transform .1s ease;
}
.btn-next { background: var(--pink-deep); border: none; }
.btn-next:hover { background: #C94AA8; }
.btn-next:disabled { opacity: .45; cursor: not-allowed; }
.btn-back { background: transparent; border: 1px solid rgba(255, 161, 243, 0.20); padding: 12px 22px; }
.btn-back:hover { border-color: rgba(255, 161, 243, 0.40); }
.btn-next:active, .btn-back:active { transform: scale(0.98); }

/* ── Kai's pointer ──────────────────────────────────────────────────── */

/* Kai pointed at this. Same pink rim + breathing glow as station-landing's
 * focused section, so the two products read as one family. */
.field.is-kai, .opt.is-kai {
  outline: 1px solid var(--pink-rim);
  outline-offset: 6px;
  animation: kaiPulse 2.4s ease-in-out infinite;
}
.opt.is-kai { outline-offset: 3px; }
@keyframes kaiPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 16, 232, 0.22); }
  50%      { box-shadow: 0 0 46px rgba(255, 16, 232, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .field.is-kai, .opt.is-kai, .bubble.is-speaking .bubble-bars i { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1360px) {
  .shell { grid-template-columns: minmax(0, 1fr) 360px; }
  .rail { display: none; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 320px; }
  .dock {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    top: auto;
    z-index: 50;
  }
  .avatar-panel { height: 280px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6); }
  .avatar-hint { display: none; }
}
@media (max-width: 680px) {
  .avatar-panel { height: 210px; }
  .shell { padding: var(--space-6) var(--space-4) 260px; }
  .topbar { padding: 0 var(--space-4); }
  .topbar-title, .progress-label { display: none; }
  .panel-card { padding: 20px; }
  .bubble { padding: var(--space-5); }
}
