/* Общий мессенджер VM Hub (P09, P28): список чатов, переписка, окно в правом нижнем углу.
   Один файл на все системы - найм, Staff и CRM (решение владельца 07.10.2026). Подключается в _head.html
   между agents.css и ios.css: порядок каскада тот же, что был, когда эти правила жили в agents.css.
   Нужны токены --vm-* и общие классы (.icon-btn, .btn, .notice, .i-sm) из platform.css и agents.css. */

/* ═══════════════════ Мессенджер (P09) ═══════════════════ */
.messenger{display:grid; grid-template-columns:320px minmax(0,1fr); height:calc(100vh - var(--vm-header-h) - 160px);
  min-height:520px; border-radius:var(--r-card); border:1px solid var(--vm-line); background:rgb(var(--vm-panel));
  box-shadow:var(--vm-shadow-card); overflow:hidden}
.chat-list{display:flex; flex-direction:column; border-right:1px solid var(--vm-line); overflow-y:auto; min-height:0}
.chat-list-head{position:sticky; top:0; z-index:1; display:flex; flex-direction:column; gap:8px; padding:16px;
  background:rgb(var(--vm-panel)); border-bottom:1px solid var(--vm-line)}
.chat-list-head h1{font-size:20px; line-height:28px}
.new-chat-form{display:flex; gap:8px; margin-top:8px}
.new-chat-form select{flex:1; min-width:0}
.chat-item{display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 16px;
  color:rgb(var(--vm-text)); border-bottom:1px solid var(--vm-line-soft); transition:background-color .15s}
