.room-caption {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
html.room-route-pending .room-app { visibility: hidden; }
.room-slide:not(.sourcing) .room-caption { display: none; }
.room-slide.portrait-vignette { background: #171513; }
.room-slide.portrait-vignette > .room-photo { object-fit: contain; }
.room-caption h1 { color: #fff !important; text-shadow: 0 5px 24px rgba(0, 0, 0, .94), 0 2px 4px rgba(0, 0, 0, .94); }
.room-caption p { color: #fff !important; text-shadow: 0 3px 14px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .75); }
.sidebar { background: linear-gradient(90deg, rgba(10, 9, 8, .45), transparent) !important; }
.sidebar [hidden] { display: none !important; }
.explore-tabs { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 15px; }
.explore-tabs button { min-height: 42px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.32); border-radius: 9px; color: rgba(255,255,255,.8); background: rgba(20,19,17,.2); font: 11px var(--sans); cursor: pointer; }
.explore-choice { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.explore-choice span { font-size: 16px; line-height: 1; opacity: .78; }
.explore-tabs.is-submenu { animation: none; }
.explore-back { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 31px !important; padding: 4px 0 !important; border: 0 !important; border-radius: 0 !important; color: rgba(255,255,255,.66) !important; background: transparent !important; font-size: 10px !important; }
.explore-back span { font-size: 15px; line-height: .8; }
.explore-subnav { animation: none; }
.explore-tabs[data-transition="forward"],
.explore-subnav[data-transition="forward"] { animation: explore-slide-in-right .26s cubic-bezier(.2,.75,.25,1) both; }
.explore-tabs[data-transition="back"],
.explore-subnav[data-transition="back"] { animation: explore-slide-in-left .26s cubic-bezier(.2,.75,.25,1) both; }
@keyframes explore-slide-in-right { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes explore-slide-in-left { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
.room-type-nav button.active::after { content: ""; float: right; width: 7px; height: 7px; margin: 6px 3px 0 0; border-top: 1.5px solid #e8a98a; border-right: 1.5px solid #e8a98a; transform: rotate(45deg); }
.room-type-nav { display: flex; flex-direction: column; margin-top: 16px; }
.room-type-nav button { color: #fff; border: 0; border-bottom: 1px solid #ffffff33; background: transparent; text-align: left; padding: 13px 0; font: 18px var(--serif); cursor: pointer; opacity: .58; }
.room-type-nav button:hover, .room-type-nav button.active { opacity: 1; }
.style-nav button.active:after { content: ""; width: 7px; height: 7px; margin: 6px 3px 0 0; border-top: 1.5px solid #e8a98a; border-right: 1.5px solid #e8a98a; transform: rotate(45deg); }
.source-button { align-items: center; }
.source-button-arrow { position: relative; display: block; width: 13px; height: 12px; flex: 0 0 13px; }
.source-button-arrow::before { content: ""; position: absolute; top: 5px; left: 0; width: 12px; height: 1px; background: currentColor; }
.source-button-arrow::after { content: ""; position: absolute; top: 2px; right: 0; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.hotspot { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -50%) scale(.72); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.room-match-debug { position: absolute !important; z-index: 60 !important; isolation: isolate; top: 18px; right: 18px; display: grid !important; gap: 4px; min-width: 100px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.6); color: rgba(255,255,255,.95); background: rgba(12,11,10,.91); box-shadow: 0 7px 22px rgba(0,0,0,.42); font: 10px/1.15 var(--mono); letter-spacing: .04em; opacity: 1 !important; visibility: visible !important; pointer-events: none; }
.room-match-debug p { margin: 0 0 2px; color: rgba(255,255,255,.58); font: 8px/1 var(--mono); letter-spacing: .12em; }
.room-match-debug span { display: flex; justify-content: space-between; gap: 9px; }
.room-match-debug b { color: #efb394; font-weight: 600; }
.hotspot { border: 1px solid rgba(255,255,255,.94); background: rgba(255,255,255,.76); -webkit-backdrop-filter: none; backdrop-filter: none; will-change: transform, opacity; }
.room-slide.is-in-view .hotspot { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
.mobile-room-actions { display: none; }
.sheet-room-actions { display: none; }
.room-purchase { padding: 42px; }
.room-purchase h2 { margin: 10px 0 7px; font: 500 38px/1 var(--serif); letter-spacing: -1.6px; }
.room-purchase-intro { margin: 0 0 26px; color: #716c63; font-size: 13px; line-height: 1.45; }
.room-purchase-list { display: grid; gap: 12px; }
.room-purchase-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 10px; border: 1px solid var(--line); }
.room-purchase-item img { width: 82px; height: 82px; object-fit: cover; background: #eae4d9; }
.room-purchase-item h3 { margin: 2px 0 5px; font: 500 17px/1.1 var(--serif); }
.room-purchase-item p { margin: 0 0 10px; color: #716c63; font-size: 11px; line-height: 1.35; }
.room-purchase-item a { color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }

.mobile-strip-scroll,
.mobile-topbar,
.mobile-menu-toggle,
.mobile-cart-button,
.mobile-scroll-prompt { display: none; }

@media (max-width: 700px) {
  html, body, .room-app { overscroll-behavior-y: none; }
  .desktop-dialog-close { display: none; }
  .room-slide::after { content: ""; position: absolute; z-index: 6; inset: 0; pointer-events: none; background: rgba(8, 7, 6, .42); opacity: 1; transition: opacity .28s ease; }
  .room-slide.is-in-view::after { opacity: 0; }
  .product-sheet-open .room-slide.is-in-view .mobile-room-actions { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(8px); }
  .product-dialog { z-index: 100; touch-action: pan-y; overscroll-behavior-y: contain; pointer-events: none; }
  .product-dialog::before,
  .product-dialog #dialogContent { pointer-events: auto; }
  .product-dialog.is-dragging { animation: none; transform: translate3d(0, var(--sheet-drag-y, 0), 0); transition: none; will-change: transform; backface-visibility: hidden; }
  .sheet-room-actions { display: flex; gap: 8px; padding: 0 18px 18px; border-top: 1px solid var(--line); }
  .sheet-room-action { flex: 1; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 1px solid #d4ccc0; border-radius: 10px; color: var(--ink); background: #faf8f4; font: 10px var(--sans); }
  .sheet-room-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .sheet-room-action.is-active { color: #a86752; border-color: #ba836e; background: #fff8f4; }
  .sheet-room-action.is-active.action-like svg { fill: currentColor; }
  .sheet-room-action:active { transform: scale(.97); }
  .room-app, .room-feed { background: radial-gradient(circle at 50% 0%, #2a2723 0%, #121110 52%, #090909 100%); }
  .room-app { padding-top: 0; scroll-padding-top: 52px; }
  .room-feed { padding-top: 52px; }
  .room-slide { height: calc(100svh - 86px); min-height: calc(100svh - 86px); margin-bottom: 12px; border-radius: 16px 16px 0 0; box-shadow: 0 18px 38px rgba(0, 0, 0, .58), 0 1px 0 rgba(255, 255, 255, .14); transition: border-radius .22s ease; }
  .room-match-debug { top: 13px; right: 13px; min-width: 104px; padding: 9px 10px; font-size: 10px; }
  .room-slide.is-in-view { border-radius: 0 0 16px 16px; }
  .room-slide > .room-photo,
  .room-slide > .scrim,
  .room-slide > .hotspot { display: none; }
  .room-slide { background: #171513; }
  .mobile-strip-scroll { display: block; position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mobile-strip-scroll::-webkit-scrollbar { display: none; }
  .mobile-panorama { position: relative; height: 100%; width: 150svh; }
  .mobile-image-plane { position: absolute; inset: 0 auto 0 0; height: 100%; width: 150svh; }
  .mobile-image-plane > img { position: absolute; inset: 0; height: 100%; width: 100%; display: block; }
  .mobile-strip-scroll.vertical-view { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
  .vertical-view .mobile-panorama { width: 100%; transform: none; }
  .vertical-view .mobile-image-plane { width: auto; height: 100%; aspect-ratio: 2 / 3; inset: 50% auto auto 50%; transform: translate(calc(-50% + var(--mobile-tilt-x, 0px)), -50%); transition: transform 180ms ease-out; will-change: transform; }
  .vertical-view .mobile-image-plane > img { object-fit: cover; }
  .mobile-strip-scroll.single-panel { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
  .single-panel .mobile-panorama { transform: translateX(calc((100vw - 150svh) / 2)); }
  .single-panel .mobile-panel { display: none; }
  .mobile-panel { position: absolute; top: 0; left: clamp(0px, calc(var(--focus) - 50vw), calc(150svh - 100vw)); height: 100%; width: 86vw; scroll-snap-align: start; pointer-events: none; }
  .mobile-swipe-cues { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
  .swipe-cue { position: absolute; top: 50%; width: 30px; height: 46px; transform: translateY(-50%); border-radius: 99px; color: rgba(255,255,255,.94); background: rgba(18,17,15,.34); transition: opacity .18s ease, transform .18s ease; font-size: 0; }
  .swipe-cue::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
  .swipe-cue-left::before { transform: rotate(-135deg); }
  .swipe-cue-left { left: 10px; }
  .swipe-cue-right { right: 10px; }
  .mobile-swipe-cues.is-at-start .swipe-cue-left,
  .mobile-swipe-cues.is-at-end .swipe-cue-right { opacity: 0; transform: translateY(-50%) scale(.8); }
  .mobile-hotspot { position: absolute; z-index: 4; width: 36px; height: 36px; transform: translate(-50%,-50%) scale(.72); opacity: 0; visibility: hidden; pointer-events: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink); box-shadow: none; display: grid; place-items: center; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
  .room-slide.is-in-view .mobile-hotspot { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,-50%) scale(1); transition-delay: 0s; }
  .mobile-hotspot span { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.94); border-radius: 50%; background: rgba(255,255,255,.76); box-shadow: 0 2px 10px rgba(0,0,0,.48); -webkit-backdrop-filter: none; backdrop-filter: none; font: 10px var(--mono); }
  .mobile-room-actions { position: absolute; z-index: 8; right: 14px; bottom: 28px; display: flex; flex-direction: column; gap: 11px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(8px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
  .room-slide.is-in-view .mobile-room-actions { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .mobile-room-action { position: relative; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: rgba(18,17,15,.52); box-shadow: 0 4px 16px rgba(0,0,0,.28); -webkit-backdrop-filter: none; backdrop-filter: none; touch-action: manipulation; transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
  .mobile-room-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-room-action.is-active { color: #f2b09b; border-color: rgba(242,176,155,.92); background: rgba(35,27,24,.62); }
  .mobile-room-action.is-active.action-like svg { fill: currentColor; }
  .mobile-room-action.is-animating { animation: room-action-pop .48s cubic-bezier(.2,.85,.3,1); }
  .mobile-room-action.is-animating svg { animation: room-action-icon .48s cubic-bezier(.2,.85,.3,1); }
  .mobile-room-action.is-animating::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(242,176,155,.9); border-radius: inherit; pointer-events: none; animation: room-action-ring .5s ease-out both; }
  .mobile-room-action:active { transform: scale(.92); }
  @keyframes room-action-pop { 0% { transform: scale(1); } 38% { transform: scale(1.22); box-shadow: 0 5px 19px rgba(0,0,0,.35); } 100% { transform: scale(1); } }
  @keyframes room-action-icon { 0%,100% { transform: scale(1); } 38% { transform: scale(.78); } 62% { transform: scale(1.12); } }
  @keyframes room-action-ring { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.45); } }
  .room-caption { display: none; }
  .mobile-topbar { position: fixed; z-index: 12; top: 0; right: 0; left: 0; width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 7px 13px; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(19,18,16,.96); box-shadow: 0 4px 13px rgba(0,0,0,.18); pointer-events: none; }
  .mobile-topbar > button,
  .mobile-topbar > a { pointer-events: auto; }
  .mobile-topbar-brand { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; font: 600 18px var(--serif); letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
  .mobile-topbar-brand i { color: #daa386; font-weight: 500; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 7px; position: static; padding: 8px 9px; border: 0; border-radius: 99px; color: #fff; background: transparent; box-shadow: none; font: 12px var(--sans); touch-action: manipulation; }
  .mobile-menu-toggle span { font-size: 15px; line-height: .8; }
  .mobile-cart-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 8px 9px; border: 0; border-radius: 99px; color: #fff; background: transparent; box-shadow: none; font: 12px var(--sans); touch-action: manipulation; }
  .mobile-cart-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
  .sidebar { z-index: 11; inset: 0 auto 0 0; width: min(320px,88vw); height: 100svh; padding: 28px 24px; background: rgba(19,18,16,.97) !important; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 34px rgba(0,0,0,.38); }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open .mobile-menu-toggle { background: #fff; color: var(--ink); }
  .sidebar .brand { display: none; }
  .sidebar > .eyebrow,
  .sidebar-bottom { display: block; }
  .sidebar-bottom { margin-top: auto; }
  .explore-tabs { margin-top: 16px; }
  .explore-tabs:not(.is-submenu) { gap: 0; }
  .explore-tabs:not(.is-submenu) .explore-choice { min-height: 54px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.24); border-radius: 0; background: transparent; color: #fff; font: 18px var(--serif); }
  .explore-tabs:not(.is-submenu) .explore-choice span { font-size: 20px; }
  .style-nav, .room-type-nav { flex-direction: column; gap: 0; overflow: visible; margin-top: 16px; }
  .style-nav button, .room-type-nav button { font-size: 18px; padding: 13px 0; border-bottom: 1px solid #ffffff33; }
  .hint { display: none !important; }
  .room-purchase { padding: 30px 22px; }
  .room-purchase h2 { font-size: 31px; }
  .product-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 54svh; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 42px rgba(0,0,0,.28); animation: sheet-up .24s cubic-bezier(.2,.8,.2,1) both; }
  .product-dialog.is-closing { animation: sheet-down .18s ease-in both; }
  .product-dialog.is-closing.is-dragging { animation: none; transform: translate3d(0, 100%, 0); transition: transform .18s ease-in; }
  .product-dialog::before { content: ""; display: block; width: 34px; height: 4px; margin: 6px auto; border-radius: 99px; background: #b8b0a5; }
  .product-dialog .close { top: 15px; right: 13px; width: 30px; height: 30px; background: #f3f0eb; font-size: 22px; }
  .product-dialog .dialog-grid { grid-template-columns: 104px 1fr; gap: 15px; padding: 15px 42px 20px 18px; }
  .product-dialog .dialog-grid img { height: 104px; }
  .product-dialog .dialog-copy { padding: 0; }
  .product-dialog .dialog-copy h2 { margin: 5px 0 8px; font-size: 25px; letter-spacing: -1px; }
  .product-dialog .detail-list { margin: 10px 0; }
  .product-dialog .detail-list div { padding: 5px 0; font-size: 10px; }
  .product-dialog .source-link { padding: 10px 12px; font-size: 10px; }
  .mobile-scroll-prompt { position: fixed; z-index: 7; left: 50%; bottom: 58px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; transform: translateX(-50%); color: rgba(255,255,255,.94); text-shadow: 0 2px 5px rgba(0,0,0,.75); pointer-events: none; transition: opacity .3s ease, transform .3s ease; animation: scroll-prompt 1.9s ease-in-out infinite; }
  .mobile-scroll-prompt i, .mobile-scroll-prompt::after { content: ""; position: absolute; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  .mobile-scroll-prompt i { top: 5px; }
  .mobile-scroll-prompt::after { top: 12px; opacity: .62; }
  .mobile-scroll-prompt.is-hidden { opacity: 0; transform: translate(-50%, 8px); animation: none; }
}

@keyframes scroll-prompt { 0%, 100% { transform: translate3d(-50%,0,0); } 50% { transform: translate3d(-50%,5px,0); } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-down { from { transform: translateY(0); } to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .vertical-view .mobile-image-plane { transform: translate(-50%, -50%); transition: none; }
  .mobile-scroll-prompt { animation: none; }
}
/* Keep the browser document fixed; room browsing is handled by the feed below. */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
}

.room-app {
  height: 100svh;
  max-height: 100svh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}

.room-app::-webkit-scrollbar {
  display: none;
}

.empty-saved {
  background: radial-gradient(circle at 50% 38%, #3d352d 0%, #171513 52%, #0c0b0a 100%);
}

.empty-saved-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.empty-saved-copy h1 {
  margin: 12px 0 8px;
  font: 500 clamp(36px, 6vw, 64px)/.98 var(--serif);
  letter-spacing: -2px;
}

/* Mobile explore starts as a single readable sentence. The two warm links are
   the only controls until a visitor explicitly asks to refine the feed. */
.liked-rooms-button { display: none; }
.explore-summary { margin: 0; color: #fff; }
.explore-menu-card { display: grid; gap: 9px; padding: 15px 0 6px; border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.explore-menu-title { margin: 0; color: rgba(255,255,255,.58); font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.explore-sentence { display: grid; gap: 5px; margin: 0; color: rgba(255,255,255,.88); font: 600 18px/1.15 var(--serif); letter-spacing: -.35px; }
.explore-sentence-line { display: flex; align-items: center; gap: 1px; min-height: 34px; white-space: nowrap; }
.explore-sentence-control { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 1px solid #efb394; border-radius: 8px; color: #efb394; background: transparent; font: 500 18px/1 var(--serif); letter-spacing: -.35px; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.explore-tabs .explore-sentence-control { border: 0; color: #efb394; font: 500 18px/1 var(--serif); }
.price-control { gap: 4px; }
.price-marks { display: inline-flex; align-items: center; gap: 0; }
.price-mark { color: #4b4742; transition: color 160ms ease; }
.price-mark.is-selected { color: #efb394; }
.explore-tabs .explore-apply { position: relative; min-height: 43px; display: grid; place-items: center; width: 100%; margin-top: 4px; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; box-shadow: none; font: italic 700 18px/1 var(--serif); letter-spacing: -.35px; text-align: center; cursor: pointer; touch-action: manipulation; transition: transform 180ms cubic-bezier(.16,1,.3,1), color 180ms ease; }
.explore-apply::before { content: ""; position: absolute; top: -5px; right: 0; left: 0; height: 1px; background: rgba(255,255,255,.24); }
.explore-apply:hover { color: #fff; transform: translateY(-1px); }
.explore-apply:active { transform: translateY(1px) scale(.975); }
.explore-sentence-control i { position: relative; width: 10px; height: 12px; flex: 0 0 10px; }
.explore-sentence-control i::before { content: ""; position: absolute; top: 6px; left: 0; width: 9px; height: 1px; background: currentColor; }
.explore-sentence-control i::after { content: ""; position: absolute; top: 3px; right: 0; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.explore-sentence-control:active { transform: scale(.97); }

@media (max-width: 700px) {
  .explore-tabs:not(.is-submenu) { margin-top: 25px; }
  .explore-tabs:not(.is-submenu) .explore-menu-card { padding-top: 13px; }
  .explore-sentence-control { color: #f0b99a; }
  .sidebar-bottom { display: block; margin-top: auto; padding-top: 22px; }
  .liked-rooms-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; border-top: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.92); background: transparent; font: 18px var(--serif); text-align: left; cursor: pointer; touch-action: manipulation; }
  .liked-rooms-arrow { position: relative; display: block; width: 16px; height: 12px; flex: 0 0 16px; }
  .liked-rooms-arrow::before { content: ""; position: absolute; top: 5px; left: 0; width: 14px; height: 1px; background: currentColor; }
  .liked-rooms-arrow::after { content: ""; position: absolute; top: 2px; right: 0; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
  .liked-rooms-button:active { transform: scale(.985); }
}

.empty-saved-copy > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

/* Product sheets: keep the decision surface small, visual, and in-app. */
.product-dialog {
  width: min(960px, 94vw);
  max-width: 960px;
  border-radius: 0;
  overflow: hidden;
}

.product-dialog:not([open]) { display: none !important; }

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
  min-height: 560px;
  background: #fbfaf8;
}

.product-scroll-content { display: contents; }

.product-visual {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: #eee9e1;
  overflow: hidden;
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: contain;
  object-position: center;
}

.product-detail-card .dialog-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 52px 42px 18px;
}

.product-action-bar {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0px;
  column-gap: 0;
  align-items: stretch;
  overflow: hidden;
  contain: layout paint;
  padding: 0;
  background: #fbfaf8;
  /* Column changes are instantaneous; the primary action performs a FLIP
     transform below, avoiding per-frame layout during the visible transition. */
  transition: none;
}

.product-action-bar .add-to-cart {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  will-change: transform;
  transition: background .18s ease, transform .18s ease;
}
.product-action-bar .add-to-cart.is-layout-flipping {
  transition: transform 280ms var(--ease-spring, cubic-bezier(.2,1.1,.28,1)), background .18s ease;
  will-change: transform;
}

.cart-quantity-control {
  display: grid;
  grid-template-columns: 38px minmax(34px, 1fr) 38px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(10px);
  will-change: transform, opacity;
  pointer-events: none;
  border: 1px solid transparent;
  background: #fbfaf8;
  transition: opacity 180ms var(--ease-smooth, ease), transform 280ms var(--ease-spring, ease), border-color 180ms var(--ease-smooth, ease);
}

.product-action-bar.is-in-cart { grid-template-columns: minmax(0, 1fr) 134px; column-gap: 8px; }
.product-action-bar.is-in-cart .cart-quantity-control {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  border-color: #d8d1c8;
}

.cart-quantity-control output {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #25221e;
  font: 600 13px var(--sans);
}

.quantity-adjust {
  border: 0;
  color: #25221e;
  background: transparent;
  font: 400 22px/1 var(--sans);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.quantity-adjust + output { border-left: 1px solid #ded7ce; border-right: 1px solid #ded7ce; }
.quantity-adjust:hover { background: #f0ece6; }
.quantity-adjust:active { transform: scale(.9); }

.product-type {
  margin: 0 0 12px;
  color: #80776c;
  font: 10px var(--mono);
  letter-spacing: 1.3px;
}

.product-detail-card .dialog-copy h2,
.room-cart h2 {
  margin: 0;
  color: #24211d;
  font: 500 clamp(32px, 3.2vw, 46px)/1.02 var(--serif);
  letter-spacing: -1.7px;
}

.product-price {
  margin: 21px 0 23px;
  color: #24211d;
  font: 600 18px var(--sans);
  letter-spacing: -.25px;
}

.product-price-note { margin: -14px 0 20px; color: #80776c; font: 11px/1.4 var(--sans); }
.product-reviews { margin: 9px 0 -8px; color: #796b5f; font: 12px var(--sans); }
.product-variant-picker { min-width: 0; margin: 0 0 21px; padding: 0; border: 0; }
.product-variant-picker legend { margin-bottom: 10px; color: #403a34; font: 600 12px var(--sans); }
.product-variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.product-variant-option { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 9px 5px 5px; border: 1px solid #d8d2ca; background: transparent; color: #403a34; font: 11px/1.25 var(--sans); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.product-variant-option img { width: 30px; height: 30px; object-fit: cover; flex: none; }
.product-variant-option[aria-pressed="true"] { border-color: #29241f; background: #eee9e2; }
.product-variant-option:active { transform: scale(.97); }
.product-variant-option:disabled { opacity: .45; cursor: default; }
.cart-line-copy small { display: block; margin: 0 0 5px; color: #756d63; font: 11px/1.3 var(--sans); }

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid #ded7ce;
}

.product-specs div {
  min-width: 0;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid #ded7ce;
}

.product-specs div + div { padding-left: 13px; border-left: 1px solid #ded7ce; }
.product-specs dt { margin: 0 0 5px; color: #847b70; font-size: 10px; }
.product-specs dd { margin: 0; color: #25221e; font: 600 12px/1.35 var(--sans); overflow-wrap: anywhere; }

.add-to-cart {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  border: 0;
  color: #fff;
  background: #24211d;
  font: 600 13px var(--sans);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.add-to-cart:hover { background: #4b4138; }
.add-to-cart:active { transform: scale(.985); }
.add-to-cart.is-added { background: #856a59; }
.add-to-cart:disabled { cursor: default; opacity: .52; }

.room-cart { padding: 44px 44px 38px; background: #fbfaf8; }
.room-cart-list { display: grid; gap: 12px; margin: 25px 0 18px; }
.room-cart-list article { display: flex; gap: 13px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #ded7ce; }
.room-cart-list img { width: 70px; height: 70px; object-fit: cover; background: #eee9e1; }
.room-cart-list h3 { margin: 0 0 6px; font: 600 14px/1.25 var(--sans); }
.room-cart-list p, .cart-total, .room-cart-empty { margin: 0; color: #756d63; font-size: 12px; }
.cart-line-copy { min-width: 0; }
.cart-line-quantity {
  display: grid;
  grid-template-columns: 27px 25px 27px;
  align-items: center;
  margin-left: auto;
  border: 1px solid #ded7ce;
  color: #25221e;
  background: #fbfaf8;
}
.cart-line-quantity button {
  min-width: 0;
  height: 29px;
  border: 0;
  color: inherit;
  background: transparent;
  font: 400 18px/1 var(--sans);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.cart-line-quantity output { display: grid; place-items: center; min-width: 0; border-left: 1px solid #ded7ce; border-right: 1px solid #ded7ce; font: 600 11px var(--sans); }
.cart-line-quantity button:hover { background: #f0ece6; }
.cart-line-quantity button:active { transform: scale(.9); }

/* Compact, per-item cart controls for the room bundle sheet. */
.room-item-cart-control {
  position: relative;
  flex: 0 0 82px;
  height: 32px;
  margin-left: auto;
}
.room-item-add,
.room-item-quantity button {
  border: 1px solid #d8d1c8;
  color: #25221e;
  background: #fbfaf8;
}
.room-item-add {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 160ms var(--ease-smooth, ease), transform 220ms var(--ease-spring, ease);
}
.room-item-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.room-item-quantity {
  position: absolute;
  inset: 0 0 auto auto;
  display: grid;
  grid-template-columns: 26px 28px 26px;
  width: 80px;
  height: 32px;
  opacity: 0;
  transform: translate3d(7px,0,0) scale(.92);
  pointer-events: none;
  transition: opacity 160ms var(--ease-smooth, ease), transform 220ms var(--ease-spring, ease);
}
.room-item-quantity button { min-width: 0; padding: 0; font: 400 17px/1 var(--sans); cursor: pointer; }
.room-item-quantity output { display: grid; place-items: center; border-top: 1px solid #d8d1c8; border-bottom: 1px solid #d8d1c8; color: #25221e; background: #fbfaf8; font: 600 11px var(--sans); }
.room-item-cart-control.is-in-cart .room-item-add { opacity: 0; transform: scale(.82); pointer-events: none; }
.room-item-cart-control.is-in-cart .room-item-quantity { opacity: 1; transform: translate3d(0,0,0) scale(1); pointer-events: auto; }
.room-item-add:active,
.room-item-quantity button:active { transform: scale(.92); }

.room-cart.cart-popup,
.room-cart.cart-popup .room-cart-body,
.room-cart.cart-popup .room-cart-list,
.room-cart.cart-popup .room-cart-list article {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.room-cart.cart-popup .room-cart-list article { align-items: center; }
.room-cart.cart-popup .cart-line-copy { flex: 1 1 0; min-width: 0; }
.room-cart.cart-popup .cart-line-copy h3,
.room-cart.cart-popup .cart-line-copy p { overflow-wrap: anywhere; }
.cart-total { margin: 18px 0; }

@media (max-width: 700px) {
  .product-dialog {
    width: 100%;
    max-width: none;
    height: 70svh;
    max-height: 70svh;
    bottom: max(0px, var(--roomz-browser-inset, 0px));
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
  }

  .product-dialog[open]:has(.product-detail-card),
  .product-dialog[open]:has(.room-cart.cart-popup) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .product-dialog[open]:has(.product-detail-card) #dialogContent,
  .product-dialog[open]:has(.room-cart.cart-popup) #dialogContent {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .product-detail-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .product-scroll-content {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 16px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-visual,
  .product-visual img {
    min-height: 0;
    width: 100%;
    height: min(34svh, 280px);
    object-fit: cover;
    object-position: center;
  }
  .product-visual { margin: 0; border-radius: 20px 20px 0 0; }
  .product-visual img { width: 100%; }

  .product-detail-card .dialog-copy {
    display: block;
    padding: 16px 0 0;
  }
  .product-detail-card .dialog-copy h2,
  .room-cart h2 { font-size: 22px; letter-spacing: -.8px; }
  .product-type { margin-bottom: 4px; font-size: 8px; }
  .product-price { margin: 7px 0 8px; font-size: 14px; }
  .product-specs div { padding: 6px 5px 6px 0; }
  .product-specs dd { font-size: 10px; }
  .product-action-bar {
    flex: 0 0 auto;
    width: 100%;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    box-shadow: 0 -8px 16px rgba(251,250,248,.92);
  }
  .product-action-bar .add-to-cart { min-height: 46px; }
  .cart-quantity-control { grid-template-columns: 37px minmax(32px, 1fr) 37px; min-height: 46px; }
  .product-action-bar.is-in-cart { grid-template-columns: minmax(0, 1fr) 124px; }
  .add-to-cart { min-height: 46px; margin-top: 14px; }
  .room-cart.cart-popup {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: 22px 20px 0;
  }
  .room-cart.cart-popup .room-cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .room-cart.cart-popup .room-cart-action-bar {
    flex: 0 0 auto;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 16px rgba(251,250,248,.92);
  }
  .room-cart.cart-popup .room-cart-action-bar .add-to-cart { margin: 0; }
  .room-cart { padding: 28px 20px 24px; }
  .room-item-cart-control { flex-basis: 86px; height: 34px; }
  .room-item-add { width: 34px; height: 34px; }
  .room-item-quantity { grid-template-columns: 28px 30px 28px; width: 86px; height: 34px; }
}

/* Roomz Studio motion system: calm movement for navigation, playful feedback for intent. */
:root {
  --motion-quick: 160ms;
  --motion-base: 280ms;
  --motion-slow: 420ms;
  --ease-smooth: cubic-bezier(.22, .75, .25, 1);
  --ease-spring: cubic-bezier(.2, 1.1, .28, 1);
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
}

.explore-tabs button,
.style-nav button,
.room-type-nav button,
.source-button,
.mobile-menu-toggle,
.mobile-cart-button {
  transition: color var(--motion-quick) var(--ease-smooth), background var(--motion-quick) var(--ease-smooth), opacity var(--motion-quick) var(--ease-smooth), transform var(--motion-quick) var(--ease-spring);
}

.explore-tabs button:active,
.style-nav button:active,
.room-type-nav button:active,
.source-button:active,
.mobile-menu-toggle:active,
.mobile-cart-button:active { transform: scale(.97); }

.explore-tabs[data-transition="forward"],
.explore-subnav[data-transition="forward"] { animation: explore-slide-in-right 340ms var(--ease-spring) both; }
.explore-tabs[data-transition="back"],
.explore-subnav[data-transition="back"] { animation: explore-slide-in-left 340ms var(--ease-spring) both; }
@keyframes explore-slide-in-right { from { opacity: 0; transform: translateX(18px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes explore-slide-in-left { from { opacity: 0; transform: translateX(-18px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }

.hotspot,
.mobile-hotspot { transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-spring), visibility 0s linear var(--motion-base); }
.hotspot:before { animation: roomz-marker-pulse 2.4s var(--ease-smooth) infinite; }
@keyframes roomz-marker-pulse { 0%, 100% { transform: scale(.72); opacity: .72; } 52% { transform: scale(1.08); opacity: .14; } }

.product-action-bar .add-to-cart,
.cart-quantity-control,
.quantity-adjust,
.cart-line-quantity button,
.add-to-cart {
  transition-timing-function: var(--ease-spring);
}

@media (max-width: 700px) {
  .room-slide::after { transition: opacity var(--motion-slow) var(--ease-smooth); }
  .room-slide { transition: border-radius var(--motion-base) var(--ease-smooth); }
  .vertical-view .mobile-image-plane { transition: transform 320ms var(--ease-settle); }
  .swipe-cue { transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-spring); }
  .mobile-room-actions { transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-spring), visibility 0s linear var(--motion-base); }
  .mobile-room-action { transition: color var(--motion-quick) var(--ease-smooth), border-color var(--motion-quick) var(--ease-smooth), background var(--motion-quick) var(--ease-smooth), transform var(--motion-quick) var(--ease-spring), opacity var(--motion-quick) var(--ease-smooth); will-change: transform, opacity; transform: translateZ(0); }
  .mobile-room-action.is-animating { animation: room-action-pop 440ms var(--ease-spring); }
  .mobile-room-action.is-animating svg { animation: room-action-icon 440ms var(--ease-spring); }
  .mobile-room-action.is-animating::after { animation: room-action-ring 460ms var(--ease-smooth) both; }
  .mobile-room-action.action-share.is-shared { color: #d7f0e6; border-color: rgba(207,239,226,.9); }
  .mobile-room-action.action-view.is-active { color: #f2d2bd; border-color: rgba(242,210,189,.9); background: rgba(35,27,24,.62); }
  .room-slide.is-clean-view .hotspot,
  .room-slide.is-clean-view .mobile-hotspot,
  .room-slide.is-clean-view .mobile-swipe-cues {
    opacity: 0 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }
  .room-slide.is-clean-view .hotspot,
  .room-slide.is-clean-view .mobile-hotspot { transform: translate(-50%,-50%) scale(.76); }
  .room-slide.is-clean-view .mobile-room-action:not(.action-view) {
    opacity: 0;
    visibility: visible !important;
    transform: translate3d(12px,0,0) scale(.78);
    pointer-events: none;
    transition: opacity 180ms var(--ease-smooth), transform 260ms var(--ease-spring);
  }
  .room-slide.is-clean-view .mobile-room-action.action-share { transition-delay: 42ms, 42ms; }
  .room-slide.is-clean-view .mobile-room-action.action-purchase { transition-delay: 84ms, 84ms; }
  .room-slide:not(.is-clean-view) .mobile-room-action:not(.action-view) {
    transition: color var(--motion-quick) var(--ease-smooth), border-color var(--motion-quick) var(--ease-smooth), background var(--motion-quick) var(--ease-smooth), transform 300ms var(--ease-spring), opacity 220ms var(--ease-smooth);
  }
  .mobile-room-action { transition-property: color, border-color, background, transform, opacity; }
  .sidebar { transition: transform 380ms var(--ease-spring); }
  .product-dialog { animation: sheet-up 360ms var(--ease-spring) both; }
  .product-dialog.is-closing { animation: sheet-down 240ms var(--ease-smooth) both; }
  .product-dialog.is-closing.is-dragging { transition: transform 220ms var(--ease-smooth); }
  .mobile-scroll-prompt { animation: scroll-prompt 2.2s var(--ease-smooth) infinite; }
  @keyframes room-action-pop { 0% { transform: scale(1) translateZ(0); } 42% { transform: scale(1.24) translateZ(0); } 100% { transform: scale(1) translateZ(0); } }
  @keyframes room-action-icon { 0%,100% { transform: scale(1); } 40% { transform: scale(.8); } 64% { transform: scale(1.14); } }
  @keyframes room-action-ring { from { opacity: .82; transform: scale(.86); } to { opacity: 0; transform: scale(1.32); } }
}

@keyframes sheet-up { from { opacity: .98; transform: translateY(104%) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheet-down { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: .98; transform: translateY(104%) scale(.99); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  /* Clean view is an explicit user-triggered mode switch. Keep this short,
     composited transition intact even when system motion is reduced. */
  .room-slide.is-clean-view .hotspot,
  .room-slide.is-clean-view .mobile-hotspot,
  .room-slide.is-clean-view .mobile-swipe-cues {
    transition-duration: 260ms !important;
    animation-duration: 260ms !important;
  }
  .room-slide.is-clean-view .mobile-room-action:not(.action-view) {
    transition-duration: 180ms, 260ms !important;
    animation-duration: 260ms !important;
  }
  .room-slide:not(.is-clean-view) .mobile-room-action:not(.action-view) {
    transition-duration: 160ms, 160ms, 160ms, 300ms, 220ms !important;
  }
}
