/* Dialog */
.hero-dialog {
  width: min(920px,96vw);
  max-height: 94vh;
}

.hero-dialog .automation-form {
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}

/* Campos */
.hero-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-fields label {
  min-width: 0;
}

.hero-fields .hero-wide {
  grid-column: 1/-1;
}

.hero-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  color: var(--text);
  font-size: 13px;
}

.hero-dialog input,
.hero-dialog textarea,
.hero-dialog select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  font: inherit;
}

.hero-actions,
.hero-downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.hero-dialog button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.hero-feedback {
  min-height: 40px;
  color: var(--muted);
  line-height: 1.5;
}

/* Resultado e preview */
.hero-result {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}

.hero-result ol {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  padding-left: 20px;
}

.hero-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #101114;
  overflow: hidden;
  border-radius: 8px;
  color: white;
}

.hero-preview img,
.hero-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-preview-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6%;
  background: linear-gradient(transparent,rgba(0,0,0,.8));
  pointer-events: none;
}

.hero-preview-copy h3 {
  font-size: clamp(20px,3vw,38px);
  max-width: 22ch;
  margin: 8px 0;
}

.hero-preview-copy p {
  margin: 5px 0;
  max-width: 55ch;
}

.hero-preview[data-layout=center] .hero-preview-copy {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.hero-preview[data-layout=top] .hero-preview-copy {
  justify-content: flex-start;
}

.hero-preview[data-layout=left] .hero-preview-copy {
  justify-content: center;
}

.hero-preview[data-tone=light] .hero-preview-copy {
  color: #17191b;
  background: linear-gradient(transparent,rgba(255,255,255,.9));
}

/* Responsivo */
@media(max-width:700px) {
  .hero-fields {
    grid-template-columns: 1fr;
  }

  .hero-dialog .automation-form {
    padding: 18px;
  }

  .hero-preview {
    aspect-ratio: 4/3;
  }

  .hero-preview-copy p {
    font-size: 12px;
  }
}
