/* ChatEngine — оформление (семейство Engine: графит и зелёный акцент) */
:root {
  --acc: #2fd39a; --acc2: #12a26e; --acc-d: #0b7a52; --acc-bg: rgba(47,211,154,.12); --acc-ink: #06281b;
  --rail: #0b0d0c; --side: #131615; --main: #191c1b; --panel: #1f2321; --panel2: #252a28; --hover: rgba(255,255,255,.055); --press: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --txt: #e9edeb; --txt2: #b7c0bb; --mut: #87918c; --mut2: #5f6864;
  --red: #f0565a; --yellow: #f2b434; --blue: #4f8cff; --on: #2fd39a; --idle: #f2b434; --dnd: #f0565a; --off: #6c7571;
  --ment: rgba(242,180,52,.08); --ment-l: #f2b434;
  --shadow: 0 18px 48px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  --r: 10px; --fs: 15px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif; --head: "Manrope", "Inter", sans-serif; --mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --rail: #e4e6e3; --side: #f1f2f0; --main: #ffffff; --panel: #ffffff; --panel2: #f3f4f2; --hover: rgba(10,30,20,.055); --press: rgba(10,30,20,.09);
  --line: rgba(10,30,20,.08); --line2: rgba(10,30,20,.14); --txt: #17201c; --txt2: #3d4843; --mut: #6b756f; --mut2: #9aa29e;
  --acc: #12a26e; --acc-bg: rgba(18,162,110,.1); --ment: rgba(242,180,52,.12);
  --shadow: 0 18px 48px -12px rgba(10,30,20,.25), 0 0 0 1px rgba(10,30,20,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--rail); color: var(--txt); font: 14px/1.4 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--mut); }
