/* ============================================
   VIDEO CREATOR CSS
   Styles for video creator components
   ============================================ */

/* Prevent text selection anywhere inside video creator */
.main-container,
.main-container *,
#vc-editor,
#vc-editor *,
#vc-edit-panel,
#vc-edit-panel *,
#vc-inspector-content,
#vc-inspector-content * {
  -webkit-user-select: none;
  user-select: none;
}

/* Keep Video Creator buttons visually flat in every state. This also strips
   the native macOS/Electron button bezel that can show up in menus. */
#vc-editor button,
#vc-editor button:hover,
#vc-editor button:focus,
#vc-editor button:focus-visible,
#vc-editor button:active,
#vc-editor button:disabled,
#vc-edit-panel button,
#vc-edit-panel button:hover,
#vc-edit-panel button:focus,
#vc-edit-panel button:focus-visible,
#vc-edit-panel button:active,
#vc-edit-panel button:disabled,
#vc-inspector-content button,
#vc-inspector-content button:hover,
#vc-inspector-content button:focus,
#vc-inspector-content button:focus-visible,
#vc-inspector-content button:active,
#vc-inspector-content button:disabled,
.vc-context-menu button,
.vc-context-menu button:hover,
.vc-context-menu button:focus,
.vc-context-menu button:focus-visible,
.vc-context-menu button:active,
.vc-context-menu button:disabled,
.vc-replace-scene-overlay button,
.vc-replace-scene-overlay button:hover,
.vc-replace-scene-overlay button:focus,
.vc-replace-scene-overlay button:focus-visible,
.vc-replace-scene-overlay button:active,
.vc-replace-scene-overlay button:disabled,
.vc-source-picker-overlay button,
.vc-source-picker-overlay button:hover,
.vc-source-picker-overlay button:focus,
.vc-source-picker-overlay button:focus-visible,
.vc-source-picker-overlay button:active,
.vc-source-picker-overlay button:disabled,
.vc-idea-picker-overlay button,
.vc-idea-picker-overlay button:hover,
.vc-idea-picker-overlay button:focus,
.vc-idea-picker-overlay button:focus-visible,
.vc-idea-picker-overlay button:active,
.vc-idea-picker-overlay button:disabled {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.vc-inspector-field {
  margin-top: 8px;
}

.vc-inspector-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.vc-selection-overlay {
  position: absolute;
  z-index: 40;
  box-sizing: border-box;
  pointer-events: none;
}

.vc-selection-overlay[hidden] {
  display: none !important;
}

.vc-selection-overlay__box {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1.75px solid #fff;
  pointer-events: none;
}

.vc-selection-overlay__handle {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: -6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
  touch-action: none;
}

.vc-selection-overlay__handle--nw {
  z-index: 2;
  left: 0;
  top: 0;
  cursor: nwse-resize;
}

.vc-selection-overlay__handle--ne {
  z-index: 2;
  right: 0;
  top: 0;
  cursor: nesw-resize;
}

.vc-selection-overlay__handle--sw {
  z-index: 2;
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}

.vc-selection-overlay__handle--se {
  z-index: 2;
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.vc-selection-overlay__handle--n,
.vc-selection-overlay__handle--s {
  left: 50%;
  width: calc(100% - 12px);
  min-width: 18px;
  height: 10px;
  margin-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.vc-selection-overlay__handle--n {
  top: 0;
  margin-top: -7px;
}

.vc-selection-overlay__handle--s {
  bottom: 0;
  margin-bottom: -7px;
}

.vc-selection-overlay__handle--e,
.vc-selection-overlay__handle--w {
  top: 50%;
  width: 10px;
  height: calc(100% - 12px);
  min-height: 18px;
  margin-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.vc-selection-overlay__handle--e {
  right: 0;
  margin-right: -7px;
}

.vc-selection-overlay__handle--w {
  left: 0;
  margin-left: -7px;
}

.vc-inspector-input {
  background: rgba(255, 255, 255, 0.03);
}

.vc-asset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.vc-asset-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vc-asset-perf-banner {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.65);
  color: rgb(229, 231, 235);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}

.vc-asset-alert-banner {
  margin: 6px 0 10px 0;
}

.vc-asset-alert-banner__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vc-asset-alert-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
}

.vc-asset-alert-banner__subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.vc-asset-alert-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vc-alert-badge {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.vc-alert-badge:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.vc-alert-badge[data-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.10);
  color: rgba(253, 230, 138, 0.98);
}

.vc-alert-badge[data-tone="info"] {
  border-color: rgba(99, 102, 241, 0.40);
  background: rgba(99, 102, 241, 0.12);
  color: rgba(199, 210, 254, 0.98);
}

.vc-alert-badge[data-tone="muted"] {
  border-color: rgba(148, 163, 184, 0.30);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.96);
}

.vc-asset-content {
  flex: 1;
  min-width: 0;
}

.vc-asset-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-asset-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.vc-asset-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.vc-asset-delete:hover {
  opacity: 1;
}

.vc-inspector-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vc-inspector-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.vc-inspector-value {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #94a3b8;
}

.vc-inspector-textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
  resize: vertical;
}

.vc-inspector-input-group {
  display: flex;
  gap: 12px;
}

.vc-inspector-input-group>div {
  flex: 1;
}

.vc-inspector-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-script-highlight {
  position: absolute;
  inset: 0;
  padding: 20px;
  font-size: 20px;
  line-height: 1.7;
  color: #e5e7eb;
  background: transparent;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
  display: none;
}

.vc-script-highlight .vc-script-word {
  padding: 2px 6px;
  border-radius: 8px;
  transition: background-color 120ms ease;
}

.vc-script-highlight .vc-script-word.is-active {
  background: rgba(139, 92, 246, 0.38);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.45);
}

/* Replace Scene modal */
.vc-context-menu-item--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.95));
  color: #ffffff;
  border: none;
}

.vc-context-menu-item--primary:hover {
  filter: brightness(1.05);
}

.vc-replace-scene-overlay {
  position: fixed;
  inset: 0;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.14), transparent 34%),
    rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20040;
}

.vc-replace-scene-modal {
  width: min(1520px, calc(100vw - 40px));
  max-width: 1520px;
  min-height: min(820px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vc-replace-scene-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.vc-replace-scene-title-wrap {
  min-width: 0;
}

.vc-replace-scene-title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.vc-replace-scene-subtitle {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 10px;
}

.vc-replace-scene-close {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.vc-replace-scene-close:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.92);
}

.vc-replace-scene-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.015);
}

.vc-replace-scene-actions-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.vc-replace-scene-primary {
  border: none;
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  align-self: flex-start;
}

.vc-replace-scene-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vc-replace-scene-selection-hint {
  max-width: 720px;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.vc-replace-scene-status {
  min-width: 160px;
  min-height: 20px;
  padding-top: 6px;
  text-align: right;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.vc-replace-scene-status[data-tone="working"] {
  color: #cbd5f5;
}

.vc-replace-scene-status[data-tone="success"] {
  color: #86efac;
}

.vc-replace-scene-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 32px 32px;
  overflow: hidden;
}

.vc-replace-scene-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vc-replace-scene-meta-card {
  min-height: 164px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.vc-replace-scene-meta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.vc-replace-scene-meta-value {
  min-height: 0;
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  scrollbar-width: thin;
}

.vc-replace-scene-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.vc-replace-scene-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #c7d2fe;
  font-size: 12px;
  line-height: 1.2;
}

.vc-replace-scene-chip--accent {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.34);
}

.vc-replace-scene-chip--subtle {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.vc-replace-scene-chip--muted {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

.vc-replace-scene-muted {
  color: #94a3b8;
  font-size: 13px;
}

.vc-replace-scene-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
}

.vc-replace-scene-modes {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.vc-replace-scene-mode-btn {
  min-width: 108px;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: #cbd5f5;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vc-replace-scene-mode-btn.is-active {
  background: rgba(59, 130, 246, 0.32);
  color: #ffffff;
}

.vc-replace-scene-search {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.vc-replace-scene-search-input {
  flex: 1;
  min-width: 320px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 14px;
}

.vc-replace-scene-search-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.vc-replace-scene-search-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vc-replace-scene-search-btn,
.vc-replace-scene-clear-btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vc-replace-scene-search-btn:hover,
.vc-replace-scene-clear-btn:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(51, 65, 85, 0.84);
}

.vc-replace-scene-search-btn:disabled,
.vc-replace-scene-clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vc-replace-scene-search-hint {
  grid-column: 2;
  min-height: 20px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.vc-replace-scene-results-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.46));
}

.vc-replace-scene-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #cbd5f5;
}

.vc-replace-scene-results-copy {
  min-width: 0;
}

.vc-replace-scene-results-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.vc-replace-scene-results-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.vc-replace-scene-results-count {
  flex: 0 0 auto;
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.74);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vc-replace-scene-carousel-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0 58px 8px;
}

.vc-replace-scene-carousel {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 16px;
  scroll-behavior: smooth;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vc-replace-scene-carousel::-webkit-scrollbar {
  display: none;
}

.vc-replace-scene-carousel.active {
  cursor: grabbing;
  scroll-behavior: auto;
}

.vc-replace-scene-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.vc-replace-scene-nav:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(148, 163, 184, 0.4);
}

.vc-replace-scene-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vc-replace-scene-nav-prev {
  left: 0;
}

.vc-replace-scene-nav-next {
  right: 0;
}

.vc-replace-scene-card {
  flex: 0 0 290px;
  min-height: 290px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.66));
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.vc-replace-scene-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.4);
}

.vc-replace-scene-card.is-selected {
  border-color: rgba(96, 165, 250, 0.75);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
}

.vc-replace-scene-thumb {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: rgba(15, 23, 42, 0.92);
}

.vc-replace-scene-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
}

.vc-replace-scene-thumb.is-empty::before {
  content: "Preview unavailable";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.vc-replace-scene-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.vc-replace-scene-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.vc-replace-scene-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-replace-scene-card-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.vc-replace-scene-empty {
  width: 100%;
  min-height: 280px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  text-align: center;
}

.vc-replace-scene-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}

