Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<title>OpenScreen — Éditeur</title>
<style>
/* ─────────────────────────────────────────────────────────────────
* OpenScreen Design System — light + dark.
*
* Light: cool off-white canvas (slate-tinted), tiered slate surfaces,
* cool ink text (slate, never pure black), soft slate elevation.
* Mint #10b981 is the single chromatic accent.
* Dark: deep near-black canvas, tiered surfaces with subtle radial
* elevation, off-white text, softer semantic colors tuned
* for AA contrast on dark.
*
* Mint (#10b981) stays as the single brand accent in both themes.
* Neutres cool-only : pas de beige / cream / terracotta — ils entrent
* en tension chromatique avec mint et cassent la profondeur "tech".
* ──────────────────────────────────────────────────────────────── */
:root {
/* ── light theme ── cool off-white editor: slate-tinted canvas,
tiered slate surfaces (visible step contrast), slate text, soft
elevation. Mint stays the sole chromatic accent. */
--bg: #f8fafc; /* slate-50 canvas — slight cool tint */
--bg-grad: radial-gradient(ellipse 1200px 800px at 50% -200px, #ffffff 0%, #f1f5f9 80%);
--surface: #ffffff; /* main panels — pure white, raised */
--surface-1: #f1f5f9; /* raised card on canvas — slate-100 */
--surface-2: #e2e8f0; /* raised on panel — slate-200 */
--surface-3: #cbd5e1; /* hover/active state — slate-300 */
--surface-hi: #ffffff; /* highest — modal/popover */
--surface-warm: #f1f5f9; /* accent panel — matches surface-1 */
/* lines — slate hairlines, cool */
--border: #e2e8f0; /* slate-200 */
--border-soft: #f1f5f9; /* slate-100 */
--border-hi: #cbd5e1; /* slate-300 */
--border-dark: #0f172a; /* slate-900 — dark border on light */
/* foreground — cool slate ink, never pure black */
--fg: #0f172a; /* primary text — slate-900 */
--fg-2: #334155; /* secondary text — slate-700 (real step) */
--fg-emphasis: #020617; /* strongest emphasis — slate-950 */
--fg-on-surface: #ffffff;
--muted: #64748b; /* slate-500 */
--muted-soft: #94a3b8; /* slate-400 */
--meta: #94a3b8;
--dim: #cbd5e1; /* slate-300 */
/* mint brand — single chromatic accent in both themes */
--brand: #10b981;
--brand-lo: #059669;
--brand-glow: rgba(16, 185, 129, 0.35);
--brand-soft: rgba(16, 185, 129, 0.10);
--accent: #10b981;
--accent-on: #04221a; /* dark text on mint button — AA contrast */
--accent-soft: rgba(16, 185, 129, 0.10);
--accent-wash: rgba(16, 185, 129, 0.06);
/* semantic — danger reserved for REC / skip / trim / transcript hl */
--danger: #ef4444;
--danger-lo: #dc2626;
--danger-soft: rgba(239, 68, 68, 0.10);
--danger-wash: rgba(239, 68, 68, 0.06);
--danger-hatch: rgba(239, 68, 68, 0.32);
--danger-glow: rgba(239, 68, 68, 0.35);
/* semantic — warning, soft */
--warn: #f59e0b;
--warn-soft: rgba(245, 158, 11, 0.12);
/* semantic — annotation / speed track pills (timeline track types) */
--annotation: #eab308; /* yellow-500 */
--annotation-soft: rgba(234, 179, 8, 0.14);
--speed: #f97316; /* orange-500 */
--speed-soft: rgba(249, 115, 22, 0.14);
/* timeline candy (tokens/v4.css): the clip is the brand green, zooms blue */
--clip: var(--accent);
--zoom: #3b82f6;
--candy-glow: 12%;
--playhead: #6c55ff;
/* semantic — success = brand (DS has no separate green) */
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.10);
/* macOS window traffic lights — keep palette intent, slightly tinted */
--light-red: #ff5f57;
--light-yellow: #febc2e;
--light-green: #28c840;
/* preview scene illustration — palette-derived grayscale, not
literal scene art. Replace with real project footage. */
--scene-sky-hi: #eaebed;
--scene-sky-mid: #bcc0c6;
--scene-foliage: #6b7280;
--scene-foliage-d: #16171d;
--scene-overlay: rgba(22, 23, 29, 0.18);
/* webcam PIP — palette neutrals */
--pip-bg-1: #16171d;
--pip-bg-2: #16171d;
--pip-bg-3: #16171d;
--pip-skin-hi: #bcc0c6;
--pip-skin-lo: #6b7280;
--pip-hair: #16171d;
--pip-shadow: rgba(22, 23, 29, 0.30);
/* on-preview overlays — palette base */
--overlay-dark: rgba(22, 23, 29, 0.45);
--overlay-light: rgba(255, 255, 255, 0.85);
--overlay-text: rgba(255, 255, 255, 0.60);
--overlay-text-2: rgba(255, 255, 255, 0.55);
--overlay-border: rgba(22, 23, 29, 0.06);
/* type */
--font-display: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
--font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
/* size — desktop scale, base 13px, nothing below 11px */
--fs-app: 13px;
--fs-app-sm: 12px;
--fs-app-lg: 14px;
--fs-title: 16px;
--fs-section: 11px;
--fs-display: 24px;
/* spacing — 4px grid */
--sp-1: 4px;
--sp-2: 8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-5: 20px;
--sp-6: 24px;
/* radius — 8 standard per spec, pill on inputs + transport */
--r-xs: 4px;
--r-sm: 6px;
--r-md: 8px;
--r-lg: 12px;
--r-pill: 9999px;
/* layout — wireframe proportions (resizable) */
--titlebar-h: 34px;
--rail-w: 48px;
--panel-w-left: 320px;
--panel-w-right: 320px;
--handle-w: 6px;
--handle-h: 6px;
--props-w: 280px;
--bottom-h: 224px;
/* elevation — restrained, slate-based, soft */
--elev-card: 0 1px 2px rgba(15, 23, 42, 0.03), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
--elev-card-soft: 0 1px 2px rgba(15, 23, 42, 0.03);
--elev-pop: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);
--focus-ring: 0 0 0 3px rgba(16, 185, 129, 0.18);
--motion-fast: 120ms;
--motion-base: 180ms;
--ease: cubic-bezier(0.2, 0, 0, 1);
}
/* ─── dark theme — proper dark editor: deep canvas, tiered surfaces
with subtle elevation, off-white text, semantic colors tuned
for AA contrast on dark backgrounds. Mint stays the brand. */
:root[data-theme="dark"] {
/* canvas — very dark with a faint blue cast, never pure black */
--bg: #0a0d12;
--bg-grad: radial-gradient(ellipse at 50% 0%, #13171f 0%, #0a0d12 60%);
/* surfaces — three tiers of elevation above the canvas */
--surface: #14181f; /* panel base */
--surface-1: #14181f;
--surface-2: #1c2029; /* raised (cards on panel) */
--surface-3: #252a35; /* hover / active state */
--surface-hi: #2e3440; /* highest (popovers, modals) */
--surface-warm: #1c2029;
/* lines — slightly lighter than surface-2 to read as borders */
--border: #252a35;
--border-soft: #1c2029;
--border-hi: #3a4150;
--border-dark: #0a0d12;
/* foreground — off-white, never pure #ffffff */
--fg: #e6e9ef;
--fg-2: #f3f5f8;
--fg-on-surface: #14181f;
--muted: #8b95a3;
--meta: #5b6470;
--dim: #1c2029;
/* mint brand — slightly brighter for AA on dark */
--brand: #10b981;
--brand-lo: #34d399;
--brand-glow: rgba(16, 185, 129, 0.40);
--brand-soft: rgba(16, 185, 129, 0.14);
--accent: #10b981;
--accent-on: #0a0d12;
--accent-soft: rgba(16, 185, 129, 0.14);
--accent-wash: rgba(16, 185, 129, 0.06);
/* danger — softer red for dark bg, REC + skip + trim + transcript hl */
--danger: #f87171;
--danger-lo: #ef4444;
--danger-soft: rgba(248, 113, 113, 0.14);
--danger-wash: rgba(248, 113, 113, 0.08);
--danger-hatch: rgba(248, 113, 113, 0.40);
--danger-glow: rgba(248, 113, 113, 0.40);
/* warning — softer amber */
--warn: #fbbf24;
--warn-soft: rgba(251, 191, 36, 0.14);
/* semantic — annotation / speed track pills (timeline track types) */
--annotation: #fbbf24; /* amber-400 */
--annotation-soft: rgba(251, 191, 36, 0.16);
--speed: #fb923c; /* orange-400 */
--speed-soft: rgba(251, 146, 60, 0.16);
--candy-glow: 35%;
/* success = brand */
--success: #10b981;
--success-soft: rgba(16, 185, 129, 0.14);
/* macOS window traffic lights */
--light-red: #ff5f57;
--light-yellow: #febc2e;
--light-green: #28c840;
/* scene illustration — desaturated, fits dark canvas */
--scene-sky-hi: #2e3440;
--scene-sky-mid: #252a35;
--scene-foliage: #14181f;
--scene-foliage-d: #0a0d12;
--scene-overlay: rgba(0, 0, 0, 0.30);
/* PIP — keep on darker side for dark theme */
--pip-bg-1: #14181f;
--pip-bg-2: #0a0d12;
--pip-bg-3: #252a35;
--pip-skin-hi: #bcc0c6;
--pip-skin-lo: #8b95a3;
--pip-hair: #0a0d12;
--pip-shadow: rgba(0, 0, 0, 0.50);
/* on-preview overlays */
--overlay-dark: rgba(0, 0, 0, 0.55);
--overlay-light: rgba(20, 24, 31, 0.85);
--overlay-text: rgba(230, 233, 239, 0.80);
--overlay-text-2: rgba(230, 233, 239, 0.70);
--overlay-border: rgba(255, 255, 255, 0.08);
/* elevation — deeper shadows since dark bg absorbs softer ones */
--elev-card: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 12px -4px rgba(0, 0, 0, 0.50);
--elev-card-soft: 0 1px 2px rgba(0, 0, 0, 0.30);
--elev-pop: 0 8px 24px -8px rgba(0, 0, 0, 0.60);
--focus-ring: 0 0 0 3px rgba(16, 185, 129, 0.30);
}
/* ─── reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg-grad);
color: var(--fg);
font-family: var(--font-body);
font-size: var(--fs-app);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow: hidden;
user-select: none;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
kbd {
font-family: var(--font-mono);
font-size: 10px;
padding: 1px 5px;
border-radius: var(--r-xs);
background: var(--surface-2);
color: var(--muted);
border: 1px solid var(--border);
min-width: 18px; text-align: center;
display: inline-block;
}
/* ─── app shell — 4 rows: titlebar, workbench, handle, bottombar */
.app {
display: grid;
grid-template-rows: var(--titlebar-h) 1fr var(--handle-h) var(--bottom-h);
height: 100vh;
min-width: 1024px;
background: var(--bg);
}
/* ─── titlebar — project name left, window controls + actions right ─ */
.titlebar {
display: flex; align-items: center; gap: var(--sp-3);
padding-inline: var(--sp-4);
background: var(--bg);
border-bottom: 1px solid var(--border-soft);
}
.titlebar .brand {
display: inline-flex; align-items: center; gap: 8px;
font-family: var(--font-display);
font-size: var(--fs-title);
font-weight: 500;
letter-spacing: -0.005em;
color: var(--fg);
}
.titlebar .brand-mark {
width: 18px; height: 18px; border-radius: 5px;
display: block;
}
.titlebar .sep {
width: 1px; height: 16px; background: var(--border);
}
.titlebar .project {
display: inline-flex; align-items: center; gap: var(--sp-2);
font-size: var(--fs-app);
color: var(--muted);
}
.titlebar .project-name {
color: var(--fg-2);
font-weight: 500;
}
.titlebar .saved {
display: inline-flex; align-items: center; gap: 6px;
font-family: var(--font-mono);
font-size: var(--fs-app-sm);
color: var(--muted);
}
.titlebar .saved .dot {
width: 6px; height: 6px; border-radius: 50%;
background: var(--success);
}
.titlebar .proj-actions {
display: inline-flex; align-items: center; gap: var(--sp-1);
margin-right: var(--sp-1);
}
.titlebar .lang-sel {
display: inline-flex; align-items: center; gap: 6px;
height: 26px;
padding: 0 6px 0 6px;
background: transparent;
border: 1px solid var(--border-soft);
border-radius: var(--r-md);
color: var(--fg-2);
font-family: var(--font-display);
font-size: var(--fs-app);
font-weight: 500;
cursor: pointer;
transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.titlebar .lang-sel:hover {
background: var(--surface-3);
border-color: var(--border);
color: var(--fg);
}
.titlebar .lang-sel .lang-glyph {
flex-shrink: 0;
color: var(--fg);
}
.titlebar .lang-sel .lang-label {
font-size: var(--fs-app);
font-weight: 500;
color: inherit;
line-height: 1;
}
.titlebar .lang-sel .lang-caret {
width: 10px; height: 10px;
color: var(--muted);
flex-shrink: 0;
}
.titlebar .recorder-btn {
display: inline-flex; align-items: center; gap: 6px;
height: 26px; padding: 0 10px 0 8px;
border-radius: var(--r-md);
background: var(--accent-soft);
color: var(--accent);
border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
font: 500 12px/1 var(--font-display);
letter-spacing: 0.01em;
}
.titlebar .recorder-btn:hover { background: color-mix(in oklch, var(--accent) 18%, var(--surface-3)); }
.titlebar .recorder-btn svg { display: block; }
.titlebar .right {
margin-left: auto;
display: inline-flex; align-items: center; gap: var(--sp-1);
}
.titlebar .icon-btn {
width: 28px; height: 28px;
display: grid; place-items: center;
border-radius: var(--r-sm);
color: var(--muted);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.titlebar .icon-btn:hover { background: var(--surface-3); color: var(--fg); }
.titlebar .lights {
display: inline-flex; gap: 6px; margin-right: var(--sp-3);
}
.titlebar .lights span {
width: 11px; height: 11px; border-radius: 50%;
border: 1px solid var(--overlay-border);
}
.titlebar .lights span.r { background: var(--light-red); }
.titlebar .lights span.y { background: var(--light-yellow); }
.titlebar .lights span.g { background: var(--light-green); }
/* ─── workbench — 7-col grid: rail · left-panel · handle · preview · handle · right-panel · rail */
.workbench {
display: grid;
grid-template-columns:
var(--rail-w)
var(--panel-w-left)
var(--handle-w)
1fr
var(--handle-w)
var(--panel-w-right)
var(--rail-w);
min-height: 480px;
background: var(--bg);
}
.workbench > * + * { border-left: 1px solid var(--border-soft); }
/* ─── resize handles — drag to resize panels; double-bar mark ── */
.resize-handle {
background: transparent;
position: relative;
z-index: 2;
transition: background 120ms var(--ease);
}
.resize-handle.col { cursor: col-resize; }
.resize-handle.row {
cursor: row-resize;
grid-column: 1 / -1; /* span the full app width */
border-bottom: 1px solid var(--border);
}
.resize-handle:hover,
.resize-handle.is-dragging { background: var(--surface-2); }
.resize-handle::before,
.resize-handle::after {
content: "";
position: absolute;
background: var(--dim);
border-radius: 1px;
opacity: 0.45;
transition: opacity 120ms var(--ease);
pointer-events: none;
}
.resize-handle.col::before,
.resize-handle.col::after {
left: 50%;
width: 1px;
height: 14px;
transform: translateX(-50%);
}
.resize-handle.col::before { top: calc(50% - 16px); }
.resize-handle.col::after { top: calc(50% + 2px); }
.resize-handle.row::before,
.resize-handle.row::after {
top: 50%;
height: 1px;
width: 14px;
transform: translateY(-50%);
}
.resize-handle.row::before { left: calc(50% - 16px); }
.resize-handle.row::after { left: calc(50% + 2px); }
.resize-handle:hover::before,
.resize-handle:hover::after,
.resize-handle.is-dragging::before,
.resize-handle.is-dragging::after { opacity: 1; }
.resize-handle.is-dragging { background: var(--accent-soft); }
/* icon rails — narrow, vertical, single column of stacked buttons */
.rail {
display: flex; flex-direction: column;
align-items: center; gap: var(--sp-1);
padding: var(--sp-2) 0;
background: var(--bg);
}
.rail button {
width: 36px; height: 36px;
display: grid; place-items: center;
border-radius: var(--r-md);
color: var(--muted);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
position: relative;
}
.rail button:hover { background: var(--surface-3); color: var(--fg); }
.rail button[aria-pressed="true"] {
color: var(--accent);
background: var(--accent-soft);
}
.rail button[aria-pressed="true"]::before {
content: "";
position: absolute; left: -8px; top: 8px; bottom: 8px;
width: 3px; border-radius: 2px;
background: var(--accent);
}
.rail .sep-h {
width: 24px; height: 1px;
background: var(--border);
margin: var(--sp-1) 0;
}
/* ─── panel base (chat + transcript share this shell) ─────────── */
.panel {
display: grid;
grid-template-rows: auto 1fr auto;
min-width: 0;
background: var(--bg);
}
.panel-head {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-3) var(--sp-4);
border-bottom: 1px solid var(--border-soft);
min-height: 44px;
}
.panel-head h2 {
margin: 0;
font-family: var(--font-display);
font-size: 14px;
font-weight: 500;
letter-spacing: -0.005em;
color: var(--fg);
}
.panel-head .right { margin-left: auto; display: inline-flex; gap: var(--sp-1); }
.panel-head .icon-btn {
width: 24px; height: 24px;
display: grid; place-items: center;
border-radius: var(--r-sm);
color: var(--meta);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.panel-head .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.panel-body {
overflow-y: auto;
padding: var(--sp-3) var(--sp-4);
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.panel-body::-webkit-scrollbar { width: 8px; height: 8px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.panel-body::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }
/* ─── chat panel — strip header + YOU bubbles ─────────────────── */
/* compact strip — context pill, action icons, hint line */
.chat-strip {
padding: var(--sp-3) var(--sp-4) var(--sp-2);
border-bottom: 1px solid var(--border-soft);
background: var(--bg);
}
.chat-strip-row {
display: flex; align-items: center; gap: var(--sp-2);
margin-bottom: 6px;
}
.ctx-pill {
display: inline-flex; align-items: center; gap: 5px;
padding: 3px 9px 3px 7px;
border-radius: var(--r-pill);
background: var(--success-soft);
color: var(--success);
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 500;
letter-spacing: 0.02em;
}
.ctx-pill .d {
width: 5px; height: 5px; border-radius: 50%;
background: var(--success);
}
.strip-actions {
margin-left: auto;
display: inline-flex; gap: 2px;
}
.strip-actions .icon-btn {
width: 24px; height: 24px;
display: grid; place-items: center;
border-radius: var(--r-sm);
color: var(--meta);
background: transparent; border: 0; cursor: pointer;
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.strip-actions .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.chat-strip-hint {
font-size: 12px;
color: var(--muted);
letter-spacing: 0.005em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* bubble card — YOU label + reply/copy on the top row, body below */
.msg-card-top {
display: flex; align-items: center; gap: var(--sp-2);
margin-bottom: 6px;
}
.msg-card-top .msg-author { margin-right: 0; }
.msg-actions {
margin-left: auto;
display: inline-flex; gap: 2px;
}
.msg-actions .icon-btn {
width: 22px; height: 22px;
display: grid; place-items: center;
border-radius: var(--r-xs);
color: var(--meta);
background: transparent; border: 0; cursor: pointer;
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.msg-actions .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.msg-body {
font-size: var(--fs-app);
color: var(--fg-2);
line-height: 1.5;
}
.model-card {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
margin-bottom: var(--sp-4);
border-radius: var(--r-md);
background: var(--surface-1);
border: 1px solid var(--border-soft);
}
.model-card .logo {
width: 28px; height: 28px;
border-radius: var(--r-sm);
background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand-lo) 80%);
display: grid; place-items: center;
color: var(--bg);
font-family: var(--font-display);
font-size: 12px;
font-weight: 600;
letter-spacing: -0.02em;
flex-shrink: 0;
}
.model-card .meta {
flex: 1; min-width: 0;
display: flex; flex-direction: column; gap: 1px;
}
.model-card .name {
font-size: var(--fs-app);
font-weight: 500;
color: var(--fg);
letter-spacing: -0.005em;
}
.model-card .sub {
font-size: 11px;
color: var(--muted);
font-family: var(--font-mono);
letter-spacing: 0.02em;
}
.model-card .chev { color: var(--meta); flex-shrink: 0; }
.msg {
margin-bottom: var(--sp-3);
}
.msg-head {
display: flex; align-items: center; gap: var(--sp-2);
padding: 0 var(--sp-1);
margin-bottom: var(--sp-1);
}
.msg-author {
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.08em;
color: var(--meta);
text-transform: uppercase;
}
.msg-head .right { margin-left: auto; display: inline-flex; gap: 2px; }
.msg-head .icon-btn {
width: 22px; height: 22px;
display: grid; place-items: center;
border-radius: var(--r-xs);
color: var(--meta);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.msg-head .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.msg-bubble {
padding: var(--sp-3) var(--sp-4);
border-radius: var(--r-md);
background: var(--bg);
border: 1px solid var(--border);
font-size: var(--fs-app);
color: var(--fg-2);
line-height: 1.5;
}
.msg-bubble strong { color: var(--fg); font-weight: 500; }
.msg-bubble .t { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); }
/* project panel — left rail target */
.proj-section { padding: var(--sp-3) var(--sp-4) var(--sp-2); }
.proj-section + .proj-section { padding-top: var(--sp-2); }
.proj-head {
display: flex; align-items: center; justify-content: space-between;
font-size: 12px; font-weight: 500; color: var(--fg-2);
padding: 0 var(--sp-1) var(--sp-2);
letter-spacing: 0.01em;
}
.proj-head .icon-btn {
width: 22px; height: 22px; border-radius: 6px;
display: inline-flex; align-items: center; justify-content: center;
color: var(--meta); background: transparent; border: 0; cursor: pointer;
}
.proj-head .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.proj-list { list-style: none; margin: 0; padding: 0; }
.proj-item {
display: flex; align-items: center; gap: var(--sp-2);
padding: 6px var(--sp-2);
border-radius: 6px;
font-size: 13px;
color: var(--fg-2);
cursor: pointer;
user-select: none;
}
.proj-item:hover { background: var(--surface-3); }
.proj-item.is-active {
background: var(--accent-soft);
color: var(--accent);
}
.proj-item.is-active .proj-check { color: var(--accent); }
.proj-item .proj-check {
width: 14px; height: 14px; flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center;
color: transparent;
}
.proj-item.is-child { padding-left: 28px; font-size: 13px; }
.proj-item.is-child .proj-check { visibility: hidden; }
.proj-search {
display: flex; align-items: center; gap: var(--sp-2);
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
margin: 0 var(--sp-1) var(--sp-2);
}
.proj-search svg { color: var(--meta); flex-shrink: 0; }
.proj-search input {
flex: 1; min-width: 0;
border: 0; outline: 0; background: transparent;
font: inherit; font-size: 13px; color: var(--fg-2);
}
.proj-search input::placeholder { color: var(--meta); }
.proj-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.proj-file {
display: grid;
grid-template-columns: 8px 1fr auto;
align-items: start;
column-gap: var(--sp-2);
padding: 6px var(--sp-2);
border-radius: 6px;
cursor: pointer;
}
.proj-file:hover { background: var(--surface-3); }
.proj-file .dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--success);
margin-top: 6px;
box-shadow: 0 0 0 3px var(--success-soft);
}
.proj-file .name {
font-size: 13px; font-weight: 600; color: var(--fg-2);
line-height: 1.3;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-file .dur {
grid-column: 2;
font-family: var(--font-mono);
font-size: 11px; color: var(--meta);
margin-top: 2px;
}
/* chat input area — fixed at bottom of panel */
.chat { min-height: 0; }
.chat .panel-body { min-height: 0; }
.chat-input {
padding: var(--sp-3) var(--sp-4);
border-top: 1px solid var(--border-soft);
background: var(--bg);
}
.chat-input textarea {
width: 100%;
min-height: 64px;
resize: none;
padding: var(--sp-3);
border-radius: var(--r-md);
border: 1px solid var(--border);
background: var(--bg);
font-family: var(--font-body);
font-size: var(--fs-app);
line-height: 1.5;
color: var(--fg);
outline: none;
transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.chat-input textarea::placeholder { color: var(--meta); }
.chat-input textarea:focus {
border-color: var(--accent);
box-shadow: var(--focus-ring);
}
.chat-input .actions {
display: flex; align-items: center; gap: var(--sp-2);
margin-top: var(--sp-2);
}
.model-picker {
display: inline-flex; align-items: center; gap: 6px;
padding: 5px 4px 5px 10px;
border-radius: var(--r-pill);
background: var(--surface-2);
font-family: var(--font-mono);
font-size: 11px;
color: var(--fg-2);
letter-spacing: 0.01em;
cursor: pointer;
transition: background var(--motion-fast) var(--ease);
}
.model-picker:hover { background: var(--surface-3); }
.model-picker .icon-btn {
width: 22px; height: 22px;
display: grid; place-items: center;
border-radius: 50%;
color: var(--muted);
}
.model-picker .chip {
padding: 3px 8px;
border-radius: var(--r-pill);
background: var(--success-soft);
color: var(--success);
font-size: 10.5px;
font-weight: 500;
letter-spacing: 0.01em;
display: inline-flex; align-items: center; gap: 4px;
}
.model-picker .chip .d {
width: 5px; height: 5px; border-radius: 50%;
background: var(--success);
}
.send-btn {
margin-left: auto;
width: 32px; height: 32px;
display: grid; place-items: center;
border-radius: 50%;
background: transparent;
color: var(--fg);
transition: color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}
.send-btn:hover { color: var(--accent); transform: scale(1.05); }
/* ─── preview — main canvas, transport bar at bottom ─────────── */
.preview-wrap {
display: grid;
grid-template-rows: 1fr auto;
background: var(--surface-1);
min-width: 0;
position: relative;
}
.preview-canvas {
position: relative;
display: grid; place-items: center;
overflow: hidden;
padding: var(--sp-5);
}
.preview-canvas::before {
content: "";
position: absolute; inset: 0;
background: var(--surface-1);
}
.preview-frame {
position: relative;
aspect-ratio: 16 / 9;
max-width: 100%;
max-height: 100%;
width: 720px;
background:
radial-gradient(ellipse at 50% 35%,
var(--scene-sky-hi) 0%,
var(--scene-sky-mid) 35%,
var(--scene-foliage) 70%,
var(--scene-foliage-d) 100%);
border-radius: var(--r-md);
box-shadow: var(--elev-card);
overflow: hidden;
}
/* landscape illustration — placeholder for the puffin shot */
.preview-frame .scene {
position: absolute; inset: 0;
display: grid; place-items: center;
color: var(--overlay-text-2);
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.preview-frame .scene::before {
content: "";
position: absolute;
left: 8%; right: 8%; bottom: 22%;
height: 18%;
background: linear-gradient(180deg, transparent, var(--scene-overlay));
border-radius: 50%;
filter: blur(6px);
}
.preview-frame .pip {
position: absolute;
right: var(--sp-3); bottom: var(--sp-3);
width: 120px; aspect-ratio: 16 / 9;
border-radius: var(--r-sm);
background:
linear-gradient(135deg, var(--pip-bg-1) 0%, var(--pip-bg-2) 50%, var(--pip-bg-3) 100%);
border: 2px solid var(--bg);
box-shadow: var(--elev-card);
overflow: hidden;
display: grid; place-items: center;
color: var(--overlay-text);
font-family: var(--font-mono);
font-size: 9px;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.preview-frame .pip .face {
width: 30px; height: 30px;
border-radius: 50%;
background: linear-gradient(180deg, var(--pip-skin-hi) 0%, var(--pip-skin-lo) 100%);
box-shadow: inset 0 -3px 6px var(--pip-shadow);
position: relative;
}
.preview-frame .pip .face::after {
content: "";
position: absolute; left: 50%; top: -2px;
transform: translateX(-50%);
width: 22px; height: 10px;
border-radius: 50% 50% 30% 30%;
background: var(--pip-hair);
}
.preview-frame .timestamp {
position: absolute;
top: var(--sp-3); left: var(--sp-3);
padding: 4px 8px;
border-radius: var(--r-xs);
background: var(--overlay-dark);
color: var(--bg);
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.02em;
}
.preview-frame .badge {
position: absolute;
top: var(--sp-3); right: var(--sp-3);
padding: 4px 8px;
border-radius: var(--r-xs);
background: var(--overlay-light);
color: var(--fg);
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.02em;
font-weight: 500;
backdrop-filter: blur(8px);
}
/* third-of-frame rule — composition guides overlay */
.preview-frame .guides {
position: absolute; inset: 0;
pointer-events: none;
opacity: 0.18;
}
.preview-frame .guides::before,
.preview-frame .guides::after {
content: "";
position: absolute;
background: var(--overlay-text);
}
.preview-frame .guides::before {
left: 33.33%; top: 0; bottom: 0;
width: 1px;
}
.preview-frame .guides::after {
left: 66.66%; top: 0; bottom: 0;
width: 1px;
}
/* transport bar — sits below preview frame */
.transport {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-2) var(--sp-4);
background: var(--bg);
border-top: 1px solid var(--border-soft);
}
.transport .tbtn {
width: 32px; height: 32px;
display: grid; place-items: center;
border-radius: var(--r-sm);
color: var(--fg-2);
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.transport .tbtn:hover { background: var(--surface-3); color: var(--fg); }
.transport .tbtn.play {
width: 36px; height: 36px;
background: var(--fg);
color: var(--bg);
border-radius: 50%;
}
.transport .tbtn.play:hover { background: var(--fg-2); }
.transport .time {
font-family: var(--font-mono);
font-size: 12px;
color: var(--fg);
letter-spacing: 0.02em;
min-width: 96px;
text-align: center;
}
.transport .time .sep { color: var(--meta); margin-inline: 4px; }
.transport .time .total { color: var(--muted); }
.transport .spacer { flex: 1; }
.transport .seg {
display: inline-flex;
padding: 2px;
background: var(--surface-2);
border-radius: var(--r-pill);
gap: 2px;
}
.transport .seg button {
padding: 4px 10px;
border-radius: var(--r-pill);
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
letter-spacing: 0.02em;
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.transport .seg button[aria-pressed="true"] {
background: var(--bg);
color: var(--fg);
box-shadow: var(--elev-card-soft);
}
.transport .rec {
display: inline-flex; align-items: center; gap: 6px;
padding: 5px 10px;
border-radius: var(--r-pill);
border: 1px solid var(--border);
color: var(--muted);
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.02em;
transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.transport .rec .dot {
width: 7px; height: 7px;
border-radius: 50%;
background: var(--danger);
}
.transport .rec[aria-pressed="true"] {
background: var(--danger);
border-color: var(--danger);
color: #ffffff;
}
.transport .rec[aria-pressed="true"] .dot {
background: #ffffff;
animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
/* ─── transcript panel — numbered clip header + transcript text */
.transcript-head {
padding: var(--sp-3) var(--sp-4);
border-bottom: 1px solid var(--border-soft);
}
.clip-badge {
display: flex; align-items: center; gap: var(--sp-2);
margin-bottom: 2px;
}
.clip-badge .num {
width: 20px; height: 20px;
display: grid; place-items: center;
border-radius: var(--r-xs);
background: var(--accent);
color: var(--accent-on);
font-family: var(--font-mono);
font-size: 11px;
font-weight: 500;
flex-shrink: 0;
}
.clip-badge .fname {
font-family: var(--font-mono);
font-size: 12px;
color: var(--fg);
font-weight: 500;
letter-spacing: -0.005em;
word-break: break-all;
}
.clip-range {
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
letter-spacing: 0.02em;
padding-left: 28px;
}
.transcript-text {
padding: var(--sp-3) var(--sp-4);
font-size: 13.5px;
line-height: 1.7;
color: var(--fg-2);
}
.transcript-text p { margin: 0 0 var(--sp-3); }
.filler {
padding: 1px 4px;
border-radius: 3px;
background: var(--danger-wash);
color: var(--danger);
font-weight: 500;
}
.skip-mark {
display: inline-block;
margin: 0 2px;
padding: 1px 5px;
border-radius: var(--r-xs);
background: var(--danger-soft);
color: var(--danger);
font-family: var(--font-mono);
font-size: 10.5px;
letter-spacing: 0.02em;
font-weight: 500;
vertical-align: 1px;
}
/* ─── right-rail panel-stack — 7 panes, one visible at a time ── */
.panel-stack {
grid-column: 6;
display: grid;
min-width: 0;
min-height: 0;
background: var(--bg);
border-left: 1px solid var(--border-soft);
}
.panel-stack > .panel[data-pane] { display: none; }
.panel-stack > .panel[data-pane].is-active {
display: grid;
grid-template-rows: auto 1fr;
min-height: 0;
}
.pane-head {
display: flex; align-items: center; gap: var(--sp-2);
padding: 12px var(--sp-4);
border-bottom: 1px solid var(--border-soft);
min-height: 44px;
}
.pane-head h2 {
margin: 0;
font-family: var(--font-display);
font-size: 14px;
font-weight: 500;
letter-spacing: -0.005em;
color: var(--fg);
}
.pane-head .right { margin-left: auto; display: inline-flex; gap: var(--sp-1); }
.pane-head .icon-btn {
width: 24px; height: 24px;
display: grid; place-items: center;
border-radius: var(--r-sm);
color: var(--meta);
background: transparent;
border: 0;
cursor: pointer;
transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.pane-head .icon-btn:hover { background: var(--surface-3); color: var(--fg-2); }
.pane-body { overflow-y: auto; padding: 12px var(--sp-4); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.pane-tabs {
display: flex; gap: 2px;
padding: 3px;
margin: 12px var(--sp-4);
background: var(--surface-warm);
border-radius: 10px;
}
.pane-tabs button {
flex: 1; padding: 7px 10px;
border: 0; background: transparent;
border-radius: 7px;
font: 500 12px/1 var(--font-body);
color: var(--muted);
cursor: pointer;
transition: background 150ms ease, color 150ms ease;
}
.pane-tabs button.is-active { background: var(--surface-hi); color: var(--fg-emphasis); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pane-section { display: none; }
.pane-section.is-active { display: block; }
.upload-btn {
display: flex; align-items: center; justify-content: center; gap: 8px;
margin: 0 var(--sp-4) 12px;
padding: 12px;
border: 1px dashed var(--border);
border-radius: 10px;
background: var(--bg);
color: var(--muted);
font: 500 12px var(--font-body);
cursor: pointer;
}
.upload-btn:hover { border-color: var(--success); color: var(--success); }
.bg-grid {
display: grid;
grid-template-columns: repeat(8, minmax(0, 1fr));
gap: 5px;
padding: 0 var(--sp-4) var(--sp-4);
}
.bg-thumb {
aspect-ratio: 1/1;
border-radius: 8px;
border: 1px solid transparent;
cursor: pointer;
transition: transform 150ms ease, border-color 150ms ease;
}
.bg-thumb:hover { transform: translateY(-1px); }
.bg-add { display: grid; place-items: center; border: 1px dashed var(--border-hi); background: transparent; color: var(--muted); }
.bg-add:hover { border-color: var(--accent); color: var(--accent); }
.bg-thumb.is-active {
border-color: var(--brand);
box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand), transparent 70%);
}
.sub-tabs { display: flex; gap: 6px; padding: 0 var(--sp-4) 12px; }
.sub-tabs button {
flex: 1; padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
font: 500 12px/1 var(--font-body);
color: var(--fg-2);
cursor: pointer;
transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.sub-tabs button.is-active {
background: var(--brand);
color: var(--accent-on);
border-color: var(--brand);
}
.color-preview {
margin: 0 var(--sp-4) 12px;
height: 64px;
border-radius: 10px;
display: grid; place-items: center;
background: #bcc0c6;
color: var(--accent-on);
font: 500 14px var(--font-mono);
text-shadow: 0 1px 2px rgba(22,23,29,.3);
border: 1px solid var(--border);
}
.color-wheel {
position: relative;
margin: 0 var(--sp-4) 12px;
height: 180px;
border-radius: 12px;
border: 1px solid var(--border);
background:
linear-gradient(0deg, var(--fg), transparent),
linear-gradient(90deg, var(--bg), #bcc0c6 50%, var(--fg)),
linear-gradient(45deg, #bcc0c6, var(--fg));
}
.color-wheel::after {
content: '';
position: absolute;
top: 50%; left: 30%;
width: 18px; height: 18px;
border-radius: 50%;
background: #bcc0c6;
border: 3px solid var(--accent-on);
box-shadow: 0 0 4px rgba(22,23,29,.5);
transform: translate(-50%, -50%);
}
.hue-track {
position: relative;
margin: 0 var(--sp-4) 12px;
height: 14px;
border-radius: 7px;
background: linear-gradient(90deg, #16171d, #6b7280, #bcc0c6, #eaebed, #ffffff, #eaebed, #bcc0c6, #6b7280, #16171d);
}
.hue-track::after {
content: '';
position: absolute;
top: -3px; left: 18%;
width: 20px; height: 20px;
border-radius: 50%;
background: var(--accent);
border: 3px solid var(--accent-on);
box-shadow: 0 0 4px rgba(22,23,29,.5);
transform: translateX(-50%);
}
.hex-input {
margin: 0 var(--sp-4) var(--sp-4);
height: 36px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
padding: 0 12px;
font: 500 13px var(--font-mono);
color: var(--fg-2);
display: flex; align-items: center;
}
.pane-row {
display: flex; align-items: center; justify-content: space-between;
gap: 12px;
padding: 12px 0;
margin: 8px var(--sp-4);
}
.pane-row .label { font: 500 13px var(--font-body); color: var(--fg-2); }
.pane-row .info { color: var(--meta); font-size: 12px; margin-left: 4px; }
.toggle {
width: 36px; height: 20px;
border: 0; padding: 0;
background: var(--border);
border-radius: 9999px;
position: relative;
cursor: pointer;
transition: background 150ms ease;
flex-shrink: 0;
}
.toggle::after {
content: '';
position: absolute;
top: 2px; left: 2px;
width: 16px; height: 16px;
background: var(--accent-on);
border-radius: 50%;
box-shadow: 0 1px 3px rgba(22,23,29,.2);
transition: transform 150ms ease;
}
.toggle.is-on { background: var(--brand); }
.toggle.is-on::after { transform: translateX(16px); }
.slider-grid {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
padding: 0 var(--sp-4) var(--sp-4);
}
/* a free row, like .pane-row: no card around the label, value and track */
.slider-cell {
padding: 12px 0;
display: grid;
grid-template-rows: auto auto;
gap: 10px;
}
.slider-cell .head { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.slider-cell .label { font: 500 13px var(--font-body); color: var(--fg-2); }
/* --muted body text, not mint mono: mint text is 2.3:1 on the light row */
.slider-cell .val { font: 500 12px var(--font-body); font-variant-numeric: tabular-nums; color: var(--muted); margin-left: auto; }
.slider-cell input[type=range] {
width: 100%; height: 6px;
background: var(--border-hi);
border-radius: 2px;
outline: none;
-webkit-appearance: none;
cursor: pointer;
}
.slider-cell input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 14px; height: 14px;
border-radius: 50%;
background: var(--brand);
box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), transparent 80%);
cursor: pointer;
}
.slider-cell input[type=range]::-moz-range-thumb {
width: 14px; height: 14px;
border-radius: 50%;
background: var(--brand);
border: 0;
box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), transparent 80%);
cursor: pointer;
}
.slider-cell input[type=range]:disabled::-webkit-slider-thumb { background: var(--meta); box-shadow: none; }
.slider-cell input[type=range]:disabled { cursor: not-allowed; }
.section-label {
font: 600 13px/1.3 var(--font-body);
color: var(--fg-2);
margin: 4px var(--sp-4) 8px;
}
.field {
display: grid;
grid-template-columns: 80px 1fr;
align-items: center;
gap: 8px;
padding: 4px var(--sp-4);
}
.field label {
font: 500 12px var(--font-body);
color: var(--muted);
}
.field select, .field input {
width: 100%;
padding: 6px 8px;
font: 400 12px var(--font-body);
color: var(--fg-2);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
outline: none;
}
.field select:focus, .field input:focus { border-color: var(--brand); }
/* ChoiceRow: a fixed choice in one click (src/components/ai-edition/NewEditorShell.module.css) */
.choice-row { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; }
.choice-btn {
min-width: 0; min-height: 32px; padding: 0 6px;
border: 1px solid transparent; border-radius: var(--r-md);
background: color-mix(in oklab, var(--fg) 6%, transparent);
color: var(--fg-2); font: 500 12.5px/1.2 var(--font-body);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.choice-btn:hover { background: color-mix(in oklab, var(--fg) 11%, transparent); }
.choice-btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.transcript-list {
display: grid;
gap: 2px;
padding: 0 var(--sp-4) var(--sp-4);
}
.transcript-row {
display: grid;
grid-template-columns: 56px 1fr;
gap: 10px;
padding: 6px 8px;
font: 400 12px var(--font-body);
color: var(--fg-2);
border-radius: 6px;
transition: background var(--motion-fast) var(--ease);
}
.transcript-row:hover { background: var(--surface-warm); }
.transcript-row .tc { font-family: var(--font-mono); font-size: 11px; color: var(--meta); align-self: center; }
.transcript-row.skip { color: var(--muted); font-style: italic; background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in oklab, var(--danger) 6%, transparent) 6px 12px); border-left: 2px solid var(--danger); }
.transcript-row.filler .txt {
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
background: color-mix(in oklab, var(--danger) 14%, transparent);
color: var(--danger);
font-style: italic;
}
.cursor-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 6px;
padding: 0 var(--sp-4) var(--sp-4);
}
.cursor-cell {
aspect-ratio: 1/1;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
display: grid; place-items: center;
cursor: pointer;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cursor-cell:hover { border-color: var(--border-hi); }
.cursor-cell.is-active {
border-color: var(--brand);
box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand), transparent 75%);
}
.cursor-cell svg { width: 18px; height: 18px; color: var(--fg-2); }
.crop-stage {
margin: 12px var(--sp-4);
aspect-ratio: 16/9;
border: 1px solid var(--border);
border-radius: 8px;
background: linear-gradient(135deg, #16171d 0%, #16171d 100%);
position: relative;
overflow: hidden;
}
.crop-stage::before {
content: '';
position: absolute;
inset: 12% 18%;
border: 2px solid var(--accent-on);
border-radius: 4px;
box-shadow: 0 0 0 9999px rgba(22,23,29,.55);
}
.crop-stage::after {
content: '';
position: absolute;
inset: 12% 18%;
border: 1px dashed rgba(255,255,255,.5);
border-radius: 4px;
background:
repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.1) 47px 48px),
repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.1) 47px 48px);
}
.crop-controls {
display: grid;
grid-template-columns: repeat(5, auto) 1fr auto;
gap: 10px;
align-items: end;
padding: 0 var(--sp-4) var(--sp-4);
}
.crop-controls .field { display: grid; gap: 4px; min-width: 60px; }
.crop-controls .field label {
font: 500 10px var(--font-body);
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.crop-controls .field input,
.crop-controls .field select {
height: 32px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
padding: 0 8px;
font: 500 12px var(--font-mono);
color: var(--fg-2);
}
.crop-controls .lock-btn {
width: 32px; height: 32px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
display: grid; place-items: center;
cursor: pointer;
color: var(--muted);
}
.crop-controls .size-text {
font: 500 11px var(--font-mono);
color: var(--muted);
align-self: center;
justify-self: end;
padding-right: 8px;
}
.done-btn {
height: 36px;
padding: 0 20px;
border: 0;
border-radius: 8px;
background: var(--brand);
color: var(--accent-on);
font: 600 13px var(--font-body);
cursor: pointer;
align-self: end;
transition: background 150ms ease;
}
.done-btn:hover { background: color-mix(in oklab, var(--brand), var(--fg) 12%); }
.rail-right button.is-active {
background: color-mix(in oklab, var(--brand), transparent 85%);
color: var(--brand-lo);
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand), transparent 60%);
}
/* ─── bottombar — timeline (single track, from-scratch redo) ───── */
.bottombar {
display: grid;
grid-template-columns: 1fr;
min-height: 0;
background: var(--bg);
}
.timeline-wrap {
min-width: 0;
display: grid;
grid-template-rows: auto 1fr auto;
}
/* ─── timeline head — view tools (left) + shortcut hints (right) ─── */
.timeline-head {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-2) var(--sp-4);
border-bottom: 1px solid var(--border-soft);
min-height: 40px;
}
.timeline-head .view-tools {
display: flex; align-items: center; gap: 4px;
padding: 3px;
background: var(--surface-2);
border: 1px solid var(--border-soft);
border-radius: var(--r-sm);
}
.timeline-head .vt-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 30px; height: 30px;
padding: 0;
border: 0; background: transparent;
color: var(--muted);
border-radius: var(--r-xs);
cursor: pointer;
transition: color .12s ease, background .12s ease;
}
.timeline-head .vt-btn:hover { color: var(--fg); background: var(--surface); }
.timeline-head .vt-btn.is-on { color: var(--accent); background: var(--accent-wash); }
.timeline-head .vt-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.timeline-head .ratio {
display: inline-flex; align-items: center; gap: 5px;
height: 30px;
padding: 0 10px;
font-family: var(--font-mono);
font-size: 12px;
color: var(--muted);
letter-spacing: 0.02em;
background: transparent;
border: 0;
border-left: 1px solid var(--border-soft);
margin-left: 4px;
cursor: pointer;
border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.timeline-head .ratio:hover { color: var(--fg); }
.timeline-head .ratio .caret { width: 9px; height: 9px; opacity: .7; }
.timeline-head .hint-row {
margin-left: auto;
display: flex; align-items: center; gap: var(--sp-4);
}
.timeline-head .hint {
display: inline-flex; align-items: center; gap: 6px;
font-family: var(--font-display);
font-size: 11.5px;
color: var(--muted);
letter-spacing: 0.005em;
}
.timeline-head .hint .kbd {
display: inline-flex; align-items: center; justify-content: center;
height: 20px;
padding: 0 7px;
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 500;
color: var(--accent);
background: var(--accent-soft);
border: 1px solid color-mix(in oklch, var(--accent) 24%, transparent);
border-radius: var(--r-xs);
letter-spacing: 0.02em;
white-space: nowrap;
}
.timeline-head .hint .kbd + .kbd { margin-left: 3px; }
.timeline-head .hint .arrow { color: var(--dim); font-size: 10px; margin: 0 2px; }
.timeline-head .hint .act { color: var(--fg); }
/* ─── timeline body — 3 rows: ruler (fixed) + tracks-scroll (1fr) + zoombar (fixed) ── */
.timeline-body {
position: relative;
padding: var(--sp-3) var(--sp-4) 0;
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
overflow: hidden;
}
/* TOP — ruler (fixed height) */
.timeline-ruler {
flex: 0 0 auto;
position: relative;
}
/* ruler — major ticks every 30s, half-ticks at midpoints, labels above */
.ruler {
display: flex;
justify-content: space-between;
position: relative;
height: 30px;
padding-left: 5px;
padding-right: 5px;
margin-bottom: 5px;
user-select: none;
}
.ruler-tick {
position: relative;
flex: 1;
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
font-weight: 500;
letter-spacing: 0.02em;
}
.ruler-tick::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 2px;
height: 4px;
background: var(--border-hi);
}
.ruler-tick::after {
content: "";
position: absolute;
left: 50%;
bottom: 0;
width: 2px;
height: 3px;
background: var(--border);
}
/* playhead — absolute, spans ruler + tracks-scroll, stops above zoombar */
.playhead {
position: absolute;
top: 0;
left: 120px;
width: 2px;
bottom: 0;
background-color: var(--playhead);
z-index: 10;
pointer-events: none;
}
.playhead::before {
content: "";
position: absolute;
top: 0;
left: -3px;
width: 8px;
height: 8px;
background: var(--playhead);
transform: rotate(45deg);
}
/* tracks wrapper — two track-blocks side-by-side, sized by clip duration */
.tracks-wrapper {
display: flex;
gap: 4px;
position: relative;
}
/* the recording clip: a solid candy card in the brand green (--clip), dark ink #0b1220
on it (mint cannot carry white: 2.3:1 against 8.2:1). .tlClip in EditorShellV4.module.css */
.track-block {
background: linear-gradient(180deg, color-mix(in oklab, var(--clip) 78%, white), var(--clip)) border-box;
border: 1px solid transparent;
border-radius: 12px;
color: #0b1220;
overflow: visible;
position: relative;
display: flex;
flex-direction: column;
cursor: pointer;
box-shadow: 0 3px 10px color-mix(in oklab, var(--clip) var(--candy-glow), transparent);
transition: border-color var(--motion-fast) var(--ease),
box-shadow var(--motion-fast) var(--ease);
}
.track-block.block-1 { flex: 36.5; }
.track-block.block-2 { flex: 63.5; }
/* selection = a halo ring set off by a gap: a border does not show on a solid card */
.track-block.is-selected {
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--clip);
}
.track-block .track-title,
.track-block .track-subtitle { color: #0b1220; }
.track-block .track-subtitle span { color: rgb(11 18 32 / 0.5); }
/* visual timeline strip — hatched cut regions + transparent keep regions */
.track-visual-timeline {
height: 28px;
border-bottom: 1px solid rgb(11 18 32 / 0.15);
border-radius: 12px 12px 0 0;
overflow: hidden;
display: flex;
background: transparent;
}
.segment {
height: 100%;
}
.segment.keep {
background: transparent;
}
.segment.cut {
background-color: rgb(11 18 32 / 0.08);
background-image: repeating-linear-gradient(
45deg,
rgb(11 18 32 / 0.18) 0,
rgb(11 18 32 / 0.18) 8px,
transparent 8px,
transparent 16px
);
position: relative;
}
/* trim controls — appear above each cut region on hover */
.cut-controls {
position: absolute;
display: none;
align-items: center;
gap: 2px;
padding: 3px;
background: var(--surface);
border: 1px solid var(--border-soft);
border-radius: var(--r-sm);
box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.45);
z-index: 20;
white-space: nowrap;
pointer-events: auto;
}
.cut-controls.is-on { display: inline-flex; }
.cc-btn {
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
border: 0;
border-radius: var(--r-xs);
color: var(--muted);
cursor: pointer;
font-size: 13px;
line-height: 1;
padding: 0;
transition: background var(--motion-fast) var(--ease),
color var(--motion-fast) var(--ease);
}
.cc-btn:hover { background: var(--surface-3); color: var(--fg); }
.cc-btn.cc-mid:hover { background: var(--accent-wash); color: var(--accent); }
.cc-btn svg { width: 12px; height: 12px; display: block; }
/* track info — icon + title + meta */
.track-info-content {
padding: 14px 16px;
border-radius: 0 0 var(--r-md) var(--r-md);
overflow: hidden;
display: flex;
align-items: center;
gap: 12px;
}
.edit-icon-wrapper {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-sm);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: var(--fg);
flex: 0 0 auto;
box-shadow: var(--elev-card-soft);
cursor: pointer;
transition: border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.edit-icon-wrapper:hover { border-color: var(--accent); color: var(--accent); }
.track-text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.track-title {
font-size: 13px;
font-weight: 500;
color: var(--fg);
margin: 0;
letter-spacing: -0.005em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-subtitle {
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--muted);
margin: 0;
letter-spacing: 0.02em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-subtitle span {
margin: 0 4px;
color: var(--dim);
}
/* ─── zoom handling bar (full-width mint, replaces red progress bar) */
.zoombar {
padding: 4px var(--sp-4) 8px;
background: var(--bg);
flex-shrink: 0;
border-top: 1px solid var(--border-soft);
position: sticky;
bottom: 0;
z-index: 5;
}
.zoombar .zoom-track {
position: relative;
height: 18px;
width: 100%;
}
.zoombar .zoom-fill {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
width: 100%;
height: 6px;
background: var(--accent);
border-radius: 3px;
pointer-events: none;
}
.zoombar .zoom-handle {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 14px;
height: 14px;
background: var(--accent);
border: 1px solid var(--bg);
border-radius: 3px;
cursor: ew-resize;
padding: 0;
z-index: 2;
transition: background var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.zoombar .zoom-handle:hover {
box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
}
.zoombar .zoom-handle-l { left: 0; }
.zoombar .zoom-handle-r { left: calc(100% - 14px); }
/* MIDDLE — tracks-scroll fills remaining height, content has no limit, scrolls vertically */
.tracks-scroll {
flex: 1 1 0;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding-right: 6px;
scrollbar-width: thin;
scrollbar-color: var(--border-hi) transparent;
}
.tracks-scroll::-webkit-scrollbar { width: 8px; }
.tracks-scroll::-webkit-scrollbar-track { background: transparent; }
.tracks-scroll::-webkit-scrollbar-thumb {
background: var(--border-hi);
border-radius: 4px;
border: 2px solid var(--bg);
}
.tracks-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.tracks-wrapper + .tracks-wrapper { margin-top: 4px; }
/* All three track rows share the same small geometry (single-row pill,
~22px tall, sits centered vertically in a 26px row → ~2px buffer
top/bottom). 10px gap between rows matches the user's spec. */
.zoom-track-row,
.speed-track-row,
.annotation-track-row {
position: relative;
height: 26px;
margin-bottom: 10px;
}
/* ─── shared keyframe-pill geometry ──────────────────────────────── */
/* Each pill = small inline-flex rectangle with a thin colored frame,
subtle gradient sheen on top, inset highlight + soft outer halo.
Frame color comes from the per-type override (.zoom-pill → mint,
.speed-pill → orange, .annotation-pin → yellow). The visual treatment
(border + gradient + glow + highlight) is preserved from the larger
key-card style, scaled down to fit the original small pill size. */
.zoom-pill,
.speed-pill,
.annotation-pin {
--_pill: var(--accent);
position: absolute;
top: 50%;
transform: translateY(-50%);
display: inline-flex;
align-items: center;
gap: 6px;
height: auto;
padding: 5px 10px 6px;
/* candy (.lanePill): solid gradient + glow, dark ink on every lane colour */
background: linear-gradient(180deg, color-mix(in oklab, var(--_pill) 72%, white), var(--_pill)) border-box;
border: 1px solid transparent;
border-radius: 8px;
color: #0b1220;
font: 600 11.5px/1 var(--font-display);
letter-spacing: 0.01em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
pointer-events: auto;
box-shadow: 0 2px 6px color-mix(in oklab, var(--_pill) var(--candy-glow), transparent);
}
/* per-type frame color (uses a private var so the gradient + shadow
above can share it without re-declaring the body three times) */
.zoom-pill { --_pill: var(--zoom); }
.speed-pill { --_pill: var(--speed); }
.annotation-pin { --_pill: var(--annotation); }
/* icon inside every pill */
.pill-icon {
flex-shrink: 0;
width: 12px;
height: 12px;
color: currentColor;
}
/* value = main text inside the pill */
.pill-value {
color: inherit;
font-variant-numeric: tabular-nums;
}
/* subtle hover lift for interactive annotation pins */
.annotation-pin { cursor: pointer; }
.annotation-pin:hover { filter: brightness(1.06); }
.annotation-pin:focus-visible {
outline: none;
box-shadow:
0 4px 12px -8px color-mix(in oklch, var(--annotation) 60%, transparent),
inset 0 1px 0 color-mix(in oklch, var(--annotation) 30%, transparent),
0 0 0 3px color-mix(in oklch, var(--annotation) 35%, transparent);
}
/* ─── tab caps at both extremities of every pill ───────────────
Small filled rounded tabs protruding from each end of the pill,
solid _pill color with a hairline bg gap separating them from the
pill body — bookmark/tag silhouette, marks the range start/end. */
.zoom-pill::before,
.zoom-pill::after,
.speed-pill::before,
.speed-pill::after,
.annotation-pin::before,
.annotation-pin::after {
content: none; /* retired: candy pills carry no end caps */
position: absolute;
top: 50%;
width: 7px;
height: 16px;
background: var(--_pill);
border-radius: 3px;
transform: translateY(-50%);
pointer-events: none;
z-index: 1;
box-shadow:
0 0 0 1px var(--bg),
0 2px 6px -2px color-mix(in oklch, var(--_pill) 55%, transparent);
}
.zoom-pill::before,
.speed-pill::before,
.annotation-pin::before { left: -5px; }
.zoom-pill::after,
.speed-pill::after,
.annotation-pin::after { right: -5px; }
/* full-width track variants (audio, fx) — single block per row */
.track-block.track-audio,
.track-block.track-fx { flex: 1; }
/* ─── properties — selected clip detail panel ───────────────── */
.properties-head {
display: flex; align-items: center; gap: var(--sp-2);
padding: var(--sp-3) var(--sp-4);
border-bottom: 1px solid var(--border-soft);
min-height: 40px;
}
.properties-head h2 {
margin: 0;
font-family: var(--font-display);
font-size: 13px;
font-weight: 500;
color: var(--fg);
letter-spacing: -0.005em;
}
.properties-head .right { margin-left: auto; }
.properties-body {
padding: var(--sp-3) var(--sp-4);
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.properties-body::-webkit-scrollbar { width: 8px; }
.properties-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.prop-row {
display: grid;
grid-template-columns: 84px 1fr;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2) 0;
border-bottom: 1px solid var(--border-soft);
}
.prop-row:last-child { border-bottom: 0; }
.prop-row .k {
font-size: 11px;
color: var(--muted);
font-family: var(--font-mono);
letter-spacing: 0.02em;
}
.prop-row .v {
font-size: 12.5px;
color: var(--fg-2);
font-family: var(--font-mono);
letter-spacing: 0.01em;
word-break: break-all;
}
.prop-row .v strong { color: var(--fg); font-weight: 500; }
.prop-actions {
display: flex; gap: var(--sp-2);
margin-top: var(--sp-4);
}
.prop-btn {
flex: 1;
padding: 8px 10px;
border-radius: var(--r-md);
background: var(--bg);
border: 1px solid var(--border);
color: var(--fg-2);
font-size: 12px;
font-weight: 500;
transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.prop-btn:hover { background: var(--surface-2); border-color: var(--border-hi); color: var(--fg); }
.prop-btn.primary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.prop-btn.primary:hover { background: var(--fg-2); }
/* ─── focus ───────────────────────────────────────────────────── */
button:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
/* ─── info icon (used inside labels for inline help) ────────── */
.info {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
margin-left: 4px;
border-radius: 9999px;
border: 1px solid var(--border);
color: var(--muted);
font: 600 9px/1 var(--font-mono);
cursor: help;
vertical-align: middle;
}
/* ─── shape-grid (Camera Shape in Layout pane) ───────────────── */
.shape-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
}
.shape-cell {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
padding: 12px 8px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--r-md);
color: var(--muted);
transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.shape-cell:hover { border-color: var(--border-hi); color: var(--fg-2); }
.shape-cell.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.shape-cell span { font: 500 11px/1 var(--font-body); }
.slider-cell.full { grid-column: 1 / -1; }
/* ─── modal (Crop Video) ─────────────────────────────────────── */
.modal {
position: fixed;
inset: 0;
display: none;
z-index: 100;
}
.modal.is-open { display: block; }
.modal-backdrop {
position: absolute;
inset: 0;
background: rgba(22, 23, 29, 0.55);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.modal-card {
position: relative;
width: min(960px, 92vw);
max-height: 88vh;
margin: 6vh auto 0;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--r-lg);
box-shadow: 0 24px 60px rgba(22, 23, 29, 0.5);
display: flex;
flex-direction: column;
overflow: hidden;
}
.modal-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 20px 24px 12px;
gap: 16px;
}
.modal-head h2 {
margin: 0;
font: 600 20px/1.3 var(--font-display);
color: var(--fg);
}
.modal-head p {
margin: 4px 0 0;
font: 400 13px/1.5 var(--font-body);
color: var(--muted);
}
.modal-body {
padding: 8px 24px 24px;
display: flex;
flex-direction: column;
gap: 20px;
overflow: auto;
}
.crop-stage {
position: relative;
aspect-ratio: 16 / 9;
background:
radial-gradient(circle at 50% 50%, #16171d 0%, #16171d 100%);
border-radius: var(--r-md);
border: 1px solid var(--border);
overflow: hidden;
}
.crop-frame {
position: absolute;
top: 8%;
left: 12%;
right: 12%;
bottom: 8%;
border: 1.5px solid var(--fg);
box-shadow: 0 0 0 9999px rgba(22, 23, 29, 0.35);
cursor: move;
}
.crop-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
background-size: 33.33% 33.33%;
pointer-events: none;
}
.crop-handle {
position: absolute;
background: var(--fg);
pointer-events: auto;
}
.crop-handle.n, .crop-handle.s { left: 0; right: 0; height: 6px; cursor: ns-resize; }
.crop-handle.n { top: -3px; }
.crop-handle.s { bottom: -3px; }
.crop-handle.e, .crop-handle.w { top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.crop-handle.w { left: -3px; }
.crop-handle.e { right: -3px; }
.crop-handle.nw, .crop-handle.ne, .crop-handle.sw, .crop-handle.se {
width: 12px; height: 12px;
border: 2px solid var(--bg);
border-radius: 2px;
}
.crop-handle.nw { top: -6px; left: -6px; cursor: nwse-resize; }
.crop-handle.ne { top: -6px; right: -6px; cursor: nesw-resize; }
.crop-handle.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.crop-handle.se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.crop-controls {
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
}
.crop-controls .field {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 64px;
}
.crop-controls .field label {
font: 500 11px/1 var(--font-mono);
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.crop-controls input[type="number"],
.crop-controls select {
width: 100%;
padding: 8px 10px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-sm);
color: var(--fg);
font: 500 13px/1 var(--font-mono);
}
.crop-controls input:focus, .crop-controls select:focus {
border-color: var(--brand);
}
.crop-controls .ratio-field { min-width: 96px; }
.crop-controls .size-text {
font: 500 12px/1 var(--font-mono);
color: var(--muted);
margin-left: 4px;
align-self: center;
}
.crop-controls .lock-btn {
align-self: center;
padding: 6px;
border-radius: var(--r-sm);
color: var(--muted);
transition: color var(--motion-fast) var(--ease);
}
.crop-controls .lock-btn:hover { color: var(--fg-2); }
.crop-controls .done-btn {
margin-left: auto;
padding: 10px 22px;
background: var(--brand);
color: #ffffff;
font: 600 13px/1 var(--font-body);
border-radius: var(--r-md);
transition: filter var(--motion-fast) var(--ease);
}
.crop-controls .done-btn:hover { filter: brightness(1.08); }
/* ─── Transcript pane — flowing text + highlighted phrases ───── */
.transcript-body { padding-top: 0; }
.transcript-clip-head {
display: flex;
align-items: center;
gap: 10px;
padding: 0 4px 4px;
border-bottom: 1px solid var(--border-soft);
margin-bottom: 2px;
}
.transcript-clip-head .badge {
width: 22px; height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--brand-soft);
color: var(--brand);
border-radius: var(--r-sm);
font: 700 12px/1 var(--font-mono);
flex-shrink: 0;
}
.transcript-clip-head .title {
font: 600 13px/1.2 var(--font-body);
color: var(--fg);
margin: 0;
padding: 0;
}
.transcript-clip-head .sub {
font: 400 11px/1.3 var(--font-mono);
color: var(--muted);
margin-top: 2px;
}
.transcript-flow {
margin: 0;
padding: 0 4px;
font: 400 13px/1.65 var(--font-body);
color: var(--fg);
text-wrap: pretty;
}
.transcript-flow .hl {
color: var(--danger);
font-weight: 500;
}
.transcript-flow .tc-pill {
display: inline-block;
margin: 0 4px;
padding: 1px 6px;
background: transparent;
color: var(--brand);
border-radius: var(--r-sm);
font: 500 11px/1.4 var(--font-mono);
vertical-align: middle;
white-space: nowrap;
}
.transcript-flow .filler {
display: inline-block;
padding: 1px 6px;
margin: 0 1px;
background: var(--danger-soft);
color: var(--danger);
border-radius: var(--r-sm);
font-weight: 500;
}
.pane-transcript .transcript-body { max-height: none; }
/* ─── panel toggles (titlebar) ─────────────────────────── */
.app[data-collapse~="left"] { --panel-w-left: 0px; }
.app[data-collapse~="left"] .rail-left,
.app[data-collapse~="left"] .panel.chat,
.app[data-collapse~="left"] .panel.media,
.app[data-collapse~="left"] .resize-handle[data-axis="left"] { display: none; }
.app[data-collapse~="right"] { --panel-w-right: 0px; }
.app[data-collapse~="right"] .panel-stack,
.app[data-collapse~="right"] .rail-right,
.app[data-collapse~="right"] .resize-handle[data-axis="right"] { display: none; }
.app[data-collapse~="bottom"] { --bottom-h: 0px; }
.app[data-collapse~="bottom"] .bottombar { display: none; }
/* ─── left panel swap (chat ↔ media) ─────────────────────── */
.left-panel { display: none; flex-direction: column; min-height: 0; }
.left-panel.is-active { display: flex; }
/* ─── media panel ─────────────────────────────────────── */
.media-head {
display: flex;
align-items: center;
gap: var(--sp-2);
padding: 10px 12px;
border-bottom: 1px solid var(--border-soft);
background: var(--bg);
}
.media-head h2 {
font-family: var(--font-display);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--fg);
margin: 0;
}
.media-head .right { margin-left: auto; display: inline-flex; gap: var(--sp-1); }
.media-head .icon-btn { color: var(--meta); }
.media-head .icon-btn[aria-pressed="true"] { background: var(--surface-warm); color: var(--fg); }
.media-search {
display: flex;
align-items: center;
gap: var(--sp-2);
margin: 10px 12px 8px;
padding: 6px 10px;
background: var(--surface-warm);
border: 1px solid var(--border-soft);
border-radius: var(--r-md);
color: var(--meta);
}
.media-search input {
flex: 1;
border: 0;
background: transparent;
outline: none;
font: 13px var(--font-body);
color: var(--fg);
}
.media-search input::placeholder { color: var(--meta); }
.media .panel-body { padding: 4px 12px 8px; }
.media-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.media-card {
display: flex;
flex-direction: column;
border-radius: var(--r-md);
overflow: hidden;
border: 1px solid var(--border-soft);
background: var(--bg);
}
.media-card .thumb {
aspect-ratio: 16 / 9;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.95);
}
.thumb-red { background: var(--danger); }
.thumb-green { background: var(--success); }
.thumb-amber { background: var(--warn); }
.thumb-cyan { background: #10b981; }
.media-meta {
padding: 8px 10px 10px;
background: var(--fg);
color: #ffffff;
display: flex;
flex-direction: column;
gap: 2px;
}
.media-meta .name {
font: 13px var(--font-body);
color: #ffffff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.media-meta .row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.media-meta .timecode {
font: 11px var(--font-mono);
color: rgba(255, 255, 255, 0.62);
}
.media-meta .size {
font: 11px var(--font-body);
color: rgba(255, 255, 255, 0.62);
}
.import-btn {
margin: 8px 12px 12px;
padding: 10px 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
border: 1px dashed var(--border-hi);
border-radius: var(--r-md);
background: transparent;
color: var(--muted);
font: 13px var(--font-body);
font-weight: 500;
cursor: pointer;
}
.import-btn:hover { background: var(--surface-warm); color: var(--fg); border-color: var(--accent); }
/* ─── Source Transcript modal (opened from first media card) ──── */
.media-card[data-action="open-modal"] { cursor: pointer; }
.media-card[data-action="open-modal"]:hover { box-shadow: 0 0 0 1px var(--accent); }
.media-card[data-action="open-modal"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-card-wide { width: min(720px, 92vw); max-height: 86vh; }
.modal-body-transcript { padding: 0 20px 20px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.transcript-top { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 14px; }
.transcript-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, #16171d 0%, #16171d 100%); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.transcript-puffin, .transcript-pip { position: absolute; }
.transcript-puffin { left: 14%; top: 30%; transform: scale(3); transform-origin: left top; }
.transcript-pip { right: 12px; bottom: 12px; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(22,23,29,.45); }
.transcript-toolbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(180deg, transparent, rgba(22,23,29,.55)); color: #fff; }
.t-icon { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 2px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.t-icon:hover { background: rgba(255,255,255,.12); }
.t-tc { font-family: var(--font-mono); font-size: 12px; color: #fff; margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; }
.t-tc strong { font-weight: 600; }
.t-tc i { font-style: normal; opacity: .55; margin: 0 2px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.transcript-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.transcript-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); }
.pill-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.pill-lang { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); }
.regen-row { display: flex; flex-direction: column; gap: 6px; }
.regen-row label { font-size: 12px; color: var(--muted); }
.regen-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.regen-control select { width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.regen-control select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.regen-btn { width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.regen-btn:hover { background: var(--surface-warm); border-color: var(--accent); color: var(--accent); }
pre.transcript-body { margin: 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-warm); font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--fg); white-space: pre; overflow: auto; max-height: 38vh; }
/* ─── Edit Clip modal (opened from pencil button on track-info) ─ */
.modal-card-editclip { width: min(880px, 94vw); max-height: 90vh; }
.modal-body-editclip { padding: 0 22px 18px; gap: 16px; overflow: auto; }
.edit-clip-stage {
position: relative;
aspect-ratio: 16 / 9;
border-radius: var(--r-md);
border: 1px solid var(--border);
background:
linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
overflow: hidden;
display: flex; align-items: center; justify-content: center;
}
.edit-clip-stage .puffin-bg {
position: absolute; left: 8%; top: 14%; transform: scale(3.6); transform-origin: left top;
}
.edit-clip-stage .pip-cam {
position: absolute; right: 14px; bottom: 14px;
width: 110px; height: 82px;
border-radius: 6px; overflow: hidden;
border: 1px solid var(--border);
box-shadow: 0 6px 18px rgba(22,23,29,.55);
background: linear-gradient(160deg, var(--surface-2), var(--surface));
display: flex; align-items: center; justify-content: center;
color: var(--muted);
}
.edit-clip-toolbar {
position: absolute; left: 0; right: 0; bottom: 0;
display: flex; align-items: center; gap: 10px;
padding: 10px 14px;
background: linear-gradient(180deg, transparent, rgba(22,23,29,.7));
color: #fff;
}
.edit-clip-toolbar .t-icon {
background: transparent; border: 0; color: inherit; cursor: pointer;
padding: 4px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
}
.edit-clip-toolbar .t-icon:hover { background: rgba(255,255,255,.12); }
.edit-clip-toolbar .t-tc {
font-family: var(--font-mono); font-size: 12px; color: #fff;
margin-left: 8px; display: inline-flex; align-items: baseline; gap: 4px;
}
.edit-clip-toolbar .t-tc strong { font-weight: 600; }
.edit-clip-toolbar .t-tc i { font-style: normal; opacity: .55; margin: 0 2px; }
.edit-clip-toolbar .t-dot {
margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
background: var(--danger); box-shadow: 0 0 0 3px var(--danger-wash);
}
.edit-clip-controls {
display: flex; align-items: center; gap: 14px;
padding: 4px 2px 2px;
}
.edit-clip-controls .ctrl-btn {
width: 28px; height: 28px; border-radius: var(--r-sm);
background: transparent; border: 1px solid transparent;
color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.edit-clip-controls .ctrl-btn:hover { color: var(--fg); background: var(--surface-2); border-color: var(--border); }
.edit-clip-controls .ctrl-tc {
font-family: var(--font-mono); font-size: 13px; color: var(--fg);
display: inline-flex; align-items: baseline; gap: 4px;
margin-left: 4px;
}
.edit-clip-controls .ctrl-tc em { font-style: normal; color: var(--muted); margin: 0 4px; }
.edit-clip-controls .ctrl-dot {
width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
margin-left: auto;
}
.edit-clip-stats {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.edit-clip-stat {
padding: 12px 14px;
border-radius: var(--r-md);
border: 1px solid var(--border);
background: var(--accent-wash);
display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.edit-clip-stat .num {
font-family: var(--font-mono); font-variant-numeric: tabular-nums;
font-size: 16px; font-weight: 600; color: var(--fg);
}
.edit-clip-stat .lbl {
font-size: 11.5px; color: var(--muted); letter-spacing: .01em;
}
.edit-clip-range-wrap { display: flex; flex-direction: column; gap: 6px; }
.edit-clip-range-endpoints {
display: flex; justify-content: space-between;
font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.edit-clip-range {
position: relative; height: 28px;
border-radius: var(--r-sm);
background: var(--surface-2);
border: 1px solid var(--border);
overflow: hidden;
}
.edit-clip-range-track {
position: absolute; left: 14px; right: 14px; top: 50%;
transform: translateY(-50%); height: 4px;
background: var(--border);
border-radius: 999px;
}
.edit-clip-range-fill {
position: absolute; left: 0; right: 0; top: 0; bottom: 0;
border-radius: 4px;
background: var(--accent-soft);
border: 1px solid var(--accent);
display: flex; align-items: center; justify-content: center;
color: var(--accent);
font-family: var(--font-mono); font-size: 11.5px;
}
.edit-clip-range-fill .range-handle {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 8px; height: 18px;
background: var(--accent);
border: 1px solid var(--bg);
border-radius: 2px;
cursor: ew-resize;
padding: 0;
z-index: 2;
transition: background var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.edit-clip-range-fill .range-handle:hover {
box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
}
.edit-clip-range-fill .range-handle-l { left: -1px; }
.edit-clip-range-fill .range-handle-r { right: -1px; }
.edit-clip-foot {
display: flex; align-items: center; justify-content: flex-end;
gap: 8px; padding-top: 4px;
}
.edit-clip-foot .text-btn {
background: transparent; border: 0; color: var(--muted);
font: 500 13px var(--font-display); cursor: pointer;
padding: 8px 12px; border-radius: var(--r-sm);
}
.edit-clip-foot .text-btn:hover { color: var(--fg); }
.edit-clip-foot .btn-primary, .edit-clip-foot .btn-secondary {
font: 500 13px var(--font-display);
padding: 8px 16px; border-radius: var(--r-md);
cursor: pointer; transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.edit-clip-foot .btn-secondary {
background: var(--surface); color: var(--fg);
border: 1px solid var(--border);
}
.edit-clip-foot .btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.edit-clip-foot .btn-primary {
background: var(--accent); color: #fff;
border: 1px solid var(--accent);
}
.edit-clip-foot .btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, white); border-color: color-mix(in oklch, var(--accent) 88%, white); }
/* ─── project modals — open + create ─────────────────────── */
.proj-search {
position: relative;
display: flex; align-items: center;
margin: 0 0 var(--sp-3);
}
.proj-search svg {
position: absolute; left: 12px;
color: var(--muted); pointer-events: none;
}
.proj-search input {
width: 100%;
height: 38px;
padding: 0 12px 0 36px;
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--surface);
color: var(--fg);
font: 400 13px/1 var(--font-body);
transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.proj-search input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.proj-section-label {
display: flex; align-items: center; justify-content: space-between;
margin: 4px 0 var(--sp-2);
font: 600 11px/1 var(--font-body);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
}
.proj-section-label .clear {
font: 500 11px/1 var(--font-body);
text-transform: none;
letter-spacing: 0;
color: var(--accent);
background: none; border: 0; cursor: pointer; padding: 4px 6px;
border-radius: var(--r-sm);
}
.proj-section-label .clear:hover { background: var(--accent-wash); }
.proj-list {
display: flex; flex-direction: column; gap: 2px;
margin: 0 0 var(--sp-3);
max-height: 320px;
overflow-y: auto;
}
.proj-item {
display: grid;
grid-template-columns: 36px 1fr auto auto;
align-items: center;
gap: var(--sp-3);
padding: 10px 12px;
border-radius: var(--r-md);
cursor: pointer;
transition: background var(--motion-fast) var(--ease);
}
.proj-item:hover { background: var(--surface-warm); }
.proj-item.is-active {
background: var(--accent-wash);
box-shadow: inset 0 0 0 1px var(--accent);
}
.proj-thumb {
width: 36px; height: 36px;
border-radius: var(--r-sm);
background: var(--surface-2);
display: grid; place-items: center;
color: var(--muted);
overflow: hidden;
position: relative;
}
.proj-thumb.has-thumb {
background: linear-gradient(135deg, var(--brand-lo) 0%, var(--brand) 100%);
color: var(--accent-on);
}
.proj-thumb-rec::after {
content: ''; position: absolute; top: 6px; right: 6px;
width: 6px; height: 6px; border-radius: 50%;
background: var(--danger);
box-shadow: 0 0 0 2px var(--surface);
}
.proj-meta { min-width: 0; }
.proj-name {
font: 500 13px/1.3 var(--font-body);
color: var(--fg);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-path {
font: 400 11px/1.4 var(--font-mono);
color: var(--muted);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
margin-top: 2px;
}
.proj-time {
font: 400 11px/1 var(--font-mono);
color: var(--meta);
white-space: nowrap;
}
.proj-pin {
width: 24px; height: 24px;
display: grid; place-items: center;
border: 0; background: transparent;
border-radius: var(--r-sm);
color: var(--muted);
cursor: pointer;
opacity: 0;
transition: opacity var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.proj-item:hover .proj-pin { opacity: 1; }
.proj-pin:hover { background: var(--surface-3); color: var(--fg); }
.proj-pin.is-pinned { opacity: 1; color: var(--accent); }
.proj-footer {
display: flex; align-items: center; justify-content: space-between;
padding-top: var(--sp-3);
border-top: 1px solid var(--border-soft);
}
.proj-footer .hint {
font: 400 12px/1.4 var(--font-body);
color: var(--muted);
}
.proj-footer .hint kbd {
font: 500 11px/1 var(--font-mono);
padding: 2px 6px;
border-radius: 4px;
background: var(--surface-2);
border: 1px solid var(--border);
color: var(--fg);
}
.btn-secondary {
height: 32px;
padding: 0 14px;
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--surface);
color: var(--fg);
font: 500 13px/1 var(--font-body);
cursor: pointer;
display: inline-flex; align-items: center; gap: 6px;
transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.btn-secondary:hover { background: var(--surface-warm); border-color: var(--border-hi); }
/* ─── new project — template grid ─────────────────────── */
.new-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.new-field { display: flex; flex-direction: column; gap: 6px; }
.new-field label {
font: 500 11px/1 var(--font-body);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
}
.new-field input, .new-field select {
width: 100%;
height: 38px;
padding: 0 12px;
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--surface);
color: var(--fg);
font: 400 13px/1 var(--font-body);
}
.new-field input:focus, .new-field select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.new-field .path-row {
display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2);
}
.tpl-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--sp-2);
}
.tpl-cell {
display: flex; flex-direction: column; align-items: flex-start;
gap: var(--sp-2);
padding: var(--sp-3);
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--surface);
cursor: pointer;
text-align: left;
transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}
.tpl-cell:hover { border-color: var(--border-hi); background: var(--surface-warm); }
.tpl-cell.is-active {
border-color: var(--accent);
background: var(--accent-wash);
box-shadow: 0 0 0 1px var(--accent);
}
.tpl-icon {
width: 36px; height: 36px;
border-radius: var(--r-sm);
background: var(--surface-2);
display: grid; place-items: center;
color: var(--muted);
}
.tpl-cell.is-active .tpl-icon { background: var(--accent); color: var(--accent-on); }
.tpl-name {
font: 500 13px/1.3 var(--font-body);
color: var(--fg);
}
.tpl-desc {
font: 400 11px/1.4 var(--font-body);
color: var(--muted);
}
.new-actions {
display: flex; justify-content: flex-end; gap: var(--sp-2);
padding-top: var(--sp-3);
border-top: 1px solid var(--border-soft);
}
.btn-primary {
height: 32px;
padding: 0 16px;
border: 1px solid var(--accent);
border-radius: var(--r-md);
background: var(--accent);
color: var(--accent-on);
font: 500 13px/1 var(--font-body);
cursor: pointer;
display: inline-flex; align-items: center; gap: 6px;
transition: background var(--motion-fast) var(--ease);
}
.btn-primary:hover { background: var(--brand-lo); }
.btn-primary:disabled {
background: var(--surface-2);
border-color: var(--border);
color: var(--muted);
cursor: not-allowed;
}
</style>
</head>
<body>
<div class="app">
<!-- ─── titlebar ────────────────────────────────────────────── -->
<header class="titlebar">
<span class="lights" aria-hidden="true">
<span class="r"></span><span class="y"></span><span class="g"></span>
</span>
<span class="brand">
<img class="brand-mark" src="mqy0l73e-ChatGPT-Image-28-juin-2026_-18_02_26.png" alt="" aria-hidden="true" style="display:block;width:18px;height:18px;border-radius:5px;object-fit:cover;mask-image:radial-gradient(circle,#000 38%,transparent 78%);-webkit-mask-image:radial-gradient(circle,#000 38%,transparent 78%);">
OpenScreen
</span>
<span class="sep" aria-hidden="true"></span>
<span class="project">
<span class="project-name">demo2</span>
</span>
<span class="saved">
<span class="dot" aria-hidden="true"></span>
Enregistré · il y a 2 s
</span>
<span class="proj-actions">
<button class="icon-btn" data-action="open-modal" data-modal="open-project" title="Ouvrir un projet" aria-label="Ouvrir un projet">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 14l1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2"/></svg>
</button>
<button class="icon-btn" data-action="open-modal" data-modal="new-project" title="Nouveau projet" aria-label="Nouveau projet">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 14l1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2"/><line x1="12" y1="11" x2="12" y2="17"/><line x1="9" y1="14" x2="15" y2="14"/></svg>
</button>
</span>
<button class="lang-sel" type="button" title="Changer de langue" aria-label="Changer de langue">
<svg class="lang-glyph" width="16" height="16" viewBox="0 -960 960 960" fill="currentColor" aria-hidden="true"><path d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>
<span class="lang-label">English</span>
<svg class="lang-caret" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
</button>
<button class="recorder-btn" type="button" title="Return to Recorder" aria-label="Return to Recorder">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="m22 8-6 4 6 4z"/></svg>
<span>Return to Recorder</span>
</button>
<span class="right">
<button class="icon-btn" title="Exporter" aria-label="Exporter">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7"/><polyline points="16 12 12 16 8 12"/><line x1="12" y1="3" x2="12" y2="16"/></svg>
</button>
<button class="icon-btn" data-panel-toggle="left" title="Basculer le panneau gauche" aria-label="Basculer le panneau gauche" aria-pressed="false">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18"/></svg>
</button>
<button class="icon-btn" data-panel-toggle="timeline" title="Basculer la timeline" aria-label="Basculer la timeline" aria-pressed="false">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 15h18"/></svg>
</button>
<button class="icon-btn" data-panel-toggle="right" title="Basculer le panneau" aria-label="Basculer le panneau" aria-pressed="false">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M15 3v18"/></svg>
</button>
<button class="icon-btn" data-theme-toggle title="Passer au thème sombre" aria-label="Passer au thème sombre" aria-pressed="false">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>
</button>
<button class="icon-btn" title="Paramètres" aria-label="Paramètres">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
</button>
</span>
</header>
<!-- ─── workbench — 5 columns: rail · chat · preview · transcript · rail -->
<main class="workbench">
<!-- LEFT RAIL -->
<aside class="rail rail-left" aria-label="Outils principaux">
<button title="Chat" aria-label="Chat" aria-pressed="true" data-panel="chat">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</button>
<button title="Médias" aria-label="Médias" data-panel="media">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/></svg>
</button>
</aside>
<!-- CHAT PANEL -->
<aside class="panel chat left-panel is-active" data-left-panel="chat" aria-label="Édition par instructions" data-od-id="path-0-1-1">
<header class="chat-strip">
<div class="chat-strip-row">
<span class="ctx-pill">
<span class="d" aria-hidden="true"></span>
0% context
</span>
<span class="strip-actions">
<button class="icon-btn" title="Compacter" aria-label="Compacter">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:block"><path d="M 6 6 L 12 10 L 18 6"/><path d="M 4 12 L 20 12"/><path d="M 6 18 L 12 14 L 18 18"/></svg>
</button>
<button class="icon-btn" title="Fusionner les segments" aria-label="Fusionner">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M6 21V9a9 9 0 0 0 9 9"/></svg>
</button>
<button class="icon-btn" title="Paramètres" aria-label="Paramètres">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
</button>
<button class="icon-btn" title="Historique" aria-label="Historique">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/></svg>
</button>
<button class="icon-btn" title="Nouvelle action" aria-label="Nouvelle action">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v6"/><path d="M9 10h6"/></svg>
</button>
</span>
</div>
<div class="chat-strip-hint">Remove blanks, silences and hesitations and v…</div>
</header>
<div class="panel-body" style="overflow-y: scroll; scrollbar-gutter: stable; scrollbar-color: var(--border-hi) transparent;">
<div class="msg">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Timeline edit: Resized skip 0:00.0-0:15.4.</div>
</div>
</div>
<div class="msg">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Timeline edit: Resized skip 0:00.0-0:15.8.</div>
</div>
</div>
<div class="msg">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Timeline edit: Resized skip 0:04.6-0:17.4.</div>
</div>
</div>
<div class="msg">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Timeline edit: Resized skip 0:06.6-0:17.4.</div>
</div>
</div>
<div class="msg system">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">OpenScreen</span>
<span class="msg-time" style="margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--muted);letter-spacing:0.04em;">10:42</span>
</div>
<div class="msg-body" style="font-family:var(--font-mono);font-size:11.5px;color:var(--muted);">4 silences removed · 3.2s saved · applied to track 1</div>
</div>
</div>
<div class="msg user">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Also tighten pauses longer than 0.6s in the intro.</div>
</div>
</div>
<div class="msg assistant">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">OpenScreen</span>
<span class="msg-time" style="margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--muted);letter-spacing:0.04em;">10:43</span>
</div>
<div class="msg-body">Detected 3 pauses over 600ms between 0:08 and 0:31.<br>Proposed cuts: <strong>0:08.2–0:09.1</strong>, <strong>0:18.5–0:19.4</strong>, <strong>0:31.0–0:32.2</strong>.<br>Apply all three?</div>
<div class="msg-card-actions" style="display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;">
<button class="msg-btn primary" type="button" style="padding:5px 10px;border-radius:6px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-on);font-size:11.5px;font-weight:500;cursor:pointer;font-family:inherit;">Apply all</button>
<button class="msg-btn" type="button" style="padding:5px 10px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--fg-2);font-size:11.5px;cursor:pointer;font-family:inherit;">Review one by one</button>
<button class="msg-btn ghost" type="button" style="padding:5px 10px;border-radius:6px;border:0;background:transparent;color:var(--muted);font-size:11.5px;cursor:pointer;font-family:inherit;">Skip</button>
</div>
</div>
</div>
<div class="msg user">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Apply all.</div>
</div>
</div>
<div class="msg system">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">OpenScreen</span>
<span class="msg-time" style="margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--muted);letter-spacing:0.04em;">10:43</span>
</div>
<div class="msg-body" style="font-family:var(--font-mono);font-size:11.5px;color:var(--muted);">Removed 2.0s · output ready · undo available for 10 min</div>
</div>
</div>
<div class="msg user">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">YOU</span>
<span class="msg-actions">
<button class="icon-btn" title="Répondre" aria-label="Répondre">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg>
</button>
<button class="icon-btn" title="Copier" aria-label="Copier">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</span>
</div>
<div class="msg-body">Add subtle background music at 18% volume.</div>
</div>
</div>
<div class="msg assistant">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">OpenScreen</span>
<span class="msg-time" style="margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--muted);letter-spacing:0.04em;">10:44</span>
</div>
<div class="msg-body" style="color:var(--fg);">Picked <strong style="color:var(--accent);font-weight:500;">Soft Pad A</strong> from the project library. Inserting on track 2, fading in at 0:00.0 and fading out at the end. Ducking to 12% under speech where overlap detected.</div>
</div>
</div>
<div class="msg system">
<div class="msg-bubble">
<div class="msg-card-top">
<span class="msg-author">OpenScreen</span>
<span class="msg-time" style="margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--muted);letter-spacing:0.04em;">10:44</span>
</div>
<div class="msg-body" style="font-family:var(--font-mono);font-size:11.5px;color:var(--muted);">Music track added · 3 duck points set · review in timeline</div>
</div>
</div>
</div>
<div class="chat-input">
<textarea placeholder="Describe the edit you want."></textarea>
<div class="actions">
<button class="model-picker" id="model-picker" aria-label="Choisir le modèle">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
<span id="model-name">openai-oauth / gpt-5.5</span>
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>
<span class="chip"><span class="d"></span> Reasoning high</span>
</button>
<button class="send-btn" id="send-btn" title="Envoyer (Entrée)" aria-label="Envoyer">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
</button>
</div>
</div>
</aside>
<!-- MEDIA PANEL -->
<aside class="panel media left-panel" data-left-panel="media" aria-label="Médias">
<header class="media-head">
<h2>MEDIA</h2>
<span class="right">
<button class="icon-btn" title="Vue liste" aria-label="Vue liste" aria-pressed="true">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
</button>
<button class="icon-btn" title="Vue grille" aria-label="Vue grille">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/></svg>
</button>
</span>
</header>
<div class="media-search">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
<input type="text" placeholder="Search..." aria-label="Rechercher dans les médias">
</div>
<div class="panel-body">
<ul class="media-list" role="list">
<li class="media-card" data-action="open-modal" data-modal="transcript" role="button" tabindex="0" title="Open source transcript" aria-label="Open source transcript">
<div class="thumb thumb-red" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/></svg>
</div>
<div class="media-meta" style="background: var(--surface); color: var(--fg);">
<div class="name" style="color: var(--fg);">demo-alfa-no-code-1.mp4</div>
<div class="row">
<span class="timecode" style="color: var(--muted);">0:00:32.0·1·A</span>
<span class="size" style="color: var(--muted);">124 MB</span>
</div>
</div>
</li>
<li class="media-card" data-action="open-modal" data-modal="transcript" role="button" tabindex="0" title="Open source transcript" aria-label="Open source transcript">
<div class="thumb thumb-green" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/></svg>
</div>
<div class="media-meta" style="background: var(--surface); color: var(--fg);">
<div class="name" style="color: var(--fg);">demo-alfa-no-code-1.mp4</div>
<div class="row">
<span class="timecode" style="color: var(--muted);">0:00:32.0·1·A</span>
<span class="size" style="color: var(--muted);">98 MB</span>
</div>
</div>
</li>
<li class="media-card" data-action="open-modal" data-modal="transcript" role="button" tabindex="0" title="Open source transcript" aria-label="Open source transcript">
<div class="thumb thumb-amber" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/></svg>
</div>
<div class="media-meta" style="background: var(--surface); color: var(--fg);">
<div class="name" style="color: var(--fg);">demo-alfa-no-code-1.mp4</div>
<div class="row">
<span class="timecode" style="color: var(--muted);">0:00:32.0·1·A</span>
<span class="size" style="color: var(--muted);">156 MB</span>
</div>
</div>
</li>
<li class="media-card" data-action="open-modal" data-modal="transcript" role="button" tabindex="0" title="Open source transcript" aria-label="Open source transcript">
<div class="thumb thumb-cyan" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18"/><path d="M3 7.5h4"/><path d="M3 12h18"/><path d="M3 16.5h4"/><path d="M17 3v18"/><path d="M17 7.5h4"/><path d="M17 16.5h4"/></svg>
</div>
<div class="media-meta" style="background: var(--surface); color: var(--fg);">
<div class="name" style="color: var(--fg);">demo-alfa-no-code-1.mp4</div>
<div class="row">
<span class="timecode" style="color: var(--muted);">0:00:32.0·1·A</span>
<span class="size" style="color: var(--muted);">87 MB</span>
</div>
</div>
</li>
</ul>
</div>
<button class="import-btn" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
Import Media
</button>
</aside>
<!-- RESIZE HANDLE — chat ↔ preview (drags left panel width) -->
<div class="resize-handle col" data-axis="left" aria-label="Redimensionner le panneau gauche"></div>
<!-- PREVIEW -->
<section class="preview-wrap" aria-label="Aperçu vidéo">
<div class="preview-canvas">
<div class="preview-frame">
<div class="guides" aria-hidden="true"></div>
<span class="timestamp" id="preview-timecode">00:00:12.4</span>
<span class="badge">1920 × 1080 · 60 fps</span>
<div class="scene">Aperçu · 16:9</div>
<div class="pip" aria-label="Webcam">
<span class="face" aria-hidden="true"></span>
</div>
</div>
</div>
<div class="transport" role="toolbar" aria-label="Contrôles de lecture">
<button class="tbtn play" id="play-btn" title="Lecture / Pause (Espace)" aria-label="Lecture / Pause" data-playing="false">
<svg id="play-icon" width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>
</button>
<button class="tbtn" id="prev-btn" title="Clip précédent" aria-label="Clip précédent">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="19 20 9 12 19 4 19 20"/><line x1="5" y1="19" x2="5" y2="5"/></svg>
</button>
<button class="tbtn" id="next-btn" title="Clip suivant" aria-label="Clip suivant">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"/><line x1="19" y1="5" x2="19" y2="19"/></svg>
</button>
<button class="tbtn" id="loop-btn" title="Boucle" aria-label="Boucle" aria-pressed="false">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>
</button>
<button class="tbtn" id="expand-btn" title="Plein écran" aria-label="Plein écran">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>
</button>
<span class="time" id="transport-time">
<span id="t-cur">0:00.0</span><span class="sep">/</span><span class="total" id="t-tot">7:03.6</span>
</span>
<span class="spacer"></span>
<button class="rec" id="rec-btn" title="Enregistrer (R)" aria-label="Enregistrer" aria-pressed="false">
<span class="dot" aria-hidden="true"></span>
<span id="rec-label">REC</span>
</button>
</div>
</section>
<!-- RESIZE HANDLE — preview ↔ transcript (drags right panel width) -->
<div class="resize-handle col" data-axis="right" aria-label="Redimensionner le panneau droit"></div>
<!-- TRANSCRIPT + ARRIÈRE-PLAN + EFFECT + TIMELINE + CROP panes (right rail) -->
<div class="panel-stack">
<!-- pane: Arrière-plan (3 tabs: Image / Couleur / Dégradé) -->
<aside class="panel pane-background is-active" data-pane="background" aria-label="Arrière-plan">
<header class="pane-head">
<h2>Arrière-plan</h2>
<span class="right">
<button class="icon-btn" title="Aide" aria-label="Aide"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></button>
</span>
</header>
<div class="pane-body">
<div class="pane-tabs" role="tablist">
<button class="is-active" data-tab="image">Image</button>
<button data-tab="color">Couleur</button>
<button data-tab="gradient">Dégradé</button>
</div>
<div class="pane-section is-active" data-section="image">
<button class="upload-btn">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
Upload Custom
</button>
<div class="bg-grid">
<button class="bg-thumb is-active" style="background: linear-gradient(135deg,#16171d,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#16171d)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#eaebed)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#16171d,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#eaebed)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#ffffff)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#16171d)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#16171d,#6b7280)"></button>
<button class="bg-thumb bg-add" title="Upload" aria-label="Upload"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg></button>
</div>
</div>
<div class="pane-section" data-section="color">
<div class="sub-tabs">
<button class="is-active">Roue chromatique</button>
<button>Palette</button>
</div>
<div class="color-preview">#BCC0C6</div>
<div class="color-wheel" aria-hidden="true"></div>
<div class="hue-track" aria-hidden="true"></div>
<div class="hex-input">#BCC0C6</div>
</div>
<div class="pane-section" data-section="gradient">
<div class="bg-grid">
<button class="bg-thumb is-active" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#eaebed)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#16171d)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#16171d,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#eaebed)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#16171d,#6b7280)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#eaebed,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#6b7280,#16171d)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#eaebed)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#bcc0c6)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#bcc0c6,#10b981)"></button>
<button class="bg-thumb" style="background: linear-gradient(135deg,#10b981,#6b7280)"></button>
</div>
</div>
</div>
</aside>
<!-- pane: Transcript (file icon) -->
<aside class="panel pane-transcript" data-pane="transcript" aria-label="Transcription">
<header class="pane-head">
<h2>Current Transcription</h2>
</header>
<div class="pane-body transcript-body">
<div class="transcript-clip-head">
<span class="badge">1</span>
<div class="meta">
<div class="title">demo-n8n-as-code-1.mp4</div>
<div class="sub">Clip 1 · 0:00.0—2:34.7</div>
</div>
</div>
<p class="transcript-flow">
okay so let's see how to install and run any 10s code from scratch <span class="hl">so you will need-VS code that you can-download here-very easily okay</span><span class="tc-pill">4.3s</span> once it's download you can simply install it you will need also docker so simply go to docker .com and you download the docker desktop so again once downloaded you can simply install it on my computer both softwares are already installed so I will run docker and now open VS code so let's just open a new workspace <span class="tc-pill">2.4s</span> okay and then you will go to the extensions and search for NA 10 as code <span class="tc-pill">very good</span> and then you just click on the install button and you will have this little icon on the left side which is NA 10 as code extension icon so you click on it then you click on configure and you will simply add an instance create a name local we will ask NA 10 manager to create an instance for me <span class="filler">okay</span> and a public URL <span class="filler">okay</span> so right now then manager is installing self hosted local NA 10 instance it's creating for me the older credentials so the key and the logins so I will not have to bother with that it will be a plug and play <span class="tc-pill">7.1s</span> okay now I have my nice instance with an auto login link and we can see that it is started so you just have to click save settings
</p>
</div>
</aside>
<!-- pane: Video Effects (Blur BG + 4 sliders) -->
<aside class="panel pane-effect" data-pane="effect" aria-label="Video Effects">
<header class="pane-head">
<h2>Video Effects</h2>
<span class="right">
<button class="icon-btn" title="Aide" aria-label="Aide"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></button>
</span>
</header>
<div class="pane-body">
<div class="pane-row">
<span class="label">Blur BG</span>
<button class="toggle" data-toggle aria-label="Blur BG"></button>
</div>
<div class="slider-grid">
<div class="slider-cell">
<div class="head"><span class="label">Motion Blur</span><span class="val">off</span></div>
<input type="range" min="0" max="100" value="0" disabled>
</div>
<div class="slider-cell">
<div class="head"><span class="label">Shadow</span><span class="val">0%</span></div>
<input type="range" min="0" max="100" value="0">
</div>
<div class="slider-cell">
<div class="head"><span class="label">Roundness</span><span class="val">0px</span></div>
<input type="range" min="0" max="100" value="0">
</div>
<div class="slider-cell">
<div class="head"><span class="label">Padding</span><span class="val">0%</span></div>
<input type="range" min="0" max="100" value="0">
</div>
</div>
</div>
</aside>
<!-- pane: Layout (preset, mirror, shrink, camera shape, webcam size) -->
<aside class="panel pane-layout" data-pane="layout" aria-label="Layout">
<header class="pane-head">
<h2>Layout</h2>
<span class="right">
<button class="icon-btn" title="Aide" aria-label="Aide"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></button>
</span>
</header>
<div class="pane-body">
<div class="section-label">Layout</div>
<div class="choice-row" role="group" aria-label="Layout" style="margin: 0 var(--sp-4) 8px;">
<button class="choice-btn is-active" aria-pressed="true" title="Picture in Picture">PiP</button>
<button class="choice-btn" aria-pressed="false" title="Side by Side">Side</button>
<button class="choice-btn" aria-pressed="false" title="Top / Bottom">Stack</button>
<button class="choice-btn" aria-pressed="false" title="Webcam Only">Webcam</button>
<button class="choice-btn" aria-pressed="false" title="Screen Only">Screen</button>
</div>
<div class="pane-row">
<span class="label">Mirror Webcam</span>
<button class="toggle" data-toggle aria-label="Mirror Webcam"></button>
</div>
<div class="pane-row">
<span class="label">Shrink on zoom</span>
<button class="toggle is-on" data-toggle aria-label="Shrink on Zoom"></button>
</div>
<div class="section-label">Camera Shape</div>
<div class="shape-grid">
<button class="shape-cell is-active" data-shape="rect" title="Rectangle">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"><rect x="3" y="6" width="18" height="12" rx="1"/></svg>
<span>Rect</span>
</button>
<button class="shape-cell" data-shape="circle" title="Circle">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/></svg>
<span>Circle</span>
</button>
<button class="shape-cell" data-shape="square" title="Square">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="1"/></svg>
<span>Square</span>
</button>
<button class="shape-cell" data-shape="rounded" title="Rounded">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"><rect x="3" y="6" width="18" height="12" rx="6"/></svg>
<span>Rounded</span>
</button>
</div>
<div class="slider-grid">
<div class="slider-cell full">
<div class="head"><span class="label">Webcam Size</span><span class="val">25%</span></div>
<input type="range" min="0" max="100" value="25">
</div>
</div>
</div>
</aside>
<!-- pane: Timeline (waveform toggle) -->
<aside class="panel pane-timeline" data-pane="timeline" aria-label="Timeline">
<header class="pane-head">
<h2>Timeline</h2>
<span class="right">
<button class="icon-btn" title="Aide" aria-label="Aide"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></button>
</span>
</header>
<div class="pane-body">
<div class="pane-row">
<span class="label">Show Audio Waveform on Trim Track</span>
<button class="toggle is-on" data-toggle aria-label="Show Audio Waveform on Trim Track"></button>
</div>
</div>
</aside>
<!-- pane: Cursor (show cursor + clip + 15 styles + 4 sliders) -->
<aside class="panel pane-cursor" data-pane="cursor" aria-label="Cursor">
<header class="pane-head">
<h2>Cursor</h2>
<span class="right">
<button class="icon-btn" title="Aide" aria-label="Aide"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg></button>
</span>
</header>
<div class="pane-body">
<div class="pane-row">
<span class="label">Show Cursor</span>
<button class="toggle is-on" data-toggle aria-label="Show Cursor"></button>
</div>
<div class="pane-row">
<span class="label">Clip to canvas</span>
<button class="toggle" data-toggle aria-label="Clip to Canvas"></button>
</div>
<div class="section-label">Cursor Style</div>
<div class="cursor-grid">
<button class="cursor-cell is-active" title="Arrow"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86 2.94 6.4c.5.1.8-.13.95-.55l1.86-6.4 6.4-1.86c.42-.15.65-.5.55-.95l-6.4-2.94 4.86-4.86c.32-.31.1-.85-.35-.85H5.5z"/></svg></button>
<button class="cursor-cell" title="Pointer"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 4.1 12 6"/><path d="m5.1 8-2.9-.8"/><path d="m6 12-1.9 2"/><path d="M7.2 2.2 8 5.1"/><path d="M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"/></svg></button>
<button class="cursor-cell" title="Hand"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 11V6a2 2 0 0 0-4 0v5"/><path d="M14 10V4a2 2 0 0 0-4 0v6"/><path d="M10 10.5V6a2 2 0 0 0-4 0v8"/><path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"/></svg></button>
<button class="cursor-cell" title="Text"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 4.1 12 6"/><path d="m5.1 8-2.9-.8"/><path d="m6 12-1.9 2"/><path d="M7.2 2.2 8 5.1"/><path d="M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"/></svg></button>
<button class="cursor-cell" title="Cross"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="22"/><line x1="2" y1="12" x2="22" y2="12"/></svg></button>
<button class="cursor-cell" title="Star"><svg viewBox="0 0 24 24" fill="currentColor"><polygon points="12 2 15 9 22 9 17 14 19 21 12 17 5 21 7 14 2 9 9 9 12 2"/></svg></button>
<button class="cursor-cell" title="Pen"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/></svg></button>
<button class="cursor-cell" title="Arrow Right"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg></button>
<button class="cursor-cell" title="Circle"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/></svg></button>
<button class="cursor-cell" title="Square"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/></svg></button>
<button class="cursor-cell" title="Diamond"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 22 12 12 22 2 12"/></svg></button>
<button class="cursor-cell" title="Hourglass"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 22h14"/><path d="M5 2h14"/><path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"/><path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"/></svg></button>
<button class="cursor-cell" title="Dot"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/></svg></button>
<button class="cursor-cell" title="Drag"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11V6a3 3 0 1 1 6 0v5"/><path d="M9 8a3 3 0 0 0-6 0v6a8 8 0 0 0 8 8h2a8 8 0 0 0 8-8V9a3 3 0 0 0-3-3h-2"/></svg></button>
<button class="cursor-cell" title="Atom"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"/><path d="M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z"/><path d="M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z"/></svg></button>
</div>
<div class="slider-grid">
<div class="slider-cell">
<div class="head"><span class="label">Size</span><span class="val">3.0</span></div>
<input type="range" min="0" max="100" value="35">
</div>
<div class="slider-cell">
<div class="head"><span class="label">Smoothing</span><span class="val">67%</span></div>
<input type="range" min="0" max="100" value="67">
</div>
<div class="slider-cell">
<div class="head"><span class="label">Motion Blur</span><span class="val">35%</span></div>
<input type="range" min="0" max="100" value="35">
</div>
<div class="slider-cell">
<div class="head"><span class="label">Click Bounce</span><span class="val">2.5</span></div>
<input type="range" min="0" max="100" value="25">
</div>
</div>
</div>
</aside>
<!-- (Crop pane removed — now opens as modal from the rail) -->
</div>
<!-- RIGHT RAIL -->
<aside class="rail rail-right" aria-label="Outils secondaires">
<button class="is-active" data-pane="background" title="Background" aria-label="Background">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg>
</button>
<button data-pane="effect" title="Video Effects" aria-label="Video Effects">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="21" x2="14" y1="4" y2="4"/><line x1="10" x2="3" y1="4" y2="4"/><line x1="21" x2="12" y1="12" y2="12"/><line x1="8" x2="3" y1="12" y2="12"/><line x1="21" x2="16" y1="20" y2="20"/><line x1="12" x2="3" y1="20" y2="20"/><line x1="14" x2="14" y1="2" y2="6"/><line x1="8" x2="8" y1="10" y2="14"/><line x1="16" x2="16" y1="18" y2="22"/></svg>
</button>
<button data-pane="layout" title="Layout" aria-label="Layout">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/></svg>
</button>
<button data-pane="cursor" title="Cursor" aria-label="Cursor">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 3 6.4 16.2 2.3-6.5 6.5-2.3z"/></svg>
</button>
<button data-pane="timeline" title="Timeline" aria-label="Timeline">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9 4 H6 V20 H9"/><path d="M15 4 H18 V20 H15"/></svg>
</button>
<button data-pane="transcript" title="Transcription" aria-label="Transcription">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
</button>
<span class="sep-h" aria-hidden="true"></span>
<button data-action="open-modal" data-modal="crop" title="Crop Video" aria-label="Crop Video">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M18 22V8a2 2 0 0 0-2-2H2"/></svg>
</button>
</aside>
</main>
<!-- RESIZE HANDLE — workbench ↔ timeline (drags bottom panel height) -->
<div class="resize-handle row" data-axis="bottom" aria-label="Redimensionner la timeline"></div>
<!-- ─── bottombar — timeline (left) + properties (right) ────── -->
<footer class="bottombar" aria-label="Timeline et propriétés">
<!-- TIMELINE -->
<section class="timeline-wrap">
<header class="timeline-head">
<div class="view-tools" role="toolbar" aria-label="Outils de vue">
<button class="vt-btn" type="button" aria-label="Zoom">
<svg viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3M11 8v6M8 11h6"/></svg>
</button>
<button class="vt-btn is-on" type="button" aria-label="Auto focus on for all zoom" title="Auto focus on for all zoom" aria-pressed="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 8V4h4"/><path d="M16 4h4v4"/><path d="M4 16v4h4"/><path d="M16 20h4v-4"/><path d="M6 12c1.5-2.2 3.6-3.4 6-3.4s4.5 1.2 6 3.4c-1.5 2.2-3.6 3.4-6 3.4S7.5 14.2 6 12z"/><circle cx="12" cy="12" r="1.6"/></svg>
</button>
<button class="vt-btn" type="button" aria-label="Ciseaux">
<svg viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12"/></svg>
</button>
<button class="vt-btn" type="button" aria-label="Annotation">
<svg viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
</button>
<button class="vt-btn" type="button" aria-label="Chronomètre">
<svg viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="13" r="8"/><path d="M12 9v4l2 2M9 2h6M12 13"/></svg>
</button>
<button class="vt-btn" type="button" aria-label="Fichier de sous-titres" title="Fichier de sous-titres">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><path d="M14 3v6h6"/><path d="M8 13h8M8 17h6"/></svg>
</button>
<button class="ratio" type="button" aria-label="Format d'image 16:9">
<span>16:9</span>
<svg class="caret" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>
</button>
</div>
<div class="hint-row">
<span class="hint">
<span class="kbd">Scroll</span>
<span class="act">Pan</span>
</span>
<span class="hint">
<span class="kbd">Ctrl</span><span class="kbd">+ Scroll</span>
<span class="act">Zoom</span>
</span>
</div>
</header>
<div class="timeline-body" id="timeline-body">
<div class="playhead" aria-hidden="true"></div>
<!-- TOP: ruler (fixed height) -->
<div class="timeline-ruler">
<div class="ruler">
<div class="ruler-tick">0:00.0</div>
<div class="ruler-tick">0:30.0</div>
<div class="ruler-tick">1:00.0</div>
<div class="ruler-tick">1:30.0</div>
<div class="ruler-tick">2:00.0</div>
<div class="ruler-tick">2:30.0</div>
<div class="ruler-tick">3:00.0</div>
<div class="ruler-tick">3:30.0</div>
<div class="ruler-tick">4:00.0</div>
<div class="ruler-tick">4:30.0</div>
<div class="ruler-tick">5:00.0</div>
<div class="ruler-tick">5:30.0</div>
<div class="ruler-tick">6:00.0</div>
<div class="ruler-tick">6:30.0</div>
<div class="ruler-tick" style="flex: 0;">7:00.0</div>
</div>
</div>
<!-- MIDDLE: scrollable tracks (fills remaining height) -->
<div class="tracks-scroll">
<div class="annotation-track-row" aria-label="Annotations">
<button class="annotation-pin" type="button" style="left: 5%;" aria-label="Annotation: Fix intro hook">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
<span class="pill-value">Fix intro hook</span>
</button>
<button class="annotation-pin" type="button" style="left: 27%;" aria-label="Annotation: B-roll gap">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
<span class="pill-value">B-roll gap</span>
</button>
<button class="annotation-pin" type="button" style="left: 50%;" aria-label="Annotation: Lower BGM">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
<span class="pill-value">Lower BGM</span>
</button>
<button class="annotation-pin" type="button" style="left: 74%;" aria-label="Annotation: CTA moment">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
<span class="pill-value">CTA moment</span>
</button>
</div>
<div class="speed-track-row" aria-hidden="true">
<span class="speed-pill" style="left: 12%;">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 14a8.5 8.5 0 0 1 17 0"/><path d="M12 14l4-3.5"/><circle cx="12" cy="14" r="1.1" fill="currentColor" stroke="none"/></svg>
<span class="pill-value">1.5×</span>
</span>
<span class="speed-pill" style="left: 72%;">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 14a8.5 8.5 0 0 1 17 0"/><path d="M12 14l4-3.5"/><circle cx="12" cy="14" r="1.1" fill="currentColor" stroke="none"/></svg>
<span class="pill-value">0.6×</span>
</span>
</div>
<div class="zoom-track-row" aria-hidden="true">
<span class="zoom-pill" style="left: 7%;">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.5" y2="16.5"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>
<span class="pill-value">1.5×</span>
</span>
<span class="zoom-pill" style="left: 56%;">
<svg class="pill-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.5" y2="16.5"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></svg>
<span class="pill-value">1.80×</span>
</span>
</div>
<div class="tracks-wrapper">
<div class="track-block block-1 is-selected" data-clip="1">
<div class="track-visual-timeline">
<div class="segment cut" style="flex: 5;"></div>
<div class="segment keep" style="flex: 30;"></div>
<div class="segment cut" style="flex: 4;"></div>
<div class="segment keep" style="flex: 8;"></div>
<div class="segment cut" style="flex: 3;"></div>
<div class="segment keep" style="flex: 25;"></div>
<div class="segment cut" style="flex: 2;"></div>
<div class="segment keep" style="flex: 15;"></div>
<div class="segment cut" style="flex: 5;"></div>
<div class="segment keep" style="flex: 3;"></div>
</div>
<div class="track-info-content">
<div class="edit-icon-wrapper" data-action="open-modal" data-modal="edit-clip" aria-label="Edit clip">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
</div>
<div class="track-text">
<h3 class="track-title">demo-n8n-as-code-1.mp4</h3>
<p class="track-subtitle">0:00.0 — 2:34.7 <span>•</span> source 0:00.0–2:34.7</p>
</div>
</div>
</div>
<div class="track-block block-2" data-clip="2">
<div class="track-visual-timeline">
<div class="segment cut" style="flex: 3;"></div>
<div class="segment keep" style="flex: 4;"></div>
<div class="segment cut" style="flex: 2;"></div>
<div class="segment keep" style="flex: 5;"></div>
<div class="segment cut" style="flex: 2;"></div>
<div class="segment keep" style="flex: 6;"></div>
<div class="segment cut" style="flex: 2;"></div>
<div class="segment keep" style="flex: 4;"></div>
<div class="segment cut" style="flex: 3;"></div>
<div class="segment keep" style="flex: 3;"></div>
<div class="segment cut" style="flex: 25;"></div>
<div class="segment keep" style="flex: 3;"></div>
<div class="segment cut" style="flex: 18;"></div>
<div class="segment keep" style="flex: 4;"></div>
<div class="segment cut" style="flex: 12;"></div>
<div class="segment keep" style="flex: 2;"></div>
<div class="segment cut" style="flex: 5;"></div>
</div>
<div class="track-info-content">
<div class="edit-icon-wrapper" data-action="open-modal" data-modal="edit-clip" aria-label="Edit clip">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg>
</div>
<div class="track-text">
<h3 class="track-title">2026-03-10 09-10-39.mp4</h3>
<p class="track-subtitle">2:34.7 — 7:03.6 <span>•</span> source 0:00.0–4:28.9</p>
</div>
</div>
</div>
</div>
<div class="tracks-wrapper">
</div>
</div>
</div>
<!-- BOTTOM: zoom handling bar (fixed height) -->
<div class="zoombar" role="group" aria-label="Zoom range">
<div class="zoom-track">
<div class="zoom-fill" aria-hidden="true"></div>
<button class="zoom-handle zoom-handle-l" type="button" aria-label="Zoom out"></button>
<button class="zoom-handle zoom-handle-r" type="button" aria-label="Zoom in"></button>
</div>
</div>
</div>
</section>
</footer>
</div>
<!-- ─── Source Transcript modal (opened from first media card) ──── -->
<div class="modal modal-transcript" data-modal-name="transcript" role="dialog" aria-modal="true" aria-labelledby="transcript-title">
<div class="modal-backdrop" aria-hidden="true"></div>
<div class="modal-card modal-card-wide">
<header class="modal-head">
<div>
<h2 id="transcript-title">Source Transcript</h2>
<p>demo-n8n-as-code-1.mp4</p>
</div>
<button class="icon-btn" data-modal-close title="Close" aria-label="Close">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</header>
<div class="modal-body modal-body-transcript">
<div class="transcript-top">
<div class="transcript-video">
<div class="transcript-stage" aria-hidden="true">
<div class="transcript-puffin">
<svg viewBox="0 0 64 48" width="64" height="48"><rect width="64" height="48" rx="6" fill="#16171d"/><path d="M14 22c-4-3-4-9 0-12s10-1 12 3c1-3 5-3 6 0 2-1 5-1 7 1 3 3 3 8 0 11-2 2-5 2-7 1-1 3-5 3-6 0-2 4-9 5-12 0z" fill="#eaebed"/><path d="M30 14l8-3 3 5-7 4z" fill="#10b981"/><path d="M27 17c2-1 6-1 8 1 2 3-1 5-4 4-2-1-4-3-4-5z" fill="#bcc0c6"/><circle cx="36" cy="20" r="1.2" fill="#16171d"/></svg>
</div>
<div class="transcript-pip" aria-hidden="true">
<svg viewBox="0 0 48 36" width="48" height="36"><rect width="48" height="36" rx="4" fill="#16171d"/><circle cx="18" cy="14" r="5" fill="#eaebed"/><path d="M8 36c0-8 6-13 14-13s14 5 14 13z" fill="#6b7280"/></svg>
</div>
<div class="transcript-toolbar" aria-hidden="true">
<button class="t-icon" title="Play" aria-label="Play"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><polygon points="6 4 20 12 6 20 6 4"/></svg></button>
<button class="t-icon" title="Restart" aria-label="Restart"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg></button>
<button class="t-icon" title="Fullscreen" aria-label="Fullscreen"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg></button>
<span class="t-tc"><strong>0:00.0</strong><i>/</i>2:34.7</span>
<span class="t-dot"></span>
</div>
</div>
</div>
<div class="transcript-side">
<div class="transcript-pills">
<span class="pill-status"><span class="dot"></span>Generated</span>
<span class="pill-lang">Detected language: en</span>
</div>
<div class="regen-row">
<label>Regenerate as</label>
<div class="regen-control">
<select aria-label="Regenerate as">
<option>Auto</option>
<option>EN</option>
<option>FR</option>
<option>ES</option>
</select>
<button class="regen-btn" title="Regenerate" aria-label="Regenerate"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg></button>
</div>
</div>
</div>
</div>
<pre class="transcript-body">AXCUT_TRANSCRIPT v1
META source_video="1781621786114-dcfd85d8-f757-45b1-9f29-5f34f36f17cd-demo-n8n-as-code-1.mp4" duration=154.717 language="en" kind="source"
SEGMENT id=s0001 start=0.000 end=7.480 text="okay so let's see how to install and run any 10s code from scratch so you will"
WORD id=w000001 segment=s0001 start=0.000 end=1.200 text="okay"
WORD id=w000002 segment=s0001 start=1.200 end=1.400 text="so"
WORD id=w000003 segment=s0001 start=1.400 end=1.640 text="let''s"
WORD id=w000004 segment=s0001 start=1.640 end=1.880 text="see"
WORD id=w000005 segment=s0001 start=1.880 end=2.140 text="how"
WORD id=w000006 segment=s0001 start=2.140 end=2.520 text="to"
WORD id=w000007 segment=s0001 start=2.520 end=3.000 text="install"
WORD id=w000008 segment=s0001 start=3.000 end=3.500 text="and"
WORD id=w000009 segment=s0001 start=3.500 end=4.140 text="run"
WORD id=w000010 segment=s0001 start=4.140 end=4.540 text="any"
WORD id=w000011 segment=s0001 start=4.540 end=4.960 text="10s"
WORD id=w000012 segment=s0001 start=4.960 end=5.180 text="code"
WORD id=w000013 segment=s0001 start=5.180 end=5.640 text="from"
WORD id=w000014 segment=s0001 start=5.640 end=6.180 text="scratch"
WORD id=w000015 segment=s0001 start=6.180 end=7.080 text="so"
WORD id=w000016 segment=s0001 start=7.080 end=7.180 text="you"
WORD id=w000017 segment=s0001 start=7.180 end=7.480 text="will"
SEGMENT</pre>
</div>
</div>
</div>
<!-- ─── Edit Clip modal (opened from pencil icon on each track-block) ── -->
<div class="modal" data-modal-name="edit-clip" role="dialog" aria-modal="true" aria-labelledby="edit-clip-title">
<div class="modal-backdrop" aria-hidden="true"></div>
<div class="modal-card modal-card-editclip">
<header class="modal-head">
<div>
<h2 id="edit-clip-title">Edit clip</h2>
<p>demo-n8n-as-code-1.mp4</p>
</div>
<button class="icon-btn" data-modal-close title="Close" aria-label="Close">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</header>
<div class="modal-body modal-body-editclip">
<div class="edit-clip-stage" aria-hidden="true">
<svg class="puffin-bg" viewBox="0 0 64 48" width="64" height="48"><rect width="64" height="48" rx="6" fill="#16171d"/><path d="M14 22c-4-3-4-9 0-12s10-1 12 3c1-3 5-3 6 0 2-1 5-1 7 1 3 3 3 8 0 11-2 2-5 2-7 1-1 3-5 3-6 0-2 4-9 5-12 0z" fill="#eaebed"/><path d="M30 14l8-3 3 5-7 4z" fill="#10b981"/><path d="M27 17c2-1 6-1 8 1 2 3-1 5-4 4-2-1-4-3-4-5z" fill="#bcc0c6"/><circle cx="36" cy="20" r="1.2" fill="#16171d"/></svg>
<div class="pip-cam" aria-hidden="true">
<svg viewBox="0 0 48 36" width="48" height="36"><rect width="48" height="36" rx="4" fill="#16171d"/><circle cx="18" cy="14" r="5" fill="#eaebed"/><path d="M8 36c0-8 6-13 14-13s14 5 14 13z" fill="#6b7280"/></svg>
</div>
</div>
<div class="edit-clip-controls">
<button class="ctrl-btn" type="button" title="Play" aria-label="Play">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><polygon points="6 4 20 12 6 20 6 4"/></svg>
</button>
<button class="ctrl-btn" type="button" title="Restart" aria-label="Restart">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>
</button>
<button class="ctrl-btn" type="button" title="Fullscreen" aria-label="Fullscreen">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>
</button>
<span class="ctrl-tc"><strong>0:00.0</strong><em>/</em>2:34.7</span>
<span class="ctrl-dot" aria-hidden="true"></span>
</div>
<div class="edit-clip-stats">
<div class="edit-clip-stat">
<span class="num">0:00.0</span>
<span class="lbl">Start</span>
</div>
<div class="edit-clip-stat">
<span class="num">2:34.7</span>
<span class="lbl">End</span>
</div>
<div class="edit-clip-stat">
<span class="num">2:34.7</span>
<span class="lbl">Duration</span>
</div>
</div>
<div class="edit-clip-range-wrap">
<div class="edit-clip-range-endpoints">
<span>0:00.0</span>
<span>2:34.7</span>
</div>
<div class="edit-clip-range">
<div class="edit-clip-range-track" aria-hidden="true"></div>
<div class="edit-clip-range-fill">
<span class="range-handle range-handle-l" aria-label="Trim start"></span>
<span class="range-handle range-handle-r" aria-label="Trim end"></span>
0:00.0–2:34.7
</div>
</div>
</div>
<div class="edit-clip-foot">
<button class="text-btn" type="button" data-modal-close>Reset</button>
<button class="btn-secondary" type="button" data-modal-close>Cancel</button>
<button class="btn-primary" type="button" data-modal-close>Apply</button>
</div>
</div>
</div>
</div>
<!-- ─── Crop Video modal (opened from rail-right Crop button) ──── -->
<div class="modal" data-modal-name="crop" role="dialog" aria-modal="true" aria-labelledby="crop-title">
<div class="modal-backdrop" aria-hidden="true"></div>
<div class="modal-card">
<header class="modal-head">
<div>
<h2 id="crop-title">Crop Video</h2>
<p>Drag on each side to adjust the crop area</p>
</div>
<button class="icon-btn" data-modal-close title="Close" aria-label="Close">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</header>
<div class="modal-body">
<div class="crop-stage">
<div class="crop-frame">
<div class="crop-handle n" aria-hidden="true"></div>
<div class="crop-handle s" aria-hidden="true"></div>
<div class="crop-handle e" aria-hidden="true"></div>
<div class="crop-handle w" aria-hidden="true"></div>
<div class="crop-handle nw" aria-hidden="true"></div>
<div class="crop-handle ne" aria-hidden="true"></div>
<div class="crop-handle sw" aria-hidden="true"></div>
<div class="crop-handle se" aria-hidden="true"></div>
<div class="crop-grid" aria-hidden="true"></div>
</div>
</div>
<div class="crop-controls">
<div class="field"><label>X</label><input type="number" value="0"></div>
<div class="field"><label>Y</label><input type="number" value="0"></div>
<div class="field"><label>W</label><input type="number" value="1920"></div>
<div class="field"><label>H</label><input type="number" value="1080"></div>
<div class="field ratio-field"><label>Ratio</label>
<select>
<option>Free</option>
<option>16:9</option>
<option>9:16</option>
<option>1:1</option>
<option>4:3</option>
</select>
</div>
<button class="lock-btn" title="Lock ratio" aria-label="Lock ratio"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg></button>
<span class="size-text">1920 × 1080px</span>
<button class="done-btn" data-modal-close>Done</button>
</div>
</div>
</div>
</div>
<!-- ─── Open Project modal (titlebar · left) ────────────────────── -->
<div class="modal" data-modal-name="open-project" role="dialog" aria-modal="true" aria-labelledby="open-project-title">
<div class="modal-backdrop" aria-hidden="true"></div>
<div class="modal-card modal-card-wide">
<header class="modal-head">
<div>
<h2 id="open-project-title">Ouvrir un projet</h2>
<p>Reprenez un projet existant ou parcourez vos fichiers</p>
</div>
<button class="icon-btn" data-modal-close title="Fermer" aria-label="Fermer">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</header>
<div class="modal-body">
<div class="proj-search">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
<input type="search" placeholder="Rechercher un projet…" aria-label="Rechercher un projet">
</div>
<div class="proj-section-label">
<span>Récents</span>
<button class="clear" type="button">Tout effacer</button>
</div>
<div class="proj-list" role="listbox" aria-label="Projets récents">
<div class="proj-item is-active" role="option" aria-selected="true" tabindex="0">
<div class="proj-thumb has-thumb proj-thumb-rec" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 4 20 12 6 20 6 4"/></svg>
</div>
<div class="proj-meta">
<div class="proj-name">demo2</div>
<div class="proj-path">~/OpenScreen/demo2</div>
</div>
<span class="proj-time">à l'instant</span>
<button class="proj-pin is-pinned" title="Détacher" aria-label="Détacher">
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg>
</button>
</div>
<div class="proj-item" role="option" aria-selected="false" tabindex="0">
<div class="proj-thumb" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="13" y2="17"/></svg>
</div>
<div class="proj-meta">
<div class="proj-name">launch-demo-q3</div>
<div class="proj-path">~/OpenScreen/launch-demo-q3</div>
</div>
<span class="proj-time">il y a 2 h</span>
<button class="proj-pin" title="Épingler" aria-label="Épingler">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg>
</button>
</div>
<div class="proj-item" role="option" aria-selected="false" tabindex="0">
<div class="proj-thumb" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</div>
<div class="proj-meta">
<div class="proj-name">tutorial-cut</div>
<div class="proj-path">~/Documents/OpenScreen/tutorial-cut</div>
</div>
<span class="proj-time">hier</span>
<button class="proj-pin" title="Épingler" aria-label="Épingler">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg>
</button>
</div>
<div class="proj-item" role="option" aria-selected="false" tabindex="0">
<div class="proj-thumb has-thumb" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/><line x1="8" y1="23" x2="16" y2="23"/></svg>
</div>
<div class="proj-meta">
<div class="proj-name">podcast-ep-12</div>
<div class="proj-path">~/OpenScreen/podcast-ep-12</div>
</div>
<span class="proj-time">il y a 3 j</span>
<button class="proj-pin" title="Épingler" aria-label="Épingler">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg>
</button>
</div>
<div class="proj-item" role="option" aria-selected="false" tabindex="0">
<div class="proj-thumb" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="23 7 16 12 23 17 23 7"/><rect x="1" y="5" width="15" height="14" rx="2"/></svg>
</div>
<div class="proj-meta">
<div class="proj-name">onboarding-2026</div>
<div class="proj-path">~/Work/onboarding-2026</div>
</div>
<span class="proj-time">semaine dernière</span>
<button class="proj-pin" title="Épingler" aria-label="Épingler">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg>
</button>
</div>
</div>
<div class="proj-footer">
<span class="hint"><kbd>⌘</kbd> <kbd>O</kbd> pour ouvrir · <kbd>↑</kbd><kbd>↓</kbd> pour naviguer</span>
<button class="btn-secondary" type="button">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
Parcourir les fichiers…
</button>
</div>
</div>
</div>
</div>
<!-- ─── New Project modal (titlebar · left) ─────────────────────── -->
<div class="modal" data-modal-name="new-project" role="dialog" aria-modal="true" aria-labelledby="new-project-title">
<div class="modal-backdrop" aria-hidden="true"></div>
<div class="modal-card">
<header class="modal-head">
<div>
<h2 id="new-project-title">Nouveau projet</h2>
<p>Choisissez un point de départ et donnez-lui un nom</p>
</div>
<button class="icon-btn" data-modal-close title="Fermer" aria-label="Fermer">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</header>
<div class="modal-body">
<div class="new-form">
<div class="new-field">
<label for="np-name">Nom du projet</label>
<input id="np-name" type="text" placeholder="Ex. démo-client-acme" value="projet-sans-nom">
</div>
<div class="new-field">
<label>Point de départ</label>
<div class="tpl-grid" role="radiogroup" aria-label="Point de départ">
<button class="tpl-cell is-active" role="radio" aria-checked="true" type="button">
<span class="tpl-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
</span>
<span class="tpl-name">Projet vierge</span>
<span class="tpl-desc">Timeline vide, prêt à importer</span>
</button>
<button class="tpl-cell" role="radio" aria-checked="false" type="button">
<span class="tpl-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="3"/></svg>
</span>
<span class="tpl-name">Enregistrement écran</span>
<span class="tpl-desc">Démarre la capture système</span>
</button>
<button class="tpl-cell" role="radio" aria-checked="false" type="button">
<span class="tpl-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
</span>
<span class="tpl-name">Importer des médias</span>
<span class="tpl-desc">Vidéo, audio, images depuis le disque</span>
</button>
<button class="tpl-cell" role="radio" aria-checked="false" type="button">
<span class="tpl-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
</span>
<span class="tpl-name">Depuis un modèle</span>
<span class="tpl-desc">Storyboard prédéfini, intro + outro</span>
</button>
</div>
</div>
<div class="new-field">
<label for="np-loc">Emplacement</label>
<div class="path-row">
<input id="np-loc" type="text" value="~/OpenScreen/projet-sans-nom">
<button class="btn-secondary" type="button">Modifier…</button>
</div>
</div>
<div class="new-actions">
<button class="btn-secondary" type="button" data-modal-close>Annuler</button>
<button class="btn-primary" type="button" data-modal-close>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
Créer le projet
</button>
</div>
</div>
</div>
</div>
</div>
<script>
/* ─── track-block selection ──────────────────────────────────── */
(function clips() {
document.querySelectorAll('.track-block').forEach(function (c) {
c.addEventListener('click', function () {
document.querySelectorAll('.track-block').forEach(function (x) { x.classList.remove('is-selected'); });
c.classList.add('is-selected');
});
});
})();
/* ─── trim controls — float above each .segment.cut on hover ─ */
(function cutControls() {
var TRASH_SVG = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/><path d="M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2"/></svg>';
document.querySelectorAll('.track-block').forEach(function (block) {
var ctl = document.createElement('div');
ctl.className = 'cut-controls';
ctl.setAttribute('role', 'toolbar');
ctl.innerHTML =
'<button type="button" class="cc-btn cc-left" aria-label="Extend trim left">‹</button>' +
'<button type="button" class="cc-btn cc-mid" aria-label="Restore section">' + TRASH_SVG + '</button>' +
'<button type="button" class="cc-btn cc-right" aria-label="Extend trim right">›</button>';
block.appendChild(ctl);
function hide() { ctl.classList.remove('is-on'); }
block.querySelectorAll('.segment.cut').forEach(function (seg) {
seg.addEventListener('mouseenter', function () {
var sr = seg.getBoundingClientRect();
var br = block.getBoundingClientRect();
var left = sr.left - br.left + sr.width / 2;
var top = sr.top - br.top;
ctl.style.left = left + 'px';
ctl.style.top = (top - 26) + 'px';
ctl.style.transform = 'translateX(-50%)';
ctl.classList.add('is-on');
});
});
ctl.addEventListener('mouseleave', hide);
block.addEventListener('mouseleave', hide);
});
})();
/* ─── rail buttons — toggle aria-pressed (skip action buttons) ─ */
(function rails() {
document.querySelectorAll('.rail button:not([data-action])').forEach(function (b) {
b.addEventListener('click', function () {
const group = b.parentElement;
group.querySelectorAll('button:not([data-action])').forEach(function (x) { x.setAttribute('aria-pressed', 'false'); });
b.setAttribute('aria-pressed', 'true');
if (group.classList.contains('rail-left') && b.dataset.panel) {
const key = b.dataset.panel;
document.querySelectorAll('.left-panel').forEach(function (p) {
p.classList.toggle('is-active', p.dataset.leftPanel === key);
});
}
});
});
})();
/* ─── play / pause toggle ───────────────────────────────────── */
(function play() {
const btn = document.getElementById('play-btn');
const icon = document.getElementById('play-icon');
if (!btn || !icon) return;
btn.addEventListener('click', function () {
const playing = btn.getAttribute('data-playing') === 'true';
btn.setAttribute('data-playing', playing ? 'false' : 'true');
icon.innerHTML = playing
? '<path d="M8 5v14l11-7z"/>'
: '<rect x="6" y="5" width="4" height="14"/><rect x="14" y="5" width="4" height="14"/>';
});
window.addEventListener('keydown', function (e) {
if (e.target.tagName === 'TEXTAREA' || e.target.tagName === 'INPUT') return;
if (e.code === 'Space') { e.preventDefault(); btn.click(); }
});
})();
/* ─── rec toggle ─────────────────────────────────────────────── */
(function rec() {
const btn = document.getElementById('rec-btn');
const label = document.getElementById('rec-label');
if (!btn) return;
btn.addEventListener('click', function () {
const on = btn.getAttribute('aria-pressed') === 'true';
btn.setAttribute('aria-pressed', on ? 'false' : 'true');
label.textContent = on ? 'REC' : 'STOP · 00:12';
});
})();
/* ─── transport zoom segmented control ───────────────────────── */
(function seg() {
document.querySelectorAll('.transport .seg').forEach(function (s) {
s.querySelectorAll('button').forEach(function (b) {
b.addEventListener('click', function () {
s.querySelectorAll('button').forEach(function (x) { x.setAttribute('aria-pressed', 'false'); });
b.setAttribute('aria-pressed', 'true');
});
});
});
})();
/* ─── loop button toggle ─────────────────────────────────────── */
(function loop() {
const b = document.getElementById('loop-btn');
if (!b) return;
b.addEventListener('click', function () {
const on = b.getAttribute('aria-pressed') === 'true';
b.setAttribute('aria-pressed', on ? 'false' : 'true');
});
})();
/* ─── model picker — cycle through 3 models on click ─────────── */
(function model() {
const name = document.getElementById('model-name');
const picker = document.getElementById('model-picker');
if (!name || !picker) return;
const models = [
'openai-oauth / gpt-5.5',
'anthropic / claude-sonnet-4.5',
'local / qwen2.5-7b'
];
let i = 0;
picker.addEventListener('click', function (e) {
if (e.target.closest('.chip')) return; // don't cycle on chip click
i = (i + 1) % models.length;
name.textContent = models[i];
});
})();
/* ─── send button — append bubble to chat ────────────────────── */
(function send() {
const btn = document.getElementById('send-btn');
const ta = document.querySelector('.chat-input textarea');
const body = document.querySelector('.chat .panel-body');
if (!btn || !ta || !body) return;
const post = function () {
const v = ta.value.trim();
if (!v) return;
const msg = document.createElement('div');
msg.className = 'msg';
msg.innerHTML = '<div class="msg-bubble"><div class="msg-card-top"><span class="msg-author">YOU</span><span class="msg-actions"><button class="icon-btn" title="Répondre" aria-label="Répondre"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/></svg></button><button class="icon-btn" title="Copier" aria-label="Copier"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></button></span></div><div class="msg-body"></div></div>';
msg.querySelector('.msg-body').textContent = v;
body.appendChild(msg);
ta.value = '';
body.scrollTop = body.scrollHeight;
};
btn.addEventListener('click', post);
ta.addEventListener('keydown', function (e) {
if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); post(); }
});
})();
/* ─── right-rail buttons — swap panel-stack child on click ────── */
(function railRight() {
const rail = document.querySelector('.rail-right');
const stack = document.querySelector('.panel-stack');
if (!rail || !stack) return;
const panes = Array.from(stack.querySelectorAll('.panel[data-pane]'));
const setActive = function (pane) {
panes.forEach(function (p) { p.classList.toggle('is-active', p.dataset.pane === pane); });
rail.querySelectorAll('button[data-pane]').forEach(function (b) {
b.classList.toggle('is-active', b.dataset.pane === pane);
});
};
rail.addEventListener('click', function (e) {
const btn = e.target.closest('button[data-pane]');
if (!btn) return;
setActive(btn.dataset.pane);
});
const initial = (rail.querySelector('button[data-pane].is-active') || rail.querySelector('button[data-pane]')).dataset.pane;
setActive(initial);
})();
/* ─── pane tabs (Image/Color/Gradient) — in-pane section switch ── */
(function paneTabs() {
const stack = document.querySelector('.panel-stack');
if (!stack) return;
stack.addEventListener('click', function (e) {
const tab = e.target.closest('.pane-tabs button[data-tab]');
if (!tab) return;
const target = tab.dataset.tab;
const pane = tab.closest('.panel[data-pane]');
if (!pane) return;
pane.querySelectorAll('.pane-tabs button[data-tab]').forEach(function (b) {
b.classList.toggle('is-active', b.dataset.tab === target);
});
pane.querySelectorAll('.pane-section[data-section]').forEach(function (s) {
s.classList.toggle('is-active', s.dataset.section === target);
});
});
})();
/* ─── pane toggles (Blur BG, Audio waveform, Show cursor, Clip to canvas) */
(function paneToggles() {
document.querySelectorAll('[data-toggle]').forEach(function (b) {
b.addEventListener('click', function () { b.classList.toggle('is-on'); });
});
})();
/* ─── bg-thumb / cursor-cell — single-select within grid ───────── */
(function gridSelect() {
document.querySelectorAll('.bg-grid, .cursor-grid').forEach(function (grid) {
grid.addEventListener('click', function (e) {
const cell = e.target.closest('.bg-thumb, .cursor-cell');
if (!cell) return;
grid.querySelectorAll('.is-active').forEach(function (c) { c.classList.remove('is-active'); });
cell.classList.add('is-active');
});
});
})();
/* ─── panel resize handles — drag to resize panels ───────────── */
(function resizers() {
const root = document.documentElement;
const limits = { left: 200, right: 200, bottom: 140 };
const cap = { left: 0.55, right: 0.55, bottom: 0.65 };
const varName = { left: '--panel-w-left', right: '--panel-w-right', bottom: '--bottom-h' };
const readPx = function (name) {
const v = getComputedStyle(root).getPropertyValue(name).trim();
return parseFloat(v) || 0;
};
document.querySelectorAll('.resize-handle').forEach(function (h) {
h.addEventListener('pointerdown', function (e) {
e.preventDefault();
h.setPointerCapture(e.pointerId);
h.classList.add('is-dragging');
document.body.style.cursor = getComputedStyle(h).cursor;
const axis = h.dataset.axis;
const vName = varName[axis];
const startVal = readPx(vName);
const startX = e.clientX, startY = e.clientY;
const onMove = function (ev) {
const dx = ev.clientX - startX;
const dy = startY - ev.clientY; /* dragging up = taller bottom */
let next;
if (axis === 'left') next = startVal + dx;
else if (axis === 'right') next = startVal - dx;
else next = startVal + dy;
const min = limits[axis];
const maxPx = (axis === 'bottom')
? window.innerHeight * cap[axis]
: window.innerWidth * cap[axis];
next = Math.max(min, Math.min(next, maxPx));
root.style.setProperty(vName, next + 'px');
};
const onUp = function () {
h.classList.remove('is-dragging');
document.body.style.cursor = '';
h.removeEventListener('pointermove', onMove);
h.removeEventListener('pointerup', onUp);
h.removeEventListener('pointercancel', onUp);
};
h.addEventListener('pointermove', onMove);
h.addEventListener('pointerup', onUp);
h.addEventListener('pointercancel', onUp);
});
});
})();
/* ─── modal: open / close on data-action="open-modal" ─────── */
(function modals() {
document.querySelectorAll('[data-action="open-modal"]').forEach(function (trigger) {
trigger.addEventListener('click', function () {
const name = trigger.dataset.modal;
const modal = document.querySelector('[data-modal-name="' + name + '"]');
if (modal) {
modal.classList.add('is-open');
document.body.style.overflow = 'hidden';
}
});
});
document.querySelectorAll('[data-modal-close], .modal-backdrop').forEach(function (closer) {
closer.addEventListener('click', function (e) {
if (e.target !== closer && !e.target.closest('[data-modal-close]')) return;
const modal = closer.closest('[data-modal-name]');
if (modal) {
modal.classList.remove('is-open');
document.body.style.overflow = '';
}
});
});
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape') {
document.querySelectorAll('.modal.is-open').forEach(function (m) {
m.classList.remove('is-open');
});
document.body.style.overflow = '';
}
});
})();
/* ─── shape-grid: single-select within Camera Shape ──────── */
(function shapeSelect() {
document.querySelectorAll('.shape-grid').forEach(function (grid) {
grid.addEventListener('click', function (e) {
const cell = e.target.closest('.shape-cell');
if (!cell) return;
grid.querySelectorAll('.is-active').forEach(function (c) { c.classList.remove('is-active'); });
cell.classList.add('is-active');
});
});
})();
/* ─── panel toggles (titlebar) ─────────────────────────── */
(function panelToggles() {
const app = document.querySelector('.app');
if (!app) return;
const map = { left: 'left', timeline: 'bottom', right: 'right' };
document.querySelectorAll('[data-panel-toggle]').forEach(function (btn) {
btn.addEventListener('click', function () {
const side = map[btn.dataset.panelToggle];
if (!side) return;
const list = (app.getAttribute('data-collapse') || '').split(/\s+/).filter(Boolean);
const i = list.indexOf(side);
if (i === -1) { list.push(side); btn.setAttribute('aria-pressed', 'true'); }
else { list.splice(i, 1); btn.setAttribute('aria-pressed', 'false'); }
if (list.length) app.setAttribute('data-collapse', list.join(' '));
else app.removeAttribute('data-collapse');
});
});
})();
/* ─── theme toggle (titlebar) — light ⇄ dark, persists in localStorage ─── */
(function themeToggle() {
const root = document.documentElement;
const btn = document.querySelector('[data-theme-toggle]');
if (!btn) return;
const sunSVG = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>';
const moonSVG = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>';
function apply(theme) {
if (theme === 'dark') {
root.setAttribute('data-theme', 'dark');
btn.innerHTML = moonSVG;
btn.setAttribute('title', 'Passer au thème clair');
btn.setAttribute('aria-label', 'Passer au thème clair');
btn.setAttribute('aria-pressed', 'true');
} else {
root.removeAttribute('data-theme');
btn.innerHTML = sunSVG;
btn.setAttribute('title', 'Passer au thème sombre');
btn.setAttribute('aria-label', 'Passer au thème sombre');
btn.setAttribute('aria-pressed', 'false');
}
}
try {
const saved = localStorage.getItem('openscreen-theme');
apply(saved === 'dark' ? 'dark' : 'light');
} catch (e) { apply('light'); }
btn.addEventListener('click', function () {
const next = root.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
apply(next);
try { localStorage.setItem('openscreen-theme', next); } catch (e) {}
});
})();
/* ─── keyboard activation on media cards (role=button) ──── */
(function mediaCardKeys() {
document.querySelectorAll('.media-card[data-action]').forEach(function (card) {
card.addEventListener('keydown', function (e) {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
card.click();
}
});
});
})();
/* ─── project list — single-select + pin toggle ──────────── */
(function projList() {
const list = document.querySelector('[data-modal-name="open-project"] .proj-list');
if (!list) return;
list.addEventListener('click', function (e) {
const item = e.target.closest('.proj-item');
if (!item) return;
if (e.target.closest('.proj-pin')) {
const pin = e.target.closest('.proj-pin');
pin.classList.toggle('is-pinned');
pin.setAttribute('title', pin.classList.contains('is-pinned') ? 'Détacher' : 'Épingler');
pin.setAttribute('aria-label', pin.classList.contains('is-pinned') ? 'Détacher' : 'Épingler');
e.stopPropagation();
return;
}
list.querySelectorAll('.proj-item').forEach(function (x) {
x.classList.remove('is-active');
x.setAttribute('aria-selected', 'false');
});
item.classList.add('is-active');
item.setAttribute('aria-selected', 'true');
});
list.addEventListener('keydown', function (e) {
const items = Array.from(list.querySelectorAll('.proj-item'));
const cur = items.findIndex(function (x) { return x === document.activeElement; });
if (cur === -1) return;
let next = cur;
if (e.key === 'ArrowDown') next = Math.min(items.length - 1, cur + 1);
else if (e.key === 'ArrowUp') next = Math.max(0, cur - 1);
else if (e.key === 'Enter' || e.key === ' ') { items[cur].click(); e.preventDefault(); return; }
else return;
e.preventDefault();
items[next].focus();
});
})();
/* ─── template grid — single-select ───────────────────────── */
(function tplGrid() {
const grid = document.querySelector('[data-modal-name="new-project"] .tpl-grid');
if (!grid) return;
grid.addEventListener('click', function (e) {
const cell = e.target.closest('.tpl-cell');
if (!cell) return;
grid.querySelectorAll('.tpl-cell').forEach(function (x) {
x.classList.remove('is-active');
x.setAttribute('aria-checked', 'false');
});
cell.classList.add('is-active');
cell.setAttribute('aria-checked', 'true');
});
grid.addEventListener('keydown', function (e) {
const cells = Array.from(grid.querySelectorAll('.tpl-cell'));
const cur = cells.findIndex(function (x) { return x === document.activeElement; });
if (cur === -1) return;
const cols = 2;
let next = cur;
if (e.key === 'ArrowRight') next = Math.min(cells.length - 1, cur + 1);
else if (e.key === 'ArrowLeft') next = Math.max(0, cur - 1);
else if (e.key === 'ArrowDown') next = Math.min(cells.length - 1, cur + cols);
else if (e.key === 'ArrowUp') next = Math.max(0, cur - cols);
else if (e.key === 'Enter' || e.key === ' ') { cells[cur].click(); e.preventDefault(); return; }
else return;
e.preventDefault();
cells[next].focus();
});
})();
</script>
</body>
</html>