.ic { width: 20px; height: 20px; flex: none; display: block; }
::selection { background: rgba(47,211,154,.3); }
::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 4px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background-color: var(--mut2); } ::-webkit-scrollbar-track { background: transparent; }
kbd { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; }
code { font: 0.88em var(--mono); background: var(--panel2); padding: 1px 5px; border-radius: 5px; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; background: var(--panel2); color: var(--txt); font-weight: 600; transition: background .15s, transform .1s, filter .15s; border: 1px solid var(--line); white-space: nowrap; }
.btn:hover { background: var(--press); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--acc2); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(18,162,110,.8); } .btn.primary:hover { filter: brightness(1.1); }
.btn.danger { background: var(--red); border-color: transparent; color: #fff; } .btn.danger:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.big { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.full { width: 100%; }
.btn.ok { background: var(--acc2); color: #fff; }
.lnk { color: var(--acc); font-weight: 600; } .lnk:hover { text-decoration: underline; }
.fld { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; }
.fld > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--txt2); }
.fld > small { color: var(--mut); font-size: 12px; }
.fld input, .fld textarea, .fld select, .inp, .row select { width: 100%; padding: 11px 13px; border-radius: 9px; background: var(--rail); border: 1px solid var(--line2); outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical; }
:root[data-theme="light"] .fld input, :root[data-theme="light"] .fld textarea, :root[data-theme="light"] .fld select, :root[data-theme="light"] .inp { background: var(--panel2); }
.fld input:focus, .fld textarea:focus, .fld select:focus, .inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.fld .cnt { align-self: flex-end; margin-top: -30px; margin-right: 10px; color: var(--mut); font-size: 11px; pointer-events: none; }
.pfx { display: flex; align-items: center; border-radius: 9px; background: var(--rail); border: 1px solid var(--line2); padding-left: 12px; }
.pfx i { color: var(--mut); font-style: normal; display: flex; } .pfx i .ic { width: 18px; height: 18px; }
.pfx input { border: 0 !important; background: none !important; box-shadow: none !important; }
.pfx:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.merr2 { display: none; padding: 10px 12px; border-radius: 9px; background: rgba(240,86,90,.12); color: #ff8a8d; font-size: 13px; margin-bottom: 12px; } .merr2.show { display: block; }
:root[data-theme="light"] .merr2 { color: #c4282d; }
.mhint { color: var(--mut); font-size: 13px; margin: 6px 0 14px; }
.row { display: flex; gap: 10px; align-items: center; } .row select { width: auto; flex: 1; }
.grow { flex: 1; min-width: 0; }
.range { width: 100%; accent-color: var(--acc2); }
/* переключатели */
.sw { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.sw input { display: none; }
.sw .tg { width: 42px; height: 24px; border-radius: 12px; background: var(--mut2); position: relative; flex: none; transition: background .2s; margin-top: 1px; }
.sw .tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw input:checked + .tg { background: var(--acc2); } .sw input:checked + .tg::after { transform: translateX(18px); }
.sw input:disabled + .tg { opacity: .4; }
.sw > span:last-child { display: flex; flex-direction: column; gap: 2px; } .sw b { font-weight: 600; display: flex; align-items: center; gap: 6px; } .sw b .ic { width: 16px; height: 16px; } .sw small { color: var(--mut); font-size: 13px; }

/* ---------- аватары ---------- */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative; display: inline-grid; place-items: center; background: var(--c, #12a26e); color: #fff; font: 700 calc(var(--s) * .38)/1 var(--head); user-select: none; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av > span { letter-spacing: -.02em; }
.av.grp .ic { width: 55%; height: 55%; }
.av .st { position: absolute; right: -2px; bottom: -2px; width: calc(var(--s) * .32 + 4px); height: calc(var(--s) * .32 + 4px); min-width: 12px; min-height: 12px; border-radius: 50%; border: 3px solid var(--side); background: var(--off); box-sizing: border-box; }
.av .st.online { background: var(--on); } .av .st.idle { background: var(--idle); } .av .st.dnd { background: var(--dnd); }
.av .st.offline { background: var(--side); box-shadow: inset 0 0 0 calc(var(--s) * .07 + 1px) var(--off); }

/* ---------- загрузка ---------- */
.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--main); }
.boot-logo { animation: bob 1.6s ease-in-out infinite; } @keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.boot-t { color: var(--txt2); font-weight: 600; }
.boot-dots { display: flex; gap: 6px; } .boot-dots i, .tdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: dot 1.2s infinite; } .boot-dots i:nth-child(2), .tdots i:nth-child(2) { animation-delay: .15s; } .boot-dots i:nth-child(3), .tdots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* ---------- вход ---------- */
.auth { height: 100vh; display: grid; place-items: center; position: relative; overflow: auto; padding: 24px; }
.auth-bg { position: fixed; inset: 0; background: radial-gradient(900px 600px at 15% 10%, rgba(47,211,154,.22), transparent 60%), radial-gradient(800px 600px at 90% 90%, rgba(79,140,255,.16), transparent 60%), var(--rail); }
.auth-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at center, #000, transparent 75%); }
.auth-card { position: relative; width: min(440px, 100%); background: var(--panel); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); animation: pop .4s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; } .auth-logo b { font: 800 20px var(--head); display: block; } .auth-logo span { color: var(--mut); font-size: 13px; }
.auth-card h1 { font: 800 26px var(--head); margin: 0 0 20px; }
.auth-err { display: none; color: #ff8a8d; background: rgba(240,86,90,.12); padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; font-size: 13px; } .auth-err.show { display: block; }
.auth-card .btn.big { width: 100%; margin-top: 4px; }
.auth-alt { margin-top: 16px; color: var(--mut); font-size: 13px; }

/* ---------- каркас ---------- */
#app { height: 100vh; display: grid; grid-template-columns: 72px 248px 1fr; }
#offline { position: fixed; top: 0; left: 50%; transform: translate(-50%, -110%); z-index: 90; display: flex; align-items: center; gap: 8px; background: var(--yellow); color: #2a1f00; padding: 8px 16px; border-radius: 0 0 12px 12px; font-weight: 700; font-size: 13px; transition: transform .3s; }
#offline.show { transform: translate(-50%, 0); } #offline .ic { width: 16px; height: 16px; }

/* рейл серверов */
#rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
#rail::-webkit-scrollbar { display: none; }
.ri { position: relative; width: 72px; display: flex; justify-content: center; }
.ri .pill { position: absolute; left: 0; top: 50%; width: 4px; height: 0; margin-top: 0; background: var(--txt); border-radius: 0 4px 4px 0; transition: height .2s, margin-top .2s; }
.ri.unread .pill { height: 8px; margin-top: -4px; } .ri:hover .pill { height: 20px; margin-top: -10px; } .ri.on .pill { height: 40px; margin-top: -20px; }
.rb { width: 48px; height: 48px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; overflow: hidden; transition: border-radius .2s, background .2s, color .2s; color: var(--txt); }
.rb img { width: 100%; height: 100%; object-fit: cover; }
.ri:hover .rb, .ri.on .rb { border-radius: 16px; }
.ri:hover .rb.g, .ri.on .rb.g { background: var(--acc2); color: #fff; }
.rb.home { color: var(--txt); } .ri.on .rb.home, .ri:hover .rb.home { background: var(--acc2); color: #fff; }
.rb.home .logo { width: 30px; height: 30px; }
.rb.act { color: var(--acc); } .ri:hover .rb.act { background: var(--acc2); color: #fff; }
.rb .gi { font: 700 15px var(--head); letter-spacing: -.02em; }
.rsep { width: 32px; height: 2px; border-radius: 1px; background: var(--line2); margin: 2px 0; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); text-align: center; flex: none; }
.ri .badge { position: absolute; right: 10px; bottom: -2px; border: 3px solid var(--rail); height: 24px; line-height: 18px; min-width: 24px; border-radius: 12px; }
.ri .vdot { position: absolute; right: 10px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc2); border: 3px solid var(--rail); display: grid; place-items: center; color: #fff; }
.ri .vdot .ic { width: 11px; height: 11px; }
.ri.dropb .rb { box-shadow: 0 -3px 0 var(--acc); }
.ri.ping .rb { border-radius: 50%; }

/* боковая панель */
#side { background: var(--side); display: flex; flex-direction: column; min-width: 0; border-top-left-radius: 14px; overflow: hidden; }
#sideBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ghead { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.ghead:hover, .ghead.open { background: var(--hover); } .ghead b { flex: 1; font: 700 15px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ghead .ic { width: 18px; height: 18px; transition: transform .2s; } .ghead.open .ic { transform: rotate(180deg); }
.chlist { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.chlist::-webkit-scrollbar { width: 8px; } .chlist::-webkit-scrollbar-thumb { border-width: 2px; }
.cat { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 4px 2px; color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; user-select: none; }
.cat span { display: flex; align-items: center; gap: 2px; } .cat .ic { width: 12px; height: 12px; transition: transform .15s; } .cat.col .ic { transform: rotate(-90deg); }
.cat:hover { color: var(--txt2); } .cat button { color: var(--mut); padding: 2px; border-radius: 4px; } .cat button:hover { color: var(--txt); } .cat button .ic { width: 16px; height: 16px; }
.cat.dmcat { cursor: default; }
.ch { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; margin: 1px 0; border-radius: 7px; color: var(--mut); cursor: pointer; position: relative; transition: background .1s, color .1s; }
.ch:hover { background: var(--hover); color: var(--txt2); } .ch.on { background: var(--press); color: var(--txt); }
.ch.unread { color: var(--txt); } .ch.unread::before { content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: var(--txt); }
.ch .chi { position: relative; display: flex; } .ch .chi .ic { width: 20px; height: 20px; opacity: .8; }
.ch .lk { position: absolute; right: -3px; top: -3px; background: var(--side); border-radius: 50%; } .ch .lk .ic { width: 10px; height: 10px; }
.ch .chn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 15px; }
.ch.unread .chn { font-weight: 700; }
.ch .cha { display: none; gap: 2px; } .ch:hover .cha, .ch.on .cha { display: flex; } .ch .cha button { color: var(--mut); padding: 2px; border-radius: 4px; display: flex; } .ch .cha button:hover { color: var(--txt); } .ch .cha .ic { width: 16px; height: 16px; }
.ch .lim { font-size: 11px; color: var(--mut); background: var(--rail); padding: 1px 6px; border-radius: 6px; }
.ch.dropb { box-shadow: 0 -2px 0 var(--acc); }
.ch.big { height: 42px; color: var(--txt2); margin-bottom: 4px; } .ch.big .ic { width: 22px; height: 22px; } .ch.big .chn { font-weight: 600; }
.ch.dm { height: 44px; gap: 12px; } .ch.dm .chn { display: flex; flex-direction: column; font-size: 15px; } .ch.dm .chn b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; } .ch.dm.unread .chn b { font-weight: 700; } .ch.dm .chn small { font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; }
.ch.dm .av .st { border-color: var(--side); } .ch.dm:hover .av .st { border-color: #1c201e; }
.ch.dm .x { display: none; color: var(--mut); } .ch.dm:hover .x { display: flex; } .ch.dm .x:hover { color: var(--txt); } .ch.dm .x .ic { width: 16px; height: 16px; }
.ch .incall { color: var(--acc); display: flex; } .ch .incall .ic { width: 16px; height: 16px; }
.vusers { padding: 0 0 4px 30px; }
.vu { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--txt2); cursor: pointer; font-size: 14px; }
.vu:hover { background: var(--hover); color: var(--txt); }
.vu .av { box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; } .vu.speaking .av { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px var(--acc); }
.vu .vn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vu i { display: flex; color: var(--mut); } .vu i .ic { width: 16px; height: 16px; } .vu i.red { color: var(--red); }
.live { background: var(--red); color: #fff; font: 800 10px/1 var(--font); padding: 3px 5px; border-radius: 4px; letter-spacing: .03em; }
.empty-s { color: var(--mut); padding: 14px 10px; font-size: 13px; text-align: center; }
.dmsearch { height: 52px; flex: none; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.dmsearch button { width: 100%; height: 30px; border-radius: 7px; background: var(--rail); color: var(--mut); text-align: left; padding: 0 10px; font-size: 13px; }

/* панель голосовой связи */
#voicePanel { flex: none; background: #0f1211; border-bottom: 1px solid var(--line); display: none; padding: 10px; } #voicePanel.on { display: block; }
:root[data-theme="light"] #voicePanel { background: #e9ebe8; }
.vp-top { display: flex; align-items: center; gap: 6px; }
.vp-st { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; } .vp-st > .ic { width: 18px; height: 18px; }
.vp-st span { display: flex; flex-direction: column; min-width: 0; } .vp-st b { font-size: 14px; } .vp-st small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } .vp-st small:hover { text-decoration: underline; color: var(--txt2); }
.vp-st.ok { color: var(--acc); } .vp-st.wait { color: var(--yellow); } .vp-st.bad { color: var(--red); }
.vp-btns { display: flex; gap: 8px; margin-top: 8px; }
.vb { flex: 1; height: 32px; border-radius: 8px; background: var(--panel2); display: grid; place-items: center; color: var(--txt2); transition: background .15s; } .vb:hover { background: var(--press); color: var(--txt); } .vb.on { background: var(--acc2); color: #fff; } .vb .ic { width: 18px; height: 18px; }
/* панель пользователя */
#userPanel { flex: none; height: 56px; background: #0f1211; display: flex; align-items: center; gap: 2px; padding: 0 8px; }
:root[data-theme="light"] #userPanel { background: #e9ebe8; }
.mebtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; cursor: pointer; } .mebtn:hover { background: var(--hover); }
.mebtn .av .st { border-color: #0f1211; } :root[data-theme="light"] .mebtn .av .st { border-color: #e9ebe8; }
.mn { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .mn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mn small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--txt2); transition: background .12s; } .ub:hover { background: var(--hover); color: var(--txt); } .ub .ic { width: 20px; height: 20px; } .ub.red { color: var(--red); }
#vpLeave { color: var(--txt2); } #vpLeave:hover { color: var(--red); }

/* главная область */
#main { background: var(--main); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mhead { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.15); position: relative; z-index: 2; min-width: 0; }
.mhead > .ic, .mhead .hic .ic { width: 24px; height: 24px; color: var(--mut); }
.mhead .ht, .mhead > b { font: 700 16px var(--head); white-space: nowrap; }
.mhead .topic { color: var(--mut); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; cursor: default; }
.vsep { width: 1px; height: 24px; background: var(--line2); flex: none; }
.hb { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--mut); transition: color .12s, background .12s; flex: none; } .hb:hover, .hb.on { color: var(--txt); } .hb:hover { background: var(--hover); } .hb .ic { width: 22px; height: 22px; }
.hb.mob { display: none; }
.hsearch { position: relative; width: 160px; transition: width .2s; flex: none; } .hsearch:focus-within { width: 240px; }
.hsearch input { width: 100%; height: 28px; border-radius: 6px; border: 0; background: var(--rail); padding: 0 28px 0 8px; font-size: 13px; outline: none; }
.hsearch .ic { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; color: var(--mut); pointer-events: none; }
.mhead.dark { background: #0d0f0e; } :root[data-theme="light"] .mhead.dark { background: var(--panel2); }

/* друзья */
.ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ftabs button { height: 30px; padding: 0 10px; border-radius: 7px; color: var(--txt2); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ftabs button:hover { background: var(--hover); color: var(--txt); } .ftabs button.on { background: var(--press); color: var(--txt); }
.ftabs .addt { background: var(--acc2); color: #fff; } .ftabs .addt:hover { background: var(--acc-d); color: #fff; } .ftabs .addt.on { background: transparent; color: var(--acc); }
.fwrap { flex: 1; min-height: 0; display: flex; }
.fbody { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 20px 20px 28px; }
.fsearch { position: relative; margin-bottom: 18px; } .fsearch input { width: 100%; height: 36px; border-radius: 8px; border: 0; background: var(--rail); padding: 0 36px 0 12px; outline: none; } .fsearch .ic { position: absolute; right: 10px; top: 8px; color: var(--mut); }
.flist h4, .members h4 { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 8px; }
.frow { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.frow:hover { background: var(--hover); border-color: transparent; } .frow:hover + .frow { border-color: transparent; }
.fn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fn b { font-weight: 600; } .fn small { color: var(--mut); font-size: 13px; }
.fa { display: flex; gap: 10px; }
.ib { width: 36px; height: 36px; border-radius: 50%; background: var(--side); display: grid; place-items: center; color: var(--txt2); transition: color .12s, background .12s; } .frow:hover .ib { background: var(--rail); } .ib:hover { color: var(--txt); } .ib .ic { width: 18px; height: 18px; }
.ib.ok:hover { color: var(--acc); } .ib.no:hover { color: var(--red); }
.fempty { text-align: center; color: var(--mut); padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; } .fempty .logo { opacity: .5; filter: grayscale(.4); } .fempty p { max-width: 380px; margin: 0; } .fempty.sm { padding: 20px; }
.addf h2 { font: 800 18px var(--head); margin: 6px 0 6px; } .addf p { color: var(--mut); margin: 0 0 16px; }
.addbox { display: flex; align-items: center; gap: 10px; background: var(--rail); border-radius: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line2); transition: border-color .15s, box-shadow .15s; }
.addbox:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); } .addbox.ok { border-color: var(--acc); } .addbox.bad { border-color: var(--red); }
.addbox input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; height: 34px; }
.addmsg { font-size: 13px; margin-top: 8px; min-height: 18px; } .addmsg.ok { color: var(--acc); } .addmsg.bad { color: var(--red); }
.addhint { display: flex; gap: 10px; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--side); color: var(--txt2); font-size: 13px; align-items: center; } .addhint .ic { color: var(--acc); }
.active { width: 340px; flex: none; border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; } .active h3 { font: 800 20px var(--head); margin: 6px 0 16px; }
.aempty { text-align: center; padding: 16px; } .aempty b { display: block; margin-bottom: 4px; } .aempty p { color: var(--mut); font-size: 13px; margin: 0; }
.acard { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; } .acard:hover { background: var(--hover); } .acard b { display: block; } .acard small { color: var(--mut); }

/* чат */
.cwrap { flex: 1; min-height: 0; display: flex; }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat.dropping::after { content: "Отпустите, чтобы прикрепить файлы"; position: absolute; inset: 12px; border: 2px dashed var(--acc); border-radius: 16px; background: rgba(15,18,17,.85); display: grid; place-items: center; font: 700 18px var(--head); color: var(--acc); z-index: 10; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 0 18px; overflow-anchor: none; }
.mlist { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; }
.mwelcome { padding: 32px 16px 16px; margin-top: auto; } .mwelcome h1 { font: 800 30px var(--head); margin: 10px 0 4px; } .mwelcome h3 { font-weight: 500; margin: 0 0 10px; color: var(--txt2); } .mwelcome p { color: var(--mut); margin: 0 0 12px; } .wbtns { display: flex; gap: 8px; }
.bighash { width: 68px; height: 68px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; } .bighash .ic { width: 40px; height: 40px; }
.day { display: flex; align-items: center; margin: 18px 16px 6px; color: var(--mut); font-size: 12px; font-weight: 600; } .day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line2); } .day span { padding: 0 8px; }
.newline { display: flex; align-items: center; margin: 4px 16px 4px; } .newline::before { content: ""; flex: 1; height: 1px; background: var(--red); } .newline span { background: var(--red); color: #fff; font: 800 10px/1 var(--font); padding: 3px 6px; border-radius: 0 4px 4px 0; }
.msg { position: relative; padding: 2px 48px 2px 72px; margin-top: 16px; font-size: var(--fs); line-height: 1.4; }
.msg.grp { margin-top: 0; }
.msg:hover { background: rgba(0,0,0,.08); } :root[data-theme="light"] .msg:hover { background: rgba(10,30,20,.025); }
.msg.ment { background: var(--ment); } .msg.ment::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ment-l); }
.msg.flash { animation: flash 1.6s; } @keyframes flash { 0%, 40% { background: var(--acc-bg); } }
.msg.pend .mc { opacity: .5; } .msg.fail .mc { color: var(--red); }
.msg .mav { position: absolute; left: 16px; top: 4px; cursor: pointer; }
.msg .mav:active { transform: translateY(1px); }
.mrow { display: block; }
.mh { display: flex; align-items: baseline; gap: 8px; } .mh .un { font-weight: 600; cursor: pointer; } .mh .un:hover { text-decoration: underline; }
.mh time { font-size: 12px; color: var(--mut); }
.mh .crown { color: var(--yellow); display: inline-flex; } .mh .crown .ic { width: 14px; height: 14px; }
.msg time.side { position: absolute; left: 0; width: 72px; text-align: center; font-size: 11px; color: var(--mut); top: 5px; opacity: 0; }
.msg.grp:hover time.side { opacity: 1; }
.mc { word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--txt); }
.mc b { font-weight: 700; } .mc .quote { display: inline-block; border-left: 4px solid var(--mut2); padding-left: 10px; color: var(--txt2); }
.mc pre.code { background: var(--rail); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; overflow-x: auto; white-space: pre; } .mc pre.code code { background: none; padding: 0; }
.mc .jumbo { font-size: 44px; line-height: 1.2; }
.spoiler { background: var(--mut2); color: transparent; border-radius: 4px; cursor: pointer; padding: 0 2px; transition: background .2s; } .spoiler.open { background: var(--press); color: inherit; cursor: auto; }
.mention { background: rgba(47,211,154,.18); color: var(--acc); border-radius: 4px; padding: 0 2px; font-weight: 600; cursor: pointer; } .mention:hover { background: var(--acc2); color: #fff; }
.mention.role { background: color-mix(in srgb, var(--rc) 20%, transparent); color: var(--rc); }
.edited { font-size: 11px; color: var(--mut); }
.rref { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt2); margin: 2px 0 2px 0; padding-left: 0; position: relative; cursor: pointer; min-width: 0; }
.rref::before { content: ""; position: absolute; left: -38px; top: 50%; width: 32px; height: 12px; border-left: 2px solid var(--mut2); border-top: 2px solid var(--mut2); border-top-left-radius: 6px; }
.rref span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; } .rref:hover span { opacity: 1; color: var(--txt); }
.msg .rref + .mrow { } .msg:has(.rref) { margin-top: 16px; }
.msg.sys { display: flex; align-items: center; gap: 0; color: var(--mut); padding-left: 72px; margin-top: 8px; min-height: 30px; }
.sysic { position: absolute; left: 28px; display: flex; color: var(--mut); } .sysic .ic { width: 18px; height: 18px; } .sysic.green { color: var(--acc); } .sysic.red { color: var(--red); }
.systx b { color: var(--txt); font-weight: 600; cursor: pointer; } .systx time { font-size: 12px; margin-left: 4px; }
.mtools { position: absolute; right: 14px; top: -16px; display: none; background: var(--panel); border-radius: 9px; box-shadow: var(--shadow); padding: 2px; z-index: 3; }
.msg:hover .mtools { display: flex; }
.mtools button { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--txt2); font-size: 17px; } .mtools button:hover { background: var(--hover); color: var(--txt); } .mtools .ic { width: 18px; height: 18px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rc { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--panel2); border: 1px solid transparent; font-size: 15px; transition: border-color .12s; }
.rc b { font-size: 13px; color: var(--txt2); } .rc:hover { border-color: var(--line2); } .rc.me { background: var(--acc-bg); border-color: var(--acc); } .rc.me b { color: var(--acc); }
.rc.add { display: none; color: var(--mut); } .msg:hover .rc.add { display: flex; } .rc.add .ic { width: 16px; height: 16px; }
.mfail { font-size: 12px; color: var(--red); margin-top: 2px; }
.att { margin-top: 6px; max-width: 100%; }
.att.img img { max-width: min(420px, 100%); height: auto; max-height: 340px; border-radius: 10px; display: block; cursor: zoom-in; background: var(--panel2); object-fit: contain; }
.att.vid video { max-width: min(480px, 100%); max-height: 340px; border-radius: 10px; background: #000; display: block; }
.att.file, .att.aud { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; max-width: 440px; }
.att .fi { width: 36px; height: 44px; border-radius: 6px; background: var(--acc-bg); color: var(--acc); display: grid; place-items: center; flex: none; } .att .fm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .att .fm a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .att .fm small { color: var(--mut); font-size: 12px; }
.att.aud audio { width: 100%; margin-top: 6px; height: 32px; }
.att .dl { color: var(--mut); } .att .dl:hover { color: var(--txt); }
.embed { margin-top: 6px; max-width: 440px; border-left: 4px solid #ff0033; background: var(--panel); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .embed b { font-size: 12px; color: var(--mut); } .embed a { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ytp { position: relative; margin-top: 6px; cursor: pointer; border-radius: 8px; overflow: hidden; } .ytp img { width: 100%; display: block; } .ytp span { position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: rgba(255,0,51,.9); display: grid; place-items: center; color: #fff; } .ytp span .ic { width: 28px; height: 28px; fill: #fff; }
.ytf { width: 400px; max-width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; margin-top: 6px; }
.editbox textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; outline: none; resize: none; font-size: var(--fs); line-height: 1.4; } .editbox small { font-size: 12px; color: var(--mut); }
.mskel { padding: 20px 16px; display: flex; flex-direction: column; gap: 22px; margin-top: auto; } .sk { display: flex; gap: 14px; } .sk i { display: block; background: var(--panel2); border-radius: 6px; height: 14px; animation: sh 1.4s infinite; } .sk i.a { width: 40px; height: 40px; border-radius: 50%; flex: none; } .sk div { display: flex; flex-direction: column; gap: 8px; }
@keyframes sh { 50% { opacity: .5; } }
.merr { color: var(--red); padding: 20px; text-align: center; margin-top: auto; }
.jump { position: absolute; left: 16px; right: 16px; bottom: 82px; display: flex; align-items: center; justify-content: space-between; background: var(--blue); color: #fff; border-radius: 8px 8px 0 0; padding: 6px 12px; font-size: 13px; font-weight: 600; z-index: 3; } .jump button { display: flex; align-items: center; gap: 4px; font-weight: 700; } .jump .ic { width: 16px; height: 16px; }

/* поле ввода */
.composer-wrap { padding: 0 16px; position: relative; flex: none; }
.composer { display: flex; align-items: flex-end; gap: 4px; background: var(--panel2); border-radius: 12px; padding: 6px 8px; border: 1px solid var(--line); transition: border-color .15s; }
.composer:focus-within { border-color: var(--line2); }
:root[data-theme="light"] .composer { background: var(--panel2); }
.composer textarea { flex: 1; border: 0; background: none; outline: none; resize: none; padding: 8px 4px; font-size: var(--fs); line-height: 1.4; max-height: 300px; min-height: 22px; }
.cbtn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--txt2); flex: none; transition: color .12s, background .12s, transform .15s; } .cbtn:hover { color: var(--txt); background: var(--hover); } .cbtn .ic { width: 22px; height: 22px; }
#cAttach { background: var(--txt2); color: var(--panel2); width: 26px; height: 26px; border-radius: 50%; margin: 5px; } #cAttach .ic { width: 16px; height: 16px; stroke-width: 3; } #cAttach:hover { background: var(--txt); }
.cbtn.send { color: var(--acc); } .cbtn.send:hover { transform: translateX(2px); }
#cEmoji:hover .ic { transform: scale(1.12) rotate(-8deg); } #cEmoji .ic { transition: transform .15s; }
.replybar { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 12px 12px 0 0; padding: 8px 14px; margin-bottom: -6px; padding-bottom: 14px; font-size: 13px; color: var(--txt2); } .replybar button { color: var(--mut); } .replybar button:hover { color: var(--txt); } .replybar .ic { width: 18px; height: 18px; }
.uplist { display: flex; gap: 10px; overflow-x: auto; background: var(--panel); border-radius: 12px 12px 0 0; padding: 12px 12px 18px; margin-bottom: -6px; }
.up { position: relative; width: 150px; flex: none; background: var(--panel2); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .up img, .up .fi { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; display: grid; place-items: center; background: var(--rail); } .up span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up button { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--red); } .up button .ic { width: 16px; height: 16px; }
.cdis { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--panel2); border-radius: 12px; padding: 14px; color: var(--mut); font-size: 14px; }
.typing { height: 24px; padding: 2px 18px; font-size: 12px; color: var(--txt2); display: flex; align-items: center; gap: 6px; flex: none; } .typing b { color: var(--txt); } .tdots { display: flex; gap: 3px; margin-right: 2px; } .tdots i { width: 5px; height: 5px; background: var(--txt2); }
.slow { font-size: 12px; color: var(--mut); padding: 4px 4px 0; display: flex; gap: 4px; align-items: center; } .slow .ic { width: 14px; height: 14px; }
.ac { position: absolute; left: 16px; right: 16px; bottom: calc(100% + 6px); background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 5; max-height: 360px; overflow-y: auto; }
.ac h5 { margin: 4px 8px 8px; font-size: 12px; color: var(--mut); text-transform: uppercase; }
.aci { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; cursor: pointer; } .aci.on { background: var(--press); } .aci small { margin-left: auto; color: var(--mut); } .aci .ic { width: 20px; height: 20px; color: var(--mut); }
.acat { width: 24px; text-align: center; font-weight: 700; font-size: 18px; }

