.preview-switch { display:flex; gap:5px; padding:4px; border:1px solid var(--line); border-radius:10px; background:#081612; }
.preview-switch button { border:0; background:transparent; color:var(--muted); border-radius:7px; padding:7px 10px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.preview-switch button.active { background:#17342a; color:var(--green); }
.video-stage img, .video-stage video { max-width:100%; max-height:720px; display:none; }
.video-stage.source-mode:not(.empty) img, .video-stage.keyed-mode:not(.empty) video { display:none; }
.video-stage.source-mode:not(.empty) video { display:block; width:100%; max-height:560px; background:#000; }
.video-stage.keyed-mode:not(.empty) img { display:block; }
.trim-editor { margin-top:14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:#091713; }
.trim-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:11px; }
.trim-head > div:first-child { display:flex; align-items:baseline; gap:10px; }
.trim-head span { color:var(--green); font-size:12px; font-variant-numeric:tabular-nums; }
.trim-actions { display:flex; gap:7px; flex-wrap:wrap; }
.trim-track { height:104px; position:relative; border-radius:10px; overflow:hidden; background:#030a08; touch-action:none; }
.trim-thumbnails { position:absolute; inset:0; display:grid; grid-auto-flow:column; grid-auto-columns:1fr; }
.trim-thumbnails img { width:100%; height:100%; object-fit:cover; border-right:1px solid rgba(255,255,255,.12); }
.trim-shade { position:absolute; top:0; bottom:0; background:rgba(2,8,6,.72); pointer-events:none; z-index:2; }
.trim-shade.left { left:0; }
.trim-shade.right { right:0; }
.trim-selection { position:absolute; top:0; bottom:0; border-top:3px solid var(--green); border-bottom:3px solid var(--green); pointer-events:none; z-index:3; }
.trim-grip { position:absolute; top:0; bottom:0; width:12px; background:var(--green); }
.trim-grip::after { content:'•\A•\A•'; white-space:pre; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#06311f; font-size:10px; line-height:7px; }
.trim-grip.left { left:0; border-radius:5px 0 0 5px; }
.trim-grip.right { right:0; border-radius:0 5px 5px 0; }
.trim-playhead { position:absolute; top:0; bottom:0; width:2px; background:#fff; z-index:5; pointer-events:none; box-shadow:0 0 0 1px rgba(0,0,0,.35); }
.trim-playhead::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); border-left:5px solid transparent; border-right:5px solid transparent; border-top:8px solid #fff; }
.trim-range { position:absolute; inset:0; width:100%; height:100%; margin:0; appearance:none; -webkit-appearance:none; background:transparent; pointer-events:none; z-index:4; }
.trim-range::-webkit-slider-runnable-track { height:100%; background:transparent; }
.trim-range::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:104px; background:transparent; cursor:ew-resize; pointer-events:auto; }
.trim-range::-moz-range-track { height:100%; background:transparent; }
.trim-range::-moz-range-thumb { width:22px; height:104px; border:0; background:transparent; cursor:ew-resize; pointer-events:auto; }
.trim-scale { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; margin-top:6px; }
.trim-help { color:var(--muted); font-size:11px; line-height:1.55; margin:8px 0 0; }
@media (max-width:850px) {
  .trim-head { align-items:flex-start; flex-direction:column; }
  .trim-track { height:82px; }
  .trim-range::-webkit-slider-thumb { height:82px; }
}
