#toolDetailView.vsv-mode {
  gap: 10px;
}

.vsv-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.2s;
}

.vsv-back-link:hover {
  background: #f1f5f9;
  color: #334155;
}

.vsv-back-link:active {
  background: #e2e8f0;
}

.vsv-back-link svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
}

#toolDetailView.vsv-mode #virtualSellVideoIntro.tool-form,
#toolDetailView.vsv-mode #virtualSellVideoIntro.panel-card,
#toolDetailView.vsv-mode #virtualSellVideoIntro.tool-form-card {
  padding: 0 12px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.virtual-sell-video-root {
  display: block;
}

.vsv-page,
.vsv-form-card,
.vsv-result,
.vsv-result-card,
.vsv-upload-grid,
.vsv-meta-grid,
.vsv-result-actions {
  display: grid;
  gap: 14px;
}

.vsv-form-card,
.vsv-result-card,
.vsv-upload-panel,
.vsv-meta-card,
.vsv-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.vsv-form-card,
.vsv-result-card,
.vsv-block {
  padding: 16px;
}

.vsv-form-header,
.vsv-field-head,
.vsv-result-header,
.vsv-result-title-wrap,
.vsv-result-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vsv-form-header,
.vsv-result-header {
  align-items: flex-start;
  justify-content: space-between;
}

.vsv-form-icon,
.vsv-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsv-form-icon {
  background: #eef2ff;
  color: #6366f1;
}

.vsv-result-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.vsv-form-icon svg,
.vsv-result-icon svg {
  width: 20px;
  height: 20px;
}

.vsv-form-copy,
.vsv-result-title-wrap,
.vsv-block-head,
.vsv-meta-card {
  display: grid;
  gap: 6px;
}

.vsv-form-copy h3,
.vsv-result-header h3,
.vsv-block-head strong,
.vsv-meta-card strong {
  margin: 0;
  color: #1e293b;
}

.vsv-form-copy p,
.vsv-block-head span,
.vsv-meta-card span,
.vsv-result-summary,
.vsv-expire-hint,
.vsv-block-text,
.vsv-section-label,
.vsv-field-hint {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.vsv-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vsv-upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.vsv-upload-panel {
  position: relative;
  min-height: 220px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  border-style: dashed;
  border-width: 1.5px;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.vsv-upload-panel:hover,
.vsv-upload-panel:focus-visible {
  border-color: #6366f1;
  background: #eef2ff;
  outline: none;
  transform: translateY(-1px);
}

.vsv-upload-panel.has-file {
  padding: 0;
  border-style: solid;
  background: #e2e8f0;
}

.vsv-upload-empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.vsv-upload-empty strong {
  color: #1e293b;
}

.vsv-upload-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.82rem;
}

.vsv-upload-badge,
.vsv-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.vsv-upload-badge {
  background: #eef2ff;
  color: #4f46e5;
}

.vsv-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vsv-upload-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.vsv-field {
  display: grid;
  gap: 8px;
}

.vsv-field-head {
  justify-content: space-between;
}

.vsv-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.vsv-prompt-count {
  font-size: 0.76rem;
  color: #94a3b8;
}

.vsv-textarea-wrap {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s;
}

.vsv-textarea-wrap:focus-within {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.vsv-textarea-wrap textarea {
  width: 100%;
  min-height: 116px;
  padding: 12px 14px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #1e293b;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: inherit;
  box-sizing: border-box;
}

.vsv-textarea-wrap textarea::placeholder {
  color: #94a3b8;
}

.vsv-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.vsv-meta-card {
  padding: 12px;
  background: #f8fafc;
}

.vsv-submit-btn,
.vsv-download-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}

.vsv-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vsv-result-status {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.vsv-result-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.vsv-result-status.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.vsv-result-status.is-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.vsv-result-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.vsv-block {
  display: grid;
  gap: 12px;
}

.vsv-video-shell {
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

.vsv-video-shell video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000000;
}

.vsv-result-actions {
  display: flex;
}

.vsv-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: calc(100vw - 48px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  text-align: center;
  font-size: 0.82rem;
  z-index: 40;
}

@media (max-width: 520px) {
  .vsv-upload-grid {
    grid-template-columns: 1fr;
  }

  .vsv-upload-panel {
    min-height: 200px;
  }
}