/* участники */
.members { width: 248px; flex: none; background: var(--side); overflow-y: auto; padding: 8px 8px 16px; }
.members h4 { padding: 16px 8px 4px; margin: 0; }
.mem { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border-radius: 7px; cursor: pointer; } .mem:hover { background: var(--hover); } .mem.off { opacity: .4; } .mem.off:hover { opacity: 1; }
.mem .mn b { font-weight: 500; color: var(--txt2); } .mem:hover .mn b { color: var(--txt); }
.mem .crown { color: var(--yellow); display: inline-flex; margin-left: 4px; vertical-align: -2px; } .mem .crown .ic { width: 14px; height: 14px; }
.mem .mn { flex-direction: row; flex-wrap: wrap; align-items: center; } .mem .mn small { width: 100%; }
.mem .mn small.act { display: flex; align-items: center; gap: 4px; color: var(--acc); } .mem .mn small.act .ic { width: 12px; height: 12px; }

/* голосовая сцена */
.stage { flex: 1; min-height: 0; background: #0a0c0b; display: flex; flex-direction: column; position: relative; }
:root[data-theme="light"] .stage { background: #1b1f1d; }
.stjoin { margin: auto; text-align: center; color: #e9edeb; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.stjoin h2 { font: 800 28px var(--head); margin: 6px 0 0; } .stjoin p { color: #9aa49f; margin: 0 0 14px; }
.stjoin .big { width: 96px; height: 96px; border-radius: 50%; background: #1b1f1d; display: grid; place-items: center; } .stjoin .big .ic { width: 44px; height: 44px; }
.stav { display: flex; } .stav .av { margin: 0 -6px; border: 4px solid #0a0c0b; }
.tiles { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: minmax(160px, 1fr); align-content: center; }
.tiles.n1 { grid-template-columns: minmax(0, 960px); justify-content: center; } .tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.focused { grid-template-columns: repeat(auto-fill, 220px); grid-auto-rows: 124px; grid-template-rows: 1fr; align-content: start; }
.tiles.focused .tile.focus { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 0; }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c, #12a26e) 30%, #151817); display: grid; place-items: center; aspect-ratio: 16/9; max-height: 100%; width: 100%; cursor: pointer; box-shadow: inset 0 0 0 0 var(--acc); transition: box-shadow .12s; }
.tile.scr { background: #000; }
.tile.speaking { box-shadow: inset 0 0 0 3px var(--acc); }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; } .tile.hasv video { object-fit: cover; } .tile video.mirror { transform: scaleX(-1); }
.tile.scr video { object-fit: contain; }
.tav .av { box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .15s; } .tile.speaking .tav .av { transform: scale(1.04); box-shadow: 0 0 0 4px var(--acc), 0 8px 30px rgba(0,0,0,.4); }
.tl { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); max-width: calc(100% - 20px); } .tl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-m { display: flex; } .ti-m .ic { width: 15px; height: 15px; } .ti-m.red { color: var(--red); }
.tbtn { position: absolute; right: 10px; top: 10px; opacity: 0; transition: opacity .15s; } .tile:hover .tbtn { opacity: 1; } .tbtn button { width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; } .tbtn .ic { width: 16px; height: 16px; }
.tph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9aa49f; } .tph .ic { width: 40px; height: 40px; }
.tile:fullscreen { border-radius: 0; aspect-ratio: auto; }
.vctl { flex: none; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px 20px; }
.vcb { width: 52px; height: 52px; border-radius: 50%; background: #262b29; color: #e9edeb; display: grid; place-items: center; transition: background .15s, transform .1s; } .vcb:hover { background: #313734; } .vcb:active { transform: scale(.94); } .vcb .ic { width: 24px; height: 24px; }
.vcb.on { background: #e9edeb; color: #111; } .vcb.red { background: rgba(240,86,90,.18); color: var(--red); } .vcb.hang { background: var(--red); color: #fff; width: 64px; border-radius: 26px; } .vcb.hang:hover { filter: brightness(1.1); }
.callbox { flex: none; background: #0a0c0b; display: none; flex-direction: column; max-height: 52vh; border-bottom: 1px solid var(--line); } .callbox.on { display: flex; }
.ctiles { flex: 1; min-height: 160px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 18px 16px 4px; flex-wrap: wrap; overflow-y: auto; }
.ctiles .tile { width: 300px; max-width: 46%; }
.ctiles.focused .tile.focus { width: 100%; max-width: 860px; }
.ctiles.focused .tile:not(.focus) { width: 160px; }
.cjoin-t { color: #9aa49f; font-weight: 600; margin-right: 6px; }

/* звонок */
.callov { position: fixed; inset: 0; z-index: 80; background: rgba(5,7,6,.6); backdrop-filter: blur(4px); display: grid; place-items: center; opacity: 0; transition: opacity .2s; } .callov.in { opacity: 1; }
.callcard { width: 260px; background: #151817; color: #e9edeb; border-radius: 22px; padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow); animation: pop .35s cubic-bezier(.2,1.3,.4,1); }
.callcard > b { font: 800 20px var(--head); margin-top: 10px; } .callcard > span { color: #9aa49f; font-size: 13px; }
.cring { border-radius: 50%; animation: ring 1.5s infinite; } @keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(47,211,154,.6); } 70% { box-shadow: 0 0 0 22px rgba(47,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(47,211,154,0); } }
.cbtns { display: flex; gap: 14px; margin-top: 18px; }
.cb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .12s; } .cb:hover { transform: scale(1.08); } .cb .ic { width: 24px; height: 24px; }
.cb.no { background: var(--red); } .cb.yes { background: #23a55a; } .cb.vid { background: #2e3431; }

/* всплывающие меню */
.menu { position: fixed; z-index: 100; min-width: 220px; max-width: 300px; background: var(--panel); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; animation: mIn .12s ease-out; max-height: 80vh; overflow-y: auto; }
@keyframes mIn { from { opacity: 0; transform: scale(.97); } }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-align: left; font-size: 14px; color: var(--txt2); font-weight: 500; }
.menu button span { flex: 1; display: flex; flex-direction: column; } .menu button small { font-size: 12px; color: var(--mut); }
.menu button:hover { background: var(--acc2); color: #fff; } .menu button:hover small { color: rgba(255,255,255,.75); }
.menu button.danger { color: var(--red); } .menu button.danger:hover { background: var(--red); color: #fff; }
.menu button.on { color: var(--txt); font-weight: 700; }
.menu button .ic { width: 18px; height: 18px; }
.menu button:disabled { opacity: .4; pointer-events: none; }
.menu hr { border: 0; height: 1px; background: var(--line2); margin: 4px 6px; }
.menu .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.menu .chk { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--mut2); display: grid; place-items: center; } .menu .chk.y { background: var(--acc2); border-color: var(--acc2); color: #fff; } .menu .chk .ic { width: 14px; height: 14px; stroke-width: 3; }
.popout { position: fixed; z-index: 100; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); animation: mIn .14s ease-out; overflow: hidden; }
.popout.profile { width: 320px; }
.popout.profile.static { position: relative; animation: none; z-index: 1; }
.pbanner { height: 100px; }
.pav { position: absolute; left: 16px; top: 52px; border-radius: 50%; padding: 6px; background: var(--panel); cursor: pointer; } .pav .av .st { border-color: var(--panel); border-width: 4px; }
.pbody { padding: 50px 16px 16px; } .pname b { font: 800 20px var(--head); display: block; } .pname span { color: var(--txt2); font-size: 14px; } .pcustom { margin: 8px 0 0; font-size: 14px; }
.psec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .psec h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--txt2); } .psec p { margin: 0; font-size: 14px; white-space: pre-wrap; }
.proles { display: flex; flex-wrap: wrap; gap: 4px; }
.role { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--panel2); font-size: 12px; font-weight: 600; } .role i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); } .role button { display: none; color: var(--mut); } .role:hover button { display: flex; } .role button .ic { width: 12px; height: 12px; }
.role.add { width: 24px; padding: 0; justify-content: center; color: var(--mut); } .role.add:hover { color: var(--txt); } .role.add .ic { width: 14px; height: 14px; }
.pmut { color: var(--mut); font-size: 12px; margin-top: 12px; min-height: 0; }
.pact { display: flex; gap: 8px; margin-top: 14px; } .pact input { flex: 1; min-width: 0; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--rail); padding: 0 10px; outline: none; } .pact input:focus { border-color: var(--acc); }
#pEdit { margin-top: 14px; }
.popout.emoji { width: 360px; height: 400px; display: flex; flex-direction: column; } .popout.emoji input { margin: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: var(--rail); outline: none; }
.emb { flex: 1; overflow-y: auto; padding: 0 8px 8px; } .emb h5 { font-size: 11px; text-transform: uppercase; color: var(--mut); margin: 8px 4px 4px; position: sticky; top: 0; background: var(--panel); padding: 4px 0; }
.emg { display: grid; grid-template-columns: repeat(8, 1fr); } .emg button { font-size: 24px; height: 40px; border-radius: 8px; transition: background .1s, transform .1s; } .emg button:hover { background: var(--hover); transform: scale(1.15); }
.popout.pins { width: 420px; max-height: 70vh; display: flex; flex-direction: column; } .popout.pins header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--rail); } .pl { overflow-y: auto; padding: 8px; } .pmsg { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; padding: 4px 0 8px; } .pmsg:hover { border-color: var(--line2); } .pmsg .msg { margin-top: 8px; padding-right: 12px; } .pmsg .msg:hover { background: none; }
.pempty { text-align: center; color: var(--mut); padding: 36px 16px; } .pempty .ic { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .6; } .pad { padding: 16px; }

