.workspace.video-template-workspace{grid-template-columns:minmax(0,1fr)}
.video-template-workspace>.settings{display:none}
.video-template-workspace>.canvas{padding:28px 32px;background:var(--color-page)}
.vt-gallery h1,.vt-editor h1{font-size:26px;line-height:1.4;margin:0;font-weight:650}
.vt-gallery-heading,.vt-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.vt-gallery-heading input{width:270px;min-height:44px;padding:9px 14px;border:1px solid var(--color-border);border-radius:8px;background:white;font:inherit;color:var(--color-text)}
.vt-filter-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.vt-filters{display:flex;gap:8px;flex-wrap:wrap}
.vt-filters button{padding:9px 18px;min-height:44px;border-radius:6px;background:white;font-weight:500}
.vt-filters button[aria-pressed=true]{background:var(--color-primary-soft);color:var(--color-primary);font-weight:600}
#vtCount{font-size:14px;color:var(--color-text-muted);white-space:nowrap}
.vt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
.vt-card{min-width:0;position:relative}
.vt-preview{display:block;width:100%;padding:0;overflow:hidden;border-radius:10px;background:var(--color-surface-muted)}
.vt-poster{display:block;position:relative;aspect-ratio:9/16;overflow:hidden}
.vt-poster img,.vt-poster video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.vt-card-heading{display:flex;gap:8px;align-items:baseline;justify-content:space-between;padding-top:10px;padding-right:0}
.vt-card-heading h3{font-size:16px;line-height:1.5;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vt-card-heading>span{font-size:14px;color:var(--color-text-muted);white-space:nowrap}
.vt-use{font-size:14px;font-weight:600;color:var(--color-primary);padding:6px 0;min-height:36px}
.vt-use:hover{text-decoration:underline;text-underline-offset:4px}
.vt-preview:hover{box-shadow:0 0 0 2px #e6c7b6}
.vt-no-results{grid-column:1/-1;padding:60px;text-align:center}
.vt-dialog{padding:0;border:0;border-radius:14px;width:min(1100px,calc(100vw - 64px));height:min(830px,calc(100dvh - 56px));max-width:none;max-height:none;overflow:hidden;background:white;color:var(--color-text);box-shadow:0 20px 90px #0003}
.vt-dialog::backdrop{background:#171b2170}
.vt-dialog[open]{display:flex;flex-direction:column}
.vt-dialog-heading{padding:16px 24px;border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}
.vt-dialog-heading h2{font-size:21px;font-weight:650;margin:0}
.vt-close{font-size:30px;width:44px;height:44px;line-height:1;border-radius:6px;padding:0}
.vt-close:hover{background:var(--color-page)}
.vt-dialog-body{display:grid;grid-template-columns:minmax(0, .9fr) minmax(0,1.1fr);flex:1;min-height:0}
.vt-player-pane{background:var(--color-page);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;padding:24px}
.vt-player-pane .vt-video{min-height:0;flex:1;width:100%;object-fit:contain;display:block;max-height:100%;border-radius:6px;background:#252626}
.vt-player-pane p{margin:12px 0 0;color:var(--color-text-muted);font-size:14px}
.vt-form{min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--color-border)}
.vt-form-scroll{overflow:auto;min-height:0;padding:24px;flex:1;overscroll-behavior:contain}
.vt-form-footer{padding:16px 24px;border-top:1px solid var(--color-border);flex:none}
.vt-form-footer .primary{width:100%;min-height:48px}
.vt-field,.vt-upload-field{margin-bottom:20px}
.vt-field label,.vt-upload-heading strong,.vt-mode-field legend{display:block;font-weight:600;font-size:16px;margin-bottom:8px}
.vt-field input,.vt-field textarea{background:var(--color-page);border-color:transparent;min-height:46px;padding:10px 12px;border-radius:7px;width:100%}
.vt-field textarea{min-height:94px}
.vt-field input:focus,.vt-field textarea:focus{background:white;border-color:var(--color-brand)}
.vt-upload-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.vt-upload-heading span,.vt-upload-hint{font-size:14px;color:var(--color-text-muted)}
.vt-upload{border:1px dashed #d9d5ce;border-radius:8px;padding:16px;background:var(--color-page);text-align:center}
.vt-upload.dragging{border-color:var(--color-brand);background:var(--color-primary-soft)}
.vt-upload-hint{display:block;margin-top:8px}
.vt-assets{display:flex;gap:10px;flex-wrap:wrap}
.vt-assets:not(:empty){margin-bottom:16px}
.vt-asset{width:76px;height:76px;position:relative}
.vt-asset img{width:100%;height:100%;object-fit:contain;background:white;border-radius:5px}
.vt-asset button{position:absolute;right:-6px;top:-6px;width:24px;height:24px;border-radius:50%;background:var(--color-text);color:white;padding:0;line-height:24px}
.vt-mode-field{padding:0;border:0;margin:0 0 20px;min-width:0}
.vt-modes{display:flex;gap:10px}
.vt-modes button{flex:1;border:1px solid var(--color-border);border-radius:8px;padding:10px 14px;text-align:left}
.vt-modes button[aria-pressed=true]{border-color:var(--color-primary);background:var(--color-primary-soft)}
.vt-modes strong{font-size:16px;font-weight:600;display:block}
.vt-modes span{display:block;font-size:14px;color:var(--color-text-muted);margin-top:4px}
.vt-more{margin:0}
.vt-more[open] summary{margin-bottom:18px}
.vt-error{margin:0 0 10px;font-size:14px;color:#a22e10}
.vt-media-error{font-size:14px;color:var(--color-primary);text-align:center}
.vt-editor-heading h1{margin-top:8px}
.vt-editor-actions{display:flex;gap:12px;flex-wrap:wrap}
.vt-editor-body{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:28px;align-items:start}
.vt-reference-pane{position:sticky;top:0;min-width:0}
.vt-reference-pane video{display:block;width:100%;aspect-ratio:9/16;object-fit:contain;background:#222;border-radius:8px;max-height:65vh}
.vt-reference-caption{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-top:10px;font-size:14px;color:var(--color-text-muted)}
.vt-reference-caption strong{font-weight:600;color:var(--color-text)}
.vt-editor-assets{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.vt-editor-assets img{width:60px;height:60px;object-fit:contain;border-radius:6px;background:white}
.vt-shot-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.vt-shot-heading h2{margin:0;font-size:20px}
.vt-shot-heading span,.vt-project-meta{font-size:14px;color:var(--color-text-muted)}
.vt-project-meta{margin:8px 0 20px}
.vt-shot{background:white;padding:20px;border-radius:8px;border:1px solid var(--color-border);margin-bottom:16px}
.vt-shot header{display:flex;gap:8px;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.vt-shot h3{margin:0;font-size:18px}
.vt-shot header span{font-size:14px;color:var(--color-primary)}
.vt-shot label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.vt-shot textarea{margin-bottom:12px;min-height:82px}
.vt-shot .row textarea{margin-bottom:0}
.vt-brief{margin-bottom:16px;font-size:14px;padding:14px 18px;background:#fff;border-radius:6px}
.vt-brief p{margin:4px 0 0;white-space:pre-wrap}
.vt-work{background:white;justify-content:flex-start}
.vt-work>img{height:86px;width:50px;object-fit:cover;border-radius:4px}
.vt-work>div{flex:1}
@media(min-width:1300px){.vt-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1900px){.vt-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.vt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.video-template-workspace>.canvas{padding:24px}.vt-dialog{width:calc(100vw - 32px)}.vt-form-scroll,.vt-player-pane{padding:18px}.vt-editor-body{grid-template-columns:230px minmax(0,1fr);gap:20px}}
@media(max-width:800px){.video-template-workspace>.canvas{padding:20px}.vt-gallery-heading{gap:16px;align-items:flex-start}.vt-gallery-heading input{width:180px}.vt-filter-row{align-items:flex-start}.vt-filters{gap:6px}.vt-filters button{padding:8px 12px}.vt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.vt-dialog{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.vt-dialog-body{display:block;overflow:auto}.vt-player-pane{height:280px}.vt-player-pane p{display:none}.vt-form{border-left:0}.vt-form-scroll{overflow:visible}.vt-form-footer{position:sticky;bottom:0;background:white}.vt-editor-heading{align-items:flex-start;flex-direction:column}.vt-editor-body{grid-template-columns:minmax(0,1fr)}.vt-reference-pane{position:static;display:grid;grid-template-columns:150px 1fr;gap:16px}.vt-reference-pane video{grid-row:1/3}.vt-reference-caption{flex-direction:column;justify-content:flex-start}.vt-editor-assets{align-content:start;margin:0}.vt-shot{padding:16px}}
@media(max-width:460px){.vt-gallery-heading{flex-wrap:wrap}.vt-gallery-heading input{width:100%}.vt-gallery h1,.vt-editor h1{font-size:24px}.vt-card-heading{flex-wrap:wrap;gap:2px}.vt-card-heading h3{white-space:normal;font-size:16px}.vt-shot .row{grid-template-columns:1fr}.vt-form-scroll{padding:18px}.vt-modes{flex-wrap:wrap}.vt-modes button{min-width:130px}.vt-dialog-heading{padding:12px 16px}.vt-filter-row{display:block}#vtCount{display:block;margin-top:12px}.vt-editor-actions{width:100%}}
.vt-export{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}
.vt-export[aria-disabled=true]{opacity:.5;cursor:wait}
@media(min-width:1400px) and (max-height:800px){.vt-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
