@import url('/css/presenter-controls.css');

/* CrowdHum — Shared Create Page Styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e1a;
  --surface: #131b2e;
  --card: #1a2340;
  --border: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.95);
  --text-mid: rgba(255,255,255,0.6);
  --text-dim: rgba(255,255,255,0.50);
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --col-border: rgba(255,255,255,0.06);
  --label-scale: 1;
  --danger: #ff6b8a;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
/* Nav styles now in /css/nav.css — only create-page overrides below */
.nav-logo em { font-style: normal; color: var(--accent, #06b6d4); font-weight: 300; }

/* ---- LAYOUT (viewport-filling two-pane, matching mock v3) ---- */
.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* below shared nav (60px height) */
  padding: 0;
  max-width: none;
  margin: 60px 0 0; /* push below fixed nav */
  overflow: hidden;
}
.page-header {
  display: none;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.page-header p {
  font-size: 0.78rem;
  color: var(--text-mid);
  display: none; /* compact header for viewport-filling layout */
}

/* ---- FORM SECTION (flex child fills remaining height) ---- */
#form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---- QUESTION INPUT ---- */
.question-section {
  margin-bottom: 16px;
}
.question-section label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.question-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.question-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.08);
}
.question-input::placeholder { color: var(--text-dim); }

/* ---- COLUMNS BUILDER ---- */
.builder-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.builder-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.columns-builder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 2px;
  margin-bottom: 12px;
  align-items: stretch;
}

/* ---- COLUMN CARD ---- */
.col-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 8px 12px;
  position: relative;
  transition: border-color 0.3s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.col-card:hover { border-color: rgba(255,255,255,0.12); }

.col-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.col-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.col-color input[type="color"] {
  position: absolute;
  inset: -8px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  opacity: 0;
}
.col-name {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 0;
  outline: 2px solid transparent;
  transition: border-color 0.2s;
  width: 100%;
}
.col-name:focus {border-bottom-color: var(--text-dim); }
.col-name::placeholder { color: var(--text-dim); font-weight: 400; }

.col-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.45;
  transition: all 0.2s;
}
.col-remove:hover { opacity: 1; color: var(--danger); background: rgba(255,107,138,0.08); }

/* ---- CHOICES INSIDE COLUMN ---- */
.col-choices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.col-choice-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.col-choice-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 10px;
  outline: 2px solid transparent;
  transition: border-color 0.2s;
}
.col-choice-input:focus {border-color: var(--accent); }
.col-choice-input::placeholder { color: var(--text-dim); }
.col-choice-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.45;
  transition: all 0.2s;
}
.col-choice-remove:hover { opacity: 1; color: var(--danger); }

.col-add-choice {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
  transition: color 0.2s;
}
.col-add-choice:hover { color: var(--accent); }

.col-choice-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---- ADD COLUMN CARD ---- */
.add-col-card {
  width: 100%;
  min-height: 56px;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-body);
}
.add-col-card:hover { border-color: var(--accent); color: var(--accent); }
.add-col-card .plus { font-size: 1.6rem; line-height: 1; }

/* ---- WORD BUILDER ---- */
.word-choices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.word-choice-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.word-choice-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 12px 14px;
  outline: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.word-choice-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.08);
}
.word-choice-input::placeholder { color: var(--text-dim); }
.word-choice-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.word-choice-remove:hover { color: var(--danger); background: rgba(255,107,138,0.08); }
.word-add-btn {
  background: none;
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 12px;
  margin-bottom: 32px;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
}
.word-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- LIVE PREVIEW ---- */
.preview-section {
  margin-bottom: 36px;
}
.preview-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-label .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.preview-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.preview-frame {
  width: 100%;
  aspect-ratio: 16/8;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.preview-col-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.preview-question {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.6;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-col-labels {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  display: flex;
  z-index: 2;
  pointer-events: none;
}
.preview-sub-labels {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  pointer-events: none;
}
.preview-sub-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22%;
  gap: 38%;
}
.preview-sub-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.5;
  background: rgba(0,0,0,0.4);
  padding: 3px 10px;
  border-radius: 4px;
  max-width: 90%;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}
.preview-col-dividers {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
  pointer-events: none;
}
.preview-col-divider {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.preview-col-divider:last-child { border-right: none; }

/* ---- LAUNCH ---- */
.error-bar {
  background: rgba(255,107,138,0.08);
  border: 1px solid rgba(255,107,138,0.2);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--danger);
  margin-bottom: 16px;
  display: none;
}
.error-bar.visible { display: block; }

