:root {
  --bg0:#1e1f22; --bg1:#2b2d31; --bg2:#313338; --bg3:#383a40; --bg4:#404249;
  --text:#f2f3f5; --text2:#dbdee1; --muted:#949ba4; --line:#3f4147;
  --brand:#7c5cff; --brand2:#ff5ca8; --brand3:#ffb347;
  --grad:linear-gradient(135deg,#7c5cff,#ff5ca8 60%,#ffb347);
  --ok:#23a55a; --bad:#f23f43; --warn:#f0b232;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg2); color: var(--text2); font: 15px/1.4 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif; overflow: hidden; }
[hidden] { display: none !important; }
b, strong { color: var(--text); }
h1, h2, h3 { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 12px; margin: 0; }
.error { color: var(--bad); margin: 0; }
.spacer { flex: 1; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

input, select, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=range]), select { background: var(--bg0); color: var(--text2); border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; min-width: 0; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--brand); }
button { cursor: pointer; border: 0; border-radius: 8px; background: var(--bg4); padding: 9px 14px; }
button:hover { filter: brightness(1.12); }
button:focus-visible { outline: 2px solid var(--brand); }
button.primary { background: var(--grad); color: #fff; font-weight: 700; }
button.primary.big { padding: 12px; font-size: 16px; }
button.linkbtn { background: transparent; color: var(--muted); text-decoration: underline; padding: 4px; }
.pill { border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.pill.warn { background: var(--warn); color: #1e1f22; font-weight: 700; }
.rbtn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; background: transparent; color: var(--muted); border-radius: 6px; position: relative; }
.rbtn:hover { background: var(--bg4); color: var(--text); filter: none; }
.rbtn.off { color: var(--bad); }
.rbtn.danger { color: var(--bad); }
.rbtn.danger:hover { background: var(--bad); color: #fff; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: none; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 14px; font-weight: 400; }
label.check input { width: 18px; height: 18px; accent-color: var(--brand); }
input[type=range] { accent-color: var(--brand); }

.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; text-transform: uppercase; flex: none; user-select: none; }

/* ---------- вход ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 15% 10%, rgba(124,92,255,.35), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(255,92,168,.28), transparent 60%), var(--bg0); overflow: auto; }
.card { width: 100%; max-width: 400px; background: var(--bg2); border-radius: 14px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); text-align: center; }
.card label { text-align: left; }
.card h1 { margin: 0; font-size: 28px; }
.card p { margin: 0; }
.login-logo { width: 84px; height: 84px; margin: 0 auto; border-radius: 22px; box-shadow: 0 8px 28px rgba(124,92,255,.5); }

/* ---------- каркас ---------- */
.app { height: 100dvh; display: grid; grid-template-columns: 264px minmax(0, 1fr) 320px; }
.app.chat-closed { grid-template-columns: 264px minmax(0, 1fr); }
.app.chat-closed .chat { display: none; }

/* левая панель */
.side { background: var(--bg1); display: grid; grid-template-rows: auto 1fr auto auto; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; font-weight: 800; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--bg0); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.logo-s { width: 28px; height: 28px; border-radius: 8px; }
.side-scroll { overflow-y: auto; padding: 14px 8px; }
.cat { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 0 8px 6px; }
.room { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 600; }
.room:hover { background: var(--bg3); color: var(--text2); filter: none; }
.room.current { background: var(--bg4); color: var(--text); }
.members { margin: 2px 0 8px 22px; padding: 0; list-style: none; display: grid; gap: 2px; }
.member { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.member:hover { background: var(--bg3); }
.member .av { width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; }
.member.speaking .av { box-shadow: 0 0 0 2px var(--ok); }
.member .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .ic { width: 14px; height: 14px; color: var(--bad); }

/* панель «голосовое соединение» */
.voice-panel { display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 8px 10px; background: var(--bg0); border-radius: 8px 8px 0 0; text-align: left; border-bottom: 1px solid var(--bg3); width: calc(100% - 16px); }
.vp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(35,165,90,.25); flex: none; }
.vp-info { flex: 1; min-width: 0; display: grid; }
.vp-info b { color: var(--ok); font-size: 13px; }
.vp-info small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel { display: flex; align-items: center; gap: 4px; padding: 8px; background: #232428; min-height: 54px; }
.who { flex: 1; min-width: 0; display: grid; margin-left: 4px; line-height: 1.2; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* центр */
.center { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; background: var(--bg2); }
.top { display: flex; gap: 10px; align-items: center; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--bg0); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.mobile-only { display: none; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.empty { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 20px; }
.empty h2 { margin: 12px 0 0; }
.empty p { margin: 0; }
.empty-logo { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 10px 34px rgba(124,92,255,.45); }

.view { display: flex; flex-direction: column; min-height: 0; background: var(--bg0); margin: 0; }
.stage { flex: 1; min-height: 0; margin: 12px 12px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-auto-rows: 220px; align-content: center; gap: 12px; padding: 14px; overflow: auto; flex: 1; min-height: 0; }
.view.has-stage .grid { flex: none; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 190px; grid-auto-rows: 120px; overflow-x: auto; overflow-y: hidden; align-content: start; }

.tile { position: relative; background: var(--bg1); border-radius: 12px; overflow: hidden; display: grid; place-items: center; min-height: 100px; cursor: pointer; box-shadow: 0 0 0 0 var(--ok); transition: box-shadow .12s; }
.stage .tile { height: 100%; }
.tile.speaking { box-shadow: 0 0 0 3px var(--ok); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.screen video, .stage .tile video { object-fit: contain; }
.tile .av { width: 84px; height: 84px; font-size: 36px; }
.view.has-stage .grid .tile .av { width: 48px; height: 48px; font-size: 22px; }
.tile .label { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; align-items: center; background: rgba(0,0,0,.65); padding: 3px 9px; border-radius: 6px; font-size: 13px; color: #fff; max-width: calc(100% - 16px); }
.tile .label .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .label .ic { width: 14px; height: 14px; color: var(--bad); }
.tile .tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .12s; }
.tile:hover .tools, .tile:focus-within .tools { opacity: 1; }
.tile .tools .tbtn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; border-radius: 8px; }
.tile .tools input[type=range] { width: 90px; }
.tile .tools .volbox { display: flex; align-items: center; background: rgba(0,0,0,.65); border-radius: 8px; padding: 0 8px; height: 32px; }
@media (hover: none) { .tile .tools { opacity: 1; } }

/* панель управления звонком */
.bar { display: flex; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bg0); }
.dock { display: flex; gap: 10px; align-items: center; background: var(--bg1); border-radius: 999px; padding: 8px 12px; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.cbtn { width: 48px; height: 48px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--bg4); color: var(--text); transition: background .12s, transform .08s; }
.cbtn .ic { width: 22px; height: 22px; }
.cbtn:active { transform: scale(.94); }
.cbtn.active { background: #fff; color: #1e1f22; }
.cbtn.off { background: var(--bad); color: #fff; }
.cbtn.ns-on { background: linear-gradient(135deg,#7c5cff,#ff5ca8); color: #fff; }
.cbtn.leave { background: var(--bad); color: #fff; width: 64px; border-radius: 24px; }

/* чат */
.chat { background: var(--bg2); border-left: 1px solid var(--bg0); display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--bg0); font-weight: 700; color: var(--text); }
.messages { overflow: auto; padding: 12px 10px; display: grid; gap: 10px; align-content: start; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.msg .av { width: 36px; height: 36px; font-size: 15px; }
.msg .meta b { font-size: 14px; }
.msg time { color: var(--muted); font-size: 11px; margin-left: 6px; }
.msg p { margin: 1px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text2); }
.msg a { color: #7f9bff; }
.msg.sys { display: block; color: var(--muted); font-size: 13px; text-align: center; }
.chat-form { display: flex; gap: 6px; padding: 10px; align-items: center; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.chat-form input { flex: 1; border-radius: 8px; background: var(--bg3); }
.rbtn.send { color: var(--brand); width: 38px; height: 38px; }

/* настройки */
.settings { background: var(--bg2); color: var(--text2); border: 0; border-radius: 14px; padding: 0; width: min(520px, 94vw); max-height: 92dvh; box-shadow: 0 16px 60px rgba(0,0,0,.6); }
.settings::backdrop { background: rgba(0,0,0,.7); }
.set-form { padding: 18px 20px 24px; display: grid; gap: 14px; }
.set-form header { display: flex; align-items: center; justify-content: space-between; }
.set-form h2 { margin: 0; font-size: 22px; }
.set-card { background: var(--bg1); border-radius: 10px; padding: 14px 16px; display: grid; gap: 12px; }
.set-card h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row input { flex: 1; }
.keybtn { background: var(--bg0); border: 1px solid var(--line); min-width: 52px; font-weight: 700; color: var(--text); }
.meter-wrap { display: grid; gap: 6px; }
.meter { height: 10px; background: var(--bg0); border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--warn)); transition: width .08s; }
.logout { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.logout:hover { background: var(--bad); color: #fff; filter: none; }
.invlist { display: grid; gap: 6px; }
.inv { display: flex; align-items: center; gap: 8px; background: var(--bg0); border-radius: 8px; padding: 6px 10px; }
.inv.off { opacity: .55; }
.inv .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv button { padding: 4px 10px; font-size: 13px; }

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  .app, .app.chat-closed { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .app > * { grid-column: 1; grid-row: 1; min-height: 0; }
  .app.mv-side .center { display: none; }
  .app.mv-room .side { display: none; }
  .side { width: 100%; }
  .side-head { height: 56px; font-size: 18px; }
  .room { padding: 12px 12px; font-size: 16px; }
  .member { padding: 6px 8px; font-size: 15px; }
  .member .av { width: 28px; height: 28px; }
  .user-panel { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .rbtn { width: 40px; height: 40px; }
  .mobile-only { display: grid; }
  .top { height: 52px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: 170px; padding: 10px; gap: 8px; }
  .tile .av { width: 64px; height: 64px; font-size: 28px; }
  .view.has-stage .grid { grid-auto-columns: 130px; grid-auto-rows: 96px; }
  .chat { position: fixed; inset: 0; z-index: 20; border-left: 0; height: 100dvh; }
  .app.chat-closed .chat { display: none; }
  .dock { gap: 8px; padding: 8px 10px; }
  .cbtn { width: 46px; height: 46px; }
  .cbtn.leave { width: 58px; }
  .settings { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .login { align-items: start; padding-top: 6vh; }
}
@media (max-width: 380px) {
  .dock { gap: 6px; padding: 6px 8px; }
  .cbtn { width: 42px; height: 42px; }
  .cbtn.leave { width: 52px; }
}

/* подписи под кнопками и закрытые комнаты */
.cbtn .lb { display: none; }
.rbtn.lab .rl { display: none; }
.room .lockic { margin-left: auto; }
.pw { width: min(400px, 94vw); }
.pw .set-form p { margin: 0; }
@media (max-width: 860px) {
  .rbtn.lab { width: auto; padding: 0 10px; grid-auto-flow: column; gap: 6px; font-size: 14px; font-weight: 600; }
  .rbtn.lab .rl { display: inline; }
  .bar { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .dock { width: 100%; max-width: 480px; border-radius: 20px; justify-content: space-between; gap: 4px; padding: 8px; }
  .cbtn, .cbtn.leave { flex: 1; width: auto; max-width: 78px; height: 60px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; }
  .cbtn .lb { display: block; }
  .pw { width: min(400px, 94vw); max-width: 94vw; height: fit-content; max-height: 92dvh; border-radius: 14px; }
}

/* ничего не должно выходить за ширину экрана */
.center { grid-template-columns: minmax(0, 1fr); }
.top, .view, .bar, .dock { min-width: 0; }
#roomTitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .top { gap: 6px; padding: 0 8px; }
  .top > .ic { display: none; }
  .top .spacer { display: none; }
  #roomTitle { flex: 1; }
  #status:not(:empty) { position: fixed; top: 58px; left: 8px; right: 8px; z-index: 10; background: #232428; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--text2); text-align: center; white-space: normal; overflow: visible; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
  .dock { padding: 8px 6px; }
  .cbtn, .cbtn.leave { min-width: 0; font-size: 10.5px; }
}

/* ---------- комнаты: заголовок, шестерёнка, пометки ---------- */
.cat-row { display: flex; align-items: center; justify-content: space-between; padding-right: 6px; }
.rbtn.small { width: 24px; height: 24px; }
.rbtn.small .ic { width: 16px; height: 16px; }
.room { position: relative; }
.room .gear { margin-left: auto; width: 24px; height: 24px; display: none; place-items: center; border-radius: 4px; color: var(--muted); }
.room:hover .gear, .room.current .gear { display: grid; }
.room .gear:hover { background: var(--bg0); color: var(--text); }
.room .gear .ic { width: 15px; height: 15px; }
.room .tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; }
.room .tag + .gear { margin-left: 4px; }
.room .ic.lk { width: 14px; height: 14px; margin-left: auto; opacity: .8; }
.room .ic.lk + .gear, .room .tag + .ic.lk { margin-left: 4px; }
@media (hover: none) { .room .gear { display: grid; } }

/* ---------- кнопка шумодава ---------- */
.cbtn { position: relative; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.bars i { display: block; width: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 7px; }
.bars i:nth-child(3) { height: 10px; }
.cbtn.ns .bars { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); height: 8px; }
.cbtn.ns .bars i:nth-child(1) { height: 3px; } .cbtn.ns .bars i:nth-child(2) { height: 5px; } .cbtn.ns .bars i:nth-child(3) { height: 8px; }
.cbtn.ns-rnnoise { background: var(--grad); color: #fff; box-shadow: 0 0 16px rgba(255,92,168,.6); }
.cbtn.ns-rnnoise .bars i { background: #fff; }
.cbtn.ns-browser { background: linear-gradient(135deg, #2bb7a6, #2f7bff); color: #fff; box-shadow: 0 0 12px rgba(47,123,255,.4); }
.cbtn.ns-browser .bars i:nth-child(-n+2) { background: #fff; }
.cbtn.ns-off .ic { opacity: .5; }
.cbtn.ns-off .lb { text-decoration: line-through; opacity: .7; }
.cbtn.ns .ic { margin-top: -6px; }

/* ---------- всплывающие меню ---------- */
.popover { position: fixed; z-index: 30; width: min(340px, calc(100vw - 16px)); background: #232428; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.55); display: grid; gap: 4px; }
.pop-title { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px 4px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; padding: 10px; border-radius: 8px; width: 100%; }
.opt:hover { background: var(--bg3); filter: none; }
.opt .otext { flex: 1; display: grid; }
.opt b { font-size: 15px; }
.opt small { color: var(--muted); font-size: 12px; }
.opt .chk { visibility: hidden; color: var(--ok); font-weight: 700; }
.opt.sel { background: var(--bg3); }
.opt.sel .chk { visibility: visible; }
.opt .bars { height: 14px; }
.opt .bars i { background: rgba(255,255,255,.2); width: 6px; }
.opt .bars i:nth-child(1) { height: 6px; } .opt .bars i:nth-child(2) { height: 10px; } .opt .bars i:nth-child(3) { height: 14px; }
.opt .bars.on3 i { background: #ff5ca8; }
.opt .bars.on2 i:nth-child(-n+2) { background: #35a7ff; }
.emoji-row { display: flex; justify-content: space-between; gap: 4px; padding: 4px; }
.emoji-row button { font-size: 26px; padding: 6px 8px; background: transparent; border-radius: 10px; line-height: 1; }
.emoji-row button:hover { background: var(--bg3); transform: scale(1.15); filter: none; }

/* ---------- панель справа: чат и люди ---------- */
.chat { grid-template-rows: auto 1fr auto auto; }
.chat-head { padding-left: 8px; }
.tabs { display: flex; gap: 4px; }
.tab { background: transparent; color: var(--muted); padding: 6px 12px; font-weight: 700; border-radius: 6px; }
.tab.active { background: var(--bg4); color: var(--text); }
.tab .cnt { color: var(--muted); font-weight: 600; margin-left: 2px; }
.pane-body { min-height: 0; display: grid; }
.pane-body > * { min-height: 0; overflow: auto; }
.people { padding: 10px; display: grid; gap: 4px; align-content: start; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.person:hover { background: var(--bg3); }
.person .av { width: 32px; height: 32px; font-size: 14px; }
.person .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.person .pn small { color: var(--muted); margin-left: 4px; }
.person .ic { width: 16px; height: 16px; color: var(--muted); }
.person .ic.bad { color: var(--bad); }
.person .rbtn { width: 28px; height: 28px; }
.people-tools { display: flex; gap: 6px; padding-bottom: 8px; }
.people-tools button { flex: 1; font-size: 13px; }
.emoji-panel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px 10px; border-top: 1px solid var(--bg0); background: var(--bg1); max-height: 160px; overflow: auto; }
.emoji-panel button { background: transparent; padding: 4px; font-size: 22px; line-height: 1.1; }
.emoji-panel button:hover { background: var(--bg3); filter: none; }
.badge.soft { background: var(--bg4); color: var(--text); }
.timer { font-variant-numeric: tabular-nums; font-size: 13px; }

/* ---------- плитки: рука, реакции, зеркало ---------- */
.tile .handbadge { position: absolute; top: 8px; left: 8px; font-size: 22px; background: rgba(0,0,0,.65); border-radius: 8px; padding: 2px 6px; animation: wave 1.2s ease-in-out infinite; z-index: 2; }
@keyframes wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
.tile .float { position: absolute; bottom: 36px; font-size: 38px; pointer-events: none; z-index: 3; animation: floatup 2.4s ease-out forwards; }
@keyframes floatup { from { transform: translateY(0) scale(.7); opacity: 1; } to { transform: translateY(-130px) scale(1.2); opacity: 0; } }
body.mirror .tile.local:not(.screen) video { transform: scaleX(-1); }
#reactBtn.hand-up { background: var(--warn); color: #1e1f22; }

/* ---------- телефон: новые элементы ---------- */
@media (max-width: 860px) {
  #viewBtn, #timer { display: none !important; }
  .rbtn.lab .badge { top: -3px; right: -3px; }
  .popover { width: calc(100vw - 16px); }
  .emoji-row button { font-size: 30px; }
  .cbtn.ns .bars { position: static; transform: none; height: 8px; margin-top: -4px; }
  .cbtn.ns .ic { margin-top: 0; }
  .cbtn.ns { gap: 2px; }
  .chat { grid-template-rows: auto 1fr auto auto; }
}

/* ---------- панель звонка в стиле Zoom: у каждой кнопки подпись ---------- */
.dock { gap: 8px; padding: 8px 12px; border-radius: 18px; }
.cbtn, .cbtn.leave { width: 70px; height: 60px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; padding: 0 4px; }
.cbtn.ns { width: 84px; }
.cbtn.leave { width: 70px; }
.cbtn .lb { display: block; line-height: 1.1; white-space: nowrap; }
.cbtn .lb2 { display: block; line-height: 1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.cbtn.ns .ic { margin: 0; }
.cbtn.ns-off .lb2 { opacity: .8; }
.cbtn.ns-rnnoise .lb2, .cbtn.ns-browser .lb2 { color: #fff; }
@media (max-width: 860px) {
  .dock { gap: 4px; padding: 8px 6px; }
  .cbtn, .cbtn.leave { flex: 1; width: auto; max-width: 82px; min-width: 0; height: 62px; font-size: 10.5px; padding: 0 2px; }
  .cbtn.ns { max-width: 92px; flex: 1.2; }
  .cbtn .lb2 { font-size: 10px; }
}
