body > .tool-page.tool-page--video-trimmer { width: 100%; max-width: none; margin: 0; padding: 0; }
.tool-page--video-trimmer [hidden] { display: none !important; }
.vt-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,350px); height: 100%; min-height: 0; text-align: left; font-variant-numeric: tabular-nums; }
.vt-viewer { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vt-preview { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.vt-preview video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vt-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #bdbbc8; }
.vt-empty p { margin: 0; text-align: center; }
.vt-preview-actions { position: absolute; inset: 8px 8px auto; display: flex; align-items: center; gap: 10px; }
.vt-workspace:not([data-ready]) .vt-preview-actions { display: none; }
.vt-preview-actions span { color: #dedce8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 4px #000; }
.vt-timeline-area { padding: 8px 0 12px; }
.vt-timeline { position: relative; height: 84px; overflow: hidden; background: #000; cursor: crosshair; touch-action: none; user-select: none; }
.vt-timeline canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vt-segments { position: absolute; inset: 0; pointer-events: none; }
.vt-segment { position: absolute; top: 0; bottom: 0; box-sizing: border-box; background: #1b22304d; border-inline: 2px solid #536175; }
.vt-segment.is-cut { background: #18181bcc; border-color: #777780; }
.vt-segment:not(.is-cut)::after { content: ''; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(90deg,transparent 0 34px,#8196bd 35px 36px,transparent 37px 44px); }
.tool-page--video-trimmer .vt-timeline button.vt-cut-handle:not(.default) { position: absolute; top: 0; bottom: 0; width: 16px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: ew-resize; pointer-events: auto; touch-action: none; z-index: 2; }
.vt-cut-handle::before { content: ''; position: absolute; top: 7px; left: 5px; width: 6px; height: 15px; border-radius: 3px; background: #a8a8b0; }
.vt-cut-handle[data-edge="start"] { left: -10px; } .vt-cut-handle[data-edge="end"] { right: -10px; }
.vt-cut-time { position: absolute; top: 27px; color: #c3c3ca; font-size: .7rem; white-space: nowrap; }
.vt-cut-time--start { left: 5px; } .vt-cut-time--end { top: 43px; right: 5px; }
.vt-selection { position: absolute; top: 0; bottom: 0; border-inline: 2px solid #f185b7; background: #f185b726; pointer-events: none; }
.vt-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.vt-timeline-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #888897; pointer-events: none; }
.vt-film-wrap { position: relative; height: 36px; margin: 6px 0 8px; }
.vt-film { position: relative; height: 100%; background: #000; overflow: hidden; touch-action: none; user-select: none; }
.vt-film-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.vt-film-gap, .vt-film-clip { position: absolute; top: 0; bottom: 0; box-sizing: border-box; }
.vt-film-gap { background: #242426; border-right: 2px solid #414146; }
.tool-page--video-trimmer .vt-film button.vt-film-clip:not(.default) { min-width: 0; min-height: 0; padding: 0 7px; overflow: hidden; text-align: left; white-space: nowrap; border: 0; border-right: 2px solid #536b9d; border-radius: 0; background: #000; color: #dde6ff; font-size: .7rem; cursor: grab; touch-action: none; }
.vt-film-gap:last-child, .tool-page--video-trimmer .vt-film button.vt-film-clip:last-child:not(.default) { border-right: 0; }
.vt-film-clip.is-drop-before, .vt-film-gap.is-drop-before { box-shadow: inset 3px 0 #fff; }
.vt-film-clip.is-drop-after, .vt-film-gap.is-drop-after { box-shadow: inset -3px 0 #fff; }
.vt-transport { display: flex; align-items: center; gap: 10px; margin: 5px 12px 0; }
.tool-page--video-trimmer #vt-play { width: 68px; flex: 0 0 68px; } #vt-time { white-space: nowrap; }
.vt-volume { display: flex; align-items: center; gap: 8px; margin-left: auto; } .vt-volume input { width: 96px; } .vt-volume output { width: 4.5ch; text-align: right; color: #bdbbc8; }
#vt-volume { --eyy-range-accent: #829eff; } #vt-seek { --eyy-seek-accent: #829eff; }
.vt-controls { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; padding: 12px 8px; border-left: 2px solid var(--eyy-border); }
.vt-controls h1 { margin: 0; font-size: 1rem; } .vt-description { color: #bdbbc8; margin: 7px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--eyy-border); }
.vt-controls-body { flex: 1 1 0; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #45454f transparent; }
.vt-section { padding: 12px 0; border-bottom: 2px solid var(--eyy-border); } .vt-section strong { font-size: .85rem; font-weight: 600; } .vt-section p { overflow-wrap: anywhere; margin: 9px 0 0; color: #a9a7b5; line-height: 1.45; }
.vt-actions { display: flex; gap: 6px; margin-top: 12px; } .vt-actions button { flex: 1 1 0; min-width: 0; } #vt-restore { width: 100%; margin-top: 6px; }
.vt-export { flex: none; padding-top: 10px; border-top: 2px solid var(--eyy-border); } #vt-summary { color: #bdbbc8; min-height: 1.5em; margin-bottom: 6px; }
.vt-export-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.vt-export-settings label { display: grid; gap: 5px; min-width: 0; color: #bdbbc8; }
.vt-export-settings .rot-select, .vt-export-settings .rot-select-trigger { width: 100%; min-width: 0; }
.tool-page--video-trimmer .vt-workspace button:not(.default):not(.vt-cut-handle):not(.vt-film-clip) { min-height: 34px; padding: 6px 10px; font: inherit; } .tool-page--video-trimmer button:disabled { opacity: .46; cursor: default; }
.tool-page--video-trimmer .vt-workspace #vt-empty-choose { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; }
#vt-empty-choose svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-page--video-trimmer #vt-export { width: 100%; border-color: #536b9d; background: #151b2b; } .tool-page--video-trimmer #vt-export:hover:not(:disabled) { background: #222d47; }
.vt-drop { position: fixed; inset: 52px 10px 10px; z-index: 990; display: grid; place-items: center; border: 2px dashed #829eff; border-radius: 10px; background: #111321ed; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 140ms ease, visibility 140ms; }
.vt-workspace.is-dragging .vt-drop { opacity: 1; visibility: visible; }
@media (max-width: 760px) { .vt-workspace { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0, 48%) minmax(0, 1fr); } .vt-controls { padding: 8px; border: 0; border-top: 2px solid var(--eyy-border); } .vt-section { padding: 8px 0; } .vt-timeline { height: 60px; } }
@media (max-width: 500px) { .vt-volume input { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .vt-drop { transition: none; } }