.btn-launch {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
  color: #0a0e1a;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 25px rgba(6,182,212,0.3), 0 0 60px rgba(6,182,212,0.1);
}
.btn-launch:hover { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); box-shadow: 0 8px 32px rgba(6,182,212,0.3), 0 0 60px rgba(6,182,212,0.15); }
.btn-launch:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---- SUCCESS ---- */
.success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 20px 0;
}
.success-panel.visible { display: flex; }

/* Header row: check + title + room code */
.success-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.success-check {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(6,182,212,0.1);
  border: 2px solid rgba(6,182,212,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent);
  flex-shrink: 0;
}
.success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.success-header .room-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0;
}

/* Body: QR left, links right */
.success-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  max-width: 680px;
}
.success-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.qr-display {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.qr-display canvas { border-radius: 8px; display: block; }
.qr-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.success-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.link-item:hover { border-color: var(--accent); }
.link-item .link-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.link-item .link-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  word-break: break-all;
}
.link-item .copy-icon {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}
.success-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.success-actions .btn-launch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  width: auto;
}
.btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.18); color: var(--text); background: rgba(255,255,255,0.06); }

/* Responsive: stack on narrow screens */
@media (max-width: 600px) {
  .success-body { flex-direction: column; align-items: center; }
  .success-links-col { width: 100%; }
  .success-actions { flex-direction: column; }
}

.session-polls-list {
  width: 100%;
  max-width: 420px;
  text-align: left;
}
.session-polls-list .session-poll-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.session-polls-list .session-poll-item:last-child { border-bottom: none; }
.session-polls-list .session-poll-item .poll-check { color: var(--accent); }
.session-polls-list .session-poll-item .poll-num { color: var(--text-dim); font-size: 0.72rem; min-width: 50px; }
.session-title-editor {
  width: 100%;
  max-width: 420px;
  text-align: left;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 32px;
  text-align: center;
}
.footer-inner {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.footer-inner a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--text-mid); }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-logo em { font-style: normal; color: var(--text-mid); }
.footer-sep { margin: 0 8px; opacity: 0.3; }

/* ---- VIZ PICKER ---- */
.viz-picker-section {
  margin-bottom: 32px;
}
.viz-picker-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.viz-picker-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.viz-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.viz-card {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.viz-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.viz-card.selected,
.viz-card[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(6,182,212,0.08);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.viz-card-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.viz-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}
/* Hide thumbnail in compact mode */
.viz-card-thumb { display: none; }
.viz-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}
.viz-card-check {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.25s;
}
.viz-card.selected .viz-card-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 640px) {
  .col-card { max-width: none; }
  .add-col-card { min-height: 60px; }
  .preview-frame { aspect-ratio: 16/9; }
  .success-actions { flex-direction: column; }
  .viz-card { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Coachmark/welcome styles in /css/coachmarks.css */
.help-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: border-color 0.15s, color 0.15s;
}
.help-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }

/* ---- Two-pane layout (mock v3 style: elevated panels filling viewport) ---- */
.create-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 1.6fr;
  gap: 20px;
  padding: 12px 24px 12px;
  min-height: 0;
  max-width: none;
  margin: 0;
}
.form-col-left {
  position: relative;
  background: rgba(15,15,31,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .create-layout { grid-template-columns: 1fr; gap: 16px; padding: 12px 16px; }
  .preview-col-panel { position: static !important; min-height: 400px; }
  .phone-mockup-wrap { display: none; }
  .sim-btn-testdrive { display: none !important; }
  #test-drive-phone-pane { display: none !important; }
}

/* ---- Preview column: fills right pane as elevated panel ---- */
.preview-col-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15,15,31,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: clip;        /* clip keeps border-radius masking without creating BFC that clips absolute children */
  min-height: 0;
}
.preview-panel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
.preview-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.3);
  animation: previewDotPulse 1.5s ease-in-out infinite;
}
@keyframes previewDotPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.preview-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 60px; /* space for floating rehearsal bar */
}
/* Free-tier watermark hint in compose preview */
.preview-question-text {
  position: relative;
  z-index: 1;
  display: none;
}
.viz-preview-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}
.viz-preview-container svg {
  width: 100%;
  height: 100%;
  display: block;
}
.preview-col-labels-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 8px;
  flex-wrap: wrap;
}
.preview-col-labels-bar:empty {
  display: none;
}
.preview-col-label-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.preview-col-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ---- Old sim-edit-controls: vestigial, replaced by rehearsal bar ---- */
.sim-edit-controls { display: none; }

