.room-controls{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));top:calc(76px + env(safe-area-inset-top,0px));z-index:42;display:flex;flex-direction:column;gap:6px;align-items:start}
.room-controls[hidden]{display:none!important}
.room-controls>button{width:54px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 2px;border:2px solid #fff;border-radius:18px;background:#fff8ed;color:#654080;box-shadow:0 3px 7px #50304c20;font-family:inherit;cursor:pointer;touch-action:manipulation}
.room-controls>button>span:last-child{font-family:inherit;font-size:10px;font-weight:800;line-height:1.15}
.room-controls>button:disabled{opacity:.45;cursor:default}.room-controls>button[aria-pressed=true]{background:#9ce0cf}
.room-controls svg,.room-controls img{width:25px;height:25px;object-fit:contain}.room-controls svg{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.room-edit-symbol{height:25px;font:800 25px/1 sans-serif}
.room-controls button:focus-visible{outline:3px solid #8155ad;outline-offset:3px}
html body.ui2.ui2.ui2[data-place=home] .bedroom-scene .room-display.room-wall-shelf{position:absolute!important;left:var(--wall-left,0px)!important;top:var(--wall-top,0px)!important;width:var(--wall-width,0px)!important;height:var(--wall-height,44px)!important;min-width:0!important;min-height:44px!important;max-width:none!important;max-height:none!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;aspect-ratio:auto!important;background:none!important;border:0!important;border-radius:10px!important;padding:0!important;box-shadow:none!important;z-index:4;cursor:pointer;touch-action:none}
html body.ui2.ui2.ui2[data-place=home] .bedroom-scene .room-wall-shelf[hidden]{display:none!important}
html body.ui2.ui2.ui2[data-place=home] .room-wall-shelf .display-toys{position:absolute!important;inset:0!important;display:flex!important;align-items:end!important;justify-content:space-evenly!important;gap:0!important;max-height:none!important;margin:0!important;overflow:visible!important;pointer-events:none}
html body.ui2.ui2.ui2[data-place=home] .room-wall-shelf .display-toys>.toy{position:relative!important;left:auto!important;top:auto!important;width:var(--wall-toy)!important;height:var(--wall-toy)!important;flex:0 0 var(--wall-toy)!important;margin:0!important;transform:translateY(6%)!important;pointer-events:auto!important;touch-action:none;filter:drop-shadow(0 2px 1px #51383840)}
.wall-place-hint{display:none;position:absolute;left:50%;bottom:2px;transform:translateX(-50%);color:#72518a;background:#fff8ed;border:2px solid #fff;border-radius:50%;width:27px;height:27px;font:800 23px/23px sans-serif;pointer-events:none}
html body .room-wall-shelf.awaiting-toy .wall-place-hint{display:block}html body .room-wall-shelf.awaiting-toy,html body .room-wall-shelf.room-drop-ready{background:#b7f3dc55!important;outline:2px dashed #fff6bb;outline-offset:0}
html body.ui2[data-place=home]:not(.room-edit-open) .bedroom-scene .room-display[data-drag=display]{cursor:pointer}
html body.ui2.room-edit-open[data-place=home] .bedroom-scene .room-display[data-drag=display]{outline:2px dashed #fff2b5;outline-offset:3px;cursor:grab}
html body.ui2[data-place=home].v2-trying .room-wall-shelf{pointer-events:none!important}
html body.ui2 #modal .room-recovery{max-height:min(52dvh,460px);overflow:auto;overscroll-behavior:contain;padding:8px!important}html body.ui2 #modal .room-recovery .tray-toy{min-width:64px!important;min-height:84px!important}html body.ui2 #modal .room-recovery .toy{width:58px!important;height:58px!important}
@media(min-width:700px){.room-controls{left:20px;top:calc(80px + env(safe-area-inset-top,0px))}.room-controls>button{width:62px;min-height:60px}.room-controls>button>span:last-child{font-size:11px}}

html body.ui2 #modal .room-recovery{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(80px,1fr))!important;gap:8px!important;overflow-x:hidden!important;overflow-y:auto!important}
html body.ui2 #modal .room-recovery .tray-toy{width:100%!important;max-width:none!important;min-width:0!important;height:105px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;margin:0!important;white-space:normal!important}
html body.ui2 #modal .room-recovery .tray-toy>span:last-child:not(.toy){font-size:12px!important;line-height:1.15!important;max-width:100%;overflow-wrap:anywhere;white-space:normal!important;text-align:center}
@media(max-width:699px){html body.room-edit-open .dw-wand{top:calc(278px + env(safe-area-inset-top,0px));width:54px;height:54px}.dw-wand img{width:36px;height:36px}}
/* The collection remains in the shared top bar; avoid a duplicate badge under room controls. */
html body.ui2[data-place=home] .room-progress-pill{display:none!important}

html body.ui2[data-place=home] .bedroom-scene .room-display:not(.room-wall-shelf){z-index:5}

/* Keep saved friendship pictures accessible without covering a painted shelf. */
html body.ui2[data-place=home] .bedroom-scene .sb-keepsake-frame{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));right:auto;top:calc(278px + env(safe-area-inset-top,0px));width:54px;height:64px;padding:3px;transform:none;z-index:41}
html body.ui2[data-place=home] .sb-keepsake-caption{font-size:10px}
html body.ui2[data-place=home] .sb-keepsake-friends>span:not(.toy){font-size:12px}
html body.ui2.room-edit-open .sb-keepsake-frame,html body.ui2.v2-trying .sb-keepsake-frame{display:none}
@media(min-width:700px){html body.ui2[data-place=home] .bedroom-scene .sb-keepsake-frame{left:20px;top:calc(282px + env(safe-area-inset-top,0px));width:62px;height:72px}}