/* модальные окна */
.modal-ov { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .18s; } .modal-ov.in { opacity: 1; }
:root[data-theme="light"] .modal-ov { background: rgba(10,20,15,.5); }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; transform: scale(.96); transition: transform .22s cubic-bezier(.2,1.3,.4,1); overflow: hidden; }
.modal-ov.in .modal { transform: none; }
.modal.small { width: min(440px, 100%); }
.modal header { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 4px; } .modal header > div { flex: 1; } .modal h2 { font: 800 20px var(--head); margin: 0; } .modal header p { margin: 4px 0 0; color: var(--mut); font-size: 13px; }
.mx { color: var(--mut); padding: 4px; border-radius: 6px; } .mx:hover { color: var(--txt); background: var(--hover); }
.mbody { padding: 16px 20px; overflow-y: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; background: var(--side); }
.mtext { margin: 0 0 12px; color: var(--txt2); }
.mprev { border: 1px solid var(--line); border-radius: 10px; padding: 4px 0 10px; max-height: 260px; overflow: auto; } .mprev .msg { margin-top: 8px; } .mprev .msg:hover { background: none; } .mprev .mtools { display: none !important; }
.lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--txt2); margin: 0 0 8px; }
.ctype { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ctype label { cursor: pointer; } .ctype input { display: none; }
.ctype label > span { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--side); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.ctype label > span .ic { grid-row: span 2; width: 24px; height: 24px; color: var(--mut); } .ctype small { color: var(--mut); font-size: 13px; }
.ctype input:checked + span { border-color: var(--acc); background: var(--acc-bg); } .ctype input:checked + span .ic { color: var(--acc); }
.welcome { text-align: center; padding: 10px 6px 4px; } .welcome h2 { font: 800 24px var(--head); margin: 14px 0 8px; } .welcome p { color: var(--txt2); margin: 0 0 18px; }
.wsteps { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .wsteps > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--side); } .wsteps > div > b { width: 28px; height: 28px; border-radius: 50%; background: var(--acc2); color: #fff; display: grid; place-items: center; flex: none; } .wsteps span { color: var(--txt2); font-size: 14px; }
.wbtns2 { display: flex; gap: 10px; justify-content: center; }
/* создание сервера */
.modal.cguild { width: min(460px, 100%); }
.cg-steps { position: relative; }
.cg-s { display: none; text-align: center; animation: slideIn .28s cubic-bezier(.2,1,.4,1); } .cg-s.on { display: block; } @keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
.cg-s h2 { font: 800 24px var(--head); margin: 8px 0 8px; } .msub { color: var(--txt2); margin: 0 0 20px; }
.tpls { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tpl { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); transition: background .15s, border-color .15s; } .tpl:hover { background: var(--hover); border-color: var(--acc); }
.tpl .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--acc-bg); color: var(--acc); display: grid; place-items: center; flex: none; } .tpl > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .tpl small { color: var(--mut); font-size: 13px; }
.cg-join { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); } .cg-join h4 { margin: 0 0 10px; font-family: var(--head); }
.cg-foot { display: flex; justify-content: space-between; margin-top: 18px; }
.upic { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--mut2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--mut); overflow: hidden; transition: border-color .15s, color .15s; } .upic:hover { border-color: var(--acc); color: var(--acc); }
.upic span { display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 800; gap: 2px; } .upic img { width: 100%; height: 100%; object-fit: cover; } .upic.big { width: 100px; height: 100px; border-style: solid; background: var(--acc2); color: #fff; } .upic.sm { width: 64px; height: 64px; margin: 0; }
.cg-s .fld { text-align: left; }
.hintbox { text-align: left; background: var(--side); border-radius: 10px; padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .hintbox code { align-self: flex-start; }
.invprev { text-align: center; } .igicon { width: 72px; height: 72px; border-radius: 22px; background: var(--acc2); color: #fff; display: grid; place-items: center; margin: 4px auto 12px; overflow: hidden; } .igicon img { width: 100%; height: 100%; object-fit: cover; } .igicon .gi { font: 800 24px var(--head); }
.invprev small { color: var(--mut); } .invprev h2 { font: 800 24px var(--head); margin: 4px 0 6px; } .invprev p { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--mut); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); display: inline-block; } .dot.on { background: var(--on); }
.modal.invite .mbody { padding-top: 10px; }
.ifind input { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--rail); padding: 0 10px; outline: none; margin-bottom: 8px; }
.ifriends { max-height: 220px; overflow-y: auto; margin-bottom: 14px; } .ifr { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; } .ifr:hover { background: var(--hover); } .ifr > span { flex: 1; display: flex; flex-direction: column; } .ifr small { color: var(--mut); font-size: 12px; }
.copyrow { display: flex; gap: 8px; background: var(--rail); border-radius: 10px; padding: 4px; border: 1px solid var(--line2); } .copyrow input { border: 0 !important; background: none !important; box-shadow: none !important; }
.ivopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; } .ivopts .btn { grid-column: span 2; }
.chip { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--side); border: 1px solid var(--line2); font-size: 13px; } .chip:hover { border-color: var(--acc); }
.cs-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.nglist { max-height: 300px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.ngi { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; cursor: pointer; } .ngi:hover { background: var(--hover); } .ngi > span { flex: 1; display: flex; flex-direction: column; } .ngi small { color: var(--mut); font-size: 12px; }
.ngi input { display: none; } .ngi .cb { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--mut2); } .ngi input:checked + .cb { background: var(--acc2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--acc2); }
.egrow { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.modal.qs { width: min(560px, 100%); } .modal.qs .mbody { padding: 22px; }
#qsI { width: 100%; height: 52px; border-radius: 10px; border: 0; background: var(--rail); padding: 0 16px; font-size: 18px; outline: none; }
.qsl { margin-top: 10px; max-height: 360px; overflow-y: auto; }
.qsi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--txt2); } .qsi.on, .qsi:hover { background: var(--press); color: var(--txt); } .qsi small { margin-left: auto; color: var(--mut); font-size: 12px; } .qsi .ic { width: 20px; height: 20px; color: var(--mut); }
.qgi { width: 24px; height: 24px; border-radius: 7px; background: var(--acc2); color: #fff; display: grid; place-items: center; overflow: hidden; font-size: 9px; } .qgi img { width: 100%; height: 100%; object-fit: cover; }
.modal.search { width: min(640px, 100%); } .sres { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; padding-bottom: 8px; } .sres:hover { border-color: var(--line2); } .sres .msg { margin-top: 8px; } .sres .msg:hover { background: none; } .sch { display: flex; gap: 4px; align-items: center; padding: 8px 12px 0; color: var(--mut); font-size: 12px; font-weight: 700; } .sch .ic { width: 14px; height: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.85); display: grid; place-items: center; opacity: 0; transition: opacity .2s; cursor: zoom-out; padding: 40px; } .lightbox.in { opacity: 1; } .lightbox img { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); } .lbbar { position: absolute; bottom: 20px; } .lbbar a { color: #fff; display: flex; gap: 6px; align-items: center; font-weight: 600; opacity: .8; } .lbbar a:hover { opacity: 1; } .lbbar .ic { width: 18px; height: 18px; }
.vlv { text-align: center; margin-top: 8px; font: 800 22px var(--head); }
.warnbox { background: rgba(242,180,52,.12); color: var(--yellow); border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 14px; }
.srcpick { width: min(780px, 100%); }
.srctabs { display: flex; gap: 6px; margin-bottom: 12px; } .srctabs button { height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 600; color: var(--txt2); } .srctabs button.on { background: var(--press); color: var(--txt); }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.srcc { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; border: 2px solid transparent; background: var(--side); text-align: left; } .srcc:hover { border-color: var(--line2); } .srcc.on { border-color: var(--acc); } .srcc > img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; border-radius: 6px; } .srcc span { display: flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .srcc span img { width: 16px; height: 16px; }

/* полноэкранные настройки */
.layer { position: fixed; inset: 0; z-index: 60; display: flex; background: var(--main); opacity: 0; transform: scale(1.03); transition: opacity .2s, transform .22s; } .layer.in { opacity: 1; transform: none; }
.lnav { flex: 1 0 218px; background: var(--side); display: flex; justify-content: flex-end; overflow-y: auto; }
.lnav-in { width: 218px; padding: 60px 8px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.lnav h6 { font-size: 12px; text-transform: uppercase; color: var(--mut); margin: 0 10px 6px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lnav h6 .ic { width: 14px; height: 14px; }
.lnav button { text-align: left; padding: 7px 10px; border-radius: 6px; color: var(--txt2); font-weight: 500; font-size: 15px; display: flex; align-items: center; justify-content: space-between; } .lnav button:hover { background: var(--hover); color: var(--txt); } .lnav button.on { background: var(--press); color: var(--txt); }
.lnav button.danger { color: var(--red); } .lnav button .ic { width: 16px; height: 16px; }
.lnav hr { border: 0; height: 1px; background: var(--line2); margin: 8px 10px; }
.lver { font-size: 11px; color: var(--mut); padding: 8px 10px; line-height: 1.6; }
.lmain { flex: 1 1 800px; display: flex; overflow-y: auto; position: relative; }
.lcontent { width: 100%; max-width: 760px; padding: 60px 40px 120px; }
.lcontent h1 { font: 800 22px var(--head); margin: 0 0 22px; } .lcontent h3 { font: 700 16px var(--head); margin: 28px 0 10px; }
.lclose { position: sticky; top: 60px; margin: 60px 20px 0 0; align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mut); } .lclose .ic { width: 36px; height: 36px; padding: 7px; border-radius: 50%; border: 2px solid var(--mut2); transition: color .12s, border-color .12s; } .lclose small { font-size: 12px; font-weight: 700; } .lclose:hover { color: var(--txt); } .lclose:hover .ic { border-color: var(--txt); }
.savebar { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 140%); width: min(700px, calc(100% - 40px)); display: flex; align-items: center; gap: 10px; background: #0b0d0c; color: #fff; padding: 10px 12px 10px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,1.3,.4,1); z-index: 5; } .savebar span { flex: 1; font-weight: 600; } .savebar.show { transform: translate(-50%, 0); }
.savebar.static { position: static; transform: none; background: none; box-shadow: none; padding: 16px 0 0; width: auto; } .savebar.static span { display: none; } .savebar.static { justify-content: flex-end; }
.profgrid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; } .ppreview h5 { font-size: 12px; text-transform: uppercase; color: var(--txt2); margin: 0 0 8px; }
.ppreview .popout { box-shadow: var(--shadow); }
.colors { display: flex; flex-wrap: wrap; gap: 8px; } .cl { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; position: relative; color: #fff; font-weight: 700; } .cl.on { border-color: var(--txt); box-shadow: inset 0 0 0 2px var(--main); } .cl.pick { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); display: grid; place-items: center; cursor: pointer; } .cl.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; } .cl.pick .ic { width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 1px #000); }
.acard2 { border-radius: 14px; overflow: hidden; background: var(--rail); } .acb { height: 100px; } .aci2 { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; margin-top: -36px; } .aci2 .av { border: 6px solid var(--rail); box-sizing: content-box; } .aci2 b { font: 800 20px var(--head); margin-bottom: 10px; } .acrows { margin: 14px 16px 16px; background: var(--panel); border-radius: 10px; padding: 4px 16px; } .acrows > div { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); } .acrows > div:last-child { border: 0; } .acrows span { font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--mut); }
.pwform { max-width: 420px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mictest { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .meter { flex: 1; height: 12px; border-radius: 6px; background: var(--rail); position: relative; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; background: var(--mut2); border-radius: 6px; transition: width .05s; } .meter i.hot { background: var(--acc); } .meter b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--yellow); }
.pttrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .pttrow small { color: var(--mut); }
.campre { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .campre video { width: 100%; max-width: 420px; aspect-ratio: 16/9; background: var(--rail); border-radius: 12px; transform: scaleX(-1); object-fit: cover; }
.themes { display: flex; gap: 12px; } .theme { display: flex; flex-direction: column; gap: 8px; align-items: center; font-weight: 600; } .theme .tp { width: 120px; height: 80px; border-radius: 12px; border: 2px solid var(--line2); display: grid; grid-template-columns: 18px 40px 1fr; overflow: hidden; } .theme.dark .tp i:nth-child(1) { background: #0b0d0c; } .theme.dark .tp i:nth-child(2) { background: #131615; } .theme.dark .tp i:nth-child(3) { background: #191c1b; } .theme.light .tp i:nth-child(1) { background: #e4e6e3; } .theme.light .tp i:nth-child(2) { background: #f1f2f0; } .theme.light .tp i:nth-child(3) { background: #fff; } .theme.auto .tp { background: linear-gradient(135deg, #191c1b 50%, #fff 50%); } .theme.on .tp { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.fsrow { display: flex; gap: 12px; align-items: center; } .fsrow small { color: var(--mut); } .fsrow b { width: 50px; }
.keys { display: flex; flex-direction: column; } .keys > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 16px; } .keys span { color: var(--txt2); }
.ovgrid { display: flex; gap: 24px; margin-bottom: 8px; } .ovic { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 140px; text-align: center; } .ovic small { color: var(--mut); font-size: 12px; } .ovic .upic { margin: 0; }
.rolesgrid, .cpgrid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.rlist { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; } .rlist .btn { margin-bottom: 8px; } .rlist h5 { font-size: 12px; text-transform: uppercase; color: var(--mut); margin: 0 0 6px; }
.ritem { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; color: var(--txt2); } .ritem:hover { background: var(--hover); } .ritem.on { background: var(--press); color: var(--txt); } .ritem span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .ritem small { color: var(--mut); font-size: 12px; } .ritem > .ic { width: 14px; height: 14px; color: var(--mut2); cursor: grab; } .ritem .dot { width: 12px; height: 12px; }
.ritem.every { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; padding-top: 10px; }
.perms h5, .cpedit h5 { font-size: 12px; text-transform: uppercase; color: var(--mut); margin: 18px 0 2px; }
.evnote { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--acc-bg); margin-bottom: 8px; font-size: 14px; } .evnote .ic { color: var(--acc); }
.tri { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .tri > span { flex: 1; display: flex; flex-direction: column; } .tri small { color: var(--mut); font-size: 13px; }
.tsel { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; flex: none; } .tsel button { width: 34px; height: 30px; font-weight: 800; color: var(--mut); } .tsel button + button { border-left: 1px solid var(--line2); } .tsel button.on { background: var(--mut2); color: #fff; } .tsel button.no.on { background: var(--red); } .tsel button.ok.on { background: var(--acc2); }
.tri-l { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; font-size: 12px; } .tri-l i { font-style: normal; font-weight: 800; } .tri-l i.no { color: var(--red); } .tri-l i.ok { color: var(--acc); }
.sw.big { background: var(--side); border-radius: 12px; padding: 14px; border: 0; margin-bottom: 16px; }
.gmtop { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; } .gmtop .inp { max-width: 260px; }
.gmlist { display: flex; flex-direction: column; } .gmr { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); } .gmn { flex: 0 0 220px; min-width: 0; display: flex; flex-direction: column; } .gmn small { color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gmn .crown { color: var(--yellow); display: inline-flex; vertical-align: -2px; } .gmn .crown .ic { width: 14px; height: 14px; }
.gmroles { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; } .gmr .ib { background: transparent; } .gmr .ib:hover { background: var(--hover); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--mut); padding: 8px; border-bottom: 1px solid var(--line2); } .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); } .tbl td .av { vertical-align: middle; }

/* уведомления */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 110; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: #0b0d0c; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.6); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s cubic-bezier(.2,1.3,.4,1); max-width: 90vw; }
.toast.in { opacity: 1; transform: none; } .toast .ic { width: 18px; height: 18px; color: var(--acc); } .toast.err .ic { color: var(--red); }
.nochan { margin: auto; text-align: center; color: var(--mut); } .nochan h2 { color: var(--txt); font-family: var(--head); }

/* компактный режим */
.compact .msg { padding-left: 16px; margin-top: 2px; } .compact .msg .mav { display: none; } .compact .msg .mrow { display: flex; gap: 8px; align-items: baseline; } .compact .mh { flex: none; } .compact .mh time { order: -1; font-size: 11px; } .compact .msg time.side { position: static; width: auto; opacity: 1; flex: none; } .compact .msg.grp time.side { opacity: 0; } .compact .msg.grp:hover time.side { opacity: 1; } .compact .rref::before { display: none; }