/* ---- CONCEPT B: Simulation controls ---- */
.sim-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
  flex-wrap: wrap;
}
.sim-btn-ctrl {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.sim-btn-ctrl:hover {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.3);
  color: var(--accent);
}
.sim-btn-ctrl.active {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.4);
  color: var(--accent);
}
.sim-btn-reveal {
  border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.08);
  color: #a855f7;
}
.sim-btn-reveal:hover {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.5);
}
.sim-btn-reset {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.08);
  color: #fbbf24;
}
.sim-btn-reset:hover {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.5);
}
.sim-vote-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* ---- Test drive button (primary CTA in edit mode) ---- */
.sim-btn-testdrive {
  background: rgba(34,211,238,0.08) !important;
  border-color: rgba(34,211,238,0.35) !important;
  color: #22d3ee !important;
}
.sim-btn-testdrive:hover {
  background: rgba(34,211,238,0.18) !important;
  border-color: rgba(34,211,238,0.5) !important;
}
/* Secondary simulate button (demoted, ghost style) */
.sim-btn-secondary {
  color: var(--text-dim) !important;
  border-color: rgba(255,255,255,0.08) !important;
  background: transparent !important;
  font-size: 0.65rem !important;
}
.sim-btn-secondary:hover {
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.04) !important;
}

/* ---- Rehearsal bar (presenter-style floating controls during test drive) ---- */
.rehearsal-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: auto;
}
.rehearsal-bar.disabled {
  opacity: 0.4;
  pointer-events: none;
}
/* Rehearsal-bar size overrides (base styles from presenter-controls.css) */
.rehearsal-bar .ctrl-group {
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
}
.rehearsal-bar .ctrl-btn {
  font-size: 0.65rem;
  padding: 6px 10px;
  border-radius: 8px;
}
.rehearsal-bar .sim-vote-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  padding: 0 6px;
  white-space: nowrap;
}
.rehearsal-seed-note {
  font-size: 11px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rehearsal-seed-note::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  animation: seedPulse 1s ease-in-out infinite;
}
@keyframes seedPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---- AI merge toast ---- */
.ai-toast {
  position: relative;
  margin: -4px auto 4px;
  z-index: 5;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.35);
  color: #22d3ee;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(14px);
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  max-height: 0;
  overflow: hidden;
}
.ai-toast.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 50px;
  margin: 4px auto 8px;
}
.pro-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(217,70,239,0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217,70,239,0.06), rgba(6,182,212,0.04));
}
.pro-toggle-row .settings-row-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.settings-row-hint { font-size: 11px; color: var(--text-mid); margin-top: 2px; }
.toggle {
  width: 36px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  position: relative; cursor: pointer; transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(16px); }

/* ---- Test drive phone pane (left column swap) ---- */
#test-drive-phone-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.phone-frame-v2 {
  width: 260px;
  min-height: 420px;
  max-height: 480px;
  flex: 1;
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1a2e, #0a0a14);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-notch-v2 {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 13px;
  z-index: 2;
}
.phone-screen-v2 {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a14, #0f0f1f);
  border-radius: 24px;
  padding: 44px 16px 16px;
  position: relative;
  overflow: hidden;
}
.drive-cta-bar {
  display: flex;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.cta-btn {
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-btn.cta-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.1);
  color: var(--text-dim);
}
.cta-btn.cta-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
.cta-btn.cta-share-real {
  flex: 1;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(217,70,239,0.3);
}
.cta-btn.cta-share-real:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(217,70,239,0.45);
}
.cta-btn.cta-share-real:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- CONCEPT B: Phone mockup ---- */
.phone-mockup-wrap {
  text-align: center;
}
.phone-mockup-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Test-drive phone callout — prominent speech-bubble affordance */
.phone-prompt-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, rgba(34,211,238,0.20), rgba(34,211,238,0.07));
  border: 1px solid rgba(34,211,238,0.42);
  border-radius: 14px;
  color: #67e8f9;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 0 28px rgba(34,211,238,0.20), inset 0 0 0 1px rgba(34,211,238,0.05);
  animation: phone-callout-pulse 2.4s ease-in-out infinite;
}
.phone-prompt-callout-arrow {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  animation: phone-callout-bounce 1.2s ease-in-out infinite;
}
@keyframes phone-callout-pulse {
  0%,100% { box-shadow: 0 0 22px rgba(34,211,238,0.16), inset 0 0 0 1px rgba(34,211,238,0.05); }
  50%     { box-shadow: 0 0 38px rgba(34,211,238,0.36), inset 0 0 0 1px rgba(34,211,238,0.08); }
}
@keyframes phone-callout-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-prompt-callout, .phone-prompt-callout-arrow { animation: none; }
}
.phone-frame {
  width: 100%;
  max-width: 240px;
  max-height: 500px;
  margin: 0 auto;
  border-radius: 32px;
  border: 2.5px solid rgba(255,255,255,0.08);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 30px rgba(6,182,212,0.04), inset 0 0 24px rgba(0,0,0,0.3);
}
.phone-notch-bar {
  width: 80px;
  height: 20px;
  background: #000;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}
.phone-screen-inner {
  padding: 12px;
  min-height: 280px;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-q-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin: 6px 0 12px;
  line-height: 1.3;
  word-break: break-word;
}
.phone-q-text.empty {
  color: rgba(255,255,255,0.15);
  font-style: italic;
  font-weight: 400;
}
.phone-choices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.phone-choice-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
}
.phone-choice-pill.empty {
  color: rgba(255,255,255,0.15);
  border-style: dashed;
}
.phone-overflow-indicator {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  padding: 4px 0;
}
.phone-submit-btn {
  margin-top: auto;
  padding: 10px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  pointer-events: none;
}
.phone-branding-text {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.15);
  text-align: center;
  margin-top: 6px;
}
.phone-word-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-word-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}
.phone-word-hint {
  text-align: center;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
  font-weight: 400;
}

