:root {
  --bg:        #09090b;
  --bg2:       #111113;
  --bg3:       #1a1a1e;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #f4f4f5;
  --text2:     #a1a1aa;
  --text3:     #71717a;
  --accent:    #f97316;
  --accent2:   #fb923c;
  --accent-bg: rgba(249,115,22,0.12);
  --red:       #ef4444;
  --red-bg:    rgba(239,68,68,0.12);
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.brand-name { font-family: var(--font-head); font-style: italic; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 180deg, var(--accent) 0deg, transparent 120deg, var(--accent) 360deg); position: relative; flex-shrink: 0; }
.logo-mark::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); }
.logo-mark.sm { width: 20px; height: 20px; }
.logo-mark.sm::after { inset: 4px; }

/* ── NAV ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; background: rgba(9,9,11,0.85); backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text2); font-size: 14px; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

/* ── HERO ── */
.hero { max-width: 860px; margin: 0 auto; padding: 100px 40px 80px; text-align: center; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 100px; background: var(--accent-bg); border: 1px solid rgba(249,115,22,0.3); color: var(--accent2); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 28px; }
.hero-headline { font-family: var(--font-head); font-size: clamp(42px, 7vw, 80px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text2); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 48px; }
.hero-note { font-size: 13px; color: var(--text3); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { padding: 8px 16px; border-radius: 100px; background: var(--bg3); border: 1px solid var(--border); font-size: 13px; color: var(--text2); }

/* ── HOW IT WORKS ── */
.how-it-works { max-width: 900px; margin: 0 auto; padding: 60px 40px 80px; border-top: 1px solid var(--border); }
.how-it-works h2 { font-family: var(--font-head); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 48px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color 0.2s; }
.step:hover { border-color: var(--border2); }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── FOOTER ── */
.footer { text-align: center; padding: 32px 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text3); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary { padding: 10px 20px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent2); }
.btn-hero { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; transition: background 0.2s, transform 0.1s; }
.btn-hero:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-hero.full { width: 100%; justify-content: center; }
.btn-icon { font-size: 10px; color: rgba(255,255,255,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.btn-ghost { width: 100%; padding: 12px; border-radius: var(--radius-sm); color: var(--text3); font-size: 14px; transition: color 0.2s; text-align: center; }
.btn-ghost:hover { color: var(--text); }

/* ── MODAL ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 20px; padding: 36px; width: 100%; max-width: 580px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.modal-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.modal h2 { font-family: var(--font-head); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.modal p { font-size: 14px; color: var(--text2); margin-top: -8px; }
.modal-options { display: flex; gap: 10px; }
.opt-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border-radius: var(--radius-sm); background: var(--bg3); border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.opt-card input { display: none; }
.opt-card .opt-icon { font-size: 22px; }
.opt-card .opt-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.opt-card.active { border-color: var(--accent); background: var(--accent-bg); }
.opt-card.active .opt-label { color: var(--accent2); }
.modal-toggles { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--bg3); border-radius: var(--radius-sm); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text2); }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; border-radius: 100px; background: var(--bg); border: 1px solid var(--border2); transition: background 0.2s; cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: var(--text3); transition: transform 0.2s, background 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--accent-bg); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translate(20px, -50%); background: var(--accent); }
.modal-error { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--red-bg); border: 1px solid rgba(239,68,68,0.3); color: var(--red); font-size: 13px; line-height: 1.5; }

/* ── RECORDER ── */
#recorder { position: fixed; inset: 0; background: var(--bg); z-index: 500; display: flex; flex-direction: column; overflow: hidden; }

/* ── REC BAR ── */
.rec-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--bg2); border-bottom: 1px solid var(--border); flex-shrink: 0; z-index: 20; }
.rec-bar-left { display: flex; align-items: center; }
.logo-small { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rec-bar-center { display: flex; align-items: center; gap: 10px; }
.rec-timer { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text); min-width: 52px; text-align: center; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.zoom-indicator { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; background: var(--accent-bg); border: 1px solid rgba(249,115,22,0.4); color: var(--accent); font-size: 12px; font-weight: 600; }
.rec-bar-right { display: flex; align-items: center; gap: 6px; }
.ctrl-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text2); transition: background 0.2s, color 0.2s; }
.ctrl-btn:hover { background: var(--bg3); color: var(--text); }
.ctrl-btn.active { color: var(--accent); background: var(--accent-bg); }
.ctrl-btn.muted { color: var(--text3); }
.ctrl-btn.danger:hover { background: var(--red-bg); color: var(--red); }
.ctrl-divider { width: 1px; height: 20px; background: var(--border2); margin: 0 4px; }
.btn-stop { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.btn-stop:hover { background: #dc2626; }
.stop-icon { display: inline-block; width: 10px; height: 10px; background: rgba(255,255,255,0.8); border-radius: 2px; }
.btn-zoom-out { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; background: var(--accent-bg); border: 1px solid rgba(249,115,22,0.4); color: var(--accent); font-size: 13px; font-weight: 600; transition: background 0.2s, border-color 0.2s; }
.btn-zoom-out:hover { background: rgba(249,115,22,0.2); border-color: var(--accent); }

/* ── REC CONTENT ── */
.rec-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 40px; overflow: hidden; }

/* ── THUMBNAIL ── */
.thumb-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 1100px; }
.thumb-label { font-size: 13px; color: var(--text3); text-align: center; }
.thumb-label strong { color: var(--text2); }
.thumb-container { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border2); box-shadow: var(--shadow); cursor: default; }
.thumb-container:hover { border-color: rgba(249,115,22,0.3); }
.thumb-container.zoomed { border-color: rgba(249,115,22,0.8); box-shadow: 0 0 0 3px rgba(249,115,22,0.2), var(--shadow); }
.thumb-container.shift-active { border-color: rgba(249,115,22,0.5); cursor: crosshair; }
.thumb-container.shift-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  border-radius: inherit;
}
#thumb-canvas { display: block; width: 100%; background: #000; }

