    .export-card {
      grid-area: export;
      margin-top: 18px;
      padding: 18px;
      border: 1px solid #d8d0ef;
      border-radius: 18px;
      color: #30254d;
      background: linear-gradient(135deg, #fbf9ff, #f0fbfc);
      box-shadow: 0 10px 24px #64568a14;
    }
    .export-card h2 { margin: 0 0 5px; color: #7048bd; font-size: 18px; }
    .export-card p { margin: 0; color: #575b81; line-height: 1.5; }
    .export-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 14px; }
    .export-field { display: flex; flex-direction: column; gap: 5px; min-width: 145px; color: #5c4a8e; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
    .export-field select, .export-field input { min-height: 42px; border: 1px solid #d8cdf2; border-radius: 11px; padding: 0 11px; color: #30254d; background: #fff; font: inherit; font-size: 14px; letter-spacing: normal; text-transform: none; }
    .export-check { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: #575b81; font-size: 13px; font-weight: 700; }
    .export-check input { width: 17px; height: 17px; accent-color: #8650ee; }
    .export-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .export-actions button { margin-top: 0; min-height: 42px; }
    .export-actions button.secondary { margin-left: 0; }
    .export-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
    .export-progress progress { width: min(360px, 100%); height: 12px; accent-color: #8650ee; }
    .export-progress span { color: #575b81; font-size: 13px; font-weight: 700; }
    .download-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; padding: 0 15px; color: #fff; background: linear-gradient(100deg, #8650ee, #12a9b4); font-weight: 850; text-decoration: none; box-shadow: 0 8px 18px #7650c538; }
    .download-link:hover { filter: brightness(1.05); }
    .video-preview-card { width: 100%; margin-top: 18px; padding: 18px; border: 1px solid #d8d0ef; border-radius: 18px; color: #30254d; background: linear-gradient(135deg, #fbf9ff, #f0fbfc); box-shadow: 0 10px 24px #64568a14; text-align: center; }
    .video-preview-card h2 { margin: 0 0 5px; color: #7048bd; font-size: 18px; }
    .video-preview-card p { margin: 0; color: #575b81; line-height: 1.5; }
    .video-preview-player { display: block; width: auto; height: auto; max-width: min(100%, 520px); max-height: 360px; margin: 15px auto 0; border: 1px solid #d8d0ef; border-radius: 14px; background: #15172b; box-shadow: 0 10px 24px #64568a20; object-fit: contain; }
    .video-preview-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
    .export-help { margin-top: 10px !important; font-size: 12px; }
    .scene-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e6def5; }
    .scene-tool { display: flex; flex-direction: column; gap: 4px; color: #7048bd; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
    .scene-tool input[type="number"] { width: 90px; min-height: 36px; border: 1px solid #ddd3f1; border-radius: 9px; padding: 0 8px; color: #41375f; background: #fff; font: inherit; font-size: 13px; letter-spacing: normal; text-transform: none; }
    .scene-audio-input { max-width: 190px; min-height: 36px; padding: 7px 8px; border: 1px solid #ddd3f1; border-radius: 9px; color: #575b81; background: #fff; font-size: 12px; }
    .scene-audio-preview { width: 190px; max-width: 100%; height: 36px; }
    .scene-record-button, .scene-move-button, .scene-remove-button { min-height: 36px; margin: 0; border: 1px solid #e4ddf4; border-radius: 9px; padding: 0 10px; color: #5c4a8e; background: #f5f1ff; box-shadow: none; font-size: 12px; }
    .scene-record-button.is-recording { color: #fff; background: #db3e68; border-color: #db3e68; }
    .scene-move-button:disabled { opacity: .42; }
    .scene-remove-button { color: #a4385a; }
    .scene-audio-status { align-self: center; max-width: 210px; color: #575b81; font-size: 12px; line-height: 1.3; }
    @media (max-width: 720px) { .export-card { grid-area: export; } .export-toolbar, .scene-tools { align-items: stretch; flex-direction: column; } .export-field, .export-actions, .export-actions button, .download-link { width: 100%; } .scene-tool, .scene-tool input[type="number"], .scene-audio-input, .scene-record-button, .scene-move-button, .scene-remove-button { width: 100%; max-width: none; } }
.export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#export-video,
#export-animation-video {
  margin: 0;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(112, 72, 189, .28);
  border-radius: 12px;
  color: #514374;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 6px 18px rgba(61, 49, 97, .08);
}

#export-video:hover,
#export-animation-video:hover {
  border-color: rgba(112, 72, 189, .55);
  background: rgba(248, 246, 255, .95);
}

/* Refined video export and preview styling */
main .export-card {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  color: #172033;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24, 39, 75, .08), 0 2px 8px rgba(24, 39, 75, .03);
}

main .export-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #12a9b4);
  content: "";
}

main .export-card h2 {
  margin: 0 0 7px;
  color: #172033;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.25;
}

main .export-card > p:first-of-type {
  max-width: 780px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

main .export-toolbar {
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e7edf4;
  border-radius: 16px;
  background: #f8fafc;
}

main .export-field {
  min-width: 155px;
  gap: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .065em;
}

main .export-field select,
main .export-field input {
  min-height: 44px;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  padding: 0 12px;
  color: #1e293b;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .16s ease, box-shadow .16s ease;
}

main .export-field select:focus,
main .export-field input:focus {
  border-color: #3b82f6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

main .export-check {
  min-height: 44px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

main .export-check input {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

main #export-video,
main #export-animation-video {
  min-height: 44px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  padding: 0 17px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .18);
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

main #export-video:hover:not(:disabled),
main #export-animation-video:hover:not(:disabled) {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .24);
  transform: translateY(-1px);
}

main #export-video:disabled,
main #export-animation-video:disabled {
  border-color: #d5dfeb;
  color: #526174;
  background: #e8eef6;
  box-shadow: none;
  opacity: 1;
}

main .download-link {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 17px;
  color: #fff;
  background: #0f8f9b;
  box-shadow: 0 5px 12px rgba(15, 143, 155, .18);
  font-weight: 700;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

main .download-link:hover {
  background: #0b7580;
  box-shadow: 0 7px 16px rgba(15, 143, 155, .24);
  transform: translateY(-1px);
}

main .export-progress {
  gap: 12px;
  margin-top: 16px;
}

main .export-progress progress {
  width: min(420px, 100%);
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8edf4;
  accent-color: #0f9aa7;
  appearance: none;
}

main .export-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8edf4;
}

main .export-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0f9aa7);
}

main .export-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0f9aa7);
}

main .export-progress span {
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}

main .export-card > .export-help {
  margin-top: 11px !important;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

main .video-preview-card {
  min-height: 172px;
  margin-top: 20px;
  padding: 24px;
  border: 1px dashed #cbd6e4;
  border-radius: 16px;
  color: #1e293b;
  background: radial-gradient(ellipse at 50% 0%, #f1f7ff 0%, #f8fafc 70%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
  text-align: center;
}

main .video-preview-card h2 {
  margin: 0 0 7px;
  color: #334155;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

main .video-preview-card p {
  color: #64748b;
  font-size: 14px;
}

main .video-preview-player {
  max-width: min(100%, 560px);
  max-height: 400px;
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

main .video-preview-actions {
  margin-top: 16px;
}

@media (max-width: 720px) {
  main .export-card { padding: 20px 16px; }
  main .export-toolbar { gap: 11px; padding: 13px; }
  main .export-field,
  main .export-actions,
  main .export-actions button,
  main .download-link { width: 100%; }
  main .export-actions { gap: 9px; }
  main .video-preview-card { min-height: 150px; padding: 20px 14px; }
}
