/* client.css — Styles spécifiques à l'écran client RemoteWS */

/* ── Reset léger ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body.console {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ok-soft);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.brand-sep {
  color: var(--ok);
}

.topbar-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Badge / chip d'état ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-line);
}

.badge.info {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-line);
}

.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn-line);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-line);
}

/* Alias chip pour compatibilité */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.chip--ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-line);
}
.chip--info {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-line);
}
.chip--warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn-line);
}
.chip--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-line);
}

/* ── Layout grille principale ───────────────────────────────────────── */
.client-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 900px) {
  .client-layout {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
}

.client-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.client-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ── Card ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 16px;
}

.card--stretch {
  flex: 1 1 auto;
}

.card-subtitle {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.card-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Code display ───────────────────────────────────────────────────── */
.code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.code-group {
  display: flex;
  gap: 6px;
}

.code-cell {
  width: 44px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-1);
  transition:
    color 0.15s,
    border-color 0.15s;
  user-select: none;
}

.code-display--active .code-cell {
  border-color: var(--ok-line);
  color: var(--ok);
}

.code-sep {
  font-size: 22px;
  color: var(--text-3);
  line-height: 56px;
  font-family: var(--font-mono);
  user-select: none;
}

/* ── Inputs ─────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  height: var(--row-h);
  padding: 0 var(--pad-x);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: var(--border-focus);
  outline: none;
}

.input:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
  border-color: var(--border-focus);
}

.input::placeholder {
  color: var(--text-4);
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Boutons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--row-h);
  padding: 0 var(--pad-x);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.12s,
    opacity 0.12s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--ok);
  color: #0d1424;
  border-color: var(--ok);
}
.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

.btn-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-line);
}
.btn-ok:hover {
  background: var(--ok);
  color: #0d1424;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-line);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-icon {
  width: var(--row-h);
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Rangées de boutons */
.btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-row--wrap {
  flex-wrap: wrap;
}

/* ── Notice (info / warn / danger) ─────────────────────────────────── */
.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid transparent;
}

.notice--info {
  background: var(--info-soft);
  border-color: var(--info-line);
  color: var(--text-2);
}

.notice--warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--text-2);
}

.notice--danger {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--text-2);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--warn);
  margin-bottom: 8px;
}

.notice-body {
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ── Share checklist ────────────────────────────────────────────────── */
.share-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border-soft);
}

.share-row:first-child {
  border-top: none;
}

.share-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-icon--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.share-icon--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.share-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  font-weight: 500;
}

.share-note {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 400;
}

/* ── Pill ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill--info {
  background: var(--info-soft);
  color: var(--info);
}

.pill--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── Switch ─────────────────────────────────────────────────────────── */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 4px;
  cursor: pointer;
}

.switch-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-1);
}

.switch-wrap {
  position: relative;
  flex-shrink: 0;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s;
  cursor: pointer;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--text-4);
  transition:
    transform 0.15s,
    background 0.15s;
}

.switch-input:checked + .switch-track {
  background: var(--ok-soft);
  border-color: var(--ok-line);
}

.switch-input:checked + .switch-track::after {
  background: var(--ok);
  transform: translateX(16px);
}

.switch-input:disabled + .switch-track {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Module natif — commande ────────────────────────────────────────── */
.agent-command {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.6;
}

/* ── Preview écran ──────────────────────────────────────────────────── */
.preview-block {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-block video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-4);
}

.preview-empty-inner span {
  font-size: 13px;
  color: var(--text-4);
}

.remote-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--danger);
  border: 2px solid #fff;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* ── Log / événements / fichiers ────────────────────────────────────── */
.log-scroll {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry {
  padding: 5px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--border-soft);
  word-break: break-all;
}

.log-entry a {
  color: var(--info);
  text-decoration: none;
}

.log-entry a:hover {
  text-decoration: underline;
}

/* ── Chat ───────────────────────────────────────────────────────────── */
.chat-log {
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 0;
}

