/* ─── Reel Chopper v5 — locked Pro Workbench + Render Queue + Desktop Handoff
   Design system: REC palette · Inter · Apple type scale · 320ms cubic-bezier
─── */

@font-face {
  font-family: 'Archivo Black';
  src: url('/fonts/ArchivoBlack-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block; /* block until loaded — no FOUT on overlay text */
}

:root {
  --bg:        #15171a;
  --panel:     #1c1f24;
  --panel2:    #24282f;
  --panel-glass: rgba(28, 31, 36, 0.72);
  --ink:       #f0eee8;
  --sub:       #9aa0a8;
  --border:    rgba(240,238,232,0.06);
  --border-strong: #2f3540;
  --accent:    #ffa726;
  --accent-2:  #ff7e00;
  --action:    #0A84FF;
  --success:   #30D158;
  --warn:      #FF9F0A;
  --danger:    #FF453A;
  --shadow-strong: 0 24px 56px -16px rgba(0,0,0,0.65);
  --shadow-soft: 0 2px 8px -2px rgba(0,0,0,0.35);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --safe-zone: rgba(255,167,38,0.18);
}

[data-theme="light"] {
  --bg:        #f0eee8;
  --panel:     #FFFFFF;
  --panel2:    #F2F2F4;
  --panel-glass: rgba(255, 255, 255, 0.72);
  --ink:       #1D1D1F;
  --sub:       #6E6E73;
  --border:    rgba(0,0,0,0.08);
  --border-strong: #D2D2D7;
  --accent:    #B58900;
  --accent-2:  #8C6A00;
  --action:    #007AFF;
  --success:   #248A3D;
  --warn:      #C04C00;
  --danger:    #C72C24;
  --shadow-strong: 0 16px 40px -10px rgba(0,0,0,0.18);
  --shadow-soft: 0 1px 4px -1px rgba(0,0,0,0.10);
  --safe-zone: rgba(181,137,0,0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.005em;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body, .panel, .btn, [data-theme] {
  transition:
    background-color 320ms var(--ease),
    color 320ms var(--ease),
    border-color 320ms var(--ease);
}

/* ─── Type scale ─── */
h1, h2, h3, h4 { margin: 0; }
h1 { font-weight: 700; letter-spacing: -0.024em; line-height: 1.12; }
.text-large-title { font-size: 28px; line-height: 1.10; font-weight: 700; letter-spacing: -0.028em; }
.text-title-3     { font-size: 15px; line-height: 1.22; font-weight: 600; letter-spacing: -0.014em; }
.text-body        { font-size: 14px; line-height: 1.45; }
.text-caption     { font-size: 11px; line-height: 1.40; color: var(--sub); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }
.text-sub { color: var(--sub); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

/* ─── Layout (locked Pro Workbench) ─── */
.app {
  display: grid;
  grid-template-rows: 56px 1fr 64px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

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

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.018em;
  font-size: 15px;
}

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

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.icon-btn:hover { background: var(--panel2); transform: translateY(-1px); }

/* Workbench (main grid) */
.workbench {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1px;
  background: var(--border);
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  .workbench { grid-template-columns: 1fr; }
}

/* Canvas (left, big 9:16 preview) */
.canvas {
  position: relative;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.canvas-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.canvas-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Safe zone overlays (1080 of 1920 mobile UI safe area) */
.safe-zones {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.safe-zones.show { opacity: 1; }

.safe-zone-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 12%;
  background: var(--safe-zone);
  border-top: 1px dashed var(--accent);
  border-bottom: 1px dashed var(--accent);
}

.safe-zone-band.top { top: 0; }
.safe-zone-band.bottom { bottom: 0; }

/* On-canvas text overlays (draggable) */
.overlay-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Archivo Black', sans-serif;
  text-align: center;
  cursor: grab;
  user-select: none;
  -webkit-text-stroke: 6px black;
  paint-order: stroke fill;
  line-height: 1.0;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.overlay-text:active { cursor: grabbing; }

.overlay-text.editing {
  outline: 2px dashed var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.overlay-text[contenteditable] {
  -webkit-user-modify: read-write-plaintext-only;
}

#textTop {
  top: 7%;
  font-size: clamp(20px, 4.8vh, 56px);
}
#textBottom {
  top: 19%;
  font-size: clamp(16px, 3.6vh, 42px);
}
#ctaOverlay {
  bottom: 9%;
  top: auto;
  font-size: clamp(11px, 2.2vh, 24px);
  letter-spacing: 0.06em;
}

.banned-warn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  display: none;
  z-index: 5;
}

.banned-warn.show { display: inline-flex; align-items: center; gap: 6px; }

/* Canvas empty state (drop here) */
.canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  color: var(--sub);
}

.canvas-empty-icon {
  font-size: 48px;
  margin-bottom: 4px;
  opacity: 0.7;
}

.canvas-empty-cta {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.canvas-empty-sub {
  font-size: 13px;
  max-width: 360px;
}

.canvas-empty-shortcut {
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  color: var(--sub);
}

/* Inspector (right column) */
.inspector {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.inspector-section {
  margin-bottom: 18px;
}

.inspector-section:last-child { margin-bottom: 0; }

.inspector-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Inputs */
.input, .select {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-row > * { flex: 1; }
.form-label { font-size: 11px; font-weight: 500; color: var(--sub); margin-bottom: 4px; display: block; letter-spacing: 0.02em; text-transform: uppercase; }

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row .range-val { font-size: 12px; color: var(--sub); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  width: 100%;
}

.segmented button {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.segmented button.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--panel2);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
  font-family: inherit;
}

.btn:hover { background: color-mix(in srgb, var(--ink) 6%, var(--panel2)); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1a1206;
  border: none;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffb446, #ff9216);
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-block { width: 100%; padding: 13px; font-size: 14px; }

/* Bottom dock (timeline + actions) */
.dock {
  border-top: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
}

.timeline {
  flex: 1;
  position: relative;
  height: 32px;
  border-radius: 6px;
  background: var(--panel2);
  cursor: pointer;
  overflow: hidden;
}

.timeline-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ink) 3%, transparent));
}

