/* Public Stream Chat and creator inbox never enter a video/canvas output. */
.gm-stream-chat{color:#e8ecff;font:13px/1.5 Inter,system-ui,sans-serif;background:#0b1020;border:1px solid #7744b4;border-radius:12px;overflow:hidden}
.gm-stream-chat [hidden]{display:none!important}
.gm-stream-chat button,.gm-stream-chat select,.gm-stream-chat textarea{font:inherit;color:#eff3ff;background:#15182c;border:1px solid #485173;border-radius:7px;padding:9px;max-width:100%}
.gm-stream-chat button{cursor:pointer}.gm-stream-chat button:disabled{opacity:.5;cursor:not-allowed}
.gm-stream-chat button:focus-visible,.gm-stream-chat a:focus-visible,.gm-stream-chat select:focus-visible,.gm-stream-chat textarea:focus-visible{outline:2px solid #6fe9dd;outline-offset:2px}
.gm-stream-chat a{color:#b8a5ff}.gm-stream-chat p{margin:8px 0}.gm-stream-chat small{display:block;color:#aab5cc;line-height:1.5}
.gm-sc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-bottom:1px solid #423259;background:linear-gradient(110deg,#29153b,#0b2233)}
.gm-sc-head h2{font:700 14px/1.4 Inter,system-ui,sans-serif;margin:0}.gm-sc-body{padding:12px;display:flex;flex-direction:column;gap:10px;min-height:0}
.gm-sc-body label{display:flex;flex-direction:column;gap:5px}.gm-sc-body iframe{border:0;width:100%;height:460px;min-height:280px;background:#090b13}
.gm-sc-tools{display:flex;gap:8px;flex-wrap:wrap}.gm-sc-note{color:#b5c2da;font-size:12px}
.gm-sc-status{display:grid;gap:6px}.gm-sc-provider{padding:8px;border:1px solid #343b55;border-radius:7px;background:#0b1424}
.gm-sc-provider[data-status=connected]{border-left:3px solid #35df95}.gm-sc-provider[data-status=error]{border-left:3px solid #f3b862}
.gm-sc-log{height:340px;overflow:auto;overscroll-behavior:contain;border-block:1px solid #30394b;padding:6px 0;scrollbar-color:#8153b7 #101624}
.gm-sc-message{padding:8px;border-bottom:1px solid #202a3b;overflow-wrap:anywhere}.gm-sc-message p{white-space:pre-wrap}.gm-sc-message strong{color:#e9e5ff}.gm-sc-tag{color:#b49bff;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.gm-sc-message[data-platform=youtube] .gm-sc-tag{color:#ff929b}
.gm-sc-composer{display:flex;flex-direction:column;gap:8px}.gm-sc-composer textarea{resize:vertical;min-height:70px;width:100%;box-sizing:border-box}.gm-sc-composer button[type=submit]{background:linear-gradient(100deg,#8437e8,#464dff);font-weight:700}
#gmCastChatBar{display:none;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:8px;background:#101021;border-bottom:1px solid #493463}
#vWatch.active #gmCastChatBar{display:flex}#gmCastChatBar button{border:1px solid #624888;border-radius:6px;background:#191429;color:#eee4ff;padding:7px 10px;cursor:pointer;font:600 11px/1.4 Inter,system-ui,sans-serif}#gmCastChatBar button[aria-expanded=true]{background:#713ab3;border-color:#b995ff}
#gmCastChat{display:none;position:fixed;left:var(--gm-nav-width,200px);top:var(--gm-room-toolbar,54px);bottom:0;width:340px;border-radius:0;z-index:110;flex-direction:column}
#gmCastChat .gm-sc-body{overflow:auto;flex:1}#gmCastChat iframe{flex:1;height:100%;min-height:300px}
#gmCastChatPlayer{display:flex;flex:1;min-height:300px}
#gmCastChatBar{flex-shrink:0}
.app.gm-stream-chat-open:has(#vWatch.active) #gmCastChat{display:flex}
body .app.gm-left-ribbon.in-room.bp-immersive.gm-stream-chat-open:not(.bp-rocket){--gm-party-left:340px;--gm-party-right:0px}
@media(max-width:1024px){#gmCastChat{position:relative;inset:auto;width:auto;max-width:100%;height:560px;margin:10px}.app.gm-stream-chat-open:has(#vWatch.active) #gmCastChat{display:flex}body .app.gm-left-ribbon.in-room.bp-immersive.gm-stream-chat-open:not(.bp-rocket){--gm-party-left:0px}}
@media(max-width:1024px){.app.gm-stream-chat-open #vWatch.active{overflow-y:auto!important}}
@media(min-width:1025px){.app.bp-rocket.gm-stream-chat-open #vWatch.active{padding-left:340px!important}.app.bp-rocket #gmCastChat{left:0;top:0}}

/* Studio audience chat occupies the existing rail, never the video output. */
.gm-audience-picker{display:flex;align-items:center;gap:8px;padding:8px 12px;font:13px system-ui;flex:none}
.gm-audience-picker select{flex:1;min-width:0;background:#171b28;color:#fff;border:1px solid #42485b;border-radius:6px;padding:6px}
.gm-audience-picker[hidden],.gm-audience-slot[hidden]{display:none!important}
#g1PartyRail.gm-audience-active>:not(.g1p-hdr):not(.gm-audience-picker):not(.gm-audience-slot):not(.g1p-resize){display:none!important}
.gm-audience-slot{display:flex;flex:1;min-height:0;overflow:hidden}
.gm-audience-slot #gsCombinedChat{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;border:0;border-radius:0}
.gm-audience-slot #gsCombinedChat[hidden]{display:none!important}
.gm-audience-slot .gm-sc-body{flex:1;overflow:auto;padding:8px;gap:6px}
.gm-audience-slot .gm-sc-log{flex:1;min-height:140px;height:auto}
.gm-audience-slot .gm-sc-head{padding:8px}
.gm-audience-slot .gm-sc-composer textarea{min-height:48px}
.gm-audience-slot .gm-sc-provider{padding:5px}
.gm-audience-slot button,.gm-audience-slot select{padding:6px}
