/* Compa Editor — Styles
   ====================== */

/* ── Design Tokens ────────────────────────── */

:root {
  --bg-base: #F4F1EB;
  --bg-card: #FFFFFF;
  --bg-surface: #EDE8E2;
  --bg-input: #F4F1EB;
  --bg-sidebar: #1A1D1E;
  --bg-sidebar-hover: rgba(255,255,255,0.07);
  --bg-sidebar-active: rgba(255,255,255,0.12);
  --bg-overlay: rgba(0,0,0,0.45);

  --accent: #A27B5B;
  --accent-light: #C9A282;
  --accent-dark: #7A5A3E;
  --accent-subtle: rgba(162,123,91,0.08);
  --accent-glow: rgba(162,123,91,0.25);
  --accent-gradient: linear-gradient(135deg, #C9A282 0%, #A27B5B 50%, #7A5A3E 100%);

  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #9B9B9B;
  --text-on-accent: #FFFFFF;
  --text-sidebar: #D4CFC8;
  --text-sidebar-muted: #7A756E;

  --success: #2D8659;
  --warning: #C17A1A;
  --danger: #C53030;
  --gold: #B8860B;

  --border: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.13);
  --border-sidebar: rgba(255,255,255,0.08);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.08);
  --shadow-accent: 0 4px 16px rgba(162,123,91,0.25);

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-med: 0.25s ease;
}

/* ── Reset & Base ─────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Auth Screen ──────────────────────────── */

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg-base);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-card__logo {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card__subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
  line-height: 1.5;
}

.auth-card__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-card__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 0 0 1px var(--accent);
}

.auth-card__input::placeholder { color: var(--text-muted); }

.auth-card__btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.01em;
}

.auth-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(162,123,91,0.35);
}

.auth-card__btn:active { transform: scale(0.98); box-shadow: var(--shadow-sm); }
.auth-card__btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-card__msg { margin-top: 20px; font-size: 14px; color: var(--success); font-weight: 600; }
.auth-card__error { margin-top: 20px; font-size: 14px; color: var(--danger); font-weight: 500; }

.auth-card__toggle {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-card__toggle:hover { color: var(--accent-dark); }

/* ── New Studio ──────────────────────────── */

.new-studio__slug-row { display: flex; align-items: center; gap: 0; margin-top: 12px; }

.new-studio__slug-prefix {
  padding: 14px 0 14px 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.new-studio__slug-input { border-radius: 0 var(--radius-xs) var(--radius-xs) 0 !important; margin-top: 0 !important; }

/* ── Loading Screen ──────────────────────── */

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-secondary);
  font-size: 18px;
}

.loading-screen__spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Shared Fields ───────────────────────── */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field--half { flex: 1; }
.field-row { display: flex; gap: 14px; }

.field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 0 0 1px var(--accent);
}

.field__input::placeholder { color: var(--text-muted); }
.field__input--inline { flex: 1; }
.field__input--sm { max-width: 140px; }

/* ── Buttons ─────────────────────────────── */

.btn {
  padding: 12px 20px;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(162,123,91,0.3);
}

.btn:active { transform: scale(0.98); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-xs); }

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--danger { background: var(--danger); box-shadow: 0 4px 16px rgba(197,48,48,0.2); }
.btn--ghost { background: transparent; color: var(--text-secondary); font-weight: 500; box-shadow: none; }
.btn--ghost:hover { color: var(--text-primary); background: transparent; transform: none; box-shadow: none; }

/* ── Editor Shell Layout ─────────────────── */

.editor-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────── */

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1A1D1E 0%, #2C3639 100%);
  border-right: 1px solid var(--border-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 0 0 2px 2px;
}

.sidebar__studio {
  padding: 28px 24px 24px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: #F0ECE8;
  border-bottom: 1px solid var(--border-sidebar);
  letter-spacing: -0.01em;
}

.sidebar__section-label {
  padding: 20px 24px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-sidebar-muted);
}

.sidebar__list { flex: 1; overflow-y: auto; }

.sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-sidebar);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
  border-radius: 0;
}

.sidebar__item:hover { background: var(--bg-sidebar-hover); }