/* узкий экран (телефон) */
@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; }
  #rail, #side { position: fixed; top: 0; bottom: 0; z-index: 40; transition: transform .25s; } #rail { left: 0; width: 72px; transform: translateX(-100%); } #side { left: 72px; width: calc(100% - 72px); max-width: 320px; transform: translateX(calc(-100% - 72px)); border-radius: 0; }
  body.side-open #rail, body.side-open #side { transform: none; } body.side-open #main::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
  .hb.mob { display: grid; } .hsearch, .active, .members, .ftabs .addt { display: none; } .msg { padding-right: 12px; } .mtools { right: 6px; }
  .profgrid, .rolesgrid, .cpgrid, .grid2 { grid-template-columns: 1fr; } .lnav { flex: 0 0 160px; } .lnav-in { width: 160px; padding-left: 8px; } .lcontent { padding: 40px 16px 120px; } .lclose { margin-right: 8px; }
}
.auth, .boot { grid-column: 1 / -1; }
.tiles { grid-auto-rows: auto; align-items: center; }
.tiles.focused { grid-template-rows: none; grid-auto-rows: auto; align-content: start; overflow-y: auto; }
.tiles.focused .tile.focus { max-height: calc(100vh - 260px); aspect-ratio: 16/9; width: auto; justify-self: center; height: calc(100vh - 260px); max-width: 100%; }
.tiles.focused { justify-content: center; }
.tiles.focused .tile:not(.focus) .tav .av { transform: scale(.55); }
.ctiles.focused .tile:not(.focus) .tav .av { transform: scale(.55); }

/* =====================================================================
   ChatEngine 1.1 — собственный облик: верхняя панель, плавающие карточки,
   сообщения-«пузыри» (свои — справа), пространства-плитки слева
   ===================================================================== */
