:root {
  --paper: #f4eee8;
  --white: #fffaf6;
  --ink: #291d23;
  --muted: #6f5d62;
  --plum: #4b2434;
  --copper: #946046;
  --line: #d8c9c2;
  --rose: #a66f72;
  --display: Italiana,Georgia,serif;
  --body: 'DM Sans',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 44px;
  padding: 10px 14px;
}

button:hover:not(:disabled) {
  border-color: var(--copper);
  background: #eaded6;
}

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

a {
  color: inherit;
}

button,input,select,fieldset {
  min-width: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

h1,h2,h3,p {
  margin: 0;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

[hidden] {
  display: none!important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: var(--plum);
  color: white;
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(16px,4vw,64px);
}

.wordmark {
  font: 32px/1 var(--display);
  text-decoration: none;
  letter-spacing: .04em;
}

.wordmark span {
  color: var(--copper);
}

.header-caption {
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-left: auto;
  min-width: 0;
}

.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  color: var(--copper);
}

.site-header nav a[aria-current] {
  border-color: var(--plum);
}

main {
  max-width: 1500px;
  margin: auto;
  padding: 0 clamp(16px,4vw,64px);
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 28px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--copper);
}

h1 {
  font: 44px/1.1 var(--display);
  letter-spacing: -.025em;
  margin-top: 10px;
}

h1>span {
  display: block;
  font: 14px/1.6 var(--body);
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 10px;
}

h1 em {
  font-style: normal;
  color: var(--plum);
}

.intro-aside {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.intro-aside .text-button {
  margin-top: 8px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.text-button:hover:not(:disabled) {
  background: transparent;
  border-color: var(--copper);
  color: var(--copper);
}

#lookbook-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid var(--line);
  margin: 0 8px;
}

.studio-rule {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}

.studio-rule > span {
  min-width: 0;
  flex: 1;
}

.service-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
  min-height: 44px;
}

.service-banner[data-state="unavailable"] {
  color: var(--plum);
  padding: 12px 16px;
  margin: 12px 0 0;
  background: #eaddd4;
  border-left: 2px solid var(--copper);
}

.service-banner button {
  font-size: 12px;
  min-height: 44px;
  padding: 5px 10px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(24px,4vw,60px);
  padding: 16px 0 44px;
}

.workbench>* {
  min-width: 0;
}

.preview-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 12px;
  align-items: center;
}

.preview-heading>span:last-child {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--muted);
}

.preview-frame {
  margin: 0;
  position: relative;
  background: #e9e0d6;
  height: clamp(440px,65vh,700px);
  height: clamp(440px,65svh,700px);
  border: 1px solid var(--line);
  overflow: hidden;
}

.preview-frame>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: #ede4dc;
}

.stage-empty>span {
  font: 50px var(--display);
  color: var(--copper);
  margin-bottom: 16px;
}

.stage-empty h2 {
  font: 30px var(--display);
}

