/* Голосовой режим главной: сцена, люди, нижняя панель в эфире, звуки, показ экрана, громкость. Правила — из прототипа v72 (снято с живого макета, сокращения с var() подставлены из исходника). */
.hic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--text-2); background: var(--bg-5); }
.hic:hover { color: var(--text-1); background: rgb(58, 58, 67); }
.hic.off { color: var(--accent); }
.hic svg { width: 16px; height: 16px; }
.rw.vr2 .hic { width: 30px; height: 30px; background: none; }
#home.voice .md, #home.voice .ms { opacity: 0; pointer-events: none; filter: blur(4px); }
#home.voice .md.left, #home.voice .ms[data-ms="docs"] { transform: translateX(-60px); }
#home.voice .md.right, #home.voice .ms[data-ms="media"] { transform: translateX(60px); }
#home.voice .hx-c, #home.voice .hx-v { opacity: 0; pointer-events: none; transform: scale(0.94); }
.vs-back { position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0px 14px 0px 8px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: background-color 0.12s, color 0.12s; }
.vs-back:hover { background: var(--bg-hover); color: var(--text-1); }
.vs-back svg { width: 18px; height: 18px; }
.vs-h { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vs-h b { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.vs-h span { font-size: 13px; color: var(--text-3); }
.vs-ppl { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; max-width: 760px; }
.vs-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: vsp .4s var(--pop) backwards; }
.vs-p:nth-child(2) { animation-delay: 0.05s; }
.vs-p:nth-child(3) { animation-delay: 0.1s; }
@keyframes vsp{0% { opacity: 0; transform: scale(0.7); }}
.vs-p > span { display: inline-flex; border-radius: 40px; transition: box-shadow 0.3s; }
.vs-p .av { width: 112px; height: 112px; border-radius: 38px; font-size: 40px; }
.vs-p > span.talk { box-shadow: 0 0 0 4px var(--bg-1),0 0 0 7px var(--current); animation: 1.2s ease-in-out 0s infinite normal none running vstalk; }
@keyframes vstalk{50% { box-shadow: 0 0 0 4px var(--bg-1),0 0 0 14px rgba(243,239,232,.18); }}
.vs-p b { font-size: 14px; font-weight: 500; color: var(--text-2); }
.vs-mute { position: absolute; top: 84px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-1); display: grid; place-items: center; color: var(--accent); }
.vs-mute svg { width: 16px; height: 16px; }
.vs-ctl { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 999px; background: var(--bg-2); }
.vs-b { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--text-1); transition: background-color 0.12s, transform 0.1s; }
.vs-b:hover { background: var(--bg-5); }
.vs-b:active { transform: scale(0.94); }
.vs-b svg { width: 20px; height: 20px; }
.vs-b.off { color: var(--accent); }
.vs-b.leave { background: var(--accent); color: rgb(31, 22, 6); }
.vs-b.leave:hover { background: rgb(246, 194, 100); }
.vs-inv { display: flex; align-items: center; gap: 6px; padding: 0px 6px; font-size: 12px; color: var(--text-4); }
.vs-inv span { margin-right: 2px; }
.vs-inv .av { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
.vr-i { position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--text-3); transition: background-color 0.12s, color 0.12s; }
.vr-i:hover, .vr-i.on { background: var(--bg-2); color: var(--text-1); }
.vr-i .oi { background: none; width: 22px; height: 22px; }
.vr-i .oi svg { width: 18px; height: 18px; }
.vr-i i{position:absolute;top:4px;right:4px;min-width:16px;height:16px;border-radius:999px;background:var(--text-1);color:var(--bg-1);font:600 9.5px/16px var(--font-mono);font-style:normal;text-align:center;padding:0 4px;box-sizing:border-box}
#home.voice .pgrid { opacity: 0; filter: blur(4px); }
#home.voice .pgrid .ptile { pointer-events: none; }
#home.voice .hx-c { opacity: 1; pointer-events: auto; transform: none; filter: none; z-index: 6; }
#home.voice .porb, #desk.agopen .porb { opacity: 0; }
#home.voice .porb .pob, #desk.agopen .porb .pob { pointer-events: none; }
#home.voice .pgrid { opacity: 1; filter: none; }
#home.voice .pgrid .ptile { pointer-events: auto; }
#home.homepl .vs > * { pointer-events: auto; }
#home.homepl .vs-h b { font-size: clamp(20px, 2.8vh, 26px); }
#home.homepl .vs-ppl { gap: clamp(20px, 3.4vh, 38px); }
#home.homepl .vs-p .av { width: clamp(72px, 11.5vh, 112px); height: clamp(72px, 11.5vh, 112px); border-radius: clamp(26px, 3.9vh, 38px); font-size: clamp(28px, 4vh, 40px); }
#home.homepl .vs-mute { top: auto; bottom: 22px; }
.ptile.pnotif.pbub { width: 46px; border-radius: 24px; z-index: 6; transition: width .32s var(--ease),border-radius .32s var(--ease),background-color .2s,box-shadow .25s,opacity .25s; animation: 2.4s ease-in-out 0s infinite normal none running nbpulse; }
@keyframes nbpulse{0%, 100% { box-shadow: rgba(245, 184, 79, 0.38) 0px 0px 0px 0px; }
  50% { box-shadow: rgba(245, 184, 79, 0) 0px 0px 0px 10px; }}
.ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pl-h { height: 46px; padding: 0px; justify-content: center; }
.ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pl-i, .ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pl-h b, .ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pl-c { display: none; }
.ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pl-s { flex: 0 0 auto; justify-content: center; }
.ptile.pnotif.pbub:not(:hover):not(.ppin):not(.popen) .pbadge { background: none; color: rgb(255, 248, 234); font: 700 17px/20px var(--font-mono); min-width: 0px; padding: 0px; }
.ptile.pnotif.pbub:hover, .ptile.pnotif.pbub.ppin, .ptile.pnotif.pbub.popen { width: 370px; border-radius: 16px; animation: auto ease 0s 1 normal none running none; }
.mb-b.mb-off { color: var(--accent); background: var(--accent-soft); }
.mb-b.mb-on { background: var(--text-1); color: var(--bg-1); }
.mb-b.mb-leave { width: 46px; background: var(--accent); color: rgb(31, 22, 6); margin-left: 2px; }
.mb-b.mb-leave:hover { background: rgb(246, 194, 100); }
.mb-bd{position:absolute;top:3px;right:3px;min-width:15px;height:15px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:var(--accent);color:#1f1606;font:700 9.5px/15px var(--font-mono);font-style:normal;text-align:center}
.mbp.mb-chatp { gap: 8px; }
.mb-msgs { flex: 1 1 0%; min-height: 120px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.mb-m { display: flex; gap: 9px; font-size: 13px; line-height: 1.4; }
.mb-m .av { width: 24px; height: 24px; border-radius: 8px; font-size: 10.5px; flex: 0 0 auto; }
.mb-m span { display: flex; flex-direction: column; }
.mb-m b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.mb-send { display: flex; gap: 6px; }
.mb-send .mb-b { background: var(--text-1); color: var(--bg-1); width: 36px; height: 36px; }
#home.homepl .vs-ctl .vs-b { display: none; }
#home.voice .hgreet, #desk.agopen .hgreet { opacity: 0; transform: translateX(-50%) translateY(-10px); }
.mt-tog { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0px 4px; cursor: pointer; }
.mt-tog input { position: absolute; opacity: 0; pointer-events: none; }
.mt-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--bg-5); flex: 0 0 auto; position: relative; transition: background-color 0.15s; margin-top: 2px; }
.mt-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .18s var(--ease),background-color .15s; }
.mt-tog input:checked + .mt-sw { background: var(--accent); }
.mt-tog input:checked + .mt-sw::after { transform: translateX(14px); background: rgb(255, 255, 255); }
.mt-tog > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mt-tog b { font-size: 13.5px; font-weight: 600; }
.mt-tog small { font-size: 12px; color: var(--text-4); line-height: 1.4; }
.mb-b.mb-rec { color: var(--text-3); width: auto; min-width: 38px; padding: 0px 9px; display: inline-flex; gap: 6px; }
.mb-b.mb-rec svg { width: 16px; height: 16px; }
#home.voice .ptile.pmeet { opacity: 0; pointer-events: none; transform: translateY(-20px) scale(0.95); }
.vx-vol { display: flex; align-items: center; gap: 8px; }
.vx-vol button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); flex: 0 0 auto; }
.vx-vol button:hover { background: var(--bg-4); color: var(--text-1); }
.vx-vol button svg { width: 17px; height: 17px; }
.vx-vol input { flex: 1 1 0%; min-width: 0px; accent-color: var(--text-1); }
.vx-vol b { min-width: 42px; text-align: right; font: 600 12px var(--font-mono); color: var(--text-2); }
.vx-n { font-size: 11.5px; line-height: 1.4; color: var(--text-4); }
.vx-pop { position: fixed; z-index: 57; width: 360px; padding: 14px; border-radius: 20px; background: rgba(22, 22, 27, 0.97); border: 1px solid var(--line-strong); box-shadow: rgb(0, 0, 0) 0px 30px 80px -30px; font-family: var(--font-ui); display: flex; flex-direction: column; gap: 10px; animation: umpin .2s var(--ease); }
.vx-pop[hidden] { display: none; }
.vx-ph { display: flex; align-items: baseline; gap: 8px; }
.vx-ph b { font-size: 15px; color: var(--text-1); }
.vx-ph span { flex: 1 1 0%; font-size: 12px; color: var(--text-3); }
.vx-pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vx-pads button, .vx-add { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-soft); cursor: pointer; transition: transform 0.1s, background-color 0.12s; }
.vx-pads button:hover, .vx-add:hover { background: var(--bg-3); }
.vx-pads button:active { transform: scale(0.94); }
.vx-pads span { font-size: 24px; line-height: 1.1; }
.vx-pads small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vx-add span { color: var(--text-3); font-size: 22px; }
.vx-sbv { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.vx-sbv svg { width: 16px; height: 16px; }
.vx-sbv input { width: 110px; accent-color: var(--text-1); }
.vx-sbv small { font-size: 11.5px; }
.vx-l { font-size: 12px; font-weight: 600; color: var(--text-3); }
.vx-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vx-src button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-2); }
.vx-src button.on { border-color: var(--text-2); color: var(--text-1); background: var(--bg-3); }
.vx-src i { width: 54px; height: 34px; border-radius: 6px; border: 1.5px solid var(--text-4); position: relative; }
.vx-src i.s1::after { content: ""; position: absolute; inset: 6px 10px; border-radius: 3px; background: var(--text-4); }
.vx-src i.s2::after { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 5px; border-radius: 2px; background: var(--text-4); }
.vx-q { align-self: flex-start; }
.vx-tog { padding: 2px 0px 0px; }
.vx-tog b { display: block; font-size: 13px; color: var(--text-1); font-weight: 600; }
.vx-tog small { font-size: 12px; color: var(--text-3); }
.vx-go { height: 42px; justify-content: center; }
.vx-pip { position: fixed; left: 16px; bottom: 16px; z-index: 56; width: 300px; border-radius: 18px; overflow: hidden; background: rgb(20, 20, 24); border: 1px solid var(--line-strong); box-shadow: rgb(0, 0, 0) 0px 30px 70px -30px; font-family: var(--font-ui); animation: umpin .25s var(--ease); }
.vx-pip[hidden] { display: none; }
.vx-pv { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, rgb(42, 47, 58), rgb(20, 22, 27)); }
.vx-fake { position: absolute; inset: 10px; border-radius: 8px; background: rgb(29, 32, 41); display: grid; grid-template-columns: 30% 1fr; grid-template-rows: 14px 1fr 1fr; gap: 6px; padding: 8px; }
.vx-fake i { border-radius: 4px; background: rgb(43, 48, 64); }
.vx-fake i:first-child { grid-column: 1 / 3; background: rgb(37, 42, 55); }
.vx-fake i:nth-child(2) { grid-row: 2 / 4; }
.vx-fake b { grid-area: 2 / 2 / 4; border-radius: 6px; background: linear-gradient(135deg, rgb(139, 127, 209), rgb(60, 53, 96)); }
.vx-pv canvas { position: absolute; inset: 0px; width: 100%; height: 100%; }
.vx-pf { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.vx-live { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px var(--font-ui); letter-spacing: 0.06em; color: rgb(247, 205, 128); }
.vx-live i { width: 7px; height: 7px; border-radius: 50%; background: rgb(245, 184, 79); animation: 1.4s ease-in-out 0s infinite normal none running vxblink; }
@keyframes vxblink{50% { opacity: 0.3; }}
.vx-pi { font-size: 11.5px; color: var(--text-3); }
.vx-vw { display: flex; }
.vx-vw .av { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; margin-left: -4px; box-shadow: rgb(20, 20, 24) 0px 0px 0px 2px; }
.vx-pa { display: flex; gap: 5px; padding: 6px 10px 10px; }
.vx-pa button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0px 10px; border-radius: 9px; background: var(--bg-3); color: var(--text-2); font-size: 12px; font-weight: 600; }
.vx-pa button:hover { background: var(--bg-4); color: var(--text-1); }
.vx-pa button.danger { margin-left: auto; background: rgb(217, 84, 58); color: rgb(255, 255, 255); }
.vx-pa svg { width: 13px; height: 13px; }
.mb-tabs{display:flex;gap:4px;padding:3px;border-radius:12px;background:var(--bg-2)}
.mb-rg{display:flex;align-items:center;gap:10px}
.mb-rg input{flex:1;accent-color:var(--current)}
.mb-rg em{font:500 11px var(--font-mono);font-style:normal;color:var(--text-3)}
.vs-p.vx-lm .av{opacity:.45;filter:grayscale(.6)}
.vx-vb{position:absolute;top:-6px;right:-8px;padding:2px 7px;border-radius:7px;background:var(--bg-4);color:var(--text-2);font:600 11px var(--font-ui);font-style:normal;white-space:nowrap}
.vx-fly{position:fixed;z-index:60;transform:translate(-50%,0);font-size:40px;pointer-events:none;animation:vxfly 1.6s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes vxfly{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}15%{opacity:1;transform:translate(-50%,-20px) scale(1.1)}100%{opacity:0;transform:translate(-50%,-140px) scale(1)}}
/* новый клиент: показ экрана у зрителей — над людьми на сцене */
.vs-scr{position:relative;width:min(860px,calc(100vw - 2 * var(--vside, 420px)));aspect-ratio:16/9;max-height:calc(100vh - 330px);margin:0 auto 6px;border-radius:18px;overflow:hidden;background:#000;border:1px solid var(--line);box-shadow:0 30px 80px -30px rgba(0,0,0,.9)}
.vs-scr video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.vs-scr canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.vs-scr .vs-sl{position:absolute;left:12px;top:12px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:9px;background:rgba(10,10,12,.72);color:#f3efe8;font-size:12.5px;font-weight:600}
.vs-scr .vs-sl i{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.vs-scr .vs-sx{position:absolute;right:10px;top:10px;z-index:2;display:flex;gap:6px}
.vs-scr .vs-sx button{height:30px;padding:0 10px;border-radius:9px;background:rgba(10,10,12,.72);color:#f3efe8;font-size:12px}
.vs-scr .vs-sx button:hover{background:rgba(10,10,12,.9)}
.vs-scr.paused::after{content:"Пауза";position:absolute;inset:auto 0 14px;text-align:center;color:#f3efe8;font-size:12px}
.vs-p > span video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.vs-p > span{position:relative;overflow:hidden}
.vs-err{font-size:12.5px;color:var(--accent);text-align:center;margin-top:6px}
.vs-sound{font-size:12.5px;color:var(--text-3);text-align:center;margin-top:4px;animation:popin .2s var(--ease)}
.vx-pv video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.mb-m.mine b{color:var(--text-3)}
.mb-note{font-size:11.5px;color:var(--text-4);padding:0 4px}
.vx-pads .vx-own button{font-size:11px}
.vx-l{font-size:12px;font-weight:600;color:var(--text-3)}
.vx-src{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.vx-src button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:13px;background:var(--bg-2);border:1px solid var(--line-soft);font-size:12.5px;color:var(--text-2)}
.vx-src button.on{border-color:var(--text-2);color:var(--text-1);background:var(--bg-3)}
.vx-src i{width:54px;height:34px;border-radius:6px;border:1.5px solid var(--text-4);position:relative}
.vx-src i.s1::after{content:"";position:absolute;inset:6px 10px;border-radius:3px;background:var(--text-4)}
.vx-src i.s2::after{content:"";position:absolute;left:4px;top:4px;width:16px;height:5px;border-radius:2px;background:var(--text-4)}
.vx-q{align-self:flex-start}
.vx-tog{padding:2px 0 0}
.vx-tog b{display:block;font-size:13px;color:var(--text-1);font-weight:600}
.vx-tog small{font-size:12px;color:var(--text-3)}
.vx-go{height:42px;justify-content:center}
.vx-pip{position:fixed;left:16px;bottom:16px;z-index:56;width:300px;border-radius:18px;overflow:hidden;background:#141418;border:1px solid var(--line-strong);box-shadow:0 30px 70px -30px #000;font-family:var(--font-ui);animation:umpin .25s var(--ease)}
.vx-pip[hidden]{display:none}
.vx-pv{position:relative;aspect-ratio:16/10;background:linear-gradient(160deg,#2a2f3a,#14161b)}
.vx-pv.paused .vx-fake{filter:grayscale(1) brightness(.6)}
.vx-fake{position:absolute;inset:10px;border-radius:8px;background:#1d2029;display:grid;grid-template-columns:30% 1fr;grid-template-rows:14px 1fr 1fr;gap:6px;padding:8px}
.vx-fake i{border-radius:4px;background:#2b3040}
.vx-fake i:first-child{grid-column:1 / 3;background:#252a37}
.vx-fake i:nth-child(2){grid-row:2 / 4}
.vx-fake b{grid-column:2;grid-row:2 / 4;border-radius:6px;background:linear-gradient(135deg,#8b7fd1,#3c3560)}
.vx-pv canvas{position:absolute;inset:0;width:100%;height:100%}
.vx-pz{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:5px 10px;border-radius:8px;background:rgba(0,0,0,.65);color:#fff;font-size:11.5px;white-space:nowrap}
.vx-pf{display:flex;align-items:center;gap:8px;padding:8px 10px 4px}
.vx-live{display:inline-flex;align-items:center;gap:5px;font:700 10.5px var(--font-ui);letter-spacing:.06em;color:#f8cf86}
.vx-live i{width:7px;height:7px;border-radius:50%;background:#f5b84f;animation:vxblink 1.4s ease-in-out infinite}
.vx-pi{font-size:11.5px;color:var(--text-3)}
.vx-vw{display:flex}
.vx-vw .av{width:20px;height:20px;border-radius:6px;font-size:9px;margin-left:-4px;box-shadow:0 0 0 2px #141418}
.vx-pa{display:flex;gap:5px;padding:6px 10px 10px}
.vx-pa button{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border-radius:9px;background:var(--bg-3);color:var(--text-2);font-size:12px;font-weight:600}
.vx-pa button:hover{background:var(--bg-4);color:var(--text-1)}
.vx-pa button.on{background:var(--text-1);color:var(--bg-1)}
.vx-pa button.danger{margin-left:auto;background:#d9543a;color:#fff}
.vx-pa svg{width:13px;height:13px}
:root[data-theme="light"] .vx-pip{background:var(--bg-2);box-shadow:0 0 0 1px var(--line),var(--shadow-lift)}
:root[data-theme="light"] :is(.vx-live){color:#8a5c0a}
@keyframes vxblink{50%{opacity:.3}}
#home.voice .ptile.pbub.nonotif{opacity:0;pointer-events:none}
.vs-ctl:empty{display:none}

/* сцена под много людей: размер плитки задаёт fitPeople() (--vsz, --vsw, --vsg) */
#home.homepl .vs-ppl.fit{gap:var(--vsg);max-width:none}
#home.homepl .vs-ppl.fit .vs-p{gap:calc(var(--vsz) * .1 + 2px)}
#home.homepl .vs-ppl.fit .vs-p .av{width:var(--vsz);height:var(--vsz);border-radius:calc(var(--vsz) * .34);font-size:calc(var(--vsz) * .36)}
#home.homepl .vs-ppl.fit .vs-p b{font-size:clamp(11px,calc(var(--vsz) * .12),14px)}
#home.homepl .vs-ppl.fit.compact .vs-p b{display:none}
#home.homepl .vs-ppl.fit .vs-p[hidden]{display:none}
/* с камерами — плитки 16:9: видео на всю плитку, у кого камеры нет — аватар по центру */
#home.homepl .vs-ppl.fit.vid .vs-p > span{position:relative;width:var(--vsw);height:var(--vsz);border-radius:calc(var(--vsz) * .18);background:var(--bg-3);display:grid;place-items:center;overflow:hidden}
#home.homepl .vs-ppl.fit.vid .vs-p > span .av{width:calc(var(--vsz) * .52);height:calc(var(--vsz) * .52);font-size:calc(var(--vsz) * .2);border-radius:calc(var(--vsz) * .18)}
#home.homepl .vs-ppl.fit.vid .vs-p > span video{border-radius:0}
.vs-more{width:var(--vsz,48px);height:var(--vsz,48px);border-radius:calc(var(--vsz,48px) * .34);background:var(--bg-4);border:1px solid var(--line);color:var(--text-1);font:600 calc(var(--vsz,48px) * .3) var(--font-ui);align-self:flex-start}
#home.homepl .vs-ppl.fit.vid .vs-more{width:var(--vsw);border-radius:calc(var(--vsz) * .18)}
.vs-more:hover{background:var(--bg-5)}

/* камеры: видеоплитки крупно сверху, разрыв строки, остальные — мелкие аватары без подписей */
#home.homepl .vs-ppl.fit.vid{gap:8px}
#home.homepl .vs-ppl.fit.vid .vs-p.cam{order:0;margin:0 calc((var(--vsg) - 8px) / 2) calc(var(--vsg) - 8px)}
#home.homepl .vs-ppl.fit.vid .vs-p.cam > span{border-radius:calc(var(--vsz) * .12)}
#home.homepl .vs-ppl.fit.vid .vs-p.cam b{position:absolute;left:9px;bottom:7px;z-index:2;font-size:12px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.7)}
#home.homepl .vs-ppl.fit.vid .vs-br{order:1;flex-basis:100%;height:0}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam){order:2}
#home.homepl .vs-ppl.fit.vid .vs-more{order:3}
/* мелкие плитки: люди без камер при камерах и все при показе экрана */
#home.homepl .vs-ppl.fit.scr{gap:8px;flex-wrap:nowrap}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam),#home.homepl .vs-ppl.fit.scr .vs-p{gap:0}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam) > span,#home.homepl .vs-ppl.fit.scr .vs-p > span{width:var(--vsm);height:var(--vsm);border-radius:calc(var(--vsm) * .34)}
#home.homepl .vs-ppl.fit.scr .vs-p.cam > span{width:calc(var(--vsm) * 16 / 9);border-radius:10px;background:var(--bg-3);overflow:hidden;position:relative}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam) > span .av,#home.homepl .vs-ppl.fit.scr .vs-p > span .av{width:var(--vsm);height:var(--vsm);font-size:calc(var(--vsm) * .36);border-radius:calc(var(--vsm) * .34)}
#home.homepl .vs-ppl.fit.scr .vs-p.cam > span .av{display:none}
#home.homepl .vs-ppl.fit.scr .vs-p.cam > span video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam) b,#home.homepl .vs-ppl.fit.scr .vs-p b,#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam) .vx-vb,#home.homepl .vs-ppl.fit.scr .vx-vb{display:none}
#home.homepl .vs-ppl.fit.vid .vs-p:not(.cam) .vs-mute,#home.homepl .vs-ppl.fit.scr .vs-mute{transform:scale(.7);bottom:-5px;right:-5px}
#home.homepl .vs-ppl.fit:is(.vid,.scr) .vs-more{width:var(--vsm);height:var(--vsm);border-radius:calc(var(--vsm) * .34);font-size:13px;flex:none}
#home.homepl .vs-ppl.fit.vid:not(:has(.vs-br)) .vs-more{width:var(--vsw);height:var(--vsz);border-radius:calc(var(--vsz) * .12)}
#home.homepl .vs-ppl.fit .vs-p > span[title]{cursor:pointer}
/* кнопка «во весь экран» на показе: у значка не было размера — кнопка выходила пустой */
.vs-scr .vs-sx button{display:inline-grid;place-items:center}
.vs-scr .vs-sx button svg{width:16px;height:16px;display:block}
/* PR-05: подпись не шире плитки — длинные имена обрезаются многоточием (полное имя в подсказке), иначе плитки
   расширялись, ряды переупаковывались и сцена уезжала под шапку и нижнюю панель */
#home.homepl .vs-ppl.fit .vs-p{max-width:var(--vsw)}
#home.homepl .vs-ppl.fit .vs-p b{display:block;max-width:var(--vsw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}

/* Несколько одновременных показов: каждый со своим видео и полноэкранным режимом. */
#vsScr{display:grid;grid-template-columns:repeat(var(--scr-cols,1),minmax(0,1fr));gap:8px;overflow-y:auto;max-width:100%;margin:auto;min-height:0}
#vsScr:empty{display:none}
#vsScr .vs-scr{width:100%;height:var(--scr-height,240px);max-height:none;margin:0;aspect-ratio:auto;border-radius:12px}
#vsScr .vs-sl{display:block;max-width:calc(100% - 140px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vsScr .vs-scr:fullscreen{width:100vw;height:100vh;max-height:none}
.vx-drag{display:flex;justify-content:space-between;padding:8px 12px;font-size:12px;color:var(--text-3);cursor:grab;touch-action:none;user-select:none}
.vx-drag:active{cursor:grabbing}
.vx-pip{max-width:calc(100vw - 24px)}
#vxchat{position:fixed;z-index:57;box-sizing:border-box;overflow:hidden}
#vxchat .mb-msgs{min-height:60px;max-height:none;overflow-wrap:anywhere}
#vxchat .mb-m>span{min-width:0}
#vxchat .mb-send{flex:none}
#vxinvite{box-sizing:border-box;overflow-y:auto}

.vs-switch{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;max-width:100%}
.vs-switch button{padding:6px 10px;border-radius:9px;background:var(--bg-2);font-size:12px;color:var(--text-3);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vs-switch button.on{background:var(--text-1);color:var(--bg-1)}
#vsScr.multi .vs-scr .vs-sl{top:0;left:0;max-width:100%;width:100%;box-sizing:border-box;padding:6px 10px;background:rgba(0,0,0,.65);font-size:11px}
#vsScr.multi .vs-scr .vs-sx{top:auto;bottom:5px;right:5px}
.vs-hand,.vs-reaction{position:absolute;top:-8px;right:-8px;font-style:normal;font-size:24px;z-index:2}
.vs-p{position:relative}
.vs-reaction{right:auto;left:-8px;font-size:32px}
.vx-reactions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.vx-reactions button{font-size:28px;border-radius:12px;padding:8px;background:var(--bg-3)}
#vxchat.window-custom .mb-msgs{min-height:0}
.vx-more-actions{display:flex;flex-direction:column;gap:4px}
.vx-more-actions button{display:flex;align-items:center;gap:12px;text-align:left;padding:10px;border-radius:11px;color:var(--text-2);font-size:13px}
.vx-more-actions button:hover{background:var(--bg-4);color:var(--text-1)}
.vx-more-actions i{width:24px;height:24px;display:grid;place-items:center;font-style:normal;font-size:20px;flex:none}
.vx-more-actions i svg{width:19px;height:19px}
@media(min-width:761px){
  #vxchat.window-folded{padding:0;min-height:0;gap:0}
  #vxchat.window-folded>:not(.mb-h){display:none!important}
  #vxchat.window-folded .mb-h{height:100%;padding:6px 8px;box-sizing:border-box;gap:4px;min-width:0}
  #vxchat.window-folded .mb-h b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:760px){#vxmore{display:none!important}}

/* звуки: поиск и сортировка, список прокручивается внутри окна (23.10) */
.vx-sbt{display:flex;gap:6px}.vx-sbt .mb-in{flex:1;min-width:0}.vx-sbt select{flex:none;max-width:130px;background:var(--bg-2);color:var(--text-2);border:1px solid var(--line-soft);border-radius:10px;padding:0 8px;font:inherit;font-size:12.5px}
#vxsb{max-height:min(520px,70vh)}#vxsb .vx-pads{overflow-y:auto;min-height:0;flex:1 1 auto;align-content:start;padding-right:2px}
.vx-pad{position:relative;display:flex}.vx-pad>button[data-vxplay]{flex:1;min-width:0}.vx-pad[hidden]{display:none}
.vx-pads .vx-del{position:absolute;top:3px;right:3px;width:20px;height:20px;padding:0;border-radius:50%;font-size:10px;line-height:1;color:var(--text-3);background:var(--bg-1);border:1px solid var(--line-soft);opacity:0;transition:opacity .12s}
.vx-pad:hover .vx-del,.vx-pads .vx-del:focus-visible{opacity:1}.vx-pads .vx-del:hover{color:#ff8a80}
@media (hover:none){.vx-pads .vx-del{opacity:.7}}
#vxsb{box-sizing:border-box}#vxsb>.vx-ph,#vxsb>.vx-sbt{flex-shrink:0}