.vc-replace-scene-empty-detail {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

@media (max-width: 1320px) {
  .vc-replace-scene-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .vc-replace-scene-modal {
    width: min(100vw, calc(100vw - 20px));
    min-height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .vc-replace-scene-header,
  .vc-replace-scene-actions,
  .vc-replace-scene-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .vc-replace-scene-actions,
  .vc-replace-scene-controls,
  .vc-replace-scene-results-head {
    align-items: stretch;
  }

  .vc-replace-scene-actions,
  .vc-replace-scene-controls {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .vc-replace-scene-search-hint {
    grid-column: auto;
  }

  .vc-replace-scene-search {
    flex-wrap: wrap;
  }

  .vc-replace-scene-search-input {
    min-width: 100%;
  }

  .vc-replace-scene-results-head {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .vc-replace-scene-overlay {
    padding: 10px;
  }

  .vc-replace-scene-meta {
    grid-template-columns: 1fr;
  }

  .vc-replace-scene-close {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 24px;
  }

  .vc-replace-scene-carousel-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .vc-replace-scene-nav {
    display: none;
  }

  .vc-replace-scene-card {
    flex-basis: min(82vw, 290px);
  }
}

/* Story setup tabs (Create with AI -> Popular niche) */
.vc-story-setup-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  flex: 1 1 auto;
  justify-content: center;
}

.vc-story-tab-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.15) 75%);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}

.vc-idea-preset-picker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
}

.vc-idea-preset-shell {
  position: relative;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(9, 14, 27, 0.96));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  overflow: hidden;
}

.vc-idea-preset-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  pointer-events: none;
}

.vc-idea-preset-shell>* {
  position: relative;
  z-index: 1;
}

.vc-idea-preset-shell .vc-style-refs-head {
  align-items: flex-start;
  gap: 16px;
}

.vc-idea-preset-shell .vc-story-item-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
}

.vc-idea-preset-shell .vc-story-item-title iconify-icon {
  color: #c4b5fd;
}

.vc-idea-preset-shell .vc-story-item-help {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
}

.vc-style-refs-diamond-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(91, 33, 182, 0.12);
  color: #e9ddff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vc-style-refs-diamond-toggle.is-active {
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(180deg, rgba(95, 45, 168, 0.95), rgba(68, 33, 120, 0.95));
  color: #fff7d6;
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#vc-create-ai-script-chooser .vc-create-ai-story-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card {
  min-width: 0;
  min-height: 118px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 58%);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.14);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card--featured {
  border-color: rgba(251, 191, 36, 0.45);
  background:
    linear-gradient(180deg, rgba(71, 50, 10, 0.92), rgba(30, 41, 59, 0.88)),
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 58%);
  box-shadow: 0 10px 20px rgba(120, 53, 15, 0.18);
}

#vc-create-ai-script-chooser .vc-create-ai-story-card:hover,
#vc-create-ai-script-chooser .vc-create-ai-story-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.14), 0 10px 18px rgba(30, 64, 175, 0.12);
  transform: translateY(-1px);
  outline: none;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon {
  font-size: 18px;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon--idea {
  color: #fbbf24;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon--saved {
  color: #a5b4fc;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon--research {
  color: #34d399;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon--audio {
  color: #38bdf8;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-icon--files {
  color: #f59e0b;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #e2e8f0;
}

#vc-create-ai-script-chooser .vc-create-ai-story-card-description {
  font-size: 10px;
  line-height: 1.35;
  color: #cbd5e1;
}

#vc-create-ai-script-chooser .vc-create-ai-story-detail {
  margin-top: 16px;
}

.vc-idea-preset-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 0;
  position: relative;
}

.vc-idea-preset-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.vc-idea-preset-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  flex: 1 1 auto;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vc-idea-preset-search:focus-within {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vc-idea-preset-search iconify-icon {
  font-size: 18px;
  color: #93c5fd;
  flex: 0 0 auto;
}

.vc-idea-preset-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

.vc-idea-preset-search-input::placeholder {
  color: #94a3b8;
}

.vc-idea-preset-search-clear {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  visibility: hidden;
}

.vc-idea-preset-search-clear:hover {
  background: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

.vc-idea-preset-search-meta {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
  color: rgba(191, 219, 254, 0.86);
  font-weight: 600;
}

.vc-idea-preset-search-meta-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.vc-idea-preset-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  flex: 1 1 auto;
  max-height: none;
  contain: layout paint;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

.vc-idea-preset-scroller::-webkit-scrollbar {
  height: 8px;
}

.vc-idea-preset-scroller::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.vc-idea-preset-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(10px);
}

.vc-idea-preset-nav iconify-icon {
  --iconify-width: 16px;
  --iconify-height: 16px;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  min-width: 16px;
  min-height: 16px;
}

.vc-idea-preset-prev iconify-icon {
  transform: translateX(-1px);
}

.vc-idea-preset-next iconify-icon {
  transform: translateX(1px);
}

.vc-idea-preset-nav:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(30, 41, 59, 0.92);
}

.vc-model-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.vc-model-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.vc-model-scroller::-webkit-scrollbar {
  height: 6px;
}

.vc-model-scroller::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.vc-model-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  color: #e5e7eb;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  cursor: pointer;
  position: relative;
}

.vc-model-card:hover,
.vc-model-card:focus-visible {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  outline: none;
}

.vc-model-card.is-selected {
  border-width: 2px;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
  padding: 5px;
}

.vc-model-card-thumb {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(15, 23, 42, 0.6);
}

.vc-model-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
  text-align: center;
}

#vc-idea-video-model-select,
#vc-idea-image-model-select {
  display: none !important;
}

.vc-diamonds-tooltip-wrap {
  position: relative;
  align-items: center;
  gap: 6px;
}

.vc-diamonds-refresh-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.vc-diamonds-refresh-btn iconify-icon {
  font-size: 16px;
  line-height: 1;
}

.vc-diamonds-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.vc-diamonds-tooltip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.vc-diamonds-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(99, 102, 241, 0.35);
  border-top: 1px solid rgba(99, 102, 241, 0.35);
}

.vc-diamonds-tooltip-wrap:hover .vc-diamonds-tooltip,
.vc-diamonds-tooltip-wrap:focus-within .vc-diamonds-tooltip,
.vc-diamonds-tooltip:hover,
.vc-diamonds-tooltip:focus-within {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.vc-diamonds-tooltip-title {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.01em;
}

.vc-diamonds-tooltip-body {
  max-width: 240px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.88);
  text-align: center;
}

.vc-diamonds-tooltip-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: 1px solid rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.vc-diamonds-tooltip-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.vc-topic-mode-custom {
  border-color: rgba(148, 163, 184, 0.55);
}

.vc-idea-preset-thumb {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 55%);
  color: #e5e7eb;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 clamp(220px, 22vw, 270px);
  min-width: clamp(220px, 22vw, 270px);
  min-height: 194px;
  cursor: pointer;
  position: relative;
  text-align: left;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
  scroll-snap-align: start;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.vc-idea-preset-thumb:hover,
.vc-idea-preset-thumb:focus-visible {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 12px 22px rgba(30, 27, 75, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.vc-idea-preset-thumb.is-selected {
  border-width: 1px;
  border-color: rgba(196, 181, 253, 0.98);
  background:
    linear-gradient(180deg, rgba(49, 46, 129, 0.34), rgba(30, 41, 59, 0.88)),
    radial-gradient(circle at top left, rgba(196, 181, 253, 0.28), transparent 58%);
  box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.14), 0 16px 32px rgba(76, 29, 149, 0.24);
  padding: 18px 16px 16px;
}

.vc-idea-preset-thumb.is-selected::after {
  content: "Selected";
  position: absolute;
  top: 10px;
  right: 38px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(216, 180, 254, 0.18);
  border: 1px solid rgba(216, 180, 254, 0.48);
  color: #f5ecff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-idea-preset-thumb.is-disabled,
.vc-idea-preset-thumb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vc-idea-preset-thumb-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #bfdbfe;
}

.vc-idea-preset-thumb-glyph {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.vc-idea-preset-thumb-label {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  transition: color 0.15s ease;
}

.vc-idea-preset-label-text {
  color: #e2e8f0;
  transition: color 0.15s ease;
}

.vc-idea-preset-thumb-icon.has-image {
  background-color: rgba(15, 23, 42, 0.9);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1 / 1;
  border-color: rgba(196, 181, 253, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(2, 6, 23, 0.16);
}

.vc-idea-preset-thumb-description {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.92);
  flex: 1 1 auto;
}

.vc-idea-preset-thumb:hover .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb:focus-visible .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb.is-selected .vc-idea-preset-thumb-label,
.vc-idea-preset-thumb:hover .vc-idea-preset-label-text,
.vc-idea-preset-thumb:focus-visible .vc-idea-preset-label-text,
.vc-idea-preset-thumb.is-selected .vc-idea-preset-label-text {
  color: #93c5fd;
}

.vc-idea-preset-diamond-tag {
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.vc-idea-preset-star {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.48);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.vc-idea-preset-star:hover {
  background: rgba(30, 41, 59, 0.84);
  color: #fcd34d;
}

.vc-idea-preset-lock-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.vc-idea-preset-description {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 0;
  text-align: left;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
}

.vc-idea-preset-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.vc-idea-preset-preview {
  position: relative;
  min-height: 300px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.34);
}

.vc-idea-preset-preview-media {
  position: absolute;
  inset: 0;
  transform: scale(1.01);
}

.vc-idea-preset-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  will-change: opacity;
}

.vc-idea-preset-preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.5) 72%, rgba(2, 6, 23, 0.82)),
    radial-gradient(circle at 18% 72%, rgba(99, 102, 241, 0.2), transparent 28%);
}

.vc-idea-preset-preview-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  background: rgba(15, 23, 42, 0.72);
  color: #f5f3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.vc-idea-preset-preview-chip iconify-icon {
  color: #ddd6fe;
}

.vc-idea-preset-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.vc-idea-preset-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.vc-idea-preset-preview-title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  font-weight: 800;
  color: #f8fafc;
  text-wrap: balance;
}

.vc-idea-preset-notes {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(191, 219, 254, 0.88);
}

.vc-idea-preset-copy .vc-inline-315 {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  margin-top: 4px;
}

.vc-idea-preset-empty {
  flex: 0 0 100%;
  min-height: 150px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  text-align: center;
}

.vc-idea-preset-empty iconify-icon {
  font-size: 24px;
  color: #93c5fd;
}

.vc-idea-preset-empty-glyph {
  font-size: 24px;
  font-weight: 800;
  color: #93c5fd;
}

.vc-story-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.vc-story-tab-btn.is-active {
  border-color: rgba(99, 102, 241, 0.65);
  color: #f8fafc;
  background: radial-gradient(circle at 35% 35%, rgba(129, 140, 248, 0.55), rgba(99, 102, 241, 0.28) 45%, rgba(67, 56, 202, 0.35) 78%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 10px 16px rgba(30, 27, 75, 0.35), 0 0 0 2px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vc-story-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6), 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.35);
}