/* ---- Auth CTA bar + launch hint: HIDDEN ---- */
/* Auth is now gated at launch time, not a persistent banner.
   Original styles preserved below (commented out) for easy revival. */
.create-auth-cta-bar { display: none !important; }
.launch-auth-hint   { display: none !important; }
/* Sibling nav offset no longer needed with bar hidden */
/* .create-auth-cta-bar ~ main nav { top: 42px; } */

/*
.create-auth-cta-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 6px 44px 6px 16px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid #f59e0b;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-display); font-size: 0.75rem;
  color: rgba(255,255,255,0.6); transition: transform 0.3s ease;
}
.create-auth-cta-bar.dismissed { transform: translateY(-100%); }
.create-auth-cta-bar .cta-icon { font-size: 0.88rem; }
.create-auth-cta-bar .cta-action { color: #22d3ee; font-weight: 600; cursor: pointer; text-decoration: none; }
.create-auth-cta-bar .cta-action:hover { text-decoration: underline; }
.create-auth-cta-bar .cta-close { position: absolute; right: 10px; background: none; border: none; color: rgba(255,255,255,0.35); cursor: pointer; font-size: 14px; padding: 4px; }
.create-auth-cta-bar ~ main nav { top: 42px; }

.launch-auth-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,158,11,0.15);
  font-family: var(--font-display); font-size: 0.78rem;
  color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.launch-auth-hint .hint-icon { flex-shrink: 0; }
.launch-auth-hint .hint-link { color: #22d3ee; font-weight: 600; text-decoration: none; white-space: nowrap; margin-left: auto; }
.launch-auth-hint .hint-link:hover { text-decoration: underline; }
*/

/* ---- CONCEPT B: Auth CTA in success ---- */
.success-auth-cta {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  text-align: center;
}
.success-auth-cta .expiry-text {
  font-size: 0.82rem;
  color: #f59e0b;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 500;
}
.success-auth-cta .headline {
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
}
.success-auth-cta .benefits {
  text-align: left;
  margin: 12px auto;
  max-width: 300px;
}
.success-auth-cta .benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
  font-family: var(--font-display);
}
.success-auth-cta .benefit-check { color: #10b981; font-weight: 700; }
.success-auth-cta .skip-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
}
.success-auth-cta .skip-btn:hover { color: rgba(255,255,255,0.6); }

/* ---- Viz header (drive-mode right pane) ---- */
.viz-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(to bottom, var(--bg-elev, #0f0f1f) 60%, transparent);
  opacity: 0;
  transition: opacity 0.3s 0.1s;
  pointer-events: none;
}
.viz-header.show { opacity: 1; pointer-events: auto; }

/* ---- AI toast position in drive mode (above footer controls) ---- */
.drive-mode .ai-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin: 0;
}
.drive-mode .ai-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---- Phone back button ---- */
.phone-back-btn {
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  white-space: nowrap;
}
.phone-back-btn:hover {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
}