:root { --bg: #0b0d0c; --side: #141816; --main: #181c1a; --panel2: #232826; --rr: 18px; }
:root[data-theme="light"] { --bg: #e6e8e4; --side: #f7f8f6; --main: #ffffff; --panel2: #eef1ee; --rail: #e6e8e4; }
html, body { background: var(--bg); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

#app { grid-template-columns: 76px 268px minmax(0, 1fr); grid-template-rows: 58px minmax(0, 1fr); column-gap: 8px; padding: 0 8px 8px 0; background: var(--bg); }
#app > .auth, #app > .boot { grid-row: 1 / -1; }

/* верхняя панель */
#topbar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; min-width: 0; }
.tb-brand { display: flex; align-items: center; gap: 10px; width: 322px; flex: none; }
.tb-brand b { font: 800 18px var(--head); letter-spacing: -.02em; } .tb-brand b span { color: var(--acc); }
.tb-menu { display: none; width: 36px; height: 36px; border-radius: 10px; place-items: center; color: var(--txt2); } .tb-menu:hover { background: var(--hover); }
.tb-search { display: flex; align-items: center; gap: 10px; width: min(420px, 34vw); height: 38px; padding: 0 8px 0 12px; border-radius: 12px; background: var(--side); color: var(--mut); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.tb-search:hover { border-color: var(--line2); color: var(--txt2); } .tb-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tb-search .ic { width: 18px; height: 18px; } .tb-search kbd { font-size: 11px; padding: 2px 6px; }
#userPanel { height: auto; background: none; padding: 0; gap: 8px; display: flex; align-items: center; }
.ubgroup { display: flex; gap: 2px; background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.ub { width: 34px; height: 34px; border-radius: 9px; }
.mebtn { flex: none; display: flex; align-items: center; gap: 10px; padding: 3px 3px 3px 14px; border-radius: 999px; background: var(--side); border: 1px solid var(--line); max-width: 240px; }
.mebtn:hover { background: var(--panel2); } .mebtn .mn { text-align: right; } .mebtn .av .st { border-color: var(--side); }
:root[data-theme="light"] .mebtn .av .st { border-color: var(--side); }
#voicePanel { display: none; padding: 0; border: 0; background: none; }
#voicePanel.on { display: flex; align-items: center; gap: 4px; background: var(--acc-bg); border: 1px solid rgba(47,211,154,.28); border-radius: 12px; padding: 3px 3px 3px 12px; animation: pop .3s; }
:root[data-theme="light"] #voicePanel.on { background: var(--acc-bg); }
.vp-st { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; margin-right: 6px; flex: 0 1 auto; }
.vp-st span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; } .vp-st b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; } .vp-st small { font-size: 13px; color: var(--txt2); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: vpulse 1.8s infinite; flex: none; }
@keyframes vpulse { 0% { box-shadow: 0 0 0 0 rgba(47,211,154,.55); } 70% { box-shadow: 0 0 0 8px rgba(47,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(47,211,154,0); } }
.vp-st.wait .vp-dot { animation: none; } .vp-st.bad .vp-dot { animation: none; }
.vb { flex: none; width: 34px; height: 34px; border-radius: 9px; background: transparent; color: var(--txt2); } .vb:hover { background: var(--hover); }
.vb.hang { background: var(--red); color: #fff; } .vb.hang:hover { filter: brightness(1.1); background: var(--red); }

/* пространства (серверы) слева — плитки, без «таблеток» */
#rail { grid-row: 2; background: transparent; padding: 4px 0 12px; gap: 10px; }
.ri .pill { display: none; }
.rb { width: 48px; height: 48px; border-radius: 15px; background: var(--side); border: 1px solid var(--line); transition: transform .18s cubic-bezier(.3,1.5,.5,1), background .15s, box-shadow .15s; }
.ri:hover .rb { transform: translateY(-2px); border-radius: 15px; }
.ri.on .rb { border-radius: 15px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.ri:hover .rb.g, .ri.on .rb.g { background: var(--side); color: var(--txt); }
.ri.on .rb.g:not(:has(img)) { background: var(--acc2); color: #fff; }
.rb.home { background: linear-gradient(135deg, var(--acc), var(--acc-d)); color: #fff; border: 0; } .ri.on .rb.home, .ri:hover .rb.home { background: linear-gradient(135deg, var(--acc), var(--acc-d)); }
.rb.act { border-style: dashed; border-color: var(--line2); background: transparent; } .ri:hover .rb.act { background: var(--acc-bg); color: var(--acc); border-color: var(--acc); }
.ri.unread::after { content: ""; position: absolute; top: -2px; right: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); border: 3px solid var(--bg); }
.ri .badge { border-color: var(--bg); } .ri .vdot { border-color: var(--bg); }
.rsep { width: 28px; background: var(--line2); }

/* карточки: боковая и основная */
#side { grid-row: 2; border-radius: var(--rr); border: 1px solid var(--line); background: var(--side); }
#main { grid-row: 2; border-radius: var(--rr); border: 1px solid var(--line); overflow: hidden; }
.ghead { height: 60px; padding: 0 18px; border-bottom: 1px solid var(--line); box-shadow: none; }
.ghead b { font-size: 16px; }
.dmsearch { display: none; }
.chlist { padding: 10px 10px 16px; }
.ch { height: 36px; border-radius: 10px; padding: 0 10px; }
.ch.on { background: var(--acc-bg); color: var(--acc); } .ch.on .chn { font-weight: 700; } .ch.on .chi .ic { opacity: 1; }
:root[data-theme="light"] .ch.on { color: var(--acc-d); }
.ch.unread::before { left: auto; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-top: -4px; }
.ch.unread:has(.badge)::before, .ch.unread:hover::before { display: none; }
.ch .chi { width: 26px; height: 26px; border-radius: 8px; background: var(--panel2); display: grid; place-items: center; flex: none; } .ch .chi .ic { width: 16px; height: 16px; }
.ch.on .chi { background: var(--acc2); color: #fff; }
.ch.big .chi, .ch.big > .ic { width: 22px; height: 22px; }
.ch.dm { height: 50px; } .ch.dm.on { color: var(--txt); }
.cat { padding: 18px 8px 6px; font-size: 11px; letter-spacing: .08em; }
.vusers { padding-left: 36px; }

/* заголовок области */
.mhead { height: 60px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; }
.mhead.dark { background: #0d100f; }
.hb { border-radius: 10px; }
.hsearch input { height: 32px; border-radius: 10px; background: var(--side); border: 1px solid var(--line); }
.hsearch .ic { top: 8px; }

/* друзья — сегментированный переключатель */
.ftabs { background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.ftabs button { height: 30px; border-radius: 9px; }
.ftabs button.on { background: var(--panel2); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ftabs .addt { margin-left: 6px; }
.frow { border-top: 0; border-radius: 14px; margin: 0 0 6px; padding: 0 14px; background: var(--side); border: 1px solid var(--line); }
.frow:hover { border-color: var(--line2); background: var(--panel2); }
.active { border-left: 1px solid var(--line); background: transparent; }

/* сообщения-пузыри */
.msgs { padding-bottom: 14px; }
.msg { padding: 2px 24px 2px 68px; margin-top: 14px; }
.msg:hover { background: transparent; }
:root[data-theme="light"] .msg:hover { background: transparent; }
.msg.grp { margin-top: 3px; }
.msg .mav { left: 18px; top: 22px; }
.mh { margin: 0 0 4px 6px; } .mh time { font-size: 11px; }
.mb { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bub { position: relative; max-width: min(680px, 100%); background: var(--panel2); border-radius: 4px 18px 18px 18px; padding: 8px 14px; min-width: 0; }
.msg.grp .bub { border-radius: 18px; }
.msg.attonly .bub { background: none; padding: 0; }
.msg.ment { background: transparent; } .msg.ment::before { display: none; }
.msg.ment .bub { box-shadow: inset 0 0 0 1.5px var(--ment-l); background: color-mix(in srgb, var(--ment-l) 10%, var(--panel2)); }
.msg time.side { display: none; }
.msg.mine { padding-left: 18%; padding-right: 22px; }
.msg.mine .mav, .msg.mine .mh .un, .msg.mine .mh .crown { display: none; }
.msg.mine .mb { align-items: flex-end; }
.msg.mine .mh { justify-content: flex-end; margin: 0 6px 4px 0; }
.msg.mine .bub { background: linear-gradient(135deg, var(--acc2), var(--acc-d)); color: #fff; border-radius: 18px 4px 18px 18px; }
.msg.mine.grp .bub { border-radius: 18px; }
.msg.mine.attonly .bub { background: none; }
.msg.mine .mc, .msg.mine .mc a { color: #fff; } .msg.mine .edited { color: rgba(255,255,255,.7); }
.msg.mine .mention { background: rgba(255,255,255,.2); color: #fff; }
.msg.mine .mc code, .msg.mine .mc pre.code { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.15); }
.msg.mine .reacts { justify-content: flex-end; }
.msg .mtools { right: 24px; top: -14px; border-radius: 12px; }
.msg.mine .mtools { right: 24px; top: -18px; }
.msg.flash .bub { animation: bflash 1.6s; } .msg.flash { animation: none; } @keyframes bflash { 0%, 40% { box-shadow: 0 0 0 3px var(--acc); } }
.msg.pend .bub { opacity: .6; }
.bub .rref { border-left: 3px solid var(--acc); background: rgba(0,0,0,.14); border-radius: 6px; padding: 4px 8px; margin: 2px 0 6px; max-width: 100%; }
.bub .rref::before { display: none; }
.msg.mine .bub .rref { border-left-color: #fff; background: rgba(0,0,0,.18); color: rgba(255,255,255,.9); }
.msg.mine .bub .rref b { color: #fff !important; }
.msg:has(.rref) { margin-top: 14px; }
.bub .att:first-child { margin-top: 0; }
.msg:not(.attonly) .bub .att.img img { max-width: min(400px, 100%); }
.editbox textarea { min-width: min(520px, 60vw); }
/* системные — «пилюли» по центру */
.msg.sys { width: fit-content; max-width: calc(100% - 40px); margin: 12px auto 0; padding: 6px 14px; border-radius: 999px; background: var(--side); border: 1px solid var(--line); gap: 8px; min-height: 0; font-size: 13px; }
.msg.sys .sysic { position: static; } .msg.sys .sysic .ic { width: 16px; height: 16px; }
.day { margin: 22px 20px 8px; } .day::before, .day::after { background: var(--line); } .day span { background: var(--side); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.mwelcome { padding: 36px 24px 18px; }
/* поле ввода */
.composer-wrap { padding: 0 20px; }
.composer { border-radius: 24px; padding: 6px 6px 6px 8px; background: var(--side); border: 1px solid var(--line2); }
.composer:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.cbtn.send { background: var(--acc2); color: #fff; border-radius: 50%; } .cbtn.send:hover { background: var(--acc-d); color: #fff; transform: none; }
.cbtn.send .ic { width: 18px; height: 18px; }
.replybar, .uplist { background: var(--side); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; margin-bottom: -20px; padding-bottom: 26px; }
.typing { padding: 4px 26px; }
.jump { border-radius: 12px; bottom: 90px; }

/* участники */
.members { background: transparent; border-left: 1px solid var(--line); }
.mem { border-radius: 12px; }

/* голос */
.stage { background: #0b0d0c; }
.tile { border-radius: 18px; }
.callbox { background: #0b0d0c; }

/* компактный режим — без пузырей, всё слева */
.compact .bub { background: none !important; padding: 0; border-radius: 0; box-shadow: none; color: inherit; }
.compact .msg.mine { padding-left: 16px; } .compact .msg.mine .mb { align-items: flex-start; } .compact .msg.mine .mh { justify-content: flex-start; } .compact .msg.mine .mh .un { display: inline; }
.compact .msg.mine .mc, .compact .msg.mine .mc a { color: var(--txt); } .compact .msg.mine .mention { background: rgba(47,211,154,.18); color: var(--acc); }
.compact .msg .mtools, .compact .msg.mine .mtools { left: auto; right: 14px; }

/* приглашение в сообщении */
.invemb { margin-top: 6px; background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 300px; max-width: 420px; color: var(--txt); }
.invemb > small { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--mut); letter-spacing: .04em; }
.ivrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; } .ivt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ivt small { color: var(--mut); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.igicon.sm { width: 44px; height: 44px; border-radius: 14px; margin: 0; flex: none; } .igicon.sm .ic { width: 22px; height: 22px; }

/* модальные окна — мягче */
.modal { border-radius: 22px; } .modal footer { background: transparent; border-top: 1px solid var(--line); }
.menu { border-radius: 14px; } .menu button { border-radius: 9px; }
.popout { border-radius: 18px; }

@media (max-width: 760px) {
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px minmax(0, 1fr); padding: 0 6px 6px; column-gap: 0; }
  #main { grid-column: 1; }
  .tb-menu { display: grid; } .tb-brand { width: auto; } .tb-brand b, .tb-search, .ubgroup, .mebtn .mn { display: none; }
  #rail, #side { top: 58px; } #side { border-radius: 0 18px 18px 0; }
  #voicePanel.on .vp-st span { display: none; }
}

/* =====================================================================
   ChatEngine 1.2 — сцена звонка, просмотр трансляции, голосовые, полировка
   ===================================================================== */
/* шапка сервера */
.ghead { gap: 12px; height: 66px; background: linear-gradient(135deg, color-mix(in srgb, var(--acc2) 16%, transparent), transparent 70%); }
.gh-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--acc2); color: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 6px 16px -6px rgba(18,162,110,.7); }
.gh-ic img { width: 100%; height: 100%; object-fit: cover; } .gh-ic .gi { font: 800 13px var(--head); }
.gh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gh-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gh-t small { font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 5px; }
.ghead > .ic { flex: none; }

/* верхняя панель: упоминания, таймер, пинг */
.ubgroup .ib2 { position: relative; } .ubgroup .ib2 .badge { position: absolute; top: -4px; right: -4px; border: 2px solid var(--bg); height: 20px; line-height: 16px; }
.ubsep { width: 1px; background: var(--line2); margin: 6px 3px; }
.vp-st b .vtimer { font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; margin-left: 4px; text-transform: none; letter-spacing: 0; }
.vp-ping { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.vp-ping:empty { display: none; } .vp-ping.good { color: var(--acc); background: var(--acc-bg); } .vp-ping.mid { color: var(--yellow); background: rgba(242,180,52,.12); } .vp-ping.bad { color: var(--red); background: rgba(240,86,90,.12); }

/* сцена голосового канала */
.stage { background: radial-gradient(1200px 600px at 50% 0%, rgba(47,211,154,.08), transparent 60%), #0a0c0b; }
:root[data-theme="light"] .stage { background: radial-gradient(1200px 600px at 50% 0%, rgba(47,211,154,.12), transparent 60%), #151917; }
.stmeta { color: var(--mut); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.mhead .hic { color: var(--mut); display: flex; } .mhead .hic .ic { width: 22px; height: 22px; }
.tiles { padding: 20px 24px 8px; gap: 14px; }
.tile { border: 1px solid rgba(255,255,255,.06); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c, #12a26e) 45%, #1a1e1c), color-mix(in srgb, var(--c, #12a26e) 18%, #101312)); transition: box-shadow .15s, transform .2s; }
.tile.tin { animation: tileIn .35s cubic-bezier(.2,1.2,.4,1); } @keyframes tileIn { from { opacity: 0; transform: scale(.94); } }
.tile.speaking { box-shadow: 0 0 0 3px var(--acc), 0 0 28px -4px rgba(47,211,154,.6); }
.tile.scr { background: #000; border-color: rgba(255,255,255,.1); }
.tmedia { position: absolute; inset: 0; display: grid; place-items: center; }
.tmedia video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; } .tile.hasv:not(.scr) .tmedia video { object-fit: cover; } .tmedia video.mirror { transform: scaleX(-1); }
.tav .av { width: clamp(56px, 28%, 110px); height: auto; aspect-ratio: 1; font-size: clamp(20px, 3vw, 40px); }
.tl { z-index: 2; }
.tl .live { margin-right: 2px; }
.tbtn { z-index: 2; display: flex; gap: 6px; } .tile:not(.hasv) .tbtn { display: none; }
.tbtn button { backdrop-filter: blur(8px); } .tbtn button:hover { background: rgba(0,0,0,.8); }
.tile.hasv { cursor: zoom-in; } .tile.focus.hasv { cursor: pointer; }
.vctl { gap: 8px; margin: 0 auto 18px; padding: 8px; width: fit-content; border-radius: 22px; background: rgba(20,24,22,.75); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.vcb { width: 48px; height: 48px; background: rgba(255,255,255,.07); } .vcb:hover { background: rgba(255,255,255,.14); }
.vcb.hang { width: 60px; }
.vsep2 { width: 1px; height: 28px; background: rgba(255,255,255,.12); margin: 0 4px; }
.stjoin { gap: 12px; } .stjoin .stav .av { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.stjoin .btn.big { margin-top: 8px; padding: 0 28px; height: 50px; border-radius: 14px; }
/* звонок в ЛС */
.callbox { max-height: 56vh; background: radial-gradient(900px 400px at 50% 0%, rgba(47,211,154,.1), transparent 60%), #0a0c0b; }
.ctiles { gap: 14px; padding: 20px 20px 6px; }
.ctiles .tile { width: 280px; aspect-ratio: 16/9; position: relative; }
.ctiles.focused .tile.focus { width: min(100%, 860px); }
.callbox .vctl { margin: 6px auto 14px; color: #e9edeb; }
.cbt { color: #9aa49f; font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 8px 0 4px; }

/* просмотр трансляции */
#viewer { position: fixed; inset: 0; z-index: 85; background: #000; opacity: 0; transition: opacity .2s; display: grid; }
#viewer.in { opacity: 1; }
#viewer video { width: 100%; height: 100%; object-fit: contain; background: #000; grid-area: 1 / 1; }
.vw-top, .vw-bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: #fff; opacity: 0; transition: opacity .25s; z-index: 2; }
#viewer.ui .vw-top, #viewer.ui .vw-bar { opacity: 1; } #viewer:not(.ui) { cursor: none; }
.vw-top { top: 0; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.vw-bar { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.vw-who { display: flex; align-items: center; gap: 10px; } .vw-who span { display: flex; flex-direction: column; } .vw-who small { font-size: 12px; opacity: .8; display: flex; gap: 6px; align-items: center; } .vw-who i.live { font-style: normal; }
.vw-res { font: 600 12px var(--mono); opacity: .7; }
.vw-bar button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); } .vw-bar button:hover { background: rgba(255,255,255,.22); }
.vw-vol { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); padding: 0 14px; height: 44px; border-radius: 12px; } .vw-vol input { width: 140px; accent-color: var(--acc); }

/* голосовые сообщения */
#cVoice:hover { color: var(--red); }
.composer.recording > :not(.recbar) { display: none; }
.recbar { flex: 1; display: flex; align-items: center; gap: 10px; height: 36px; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1s infinite; } @keyframes rec { 50% { opacity: .3; } }
.rectime { font-variant-numeric: tabular-nums; min-width: 40px; }
.reclive { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; overflow: hidden; justify-content: flex-end; } .reclive i { width: 3px; border-radius: 2px; background: var(--red); flex: none; opacity: .85; }
.att.voice { display: flex; align-items: center; gap: 12px; width: 300px; max-width: 100%; padding: 4px 4px 4px 2px; margin-top: 0; }
.vplay { width: 40px; height: 40px; border-radius: 50%; background: var(--acc2); color: #fff; display: grid; place-items: center; flex: none; transition: transform .12s; } .vplay:hover { transform: scale(1.06); } .vplay .ic { width: 16px; height: 16px; margin-left: 2px; } .att.voice.playing .vplay .ic { margin-left: 0; }
.vwave { flex: 1; height: 32px; display: flex; align-items: center; gap: 2px; cursor: pointer; } .vwave i { flex: 1; border-radius: 2px; background: currentColor; opacity: .35; transition: opacity .1s; } .vwave i.on { opacity: 1; }
.vdur { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; min-width: 34px; }
.msg.mine .vplay { background: #fff; color: var(--acc-d); }
.msg.attonly .bub:has(.att.voice) { background: var(--panel2); padding: 6px 12px 6px 8px; }
.msg.mine.attonly .bub:has(.att.voice) { background: linear-gradient(135deg, var(--acc2), var(--acc-d)); color: #fff; }

/* упоминания */
.popout.inbox { width: 460px; max-height: 72vh; display: flex; flex-direction: column; } .popout.inbox header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ibi { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; padding: 8px 0 10px; } .ibi:hover { border-color: var(--line2); } .ibi.new { border-color: color-mix(in srgb, var(--ment-l) 60%, transparent); }
.ibw { display: flex; justify-content: space-between; padding: 0 14px; font-size: 12px; color: var(--mut); } .ibw b { color: var(--txt2); }
.ibi .msg { margin-top: 6px; } .ibi .msg .mtools { display: none !important; } .ibi .msg.mine { padding-left: 68px; }

/* новые сообщения появляются мягко */
.msg.pop .bub, .msg.pop.sys { animation: bubIn .32s cubic-bezier(.2,1.3,.4,1); } @keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg.mine.pop .bub { transform-origin: right bottom; } .msg.pop .bub { transform-origin: left bottom; }
.rc { transition: transform .12s, border-color .12s; } .rc:active { transform: scale(.9); }
.ch, .frow, .mem, .ri .rb { will-change: auto; }
.chlist .ch:not(.on):hover .chi { background: var(--press); }
/* режим «в фокусе»: большая плитка и лента остальных снизу */
.tiles.focused { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 12px; overflow: hidden; }
.tiles.focused .tile.focus { flex: 0 0 100%; width: 100%; height: calc(100% - 136px); max-height: none; aspect-ratio: auto; justify-self: auto; }
.tiles.focused:has(.tile:only-child) .tile.focus { height: 100%; }
.tiles.focused .tile:not(.focus) { flex: none; width: 200px; height: 112px; aspect-ratio: auto; max-height: none; }
.tiles.focused .tile:not(.focus) .tl { left: 6px; bottom: 6px; padding: 2px 8px; font-size: 12px; }
.tiles.focused .tile:not(.focus) .tbtn { display: none; }
.ctiles.focused .tile:not(.focus) { width: 180px; }
.tav .av { width: 88px; height: 88px; font-size: 32px; }

/* =====================================================================
   ChatEngine 1.3 — темы, свои эмодзи, стикеры, GIF, опросы, модерация, боты
   ===================================================================== */
/* темы (тёмные варианты) */
:root[data-theme="midnight"] { --bg: #000; --rail: #000; --side: #0a0a0a; --main: #0d0d0d; --panel: #141414; --panel2: #1a1a1a; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.13); }
:root[data-theme="forest"] { --bg: #0b130f; --rail: #0b130f; --side: #111c16; --main: #14201a; --panel: #1a2a21; --panel2: #1f3127; --acc: #6fe39a; --acc2: #2e9e5b; --acc-d: #217a45; --acc-bg: rgba(90,209,127,.14); }
:root[data-theme="ocean"] { --bg: #08111a; --rail: #08111a; --side: #0d1824; --main: #0f1a24; --panel: #142333; --panel2: #192b3d; --acc: #6cbcff; --acc2: #2f86e0; --acc-d: #1f66b3; --acc-bg: rgba(62,166,255,.14); }
:root[data-theme="lilac"] { --bg: #110e18; --rail: #110e18; --side: #17131f; --main: #1b1726; --panel: #231d31; --panel2: #2a2339; --acc: #c3adff; --acc2: #8a63f0; --acc-d: #6b46d0; --acc-bg: rgba(169,139,255,.15); }
:root[data-theme="sunset"] { --bg: #150e0c; --rail: #150e0c; --side: #1c1311; --main: #231815; --panel: #2c1f1b; --panel2: #352621; --acc: #ffae80; --acc2: #e8703a; --acc-d: #c4561f; --acc-bg: rgba(255,138,76,.14); }
:root:not([data-theme="light"]) .mebtn .av .st { border-color: var(--side); }
.mention { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.mention:hover { background: var(--acc2); }
.msg.mine .mention { background: rgba(255,255,255,.2); }
.ri.on .rb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.tile.speaking { box-shadow: 0 0 0 3px var(--acc), 0 0 28px -4px color-mix(in srgb, var(--acc) 60%, transparent); }
.vu.speaking .av { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px var(--acc); }
.btn.primary { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--acc2) 80%, transparent); }
#voicePanel.on { border-color: color-mix(in srgb, var(--acc) 30%, transparent); }
.gh-ic { box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--acc2) 70%, transparent); }
.ghead { background: linear-gradient(135deg, color-mix(in srgb, var(--acc2) 16%, transparent), transparent 70%); }
.stage { background: radial-gradient(1200px 600px at 50% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 60%), #0a0c0b; }
/* выбор темы */
.themes2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.th2 { display: flex; flex-direction: column; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; }
.thp { width: 100%; height: 76px; border-radius: 14px; border: 2px solid var(--line2); display: grid; grid-template-columns: 16% 30% 1fr; overflow: hidden; background: var(--tb); transition: transform .15s; }
.th2:hover .thp { transform: translateY(-2px); }
.thp i:nth-child(1) { background: color-mix(in srgb, var(--tb) 80%, #000); } .thp i:nth-child(2) { background: color-mix(in srgb, var(--tb) 88%, #888); } .thp i:nth-child(3) { background: linear-gradient(transparent 60%, var(--ta) 60%, var(--ta) 76%, transparent 76%) right 10px top 0 / 50% 100% no-repeat, var(--tb); }
.thp.auto { background: linear-gradient(135deg, #191c1b 50%, #fff 50%); } .thp.auto i { background: none !important; }
.th2.on .thp { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.colors.big .cl { width: 38px; height: 38px; border-radius: 12px; } .cl.auto { background: var(--panel2); color: var(--txt2); display: grid; place-items: center; } .cl.auto .ic { width: 18px; height: 18px; }

/* свои эмодзи */
.cemoji { width: 1.375em; height: 1.375em; vertical-align: -0.3em; object-fit: contain; display: inline-block; }
.jumbo .cemoji { width: 48px; height: 48px; }
.rc .cemoji { width: 18px; height: 18px; vertical-align: middle; }
.aci .cemoji { width: 22px; height: 22px; }
/* панель эмодзи / GIF / стикеров */
.popout.media { width: 420px; height: 460px; display: flex; flex-direction: column; }
.mp-tabs { display: flex; gap: 4px; padding: 10px 10px 0; } .mp-tabs button { flex: 1; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; color: var(--txt2); } .mp-tabs button .ic { width: 16px; height: 16px; } .mp-tabs button.on { background: var(--acc-bg); color: var(--acc); } .mp-tabs button:hover:not(.on) { background: var(--hover); }
.mp-search { position: relative; margin: 10px; } .mp-search input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--rail); padding: 0 34px 0 12px; outline: none; } .mp-search input:focus { border-color: var(--acc); } .mp-search .ic { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; color: var(--mut); }
.mp-body { flex: 1; overflow-y: auto; padding: 0 8px 8px; } .mp-body h5 { font-size: 11px; text-transform: uppercase; color: var(--mut); margin: 8px 4px 4px; position: sticky; top: 0; background: var(--panel); padding: 4px 0; z-index: 1; }
.mp-body .emg button .cemoji { width: 28px; height: 28px; }
.gifg { columns: 2; column-gap: 6px; } .gifg button { display: block; width: 100%; margin-bottom: 6px; border-radius: 8px; overflow: hidden; break-inside: avoid; background: var(--panel2); } .gifg img { width: 100%; display: block; } .gifg button:hover { outline: 2px solid var(--acc); }
.gifby { text-align: center; font-size: 11px; color: var(--mut); }
.stkg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .stkg button { aspect-ratio: 1; border-radius: 12px; padding: 8px; transition: background .12s; } .stkg button:hover { background: var(--hover); } .stkg img { width: 100%; height: 100%; object-fit: contain; }
/* стикер в сообщении */
.msg.stk .bub { background: none !important; padding: 0; }
.sticker img { width: 160px; height: 160px; object-fit: contain; display: block; }
/* опрос */
.poll { min-width: min(380px, 70vw); max-width: 460px; padding: 4px 2px 2px; }
.bub:has(.poll) { padding: 12px 14px; }
.pq { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; } .pq .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--acc); } .msg.mine .pq .ic { color: #fff; }
.ph { display: block; font-size: 12px; opacity: .7; margin: 2px 0 10px 28px; }
.po { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); text-align: left; overflow: hidden; transition: border-color .15s; color: inherit; }
:root[data-theme="light"] .msg:not(.mine) .po { background: rgba(10,30,20,.05); border-color: var(--line); }
.po:hover:not(:disabled) { border-color: var(--acc); } .po:disabled { cursor: default; }
.pbar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--acc) 22%, transparent); transition: width .5s cubic-bezier(.2,1,.3,1); }
.msg.mine .pbar { background: rgba(255,255,255,.2); }
.pck { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; flex: none; display: grid; place-items: center; } .po.on .pck { background: var(--acc2); border-color: var(--acc2); opacity: 1; color: #fff; } .msg.mine .po.on .pck { background: #fff; border-color: #fff; color: var(--acc-d); } .pck .ic { width: 12px; height: 12px; stroke-width: 3; }
.pt { position: relative; flex: 1; font-weight: 500; } .pc { position: relative; font-size: 12px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.po.win { border-color: var(--yellow); } .po.win .pt::after { content: " 🏆"; }
.pf { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .75; margin-top: 4px; } .msg.mine .pf .lnk { color: #fff; }
.pqrow { display: flex; gap: 8px; margin-bottom: 8px; } .pqrow input { flex: 1; padding: 10px 12px; border-radius: 9px; background: var(--rail); border: 1px solid var(--line2); outline: none; } .pqrow input:focus { border-color: var(--acc); } .pqrow .ib { width: 40px; height: 40px; flex: none; }
/* боты, тайм-ауты */
.botb { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 5px; background: var(--acc2); color: #fff; font: 800 10px/1 var(--font); letter-spacing: .03em; vertical-align: 2px; margin-left: 4px; }
.mem .tmo, .tmo { color: var(--yellow); display: inline-flex; margin-left: 4px; } .tmo .ic { width: 14px; height: 14px; }
.tmopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; } .tmopts input { display: none; } .tmopts span { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--side); border: 1px solid var(--line); cursor: pointer; font-weight: 600; } .tmopts input:checked + span { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); }
.botnew { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; } .botnew .fld { margin: 0; } .botnew .btn { height: 44px; }
.botlist { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; } .boti { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--side); border: 1px solid var(--line); flex-wrap: wrap; } .boti .gmn { flex: 1 1 200px; }
.devdoc { background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; font-size: 14px; color: var(--txt2); } .devdoc code { word-break: break-all; }
/* журнал */
.aulist { display: flex; flex-direction: column; } .aui { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.auic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); color: var(--txt2); flex: none; } .auic .ic { width: 16px; height: 16px; } .auic.red { color: var(--red); background: rgba(240,86,90,.12); }
.aut { flex: 1; min-width: 0; color: var(--txt2); line-height: 1.6; } .aut b { color: var(--txt); } .aut .av { vertical-align: middle; } .aut small { display: block; color: var(--mut); font-size: 12px; line-height: 1.3; } .aux { color: var(--mut); }
/* эмодзи сервера в настройках */
.emup { display: flex; gap: 10px; margin-bottom: 12px; } .emup .inp { max-width: 300px; }
.emlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .emi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--side); border: 1px solid var(--line); } .emi img { width: 32px; height: 32px; object-fit: contain; } .emi span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; } .emi small { color: var(--mut); font-size: 12px; } .emi .ib { width: 30px; height: 30px; background: transparent; }
.stklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .sti { position: relative; padding: 10px; border-radius: 14px; background: var(--side); border: 1px solid var(--line); text-align: center; } .sti img { width: 100%; aspect-ratio: 1; object-fit: contain; } .sti span { font-size: 13px; font-weight: 600; } .sti .ib { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; background: var(--panel); }

/* =====================================================================
   ChatEngine 1.4 — телефон: экраны «список» и «чат», нижняя панель,
   шторки вместо меню, крупные кнопки, жесты
   ===================================================================== */
:root { --tabh: 62px; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); }
html.noscr [data-v="screen"], html.noscr #vpScr { display: none !important; }
html.touch .mtools, html.touch .msg:hover .mtools { display: none !important; }
html.touch .msg:hover { background: none; }
html.cam-back video.mirror { transform: none !important; }
#tabbar { display: none; }

body.mob { overscroll-behavior: none; }
body.mob #app { display: block; padding: 0; height: 100%; }
body.mob #topbar { position: fixed; left: 0; right: 0; top: 0; height: calc(56px + var(--sat)); padding: var(--sat) 10px 0 14px; z-index: 15; background: var(--bg); gap: 8px; }
body.mob .tb-menu { display: none; }
body.mob .tb-brand { width: auto; } body.mob .tb-brand b { display: block; font-size: 17px; }
body.mob .tb-search { display: none; }
body.mob #userPanel { display: none; }
body.mob #rail { position: fixed; left: 0; top: calc(56px + var(--sat)); bottom: calc(var(--tabh) + var(--sab)); width: 70px; transform: none; z-index: 5; padding: 6px 0 16px; overflow-y: auto; scrollbar-width: none; }
body.mob #rail .rb { width: 50px; height: 50px; }
body.mob #side { position: fixed; left: 70px; right: 0; top: calc(56px + var(--sat)); bottom: calc(var(--tabh) + var(--sab)); width: auto; max-width: none; transform: none; z-index: 5; border-radius: 22px 0 0 0; display: flex; flex-direction: column; }
body.mob #sideBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.mob .chlist { flex: 1; overflow-y: auto; padding-bottom: 20px; }
body.mob .ch { height: 44px; font-size: 16px; border-radius: 12px; padding: 0 10px; }
body.mob .ch .chi .ic { width: 22px; height: 22px; }
body.mob .ch.dm { height: 60px; } body.mob .ch.big { height: 50px; }
body.mob .ch .cha { display: none; } body.mob .ch .x { display: none; }
body.mob .ch:hover { background: none; } body.mob .ch.on { background: var(--press); }
body.mob .ch:active { background: var(--hover); }
body.mob .vu { min-height: 34px; }
body.mob .ghead { height: 64px; border-radius: 22px 0 0 0; }
body.mob .dmsearch button { height: 40px; font-size: 15px; }

/* экран чата — поверх списка, выезжает справа */
body.mob #main { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 20; border-radius: 0; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: -12px 0 32px -12px rgba(0,0,0,.5); visibility: hidden; }
body.mob.m-main #main, body.mob.m-drag #main { transform: none; visibility: visible; }
body.mob.m-drag #main { visibility: visible; }
body.mob.m-main.m-tabs #main { bottom: calc(var(--tabh) + var(--sab)); }
body.mob.m-main.m-voice #main { top: calc(52px + var(--sat)); border-radius: 18px 18px 0 0; }
body.mob.m-main #main .mhead { padding-top: 0; }
body.mob:not(.m-voice) #main { padding-top: var(--sat); }
/* в звонке на экране чата сверху остаётся полоска звонка */
body.mob.m-main #topbar { z-index: 25; height: calc(52px + var(--sat)); }
body.mob.m-main #topbar .tb-brand { display: none; }
body.mob.m-main:not(.m-voice) #topbar { display: none; }
body.mob #voicePanel.on { flex: 1; min-width: 0; padding: 3px 3px 3px 12px; }
body.mob #voicePanel.on .vp-st { flex: 1; } body.mob #voicePanel.on .vp-st span { display: flex; } body.mob .vp-st small { max-width: 40vw; }
body.mob #voicePanel .vb { width: 40px; height: 40px; }
body.mob #topbar .spacer { display: none; }
body.mob:not(.m-voice) #topbar .spacer { display: block; }

/* нижняя панель */
body.mob.m-tabs #tabbar { display: flex; }
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabh) + var(--sab)); padding: 0 4px var(--sab); z-index: 30; background: color-mix(in srgb, var(--side) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
#tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mut); font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
#tabbar .tbi { position: relative; width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s, color .2s; }
#tabbar .tbi .ic { width: 24px; height: 24px; }
#tabbar .tbi .badge { position: absolute; top: -4px; right: 2px; border: 2px solid var(--side); height: 20px; line-height: 16px; min-width: 20px; font-size: 11px; }
#tabbar button.on { color: var(--txt); } #tabbar button.on .tbi { background: var(--acc-bg); color: var(--acc); }
#tabbar .av .st { border-color: var(--side); }

/* шапка чата и поле ввода */
body.mob .mhead { height: 56px; padding: 0 6px 0 4px; gap: 6px; }
body.mob .mhead .hb { width: 40px; height: 40px; }
body.mob .mhead .hb.mob { display: grid; }
body.mob .mhead .ht { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
body.mob .mhead .topic, body.mob .mhead .vsep, body.mob .hsearch { display: none; }
.hb.msrch { display: none; } body.mob .hb.msrch { display: grid; }
body.mob .mhead [data-h=profile], body.mob .mhead [data-h=add] { display: none; }
body.mob .ftabs { overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; } body.mob .ftabs button { flex: none; }
body.mob .mhead > .vsep + .ftabs { margin-left: 0; }
body.mob #msgs { overscroll-behavior: contain; }
body.mob .msg { padding: 2px 10px 2px 58px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.mob .msg .mav { left: 10px; }
body.mob .composer-wrap { padding: 6px 8px calc(8px + var(--sab)); }
body.mob .composer { border-radius: 22px; padding: 4px 4px 4px 6px; gap: 2px; align-items: flex-end; }
body.mob #cInput { font-size: 16px; padding: 10px 4px; max-height: 40vh; }
body.mob .cbtn { width: 40px; height: 40px; border-radius: 50%; }
body.mob .cbtn.send { background: var(--acc2); color: #fff; }
body.mob .typing { padding-left: 16px; }
body.mob .jump { margin: 0 8px; }

/* участники — панель справа */
body.mob .members { display: none; }
body.mob.m-members .members { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); z-index: 95; padding: calc(16px + var(--sat)) 10px calc(16px + var(--sab)); box-shadow: -20px 0 40px rgba(0,0,0,.45); animation: memIn .25s cubic-bezier(.2,.8,.2,1); }
@keyframes memIn { from { transform: translateX(100%); } }
#mscrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
body.mob .mem { min-height: 48px; }

/* меню и окна — шторки снизу */
body.mob .menu, body.mob .popout:not(.static) { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; max-width: none !important; min-width: 0; max-height: 82vh; border-radius: 24px 24px 0 0; padding-bottom: calc(10px + var(--sab)); animation: sheetUp .26s cubic-bezier(.2,.9,.25,1); transition: transform .2s; overflow-y: auto; z-index: 100; }
body.mob .popout.emoji { height: 62vh; display: flex; }
body.mob .popout.emoji .emb { flex: 1; } body.mob .emg button { width: 44px; height: 44px; font-size: 26px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
body.mob:has(.menu, .popout:not(.static))::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; animation: fadeIn .2s; }
.ygrab { width: 40px; height: 5px; border-radius: 3px; background: var(--mut2); margin: 8px auto 6px; flex: none; }
body:not(.mob) .ygrab { display: none; }
body.mob .menu { padding: 0 10px calc(12px + var(--sab)); }
body.mob .menu button { min-height: 50px; font-size: 16px; padding: 10px 14px; border-radius: 14px; }
body.mob .menu button .ic { width: 22px; height: 22px; order: -1; color: var(--txt2); }
body.mob .menu button:hover { background: none; color: var(--txt2); } body.mob .menu button:active { background: var(--hover); }
body.mob .menu button.danger, body.mob .menu button.danger .ic { color: var(--red); } body.mob .menu button.danger:hover { background: none; color: var(--red); }
body.mob .menu hr { margin: 6px 10px; }
.qreact { display: flex; justify-content: space-between; gap: 6px; padding: 4px 4px 10px; }
.qreact button { flex: 1; height: 50px; border-radius: 16px !important; background: var(--panel2); font-size: 26px !important; justify-content: center; padding: 0 !important; min-height: 0 !important; }
.qreact button:active { transform: scale(.92); }
.mpv { display: flex; gap: 10px; align-items: center; padding: 4px 6px 12px; color: var(--mut); font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mpv span { display: flex; flex-direction: column; min-width: 0; } .mpv b { color: var(--txt); font-size: 14px; } .mpv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mob .popout.profile .pbanner { height: 90px; }

/* «Вы» */
.popout.you { padding: 0 14px; }
.yhead { display: flex; gap: 14px; align-items: center; padding: 6px 4px 16px; }
.yhead div { display: flex; flex-direction: column; min-width: 0; } .yhead b { font: 800 20px var(--head); } .yhead span { color: var(--mut); } .yhead small { color: var(--txt2); margin-top: 2px; }
.ysts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.yst { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--panel2); font-weight: 600; color: var(--txt2); border: 2px solid transparent; }
.yst .dot { width: 12px; height: 12px; border-radius: 50%; } .yst.on { border-color: var(--acc); color: var(--txt); }
.ylist { display: flex; flex-direction: column; background: var(--panel2); border-radius: 16px; overflow: hidden; }
.ylist button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; font-size: 16px; text-align: left; color: var(--txt); border-bottom: 1px solid var(--line); }
.ylist button:last-child { border: 0; } .ylist button .ic { width: 22px; height: 22px; color: var(--txt2); } .ylist button.red, .ylist button.red .ic { color: var(--red); }
.ylist button:active { background: var(--hover); }
.yfoot { text-align: center; color: var(--mut); font-size: 12px; padding: 14px 0 6px; }

/* окна */
body.mob .modal-ov { padding: 0; place-items: end stretch; }
body.mob .modal { width: 100% !important; max-width: none; max-height: calc(100% - 24px - var(--sat)); border-radius: 24px 24px 0 0; transform: translateY(40px); padding-bottom: var(--sab); }
body.mob .modal-ov.in .modal { transform: none; }
body.mob .modal footer { flex-wrap: wrap; } body.mob .modal footer .btn { flex: 1; min-height: 46px; }
body.mob .fld input, body.mob .fld textarea, body.mob .fld select, body.mob input, body.mob textarea { font-size: 16px; }

/* настройки: список разделов → раздел */
body.mob .layer { flex-direction: column; padding-top: var(--sat); }
body.mob .layer .lnav { flex: 1; justify-content: stretch; }
body.mob .layer .lnav-in { width: 100%; padding: 64px 14px calc(30px + var(--sab)); }
body.mob .layer .lnav button { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
body.mob .layer .lmain { display: none; flex-direction: column; }
body.mob .layer.pg .lnav { display: none; } body.mob .layer.pg .lmain { display: flex; flex: 1; }
body.mob .layer .lclose { position: fixed; top: calc(10px + var(--sat)); right: 10px; margin: 0; z-index: 3; flex-direction: row; }
body.mob .layer .lclose small { display: none; }
body.mob .layer.pg .lclose { display: none; }
.lback { display: none; }
body.mob .layer .lback { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 3; height: 54px; padding: 0 12px; background: var(--main); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; color: var(--txt); width: 100%; flex: none; }
body.mob .layer .lback .ic { width: 24px; height: 24px; }
body.mob .lcontent { padding: 18px 16px calc(100px + var(--sab)); }
body.mob .lcontent h1 { font-size: 22px; }

/* звонок */
body.mob .tiles { padding: 10px; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: auto; align-content: start; overflow-y: auto; }
body.mob .tiles .tile { aspect-ratio: 3/4; min-height: 0; }
body.mob .tiles .tile.scr, body.mob .tiles .tile.hasv.scr { aspect-ratio: 16/9; grid-column: 1 / -1; }
body.mob .tiles.focused .tile.focus { height: auto; max-height: none; width: 100%; grid-column: 1 / -1; aspect-ratio: 16/9; }
body.mob .tiles.focused .tile:not(.focus) { aspect-ratio: 1; }
body.mob .vctl { gap: 10px; padding: 10px 10px calc(16px + var(--sab)); flex-wrap: wrap; }
body.mob .vcb { width: 56px; height: 56px; } body.mob .vsep2 { display: none; }
body.mob .ctiles .tile { width: calc(50% - 8px); max-width: none; aspect-ratio: 3/4; }
body.mob .ctiles.focused .tile.focus { width: 100%; aspect-ratio: 16/9; }
body.mob .ctiles.focused .tile:not(.focus) { width: 96px; aspect-ratio: 1; }
body.mob .callcard { width: calc(100% - 32px); padding: 40px 20px 30px; }
body.mob .callcard .cb { width: 66px; height: 66px; }
body.mob .stjoin { padding: 24px 16px; }
body.mob #viewer .vw-bar button, body.mob #viewer .vw-top { font-size: 15px; }

/* друзья */
body.mob .fwrap { padding-bottom: 10px; }
body.mob .frow { min-height: 64px; padding: 8px 10px; }
body.mob .frow .fa .ib { width: 40px; height: 40px; }
body.mob .addbox { flex-direction: column; align-items: stretch; gap: 8px; } body.mob .addbox .btn { min-height: 44px; }

/* toasts над нижней панелью */
body.mob #toasts { bottom: calc(var(--tabh) + 14px + var(--sab)); }
body.mob.m-main:not(.m-tabs) #toasts { bottom: calc(86px + var(--sab)); }

/* приложение Android: системная строка уже снаружи страницы */
html.android body.mob { --sat: 0px; --sab: 0px; }
.tbq { display: none; } body.mob .tbq { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--txt2); background: var(--side); border: 1px solid var(--line); flex: none; } body.mob .tbq .ic { width: 22px; height: 22px; }
body.mob.m-main #topbar .tbq { display: none; }
body.mob #mscrim { position: fixed; z-index: 94; }
body.mob #sideTgl { display: none; }
body.mob.m-voice:not(.m-main) .tb-brand { display: none; }
body.mob .cctl .vcb, body.mob #cctl .vcb { width: 46px; height: 46px; } body.mob #cctl { gap: 6px; flex-wrap: nowrap; }
body.mob #cctl .cbt { display: none; } body.mob #cctl { flex-wrap: wrap; }
body.mob.m-members .members { background: var(--side); border-radius: 22px 0 0 22px; }

/* =====================================================================
   ChatEngine 1.5 — заявки в друзья, превью бесед, обновления, восстановление
   ===================================================================== */
.dmsearch button { display: flex; align-items: center; gap: 8px; } .dmsearch button .ic { width: 16px; height: 16px; flex: none; }
/* заявки в друзья */
.freq { margin: 4px 0 10px; padding: 10px; border-radius: 16px; background: var(--acc-bg); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); animation: pop .3s; }
.freq-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; color: var(--acc); } .freq-h b { flex: 1; color: var(--txt); font-size: 14px; } .freq-h .ic { width: 18px; height: 18px; }
.freq-r { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 12px; cursor: pointer; } .freq-r:hover { background: var(--hover); }
.freq-r .chn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .freq-r .chn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .freq-r .chn small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--panel2); color: var(--txt2); transition: transform .1s, background .15s; } .fq .ic { width: 18px; height: 18px; }
.fq.ok { background: var(--acc2); color: #fff; } .fq.no:hover { background: var(--red); color: #fff; } .fq:active { transform: scale(.9); }
.freq-more { width: 100%; padding: 8px; color: var(--acc); font-weight: 600; font-size: 13px; }
/* друзья в сети — полоска */
.onstrip { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; } .onstrip::-webkit-scrollbar { display: none; }
.ons { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; flex: none; color: var(--txt2); } .ons small { font-size: 11px; max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ons:active { transform: scale(.95); }
body:not(.mob) .onstrip { display: none; }
/* строки бесед: имя, время, последнее сообщение, счётчик */
.ch.dm { height: 58px; } .ch.dm .chn { flex: 1; min-width: 0; gap: 2px; }
.dmt, .dmp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dmt b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dmt time { font-size: 11px; color: var(--mut); flex: none; }
.dmp small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.dmp .incall { color: var(--acc); display: inline-flex; } .dmp .incall .ic { width: 14px; height: 14px; }
.ch.dm.unread .dmp small { color: var(--txt2); } .ch.dm.unread .dmt time { color: var(--acc); }
.dmp .badge { flex: none; }
.ch.dm:hover .x { display: none; } .ch.dm:hover .dmt time { display: none; } .ch.dm .x { position: absolute; right: 8px; top: 8px; } body:not(.mob) .ch.dm:hover .x { display: flex; }
body.mob .ch.dm { height: 68px; }
/* кнопка «новый чат» */
#fab { position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 20px; background: var(--acc2); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06) inset; z-index: 4; animation: pop .3s; } #fab .ic { width: 24px; height: 24px; } #fab:active { transform: scale(.94); }
body.mob .chlist { padding-bottom: 90px; }
/* свайп сообщения влево — ответить */
body.mob .msg { transition: transform .2s; } body.mob .msg::after { content: ""; position: absolute; right: -44px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6b0ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 5 5v6'/%3E%3C/svg%3E") center/16px no-repeat; opacity: 0; transition: opacity .15s, background-color .15s; }
body.mob .msg.rsw::after { opacity: 1; background-color: var(--acc-bg); }
body.mob #mlist { overflow-x: hidden; }
/* обновление приложения */
.updbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 105; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); width: min(520px, calc(100% - 24px)); animation: sheetUp .35s cubic-bezier(.2,.9,.25,1); }
.updbar > .ic { width: 24px; height: 24px; color: var(--acc); flex: none; } .updbar span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .updbar small { color: var(--mut); font-size: 12px; }
body.mob .updbar { bottom: calc(var(--tabh) + 12px + var(--sab)); }
/* приложения */
.apps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.appr { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); } .appr > .ic { width: 26px; height: 26px; color: var(--acc); flex: none; }
.appr span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .appr small { color: var(--mut); font-size: 12px; }
body.mob .appr { flex-wrap: wrap; } body.mob .appr .btn { width: 100%; justify-content: center; min-height: 42px; }
/* восстановление пароля */
.forgot { display: block; margin: 12px auto 0; color: var(--acc); font-weight: 600; }
.auth-p { color: var(--txt2); margin: -6px 0 16px; line-height: 1.45; font-size: 14px; }
body.mob .mhead > b:not(.ht), body.mob .mhead > svg.ic:first-child, body.mob .mhead > .vsep { display: none; }
body.mob .ftabs { gap: 4px; } body.mob .ftabs button { padding: 6px 10px; }

/* =====================================================================
   ChatEngine 1.6 — настройки: меню со значками и поиском, карточки
   ===================================================================== */
.layer { background: var(--bg); }
.lnav { background: var(--bg); flex: 1 0 280px; }
.lnav-in { width: 280px; padding: 40px 14px 24px 18px; gap: 0; }
.lnu { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; margin-bottom: 12px; border-radius: 16px !important; background: var(--side); border: 1px solid var(--line); justify-content: flex-start !important; text-align: left; }
.lnu span { display: flex; flex-direction: column; min-width: 0; } .lnu b { font-size: 15px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lnu small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lnu:hover { border-color: var(--line2); } .lnu.on { border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: var(--side) !important; }
.lnu .av .st { border-color: var(--side); }
.lns { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin-bottom: 14px; border-radius: 11px; background: var(--side); border: 1px solid var(--line); color: var(--mut); }
.lns:focus-within { border-color: var(--acc); } .lns .ic { width: 16px; height: 16px; flex: none; } .lns input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--txt); font: inherit; font-size: 14px; }
.lnav h6 { margin: 14px 12px 6px; font-size: 11px; letter-spacing: .06em; }
.lgrp { display: flex; flex-direction: column; gap: 2px; }
.lnav .lgrp button { justify-content: flex-start; gap: 12px; padding: 9px 12px; border-radius: 11px; font-size: 14.5px; position: relative; }
.lnav .lgrp button .nic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--side); color: var(--txt2); flex: none; transition: background .15s, color .15s; }
.lnav .lgrp button .nic .ic { width: 17px; height: 17px; }
.lnav .lgrp button.on { background: var(--side); color: var(--txt); } .lnav .lgrp button.on .nic { background: var(--acc2); color: #fff; }
.lnav .lgrp button:hover .nic { color: var(--txt); }
.lnav .lgrp button.danger .nic { color: var(--red); } .lnav .lgrp button.danger:hover { background: rgba(240,86,90,.1); }
.lnav .lgrp button .chev { margin-left: auto; color: var(--mut); display: flex; } .lnav .lgrp button .chev .ic { width: 18px; height: 18px; }
.lnav .lgrp:last-of-type { margin-top: 14px; }
.lver { margin-top: 14px; padding: 0 12px; }
.lmain { background: var(--main); border-radius: 26px 0 0 26px; box-shadow: -20px 0 50px -30px rgba(0,0,0,.6); }
:root[data-theme="light"] .lmain { box-shadow: -20px 0 50px -30px rgba(0,0,0,.15); }
.lcontent { max-width: 780px; padding: 48px 44px 140px; }
.lcontent h1 { font: 800 26px var(--head); letter-spacing: -.02em; margin: 0 0 6px; }
.lsub { color: var(--mut); font-size: 14px; margin: 0 0 26px; }
.lcontent h3 { font: 700 12px var(--body, inherit); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 30px 0 10px; }
.scard { background: var(--side); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; margin: 0 0 14px; }
.scard .sw { border-bottom: 1px solid var(--line); padding: 14px 0; } .scard .sw:last-child { border-bottom: 0; }
.lcontent .ctype label > span { background: var(--side); border-radius: 14px; }
/* устройства */
.sess { display: flex; flex-direction: column; background: var(--side); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.sesr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .sesr:last-child { border-bottom: 0; }
.sesr span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sesr b { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sesr small { color: var(--mut); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.sesr em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--acc); background: var(--acc-bg); padding: 2px 7px; border-radius: 6px; }
.sic { width: 40px; height: 40px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; color: var(--txt2); flex: none; } .sic .ic { width: 20px; height: 20px; } .sesr.cur .sic { background: var(--acc-bg); color: var(--acc); }
.sesr .dot.on { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; display: inline-block; }
.btn.danger-o { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: transparent; } .btn.danger-o:hover { background: rgba(240,86,90,.1); }
html.reduce *, html.reduce *::before, html.reduce *::after { animation-duration: 0s !important; transition-duration: 0s !important; }

/* телефон: настройки как в системных приложениях */
body.mob .layer .lnav-in { padding: 16px 14px calc(30px + var(--sab)); }
body.mob .lnu { padding: 14px !important; margin: 44px 0 14px; }
body.mob .lnu b { font-size: 18px; }
body.mob .lnav h6 { margin: 18px 14px 8px; }
body.mob .lgrp { background: var(--side); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; gap: 0; }
body.mob .lnav .lgrp button { border-radius: 0; padding: 12px 14px; font-size: 16px; border-bottom: 1px solid var(--line); }
body.mob .lnav .lgrp button:last-child { border-bottom: 0; } body.mob .lnav .lgrp button.on { background: transparent; } body.mob .lnav .lgrp button.on .nic { background: var(--side); color: var(--txt2); background: var(--panel2); }
body.mob .lnav .lgrp button .nic { background: var(--panel2); }
body.mob .lnav .lgrp button:active { background: var(--hover); }
body.mob .lmain { border-radius: 0; box-shadow: none; }
body.mob .lcontent h1 { font-size: 24px; } body.mob .lsub { margin-bottom: 18px; }
body.mob .lns { height: 44px; border-radius: 14px; }
body.mob .lns input { font-size: 16px; }
.lnav-in > * { flex: none; }
html.touch .lnav button:hover { background: transparent; }
.lnu .av { flex: none; }
