.vg { margin: 16px 0; font: inherit; }
.vg [hidden] { display: none !important; }
.vg-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.vg-toggle input { width: 18px; height: 18px; accent-color: var(--vg-accent, #1a1a1a); }
.vg-panel { margin-top: 16px; display: grid; gap: 16px; }
.vg-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vg-field { display: grid; gap: 6px; position: relative; }
.vg-label { font-size: .875em; font-weight: 600; }
.vg-label em { font-style: normal; font-weight: 400; opacity: .65; }
.vg-field input, .vg-field textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; font: inherit; color: inherit;
  background: transparent; border: 1px solid currentColor; border-radius: 8px;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.vg-field input:focus-visible, .vg-field textarea:focus-visible, .vg-btn:focus-visible {
  outline: 2px solid var(--vg-accent, #1a1a1a); outline-offset: 2px;
}
.vg-field textarea { resize: vertical; min-height: 84px; }
.vg-count { position: absolute; right: 10px; bottom: 8px; font-size: .75em; opacity: .6; }
.vg-designs { border: 0; padding: 0; margin: 0; min-width: 0; }
.vg-designs legend { padding: 0; margin-bottom: 8px; }
.vg-design-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.vg-design { position: relative; cursor: pointer; display: block; }
.vg-design input { position: absolute; opacity: 0; inset: 0; }
.vg-design img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.vg-design input:checked + img { border-color: var(--vg-accent, #1a1a1a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vg-accent, #1a1a1a) 25%, transparent); }
.vg-design input:focus-visible + img { outline: 2px solid var(--vg-accent, #1a1a1a); outline-offset: 2px; }
.vg-video { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: color-mix(in srgb, currentColor 5%, transparent); }
.vg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vg-btn {
  appearance: none; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--vg-accent, #1a1a1a); background: var(--vg-accent, #1a1a1a); color: #fff;
}
.vg-btn--ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
.vg-btn--stop { background: #c0392b; border-color: #c0392b; }
.vg-preview { width: 100%; max-height: 360px; border-radius: 10px; background: #000; }
.vg-progress { width: 100%; height: 8px; accent-color: var(--vg-accent, #1a1a1a); }
.vg-help { margin: 0; font-size: .85em; opacity: .7; }
.vg-timer { font-variant-numeric: tabular-nums; font-size: .9em; }
.vg-attached { margin: 0; font-weight: 600; }
.vg-error { margin: 0; color: #c0392b; font-size: .9em; }