/* Drag box — absolutely positioned over thumbnail container */
#drag-box { position: fixed; z-index: 600; border: 2px solid var(--accent); background: rgba(249,115,22,0.08); border-radius: 3px; pointer-events: none; box-shadow: 0 0 0 1px rgba(249,115,22,0.2); }

/* ── ZOOM HINT ── */
.zoom-hint { font-size: 13px; color: var(--text3); text-align: center; transition: opacity 0.4s; }
.zoom-hint.fade { opacity: 0; }

/* ── REC STATUS ── */
.rec-status { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text2); }
.rec-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; flex-shrink: 0; }
.rec-status strong { color: var(--text); }

/* ── WEBCAM PIP ── */
.cam-pip { position: absolute; bottom: 28px; right: 28px; z-index: 20; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.5); cursor: move; user-select: none; transition: border-color 0.2s; }
.cam-pip.rect { border-radius: var(--radius); width: 180px; height: 120px; }
.cam-pip:hover { border-color: rgba(249,115,22,0.5); }
.cam-pip.hidden-cam { display: none !important; }
#cam-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); pointer-events: none; }
.cam-drag-handle { position: absolute; bottom: 5px; right: 5px; font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1; }

/* ── MOBILE ── */
.mobile-warning { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; gap: 16px; }
.mobile-warning h2 { font-family: var(--font-head); font-size: 28px; font-weight: 400; }
.mobile-warning p { font-size: 15px; color: var(--text2); max-width: 340px; }
@media (max-width: 640px) {
  .mobile-warning { display: flex; }
  .nav { padding: 16px 20px; }
  .hero { padding: 60px 20px 60px; }
  .how-it-works { padding: 40px 20px; }
  .steps { grid-template-columns: 1fr; }
  .rec-content { padding: 20px; }
}

/* ═══════════════════════════════════════════
   REVIEW PANEL
═══════════════════════════════════════════ */
#review-panel {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 400; display: flex; flex-direction: column; overflow: hidden;
}
#review-panel.hidden { display: none !important; }

.rv-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg2); flex-shrink: 0;
}
.rv-nav-right { display: flex; align-items: center; gap: 12px; }
.rv-btn-new {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 13px; transition: color 0.2s, background 0.2s;
}
.rv-btn-new:hover { color: var(--text); background: var(--bg3); }
.btn-secondary {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg2); }

.rv-body { display: flex; flex: 1; overflow: hidden; }

