/* Video editor timeline (features/vedit_timeline.js). The names column is 170px wide: NAMEW in that file. */
.ve .ve-timeline { position: relative; grid-template-rows: auto auto minmax(0, 1fr); padding-top: 9px; }
.ve-timeline [hidden], .ve-transport [hidden] { display: none !important; }
.ve .ve-timeline.vt-sized { max-height: max(160px, calc(100vh - 560px)); }
.vt-grip { position: absolute; left: 0; right: 0; top: 0; height: 9px; cursor: ns-resize; touch-action: none; }
.vt-grip::after { content: ""; position: absolute; left: calc(50% - 22px); top: 3px; width: 44px; height: 3px; border-radius: 2px; background: var(--line); }
.vt-grip:hover::after { background: var(--brand); }
.ve-tlhead .vt-zoom { display: inline-flex; align-items: center; gap: 4px; }
.ve-tlhead .vt-zoom input[type=range] { width: 110px; }

/* rows: the names stay put when the lanes scroll sideways, the ruler when they scroll down */
.ve-timeline .ve-tlname { flex: 0 0 170px; width: 170px; z-index: 6; box-sizing: border-box; align-self: stretch; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 2px; border-right: 1px solid var(--line); }
.ve-timeline .ve-tlrow { min-height: 24px; }
.vt-rulerrow { position: sticky; top: 0; z-index: 8; }
.vt-rulerrow .ve-tlname { z-index: 9; font: 12px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); padding-left: 6px; }
.vt-rulerrow .ve-ruler { height: 30px; background: var(--panel); touch-action: none; }
.vt-name { cursor: grab; }
.vt-name.off .vt-label { opacity: .5; text-decoration: line-through; }
.vt-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-kind { flex: 0 0 16px; text-align: center; font-weight: 700; font-size: 11px; border-radius: 4px; color: #fff; line-height: 16px; }
.vt-kind.text { background: #3f7fd0; } .vt-kind.image { background: #3c9a6c; } .vt-kind.shape { background: #d9822b; } .vt-kind.track { background: #b0527a; }
.vt-ibtn { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; font-size: 12px; line-height: 20px; cursor: pointer; opacity: .7; }
.vt-ibtn:hover { opacity: 1; background: var(--soft); }
.vt-ibtn.on { opacity: 1; background: var(--soft); box-shadow: inset 0 0 0 1px var(--brand); }
.vt-rowline { position: absolute; left: 0; right: 0; height: 2px; background: #38a3ff; z-index: 9; pointer-events: none; }

/* ruler */
.ve-timeline .ve-tick { top: 14px; height: 16px; line-height: 14px; border-left-color: var(--muted); white-space: nowrap; pointer-events: none; }
.ve-timeline .ve-tick.minor { top: 24px; height: 6px; border-left-color: var(--line); }
.vt-phandle { position: absolute; top: 0; width: 15px; height: 100%; margin-left: -7px; z-index: 5; cursor: ew-resize; touch-action: none; }
.vt-phandle::after { content: ""; position: absolute; left: 1px; top: 0; width: 13px; height: 14px; background: #ff3d8b; border-radius: 3px 3px 7px 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.vt-range { position: absolute; top: 0; bottom: 0; background: rgba(56, 163, 255, .28); border-left: 2px solid #38a3ff; border-right: 2px solid #38a3ff; box-sizing: border-box; pointer-events: none; }
.vt-marker { position: absolute; top: 0; height: 100%; z-index: 6; cursor: pointer; touch-action: none; margin-left: -1px; border-left: 2px solid var(--mc); }
.vt-marker::before { content: ""; position: absolute; left: -2px; top: 0; border: 6px solid var(--mc); border-right-color: transparent; border-bottom-width: 5px; border-top-width: 5px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7)); }
.vt-markname { position: absolute; left: 11px; top: 1px; font-size: 10px; line-height: 10px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: var(--panel); padding: 0 2px; border-radius: 2px; pointer-events: none; }
.vt-markline { position: absolute; top: 30px; bottom: 0; width: 0; border-left: 1px dashed var(--mc); opacity: .7; pointer-events: none; z-index: 1; }
.ve-timeline .ve-playhead { z-index: 4; }
.ve-timeline .ve-tlguide { z-index: 5; }

/* lanes and bars */
.vt-cliprow .ve-lane { height: 38px; }
.vt-cliprow .ve-bar { height: 34px; line-height: 34px; }
.vt-trackrow .ve-lane { height: 32px; }
.vt-trackrow .ve-bar { height: 28px; line-height: 28px; }
.ve-timeline .ve-bar .ve-barname { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.ve-timeline .ve-bar .ve-edge { z-index: 2; }
.ve-timeline .ve-bar.clip.single { cursor: pointer; }
.vt-thumbs { position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.vt-thumb { position: absolute; top: 0; bottom: 0; background-size: auto 100%; background-repeat: repeat-x; background-position: left center; box-shadow: inset 1px 0 0 rgba(0, 0, 0, .35); }
.vt-freeze { position: absolute; top: 0; bottom: 0; right: 0; z-index: 1; border-left: 2px solid #fff; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .55) 0 6px, rgba(0, 0, 0, .2) 6px 12px); }
.vt-loopmark { position: absolute; top: 0; bottom: 0; width: 9px; margin-left: -1px; z-index: 1; border-left: 2px dashed #fff; }
.vt-wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; opacity: .65; }
.vt-fade { position: absolute; top: 0; bottom: 0; pointer-events: none; background: rgba(0, 0, 0, .5); }
.vt-fade.in { left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.vt-fade.out { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.vt-fadeh { position: absolute; top: -1px; width: 11px; height: 11px; z-index: 3; border-radius: 50%; background: #fff; border: 2px solid #b0527a; box-sizing: border-box; cursor: ew-resize; touch-action: none; opacity: 0; }
.vt-fadeh.in { margin-left: 2px; } .vt-fadeh.out { margin-right: 2px; }
.ve-bar.track:hover .vt-fadeh, .ve-bar.track.on .vt-fadeh { opacity: 1; }
.vt-box { position: absolute; z-index: 9; border: 1px solid #38a3ff; background: rgba(56, 163, 255, .18); pointer-events: none; }
.vt-tip { position: fixed; z-index: 80; pointer-events: none; background: #10121f; color: #fff; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; padding: 3px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.vt-tip[hidden] { display: none; }

/* transport */
.vt-timenow { border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; padding: 2px 4px; border-radius: 5px; cursor: text; }
.vt-timenow:hover { border-color: var(--line); background: var(--soft); }
.vt-timein { width: 74px; font: inherit; padding: 2px 4px; border: 1px solid var(--brand); border-radius: 5px; background: var(--panel); color: var(--ink); }
.ve .btn.vt-loopbtn { filter: grayscale(1); opacity: .6; }
.ve .btn.vt-loopbtn.on { filter: none; opacity: 1; }
.vt-rate { font: 700 12px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--brand); padding: 3px 6px; border: 1px solid var(--brand); border-radius: 8px; }
.ve.vt-ranging .ve-playbtn { box-shadow: 0 0 0 2px #38a3ff; }
.vt-markform { display: grid; gap: 10px; min-width: 300px; }
.vt-beyond { position: absolute; top: 30px; bottom: 0; right: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(120, 120, 120, .28) 0 6px, rgba(120, 120, 120, .12) 6px 12px); border-left: 2px solid var(--danger); }
.vt-kind.video { background: #2b8a99; }