.vc-story-tab-btn iconify-icon {
  font-size: 18px;
}

@media (max-width: 1200px) {
  #vc-create-ai-script-chooser .vc-create-ai-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vc-idea-preset-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #vc-create-ai-script-chooser .vc-create-ai-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #vc-create-ai-script-chooser .vc-create-ai-story-card {
    min-height: 0;
  }

  .vc-idea-preset-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vc-idea-preset-rail {
    gap: 0;
  }

  .vc-idea-preset-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .vc-idea-preset-search-meta {
    white-space: normal;
  }

  .vc-idea-preset-scroller {
    gap: 14px;
    padding-bottom: 8px;
  }

  .vc-idea-preset-thumb {
    flex-basis: min(82vw, 270px);
    min-width: min(82vw, 270px);
    min-height: 0;
  }

  .vc-idea-preset-nav {
    display: none;
  }

  .vc-idea-preset-showcase {
    gap: 18px;
  }

  .vc-idea-preset-preview {
    min-height: 240px;
  }

  .vc-idea-preset-preview-title {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  #vc-create-ai-script-chooser .vc-create-ai-story-grid {
    grid-template-columns: 1fr;
  }
}

.vc-story-tab-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 20;
}

.vc-story-setup-panel {
  overflow: visible;
}

.vc-story-tab-btn:hover .vc-story-tab-tooltip,
.vc-story-tab-btn:focus-visible .vc-story-tab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vc-story-section[data-vc-story-tab-active="false"] {
  display: none;
}

.vc-voiceover-status-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.vc-voiceover-status {
  font-size: 13px;
  color: #e5e7eb;
  text-align: center;
}

.vc-voiceover-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.vc-voiceover-progress-bar {
  width: 0%;
  height: 100%;
  background: #a855f7;
  transition: width 0.2s ease;
}

.vc-color-picker {
  width: 60px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
}

.vc-color-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
}

.vc-inspector-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 15px;
  cursor: pointer;
}

/* Style all selects in video creator */
#vc-edit-form select,
#vc-inspector-content select,
.vc-inspector-field select {
  padding: 12px 16px !important;
  font-size: 15px !important;
  cursor: pointer !important;
}

.vc-inspector-styling-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Purple gradient buttons for Find Images and Find Videos */
#vc-find-images,
#vc-find-video,
#vc-find-images-edit,
#vc-find-video-edit,
#focus-find-images,
#focus-find-videos {
  transition: all 0.2s ease;
}

#vc-find-images:hover,
#vc-find-video:hover,
#vc-find-images-edit:hover,
#vc-find-video-edit:hover,
#focus-find-images:hover,
#focus-find-videos:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

#vc-find-images:active,
#vc-find-video:active,
#vc-find-images-edit:active,
#vc-find-video-edit:active,
#focus-find-images:active,
#focus-find-videos:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

/* Selection styles for video creator items - solid line instead of dotted, thinner */
#vc-asset-items [data-item-id]:focus,
#vc-asset-items [data-item-id]:focus-visible,
#vc-asset-items>div:focus,
#vc-asset-items>div:focus-visible {
  outline: 1px solid rgba(99, 102, 241, 0.7) !important;
  outline-offset: 2px;
  outline-style: solid !important;
}

/* Override any dotted/dashed outlines on selected items */
#vc-asset-items [data-item-id].selected,
#vc-asset-items [data-item-id][aria-selected="true"],
#vc-asset-items>div.selected {
  outline: 1px solid rgba(99, 102, 241, 0.7) !important;
  outline-offset: 2px;
  outline-style: solid !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline tracks (Video + Audio, Canva-like expand/collapse)                 */
/* -------------------------------------------------------------------------- */
.vc-timeline {
  /* Canva-ish scale: 10s ≈ 240px */
  --vc-pps: 24;
  --vc-timeline-height: 276px;
  /* Taller scrub ruler so the time band is easier to grab. */
  --vc-ruler-height: 58px;
  --vc-lane-gap: 8px;
  --vc-lane-inset: 3px;
  --vc-lane-radius: 10px;
  --vc-lane-cta-font-size: 13px;
  --vc-gutter-width: 236px;
  --vc-video-lane-height: 104px;
  --vc-text-lane-height: 104px;
  --vc-audio-lane-height: 104px;
}

/* -------------------------------------------------------------------------- */
/* Preview playbar (below preview): show only play button (no pill chrome)     */
/* -------------------------------------------------------------------------- */
.vc-playbar {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.vc-play-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.vc-play-button-container .vc-play-time {
  display: inline-block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  color: rgba(229, 231, 235, 0.92);
}

.vc-play-button-container .vc-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.20);
  border: 2px solid rgba(99, 102, 241, 0.32);
  color: #818cf8;
}

/* -------------------------------------------------------------------------- */
/* Preview aspect ratio lock (always 16:9, centered, responsive)               */
/* -------------------------------------------------------------------------- */
#vc-preview-wrap {
  /* Outer container should be allowed to be wide; inner stage holds the 16:9 frame. */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: auto;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.36) transparent;
}

#vc-preview-stage,
#vc-preview-stage-edit {
  /* JS sets explicit width/height; these are safe fallbacks */
  aspect-ratio: var(--vc-preview-aspect, 16 / 9);
  /* Square border + only the stage is black */
  border-radius: 0 !important;
  background: #000;
  /* Make hover/select states feel like the preview splitter hover. */
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

#vc-preview-stage>canvas#vc-canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}

#vc-preview-stage-edit>canvas#vc-canvas-edit {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}

.vc-preview-zoom-viewport {
  overscroll-behavior: contain;
}

.vc-preview-zoom-stage {
  flex-shrink: 0;
}

.vc-preview-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.vc-playbar {
  position: relative;
}

.vc-playbar .vc-preview-zoom-controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.vc-preview-zoom-btn,
.vc-preview-zoom-label {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(226, 232, 240, 0.94);
  cursor: pointer;
}

.vc-preview-zoom-label {
  width: 48px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vc-preview-zoom-btn:hover,
.vc-preview-zoom-label:hover {
  background: rgba(255, 255, 255, 0.09);
}

body.vc-preview-modal-open .vc-preview-zoom-controls {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Preview hover/select affordance (border like the splitter hover)            */
/* -------------------------------------------------------------------------- */
#vc-preview-stage.vc-preview-hovered,
#vc-preview-stage.vc-preview-selected {
  border-color: rgba(129, 140, 248, 0.70) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.14),
    0 10px 26px rgba(99, 102, 241, 0.14),
    0 0 18px rgba(129, 140, 248, 0.35);
}

#vc-preview-stage.vc-preview-selected {
  /* Slightly stronger to read as "locked in" after click */
  border-color: rgba(168, 85, 247, 0.85) !important;
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.22),
    0 14px 34px rgba(99, 102, 241, 0.16),
    0 0 22px rgba(168, 85, 247, 0.30);
}

/* -------------------------------------------------------------------------- */
/* Preview vertical splitter (below playbar)                                   */
/* -------------------------------------------------------------------------- */
.vc-preview-splitter {
  width: 100%;
  /* Large hit-area, thin visual line */
  height: 22px;
  margin: 8px 0 10px;
  cursor: row-resize;
  touch-action: none;
  /* ensure drag events aren't converted into scrolling in webviews */
  position: relative;
  flex: 0 0 auto;
  z-index: 50;
  pointer-events: auto;
}

.vc-preview-splitter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 2px;
  border-radius: 999px;
  /* Full-width line that "tapers" (fades) at the ends */
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.00) 0%,
      rgba(255, 255, 255, 0.06) 6%,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0.12) 80%,
      rgba(255, 255, 255, 0.06) 94%,
      rgba(255, 255, 255, 0.00) 100%);
  transition: background 140ms ease, box-shadow 140ms ease, height 140ms ease;
  pointer-events: none;
}

.vc-preview-splitter:hover::before,
body.vc-preview-resizing .vc-preview-splitter::before {
  height: 2px;
  background: linear-gradient(90deg,
      rgba(129, 140, 248, 0.00) 0%,
      rgba(129, 140, 248, 0.18) 6%,
      rgba(129, 140, 248, 0.70) 22%,
      rgba(168, 85, 247, 0.70) 78%,
      rgba(129, 140, 248, 0.18) 94%,
      rgba(129, 140, 248, 0.00) 100%);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.14),
    0 10px 26px rgba(99, 102, 241, 0.14),
    0 0 18px rgba(129, 140, 248, 0.35);
}

.vc-preview-splitter:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.65);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Auto sidebars: hover peek + pin button on splitters                         */
/* -------------------------------------------------------------------------- */
.vc-splitter {
  position: relative;
}

.vc-sidebar-pin-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: rgba(229, 231, 235, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  z-index: 30;
}

.vc-sidebar-pin-btn iconify-icon {
  font-size: 14px;
}

.vc-splitter:hover .vc-sidebar-pin-btn,
.vc-left-sidebar:hover+.vc-splitter .vc-sidebar-pin-btn,
.vc-right-sidebar:hover~.vc-splitter .vc-sidebar-pin-btn {
  opacity: 1;
  pointer-events: auto;
}

.vc-sidebar-pin-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
}

.vc-sidebar-pin-btn--left {
  left: 50%;
  transform: translate(-50%, -50%);
}

.vc-sidebar-pin-btn--right {
  left: 50%;
  transform: translate(-50%, -50%);
}

.vc-sidebar-pin-btn[data-mode="open"] {
  opacity: 1;
  pointer-events: auto;
}

.vc-sidebar-pin-btn[data-mode="closed"] {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* Left sidebar collapsed rail                                                 */
/* -------------------------------------------------------------------------- */
/* Free user gating - hide sidebars and toggle buttons */
body.is-free-user .vc-left-sidebar,
body.is-free-user .vc-right-sidebar,
body.is-free-user .vc-splitter,
body.is-free-user #vc-toggle-left,
body.is-free-user #vc-toggle-right {
  display: none !important;
}

body.is-free-user #vc-sidebar-toggles-container {
  display: none !important;
}

.vc-left-sidebar .vc-sidebar-rail {
  display: none;
}

.vc-left-sidebar.collapsed .vc-sidebar-rail {
  display: flex;
}

.vc-left-sidebar.collapsed> :not(.vc-sidebar-rail) {
  display: none !important;
}