/* Left */
.rv-left {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
  padding: 24px; overflow-y: auto; border-right: 1px solid var(--border);
}
.rv-video-wrap { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
#rv-video { width: 100%; display: block; max-height: 54vh; object-fit: contain; background: #000; }

/* Timeline */
.rv-timeline-section { display: flex; flex-direction: column; gap: 10px; }
.rv-section-label { font-size: 11px; color: var(--text3); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.rv-timeline-wrap {
  position: relative; height: 36px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border); cursor: pointer; overflow: hidden;
}
.rv-timeline-bg { position: absolute; inset: 0; background: var(--bg3); }
.rv-timeline-track { position: absolute; inset: 0; }
.rv-zoom-band {
  position: absolute; top: 0; height: 100%;
  background: rgba(249,115,22,0.18);
  border-left: 2px solid rgba(249,115,22,0.6);
  border-right: 2px solid rgba(249,115,22,0.6);
}
.rv-zoom-band-ai {
  background: rgba(99,102,241,0.18);
  border-left-color: rgba(99,102,241,0.7);
  border-right-color: rgba(99,102,241,0.7);
}
.rv-tl-marker { position: absolute; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.rv-marker-in  { background: var(--accent); }
.rv-marker-out { background: rgba(249,115,22,0.35); }
.rv-click-dot {
  position: absolute; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%); pointer-events: none;
}
.rv-playhead {
  position: absolute; top: 0; width: 2px; height: 100%;
  background: #fff; transform: translateX(-50%);
  pointer-events: none; box-shadow: 0 0 4px rgba(255,255,255,0.4);
  transition: left 0.1s linear;
}
.rv-tl-legend { display: flex; gap: 16px; }
.rv-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text3); }
.rv-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.rv-legend-dot.zoom { background: var(--accent); }
.rv-legend-dot.click { background: rgba(255,255,255,0.45); }

/* Right */
.rv-right { width: 296px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow-y: hidden; }
.rv-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rv-stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
}
.rv-stat-card.accent { border-color: rgba(249,115,22,0.3); background: var(--accent-bg); }
.rv-stat-val { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rv-stat-card.accent .rv-stat-val { color: var(--accent); }
.rv-stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.rv-section { display: flex; flex-direction: column; gap: 10px; }
.rv-heatmap-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: var(--bg3); }
#rv-heatmap { width: 100%; height: 100%; display: block; }
.rv-zoom-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.rv-zoom-empty { font-size: 13px; color: var(--text3); padding: 12px; text-align: center; background: var(--bg2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.rv-zoom-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color 0.2s;
}
.rv-zoom-item:hover { border-color: var(--border2); }
.rv-zi-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-bg); border: 1px solid rgba(249,115,22,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.rv-zi-body { flex: 1; min-width: 0; }
.rv-zi-time { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.rv-zi-label { font-size: 11px; color: var(--text3); }
.rv-zi-seek {
  padding: 5px 10px; border-radius: 100px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2); font-size: 11px;
  transition: all 0.2s; white-space: nowrap;
}
.rv-zi-seek:hover { background: var(--accent-bg); border-color: rgba(249,115,22,0.4); color: var(--accent); }

@media (max-width: 768px) {
  .rv-body { flex-direction: column; }
  .rv-left { border-right: none; border-bottom: 1px solid var(--border); }
  .rv-right { width: 100%; }
  #rv-video { max-height: 35vh; }
}

/* ═══════════════════════════════════════════
   SETTINGS PANEL
═══════════════════════════════════════════ */
.settings-panel {
  width: 100%;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  animation: sp-slide-in 0.15s ease-out;
}
@keyframes sp-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.settings-panel.hidden { display: none !important; }

.sp-body {
  display: flex; gap: 0; padding: 14px 16px;
  min-width: 0;
}

/* Controls column */
.sp-controls { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-right: 18px; border-right: 1px solid var(--border); }

.sp-row { display: flex; flex-direction: column; gap: 8px; }
.sp-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text2); font-weight: 500;
}
.sp-value { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

.sp-slider-wrap {
  display: flex; align-items: center; gap: 8px;
}
.sp-hint-l, .sp-hint-r {
  font-size: 10px; color: var(--text3); white-space: nowrap; min-width: 40px;
}
.sp-hint-r { text-align: right; }

input[type="range"] {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--bg3); outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  accent-color: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.3);
}

/* Easing buttons */
.sp-easing-btns { display: flex; gap: 6px; }
.sp-ease-btn {
  flex: 1; padding: 6px 8px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; font-weight: 500;
  transition: all 0.15s; cursor: pointer;
}
.sp-ease-btn:hover { border-color: var(--border2); color: var(--text); }
.sp-ease-btn.active {
  background: var(--accent-bg); border-color: rgba(249,115,22,0.5);
  color: var(--accent);
}

