/* Behavior and containment only: accepted Quarters and furniture illustrations stay intact. */
#collectionSheet{position:fixed!important;inset:12px!important;margin:auto!important;transform:none!important;width:min(1120px,calc(100vw - 24px))!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;display:none;flex-direction:column;overflow:hidden!important;box-sizing:border-box;z-index:5000}#collectionSheet.open{display:flex!important}#collectionSheet>.sheet-head,#collectionSheet>.collection-tabs,#collectionSheet>.collection-stats,#collectionSheet>.mastery-passport{flex-shrink:0}#collectionSheet>.mastery-passport{max-height:25%;overflow:auto}#collectionSheet .collection-main{height:auto!important;min-height:0!important;flex:1;overflow:hidden!important}#collectionSheet .collection-content{height:100%;min-height:0;overflow:hidden}#collectionSheet .collection-grid,#collectionSheet .collection-set-shelf{height:100%!important;max-height:100%!important;overflow:auto!important;padding-bottom:28px!important;box-sizing:border-box}#collectionSheet .collection-detail{min-height:0;overflow:auto;padding-bottom:30px}#collectionSheet .sheet-close{position:absolute;right:14px;top:12px;z-index:20;min-height:40px;min-width:40px}#collectionSheet .sheet-head{padding-right:65px}#collectionSheet .collection-detail-copy p{font-size:14px;line-height:1.5}#collectionSheet .collection-detail-copy dt,#collectionSheet .collection-detail-copy dd{font-size:12px}#collectionSheet .collection-tabs{flex-wrap:wrap;padding-bottom:6px}#collectionSheet .collection-tabs button{font-size:12px;min-height:34px}
.home-mode-controls{position:absolute;right:2%;top:3%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:60%;padding:7px;background:#163c47ed;border:1px solid #c5a775;border-radius:10px;z-index:950;align-items:center}.home-mode-controls b{font:800 12px system-ui;color:#ffe2a7}.home-mode-controls button{font:800 12px system-ui;min-height:36px;padding:5px 10px;border-radius:7px;border:1px solid #bf9f6b;background:#e4c38c;color:#193941}.furn.visitor-furn{cursor:default}.furn.visitor-furn.interactive{cursor:pointer}.furn.visitor-furn .furn-live-dot{display:none}.furn:not(.editable){outline:none!important}.furn.state-off .full-furniture-img{filter:brightness(.72)}.furn[data-state=on] .furn-art::after{content:'';position:absolute;inset:-25%;border-radius:50%;background:radial-gradient(ellipse,#ffe2a361,transparent 68%);pointer-events:none}.room-home.lights-on::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:6;background:radial-gradient(ellipse at 50% 60%,#ffe3a119,transparent 75%)}
.tv-live-screen{position:absolute;left:20%;top:28%;width:50%;height:54%;border-radius:20% / 14%;overflow:hidden;background:#18384f;pointer-events:none;box-shadow:inset 0 0 6px #07121d,0 0 7px #b4e1df88}.tv-live-screen:before{content:'';position:absolute;width:36%;aspect-ratio:1;border-radius:50%;background:#e4d39a;left:45%;top:12%;box-shadow:inset -7px -3px #a4c2b7}.tv-live-screen i{position:absolute;left:80%;top:24%;height:2px;width:3px;background:#d9f8ef;animation:tv-star 4s linear infinite}.tv-live-screen i:nth-child(2){top:60%;animation-delay:-2s}.tv-live-screen i:nth-child(3){top:40%;animation-delay:-1s}.tv-live-screen span{position:absolute;bottom:4%;left:0;right:0;font:800 6px system-ui;text-align:center;color:#f7e2ba}@keyframes tv-star{to{transform:translateX(-90px)}}
.player.seated .sw-leg-left{transform:translate(0,-12px) rotate(-30deg)!important;transform-origin:49px 109px}.player.seated .sw-leg-right{transform:translate(0,-12px) rotate(30deg)!important;transform-origin:71px 109px}.player.seated .avatar-wrap{animation:none!important}.player.seated .sw-torso{transform:translateY(2px)}.player.seated .sw-arm-left{transform:rotate(-12deg)}.player.seated .sw-arm-right{transform:rotate(12deg)}
.home-pet{pointer-events:auto;z-index:760}.home-pet-follow{position:absolute;bottom:-25px;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #c7aa75;border-radius:7px;background:#173d49;color:#ffe5ac;font:800 11px system-ui;min-height:30px}.follow-pet{pointer-events:none}.player.walking .follow-pet svg{animation:pet-trot .25s infinite alternate;transform-origin:center bottom}@keyframes pet-trot{to{transform:translateY(-3px) rotate(2deg)}}
.moves-grid .move-avatar{display:block!important;width:75px!important;height:115px!important;overflow:visible!important}.moves-grid .move-avatar svg{width:100%;height:100%}.moves-grid button{min-height:150px!important;display:flex;flex-direction:column;align-items:center;gap:4px}.moves-grid button b{font-size:12px}#movesTray{max-height:min(650px,calc(100dvh - 110px));overflow:auto}#movesTray .moves-tray-head{position:sticky;top:0;z-index:3;background:#183b47}.world-visitor{border:0;background:none;color:#ffe4aa;padding:0;pointer-events:auto!important;transition:left .18s linear,top .18s linear;cursor:pointer}.world-visitor .avatar-wrap{height:88%;width:100%}.world-visitor .nameplate{white-space:nowrap;font-size:10px}.visitor-dialogue{position:absolute;right:3%;bottom:7%;width:280px;max-width:80%;z-index:980;background:#143945f5;border:2px solid #c9aa74;padding:14px;border-radius:15px;color:#ffe4af;font:500 14px system-ui}.visitor-dialogue>b,.visitor-dialogue>small{display:block}.visitor-dialogue>button:first-child{float:right}.visitor-dialogue button{min-height:34px;background:#dec18a;color:#173942;border:0;border-radius:7px;font-weight:800}.visitor-dialogue p{line-height:1.4}.mint-playing .world-visitor{visibility:hidden}
@media(max-width:780px){#collectionSheet .collection-main{grid-template-columns:minmax(0,1fr) 34%}#collectionSheet .collection-grid{grid-template-columns:1fr!important}#collectionSheet .sheet-head h2{font-size:23px}.home-mode-controls{max-width:68%}.home-mode-controls button{font-size:10px;padding:4px 6px;min-height:30px}}
@media(prefers-reduced-motion:reduce){.tv-live-screen i,.player.walking .follow-pet svg{animation:none}}

#collectionSheet .sheet-head h2{color:#fff0c9!important}#collectionSheet .sheet-head p{color:#c5d8d1!important}#collectionSheet .set-slot small{font-size:11px!important;line-height:1.25}#collectionSheet .set-top{font-size:12px!important}#collectionSheet .collection-row b{font-size:14px!important}#collectionSheet .collection-row small{font-size:12px!important}#collectionSheet .collection-detail-empty>b{font-size:14px}#collectionSheet .collection-detail-empty>small{font-size:12px}

.player.seated,.player.seated *{pointer-events:none!important}.tv-live-screen.off{background:#111b22;box-shadow:inset 0 0 9px #000}.tv-live-screen.off:before,.tv-live-screen.off i{display:none}

.drawer-done{min-height:38px;margin-top:8px;padding:7px 12px;font:800 12px system-ui;background:#dec18b;border:1px solid #866d48;color:#173a45;border-radius:8px}

.furn[data-item=old_monitor] .tv-live-screen{left:38%;top:18%;width:43%;height:43%;border-radius:18%}.dock-btn[data-emote] svg,.emote-bubble svg{width:100%!important;height:100%!important;overflow:hidden!important}

#collectionSheet .collection-detail{display:block!important;min-width:0}#collectionSheet .collection-main{display:grid!important}#collectionSheet .collection-detail-copy{overflow-wrap:anywhere}

.move-icon svg,.catalog-move-bubble svg{width:100%!important;height:100%!important;overflow:hidden!important}

/* Fitting correction: header controls occupy real grid cells; previews retain space at narrow widths. */
#catalogSheet .catalog-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:start;padding:24px 64px 16px 26px!important;flex-shrink:0}
#catalogSheet .catalog-head>div:first-child{grid-column:1/-1;min-width:0}#catalogSheet .catalog-head h2{margin:4px 0 8px;font-size:clamp(22px,3vw,29px)}
#catalogSheet .catalog-head .item-search{position:static!important;grid-row:2;grid-column:1;width:min(320px,100%)!important;max-width:100%!important;box-sizing:border-box;margin:0;min-height:36px}
#catalogSheet .catalog-wallet{position:static!important;grid-row:2;grid-column:2;align-self:center;white-space:nowrap;margin:0!important}
#catalogSheet.open{display:flex!important;flex-direction:column}#catalogSheet .catalog-layout{height:auto!important;flex:1;min-height:0;grid-template-columns:minmax(185px,30%) minmax(0,1fr)!important}
#catalogSheet .catalog-browser{min-height:0;display:flex;flex-direction:column;padding-bottom:40px}#catalogSheet .catalog-filters{flex-shrink:0;flex-wrap:wrap;overflow:visible}#catalogSheet .catalog-grid{flex:1;height:auto!important;min-height:0;overflow:auto;padding-bottom:18px}
#catalogSheet .catalog-preview{display:flex!important;min-height:0;padding:48px 10px 18px!important}#catalogSheet .catalog-avatar{height:auto!important;flex:1;min-height:100px;width:100%;overflow:hidden}#catalogSheet .catalog-avatar svg{height:100%!important;width:100%!important;max-height:none!important}#catalogSheet .catalog-preview-info{flex-shrink:0;min-height:0!important;padding-top:8px}#catalogSheet .catalog-preview-info small{display:block;margin-top:8px}
@media(max-width:780px){#catalogSheet .catalog-head{padding:18px 58px 12px 20px!important}#catalogSheet .catalog-head p{font-size:12px!important}#catalogSheet .catalog-layout{grid-template-columns:minmax(150px,29%) minmax(0,1fr)!important}#catalogSheet .catalog-preview-info>b{font-size:15px!important}#catalogSheet .catalog-preview-info>span,#catalogSheet .catalog-preview-info>small{font-size:11px!important}}

#catalogSheet .catalog-star{left:8px!important;bottom:8px!important;right:auto!important;top:auto!important;width:20px;height:20px;font-size:15px}

#catalogSheet .catalog-avatar{position:relative!important;display:block!important;min-height:0!important}#catalogSheet .catalog-avatar>svg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
