/* LoveMelons — model picker em etapas (cards densos ≠ funil MVG) */

.model-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(0.65rem + env(safe-area-inset-top, 0px))
    0.85rem
    calc(0.65rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.model-picker-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.model-picker-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 10, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.model-picker-modal__sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 1fr);
  width: min(100%, 74rem);
  height: min(96dvh, 52rem);
  max-height: min(96dvh, 52rem);
  margin: auto;
  overflow: hidden;
  border: 1.5px solid rgba(45, 143, 78, 0.32);
  border-radius: 1.85rem;
  background:
    radial-gradient(ellipse 80% 50% at 8% -6%, rgba(255, 45, 85, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 100%, rgba(45, 143, 78, 0.14), transparent 50%),
    linear-gradient(165deg, #141a16 0%, #0e1210 55%, #120c10 100%);
  box-shadow:
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 45, 85, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(0.6rem) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
}

.model-picker-modal__sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  z-index: 3;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #2d8f4e 22%, #ff2d55 50%, #2d8f4e 78%, transparent);
  pointer-events: none;
}

.model-picker-modal.is-open .model-picker-modal__sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.model-picker-open {
  overflow: hidden;
}

.model-picker-modal__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 45, 85, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    #080c0a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.model-picker-modal__preview-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(45, 143, 78, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #0b100e;
  box-shadow:
    0 1rem 2.4rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 45, 85, 0.08) inset;
  overflow: hidden;
}

.model-picker-modal__preview-frame.is-loading img {
  filter: blur(10px) brightness(0.72);
  transform: scale(1.02);
}

.model-picker-modal__preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.model-picker-modal--fullbody .model-picker-modal__preview {
  container-type: size;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
}

.model-picker-modal--fullbody .model-picker-modal__preview-frame {
  position: relative;
  width: min(100%, 28rem);
  height: auto;
  max-height: calc(100% - 0.25rem);
  min-height: 0;
  aspect-ratio: 3 / 5;
  margin-inline: auto;
  flex-shrink: 0;
}

@supports (width: 100cqw) {
  .model-picker-modal--fullbody .model-picker-modal__preview-frame {
    width: min(100cqw, calc(100cqh * 3 / 5));
    max-height: 100cqh;
  }
}

.model-picker-modal--fullbody .model-picker-modal__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 0.15rem;
}

.model-picker-modal__preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  background: rgba(8, 14, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.model-picker-modal__preview-loading[hidden] {
  display: none !important;
}

.model-picker-modal__preview-loading p {
  margin: 0;
  color: #ff6b85;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  animation: model-picker-pulse 1.4s ease-in-out infinite;
}

.model-picker-modal__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid rgba(45, 143, 78, 0.25);
  border-top-color: #ff2d55;
  animation: model-picker-spin 0.85s linear infinite;
  box-shadow: 0 0 1.2rem rgba(255, 45, 85, 0.3);
}

@keyframes model-picker-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes model-picker-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* ---- Painel de escolha ---- */

.model-picker-modal__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(45, 143, 78, 0.04), transparent 18%),
    rgba(10, 14, 12, 0.35);
}

.model-picker-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 0.55rem;
  flex-shrink: 0;
}

.model-picker-modal__heading {
  min-width: 0;
  flex: 1;
}

.model-picker-modal__title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.model-picker-modal__title {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.model-picker-modal__step-meta {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(45, 143, 78, 0.4);
  background: rgba(45, 143, 78, 0.14);
  color: #9dffa8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.model-picker-modal__subtitle {
  margin: 0.35rem 0 0;
  color: rgba(92, 184, 106, 0.85);
  font-size: 0.84rem;
  line-height: 1.4;
}

.model-picker-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.model-picker-modal__close:hover {
  border-color: rgba(255, 45, 85, 0.4);
  background: rgba(255, 45, 85, 0.12);
  color: #fff;
}

/* Stepper em trilho compacto */
.model-picker-modal__stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.15rem 1.15rem 0.55rem;
  flex-shrink: 0;
}

.model-picker-modal__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  padding: 0.15rem 0.2rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.16s ease;
}

.model-picker-modal__step:disabled {
  cursor: default;
  opacity: 0.5;
}

.model-picker-modal__step.is-done {
  color: #5cb86a;
  opacity: 1;
}

.model-picker-modal__step.is-active {
  color: #fff;
  opacity: 1;
}

