:root{--accent: #1658f3;--accent-pressed: #0745d6;--accent-light: #4c70ff;--on-accent: #ffffff;--danger: #ff3856;--success: #08b566;--surface-app: #101010;--surface-raised: #1a1a1a;--surface-tile: #1f1f20;--fill-subtle: rgba(207, 209, 219, .06);--fill: rgba(207, 209, 219, .12);--fill-strong: rgba(207, 209, 219, .16);--text-primary: #ffffff;--text-secondary: rgba(207, 209, 219, .64);--text-tertiary: rgba(207, 209, 219, .48);--divider: rgba(207, 209, 219, .12);--radius-s: 8px;--radius-m: 12px;--radius-l: 16px;--radius-pill: 999px;--font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font-ui);font-size:15px;line-height:1.45;background:var(--surface-app);color:var(--text-primary);-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}button:disabled{cursor:default;opacity:.4}input,select{font:inherit;color:inherit;background:var(--fill-subtle);border:1px solid var(--divider);border-radius:var(--radius-m);padding:.65em .85em;width:100%}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--accent-light);outline-offset:2px}.centered{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;gap:16px;text-align:center}.card{background:var(--surface-raised);border-radius:var(--radius-l);padding:24px;width:100%;max-width:460px;text-align:left}.title{font-size:22px;font-weight:500;margin:0}.subtitle{color:var(--text-secondary);margin:4px 0 0;font-size:13px}.muted{color:var(--text-secondary);font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:.75em 1.4em;border-radius:var(--radius-m);background:var(--fill);font-weight:500}.btn:hover:not(:disabled){background:var(--fill-strong)}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-pressed)}.btn-danger{background:var(--danger);color:#fff}.btn-block{width:100%}.field{display:block;margin-top:16px}.field>span{display:block;font-size:13px;color:var(--text-secondary);margin-bottom:6px}.error-text{color:var(--danger);font-size:13px;margin-top:12px}.lang-switch{position:fixed;top:12px;right:12px;display:flex;gap:4px;font-size:12px;color:var(--text-tertiary)}.lang-switch button[aria-pressed=true]{color:var(--text-primary)}.preview{position:relative;aspect-ratio:16 / 9;width:100%;background:var(--surface-tile);border-radius:var(--radius-m);overflow:hidden;display:flex;align-items:center;justify-content:center}.preview video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.preview-placeholder{color:var(--text-tertiary);font-size:13px;padding:0 24px;text-align:center}.preview-toggles{position:absolute;bottom:10px;left:50%;transform:translate(-50%);display:flex;gap:8px}.level{height:4px;border-radius:var(--radius-pill);background:var(--fill);overflow:hidden;margin-top:8px}.level>i{display:block;height:100%;background:var(--success);transition:width 80ms linear}.room{display:flex;flex-direction:column;height:100%;position:relative}.room-bar{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--divider);min-height:52px}.room-bar h1{font-size:15px;font-weight:500;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);background:var(--fill-subtle);border-radius:var(--radius-pill);padding:4px 10px;white-space:nowrap}.badge-rec{color:var(--danger)}.badge-rec:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--danger)}.grid{flex:1;display:grid;gap:8px;padding:8px;align-content:center;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));overflow:auto}.grid.has-stage{grid-template-columns:1fr;grid-template-rows:1fr auto;align-content:stretch}.filmstrip{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.filmstrip .tile{flex:0 0 200px}.tile{position:relative;background:var(--surface-tile);border-radius:var(--radius-m);overflow:hidden;aspect-ratio:16 / 9;display:flex;align-items:center;justify-content:center;border:2px solid transparent}.tile.speaking{border-color:var(--accent)}.tile.stage{aspect-ratio:auto;height:100%;min-height:0}.tile video{width:100%;height:100%;object-fit:contain;background:#000}.tile video.mirror{transform:scaleX(-1);object-fit:cover}.tile-avatar{width:72px;height:72px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:500;color:var(--text-secondary)}.tile-name{position:absolute;left:8px;bottom:8px;right:8px;display:flex;align-items:center;gap:6px;font-size:12px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8);pointer-events:none}.tile-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--divider);flex-wrap:wrap}.ctl{width:48px;height:48px;border-radius:var(--radius-pill);background:var(--fill);display:inline-flex;align-items:center;justify-content:center}.ctl:hover:not(:disabled){background:var(--fill-strong)}.ctl.off{background:var(--danger);color:#fff}.ctl.on{background:var(--accent);color:var(--on-accent)}.ctl-leave{width:auto;padding:0 20px;background:var(--danger);color:#fff;font-weight:500}.notice{position:fixed;left:50%;transform:translate(-50%);bottom:88px;background:var(--surface-raised);border:1px solid var(--divider);border-radius:var(--radius-pill);padding:8px 16px;font-size:13px;display:flex;align-items:center;gap:12px;box-shadow:0 8px 24px #00000052;z-index:10}.devices-panel{position:fixed;left:50%;transform:translate(-50%);bottom:88px;width:min(360px,calc(100vw - 32px));background:var(--surface-raised);border:1px solid var(--divider);border-radius:var(--radius-m);padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 24px #00000052;z-index:11}.spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--fill-strong);border-top-color:var(--accent-light);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 600px){.grid{grid-template-columns:1fr}.ctl{width:44px;height:44px}}.thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}.sysline{align-self:center;margin:4px 0;font-size:12px;color:var(--text-tertiary)}.bubble{display:flex;align-items:flex-end;gap:8px;max-width:min(80%,42rem)}.bubble.mine{align-self:flex-end}.bubble-avatar{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--text-secondary)}.bubble-body{background:var(--surface-raised);border-radius:var(--radius-m);padding:8px 12px;display:flex;align-items:baseline;gap:10px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.mine .bubble-body{background:var(--accent);color:var(--on-accent)}.bubble-body time{flex:0 0 auto;font-size:11px;color:var(--text-tertiary)}.bubble.mine .bubble-body time{color:#ffffffb8}.bubble-col{display:flex;flex-direction:column;gap:4px;min-width:0}.bubble.mine .bubble-col{align-items:flex-end}.bubble-body.rich{flex-direction:column;align-items:stretch;gap:6px;min-width:min(18rem,70vw)}.bubble-body.rich>time{align-self:flex-end}.poll{display:flex;flex-direction:column;gap:8px}.poll-kind{font-size:12px;opacity:.72}.poll-question{font-weight:600}.poll-choice{display:flex;align-items:center;gap:10px;padding:4px 0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.poll-choice:disabled{cursor:default;opacity:.6}.poll-mark{flex:0 0 auto;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;opacity:.7}.poll-mark.box{border-radius:5px}.poll-choice.on .poll-mark{background:currentColor;opacity:1}.poll-line{display:flex;align-items:baseline;gap:8px}.poll-line b{flex:0 0 2.6rem;text-align:right;font-size:13px}.poll-line span:nth-child(2){flex:1 1 auto}.poll-bar{height:4px;margin:4px 0 0 calc(2.6rem + 8px);border-radius:2px;background:rgba(127,127,127,.28);overflow:hidden}.poll-bar i{display:block;height:100%;border-radius:2px;background:var(--accent)}.bubble.mine .poll-bar i{background:var(--on-accent)}.poll-result.right .poll-bar i{background:var(--success)}.poll-result.wrong .poll-bar i{background:var(--danger)}.poll-voters{margin:2px 0 0 calc(2.6rem + 8px);font-size:12px;opacity:.72}.poll-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:12px}.poll-foot>span{flex:1 1 auto;opacity:.72}.poll-link{padding:2px 0;border:0;background:none;color:var(--accent-light);font:inherit;font-size:12px;font-weight:500;cursor:pointer}.bubble.mine .poll-link{color:var(--on-accent)}.poll-failed{font-size:12px;color:var(--danger)}.poll-form{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto;padding:12px 16px;border-top:1px solid var(--divider)}.poll-form h2{margin:0;font-size:15px}.poll-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-secondary)}.poll-form label.poll-switch{flex-direction:row;align-items:center;gap:8px;font-size:14px;color:inherit}.poll-form input:not([type]),.poll-form select{padding:8px 10px;border:1px solid var(--divider);border-radius:var(--radius-m);background:var(--surface-raised);color:inherit;font:inherit}.poll-form-row{display:flex;align-items:center;gap:8px}.poll-form-row input:not([type]){flex:1 1 auto;min-width:0}.poll-form-actions{display:flex;justify-content:flex-end;gap:8px}.voice{display:flex;align-items:center;gap:10px}.voice-play{flex:0 0 auto;width:36px;height:36px;border:0;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:12px;cursor:pointer}.bubble.mine .voice-play{background:var(--on-accent);color:var(--accent)}.voice-body{flex:1 1 auto;min-width:10rem}.voice-wave{display:flex;align-items:center;gap:1.5px;height:24px;cursor:pointer}.voice-wave i{flex:1 1 0;min-height:3px;border-radius:2px;background:currentColor;opacity:.32}.voice-wave i.played{background:var(--accent);opacity:1}.bubble.mine .voice-wave i.played{background:var(--on-accent)}.voice-meta{display:flex;align-items:center;gap:8px;font-size:11px}.voice-meta>span:first-child{flex:1 1 auto;opacity:.72}.voice-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}.reactions{display:flex;flex-wrap:wrap;gap:4px}.reaction{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border-radius:11px;background:var(--fill);font-size:13px}.reaction b{font-size:11px;font-weight:500;color:var(--text-secondary)}.composer{display:flex;align-items:flex-end;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--divider)}.composer.voice-recording{align-items:center}.voice-rec-dot{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:var(--danger);animation:voice-rec-pulse 1s ease-in-out infinite alternate}@keyframes voice-rec-pulse{to{opacity:.3}}.voice-rec-time{flex:1;font-variant-numeric:tabular-nums}.composer textarea{flex:1;resize:none;max-height:8rem;min-height:2.6rem;font-family:inherit}.guest-chat{position:absolute;top:0;right:0;bottom:0;width:min(26rem,100%);display:flex;flex-direction:column;background:var(--surface-app);border-left:1px solid var(--divider);z-index:3}.guest-chat .room-bar h1{flex:1}.bubble-who{font-size:.78rem;color:var(--text-tertiary);margin-bottom:2px}@media (max-width: 720px){.guest-chat{top:auto;left:0;height:62%;width:100%;border-left:none;border-top:1px solid var(--divider)}}.tile.selectable{cursor:pointer}.emoji-inline{display:inline-block;vertical-align:-.25em;object-fit:contain}.sticker{display:block;object-fit:contain;background:transparent}.sticker-col{gap:4px}.sticker-meta{display:flex;gap:8px;align-items:center;font-size:12px;opacity:.75}.sticker-panel{max-height:280px;overflow-y:auto;padding:8px 12px;border-top:1px solid var(--divider)}.sticker-panel h3{font-size:12px;font-weight:600;margin:8px 0 4px;opacity:.75}.sticker-tabs{display:flex;gap:12px}.sticker-tabs .on{font-weight:600;text-decoration:underline}.sticker-grid{display:flex;flex-wrap:wrap;gap:4px}.sticker-cell,.emoji-cell{border:none;background:transparent;padding:4px;border-radius:var(--radius-s);cursor:pointer}.sticker-cell:hover,.emoji-cell:hover{background:var(--fill)}
