/* Video-Studio (Mini-VSL-Editor, public/js/app/views/video-editor.js): dunkle Arbeitsfläche wie moderne KI-Video-
   Editoren – Werkzeug-Leiste links, Vorschau in der Mitte, Einstellungen rechts, Zeitleiste unten. Dialoge der App
   (Modal, Rückfragen) bleiben hell. */
.main > .vs-app { margin: -28px -34px -60px; }
@media (max-width: 860px) { .main > .vs-app { margin: -20px -16px -60px; } }
.vs-app {
  --vs-bg: #101013; --vs-panel: #19191e; --vs-box: #222229; --vs-box-2: #2b2b33; --vs-line: #2e2e36; --vs-line-2: #3a3a44;
  --vs-ink: #ececf0; --vs-ink-2: #b8b8c2; --vs-muted: #8a8a96; --vs-accent: #f5e600; --vs-blue: #5b7cff; --vs-green: #45d483; --vs-red: #ff6b6b; --vs-warn: #ffb547;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100vh; min-height: 620px; background: var(--vs-bg); color: var(--vs-ink); font-size: 13px; overflow: hidden;
}
.vs-app .muted, .vs-app .tiny.muted { color: var(--vs-muted); }
.vs-app .overlay, .vs-app .modal { color: var(--ink); }
.vs-app svg { width: 15px; height: 15px; flex: none; }

