.video-editor{margin-top:16px;padding:16px;border:1px solid #cfe5d5;border-radius:12px;background:#f7fbf8;min-width:0}
.video-editor[hidden]{display:none!important}
.video-editor-heading,.video-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.video-editor-heading h3{margin:0;color:#244236;font-size:16px}
.video-editor-heading span{color:#718578;font-size:11px;font-weight:700}
.video-editor-screen{display:grid;place-items:center;min-height:250px;max-height:350px;margin:12px 0;background:#19211f;border-radius:11px;overflow:hidden}
.video-editor-screen .trim-preview{display:block;width:auto;max-width:100%;height:auto;max-height:350px;margin:0;background:#19211f}
.video-editor-toolbar{min-height:46px}
.video-editor-toolbar button{border:1px solid #bdd8c8;border-radius:8px;padding:8px 10px;background:#fff;color:#157453;font-size:11px;font-weight:800;white-space:nowrap}
.video-editor-toolbar button:first-child{background:#188768;color:#fff;border-color:#188768}
.video-editor-toolbar button:disabled{opacity:.5}
.video-editor-toolbar span{font-size:12px;color:#74867a;white-space:nowrap}
.video-editor-toolbar output,.video-editor-toolbar strong{color:#244236}
.video-editor p{margin:6px 0 11px;color:#637b6c;font-size:11px;line-height:1.45}
.video-timeline{position:relative;display:flex;align-items:stretch;gap:5px;overflow-x:auto;overflow-y:hidden;padding:8px 5px 12px;scroll-behavior:smooth;min-height:153px;background:#eaf0eb;border:1px solid #d5e4d9;border-radius:10px}
.video-clip{flex:0 0 150px;min-width:120px;padding:3px;border:2px solid transparent;border-radius:8px;background:#fff;position:relative}
.video-clip[aria-selected=true]{border-color:#1b9b72;box-shadow:0 2px 9px #16775d33}
.video-clip.drag-over{border-color:#f28826;box-shadow:inset 0 0 0 2px #f28826}
.video-clip-main{width:100%;padding:0;border:0;background:transparent;text-align:left;color:#244236}
.video-clip-thumb{position:relative;display:flex;height:70px;border-radius:5px;background:#18251f;overflow:hidden}
.video-clip-thumb img{display:block;width:33.333%;height:100%;object-fit:cover;border-right:1px solid #fff8}
.video-clip-thumb b{position:absolute;left:4px;top:4px;padding:3px 6px;border-radius:4px;background:#173e31;color:#fff;font-size:10px}
.video-clip-main strong{display:block;margin:5px 2px 0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-clip-main small{display:block;margin:2px 2px 0;color:#627c6a;font-size:10px;white-space:nowrap}
.video-clip-trim{position:relative;height:13px;margin:9px 7px 2px;border-radius:4px;background:#dce7df;touch-action:none}
.video-clip-selection{position:absolute;top:2px;bottom:2px;border-radius:3px;background:#38a982}
.video-trim-handle{position:absolute;top:-5px;width:12px;height:23px;padding:0;transform:translateX(-50%);border:1px solid #086b50;border-radius:4px;background:#fff;box-shadow:0 1px 3px #0002;touch-action:none;cursor:ew-resize}
.video-trim-handle:disabled{opacity:.5}
.video-clip-actions{display:flex;gap:4px;margin-top:7px}
.video-clip-actions button{flex:1;min-width:0;padding:5px 2px;border:1px solid #cce0d0;border-radius:5px;background:#fff;color:#147657;font-size:11px;font-weight:700}
.video-clip-actions button:disabled{opacity:.4}
.video-clip-actions .remove{color:#a14740}
.video-insert{align-self:center;flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#fa6954;color:#fff;font-size:22px;line-height:1;box-shadow:0 2px 6px #aa463455}
.video-insert:disabled{opacity:.5}
.video-junction{align-self:center;flex:none;display:grid;justify-items:center;gap:5px}
.video-junction .video-insert{width:26px;height:26px;font-size:19px}
.video-transition-button{border:1px solid #afd3c2;border-radius:6px;background:#fff;color:#187b60;padding:5px 4px;font-size:9px;font-weight:800;white-space:nowrap}
.video-transition-button.active{background:#e4f6ec;border-color:#188768;color:#116b50}
.video-transition-button:disabled{opacity:.5}
.video-transition-settings{margin-top:10px;padding:12px;border:1px solid #afd3c2;border-radius:9px;background:#fff}
.video-transition-settings[hidden]{display:none!important}
.video-transition-settings>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#244236;font-size:12px}
.video-transition-settings>div:first-child button{border:0;background:transparent;color:#6d8575;font-size:20px;line-height:1}
.video-transition-settings label{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;margin-top:10px;color:#244236;font-size:11px;font-weight:700}
.video-transition-settings select{padding:7px 8px;border:1px solid #c9dfcf;border-radius:6px;background:#fff;color:#244236;font-size:11px}
.video-transition-settings input{width:100%;margin:4px 0 0;accent-color:#188768}
.video-transition-preview{display:flex;align-items:center;gap:10px;margin-top:8px}
.video-transition-preview canvas{width:120px;height:68px;border-radius:5px;background:#19211f}
.video-transition-preview button{padding:7px 9px;border:1px solid #188768;border-radius:6px;background:#eff8f2;color:#176d53;font-size:10px;font-weight:800}
.video-playhead{position:absolute;top:4px;bottom:8px;width:24px;transform:translateX(-50%);touch-action:none;cursor:ew-resize;z-index:3;outline:0}
.video-playhead:before{content:"";position:absolute;left:11px;top:0;bottom:0;width:2px;background:#eb4a35;box-shadow:0 0 0 1px #fff9}
.video-playhead:after{content:"";position:absolute;left:6px;top:-2px;width:12px;height:12px;border-radius:4px;background:#eb4a35;border:1px solid #fff;box-shadow:0 1px 4px #0005}
.video-playhead:focus-visible:after{outline:2px solid #244236;outline-offset:2px}
.video-timeline-seek{display:block;margin-top:10px;color:#244236;font-size:11px;font-weight:700}
.video-timeline-seek input{display:block;width:100%;margin:5px 0 2px;accent-color:#eb4a35}
@media(max-width:600px){.video-editor{padding:11px}.video-editor-screen{min-height:230px;max-height:310px}.video-editor-screen .trim-preview{max-height:310px}.video-editor-toolbar{gap:5px}.video-editor-toolbar button{padding:7px 6px;font-size:10px}.video-clip{flex-basis:135px}.video-timeline{min-height:148px}}
