/* Fitting room — garment rail, the arched stage, and outfit controls. */
.fr-page { padding: 14px var(--gutter) 30px; }
.fr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fr-head h1 { margin: 0; font-size: clamp(1.6rem, 1.4vw + 1rem, 2.4rem); }
.fr-head p { margin: 4px 0 0; color: var(--text-2); max-width: 62ch; }
.fr { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .fr { grid-template-columns: 300px minmax(0, 1fr); } .fr-side { grid-column: 1 / -1; } }
@media (max-width: 820px) { .fr { grid-template-columns: 1fr; } .fr-rail { order: 2; } .fr-stage-col { order: 1; } .fr-side { order: 3; } }

.fr-rail, .fr-side { border-radius: var(--r-lg); padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.fr-rail { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 28px); display: flex; flex-direction: column; gap: 10px; }
.slot-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-filter .chip { min-height: 32px; padding: 0 12px; font-size: .8rem; white-space: nowrap; }
.garments { overflow: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 2px; }
.g-card { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); cursor: grab; text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.g-card:hover, .g-card:focus-visible { border-color: var(--text); }
.g-card:active { cursor: grabbing; }
.g-card.is-worn { border-color: var(--peacock); box-shadow: 0 0 0 1px var(--peacock); }
.g-card .pic { aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: radial-gradient(90% 80% at 50% 30%, var(--surface), transparent); }
.g-card .pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.g-card .nm { font-size: .8rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-card .pr { font-size: .78rem; color: var(--text-2); }
.g-card .dots { display: flex; gap: 4px; flex-wrap: wrap; }
.g-card .dots button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); padding: 0; }
.g-card .dots button[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 1px; }
.g-card .slot-tag { position: absolute; top: 12px; left: 12px; font-size: .62rem; font-weight: 800; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: var(--glass-strong); }

.fr-stage-col { display: grid; gap: 12px; }
.fr-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(110% 80% at 50% 10%, var(--surface), var(--surface-2) 60%, color-mix(in srgb, var(--mist) 70%, var(--surface))); border: 1px solid var(--line); min-height: 560px; display: grid; place-items: center; padding: 18px; }
.fr-arch { position: relative; height: min(76vh, 760px); aspect-ratio: 5 / 9; border-radius: var(--arch); background: linear-gradient(180deg, color-mix(in srgb, var(--peacock-soft) 90%, var(--surface)), color-mix(in srgb, var(--rani-soft) 85%, var(--surface))); box-shadow: inset 0 0 0 1px var(--glass-line); }
.fr-arch::before { content: ""; position: absolute; inset: 10px; border-radius: var(--arch); border: 1px solid color-mix(in srgb, var(--zari) 50%, transparent); pointer-events: none; z-index: 2; }
.fr-arch canvas { position: absolute; inset: 4% 6% 2%; width: 88%; height: 94%; object-fit: contain; }
.fr-arch.is-drop-target { box-shadow: inset 0 0 0 2px var(--rani), var(--shadow-2); }
.fr-photo { position: relative; width: 100%; display: grid; place-items: center; }
.fr-photo canvas { width: 100%; max-height: min(76vh, 760px); object-fit: contain; border-radius: var(--r-md); background: var(--surface-2); }
.fr-photo .zoom-note { position: absolute; left: 12px; top: 12px; font-size: .78rem; padding: 6px 10px; border-radius: var(--r-pill); }
.stage-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.avatar-pick button.tone { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--mist-2); padding: 0; }
.avatar-pick button.tone[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.drop-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; font-size: .82rem; padding: 7px 14px; border-radius: var(--r-pill); white-space: nowrap; }

.fr-side { display: grid; gap: 16px; }
.worn-list { display: grid; gap: 8px; }
.worn { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.worn img { width: 44px; height: 52px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.worn .nm { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.worn .sl { font-size: .75rem; color: var(--text-2); }
.worn.base { opacity: .7; }
.ai-card { padding: 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--peacock-soft) 60%, var(--surface)); font-size: .88rem; }
.ai-card.off { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ai-card h3 { font-size: .95rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.photo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-list button { aspect-ratio: 3/4; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; }
.photo-list button[aria-pressed="true"] { outline: 2px solid var(--rani); outline-offset: 2px; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-guide { display: grid; gap: 6px; font-size: .85rem; color: var(--text-2); padding-left: 18px; margin: 8px 0 0; }
.landmark-help { font-size: .85rem; color: var(--text-2); }
.region-chips { display: flex; gap: 6px; flex-wrap: wrap; }
