/* NoeTwitchRoom v0.14 / Classic NoeRoom Social Desk. No RPG, no minimap. */
:root{--desk-line:#8970a0;--desk-highlight:#e9bc83;--desk-base:#120e20}
.desk-titlebar,.desk-actions{display:none}
@media(min-width:981px){
 #app[data-desktop-layout="floating"] .layout{display:block!important;position:relative;padding:5px 8px;overflow:hidden}
 #app[data-desktop-layout="floating"] .layout>.center{display:flex;height:100%;width:100%;min-height:0;flex-direction:column}
 #app[data-desktop-layout="floating"] .center .stage-head{margin-bottom:3px;min-height:28px}
 #app[data-desktop-layout="floating"] .scene-shell{height:auto!important;flex:1 1 auto;min-height:0;max-height:none}
 #app[data-desktop-layout="floating"] .layout>.left,#app[data-desktop-layout="floating"] .layout>.right{display:contents!important}
 #app[data-desktop-layout="floating"] .left>*,#app[data-desktop-layout="floating"] .right>*{display:none!important}
 #app[data-desktop-layout="floating"] .layout .desk-window{display:flex!important;position:fixed!important;z-index:var(--desk-z,40);flex-direction:column;min-width:220px;min-height:75px;max-width:96vw;max-height:calc(100dvh - 55px);margin:0!important;inset:auto;transform:none!important;opacity:1;overflow:auto;resize:both;padding:0;background:linear-gradient(#1c152bF5,#110f22F2);border:1px solid #b18d9c;border-radius:8px;box-shadow:0 7px 28px #000c,0 0 0 1px #372344;pointer-events:auto}
 #app[data-desktop-layout="floating"] .desk-window.desk-hidden{display:none!important}
 #app[data-desktop-layout="floating"] .desk-window.desk-minimized{resize:none;overflow:hidden!important;min-height:35px;height:35px!important}
 #app[data-desktop-layout="floating"] .desk-window.desk-minimized>:not(.desk-titlebar){display:none!important}
 #app[data-desktop-layout="floating"] .desk-window .desk-titlebar{display:flex;flex:0 0 33px;align-items:center;gap:5px;min-height:33px;padding:3px 7px;border-bottom:1px solid #7a5987;background:linear-gradient(90deg,#3e284c,#2a203f);cursor:grab;touch-action:none;user-select:none}
 .desk-titlebar.dragging{cursor:grabbing!important}
 .desk-titlebar strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f3daaa;font-weight:800;font-size:11px;letter-spacing:.6px}
 .desk-titlebar button{width:26px;min-width:26px;height:24px;line-height:1;border:1px solid #8f6c9c;background:#261b3b;color:#f7e2e9;padding:0;font-size:18px;border-radius:4px}
 .desk-titlebar button:hover,.desk-titlebar button:focus-visible{background:#704c7c;outline:1px solid #e3bd87}
 #app[data-desktop-layout="floating"] .desk-window>.panel-title,#app[data-desktop-layout="floating"] .desk-window>.chat-head{display:none!important}
 #app[data-desktop-layout="floating"] .stream-card .stream-visual{flex:1;min-height:90px;margin:7px 10px;background:linear-gradient(165deg,#2014339c,#2e1648d9),url('assets/noeroom-magical-lounge.png') center 28%/cover}
 #app[data-desktop-layout="floating"] .stream-card .stream-caption{padding:0 10px 7px;flex:0 0 auto}
 #app[data-desktop-layout="floating"] .stream-card .desk-video-open{margin:0 10px 9px;width:calc(100% - 20px);font-size:11px;background:linear-gradient(#4d3370,#33224d);border-color:#a985af;min-height:32px}
 #app[data-desktop-layout="floating"] .messages-panel .tabs{flex:0 0 auto;margin:5px 7px}
 #app[data-desktop-layout="floating"] .messages-panel #messages{flex:1 1 auto;min-height:35px;overflow-y:auto;padding:5px 9px}
 #app[data-desktop-layout="floating"] .messages-panel #chatForm{flex:0 0 auto;padding:6px 7px 9px}
 #app[data-desktop-layout="floating"] .desk-window>summary{display:none!important}
 #app[data-desktop-layout="floating"] .desk-window>.panel{border:0;box-shadow:none;background:transparent;margin:0;padding:10px;overflow:auto}
 #app[data-desktop-layout="floating"] .desk-window .dj-panel,#app[data-desktop-layout="floating"] .desk-window .streamer-detail{display:block!important;flex:1;min-height:0}
 #app[data-desktop-layout="floating"] .roster-panel .roster{flex:1 1 auto;min-height:20px;overflow-y:auto;padding:3px 8px}
 #app[data-desktop-layout="floating"] .right-chatter-panel .chatter-roster{max-height:none;flex:1;min-height:30px;overflow:auto;margin:5px 10px}
 #app[data-desktop-layout="floating"] .right-chatter-panel>small{padding:3px 10px 9px;flex:0 0 auto}
 #app[data-desktop-layout="floating"] .scene-footer{background:#141023af;padding:5px 9px;border-radius:6px;z-index:1}
 #app[data-desktop-layout="floating"] .social-dock{z-index:72}
}
.desk-actions{display:flex;gap:4px;flex-wrap:wrap;align-items:center;margin-left:10px;margin-right:auto}
.desk-actions button{padding:7px 9px;font-size:10px;border-color:#87638f;background:#302240;color:#ecdafa;border-radius:6px;white-space:nowrap}
.desk-actions button.desk-active{color:#f8d9a1;border-color:#b79069;background:#4b3356}
#deskLayoutToggle{font-weight:900}
@media(max-width:1300px){.desk-actions button{padding:7px 5px;font-size:9px}.social-dock{gap:4px}.desk-actions{gap:2px;margin-left:3px}}
@media(max-width:980px){.desk-actions{display:none!important}}
@media(prefers-reduced-motion:reduce){.desk-window{transition:none!important;animation:none!important}}
/* Mobile layout remains a nonfloating, scrollable UI; keep the composer reachable. */
@media(max-width:760px){
 #app .left .messages-panel{height:min(36dvh,350px);max-height:none;min-height:270px;overflow:hidden;flex:0 0 auto}
 #app .left .messages-panel #messages{min-height:36px;flex:1 1 auto;overflow-y:auto}
 #app .left .messages-panel #chatForm{flex:0 0 auto;margin-top:auto;padding-bottom:8px}
}