.stage-empty p {
  font-size: 13px;
  max-width: 240px;
  color: var(--muted);
  margin-top: 14px;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.compare-tabs,.preview-actions {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.compare-tabs button,.preview-actions button {
  font-size: 12px;
  padding: 8px 12px;
}

.compare-tabs button {
  border-color: transparent;
}

.compare-tabs [aria-pressed="true"] {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

.preview-actions button {
  border-color: transparent;
}

.preview-note {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0 18px;
  overflow-wrap: anywhere;
}

.section-heading {
  font: 600 16px/1.5 var(--body);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  width: 100%;
}

.section-heading>span {
  font-size: 12px;
  font-weight: 500;
  color: var(--copper);
  border: 1px solid var(--line);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 27px;
}

.source-panel {
  padding: 8px 0 0;
}

.source-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  margin-bottom: 16px;
}

.source-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 2px;
  font-size: 13px;
  flex: 0 1 auto;
}

.source-tabs button[aria-pressed="true"] {
  color: var(--plum);
  border-bottom-color: var(--plum);
  font-weight: 700;
}

.source-tabs button:hover:not(:disabled) {
  background: transparent;
}

.model-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.model-filter-tabs button {
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 11px;
  min-height: 32px;
  border-radius: 4px;
  border-color: var(--line);
  background: var(--white);
  color: var(--muted);
  transition: all .15s ease;
}

.model-filter-tabs button:hover:not(:disabled) {
  border-color: var(--plum);
  color: var(--ink);
}

.model-filter-tabs button[aria-pressed="true"] {
  border-color: var(--plum);
  color: var(--plum);
  background: #eee1da;
  font-weight: 700;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.model-option {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.model-option img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #e8dfd4;
}

.model-option strong {
  display: block;
  font-size: 12px;
  padding: 8px 10px 0;
}

.model-option small {
  display: block;
  padding: 2px 10px 9px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.model-option[aria-pressed="true"] {
  border-color: var(--plum);
  box-shadow: inset 0 0 0 1px var(--plum);
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
  line-height: 1.6;
}

.upload-button {
  width: 100%;
  border-style: dashed;
  color: var(--plum);
  background: var(--white);
  padding: 17px;
  min-height: 56px;
}

.photo-guidance {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.privacy-inline {
  font-size: 12px;
  color: var(--plum);
  margin-top: 10px;
}

.wardrobe-panel {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.wardrobe-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tabs {
  display: flex;
  gap: 3px;
  min-width: 0;
  flex-wrap: wrap;
}

.filter-tabs button {
  font-size: 12px;
  padding: 8px 11px;
  border-color: transparent;
}

.filter-tabs button[aria-pressed="true"] {
  border-color: var(--plum);
  color: var(--plum);
  background: #eee1da;
}

.garment-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.garment-option {
  position: relative;
  text-align: left;
  padding: 0;
  border-color: transparent;
  overflow: hidden;
  min-width: 0;
}

.garment-option img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #e8dfd4;
  border: 1px solid var(--line);
  transition: filter .2s;
}

.garment-option strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 1px 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.garment-option small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 1px 9px;
}

.garment-option[aria-pressed="true"] img {
  border: 2px solid var(--plum);
}

.garment-option[aria-pressed="true"]::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: white;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.garment-option:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
}

.garment-option:hover img {
  filter: brightness(.96);
}

.catalog-note {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 8px 0 22px;
}

.selected-garment {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #eee3db;
  border-left: 2px solid var(--copper);
}

.selected-garment>img {
  width: 56px;
  height: 84px;
  object-fit: cover;
  flex: 0 0 56px;
}

.selected-garment>div {
  min-width: 0;
}

.selected-garment h2 {
  font: 26px/1.15 var(--display);
  margin: 5px 0 7px;
  overflow-wrap: anywhere;
}

.selected-garment p {
  font-size: 12px;
  color: var(--muted);
}

.selected-garment .eyebrow {
  font-size: 11px;
}

.garment-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}

.creation-panel {
  padding-top: 24px;
}

.mode-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mode-options button {
  text-align: left;
  padding: 12px;
}

.mode-options button strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.mode-options button small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.mode-options [aria-pressed="true"] {
  border-color: var(--plum);
  box-shadow: inset 0 0 0 1px var(--plum);
  background: var(--white);
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

.consent-label input {
  appearance: auto;
  accent-color: var(--plum);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0;
}

.privacy-details {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.privacy-details summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding: 12px 0;
}

.privacy-details p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.privacy-details a {
  color: var(--plum);
  text-underline-offset: 3px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 54px;
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
}

.primary-button:hover:not(:disabled) {
  background: #623248;
  border-color: #623248;
}

.primary-button span {
  font-size: 21px;
}

.generation-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px 5px;
}

.job-panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 16px;
  margin: 14px 0;
}

.job-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.job-heading strong {
  font-size: 12px;
  flex: 1;
  min-width: 100px;
}

.job-heading>span:last-child {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.activity-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex: 0 0 8px;
}

.job-panel[aria-busy="true"] .activity-dot {
  animation: breathe 1.6s ease-in-out infinite;
}

.job-panel>p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-actions button {
  font-size: 12px;
  padding: 8px 10px;
}

.studio-status {
  font-size: 12px;
  color: var(--plum);
  min-height: 0;
  overflow-wrap: anywhere;
}

.studio-status:not(:empty) {
  padding: 12px 0;
}

.studio-status[data-error="true"] {
  color: #8a2837;
}

.fit-note {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.fit-note>span {
  color: var(--copper);
  font-size: 24px;
}

.fit-note strong {
  font-size: 12px;
  font-weight: 600;
}

.fit-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}

.reset-button {
  font-size: 12px;
  margin-top: 22px;
  border-color: transparent;
  color: var(--muted);
  padding-left: 0;
}

.studio-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 25px clamp(16px,4vw,64px) max(25px,env(safe-area-inset-bottom));
  color: var(--muted);
}

.studio-footer>span {
  font-size: 12px;
  letter-spacing: .12em;
}

.studio-footer p {
  font: 22px var(--display);
}

.studio-footer a {
  font-size: 12px;
  text-underline-offset: 5px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

dialog {
  color: var(--ink);
  background: var(--paper);
  padding: 0;
  border: 1px solid var(--line);
  width: min(600px,calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog::backdrop {
  background: rgba(32,21,26,.6);
}

.dialog-heading {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.dialog-heading>div {
  min-width: 0;
}

.dialog-heading h2 {
  font: 32px/1.2 var(--display);
  margin-top: 6px;
}

.close-button {
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  flex: 0 0 44px;
  padding: 0;
}

.dialog-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 24px;
}

.dialog-content>p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
}

.field-label input,.field-label select {
  background: var(--white);
  width: 100%;
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
}

.field-label input[type=file] {
  font-size: 12px;
  padding: 8px;
}

.field-label input::file-selector-button {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-right: 8px;
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.form-error {
  margin: 14px 0;
  color: #8a2837!important;
}

.dialog-content .primary-button {
  margin-top: 20px;
}

#lookbook-dialog {
  width: min(980px,calc(100% - 24px));
}

.lookbook-empty {
  text-align: center;
  padding: 44px 20px;
}

.lookbook-empty>span {
  font-size: 32px;
  color: var(--copper);
}

.lookbook-empty h3 {
  font: 30px var(--display);
  margin: 16px 0;
}

.lookbook-empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 300px;
  margin: auto;
}

.lookbook-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px 18px;
  margin-top: 20px;
}

