.vg-controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 16px; padding-bottom:16px; border-bottom:1px solid var(--ui-line,#dedee3); }
.vg-controls label,.vg-controls select { min-width:0; max-width:100%; width:100%; }
.vg-controls .vg-span { grid-column:1/-1; margin:0; }
.vg-catalog { color:var(--ui-muted,#626269); font-size:12px; line-height:1.7; }
.vg-catalog summary { cursor:pointer; color:var(--ui-accent,#0066cc); }
.vg-catalog ul { padding-left:18px; }
.vg-frame { margin:0; min-width:0; }
.vg-frame h4 { margin:0 0 10px; font-size:14px; }
.vg-dropzone { padding:14px; border:1px dashed #8b929c; border-radius:7px; background:var(--ui-inset,#f2f2f5); }
.vg-dropzone.dragging { border-color:var(--ui-accent,#0066cc); background:#edf5ff; }
.vg-dropzone:focus-visible { outline:2px solid var(--ui-accent,#0066cc); outline-offset:3px; }
.vg-frame-preview { display:flex; align-items:flex-end; gap:12px; }
.vg-frame-preview img { max-width:100%; width:auto; height:auto; max-height:240px; object-fit:contain; border-radius:4px; }
.vg-frame-preview [hidden],.video-form [hidden] { display:none !important; }
.vg-frame .tool-hint { margin:8px 0 0; line-height:1.65; }
.vg-input-summary { font-size:12px; line-height:1.65; color:var(--ui-muted,#626269); overflow-wrap:anywhere; }
.video-estimate-settings { margin-top: 16px; color: var(--ui-ink); }
.video-estimate-settings summary { cursor: pointer; color: var(--ui-accent); }
.video-estimate-settings form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.video-estimate-settings label { display: grid; gap: 6px; }
.video-estimate-settings input { width: 220px; max-width: 100%; }
.video-estimate-settings p { max-width: 75ch; line-height: 1.6; }
.video-estimate-settings [role="status"]:empty { display: none; }
.video-balance-card[data-balance-kind="estimate"] #vw-balance { color: var(--ui-warning); }
.video-balance-card[data-balance-kind="estimate"] .video-balance-warning { color: var(--ui-muted); }
.video-balance-card[data-balance-kind="low"] #vw-balance { color: var(--ui-danger); }
