/* Room and rail stay responsive without a 3D runtime. */
.side-stack, .side-stack > *, .selected-panel, .room-shell { min-width: 0; }
.selected-name { overflow-wrap: anywhere; }
.selected-price { font-size: clamp(1.7rem, 3vw, 2.8rem); overflow-wrap: anywhere; }
.loft-rack[hidden] { display: none; }
.loft-rack { margin-top: 20px; border: 1px solid #756044; border-radius: 14px; overflow: hidden; background: #171914; color: #f4eadb; box-shadow: 0 22px 55px #0004; }
.loft-rack-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; }
.loft-eyebrow { color: #dcb888; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.loft-rack-head h3 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.7vw, 36px); margin: 8px 0; line-height: 1.1; }
.loft-rack-head p, .loft-rack-footer p { color: #c2b9aa; font-size: 12px; line-height: 1.5; }
.loft-live-count { flex-shrink: 0; border: 1px solid #8b997766; border-radius: 30px; padding: 8px 12px; color: #c9dfb6; font-size: 12px; }
.loft-studio { position: relative; isolation: isolate; padding: 22px 18px 0; background: radial-gradient(ellipse at 45% 0, #ecd7a744, transparent 65%), linear-gradient(100deg, #27271f, #55513e 48%, #272c23); overflow: hidden; }
.loft-studio::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#1c241dcc, #25271cea), url('/assets/rooms/clothing-loft.png') center / cover; opacity: .55; }
.loft-studio::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55px; z-index: -1; background: linear-gradient(#514332, #302920); border-top: 1px solid #baa27733; box-shadow: 0 -12px 30px #0002; }
.loft-rail { position: absolute; left: 20px; right: 20px; top: 44px; height: 9px; border-radius: 9px; background: linear-gradient(#efdec0, #9e845e 40%, #594833 75%, #b49b76); box-shadow: 0 12px 15px #0009; }
.loft-track { position: relative; display: flex; gap: 20px; padding: 10px 16px 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b6a17a #272b24; min-height: 380px; }
.loft-piece { position: relative; flex: 0 0 190px; min-width: 0; border: 0; background: none; color: inherit; scroll-snap-align: center; text-align: left; padding: 0; align-self: flex-start; }
.loft-swing { display: block; transform-origin: 50% 12px; filter: drop-shadow(8px 14px 7px #0006); transition: transform .24s cubic-bezier(.2,.8,.2,1), filter .24s ease; will-change: transform; }
.wood-hanger { display: block; width: 100%; height: 74px; position: relative; z-index: 2; }
.loft-photo { display: grid; place-items: center; height: 205px; margin: -9px 9px 0; background: #e8dfcc; border: 1px solid #e7d9bd77; border-radius: 3px 3px 8px 8px; overflow: hidden; color: #4a453a; font-size: 12px; text-align: center; }
.loft-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.loft-ticket { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 12px 8px 0; font-size: 12px; }
.loft-ticket > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loft-ticket strong { color: #ffe0a6; }
.loft-ticket small { grid-column: 1 / -1; color: #c7d9b6; font-size: 9px; letter-spacing: .13em; }
.loft-piece:focus-visible, .loft-track:focus-visible { outline: 2px solid #ffe0a6; outline-offset: -2px; border-radius: 6px; }
.loft-piece[aria-pressed="true"] .loft-photo { outline: 2px solid #e2bc77; outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .loft-piece:hover .loft-swing { transform: translateY(-3px) rotate(var(--rack-tilt, 1deg)); filter: drop-shadow(10px 17px 7px #0007); } .loft-piece.is-touched .loft-swing { animation: hanger-sway 1.15s ease-in-out; } }
@keyframes hanger-sway { 0%,100% { transform: rotate(0); } 22% { transform: rotate(3deg); } 50% { transform: rotate(-2deg); } 76% { transform: rotate(1deg); } }
.loft-decor { flex-basis: 125px; opacity: .65; }
.loft-decor .wood-hanger { height: 74px; }
.loft-decor-label { display: block; margin-top: 140px; text-align: center; font-size: 9px; letter-spacing: .14em; color: #e9d9bf; }
.loft-decor-label small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0; }
.loft-empty { padding: 0 12px 22px; color: #f3dfbf; font-size: 13px; }
.loft-rack-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; }
.loft-rack-footer > div { display: flex; gap: 8px; }
.loft-rack-footer button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #7a765d; color: #f3dfbf; background: #ffffff08; font-size: 20px; }
.loft-rack-footer button:disabled { opacity: .25; cursor: default; }
.loft-seller-note { border-top: 1px solid #ffffff15; padding: 16px 24px; font-size: 13px; color: #d9c7aa; line-height: 1.6; }
.loft-track { min-height: 425px; gap: 24px; perspective: 1100px; }
.loft-piece { flex-basis: 208px; }
.loft-swing { height: 320px; transform-origin: 50% 4px; }
.loft-photo { height: 245px; }
.has-room-cutout .loft-photo { height: 320px; margin: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.has-room-cutout .loft-photo img { filter: drop-shadow(8px 11px 5px #0005); object-position: center top; }
.loft-piece.has-room-cutout[aria-pressed="true"] .loft-photo { outline: none; }
.loft-piece.has-room-cutout[aria-pressed="true"] .loft-ticket { border-bottom: 2px solid #e2bc77; padding-bottom: 8px; }
.loft-piece.has-room-cutout[aria-pressed="true"] .loft-photo img { filter: drop-shadow(0 0 2px #f5d596aa) drop-shadow(8px 11px 5px #0005); }
.loft-ticket > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.loft-decor .loft-swing { height: 74px; }
.loft-decor-label { margin-top: 190px; }
.room-cutout-editor { padding: 16px; margin: 12px 0; border: 1px solid #a78b5b55; border-radius: 10px; background: #25281f; }
.room-cutout-editor summary { cursor: pointer; color: #e9cc9f; font-weight: 700; }
.room-cutout-editor p { font-size: 12px; line-height: 1.6; margin: 12px 0; color: #d0c5b5; }
.room-cutout-editor label { display: block; font-size: 12px; margin-bottom: 8px; }
.room-cutout-editor input { max-width: 100%; }
.room-prepare { padding-top: 12px; }
.room-prepare-adjustments { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-top: 16px; }
.room-prepare-adjustments input[type="range"] { display: block; width: 100%; margin-top: 8px; accent-color: #d5ad69; }
.room-prepare-adjustments output { float: right; color: #edd2a6; }
.room-gap-option input { margin-right: 6px; accent-color: #d5ad69; }
.room-gap-option small { display: block; margin-top: 6px; color: #b9b3a5; }
.room-prepare-comparison { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.room-prepare-comparison figure { margin: 0; min-width: 0; }
.room-prepare-comparison figcaption { font-size: 12px; color: #e5cfad; padding-bottom: 8px; }
.room-prepare-comparison figure > div { height: 260px; display: grid; place-items: center; background: radial-gradient(ellipse at top,#696c4b,#151b14); border: 1px solid #ffffff18; border-radius: 8px; padding: 10px; }
.room-prepare-comparison img { max-height: 240px; max-width: 100%; object-fit: contain; }
.room-prepare-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
#approveRoomPreparation { border-color: #d5ad69; color: #edd2a6; }
#roomPreparationReview[hidden] { display: none; }
@media(max-width:500px) { .room-prepare-adjustments { grid-template-columns: 1fr; } .room-prepare-comparison figure > div { height: 190px; padding: 4px; } .room-prepare-comparison img { max-height: 180px; } }
.room-cutout-preview { height: 220px; max-width: 100%; display: grid; place-items: center; padding: 12px; margin: 12px 0; color: #c7bda9; font-size: 12px; text-align: center; background: radial-gradient(ellipse at top, #706e4c, #171d16); border-radius: 10px; }
.room-cutout-preview img { max-width: 100%; height: 195px; object-fit: contain; filter: drop-shadow(6px 8px 4px #0006); }
@media(max-width: 700px) { .loft-rack-head { padding: 20px 16px; } .loft-rack-head h3 { font-size: 26px; } .loft-live-count { padding: 7px; } .loft-piece { flex-basis: 165px; } .loft-photo { height: 190px; } .loft-track { min-height: 360px; gap: 12px; } .loft-rack-footer { padding: 12px; } }
@media(max-width: 700px) { .loft-piece { flex-basis: 190px; } .loft-swing { height: 295px; } .loft-photo { height: 230px; } .has-room-cutout .loft-photo { height: 295px; } .loft-track { min-height: 405px; } .loft-decor .loft-swing { height: 74px; } }
