/* H&S Music Artist Panel – Cover & Visuals */

.wizard-visuals {
  width: 100%;
}

.wizard-visual-section {
  padding: 4px 0 36px;
}

.wizard-visual-section + .wizard-visual-section {
  padding-top: 34px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-visual-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.wizard-visual-header-copy {
  min-width: 0;
}

.wizard-visual-header h3 {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  color: var(--hs-text);
  font-size: 21px;
  line-height: 1.3;
  font-weight: var(--hs-weight-semibold);
  letter-spacing: -.012em;
}

.wizard-visual-header p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--hs-text-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: var(--hs-weight-regular);
}

.wizard-visual-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wizard-cover-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  justify-items: center;
  gap: 24px;
  align-items: start;
}

.wizard-cover-media {
  width: min(100%, 320px);
  display: grid;
  justify-items: center;
}

.wizard-cover-media,
.wizard-canvas-media,
.wizard-canvas-status {
  min-width: 0;
}

.wizard-visual-preview,
.wizard-visual-upload {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius-md);
  background: var(--hs-surface-2);
}

.wizard-visual-preview--cover,
.wizard-visual-upload--cover {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
}

.wizard-visual-preview--cover img,
.wizard-visual-preview--canvas video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.wizard-visual-preview--canvas,
.wizard-visual-upload--canvas {
  width: 184px;
  aspect-ratio: 9 / 16;
}

.wizard-visual-upload {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  color: var(--hs-text);
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.wizard-visual-upload:hover {
  border-color: var(--hs-brand-line);
  background: var(--hs-brand-soft);
}

.wizard-visual-upload:focus-visible {
  outline: 2px solid var(--hs-brand-500);
  outline-offset: 3px;
}

.wizard-visual-upload-mark {
  display: block;
  color: var(--hs-brand-400);
  font-size: 36px;
  line-height: 1;
  font-weight: var(--hs-weight-regular);
}

.wizard-visual-upload strong {
  color: var(--hs-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: var(--hs-weight-semibold);
}

.wizard-visual-upload > span:last-child {
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
  font-weight: var(--hs-weight-regular);
}


.wizard-visual-file-meta {
  width: min(100%, 320px);
  margin: 9px 0 0;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wizard-cover-inline-error,
.wizard-canvas-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--hs-danger);
  background: var(--hs-danger-soft);
  color: #ffd2d2;
  font-size: 13px;
  line-height: 1.5;
}

.wizard-cover-inline-error:not(:empty),
.wizard-canvas-message:not(:empty) {
  display: block;
}

.wizard-cover-declaration {
  min-width: 0;
  width: min(100%, 720px);
  justify-self: center;
}

.wizard-cover-declaration .wizard-ai-declaration {
  margin-top: 0;
}

.wizard-canvas-layout {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.wizard-canvas-media {
  display: grid;
  justify-items: center;
}

.wizard-cover-scan-state {
  margin-top: 10px;
  text-align: center;
}

.wizard-visual-secondary-action {
  margin-top: 8px;
}

.wizard-canvas-status {
  width: min(100%, 520px);
  padding-top: 2px;
}

.wizard-canvas-upload-state,
.wizard-motion-upload-state {
  display: none;
  padding: 13px 0;
}

.wizard-canvas-upload-state.is-visible,
.wizard-motion-upload-state.is-visible {
  display: block;
}

.wizard-canvas-upload-state > strong,
.wizard-motion-upload-state > strong {
  color: var(--hs-text-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: var(--hs-weight-medium);
}

.wizard-canvas-progress-shell {
  width: 100%;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--hs-radius-round);
  background: var(--hs-surface-3);
}

.wizard-canvas-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--hs-brand-500);
  transition: width var(--hs-duration-medium) var(--hs-ease-standard);
}

.wizard-visual-progress-label {
  margin-top: 6px;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.4;
}

.wizard-motion-root {
  min-width: 0;
}

.wizard-motion-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-motion-choice-button {
  flex: 1 1 280px;
  justify-content: center;
}

.wizard-motion-info-button {
  flex: 0 0 auto;
  align-self: flex-start;
}

.wizard-motion-panel {
  display: none;
  padding-top: 22px;
}

.wizard-motion-panel.is-visible {
  display: block;
}

.wizard-motion-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-motion-slot:first-child {
  padding-top: 0;
}

.wizard-motion-slot-copy strong,
.wizard-motion-file strong,
.wizard-motion-material-item strong,
.wizard-motion-request-head h4 {
  color: var(--hs-text);
  font-weight: var(--hs-weight-semibold);
}

.wizard-motion-slot-copy > span,
.wizard-motion-file > span:last-child,
.wizard-motion-material-item span,
.wizard-motion-request-head p {
  display: block;
  margin-top: 4px;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.wizard-motion-slot-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.wizard-motion-file {
  min-width: 0;
  text-align: right;
}

.wizard-motion-file-status {
  color: var(--hs-success);
  font-size: 11px;
  font-weight: var(--hs-weight-semibold);
}

.wizard-motion-upload-state {
  grid-column: 1 / -1;
  padding: 0 0 8px;
}

.wizard-motion-slot .wizard-canvas-message {
  grid-column: 1 / -1;
}

.wizard-motion-request-box {
  max-width: 760px;
}

.wizard-motion-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.wizard-motion-request-head h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.wizard-motion-request-head p {
  max-width: 620px;
  margin-top: 5px;
  font-size: 13px;
}

.wizard-motion-request-head > span {
  flex: 0 0 auto;
  color: var(--hs-text-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.wizard-motion-material-empty {
  margin: 16px 0 0;
  color: var(--hs-text-subtle);
  font-size: 13px;
  line-height: 1.5;
}

.wizard-motion-material-list {
  margin-top: 16px;
  border-top: 1px solid var(--hs-line-subtle);
}

.wizard-motion-material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hs-line-subtle);
}

.wizard-motion-material-item-main {
  min-width: 0;
}

.wizard-motion-material-item strong,
.wizard-motion-material-item span {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .wizard-cover-layout {
    grid-template-columns: 1fr;
  }

  .wizard-cover-declaration {
    max-width: 640px;
  }
}

@media (max-width: 620px) {
  .wizard-visual-section {
    padding-bottom: 28px;
  }

  .wizard-visual-section + .wizard-visual-section {
    padding-top: 28px;
  }

  .wizard-visual-header {
    margin-bottom: 20px;
  }

  .wizard-cover-layout,
  .wizard-canvas-layout,
  .wizard-motion-slot {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wizard-visual-preview--cover,
  .wizard-visual-upload--cover {
    width: min(100%, 300px);
  }

  .wizard-canvas-status {
    padding-top: 0;
  }

  .wizard-motion-choice-grid {
    display: grid;
    gap: 8px;
  }

  .wizard-motion-choice-button {
    width: 100%;
  }

  .wizard-motion-slot-action {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .wizard-motion-file {
    text-align: left;
  }

  .wizard-motion-request-head {
    display: block;
  }

  .wizard-motion-request-head > span {
    display: block;
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-canvas-progress-bar {
    transition: none;
  }
}