.lookbook-item {
  min-width: 0;
}

.lookbook-item img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  background: #e9e0d6;
}

.lookbook-item h3 {
  font: 23px/1.2 var(--display);
  margin: 12px 0 5px;
  overflow-wrap: anywhere;
}

.lookbook-item p {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lookbook-item>div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.lookbook-item button {
  font-size: 12px;
  padding: 8px 10px;
}

@keyframes breathe {
  50% {
    opacity: .35;
  }
}

@media(min-width:1500px) {
  .preview-frame {
    height: 720px;
  }
}

@media(max-width:1100px) {
  .header-caption {
    display: none;
  }
  .site-header nav {
    gap: 0 14px;
  }
  .workbench {
    gap: 28px;
  }
  .preview-toolbar {
    align-items: stretch;
  }
  .preview-actions {
    margin-left: auto;
  }
  .garment-list {
    gap: 8px;
  }
  .wardrobe-top {
    align-items: flex-start;
  }
  .model-option small {
    font-size: 12px;
  }
  .selected-garment {
    padding: 12px;
  }
  .selected-garment h2 {
    font-size: 23px;
  }
}

@media(max-width:800px) {
  .field-label input,
  .field-label select {
    font-size: 16px;
  }
  .site-header {
    padding: 14px 16px;
    gap: 8px;
  }
  .wordmark {
    font-size: 28px;
  }
  .site-header nav {
    margin: 0;
    flex-basis: 100%;
    gap: 0 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .site-header nav a {
    font-size: 12px;
    flex: none;
    min-height: 44px;
  }
  .intro {
    padding: 26px 0 22px;
    align-items: center;
  }
  .intro-aside>p {
    display: none;
  }
  .intro h1 {
    font-size: 36px;
  }
  .intro h1>span {
    font-size: 12px;
  }
  .intro-aside .text-button {
    font-size: 12px;
    white-space: nowrap;
  }
  .studio-rule {
    font-size: 11px;
    letter-spacing: 0;
    gap: 8px;
  }
  .workbench {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
    padding-top: 18px;
  }
  .preview-frame {
    height: 420px;
    height: min(58svh,480px);
    min-height: 280px;
  }
  .preview-column {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .preview-toolbar {
    gap: 4px;
  }
  .preview-actions {
    margin-left: auto;
  }
  .model-option img {
    height: 115px;
  }
  .model-option small {
    font-size: 12px;
  }
  .source-panel {
    margin-top: 4px;
  }
  .wardrobe-panel .section-heading {
    padding-top: 2px;
  }
  .garment-option img {
    max-height: 285px;
    object-fit: contain;
  }
  .selected-garment {
    margin-top: 6px;
  }
  .selected-garment h2 {
    font-size: 28px;
  }
  .creation-panel {
    padding-top: 22px;
  }
  .studio-footer {
    align-items: start;
  }
  .studio-footer p {
    order: 3;
    flex-basis: 100%;
    font-size: 21px;
  }
  .dialog-heading {
    padding: 18px;
  }
  .dialog-content {
    padding: 18px;
  }
  .lookbook-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 12px;
  }
  .lookbook-item h3 {
    font-size: 23px;
  }
}

@media(max-width:420px) {
  .intro {
    display: block;
  }
  .intro-aside {
    text-align: left;
  }
  .intro-aside .text-button {
    margin-top: 12px;
  }
  .preview-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .preview-actions {
    margin: 0;
    justify-content: flex-end;
  }
  .compare-tabs {
    justify-content: center;
  }
  .compare-tabs button {
    flex: 1;
  }
  .preview-actions button {
    flex: 1;
  }
  .model-list {
    gap: 6px;
  }
  .model-option img {
    height: 100px;
  }
  .model-option strong,.model-option small {
    padding-left: 6px;
    padding-right: 6px;
  }
  .model-option small {
    font-size: 12px;
  }
  .garment-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .garment-option img {
    max-height: 240px;
  }
  .filter-tabs button {
    padding: 8px 9px;
  }
  .section-heading {
    font-size: 15px;
  }
  .mode-options button {
    padding: 10px;
  }
  .mode-options button strong {
    font-size: 12px;
  }
  .mode-options button small {
    font-size: 12px;
  }
  .form-pair {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  .lookbook-list {
    gap: 18px 10px;
  }
  .lookbook-item h3 {
    font-size: 20px;
  }
  .lookbook-item button {
    width: 100%;
    font-size: 12px;
  }
  .dialog-heading h2 {
    font-size: 29px;
  }
}

@media(max-height:540px) and (max-width:1000px) {
  .preview-frame {
    height: 360px;
    min-height: 0;
  }
  .intro {
    padding-top: 20px;
  }
  dialog {
    max-height: calc(100dvh - 12px);
  }
  .dialog-heading {
    padding: 10px 18px;
  }
  .dialog-heading h2 {
    font-size: 26px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
