/* NEXIA EVO Conference — cliente de participantes (fuera del shell admin).
   Referencia visual exacta: 12-conference/referencia-visual/mockup-reunion-evento.png y mockup-asamblea-copropietarios.png
   (tema claro: cabecera, panel y barra blancos; escenario gris claro; mosaicos oscuros; azul de marca; mano amarilla). */
:root{--bg:#e9edf3;--panel:#fff;--tile:#0e1626;--tile2:#1a2740;--line:#e3e8ef;--line2:#cfd6e0;--txt:#1b2230;--muted:#6b7689;--acc:#1e6fe8;--acc2:#e8f0fd;--ok:#22a559;--ok2:#e6f6ec;--warn:#f0b429;--bad:#e3342f;--bad2:#fdecec;--hand:#f6c343;--r:14px;--shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.1)}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--txt);font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}select,input,textarea{font:inherit;color:inherit}select:focus{outline:2px solid var(--acc);outline-offset:0}.muted{color:var(--muted)}.small{font-size:12px}.hidden,[hidden]{display:none!important}
.ic{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;flex:0 0 auto}.ic svg{width:100%;height:100%;display:block}.ic.sm{width:14px;height:14px}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line2);background:#fff;color:var(--txt);border-radius:10px;padding:8px 14px;cursor:pointer;font-weight:600;line-height:1.2}.btn:hover{background:#f6f8fb}.btn.primary{background:var(--acc);border-color:var(--acc);color:#fff}.btn.primary:hover{background:#185fc9}.btn.danger{background:var(--bad);border-color:var(--bad);color:#fff}.btn.danger:hover{background:#c92c28}.btn.sm{padding:6px 12px;font-size:13px;border-radius:8px}.btn.big{padding:14px 22px;font-size:17px;border-radius:12px}.btn.icon{padding:6px 9px}.btn:disabled{opacity:.5;cursor:not-allowed}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:24px;letter-spacing:-.01em}.brand b{font-weight:700}.brand .brand-sub{font-weight:300;color:var(--txt)}.brand .logo{width:38px;height:38px}.logo{border-radius:9px;object-fit:cover;display:block}
.vsep{width:1px;height:34px;background:var(--line)}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#d7e2f5,#b9c9e6);color:#2a3c63;font-weight:700;font-size:13px;flex:0 0 auto}
/* ---- sala previa (pre-join): vista previa real, controles redondos, dispositivos ---- */
.gate{min-height:100%;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(1000px 500px at 50% -10%,#dbe6fa 0%,var(--bg) 60%)}
.gate-card{width:100%;max-width:980px;display:grid;grid-template-columns:1.15fr 1fr;gap:28px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 24px 70px rgba(16,24,40,.14)}
.gate-left{display:flex;flex-direction:column;gap:16px;min-width:0}.gate-card .brand{font-size:20px}.gate-card .brand .logo{width:30px;height:30px}
.preview{position:relative;aspect-ratio:16/9;background:var(--tile);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.preview video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);background:#0b1120}
.pv-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#9fb0cf;padding:20px;text-align:center}.pv-ph .avatar{width:88px;height:88px;font-size:30px}.pv-txt{font-size:14px;max-width:360px;line-height:1.4}
.preview.listener{background:linear-gradient(160deg,#0e1626,#1a2740)}
.pv-level{position:absolute;left:14px;right:14px;top:12px;height:4px;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden}.pv-level i{display:block;height:100%;width:100%;background:var(--ok);transform:scaleX(0);transform-origin:left center;transition:transform .08s linear;will-change:transform}
.pv-ctl{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:14px}.pv-ctl .round{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--txt);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .1s,background .15s}.pv-ctl .round:hover{transform:scale(1.05)}.pv-ctl .round .ic{width:24px;height:24px}.pv-ctl .round.off{background:var(--bad);color:#fff}
.gate-sel{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.gate-sel .sel.wide{position:relative;display:flex;align-items:center;gap:9px;height:46px;padding:0 36px 0 12px;border:1px solid var(--line2);border-radius:12px;background:#f6f8fb;min-width:0;transition:border-color .15s,background .15s,box-shadow .15s}
.gate-sel .sel.wide:hover{border-color:#b9c3d3;background:#fff}.gate-sel .sel.wide:focus-within{border-color:var(--acc);background:#fff;box-shadow:0 0 0 3px rgba(30,111,232,.14)}
.gate-sel .sel.wide .ic{color:var(--muted);width:18px;height:18px;flex:0 0 auto}
.gate-sel .sel.wide select{flex:1;min-width:0;border:0;padding:0;height:100%;font-size:14px;color:var(--txt);background:transparent;outline:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}
.gate-sel .sel.wide:after{right:14px;width:7px;height:7px;border-color:var(--muted)}
.gate-right{display:flex;flex-direction:column;min-width:0;padding-top:4px}.gate-card h1{font-size:26px;margin:0 0 6px;letter-spacing:-.01em;line-height:1.2}.gate-right .muted{margin:0 0 14px;font-size:14px}
.gate-form label{display:block;margin:12px 0 0;font-size:13px;color:var(--muted)}.gate-form input:not([type=checkbox]){display:block;width:100%;margin-top:6px;padding:12px 12px;border-radius:10px;border:1px solid var(--line2);background:#fff;font-size:15px}.gate-form input:focus{outline:2px solid var(--acc);outline-offset:0;border-color:var(--acc)}
.gate-state{margin:14px 0 12px;font-size:13px;color:var(--muted);min-height:18px}.big[type=submit]{width:100%;justify-content:center}.gate-foot{margin:14px 0 0;line-height:1.45}
.err{margin-top:12px;color:#8a1c1c;background:var(--bad2);border:1px solid #f3bcbc;padding:10px 12px;border-radius:10px}.gate-msg{margin-top:16px;padding:12px;border-radius:10px;background:#f6f8fb;border:1px solid var(--line)}
@media (max-width:900px){.gate{padding:12px;align-items:flex-start}.gate-card{grid-template-columns:1fr;gap:16px;padding:18px;border-radius:16px}.gate-card h1{font-size:21px}.preview{aspect-ratio:4/3}.pv-ctl .round{width:48px;height:48px}}
/* ---- sala ---- */
.room{display:grid;grid-template-columns:1fr 420px;grid-template-rows:68px 1fr 108px;grid-template-areas:"top top" "stage panel" "bar bar";height:100vh;height:100dvh;width:100%;max-width:100vw;overflow:hidden}.room>*{min-width:0}.stage,.stage-main,.strip{min-width:0}
.top{grid-area:top;display:flex;align-items:center;gap:22px;padding:0 22px;background:var(--panel);border-bottom:1px solid var(--line);min-width:0;overflow:hidden}.status{flex:0 0 auto}.top .title{flex:1;min-width:0;line-height:1.2}.top .title div:first-child{font-weight:700;font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}.top .title .muted{font-size:14px;margin-top:2px}
.status{display:flex;align-items:center;gap:14px}.live{display:inline-flex;align-items:center;gap:8px;background:var(--bad);color:#fff;border-radius:8px;padding:7px 12px;font-weight:700;font-size:13px}.live i{width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.35);animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.4}}
.timer{background:#eef1f6;border-radius:8px;padding:7px 12px;font-weight:600;font-variant-numeric:tabular-nums;color:#3a4356;margin-left:-6px}
.qual{display:inline-flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;color:var(--txt);font-size:14px}.qual:hover{background:#f3f5f9}.qual .ic:first-child{color:var(--ok)}.qual.poor .ic:first-child{color:var(--warn)}.qual.bad .ic:first-child{color:var(--bad)}
.me{display:inline-flex;align-items:center;gap:10px;padding:4px 6px;border-radius:10px}.me:hover{background:#f3f5f9}.me-txt{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;text-align:left}.me-txt b{font-size:15px}.me-txt small{font-size:12px}
.stage{grid-area:stage;display:flex;flex-direction:column;gap:12px;padding:12px 12px 12px 14px;min-height:0}.stage-main{flex:1;display:grid;grid-template-columns:1fr;gap:10px;min-height:0;position:relative}.tile.pip{position:absolute;right:14px;bottom:14px;width:min(24%,260px);aspect-ratio:16/9;z-index:2;border:2px solid rgba(255,255,255,.6);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35)}.tile.pip .lbl{left:6px;top:6px;font-size:12px;padding:3px 5px 3px 7px;gap:5px}.tile.pip .lbl .ic{width:13px;height:13px}.tile.pip .tag{font-size:10px;padding:1px 6px}.tile.pip .ph .avatar{width:44px;height:44px;font-size:15px}
.tile{position:relative;background:var(--tile);border-radius:var(--r);overflow:hidden;min-height:0;box-shadow:var(--shadow)}.tile video{width:100%;height:100%;object-fit:cover;background:#0b1120}.tile.share video{object-fit:contain;background:#0b1120}.tile .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#9fb0cf;font-size:16px}.tile .ph .avatar{width:96px;height:96px;font-size:32px}
.tile .lbl{position:absolute;left:12px;top:12px;display:flex;gap:8px;align-items:center;background:rgba(10,16,30,.72);color:#fff;padding:5px 6px 5px 10px;border-radius:9px;font-size:15px;font-weight:600;backdrop-filter:blur(4px)}.tile .lbl .ic{width:18px;height:18px}.tag{background:var(--acc);color:#fff;border-radius:7px;padding:3px 9px;font-size:13px;font-weight:600}.tag.host{background:var(--acc)}
.tile .hand{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;background:var(--hand);color:#1b2230;font-weight:700;font-size:13px;padding:5px 12px;border-radius:9px;white-space:nowrap}.tile .hand .ic{width:15px;height:15px}.tile.pip .hand{display:none}
.tile .kebab{position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:50%;background:rgba(10,16,30,.6);color:#fff;display:flex;align-items:center;justify-content:center}.tile .kebab:hover{background:rgba(10,16,30,.85)}
.tile .cc{position:absolute;left:12px;right:auto;bottom:12px;max-width:min(70%,640px);background:rgba(10,16,30,.82);color:#fff;padding:10px 14px;border-radius:12px;font-size:17px;line-height:1.35}.tile .cc small{display:flex;align-items:center;gap:8px;font-size:13px;color:#c9d4ea;margin-bottom:2px}.tile .cc .ic{width:22px;height:16px;border:1.5px solid #c9d4ea;border-radius:3px;font-size:9px;font-weight:800;letter-spacing:.5px}
.strip{display:flex;gap:10px;overflow-x:auto;min-height:170px;padding:2px 0}.strip .th{flex:0 0 200px;height:168px;position:relative;background:var(--tile2);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.strip .th video{width:100%;height:100%;object-fit:cover}.strip .th .init{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.strip .th .ov{position:absolute;inset:0;pointer-events:none}.strip .th .ov .nm,.strip .th .ov .hand{pointer-events:auto}.strip .th .init .avatar{width:56px;height:56px;font-size:18px}
.strip .th .nm{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;gap:7px;background:rgba(10,16,30,.72);color:#fff;padding:5px 9px;border-radius:8px;white-space:nowrap;overflow:hidden;line-height:1.15}.strip .th .nm .ic{width:15px;height:15px}.strip .th .nm .nm-t{display:flex;flex-direction:column;min-width:0}.strip .th .nm b{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis}.strip .th .nm small{font-size:12px;color:#c9d4ea}
.strip .th .hand{position:absolute;top:8px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;background:var(--hand);color:#1b2230;font-weight:700;font-size:13px;padding:4px 10px;border-radius:8px;white-space:nowrap}.strip .th .hand .ic{width:14px;height:14px}
.strip .th.speaking{outline:2px solid var(--ok);outline-offset:-2px}.strip .th.more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;background:#0e1626}.strip .th.more .n{width:64px;height:64px;border-radius:50%;background:#1a2740;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}.strip .th.more small{font-size:14px;color:#c9d4ea}
.mic{color:#e3342f}.mic.on{color:var(--ok)}.cam{color:#8d9ab5}.cam.on{color:var(--txt)}
.ctl.more-only{display:none}
.stage-main.grid{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:10px;--cols:1;--rows:1}.stage-main.grid .tile.cell{flex:0 0 calc((100% - (var(--cols) - 1) * 10px) / var(--cols));height:calc((100% - (var(--rows) - 1) * 10px) / var(--rows));min-height:0}.stage-main.grid .tile.main,.stage-main.grid .tile.pip{display:none}.tile.cell .ph .avatar{width:72px;height:72px;font-size:24px}.tile.cell .lbl{max-width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:20px}.tile.cell .lbl .ic{vertical-align:-4px;margin-right:4px}.tile.cell.speaking{outline:3px solid var(--ok);outline-offset:-3px}
/* ---- panel derecho ---- */
.panel{grid-area:panel;background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:29}.panel.dragging{transition:none!important}.panel-h{display:none;align-items:center;justify-content:center;position:relative;padding:10px 0 2px;touch-action:none}.panel-h .grab{width:44px;height:5px;border-radius:3px;background:#d5dbe5}.panel-h button{display:none}.panel-h button{position:absolute;right:10px;top:6px;width:32px;height:32px;border-radius:50%;color:var(--muted);font-size:16px}.panel-h button:hover{background:#f3f5f9}
.tabs{display:flex;gap:26px;padding:0 20px;border-bottom:1px solid var(--line)}.tabs button{padding:16px 2px 13px;color:var(--muted);font-size:16px;font-weight:600;border-bottom:3px solid transparent;position:relative}.tabs button.on{color:var(--txt);border-bottom-color:var(--acc)}.badge{display:inline-block;min-width:18px;background:var(--bad);color:#fff;border-radius:9px;padding:0 6px;font-size:11px;line-height:18px;text-align:center;vertical-align:middle}
.tab{flex:1;overflow:auto;padding:14px 18px 18px;min-height:0}.block{margin-bottom:18px}.block-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.block-h h3{margin:0;font-size:18px;font-weight:700}.block-h h3 span{font-weight:700}
.sel{position:relative;display:inline-flex;align-items:center}.sel select{appearance:none;-webkit-appearance:none;border:1px solid var(--line2);background:#fff;border-radius:8px;padding:7px 30px 7px 12px;font-size:13px;color:var(--txt);cursor:pointer}.sel:after{content:"";position:absolute;right:11px;top:50%;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.cards{display:flex;flex-direction:column;gap:10px}.card{border:1px solid var(--line);border-radius:12px;padding:12px 12px 12px 10px;background:#fff;box-shadow:var(--shadow)}.card .hd{display:grid;grid-template-columns:22px 44px 1fr auto;gap:10px;align-items:center}.card .pos{width:22px;height:22px;border-radius:50%;background:#eef1f6;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#3a4356}.card .avatar{width:44px;height:44px;font-size:15px}.card .who{min-width:0;line-height:1.2}.card .who b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card .who small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card .since{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;white-space:nowrap}.card .since .ic{width:16px;height:16px;color:#e0a100}
.card .acts{display:flex;gap:8px;margin:10px 0 0 32px;flex-wrap:nowrap}.card .acts .btn{white-space:nowrap}.card .acts .btn.icon{margin-left:auto}
.empty{color:var(--muted);font-size:13px;padding:6px 2px}
.filters{display:flex;gap:8px;margin-bottom:8px}.find{flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:8px;padding:0 10px;background:#fff}.find .ic{color:var(--muted);width:16px;height:16px}.find input{flex:1;border:0;padding:9px 0;outline:0;min-width:0;background:transparent}
.plist{display:flex;flex-direction:column}.row{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:8px 6px;border-radius:10px}.row:hover{background:#f6f8fb}.row .avatar{width:40px;height:40px}.row .who{min-width:0;line-height:1.2}.row .who b{display:flex;align-items:center;gap:6px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row .who b .ic{width:16px;height:16px;color:#e0a100}.row .who small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row .who .tag{font-size:12px;padding:2px 8px;background:var(--acc2);color:var(--acc)}
.row .icons{display:flex;align-items:center;gap:6px}.row .icons .ic{width:18px;height:18px}.row .icons button{width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}.row .icons button:hover{background:#eef1f6;color:var(--txt)}.row .icons .hand{color:#e0a100}
.chatlog{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:8px}.msg{background:#f3f5f9;border-radius:12px;padding:8px 12px}.msg b{font-size:13px;color:var(--acc)}.msg small{color:var(--muted);margin-left:6px;font-size:12px}.msg.me{background:var(--acc2)}.msg.sys{background:transparent;color:var(--muted);font-size:12px;text-align:center}
.reactrow{display:flex;gap:6px;padding:8px 0 4px}.reactrow button{font-size:20px;width:36px;height:36px;border-radius:10px}.reactrow button:hover{background:#f3f5f9}
.chatform{display:flex;gap:8px;padding-top:8px;border-top:1px solid var(--line)}.chatform input{flex:1;padding:10px 12px;border-radius:10px;border:1px solid var(--line2);background:#fff}
#tab-chat{display:flex;flex-direction:column}#n-text{width:100%;height:60%;min-height:220px;padding:12px;border-radius:12px;border:1px solid var(--line2);background:#fff;resize:vertical;line-height:1.5}#n-text[readonly]{background:#f6f8fb}
/* ---- barra inferior ---- */
.bar{grid-area:bar;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 26px;background:var(--panel);border-top:1px solid var(--line)}
.bar-l{display:flex;align-items:center;gap:12px;line-height:1.2}.bar-l .logo{width:40px;height:40px}.bar-l b{display:block;font-size:20px;letter-spacing:-.01em}.bar-l small{display:block;font-size:13px}
.bar-c{display:flex;gap:16px;justify-content:center;align-items:flex-start}
.ctl{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:78px}.ctl .round{width:62px;height:62px;border-radius:50%;background:#eef1f6;color:var(--txt);display:flex;align-items:center;justify-content:center;gap:5px;transition:background .15s,transform .1s}.ctl .round:hover{background:#e2e7ef}.ctl .round:active{transform:scale(.96)}.ctl .round .ic{width:26px;height:26px}.ctl .round.wide{width:auto;min-width:62px;padding:0 16px;border-radius:31px}.ctl .round .num{font-weight:700;font-size:15px}
.ctl .round.share{background:var(--ok2);color:var(--ok)}.ctl .round.share:hover{background:#d6efdf}.ctl .round.share.on{background:var(--ok);color:#fff}
.ctl .round.off{background:var(--bad2);color:var(--bad)}.ctl .round.on{background:var(--acc2);color:var(--acc)}.ctl .round.raised{background:var(--hand);color:#1b2230}
.ctl .round:disabled{opacity:.45;cursor:not-allowed}.ctl .round .rec{color:var(--bad)}.ctl .round .dot{position:absolute;top:8px;right:8px;width:10px;height:10px;border-radius:50%;background:var(--bad)}
.ctl .chev{position:absolute;top:0;right:-2px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;color:var(--muted)}.ctl .chev:hover{color:var(--txt)}
.ctl .lb{font-size:14px;color:var(--txt);white-space:nowrap}
.bar-r{display:flex;gap:22px;justify-content:flex-end;align-items:center}.bar-r .btn.big{font-size:19px;padding:16px 26px;white-space:nowrap;box-shadow:0 6px 18px rgba(227,52,47,.25)}.bar-r .btn .ic{width:24px;height:24px}.tagline{display:flex;flex-direction:column;font-size:13px;color:#3a4356;line-height:1.35;white-space:nowrap}
/* ---- flotantes ---- */
.toast{position:fixed;left:50%;bottom:124px;transform:translateX(-50%) translateY(20px);background:#1b2230;color:#fff;padding:10px 16px;border-radius:10px;opacity:0;transition:.25s;pointer-events:none;z-index:50;box-shadow:0 10px 30px rgba(16,24,40,.25)}.toast.show{opacity:1;transform:translateX(-50%)}
.reactions{position:fixed;right:440px;bottom:130px;pointer-events:none;z-index:40}.reactions span{display:block;font-size:30px;animation:fly 1.8s ease-out forwards}@keyframes fly{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-140px)}}
.menu{position:fixed;min-width:220px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;z-index:60;box-shadow:0 12px 40px rgba(16,24,40,.18)}.menu button,.menu .item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 12px;border-radius:8px;font-size:14px;color:var(--txt)}.menu button:hover{background:#f3f5f9}.menu button.danger{color:var(--bad)}.menu .item{color:var(--muted);font-size:12px;cursor:default}.menu hr{border:0;border-top:1px solid var(--line);margin:6px 4px}.menu .item.sel-dev{color:var(--txt);font-size:14px}.menu .item.sel-dev .ic{color:var(--ok)}
.pop{position:fixed;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;display:flex;gap:6px;z-index:60;box-shadow:0 10px 30px rgba(16,24,40,.18)}.pop button{font-size:22px;padding:4px 6px;border-radius:8px}.pop button:hover{background:#f3f5f9}
/* ---- modo PANTALLA COMPARTIDA: lo proyectado manda; panel estrecho, miniaturas minimas, escenario al maximo ---- */
.room.sharing{grid-template-columns:1fr 300px}
.room.sharing .stage{padding:8px 8px 8px 10px;gap:8px}
.room.sharing .strip{min-height:72px;gap:6px}.room.sharing .strip .th{flex:0 0 104px;height:68px;border-radius:8px}.room.sharing .strip .th .init .avatar{width:30px;height:30px;font-size:11px}.room.sharing .strip .th .nm{left:4px;right:4px;bottom:4px;padding:2px 6px;gap:4px}.room.sharing .strip .th .nm b{font-size:11px}.room.sharing .strip .th .nm small{display:none}.room.sharing .strip .th .nm .ic{width:11px;height:11px}.room.sharing .strip .th .hand{top:4px;font-size:10px;padding:2px 6px;gap:4px}.room.sharing .strip .th .hand .ic{width:11px;height:11px}.room.sharing .strip .th.more .n{width:32px;height:32px;font-size:13px}.room.sharing .strip .th.more small{font-size:11px}
.room.sharing .tile.pip{width:min(18%,220px)}
.room.sharing .tabs{gap:16px;padding:0 14px}.room.sharing .tabs button{font-size:14px;padding:12px 2px 10px}.room.sharing .tab{padding:10px 12px 14px}.room.sharing .block-h h3{font-size:15px}.room.sharing .card{padding:10px}.room.sharing .card .hd{grid-template-columns:20px 36px 1fr auto;gap:8px}.room.sharing .card .avatar{width:36px;height:36px;font-size:12px}.room.sharing .card .who b{font-size:14px}.room.sharing .card .acts{margin-left:0;flex-wrap:wrap}.room.sharing .row{grid-template-columns:34px 1fr auto;gap:8px}.room.sharing .row .avatar{width:34px;height:34px;font-size:12px}.room.sharing .row .who b{font-size:14px}.room.sharing .filters{flex-wrap:wrap}.room.sharing .filters .find{flex:1 1 100%}.room.sharing .filters .sel{flex:1}.room.sharing .filters .sel select{width:100%;padding:7px 26px 7px 8px}.room.sharing .block-h{flex-wrap:wrap;gap:6px}.room.sharing .block-h h3{font-size:14px}.room.sharing .block-h .sel select{padding:6px 26px 6px 8px;font-size:12px}
.room.sharing .bar{grid-template-rows:auto}.room.sharing .bar-r .tagline{display:none}
/* ---- responsive: portatil estrecho ---- */
@media (max-width:1500px){.bar-r .tagline{display:none}}
@media (max-width:1180px){.room{grid-template-columns:1fr 360px}.brand .brand-sub{display:none}.bar-c{gap:10px}.ctl{min-width:64px}.bar-r .btn.big{font-size:16px;padding:14px 18px}}
/* ---- MOVIL (<=900px): pantalla de llamada estilo iPhone. Fondo oscuro, rejilla de video, teclado de botones circulares
   con etiqueta y colgar rojo centrado. El panel es una hoja que sube desde abajo. La referencia visual es de escritorio. ---- */
@media (max-width:900px){
  .room{grid-template-columns:1fr;grid-template-rows:56px 1fr auto;grid-template-areas:"top" "stage" "bar";background:#0b1120;color:#fff}
  .room.sharing .strip{display:none}.room.sharing .tile.pip{width:30%}
  /* cabecera oscura y compacta */
  .top{gap:10px;padding:0 14px;background:#0b1120;border-bottom:0}.brand{flex:0 0 auto;gap:0}.brand .logo{width:32px;height:32px}.top .brand b,.brand .brand-sub,.vsep,.top .title .muted,.qual,.me-txt,.me .ic.sm,.live .t{display:none}
  .top .title{flex:1 1 auto;min-width:0}.top .title div:first-child{font-size:16px;color:#fff}.status{gap:8px;flex:0 0 auto}
  .live{padding:0;width:10px;height:10px;border-radius:50%;background:transparent}.live i{width:10px;height:10px;background:var(--bad);box-shadow:0 0 0 3px rgba(227,52,47,.3)}.timer{background:rgba(255,255,255,.12);color:#fff;padding:5px 9px;font-size:13px;margin-left:0}
  .me{padding:0}.me .avatar{width:34px;height:34px;font-size:12px;background:rgba(255,255,255,.18);color:#fff}
  /* escenario: rejilla o foco */
  .stage{padding:0 10px 10px;gap:8px}.stage-main{gap:8px}.tile{border-radius:16px;box-shadow:none;background:#161f33}.tile .lbl{left:10px;top:10px;font-size:13px;padding:4px 6px 4px 9px}.tile .lbl .ic{width:15px;height:15px}.tag{font-size:11px;padding:2px 7px}.tile .kebab{right:10px;top:10px;width:34px;height:34px}.tile .ph .avatar{width:76px;height:76px;font-size:26px;background:rgba(255,255,255,.14);color:#fff}.tile .ph{color:#9fb0cf}
  .stage-main.grid .tile.cell .ph .avatar{width:64px;height:64px;font-size:22px}.stage-main.grid.cols2 .tile .lbl{max-width:calc(100% - 60px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:20px}.stage-main.grid.cols2 .tile .lbl .ic{vertical-align:-4px;margin-right:4px}.stage-main.grid.cols2 .tile .lbl .tag{display:none}.stage-main.grid.cols2 .tile .kebab{width:30px;height:30px}.tile .hand{bottom:10px;font-size:12px;padding:4px 10px}
  .strip{min-height:96px;gap:8px}.strip .th{flex:0 0 118px;height:92px;border-radius:12px;background:#161f33;box-shadow:none}.strip .th .init .avatar{width:40px;height:40px;font-size:14px;background:rgba(255,255,255,.14);color:#fff}.strip .th .nm{left:6px;right:6px;bottom:6px;padding:4px 7px;gap:5px}.strip .th .nm b{font-size:12px}.strip .th .nm small{display:none}.strip .th .nm .ic{width:13px;height:13px}.strip .th .hand{top:6px;font-size:11px;padding:3px 7px}.strip .th.more{background:#161f33}.strip .th.more .n{width:44px;height:44px;font-size:16px;background:rgba(255,255,255,.14)}.strip .th.more small{font-size:12px}
  /* teclado de llamada */
  .bar{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 12px calc(14px + env(safe-area-inset-bottom));background:#0b1120;border-top:0}
  .bar-l,.tagline,#b-cc,#b-vote,#b-rec,#b-set,.ctl .chev{display:none}.ctl.more-only{display:flex}#b-share:has(.round:disabled){display:none}
  .bar-c{display:flex;flex-wrap:wrap;justify-content:center;gap:0;width:100%;max-width:420px;row-gap:12px}
  .ctl{flex:0 0 33.333%;min-width:0;align-items:center;gap:6px}.ctl .round{width:72px;height:72px;background:rgba(255,255,255,.16);color:#fff;transition:background .15s,transform .1s}.ctl .round:active{transform:scale(.94)}.ctl .round .ic{width:30px;height:30px}.ctl .round.wide{width:72px;min-width:72px;padding:0;border-radius:50%}.ctl .round .num{display:none}
  .ctl .round.off{background:#fff;color:#0b1120}.ctl .round.on{background:#fff;color:#0b1120}.ctl .round.share{background:rgba(255,255,255,.16);color:#fff}.ctl .round.share.on{background:var(--ok);color:#fff}.ctl .round.raised{background:var(--hand);color:#1b2230}.ctl .round:disabled{opacity:.35}
  .ctl .round .dot{top:6px;right:6px;width:12px;height:12px;border:2px solid #0b1120}
  .ctl .lb{font-size:13px;color:#fff;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:0}.ctl .lb::after{content:attr(data-short);font-size:13px}.ctl .lb:not([data-short])::after{content:none}.ctl .lb:not([data-short]){font-size:13px}
  #b-people .round::after{content:attr(data-n);position:absolute;top:-2px;right:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--acc);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #0b1120}
  .bar-r{margin-top:6px;gap:0}.bar-r .btn.big{width:72px;height:72px;padding:0;border-radius:50%;justify-content:center;font-size:0;box-shadow:0 8px 24px rgba(227,52,47,.35)}.bar-r .btn.big .t{display:none}.bar-r .btn .ic{width:30px;height:30px}
  /* hoja de participantes / chat / notas */
  .panel{position:fixed;left:0;right:0;bottom:0;top:auto;height:78vh;height:78dvh;border-left:0;border-top:1px solid var(--line);border-radius:20px 20px 0 0;transform:translateY(105%);transition:transform .25s ease;z-index:30;box-shadow:0 -12px 34px rgba(0,0,0,.45);color:var(--txt)}.panel.open{transform:none}.panel-h{display:flex}
  .tabs{gap:18px;padding:0 16px}.tabs button{padding:10px 2px 10px;font-size:15px}.tab{padding:12px 14px calc(16px + env(safe-area-inset-bottom))}.block-h h3{font-size:16px}.card .hd{grid-template-columns:20px 38px 1fr auto}.card .avatar{width:38px;height:38px;font-size:13px}.card .acts{margin-left:0}.card .acts .btn{flex:1;justify-content:center}.card .acts .btn.icon{flex:0 0 auto}.filters{flex-wrap:wrap}.filters .find{flex:1 1 100%}
  .toast{bottom:auto;top:70px;max-width:92vw;text-align:center}.reactions{right:14px;bottom:260px}.menu{max-width:92vw}
}
@media (max-width:900px) and (orientation:landscape){
  .room{grid-template-columns:1fr auto;grid-template-rows:48px 1fr;grid-template-areas:"top top" "stage bar"}
  .stage{padding:0 8px 8px}.strip{display:none}.stage-main.grid.cols2{grid-template-columns:1fr 1fr}.stage-main.grid:not(.cols2){grid-template-columns:1fr 1fr}
  .bar{flex-direction:column;justify-content:center;padding:8px 10px;width:104px}.bar-c{flex-direction:column;flex-wrap:nowrap;row-gap:8px;max-width:none}.ctl{flex:0 0 auto}.ctl .round{width:52px;height:52px}.ctl .round .ic{width:22px;height:22px}.ctl .lb{display:none}.bar-r .btn.big{width:52px;height:52px}.bar-r .btn .ic{width:22px;height:22px}
}
