AI media harness for planning, generating, and editing locally
TypeScript
Make timeline and references legible
Bitti95823c9a017b
diff --git a/src/components/workspace/ReferencesView.tsx b/src/components/workspace/ReferencesView.tsxindex 37386b9..1750f37 100644--- a/src/components/workspace/ReferencesView.tsx+++ b/src/components/workspace/ReferencesView.tsx@@ -1,4 +1,4 @@-import { BookOpen, Check, FileText, Image, Link2, MoreHorizontal, Plus, Sparkles, Trash2, Upload, Users } from "lucide-react";+import { BookOpen, Check, FileText, Image, Link2, Plus, Sparkles, Trash2, Upload, Users } from "lucide-react";import { invoke } from "@tauri-apps/api/core";import { useMemo, useState } from "react";import type { ProjectConfig, ProjectReference } from "../../lib/project";@@ -45,32 +45,61 @@ export function ReferencesView({ config, folderPath, onChange }: { config: Proje};return <div className="references-view">- <header className="references-heading"><div><span className="eyebrow">Consistency library</span><h1>References</h1><p>Define the people, places, products, and visual rules Pol should preserve across every generation.</p></div><div><button className="secondary-button" onClick={() => addTextReference()}><FileText size={14} /> New definition</button><button className="primary-button" onClick={() => void addImage()}><Upload size={14} /> Add image</button></div></header>+ <header className="references-heading">+ <div>+ <span className="eyebrow">Consistency library</span>+ <h1>References</h1>+ <p>Define the people, places, products, and visual rules Pol should preserve across every generation.</p>+ </div>+ <div>+ <button className="secondary-button" onClick={() => addTextReference()}><FileText size={16} /> New definition</button>+ <button className="primary-button" onClick={() => void addImage()}><Upload size={16} /> Add image</button>+ </div>+ </header><div className="reference-layout"><section className="reference-library">- <div className="reference-library__toolbar"><span>{config.references.length} REFERENCES</span><button><MoreHorizontal size={15} /></button></div>+ <div className="reference-library__toolbar"><span>{config.references.length === 1 ? "1 reference" : `${config.references.length} references`}</span></div><div className="reference-grid">- {config.references.map((ref, index) => <button key={ref.id} className={`${selectedId === ref.id ? "selected" : ""} ref-card--${ref.kind}`} onClick={() => setSelectedId(ref.id)}>- {ref.kind === "image" ? <span className={`reference-art reference-art--${index}`}><i /><em><Image size={14} /> IMAGE</em></span> : <span className="reference-copy-art"><i>{index === 0 ? "M" : "Aa"}</i><FileText size={14} /></span>}- <span className="reference-card__body"><span><b>{ref.name}</b><small>{ref.kind === "text" ? "TEXT DEFINITION" : ref.relativePath}</small></span><p>{ref.description}</p><span className="use-tags">{ref.intendedUse.map((use) => <i key={use}>{use}</i>)}</span></span>+ {config.references.map((ref) => <button key={ref.id} className={selectedId === ref.id ? "selected" : ""} onClick={() => setSelectedId(ref.id)}>+ {ref.kind === "image" ? <span className="reference-art"><Image size={26} /><em>Image file</em></span> : <span className="reference-copy-art"><FileText size={26} /><em>Text definition</em></span>}+ <span className="reference-card__body"><span><b>{ref.name}</b><small>{ref.kind === "text" ? "Text definition" : ref.relativePath}</small></span><p>{ref.description}</p><span className="use-tags">{ref.intendedUse.map((use) => <i key={use}>{use}</i>)}</span></span></button>)}- <button className="reference-add-card" onClick={() => void addImage()}><span><Plus size={20} /></span><b>Add a reference</b><small>Import an image or define it in text</small></button>+ <button className="reference-add-card" onClick={() => void addImage()}><span><Plus size={22} /></span><b>Add a reference</b><small>Import an image or write a definition</small></button></div>- <div className="reference-explainer"><Sparkles size={17} /><div><b>References guide generation, not your timeline</b><p>Attach them to any job so characters, products, and art direction stay coherent. All files are copied into the project’s <code>references/</code> folder.</p></div></div>+ <div className="reference-explainer"><Sparkles size={18} /><div><b>References guide generation, not your timeline</b><p>Attach them to any job so characters, products, and art direction stay coherent. All files are copied into the project’s <code>references/</code> folder.</p></div></div></section><aside className="reference-inspector">- <div className="panel-chrome"><span>Reference details</span>{selected && <button onClick={remove} aria-label="Delete reference"><Trash2 size={13} /></button>}</div>+ <div className="panel-chrome"><span>Reference details</span>{selected && <button onClick={remove} aria-label="Delete reference" title="Delete this reference"><Trash2 size={16} /></button>}</div>{selected ? <>- <div className={`reference-detail-art reference-detail-art--${selected.kind}`}><span>{selected.kind === "image" ? <Image size={28} /> : <Users size={28} />}</span><em>{selected.kind === "image" ? selected.relativePath : "Reusable text definition"}</em></div>- <div className="reference-fields"><label><span>NAME</span><input value={selected.name} onChange={(event) => update(selected.id, { name: event.target.value || "Untitled reference" })} /></label><label><span>DEFINITION</span><textarea value={selected.description} onChange={(event) => update(selected.id, { description: event.target.value || "Add a reference description." })} /></label></div>- <section className="intended-use"><h3>INTENDED USE</h3><p>Tell Pol what must remain consistent.</p><div>{uses.map((use) => <button key={use} className={selected.intendedUse.includes(use) ? "active" : ""} onClick={() => update(selected.id, { intendedUse: selected.intendedUse.includes(use) ? selected.intendedUse.filter((item) => item !== use) : [...selected.intendedUse, use] })}>{selected.intendedUse.includes(use) && <Check size={11} />}{use}</button>)}</div></section>- <section className="reference-used-by"><h3>USED BY <span>{jobs.length}</span></h3>{jobs.length ? jobs.map((job) => <div key={job.id}><span className={`job-link-dot job-link-dot--${job.status}`} /><div><b>{job.title}</b><small>{job.status} · {job.stage}</small></div><Link2 size={13} /></div>) : <p>No generation jobs use this reference yet.</p>}</section>- <section className="portable-path"><BookOpen size={14} /><div><b>Portable project path</b><code>{selected.relativePath ?? "Stored in polstudio.project.json"}</code></div></section>- </> : <div className="reference-empty"><BookOpen size={23} /><b>Select a reference</b><p>Its definition, intended use, and connected jobs will appear here.</p></div>}+ <div className={`reference-detail-art reference-detail-art--${selected.kind}`}><span>{selected.kind === "image" ? <Image size={30} /> : <Users size={30} />}</span><em>{selected.kind === "image" ? selected.relativePath : "Reusable text definition"}</em></div>+ <div className="reference-fields">+ <label><span>Name</span><input value={selected.name} onChange={(event) => update(selected.id, { name: event.target.value || "Untitled reference" })} /></label>+ <label><span>Definition</span><textarea value={selected.description} onChange={(event) => update(selected.id, { description: event.target.value || "Add a reference description." })} /></label>+ </div>+ <section className="intended-use">+ <h3>Intended use</h3>+ <p>Tell Pol what must stay consistent. Tap any that apply.</p>+ <div>{uses.map((use) => <button key={use} className={selected.intendedUse.includes(use) ? "active" : ""} aria-pressed={selected.intendedUse.includes(use)} onClick={() => update(selected.id, { intendedUse: selected.intendedUse.includes(use) ? selected.intendedUse.filter((item) => item !== use) : [...selected.intendedUse, use] })}>{selected.intendedUse.includes(use) && <Check size={14} />}{use}</button>)}</div>+ </section>+ <section className="reference-used-by">+ <h3>Used by <span>{jobs.length}</span></h3>+ {jobs.length ? jobs.map((job) => <div key={job.id}><span className={`job-link-dot job-link-dot--${job.status}`} /><div><b>{job.title}</b><small>{job.status} · {job.stage}</small></div><Link2 size={16} /></div>) : <p>No generations use this reference yet. Attach it to a scene in the Generator and Pol will keep it consistent.</p>}+ </section>+ <section className="portable-path"><BookOpen size={16} /><div><b>Where this lives</b><code>{selected.relativePath ?? "Stored in polstudio.project.json"}</code></div></section>+ </> : <div className="reference-empty"><BookOpen size={26} /><b>Select a reference</b><p>Pick one from the library, or add a new one, to edit its definition and see which generations use it.</p></div>}</aside></div>- {definitionDialog && <div className="reference-dialog-backdrop"><div className="reference-dialog" role="dialog" aria-modal="true" aria-labelledby="reference-dialog-title"><h2 id="reference-dialog-title">Define a visual reference</h2><p>Image import is available in the desktop app. This browser preview will save an honest text definition without inventing a file path.</p><label><span>NAME</span><input value={definitionName} onChange={(event) => setDefinitionName(event.target.value)} /></label><label><span>DEFINITION</span><textarea value={definitionDescription} onChange={(event) => setDefinitionDescription(event.target.value)} placeholder="Describe the composition, materials, colors, or character traits to preserve." /></label><div><button className="secondary-button" onClick={() => setDefinitionDialog(false)}>Cancel</button><button className="primary-button" disabled={!definitionName.trim() || !definitionDescription.trim()} onClick={() => { addTextReference(definitionName.trim(), definitionDescription.trim()); setDefinitionDialog(false); setDefinitionDescription(""); }}>Save text definition</button></div></div></div>}+ {definitionDialog && <div className="reference-dialog-backdrop"><div className="reference-dialog" role="dialog" aria-modal="true" aria-labelledby="reference-dialog-title">+ <h2 id="reference-dialog-title">Define a visual reference</h2>+ <p>Image import is available in the desktop app. This browser preview will save an honest text definition without inventing a file path.</p>+ <label><span>Name</span><input value={definitionName} onChange={(event) => setDefinitionName(event.target.value)} /></label>+ <label><span>Definition</span><textarea value={definitionDescription} onChange={(event) => setDefinitionDescription(event.target.value)} placeholder="Describe the composition, materials, colors, or character traits to preserve." /></label>+ <div>+ <button className="secondary-button" onClick={() => setDefinitionDialog(false)}>Cancel</button>+ <button className="primary-button" disabled={!definitionName.trim() || !definitionDescription.trim()} onClick={() => { addTextReference(definitionName.trim(), definitionDescription.trim()); setDefinitionDialog(false); setDefinitionDescription(""); }}>Save text definition</button>+ </div>+ </div></div>}{importError && <div className="toast" role="alert"><strong>Couldn’t add image</strong><span>{importError}</span><button onClick={() => setImportError(null)}>Dismiss</button></div>}</div>;}diff --git a/src/components/workspace/TimelineView.tsx b/src/components/workspace/TimelineView.tsxindex fe9a324..c74dc8b 100644--- a/src/components/workspace/TimelineView.tsx+++ b/src/components/workspace/TimelineView.tsx@@ -1,12 +1,13 @@import {- Copy, Film, Image as ImageIcon, Layers3, Lock, LockOpen, Maximize2, Music2,+ Copy, Film, Image as ImageIcon, Layers3, Lock, LockOpen, Music2,Pause, Play, Plus, Scissors, SkipBack, SkipForward, Trash2, Upload, Video,- Volume2, VolumeX, WandSparkles, ZoomIn, ZoomOut,+ Volume2, VolumeX,} from "lucide-react";import { useEffect, useMemo, useState } from "react";import { createDraftGenerationJob, type ProjectConfig, type TimelineClip } from "../../lib/project";const DURATION = 34_000;+const NOT_YET = "Not available yet. This control doesn’t change your project.";const timecode = (ms: number) => {const seconds = Math.floor(ms / 1000);const frames = Math.floor((ms % 1000) / (1000 / 30));@@ -22,6 +23,8 @@ export function TimelineView({ config, onChange, onOpenGenerator }: { config: Prconst tracks = config.timeline.tracks;const selected = useMemo(() => tracks.flatMap((track) => track.clips).find((clip) => clip.id === selectedId), [tracks, selectedId]);const selectedTrack = tracks.find((track) => track.id === selected?.trackId);+ const clipCount = tracks.reduce((total, track) => total + track.clips.length, 0);+ const sceneClips = tracks.filter((track) => track.kind === "video").flatMap((track) => track.clips);const hasVisualOutput = config.assets.some((asset) => asset.kind === "video" || asset.kind === "image" || asset.kind === "generated")|| config.generationJobs.some((job) => Boolean(job.outputRelativePath));@@ -69,67 +72,111 @@ export function TimelineView({ config, onChange, onOpenGenerator }: { config: Pr<div className="edit-panels"><aside className="scene-panel"><div className="panel-tabs">- <button className={panelTab === "scenes" ? "active" : ""} onClick={() => setPanelTab("scenes")}><Layers3 size={14} /> Scenes</button>- <button className={panelTab === "media" ? "active" : ""} onClick={() => setPanelTab("media")}><Film size={14} /> Media</button>+ <button className={panelTab === "scenes" ? "active" : ""} onClick={() => setPanelTab("scenes")}><Layers3 size={16} /> Scenes</button>+ <button className={panelTab === "media" ? "active" : ""} onClick={() => setPanelTab("media")}><Film size={16} /> Media</button></div>- <div className="scene-panel__head"><span>{panelTab === "scenes" ? "Story sequence" : "Project media"}</span><button aria-label="Add media"><Plus size={15} /></button></div>+ <div className="scene-panel__head"><span>{panelTab === "scenes" ? "Story sequence" : "Project media"}</span></div>{panelTab === "scenes" ? (<div className="scene-list">- {tracks.filter((track) => track.kind === "video").flatMap((track) => track.clips).map((clip, index) => (- <button key={clip.id} className={`scene-card scene-card--${(index % 4) + 1} ${selectedId === clip.id ? "selected" : ""}`} onClick={() => { setSelectedId(clip.id); setPlayhead(clip.startMs + 600); }}>+ {sceneClips.map((clip, index) => (+ <button key={clip.id} className={`scene-card ${selectedId === clip.id ? "selected" : ""}`} onClick={() => { setSelectedId(clip.id); setPlayhead(clip.startMs + 600); }}><span className="scene-card__thumb"><i>{String(index + 1).padStart(2, "0")}</i><em>{(clip.durationMs / 1000).toFixed(1)}s</em></span><span><b>{clip.label.replace(/^\d+ · /, "")}</b><small>{clip.status === "generated" ? "Needs review" : "In timeline"}</small></span></button>))}- <button className="scene-add" onClick={addScene}><Plus size={15} /> Add or generate a scene</button>+ {sceneClips.length === 0 && <p className="panel-hint">No scenes yet. Start with the button below — Pol will draft one from your project brief.</p>}+ <button className="scene-add" onClick={addScene}><Plus size={18} /> Add or generate a scene</button></div>) : (<div className="media-grid">- {config.assets.map((asset, index) => <button key={asset.id}><span className={`media-thumb media-thumb--${index % 4}`}>{asset.kind === "audio" ? <Music2 size={18} /> : asset.kind === "image" ? <ImageIcon size={18} /> : <Video size={18} />}</span><b>{asset.name}</b><small>{asset.kind} · {asset.durationMs ? `${(asset.durationMs / 1000).toFixed(1)}s` : "still"}</small></button>)}- <button className="media-import"><Upload size={19} /><b>Import media</b><small>Files stay in this project</small></button>+ {config.assets.map((asset) => <button key={asset.id}><span className="media-thumb">{asset.kind === "audio" ? <Music2 size={22} /> : asset.kind === "image" ? <ImageIcon size={22} /> : <Video size={22} />}</span><b>{asset.name}</b><small>{asset.kind} · {asset.durationMs ? `${(asset.durationMs / 1000).toFixed(1)}s` : "still"}</small></button>)}+ {config.assets.length === 0 && <p className="panel-hint">No media in this project yet. Scenes you generate are saved here automatically.</p>}+ <button className="media-import" disabled title="Importing your own files isn’t available yet. Generate a scene instead.">+ <Upload size={20} /><b>Import media</b><small>Not available yet</small>+ </button></div>)}</aside><main className="program-panel">- <div className="panel-chrome"><span><i className="live-dot" /> Program monitor</span><div><button>Fit</button><button aria-label="Fullscreen"><Maximize2 size={14} /></button></div></div>+ <div className="panel-chrome"><span><i className="live-dot" /> Program monitor</span></div><div className="program-canvas">- {hasVisualOutput ? <div className={`program-image program-image--${Math.min(4, Math.floor(playhead / 8000) + 1)}`}>- <div className="program-image__architecture"><i /><i /><i /><i /><i /></div>- <div className="program-image__caption"><span>NORTHERN LIGHT</span><small>Architecture for a more human city</small></div>- <span className="safe-frame" />- </div> : <div className="program-empty" data-testid="project-empty-monitor"><Film size={28} /><strong>{config.name}</strong><span>{config.brief.prompt}</span><small>Generated or imported footage will appear here.</small></div>}+ {hasVisualOutput ? (+ <div className="program-empty program-empty--footage">+ <Film size={30} />+ <strong>{config.name}</strong>+ <span>{config.brief.prompt}</span>+ <small>Pol Studio can’t play this footage back yet. {clipCount === 1 ? "1 clip is" : `${clipCount} clips are`} arranged on the timeline below and nothing has been lost.</small>+ </div>+ ) : (+ <div className="program-empty" data-testid="project-empty-monitor">+ <Film size={30} />+ <strong>{config.name}</strong>+ <span>{config.brief.prompt}</span>+ <small>Nothing to play yet. Add or generate a scene and it will land on the timeline below.</small>+ </div>+ )}</div><div className="monitor-transport"><strong>{timecode(playhead)}</strong>- <div><button onClick={() => setPlayhead(0)} aria-label="Go to beginning"><SkipBack size={15} /></button><button className="play-button" onClick={() => setPlaying((value) => !value)} aria-label={playing ? "Pause" : "Play"}>{playing ? <Pause size={16} fill="currentColor" /> : <Play size={16} fill="currentColor" />}</button><button onClick={() => setPlayhead(Math.min(DURATION, playhead + 1000))} aria-label="Step forward"><SkipForward size={15} /></button></div>- <span>{config.settings.resolution.toUpperCase()} · {config.settings.frameRate} FPS</span>+ <div>+ <button onClick={() => setPlayhead(0)} aria-label="Go to beginning" title="Go to beginning"><SkipBack size={18} /></button>+ <button className="play-button" onClick={() => setPlaying((value) => !value)} aria-label={playing ? "Pause" : "Play"} title={playing ? "Pause" : "Play"}>{playing ? <Pause size={18} fill="currentColor" /> : <Play size={18} fill="currentColor" />}</button>+ <button onClick={() => setPlayhead(Math.min(DURATION, playhead + 1000))} aria-label="Step forward one second" title="Step forward one second"><SkipForward size={18} /></button>+ </div>+ <span>{config.settings.resolution.toUpperCase()} · {config.settings.frameRate} fps</span></div></main><aside className="clip-inspector">- <div className="panel-chrome"><span>Inspector</span><button><WandSparkles size={13} /> Ask Pol</button></div>+ <div className="panel-chrome"><span>Clip details</span></div>{selected ? <>- <div className="inspector-summary"><span className="clip-chip" style={{ background: selected.color }}><Film size={15} /></span><div><b>{selected.label}</b><small>{selectedTrack?.name} · {selected.status}</small></div></div>- <section className="inspector-section"><h3>Clip</h3><label><span>Name</span><input value={selected.label} onChange={(event) => updateClip(selected.id, { label: event.target.value || "Untitled clip" })} /></label><div className="field-pair"><label><span>Start</span><input value={timecode(selected.startMs).slice(3)} readOnly /></label><label><span>Duration</span><input value={timecode(selected.durationMs).slice(3)} readOnly /></label></div></section>- <section className="inspector-section"><h3>Transform</h3><div className="field-pair"><label><span>Scale</span><input defaultValue="100%" /></label><label><span>Rotation</span><input defaultValue="0°" /></label></div><div className="field-pair"><label><span>Position X</span><input defaultValue="0" /></label><label><span>Position Y</span><input defaultValue="0" /></label></div></section>- <section className="inspector-section"><h3>Look</h3><label className="range-field"><span>Opacity <b>100%</b></span><input type="range" defaultValue="100" /></label><label className="range-field"><span>Temperature <b>+4</b></span><input type="range" defaultValue="54" /></label></section>- </> : <div className="inspector-empty"><MouseSelection /><b>Select a clip</b><span>Properties and generation details will appear here.</span></div>}+ <div className="inspector-summary"><span className="clip-chip" style={{ background: selected.color }}><Film size={18} /></span><div><b>{selected.label}</b><small>{selectedTrack?.name} · {selected.status}</small></div></div>+ <section className="inspector-section">+ <h3>Clip</h3>+ <label><span>Name</span><input value={selected.label} onChange={(event) => updateClip(selected.id, { label: event.target.value || "Untitled clip" })} /></label>+ <div className="field-pair">+ <label><span>Starts at</span><input value={timecode(selected.startMs).slice(3)} readOnly /></label>+ <label><span>Lasts</span><input value={timecode(selected.durationMs).slice(3)} readOnly /></label>+ </div>+ </section>+ <section className="inspector-section inspector-section--pending">+ <h3>Transform <em>Not available yet</em></h3>+ <div className="field-pair">+ <label><span>Scale</span><input defaultValue="100%" disabled title={NOT_YET} /></label>+ <label><span>Rotation</span><input defaultValue="0°" disabled title={NOT_YET} /></label>+ </div>+ <div className="field-pair">+ <label><span>Position X</span><input defaultValue="0" disabled title={NOT_YET} /></label>+ <label><span>Position Y</span><input defaultValue="0" disabled title={NOT_YET} /></label>+ </div>+ </section>+ <section className="inspector-section inspector-section--pending">+ <h3>Look <em>Not available yet</em></h3>+ <label className="range-field"><span>Opacity <b>100%</b></span><input type="range" defaultValue="100" disabled title={NOT_YET} /></label>+ <label className="range-field"><span>Temperature <b>+4</b></span><input type="range" defaultValue="54" disabled title={NOT_YET} /></label>+ </section>+ </> : <div className="inspector-empty"><MouseSelection /><b>Select a clip to edit it</b><span>Pick any clip on the timeline below to rename it, check its timing, and see how it was made.</span></div>}</aside></div><section className="pro-timeline"><header className="timeline-toolbar"><div><strong>Timeline</strong><span>{timecode(playhead)}</span></div>- <div className="timeline-tools"><button onClick={addScene} title="Add scene"><Plus size={14} /> Add</button><button onClick={splitSelected} disabled={!selected || selectedTrack?.locked} title="Split at playhead (S)"><Scissors size={14} /> Split</button><button onClick={duplicateSelected} disabled={!selected || selectedTrack?.locked} title="Duplicate clip"><Copy size={14} /></button><button onClick={removeSelected} disabled={!selected || selectedTrack?.locked} title="Delete selected clip"><Trash2 size={14} /></button><i /><button title="Zoom out"><ZoomOut size={14} /></button><input type="range" min="50" max="150" defaultValue="90" aria-label="Timeline zoom" /><button title="Zoom in"><ZoomIn size={14} /></button></div>+ <div className="timeline-tools">+ <button onClick={addScene} title="Draft a new scene"><Plus size={16} /> Add</button>+ <button onClick={splitSelected} disabled={!selected || selectedTrack?.locked} title="Split at playhead"><Scissors size={16} /> Split</button>+ <button onClick={duplicateSelected} disabled={!selected || selectedTrack?.locked} title="Duplicate clip"><Copy size={16} /> Duplicate</button>+ <button onClick={removeSelected} disabled={!selected || selectedTrack?.locked} title="Delete selected clip"><Trash2 size={16} /> Delete</button>+ </div></header><div className="timeline-grid">- <div className="track-corner"><span>TRACKS</span></div>+ <div className="track-corner"><span>Tracks</span></div><div className="time-ruler" onPointerDown={(event) => { const rect = event.currentTarget.getBoundingClientRect(); setPlayhead(Math.round(Math.max(0, Math.min(1, (event.clientX - rect.left) / rect.width)) * DURATION)); }}>{[0, 5, 10, 15, 20, 25, 30].map((second) => <span key={second} style={{ left: `${second / 34 * 100}%` }}><i />00:{String(second).padStart(2, "0")}</span>)}</div>{tracks.map((track) => <TrackRow key={track.id} track={track} selectedId={selectedId} onSelect={setSelectedId} onToggle={toggleTrack} />)}- <div className="timeline-playhead" style={{ left: `calc(156px + (100% - 156px) * ${playhead / DURATION})` }}><span /><i /></div>+ <div className="timeline-playhead" style={{ left: `calc(var(--track-column) + (100% - var(--track-column)) * ${playhead / DURATION})` }}><span /><i /></div></div></section></div>@@ -138,7 +185,12 @@ export function TimelineView({ config, onChange, onOpenGenerator }: { config: Prfunction TrackRow({ track, selectedId, onSelect, onToggle }: { track: ProjectConfig["timeline"]["tracks"][number]; selectedId: string; onSelect: (id: string) => void; onToggle: (id: string, key: "muted" | "locked") => void }) {return <>- <div className="track-head"><span className={`track-kind track-kind--${track.kind}`}>{track.kind === "audio" ? <Music2 size={12} /> : <Video size={12} />}</span><div><b>{track.name}</b><small>{track.kind === "audio" ? "AUDIO" : "VIDEO"}</small></div><button className={track.muted ? "active" : ""} onClick={() => onToggle(track.id, "muted")} aria-label={`${track.muted ? "Unmute" : "Mute"} ${track.name}`}>{track.muted ? <VolumeX size={12} /> : <Volume2 size={12} />}</button><button className={track.locked ? "active" : ""} onClick={() => onToggle(track.id, "locked")} aria-label={`${track.locked ? "Unlock" : "Lock"} ${track.name}`}>{track.locked ? <Lock size={12} /> : <LockOpen size={12} />}</button></div>+ <div className="track-head">+ <span className={`track-kind track-kind--${track.kind}`}>{track.kind === "audio" ? <Music2 size={16} /> : <Video size={16} />}</span>+ <div><b>{track.name}</b><small>{track.kind === "audio" ? "Audio" : "Video"}</small></div>+ <button className={track.muted ? "active" : ""} onClick={() => onToggle(track.id, "muted")} aria-label={`${track.muted ? "Unmute" : "Mute"} ${track.name}`} title={`${track.muted ? "Unmute" : "Mute"} ${track.name}`}>{track.muted ? <VolumeX size={16} /> : <Volume2 size={16} />}</button>+ <button className={track.locked ? "active" : ""} onClick={() => onToggle(track.id, "locked")} aria-label={`${track.locked ? "Unlock" : "Lock"} ${track.name}`} title={`${track.locked ? "Unlock" : "Lock"} ${track.name}`}>{track.locked ? <Lock size={16} /> : <LockOpen size={16} />}</button>+ </div><div className={`track-lane ${track.muted ? "muted" : ""}`}>{track.clips.map((clip) => <button key={clip.id} className={`timeline-clip timeline-clip--${track.kind} ${selectedId === clip.id ? "selected" : ""}`} style={{ left: `${clip.startMs / DURATION * 100}%`, width: `${clip.durationMs / DURATION * 100}%`, "--clip-color": clip.color } as React.CSSProperties} onClick={() => onSelect(clip.id)} title={`${clip.label} · ${(clip.durationMs / 1000).toFixed(1)} seconds`}><span className="clip-text"><b>{clip.label}</b><small>{track.kind === "audio" ? "▂▅▃▆▂▃▇▅▂▆▃▅▂" : `${(clip.durationMs / 1000).toFixed(1)}s · ${clip.status}`}</small></span></button>)}</div>diff --git a/src/styles/references.css b/src/styles/references.cssindex 018e883..1f10f51 100644--- a/src/styles/references.css+++ b/src/styles/references.css@@ -1,5 +1,8 @@/* ============================================================================references.css — reference library, reference inspector, add-reference dialog.++ Sizing contract (see tokens.css): no literal px type sizes, nothing below+ --text-2xs (12px), every interactive control at least --control-sm (36px).========================================================================== */.references-view {@@ -8,8 +11,8 @@overflow-y: auto;padding: var(--space-6) var(--space-7) var(--space-7);background:- radial-gradient(circle at 20% -20%, #2f456b22, transparent 35%),- #0a0d12;+ radial-gradient(circle at 20% -20%, rgba(47, 69, 107, 0.13), transparent 35%),+ var(--bg);}.references-heading {@@ -18,16 +21,18 @@display: flex;justify-content: space-between;align-items: flex-end;+ gap: var(--space-5);}.references-heading > div:last-child {+ flex: 0 0 auto;display: flex;gap: var(--space-2);}.references-heading h1 {- margin: var(--space-1) 0 var(--space-1);- font-size: var(--text-xl);+ margin: var(--space-2) 0 var(--space-2);+ font-size: var(--text-2xl);font-weight: var(--weight-semibold);line-height: var(--leading-tight);letter-spacing: var(--tracking-hero);@@ -35,7 +40,8 @@.references-heading p {margin: 0;- color: var(--text-muted);+ max-width: 68ch;+ color: var(--text-secondary);font-size: var(--text-base);line-height: var(--leading-normal);}@@ -47,17 +53,17 @@min-height: 640px;margin: auto;display: grid;- grid-template-columns: minmax(600px, 1fr) 340px;+ grid-template-columns: minmax(600px, 1fr) 368px;overflow: hidden;- border: 1px solid #292e38;+ border: 1px solid var(--line-strong);border-radius: var(--radius-lg);- background: #0e1117;+ background: var(--panel);}.reference-library {min-width: 0;padding-bottom: var(--space-5);- border-right: 1px solid #292e38;+ border-right: 1px solid var(--line);}.reference-library__toolbar {@@ -67,29 +73,27 @@justify-content: space-between;padding: 0 var(--space-4);border-bottom: 1px solid var(--line);- color: var(--text-muted);- font-size: var(--text-2xs);+ color: var(--text-secondary);+ font-size: var(--text-sm);font-weight: var(--weight-semibold);line-height: var(--leading-snug);- text-transform: uppercase;- letter-spacing: var(--tracking-label);}-.reference-library__toolbar button {+/* Inspector chrome is a panel title, not an eyebrow — undo the uppercase+ micro-label styling controls.css applies to .panel-chrome. */+.reference-inspector > .panel-chrome {+ color: var(--text-secondary);+ font-size: var(--text-sm);+ font-weight: var(--weight-semibold);+ letter-spacing: normal;+ text-transform: none;+}++.reference-inspector > .panel-chrome button {width: var(--control-sm);height: var(--control-sm);- display: grid;- place-items: center;+ justify-content: center;padding: 0;- border: 0;- border-radius: var(--radius-sm);- color: var(--text-muted);- background: none;-}--.reference-library__toolbar button:hover {- color: var(--text-secondary);- background: rgba(255, 255, 255, 0.04);}/* --- Reference cards ------------------------------------------------------- */@@ -103,92 +107,71 @@.reference-grid > button {min-width: 0;- height: 180px;+ min-height: 208px;display: grid;- grid-template-columns: 132px minmax(0, 1fr);+ grid-template-columns: 140px minmax(0, 1fr);overflow: hidden;padding: 0;- border: 1px solid #272d37;+ border: 1px solid var(--line);border-radius: var(--radius-md);text-align: left;color: var(--text-muted);- background: #11151c;+ background: var(--panel-2);}.reference-grid > button:hover {- border-color: #3a4353;+ border-color: var(--line-strong);}.reference-grid > button.selected {- border-color: #647fdb;- box-shadow: 0 0 0 2px #4e69bd33;+ border-color: var(--accent-bright);+ box-shadow: 0 0 0 2px var(--accent-soft);}+/* Pol Studio cannot render image previews yet, so a reference shows a labelled+ placeholder rather than a stand-in picture of someone else's subject. */.reference-art,.reference-copy-art {position: relative;height: 100%;overflow: hidden;- display: grid;- place-items: center;- background: linear-gradient(155deg, #24344e, #9f735a);-}--.reference-art i {- position: absolute;- width: 70%;- height: 82%;- left: 18%;- bottom: -8%;- background: repeating-linear-gradient(90deg, #17202c 0 12px, #8c684f 13px 15px);- transform: perspective(200px) rotateY(-16deg);-}--.reference-art em {- position: absolute;- z-index: 2;- left: var(--space-2);- bottom: var(--space-2);display: flex;+ flex-direction: column;align-items: center;- gap: var(--space-1);- padding: 2px var(--space-1);- border-radius: var(--radius-xs);- color: #d8dee9;- background: rgba(9, 11, 15, 0.72);- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);- font-style: normal;+ justify-content: center;+ gap: var(--space-2);+ padding: var(--space-3);+ border-right: 1px solid var(--line);+ color: var(--text-muted);+ background-color: var(--panel-3);+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.03) 0 6px,+ transparent 6px 12px+ );}.reference-copy-art {- color: #94a8ea;- background: radial-gradient(circle at 50% 40%, #33436b, #171c2a);+ color: var(--accent-bright);}-.reference-copy-art i {- width: 56px;- height: 56px;- display: grid;- place-items: center;- border: 1px solid #6681d64d;- border-radius: 50%;- color: #bfccf5;- background: #34436a;- font-size: var(--text-lg);+.reference-art em,+.reference-copy-art em {+ color: var(--text-secondary);+ font-size: var(--text-xs);font-style: normal;-}--.reference-copy-art svg {- position: absolute;- right: var(--space-2);- bottom: var(--space-2);+ font-weight: var(--weight-medium);+ line-height: var(--leading-snug);+ text-align: center;}.reference-card__body {min-width: 0;- padding: var(--space-3);+ display: block;+ padding: var(--space-3) var(--space-4);}+.reference-card__body > span:first-child,.reference-card__body > span:first-child b,.reference-card__body > span:first-child small {display: block;@@ -198,23 +181,27 @@}.reference-card__body b {- color: var(--text-secondary);- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.reference-card__body small {margin-top: var(--space-1);color: var(--text-faint);- font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);+ font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-mono);}+/* Clamp to three lines instead of a fixed pixel height that clipped mid-glyph. */.reference-card__body p {- height: 66px;+ display: -webkit-box;+ -webkit-line-clamp: 3;+ -webkit-box-orient: vertical;overflow: hidden;- margin: var(--space-3) 0 var(--space-2);- color: var(--text-muted);- font-size: var(--text-xs);+ margin: var(--space-3) 0;+ color: var(--text-secondary);+ font-size: var(--text-sm);line-height: var(--leading-normal);}@@ -225,14 +212,17 @@}.use-tags i {- padding: 2px var(--space-1);- border: 1px solid #303744;+ padding: var(--space-1) var(--space-2);+ border: 1px solid var(--line-strong);border-radius: var(--radius-xs);- color: #8d9dcb;- background: #171d2b;- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ color: var(--text-secondary);+ background: var(--panel-3);+ font-family: var(--font-sans);+ font-size: var(--text-2xs);font-style: normal;- text-transform: uppercase;+ font-weight: var(--weight-medium);+ line-height: var(--leading-snug);+ text-transform: capitalize;}.reference-grid .reference-add-card {@@ -242,53 +232,57 @@justify-content: center;border-style: dashed;color: var(--text-muted);- background: var(--panel);+ background: none;}.reference-add-card > span {- width: var(--control-md);- height: var(--control-md);+ width: var(--control-lg);+ height: var(--control-lg);display: grid;place-items: center;margin-bottom: var(--space-2);- border: 1px solid #333a46;+ border: 1px solid var(--line-strong);border-radius: var(--radius-md);- color: #97a9e0;- background: #151c2d;+ color: var(--accent-bright);+ background: var(--accent-soft);}.reference-add-card b {- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.reference-add-card small {margin-top: var(--space-1);- font-size: var(--text-xs);+ color: var(--text-muted);+ font-size: var(--text-sm);line-height: var(--leading-snug);}.reference-explainer {display: flex;gap: var(--space-3);- margin: var(--space-1) var(--space-4) 0;- padding: var(--space-3);+ margin: var(--space-2) var(--space-4) 0;+ padding: var(--space-4);border: 1px solid rgba(83, 111, 199, 0.22);border-radius: var(--radius-md);- color: #8ea6f2;+ color: var(--accent-bright);background: rgba(40, 61, 124, 0.1);}.reference-explainer b {display: block;- color: #b9c4e4;- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.reference-explainer p {margin: var(--space-1) 0 0;- color: var(--text-muted);+ color: var(--text-secondary);font-size: var(--text-base);line-height: var(--leading-normal);}@@ -302,24 +296,22 @@.reference-inspector {min-width: 0;overflow-y: auto;- background: #0c0f14;+ background: var(--panel-2);}.reference-detail-art {- height: 140px;+ height: 156px;position: relative;display: grid;place-items: center;overflow: hidden;- background: linear-gradient(150deg, #263957, #997057);-}--.reference-detail-art::after {- content: "";- position: absolute;- inset: 0;- background: linear-gradient(90deg, transparent, #ffffff13, transparent);- transform: skew(-20deg);+ border-bottom: 1px solid var(--line);+ background-color: var(--panel-3);+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.03) 0 8px,+ transparent 8px 16px+ );}.reference-detail-art > span {@@ -329,29 +321,29 @@height: var(--space-9);display: grid;place-items: center;- border: 1px solid #ffffff24;+ border: 1px solid var(--line-strong);border-radius: 50%;- color: #d8e0ed;- background: #12182470;+ color: var(--text-muted);+ background: var(--panel-2);+}++.reference-detail-art--text > span {+ color: var(--accent-bright);}.reference-detail-art em {position: absolute;z-index: 3;- left: var(--space-2);- bottom: var(--space-2);- max-width: 90%;+ left: var(--space-3);+ right: var(--space-3);+ bottom: var(--space-3);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;- color: #d4dae5;- font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);+ color: var(--text-secondary);+ font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-mono);font-style: normal;- text-shadow: 0 1px 4px #000;-}--.reference-detail-art--text {- background: radial-gradient(circle at 50% 40%, #34456f, #171d2c);+ text-align: center;}.reference-fields {@@ -367,8 +359,9 @@.reference-fields label > span {display: block;margin-bottom: var(--space-1);- color: var(--text-muted);- font-size: var(--text-xs);+ color: var(--text-secondary);+ font-size: var(--text-sm);+ font-weight: var(--weight-medium);line-height: var(--leading-snug);}@@ -377,21 +370,22 @@width: 100%;height: var(--field-height);padding: 0 var(--space-3);- border: 1px solid #262b35;+ border: 1px solid var(--line);border-radius: var(--radius-sm);outline: 0;- color: var(--text-secondary);- background: #0a0d12;- font-size: var(--text-sm);+ color: var(--text-primary);+ background: var(--bg);+ font-family: var(--font-sans);+ font-size: var(--text-base);}.reference-fields input:focus,.reference-fields textarea:focus {- border-color: #536fca;+ border-color: var(--accent);}.reference-fields textarea {- height: 112px;+ height: 128px;padding: var(--space-2) var(--space-3);resize: none;line-height: var(--leading-normal);@@ -407,17 +401,11 @@.intended-use h3,.reference-used-by h3 {- margin: 0 0 var(--space-3);- color: var(--text-muted);- font-size: var(--text-2xs);- font-weight: var(--weight-bold);+ margin: 0 0 var(--space-2);+ color: var(--text-primary);+ font-size: var(--text-md);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);- text-transform: uppercase;- letter-spacing: var(--tracking-label);-}--.intended-use h3 {- margin-bottom: var(--space-1);}.intended-use p {@@ -437,42 +425,53 @@min-height: var(--control-sm);display: flex;align-items: center;- gap: var(--space-1);+ gap: var(--space-2);padding: 0 var(--space-3);- border: 1px solid #2b313b;+ border: 1px solid var(--line-strong);border-radius: var(--radius-sm);- color: var(--text-muted);- background: #11151b;- font-size: var(--text-xs);+ color: var(--text-secondary);+ background: var(--panel-3);+ font-size: var(--text-sm);+ font-weight: var(--weight-medium);+ line-height: var(--leading-snug);text-transform: capitalize;}+.intended-use button:hover {+ color: var(--text-primary);+ border-color: var(--accent);+}+.intended-use button.active {- color: #aebce8;- border-color: #485b99;- background: #1b2540;+ color: var(--accent-bright);+ border-color: var(--accent);+ background: var(--accent-soft);}.reference-used-by h3 span {float: right;+ min-width: var(--space-5);padding: 0 var(--space-2);border-radius: var(--radius-pill);- background: #1a2029;+ color: var(--text-secondary);+ background: var(--panel-3);+ font-size: var(--text-sm);+ text-align: center;}.reference-used-by > div {display: grid;grid-template-columns: 8px minmax(0, 1fr) 16px;align-items: center;- gap: var(--space-2);- margin-top: var(--space-2);+ gap: var(--space-3);+ margin-top: var(--space-3);}.job-link-dot {width: 8px;height: 8px;border-radius: 50%;- background: #5d7edf;+ background: var(--accent);}.job-link-dot--completed {@@ -485,18 +484,22 @@}.reference-used-by b {- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.reference-used-by small {margin-top: 2px;color: var(--text-muted);- font-size: var(--text-xs);+ font-size: var(--text-sm);line-height: var(--leading-snug);+ text-transform: capitalize;}.reference-used-by > p {+ margin: 0;color: var(--text-muted);font-size: var(--text-sm);line-height: var(--leading-normal);@@ -506,9 +509,9 @@.portable-path {display: flex;- gap: var(--space-2);+ gap: var(--space-3);padding: var(--space-4);- color: #8ea6f2;+ color: var(--accent-bright);}.portable-path b,@@ -517,8 +520,9 @@}.portable-path b {- color: var(--text-muted);+ color: var(--text-secondary);font-size: var(--text-sm);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}@@ -528,14 +532,14 @@overflow: hidden;white-space: nowrap;text-overflow: ellipsis;- color: var(--text-faint);- font: var(--weight-medium) var(--text-2xs) / var(--leading-snug) var(--font-mono);+ color: var(--text-muted);+ font: var(--weight-medium) var(--text-xs) / var(--leading-snug) var(--font-mono);}/* --- Empty state ----------------------------------------------------------- */.reference-empty {- height: 280px;+ min-height: 280px;display: flex;flex-direction: column;align-items: center;@@ -546,14 +550,16 @@}.reference-empty b {- margin: var(--space-3) 0 var(--space-1);- color: var(--text-secondary);+ margin: var(--space-3) 0 var(--space-2);+ color: var(--text-primary);font-size: var(--text-md);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.reference-empty p {margin: 0;+ max-width: 34ch;color: var(--text-muted);font-size: var(--text-base);line-height: var(--leading-normal);@@ -572,24 +578,25 @@}.reference-dialog {- width: min(520px, calc(100vw - var(--space-6)));+ width: min(560px, calc(100vw - var(--space-6)));padding: var(--space-6);- border: 1px solid #343b49;+ border: 1px solid var(--line-strong);border-radius: var(--radius-lg);- background: #11151c;- box-shadow: 0 24px 70px #000b;+ background: var(--panel-2);+ box-shadow: var(--shadow);}.reference-dialog h2 {margin: 0;- color: var(--text-secondary);- font-size: var(--text-lg);+ color: var(--text-primary);+ font-size: var(--text-xl);+ font-weight: var(--weight-semibold);line-height: var(--leading-tight);}.reference-dialog p {margin: var(--space-2) 0 var(--space-5);- color: var(--text-muted);+ color: var(--text-secondary);font-size: var(--text-base);line-height: var(--leading-normal);}@@ -602,8 +609,9 @@.reference-dialog label > span {display: block;margin-bottom: var(--space-1);- color: var(--text-muted);- font-size: var(--text-xs);+ color: var(--text-secondary);+ font-size: var(--text-sm);+ font-weight: var(--weight-medium);line-height: var(--leading-snug);}@@ -612,16 +620,22 @@width: 100%;height: var(--field-height);padding: 0 var(--space-3);- border: 1px solid #2c323e;+ border: 1px solid var(--line);border-radius: var(--radius-sm);outline: 0;- color: var(--text-secondary);- background: #0a0d12;+ color: var(--text-primary);+ background: var(--bg);+ font-family: var(--font-sans);font-size: var(--text-base);}+.reference-dialog input:focus,+.reference-dialog textarea:focus {+ border-color: var(--accent);+}+.reference-dialog textarea {- height: 120px;+ height: 136px;padding: var(--space-2) var(--space-3);resize: none;line-height: var(--leading-normal);@@ -635,17 +649,28 @@}.reference-dialog .primary-button:disabled {- opacity: 0.4;+ opacity: 0.5;}/* --- Responsive ------------------------------------------------------------ */@media (max-width: 1180px) {.reference-layout {- grid-template-columns: minmax(540px, 1fr) 300px;+ grid-template-columns: minmax(520px, 1fr) 328px;+ }++ .reference-grid > button {+ grid-template-columns: 116px minmax(0, 1fr);}.references-view {padding-inline: var(--space-5);}}++@media (max-width: 900px) {+ .references-heading {+ flex-direction: column;+ align-items: flex-start;+ }+}diff --git a/src/styles/timeline.css b/src/styles/timeline.cssindex 1bdbe84..db1b831 100644--- a/src/styles/timeline.css+++ b/src/styles/timeline.css@@ -1,39 +1,55 @@/* ============================================================================timeline.css — the edit view: scene/media panels, program monitor, clipinspector, and the multi-track timeline.++ Sizing contract (see tokens.css): no literal px type sizes, nothing below+ --text-2xs (12px), every interactive control at least --control-sm (36px).========================================================================== */.timeline-view {height: 100%;min-height: 0;display: grid;- grid-template-rows: minmax(360px, 1fr) 356px;+ /* 372px = toolbar 48 + ruler 36 + four 72px track rows. The grid scrolls+ vertically if a project carries more tracks than that. */+ grid-template-rows: minmax(340px, 1fr) 372px;outline: none;}.edit-panels {min-height: 0;display: grid;- grid-template-columns: 280px minmax(520px, 1fr) 320px;- border-bottom: 1px solid #282c36;+ grid-template-columns: 296px minmax(520px, 1fr) 340px;+ border-bottom: 1px solid var(--line-strong);}.scene-panel,.clip-inspector {min-width: 0;overflow: hidden;- background: #0e1117;+ background: var(--panel);}.scene-panel {- border-right: 1px solid #252934;+ border-right: 1px solid var(--line);}.clip-inspector {- border-left: 1px solid #252934;+ border-left: 1px solid var(--line);overflow-y: auto;}+/* Panel chrome ships uppercase 12px from controls.css. Inside the editor the+ strips are titles, not eyebrows, so they read as plain sentence case. */+.program-panel > .panel-chrome,+.clip-inspector > .panel-chrome {+ color: var(--text-secondary);+ font-size: var(--text-sm);+ font-weight: var(--weight-semibold);+ letter-spacing: normal;+ text-transform: none;+}+/* --- Panel tabs ------------------------------------------------------------ */.panel-tabs {@@ -49,10 +65,11 @@align-items: center;justify-content: center;gap: var(--space-2);+ min-height: var(--control-lg);border: 0;color: var(--text-muted);background: none;- font-size: var(--text-sm);+ font-size: var(--text-base);font-weight: var(--weight-semibold);line-height: var(--leading-snug);}@@ -62,8 +79,8 @@}.panel-tabs button.active {- color: #c9d3f0;- background: rgba(78, 103, 178, 0.08);+ color: var(--text-primary);+ background: var(--accent-soft);}.panel-tabs button.active::after {@@ -71,7 +88,7 @@position: absolute;inset: auto var(--space-3) -1px;height: 2px;- background: #6682df;+ background: var(--accent-bright);}/* --- Scene panel ----------------------------------------------------------- */@@ -81,44 +98,32 @@display: flex;align-items: center;justify-content: space-between;- padding: 0 var(--space-3) 0 var(--space-4);- color: var(--text-muted);- font-size: var(--text-2xs);+ padding: 0 var(--space-4);+ color: var(--text-secondary);+ font-size: var(--text-sm);font-weight: var(--weight-semibold);line-height: var(--leading-snug);- text-transform: uppercase;- letter-spacing: var(--tracking-label);-}--.scene-panel__head button {- width: var(--control-sm);- height: var(--control-sm);- display: grid;- place-items: center;- padding: 0;- border: 0;- border-radius: var(--radius-sm);- color: var(--text-muted);- background: none;-}--.scene-panel__head button:hover {- color: var(--text-secondary);- background: rgba(255, 255, 255, 0.04);}/* Panel body fills what is left after the tabs (48px) and the head (48px). */.scene-list {- height: calc(100% - 96px);+ height: calc(100% - (var(--control-lg) * 2));padding: 0 var(--space-2) var(--space-4);overflow-y: auto;}+.panel-hint {+ margin: var(--space-2) var(--space-2) var(--space-4);+ color: var(--text-muted);+ font-size: var(--text-base);+ line-height: var(--leading-normal);+}+.scene-card {width: 100%;- min-height: 76px;+ min-height: 88px;display: grid;- grid-template-columns: 96px minmax(0, 1fr);+ grid-template-columns: 104px minmax(0, 1fr);gap: var(--space-3);align-items: center;margin-bottom: var(--space-1);@@ -131,43 +136,29 @@}.scene-card:hover {- background: #141821;+ background: var(--panel-2);}.scene-card.selected {border-color: rgba(101, 129, 222, 0.48);- background: rgba(61, 84, 159, 0.15);- box-shadow: inset 2px 0 #6f8ef1;+ background: var(--accent-soft);+ box-shadow: inset 2px 0 var(--accent-bright);}+/* A neutral slot, not a fake frame: Pol Studio cannot render clip thumbnails+ yet, so this shows only real data (scene number and duration). */.scene-card__thumb {position: relative;- height: 56px;+ height: 64px;overflow: hidden;- border-radius: var(--radius-xs);- background: linear-gradient(145deg, #1d314e, #a2785d);-}--.scene-card--2 .scene-card__thumb {- background: linear-gradient(145deg, #332829, #a07962);-}--.scene-card--3 .scene-card__thumb {- background:- radial-gradient(circle at 65% 30%, #c7ad88 0 5%, transparent 6%),- linear-gradient(145deg, #222c39, #58606a);-}--.scene-card--4 .scene-card__thumb {- background: linear-gradient(165deg, #25344c 0 55%, #c9875b 56% 59%, #222 60%);-}--.scene-card__thumb::after {- content: "";- position: absolute;- inset: 0;- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);- transform: skew(-20deg);+ border: 1px solid var(--line);+ border-radius: var(--radius-sm);+ background-color: var(--panel-3);+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.03) 0 6px,+ transparent 6px 12px+ );}.scene-card__thumb i,@@ -175,15 +166,15 @@position: absolute;z-index: 2;padding: 2px var(--space-1);- border-radius: 2px;- color: #fff;- background: rgba(9, 11, 15, 0.72);- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ border-radius: var(--radius-xs);+ color: var(--text-secondary);+ background: rgba(9, 11, 15, 0.78);+ font: var(--weight-medium) var(--text-2xs) / 1.1 var(--font-mono);font-style: normal;}-.scene-card__thumb i { left: 4px; top: 4px; }-.scene-card__thumb em { right: 4px; bottom: 4px; }+.scene-card__thumb i { left: var(--space-1); top: var(--space-1); }+.scene-card__thumb em { right: var(--space-1); bottom: var(--space-1); }.scene-card > span:last-child,.scene-card b,@@ -196,22 +187,24 @@overflow: hidden;white-space: nowrap;text-overflow: ellipsis;- color: var(--text-secondary);- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.scene-card small {margin-top: var(--space-1);color: var(--text-muted);- font-size: var(--text-xs);+ font-size: var(--text-sm);line-height: var(--leading-snug);}.scene-card.selected small {- color: #9db0e4;+ color: var(--accent-bright);}+/* The on-ramp to generating: a real primary-sized action, not a hairline. */.scene-add {width: 100%;min-height: var(--control-md);@@ -219,22 +212,27 @@align-items: center;justify-content: center;gap: var(--space-2);- border: 1px dashed #2d3340;- border-radius: var(--radius-sm);- color: var(--text-muted);- background: #11141a;- font-size: var(--text-sm);+ margin-top: var(--space-2);+ padding: var(--space-2) var(--space-3);+ border: 1px dashed rgba(107, 141, 255, 0.45);+ border-radius: var(--radius-md);+ color: var(--accent-bright);+ background: var(--accent-soft);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);+ line-height: var(--leading-snug);}.scene-add:hover {- color: var(--text-secondary);- border-color: #3c4454;+ color: var(--text-primary);+ border-color: var(--accent-bright);+ background: rgba(60, 105, 239, 0.24);}/* --- Media panel ----------------------------------------------------------- */.media-grid {- height: calc(100% - 96px);+ height: calc(100% - (var(--control-lg) * 2));overflow-y: auto;display: grid;grid-template-columns: 1fr 1fr;@@ -242,18 +240,22 @@padding: 0 var(--space-2) var(--space-3);}+.media-grid .panel-hint {+ grid-column: 1 / -1;+}+.media-grid button {min-width: 0;padding: 0 0 var(--space-2);overflow: hidden;- border: 1px solid #252a34;+ border: 1px solid var(--line);border-radius: var(--radius-sm);text-align: left;- background: #11151c;+ background: var(--panel-2);}-.media-grid button:hover {- border-color: #3a4353;+.media-grid button:hover:not(:disabled) {+ border-color: var(--line-strong);}.media-grid button b,@@ -267,38 +269,48 @@.media-grid button b {margin-top: var(--space-2);- color: var(--text-secondary);+ color: var(--text-primary);font-size: var(--text-sm);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.media-grid button small {- margin-top: 2px;+ margin-top: var(--space-1);color: var(--text-muted);font-size: var(--text-xs);line-height: var(--leading-snug);}+/* Same rule as the scene thumb: a labelled placeholder, never invented art. */.media-thumb {height: var(--space-9);display: grid;place-items: center;- color: #aabbd9;- background: linear-gradient(140deg, #243751, #775a52);+ border-bottom: 1px solid var(--line);+ color: var(--text-muted);+ background-color: var(--panel-3);+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.03) 0 6px,+ transparent 6px 12px+ );}-.media-thumb--1 { background: linear-gradient(140deg, #402a35, #87634e); }-.media-thumb--2 { background: linear-gradient(140deg, #28333c, #666f75); }-.media-thumb--3 { background: #21283a; }-+/* Import is not wired up yet, so the tile is visibly disabled rather than+ pretending to be a drop target. */.media-grid .media-import {- min-height: 104px;+ min-height: 120px;display: flex;flex-direction: column;align-items: center;justify-content: center;- color: #8b99c4;+ gap: var(--space-1);+ color: var(--text-muted);border-style: dashed;+ background: none;+ opacity: 0.65;+ cursor: not-allowed;}.media-import b,@@ -313,145 +325,65 @@min-width: 0;min-height: 0;display: grid;- grid-template-rows: var(--control-lg) minmax(0, 1fr) 56px;- background: #090b0f;+ grid-template-rows: var(--control-lg) minmax(0, 1fr) 64px;+ background: var(--bg);}.program-canvas {min-height: 0;+ overflow: auto;display: flex;align-items: center;justify-content: center;padding: var(--space-4) var(--space-6);- background-color: #080a0e;- background-image: radial-gradient(#ffffff09 0.6px, transparent 0.6px);+ background-color: var(--bg);+ background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.6px, transparent 0.6px);background-size: 12px 12px;}-/* Program artwork — decorative, intentionally left at its designed proportions. */-.program-image {- position: relative;- height: min(100%, 360px);- width: min(100%, 640px);- aspect-ratio: 16 / 9;- overflow: hidden;- border: 1px solid #292d36;- background: linear-gradient(176deg, #24354c 0 48%, #d39563 49% 52%, #1b212a 54%);- box-shadow: 0 18px 50px #0008;-}--.program-image::before {- content: "";- position: absolute;- inset: 0;- background:- radial-gradient(circle at 66% 35%, #efc69c55, transparent 24%),- linear-gradient(90deg, #0a162166, transparent 45%, #8d4f3155);-}--.program-image--2 {- background: linear-gradient(165deg, #3b3939 0 42%, #ad8061 43% 46%, #1b2028 47%);-}--.program-image--3 {- background: linear-gradient(150deg, #1b2635, #697178 48%, #b07c60 49%, #20252d 55%);-}--.program-image--4 {- background: linear-gradient(178deg, #25344b 0 59%, #d9905e 60% 62%, #161b22 63%);-}--.program-image__architecture {- position: absolute;- inset: 18% 10% 0 34%;- display: flex;- align-items: flex-end;- gap: 3px;- transform: perspective(400px) rotateY(-8deg);-}--.program-image__architecture i {- flex: 1;- height: 72%;- background: linear-gradient(90deg, #171e28, #5a6170 30%, #b58162 33%, #1b222c 37%);- box-shadow: inset 1px 0 #ffffff1c;-}--.program-image__architecture i:nth-child(2) { height: 90%; }-.program-image__architecture i:nth-child(3) { height: 100%; }-.program-image__architecture i:nth-child(4) { height: 83%; }-.program-image__architecture i:nth-child(5) { height: 64%; }--.program-image__caption {- position: absolute;- z-index: 3;- left: 6%;- bottom: 10%;- padding-left: var(--space-2);- border-left: 2px solid #dad0c1;- color: #fff;- text-shadow: 0 2px 8px #000;-}--.program-image__caption span,-.program-image__caption small {- display: block;-}--.program-image__caption span {- font-size: var(--text-sm);- line-height: var(--leading-snug);- letter-spacing: 0.2em;-}--.program-image__caption small {- margin-top: var(--space-1);- color: #d6d2cb;- font-size: var(--text-2xs);- line-height: var(--leading-snug);-}--.safe-frame {- position: absolute;- inset: 6%;- border: 1px dashed #ffffff19;-}-+/* One honest monitor state for both cases: Pol Studio cannot decode footage in+ the editor yet, so it names the real project instead of drawing a stand-in. */.program-empty {width: min(100%, 640px);- min-height: 260px;+ min-height: 196px;display: flex;flex-direction: column;align-items: center;justify-content: center;- padding: var(--space-6);- border: 1px dashed #303743;+ padding: var(--space-5) var(--space-6);+ border: 1px dashed var(--line-strong);border-radius: var(--radius-md);text-align: center;- color: #8290c9;- background: linear-gradient(145deg, #101621, #0c0f14);+ color: var(--text-muted);+ background: linear-gradient(145deg, var(--panel-2), var(--panel));+}++.program-empty--footage {+ border-style: solid;}.program-empty strong {max-width: 85%;margin: var(--space-3) 0 var(--space-2);- color: var(--text-secondary);- font-size: var(--text-md);+ color: var(--text-primary);+ font-size: var(--text-lg);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}-.program-empty span {- max-width: 72%;- color: var(--text-muted);+.program-empty > span {+ max-width: 80%;+ color: var(--text-secondary);font-size: var(--text-base);line-height: var(--leading-normal);}.program-empty small {+ max-width: 80%;margin-top: var(--space-3);color: var(--text-muted);- font-size: var(--text-xs);- line-height: var(--leading-snug);+ font-size: var(--text-sm);+ line-height: var(--leading-normal);}/* --- Monitor transport ----------------------------------------------------- */@@ -460,20 +392,21 @@display: grid;grid-template-columns: 1fr auto 1fr;align-items: center;+ gap: var(--space-3);padding: 0 var(--space-4);border-top: 1px solid var(--line);- background: #0c0f14;+ background: var(--panel);}.monitor-transport strong {- color: var(--text-secondary);- font: var(--weight-medium) var(--text-xs) / 1 var(--font-mono);+ color: var(--text-primary);+ font: var(--weight-medium) var(--text-sm) / 1 var(--font-mono);}.monitor-transport > div {display: flex;align-items: center;- gap: var(--space-1);+ gap: var(--space-2);}.monitor-transport button {@@ -484,24 +417,30 @@padding: 0;border: 0;border-radius: 50%;- color: var(--text-muted);+ color: var(--text-secondary);background: none;}.monitor-transport button:hover {- background: #191e27;+ background: var(--panel-3);color: var(--text-primary);}.monitor-transport .play-button {+ width: var(--control-md);+ height: var(--control-md);color: #fff;- background: #3f62d2;+ background: var(--accent);+}++.monitor-transport .play-button:hover {+ background: var(--accent-bright);}.monitor-transport > span {justify-self: end;color: var(--text-muted);- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ font: var(--weight-medium) var(--text-xs) / 1 var(--font-mono);}/* --- Clip inspector -------------------------------------------------------- */@@ -510,7 +449,7 @@display: flex;gap: var(--space-3);align-items: center;- padding: var(--space-3);+ padding: var(--space-3) var(--space-4);border-bottom: 1px solid var(--line);}@@ -522,7 +461,7 @@place-items: center;border-radius: var(--radius-sm);color: var(--text-primary);- box-shadow: inset 0 0 0 1px #ffffff1b;+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);}.inspector-summary > div {@@ -538,32 +477,47 @@}.inspector-summary b {- color: var(--text-secondary);- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.inspector-summary small {margin-top: var(--space-1);color: var(--text-muted);- font-size: var(--text-xs);+ font-size: var(--text-sm);line-height: var(--leading-snug);text-transform: capitalize;}.inspector-section {- padding: var(--space-3);+ padding: var(--space-4);border-bottom: 1px solid var(--line);}.inspector-section h3 {- margin: 0 0 var(--space-3);+ display: flex;+ align-items: center;+ gap: var(--space-2);+ margin: 0;+ color: var(--text-primary);+ font-size: var(--text-md);+ font-weight: var(--weight-semibold);+ line-height: var(--leading-snug);+}++/* Honest badge: the fields below exist to show intent, but nothing is wired. */+.inspector-section h3 em {+ padding: 2px var(--space-2);+ border: 1px solid var(--line-strong);+ border-radius: var(--radius-pill);color: var(--text-muted);+ background: var(--panel-3);font-size: var(--text-2xs);- font-weight: var(--weight-bold);+ font-style: normal;+ font-weight: var(--weight-medium);line-height: var(--leading-snug);- text-transform: uppercase;- letter-spacing: var(--tracking-label);}.inspector-section label {@@ -574,8 +528,8 @@.inspector-section label > span {display: block;margin-bottom: var(--space-1);- color: var(--text-muted);- font-size: var(--text-xs);+ color: var(--text-secondary);+ font-size: var(--text-sm);line-height: var(--leading-snug);}@@ -583,16 +537,30 @@width: 100%;height: var(--field-height);padding: 0 var(--space-3);- border: 1px solid #262b35;+ border: 1px solid var(--line);border-radius: var(--radius-sm);outline: 0;- color: var(--text-secondary);- background: #0a0d12;- font-size: var(--text-sm);+ color: var(--text-primary);+ background: var(--bg);+ font-family: var(--font-sans);+ font-size: var(--text-base);}.inspector-section input:focus {- border-color: #536fca;+ border-color: var(--accent);+}++.inspector-section input[readonly] {+ color: var(--text-muted);+}++.inspector-section--pending {+ opacity: 0.72;+}++.inspector-section input:disabled {+ color: var(--text-faint);+ cursor: not-allowed;}.field-pair {@@ -607,19 +575,23 @@}.range-field b {- color: var(--text-secondary);+ color: var(--text-primary);font-weight: var(--weight-medium);}-/* Sliders get a real grab area rather than the old 2px hairline. */+/* Sliders get a full 36px grab area rather than the old 2px hairline. */.range-field input {width: 100%;- height: var(--space-5);- accent-color: #6784e5;+ height: var(--control-sm);+ accent-color: var(--accent-bright);+}++.range-field input:disabled {+ cursor: not-allowed;}.inspector-empty {- height: 280px;+ min-height: 280px;display: flex;flex-direction: column;align-items: center;@@ -630,13 +602,15 @@}.inspector-empty b {- margin: var(--space-3) 0 var(--space-1);- color: var(--text-secondary);+ margin: var(--space-3) 0 var(--space-2);+ color: var(--text-primary);font-size: var(--text-md);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.inspector-empty > span {+ max-width: 34ch;font-size: var(--text-base);line-height: var(--leading-normal);}@@ -645,14 +619,14 @@position: relative;width: var(--control-md);height: var(--control-md);- border: 1px solid #374156;+ border: 1px solid var(--line-strong);border-radius: var(--radius-md);}.selection-glyph span {position: absolute;inset: var(--space-2);- border: 1px dashed #6881d2;+ border: 1px dashed var(--accent-bright);}.selection-glyph i {@@ -662,14 +636,16 @@right: var(--space-1);bottom: var(--space-1);border-radius: 1px;- background: #718ce5;+ background: var(--accent-bright);}/* --- Timeline toolbar ------------------------------------------------------ */.pro-timeline {min-height: 0;- background: #0b0e13;+ display: grid;+ grid-template-rows: var(--control-lg) minmax(0, 1fr);+ background: var(--panel);}.timeline-toolbar {@@ -677,28 +653,30 @@display: flex;align-items: center;justify-content: space-between;+ gap: var(--space-4);padding: 0 var(--space-3) 0 var(--space-4);- border-bottom: 1px solid #292d37;+ border-bottom: 1px solid var(--line);}.timeline-toolbar > div:first-child {display: flex;- align-items: center;+ align-items: baseline;gap: var(--space-4);}.timeline-toolbar strong {- font-size: var(--text-sm);+ color: var(--text-primary);+ font-size: var(--text-base);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.timeline-toolbar span {- color: #a3b3e0;- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ color: var(--text-secondary);+ font: var(--weight-medium) var(--text-xs) / 1 var(--font-mono);}.timeline-tools {- height: 100%;display: flex;align-items: center;gap: var(--space-1);@@ -706,71 +684,71 @@.timeline-tools button {min-height: var(--control-sm);+ min-width: var(--control-sm);display: flex;align-items: center;- gap: var(--space-1);- padding: 0 var(--space-2);+ justify-content: center;+ gap: var(--space-2);+ padding: 0 var(--space-3);border: 1px solid transparent;- border-radius: var(--radius-xs);- color: var(--text-muted);+ border-radius: var(--radius-sm);+ color: var(--text-secondary);background: none;- font-size: var(--text-xs);+ font-size: var(--text-sm);+ font-weight: var(--weight-medium);+ line-height: var(--leading-snug);}.timeline-tools button:hover:not(:disabled) {- color: var(--text-secondary);- background: #171b23;+ color: var(--text-primary);+ border-color: var(--line);+ background: var(--panel-3);}.timeline-tools button:disabled {- opacity: 0.4;-}--.timeline-tools i {- width: 1px;- height: 20px;- margin: 0 var(--space-1);- background: #272c35;-}--.timeline-tools input {- width: 96px;- height: var(--space-5);- accent-color: #5e7ddd;+ color: var(--text-faint);+ opacity: 0.55;+ cursor: not-allowed;}/* --- Track grid ------------------------------------------------------------ */.timeline-grid {+ --track-column: 224px;position: relative;display: grid;- grid-template-columns: 200px minmax(0, 1fr);- grid-template-rows: 34px repeat(4, 68px);- height: 306px;- overflow: hidden;+ grid-template-columns: var(--track-column) minmax(0, 1fr);+ grid-template-rows: 36px;+ grid-auto-rows: 72px;+ height: 100%;+ overflow-x: hidden;+ overflow-y: auto;}.track-corner {display: flex;align-items: center;padding-left: var(--space-4);- border-right: 1px solid #292e38;- border-bottom: 1px solid #292e38;- color: var(--text-muted);- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ border-right: 1px solid var(--line);+ border-bottom: 1px solid var(--line);+ color: var(--text-secondary);+ font-size: var(--text-xs);+ font-weight: var(--weight-semibold);+ line-height: var(--leading-snug);}.time-ruler {position: relative;- border-bottom: 1px solid #292e38;+ border-bottom: 1px solid var(--line);cursor: crosshair;- background: #0c0f14;+ background: var(--panel-2);}.time-ruler > span {position: absolute;top: 0;height: 100%;+ padding-left: var(--space-1);color: var(--text-muted);font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);}@@ -778,21 +756,22 @@.time-ruler > span i {display: block;width: 1px;- height: 8px;- margin-bottom: var(--space-1);- background: #545c69;+ height: 10px;+ margin-left: calc(var(--space-1) * -1);+ margin-bottom: var(--space-2);+ background: var(--text-faint);}.track-head {min-width: 0;display: grid;- grid-template-columns: 32px minmax(0, 1fr) 32px 32px;+ grid-template-columns: 32px minmax(0, 1fr) var(--control-sm) var(--control-sm);align-items: center;gap: var(--space-1);padding: 0 var(--space-2);- border-right: 1px solid #292e38;- border-bottom: 1px solid #222630;- background: #0e1117;+ border-right: 1px solid var(--line);+ border-bottom: 1px solid var(--line);+ background: var(--panel);}.track-kind {@@ -800,8 +779,8 @@height: 32px;display: grid;place-items: center;- border-radius: var(--radius-xs);- color: #8ea6f2;+ border-radius: var(--radius-sm);+ color: var(--accent-bright);background: #27365a;}@@ -813,53 +792,53 @@.track-head b,.track-head small {display: block;-}--.track-head b {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;- color: var(--text-secondary);+}++.track-head b {+ color: var(--text-primary);font-size: var(--text-sm);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.track-head small {margin-top: 2px;- color: var(--text-faint);- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ color: var(--text-muted);+ font-size: var(--text-xs);+ line-height: var(--leading-snug);}-/* 32px, not 36px: two icon toggles share a fixed-width track header column and- the grid cannot grow without eating the track name. */.track-head button {- width: 32px;- height: 32px;+ width: var(--control-sm);+ height: var(--control-sm);display: grid;place-items: center;padding: 0;border: 0;- border-radius: var(--radius-xs);+ border-radius: var(--radius-sm);color: var(--text-muted);background: none;}.track-head button:hover,.track-head button.active {- color: var(--text-secondary);- background: #242a35;+ color: var(--text-primary);+ background: var(--panel-3);}.track-head button.active {- color: #8ba3ef;+ color: var(--accent-bright);}.track-lane {position: relative;overflow: hidden;- border-bottom: 1px solid #222630;- background-color: #0a0d12;- background-image: linear-gradient(90deg, #ffffff09 1px, transparent 1px);+ border-bottom: 1px solid var(--line);+ background-color: var(--bg);+ background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);background-size: 14.7% 100%;}@@ -871,28 +850,28 @@.timeline-clip {position: absolute;- top: 6px;+ top: var(--space-2);height: 56px;- min-width: 28px;+ min-width: 32px;overflow: hidden;padding: 0;border: 1px solid color-mix(in srgb, var(--clip-color, #516fba) 70%, white 10%);- border-radius: var(--radius-xs);+ border-radius: var(--radius-sm);text-align: left;- color: #dce2ed;+ color: var(--text-primary);background: linear-gradient(180deg,color-mix(in srgb, var(--clip-color, #516fba) 72%, #27303f),color-mix(in srgb, var(--clip-color, #516fba) 48%, #11151d));- box-shadow: inset 0 1px #ffffff12;+ box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);}.timeline-clip::before {content: "";position: absolute;inset: 0;- background: repeating-linear-gradient(90deg, #ffffff0a 0 18px, transparent 18px 21px);+ background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 18px, transparent 18px 21px);}.timeline-clip--audio {@@ -909,7 +888,7 @@.timeline-clip.selected {border-color: #bdcaff;- box-shadow: 0 0 0 2px #6f8df0, inset 0 1px #ffffff2b;+ box-shadow: 0 0 0 2px var(--accent-bright), inset 0 1px rgba(255, 255, 255, 0.17);z-index: 3;}@@ -929,57 +908,63 @@}.clip-text b {- font-size: var(--text-xs);+ color: var(--text-primary);+ font-size: var(--text-sm);+ font-weight: var(--weight-semibold);line-height: var(--leading-snug);}.clip-text small {margin-top: var(--space-1);- color: #c1cad9aa;- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);+ color: var(--text-primary);+ opacity: 0.78;+ font: var(--weight-medium) var(--text-2xs) / 1.1 var(--font-mono);}.timeline-playhead {position: absolute;z-index: 9;- top: 22px;+ top: 24px;bottom: 0;width: 1px;- background: #ff705f;+ background: var(--danger);pointer-events: none;}.timeline-playhead span {position: absolute;- width: 8px;- height: 8px;+ width: 9px;+ height: 9px;left: -4px;top: -1px;border-radius: 2px 2px 5px 5px;- background: #ff705f;+ background: var(--danger);}.timeline-playhead i {position: absolute;left: -3px;- top: 9px;+ top: 10px;width: 7px;height: 1px;- background: #ff705f55;+ background: var(--danger);+ opacity: 0.4;}/* --- Responsive ------------------------------------------------------------ */@media (max-width: 1180px) {.edit-panels {- grid-template-columns: 248px minmax(460px, 1fr) 288px;+ grid-template-columns: 264px minmax(460px, 1fr) 312px;}.scene-card {- grid-template-columns: 80px minmax(0, 1fr);+ grid-template-columns: 88px minmax(0, 1fr);}+ /* Keep --track-column and the playhead offset in lockstep: TimelineView+ positions the playhead with calc(var(--track-column) + …). */.timeline-grid {- grid-template-columns: 176px minmax(0, 1fr);+ --track-column: 200px;}}