/* ═══════════════════════════════════════════════
   MAKER STUDIO — style.css
   Thème sombre professionnel (+ mode clair)
═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #0a0b0e;
  --bg2: #12141a;
  --bg3: #1a1d26;
  --bg4: #22263a;
  --surface: #1e2130;
  --surface2: #252a3a;
  --border: #2a2f45;
  --border2: #3a3f58;
  --accent: #7c6ff7;
  --accent2: #a084fa;
  --accent-glow: rgba(124,111,247,0.3);
  --red: #e74c3c;
  --red2: #ff6b6b;
  --green: #2ecc71;
  --green2: #43d98e;
  --yellow: #f5c842;
  --blue: #38bdf8;
  --text: #e8eaf0;
  --text2: #b0b5cc;
  --text-muted: #6b7094;
  --clip-video: #7c6ff7;
  --clip-text: #38bdf8;
  --clip-audio: #2ecc71;
  --clip-music: #f5c842;
  --header-h: 50px;
  --panel-left-w: 270px;
  --panel-right-w: 240px;
  --timeline-h: 200px;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
}

body.theme-light {
  --bg: #f0f2f8;
  --bg2: #e4e8f2;
  --bg3: #d8dcec;
  --bg4: #c8cedf;
  --surface: #ffffff;
  --surface2: #f4f6fb;
  --border: #d0d4e8;
  --border2: #b8bdd4;
  --text: #1a1d2e;
  --text2: #4a4f6a;
  --text-muted: #8890b0;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; font-family: inherit; font-size: 11px; }
input, select, textarea { font-family: inherit; font-size: 11px; color: var(--text); background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; outline: none; transition: border-color .15s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7094'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 22px; }
label { display: block; color: var(--text2); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; margin-top: 10px; }
label:first-child { margin-top: 0; }
details { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
summary { padding: 8px 10px; cursor: pointer; user-select: none; color: var(--text2); font-size: 11px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '▶'; font-size: 9px; transition: transform .2s; }
details[open] > summary::before { transform: rotate(90deg); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Splash ── */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #1a1440 0%, #0a0b0e 70%); }
.splash-content { position: relative; text-align: center; }
.splash-logo-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 20px; }
.splash-logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(var(--accent), var(--accent2), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  animation: spin 2s linear infinite;
}
.splash-logo-icon {
  position: absolute; inset: 10px; background: var(--surface);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.splash-title { font-size: 28px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.splash-title span { color: var(--accent); }
.splash-sub { color: var(--text-muted); font-size: 11px; margin-top: 6px; letter-spacing: .15em; }
.splash-bar { width: 200px; height: 3px; background: var(--bg3); border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.splash-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; animation: splash-load 2s ease forwards; }
@keyframes splash-load { from { width: 0 } to { width: 100% } }
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* ── Header ── */
.header {
  height: var(--header-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 8px; position: relative; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: .05em; }
.logo-accent { color: var(--accent); }
.hercules-badge { font-size: 9px; color: var(--text-muted); background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-sm); border: none;
  font-weight: 600; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg4); border-color: var(--border2); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-capture-mode { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; border: none; }
.btn-capture-mode:hover { filter: brightness(1.1); }
.btn-record { background: var(--red); color: #fff; border: none; display: flex; align-items: center; gap: 6px; }
.btn-record:hover { background: var(--red2); }
.btn-sm { padding: 4px 8px; font-size: 10px; }
.btn-theme { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── App Shell ── */
.app-shell { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); overflow: hidden; }
.workspace { display: flex; flex: 1; overflow: hidden; min-height: 0; }

/* ── Panels ── */
.panel { display: flex; flex-direction: column; overflow: hidden; }
.panel-left {
  width: var(--panel-left-w); min-width: var(--panel-left-w);
  background: var(--bg2); border-right: 1px solid var(--border);
  overflow-y: auto;
}
.panel-center { flex: 1; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.panel-right {
  width: var(--panel-right-w); min-width: var(--panel-right-w);
  background: var(--bg2); border-left: 1px solid var(--border);
  overflow-y: auto; padding: 12px;
}

/* ── Tabs ── */
.panel-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg2); flex-shrink: 0; }
.tab {
  flex: 1; padding: 9px 4px; background: none; border: none;
  color: var(--text-muted); font-size: 10px; font-weight: 600;
  border-bottom: 2px solid transparent; transition: all .15s; letter-spacing: .03em;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; padding: 12px; flex-direction: column; gap: 8px; }
.tab-content.active { display: flex; }

/* ── Section title ── */
.section-title { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
.section-title:first-child { margin-top: 0; }

/* ── Drop Zone ── */
.drop-zone { border: 1.5px dashed var(--border2); border-radius: var(--radius); padding: 16px; text-align: center; transition: all .2s; }
.drop-zone.drag-over { border-color: var(--accent); background: rgba(124,111,247,.08); }
.drop-zone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop-icon { font-size: 28px; }
.drop-zone p { color: var(--text-muted); font-size: 10px; }
.drop-zone-sm { padding: 10px; }

/* ── Media Grid ── */
.media-grid-wrapper { max-height: 240px; overflow-y: auto; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.media-item {
  position: relative; aspect-ratio: 16/9; background: var(--bg3);
  border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s; group: true;
}
.media-item:hover { border-color: var(--accent); transform: scale(1.02); }
.media-item.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity .15s;
}
.media-item:hover .media-item-overlay { opacity: 1; }
.media-item-add {
  width: 24px; height: 24px; background: var(--accent); border: none;
  border-radius: 50%; color: #fff; font-size: 14px; display: flex;
  align-items: center; justify-content: center; font-weight: bold;
}
.media-item-del {
  width: 22px; height: 22px; background: var(--red); border: none;
  border-radius: 50%; color: #fff; font-size: 11px; display: flex;
  align-items: center; justify-content: center;
}
.media-item-type {
  position: absolute; top: 3px; left: 3px; background: rgba(0,0,0,.7);
  color: #fff; font-size: 8px; padding: 1px 4px; border-radius: 3px;
}

/* ── Screenshot ── */
.media-section-details { border: none; margin-top: 4px; }
.media-section-summary { background: var(--surface); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 10px; font-weight: 700; }
.screenshot-panel { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.screenshot-preview-wrap { display: flex; flex-direction: column; gap: 6px; }
.screenshot-preview-wrap img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ss-actions { display: flex; gap: 6px; }

/* ── Workflow Guide ── */
.workflow-guide { margin-top: 4px; }
.wg-summary { font-size: 10px; font-weight: 700; }
.wg-steps { padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.wg-step { display: flex; align-items: flex-start; gap: 10px; padding: 8px; background: var(--surface); border-radius: var(--radius-sm); width: 100%; border: 1px solid var(--border); transition: border-color .2s; }
.wg-step.done { border-color: var(--green); background: rgba(46,204,113,.06); }
.wg-step-num { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: #fff; flex-shrink: 0; }
.wg-step.done .wg-step-num { background: var(--green); }
.wg-step-label { font-weight: 700; font-size: 11px; }
.wg-step-desc { color: var(--text-muted); font-size: 10px; }
.wg-arrow { color: var(--text-muted); font-size: 14px; margin: 2px auto; }

/* ── Voice Recorder ── */
.voice-recorder { display: flex; flex-direction: column; gap: 6px; }
.record-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.record-timer { font-size: 16px; font-weight: 700; text-align: center; color: var(--red); font-variant-numeric: tabular-nums; }
.waveform-container { height: 50px; background: var(--bg3); border-radius: var(--radius-sm); overflow: hidden; }
#waveform-canvas { width: 100%; height: 100%; }

/* ── TTS ── */
.tts-section { display: flex; flex-direction: column; gap: 6px; }
#tts-text { height: 60px; resize: none; }
.tts-controls { display: flex; align-items: center; gap: 8px; }
.tts-controls label { margin: 0; color: var(--text2); font-size: 10px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.tts-controls input { flex: 1; }

/* ── Audio Tracks ── */
.audio-tracks-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.audio-track-item { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; }
.audio-track-name { flex: 1; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-track-btn { background: none; border: none; color: var(--text2); padding: 2px 4px; border-radius: 3px; }
.audio-track-btn:hover { background: var(--bg4); color: var(--text); }

/* ── Text Editor ── */
.text-editor-panel { display: flex; flex-direction: column; gap: 2px; }
.font-select-wrap { display: flex; flex-direction: column; gap: 4px; }
.font-preview { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; min-height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.size-row { display: flex; gap: 6px; align-items: center; }
.size-row input[type=range] { flex: 1; }
.size-num-input { width: 54px !important; flex-shrink: 0; text-align: center; }
.text-style-btns { display: flex; gap: 4px; }
.style-btn { flex: 1; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); transition: all .15s; }
.style-btn.active, .style-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.color-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .15s; }
.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: #fff; box-shadow: 0 0 0 1px var(--accent); }
.bg-options, .align-btns { display: flex; gap: 4px; }
.bg-btn, .align-btn { flex: 1; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); transition: all .15s; text-align: center; font-size: 11px; }
.bg-btn.active, .align-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pos-btn { padding: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); transition: all .15s; font-size: 13px; }
.pos-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.prop-badge { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 10px; color: var(--text2); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── FX Panel ── */
.fx-list { display: flex; flex-direction: column; gap: 8px; }
.fx-drag-hint { background: rgba(124,111,247,.1); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 10px; color: var(--accent); text-align: center; }
.fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fx-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 4px; background: var(--surface); transition: all .15s; font-size: 10px; color: var(--text2); }
.fx-item:hover { border-color: var(--accent); background: var(--surface2); color: var(--text); }
.fx-item.active { border-color: var(--accent); background: rgba(124,111,247,.15); color: var(--accent); }
.fx-preview { width: 36px; height: 24px; border-radius: 3px; }
.fade-preview { background: linear-gradient(to right, #000, rgba(0,0,0,.3)); }
.slide-preview { background: linear-gradient(to right, #7c6ff7 50%, #22263a 50%); }
.zoom-preview { background: radial-gradient(circle, #7c6ff7, #22263a); }
.wipe-preview { background: linear-gradient(to bottom, #7c6ff7 50%, #22263a 50%); }
.flip-preview { background: linear-gradient(135deg, #7c6ff7, #22263a); }
.blur-preview { background: #7c6ff7; filter: blur(3px); }
.filter-none { background: linear-gradient(135deg, #38bdf8, #7c6ff7); }
.filter-gray { background: linear-gradient(135deg, #888, #444); }
.filter-sepia { background: linear-gradient(135deg, #a0856b, #6b4c2a); }
.filter-vivid { background: linear-gradient(135deg, #ff4081, #7c4dff, #00bcd4); }
.filter-vintage { background: linear-gradient(135deg, #c5a880, #8b6840); opacity:.8; }
.filter-cool { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.filter-warm { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.filter-fade-film { background: linear-gradient(135deg, #b2bec3, #dfe6e9); opacity:.7; }
.filter-teal-orange { background: linear-gradient(135deg, #00b894, #e17055); }
.filter-noir { background: linear-gradient(135deg, #000, #333, #000); }
.filter-golden { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.filter-matte { background: linear-gradient(135deg, #636e72, #b2bec3); }

/* Cinema FX */
.cinema-fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cinema-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-size: 10px; transition: all .15s; }
.cinema-btn:hover { border-color: var(--accent); color: var(--text); }
.cinema-btn.active { border-color: var(--accent); background: rgba(124,111,247,.15); color: var(--accent); }
.cfx-icon { width: 36px; height: 24px; border-radius: 3px; }
.vignette-icon { background: radial-gradient(circle, transparent 40%, #000 100%); background-color: #444; }
.grain-icon { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23fff' opacity='.3'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23fff' opacity='.2'/%3E%3C/svg%3E") #555; }
.bars-icon { background: linear-gradient(to bottom, #000 20%, #666 20%, #666 80%, #000 80%); }
.glow-icon { background: radial-gradient(circle, rgba(255,255,200,.9) 10%, rgba(200,200,100,.4) 50%, transparent 80%); background-color: #444; }
.sharpen-icon { background: repeating-linear-gradient(45deg, #555, #555 1px, #333 1px, #333 4px); }
.kb-icon { background: linear-gradient(135deg, #7c6ff7 0%, #38bdf8 100%); transform-origin: center; }
.cfx-slider-row { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-top: 1px solid var(--border); }
#cinema-fx-sliders { margin-top: 4px; }

/* Adjustments */
.adjustments { display: flex; flex-direction: column; gap: 3px; }
.adjustments label { margin-top: 8px; margin-bottom: 2px; }
.adjustments input[type=range] { width: 100%; }

/* ── Right Panel specifics ── */
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 4px; }
.format-btn { padding: 7px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-size: 10px; font-weight: 600; transition: all .15s; }
.format-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.format-btn:hover:not(.active) { border-color: var(--border2); background: var(--surface2); }
.color-full { width: 100%; height: 32px; padding: 2px; cursor: pointer; }
.input-full { width: 100%; }
.export-info { font-size: 10px; color: var(--text-muted); margin: 4px 0; text-align: center; background: var(--bg3); border-radius: var(--radius-sm); padding: 5px; }
.progress-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; border-radius: 3px; }

/* Watermark Panel */
.watermark-panel-box, .border-panel-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.wm-header { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.wm-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.wm-toggle-row label:first-child { margin: 0; text-transform: none; letter-spacing: 0; font-size: 10px; color: var(--text2); }
.wm-row { display: flex; align-items: center; gap: 8px; }
.wm-row label { margin: 0; flex: 1; white-space: nowrap; font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--text2); }
.wm-row input[type=range] { flex: 1; }
.wm-row select { flex: 1.5; }
#watermark-preview-wrap { display: flex; justify-content: center; }
#watermark-preview { max-height: 60px; max-width: 100%; border-radius: 4px; border: 1px solid var(--border); }

/* Toggle Switch */
.wm-switch { position: relative; width: 32px; height: 17px; display: inline-block; }
.wm-switch input { opacity: 0; width: 0; height: 0; }
.wm-slider { position: absolute; inset: 0; background: var(--bg4); border-radius: 10px; cursor: pointer; transition: .2s; }
.wm-slider::before { content: ''; position: absolute; width: 12px; height: 12px; left: 2.5px; top: 2.5px; background: #fff; border-radius: 50%; transition: .2s; }
.wm-switch input:checked + .wm-slider { background: var(--accent); }
.wm-switch input:checked + .wm-slider::before { transform: translateX(15px); }
.toggle-switch { position: relative; width: 32px; height: 17px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg4); border-radius: 10px; cursor: pointer; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 12px; height: 12px; left: 2.5px; top: 2.5px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(15px); }

/* ── Preview Area ── */
.preview-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #050507; }
.canvas-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
#main-canvas { image-rendering: crisp-edges; box-shadow: 0 0 40px rgba(0,0,0,.8); }
.canvas-overlay { position: absolute; inset: 0; pointer-events: none; }
.canvas-loading { position: absolute; inset: 0; background: rgba(0,0,0,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text2); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }

/* Playback Bar */
.playback-bar {
  height: 42px; background: var(--bg2); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 4px; padding: 0 10px; flex-shrink: 0;
}
.pb-btn { background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text2); padding: 5px 8px; font-size: 14px; transition: all .15s; }
.pb-btn:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.pb-play { background: var(--accent); color: #fff; border-color: transparent; padding: 6px 12px; }
.pb-play:hover { background: var(--accent2); }
.pb-time { font-size: 11px; color: var(--text2); font-variant-numeric: tabular-nums; background: var(--bg3); border-radius: var(--radius-sm); padding: 4px 8px; border: 1px solid var(--border); display: flex; gap: 2px; align-items: center; }
.pb-sep { color: var(--text-muted); }
.pb-spacer { flex: 1; }
.pb-zoom { width: 70px; }
.pb-volume { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.pb-volume span { font-size: 14px; }
.pb-volume input { width: 70px; }

/* Properties Panel */
.properties-panel { height: 80px; border-top: 1px solid var(--border); background: var(--bg2); padding: 8px 12px; overflow-y: auto; flex-shrink: 0; }
.prop-title { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.prop-empty { color: var(--text-muted); font-size: 10px; display: flex; align-items: center; height: 30px; }
.prop-content { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prop-field { display: flex; flex-direction: column; gap: 2px; }
.prop-field label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin: 0; }
.prop-field input, .prop-field select { width: auto; min-width: 60px; }
.prop-field-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px; }
.prop-field-row label { margin: 0; }
.prop-actions { flex-direction: row; gap: 6px; margin-top: 4px; }
.prop-val { font-size: 10px; color: var(--text-muted); margin-left: 6px; }
.btn-danger { background: var(--red) !important; color: #fff !important; }
.btn-danger:hover { background: #c0392b !important; }

/* ── Timeline ── */
.timeline-section {
  height: var(--timeline-h); border-top: 1px solid var(--border);
  background: var(--bg2); display: flex; flex-direction: column; flex-shrink: 0;
}
.timeline-header {
  height: 34px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.timeline-label { font-size: 11px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.timeline-tools { display: flex; align-items: center; gap: 4px; }
.tl-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); padding: 3px 8px; font-size: 11px; transition: all .15s; }
.tl-btn:hover { background: var(--surface); color: var(--text); }
.tl-danger { color: var(--red); border-color: rgba(231,76,60,.3); }
.tl-danger:hover { background: rgba(231,76,60,.1); color: var(--red2); }
.tl-zoom-label { color: var(--text-muted); font-size: 10px; min-width: 20px; text-align: center; }

.timeline-body { flex: 1; display: flex; overflow: hidden; }
.track-labels { width: 64px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding-top: 24px; }
.track-label { flex: 1; display: flex; align-items: center; gap: 5px; padding: 0 6px; font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.track-label:last-child { border-bottom: none; }
.track-label-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.timeline-scroll { flex: 1; overflow: auto; position: relative; }
.timeline-inner { position: relative; min-width: 100%; }
.tl-ruler { height: 24px; background: var(--bg3); border-bottom: 1px solid var(--border); position: relative; display: flex; align-items: flex-end; }
.ruler-mark { position: absolute; bottom: 0; font-size: 8px; color: var(--text-muted); transform: translateX(-50%); padding-bottom: 2px; }
.ruler-mark::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 1px; height: 4px; background: var(--border2); }
.tl-playhead {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--red); z-index: 10; cursor: ew-resize; left: 0;
}
.tl-playhead::before { content: '▼'; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); color: var(--red); font-size: 8px; }
.tl-track { height: 40px; border-bottom: 1px solid var(--border); position: relative; background: var(--bg); }
.tl-track:last-child { border-bottom: none; }
.tl-track.drag-over { background: rgba(124,111,247,.08); }

/* Clips */
.tl-clip {
  position: absolute; top: 4px; height: 32px; border-radius: 4px;
  overflow: hidden; cursor: pointer; border: 1.5px solid transparent;
  display: flex; align-items: center; padding: 0 6px;
  font-size: 10px; font-weight: 600; white-space: nowrap; user-select: none;
  transition: filter .1s;
}
.tl-clip:hover { filter: brightness(1.15); }
.tl-clip.selected { border-color: #fff !important; box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px rgba(124,111,247,.3); outline: 2px solid #fff; outline-offset: -2px; z-index: 10; }
.tl-clip-video { background: rgba(124,111,247,.8); color: #fff; }
.tl-clip-text { background: rgba(56,189,248,.8); color: #fff; }
.tl-clip-audio { background: rgba(46,204,113,.8); color: #fff; }
.tl-clip-music { background: rgba(245,200,66,.8); color: #1a1d26; }
.clip-thumb { width: 28px; height: 100%; object-fit: cover; margin-right: 4px; opacity: .7; }
.clip-name { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.clip-resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: ew-resize; background: rgba(255,255,255,.2); }
.clip-resize-handle:hover { background: rgba(255,255,255,.4); }
.clip-resize-left { left: 0; right: auto; }

/* ── Templates ── */
.tpl-panel { display: flex; flex-direction: column; gap: 10px; }
.tpl-search-row { display: flex; gap: 6px; }
.tpl-search-input { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; width: 100%; }
.tpl-category { display: flex; flex-direction: column; gap: 6px; }
.tpl-cat-title { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.tpl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s; }
.tpl-card:hover { border-color: var(--accent); }
.tpl-thumb { height: 40px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; letter-spacing: .05em; color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.tpl-thumb-label { position: relative; z-index: 1; }
.tpl-thumb-yt-intro { background: linear-gradient(135deg, #0f0f0f, #333); }
.tpl-thumb-yt-title { background: linear-gradient(135deg, #ff0000, #cc0000); }
.tpl-thumb-yt-end { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.tpl-thumb-promo { background: linear-gradient(135deg, #7c6ff7, #38bdf8); }
.tpl-thumb-soldes { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.tpl-thumb-reel { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.tpl-thumb-corp { background: linear-gradient(135deg, #1a1a2e, #2c2c54); }
.tpl-thumb-stats { background: linear-gradient(135deg, #0f2027, #203a43); }
.tpl-thumb-quote { background: linear-gradient(135deg, #2c3e50, #4a4a6a); font-size: 20px; color: var(--accent); }
.tpl-thumb-cine { background: #000; }
.tpl-thumb-sub { background: linear-gradient(135deg, #1a1a2e, #000); }
.tpl-thumb-credits { background: #000; }
.tpl-card-name { font-size: 9px; font-weight: 700; padding: 3px 5px 0; color: var(--text); }
.tpl-card-desc { font-size: 8px; color: var(--text-muted); padding: 0 5px 3px; }
.tpl-apply-btn { width: 100%; border-radius: 0; font-size: 9px; padding: 4px; }

/* ── AI Panel ── */
.ai-panel { display: flex; flex-direction: column; gap: 10px; }
.ai-section-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ai-box-header { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; }
.ai-badge { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 8px; padding: 2px 5px; border-radius: 3px; font-weight: 700; letter-spacing: .05em; }
.ai-desc { color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.ai-input, .ai-select { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; width: 100%; }
.ai-status { font-size: 10px; color: var(--text-muted); min-height: 16px; }
.ai-result-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.ai-result-label { font-size: 9px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ai-result-text { font-size: 12px; color: var(--text); line-height: 1.5; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); animation: fade-in .2s ease;
}
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.8); animation: slide-up .2s ease; max-height: 90vh; }
@keyframes slide-up { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-header h2 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 16px; width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--surface); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* ── Presentation Modal ── */
.modal-present-pro { width: min(900px, 96vw); }
.present-modal-title { display: flex; align-items: center; gap: 10px; }
.present-modal-icon { font-size: 22px; }
.present-modal-subtitle { font-size: 10px; color: var(--text-muted); }
.present-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 16px; gap: 2px; flex-shrink: 0; }
.present-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 9px 14px; color: var(--text-muted); font-size: 11px; font-weight: 600; transition: all .15s; }
.present-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.present-tab-panel { display: none; }
.present-tab-panel.active { display: block; }
.present-modal-body { padding: 0; }

/* Countdown */
.present-countdown-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; z-index: 100; }
.present-countdown-number { font-size: 72px; font-weight: 900; color: #fff; line-height: 1; }
.present-countdown-label { color: var(--text2); font-size: 12px; margin-top: 8px; }

/* Present Layout */
.present-layout-pro { display: grid; grid-template-columns: 1fr 300px; gap: 0; min-height: 420px; }
.present-left { padding: 16px; border-right: 1px solid var(--border); }
.present-controls-pro { padding: 16px; overflow-y: auto; max-height: 500px; display: flex; flex-direction: column; gap: 10px; }

/* Screen Preview */
.present-preview-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.present-preview-wrap video, .present-preview-wrap canvas { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
#present-frame-canvas { pointer-events: none; }
.present-no-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; }
.present-rec-badge { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; display: flex; align-items: center; gap: 5px; animation: pulse 1s infinite; }
.present-rec-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.present-timer-overlay { position: absolute; bottom: 8px; left: 8px; }
.present-timer-big { font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); font-variant-numeric: tabular-nums; }
.present-dur-bar-wrap { margin-top: 8px; }
.present-dur-bar-track { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.present-dur-bar-fill { height: 100%; width: 0; background: var(--red); border-radius: 2px; transition: width 1s linear; }
.present-dur-bar-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); margin-top: 3px; }

/* Present Step Cards */
.present-step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; gap: 10px; }
.present-step-num { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.present-step-title { font-weight: 700; font-size: 11px; margin-bottom: 5px; }
.present-step-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.present-tip { font-size: 10px; color: var(--text-muted); line-height: 1.4; background: rgba(124,111,247,.08); border: 1px solid var(--border); border-radius: 4px; padding: 5px 7px; }
.present-step-status { font-size: 10px; color: var(--text-muted); }
.present-step-record .present-step-num { background: var(--red); }
.present-record-btns { display: flex; gap: 6px; }
.present-btn-full { width: 100%; justify-content: center; }
.present-btn-start, .present-btn-stop { flex: 1; justify-content: center; }
.present-select { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; color: var(--text); width: 100%; font-size: 10px; }
.present-input { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; color: var(--text); font-size: 11px; }
.present-dur-preset { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 10px; color: var(--text2); transition: all .15s; }
.present-dur-preset:hover { border-color: var(--accent); color: var(--accent); }

/* VU bars */
.present-vu-wrap { margin-top: 4px; }
.present-vu-bars { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.vu-bar { width: 100%; background: var(--green); border-radius: 2px; height: 4px; transition: height .05s; }

/* Result card */
.present-result-card { background: var(--surface); border: 1px solid var(--green); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.present-result-header { display: flex; align-items: center; gap: 10px; }
.present-result-icon { font-size: 20px; }
.present-result-title { font-weight: 700; font-size: 12px; color: var(--green); }
.present-result-meta { font-size: 10px; color: var(--text-muted); }
#present-result-video { width: 100%; border-radius: 6px; max-height: 160px; background: #000; }
.present-result-actions { display: flex; gap: 6px; }

/* Frame Tab */
.pframe-info-banner { display: flex; align-items: flex-start; gap: 8px; background: rgba(124,111,247,.1); border: 1px solid var(--accent-glow); border-radius: var(--radius); padding: 10px; margin: 12px; font-size: 11px; color: var(--text2); line-height: 1.5; }
.pframe-layout { display: grid; grid-template-columns: 1fr 280px; gap: 0; }
.pframe-preview-col { padding: 12px; border-right: 1px solid var(--border); }
.pframe-preview-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pframe-preview-wrap { background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
#pframe-preview-canvas { width: 100%; height: auto; display: block; }
.pframe-controls-col { padding: 12px; overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 10px; }
.pframe-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pframe-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.pframe-label { font-size: 10px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pframe-style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pframe-style-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 9px; color: var(--text2); transition: all .15s; }
.pframe-style-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,111,247,.1); }
.pfs-preview { width: 28px; height: 18px; border-radius: 2px; }
.pfs-solid { background: transparent; border: 3px solid #7c6ff7; }
.pfs-double { background: transparent; border: 3px double #7c6ff7; }
.pfs-glow { background: transparent; border: 3px solid #7c6ff7; box-shadow: 0 0 6px #7c6ff7; }
.pfs-cinematic { background: linear-gradient(to bottom, #000 25%, transparent 25%, transparent 75%, #000 75%); border: 1px solid #333; }
.pfs-polaroid { background: #fff; border: 3px solid #fff; box-shadow: inset 0 -8px 0 0 #e0e0e0; }
.pfs-neon { background: transparent; border: 3px solid #00ff88; box-shadow: 0 0 6px #00ff88, inset 0 0 6px rgba(0,255,136,.2); }
.pfs-vignette { background: radial-gradient(circle, transparent 40%, #000 100%); }
.pfs-gradient { background: linear-gradient(45deg, rgba(124,111,247,.5), rgba(255,61,110,.5)); border: 2px solid transparent; }
.pframe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pframe-col { display: flex; flex-direction: column; gap: 4px; }
.pframe-color-row { display: flex; align-items: center; gap: 6px; }
.pframe-colorpicker { width: 36px; height: 30px; padding: 2px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; flex-shrink: 0; }
.pframe-color-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.pframe-color-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s; }
.pframe-color-dot:hover { transform: scale(1.2); border-color: rgba(255,255,255,.5); }
.pframe-range { width: 100%; }

/* Mixer */
.pmixer-layout { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.pmixer-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.pmixer-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pmixer-section-title { font-size: 10px; font-weight: 700; color: var(--text2); }
.pmixer-section-title-row { display: flex; align-items: center; justify-content: space-between; }
.pmixer-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pmixer-knob-wrap { flex: 1; min-width: 80px; display: flex; flex-direction: column; gap: 3px; }
.pmixer-label { font-size: 9px; color: var(--text-muted); }
.pmixer-val { font-size: 10px; color: var(--text2); font-weight: 600; text-align: center; }
.pmixer-range { width: 100%; }
.pmixer-range-vert { writing-mode: vertical-lr; direction: rtl; height: 60px; width: 20px; }
.pmixer-eq-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pmixer-eq-band { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pmixer-meter-wrap { display: flex; align-items: center; gap: 4px; }
.pmixer-meter-bar { flex: 1; height: 10px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.pmixer-meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); transition: width .05s; border-radius: 2px; }
.pmixer-meter-label { font-size: 9px; color: var(--text-muted); font-weight: 700; width: 12px; text-align: center; }

/* ── Export Modal ── */
.modal-export-pro { width: min(520px, 95vw); }
.export-modal-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.export-fmt-title { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.export-fmt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.export-fmt-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); text-align: center; transition: all .15s; }
.export-fmt-btn.active { border-color: var(--accent); background: rgba(124,111,247,.12); }
.export-fmt-icon { font-size: 20px; }
.export-fmt-name { font-size: 10px; font-weight: 700; }
.export-fmt-desc { font-size: 9px; color: var(--text-muted); line-height: 1.3; }
.export-options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.export-opt-group { display: flex; flex-direction: column; gap: 4px; }
.export-opt-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.export-quality-btns { display: flex; gap: 4px; }
.export-qual-btn { flex: 1; padding: 7px 4px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 10px; font-weight: 600; line-height: 1.4; color: var(--text2); transition: all .15s; }
.export-qual-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,111,247,.1); }
.export-qual-btn span { font-size: 9px; color: var(--text-muted); display: block; }
.export-info-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; font-size: 11px; color: var(--text2); font-weight: 600; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.export-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.export-status-row { display: flex; justify-content: space-between; align-items: center; }
.export-status { font-size: 11px; color: var(--text2); font-weight: 600; }
.export-time-info { font-size: 10px; color: var(--text-muted); }
.export-log { font-size: 10px; color: var(--text-muted); max-height: 60px; overflow-y: auto; background: var(--bg3); border-radius: var(--radius-sm); padding: 6px 8px; min-height: 26px; line-height: 1.6; font-family: monospace; }

/* ── Present Waveform canvas ── */
#present-waveform { width: 100%; height: 36px; background: var(--bg3); border-radius: 4px; }

/* ── Export Modal footer ── */
.export-format-section { margin-bottom: 4px; }

/* ── Présentation step body flex ── */
.present-step-body { display: flex; flex-direction: column; gap: 5px; }

/* ── Toasts ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); animation: toast-in .25s ease; min-width: 220px; max-width: 320px; font-size: 12px; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
.toast-out { animation: toast-out .2s ease forwards; }
@keyframes toast-out { from { transform: translateX(0); opacity: 1 } to { transform: translateX(20px); opacity: 0 } }
