.visual-preview-stage {
  max-width: calc(100% - 28px);
  height: auto;
  aspect-ratio: 3 / 4;
  transition: width .2s, aspect-ratio .2s;
}

.visual-preview-stage[data-ratio="1:1"] {
  width: 240px;
  aspect-ratio: 1 / 1;
}

.visual-preview-stage[data-ratio="9:16"] {
  width: 158px;
  aspect-ratio: 9 / 16;
}

.visual-preview-stage[data-ratio="16:9"] {
  width: 280px;
  aspect-ratio: 16 / 9;
}

.visual-reference > button {
  background-position: center;
  background-size: cover;
}

.visual-reference > button.has-image {
  min-height: 92px;
  border-style: solid;
  box-shadow: inset 0 0 0 100px rgba(32, 38, 37, .58);
  color: #fff;
}

.visual-reference > button.has-image small {
  color: #fff;
}

.visual-model-picker {
  height: 42px;
  display: grid;
  grid-template-columns: 31px 1fr 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 9px;
}

.visual-model-picker > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.visual-model-picker select {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.visual-model-picker > i {
  color: var(--muted);
  font-style: normal;
  pointer-events: none;
}

.visual-model-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: start;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.visual-model-hint b {
  color: var(--teal);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .visual-preview-stage,
  .visual-preview-stage[data-ratio] {
    width: 150px;
    height: auto;
    max-height: 210px;
  }
}

@media (max-width: 760px) {
  .visual-preview-stage,
  .visual-preview-stage[data-ratio] {
    width: min(230px, 72vw);
    height: auto;
    max-height: none;
    margin: 15px auto;
  }

  .visual-preview-stage[data-ratio="9:16"] {
    width: min(170px, 52vw);
  }

  .visual-preview-stage[data-ratio="16:9"] {
    width: min(300px, 82vw);
  }
}