/* Preview column */
.sp-preview-wrap {
  flex-shrink: 0; width: 200px; min-width: 200px; padding-left: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.sp-preview-label { font-size: 11px; color: var(--text3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-preview-canvas {
  width: 100%; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: block;
  background: #0a0a0c;
}
.sp-preview-hint { font-size: 10px; color: var(--text3); text-align: center; line-height: 1.4; }


/* ── Modal settings toggle ── */
.modal-settings {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.modal-settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.modal-settings-toggle:hover { background: var(--bg2); color: var(--text); }
.modal-settings-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
}


/* ═══════════════════════════════════════════════════════════════
   AI SETTINGS PANEL
═══════════════════════════════════════════════════════════════ */
.sp-body-col { flex-direction: column; gap: 4px; }
.sp-section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); padding: 4px 0 2px; }
.sp-controls-narrow .sp-row { gap: 4px; }

.ai-toggle-grid { display: flex; flex-direction: column; gap: 2px; }
.ai-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; font-size: 13px; color: var(--text2); cursor: pointer; }
.ai-toggle-row:hover { color: var(--text); }

/* Autonomy buttons */
.ai-autonomy-wrap { padding: 2px 0; }
.ai-autonomy-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ai-auto-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); font-size: 11px; transition: border-color 0.15s, background 0.15s, color 0.15s; text-align: center; }
.ai-auto-btn:hover { border-color: var(--border2); color: var(--text); }
.ai-auto-btn.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent2); }
.ai-auto-icon { font-size: 16px; line-height: 1; }
.ai-auto-label { font-weight: 600; font-size: 11px; }
.ai-auto-desc { font-size: 10px; color: var(--text3); line-height: 1.3; }
.ai-auto-btn.active .ai-auto-desc { color: rgba(249,115,22,0.7); }


/* ═══════════════════════════════════════════════════════════════
   REVIEW PANEL — TABS
═══════════════════════════════════════════════════════════════ */
.rv-tabs { display: flex; gap: 2px; padding: 0; margin: 0 -2px; border-bottom: 1px solid var(--border); }
.rv-tab { flex: 1; padding: 9px 6px; font-size: 13px; font-weight: 500; color: var(--text3); border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rv-tab:hover { color: var(--text2); }
.rv-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rv-tab-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 100px; min-width: 18px; text-align: center; }
.rv-tab-panel { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; overflow-y: auto; flex: 1; }
.rv-tab-panel.active { display: flex; }


/* ═══════════════════════════════════════════════════════════════
   AI STATUS / PROGRESS
═══════════════════════════════════════════════════════════════ */
.ai-status { }
.ai-status-idle { display: flex; flex-direction: column; gap: 8px; }
.ai-status-running { display: flex; flex-direction: column; gap: 8px; }
.ai-status-msg { font-size: 12px; color: var(--text3); }
.ai-progress-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.ai-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.2s ease; width: 0%; }

.ai-action-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.ai-action-btn:hover { background: var(--accent2); }
.ai-action-btn:disabled { opacity: 0.5; cursor: default; }
.ai-action-btn.sm { padding: 5px 10px; font-size: 12px; }
.ai-action-btn.full { width: 100%; }
.ai-ghost-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border2); color: var(--text2); font-size: 13px; font-weight: 500; transition: border-color 0.15s, color 0.15s; }
.ai-ghost-btn:hover { border-color: var(--text3); color: var(--text); }
.ai-ghost-btn.sm { padding: 5px 10px; font-size: 12px; }
.ai-ghost-btn.danger { color: var(--red); border-color: rgba(239,68,68,0.3); }
.ai-ghost-btn.danger:hover { border-color: var(--red); }