/* ---- Compose scrollable area ---- */
#compose-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.compose-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.compose-scroll::-webkit-scrollbar {
  width: 6px;
}
.compose-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.compose-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.compose-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}
.edit-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-testdrive {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
  color: #0a0e1a;
  transition: all 0.2s;
  box-shadow: 0 0 25px rgba(6,182,212,0.3), 0 0 60px rgba(6,182,212,0.1);
}
.btn-testdrive:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  box-shadow: 0 8px 32px rgba(6,182,212,0.3), 0 0 60px rgba(6,182,212,0.15);
}
.btn-launch--subtle {
  background: transparent;
  border: none;
  color: var(--text-dim, rgba(255,255,255,0.35));
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
  width: auto;
  box-shadow: none;
}
.btn-launch--subtle:hover {
  color: var(--text, rgba(255,255,255,0.85));
  background: transparent;
  box-shadow: none;
}

/* Hide the old edit-mode phone mockup in right pane */
#phone-mockup-edit { display: none; }

/* ---- Preview viz container ---- */
.preview-viz-container { pointer-events: none; }

/* Hide footer on create page (viewport-filling layout) */
body footer { display: none; }

/* ---- Draft-restored toast ---- */
.draft-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated, #1e293b); color: var(--text-secondary, rgba(255,255,255,0.7));
  padding: 10px 20px; border-radius: var(--r-pill, 999px);
  font-size: var(--fs-xs, 0.75rem); border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  opacity: 0; transition: opacity 0.3s;
  z-index: 200; pointer-events: none;
}
.draft-toast.show { opacity: 1; }

/*  Launch loading overlay (#24)  visible immediately on Launch click  */
.launch-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,14,26,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  animation: launchLoadingFadeIn 180ms ease-out;
}
.launch-loading-overlay.show { display: flex; }
.launch-loading-overlay__spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: launchLoadingSpin 800ms linear infinite;
}
.launch-loading-overlay__text {
  font: 500 14px var(--font-display);
  color: var(--text);
  letter-spacing: 0.02em;
}
.launch-loading-overlay__hint {
  font: 400 12px var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
@keyframes launchLoadingSpin { to { transform: rotate(360deg); } }
@keyframes launchLoadingFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .launch-loading-overlay { animation: none; }
  .launch-loading-overlay__spinner { animation-duration: 1600ms; }
}

/* ---- Event-readiness pre-flight checklist (Variant A) ---- */
.preflight {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.04) 0%, rgba(103, 232, 249, 0.01) 100%);
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  text-align: left;
  overflow: hidden;
  transition: background 200ms ease;
}
.preflight:hover { background: linear-gradient(180deg, rgba(103, 232, 249, 0.06) 0%, rgba(103, 232, 249, 0.02) 100%); }
.preflight summary { list-style: none; }
.preflight summary::-webkit-details-marker { display: none; }
.preflight__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.preflight__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(103, 232, 249, 0.10);
  border: 1px solid rgba(103, 232, 249, 0.25);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.preflight__icon svg { width: 18px; height: 18px; stroke: #67e8f9; }
.preflight__text { flex: 1; min-width: 0; }
.preflight__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
}
.preflight__sub {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.preflight__chev {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.55);
  flex: 0 0 auto;
  transition: transform 220ms ease;
}
.preflight[open] .preflight__chev { transform: rotate(180deg); }
.preflight__body {
  padding: 4px 20px 20px;
  border-top: 1px solid rgba(103, 232, 249, 0.10);
  margin-top: 4px;
}
.preflight__lede {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin: 14px 0;
  line-height: 1.55;
}
.preflight__lede strong { color: #67e8f9; font-weight: 600; }
.preflight__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
@media (max-width: 540px) {
  .preflight__list { grid-template-columns: 1fr; }
}
.preflight__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.preflight__check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
  flex: 0 0 auto;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
}
.preflight__check svg {
  width: 12px; height: 12px;
  stroke: #0a0e1a;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 120ms ease;
}
.preflight__item--done .preflight__check {
  background: #67e8f9;
  border-color: #67e8f9;
}
.preflight__item--done .preflight__check svg { opacity: 1; }
.preflight__item--done {
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(156, 163, 175, 0.4);
  text-decoration-thickness: 1px;
}
.preflight__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.preflight__progress {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.preflight__progress strong { color: #67e8f9; font-weight: 600; }
.preflight__more {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.preflight__more:hover { color: #67e8f9; text-decoration: underline; }