.vc-sidebar-rail {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  box-sizing: border-box;
}

.vc-sidebar-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-sidebar-rail-btn iconify-icon {
  font-size: 18px;
}

.vc-sidebar-rail-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.28);
}

.vc-timeline.vc-timeline--audio-expanded {
  --vc-video-track-height: 84px;
  --vc-audio-track-height: 220px;
}

.vc-timeline {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  height: var(--vc-timeline-height);
  border-radius: 0;
  background: transparent;
  border: none;
  position: relative;
}

.vc-timeline-panel {
  /* Remove the outer wrapper chrome so we don't get "panel inside panel" spacing */
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.vc-timeline-panel::before {
  display: none !important;
}

.vc-timeline .vc-track-rail {
  width: var(--vc-gutter-width);
  flex: 0 0 var(--vc-gutter-width);
  min-width: var(--vc-gutter-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.vc-timeline .vc-track-rail-header {
  height: calc(var(--vc-ruler-height) + var(--vc-lane-gap) + 15px);
  padding: 10px 14px 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.92));
}

.vc-timeline .vc-track-rail-title {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
}

.vc-timeline .vc-track-rail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.vc-timeline .vc-track-rail-media-btn,
.vc-timeline .vc-track-rail-blade-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.88);
  color: rgba(226, 232, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.vc-timeline .vc-track-rail-media-btn {
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.96), rgba(91, 33, 182, 0.96));
  border-color: rgba(196, 181, 253, 0.55);
  color: rgba(248, 250, 252, 0.98);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.28);
}

.vc-timeline .vc-track-rail-media-btn:hover,
.vc-timeline .vc-track-rail-media-btn:focus-visible,
.vc-timeline .vc-track-rail-blade-btn:hover,
.vc-timeline .vc-track-rail-blade-btn:focus-visible {
  background: rgba(79, 70, 229, 0.24);
  border-color: rgba(129, 140, 248, 0.5);
  transform: translateY(-1px);
}

.vc-timeline .vc-track-rail-media-btn:hover,
.vc-timeline .vc-track-rail-media-btn:focus-visible {
  background: linear-gradient(180deg, rgba(124, 58, 237, 1), rgba(109, 40, 217, 1));
  border-color: rgba(221, 214, 254, 0.78);
  box-shadow: 0 12px 24px rgba(91, 33, 182, 0.34);
}

.vc-timeline .vc-track-rail-media-btn:focus-visible,
.vc-timeline .vc-track-rail-blade-btn:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.52);
  outline-offset: 2px;
}

.vc-timeline .vc-track-rail-blade-btn.is-active,
.vc-timeline .vc-track-rail-blade-btn[aria-pressed="true"] {
  background: rgba(153, 27, 27, 0.88);
  border-color: rgba(252, 165, 165, 0.78);
  color: rgba(255, 241, 242, 0.98);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18), 0 10px 22px rgba(127, 29, 29, 0.32);
}

.vc-timeline .vc-track-rail-viewport {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.vc-timeline .vc-track-rail-viewport::-webkit-scrollbar {
  display: none;
}

.vc-timeline .vc-track-rail-footer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
}

.vc-timeline .vc-track-rail-spacer {
  height: 8px;
}

.vc-timeline .vc-track-rail-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 10px var(--vc-track-rail-footer-clearance, 96px) 12px;
  box-sizing: border-box;
  will-change: transform;
}

.vc-timeline .vc-track-creator {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-timeline .vc-track-creator__toggle {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.2), rgba(30, 41, 59, 0.92));
  color: rgba(238, 242, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.24);
}

.vc-timeline .vc-track-creator__toggle iconify-icon {
  font-size: 18px;
  line-height: 1;
}

.vc-timeline .vc-track-creator__toggle:hover,
.vc-timeline .vc-track-creator__toggle:focus-visible,
.vc-timeline .vc-track-creator.is-open .vc-track-creator__toggle {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.52);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.34), rgba(30, 41, 59, 0.96));
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.32);
}

.vc-timeline .vc-track-creator__toggle:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.52);
  outline-offset: 2px;
}

.vc-timeline .vc-track-creator__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: max-height 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.vc-timeline .vc-track-creator.is-open .vc-track-creator__actions {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vc-timeline .vc-track-creator__action {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.94);
  color: rgba(226, 232, 240, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.vc-timeline .vc-track-creator__action iconify-icon {
  font-size: 14px;
  line-height: 1;
}

.vc-timeline .vc-track-creator__action:hover,
.vc-timeline .vc-track-creator__action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(51, 65, 85, 0.98);
  color: #ffffff;
}

.vc-timeline .vc-track-creator__action:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.48);
  outline-offset: 2px;
}

.vc-timeline .vc-track-rail-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-margin-top: 12px;
  scroll-margin-bottom: var(--vc-track-rail-footer-clearance, 96px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.vc-timeline .vc-track-rail-row.is-locked {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.vc-timeline .vc-track-rail-row-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-height: 0;
  padding: 10px 10px 8px;
  box-sizing: border-box;
}

.vc-timeline .vc-track-rail-lock {
  flex: 0 0 54px;
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  align-self: flex-start;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.08);
  color: rgba(199, 210, 254, 0.95);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.vc-timeline .vc-track-rail-lock iconify-icon {
  font-size: 18px;
  line-height: 1;
}

.vc-timeline .vc-track-rail-lock[data-locked="true"] {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
  color: rgba(254, 202, 202, 0.98);
}

.vc-timeline .vc-track-rail-lock:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.34);
}

.vc-timeline .vc-track-rail-lock[data-locked="true"]:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.36);
}

.vc-timeline .vc-track-rail-labels {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  align-self: stretch;
}

.vc-timeline .vc-track-rail-delete {
  flex: 0 0 auto;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  align-self: flex-start;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.18);
  color: rgba(254, 202, 202, 0.98);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.vc-timeline .vc-track-rail-delete iconify-icon {
  font-size: 15px;
  line-height: 1;
}

.vc-timeline .vc-track-rail-delete:hover,
.vc-timeline .vc-track-rail-delete:focus-visible {
  background: rgba(220, 38, 38, 0.28);
  border-color: rgba(252, 165, 165, 0.42);
  color: rgba(255, 228, 230, 1);
  transform: translateY(-1px);
}

.vc-timeline .vc-track-rail-delete:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.4);
  outline-offset: 2px;
}

.vc-timeline .vc-track-rail-code {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: rgba(199, 210, 254, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vc-timeline .vc-track-rail-name {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 245, 249, 0.96);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.vc-timeline .vc-track-rail-name::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.vc-timeline .vc-track-rail-name:hover,
.vc-timeline .vc-track-rail-name:focus,
.vc-timeline .vc-track-rail-name:focus-visible,
.vc-timeline .vc-track-rail-name:active {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.vc-timeline .vc-track-rail-name:focus {
  outline: none;
}

.vc-timeline .vc-track-rail-row.is-locked .vc-track-rail-name {
  opacity: 0.68;
  cursor: default;
}

.vc-timeline .vc-track-rail-resize {
  position: relative;
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent;
  cursor: ns-resize;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.vc-timeline .vc-track-rail-resize:hover,
.vc-timeline .vc-track-rail-resize:active,
.vc-timeline .vc-track-rail-resize:focus,
.vc-timeline .vc-track-rail-resize:focus-visible {
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.vc-timeline .vc-track-rail-resize[data-locked="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.vc-timeline .vc-track-rail-resize::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.vc-timeline .vc-track-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: 8px 10px 10px;
}

.vc-timeline .vc-track-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--vc-lane-gap);
  min-width: max-content;
  /* allow horizontal scroll */
  padding-top: 4px;
  padding-bottom: calc(6px + var(--vc-track-rail-footer-clearance, 96px));
}

.vc-timeline .vc-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vc-timeline .vc-track-header {
  display: none !important;
  /* Canva-style: no per-track headers */
}

.vc-timeline .vc-track-header .vc-track-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vc-timeline .vc-track-header .vc-track-hint {
  color: rgba(148, 163, 184, 0.9);
  font-size: 11px;
  font-weight: 550;
}

.vc-timeline .vc-track-row {
  position: relative;
  display: block;
  scroll-margin-top: 12px;
  scroll-margin-bottom: calc(var(--vc-track-rail-footer-clearance, 96px) - 12px);
  min-height: 1px;
  border-radius: var(--vc-lane-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--vc-lane-inset);
}

.vc-timeline .vc-track-row--locked {
  opacity: 0.72;
  filter: saturate(0.7);
}

.vc-timeline .vc-track-row--locked::after {
  content: "Locked";
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 24;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: rgba(254, 202, 202, 0.98);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.vc-media-catalog-modal {
  z-index: 2147482500;
}

.vc-media-catalog-modal__content {
  width: min(1120px, 94vw);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.vc-media-catalog-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vc-media-catalog-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.vc-media-catalog-modal__subtitle {
  margin: 8px 0 0;
  color: rgba(148, 163, 184, 0.95);
  font-size: 14px;
}

.vc-media-catalog-modal__exit {
  flex: 0 0 auto;
  min-width: 88px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.9);
  color: rgba(241, 245, 249, 0.96);
  font-weight: 700;
  cursor: pointer;
}

.vc-media-catalog-modal__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.vc-media-catalog-modal__search {
  flex: 1 1 320px;
  min-width: 240px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.92);
  color: rgba(241, 245, 249, 0.98);
  padding: 0 14px;
}

.vc-media-catalog-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vc-media-catalog-tag {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.72);
  color: rgba(226, 232, 240, 0.92);
  font-weight: 650;
  cursor: pointer;
}

.vc-media-catalog-tag.is-active {
  background: rgba(79, 70, 229, 0.24);
  border-color: rgba(129, 140, 248, 0.48);
  color: #c7d2fe;
}

.vc-media-catalog-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.vc-media-catalog-modal__list {
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding-right: 6px;
  border-radius: 18px;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.vc-media-catalog-modal__list.is-drop-active {
  background: rgba(79, 70, 229, 0.08);
  box-shadow: inset 0 0 0 2px rgba(129, 140, 248, 0.32);
}

.vc-media-catalog-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.86);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vc-media-catalog-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vc-media-catalog-card__title-wrap {
  min-width: 0;
}

.vc-media-catalog-card__title {
  font-size: 16px;
  font-weight: 750;
  color: rgba(241, 245, 249, 0.98);
  word-break: break-word;
}

.vc-media-catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.vc-media-catalog-card__badge,
.vc-media-catalog-card__uses {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.vc-media-catalog-card__badge {
  background: rgba(79, 70, 229, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.vc-media-catalog-card__uses {
  background: rgba(30, 41, 59, 0.9);
  color: rgba(191, 219, 254, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.vc-media-catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.vc-media-catalog-card__btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.86);
  color: rgba(226, 232, 240, 0.96);
  font-weight: 700;
  cursor: pointer;
}

.vc-media-catalog-card__type-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.86);
  color: rgba(226, 232, 240, 0.96);
  font-weight: 700;
}

.vc-media-catalog-card__btn--danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.36);
  color: #fecaca;
}

.vc-media-catalog-card__placements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-media-catalog-card__placement {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.94);
  color: rgba(226, 232, 240, 0.94);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vc-media-catalog-card__preview {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.78);
  padding: 12px;
}

