.theater{--arena-height:clamp(560px,46vw,640px)}
.stages{grid-template-rows:auto minmax(200px,1fr);align-items:stretch;gap:16px 18px}
.stage-a{align-self:start}.stage-b,.stage-c{grid-row:1/3;align-self:center}
.studio-conversation{grid-column:2;grid-row:2;min-height:0;display:flex;flex-direction:column;background:#1c2325;border:1px solid #ffffff15;border-radius:11px;overflow:hidden;color:#dfe6df}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-bottom:1px solid #ffffff0d;flex-shrink:0}
.chat-heading>div{display:flex;align-items:center;gap:10px}.chat-heading b{font-size:10px;letter-spacing:1.5px}.chat-heading span{font-size:9px;color:#a4b8a5}.chat-heading span.is-paused{color:#d5ab94}
.chat-heading button{padding:4px 7px;min-height:25px;font-size:9px;color:#a8b6ab;border-color:#ffffff15;background:transparent}
.chat-body{display:flex;flex-direction:column;min-height:0;flex:1}.chat-host-controls{display:flex;gap:6px;padding:8px 12px 0;flex-shrink:0}.chat-host-controls button{font-size:9px;min-height:25px;padding:5px 9px;color:#c4d1c4;border-color:#ffffff14;background:#ffffff05}.chat-host-controls button[aria-pressed=false]{color:#edbb9f;background:#533d312e}
.chat-scroll-area{position:relative;flex:1;min-height:40px;overflow:hidden}#chat-log{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px;scrollbar-width:thin;scrollbar-color:#46564a transparent}.chat-message{font-size:11px;line-height:1.8;margin-bottom:9px;overflow-wrap:anywhere;color:#d7e2d7}.chat-message b{font-size:10px;color:#9dac9e;margin-right:7px;font-weight:650}.chat-message small{font-size:8px;color:#d5c59e;border:1px solid #c3ad7133;border-radius:3px;padding:1px 4px;margin-right:6px;white-space:nowrap}.chat-message span{white-space:pre-wrap}.chat-message.is-reaction{margin-bottom:5px;color:#b2c3b4}.chat-message.is-reaction span{font-size:16px}.chat-empty{font-size:11px;color:#7d8e82;text-align:center;padding:15px 5px;margin:0}
#reaction-stream{position:absolute;inset:0;pointer-events:none;overflow:hidden}.reaction-bubble{position:absolute;left:var(--float-x);bottom:0;font-size:28px;animation:studio-reaction-rise 2.3s ease-out both;filter:drop-shadow(0 3px 7px #0004)}@keyframes studio-reaction-rise{0%{transform:translateY(10px) scale(.7);opacity:0}15%{opacity:1}85%{opacity:.7}100%{transform:translateY(-180px) scale(1.2);opacity:0}}
#chat-new{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);font-size:9px;min-height:25px;padding:5px 12px;background:#dae4d8;border-color:#dae4d8;color:#344b35;border-radius:20px;white-space:nowrap}
.reaction-toolbar{padding:7px 12px 9px;border-top:1px solid #ffffff0a;flex-shrink:0}#reaction-buttons{display:flex;align-items:center;gap:5px}#reaction-buttons button{flex:1;font-size:17px;min-height:31px;height:31px;padding:2px;background:#ffffff05;border-color:#ffffff0b;color:#e1d0c8}#reaction-buttons button:first-child{color:#e69f9c}#reaction-buttons button:hover{background:#ffffff12}#reaction-state{display:block;font-size:8px;color:#8fa08e;margin-top:5px}
#chat-form{display:flex;gap:7px;flex-shrink:0;padding:0 12px 12px;margin:0}#chat-input{font-size:12px;color:#e1e8df;background:#12191b;border-color:#ffffff15;padding:10px;min-height:38px;height:38px;flex:1;min-width:0}#chat-input::placeholder{font-size:10px;color:#7f9283}#chat-input:disabled{opacity:.65}#chat-send{width:auto;flex:none;margin:0;padding:9px 12px;min-height:38px;font-size:11px;border-color:#c9d8c6;background:#c9d8c6;color:#314632}#chat-notice{font-size:10px;color:#e2b49c;margin:0;padding:0 12px 10px;line-height:1.5}#chat-notice:empty{display:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nameplate{display:flex;flex-direction:column;gap:4px;white-space:normal}.nameplate strong{font-size:inherit;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nameplate .affiliation{font-size:10px;font-weight:400;color:#c6d0c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nameplate .affiliation:empty{display:none}.studio-speaking-indicator{bottom:72px}.stage-a>.studio-speaking-indicator{bottom:14px}
.profile-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.profile-fields fieldset{min-width:0;border:1px solid var(--line);border-radius:9px;padding:12px}.profile-fields legend{font-size:11px;font-weight:650;padding:0 5px}.profile-fields label{font-size:11px;margin-top:8px}.profile-fields input{font-size:13px;padding:10px}.interaction-options{display:flex;gap:20px;flex-wrap:wrap}.interaction-options label{display:flex;align-items:center;gap:8px;margin:5px 0;font-size:12px}.interaction-options input{width:16px;height:16px;accent-color:#455a46}#profile-form{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line)}#profile-form h3{font-size:14px;margin:0}
.chat-collapsed .chat-body{display:none}.chat-collapsed .stages{grid-template-rows:1fr auto}.chat-collapsed .stage-a{align-self:center}.chat-collapsed .studio-conversation{align-self:end}
.theater.is-immersive .stages{grid-template-rows:minmax(0,.45fr) minmax(160px,.55fr)}.theater.is-immersive .stage-a{align-self:start;width:min(100%,calc(var(--arena-height)*.8))}.theater.is-immersive .stage-b,.theater.is-immersive .stage-c{grid-row:1/3}.theater.is-immersive.chat-collapsed .stages{grid-template-rows:1fr auto}.theater.is-immersive.chat-collapsed .stage-a{align-self:center;width:min(100%,calc(var(--arena-height)*1.7778))}.theater.is-focused .studio-conversation{display:none}.theater.is-focused .stage-a.is-selected{align-self:center;width:min(100%,calc(var(--arena-height)*1.7778))}
@media(max-width:1000px) and (min-width:601px){.stages{grid-template-columns:1fr 1.8fr 1fr}.chat-heading{padding:10px}.chat-heading span{font-size:8px}#chat-log{padding:10px}.chat-message{font-size:10px}}
@media(max-width:600px){.stages{grid-template-rows:auto auto 320px;gap:10px}.stage-a{align-self:start}.stage-b,.stage-c{grid-row:2;align-self:center}.studio-conversation{grid-column:1/-1;grid-row:3}.chat-heading{padding:12px}.chat-heading b{font-size:9px}.nameplate{gap:3px}.nameplate .affiliation{font-size:8px}.studio-speaking-indicator{bottom:66px}.stage-a>.studio-speaking-indicator{top:35px;bottom:auto}.profile-fields{grid-template-columns:1fr}.profile-fields fieldset{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}.profile-fields fieldset label{grid-row:1;margin:5px 0 0}.profile-fields fieldset input{grid-row:2;font-size:14px}.chat-collapsed .stages{grid-template-rows:auto auto auto}.chat-collapsed .stage-a{align-self:start}.theater.is-immersive .stages{grid-template-rows:minmax(0,.55fr) minmax(0,1fr) minmax(160px,1.15fr);--arena-height:calc(100dvh - 235px)}.theater.is-immersive .stage-a{width:min(70%,calc(var(--arena-height)*.3));max-height:none;align-self:center}.theater.is-immersive .stage-b,.theater.is-immersive .stage-c{grid-row:2;width:min(100%,calc(var(--arena-height)*.18))}.theater.is-immersive .studio-conversation{grid-row:3;min-height:0}.theater.is-immersive .chat-heading{padding:7px 10px}.theater.is-immersive .chat-host-controls{padding:5px 8px 0}.theater.is-immersive .reaction-toolbar{padding:4px 8px}.theater.is-immersive #reaction-state{display:none}.theater.is-immersive #chat-form{padding:0 8px 8px}.theater.is-immersive #chat-input{font-size:16px}.theater.is-immersive #chat-notice{font-size:9px;padding-bottom:5px}.theater.is-immersive .chat-scroll-area{min-height:25px}.theater.is-immersive .nameplate .affiliation{font-size:7px}.theater.is-immersive .stage-top{padding:7px;font-size:6px}.theater.is-immersive .nameplate{font-size:9px;padding:18px 7px 8px;padding-right:32px}.theater.is-immersive .studio-speaking-indicator{font-size:7px;bottom:47px;padding:3px 4px}.theater.is-immersive .stage-a>.studio-speaking-indicator{top:22px;bottom:auto}.theater.is-immersive .stage-a .standby b{font-size:30px}.theater.is-immersive .standby span{font-size:7px}.theater.is-immersive.chat-collapsed .stages{grid-template-rows:minmax(0,.7fr) minmax(0,1.3fr) auto}.theater.is-immersive.chat-collapsed .stage-a{width:min(78%,calc(var(--arena-height)*.6))}.theater.is-immersive.chat-collapsed .stage-b,.theater.is-immersive.chat-collapsed .stage-c{width:min(100%,calc(var(--arena-height)*.31))}.theater.is-focused .stage.is-selected{width:min(100%,calc(var(--arena-height)*.5625))}.theater.is-focused .stage-a.is-selected{width:min(100%,calc(var(--arena-height)*1.7778))}}
@media(max-height:550px) and (orientation:landscape){.theater.is-immersive .stages{grid-template-columns:1fr 1.8fr 1fr;grid-template-rows:minmax(0,.35fr) minmax(130px,.65fr);--arena-height:calc(100dvh - 145px)}.theater.is-immersive .stage-a{grid-column:2;grid-row:1;align-self:center;width:min(100%,calc(var(--arena-height)*.6))}.theater.is-immersive .stage-b{grid-column:1;grid-row:1/3}.theater.is-immersive .stage-c{grid-column:3;grid-row:1/3}.theater.is-immersive .stage-b,.theater.is-immersive .stage-c{width:min(100%,calc(var(--arena-height)*.5625))}.theater.is-immersive .studio-conversation{grid-column:2;grid-row:2}.theater.is-immersive .chat-heading{padding:4px 8px}.theater.is-immersive .chat-host-controls{position:absolute;right:10px;top:5px;padding:0}.theater.is-immersive .chat-host-controls button{font-size:7px;padding:3px 5px;min-height:20px}.theater.is-immersive .studio-conversation{position:relative}.theater.is-immersive .chat-heading>div span{display:none}.theater.is-immersive .chat-heading>button{visibility:hidden}.theater.is-immersive .reaction-toolbar{padding:2px 7px}.theater.is-immersive #reaction-buttons button{font-size:14px;min-height:23px;height:23px}.theater.is-immersive #reaction-state{display:none}.theater.is-immersive #chat-form{padding:0 7px 5px;gap:4px}.theater.is-immersive #chat-input,.theater.is-immersive #chat-send{height:28px;min-height:28px;padding:4px 6px;font-size:10px}.theater.is-immersive .chat-scroll-area{min-height:16px}.theater.is-immersive #chat-log{padding:5px 8px}.theater.is-immersive .chat-message{font-size:9px;margin-bottom:4px}.theater.is-immersive.chat-collapsed .stage-a{width:min(100%,calc(var(--arena-height)*1.7778))}.theater.is-focused .stage-a.is-selected{width:min(100%,calc(var(--arena-height)*1.7778))}}
@media(prefers-reduced-motion:reduce){.reaction-bubble{animation:none;display:none}}
