.dress-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .dress-layout { grid-template-columns: minmax(0, 1fr); } .stage { max-width: 520px; margin: 0 auto; width: 100%; } }
.stage { position: sticky; top: 1rem; }
@media (max-width: 900px) { .stage { position: static; } }

.preview {
  width: 100%; aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-hi); box-shadow: var(--shadow); background: #2a1a10;
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1);
}
.preview.bounce { animation: dress-bounce .45s cubic-bezier(.3, 1.5, .5, 1); }
.preview svg { display: block; width: 100%; height: 100%; }
@keyframes dress-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.025, .975); } 100% { transform: scale(1); } }

.name-field { display: block; margin: 1rem 0; }
.name-field span { display: block; margin-bottom: .35rem; color: var(--muted); font-weight: 600; font-size: 1rem; }
.name-field input {
  width: 100%; min-height: 3.4rem; padding: .6rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink);
  font: 600 1.2rem var(--display);
}
.name-field input::placeholder { color: rgba(220, 199, 173, .6); }
.stage-actions { justify-content: space-between; align-items: center; }

.panel { padding: 1.4rem; }
.panel h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.panel h2:not(:first-child) { margin-top: 1.5rem; }
.panel h3 { margin: 1.1rem 0 .5rem; font: 700 .85rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.panel h3:first-child { margin-top: .2rem; }

.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
.options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: .9rem; }
.options h3 { grid-column: 1 / -1; }
.opt {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .45rem .35rem .55rem;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06);
  color: var(--ink); font: 600 .82rem/1.2 var(--body); text-align: center; cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.opt img { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; background: #2a1a10; object-fit: cover; }
.opt.swatch img { aspect-ratio: auto; }
.opt:active { transform: scale(.94); }
@media (hover: hover) { .opt:hover { border-color: var(--line-hi); transform: translateY(-2px); } }
.opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(242, 178, 74, .22); box-shadow: 0 0 0 2px rgba(242, 178, 74, .55); }
.opt:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.opt.look { padding: .3rem; }

dialog#picture { width: min(560px, calc(100vw - 1.5rem)); padding: 1.2rem; border: 1px solid var(--line-hi); border-radius: 26px; background: rgba(34, 21, 14, .97); color: var(--ink); text-align: center; }
dialog#picture::backdrop { background: rgba(10, 5, 2, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#picture-img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; display: block; }
dialog#picture p { color: var(--muted); margin: .8rem 0; }
dialog#picture .actions { justify-content: center; display: flex; gap: .7rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .preview.bounce { animation: none; } }

.keep-row { margin-top: .8rem; }
.keep-row .btn { width: 100%; }
.kept { margin: .8rem 0 0; text-align: center; color: var(--gold-hi); font-weight: 600; }
.kept a { color: var(--gold-hi); }
