/* v0.36: classic RPG lower chat rail. Same #messages, #chatForm, #tabs — not duplicated. */
@media(min-width:981px){
#app[data-noe-auto-dock="true"] .layout{padding-bottom:var(--noe-rail-space,206px)!important;box-sizing:border-box!important;min-height:0!important}
#app[data-noe-auto-dock="true"] .messages-panel[data-desk-window="chat"]{display:flex!important;flex-direction:column!important;gap:2px!important;z-index:105!important;border:1px solid #a077b4!important;background:#171329ef!important;border-top:2px solid #d6ad79!important;border-radius:6px 6px 0 0!important;box-shadow:0 -10px 24px #05010dbb!important;padding:3px 5px!important}
#app[data-noe-auto-dock="true"] .messages-panel .desk-titlebar{flex:0 0 19px!important;height:19px!important;min-height:19px!important;box-sizing:border-box!important}
#app[data-noe-auto-dock="true"] .messages-panel .chat-head{display:none!important}
#app[data-noe-auto-dock="true"] .messages-panel .tabs{flex:0 0 26px!important;max-height:26px!important;display:flex!important;gap:3px!important}
#app[data-noe-auto-dock="true"] .messages-panel .tabs button{min-width:65px;padding:3px 12px!important;font-size:11px!important;max-height:26px!important}
#app[data-noe-auto-dock="true"] .messages-panel #messages{flex:1 1 auto!important;min-height:24px!important;max-height:none!important;overflow:auto!important;line-height:1.34!important;padding:6px 10px!important;background:#0c0a1bbd;border:1px solid #392a58;border-radius:3px}
#app[data-noe-auto-dock="true"] .messages-panel #chatForm{flex:0 0 29px!important;min-height:29px!important;display:block!important}
#app[data-noe-auto-dock="true"] .messages-panel .chat-compose{display:flex!important;gap:5px!important;max-height:29px!important}
#app[data-noe-auto-dock="true"] .messages-panel #chatInput{height:28px!important;min-height:28px!important;flex:1!important;font-size:12px!important;padding:3px 7px!important}
#app[data-noe-auto-dock="true"] .messages-panel #chatForm button[type="submit"]{min-width:42px;padding:3px 7px!important;height:28px!important}
#app[data-noe-auto-dock="true"] .stream-card{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
#app[data-noe-auto-dock="true"] .stream-card #v031InlineVideo:not([hidden]){flex:0 0 auto!important;min-height:0!important;max-height:300px!important}
#app[data-noe-auto-dock="true"] .stream-card #v031VideoViewport{height:clamp(220px,26vh,298px)!important;min-height:210px!important}
#app[data-noe-auto-dock="true"] .stream-card .twitch-feed-panel:not(.twitch-popout){flex:1 1 auto!important;min-height:116px!important;height:auto!important;max-height:none!important}
#app[data-noe-auto-dock="true"] .stream-card .stream-visual{flex:0 0 120px!important;min-height:110px!important}
#app[data-noe-auto-dock="true"] #noeTwitchWriter{flex:0 0 31px!important;min-height:31px!important}
#app[data-noe-auto-dock="true"] .stream-card .v031-gender-control,#app[data-noe-auto-dock="true"] .stream-card .v031-auto-opt{flex:0 0 auto!important}
}
/* Art-aligned portal hitbox: not behind chatters or a tiny button outside the map. */
#noeLobbyGate{position:absolute;z-index:500;left:82%;top:72%;width:13%;height:22%;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 0 8px #a467ff);border-radius:20px}
#noeLobbyGate span{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:#281347ef;color:#ffe3aa;border:1px solid #ebbd83;border-radius:6px;padding:4px 9px;font-size:10px;font-weight:800;white-space:nowrap}
#noeLobbyGate:focus-visible{outline:3px solid #78e7e2}#noeLobbyGate:hover{box-shadow:inset 0 0 21px #bb65f480}
#app:has(#lobby033:not([hidden])) #noeLobbyGate,#app:has(#noeAdminPlane:not([hidden])) #noeLobbyGate{display:none}
.noe-dj-studio{margin:10px 0 0;padding:10px;border:1px solid #675079;background:#1b1630;border-radius:8px;display:grid;gap:7px}
.noe-dj-studio h3{font-size:12px;color:#f3d1a7;margin:1px 0 3px}.noe-dj-studio label{font-size:10px;color:#d6c7e2;display:grid;gap:3px}
.noe-dj-studio input,.noe-dj-studio select{width:100%;min-width:0;background:#110d24;color:white;border:1px solid #6f5486;border-radius:5px;padding:6px}
.noe-dj-studio .actions{display:flex;flex-wrap:wrap;gap:5px}.noe-dj-studio button{background:#48315f;color:#f8edff;border:1px solid #9572ab;padding:5px 8px;border-radius:5px;font-size:10px;cursor:pointer}
.noe-dj-studio button:disabled{opacity:.35;cursor:default}.noe-dj-request{display:flex;align-items:center;gap:6px;border-bottom:1px solid #4b3b66;padding:5px 0;font-size:10px;color:#eee}
.noe-dj-request span{flex:1;overflow-wrap:anywhere}.noe-dj-compact{font-size:10px;color:#bfb0d4}
@media(max-width:980px){#noeLobbyGate{left:82%;top:71%;width:13%;height:22%}#noeLobbyGate span{font-size:8px;padding:3px}}
