
.guest-room{--gr-bg:#f6f7fb;--gr-ink:#182037;--gr-muted:#6a7286;--gr-line:#e6e9f1;--gr-panel:#ffffff;--gr-bubble:#eef0f6;--gr-input-bg:#ffffff;--gr-input-border:#c9cedb;--gr-btn-bg:#eef0f6;--gr-btn-border:#dce1ec;--gr-btn-ink:#182037;--gr-control-hover:#e4e7ef;--gr-tile-bg:#e4e7ef;background:var(--gr-bg);color:var(--gr-ink);height:100dvh;min-height:420px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.guest-room[data-theme="dark"]{--gr-bg:#11151e;--gr-ink:#eef1f8;--gr-muted:#b9c0d0;--gr-line:#343a49;--gr-panel:#1c2230;--gr-bubble:#282f3f;--gr-input-bg:#141a26;--gr-input-border:#475069;--gr-btn-bg:#262c3b;--gr-btn-border:#424b60;--gr-btn-ink:#eef1f8;--gr-control-hover:#30384b;--gr-tile-bg:#252c3b}
.guest-exit{background:#11151e;color:#eef1f8;height:100dvh;min-height:420px;display:flex;align-items:center;justify-content:center;padding:24px}
.guest-exit-card,.guest-exit-cta{width:min(420px,100%);background:#1c2230;border:1px solid #343a49;border-radius:16px;padding:32px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.guest-exit-card img,.guest-exit-cta img{width:48px;height:48px;margin-bottom:6px}
.guest-exit-card h1{font-size:21px;margin:0}.guest-exit-cta h2{font-size:20px;margin:0}
.guest-exit-card p,.guest-exit-cta p{margin:0;color:#b9c0d0}
.guest-star-row{display:flex;gap:8px;margin:8px 0}
.guest-star{background:none;border:0;font-size:34px;line-height:1;color:#3c4356;cursor:pointer;padding:4px;transition:color .15s,transform .15s}
.guest-star:hover{transform:scale(1.12)}
.guest-star.filled{color:#f5b642}
.guest-exit-card textarea{width:100%;background:#141a26;color:white;border:1px solid #475069;border-radius:8px;padding:10px;font:inherit;resize:vertical}
.guest-exit-card .row{width:100%;justify-content:center}
.guest-exit-cta .btn{margin-top:8px}
.guest-room .btn{min-height:40px}.guest-room .btn.secondary,.guest-room .btn.ghost{color:var(--gr-btn-ink);background:var(--gr-btn-bg);border-color:var(--gr-btn-border)}.guest-room .btn[aria-pressed=true]{background:#5840c9;border-color:#aa99fa;color:#fff}.guest-header{padding:12px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--gr-line);min-width:0}.guest-header>img{width:38px;height:38px;flex-shrink:0}.guest-title{flex:1;min-width:0}.guest-title h1{font-size:17px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guest-title>span{font-size:12px;color:var(--gr-muted)}.guest-view-actions{display:flex;gap:8px;flex-shrink:0}.guest-theme-toggle{width:40px;padding:0!important;flex-shrink:0}.guest-theme-toggle svg{width:19px;height:19px}.guest-main{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;overflow:hidden}.guest-main.with-panel{grid-template-columns:minmax(0,1fr) min(32vw,340px)}.guest-stage{position:relative;min-width:0;min-height:0;padding:12px 18px;display:flex;flex-direction:column;gap:12px}.guest-program-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}#guest-program{position:relative;aspect-ratio:16/9;height:100%;max-width:100%;border-radius:12px;overflow:hidden;background:#0b0e16;border:1px solid #2b3242}
@media(orientation:portrait){#guest-program{width:100%;height:auto;max-height:100%}}#guest-program iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}.guest-program-pill{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;background:#000000a3;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#f1ebff;z-index:2}.guest-backstage-note{display:flex;align-items:center;gap:9px;padding:9px 14px;border-radius:10px;background:linear-gradient(135deg,#241f52,#3a1f52);border:1px solid #4a3f8f;flex-shrink:0}.guest-backstage-note svg{width:17px;height:17px;flex-shrink:0;color:#cbb8ff}.guest-backstage-note strong{color:#f1ebff;font-weight:600}.guest-backstage-note span{font-size:12px;color:#cfd3e6;line-height:1.4}.guest-panel-tabs{display:flex;gap:2px;flex:1;min-width:0}.guest-panel-tab{flex:1;min-width:0;background:transparent;color:var(--gr-muted);padding:9px 4px;font-size:12px;border-bottom:2px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guest-panel-tab.active{color:var(--gr-ink);border-color:#8a6bff}.guest-tab-badge{display:inline-block;min-width:16px;padding:1px 5px;border-radius:999px;background:#e0455f;color:#fff;font-size:10px;font-weight:700;line-height:1.4;text-align:center}.guest-call-status{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--gr-muted);min-height:18px;flex-wrap:wrap}.guest-grid{flex:0 0 108px;min-height:0;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.guest-tile{flex:0 0 152px;width:152px;min-width:0;min-height:0;position:relative;background:var(--gr-tile-bg);border:2px solid transparent;border-radius:10px;display:grid;place-items:center;isolation:isolate;overflow:hidden}.guest-speaking{border-color:#78dba8}.guest-tile.guest-featured{border-color:#8a6bff}.guest-tile.guest-hand-up{border-color:#f5b642}.guest-hand-badge{display:none;position:absolute;top:6px;left:6px;width:22px;height:22px;border-radius:50%;background:#f5b642;color:#20160a;align-items:center;justify-content:center;z-index:3;box-shadow:0 1px 4px rgba(10,12,20,.3)}.guest-hand-badge svg{width:13px;height:13px}.guest-tile.guest-hand-up .guest-hand-badge{display:flex}.guest-avatar{width:clamp(30px,6vw,52px);height:clamp(30px,6vw,52px);display:grid;place-items:center;border-radius:50%;background:#6a5fb0;color:white;font-size:clamp(14px,2.4vw,20px);font-weight:600}.guest-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.guest-screen video{object-fit:contain;background:#090c13}.guest-tile-label{position:absolute;bottom:6px;left:6px;max-width:calc(100% - 40px);padding:3px 6px;background:#090c13c9;color:#eef1f8;border-radius:5px;z-index:2;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guest-tile-mic{position:absolute;right:6px;bottom:6px;width:18px;height:18px;color:#ff919c;z-index:2}.guest-tile-mic svg{width:14px;height:14px}.guest-pagination{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px}.guest-side{display:flex;flex-direction:column;padding:14px;min-width:0;min-height:0;background:var(--gr-panel);border-left:1px solid var(--gr-line)}.guest-side h2{font-size:17px}.guest-side #panel-content{flex:1;min-height:0;overflow:auto;padding:12px 0}.guest-side .message{color:var(--gr-ink);padding:10px;background:var(--gr-bubble);margin-bottom:8px;border-radius:8px;overflow-wrap:anywhere}.guest-side .message p{margin:6px 0}.guest-side .chat-form{display:flex;padding:10px 0 0;background:none;border:0;gap:8px}.guest-side input{min-width:0;flex:1;background:var(--gr-input-bg);color:var(--gr-ink);border:1px solid var(--gr-input-border)}.guest-person{display:flex;gap:10px;align-items:center;padding:10px 0;overflow-wrap:anywhere}.guest-person small{display:block;color:var(--gr-muted)}.guest-controls{display:flex;justify-content:center;align-items:center;gap:4px;padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--gr-line);background:var(--gr-panel);flex-wrap:wrap;box-shadow:0 -6px 18px rgba(10,12,20,.06)}.guest-controls .control{position:static;min-width:60px;width:auto;min-height:66px;padding:4px 6px;background:transparent;color:var(--gr-muted);border:0;border-radius:12px;font-size:10.5px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:5px;transition:background .15s ease}.guest-controls .control:hover{background:var(--gr-control-hover)}.guest-controls .control-icon{background:var(--gr-btn-bg);border:1px solid var(--gr-btn-border);display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;color:var(--gr-ink);transition:background .15s ease,border-color .15s ease,transform .1s ease}.guest-controls .control:active .control-icon{transform:scale(.93)}.guest-controls .control-icon svg{width:21px;height:21px}.guest-controls .control.off{color:#e0455f}.guest-controls .control.off .control-icon{background:#e0455f;border-color:#e0455f;color:#fff}#hand[aria-pressed=true]{color:#c98a12}#hand[aria-pressed=true] .control-icon{background:#f5b642;border-color:#f5b642;color:#20160a}.guest-device-group{position:relative;display:flex;align-items:center;min-width:0}.guest-device-arrow{position:absolute;right:0;top:24px;width:19px;height:19px;min-height:0;display:flex;align-items:center;justify-content:center;color:var(--gr-ink);background:var(--gr-panel);border:1px solid var(--gr-btn-border);border-radius:50%;padding:0;font-size:9px;line-height:1;box-shadow:0 1px 4px rgba(10,12,20,.2)}.guest-controls .leave{position:static;margin:0 4px 0 10px;background:#e0455f;color:#fff;border:0;border-radius:24px;min-height:46px;min-width:0;padding:0 22px;font-weight:700;letter-spacing:.2px}.guest-controls .leave:hover{background:#c93a51}.guest-room button:focus-visible{outline:3px solid #bcaeff;outline-offset:2px}.guest-room [hidden]{display:none!important}.guest-controls button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:999px){.guest-header{padding:10px 12px}.guest-stage{padding:10px}.guest-controls{gap:4px;padding-inline:8px}.guest-controls .control{min-width:58px;padding:6px}.guest-controls .leave{margin-left:2px}.guest-main.with-panel{grid-template-columns:minmax(0,1fr) 280px}.guest-grid{flex-basis:88px}.guest-tile{flex-basis:124px;width:124px}}
@media(max-width:599px){.guest-header{gap:8px;flex-wrap:wrap}.guest-header>img{width:32px;height:32px}.guest-title h1{font-size:15px}.guest-title>span{font-size:10px}.guest-view-actions{gap:4px}.guest-view-actions .btn{font-size:11px;padding:6px;min-height:34px}.guest-view-actions svg{display:none}.guest-theme-toggle svg{display:block}.guest-stage{padding:8px;gap:6px}.guest-call-status{font-size:10px}.guest-grid{flex-basis:78px;gap:6px}.guest-tile{flex-basis:108px;width:108px}.guest-tile-label{font-size:10px;left:4px;bottom:4px;padding:3px 5px}.guest-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:6px 6px max(6px,env(safe-area-inset-bottom))}.guest-controls .control{min-width:0;width:100%;font-size:10px;padding:4px 2px;min-height:48px}.guest-controls .leave{grid-column:4/6;margin:0;min-width:0;min-height:40px}.guest-controls .control-icon{width:38px;height:38px}.guest-controls .control-icon svg{width:18px;height:18px}.guest-device-arrow{width:16px;height:16px;top:20px}.guest-main.with-panel{grid-template-columns:1fr;position:relative}.guest-main.with-panel .guest-side{position:absolute;inset:0;z-index:4;border:0}.guest-pagination .btn{min-height:30px;padding:4px 8px}.guest-pagination{font-size:10px;gap:8px}}
/* Phones in landscape: very little height to work with, so every non-video row is squeezed
   hard and the program box gets whatever is left instead of floating small in empty space. */
@media(max-height:520px) and (orientation:landscape){
.guest-header{padding:4px 10px;gap:8px}
.guest-header>img{width:24px;height:24px}
.guest-title h1{font-size:13px}
.guest-title>span{display:none}
.guest-view-actions .btn{min-height:28px;padding:4px 8px;font-size:11px}
.guest-view-actions .btn svg{display:none}
.guest-theme-toggle{width:28px}
.guest-call-status{display:none}
.guest-stage{padding:5px 8px;gap:5px}
.guest-backstage-note{padding:4px 8px;gap:5px}
.guest-backstage-note svg{width:13px;height:13px}
.guest-backstage-note span{display:none}
.guest-backstage-note strong{font-size:10px;font-weight:500}
.guest-grid{flex-basis:58px;gap:5px}
.guest-tile{flex-basis:80px;width:80px}
.guest-tile-label{font-size:8px;padding:2px 4px;left:3px;bottom:3px}
.guest-pagination{display:none}
.guest-controls{padding:3px 8px;gap:2px}
.guest-controls .control{min-height:34px;min-width:0;padding:2px 4px;gap:1px;font-size:8px}
.guest-controls .control-icon{width:16px;height:16px}
.guest-controls .control-icon svg{width:15px;height:15px}
.guest-controls .control>span:last-child{display:none}
.guest-device-arrow{height:24px}
.guest-controls .leave{min-height:30px;padding:4px 10px;font-size:10px;margin-left:4px}
}
/* Tablets in landscape have more headroom than a phone, but the chrome around the program
   box still eats into it more than it should — trim it moderately to grow the video. */
@media(min-width:700px) and (max-height:900px) and (orientation:landscape){
.guest-header{padding:8px 16px}
.guest-header>img{width:30px;height:30px}
.guest-stage{padding:8px 14px;gap:8px}
.guest-backstage-note{padding:6px 12px}
.guest-grid{flex-basis:72px}
.guest-tile{flex-basis:100px;width:100px}
.guest-controls{padding:6px 16px}
.guest-controls .control{min-height:52px}
.guest-controls .control-icon{width:38px;height:38px}
.guest-controls .control-icon svg{width:18px;height:18px}
}