.vc-media-catalog-preview-media,
.vc-media-catalog-preview-image {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: #020617;
}

.vc-media-catalog-preview-image {
  max-height: 320px;
  object-fit: contain;
}

.vc-media-catalog-empty {
  min-height: 180px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.96);
  font-weight: 650;
  text-align: center;
  gap: 18px;
  padding: 40px 32px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.vc-media-catalog-empty.is-drop-active {
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(79, 70, 229, 0.12);
}

.vc-media-catalog-empty:hover,
.vc-media-catalog-empty:focus-visible {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(79, 70, 229, 0.08);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.2);
}

.vc-media-catalog-empty:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.52);
  outline-offset: 2px;
}

.vc-media-catalog-empty__title {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.22);
}

.vc-media-catalog-empty__subtitle {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.2;
  color: rgba(148, 163, 184, 0.22);
  max-width: 720px;
}

@media (max-width: 900px) {
  .vc-media-catalog-modal__header,
  .vc-media-catalog-card__header {
    flex-direction: column;
  }

  .vc-media-catalog-card__actions {
    justify-content: flex-start;
  }

  .vc-media-catalog-empty__title {
    font-size: 32px;
  }

  .vc-media-catalog-empty__subtitle {
    font-size: 18px;
  }

  .vc-media-catalog-empty {
    padding: 28px 20px;
    gap: 14px;
  }
}

.vc-timeline .vc-track-row.vc-track-row--drop {
  outline: 2px dashed rgba(99, 102, 241, 0.55);
  outline-offset: -2px;
}

/* Live reordering feedback (timeline drag) */
.vc-timeline .vc-track-row.vc-reordering .vc-track-item:not(.vc-item-dragging):not(.vc-item-resizing) {
  transition: left 90ms ease;
}

.vc-timeline .vc-timeline-snap-guide {
  position: absolute;
  top: 0;
  bottom: calc(6px + var(--vc-track-rail-footer-clearance, 96px));
  width: 2px;
  transform: translateX(-50%);
  z-index: 46;
  pointer-events: none;
  display: none;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.95);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.2),
    0 0 16px rgba(56, 189, 248, 0.46);
}

.vc-timeline .vc-timeline-snap-guide::before,
.vc-timeline .vc-timeline-snap-guide::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #e0f2fe;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.vc-timeline .vc-timeline-snap-guide::before {
  top: 0;
}

.vc-timeline .vc-timeline-snap-guide::after {
  bottom: 0;
}

.vc-timeline .vc-track-row .vc-reorder-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
  border-radius: 2px;
  z-index: 30;
  pointer-events: none;
  display: none;
}

/* In-lane add controls (Canva-style) */
.vc-timeline .vc-lane-add {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--vc-lane-radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.vc-timeline .vc-lane-add--media {
  min-width: 240px;
  /* Remove the container "pill" — keep only the button bordered */
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.vc-timeline .vc-lane-add.is-locked {
  opacity: 0.42;
  filter: grayscale(0.3);
}

.vc-timeline .vc-lane-add--audio {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
  transition: opacity 0.18s ease;
}

.vc-timeline .vc-lane-add--text {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.vc-timeline .vc-lane-add--overlay {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.vc-timeline .vc-lane-add .vc-add-media {
  width: 54px;
  height: 54px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-timeline .vc-lane-add__text {
  color: rgba(148, 163, 184, 0.95);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.vc-timeline .vc-lane-add .vc-add-audio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  font-size: var(--vc-lane-cta-font-size);
  font-weight: 700;
}

.vc-timeline .vc-lane-add--audio .vc-add-audio-trigger {
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease,
    padding 0.18s ease,
    margin 0.18s ease,
    border-color 0.18s ease;
}

.vc-timeline .vc-lane-add--audio .vc-audio-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-8px);
  pointer-events: none;
  transition:
    max-width 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.vc-timeline .vc-lane-add--audio.is-open .vc-add-audio-trigger {
  max-width: 0;
  opacity: 0;
  transform: translateX(-10px);
  padding-left: 0;
  padding-right: 0;
  margin-right: 0;
  border-color: transparent;
}

.vc-timeline .vc-lane-add--audio.is-open .vc-audio-quick-actions {
  max-width: 420px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  overflow: visible;
}

.vc-timeline .vc-lane-add--audio.is-closing {
  opacity: 0;
  pointer-events: none;
}

.vc-timeline .vc-lane-add--audio.is-open,
.vc-timeline .vc-lane-add--audio:has(.vc-audio-quick-action:hover) {
  overflow: visible;
}

.vc-timeline .vc-lane-add--audio .vc-audio-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.88);
  color: rgba(229, 231, 235, 0.95);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.vc-timeline .vc-lane-add--audio .vc-audio-quick-action:hover {
  transform: translateY(-1px);
  z-index: 2;
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(30, 41, 59, 0.96);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
  color: #ffffff;
}

.vc-timeline .vc-lane-add .vc-add-text,
.vc-timeline .vc-lane-add .vc-add-shape {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--vc-lane-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.92);
  cursor: pointer;
  font-size: var(--vc-lane-cta-font-size);
  font-weight: 700;
}

/* Hide the old left gutter if it exists from a previous render */
.vc-timeline-left {
  display: none !important;
}

.vc-timeline .vc-track--video .vc-track-row {
  height: var(--vc-row-base-height, var(--vc-video-lane-height));
}

.vc-timeline .vc-track--audio .vc-track-row {
  height: var(--vc-row-base-height, var(--vc-audio-lane-height));
}

.vc-timeline .vc-track--text .vc-track-row {
  height: var(--vc-row-base-height, var(--vc-text-lane-height));
}

.vc-timeline .vc-track--color-grade .vc-track-row {
  height: var(--vc-row-base-height, var(--vc-text-lane-height));
}

.vc-timeline .vc-track-item {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  padding: 6px 8px !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px !important;
  border: 1px solid var(--vc-item-border, rgba(255, 255, 255, 0.10)) !important;
  background: var(--vc-item-bg, rgba(255, 255, 255, 0.06)) !important;
  /* Always show a subtle type-colored accent stripe so items are scannable at a glance */
  box-shadow: inset 3px 0 0 var(--vc-item-accent, rgba(129, 140, 248, 0.55));
  overflow: hidden;
  cursor: grab;
}

/* Timeline item delete button removed — deletion is now via right-click context menu. */

.vc-timeline .vc-track-item.vc-item-dragging {
  cursor: grabbing;
  opacity: 0.92;
  border-color: var(--vc-item-accent, rgba(99, 102, 241, 0.45)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  /* First principles: the dragged item must track the pointer exactly (no easing/lag). */
  transition: none !important;
}

.vc-timeline.vc-timeline--dragging,
.vc-timeline.vc-timeline--dragging * {
  cursor: grabbing !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline context menu (right-click on an item)                              */
/* -------------------------------------------------------------------------- */
.vc-context-menu {
  position: fixed;
  z-index: 30000;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.vc-context-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(229, 231, 235, 0.95);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vc-context-menu-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vc-context-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.95;
}

.vc-context-menu-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.vc-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.vc-context-menu-item--danger {
  color: rgba(254, 202, 202, 0.98);
}

.vc-context-menu-item--danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

/* In track view, keep items "timeline-like" by default: show header + waveform/thumb, hide action buttons until hover/focus. */
.vc-timeline .vc-track-item__actions {
  display: none !important;
}

.vc-timeline .vc-track-item:hover .vc-track-item__actions,
.vc-timeline .vc-track-item:focus-within .vc-track-item__actions {
  display: none !important;
}

/* Remove in-timeline action buttons and "Add Asset" tile (Canva-style timeline is clean) */
.vc-timeline .duplicate-btn,
.vc-timeline .remove-btn,
.vc-timeline #vc-add-asset-btn {
  display: none !important;
}

/* Make track items feel like timeline blocks (not cards) */
.vc-timeline .duration-badge,
.vc-timeline .audio-badge,
.vc-timeline .handle {
  display: none !important;
}

.vc-timeline .vc-track-item {
  /* Needed so resize handles can be positioned reliably. */
  position: absolute;
}

.vc-timeline .vc-track-item--locked {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.vc-timeline .vc-track-item--locked .vc-track-item__settings,
.vc-timeline .vc-track-item--locked .vc-clip-handle,
.vc-timeline .vc-track-item--locked .vc-track-item__automation {
  opacity: 0.45;
  pointer-events: none;
}

.vc-timeline .vc-track-item__automation-toggle {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px 10px 7px 7px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(203, 213, 225, 0.86));
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.vc-timeline .vc-track-item__automation-toggle:hover,
.vc-timeline .vc-track-item__automation-toggle:focus-visible,
.vc-timeline .vc-track-item__automation-toggle.is-active {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.vc-timeline .vc-track-item__automation-toggle:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.68);
  outline-offset: 1px;
}

.vc-timeline .vc-track-item__automation-notch {
  width: 7px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.96), rgba(30, 41, 59, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.vc-track-item__audio-link {
  display: none;
}

.vc-timeline .vc-track-item__audio-link {
  position: absolute;
  top: 6px;
  left: 30px;
  z-index: 6;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(15, 23, 42, 0.84);
  color: rgba(224, 231, 255, 0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease, opacity 120ms ease;
  backdrop-filter: blur(6px);
}

.vc-timeline .vc-track-item__audio-link:hover:not(:disabled),
.vc-timeline .vc-track-item__audio-link:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(165, 180, 252, 0.78);
}

.vc-timeline .vc-track-item__audio-link[data-linked="false"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(69, 10, 10, 0.82);
  color: rgba(254, 202, 202, 0.98);
}

.vc-timeline .vc-track-item__audio-link[data-linked="false"]:hover:not(:disabled),
.vc-timeline .vc-track-item__audio-link[data-linked="false"]:focus-visible:not(:disabled) {
  background: rgba(127, 29, 29, 0.92);
  border-color: rgba(252, 165, 165, 0.72);
}

.vc-timeline .vc-track-item__audio-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vc-timeline .vc-track-item__lock {
  position: absolute;
  top: 6px;
  right: 42px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.95);
}

/* Clip resize handles (start/end trim) */
.vc-timeline .vc-clip-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  z-index: 5;
  /* Make it easy to grab without blocking the whole clip. */
  background: transparent;
  pointer-events: auto;
}

.vc-timeline .vc-clip-handle--start {
  left: -2px;
  cursor: ew-resize;
}

.vc-timeline .vc-clip-handle--end {
  right: -2px;
  cursor: ew-resize;
}

/* Visible affordance on hover/active */
.vc-timeline .vc-track-item:hover .vc-clip-handle::before,
.vc-timeline .vc-track-item.vc-item-resizing .vc-clip-handle::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 4px;
  border-radius: 4px;
  background: rgba(229, 231, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.vc-timeline .vc-track-item:hover .vc-clip-handle--end::before,
.vc-timeline .vc-track-item.vc-item-resizing .vc-clip-handle--end::before {
  left: auto;
  right: 3px;
}

.vc-timeline .vc-track-item {
  border-radius: 8px !important;
}

.vc-timeline .vc-track-item__text,
.vc-timeline .vc-track-item__audio-player {
  display: none !important;
}

.vc-timeline .vc-track-item {
  background: var(--vc-item-bg, rgba(255, 255, 255, 0.04)) !important;
  border-color: var(--vc-item-border, rgba(255, 255, 255, 0.10)) !important;
}

.vc-timeline .vc-track-item.selected,
.vc-timeline .vc-track-item[aria-selected="true"] {
  border-color: var(--vc-item-accent, rgba(99, 102, 241, 0.55)) !important;
}

/* -------------------------------------------------------------------------- */
/* Timeline ruler + playhead                                                   */
/* -------------------------------------------------------------------------- */
.vc-timeline .vc-track-scroll {
  position: relative;
}

.vc-timeline .vc-time-ruler {
  position: sticky;
  top: 0;
  z-index: 120;
  min-width: 100%;
  height: var(--vc-ruler-height);
  margin-bottom: calc(var(--vc-lane-gap) + 15px);
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(2, 6, 23, 0.28);
  box-sizing: border-box;
  /* Labels were getting visually clipped in some layouts; allow them to render fully. */
  overflow: visible;
}

.vc-timeline .vc-time-zoom-overlay {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 140;
  pointer-events: none;
}

.vc-timeline .vc-time-zoom {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 168px;
  min-width: 168px;
  height: 34px;
  padding: 5px 8px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(23, 23, 26, 0.96), rgba(31, 31, 35, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: auto;
  box-sizing: border-box;
}

.vc-timeline .vc-time-zoom-btn {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(23, 23, 26, 0.88);
  color: rgba(241, 245, 249, 0.96);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.vc-timeline .vc-time-zoom-btn iconify-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
}

.vc-timeline .vc-time-zoom-btn:hover,
.vc-timeline .vc-time-zoom-btn:focus-visible {
  background: rgba(44, 44, 48, 0.96);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.24);
}

.vc-timeline .vc-time-zoom-btn:active {
  transform: scale(0.94);
}

.vc-timeline .vc-time-zoom-slider {
  flex: 1 1 auto;
  min-width: 0;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.vc-timeline .vc-time-zoom-slider:focus {
  outline: none;
}

.vc-timeline .vc-time-zoom-slider:focus-visible {
  filter: drop-shadow(0 0 0.3rem rgba(226, 232, 240, 0.28));
}

.vc-timeline .vc-time-zoom-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 56, 61, 0.9), rgba(38, 38, 43, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vc-timeline .vc-time-zoom-slider::-webkit-slider-thumb {
  width: 11px;
  height: 18px;
  margin-top: -8px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #f8fafc;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.34);
  appearance: none;
  -webkit-appearance: none;
}

.vc-timeline .vc-time-zoom-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 56, 61, 0.9), rgba(38, 38, 43, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vc-timeline .vc-time-zoom-slider::-moz-range-thumb {
  width: 11px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #f8fafc;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.34);
}

.vc-timeline .vc-time-zoom-value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vc-timeline .vc-time-ruler-inner {
  position: relative;
  height: 100%;
  min-height: var(--vc-ruler-height);
  min-width: max-content;
}

.vc-timeline .vc-time-tick {
  position: absolute;
  /* Dots instead of vertical lines */
  bottom: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  /* "Platinum" signature purple (match gradient buttons vibe) */
  background: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.18);
  z-index: 1;
}

.vc-timeline .vc-time-tick[data-major="true"] {
  background: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.26);
}

#vc-total {
  opacity: 0.5;
}

.vc-timeline .vc-time-label {
  position: absolute;
  /* Keep labels above the dot ticks with consistent spacing */
  top: auto;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0.80;
  line-height: 1;
  font-weight: 700;
  color: rgba(229, 231, 235, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.vc-timeline .vc-playhead {
  position: absolute;
  top: 0;
  bottom: auto;
  width: 12px;
  margin-left: -6px;
  z-index: 140;
  pointer-events: auto;
  cursor: grab;
}

.vc-timeline .vc-playhead.vc-playhead--dragging {
  cursor: grabbing;
}

.vc-timeline .vc-playhead .vc-playhead-tooltip,
.vc-timeline .vc-ghost-playhead .vc-playhead-tooltip {
  position: absolute;
  left: 50%;
  top: calc(var(--vc-ruler-height, 26px) - 1px);
  transform: translate(-50%, -100%);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  background: linear-gradient(90deg, #6d28d9, #7c3aed, #6366f1, #8b5cf6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
  pointer-events: none;
  z-index: 142;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
}

.vc-timeline:hover .vc-playhead .vc-playhead-tooltip,
.vc-timeline:hover .vc-ghost-playhead .vc-playhead-tooltip {
  opacity: 1;
  visibility: visible;
}

.vc-timeline .vc-ghost-playhead {
  position: absolute;
  top: 0;
  bottom: auto;
  width: 1px;
  z-index: 135;
  pointer-events: none;
  opacity: 1;
}

.vc-timeline .vc-ghost-playhead::before {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 2px);
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(148, 163, 184, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.vc-timeline .vc-ghost-playhead::after {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 14px);
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.65);
}

.vc-timeline.vc-timeline--blade-active [data-item-id] {
  cursor: crosshair !important;
}

.vc-timeline.vc-timeline--blade-active .vc-playhead {
  cursor: crosshair;
}

.vc-timeline.vc-timeline--blade-active .vc-ghost-playhead::before {
  border-color: rgba(255, 228, 230, 0.92);
  background: rgba(239, 68, 68, 0.82);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.28), 0 12px 30px rgba(127, 29, 29, 0.32);
}

.vc-timeline.vc-timeline--blade-active .vc-ghost-playhead::after {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.95), rgba(220, 38, 38, 0.88));
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.34);
}