.chat-entry {
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-s);
  border: 1px solid var(--border-soft);
}

.chat-entry strong {
  color: var(--info);
  font-weight: 600;
  margin-right: 4px;
}

.chat-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ── Utilitaires ────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ── Toasts in-page ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
  max-width: min(360px, 90vw);
}

.toast {
  pointer-events: auto;
  background: var(--bg-deep, #1a1a1a);
  color: var(--text-1, #fff);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 200ms ease-out,
    transform 200ms ease-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateX(20px);
}

.toast--info {
  border-left: 3px solid var(--info, #4aa3ff);
}
.toast--success {
  border-left: 3px solid var(--ok, #2ecc71);
}
.toast--warn {
  border-left: 3px solid var(--warn, #f5a623);
}
.toast--danger {
  border-left: 3px solid var(--danger, #e74c3c);
}

/* ── Wizard (Lot 42) ─────────────────────────────────────────────────── */
body.wizard-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep, #080d18);
  /* Halo d'ambiance — cohérent avec la landing page (home.css). */
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -6%, rgba(63, 212, 148, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 2%, rgba(91, 168, 255, 0.08), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-1, #e8ecf3);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}

.wizard {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
}

.wizard__stage[hidden] {
  display: none !important;
}

.wizard__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 24px;
  background: var(--bg-soft, #11151f);
  border: 1px solid var(--border, #1f2632);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: wizardFadeIn 200ms ease-out;
}

.wizard__stage--session {
  align-items: stretch;
  text-align: left;
  padding: 16px;
  max-width: none;
  width: min(960px, 100%);
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok, #2ecc71);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.wizard__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1, #e8ecf3);
}

.wizard__lede {
  margin: 0;
  font-size: 15px;
  color: var(--text-2, #b6becc);
  max-width: 440px;
}

.wizard__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-3, #7d8694);
  max-width: 420px;
}

.wizard__steps {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  max-width: 360px;
  width: 100%;
  text-align: left;
}

.wizard__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2, #b6becc);
}

.wizard__step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ok-soft, rgba(46, 204, 113, 0.12));
  color: var(--ok, #2ecc71);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard__identity {
  width: min(100%, 360px);
  margin: 0 auto 16px;
  text-align: left;
}

.wizard__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}

.wizard__actions--row {
  flex-direction: row;
  max-width: 420px;
}

.wizard__actions--row .btn {
  flex: 1;
}

.wizard__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3, #7d8694);
  padding: 8px 14px;
  background: var(--bg-deep, #0a0d14);
  border-radius: 999px;
}

.wizard__pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warn, #f5a623);
  box-shadow: 0 0 0 0 currentColor;
  animation: wizardPulse 1.4s infinite;
}

.wizard__status--ready .wizard__pulse {
  background: var(--ok, #2ecc71);
}

@keyframes wizardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
  }
}

.wizard__link {
  background: none;
  border: none;
  color: var(--text-3, #7d8694);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.wizard__link:hover {
  color: var(--text-1, #e8ecf3);
}

.wizard__check {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--ok-soft, rgba(46, 204, 113, 0.12));
  color: var(--ok, #2ecc71);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.wizard__request-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--warn-soft, rgba(245, 166, 35, 0.12));
  color: var(--warn, #f5a623);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Code display agrandi pour le wizard */
.code-display--large {
  font-size: 36px;
  letter-spacing: 0.05em;
  gap: 14px;
  margin: 8px 0;
}

.code-display--large .code-cell {
  width: 44px;
  height: 56px;
  border-radius: 10px;
  font-size: 28px;
}

.code-display--large .code-sep {
  font-size: 32px;
}

/* Boutons tailles */
.btn-xl {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  max-width: 320px;
}

.btn-lg {
  font-size: 14px;
  padding: 12px 20px;
  font-weight: 600;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 10px;
}

/* ── Session active ──────────────────────────────────────────────────── */
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-deep, #0a0d14);
  border: 1px solid var(--border, #1f2632);
  border-radius: 12px;
  margin-bottom: 16px;
}

.session-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.session-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok, #2ecc71);
  box-shadow: 0 0 0 0 var(--ok, #2ecc71);
  animation: sessionPulse 2s infinite;
}

@keyframes sessionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.session-timer {
  font-size: 13px;
  color: var(--text-3, #7d8694);
  margin-left: 8px;
}

.session-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-actions {
  display: flex;
  gap: 8px;
}

.session-actions .btn {
  flex: 1;
  max-width: 320px;
}

.session-panel {
  background: var(--bg-soft, #11151f);
  border: 1px solid var(--border, #1f2632);
  border-radius: 10px;
  overflow: hidden;
}

.session-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1, #e8ecf3);
  user-select: none;
}

.session-panel summary::-webkit-details-marker {
  display: none;
}

.session-panel summary:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.03));
}

.session-panel__badge {
  margin-left: auto;
  background: var(--info, #4aa3ff);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.session-panel__body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border, #1f2632);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-panel__hint {
  font-size: 12px;
  color: var(--text-3, #7d8694);
  margin: 0;
}

.session-panel__subheader {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3, #7d8694);
  margin-top: 6px;
}

.preview-block--compact {
  max-height: 280px;
  min-height: 160px;
}

.log-scroll--compact {
  max-height: 140px;
  font-size: 12px;
}

/* ── Helper banner (pendant session) ─────────────────────────────────── */
.helper-banner {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(74, 163, 255, 0.05));
  border: 1px solid var(--border, #1f2632);
  border-radius: 10px;
  overflow: hidden;
}

.helper-banner[hidden] {
  display: none;
}

.helper-banner__toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-2, #b6becc);
  font-size: 13px;
  text-align: left;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.helper-banner__toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.helper-banner__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.helper-banner__text {
  flex: 1;
}

.helper-banner__chevron {
  transition: transform 200ms ease-out;
  flex-shrink: 0;
}

.helper-banner__toggle[aria-expanded="true"] .helper-banner__chevron {
  transform: rotate(180deg);
}

.helper-banner__drawer {
  padding: 0 14px 12px;
  border-top: 1px solid var(--border, #1f2632);
  font-size: 13px;
  color: var(--text-2, #b6becc);
}

.helper-banner__drawer p {
  margin: 12px 0;
}

/* ── Helper card (farewell) ──────────────────────────────────────────── */
.helper-card {
  margin-top: 16px;
  width: 100%;
  max-width: 460px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.06), rgba(74, 163, 255, 0.04));
  border: 1px solid var(--border, #1f2632);
  border-radius: 12px;
  text-align: left;
}

.helper-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1, #e8ecf3);
}

.helper-card__icon {
  font-size: 18px;
}

.helper-card__body {
  font-size: 13px;
  color: var(--text-2, #b6becc);
  margin: 0 0 14px 0;
  line-height: 1.55;
}

.helper-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-card__actions .btn {
  flex: 1;
  min-width: 140px;
}

.helper-card__alt {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #1f2632);
  font-size: 12px;
  color: var(--text-3, #7d8694);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.helper-card__alt a {
  color: var(--info, #4aa3ff);
  text-decoration: none;
}

.helper-card__alt a:hover {
  text-decoration: underline;
}

/* Responsive mobile */
@media (max-width: 480px) {
  body.wizard-body {
    padding: 12px 8px;
  }
  .wizard__stage {
    padding: 24px 16px;
  }
  .wizard__title {
    font-size: 22px;
  }
  .code-display--large {
    font-size: 28px;
    gap: 8px;
  }
  .code-display--large .code-cell {
    width: 36px;
    height: 48px;
    font-size: 22px;
  }
  .btn-xl {
    font-size: 15px;
    padding: 12px 20px;
  }
}
