/* Лист чатов: каналы, личные, лента, поле ввода, настройки канала, карточка человека. Правила из прототипа v72 (сборщик extract-css.js). */
:root { color-scheme: dark; --font-ui: "Golos Text","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --font-mono: "JetBrains Mono",ui-monospace,"Cascadia Mono",Menlo,Consolas,monospace; --bg-0: #09090b; --bg-1: #0e0e11; --bg-2: #141418; --bg-3: #1b1b20; --bg-4: #232329; --bg-5: #2c2c33; --bg-hover: rgba(255,255,255,.05); --line-soft: rgba(255,255,255,.07); --line: rgba(255,255,255,.11); --line-strong: rgba(255,255,255,.2); --text-1: #f4f4f6; --text-2: #bdbdc6; --text-3: #8a8a95; --text-4: #6f6f7a; --accent: #f5b84f; --accent-soft: rgba(245, 184, 79,.14); --accent-line: rgba(245, 184, 79,.5); --current: #f3efe8; --current-soft: rgba(243,239,232,.12); --current-line: rgba(243,239,232,.34); --current-ink: #55524c; --warn: #f2b84b; --av-1: #2d3b57; --av-2: #3c2d4f; --av-3: #2d4a44; --av-4: #4a3a2d; --av-5: #3f2d33; --av-6: #2d3f2f; --glass: rgba(22,22,26,.88); --shadow-2: 0 12px 32px -12px rgba(0,0,0,.8); --shadow-lift: 0 22px 40px -14px rgba(0,0,0,.9); --dots: rgba(255,255,255,.06); --pop: cubic-bezier(.2,.9,.3,1.25); --ease: cubic-bezier(.2,.7,.2,1); }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0px; background: var(--bg-0); color: var(--text-1); font: 14px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0px; cursor: pointer; padding: 0px; }
.app { height: 100%; display: grid; grid-template-columns: minmax(0px, 1fr); grid-template-rows: auto minmax(0px, 1fr); }
.area { position: relative; min-height: 0px; overflow: hidden; background: var(--bg-1); }
.w { fill: none; stroke-linecap: round; transition: opacity 0.2s, stroke 0.2s, stroke-width 0.15s; }
.av { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-1); flex: 0 0 auto; box-sizing: border-box; }
.av1 { background: var(--av-1); }
.av2 { background: var(--av-2); }
.av3 { background: var(--av-3); }
.av4 { background: var(--av-4); }
.av5 { background: var(--av-5); }
.av6 { background: var(--av-6); }
.sd { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; border: 1.5px solid var(--text-4); box-sizing: border-box; display: inline-block; }
.sd.d { background: var(--current); border-color: var(--current); }
.sd.l { background: var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce){
*, ::before, ::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
body.odrag, body.odrag * { cursor: grabbing !important; }
button.tr:hover, .tr.hov:hover { background: var(--bg-hover); }
button.tq { width: 100%; text-align: left; border-radius: 10px; transition: background-color 0.12s; }
button.tq:hover { background: var(--bg-hover); }
button.rw:hover, .rw.vr2:hover { background: var(--bg-3); }
.mb-x { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); }
.mb-x:hover { background: var(--bg-4); color: var(--text-1); }
.mb-x svg { width: 15px; height: 15px; }
.mb-in { height: 36px; padding: 0px 12px; box-sizing: border-box; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--text-1); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 13px; outline: none; min-width: 0px; flex: 0 0 auto; width: 100%; }
.mb-in:focus { border-color: var(--line-strong); }
select.mb-in { appearance: auto; }
.cw-sp { flex: 1 1 0%; }
.cw-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0px 16px 0px 13px; border-radius: 12px; background: var(--text-1); color: var(--bg-1); font-size: 13px; font-weight: 600; }
.cw-btn svg { width: 16px; height: 16px; }
.cw-btn:hover { background: rgb(255, 255, 255); }
button.cw-tw:hover { background: var(--bg-4); color: var(--text-1); }
.cw-pd { display: inline-block; width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
.cwx { position: absolute; left: 0px; right: 0px; margin: 0px auto; width: min(1240px, 100% - 48px); z-index: 13; display: flex; flex-direction: column; min-height: 0px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(140%); box-shadow: rgba(0, 0, 0, 0.95) 0px 34px 90px -30px; font-family: var(--font-ui); animation: cwin .32s var(--ease); overflow: hidden; }
@keyframes cwin { 
  0% { opacity: 0; transform: translateY(14px) scale(0.985); }
}
.cw-x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text-3); }
.cw-x:hover { background: var(--bg-4); color: var(--text-1); }
.cw-x svg { width: 17px; height: 17px; }
body.home-full .app { grid-template-rows: minmax(0px, 1fr); }
body.home-full .app > .top { display: none; }
.cwx.chx { display: grid; grid-template-columns: 272px minmax(0px, 1fr); flex-direction: initial; width: min(1180px, 100% - 48px); transition: width .3s var(--ease); }
.cwx.chx.th-on { grid-template-columns: 272px minmax(0px, 1fr) 360px; width: min(1420px, 100% - 48px); }
.ch-side { display: flex; flex-direction: column; min-height: 0px; border-right: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.14); position: relative; }
.ch-sh { display: flex; align-items: center; gap: 8px; padding: 18px 14px 10px 20px; }
.ch-sh h2 { margin: 0px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ch-addb { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--line-soft); }
.ch-addb:hover { color: var(--text-1); border-color: var(--line-strong); }
.ch-addb svg { width: 17px; height: 17px; }
.ch-q { display: flex; align-items: center; gap: 8px; margin: 0px 12px 8px; height: 36px; padding: 0px 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--text-4); }
.ch-q svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ch-q input { flex: 1 1 0%; min-width: 0px; background: none; border: 0px; outline: 0px; color: var(--text-1); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 13px; }
.ch-q input::placeholder { color: var(--text-4); }
.ch-list { flex: 1 1 0%; min-height: 0px; overflow-y: auto; padding: 0px 8px 14px; scrollbar-width: thin; }
.ch-grp { font: 600 10.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); padding: 14px 12px 6px; }
.ch-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 12px; text-align: left; color: var(--text-2); }
.ch-row:hover { background: var(--bg-3); }
.ch-row.on { background: var(--bg-4); color: var(--text-1); }
.ch-row .av { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
.ch-rt { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 1px; }
.ch-rt b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rt span { font-size: 12px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row.un .ch-rt b { font-weight: 700; color: var(--text-1); }
.ch-row.un .ch-rt span { color: var(--text-3); }
.ch-rm { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; font: 500 10.5px var(--font-mono); color: var(--text-4); }
.ch-rm i { min-width: 18px; height: 18px; padding: 0px 5px; border-radius: 9px; background: var(--text-1); color: var(--bg-1); font: 700 10.5px var(--font-ui); display: grid; place-items: center; }
.ch-hash { position: relative; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-3); flex: 0 0 auto; }
.ch-hash svg { width: 15px; height: 15px; }
.ch-hash .cw-pd { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 4px; box-shadow: 0 0 0 2px var(--bg-2); }
.ch-hash.big { width: 40px; height: 40px; border-radius: 13px; }
.ch-hash.big svg { width: 19px; height: 19px; }
.ch-avw { position: relative; display: inline-grid; flex: 0 0 auto; }
.ch-avw.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: rgb(111, 208, 143); box-shadow: 0 0 0 2px var(--bg-2); }
.ch-addp { margin: 0px 12px 10px; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.9) 0px 20px 40px -20px; animation: chpop .18s var(--ease); }
.ch-newch { display: flex; flex-direction: column; gap: 10px; }
.ch-newch > b { font-size: 13px; font-weight: 600; }
.ch-chn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0px 10px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line-soft); color: var(--text-4); }
.ch-chn svg { width: 14px; height: 14px; }
.ch-chn input { flex: 1 1 0%; min-width: 0px; background: none; border: 0px; outline: 0px; color: var(--text-1); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 13px; }
.ch-pjs { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-pjs button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0px 10px; border-radius: 9px; font-size: 12px; color: var(--text-3); border: 1px solid var(--line-soft); }
.ch-pjs button.on { background: var(--bg-4); color: var(--text-1); border-color: var(--line); }
.ch-newch .cw-btn { justify-content: center; height: 34px; }
.ch-addsep { font-size: 11px; color: var(--text-4); margin: 12px 0px 8px; text-align: center; }
.ch-addppl { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-addppl button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; font-size: 11px; color: var(--text-3); }
.ch-addppl button:hover { color: var(--text-1); }
.ch-addppl .av { width: 32px; height: 32px; border-radius: 11px; font-size: 13px; }
.ch-main { display: flex; flex-direction: column; min-width: 0px; min-height: 0px; position: relative; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; min-width: 0px; }
.ch-head > .ch-avw .av { width: 40px; height: 40px; border-radius: 13px; font-size: 15px; }
.ch-ht { display: flex; flex-direction: column; gap: 2px; min-width: 0px; }
.ch-ht b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.ch-ht span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.ch-ond { width: 7px; height: 7px; border-radius: 50%; background: rgb(111, 208, 143); display: inline-block; }
.ch-pj { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2); background: var(--bg-3); border: 1px solid var(--line-soft); white-space: nowrap; flex: 0 0 auto; }
.ch-pj:hover { color: var(--text-1); border-color: var(--line-strong); }
.ch-pj span { display: grid; opacity: 0.6; }
.ch-pj svg { width: 14px; height: 14px; }
.ch-ppl { display: inline-flex; align-items: center; margin-right: 4px; }
.ch-ppl .av { width: 26px; height: 26px; border-radius: 9px; font-size: 11px; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-2); }
.ch-hb { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0px 12px; border-radius: 11px; font-size: 13px; color: var(--text-3); white-space: nowrap; flex: 0 0 auto; }
.ch-hb:hover { background: var(--bg-4); color: var(--text-1); }
.ch-hb.on { background: var(--bg-4); color: var(--text-1); }
.ch-hb svg { width: 16px; height: 16px; }
.ch-feedw { flex: 1 1 0%; min-height: 0px; position: relative; }
.ch-feed { position: absolute; inset: 0px; overflow-y: auto; padding: 6px 0px 14px; scrollbar-width: thin; }
.ch-day { display: flex; align-items: center; gap: 12px; margin: 16px 22px 6px; font: 600 11px var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-4); }
.ch-day::before, .ch-day::after { content: ""; flex: 1 1 0%; height: 1px; background: var(--line-soft); }
.ch-new { display: flex; align-items: center; gap: 10px; margin: 10px 22px 4px; font: 600 11px var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ch-new::after { content: ""; flex: 1 1 0%; height: 1px; background: var(--accent-line); }
.ch-m { position: relative; display: flex; gap: 12px; padding: 7px 22px; transition: background-color 0.15s; }
.ch-m:hover, .ch-m.popon { background: rgba(255, 255, 255, 0.024); }
.ch-m.pinned { box-shadow: rgba(243, 239, 232, 0.25) 2px 0px 0px inset; }
.ch-m > .av { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; margin-top: 2px; }
.ch-mb { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ch-mh { display: flex; align-items: baseline; gap: 8px; }
.ch-mh b { font-size: 13.5px; font-weight: 600; }
.ch-mh > span { font: 500 11px var(--font-mono); color: var(--text-4); }
.ch-pinm { display: inline-flex; align-items: center; gap: 4px; color: var(--text-4); font: 500 11px var(--font-ui) !important; }
.ch-pinm svg { width: 12px; height: 12px; }
.ch-tx { font-size: 14px; line-height: 1.5; color: var(--text-1); overflow-wrap: anywhere; max-width: 68ch; }
.ch-file { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-soft); max-width: 320px; }
.ch-file > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0px; }
.ch-file b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-file b + span { font: 500 11px var(--font-mono); color: var(--text-4); }
.ch-fi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-5); color: var(--text-2); flex: 0 0 auto; }
.ch-fi svg { width: 16px; height: 16px; }
.ch-tchip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0px 12px 0px 10px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.ch-tchip:hover { border-color: var(--line-strong); color: var(--text-1); }
.ch-tchip > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tchip em { font-style: normal; font-size: 11.5px; color: var(--text-4); white-space: nowrap; }
.ch-tchip .sd { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--text-3); flex: 0 0 auto; }
.ch-tchip .sd.d { background: var(--text-3); }
.ch-tchip .sd.l { border-color: var(--accent); background: var(--accent-soft); }
.ch-rxs { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-rx { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0px 8px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line-soft); font-size: 13px; }
.ch-rx b { font: 600 11px var(--font-mono); color: var(--text-3); }
.ch-rx.me { background: rgba(245, 184, 79, 0.12); border-color: var(--accent-line); }
.ch-rx.me b { color: rgb(243, 185, 166); }
.ch-rx:hover { border-color: var(--line-strong); }
.ch-rx.rxadd { color: var(--text-4); opacity: 0; transition: opacity 0.12s; }
.ch-rx.rxadd svg { width: 14px; height: 14px; }
.ch-m:hover .ch-rx.rxadd { opacity: 1; }
.ch-thl { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0px 10px 0px 6px; border-radius: 10px; font-size: 12.5px; color: var(--text-3); border: 1px solid transparent; }
.ch-thl:hover, .ch-thl.on { background: var(--bg-3); border-color: var(--line-soft); }
.ch-thl .av { width: 20px; height: 20px; border-radius: 7px; font-size: 10px; margin-right: -4px; box-shadow: 0 0 0 2px var(--bg-2); }
.ch-thl b { color: rgb(243, 185, 166); font-weight: 600; margin-left: 6px; }
.ch-thl span { color: var(--text-4); }
.ch-acts { position: absolute; top: -14px; right: 18px; display: flex; gap: 1px; padding: 3px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.9) 0px 10px 24px -12px; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 0.12s, transform 0.12s; z-index: 3; }
.ch-m:hover .ch-acts, .ch-m.popon .ch-acts { opacity: 1; pointer-events: auto; transform: none; }
.ch-m:first-child .ch-acts, .ch-day + .ch-m .ch-acts, .ch-new + .ch-m .ch-acts { top: 2px; }
.ch-acts button { width: 32px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); }
.ch-acts button:hover { background: var(--bg-4); color: var(--text-1); }
.ch-acts svg { width: 16px; height: 16px; }
.ch-pop { position: absolute; right: 18px; top: 20px; z-index: 6; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.95) 0px 24px 50px -18px; animation: chpop .16s var(--ease); }
.ch-pop.up { top: auto; bottom: calc(100% - 18px); }
@keyframes chpop { 
  0% { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
.ch-pop.rx { display: flex; gap: 2px; }
.ch-pop.rx button { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; display: grid; place-items: center; }
.ch-pop.rx button:hover { background: var(--bg-4); transform: scale(1.12); }
.ch-pmore { color: var(--text-3); }
.ch-pmore svg { width: 15px; height: 15px; }
.ch-pop.menu { display: flex; flex-direction: column; min-width: 220px; max-height: 300px; overflow-y: auto; }
.ch-pop.menu button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); text-align: left; white-space: nowrap; }
.ch-pop.menu button:hover { background: var(--bg-4); color: var(--text-1); }
.ch-pop.menu button.danger { color: rgb(240, 154, 134); }
.ch-mi { width: 22px; display: grid; place-items: center; color: var(--text-4); }
.ch-mi svg { width: 15px; height: 15px; }
.ch-pins { position: sticky; top: -6px; z-index: 4; margin: 0px 14px 6px; padding: 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.9) 0px 14px 30px -18px; }
.ch-pinsh { display: flex; align-items: center; gap: 6px; padding: 2px 6px 6px; font: 600 10.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); }
.ch-pinsh svg { width: 13px; height: 13px; }
.ch-pinsh button { font: 500 12px var(--font-ui); letter-spacing: 0px; text-transform: none; color: var(--text-3); }
.ch-pinsh button:hover { color: var(--text-1); }
.ch-pinr { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 9px; text-align: left; font-size: 13px; color: var(--text-2); }
.ch-pinr:hover { background: var(--bg-4); }
.ch-pinr .av { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.ch-pinr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-pinr b { color: var(--text-1); font-weight: 600; }
.ch-newb { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0px 14px 0px 11px; border-radius: 999px; background: var(--text-1); color: var(--bg-1); font-size: 12.5px; font-weight: 600; box-shadow: rgba(0, 0, 0, 0.9) 0px 12px 30px -10px; z-index: 5; animation: chpop .2s var(--ease); }
.ch-newb svg { width: 15px; height: 15px; }
.ch-newb[hidden] { display: none; }
.ch-typing { height: 22px; padding: 0px 24px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); flex: 0 0 auto; }
.ch-say { position: relative; padding: 0px 16px 16px; flex: 0 0 auto; }
.ch-ctx { display: flex; flex-direction: column; gap: 6px; }
.ch-ctx:not(:empty) { padding-bottom: 8px; }
.ch-box { border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); transition: border-color 0.15s, box-shadow 0.15s; }
.ch-box textarea { display: block; width: 100%; resize: none; background: none; border: 0px; outline: 0px; color: var(--text-1); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 14px; line-height: 1.5; padding: 12px 16px 4px; min-height: 44px; max-height: 168px; box-sizing: border-box; scrollbar-width: thin; }
.ch-box textarea::placeholder { color: var(--text-4); }
.ch-tools { display: flex; align-items: center; gap: 2px; padding: 4px 8px 8px; }
.ch-tools > button { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--text-4); }
.ch-tools > button:hover { background: var(--bg-4); color: var(--text-1); }
.ch-tools svg { width: 17px; height: 17px; }
.ch-hint { margin-left: 8px; font-size: 11px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0px; }
.ch-tools > .ch-send { width: 34px; height: 34px; background: var(--text-1); color: var(--bg-1); margin-left: 4px; }
.ch-tools > .ch-send:hover { background: rgb(255, 255, 255); color: var(--bg-1); }
.ch-rto { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--bg-3); font-size: 12.5px; color: var(--text-3); }
.ch-rto > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ch-rto span { flex: 1 1 0%; min-width: 0px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rto b { font-weight: 500; color: var(--text-2); }
.ch-rto button, .ch-file.sm button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-4); }
.ch-rto button:hover { background: var(--bg-5); color: var(--text-1); }
.ch-rto button svg { width: 13px; height: 13px; }
.ch-ment { display: flex; flex-direction: column; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: rgba(0, 0, 0, 0.9) 0px 20px 40px -20px; max-width: 360px; animation: chpop .14s var(--ease); }
.ch-ment button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0px 10px; border-radius: 10px; text-align: left; }
.ch-ment button.on, .ch-ment button:hover { background: var(--bg-4); }
.ch-ment .av { width: 24px; height: 24px; border-radius: 8px; font-size: 11px; }
.ch-ment b { font-size: 13px; font-weight: 600; }
.ch-ment span { font-size: 12px; color: var(--text-4); }
.ch-thread { display: flex; flex-direction: column; min-height: 0px; border-left: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.12); animation: chth .28s var(--ease); }
.ch-thread[hidden] { display: none; }
@keyframes chth { 
  0% { opacity: 0; transform: translateX(16px); }
}
.ch-thh { display: flex; align-items: center; gap: 10px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line-soft); }
.ch-thh > div { flex: 1 1 0%; display: flex; flex-direction: column; gap: 1px; }
.ch-thh b { font-size: 15px; font-weight: 600; }
.ch-thh span { font-size: 12px; color: var(--text-4); }
.ch-thb { flex: 1 1 0%; min-height: 0px; overflow-y: auto; padding: 10px 0px; scrollbar-width: thin; }
.ch-thb .ch-m { padding-left: 18px; padding-right: 16px; }
.ch-thb .ch-acts { right: 12px; }
.ch-thsep { display: flex; align-items: center; gap: 10px; margin: 8px 18px; font-size: 11.5px; color: var(--text-4); }
.ch-thsep::after { content: ""; flex: 1 1 0%; height: 1px; background: var(--line-soft); }
.ch-thtyping { min-height: 20px; padding: 0px 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.ch-say.chth { padding: 0px 12px 12px; }
.ch-drop { position: absolute; inset: 8px; border-radius: 18px; border: 2px dashed var(--accent-line); background: rgba(14, 14, 17, 0.82); display: none; place-items: center; z-index: 20; font-size: 15px; color: var(--text-1); }
.ch-drop span { display: inline-flex; align-items: center; gap: 10px; }
.ch-drop svg { width: 20px; height: 20px; }
@media (max-width: 1280px){
.cwx.chx.th-on { grid-template-columns: 240px minmax(0px, 1fr) 330px; }
.ch-hb span { display: none; }
.ch-hb { padding: 0px 10px; }
}
.ks-st { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; }
.ks-st::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1.6px solid var(--text-3); box-sizing: border-box; }
.ks-st.w::before { border-color: var(--text-1); background: linear-gradient(90deg,var(--text-1) 50%,transparent 50%); }
.mt-st { display: flex; align-items: baseline; gap: 10px; font: 600 10.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); margin-bottom: 4px; }
.mt-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.mt-seg button { height: 26px; padding: 0px 9px; border-radius: 8px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.mt-seg button.on { background: var(--bg-4); color: var(--text-1); font-weight: 600; }
.pf-sts i, .pf-stb i, .pf-now i, .pf-cst i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.pf-card { position: fixed; z-index: 59; width: 300px; padding: 14px; border-radius: 18px; background: rgba(22, 22, 27, 0.97); border: 1px solid var(--line-strong); box-shadow: rgb(0, 0, 0) 0px 30px 70px -24px; display: flex; flex-direction: column; gap: 10px; animation: chpop .18s var(--ease); }
.pf-ch { display: flex; align-items: center; gap: 12px; }
.pf-ch > .av { width: 46px; height: 46px; border-radius: 15px; font-size: 18px; }
.pf-ch > div { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 2px; }
.pf-ch b { font-size: 16px; }
.pf-ch span { font-size: 12px; color: var(--text-4); }
.pf-cst { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.pf-cf { display: flex; flex-direction: column; gap: 4px; }
.pf-cf > span { font: 600 10.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); }
.pf-cf button, .pf-cl button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 4px 8px 4px 2px; border-radius: 10px; font-size: 13px; color: var(--text-1); text-align: left; }
.pf-cf button:hover, .pf-cl button:hover { background: var(--bg-3); }
.pf-cf .ks-st { width: 20px; height: 20px; }
.pf-cf em, .pf-cl em { font-style: normal; margin-left: auto; font-size: 11.5px; color: var(--text-4); white-space: nowrap; padding-left: 8px; }
.pf-cl { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.pf-cl button { color: var(--text-2); padding-left: 8px; }
.pf-ca { display: flex; gap: 6px; }
.pf-ca button { flex: 1 1 0%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 11px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line-soft); padding: 0px 8px; }
.pf-ca button:hover { color: var(--text-1); border-color: var(--line-strong); }
.pf-ca .cw-btn { color: var(--bg-1); border-color: transparent; padding: 0px 10px; }
.pf-ca svg { width: 15px; height: 15px; }
.ch-m > .av, .ch-mh b, .dc-msg .av, .vs-p [data-p] { cursor: pointer; }
body.mr-on .mp-toggle { display: none; }
body.um-on #desk .cwx { width: min(1240px, 100% - 156px); }
body.um-on .kz-card { width: min(1320px, 100% - 156px); }
body.gm-in #cwFromGraph { display: none; }
.st-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0px 13px; border-radius: 10px; background: var(--bg-3); color: var(--text-1); font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.st-b:hover { background: var(--bg-4); }
.st-b svg { width: 15px; height: 15px; }
.st-b.dim { background: none; color: var(--text-3); }
.st-b.dim:hover { color: rgb(247, 205, 128); background: rgba(245, 184, 79, 0.08); }
.st-b.wide { width: 100%; }
.st-chp .ch-thh { display: flex; align-items: center; gap: 8px; padding: 16px 14px 10px 18px; font-size: 15px; }
.st-chb { flex: 1 1 0%; min-height: 0px; overflow-y: auto; padding: 4px 18px 24px; display: flex; flex-direction: column; gap: 6px; }
.st-sec { display: flex; flex-direction: column; gap: 7px; padding: 12px 0px 14px; border-bottom: 1px solid var(--line-soft); }
.st-sec:last-child { border-bottom: 0px; }
.st-sec .mt-st { margin-bottom: 2px; }
.st-l { font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 4px; }
.st-n { font-size: 12px; line-height: 1.45; color: var(--text-4); }
.st-in { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0px 12px; border-radius: 11px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text-4); font-size: 14px; }
.st-in input { flex: 1 1 0%; min-width: 0px; background: none; border: 0px; outline: 0px; color: var(--text-1); font: 13.5px var(--font-ui); }
.st-seg { align-self: flex-start; max-width: 100%; flex-wrap: wrap; }
.st-emo { display: flex; flex-wrap: wrap; gap: 4px; }
.st-emo button { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); font-size: 16px; color: var(--text-3); }
.st-emo button svg { width: 15px; height: 15px; }
.st-emo button.on { background: var(--bg-4); box-shadow: inset 0 0 0 1.5px var(--text-2); }
.st-sel { height: 36px; }
.st-danger .mt-st { color: rgb(247, 205, 128); }
.cwx.chx.th-on .ch-hb span { display: none; }
.cwx.chx.th-on .ch-hb { padding: 0px 10px; }
.cwx.chx.th-on .ch-ppl { display: none; }
.vx-sec { display: flex; flex-direction: column; gap: 8px; margin: 2px 0px 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.vx-h { font: 600 10.5px var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); }
.vx-mod { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.vx-mod button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0px 10px; border-radius: 9px; background: var(--bg-3); color: var(--text-2); font-size: 12px; font-weight: 600; }
.vx-mod button:hover { background: var(--bg-4); color: var(--text-1); }
.vx-mod button svg { width: 14px; height: 14px; }
.vx-dw { position: relative; display: inline-flex; }
button.tl-lb:hover b { text-decoration: underline; text-underline-offset: 3px; }
button.vd-nr:hover, .vd-nr.f:hover { background: var(--bg-3); }
:root[data-theme="light"] { color-scheme: light; --bg-0: #e9e7e2; --bg-1: #f5f4f0; --bg-2: #ffffff; --bg-3: #efeee9; --bg-4: #e6e4de; --bg-5: #d9d7d0; --bg-hover: rgba(28,24,20,.05); --line-soft: rgba(28,24,20,.08); --line: rgba(28,24,20,.13); --line-strong: rgba(28,24,20,.24); --text-1: #18171b; --text-2: #45434a; --text-3: #6a6770; --text-4: #8b8890; --accent: #d4911a; --accent-soft: rgba(212, 145, 26,.12); --accent-line: rgba(212, 145, 26,.45); --current: #1d1c21; --current-soft: rgba(29,28,33,.08); --current-line: rgba(29,28,33,.3); --current-ink: #d8d5ce; --warn: #b97d12; --av-1: #d4dcea; --av-2: #ddd3ea; --av-3: #cfe3dc; --av-4: #ead9c8; --av-5: #ead0d6; --av-6: #d3e4d2; --glass: rgba(250,249,246,.9); --shadow-2: 0 12px 32px -14px rgba(40,32,24,.28); --shadow-lift: 0 22px 44px -16px rgba(40,32,24,.32); --dots: rgba(28,24,20,.09); }
:root[data-theme="light"] body { background: var(--bg-0); color: var(--text-1); }
:root[data-theme="light"] .cat-host svg, :root[data-theme="light"] #lnCat svg, :root[data-theme="light"] .mp-cat svg { filter: invert(0.9) sepia(0.08); }
:root[data-theme="light"] .hx-orb::before { background: radial-gradient(circle, rgba(29, 28, 33, 0.07), transparent 62%); }
:root[data-theme="light"] .mp-cat { filter: drop-shadow(rgba(40, 32, 24, 0.18) 0px 10px 18px); }
:root[data-theme="light"] :is(.ks, .dc-ask, .pf-stp, .pf-card, .cq, .mr-knock, .um-p, .ln-card, .bx-pp, .bx-dd, .bx-sub, .bx-sb, .bx-pres, .sh-card, .vx-dd, .vx-pop, .dx-pv, .gx-hist, .mp-bar, .mp-vc) { background: rgba(255, 255, 255, 0.96); box-shadow: 0 0 0 1px var(--line),var(--shadow-lift); }
:root[data-theme="light"] .um { background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px var(--line-soft),var(--shadow-2); }
:root[data-theme="light"] .um [data-umtip]:hover::after { background: var(--text-1); color: var(--bg-2); }
:root[data-theme="light"] .dc-scroll { background: var(--bg-2); }
:root[data-theme="light"] :is(.mp, .mp-sheet) { background: var(--bg-1); }
:root[data-theme="light"] .mp-sheet { background: var(--bg-2); }
:root[data-theme="light"] .mr { background: var(--bg-1); }
:root[data-theme="light"] .mr-side { background: var(--bg-2); border-color: var(--line-soft); }
:root[data-theme="light"] .mr-t.off { background: var(--bg-4); }
:root[data-theme="light"] .kz-card { background: var(--bg-2); }
:root[data-theme="light"] .kz-layer { background: rgba(40, 32, 24, 0.22); }
:root[data-theme="light"] .vx-pip { background: var(--bg-2); box-shadow: 0 0 0 1px var(--line),var(--shadow-lift); }
:root[data-theme="light"] :is(.tl-hd, .tl-lb, .tl-g) { background: var(--bg-2); }
:root[data-theme="light"] .tl-b { background: color-mix(in srgb,var(--c) 30%,#ffffff); color: var(--text-1); }
:root[data-theme="light"] :is(.bv, .dv, .tbp, .cl-thumb, .mdp-board) { background: var(--bg-3); }
:root[data-theme="light"] .bwire { background: var(--bg-3); }
:root[data-theme="light"] .bst { background: color-mix(in srgb,var(--c) 42%,#ffffff); color: var(--text-1); }
:root[data-theme="light"] .bh-world .bst .bt:empty::before { color: rgba(28, 24, 20, 0.4); }
:root[data-theme="light"] .bx-shape { color: var(--text-1); }
:root[data-theme="light"] .bx-embed { background: var(--bg-3); }
:root[data-theme="light"] .bx-efig { background: rgb(241, 240, 236); }
:root[data-theme="light"] .bx-efig i { background: rgb(226, 224, 218); }
:root[data-theme="light"] .node.k-ghost .card { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .hx-now .nc { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] :is(.ch-drop, .dc-drop, .kz-drop) { background: rgba(245, 244, 240, 0.88); }
:root[data-theme="light"] .mtg { background: rgba(40, 32, 24, 0.3); }
:root[data-theme="light"] .mtg-win { background: var(--bg-1); }
:root[data-theme="light"] .mtg-chrome { background: var(--bg-3); }
:root[data-theme="light"] .mtg-chrome > i { background: var(--bg-5); }
:root[data-theme="light"] .mtg-chrome > span { background: var(--bg-2); }
:root[data-theme="light"] .ks2-sel select option { background: var(--bg-2); }
:root[data-theme="light"] .pob.hot { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
:root[data-theme="light"] #porb .pob.mtsoon { background: rgba(212, 145, 26, 0.14); color: rgb(138, 92, 10); }
:root[data-theme="light"] #porb .pob.mtsoon b { color: rgb(110, 72, 8); }
:root[data-theme="light"] :is(.mp-m.me > div, .mr-m.me p) { background: rgb(247, 221, 209); color: var(--text-1); }
:root[data-theme="light"] .mp-live { background: rgb(217, 239, 224); color: rgb(31, 90, 53); }
:root[data-theme="light"] .ks-rt mark { background: var(--accent-soft); color: var(--text-1); }
:root[data-theme="light"] .pv-t.hot span { color: rgb(138, 92, 10); }
:root[data-theme="light"] .av.ma-cav { background: var(--av-5); color: var(--text-1); }
:root[data-theme="light"] .mr-gav { color: var(--text-1); }
:root[data-theme="light"] :is(.ch-at, .ch-rx.me b, .ch-thl b, .ks-ic.ave, .ks-note, .mt-badge.soon, .mt-ave, .dc-mk, .dc-q em, .dc-ds.q, .dc-ask, .kz-tc, .kz-dr, .kz-at b, .kz-dn, .kz-tools > button.on, .pf-own, .pf-log em, .mp-tc, .ks2-link svg, .af-ask svg, .bv-meta span.hot, .mp-greet em, .mp-ri.late, .mp-tr em.late, .mp-week i, .mp-call em, .mp-kt small.late, .pj-goalr em, .ln-err, .st-left.soon, .st-b.dim:hover, .st-danger .mt-st, .st-rm:hover, .bx-pa button:last-child:hover, .bx-dd .danger, .ma-st.s-changes, .ma-hist em, .vx-vol.off button, .vx-mod button.on, .vs-p .vx-sm, .vx-live, .tl-p.p1, .tl-pc.p1, .tl-sum em, .dx-link:hover) { color: rgb(185, 61, 28); }
:root[data-theme="light"] :is(.mt-badge.live, .mt-rs.yes, .mt-dec svg, .dc-ds.act, .dc-ver em, .bh-chip.kz-on, .um-hd b, .um-r.s-room .um-rt > small, .um-st.s-room, .st-ic.ok, .ma-st.s-approved, .dx-st.s-g, .vd-nr em, .ap-new b, .gc-ok) { color: rgb(31, 122, 69); }
:root[data-theme="light"] :is(.ma-st.s-review, .tl-p.p2, .tl-pc.p2, .dx-st.s-r, .dx-chg .o) { color: rgb(148, 97, 8); }
:root[data-theme="light"] .ln { background: radial-gradient(900px 600px at 50% 38%,rgba(212, 145, 26,.08),transparent 70%),var(--bg-0); }
:root[data-theme="light"] .mp-vs { background: radial-gradient(90% 60% at 50% 30%,#dcebe0,var(--bg-1) 70%); }
:root[data-theme="light"] .tl-sc { background: var(--bg-1); }
:root[data-theme="light"] .bv-th { background: radial-gradient(rgba(28,24,20,.08) 1px,transparent 1.3px) 0 0/10px 10px,var(--bg-3); }
:root[data-theme="light"] :is(.bst, .bimg, .bwire) .otask { background: rgba(255, 255, 255, 0.55); color: var(--text-1); }
/* группировка сообщений, «Прочитано», вся палитра реакций (прототип v72) */
.ch-m.same{padding-top:2px}
.ch-st{width:34px;flex:none;text-align:right;font:500 10px var(--font-mono);color:var(--text-4);opacity:0;padding-top:4px}
.ch-m.same:hover .ch-st{opacity:1}
.ch-read{font-size:11px;color:var(--text-4);margin-top:-2px}
.ch-pop.rx.full{display:grid;grid-template-columns:repeat(8,34px);gap:2px}
/* карточка человека: задачи ссылками (окно задачи в новом клиенте) */
.pf-cf a.pf-ct,.pf-cl a{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:4px 8px 4px 4px;border-radius:10px;color:var(--text-1);text-decoration:none;font-size:13px;box-sizing:border-box}
.pf-cl a{color:var(--text-2);padding-left:8px}
.pf-cf a.pf-ct:hover,.pf-cl a:hover{background:var(--bg-3)}
.pf-cf em.late,.pf-cl em.late{color:var(--accent)}

/* кто видит канал — аватарки в шапке */
.ch-mem{display:inline-flex;align-items:center;margin-right:6px}
.ch-mav{position:relative;margin-left:-6px;border-radius:9px;box-shadow:0 0 0 2px var(--bg-1)}
.ch-mav:first-child{margin-left:0}
.ch-mav .av{width:24px;height:24px;font-size:11px;border-radius:8px}
.ch-mav.on::after{content:"";position:absolute;right:-2px;bottom:-2px;width:7px;height:7px;border-radius:50%;background:#6fd08f;box-shadow:0 0 0 2px var(--bg-1)}
.ch-mem em{font-style:normal;margin-left:6px;font:600 11px var(--font-mono);color:var(--text-3)}
@media (max-width:760px){.ch-mem{display:none}}

/* строка задачи под сообщением, из которого её сделали (макет v72) */
.ch-tk{display:flex;align-items:center;gap:8px;max-width:min(520px,100%);margin-top:6px;padding:5px 10px;border-radius:9px;border:1px solid var(--line);background:var(--bg-2);font-size:12.5px;color:var(--text-1);text-align:left}
.ch-tk:hover{border-color:var(--line-strong)}
.ch-tk i{flex:none;width:10px;height:10px;border-radius:50%;border:1.5px solid var(--text-3)}
.ch-tk.done i{border-color:#6fd08f;background:#6fd08f}
.ch-tk b{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-tk.done b{color:var(--text-3);text-decoration:line-through}
.ch-tk span{flex:none;font-size:11.5px;color:var(--text-4)}

/* голосовые и запись (макет v72) */
.ch-voice{display:inline-flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border-radius:999px;background:var(--bg-3);border:1px solid var(--line-soft);margin-top:6px;max-width:100%}
.ch-voice button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--text-1);color:var(--bg-1);flex:none}
.ch-voice button svg{width:14px;height:14px}
.ch-voice audio{display:none}
.ch-wave{display:flex;align-items:center;gap:2px;height:28px;min-width:0;overflow:hidden}
.ch-wave i{width:3px;flex:none;border-radius:2px;background:var(--text-4)}
.ch-wave i.p{background:var(--text-1)}
.ch-vd{font:500 11px var(--font-mono);color:var(--text-3);font-variant-numeric:tabular-nums}
.ch-tools>.ch-mic.rec{background:var(--accent);color:#fff;animation:chrec 1.2s infinite}
.ch-rec{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:rgba(245, 184, 79,.1);border:1px solid var(--accent-line);font-size:12.5px;color:var(--text-2)}
.ch-rec i{width:9px;height:9px;border-radius:50%;background:var(--accent);animation:chrec 1.2s infinite;flex:none}
.ch-rec b{font-weight:600;color:var(--text-1);font-variant-numeric:tabular-nums}
.ch-rec span{color:var(--text-3)}
@keyframes chrec{50%{box-shadow:0 0 0 6px rgba(245, 184, 79,.18)}}
.ch-thl{margin-top:4px}
#chThread{position:relative}
@media (max-width:760px){.ch-wave i:nth-child(n+22){display:none}}
@media (max-width:760px){
  .ch-head .ch-pj{display:none}
  /* ветка на телефоне — поверх ленты целиком, крестик возвращает к разговору */
  #chThread:not([hidden]){position:absolute;inset:0;z-index:30;background:var(--bg-2);border-left:0;border-radius:inherit}
}

.ch-feed{overflow-anchor:none}
.cwx.chx.window-custom{grid-template-columns:minmax(150px,220px) minmax(0,1fr)}
.cwx.chx.window-custom.th-on{grid-template-columns:minmax(140px,180px) minmax(0,1fr) minmax(200px,280px)}
#chHead>.win-tool{flex:none}
@media(min-width:761px){
  #cw.window-folded{display:block;min-width:0;min-height:0}
  #cw.window-folded>.ch-side,#cw.window-folded>.ch-thread,#cw.window-folded>.win-size,
  #cw.window-folded .ch-feedw,#cw.window-folded .ch-say,#cw.window-folded #chPins{display:none!important}
  #cw.window-folded>.ch-main{height:100%;min-width:0}
  #cw.window-folded .ch-head{height:100%;box-sizing:border-box;padding:5px 8px;gap:5px;border:0}
  #cw.window-folded .ch-head>:not(.ch-ht):not(.win-tool):not(.ch-avw):not(.ch-hash){display:none}
  #cw.window-folded .ch-ht{flex:1;min-width:0}
  #cw.window-folded .ch-ht b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #cw.window-folded .ch-ht>span{display:none}
  #cw.window-folded .ch-avw.big,#cw.window-folded .ch-hash.big{width:26px;height:26px;flex:none}
}
#chFloating{position:fixed;inset:0;pointer-events:none;z-index:120}
#chFloating .ch-pop{pointer-events:auto;max-width:calc(100vw - 16px);max-height:calc(100vh - 24px);overflow:auto;animation:none}
#chFloating .ch-pop button{flex-shrink:0}
.ch-memberpick{display:flex;flex-direction:column;gap:7px;max-height:230px;overflow:auto;font-size:12px;padding:6px 0}
.ch-memberpick label{display:flex;align-items:center;gap:8px;cursor:pointer}.ch-memberpick .av{width:24px;height:24px}.ch-memberpick input{accent-color:var(--text-1)}
.ch-newch small{font-size:11px;color:var(--text-4)}