.vc-timeline.vc-timeline--blade-active .vc-ghost-playhead .vc-playhead-tooltip {
  background: linear-gradient(90deg, #991b1b, #dc2626, #ef4444);
  border-color: rgba(254, 202, 202, 0.55);
}

.vc-timeline .vc-playhead::before {
  content: "";
  position: absolute;
  /* Keep knob below the ruler so it never covers the "0s" label */
  top: calc(var(--vc-ruler-height, 26px) + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(99, 102, 241, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.vc-timeline .vc-playhead::after {
  content: "";
  position: absolute;
  top: calc(var(--vc-ruler-height, 26px) + 14px);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(99, 102, 241, 0.9);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12);
}

/* Keep the top row single-line / compact in track mode */
.vc-timeline .vc-track-item__top {
  flex-wrap: nowrap !important;
}

.vc-timeline .vc-track-item__top .audio-title {
  white-space: nowrap !important;
}

/* Make non-audio (video/text/image) items compact by default */
.vc-timeline .vc-track--video .vc-track-item__thumb {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 10px;
}

.vc-timeline .vc-track--video .vc-track-item__text,
.vc-timeline .vc-track--video>.vc-track-row .vc-track-item>div[style*="-webkit-line-clamp"] {
  /* leave legacy text preview alone; height is constrained by track row */
  display: block;
}

.vc-timeline .vc-track--video .vc-track-item__thumb {
  flex: 1;
  min-height: 0;
}

.vc-timeline .vc-track--video .vc-track-item__thumb-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vc-timeline .vc-track--video .vc-track-item__thumb-strip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1;
}

.vc-timeline .vc-track--video .vc-track-item__thumb-frame {
  flex: 0 0 auto;
  max-width: 96px;
  min-width: 40px;
  overflow: hidden;
  border-right: 1px solid rgba(15, 23, 42, 0.45);
}

.vc-timeline .vc-track--video .vc-track-item__thumb-frame:last-child {
  border-right: 0;
}

.vc-timeline .vc-track--video .vc-track-item__thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-timeline .vc-track--video .vc-track-item__thumb.has-thumb-strip .vc-track-item__thumb-placeholder {
  display: none !important;
}

.vc-timeline.vc-timeline--audio-expanded .vc-track--video .vc-track-item__thumb,
.vc-timeline.vc-timeline--audio-expanded .vc-track--video audio,
.vc-timeline.vc-timeline--audio-expanded .vc-track--video .vc-track-item__audio-controls {
  display: none !important;
}

.vc-timeline .vc-track--audio .vc-track-item__audio-controls {
  display: none;
}

.vc-timeline.vc-timeline--audio-expanded .vc-track--audio .vc-track-item__audio-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Audio waveform is drawn as an overlay inside the audio clip (Advanced Editor style) */
.vc-timeline .vc-track-item--audio .vc-track-item__waveform {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.76)),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 10px);
  opacity: 0.9;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

/* Expanded mode just increases lane height; waveform overlay already fills clip */
.vc-timeline.vc-timeline--audio-expanded .vc-track-item--audio .vc-track-item__waveform {
  opacity: 0.96;
}

.vc-timeline .vc-track-item--audio .vc-track-item__waveform::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(248, 250, 252, 0.1);
  transform: translateY(-0.5px);
}

.vc-timeline .vc-track-item--audio .vc-track-item__waveform canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.98;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: saturate(1.15) contrast(1.22) brightness(1.04);
}