.sidebar__item--active {
  background: var(--bg-sidebar-active);
  color: #FFFFFF;
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.sidebar__item--add { color: var(--accent-light); font-weight: 600; }

.sidebar__status {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar__status--draft { background: rgba(122,117,110,0.3); color: var(--text-sidebar-muted); }
.sidebar__status--published { background: rgba(45,134,89,0.2); color: #4ADE80; }

.sidebar__user {
  padding: 20px 24px;
  border-top: 1px solid var(--border-sidebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__email {
  font-size: 12px;
  color: var(--text-sidebar-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__user .btn--ghost { color: var(--text-sidebar-muted); }
.sidebar__user .btn--ghost:hover { color: var(--text-sidebar); }

/* ── Editor Main ─────────────────────────── */

.editor-main { flex: 1; overflow-y: auto; }

.editor-main__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 500;
}

.editor-main__tabs {
  display: flex;
  gap: 6px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  background: var(--bg-card);
}

.editor-main__tab {
  padding: 10px 22px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.editor-main__tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.editor-main__tab--active {
  color: var(--accent-dark);
  background: var(--accent-subtle);
  border-color: rgba(162,123,91,0.2);
  font-weight: 700;
}

/* ======================================================
   WIZARD
   ====================================================== */

.wizard { display: flex; flex: 1; min-height: 0; }

/* ── Progress Rail ────────────────────────── */

.wizard__rail {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  flex-shrink: 0;
  box-shadow: 2px 0 12px rgba(0,0,0,0.02);
}

.wizard__rail-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.wizard__rail-step:hover { background: var(--bg-surface); }

.wizard__rail-step--active {
  color: var(--text-primary);
  font-weight: 700;
  background: var(--accent-subtle);
}

.wizard__rail-step--done { color: var(--success); font-weight: 600; }

.wizard__rail-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  background: var(--bg-surface);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.wizard__rail-step--active .wizard__rail-num {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  box-shadow: 0 3px 10px rgba(162,123,91,0.3);
}

.wizard__rail-step--done .wizard__rail-num {
  background: rgba(45,134,89,0.15);
  color: var(--success);
}

.wizard__rail-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ── Wizard Content ──────────────────────── */

.wizard__content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.wizard__nav {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── Wizard Step ─────────────────────────── */

.wizard-step__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.wizard-step__desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.wizard-step__section {
  margin-bottom: 32px;
}

.wizard-step__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wizard-step__section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.wizard-step__section-header .wizard-step__section-title { margin-bottom: 0; }

.wizard-step__fields { max-width: 640px; }
.wizard-step__empty { color: var(--text-muted); font-size: 14px; padding: 20px 0; }

/* ── Day Row ─────────────────────────────── */

.day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  max-width: 500px;
}

.day-row__key {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-width: 60px;
  font-weight: 500;
}

/* ======================================================
   STEP 2: DANCER ROSTER
   ====================================================== */

.roster-add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dancer-color-pick {
  width: 36px;
  height: 36px;
  padding: 3px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.dancer-color-pick:hover { border-color: var(--accent); }

.roster-import { margin-bottom: 24px; }

.roster-import__paste {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roster-import__textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.roster-list { display: flex; flex-direction: column; gap: 6px; }

.roster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.roster-row:hover { border-color: var(--accent-light); }
.roster-row--inactive { opacity: 0.5; }
.roster-row__name { width: 100px; }
.roster-row__age { width: 80px; }
.roster-row__guardian { width: 120px; }
.roster-row__phone { width: 120px; font-family: var(--font-mono); font-size: 12px; }

/* ======================================================
   STEP 3: SET LIST
   ====================================================== */

.setlist__day-tabs { display: flex; gap: 6px; margin-bottom: 20px; }

.setlist__day-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.setlist__day-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.setlist__day-tab--active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}

.setlist__toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.setlist__empty, .setlist__loading { color: var(--text-muted); font-size: 14px; padding: 28px 0; }
.setlist__routines { display: flex; flex-direction: column; gap: 8px; }

/* ── Routine Row ─────────────────────────── */

.routine-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.routine-row:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

.routine-row:active { cursor: grabbing; }

.routine-row--break {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-style: dashed;
  border-left: 4px dashed var(--border-strong);
}

.routine-row--drag-target { border-top: 3px solid var(--accent) !important; background: var(--accent-subtle); }

.routine-row__grip {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 6px;
  cursor: grab;
  user-select: none;
  opacity: 0.25;
  transition: opacity var(--transition-fast);
}

.routine-row:hover .routine-row__grip { opacity: 0.7; }

.routine-row__main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
}

.routine-row__field {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.routine-row__field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.routine-row__field::placeholder { color: var(--text-muted); }
.routine-row__field--time { width: 80px; font-family: var(--font-mono); }
.routine-row__field--number { width: 50px; font-family: var(--font-mono); }
.routine-row__field--name { flex: 1; min-width: 120px; font-weight: 600; }
.routine-row__field--label { flex: 1; }

.routine-row__dancers { display: flex; gap: 5px; flex-wrap: wrap; }

.routine-row__dancer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.routine-row__dancer-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  color: inherit;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.routine-row__dancer-remove:hover { opacity: 1; }

.routine-row__completeness {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.routine-row__expand {
  color: var(--text-muted);
  font-size: 11px;
  padding: 0 6px;
  flex-shrink: 0;
}

.routine-row__details {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: detailsFade 0.2s ease;
  background: rgba(244,241,235,0.4);
}

@keyframes detailsFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.routine-row__detail-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.routine-row__detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.routine-row__costume-header {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ======================================================
   STEP 4: COSTUME DETAILS
   ====================================================== */

.costume-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.costume-card:hover { box-shadow: var(--shadow-md); }

.costume-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.costume-card__name { font-weight: 700; font-size: 16px; }
.costume-card__number { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.costume-card__dancers { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }

.costume-card__progress {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.costume-card__progress--done { background: rgba(45,134,89,0.1); color: var(--success); }

.costume-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ======================================================
   STEP 5: REVIEW & PUBLISH
   ====================================================== */

.review-warnings {
  background: rgba(193,122,26,0.06);
  border: 1.5px solid rgba(193,122,26,0.18);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 28px;
}

.review-warnings__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 10px;
}

.review-warnings__item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.review-summary {
  margin-bottom: 28px;
}

.review-summary__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}

.review-summary__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.review-summary__row:hover { box-shadow: var(--shadow-md); }

.review-summary__time { font-family: var(--font-mono); font-size: 12px; min-width: 65px; color: var(--text-secondary); }
.review-summary__number { font-family: var(--font-mono); font-size: 12px; min-width: 40px; color: var(--text-muted); }
.review-summary__name { flex: 1; font-weight: 700; }
.review-summary__dancers { color: var(--text-secondary); }
.review-summary__day { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }

.review-actions {
  display: flex;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.review-actions__publish {
  padding: 16px 36px;
  font-size: 16px;
}

/* ── Publish Done ─────────────────────────── */

.publish-done { text-align: center; padding: 72px 0; }
.publish-done__icon { font-size: 64px; margin-bottom: 20px; }

.publish-done__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 14px;
}

.publish-done__desc { color: var(--text-secondary); font-size: 16px; margin-bottom: 20px; line-height: 1.5; }

.publish-done__url {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 20px;
  background-color: var(--accent-subtle);
  border: 1.5px solid rgba(162,123,91,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.publish-done__pin { color: var(--text-muted); font-size: 14px; }

/* ======================================================
   LIVE EDITOR
   ====================================================== */

.live-editor { padding: 28px; }

.live-editor__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.live-editor__header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

.live-editor__status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(45,134,89,0.15);
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-editor__time { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.live-editor__list { display: flex; flex-direction: column; gap: 8px; }

.live-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.live-row:hover { box-shadow: var(--shadow-md); }

.live-row--break {
  background: var(--bg-surface);
  border-style: dashed;
  border-left: 4px dashed var(--border-strong);
  color: var(--text-muted);
}

.live-row__time { font-family: var(--font-mono); font-size: 13px; min-width: 65px; color: var(--text-secondary); }
.live-row__number { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); min-width: 35px; }
.live-row__name { flex: 1; font-weight: 700; }
.live-row__dancers { color: var(--text-secondary); font-size: 13px; }
.live-row__label { font-weight: 600; font-style: italic; }

/* ── Alert Button ─────────────────────────── */

.btn--alert {
  background: transparent;
  font-size: 14px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.btn--alert:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: none;
  box-shadow: none;
}

/* ======================================================
   ALERT COMPOSER
   ====================================================== */

.alert-composer-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 950;
  animation: fadeIn 0.15s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.alert-composer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px;
  width: 100%;
  max-width: 580px;
  animation: slideUp 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.alert-composer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.alert-composer__header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
}

.alert-composer__types { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.alert-composer__type-btn {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alert-composer__type-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.alert-composer__type-btn--active {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}

.alert-composer__textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.alert-composer__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.alert-composer__textarea::placeholder { color: var(--text-muted); }

.alert-composer__channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
}

.alert-composer__channel-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
}

.alert-composer__channel-toggle input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.alert-composer__sub-count { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.alert-composer__footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 20px; }

.alert-composer__send {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}

.alert-composer__sent {
  text-align: center;
  padding: 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
}

/* ── Animations ──────────────────────────── */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Team Panel ──────────────────────────── */

.team-panel { padding: 40px; max-width: 720px; }

.team-invite {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.team-section { margin-bottom: 32px; }

.team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.team-row:hover { box-shadow: var(--shadow-md); }

.team-row__email { flex: 1; font-weight: 600; }

.team-row__role {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-row__role--owner { background: rgba(184,134,11,0.12); color: var(--gold); }
.team-row__role--admin { background: rgba(162,123,91,0.12); color: var(--accent); }
.team-row__role--editor { background: rgba(45,134,89,0.12); color: var(--success); }
.team-row__role--viewer { background: rgba(155,155,155,0.12); color: var(--text-muted); }

.team-row__role-select {
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
}

.team-invite-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.team-invite-row__email { flex: 1; }

.team-invite-row__pending {
  font-size: 11px;
  color: var(--warning);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Wizard Rail Badge ───────────────────── */

.wizard__rail-badge {
  margin-top: auto;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  text-align: center;
}
