/* Edit room in the panorama room (v2-lab.js trayBar): one tray at the bottom, Undo + Done top right, an ✕ on each piece.
   Everything that isn't editable steps out of the way while decorating. */
html body.room-pano.v2-trying .v2-try-bar.rt{position:fixed;inset:0;z-index:80;pointer-events:none;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto!important;max-height:none!important;transform:none!important}
.v2-try-bar.rt>*{pointer-events:auto}
.rt-tray{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);translate:-50% 0;width:min(760px,calc(100vw - 24px));box-sizing:border-box;padding:10px 12px 12px;border-radius:30px;background:#fff8ecf2;border:4px solid #fff;box-shadow:0 7px 0 #d9bfa0,0 14px 30px #4b2e4d40;animation:rt-up .35s cubic-bezier(.3,1.3,.5,1) both}
@keyframes rt-up{0%{translate:-50% 120%}100%{translate:-50% 0}}
.rt-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.rt-tab{display:flex;align-items:center;gap:6px;height:42px;padding:0 14px 0 8px;border-radius:999px;border:3px solid #fff;background:#f3e6d6;color:#6b4685;font:800 15px/1 inherit;font-family:inherit;cursor:pointer;box-shadow:0 3px 0 #dcc6ab}
.rt-tab img{width:28px;height:28px;object-fit:contain}
.rt-tab.on{background:#ffe3f0;box-shadow:0 3px 0 #e29bc0,0 0 0 3px #f6a8cf}
.rt-count{margin-left:auto;display:flex;gap:5px;padding-right:4px}
.rt-count i{width:13px;height:13px;border-radius:50%;background:#e6d6c2;box-shadow:inset 0 1px 2px #0002}
.rt-count i.on{background:#75d5bd;box-shadow:0 0 0 2px #fff}
.rt-scroll{display:flex;gap:10px;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none;padding:4px 2px 6px;scroll-snap-type:x proximity;touch-action:pan-x}
.rt-scroll::-webkit-scrollbar{display:none}
.rt-scroll .dw-card{position:relative;flex:none;width:84px;height:84px;border-radius:22px;border:3px solid #fff;background:#fff;box-shadow:0 4px 0 #e2cfb8;padding:6px;scroll-snap-align:start;cursor:grab;touch-action:pan-x;display:grid;place-items:center}
.rt-scroll .dw-card.on{box-shadow:0 4px 0 #3aab9e,0 0 0 3px #75d5bd}
.rt-scroll .dw-card[data-full]{opacity:.45}
.rt-scroll .dw-card.lifting{opacity:.35;scale:.92}
.rt-scroll .dw-card .v2-furn,.rt-scroll .dw-card .v2-room-preview{width:100%;height:100%}
.rt-scroll .dw-card.dw-get{background:#fff3c4}
.rt-scroll .dw-card.dw-get img{width:70%;height:70%;object-fit:contain}
@media(max-width:699px){.rt-scroll .dw-card{width:70px;height:70px;border-radius:18px}.rt-tab{height:38px;font-size:13px;padding:0 10px 0 6px;white-space:nowrap}.rt-tab img{width:24px;height:24px}.rt-count{gap:3px}.rt-count i{width:9px;height:9px}}
@media(max-width:380px){.rt-tab span{display:none}.rt-tab{padding:0 8px}}
/* Undo + Done together, top right */
html body.room-pano .v2-try-bar.rt .dw-ctl{position:fixed;top:calc(env(safe-area-inset-top,0px) + 14px);right:max(14px,env(safe-area-inset-right));bottom:auto;left:auto;display:flex;gap:10px}
/* the ✕ on each piece */
.rt-chips{position:absolute;left:0;top:0;width:0;height:0;z-index:60}
.rt-x{position:absolute;width:34px;height:34px;margin:-17px 0 0 -17px;padding:0;border-radius:50%;border:3px solid #fff;background:#ff8fb3;box-shadow:0 3px 0 #d0607f,0 4px 8px #0003;display:grid;place-items:center;cursor:pointer;animation:rt-pop .3s cubic-bezier(.3,1.6,.5,1) both}
.rt-x svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round}
@keyframes rt-pop{0%{scale:0}100%{scale:1}}
/* furniture: a soft glow instead of dashed boxes, and it lifts with a floor shadow while dragged */
html body.room-pano.v2-trying[data-place=home] .bedroom-scene .room-display[data-drag=display]{outline:none!important;filter:drop-shadow(0 0 6px #fff9) drop-shadow(0 0 2px #fff)}
html body.ui2.room-pano.v2-trying[data-place=home] .bedroom-scene .room-display[data-drag=display].rt-moving{filter:drop-shadow(0 22px 12px #2a172070) drop-shadow(0 0 3px #fff)!important;z-index:70!important}
/* out of the way while decorating */
html body.room-pano.v2-trying .bedroom-scene :is(.mochi-room,.sb-pair-play,.sb-room-bubble,.sb-room-guide,.room-instruction),html body.room-pano.v2-trying :is(.dp-sign,.rpano-dots,.room-controls,.squish-dock,.bottom-nav,.top-bar,.v2-savenudge){visibility:hidden!important;pointer-events:none!important}
html body.room-pano.v2-trying .rpano-arrow{top:calc(50% - 90px)}

/* while decorating, a piece moves as a whole: the squishies in it, on the floor and on the shelves don't come away */
html body.ui2.ui2.room-pano.v2-trying[data-place] .bedroom-scene.bedroom-scene :is(.display-toys,.display-toys .toy,.display-toys *,.rp-toy,.room-wall-shelf,.mf-display-mochi){pointer-events:none!important}
/* the ✕s hide while a piece is being dragged and come back where it lands */
html body.room-pano.v2-trying.rt-moving-piece .rt-chips{opacity:0;transition:opacity .1s}

/* ↔ turn a piece around: the piece mirrors, its squishies stay facing you */
.rt-x.rt-flip-btn{background:#9ad8f0;box-shadow:0 3px 0 #5aa6c4,0 4px 8px #0003}
html body .bedroom-scene .room-display.rt-flip{scale:-1 1}
html body .bedroom-scene .room-display.rt-flip :is(.display-toys,[class*=count]){scale:-1 1}