.vc-timeline .vc-track-item--audio .vc-track-item__volume-meter {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  height: 10px;
  pointer-events: none;
  z-index: 3;
}

.vc-timeline .vc-track-item--audio .vc-track-item__volume-block {
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.vc-timeline .vc-track-item--audio .vc-track-item__volume-block.is-active {
  opacity: calc(0.42 + (var(--vc-volume-meter-intensity, 0.5) * 0.58));
}

.vc-timeline .vc-track-item--audio .vc-track-item__volume-meter.is-positive .vc-track-item__volume-block.is-active {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.98), rgba(22, 163, 74, 0.88));
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.28);
}

.vc-timeline .vc-track-item--audio .vc-track-item__volume-meter.is-negative .vc-track-item__volume-block.is-active {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.98), rgba(220, 38, 38, 0.9));
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.vc-timeline .vc-track-item__automation {
  border-radius: 8px;
  overflow: hidden;
}

.vc-timeline .vc-track-item__automation-label {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.94);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 1;
}

.vc-timeline .vc-track-item__automation-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vc-timeline .vc-track-item__automation-reference {
  stroke: rgba(226, 232, 240, 0.28);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.vc-timeline .vc-track-item__automation-fill {
  fill: rgba(125, 211, 252, 0.14);
}

.vc-timeline .vc-track-item__automation--opacity .vc-track-item__automation-fill {
  fill: rgba(167, 139, 250, 0.14);
}

.vc-timeline .vc-track-item__automation-line {
  fill: none;
  stroke: rgba(226, 232, 240, 0.96);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(15, 23, 42, 0.45));
}

.vc-timeline .vc-track-item__automation-point {
  fill: rgba(248, 250, 252, 0.98);
  stroke: rgba(15, 23, 42, 0.88);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.vc-timeline .vc-track-item__automation-point.is-selected {
  fill: #ffffff;
  stroke: rgba(56, 189, 248, 0.98);
  stroke-width: 1.2;
}


/* -------------------------------------------------------------------------- */
/* Hover-only transition button (between adjacent clips)                      */
/* -------------------------------------------------------------------------- */
.vc-timeline .vc-transition-flyout {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%) scale(0.92);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: opacity 140ms ease, transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vc-timeline .vc-transition-flyout.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
  pointer-events: auto;
}

.vc-timeline .vc-transition-flyout__btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.vc-timeline .vc-transition-flyout__btn iconify-icon {
  font-size: 13px;
  color: rgba(199, 210, 254, 0.95);
}

.vc-timeline .vc-transition-flyout__btn:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.78);
}

.vc-timeline .vc-transition-flyout__label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.95);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.85);
  white-space: nowrap;
}

.vc-timeline .vc-track--audio .vc-track-header {
  cursor: pointer;
}

.vc-timeline .vc-track--audio .vc-track-header:focus-within,
.vc-timeline .vc-track--audio .vc-track-header:hover {
  border-color: rgba(99, 102, 241, 0.30);
  background: rgba(99, 102, 241, 0.08);
}

/* Ensure no dotted outlines appear on video creator elements */
#vc-editor *:focus,
#vc-editor *:focus-visible,
#vc-edit-panel *:focus,
#vc-edit-panel *:focus-visible,
#vc-inspector-content *:focus,
#vc-inspector-content *:focus-visible {
  outline-style: solid !important;
  outline-width: 1px !important;
}

/* Custom Scale Slider Styling */
.vc-scale-slider-container {
  position: relative;
}

.vc-custom-scale-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  transition: background 0.2s;
}

.vc-custom-scale-slider:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Webkit browsers (Chrome, Safari, Edge) */
.vc-custom-scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.vc-custom-scale-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
  border-color: #ffffff;
}

.vc-custom-scale-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.5);
}

/* Firefox */
.vc-custom-scale-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.vc-custom-scale-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
  border-color: #ffffff;
}

.vc-custom-scale-slider::-moz-range-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.5);
}

/* Track fill (progress) */
.vc-custom-scale-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-radius: 4px;
}

.vc-custom-scale-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* Create-with-AI: Source video picker (YouTube)                               */
/* -------------------------------------------------------------------------- */
.vc-source-picker-overlay {
  position: fixed;
  inset: 0;
  /* Must be ABOVE Create-with-AI modal + loading overlay (see style.css modal z-index ~20050+) */
  z-index: 20080 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.vc-source-picker-modal {
  width: min(1120px, calc(100vw - 24px));
  height: min(720px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vc-source-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(255, 255, 255, 0.02));
}

.vc-source-picker-title {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1.2;
}

.vc-source-picker-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.vc-source-picker-cap {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.vc-source-picker-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  /* Critical: give the grid a definite row height so children can do height:100% correctly */
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  min-height: 0;
  flex: 1;
}

.vc-source-plan-modal .vc-source-picker-body {
  grid-template-columns: unset;
}

.vc-source-plan-body {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 14px;
  padding: 14px 16px;
  min-height: 520px;
}

.vc-source-plan-beats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 6px;
}

.vc-source-plan-beat {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vc-source-plan-beat:hover {
  background: rgba(255, 255, 255, 0.07);
}

.vc-source-plan-beat.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.10);
}

.vc-source-plan-beat-time {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.vc-source-plan-beat-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.vc-source-plan-beat-sub {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.vc-source-plan-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5f5;
}

.vc-source-plan-beat-selected {
  font-size: 12px;
  color: #cbd5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-source-plan-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-source-plan-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 6px;
}

.vc-source-plan-refresh {
  font-size: 12px;
  padding: 6px 12px;
}

.vc-source-plan-image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.vc-source-picker-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.vc-source-picker-iframe-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #000;
  /* Let the preview grow to fill the available space. Using aspect-ratio + <webview>
     can yield non-definite heights, making the webview render "half height". */
  flex: 1 1 auto;
  min-height: 0;
}

.vc-source-picker-iframe-wrap .vc-source-picker-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vc-source-picker-preview-meta {
  flex: 0 0 auto;
}

.vc-source-picker-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vc-source-picker-preview-title {
  font-size: 13px;
  font-weight: 650;
  color: #e5e7eb;
  line-height: 1.35;
}

.vc-source-picker-preview-sub {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Create-with-AI: Idea picker (modal)                                         */
/* -------------------------------------------------------------------------- */
.vc-idea-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 20080 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.vc-idea-picker-modal {
  width: min(820px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vc-idea-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(255, 255, 255, 0.02));
}

.vc-idea-picker-title {
  font-size: 16px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-idea-picker-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.vc-idea-picker-body {
  padding: 14px 16px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-idea-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.vc-idea-picker-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 13px;
}

.vc-idea-picker-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vc-idea-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 12px 12px 42px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  user-select: none;
}

.vc-idea-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.vc-idea-card.is-selected {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 12px 34px rgba(99, 102, 241, 0.18);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 197, 94, 0.07));
}

.vc-idea-card-check {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.95);
}

.vc-idea-card.is-selected .vc-idea-card-check {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
}

.vc-idea-card-text {
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.vc-idea-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 18, 32, 0.35);
}

.vc-idea-picker-footnote {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-idea-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-source-picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(203, 213, 225, 0.95);
  font-size: 11px;
}

.vc-source-picker-grid-wrap {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.vc-source-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vc-source-picker-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  outline: none;
}

.vc-source-picker-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.vc-source-picker-card.is-active {
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.vc-source-picker-card.is-selected {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.vc-source-picker-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
}

.vc-source-picker-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.55);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.vc-source-picker-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.55);
  color: rgba(229, 231, 235, 0.95);
  font-size: 11px;
  font-weight: 650;
}

/* ============================================
   Settings modal
   ============================================ */
.vc-settings-modal {
  width: min(92vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.vc-settings-modal .ai-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.vc-settings-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.vc-settings-row,
.vc-settings-panel {
  margin: 0;
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.vc-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vc-settings-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.vc-settings-panel.stack,
.vc-settings-field,
.vc-settings-aspect-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.vc-settings-panel.stack {
  gap: 16px;
}

.vc-settings-title {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
}

.vc-settings-desc,
.vc-settings-panel-desc,
.vc-settings-aspect-value {
  text-align: left;
  line-height: 1.55;
}

.vc-settings-panel-desc {
  margin-bottom: 4px;
}

.vc-settings-field {
  gap: 8px;
}

.vc-settings-field > span,
.vc-settings-aspect-block > span {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
}

.vc-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vc-settings-dropdown,
.vc-settings-modal [data-vs-custom-select="1"] {
  width: 100%;
  max-width: 100%;
}

.vc-settings-modal .ai-input,
.vc-settings-modal .ai-select,
.vc-settings-modal select,
.vc-settings-modal input[type="number"],
.vc-settings-modal input[type="color"] {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.vc-settings-modal .ai-input,
.vc-settings-modal .ai-select,
.vc-settings-modal select,
.vc-settings-modal input[type="number"] {
  min-height: 50px;
}

.vc-settings-modal select {
  appearance: none;
  padding-right: 40px;
  background-position: right 14px center;
}

.vc-settings-dropdown .vs-dd-btn {
  width: 100%;
  min-height: 50px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(15, 23, 42, 0.68) !important;
  color: rgba(241, 245, 249, 0.98) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vc-settings-dropdown .vs-dd-btn:hover,
.vc-settings-dropdown.open .vs-dd-btn {
  border-color: rgba(129, 140, 248, 0.34) !important;
  background: rgba(20, 31, 57, 0.9) !important;
}

.vc-settings-dropdown .vs-dd-label {
  min-width: 0;
}

.vc-settings-dropdown-menu {
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(8, 15, 30, 0.98), rgba(3, 7, 18, 0.99)) !important;
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(14px);
}

.vc-settings-dropdown-menu .vs-dd-opt {
  border-radius: 12px;
}

.vc-settings-dropdown-menu .vs-dd-opt-row,
.vc-settings-dropdown-menu .vs-dd-opt-text {
  width: 100%;
}

.vc-settings-modal input[type="color"] {
  min-height: 52px;
  padding: 6px;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
}

.vc-settings-modal input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.vc-settings-modal input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 10px;
}

.vc-settings-aspect-block {
  gap: 8px;
  align-items: flex-start;
}

.vc-settings-orientation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vc-settings-actions {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .vc-settings-modal {
    width: min(96vw, 900px);
    max-height: 94vh;
  }

  .vc-settings-row,
  .vc-settings-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .vc-settings-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vc-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scenes modal
   ============================================ */
.vc-scenes-modal {
  width: min(92vw, 980px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.vc-scenes-modal .ai-row {
  align-items: flex-start;
}

.vc-scenes-modal .ai-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.vc-scenes-modal .panel-title {
  font-size: 16px;
  font-weight: 800;
}

.vc-scenes-modal label.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.vc-scenes-modal label.stack>span {
  text-align: left;
}

.vc-scenes-modal .vs-dd,
.vc-scenes-modal .ai-select {
  width: 100%;
}

.vc-scenes-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.vc-scenes-question {
  font-size: 24px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 10px;
}

.vc-scenes-textarea {
  min-height: 140px;
  font-size: 18px;
  line-height: 1.6;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(129, 140, 248, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
}

.vc-scenes-textarea::placeholder {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-scenes-modal .ai-input::placeholder {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-scenes-settings-btn {
  right: 46px;
  font-size: 14px;
}

.vc-scenes-settings-btn[aria-pressed="true"] {
  border-color: rgba(129, 140, 248, 0.7);
  background: rgba(99, 102, 241, 0.2);
}

.vc-scenes-settings-panel {
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vc-scenes-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.vc-scenes-reference-text {
  min-height: 78px;
  resize: vertical;
}

.vc-scenes-subsection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vc-scenes-subsection:first-child {
  border-top: none;
}

.vc-scenes-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
}

.vc-scenes-preset-grid-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-scenes-preset-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
  scroll-behavior: smooth;
  cursor: grab;
  flex: 1;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vc-scenes-preset-grid::-webkit-scrollbar {
  display: none;
}

.vc-scenes-preset-grid.active {
  cursor: grabbing;
  scroll-behavior: auto;
}

.vc-scenes-preset-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.vc-scenes-preset-nav:hover {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.4);
  transform: scale(1.05);
}

.vc-scenes-preset-card {
  flex: 0 0 170px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  user-select: none;
}

.vc-scenes-preset-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.5);
}

.vc-scenes-preset-card.is-selected {
  border-color: rgba(129, 140, 248, 0.9);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(129, 140, 248, 0.18));
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.15);
}

.vc-scenes-preset-media {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.55);
}

.vc-scenes-preset-placeholder {
  width: 100%;
  height: 108px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vc-scenes-preset-title {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 600;
}

.vc-scenes-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.vc-scenes-style-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.vc-scenes-style-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.5);
}

.vc-scenes-style-card.is-selected {
  border-color: rgba(129, 140, 248, 0.9);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(129, 140, 248, 0.18));
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.15);
}