.timeline-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
  pointer-events: none;
  transform: translateX(-1px);
}

.dock-meta {
  font-size: 11px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: right;
}

/* Hover overlay (drag-drop reveal) */
.hover-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.hover-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.hover-overlay-icon {
  font-size: 72px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

.hover-overlay-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.hover-overlay-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--sub);
}

/* Progress */
.progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 200ms var(--ease);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-strong);
  z-index: 100;
  display: none;
  animation: toast-in 220ms var(--ease);
}

.toast.show { display: block; }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

input[type=file] { display: none; }

/* Render status pill (bottom-left of canvas) */
.status-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 12px;
  background: var(--panel-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  display: none;
  align-items: center;
  gap: 6px;
}

.status-pill.show { display: inline-flex; }
.status-pill .spin { display: inline-block; animation: spin 1.1s linear infinite; }

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

/* Output download bar (appears when render done) */
.output-bar {
  position: absolute;
  right: 18px;
  top: 18px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.output-bar.show { display: inline-flex; }

.output-bar-text { font-size: 12px; font-weight: 600; }

/* Font bundle — burn-capable (TTF served from /fonts/) */
@font-face { font-family: 'rc-archivo';    src: url('/fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'rc-anton';      src: url('/fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'rc-montserrat'; src: url('/fonts/Montserrat-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'rc-bebas';      src: url('/fonts/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'rc-oswald';     src: url('/fonts/Oswald-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'rc-inter';      src: url('/fonts/Inter-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

/* Preview-only fonts (loaded lazily from Google Fonts when picked) */
.overlay-text[data-font="archivo"]    { font-family: 'rc-archivo', sans-serif; }
.overlay-text[data-font="anton"]      { font-family: 'rc-anton', sans-serif; letter-spacing: 0.01em; }
.overlay-text[data-font="montserrat"] { font-family: 'rc-montserrat', 'Montserrat', sans-serif; font-weight: 900; }
.overlay-text[data-font="bebas"]      { font-family: 'rc-bebas', 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
.overlay-text[data-font="oswald"]     { font-family: 'rc-oswald', 'Oswald', sans-serif; font-weight: 700; }
.overlay-text[data-font="inter"]      { font-family: 'rc-inter', 'Inter', sans-serif; font-weight: 900; }
.overlay-text[data-font="poppins"]    { font-family: 'Poppins', sans-serif; font-weight: 700; }
.overlay-text[data-font="rubik"]      { font-family: 'Rubik', sans-serif; font-weight: 900; }
.overlay-text[data-font="dmserif"]    { font-family: 'DM Serif Display', serif; font-style: italic; }
.overlay-text[data-font="bungee"]     { font-family: 'Bungee', sans-serif; }

/* Filename row: editable input + reset-to-auto button */
.filename-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.filename-row .input { flex: 1; min-width: 0; }
.icon-btn-sm {
  flex: 0 0 auto;
  width: 34px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--sub);
}
.icon-btn-sm:hover { color: var(--ink); }

/* V23 — Pro Workbench layout (vertical: canvas top, inspector horizontal scroll bottom) */
body.pro-workbench .workbench { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
body.pro-workbench .inspector {
  display: flex; flex-direction: row; gap: 12px;
  overflow-x: auto; max-height: 280px;
  border-left: none; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  padding: 12px;
}
body.pro-workbench .inspector-section {
  flex: 0 0 280px; min-width: 280px; margin-bottom: 0;
  border-bottom: none; border-right: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  padding-right: 12px;
}

/* V25 — Thumbnail strip below timeline */
.thumb-strip { display: flex; flex-direction: row; overflow-x: auto; background: var(--panel, #1f2226); }
.thumb-strip.show { display: flex !important; }
.thumb-strip img { width: 80px; height: 45px; object-fit: cover; cursor: pointer; opacity: 0.65; transition: opacity 0.15s, outline 0.15s; border-radius: 3px; }
.thumb-strip img:hover { opacity: 1; }
.thumb-strip img.current { opacity: 1; outline: 2px solid var(--warn, #c4642f); }

/* V17 — Cross-post modal tabs */
.cp-tab { flex: 1; padding: 6px 8px; font-size: 12px; opacity: 0.55; }
.cp-tab.active { opacity: 1; background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* V14 — Waveform under timeline */
.timeline { position: relative; min-height: 44px; }
.timeline-waveform {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}
.timeline-bar, .timeline-segment, .timeline-playhead { z-index: 1; }
.timeline.snap-off .timeline-playhead { background: var(--warn, #c4642f); }

/* V13 — Gemini emoji staging bar */
.emoji-staging {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.emoji-staging-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--sub);
}
.emoji-staging-privacy { font-size: 10px; opacity: 0.7; }
.emoji-staging-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.emoji-staging-actions .btn {
  padding: 5px 6px; font-size: 11px; width: 100%;
}

/* V12 — Auto-tighten summary modal */
.tighten-modal {
  position: fixed; inset: 0; z-index: 320;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(10px);
}
.tighten-modal.show { display: flex; }
.tighten-modal-panel {
  background: var(--panel, #1f2226); color: var(--ink);
  padding: 22px; border-radius: 14px; min-width: 440px; max-width: 560px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.tighten-summary {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 10px; font-size: 13px;
}
.tighten-summary .row { display: flex; justify-content: space-between; align-items: center; }
.tighten-summary .row .label { color: var(--sub); }
.tighten-summary .row .value { font-weight: 600; }
.tighten-summary .row.saved .value { color: var(--success, #2D8A4E); }
.tighten-actions { display: flex; flex-direction: column; gap: 8px; }
.tighten-actions .btn { width: 100%; padding: 10px; font-size: 12px; }
body[data-tighten-preview="on"] .canvas-frame { outline: 2px dashed var(--warn, #c4642f); outline-offset: -2px; }

/* V9 — Live color-grade preview (approximate FFmpeg recipe via CSS filter) */
body[data-grade="off"]       .canvas-frame video { filter: none; }
body[data-grade="calm"]      .canvas-frame video { filter: saturate(0.85) contrast(1.05) brightness(1.03); }
body[data-grade="punchy"]    .canvas-frame video { filter: saturate(1.30) contrast(1.20) brightness(1.05); }
body[data-grade="cinematic"] .canvas-frame video { filter: saturate(1.15) contrast(1.12) brightness(1.04) hue-rotate(-4deg); }

/* V9 — Emoji motion (default ON) */
body[data-emoji-motion="on"] .emoji-column.show .emoji-cell {
  animation: rc-emoji-float 3.2s ease-in-out infinite;
}
body[data-emoji-motion="on"] .emoji-column-left  .emoji-cell:nth-child(1) { animation-delay: 0s; }
body[data-emoji-motion="on"] .emoji-column-left  .emoji-cell:nth-child(2) { animation-delay: 0.4s; }
body[data-emoji-motion="on"] .emoji-column-left  .emoji-cell:nth-child(3) { animation-delay: 0.8s; }
body[data-emoji-motion="on"] .emoji-column-left  .emoji-cell:nth-child(4) { animation-delay: 1.2s; }
body[data-emoji-motion="on"] .emoji-column-right .emoji-cell:nth-child(1) { animation-delay: 0.2s; }
body[data-emoji-motion="on"] .emoji-column-right .emoji-cell:nth-child(2) { animation-delay: 0.6s; }
body[data-emoji-motion="on"] .emoji-column-right .emoji-cell:nth-child(3) { animation-delay: 1.0s; }
body[data-emoji-motion="on"] .emoji-column-right .emoji-cell:nth-child(4) { animation-delay: 1.4s; }
@keyframes rc-emoji-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
  50%      { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 4deg)) scale(1.08); }
}

/* V8 — Emoji columns rendered along left/right edges of the 9:16 canvas */
.emoji-column {
  position: absolute;
  top: 12%;
  bottom: 22%;
  width: 11%;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  z-index: 4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.4);
}
.emoji-column.show { display: flex; }
.emoji-column-left  { left: 0; }
.emoji-column-right { right: 0; }
.emoji-column .emoji-cell {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  transform: rotate(var(--rot, 0deg));
  opacity: 0.96;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* When previewing rendered output, give a subtle hint at the canvas frame */
body.preview-output .canvas-frame {
  outline: 2px solid var(--success);
  outline-offset: -2px;
}
body.preview-output .safe-zones,
body.preview-output .overlay-text,
body.preview-output .banned-warn {
  display: none !important;
}

/* Keyboard map dialog */
.kbmap {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.kbmap.show { display: flex; }

.kbmap-panel {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 28px;
  width: min(420px, 92vw);
  box-shadow: var(--shadow-strong);
}

.kbmap-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.kbmap-row:last-child { border-bottom: none; }

.kbd {
  display: inline-block;
  background: var(--panel2);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: 'SF Mono', ui-monospace, monospace;
}

/* Mobile fallback — stack workbench */
@media (max-width: 760px) {
  .workbench { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .inspector { max-height: 50vh; }
  .canvas { padding: 12px; }
  .topbar { padding: 0 12px; }
  .privacy-badge { display: none; } /* show only the dot via topbar */
  .dock { padding: 0 12px; }
}

/* ─── Queue drawer (V4) ──────────────────────────────────────────────── */
.queue-drawer {
  position: fixed;
  right: 0;
  top: 56px;
  bottom: 64px;
  width: 360px;
  max-width: 92vw;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px -16px rgba(0,0,0,0.45);
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  z-index: 90;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.queue-drawer.show { transform: translateX(0); }

.queue-header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-count {
  font-size: 11px;
  background: var(--panel2);
  color: var(--sub);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}

.queue-item {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.queue-item.rendering { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel2)); }
.queue-item.done { border-color: var(--success); }
.queue-item.error { border-color: var(--danger); }

.qi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.qi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qi-meta {
  font-size: 11px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}

.qi-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.qi-status.queued { background: var(--panel); color: var(--sub); }
.qi-status.rendering { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.qi-status.done { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.qi-status.error { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.qi-progress {
  height: 3px;
  background: var(--panel);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.qi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 200ms var(--ease);
}

.qi-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.qi-actions button {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background-color 180ms var(--ease);
}
.qi-actions button:hover { background: color-mix(in srgb, var(--ink) 8%, var(--panel)); }
.qi-actions button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.qi-actions button.primary { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); font-weight: 600; }

.queue-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-footer .btn { padding: 9px; font-size: 12px; }

.queue-toggle {
  position: relative;
}
.queue-toggle .queue-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #1a1206;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .queue-drawer { top: 0; bottom: 0; width: 100vw; }
}

/* ─── Preflight warning (V5) ─────────────────────────────────────────── */
.preflight {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--warn) 12%, var(--panel));
  border: 1px solid var(--warn);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink);
  display: none;
  z-index: 8;
  box-shadow: var(--shadow-soft);
}

.preflight.show { display: block; }
.preflight strong { color: var(--warn); }

.preflight-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.preflight-actions button {
  padding: 5px 10px;
  font-size: 11px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

/* ─── Handoff modal (V5 — Desktop fallback) ──────────────────────────── */
.handoff {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 320;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.handoff.show { display: flex; }

.handoff-panel {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 28px;
  width: min(640px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
}

.handoff-panel h1 {
  font-size: 18px;
  margin-bottom: 4px;
}

.handoff-panel .sub {
  color: var(--sub);
  font-size: 12px;
  margin-bottom: 14px;
}

.handoff-block {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink);
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.handoff-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ─── Error remedy box (V5 — Apple-grade error states) ─────────────── */
.remedy {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 520px;
  box-shadow: var(--shadow-strong);
  z-index: 120;
  display: none;
}
.remedy.show { display: block; }

.remedy-title {
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.remedy-text {
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 10px;
}

.remedy-actions { display: flex; gap: 8px; }
.remedy-actions button { padding: 6px 12px; font-size: 12px; }

/* ─── Pro Mode / Simple Mode (P3.4 · 2026-05-25) ─────────────────────────
   Default = Pro (everything visible). When body.simple-mode is set, every
   element marked [data-advanced] gets hidden. Lets a first-time user see
   only the chop loop (drop → trim → captions → chop) without the V13/V18/V20/
   V24/V26/V27 feature wall. Persisted to localStorage.rc_mode = 'simple'|'pro'.
─── */
body.simple-mode [data-advanced] { display: none !important; }
body.simple-mode .inspector-section[data-advanced-section] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   DEAD-SIMPLE LANE (2026-05-30) — "vending machine, not editor"
   Simple mode collapses the whole cockpit and puts ONE action on the clip:
   ✨ Make my reel → transcribe + caption + chop → Download. The Pro toggle
   (or the "tweak it first" link) brings the full inspector back.
   ═══════════════════════════════════════════════════════════════════════ */
body.simple-mode .workbench { grid-template-columns: 1fr; }
body.simple-mode .inspector { display: none !important; }
/* The 9/16 preview frame collapses to 0×0 in a centered flex parent because
   aspect-ratio has no definite dimension to resolve against. Give it a definite
   height so the width derives — otherwise the video + lane have no frame. */
body.simple-mode .canvas-frame { height: 100%; width: auto; }
body.simple-mode .app { grid-template-rows: 56px 1fr; }
body.simple-mode .dock,
body.simple-mode .thumb-strip { display: none !important; }
/* Declutter the top bar — keep brand, privacy, Pro toggle, theme */
body.simple-mode #cmdkOpenBtn,
body.simple-mode #queueToggle,
body.simple-mode #kbmapBtn { display: none !important; }
/* The pro output bar is replaced by the big done card in the lane */
body.simple-mode .output-bar { display: none !important; }
/* Hide editor chrome on the preview — demo hook placeholders, emoji columns,
   safe-zone guides, banned-word warning. Dead-simple = just the clip + one button.
   (Auto-reel clears the placeholder text before chop too, so nothing burns in.) */
body.simple-mode .overlay-text,
body.simple-mode .emoji-column,
body.simple-mode .banned-warn,
body.simple-mode .safe-zones { display: none !important; }

/* The lane — centered overlay on the clip */
.simple-lane {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(8,10,12,0.42) 0%, rgba(8,10,12,0.74) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* Show the lane in Simple mode once a clip is loaded — never while rendering */
body.simple-mode.has-source:not(.rendering) .simple-lane { display: flex; }

.simple-make, .simple-done {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: simpleLaneIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.simple-done { display: none; }
body.reel-done .simple-make { display: none; }
body.reel-done .simple-done { display: flex; }

@keyframes simpleLaneIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* The one big button */
.simple-cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  color: #1a1205;
  background: linear-gradient(135deg, #FFD60A 0%, #F5A623 100%);
  border: none; border-radius: 16px;
  padding: 18px 38px;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(245,166,35,0.6), inset 0 2px 0 rgba(255,255,255,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.simple-cta:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); box-shadow: 0 16px 40px -8px rgba(245,166,35,0.72); }
.simple-cta:active { transform: translateY(0) scale(0.99); }

.simple-lane-sub {
  font-size: 13px; line-height: 1.5; color: #fff;
  max-width: 320px; opacity: 0.94; font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.simple-tweak-link {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,0.72); font-weight: 600;
  padding: 6px 10px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.simple-tweak-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Shorts Lab cross-link in the done card — "you made it, now track it" loop (2026-05-30) */
.simple-track-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; text-decoration: none; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  color: #FFD60A;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(255,214,10,0.35);
  background: rgba(255,214,10,0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.simple-track-link:hover { background: rgba(255,214,10,0.16); border-color: rgba(255,214,10,0.6); transform: translateY(-1px); }

/* Done card */
.simple-done-check {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #30D158 0%, #1f6e3c 100%);
  box-shadow: 0 8px 24px -6px rgba(48,209,88,0.6);
}
.simple-done-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.simple-done-size { font-size: 12px; color: rgba(255,255,255,0.78); font-weight: 600; margin-top: -4px; }

@media (max-width: 720px) {
  .simple-cta { font-size: 19px; padding: 16px 30px; }
  .simple-lane-sub { font-size: 12px; }
}
.mode-toggle-btn { font-size: 11px; padding: 4px 10px; border-radius: 8px; margin-right: 4px; }
.mode-toggle-btn.is-simple::before { content: '◌ '; opacity: 0.7; }
.mode-toggle-btn.is-pro::before    { content: '◉ '; opacity: 0.9; }

/* P8 · Cmd-K discoverability chip in topbar */
.cmdk-hint-chip {
  font-family: ui-monospace, SF Mono, monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel2);
  color: var(--sub);
  border: 1px solid var(--border-strong);
  margin-right: 4px;
  letter-spacing: 0.02em;
  transition: all 0.16s var(--ease);
}
.cmdk-hint-chip:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel2));
  color: var(--ink);
  border-color: var(--accent);
}
@media (max-width: 480px) {
  .cmdk-hint-chip { display: none; }
}

/* Inline cue for V15.2 hold-H A/B compare — surfaces the hidden gesture */
.studio-voice-hint {
  font-size: 10px;
  color: var(--sub);
  margin-top: -4px;
  margin-bottom: 8px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.78;
}
.studio-voice-hint .kbd-inline {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: ui-monospace, SF Mono, monospace;
  font-size: 9px;
  background: var(--panel2);
}

/* ─── Mobile / 9:16 phone preview (P3.2 · 2026-05-25) ─────────────────────
   First mobile breakpoint. Stack canvas + inspector vertically, shrink the
   topbar, hide the privacy badge, let the dock breathe on narrow widths.
─── */
@media (max-width: 640px) {
  .workbench {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  .canvas { aspect-ratio: 9 / 16; max-width: 100%; }
  .canvas-frame { width: 100%; }
  .inspector { width: 100%; min-width: 0; padding: 12px !important; max-height: none; }
  .topbar {
    padding: 8px 12px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .brand-name { font-size: 14px; }
  .privacy-badge { display: none; }
  .topbar-right { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }
  .dock {
    flex-wrap: wrap;
    padding: 8px 10px !important;
    gap: 6px;
  }
  .timeline { width: 100% !important; flex: 1 1 100%; }
  .thumb-strip { padding: 4px 10px !important; height: 44px; }
  .queue-drawer { width: 92vw !important; }
  .tighten-modal-panel { min-width: 92vw !important; max-width: 96vw !important; padding: 16px !important; }
  .overlay-text { font-size: 22px !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .btn { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  .brand-logo { font-size: 18px; }
  .text-caption { font-size: 10px; }
  .privacy-badge { display: none; }
  .topbar-right .icon-btn[id="layoutToggleBtn"] { display: none; }
}

/* ─── P7.1 · Cmd-K command palette ────────────────────────────────────────
   Apple-style searchable palette. Opens on Cmd-K (any focus state except
   form-fields). Replaces "where's that button" friction across the 35
   versions' worth of buttons. Aria-modal, focus-trapped, esc-to-close.
─── */
.cmdk {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 250;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cmdk.show { display: flex; animation: cmdkFadeIn 0.16s var(--ease); }

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

.cmdk-panel {
  width: min(720px, 92vw);
  max-height: 70vh;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cmdk-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  outline: none;
}
.cmdk-input::placeholder { color: var(--sub); opacity: 0.8; }

.cmdk-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  max-height: 56vh;
}

.cmdk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  border-left: 2px solid transparent;
}
.cmdk-row:hover,
.cmdk-row.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left-color: var(--accent);
}
.cmdk-row-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.92;
}
.cmdk-row-main { flex: 1; min-width: 0; }
.cmdk-row-name { font-weight: 500; color: var(--ink); }
.cmdk-row-desc {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.cmdk-row-key {
  font-family: ui-monospace, SF Mono, monospace;
  font-size: 10px;
  color: var(--sub);
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--panel2);
  flex-shrink: 0;
  white-space: nowrap;
}
.cmdk-row-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cmdk-empty {
  padding: 24px;
  text-align: center;
  color: var(--sub);
  font-size: 12px;
}

.cmdk-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel2);
}
.cmdk-hint {
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 640px) {
  .cmdk { padding-top: 6vh; }
  .cmdk-panel { max-height: 86vh; }
  .cmdk-row-desc { display: none; }
}

/* V11 (V5) — first-run onboarding overlay */
.onboard-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.onboard-overlay[hidden] { display: none; }
.onboard-card { max-width: 440px; width: calc(100% - 48px); background: var(--panel, #1b1e22); border: 1px solid var(--border, #2c3036); border-radius: 18px; padding: 30px 30px 22px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.onboard-logo { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.onboard-title { margin: 0 0 6px; font-size: 22px; }
.onboard-sub { margin: 0 0 18px; color: var(--muted, #9aa3ad); font-size: 14px; line-height: 1.5; }
.onboard-steps { list-style: none; margin: 0 0 20px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 11px; }
.onboard-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text, #e7e9ec); line-height: 1.45; }
.onboard-steps li span { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent, #ffa726); color: #1a1c1f; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.onboard-start { width: 100%; padding: 12px; border: none; border-radius: 11px; background: var(--accent, #ffa726); color: #1a1c1f; font-weight: 800; font-size: 15px; cursor: pointer; }
.onboard-start:hover { filter: brightness(1.05); }
.onboard-foot { margin-top: 13px; font-size: 11px; color: var(--muted, #9aa3ad); letter-spacing: .02em; }
