/* ---- 双图工作台：固定黑白配色，卡片使用纯色 ---- */
.dv-page {
  --dv-line:#ffffff1c;
  --dv-muted:#aaaab3;
  --dv-accent:#fff;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  scroll-margin-top: 88px;
  color: #fafafa;
}
#app-content[data-with-sidebar="true"] .dv-page {
  max-width: none;
}
.dv-page [hidden] {
  display: none !important;
}
.dv-page * {
  box-sizing: border-box;
}
.dv-page a {
  color: inherit;
}
.dv-page button {
  font: inherit;
  cursor: pointer;
}
.dv-page button:disabled {
  opacity: .5;
  cursor: wait;
}
.dv-page :focus-visible {
  outline: 2px solid var(--dv-accent);
  outline-offset: 5px;
}
.dv-studio {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  scroll-margin-top: 90px;
}
.dv-panel {
  background: #111114;
  border: 1px solid var(--dv-line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.dv-panel-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dv-panel-heading h2 {
  font-size: 17px;
  font-weight: 600;
}
.dv-page fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.dv-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dv-photo {
  position: relative;
  min-width: 0;
}
.dv-photo > p {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}
.dv-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4/5;
  background: #19191e;
  border: 1px dashed #ffffff38;
  border-radius: 14px;
  overflow: hidden;
  padding: 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s;
}
.dv-upload:hover,
.dv-upload:focus-within,
.dv-photo[data-dragging] .dv-upload {
  border-color: var(--dv-accent);
}
.dv-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dv-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0b0d;
}
.dv-upload:has(img:not([hidden])) .dv-upload-hint,
.dv-upload:has(img:not([hidden])) .dv-upload-icon {
  visibility: hidden;
}
.dv-upload-icon {
  font-size: 36px;
  font-weight: 200;
  color: #c8c8d3;
}
.dv-upload-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dv-muted);
  max-width: 150px;
}
.dv-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset-inline-end: 8px;
  top: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #101014d9;
  color: white;
}
.dv-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
#dv-generate {
  margin-top: 24px;
  height: 48px;
  padding: 0 16px;
  gap: 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600 !important;
}
.dv-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b0b0d !important;
  text-align: center;
  padding: 14px 22px;
  font-weight: 650 !important;
  text-decoration: none;
}
.dv-input-panel > .dv-primary {
  width: 100%;
}
.dv-credit-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 4px;
}
.dv-status {
  font-size: 13px;
  line-height: 1.65;
  color: #d0d0da;
  overflow-wrap: anywhere;
  margin: 0;
}
.dv-status:empty {
  margin: 0;
}
.dv-status[data-error] {
  color: #fda4af;
}
.dv-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dv-muted) !important;
  text-decoration: none;
  text-underline-offset: 3px;
}
.dv-input-panel > .dv-history {
  margin-top: 14px;
}
.dv-history:hover span {
  text-decoration: underline;
}
.dv-preview-panel {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
}
.dv-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070709;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  aspect-ratio: 16/9;
  min-height: 0;
}
.dv-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dv-output-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  overflow: auto;
  text-align: center;
}
.dv-progress {
  width: min(100%, 300px);
}
.dv-progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--dv-muted);
}
#dv-progress-value {
  font-variant-numeric: tabular-nums;
}
.dv-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff24;
}
.dv-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 1s linear;
}
.dv-progress[data-complete] .dv-progress-fill {
  transition-duration: .6s;
}
.dv-progress[data-reset] .dv-progress-fill {
  transition: none;
}
.dv-result-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 13px;
}

.dv-empty { padding: 32px; color: var(--dv-muted); text-align: center; }
@media (max-width: 760px) {
  .dv-studio { grid-template-columns: 1fr; }
  .dv-panel { padding: 18px; }
  .dv-player { flex: none; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-page * { transition: none !important; }
}