/* ═══════════════════════════════════════════════════════════════
   TRANSCRIPT TAB
═══════════════════════════════════════════════════════════════ */
.transcript-words { display: flex; flex-wrap: wrap; gap: 2px 0; line-height: 1.8; max-height: 220px; overflow-y: auto; padding: 8px; background: var(--bg3); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.transcript-word { padding: 1px 3px; border-radius: 3px; font-size: 13px; color: var(--text2); cursor: pointer; transition: background 0.1s, color 0.1s; }
.transcript-word:hover { background: var(--bg2); color: var(--text); }
.transcript-word.active { background: var(--accent-bg); color: var(--accent2); }

.transcript-refine-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.transcript-refine-actions { display: flex; gap: 6px; align-items: center; }
.transcript-script { width: 100%; min-height: 90px; padding: 10px; margin-top: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 13px; line-height: 1.6; resize: vertical; }
.transcript-script:focus { outline: none; border-color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   AI SUGGESTION CARDS
═══════════════════════════════════════════════════════════════ */
.ai-suggestion-list { display: flex; flex-direction: column; gap: 8px; }
.ai-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s; }
.ai-card:hover { border-color: var(--border2); }
.ai-card-conflict { border-color: rgba(249,115,22,0.3); }
.ai-card-dismissed { opacity: 0.5; }
.ai-card-dismissed:hover { opacity: 0.75; }

.ai-card-header { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ai-card-icon { font-size: 14px; }
.ai-card-time { font-family: var(--font-mono); font-size: 12px; color: var(--text3); }
.ai-card-conf { font-size: 11px; color: var(--text3); margin-left: auto; }
.ai-card-type { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.ai-type-zoom      { background: rgba(249,115,22,0.15); color: var(--accent2); }
.ai-type-spotlight { background: rgba(139,92,246,0.15); color: #a78bfa; }
.ai-type-callout   { background: rgba(59,130,246,0.15); color: #93c5fd; }

.ai-card-picker { display: flex; flex-direction: column; gap: 5px; }
.ai-card-picker-label { font-size: 11px; color: var(--text3); }
.ai-type-radios { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-type-radio { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.ai-type-radio input { accent-color: var(--accent); }
.ai-type-chip { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 4px; cursor: pointer; }

.ai-card-label-row { display: flex; align-items: center; gap: 6px; }
.ai-card-label-pre { font-size: 11px; color: var(--text3); white-space: nowrap; }
.ai-card-label-input { flex: 1; padding: 4px 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; font-family: var(--font-body); }
.ai-card-label-input:focus { outline: none; border-color: var(--accent); }

.ai-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.ai-bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.ai-dismissed-sep { font-size: 11px; color: var(--text3); padding: 6px 0 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.ai-empty { font-size: 13px; color: var(--text3); text-align: center; padding: 20px 0; }


/* ═══════════════════════════════════════════════════════════════
   TTS SECTION
═══════════════════════════════════════════════════════════════ */
.ai-tts-section { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.ai-tts-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-voice-select { flex: 1; min-width: 140px; padding: 7px 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; font-family: var(--font-body); }
.ai-voice-select:focus { outline: none; border-color: var(--accent); }
.ai-tts-preview { display: flex; flex-direction: column; gap: 8px; }
.ai-waveform { display: flex; align-items: center; gap: 2px; height: 44px; padding: 2px; background: var(--bg3); border-radius: var(--radius-sm); overflow: hidden; }
.wf-bar { flex-shrink: 0; width: 3px; background: var(--accent); border-radius: 2px; opacity: 0.75; }
.ai-tts-btns { display: flex; gap: 6px; flex-wrap: wrap; }


/* ═══════════════════════════════════════════════════════════════
   AI EXPORT SECTION
═══════════════════════════════════════════════════════════════ */
.ai-export-section { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.btn-primary.full { width: 100%; justify-content: center; }


/* ═══════════════════════════════════════════════════════════════
   TIMELINE — AI MARKERS
═══════════════════════════════════════════════════════════════ */
.rv-ai-marker { position: absolute; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); border-radius: 2px; opacity: 0.7; cursor: pointer; z-index: 3; }
.rv-ai-marker::before { content: '✦'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; white-space: nowrap; }
.rv-ai-zoom      { background: var(--accent); }
.rv-ai-zoom::before { color: var(--accent); }
.rv-ai-spotlight { background: #8b5cf6; }
.rv-ai-spotlight::before { color: #8b5cf6; }
.rv-ai-callout   { background: #3b82f6; }
.rv-ai-callout::before { color: #3b82f6; }

.rv-legend-dot.ai-zoom      { background: var(--accent); }
.rv-legend-dot.ai-spotlight { background: #8b5cf6; }
.rv-legend-dot.ai-callout   { background: #3b82f6; }


/* ═══════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════ */
.ai-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--bg3); border: 1px solid var(--border2); color: var(--text); font-size: 13px; padding: 10px 18px; border-radius: 100px; box-shadow: var(--shadow); z-index: 9999; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap; }
.ai-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ═══════════════════════════════════════════════════════════════
   REVIEW PANEL — RIGHT COLUMN LAYOUT ADJUSTMENTS
═══════════════════════════════════════════════════════════════ */
/* Tab panels fill available height */
#tab-ai, #tab-transcript, #tab-moments { flex: 1; min-height: 0; overflow-y: auto; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ai-autonomy-btns { grid-template-columns: repeat(3, 1fr); }
  .ai-auto-desc { display: none; }
  .ai-auto-label { font-size: 10px; }
  .rv-tabs { gap: 0; }
  .rv-tab { font-size: 12px; padding: 8px 4px; }
  .ai-card-actions { gap: 4px; }
  .ai-action-btn.sm, .ai-ghost-btn.sm { padding: 4px 8px; font-size: 11px; }
}