.model-picker-modal__step-num {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.model-picker-modal__step.is-active .model-picker-modal__step-num {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4d6d, #ff2d55);
  color: #fff;
  box-shadow: 0 0.3rem 0.75rem rgba(255, 45, 85, 0.4);
}

.model-picker-modal__step.is-done .model-picker-modal__step-num {
  border-color: rgba(45, 143, 78, 0.55);
  background: rgba(45, 143, 78, 0.28);
  color: #7dffa0;
}

.model-picker-modal__step-label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 4.8rem;
}

.model-picker-modal__step-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 0.35rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  align-self: center;
}

.model-picker-modal__progress {
  height: 3px;
  margin: 0 1.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.model-picker-modal__progress-bar {
  display: block;
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8f4e, #ff2d55);
  transition: width 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Resumo das escolhas já feitas */
.model-picker-modal__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.15rem 0.65rem;
  flex-shrink: 0;
}

.model-picker-modal__picks[hidden] {
  display: none !important;
}

.model-picker-modal__pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(45, 143, 78, 0.35);
  background: rgba(45, 143, 78, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.model-picker-modal__pick-key {
  color: rgba(125, 255, 160, 0.75);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.model-picker-modal__pick-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Corpo: cards preenchem a altura */
.model-picker-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.model-picker-modal__step-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: model-picker-step-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-picker-modal__step-panel[hidden] {
  display: none !important;
}

@keyframes model-picker-step-in {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-picker-modal__chips {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0.55rem;
  align-content: stretch;
  overflow: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 143, 78, 0.45) transparent;
}

/* 3 opções (idade): cards altos empilhados */
.model-picker-modal__chips[data-count="3"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

/* 4 opções (etnia): grade 2×2 */
.model-picker-modal__chips[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Muitas opções (cabelo): grade densa com scroll */
.model-picker-modal__chips[data-count]:not([data-count="3"]):not([data-count="4"]) {
  grid-template-columns: 1fr 1fr;
  align-content: start;
  grid-auto-rows: minmax(3.35rem, auto);
}

.model-picker-modal__chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(8, 14, 10, 0.55);
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.model-picker-modal__chips[data-count="3"] .model-picker-modal__chip {
  min-height: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
}

.model-picker-modal__chips[data-count="4"] .model-picker-modal__chip {
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem 0.9rem;
}

.model-picker-modal__chip-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.model-picker-modal__chips[data-count="3"] .model-picker-modal__chip-label {
  font-size: 1.2rem;
}

.model-picker-modal__chip-check {
  flex-shrink: 0;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 1rem !important;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.model-picker-modal__chips[data-count="4"] .model-picker-modal__chip-check {
  align-self: flex-end;
}

.model-picker-modal__chip:hover {
  border-color: rgba(45, 143, 78, 0.55);
  background:
    linear-gradient(135deg, rgba(45, 143, 78, 0.14), transparent 55%),
    rgba(8, 14, 10, 0.65);
  transform: translateY(-1px);
}

.model-picker-modal__chip.is-active {
  border-color: rgba(255, 45, 85, 0.85);
  background:
    linear-gradient(135deg, rgba(255, 45, 85, 0.28), rgba(45, 143, 78, 0.1) 70%),
    rgba(18, 10, 12, 0.75);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 45, 85, 0.15) inset,
    0 0.45rem 1.1rem rgba(255, 45, 85, 0.22);
}

.model-picker-modal__chip.is-active .model-picker-modal__chip-check {
  border-color: transparent;
  background: linear-gradient(135deg, #2d8f4e, #247a42);
  color: #fff;
}

.model-picker-modal__chip:disabled {
  opacity: 0.55;
  cursor: wait;
}

.model-picker-modal__footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 14, 10, 0.15), rgba(8, 14, 10, 0.45));
}

.model-picker-modal__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1.5px solid rgba(45, 143, 78, 0.45);
  border-radius: 0.85rem;
  background: rgba(45, 143, 78, 0.08);
  color: #5cb86a;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.model-picker-modal__back:hover:not(:disabled) {
  border-color: rgba(92, 184, 106, 0.7);
  background: rgba(45, 143, 78, 0.16);
  color: #7dffa0;
}

.model-picker-modal__back:disabled {
  opacity: 0.35;
  cursor: default;
}

.model-picker-modal__back .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
}

.model-picker-modal__generate {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3rem;
  border: none;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #ff4d6d 0%, #ff2d55 50%, #e01030 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 0.55rem 1.35rem rgba(255, 45, 85, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.model-picker-modal__generate:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow:
    0 0.65rem 1.5rem rgba(255, 45, 85, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.3);
}

.model-picker-modal__generate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.model-picker-modal__generate .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .model-picker-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .model-picker-modal__sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .model-picker-modal__sheet::before {
    left: 0;
    right: 0;
    border-radius: 0;
  }

  /* Preview retrato: mostra o rosto inteiro (≠ faixa larga com cover) */
  .model-picker-modal__preview {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.7rem 1rem 0.45rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(circle at 50% 30%, rgba(255, 45, 85, 0.14), transparent 55%),
      #080c0a;
  }

  .model-picker-modal__preview-frame {
    position: relative;
    width: min(58vw, 13.5rem);
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: min(38dvh, 18rem);
    min-height: 0;
    border-radius: 1.15rem;
    border: 1.5px solid rgba(45, 143, 78, 0.35);
    box-shadow:
      0 0.75rem 1.75rem rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 45, 85, 0.1) inset;
    overflow: hidden;
  }

  .model-picker-modal__preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
  }

  .model-picker-modal__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .model-picker-modal__header {
    padding: 0.65rem 0.9rem 0.25rem;
  }

  .model-picker-modal__title {
    font-size: 1.05rem;
  }

  .model-picker-modal__subtitle {
    margin-top: 0.15rem;
    font-size: 0.74rem;
  }

  .model-picker-modal__stepper {
    padding: 0 0.9rem 0.3rem;
  }

  .model-picker-modal__step-num {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.66rem;
  }

  .model-picker-modal__step-label {
    font-size: 0.56rem;
    max-width: 4.2rem;
  }

  .model-picker-modal__step-line {
    margin-bottom: 0.9rem;
  }

  .model-picker-modal__progress {
    margin: 0 0.9rem 0.35rem;
  }

  .model-picker-modal__picks {
    padding: 0 0.9rem 0.35rem;
  }

  .model-picker-modal__body {
    padding: 0 0.9rem 0.4rem;
  }

  .model-picker-modal__chips,
  .model-picker-modal__chips[data-count="3"],
  .model-picker-modal__chips[data-count="4"],
  .model-picker-modal__chips[data-count]:not([data-count="3"]):not([data-count="4"]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0.38rem;
    align-content: stretch;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .model-picker-modal__chip,
  .model-picker-modal__chips[data-count="3"] .model-picker-modal__chip,
  .model-picker-modal__chips[data-count="4"] .model-picker-modal__chip {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 2.7rem;
    height: auto;
    padding: 0.65rem 0.8rem;
    border-radius: 0.8rem;
  }

  .model-picker-modal__chip-label,
  .model-picker-modal__chips[data-count="3"] .model-picker-modal__chip-label {
    font-size: 0.9rem;
  }

  .model-picker-modal__chips[data-count="4"] .model-picker-modal__chip-check {
    align-self: center;
  }

  .model-picker-modal__footer {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  }

  .model-picker-modal__back,
  .model-picker-modal__generate {
    order: unset;
    min-height: 2.75rem;
    border-radius: 0.8rem;
  }

  .model-picker-modal__back {
    flex: 0 0 auto;
    padding: 0 0.7rem;
  }

  .model-picker-modal__generate {
    flex: 1 1 auto;
    font-size: 0.9rem;
  }

  .model-picker-modal--fullbody .model-picker-modal__sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    max-height: none;
    overflow: hidden;
  }

  .model-picker-modal--fullbody .model-picker-modal__preview {
    flex: 0 0 auto;
    padding: 0.55rem 1rem 0.4rem;
    container-type: normal;
  }

  .model-picker-modal--fullbody .model-picker-modal__preview-frame {
    width: min(52vw, 12.5rem);
    aspect-ratio: 3 / 5;
    max-height: min(42dvh, 20rem);
    border-radius: 1.15rem;
  }

  .model-picker-modal--fullbody .model-picker-modal__preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    padding: 0;
  }

  .model-picker-modal--fullbody .model-picker-modal__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .model-picker-modal__step-label {
    display: none;
  }

  .model-picker-modal__step-line {
    margin-bottom: 0;
  }

  .model-picker-modal__stepper {
    justify-content: center;
    gap: 0;
    padding-bottom: 0.2rem;
  }

  .model-picker-modal__step {
    flex: 0 0 auto;
  }

  .model-picker-modal__preview-frame {
    width: min(62vw, 14rem);
    max-height: min(36dvh, 16.5rem);
  }
}


.model-picker-modal__footer {
  display: grid;
  gap: 0.65rem;
}

.model-picker-modal__reshuffle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  padding: 0.82rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.model-picker-modal__reshuffle:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 176, 46, 0.45);
}

.model-picker-modal__reshuffle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