.chat-item:hover{background:rgb(var(--vm-panel-soft))}
.chat-item.on{background:var(--vm-accent-bg)}
.chat-item-t{display:flex; flex-direction:column; min-width:0}
.chat-item-top{display:flex; justify-content:space-between; gap:8px}
.chat-item-top b{font-size:14px; line-height:20px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.chat-item-top time{flex:none; font-size:12px; color:rgb(var(--vm-faint))}
.chat-item-sub{font-size:12px; line-height:16px; color:rgb(var(--vm-faint))}
.chat-item-prev{font-size:13px; line-height:18px; color:rgb(var(--vm-muted)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.chat-list-empty{padding:16px}
.unread-dot{display:inline-flex; min-width:20px; height:20px; padding:0 6px; align-items:center; justify-content:center;
  border-radius:999px; background:rgb(var(--vm-accent)); color:rgb(var(--vm-invert-text)); font-size:12px; font-weight:600}
.cavatar{display:flex; width:36px; height:36px; flex:none; align-items:center; justify-content:center; border-radius:999px;
  background:var(--vm-accent-bg); color:rgb(var(--vm-accent)); font-size:14px; font-weight:600}
.chat-item .cavatar{width:40px; height:40px}
.cavatar.team{background:var(--vm-good-bg); color:rgb(var(--vm-good))}
.chat-pane{display:flex; flex-direction:column; min-width:0; min-height:0}
.chat-head{display:flex; align-items:center; gap:12px; padding:12px 20px; border-bottom:1px solid var(--vm-line)}
.chat-head > div{display:flex; flex-direction:column; min-width:0}
.chat-head b{font-size:16px; line-height:24px; font-weight:600}
.chat-head span{font-size:12px; line-height:16px; color:rgb(var(--vm-muted))}
.chat-back{display:none}
.chat-placeholder{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:rgb(var(--vm-faint))}
.cthread{flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:20px;
  background:rgb(var(--vm-bg) / .5); scroll-behavior:smooth}
.cempty{margin:auto; font-size:14px; color:rgb(var(--vm-faint))}
.cday{display:flex; justify-content:center; margin:8px 0}
.cday span{padding:2px 12px; border-radius:999px; background:rgb(var(--vm-panel-soft)); font-size:12px; color:rgb(var(--vm-muted))}
.cmsg{display:flex; align-items:flex-end; gap:8px; max-width:78%}
.cmsg.me{align-self:flex-end; flex-direction:row-reverse}
.cbubble{display:flex; flex-direction:column; gap:4px; min-width:0; padding:8px 12px; border-radius:18px 18px 18px 6px;
  background:rgb(var(--vm-panel)); border:1px solid var(--vm-line)}
.cmsg.me .cbubble{border-radius:18px 18px 6px 18px; background:rgb(var(--vm-accent)); border-color:transparent;
  color:rgb(var(--vm-invert-text))}
.cmeta{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-size:12px; line-height:16px}
.cmeta b{font-weight:600; color:rgb(var(--vm-accent))}
.cmeta span{color:rgb(var(--vm-faint))}
.ctext{font-size:14px; line-height:20px; white-space:pre-wrap; overflow-wrap:anywhere}
.ctime{align-self:flex-end; font-size:11px; line-height:14px; opacity:.7}
.cfiles{display:flex; flex-direction:column; gap:4px}
.cimg{display:block; border-radius:12px; overflow:hidden; max-width:320px}
.cimg img{display:block; width:100%; height:auto; background:rgb(var(--vm-panel-soft))}
.cvideo{display:block; width:100%; max-width:360px; border-radius:12px; background:#000}
.cdoc{display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:12px; background:rgb(var(--vm-panel-soft));
  color:rgb(var(--vm-text)); min-width:0}
.cmsg.me .cdoc{background:rgb(var(--vm-invert-text) / .15); color:inherit}
.cdoc span{display:flex; flex-direction:column; min-width:0}
.cdoc b{font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cdoc small{font-size:12px; opacity:.75}
.composer{display:flex; flex-direction:column; gap:8px; padding:12px 16px; border-top:1px solid var(--vm-line); background:rgb(var(--vm-panel))}
.composer > *{margin-top:0 !important}
.composer-row{display:flex; align-items:flex-end; gap:8px}
.composer-row textarea{flex:1; min-height:40px; max-height:160px; resize:none; border-radius:20px; padding:9px 16px; line-height:20px}
.composer-attach{position:relative; width:40px; height:40px; border-radius:999px; cursor:pointer}
.composer-attach input{position:absolute; inset:0; opacity:0; cursor:pointer; width:100%}
button.composer-send{width:40px; height:40px; padding:0; border-radius:999px; flex:none}
.composer-files{display:flex; flex-wrap:wrap; gap:8px}
.composer-files span{display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:999px;
  background:rgb(var(--vm-panel-soft)); font-size:12px; color:rgb(var(--vm-text-mid))}
.composer-note{padding:0 16px 12px; font-size:12px; line-height:16px; color:rgb(var(--vm-faint))}
.composer .composer-note{padding:0}
.nav-badge{margin-left:auto}
@media(max-width:1023px){
  .messenger{grid-template-columns:1fr; height:calc(100vh - var(--vm-header-h) - 96px)}
  .messenger:not(.has-active) .chat-pane{display:none}
  .messenger.has-active .chat-list{display:none}
  .chat-back{display:flex}
  .cmsg{max-width:90%}
}
@media(max-width:767px){
  button.composer-send, .composer-attach{width:44px; height:44px}
  .composer-row textarea{min-height:44px}
}

/* ── Мессенджер-кнопка в правом нижнем углу ── */
.mw{position:fixed; right:24px; bottom:24px; z-index:45}
.mw-fab{position:relative; display:flex; width:56px; height:56px; align-items:center; justify-content:center;
  border:0; border-radius:999px; cursor:pointer; background:rgb(var(--vm-accent)); color:rgb(var(--vm-invert-text));
  box-shadow:0 12px 30px rgb(var(--vm-accent) / .35); transition:transform .15s, background-color .15s}
.mw-fab:hover{background:rgb(var(--vm-accent-strong)); transform:translateY(-1px)}
.mw.open .mw-fab{transform:none}
.mw-badge{position:absolute; top:-4px; right:-4px; min-width:22px; height:22px; padding:0 6px; display:inline-flex;
  align-items:center; justify-content:center; border-radius:999px; border:2px solid rgb(var(--vm-bg));
  background:rgb(var(--vm-bad)); color:#fff; font-size:12px; font-weight:700}
.mw-badge[hidden]{display:none}
.mw-panel{position:absolute; right:0; bottom:72px; width:380px; height:min(600px, calc(100vh - 120px));
  display:flex; flex-direction:column; overflow:hidden; border-radius:var(--r-panel); border:1px solid var(--vm-line);
  background:rgb(var(--vm-panel)); box-shadow:var(--vm-shadow-card), 0 30px 60px rgb(var(--vm-invert) / .12)}
.mw-panel[hidden]{display:none}
.mw-head{display:flex; align-items:center; gap:8px; padding:12px 12px 12px 16px; border-bottom:1px solid var(--vm-line)}
.mw-head > b{flex:1; font-family:var(--font-display); font-size:18px; letter-spacing:.04em; text-transform:uppercase}
.mw-head .icon-btn{width:32px; height:32px}
.mw-title{flex:1; display:flex; flex-direction:column; min-width:0}
.mw-title b{font-size:14px; line-height:20px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mw-title span{font-size:12px; line-height:16px; color:rgb(var(--vm-muted)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mw-tabs{display:flex; gap:4px; padding:0 12px; border-bottom:1px solid var(--vm-line)}
.mw-body{flex:1; min-height:0; overflow-y:auto}
.mw-body > .notice{margin:12px}
.mw-empty{display:flex; flex-direction:column; align-items:center; gap:12px; padding:32px 16px; text-align:center;
  font-size:14px; color:rgb(var(--vm-muted))}
.mw-search{margin:12px 16px 4px; width:calc(100% - 32px) !important}
.mw-group{padding:8px 0}
.mw-group[hidden], .mw-target[hidden], .mw-target-form[hidden]{display:none}
.mw-group h3{padding:0 16px; font-size:12px; line-height:16px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:rgb(var(--vm-muted))}
.mw-hint{padding:0 16px 4px; font-size:12px; line-height:16px; color:rgb(var(--vm-faint))}
.mw-target-form{margin:0}
button.mw-target, .mw-target{display:grid; grid-template-columns:36px minmax(0,1fr) 16px; gap:12px; align-items:center;
  width:100%; padding:8px 16px; border:0; border-radius:0; background:transparent; color:rgb(var(--vm-text));
  text-align:left; font:inherit; cursor:pointer; min-height:52px}
button.mw-target:hover, .mw-target:hover{background:rgb(var(--vm-panel-soft))}
.mw-target .chat-item-t b{font-size:14px; line-height:20px; font-weight:600}
.mw-target .i-sm{color:rgb(var(--vm-faint-soft))}
.mw-panel .cthread{padding:16px}
.mw-panel .cmsg{max-width:88%}
.mw-panel .composer{padding:10px 12px}
.mw-panel .composer-note{display:none}
.mw-error{margin:8px 12px}
@media(max-width:767px){
  .mw{right:16px; bottom:16px}
  .mw.open{inset:0; right:0; bottom:0}
  .mw.open .mw-fab{display:none}
  .mw-panel{position:fixed; inset:0; width:auto; height:auto; border-radius:0; border:0}
}
@media print{ .mw{display:none} }

/* «Написать»: от частого к редкому — плитки, кружки, поиск. */
.mw-pick{display:flex; flex-direction:column; gap:4px; padding:8px 0 16px}
.mw-sec{display:flex; flex-direction:column; gap:8px; padding:8px 16px}
.mw-sec > h3{font-size:12px; line-height:16px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:rgb(var(--vm-muted))}
.mw-quick{display:grid; grid-template-columns:1fr; gap:8px}
.mw-quick > form{display:flex; margin:0}
button.mw-tile, .mw-tile{display:grid; grid-template-columns:40px minmax(0,1fr); grid-template-rows:auto auto;
  column-gap:12px; align-items:center; width:100%; min-height:60px; padding:10px 12px; border-radius:var(--r-card); border:1px solid var(--vm-line); background:rgb(var(--vm-panel));
  color:rgb(var(--vm-text)); text-align:left; font:inherit; cursor:pointer; transition:border-color .15s, background-color .15s}
button.mw-tile:hover, .mw-tile:hover{border-color:var(--vm-accent-line); background:var(--vm-accent-bg)}
.mw-tile-ic{grid-row:1 / 3; display:flex; width:40px; height:40px; align-items:center; justify-content:center;
  border-radius:12px; background:var(--vm-accent-bg); color:rgb(var(--vm-accent))}
.mw-tile b{font-size:14px; line-height:20px; font-weight:600}
.mw-tile b{align-self:end}
.mw-tile span:last-child{align-self:start; font-size:12px; line-height:16px; color:rgb(var(--vm-muted));
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mw-avatars{display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 12px}
.mw-avatars::-webkit-scrollbar{display:none}
.mw-avatars > form{display:flex; margin:0; flex:none}
button.mw-ava{display:flex; flex-direction:column; align-items:center; gap:4px; width:84px; padding:6px 4px; border:0;
  border-radius:var(--r-field); background:transparent; color:rgb(var(--vm-text)); font:inherit; cursor:pointer}
button.mw-ava:hover{background:rgb(var(--vm-panel-soft))}
.mw-ava .cavatar{width:44px; height:44px; font-size:16px}
.mw-ava-name{max-width:76px; font-size:12px; line-height:16px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mw-ava-role{max-width:64px; font-size:10px; line-height:12px; color:rgb(var(--vm-faint)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mw-find .mw-search{margin:0; width:100% !important}
.mw-results{display:none; flex-direction:column; margin:0 -16px}
.mw-find.searching .mw-results{display:flex}
.mw-results > form{margin:0}
.mw-results > form[hidden]{display:none}
.mw-nothing{padding:8px 16px}

/* Аватары, группы, фото профиля */
.cavatar{overflow:hidden}
.cavatar img{display:block; width:100%; height:100%; object-fit:cover}
.cavatar.small{width:28px; height:28px; font-size:12px}
.cavatar.big{width:56px; height:56px; font-size:22px}
.cavatar.huge{width:96px; height:96px; font-size:36px; flex:none}
.avatar-img{overflow:hidden; padding:0}
.avatar-img img{display:block; width:100%; height:100%; object-fit:cover}
.csys{display:flex; justify-content:center; margin:4px 0}
.csys span{max-width:90%; padding:4px 12px; border-radius:999px; background:rgb(var(--vm-panel-soft));
  font-size:12px; line-height:16px; color:rgb(var(--vm-muted)); text-align:center}
.mw-pad{padding:12px 16px 16px}
.mw-pad > * + *{margin-top:12px}
.group-form > * + *{margin-top:12px}
.icon-pick{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px}
.icon-opt{position:relative; display:flex; cursor:pointer}
.icon-opt input{position:absolute; opacity:0; inset:0; margin:0; cursor:pointer}
.icon-opt span{display:flex; width:100%; aspect-ratio:1; align-items:center; justify-content:center; border-radius:12px;
  border:1px solid var(--vm-line); background:rgb(var(--vm-panel)); color:rgb(var(--vm-text-soft)); transition:border-color .15s, background-color .15s}
.icon-opt:hover span{border-color:var(--vm-line-strong)}
.icon-opt input:checked + span{border-color:rgb(var(--vm-accent)); background:var(--vm-accent-bg); color:rgb(var(--vm-accent))}
.icon-opt input:focus-visible + span{outline:2px solid rgb(var(--vm-accent)); outline-offset:2px}
.upload-line{display:flex; flex-direction:column; gap:4px; margin-top:12px; font-weight:400; font-size:12px; color:rgb(var(--vm-muted))}
.member-pick{display:flex; flex-direction:column; max-height:280px; overflow-y:auto; margin-top:8px;
  border-radius:var(--r-field); border:1px solid var(--vm-line)}
.member-opt{display:grid; grid-template-columns:18px 36px minmax(0,1fr); gap:10px; align-items:center; padding:8px 12px;
  border-bottom:1px solid var(--vm-line-soft); cursor:pointer; font-weight:400}
.member-opt:last-child{border-bottom:0}
.member-opt[hidden]{display:none}
.member-opt:has(input:checked){background:var(--vm-accent-bg)}
.member-opt .chat-item-t b, .member-row .chat-item-t b{font-size:14px; line-height:20px; font-weight:600; color:rgb(var(--vm-text))}
.group-card{display:flex; align-items:center; gap:12px}
.group-card > div{display:flex; flex-direction:column; min-width:0}
.group-card b{font-size:16px; line-height:24px}
.group-sec{padding-top:12px; border-top:1px solid var(--vm-line)}
.group-sec > h3{margin-bottom:8px; font-size:12px; line-height:16px; text-transform:uppercase; letter-spacing:.05em; color:rgb(var(--vm-muted))}
.group-sec form > * + *{margin-top:12px}
.member-row{display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:10px; align-items:center; padding:6px 0}
.member-row form{margin:0}
.member-row .icon-btn{width:32px; height:32px}
.group-page > * + *{margin-top:16px}
.photo-row{display:flex; align-items:center; gap:20px; flex-wrap:wrap}
.photo-form{flex:1; min-width:220px}
.side-me-link{display:flex; align-items:center; gap:8px; padding:6px 12px; border-radius:var(--r-btn); color:inherit}
.side-me-link:hover, .side-me-link.on{background:rgb(var(--vm-panel-soft))}
.side-me-link .side-me{padding:0}
.chat-head .cavatar{width:40px; height:40px}
.mw-head .cavatar{width:32px; height:32px; font-size:13px}
.chat-settings{margin-left:auto}

/* Полная страница сообщений внутри оболочки CRM (на её адресе): шапки нет - окно на всю высоту. */
@media(min-width:1024px){ .crm-main .messenger{height:calc(100vh - 96px); min-height:480px} }

/* ═══════════════════ P28: отделы, реакции и смайлы VM GEO ═══════════════════ */
/* Чаты отделов - закреплены сверху списка, плитка в фирменном переходе, как значок метки VM GEO. */
.chat-sec{margin:0; padding:12px 16px 4px; font-size:12px; line-height:16px; font-weight:600; text-transform:uppercase;
  letter-spacing:.05em; color:rgb(var(--vm-muted))}
.cavatar.dept{border-radius:12px; background:linear-gradient(135deg, #7B5CF0, #C33DD8); color:#fff}
/* Смайл в тексте - высотой со строку; в превью списка - чуть меньше. */
.vmoji{display:inline-block; width:1.35em; height:1.35em; vertical-align:-.32em}
.chat-item-prev .vmoji{width:16px; height:16px; vertical-align:-3px}
/* Сообщение из одних смайлов - крупно и без пузыря, как в Telegram. */
.ctext.big .vmoji{width:48px; height:48px; vertical-align:middle}
.cbubble:has(> .ctext.big){padding:0; background:transparent; border-color:transparent; color:rgb(var(--vm-muted))}
/* Пузырь и плашки реакций под ним. */
.cbody{position:relative; display:flex; flex-direction:column; gap:4px; min-width:0}
.cmsg.me .cbody{align-items:flex-end}
/* Аватар - напротив пузыря, а не напротив плашек реакций под ним (28 px плашка + 4 px зазор). */
.cmsg:has(> .cbody > .creacts:not([hidden])) > .cavatar{margin-bottom:32px}
.creacts{display:flex; flex-wrap:wrap; gap:4px; position:relative}
.creacts[hidden]{display:none}
.creacts form{display:flex; margin:0}
button.creact{display:inline-flex; align-items:center; gap:4px; min-height:0; height:28px; padding:0 9px 0 6px;
  border-radius:999px; border:1px solid var(--vm-line); background:rgb(var(--vm-panel)); color:rgb(var(--vm-text-mid));
  font-size:13px; line-height:16px; font-weight:700}
button.creact:hover{background:var(--vm-accent-bg); border-color:var(--vm-accent-line)}
button.creact.on, button.creact.on:hover{background:rgb(var(--vm-accent)); border-color:transparent; color:rgb(var(--vm-invert-text))}
button.creact img{width:18px; height:18px}
.creact-who{position:absolute; left:0; bottom:calc(100% + 4px); z-index:6; max-width:240px; padding:6px 10px; border-radius:10px;
  background:rgb(var(--vm-text)); color:rgb(var(--vm-panel)); font-size:12px; line-height:16px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis}
/* Кнопка «поставить реакцию» - у сообщения при наведении (компьютер); на телефоне - долгое нажатие. */
button.creact-open{align-self:center; flex:none; display:flex; align-items:center; justify-content:center; min-height:0;
  width:32px; height:32px; padding:0; border-radius:999px; border:1px solid var(--vm-line); background:rgb(var(--vm-panel));
  color:rgb(var(--vm-accent)); opacity:0; transition:opacity .15s}
button.creact-open:hover{background:var(--vm-accent-bg)}
.cmsg:hover > .creact-open, button.creact-open:focus-visible{opacity:1}
@media(hover:none){ button.creact-open{display:none} }
.react-target .cbubble{box-shadow:0 0 0 2px rgb(var(--vm-accent))}
/* Ряд частых реакций и весь набор. */
.creact-pop{position:absolute; left:0; bottom:calc(100% + 6px); z-index:5; display:flex; flex-direction:column; gap:4px;
  margin:0; padding:4px 6px; border-radius:24px; background:rgb(var(--vm-panel));
  box-shadow:0 0 0 1px var(--vm-line), 0 12px 28px -10px rgb(var(--vm-invert) / .45)}
.creact-pop.below{bottom:auto; top:calc(100% + 6px)}
.cmsg.me .creact-pop{left:auto; right:0}
.creact-quick{display:flex; align-items:center; gap:2px}
.creact-all{display:grid; grid-template-columns:repeat(6, 40px); gap:2px; padding:4px 0 2px; border-top:1px solid var(--vm-line)}
.creact-all[hidden]{display:none}
.creact-pop button{display:flex; align-items:center; justify-content:center; min-height:0; width:40px; height:40px; padding:0;
  border:0; border-radius:999px; background:transparent; color:rgb(var(--vm-muted))}
.creact-pop button:hover{background:var(--vm-accent-bg)}
.creact-pop button img{width:28px; height:28px}
.creact-pop button.creact-more{width:32px; height:32px; background:rgb(var(--vm-panel-soft))}
/* Смайлы у поля ввода. */
.composer-emoji{width:40px; height:40px; border:0; border-radius:999px; background:transparent; color:rgb(var(--vm-muted))}
.composer-emoji.on{background:var(--vm-accent-bg); color:rgb(var(--vm-accent))}
.emoji-panel{display:flex; flex-direction:column; gap:6px}
.emoji-panel[hidden]{display:none}
.emoji-panel-t{margin:0; font-size:12px; line-height:16px; font-weight:600; text-transform:uppercase; letter-spacing:.05em;
  color:rgb(var(--vm-muted))}
.emoji-grid{display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:4px}
.emoji-grid button{display:flex; align-items:center; justify-content:center; min-height:0; height:44px; padding:0; border:0;
  border-radius:12px; background:transparent}
.emoji-grid button:hover{background:var(--vm-accent-bg)}
.emoji-grid img{width:30px; height:30px}
.mw-panel .emoji-grid{grid-template-columns:repeat(8, minmax(0, 1fr))}
@media(max-width:767px){
  .creact-pop button{width:36px; height:36px}
  .creact-pop button img{width:26px; height:26px}
  .creact-all{grid-template-columns:repeat(6, 36px)}
  .composer-emoji{width:44px; height:44px}
  .emoji-grid{grid-template-columns:repeat(6, minmax(0, 1fr))}
  .emoji-grid img{width:34px; height:34px}
}
@media (prefers-reduced-motion: reduce){ button.creact-open{transition:none} }

/* ═══════════════════ P30: «Без звука» у чата ═══════════════════ */
.chat-mute, .mw-mute{display:flex; margin:0}
.chat-mute{margin-left:auto}
.chat-mute + .chat-settings{margin-left:0}
.chat-head .icon-btn.on, .mw-head .icon-btn.on{color:rgb(var(--vm-faint)); background:rgb(var(--vm-panel-soft))}
.chat-muted{display:inline-flex; vertical-align:-2px; color:rgb(var(--vm-faint))}