/* Kopf */
.vs-top { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--vs-line); background: var(--vs-panel); }
.vs-title { display: grid; gap: 1px; min-width: 0; }
.vs-title-in { border: 1px solid transparent; background: transparent; color: var(--vs-ink); font-family: var(--display); font-size: 18px; padding: 2px 6px; border-radius: 8px; width: 100%; max-width: 560px; }
.vs-title-in:hover:not(:disabled), .vs-title-in:focus { border-color: var(--vs-line-2); background: var(--vs-box); outline: none; }
.vs-title .tiny { padding-left: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-notes { display: grid; }
.vs-busy, .vs-err, .vs-note { display: flex; gap: 10px; align-items: center; padding: 8px 14px; font-size: 12.5px; border-bottom: 1px solid var(--vs-line); }
.vs-busy { background: #1d2340; color: #dfe5ff; }
.vs-err { background: #3a1d22; color: #ffc9c9; }
.vs-note { background: #2d2a15; color: #fff3b0; }

/* Knöpfe */
.vs-btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border: 1px solid var(--vs-line-2); background: var(--vs-box); color: var(--vs-ink); font: inherit; font-weight: 650; font-size: 13px; border-radius: 9px; padding: 7px 12px; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; }
.vs-btn:hover:not(:disabled) { background: var(--vs-box-2); border-color: #4a4a56; }
.vs-btn.primary { background: #fff; color: #111; border-color: #fff; }
.vs-btn.primary:hover:not(:disabled) { background: #e6e6ea; }
.vs-btn.ghost { background: transparent; border-color: transparent; color: var(--vs-ink-2); }
.vs-btn.ghost:hover:not(:disabled) { background: var(--vs-box); color: var(--vs-ink); }
.vs-btn.sm { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.vs-btn:disabled, .vs-ib:disabled, .vs-chip:disabled, .vs-link:disabled { opacity: 0.45; cursor: default; }
.vs-ib { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--vs-ink-2); cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; flex: none; }
.vs-ib:hover:not(:disabled) { background: var(--vs-box-2); color: var(--vs-ink); }
.vs-x { border: 0; background: transparent; color: var(--vs-muted); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-grid; place-items: center; }
.vs-x:hover { color: var(--vs-ink); background: var(--vs-box-2); }
.vs-x svg { width: 13px; height: 13px; }
.vs-link { border: 0; background: none; color: var(--vs-blue); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; padding: 0; }
.vs-link:hover:not(:disabled) { text-decoration: underline; }
.vs-app .nowrap { white-space: nowrap; }
.vs-sep { width: 1px; height: 18px; background: var(--vs-line-2); margin: 0 4px; }
.vs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-chip { display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--vs-line-2); background: var(--vs-box); color: var(--vs-ink); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.vs-chip:hover:not(:disabled) { border-color: #5a5a66; }
.vs-chip.on { background: #22382c; border-color: #2f6b47; color: #9ff0bf; cursor: default; }
.vs-chip svg { width: 12px; height: 12px; }
.vs-check { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--vs-ink-2); cursor: pointer; }
.vs-segs, .vs-seg { display: inline-flex; gap: 2px; background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 9px; padding: 2px; flex-wrap: wrap; }
.vs-segs button, .vs-seg button { border: 0; background: transparent; color: var(--vs-ink-2); font: inherit; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.vs-segs button.on, .vs-seg button.on { background: var(--vs-box-2); color: var(--vs-ink); }

/* Eingaben */
.vs-in { width: 100%; box-sizing: border-box; background: var(--vs-box); border: 1px solid var(--vs-line-2); color: var(--vs-ink); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 13px; line-height: 1.4; resize: vertical; }
.vs-in:focus, .vs-in.on { outline: none; border-color: var(--vs-blue); box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.18); }
.vs-in::placeholder { color: #6c6c78; }
.vs-app select.vs-in { padding: 6px 8px; }
.vs-app input[type="range"] { accent-color: #fff; width: 100%; }
.vs-app .switch { color: var(--vs-ink-2); }

/* Arbeitsfläche */
.vs-main { display: grid; grid-template-columns: 64px minmax(250px, 300px) minmax(320px, 1fr) minmax(260px, 310px); min-height: 0; }
.vs-main > * { min-width: 0; min-height: 0; }
.vs-rail { display: grid; align-content: start; gap: 4px; padding: 10px 6px; border-right: 1px solid var(--vs-line); background: var(--vs-panel); }
.vs-rail-b { position: relative; display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: var(--vs-muted); padding: 8px 2px 6px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; }
.vs-rail-b svg { width: 19px; height: 19px; }
.vs-rail-b:hover { color: var(--vs-ink); background: var(--vs-box); }
.vs-rail-b.on { color: var(--vs-ink); background: var(--vs-box-2); }
.vs-dotn { position: absolute; top: 6px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--vs-warn); box-shadow: 0 0 0 2px var(--vs-panel); }
.vs-dotn.blue { background: var(--vs-blue); }
.vs-side { border-right: 1px solid var(--vs-line); background: var(--vs-panel); display: flex; flex-direction: column; overflow: hidden; }
.vs-right { border-left: 1px solid var(--vs-line); background: var(--vs-panel); padding: 12px; overflow-y: auto; overflow-x: hidden; display: grid; align-content: start; gap: 10px; }
.vs-right > * { min-width: 0; }
.vs-back { justify-self: start; display: inline-flex; gap: 5px; align-items: center; border: 0; background: none; color: var(--vs-muted); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.vs-back:hover { color: var(--vs-ink); }
.vs-back svg { width: 13px; height: 13px; }
.vs-center { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px; overflow: hidden; }

/* Werkzeug-Bereich links */
.vs-pane { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vs-pane-h { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.vs-pane-h b { font-size: 14px; }
.vs-pane-b { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: grid; align-content: start; gap: 8px; }
.vs-pane-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--vs-line); }
.vs-pane-f > .tiny { flex: 1 1 100%; line-height: 1.4; }
.vs-pane-f > .vs-btn { flex: 1; }
.vs-lab { font-size: 11.5px; font-weight: 700; color: var(--vs-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.vs-lab.row { display: flex; align-items: center; text-transform: none; letter-spacing: 0; font-size: 12px; }
.vs-box { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 9px 10px; line-height: 1.45; }
.vs-box.dim { color: var(--vs-ink-2); }
.vs-box svg { vertical-align: -2px; margin-right: 4px; }
.vs-app mark { background: rgba(245, 230, 0, 0.22); color: inherit; border-radius: 3px; padding: 0 2px; }
.vs-app del { color: var(--vs-muted); text-decoration: line-through; }
.vs-app ins { text-decoration: none; background: rgba(91, 124, 255, 0.28); border-radius: 3px; padding: 0 2px; }

/* Skript */
.vs-lines { gap: 2px; }
.vs-line { border: 1px solid transparent; border-radius: 10px; padding: 7px 8px; cursor: pointer; display: grid; gap: 3px; }
.vs-line:hover { background: var(--vs-box); }
.vs-line.on { background: var(--vs-box); border-color: var(--vs-line-2); }
.vs-line.changed { background: #1d2033; border-color: #33407a; }
.vs-line.busy { opacity: 0.8; }
.vs-line-h { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--vs-muted); }
.vs-line-t { font-feature-settings: "tnum"; color: var(--vs-muted); font-size: 11.5px; }
.vs-line-r { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-line-st { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--vs-ink-2); }
.vs-line-st.warn { color: var(--vs-warn); }
.vs-line-say { font-size: 13.5px; line-height: 1.45; color: var(--vs-ink); cursor: text; }
.vs-line-in { width: 100%; box-sizing: border-box; background: #0c0c0f; border: 1px solid var(--vs-blue); border-radius: 8px; color: var(--vs-ink); font: inherit; font-size: 13.5px; line-height: 1.45; padding: 6px 8px; resize: none; overflow: hidden; outline: none; }
.vs-grip { color: #5c5c68; cursor: grab; display: inline-grid; }
.vs-grip svg { width: 12px; height: 12px; }
.vs-drop > .vs-line { border-color: var(--vs-blue); }
.vs-ins { display: flex; gap: 4px; justify-content: center; height: 6px; overflow: visible; opacity: 0; transition: opacity 0.12s; position: relative; z-index: 1; }
.vs-ins:hover, .vs-lines:hover .vs-ins:focus-within { opacity: 1; }
.vs-ins button { transform: translateY(-50%); border: 1px solid var(--vs-line-2); background: var(--vs-box-2); color: var(--vs-ink-2); border-radius: 99px; padding: 2px 8px; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.vs-ins button:hover:not(:disabled) { color: var(--vs-ink); border-color: var(--vs-blue); }
.vs-ins svg { width: 11px; height: 11px; }

/* Hooks */
.vs-idea { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; text-align: left; background: var(--vs-box); border: 1px solid var(--vs-line); color: var(--vs-ink); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 12.5px; cursor: pointer; line-height: 1.4; }
.vs-idea:hover:not(:disabled) { border-color: #4a4a56; }
.vs-idea.on { border-color: var(--vs-blue); box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.18); }
.vs-idea-k { display: inline-flex; gap: 4px; align-items: center; color: var(--vs-muted); font-size: 11px; font-weight: 650; white-space: nowrap; padding-top: 1px; }
.vs-idea-k svg { width: 12px; height: 12px; }

/* Untertitel-Vorlagen */
.vs-swatches { display: flex; gap: 8px; }
.vs-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--vs-panel); box-shadow: 0 0 0 1px var(--vs-line-2); cursor: pointer; }
.vs-sw.on { box-shadow: 0 0 0 2px #fff; }
.vs-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs-tpl { display: grid; gap: 4px; border: 1px solid var(--vs-line); background: transparent; color: var(--vs-ink-2); border-radius: 10px; padding: 4px 4px 6px; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 650; }
.vs-tpl:hover:not(:disabled) { border-color: #4a4a56; }
.vs-tpl.on { border-color: #fff; color: var(--vs-ink); }
.vs-tpl-v { position: relative; height: 70px; border-radius: 7px; background: #000; overflow: hidden; container-type: inline-size; }
.vs-tpl-v .vs-cap { left: 4%; right: 4%; }

/* Musik, Sounds */
.vs-trk-row, .vs-sfx-it { display: flex; gap: 6px; align-items: center; background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 5px 6px 5px 4px; }
.vs-trk-row.on { border-color: #2f6b47; }
.vs-sfx { display: grid; gap: 6px; }
.vs-app .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* B-Roll */
.vs-refs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vs-ref { width: 34px; height: 46px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; cursor: pointer; opacity: 0.6; }
.vs-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-ref.on { border-color: var(--vs-blue); opacity: 1; }
.vs-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vs-img { display: grid; gap: 3px; border: 0; background: transparent; padding: 0; color: var(--vs-ink-2); font: inherit; font-size: 10.5px; cursor: pointer; text-align: left; }
.vs-img img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 8px; border: 1px solid var(--vs-line); display: block; }
.vs-img:hover:not(:disabled) img { border-color: #fff; }
.vs-img span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Prüfung */
.vs-flag { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; cursor: pointer; line-height: 1.4; }
.vs-flag:hover { border-color: #4a4a56; }
.vs-flag .row { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.vs-flag .vs-btn { margin-left: auto; }
.vs-tag { white-space: nowrap; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: var(--vs-box-2); color: var(--vs-ink-2); }
.vs-tag.warn { background: #3d2e12; color: #ffc76b; }
.vs-tag.err { background: #3d1a1e; color: #ff9a9a; }
.vs-tag.tip { background: #1f2a44; color: #a9bcff; }
.vs-more { border: 1px solid var(--vs-line); border-radius: 10px; background: var(--vs-box); }
.vs-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 650; color: var(--vs-ink-2); padding: 8px 10px; display: flex; gap: 6px; align-items: center; }
.vs-more[open] > summary { border-bottom: 1px solid var(--vs-line); }
.vs-more-b { padding: 10px; display: grid; gap: 10px; }
/* Copy-Check (ScriptPanel aus video-ai.js) im dunklen Studio: Karten hell lassen, damit seine Farben stimmen */
.vs-light { background: var(--bg, #f6f6f2); color: var(--ink); border-radius: 0 0 10px 10px; }
.vs-light .muted { color: var(--muted); }

/* Vorschau */
.vs-player { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; flex: 1; min-height: 0; }
.vs-stagebox { position: relative; flex: 1 1 auto; height: 0; min-height: 220px; max-height: 760px; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; overflow: hidden; container-type: inline-size; cursor: pointer; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); max-width: 100%; }
.vs-stagebox > video, .vs-stagebox > .vs-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-stagebox.exp > video { object-fit: contain; cursor: default; }
.vs-stagebox > video.hide { display: none; }
.vs-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #777; font-size: 13px; }
.vs-empty svg { width: 30px; height: 30px; }
.vs-broll { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vs-broll img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vs-broll.cover .fg { object-fit: cover; }
.vs-broll.contain .bg { object-fit: cover; filter: blur(14px) brightness(0.55); transform: scale(1.12); }
.vs-broll.contain .fg { object-fit: contain; }
.vs-guide { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, 0.7); pointer-events: none; z-index: 3; }
.vs-guide span { position: absolute; right: 6px; top: -18px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 10.5px; border-radius: 5px; padding: 1px 6px; }
.vs-stagebox .ve-kicker, .vs-stagebox .ve-ai, .vs-stagebox .ve-badge { z-index: 2; }
.vs-stagebox .vthumb-play { z-index: 4; }
.vs-ctl { display: flex; gap: 8px; align-items: center; }
.vs-time, .vs-tl-time { font-feature-settings: "tnum"; color: var(--vs-ink-2); font-size: 12px; }
.vs-under { text-align: center; max-width: 460px; display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* Untertitel (Vorschau, Gegenstück zu lib/vsl-render.js tplWordsSvg) */
.vs-cap { position: absolute; left: 6%; right: 6%; text-align: center; text-wrap: balance; transform: translateY(-50%); font-family: var(--display); color: var(--base, #fff); line-height: 1.12; z-index: 2; cursor: grab; user-select: none; }
.vs-cap.b-wort { left: 5%; right: 5%; }
.vs-cap.b-zeilen.boxed { line-height: 1.55; }
.vs-cap.up { text-transform: uppercase; }
.vs-cap.stroke { -webkit-text-stroke: calc(var(--sw) * 1em) #000; paint-order: stroke fill; }
.vs-cap.shadow { text-shadow: 0 0.06em 0.14em rgba(0, 0, 0, 0.8); }
.vs-cap.glow { text-shadow: 0 0 0.12em var(--accent), 0 0 0.32em var(--accent), 0 0 0.04em var(--accent); }
.vs-cap .acc { color: var(--accent); }
.vs-cap .wbox { background: var(--accent); color: var(--ink, #111); border-radius: 0.14em; padding: 0 0.1em; -webkit-text-stroke: 0; }
.vs-cap .hid { visibility: hidden; }
.vs-cap .ln { background: var(--box); padding: 0.16em 0.32em; border-radius: 0.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vs-cap.pop { animation: vs-pop 0.1s ease-out; }
.vs-cap.drag { outline: 1.5px dashed rgba(255, 255, 255, 0.75); outline-offset: 4px; border-radius: 6px; }
@keyframes vs-pop { from { transform: translateY(-50%) scale(0.84); } to { transform: translateY(-50%) scale(1); } }

/* Takes vergleichen */
.vs-cmp { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; flex: 1; min-height: 0; }
.vs-cmp-row { display: flex; gap: 14px; justify-content: center; flex: 1; min-height: 0; width: 100%; }
.vs-cmp-cell { display: flex; flex-direction: column; gap: 6px; align-items: center; min-height: 0; flex: 0 1 46%; }
.vs-cmp-l { font-size: 12px; font-weight: 700; color: var(--vs-ink-2); }
.vs-cmp-v { flex: 1 1 auto; height: 0; min-height: 160px; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; }
.vs-cmp-v video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Einstellungen rechts */
.vs-insp { display: grid; gap: 10px; }
.vs-insp > *, .vs-f > *, .vs-takes > *, .vs-more-b > * { min-width: 0; }
.vs-insp-h { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.vs-insp-h b { font-size: 14px; }
.vs-f { display: grid; gap: 5px; }
.vs-f > span:first-child { font-size: 11.5px; font-weight: 700; color: var(--vs-muted); }
.vs-val { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 9px; padding: 6px 9px; font-feature-settings: "tnum"; }
.vs-slider { display: flex; gap: 8px; align-items: center; background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 9px; padding: 5px 9px; }
.vs-slider span { min-width: 48px; text-align: right; font-feature-settings: "tnum"; font-size: 12px; color: var(--vs-ink-2); }
.vs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs-stats > div { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 7px 9px; display: grid; gap: 2px; }
.vs-stats .tiny { display: inline-flex; gap: 4px; align-items: center; }
.vs-stats svg { width: 12px; height: 12px; }
.vs-stats b { font-size: 15px; font-feature-settings: "tnum"; }
.vs-takes { display: grid; gap: 5px; }
.vs-take { display: flex; gap: 8px; align-items: center; background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 9px; padding: 6px 8px; }
.vs-take.on { border-color: #fff; }
.vs-take.cmp { border-color: var(--vs-blue); }
.vs-take-b { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--vs-ink); font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 0; white-space: nowrap; }
.vs-take-b:disabled { cursor: default; }
.vs-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--vs-muted); display: inline-block; }
.vs-broll-th { display: flex; gap: 8px; align-items: center; background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 6px; }
.vs-broll-th img { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; }
.vs-tplrow { display: flex; gap: 8px; align-items: center; }
.vs-tplrow img, .vs-tpl-ph { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--vs-box-2); display: grid; place-items: center; color: var(--vs-muted); flex: none; }

/* Zeitleiste */
.vs-tl { border-top: 1px solid var(--vs-line); background: var(--vs-panel); padding: 6px 12px 8px; min-width: 0; display: flex; flex-direction: column; max-height: 40vh; }
.vs-tl-bar { display: flex; gap: 4px; align-items: center; padding-bottom: 4px; }
.vs-tl-scroll { overflow: auto; padding-bottom: 4px; min-height: 0; }
.vs-tl-in { position: relative; }
.vs-ruler { position: relative; height: 20px; cursor: ew-resize; border-bottom: 1px solid var(--vs-line); }
.vs-tick { position: absolute; top: 3px; font-size: 10px; color: var(--vs-muted); transform: translateX(2px); font-feature-settings: "tnum"; }
.vs-tick::before { content: ""; position: absolute; left: -2px; top: -3px; height: 6px; border-left: 1px solid var(--vs-line-2); }
.vs-trk { display: flex; align-items: stretch; min-height: 30px; border-bottom: 1px solid #202027; }
.vs-trk.video { min-height: 46px; }
.vs-trk-l { position: sticky; left: 0; z-index: 3; width: 92px; flex: none; display: flex; gap: 6px; align-items: center; color: var(--vs-muted); font-size: 11.5px; font-weight: 650; background: var(--vs-panel); padding-right: 6px; }
.vs-trk-l svg { width: 13px; height: 13px; }
.vs-trk-b { position: relative; flex: none; cursor: pointer; }
.vs-it { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: var(--vs-box-2); border: 1px solid var(--vs-line-2); color: var(--vs-ink); font-size: 11px; padding: 0 6px; display: flex; gap: 5px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; box-sizing: border-box; }
.vs-it:hover { border-color: #5a5a66; }
.vs-it.on { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.vs-it.vid { background-color: #000; background-size: auto 100%; background-repeat: repeat-x; padding: 0; }
.vs-it.vid.still { opacity: 0.6; }
.vs-it.vid.stale::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 181, 71, 0.28) 0 6px, transparent 6px 12px); }
.vs-it.vid.busy::after { content: ""; position: absolute; inset: 0; background: rgba(16, 16, 19, 0.55); }
.vs-it.vid .spin { position: absolute; right: 6px; top: 50%; margin-top: -7px; z-index: 1; }
.vs-it-n { position: relative; z-index: 1; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 5px; margin: 3px; align-self: flex-start; }
.vs-it.take { background: #1f2a44; border-color: #34477a; color: #c9d4ff; }
.vs-it.take svg { width: 11px; height: 11px; }
.vs-it.dlg { background: #26262e; }
.vs-it.cap { background: #2a2540; border-color: #463b78; color: #d8cfff; }
.vs-it.br { background-color: #000; background-size: cover; background-position: center; padding: 0; cursor: grab; }
.vs-it.br .vs-it-n { margin: 2px; }
.vs-grab { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35)); }
.vs-it.mus { background: #2d2715; border-color: #5c4d1e; color: #ffe39a; }
.vs-it.fx { background: #172b25; border-color: #2f5c4c; color: #a8f0d6; cursor: grab; padding: 0 5px; }
.vs-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--vs-accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); pointer-events: none; z-index: 4; }
.vs-head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--vs-accent); }

/* Dialoge im Studio */
.vs-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; z-index: 60; padding: 20px; }
.vs-overlay.clear { background: transparent; place-items: start; }
.vs-dlg { width: min(560px, 100%); max-height: calc(100vh - 60px); overflow: auto; background: var(--vs-panel); color: var(--vs-ink); border: 1px solid var(--vs-line-2); border-radius: 14px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.vs-dlg-h { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.vs-dlg-list { display: grid; gap: 8px; }
.vs-dlg-it { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.vs-dlg-it .tiny { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.vs-dlg-diff { font-size: 13.5px; line-height: 1.5; }
.vs-dlg-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vs-dlg-sum > div { background: var(--vs-box); border: 1px solid var(--vs-line); border-radius: 10px; padding: 7px 10px; display: grid; gap: 2px; }
.vs-dlg-sum b { font-size: 16px; }
.vs-dlg-f { display: flex; gap: 8px; justify-content: flex-end; }
.vs-menu { position: fixed; min-width: 210px; background: var(--vs-box); border: 1px solid var(--vs-line-2); border-radius: 10px; padding: 4px; display: grid; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.vs-menu button { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; color: var(--vs-ink); font: inherit; font-size: 12.5px; padding: 7px 9px; border-radius: 7px; cursor: pointer; text-align: left; }
.vs-menu button:hover:not(:disabled) { background: var(--vs-box-2); }
.vs-menu button.danger { color: #ff9a9a; }
.vs-menu button:disabled { opacity: 0.45; cursor: default; }

/* schmalere Fenster */
@media (max-width: 1280px) {
  .vs-main { grid-template-columns: 58px minmax(230px, 270px) minmax(300px, 1fr) minmax(240px, 280px); }
}
@media (max-width: 1080px) {
  .vs-main { grid-template-columns: 58px minmax(220px, 260px) 1fr; }
  .vs-right { grid-column: 2 / -1; max-height: none; min-height: 0; border-left: 0; border-top: 1px solid var(--vs-line); }
}
@media (max-width: 760px) {
  .vs-app { height: auto; overflow: visible; }
  .vs-stagebox { flex: none; }
  .vs-main { grid-template-columns: 1fr; }
  .vs-rail { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--vs-line); }
  .vs-side, .vs-right { max-height: none; min-height: 0; border: 0; }
  .vs-center { order: -1; }
  .vs-stagebox { height: auto; width: min(100%, 340px); min-height: 0; }
}
