@import url('../../assets/css/profgruppen-design-system.css');
:root{color-scheme:dark;--show-bg:#080e17;--show-panel:#111c29;--show-line:#294054;--show-accent:#5ce1c3;--show-muted:#a6b9ca}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 0,#163349 0,transparent 55%),var(--show-bg);color:#edf6fb;font-family:system-ui,sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,select{border:1px solid #365369;background:#182d3e;color:#e9f6ff;border-radius:7px;padding:7px 10px}button{cursor:pointer}button:hover,button:focus-visible{border-color:var(--show-accent);background:#24465a}button:disabled{opacity:.5;cursor:wait}button[aria-pressed=true]{background:#246d60}a{color:#9debdc}input{accent-color:var(--show-accent)}input:not([type=range]):not([type=checkbox]){background:#08141f;border:1px solid #385067;border-radius:7px;color:white;padding:9px;max-width:100%}select{max-width:100%}.show-shell{margin-left:228px;padding:24px 24px 12px;max-width:2200px}.show-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.eyebrow{letter-spacing:.16em;font-size:10px;color:var(--show-accent);font-weight:800}h1{font-size:clamp(22px,2.7vw,42px);letter-spacing:.05em;margin:5px 0}h1 span{vertical-align:middle}.show-heading p{color:var(--show-muted);margin:0}.live-badge{font-size:10px;letter-spacing:.08em;margin-left:15px;border:1px solid #6c7180;padding:5px 9px;border-radius:99px;color:#c3d0db}.live-badge.on-air{color:#7af0c6;border-color:#38b384;box-shadow:0 0 20px #38b38425}.heading-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}#sound-enable{background:#5ce1c3;color:#09271f;font-weight:800}#notice{font-size:13px;min-height:22px;color:#b9d6e8;margin:12px 0}.control-deck{border:1px solid var(--show-line);border-radius:12px;background:#0c1823;margin:12px 0}summary{padding:12px 16px;font-size:12px;font-weight:800;cursor:pointer;color:var(--show-accent)}summary span{float:right;color:var(--show-muted);font-weight:400}.control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 12px 12px}fieldset{border:1px solid #263a4b;border-radius:8px;min-width:0;padding:10px}legend{font-size:11px;text-transform:uppercase;color:#97b4cb;letter-spacing:.1em}fieldset button{font-size:11px;margin:3px 1px}fieldset label{display:block;font-size:11px;margin:7px 0}fieldset select{width:100%;margin-top:4px}fieldset a{font-size:11px}fieldset input[type=range]{width:100%}.hint{color:var(--show-muted);font-size:11px;line-height:1.5}.mix-strip{display:flex;align-items:center;flex-wrap:wrap;gap:14px;background:#0d1b27;border:1px solid var(--show-line);border-radius:10px;padding:10px 14px;font-size:11px;margin:12px 0}.mix-strip strong{color:var(--show-accent)}.mix-strip label{display:flex;gap:6px;align-items:center}.mix-strip input{width:75px}.mix-strip #share-status{margin-left:auto;color:var(--show-muted)}.workspace{position:relative;min-height:980px;width:100%;isolation:isolate}.studio-panel{position:absolute;display:flex;flex-direction:column;border:1px solid var(--show-line);border-radius:12px;background:linear-gradient(145deg,#152433,#101a27);box-shadow:0 10px 35px #0003;overflow:hidden;min-width:150px;min-height:140px}.panel-bar{height:40px;flex:none;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2b4255;background:#152635;cursor:grab;touch-action:none;gap:6px}.panel-bar h2{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-tools{display:flex;gap:3px}.panel-tools button{font-size:10px;padding:3px 5px;background:transparent;border-color:transparent}.panel-content{flex:1;min-height:0;overflow:auto;padding:12px;font-size:var(--panel-font,16px)}.resize-handle{position:absolute;right:0;bottom:0;width:18px;height:18px;border:0;border-radius:0;background:linear-gradient(135deg,transparent 50%,#5b7a8e 51%,transparent 58%,transparent 67%,#5b7a8e 68%,transparent 75%);cursor:nwse-resize;padding:0;touch-action:none}.studio-panel.enlarged{position:fixed!important;inset:20px!important;width:auto!important;height:auto!important;z-index:50;box-shadow:0 0 0 100vmax #030a12df}.studio-panel.enlarged .resize-handle{display:none}.video-stage{height:100%;position:relative;display:flex;align-items:center;justify-content:center;background:#060e16;border-radius:6px;overflow:hidden;min-height:120px}.video-stage img,.video-stage video{width:100%;height:100%;object-fit:contain}.stage-empty{text-align:center;color:#88a5bc;display:grid;justify-items:center;gap:8px}.stage-empty strong{font-size:12px;letter-spacing:.2em}.stage-empty p{font-size:11px}.record-icon{font-size:64px;border:1px solid #294c60;border-radius:50%;height:100px;width:100px;line-height:100px;color:#5ce1c3;box-shadow:0 0 60px #3cbaa71c}.stage-tag{position:absolute;bottom:8px;left:10px;font-size:8px;letter-spacing:.13em;color:#b0d8ce;background:#0b1824ba;padding:5px;border-radius:4px}pre{white-space:pre-wrap;font:inherit;line-height:1.65;margin:0}#host-camera,#screen-video{width:100%;height:calc(100% - 30px);object-fit:contain;background:#040b12;border-radius:6px}iframe{border:0;width:100%;height:100%;min-height:130px;border-radius:6px}.presenter{height:100%;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:8px}.presenter img{max-width:100%;max-height:calc(100% - 40px);object-fit:contain}.asset-empty{text-align:center;color:var(--show-muted);font-size:12px}.presenter strong{font-size:12px;color:#9debdc;text-align:center}.presenter[data-behavior=celebrate] img{animation:celebrate 1.5s ease-in-out infinite}.presenter[data-behavior=point] img{animation:point 2s ease-in-out infinite}.presenter[data-behavior=introduce] img{animation:introduce 2s ease-in-out infinite}.presenter-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}.presenter-actions button{font-size:10px;padding:4px}#panel-mascot .presenter{height:calc(100% - 55px)}.chat-log{overflow:auto;flex:1;min-height:0}.chat-line{margin:0 0 12px;overflow-wrap:anywhere;font-size:inherit}.chat-line strong{color:#76d8cd;font-size:.78em}.chat-line time{color:#7890a4;font-size:.65em;margin-left:8px}.chat-line p{margin:4px 0;line-height:1.4}.chat-line button{font-size:9px;padding:2px 4px;margin-right:4px}#panel-chat .panel-content{display:flex;flex-direction:column;gap:8px}#chat-form{display:flex;gap:6px}#chat-input{width:100%;min-width:0;font-size:12px}#chat-form button{font-size:11px}.coming-up{margin:0;padding:0;list-style:none;counter-reset:tracks}.coming-up li{padding:9px 5px;border-bottom:1px solid #294054;counter-increment:tracks;display:flex;gap:10px;font-size:inherit;line-height:1.3}.coming-up li:before{content:counter(tracks,decimal-leading-zero);color:#66869f;font-size:.75em}.coming-up li.current{background:#2b6c5c38;color:#8bf0d3;border-radius:5px}.coming-up small{display:block;color:var(--show-muted);font-size:.72em;margin-top:3px}.now-playing h3{font:inherit;font-size:1.2em;line-height:1.25;margin:9px 0}.now-playing p{margin:5px 0;font-size:.8em;color:var(--show-muted)}.reaction-buttons{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.reaction-buttons button{font-size:24px;background:#1a3042;padding:6px;border:1px solid #35526a}#reaction-layer{position:fixed;inset:0;pointer-events:none;z-index:60;overflow:hidden}.floating-reaction{position:absolute;bottom:5%;font-size:30px;animation:float-reaction 4s ease-out forwards;pointer-events:none}.guest-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.guest-card{border:1px solid #304b60;border-radius:8px;overflow:hidden;background:#0a1721;position:relative}.guest-card video{width:100%;max-height:320px;object-fit:contain;background:#030a11}.guest-card .guest-name{padding:5px 7px;font-size:12px;color:#a5dfd5}.guest-card .guest-actions{padding:4px;display:flex;flex-wrap:wrap;gap:4px}.guest-card button{font-size:9px;padding:3px}.guest-card.big{position:fixed;inset:40px;z-index:55;box-shadow:0 0 0 100vmax #030a12df;display:flex;flex-direction:column}.guest-card.big video{flex:1;min-height:0;max-height:none;height:80%}.guest-card video[hidden]{display:none}.guest-join{border:1px solid #55b79e;background:#0d2927;padding:14px;border-radius:10px;margin-bottom:12px}.guest-join h2{font-size:18px;margin:0 0 6px}.guest-join p{font-size:12px}.guest-join label{font-size:12px}.show-footer{font-size:10px;color:#6e8aa1;letter-spacing:.12em;display:flex;justify-content:space-between;margin:20px 0}#invite-output{display:block;overflow-wrap:anywhere;font-size:11px;color:#99efd8}#panel-switches{display:flex;flex-wrap:wrap;gap:4px}#panel-switches label{margin:0;font-size:10px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #6ff3d1;outline-offset:3px}[hidden]{display:none!important}@keyframes float-reaction{0%{transform:translateY(0) rotate(-12deg);opacity:0}10%{opacity:.9}100%{transform:translateY(-65vh) translateX(65px) rotate(18deg);opacity:0}}@keyframes celebrate{50%{transform:translateY(-8px) rotate(4deg)}}@keyframes point{50%{transform:translateX(8px) rotate(-3deg)}}@keyframes introduce{50%{transform:scale(1.04)}}@media(min-width:1900px){.workspace{min-height:1050px}}@media(max-width:1300px){.control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.show-shell{padding:16px}.mix-strip{gap:10px}.show-heading{align-items:flex-start}.heading-actions{max-width:250px}}@media(max-width:1000px){.show-shell{margin-left:0;padding:14px;padding-top:85px}.workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0!important}.studio-panel{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:300px!important;min-width:0}.studio-panel[data-panel=video],.studio-panel[data-panel=lyrics]{grid-column:1/-1;height:400px!important}.studio-panel[data-panel=now],.studio-panel[data-panel=reactions]{height:185px!important}.resize-handle{display:none}.panel-bar{cursor:default;touch-action:auto}.studio-panel.enlarged{position:fixed!important;inset:10px!important;width:auto!important;height:auto!important}.show-heading{flex-direction:column;gap:14px}.heading-actions{max-width:none}.show-footer span{display:none}}@media(max-width:600px){.control-grid,.workspace{grid-template-columns:1fr}.studio-panel[data-panel=video],.studio-panel[data-panel=lyrics]{grid-column:auto;height:330px!important}.mix-strip label{width:100%;justify-content:space-between}.mix-strip input{width:55%}.mix-strip #share-status{margin-left:0}.panel-bar h2{font-size:10px}h1{font-size:25px}.show-footer{font-size:8px}}@media(prefers-reduced-motion:reduce){.floating-reaction{animation-duration:1.5s}.presenter img{animation:none!important}}

/* Override shared rail padding: this module owns its workspace offset. */
body:has(>.universe-nav--fixed){padding-left:0}.show-shell{margin-left:250px}
@media(max-width:1000px){.show-shell{margin-left:0;padding-top:14px}.universe-nav--fixed{position:relative;inset:auto;width:100%;max-height:none;display:block;padding:12px}.universe-nav--fixed .side-nav{display:flex;overflow-x:auto;gap:6px}.universe-nav--fixed .side-nav a{flex:0 0 auto;white-space:nowrap}.universe-nav--fixed .rail-utility{display:none}}
.guest-card{resize:both;min-width:150px;min-height:110px}.guest-name{cursor:grab}.guest-card.moving{position:absolute;z-index:8;max-width:95%}


.layered-renderer{position:absolute;inset:0 0 35px;min-height:90px}.layered-renderer .live-avatar-fallback{font-size:12px;color:#aacbbb}.presenter>strong{position:relative;z-index:7;margin-top:auto;background:#101a27c0;padding:5px}.presenter .layered-renderer img{max-height:none}


.guest-cards{position:relative;min-height:100%}.guest-name{touch-action:none}.studio-panel:not(.enlarged):focus-within{z-index:10}@media(max-width:1000px){.guest-card.moving{position:relative;left:auto!important;top:auto!important;width:auto!important}.guest-name{touch-action:auto}}


/* Admin uses the shared ByDOT navigation and design tokens. */
.control-room .show-shell{margin-left:0;max-width:1580px;margin-inline:auto;padding-top:12px}.control-nav{max-width:1580px;margin:20px auto 0;padding:0 24px}.control-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px;margin-bottom:18px}.control-status p{flex-basis:100%;margin:0}.control-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.control-sections fieldset{min-width:0;border:1px solid var(--pg-color-border,#33475b);border-radius:12px;padding:18px;background:var(--pg-color-surface,#101d2b)}.control-sections legend{font-size:13px;letter-spacing:.08em;font-weight:bold}.control-sections label{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:10px 0}.control-sections select{max-width:100%;flex:1;min-width:120px}.control-sections button{margin:3px 2px}.control-sections video{width:100%;height:170px;object-fit:contain;background:#030910;border-radius:8px;margin-top:10px}.control-sections ol{max-height:180px;overflow:auto;font-size:13px;padding-left:22px}.participant-row{padding:8px 0;border-bottom:1px solid #354052;font-size:12px}.participant-row button{font-size:11px}.text-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.text-controls output{font-size:12px}.monitor-title{font-size:16px;letter-spacing:.1em;margin:25px 0 15px}.control-room h1{font-size:clamp(22px,2.3vw,36px)}.control-room .show-heading p{font-size:13px}.control-room .workspace{margin-top:16px}.audience-room .resize-handle{display:none}#microphone-level{width:100%}#playlist-inspect li{margin-bottom:6px}.studio-panel[data-panel=now] h3{font-size:var(--panel-font)}.studio-panel[data-panel=playlist] .coming-up{font-size:var(--panel-font)}.studio-panel[data-panel=chat] .chat-line{font-size:var(--panel-font)}
@media(max-width:1100px){.control-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.control-sections{grid-template-columns:1fr}.control-nav{padding:0 12px}.control-room .show-heading{align-items:flex-start}.control-room .live-badge{display:inline-block;margin:8px 0}.control-room .show-shell{padding-top:12px}}

/* Use the existing panel interior; contain preserves the full media image. */
#panel-video .panel-content{position:relative;display:flex;min-width:0;padding:3px;overflow:hidden}
#panel-video .video-stage{flex:1;min-width:0;min-height:0;height:auto;align-self:stretch}
#panel-video .video-stage img,#panel-video .video-stage video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center}
#speaker-status{display:block;margin-top:8px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}

/* Portrait media needs height; narrow layouts flow the following panels naturally. */
@media(max-width:1000px){.studio-panel[data-panel=video]{height:500px!important}}

/* Provider controls stay inside the existing Now Playing panel. */
#suno-provider-frame{display:block;width:100%;height:150px;border:0}

/* Presenter owns one full, contained composition; HOST contains only human media. */
#panel-mascot .panel-content{display:flex;flex-direction:column;overflow:hidden}
#mascot{flex:1;min-height:120px;width:100%}
#mascot .layered-renderer{position:absolute!important;inset:auto;top:0;left:50%;transform:translateX(-50%);min-height:0;max-width:100%}
#mascot>img{width:100%;height:calc(100% - 38px);max-height:none;object-fit:contain}
#mascot .asset-empty{font-size:clamp(16px,2vw,26px)}
.audience-room .live-avatar-fallback{display:none!important}
#presenter-script{width:100%;resize:vertical;min-height:130px;background:#08141f;color:#edf6fb;border:1px solid #385067;border-radius:7px;padding:10px;font:inherit}
@media(max-width:1000px){.studio-panel[data-panel=video]:not(.enlarged){height:var(--auto-media-height,500px)!important;width:var(--auto-media-width,100%)!important;justify-self:start}}

#presenter-line{max-height:54px;overflow:auto;overflow-wrap:anywhere;flex:none;width:100%}

/* HOST interiors only; panel and workspace geometry frozen. */
#legacy-preview{width:220px;height:200px;border:1px solid #647386}#legacy-host{height:calc(100% - 24px);min-height:0}#host-figure{position:absolute;inset:0 0 24px}#host-figure>img{width:100%;height:100%;object-fit:contain}#host-caption{position:absolute;bottom:2px;left:4px;right:4px;margin:0;z-index:8;pointer-events:none}.audience-room #bydot-tts-diagnostic{display:none!important}

/* Per-browser activation is fixed and never participates in workspace layout. */
.sound-activation{position:relative;margin:12px 0;padding:12px;border:1px solid var(--show-line);border-radius:10px;background:#0c1823;text-align:left}.sound-activation[hidden]{display:none!important}.sound-activation button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 18px;background:#bd1635;color:#fff;border-color:#ed647d;font-weight:800}.sound-activation p{font-size:12px;color:var(--show-muted);margin:8px 0 0;line-height:1.5}#presenter-audio-status{max-width:300px}

.show-archive-control,.replay-controls{padding:16px;margin:16px 0;border:1px solid #674b70;border-radius:14px;background:#160f20}.archive-card{padding:14px;margin:12px 0;border:1px solid #674b70;border-radius:10px}.archive-card label{display:block}.archive-card input,.archive-card textarea{width:min(100%,650px)}.song-preparation{border:2px solid #bb4778;padding:12px;margin:12px 0}.song-preparation #play-selected-song{font-weight:bold;background:#85214d;color:white}.archive-link{display:inline-block;padding:8px}

/* Interior-only HOST containment. No stored panel coordinates or dimensions changed. */
#panel-host .panel-content{position:relative;overflow:hidden}#legacy-host,#host-figure{position:absolute;left:12px;right:12px;top:12px;bottom:27px;width:calc(100% - 24px);height:calc(100% - 39px);min-height:0!important;overflow:hidden}#host-figure{display:flex;align-items:center;justify-content:center}#host-figure>img{width:100%;height:100%;object-fit:contain}.presenter-runtime-iframe{width:100%;height:100%;min-height:0!important;flex:1;border:0;display:block;overflow:hidden}#mascot{min-height:0;gap:4px}#mascot .presenter-runtime-iframe{height:calc(100% - 58px);min-height:0!important}#chat-identity{padding:6px;margin:0}#chat-identity label{font-size:12px}#chat-identity-edit{font-size:11px;align-self:flex-start}#chat-identity input{max-width:100%}

/* Interaction repairs preserve the stored layout and existing panel design. */
.panel-bar{user-select:none;-webkit-user-select:none}.panel-bar [data-drag]{flex:none;cursor:grab;touch-action:none;padding:2px 5px;background:transparent;border-color:transparent}.panel-bar h2{flex:1}.studio-panel.is-dragging{z-index:25}.studio-panel.is-dragging .panel-bar{cursor:grabbing}.chat-emoji-picker{display:flex;flex-wrap:wrap;gap:4px}.chat-emoji-picker button{font-size:21px;padding:3px 6px}.reaction-summary{font-size:12px;text-align:center;color:#cae6e3}
.floating-reaction{animation:reaction-rise 5s ease-out forwards}.reaction-heart{animation:reaction-pulse-rise 5s ease-out forwards}.reaction-fire{animation:reaction-flicker 5s ease-out forwards}.reaction-clap,.reaction-laugh{animation:reaction-bounce 5s ease-out forwards}.reaction-burst,.reaction-sparkle{animation:reaction-burst 5s ease-out forwards}.reaction-dance{animation:reaction-dance 5s ease-out forwards}.reaction-notes{animation:reaction-drift 5s ease-out forwards}.reaction-candle{animation:reaction-glow 14s ease-in-out forwards;bottom:12%}
@keyframes reaction-rise{0%{opacity:0;transform:translateY(0)}10%{opacity:1}100%{opacity:0;transform:translateY(-65vh)}}
@keyframes reaction-pulse-rise{0%{opacity:0;transform:translateY(0) scale(.6)}15%,35%,55%{opacity:1;scale:1.25}25%,45%,65%{scale:1}100%{opacity:0;transform:translateY(-65vh)}}
@keyframes reaction-flicker{0%{opacity:0;transform:translateY(0)}10%,30%,50%,70%{opacity:1;filter:drop-shadow(0 0 10px #ff6a00);scale:1.2}20%,40%,60%{scale:.9}100%{opacity:0;transform:translateY(-65vh)}}
@keyframes reaction-bounce{0%{opacity:0;transform:translateY(0)}15%,45%,75%{opacity:1;scale:1.3}30%,60%{scale:.9}100%{opacity:0;transform:translateY(-55vh)}}
@keyframes reaction-burst{0%{opacity:0;transform:scale(.2)}20%{opacity:1;transform:scale(1.6) rotate(-12deg);filter:drop-shadow(0 0 15px #ffdf5f)}80%{opacity:1}100%{opacity:0;transform:translateY(-50vh) rotate(30deg)}}
@keyframes reaction-dance{0%{opacity:0}10%,30%,50%,70%{opacity:1;rotate:-18deg}20%,40%,60%,80%{rotate:18deg}100%{opacity:0;translate:0 -50vh}}
@keyframes reaction-drift{0%{opacity:0;transform:translate(0,0)}15%{opacity:1}50%{transform:translate(-30px,-30vh) rotate(-15deg)}100%{opacity:0;transform:translate(25px,-65vh) rotate(15deg)}}
@keyframes reaction-glow{0%,100%{opacity:0}10%,90%{opacity:1;filter:drop-shadow(0 0 15px #ffbd68)}50%{filter:drop-shadow(0 0 25px #ffbd68)}}
@media(prefers-reduced-motion:reduce){.floating-reaction{animation:reaction-glow 2s ease-out forwards}.reaction-candle{animation-duration:10s}}

.studio-panel.panel-active:not(.enlarged){z-index:24}

#legacy-host,.presenter-runtime-iframe{background:transparent}

/* Physical Show Room fix: audience layouts are locally draggable/resizable without publishing to other viewers. */
.audience-room .resize-handle{display:block}.audience-room .panel-bar [data-drag]{display:inline-flex}.audience-room .studio-panel.is-dragging{z-index:70}

/* Admin controls extend the existing public workspace; no panel geometry overrides. */
.control-room .control-status{padding:10px 14px;margin:8px 0;gap:8px}
.control-room .control-status p{font-size:11px}
.control-room .admin-control-drawer{position:sticky;top:0;z-index:30;margin:8px 0 12px;box-shadow:0 8px 24px #0005}
.control-room .admin-control-drawer>summary{padding:12px 14px;font-size:13px}
.control-room .admin-control-drawer>summary span{float:none;display:inline-block;margin-left:18px;font-size:11px}
.control-room .admin-controls-scroll{max-height:38vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.control-room .control-sections{align-items:start;gap:8px;padding:8px;margin:0}
.control-room .admin-tool-section{min-width:0;border:1px solid var(--show-line);border-radius:8px;background:#101d2b}
.control-room .admin-tool-section>summary{padding:10px 12px;font-size:11px}
.control-room .admin-tool-section fieldset{border:0;padding:10px 12px;margin:0}
.control-room .admin-tool-section fieldset>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.control-room .admin-archive-tools{margin:0 8px 8px}
.control-room .admin-archive-tools .show-archive-control{margin:0;padding:12px;border:0}
.control-room .admin-view-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 6px}
.control-room .admin-view-heading h2{font-size:13px;letter-spacing:.12em;color:var(--show-accent);margin:0}
.control-room .admin-view-heading p{font-size:11px;color:var(--show-muted);margin:0;flex:1}
.control-room .admin-private-label{font-size:10px;font-weight:800;letter-spacing:.08em;color:#ffcd86;border-left:3px solid #ffcd86;padding:7px 9px;background:#ffcd8610}
.control-room .admin-action-zone{border-top:1px solid var(--show-line);margin-top:12px;padding-top:8px}
.control-room .admin-action-zone h3{font-size:12px;margin:0 0 8px}
.control-room .admin-action-row{padding:7px 0;border-bottom:1px solid var(--show-line);overflow-wrap:anywhere}
.control-room .admin-action-row strong{display:block;font-size:11px;margin-bottom:5px;font-weight:500}
.control-room .admin-action-row button{font-size:11px}
.control-room .admin-offair-copy{display:none}
.control-room.admin-public-offair #song-cover,.control-room.admin-public-offair #song-video,
.control-room.admin-public-offair #legacy-host,.control-room.admin-public-offair #host-figure,
.control-room.admin-public-offair #mascot,.control-room.admin-public-offair #song-title,
.control-room.admin-public-offair #song-artist,.control-room.admin-public-offair #lyrics,
.control-room.admin-public-offair #music-status,.control-room.admin-public-offair .guest-card video{display:none!important}
.control-room.admin-public-offair .admin-offair-copy{display:block}
.control-room.admin-public-offair #video-empty{display:grid!important}
.control-room.admin-public-camera-off #host-camera{display:none!important}
.control-room.admin-public-camera-off #host-inactive{display:grid!important}
.control-room.admin-public-camera-on #host-camera{display:block!important}
.control-room.admin-public-camera-on #host-inactive{display:none!important}
.control-room.admin-public-screen-off #screen-video{display:none!important}
.control-room.admin-public-screen-off #screen-empty{display:block!important}
.control-room .admin-private-guest{display:none!important}
.control-room.admin-public-guests-empty #guests-empty{display:block!important}
.control-room.admin-public-closed #chat-log{visibility:hidden}
.control-room.admin-public-closed #reaction-layer{display:none!important}
/* The same Suno iframe stays mounted. Off-air source controls are a labelled private UI. */
.control-room:not(.admin-public-offair) #admin-private-source-toggle{display:none}
.control-room.admin-public-offair:not(.admin-private-source-open) #suno-provider-slot{display:none!important}
.control-room.admin-public-offair.admin-private-source-open #suno-provider-slot{position:fixed;bottom:16px;right:16px;width:min(400px,calc(100vw - 32px));padding:12px;border:1px solid #ffcd86;border-radius:10px;background:#101d2b;z-index:45;box-shadow:0 8px 30px #0009}
.control-room.admin-public-offair.admin-private-source-open #suno-provider-slot::before{content:'PRIVATE ADMIN PREVIEW · SOURCE PLAYER';display:block;font-size:10px;font-weight:800;color:#ffcd86;margin-bottom:8px}
@media(max-width:1000px){.control-room .admin-controls-scroll{max-height:35vh}.control-room .admin-control-drawer>summary span{display:block;margin:5px 0 0}.control-room .admin-control-drawer{top:0}}
@media(max-width:600px){.control-room .admin-view-heading{align-items:flex-start}.control-room .admin-view-heading p{flex-basis:100%}}

/* Local movable admin tools; independent of the shared panel layout engine. */
.control-room .admin-tool-section>summary{display:flex;align-items:center;justify-content:space-between;gap:8px}
.control-room .admin-tool-buttons{display:flex;gap:4px;flex:none}
.control-room .admin-tool-buttons button{font-size:10px;padding:4px 7px}
.control-room .admin-tool-buttons button:first-child{cursor:move;touch-action:none}
.control-room #admin-floating-tools{position:relative;z-index:46}
.control-room .admin-tool-floating{position:fixed;width:min(440px,calc(100vw - 16px));max-height:70vh;overflow:auto;box-shadow:0 10px 40px #0009;z-index:46;overscroll-behavior:contain}
.control-room .admin-tool-floating>summary{position:sticky;top:0;background:#163349;z-index:2;border-bottom:1px solid var(--show-line)}
.control-room .admin-tool-floating.admin-tool-active{z-index:47}
.control-room .admin-transport-priority{padding:8px;background:#15382f;border:1px solid #387f6c;border-radius:8px;margin-bottom:10px}
.control-room .admin-transport-priority .transport{display:flex;flex-wrap:wrap;gap:4px}
.control-room .admin-transport-priority p{font-size:11px;margin:6px 0}
.control-room .admin-tool-floating .admin-transport-priority{position:sticky;top:40px;z-index:1;background:#15382f}
.control-room .admin-audio-button{font-weight:800;border:2px solid var(--show-accent);margin-left:auto}
.control-room .admin-audio-button[aria-pressed=true]{color:#ffdcac;border-color:#ffb555;background:#513519}
.control-room .admin-screen-tabs{display:flex;flex:none;gap:6px;margin-bottom:8px}
.control-room .admin-screen-tabs button{flex:1;font-size:12px;font-weight:800}
.control-room .admin-screen-tabs button[aria-selected=true]{background:#246d60;border-color:var(--show-accent)}
.control-room .admin-screen-tab-status{margin:0 0 8px;font-size:10px}
.control-room #panel-screen .panel-content{display:flex;flex-direction:column}
.control-room #panel-screen #screen-video{height:auto;flex:1;min-height:0;object-fit:contain}

/* Shared workspace identity and visual-only reaction sprites. */
.shared-show-heading{margin:4px 0 6px;padding:5px 10px;border-left:3px solid var(--show-accent);background:#15382f55;border-radius:6px}
.shared-show-heading h2{margin:0;font-size:14px;letter-spacing:.04em;color:#9debdc}
.admin-listeners{position:relative;font-size:12px}
.admin-listeners>summary{padding:7px 10px;border:1px solid var(--show-line);border-radius:7px}
.admin-listeners .listener-popover{position:absolute;right:0;top:100%;z-index:48;width:250px;max-height:280px;overflow:auto;padding:12px;background:#101d2b;border:1px solid var(--show-accent);border-radius:8px;box-shadow:0 8px 25px #0008}
.admin-listeners ul{margin:6px 0;padding-left:20px}.admin-listeners li{padding:4px 0;overflow-wrap:anywhere}
.reaction-sprite{display:inline-block;pointer-events:none}
.reaction-dance .reaction-sprite{animation:reaction-dancer-step .45s ease-in-out infinite alternate;transform-origin:50% 90%}
.reaction-clap .reaction-sprite{animation:reaction-clap-beat .3s ease-in-out infinite alternate}
.reaction-laugh .reaction-sprite{animation:reaction-laugh-shake .25s ease-in-out infinite alternate}
.reaction-particle{position:absolute;left:50%;top:30%;font-size:.6em;pointer-events:none;animation:reaction-confetti 1.8s ease-out var(--particle-delay) infinite}
@keyframes reaction-dancer-step{from{transform:rotate(-20deg) translateX(-5px) scaleY(.9)}to{transform:rotate(20deg) translateX(5px) translateY(-8px)}}
@keyframes reaction-clap-beat{from{transform:scale(.85)}to{transform:scale(1.3)}}
@keyframes reaction-laugh-shake{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
@keyframes reaction-confetti{from{opacity:1;transform:translate(0,0) rotate(0)}to{opacity:0;transform:translate(var(--particle-x),-90px) rotate(180deg)}}
@media(prefers-reduced-motion:reduce){.reaction-sprite,.reaction-particle{animation:none!important}.reaction-particle{display:none}}
@media(max-width:600px){.control-room .admin-controls-scroll{max-height:30vh}}

/* One screen area: existing internal media and existing RTC video are siblings. */
#panel-screen{display:none!important}
#panel-video .panel-content{flex-direction:column}
.show-screen-tabs{display:flex;flex:none;gap:6px;padding:4px}
.show-screen-tabs button{flex:1;font-size:12px;font-weight:800}
.show-screen-tabs button[aria-selected=true]{background:#246d60;border-color:var(--show-accent)}
.show-screen-tabs button:disabled{opacity:1;cursor:default}
#panel-video #show-screen-1.screen-tab-inactive{display:none!important}
#panel-video #show-screen-2{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
#panel-video #show-screen-2[hidden]{display:none!important}
#panel-video #screen-video{flex:1;min-height:0;width:100%;height:100%;object-fit:contain}
#panel-video #screen-video[hidden]{display:none!important}

/* UI experience only: no workspace/panel geometry overrides. */
.ui-show-brand{font-size:inherit;letter-spacing:inherit}
.screen-source-tools{display:flex;gap:5px;flex:none;padding:3px}.screen-source-tools[hidden]{display:none!important}.screen-source-tools button{font-size:11px;flex:1}.screen-source-hint{font-size:10px;margin:2px 6px;color:var(--show-muted);flex:none}
#ui-show-screen{font-weight:800;border:2px solid var(--show-accent);margin:8px 0}
.chat-emotes-picker{max-height:250px;overflow:auto;padding:6px;border:1px solid var(--show-line);border-radius:8px;flex:none}.chat-emotes-picker[hidden]{display:none!important}.chat-emotes-picker section{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0}.chat-emotes-picker strong{flex-basis:100%;font-size:11px;color:var(--show-accent)}.chat-emotes-picker button{font-size:20px;padding:4px}
.chat-ui-emote{display:inline-block;font-size:1.4em;vertical-align:middle;pointer-events:none;animation-duration:var(--emote-speed);animation-iteration-count:infinite;animation-timing-function:ease-in-out}
.emote-sway{animation-name:emote-sway}.emote-hop{animation-name:emote-hop}.emote-spin{animation-name:emote-spin}.emote-shake{animation-name:emote-shake}.emote-glow{animation-name:emote-glow}.emote-pulse{animation-name:emote-pulse}.emote-blink{animation-name:emote-blink}
@keyframes emote-sway{0%,100%{transform:rotate(-15deg)}50%{transform:rotate(15deg)}}@keyframes emote-hop{50%{transform:translateY(-4px)}}@keyframes emote-spin{to{transform:rotate(360deg)}}@keyframes emote-shake{25%{transform:rotate(-15deg) translateX(-2px)}75%{transform:rotate(15deg) translateX(2px)}}@keyframes emote-glow{50%{filter:drop-shadow(0 0 5px #ef78df)}}@keyframes emote-pulse{50%{transform:scale(1.15)}}@keyframes emote-blink{50%{opacity:.55}}
.audience-frame{position:relative;margin:20px 0 8px;padding:14px;border:1px solid var(--show-line);border-radius:12px;background:linear-gradient(#080e17,#171824);color:var(--show-muted)}.audience-frame>header{display:flex;align-items:center;justify-content:space-between}.audience-frame h2{font-size:13px;letter-spacing:.15em;margin:0}.audience-frame p,.audience-frame label,.audience-frame summary{font-size:12px}.audience-seats{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 12px;padding:12px;max-width:760px;margin:auto;min-height:72px}.audience-person{display:inline-block;position:relative;width:36px;height:52px;flex:none;--audience-hair:#373844}.audience-person:before{content:'';position:absolute;width:22px;height:24px;left:7px;top:0;border-radius:50% 50% 40% 40%;background:var(--audience-hair);z-index:1}.audience-person:after{content:'';position:absolute;width:36px;height:32px;left:0;bottom:0;border-radius:45% 45% 8% 8%;background:linear-gradient(90deg,#212631,#394050,#212631)}.audience-person[data-hair=long]:before,.audience-person[data-hair=braid]:before{height:36px}.audience-person[data-hair=curls]:before{border-radius:40%;box-shadow:3px 0 var(--audience-hair),-3px 0 var(--audience-hair)}.audience-person[data-hair=ponytail]:before{box-shadow:0 12px 0 -5px var(--audience-hair)}.audience-person[data-hair=bun]:before{box-shadow:0 -5px 0 -4px var(--audience-hair)}.audience-person[data-hair=bald]:before{background:#80736b}.audience-person[data-hair=cap]:before{border-radius:5px 5px 40% 40%;border-top:7px solid #50566e}.audience-self{filter:drop-shadow(0 0 4px #5ce1c355)}.audience-more{align-self:center;font-size:12px}#audience-look label{display:inline-flex;align-items:center;gap:6px;margin:8px}#audience-look-preview{vertical-align:middle;margin:8px}
#audience-game[hidden]{display:none!important}#audience-game-arena{position:relative;height:150px;overflow:hidden;border:1px solid #343746;border-radius:8px;margin:10px 0;background:#10131e}#audience-game-player{position:absolute;bottom:2px;left:50%;transform:translateX(-50%)}.audience-game-target{position:absolute;left:0;animation:audience-target-flight var(--target-speed) linear infinite alternate;background:transparent;font-size:22px;border:0}.game-paused .audience-game-target{animation-play-state:paused}#audience-game-score{margin-left:10px;font-size:12px}@keyframes audience-target-flight{to{left:calc(100% - 50px)}}
@media(prefers-reduced-motion:reduce){.chat-ui-emote,.audience-game-target{animation:none}.audience-game-target:nth-child(2){left:35%}.audience-game-target:nth-child(3){left:70%}}

.show-heading .live-badge{display:inline-block;white-space:nowrap}
.screen-source-hint[hidden]{display:none!important}

/* Correction: modal controls escape panel clipping. */
.ui-correction-dialog{color:#edf6fb;background:#111c29;border:2px solid #5ce1c3;border-radius:12px;padding:16px;max-width:calc(100vw - 24px)}
.ui-correction-dialog::backdrop{background:#0009}
#screen-hide-confirmation p{font-size:18px}#screen-hide-confirmation button{margin:4px}
#chat-emotes-picker{width:min(660px,calc(100vw - 24px));max-height:80dvh;overflow:auto;padding:14px}
#chat-emotes-picker:not([open]){display:none!important}
#chat-emotes-picker>header{display:flex;justify-content:space-between;align-items:center;gap:10px}
#chat-emotes-picker section{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:6px}
#chat-emotes-picker section>strong{grid-column:1/-1}
#chat-emotes-picker [data-chat-emote]{display:flex;flex-direction:column;align-items:center;font-size:24px;padding:8px}
#chat-emotes-picker small{font-size:11px;overflow-wrap:anywhere}
#chat-form{flex-wrap:wrap}#chat-emotes-open{font-size:11px;white-space:nowrap}

/* Presentation polish only. No stored workspace/panel geometry changes. */
@media(min-width:1100px){.show-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.show-heading h1{white-space:nowrap;font-size:clamp(24px,2.2vw,38px)}.show-heading .heading-actions{justify-self:end}.show-heading .live-badge{font-size:10px}}
@media(max-width:1099px){.show-heading{flex-wrap:wrap}.show-heading h1{font-size:clamp(21px,3.3vw,32px);line-height:1.4}.ui-show-brand{display:inline-block}}
.chat-ui-emote{transform-origin:50% 75%;will-change:auto;position:relative;line-height:1.8;padding:0 2px}
.chat-ui-emote[data-emote=slowdance],.chat-ui-emote[data-emote=fastdance]{animation-name:polish-dance}
.chat-ui-emote[data-emote=disco]{animation-name:polish-disco}.chat-ui-emote[data-emote=shuffle]{animation-name:polish-shuffle}
.chat-ui-emote[data-emote=breakdance]{animation-name:polish-breakdance}.chat-ui-emote[data-emote=twirl]{animation-name:emote-spin}
.chat-ui-emote[data-emote=headbang],.chat-ui-emote[data-emote=guitarist]{animation-name:polish-headbang}
.chat-ui-emote[data-emote=robotdance],.chat-ui-emote[data-emote=robot]{animation-name:polish-robot;animation-timing-function:steps(3,end)}
.chat-ui-emote[data-emote=trex]{animation-name:polish-stomp}.chat-ui-emote[data-emote=raptor]{animation-name:polish-raptor}
.chat-ui-emote[data-emote=dinosaur],.chat-ui-emote[data-emote=drummer],.chat-ui-emote[data-emote=party]{animation-name:polish-bounce}
.chat-ui-emote[data-emote=alien],.chat-ui-emote[data-emote=ghost]{animation-name:polish-hover}
.chat-ui-emote[data-emote=cat]{animation-name:polish-cat}.chat-ui-emote[data-emote=dog]{animation-name:polish-shuffle}
.chat-ui-emote[data-emote=frog]{animation-name:polish-frog}.chat-ui-emote[data-emote=shark]{animation-name:polish-swim}
.chat-ui-emote[data-emote=unicorn],.chat-ui-emote[data-emote=rockstar]{animation-name:polish-rock}
.chat-ui-emote[data-emote=singer]{animation-name:polish-dance}.chat-ui-emote[data-emote=piano],.chat-ui-emote[data-emote=clap]{animation-name:polish-clap}
.chat-ui-emote[data-emote=candlelight],.chat-ui-emote[data-emote=fire]{animation-name:polish-fire}
.chat-ui-emote[data-emote=heartdance],.chat-ui-emote[data-emote=sparkle]{animation-name:polish-heart}
.chat-ui-emote[data-emote=confetti]{animation-name:polish-confetti}.chat-ui-emote[data-emote=neon]{animation-name:polish-neon}
.chat-ui-emote[data-emote=blink],.chat-ui-emote[data-emote=stars]{animation-name:polish-blink}
@keyframes polish-dance{0%,100%{transform:translateX(-5px) rotate(-25deg)}50%{transform:translateX(5px) translateY(-4px) rotate(25deg)}}
@keyframes polish-disco{50%{transform:translateY(-8px) rotate(180deg)}100%{transform:rotate(360deg)}}
@keyframes polish-shuffle{25%{transform:translateX(-5px) rotate(-12deg)}75%{transform:translateX(5px) rotate(12deg)}}
@keyframes polish-breakdance{50%{transform:translateY(-6px) rotate(180deg) scaleX(-1)}100%{transform:rotate(360deg)}}
@keyframes polish-headbang{0%,100%{transform:rotate(-28deg) translateY(-2px)}50%{transform:rotate(30deg) translateY(5px)}}
@keyframes polish-robot{25%{transform:translateX(-5px) rotate(-20deg)}75%{transform:translateX(5px) rotate(20deg)}}
@keyframes polish-stomp{25%{transform:translateY(-6px) rotate(-10deg)}50%{transform:translateY(3px) scaleY(.85)}75%{transform:translateX(3px) rotate(10deg)}}
@keyframes polish-raptor{50%{transform:translate(6px,-9px) rotate(20deg) scale(1.15)}}
@keyframes polish-bounce{50%{transform:translateY(-9px)}80%{transform:scaleY(.8)}}
@keyframes polish-hover{50%{transform:translateY(-8px) scale(1.12);filter:drop-shadow(0 0 5px #87efdc)}}
@keyframes polish-cat{50%{transform:rotate(-20deg) translateY(-5px)}}
@keyframes polish-frog{50%{transform:translateY(-12px) scaleX(.85)}80%{transform:scaleY(.75)}}
@keyframes polish-swim{50%{transform:translateX(7px) rotate(-12deg)}}
@keyframes polish-rock{50%{transform:rotate(25deg) scale(1.18);filter:drop-shadow(0 0 5px #ed8ecf)}}
@keyframes polish-clap{50%{transform:scale(1.25) rotate(12deg)}}
@keyframes polish-fire{25%{transform:scaleY(1.2);filter:drop-shadow(0 0 5px #ff902a)}75%{transform:scaleX(.85) rotate(6deg);opacity:.65}}
@keyframes polish-heart{50%{transform:scale(1.3) translateY(-4px);filter:drop-shadow(0 0 5px #ff74ba)}}
@keyframes polish-confetti{0%{transform:translateY(4px) scale(.8)}50%{transform:translateY(-6px) rotate(25deg) scale(1.3)}100%{transform:translateY(4px) rotate(-15deg) scale(.8)}}
@keyframes polish-neon{50%{transform:scale(1.15);filter:drop-shadow(0 0 8px #d678ff) saturate(2)}}
@keyframes polish-blink{50%{opacity:.15;transform:scale(.8)}80%{opacity:1;transform:scale(1.2)}}
/* Static overflow emotes do not inherit a per-token animation. */
.chat-ui-emote:not([class*=" emote-"]){animation:none!important}
.audience-frame{padding:12px;background:linear-gradient(#0c1019,#161723)}.audience-seats{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:8px 5px;padding:12px 5px;max-width:730px}.audience-seats .audience-person{width:100%;max-width:36px;justify-self:center}.audience-more{grid-column:1/-1;text-align:center}
.audience-person[data-hair=hat]:before{border-top:8px solid #554766;border-radius:8px 8px 40% 40%;box-shadow:0 -1px 0 4px #554766}.audience-person[data-hair=braid]:before{border-radius:50% 50% 15% 15%;background:repeating-linear-gradient(135deg,var(--audience-hair) 0 5px,#332631 5px 7px)}
.audience-look-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:7px;max-width:750px;margin:10px}.audience-look-choices button{display:flex;flex-direction:column;align-items:center;gap:5px}.audience-look-choices small{font-size:11px}.audience-color-choices{display:flex;gap:8px;flex-wrap:wrap;margin:10px}.audience-color-choices button{width:32px;height:32px;border-radius:50%;padding:0}.audience-look-choices [aria-pressed=true],.audience-color-choices [aria-pressed=true]{outline:2px solid var(--show-accent)}
.audience-shot{position:absolute;bottom:45px;height:calc(100% - 45px);width:3px;background:#9df9dd;box-shadow:0 0 8px #9df9dd;pointer-events:none;animation:audience-shot .25s ease-out forwards}@keyframes audience-shot{to{opacity:0;transform:scaleX(3)}}
@media(max-width:600px){.audience-seats{grid-template-columns:repeat(10,minmax(0,1fr));gap:6px 3px}.audience-seats .audience-person{height:42px}.audience-seats .audience-person:before{width:60%;left:20%;height:20px}.audience-seats .audience-person:after{width:100%;height:25px}.audience-frame>header{gap:8px}}
@media(prefers-reduced-motion:reduce){.chat-ui-emote[data-emote],.audience-shot{animation:none!important}}

/* Scoped Live Chat reply/mention extension. */
.chat-line--reply{margin-left:18px;padding-left:10px;border-left:2px solid rgba(118,216,205,.32)}
.chat-reply-context{display:block;max-width:100%;overflow-wrap:anywhere;text-align:left;font-size:11px;color:#b6d9d4;background:transparent;border:0;padding:4px 0}
.chat-reply-action{font-size:11px;padding:3px 7px;margin-right:5px}
.chat-reply-composer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-basis:100%;font-size:12px;border-left:2px solid #76d8cd;padding:5px 8px;overflow-wrap:anywhere}
.chat-reply-composer button{font-size:11px;flex:none}.chat-mention{color:#c1fff1;background:rgba(118,216,205,.13);border-radius:3px;padding:0 2px;font-weight:700;overflow-wrap:anywhere}
.chat-mention-options{display:flex;gap:4px;flex-wrap:wrap;flex-basis:100%;max-height:110px;overflow:auto}.chat-mention-options button{font-size:12px;overflow-wrap:anywhere;max-width:100%}
.chat-reply-composer[hidden],.chat-mention-options[hidden]{display:none!important}.chat-line p{overflow-wrap:anywhere}
@media(max-width:600px){.chat-line--reply{margin-left:10px;padding-left:7px}.chat-reply-composer{align-items:flex-start}.chat-reply-action{min-height:30px}.chat-reply-composer button{min-height:30px}}

/* LOOP and visible song-media sizing controls only. */
.playlist-loop-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}.playlist-loop-control button{font-weight:700;min-height:38px}.playlist-loop-control button[aria-pressed="true"]{outline:2px solid var(--show-accent)}.playlist-loop-control span{font-size:12px}.panel-tools .media-enlarge-control{font-size:12px;min-width:88px;min-height:30px;white-space:nowrap}
#panel-video.enlarged{inset:20px!important;width:calc(100vw - 40px)!important;height:calc(100vh - 40px)!important;min-height:0!important}
@supports(height:100dvh){#panel-video.enlarged{height:calc(100dvh - 40px)!important}}

.workspace:has(#panel-video.enlarged){z-index:51}

/* Branding text shares the heading baseline; LIVE badge rules stay unchanged. */
.show-heading h1 .ui-show-brand{vertical-align:baseline;line-height:inherit}

#chat-composer-preview{padding:6px 10px;border:1px solid var(--show-line);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto;flex:none}
#chat-composer-preview[hidden]{display:none}
#chat-emotes-picker:not([open]) .chat-ui-emote{animation:none!important}
#chat-emotes-picker .chat-ui-emote{max-width:50px;line-height:1.6;animation-duration:max(1s,var(--emote-speed));filter:none}
.radio-library-filters{display:flex;flex-wrap:wrap;gap:6px}.radio-library-filters label{flex:1;min-width:90px}
@media(prefers-reduced-motion:reduce){#chat-emotes-picker .chat-ui-emote,#chat-composer-preview .chat-ui-emote{animation:none!important}}

#chat-composer-preview-wrap{flex:none;max-height:128px;overflow:auto;border:1px solid var(--show-line);border-radius:8px;padding:5px}#chat-composer-preview-wrap[hidden]{display:none}#chat-composer-preview-label{font-size:10px;color:var(--show-muted)}#chat-composer-preview{border:0;padding:3px;max-height:none}.chat-composer-chip{display:inline-flex;align-items:center;border:1px solid var(--show-line);border-radius:5px;padding:0 2px;vertical-align:middle}.chat-composer-chip button{font-size:12px;min-width:24px;min-height:24px;padding:1px 4px}

/* Recovery: retain Public-style subtle indicator with a larger Admin grab target. */
.control-room .studio-panel .resize-handle{display:block;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:0;background:linear-gradient(135deg,transparent 50%,#5b7a8e 51%,transparent 58%,transparent 67%,#5b7a8e 68%,transparent 75%) no-repeat right bottom/16px 16px;touch-action:none;cursor:nwse-resize;z-index:12}
.control-room .studio-panel .resize-handle:focus-visible{outline:2px solid #9eb7c7;outline-offset:-2px}
@media(max-width:1000px){.control-room .workspace .studio-panel:not(.enlarged){min-width:min(100%,260px);width:min(100%,var(--admin-panel-width,100%))!important;height:var(--admin-panel-height,300px)!important;align-self:start;justify-self:start}}

.sound-activation button:hover,.sound-activation button:focus-visible{background:#98102a;border-color:#fff}

/* Sound activation only; retain all unrelated theme colors. */
#sound-enable{background:#bd1635;color:#fff;border-color:#ed647d;min-height:44px;font-weight:800}#sound-enable:hover,#sound-enable:focus-visible{background:#98102a;border-color:#fff}