.vc-scenes-style-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.55);
}

.vc-scenes-style-card span {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 600;
}

.vc-scenes-card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vc-scenes-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.vc-scenes-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vc-scenes-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-scenes-preview-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.vc-scenes-preview {
  width: 100%;
  height: min(34vh, 280px);
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.vc-scenes-preview-video {
  object-fit: contain;
}

.vc-scenes-regen-count {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5f5;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

#vc-scenes-generate {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
}

#vc-scenes-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

#vc-scenes-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.vc-scenes-selected-template {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5f5;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(30, 41, 59, 0.6);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  .vc-scenes-settings-grid {
    grid-template-columns: 1fr;
  }

  .vc-scenes-preview-grid {
    grid-template-columns: 1fr;
  }
}

.vc-source-picker-card-body {
  padding: 10px 10px 12px;
}

.vc-source-picker-card-title {
  font-size: 12px;
  font-weight: 650;
  color: #e5e7eb;
  line-height: 1.35;
  max-height: 3.9em;
  overflow: hidden;
}

.vc-source-picker-card-sub {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-source-picker-muted {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.95);
}

.vc-source-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.vc-source-picker-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-source-picker-counter {
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
}

.vc-ai-chat-row {
  display: flex;
  justify-content: flex-start;
  margin: 6px 0;
}

.vc-ai-chat-bubble {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(124, 58, 237, 0.6);
  font-size: 14px;
  color: #f8fafc;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.vc-ai-chat-bubble--assistant {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(124, 58, 237, 0.8);
}

.vc-ai-chat-bubble--user {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.95);
}

.vc-ai-chat-bubble--error {
  border-color: rgba(248, 113, 113, 0.6);
}

.vc-ai-chat-meta {
  margin-top: 6px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vc-ai-chat-status {
  margin-top: 6px;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* Custom Number Input Styles */
.vc-inspector-number-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.vc-inspector-number-input input[type="number"],
.vc-inspector-number-input input[type="text"] {
  width: 100%;
  padding-right: 24px;
  /* Space for buttons */
  -moz-appearance: textfield;
}

.vc-inspector-number-input input[type="number"]::-webkit-inner-spin-button,
.vc-inspector-number-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vc-numeric-step-btn {
  position: absolute;
  right: 4px;
  width: 16px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: all 0.15s ease;
  z-index: 2;
}

.vc-numeric-step-btn:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.vc-numeric-step-btn.up {
  top: 3px;
}

.vc-numeric-step-btn.down {
  bottom: 3px;
}

.vc-numeric-step-btn svg {
  width: 8px;
  height: 8px;
  display: block;
}

/* Custom Number Input Style */
.vc-inspector-number-input {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s;
}

.vc-inspector-number-input:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Hide default spinner */
.vc-inspector-number-input input[type=number]::-webkit-inner-spin-button,
.vc-inspector-number-input input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vc-inspector-number-input input[type=number] {
  -moz-appearance: textfield;
  text-align: center;
  background: transparent !important;
  border: none !important;
  width: 100%;
  padding: 8px 32px;
  /* Space for buttons */
  color: #e5e7eb;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.vc-numeric-step-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  z-index: 2;
  transition: all 0.2s;
  line-height: 1;
}

.vc-numeric-step-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.vc-numeric-step-btn.minus {
  left: 0;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.vc-numeric-step-btn.plus {
  right: 0;
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   LANDING V2 OVERRIDES (VC COMPONENTS)
   ============================================ */
.vc-asset-item,
.vc-asset-perf-banner,
.vc-asset-alert-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3, 5, 15, 0.35);
}

.vc-asset-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.vc-inspector-input,
.vc-inspector-textarea,
.vc-inspector-value {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f1f5f9;
}

.vc-alert-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.vc-transition-card-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

.vc-transition-card-rail::-webkit-scrollbar {
  height: 8px;
}

.vc-transition-card-rail::-webkit-scrollbar-track {
  background: transparent;
}

.vc-transition-card-rail::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

.vc-transition-card {
  position: relative;
  display: flex;
  flex: 0 0 132px;
  min-width: 132px;
  padding: 10px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 24, 0.98)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 52%);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.vc-transition-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.38);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.28);
  background:
    linear-gradient(180deg, rgba(21, 31, 50, 0.98), rgba(10, 16, 30, 0.98)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 56%);
}

.vc-transition-card.is-selected {
  border-color: rgba(110, 231, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(18, 28, 52, 0.99), rgba(13, 20, 36, 0.99)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 50%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.2), transparent 52%);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.34),
    0 0 0 1px rgba(34, 211, 238, 0.26),
    0 0 26px rgba(96, 165, 250, 0.2);
}

.vc-transition-card.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(168, 85, 247, 0.78), rgba(244, 114, 182, 0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.vc-transition-card__preview {
  display: block;
}

.vc-transition-card__preview-shell {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 44%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(9, 12, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vc-transition-card.is-selected .vc-transition-card__preview-shell {
  border-color: rgba(110, 231, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(34, 211, 238, 0.14);
}

.vc-transition-card__preview-glyph {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  height: 60%;
  border-radius: 18px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #f8fafc;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  user-select: none;
}

.vc-transition-card__preview-glyph--from {
  background: linear-gradient(145deg, #22d3ee, #2563eb);
}

.vc-transition-card__preview-glyph--to {
  background: linear-gradient(145deg, #fb7185, #f59e0b);
  opacity: 0;
}

.vc-transition-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.vc-transition-card__meta {
  display: block;
  min-height: 28px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(191, 219, 254, 0.84);
}

.vc-transition-preview-stage {
  position: relative;
}

.vc-transition-preview-body {
  max-height: 420px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vc-transition-preview-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  margin-top: 0;
  pointer-events: none;
}

.vc-transition-preview-empty {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(11, 15, 26, 0.98), rgba(15, 23, 42, 0.98));
  text-align: center;
}

.vc-transition-preview-empty__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(244, 114, 182, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.vc-transition-preview-empty__title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.vc-transition-preview-empty__copy {
  max-width: 240px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.vc-transition-form {
  margin-top: 14px !important;
  padding: 16px;
  max-height: 520px;
  overflow: clip;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 12, 22, 0.98)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-origin: top center;
  transition:
    max-height 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease;
}

.vc-transition-form.is-collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  margin-top: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.vc-transition-form__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.vc-transition-form__eyebrow {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.82);
  font-weight: 700;
}

.vc-transition-form__title {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.96);
  font-weight: 650;
}

.vc-transition-form__field {
  margin-top: 12px !important;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vc-transition-form__label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px !important;
  color: #dbe7f5 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vc-transition-form__input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 15, 28, 0.96)) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 18px rgba(2, 6, 23, 0.16);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.vc-transition-form__input:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(18, 28, 48, 0.96), rgba(11, 18, 31, 0.98)) !important;
}

.vc-transition-form__input:focus,
.vc-transition-form__input:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.58) !important;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 14px 28px rgba(15, 23, 42, 0.24) !important;
}

.vc-transition-form__input:disabled {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(10, 15, 28, 0.82)) !important;
  color: rgba(148, 163, 184, 0.82) !important;
  box-shadow: none;
}

.vc-transition-actions {
  margin-top: 18px !important;
}

.vc-transition-actions .secondary,
.vc-transition-actions .ellipse-btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.18);
}

.vc-transition-actions .secondary:hover,
.vc-transition-actions .ellipse-btn:hover {
  transform: translateY(-1px);
}

#vc-transition-preview-toggle.secondary {
  min-height: 32px;
  border-radius: 999px;
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(14, 23, 38, 0.88);
  color: rgba(226, 232, 240, 0.94);
  font-weight: 700;
  letter-spacing: 0.01em;
}

#vc-transition-preview-toggle.secondary:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(18, 31, 50, 0.95);
}

.vc-inspector-field.is-disabled label {
  color: rgba(148, 163, 184, 0.68) !important;
}

.vc-inspector-field.is-disabled input,
.vc-inspector-field.is-disabled select {
  opacity: 0.55;
  cursor: not-allowed;
}
