.vs-vertical-v2 {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px 32px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #e5e7eb;
}

.vs-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vs-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}

.vs-lede {
  margin: 0 0 8px;
  color: #cbd5f5;
  font-size: 14px;
}

.vs-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vs-pill {
  background: #0f172a;
  border: 1px solid #1f2937;
  color: #cbd5f5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.vs-banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vs-badge {
  background: #111827;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.vs-badge-busy { background: #1f2937; border-color: #6366f1; color: #c7d2fe; }
.vs-badge-ok { background: #052e1c; border-color: #065f46; }
.vs-badge-error { background: #2e0505; border-color: #7f1d1d; }

.vs-btn {
  border: 1px solid #374151;
  background: #1f2937;
  color: #e5e7eb;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.vs-btn:hover:not(:disabled) { background: #0f172a; }
.vs-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vs-btn-ghost { background: transparent; }
.vs-accent { background: #4f46e5; border-color: #4338ca; }
.vs-accent:hover:not(:disabled) { background: #4338ca; }

.vs-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.vs-tab {
  border: 1px solid #1f2937;
  background: #0b1220;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.vs-tab-active {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.35);
}

.vs-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.vs-column-primary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vs-card {
  background: #0b0f18;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(8, 15, 32, 0.35);
}

.vs-card-head {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.vs-desc {
  margin: 0 0 10px;
  color: #cbd5f5;
  font-size: 13px;
}

.vs-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.vs-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed #374151;
  border-radius: 10px;
  background: #0f172a;
  cursor: pointer;
  color: #e5e7eb;
}
.vs-upload-label input { display: none; }

.vs-upload-progress {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid #1f2937;
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}
.vs-upload-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  transition: width 0.2s ease;
}

.vs-hint {
  font-size: 12px;
  color: #9ca3af;
}

.vs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vs-empty {
  border: 1px dashed #1f2937;
  background: #0b1220;
  padding: 14px;
  border-radius: 12px;
  color: #9ca3af;
  grid-column: 1 / -1;
}

.vs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.vs-field-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.vs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.vs-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.vs-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vs-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vs-pre {
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 10px;
  min-height: 120px;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.vs-log-card {
  position: sticky;
  top: 72px;
  align-self: start;
  min-height: 320px;
}

.vs-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.vs-log-entry {
  border: 1px solid #1f2937;
  background: #0b1220;
  border-radius: 10px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.vs-preview-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
}

/* Portrait frame enforcement for all thumbnails/videos */
.vs-thumb-portrait {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 220px;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #1f2937;
}
.vs-thumb-portrait img,
.vs-thumb-portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .vs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .vs-list {
    grid-template-columns: 1fr;
  }
}

.vs-log-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.vs-log-meta {
  color: #9ca3af;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .vs-grid-main { grid-template-columns: 1fr; }
  .vs-log-card { position: static; }
}

.vs-control-primary {
  font-weight: 600;
  margin-bottom: 4px;
}

.vs-control-secondary {
  color: #9ca3af;
  font-size: 13px;
}

.vs-control-progress {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c7d2fe;
}

.vs-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #6366f1;
  animation: vs-spin 0.8s linear infinite;
}

@keyframes vs-spin {
  to { transform: rotate(360deg); }
}

.vs-generate-busy {
  background: #1f2937;
  border-color: #6366f1;
  color: #c7d2fe;
}

.vs-pre {
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
}

.vs-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #a5b4fc;
}

.vs-job-desc {
  font-size: 13px;
  color: #cbd5f5;
}

.vs-output-block {
  margin-top: 10px;
}

.vs-thumb-portrait {
  max-width: 100%;
}

.vs-jobs-compact .vs-progress {
  display: none;
}