/* NoeTwitchRoom v0.39 — Golden Compact Studio. Real game objects; never cloned. */
@media (min-width:981px) {
 #app[data-noe-studio="true"]{--noe-left:clamp(432px,27vw,468px);--noe-right:clamp(236px,17.4vw,285px);--noe-gap:7px;--noe-panel-stroke:#604077}
 #app[data-noe-studio="true"] .topbar{height:56px!important;min-height:56px!important;gap:8px;padding:0 12px;background:linear-gradient(90deg,#110c23,#13102a 53%,#0e1025);border-bottom:1px solid #8251b3;z-index:100}
 #app[data-noe-studio="true"] .topbar .brand{min-width:195px;font-size:15px;letter-spacing:.25px}
 #app[data-noe-studio="true"] .topbar .brand .noe-crown{font-size:25px}
 #app[data-noe-studio="true"] .topbar button{border-radius:7px}
 #noe39AdminPower:not([hidden]){font-size:10px!important;background:linear-gradient(100deg,#4e2875,#7034a0);border-color:#c29cda;color:#ffe6a6;padding:7px 9px}
 #noe39Ops:not([hidden]){display:flex;position:fixed;z-index:450;right:20px;top:63px;width:340px;max-height:calc(100dvh - 135px);padding:12px;overflow:auto;flex-direction:column;gap:8px;background:linear-gradient(150deg,#201433,#100e24);border:1px solid #b583ca;border-radius:10px;box-shadow:0 18px 50px #000b}
 #noe39Ops .noe39-ops-head{display:flex;justify-content:space-between;align-items:center;color:#e8bdff}
 #noe39Ops .noe39-ops-head button{padding:3px 8px}
 #noe39Ops .noe39-ops-actions{display:flex;flex-wrap:wrap;gap:5px}
 #noe39Ops button{font-size:11px;padding:6px 8px;min-width:0}
 #noe39Ops select{padding:6px;width:100%}
 #noe39Ops label{margin:0;font-size:11px}
 #noe39Ops pre{font:10px/1.35 monospace;overflow:auto;min-height:32px;max-height:125px;background:#090c1b;color:#bfe9d9;padding:8px;border:1px solid #48365d;white-space:pre-wrap}
 #app[data-noe-studio="true"] .room-breadcrumb{display:none!important}
 #app[data-noe-studio="true"] .stage-head #noe39RoomStatus{font-size:10px;letter-spacing:.3px;color:#e7c7ff;margin-left:9px}
 #app[data-noe-studio="true"] .layout{display:grid!important;grid-template-columns:var(--noe-left) minmax(0,1fr) var(--noe-right)!important;grid-template-areas:"left stage right";gap:var(--noe-gap)!important;flex:1;min-height:0;overflow:hidden;position:relative;padding:6px 7px 5px!important;margin:0!important}
 #app[data-noe-studio="true"] .layout>.left,#app[data-noe-studio="true"] .layout>.right{display:flex!important;flex-direction:column!important;min-height:0;overflow:hidden;gap:7px;position:relative;align-self:stretch}
 #app[data-noe-studio="true"] .layout>.left{grid-area:left}#app[data-noe-studio="true"] .layout>.right{grid-area:right}
 #app[data-noe-studio="true"] .layout>.center{grid-area:stage;display:flex!important;min-width:0;min-height:0;height:100%;width:100%;flex-direction:column!important;position:relative}
 #app[data-noe-studio="true"] .center .stage-head{height:29px!important;min-height:29px!important;margin:0 0 4px!important;flex:0 0 29px}
 #app[data-noe-studio="true"] .center .stage-head strong{font-size:12px}
 #app[data-noe-studio="true"] .center .stage-head .eyebrow{font-size:8px}
 #app[data-noe-studio="true"] .scene-shell{height:auto!important;flex:1 1 auto;min-height:0;max-height:none!important;border-radius:9px!important;border:1px solid #70438c;box-shadow:0 0 19px #aa38ef26,inset 0 0 15px #0008}
 #app[data-noe-studio="true"] #scene{min-height:0!important}
 #app[data-noe-studio="true"] .scene-footer{flex:0 0 auto;z-index:1;border:1px solid #38264b;background:#151026;border-radius:5px;padding:4px 7px;min-height:33px}
 /* Restore contained slots from old floating manager; only explicitly detached windows float. */
 #app[data-noe-studio="true"] .layout .desk-window.noe-studio-docked{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:none!important;max-width:none!important;resize:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;transform:none!important;z-index:5!important;margin:0!important;padding:0!important;box-shadow:0 3px 16px #0006,inset 0 1px #ffffff0e!important;border:1px solid #604077!important;border-radius:9px!important;background:linear-gradient(153deg,#19132e,#101021)!important}
 #app[data-noe-studio="true"] .layout .desk-window.noe-studio-docked.desk-hidden{display:flex!important}
 #app[data-noe-studio="true"] .layout>.left>.noe-studio-docked.stream-card{flex:0 0 auto;min-height:138px!important;max-height:min(57vh,575px)!important;overflow:hidden!important}
 #app[data-noe-studio="true"] .layout>.left>.noe-studio-docked.stream-card.v031-has-video{min-height:385px!important}
 #app[data-noe-studio="true"] .layout>.left>.noe-studio-docked.messages-panel{flex:1 1 auto;min-height:160px!important;max-height:none!important}
 #app[data-noe-studio="true"] .layout>.right>.noe-studio-docked.roster-panel{flex:0 0 clamp(126px,19vh,230px)!important;min-height:100px!important;max-height:none!important}
 #app[data-noe-studio="true"] .layout>.right>.noe-studio-docked.right-chatter-panel{flex:1 1 auto!important;min-height:110px!important;max-height:none!important}
 #app[data-noe-studio="true"] .layout .desk-window.noe-studio-docked .desk-titlebar{display:flex!important;flex:0 0 30px!important;height:30px!important;min-height:30px!important;background:linear-gradient(95deg,#312043,#211833)!important;border-bottom:1px solid #6e4a7f!important;padding:3px 8px;cursor:default!important;align-items:center}
 #app[data-noe-studio="true"] .desk-window.noe-studio-docked .desk-titlebar strong{color:#e7c8fa;font-size:10px;letter-spacing:.8px}
 #app[data-noe-studio="true"] .desk-window.noe-studio-docked .desk-titlebar button:not(.noe39-detach):not(.noe39-popout-toggle){display:none!important}
 #app[data-noe-studio="true"] .desk-window.noe-studio-docked .desk-titlebar .noe-panel-dock{display:none!important}
 #app[data-noe-studio="true"] .desk-window.noe-studio-docked .desk-resize-grip{display:none!important}
 #app[data-noe-studio="true"] .desk-window.noe-studio-docked .desk-titlebar .noe39-detach{width:auto;min-width:30px;height:21px;font-size:10px;padding:0 7px;white-space:nowrap;border-color:#754e93}
 #app[data-noe-studio="true"] .layout>.right>.friends-shortcuts,#app[data-noe-studio="true"] .layout>.right>.quick-panel{display:block!important;position:relative!important;flex:0 0 auto!important;max-height:112px!important;overflow:hidden!important;border-color:#594072!important;background:#19132b!important;min-height:0!important}
 #app[data-noe-studio="true"] .layout>.right>.friends-shortcuts{max-height:72px!important}
 #app[data-noe-studio="true"] .layout>.right>.quick-panel{max-height:116px!important}
 #app[data-noe-studio="true"] .right .quick-panel .activity{display:flex;margin:3px 0;padding:4px 8px;line-height:1.1}
 #app[data-noe-studio="true"] .right .quick-panel .activity small{display:none}
 #app[data-noe-studio="true"] .right .quick-panel .panel-title,#app[data-noe-studio="true"] .right .friends-shortcuts .panel-title{margin-bottom:4px}
 #app[data-noe-studio="true"] .right .friends-shortcuts .shortcut-row button{padding:5px}
 #app[data-noe-studio="true"] .roster-panel .roster,#app[data-noe-studio="true"] .right-chatter-panel .chatter-roster{flex:1 1 auto;min-height:10px;max-height:none!important;overflow:auto;padding:4px 8px}
 #app[data-noe-studio="true"] .right-chatter-panel>small{flex:0 0 auto;margin:1px 8px 7px!important;font-size:9px}
 #app[data-noe-studio="true"] .stream-card .stream-visual{height:170px!important;flex:0 0 auto!important;margin:6px 8px!important;min-height:125px!important}
 #app[data-noe-studio="true"] .stream-card.v031-has-video .stream-visual{display:none!important}
 #app[data-noe-studio="true"] .stream-card #v031InlineVideo:not([hidden]){width:calc(100% - 14px)!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;max-height:none!important;margin:5px 7px!important;padding:3px!important}
 #app[data-noe-studio="true"] .stream-card #v031VideoViewport{min-width:400px!important;height:300px!important;min-height:300px!important;max-height:300px!important;overflow:hidden}
 #app[data-noe-studio="true"] .stream-card #v031Player iframe{min-width:400px!important;min-height:300px!important}
 #app[data-noe-studio="true"] .stream-card #twitchReadOnlyFeed:not(.twitch-popout){display:none!important}
 #app[data-noe-studio="true"] .stream-card .ux-twitch-splitter{display:none!important}
 #app[data-noe-studio="true"] .stream-card .stream-caption{padding:1px 9px 3px;font-size:10px}
 #app[data-noe-studio="true"] .stream-card .desk-video-open{margin:2px 9px 5px!important;width:calc(100% - 18px)!important;min-height:27px!important;font-size:11px!important}
 #app[data-noe-studio="true"] .stream-card .v031-auto-opt,#app[data-noe-studio="true"] .stream-card .v031-gender-control{font-size:10px;padding:1px 8px!important;margin:1px 0!important}
 #app[data-noe-studio="true"] .stream-card .v031-gender-control select{max-width:170px;padding:3px}
 #app[data-noe-studio="true"] #noeTwitchWriter{margin:2px 7px 4px!important;min-height:25px!important}
 #app[data-noe-studio="true"] .messages-panel .chat-head{display:none!important}
 #app[data-noe-studio="true"] .messages-panel .tabs{display:flex!important;flex:0 0 31px!important;min-height:31px!important;max-height:31px!important;align-items:stretch;margin:0 7px 3px!important;border-bottom:1px solid #583779}
 #app[data-noe-studio="true"] .messages-panel .tabs button{flex:1;min-width:0;padding:5px 4px!important;font-size:11px!important;max-height:30px!important}
 #app[data-noe-studio="true"] .messages-panel #messages{flex:1 1 auto!important;min-height:40px!important;max-height:none!important;overflow:auto!important;padding:8px 9px!important;margin:0 7px!important;background:#0e0d22;border:1px solid #2f2750;border-radius:6px;font-size:11px;line-height:1.48}
 #app[data-noe-studio="true"] .messages-panel #chatForm{flex:0 0 auto!important;min-height:39px!important;padding:4px 7px 6px!important;margin:0!important}
 #app[data-noe-studio="true"] .messages-panel .chat-compose{display:flex;gap:6px;margin:0!important;max-height:32px!important}
 #app[data-noe-studio="true"] .messages-panel #chatInput{height:31px!important;min-height:31px!important;padding:4px 8px!important;flex:1 1 auto}
 #app[data-noe-studio="true"] .messages-panel #chatForm button{height:31px!important;min-height:31px!important;padding:2px 6px!important}
 #app[data-noe-studio="true"] .desk-actions{display:none!important}
 #app[data-noe-studio="true"] .social-dock{min-height:55px!important;height:55px!important;max-height:55px!important;display:flex!important;gap:10px!important;z-index:100!important;flex:0 0 55px;padding:5px 10px!important;background:linear-gradient(100deg,#150e2a,#101126 48%,#1d1033)!important;border-top:1px solid #9056be!important}
 #app[data-noe-studio="true"] .social-dock .emote-bar strong{display:none}
 #app[data-noe-studio="true"] .social-dock .noe39-identity{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:170px;max-width:200px;border-right:1px solid #634180;padding:0 8px 0 2px;overflow:hidden}
 #app[data-noe-studio="true"] .social-dock .noe39-identity canvas{width:34px;height:42px;image-rendering:pixelated;border:1px solid #7b519f;border-radius:7px;background:#241636;object-fit:contain}
 #app[data-noe-studio="true"] .social-dock .noe39-identity strong{display:block;color:#f4d1ff;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #app[data-noe-studio="true"] .social-dock .noe39-identity small{color:#8de8c3;font-size:9px;display:block;margin-top:3px}
 #app[data-noe-studio="true"] .social-dock .emote-bar button{min-width:35px;height:37px;padding:2px 5px;font-size:19px}
 #app[data-noe-studio="true"] .social-dock #noe39LayoutActions{display:flex;gap:6px;margin-left:auto;align-items:center}
 #app[data-noe-studio="true"] .social-dock #noe39LayoutActions button{font-size:10px;padding:6px 9px;border:1px solid #8155b0;border-radius:7px;background:#2c1c47;color:#efd9ff}
 #app[data-noe-studio="true"] .desk-window.noe-studio-free{z-index:var(--desk-z,150)}
 #app[data-noe-studio="true"] .right-chatter-panel .chatter-roster .chatter-row{padding:3px 4px}
 .noe39-popout-toggle{width:162px!important;min-width:162px!important;max-width:162px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:0 0 162px!important;margin-left:auto;border-color:#7f55aa!important;font-size:10px!important;padding:3px 8px!important;min-width:0!important;height:24px!important;color:#e5c9ff!important}
 #app[data-noe-studio="true"] .stream-card .v031-has-video #v031VideoViewport{min-width:400px}
}
@media(min-width:981px) and (max-width:1250px){#app[data-noe-studio="true"]{--noe-left:432px;--noe-right:215px}#app[data-noe-studio="true"] .topbar .brand{min-width:150px;font-size:13px}}
@media(max-width:980px){#noe39LayoutActions,.noe39-identity{display:none!important}}
@media(min-width:981px) and (max-width:1430px){#app[data-noe-studio="true"] .social-dock .noe39-identity{min-width:100px;max-width:115px}#app[data-noe-studio="true"] .social-dock .noe39-identity small{display:none}}
/* Safe layout preset: window-manager drag / resize remains exclusively in detached mode. */
