/* DZR Squad voice panels v2. Remove the dedicated stylesheet link to roll back. */
body.dzr-squad-mode .dzr-srv-channels { container: squad-channels / inline-size; }
body.dzr-squad-mode .dzr-srv-channels > .dzr-voice-bottom {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  margin: 8px;
  padding: 0 10px;
  border: 1px solid rgba(190, 169, 240, .13) !important;
  border-radius: 14px;
  background: linear-gradient(145deg, #211b32, #191525) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  overflow: visible;
  transition: border-color 180ms ease, background-color 180ms ease;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-status {
  margin: 0 0 10px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: dzr-squad-dock-reveal 180ms ease-out;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-status > div { gap: 8px !important; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-title {
  color: #74e0c5;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-sub {
  margin-top: 4px;
  color: #a9a0bc;
  font-size: 10px;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-wave {
  width: 7px;
  height: 7px;
  background: #63dbb5;
  box-shadow: 0 0 0 4px rgba(99, 219, 181, .08);
  animation: none;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-icon-btn--hangup {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 114, 137, .18);
  border-radius: 9px;
  color: #f18b9d;
  background: rgba(223, 80, 107, .10);
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-icon-btn--hangup:hover {
  background: rgba(223, 80, 107, .22);
  transform: none;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action {
  min-width: 0;
  height: 40px;
  padding: 6px 2px;
  gap: 4px;
  flex-direction: column;
  border: 1px solid rgba(193, 173, 230, .07);
  border-radius: 9px;
  background: rgba(204, 183, 242, .075);
  color: #bcb1d0;
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action > svg { width: 17px; height: 17px; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action::after { font-weight: 500; font-size: 9px; line-height: 1.2; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(1)::after { content: 'Камера'; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(2)::after { content: 'Экран'; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(3)::after { content: 'Статус'; }
/* Manual activity is available in Settings → Privacy, not in the voice toolbar. */
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(4) { display: none; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(5)::after { content: 'Звуки'; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:nth-child(6)::after { content: 'Рука'; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action:hover:not(:disabled) { background: #2d2346; border-color: rgba(187, 154, 245, .25); transform: none; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action--on { background: #193b37 !important; color: #7ce3c8 !important; box-shadow: inset 0 0 0 1px rgba(105, 220, 186, .25); }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action--hand.dzr-vb-action--on { background: #3b3225 !important; color: #ebce82 !important; box-shadow: inset 0 0 0 1px rgba(223, 189, 105, .3); }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-hand-icon { font-size: 17px; line-height: 17px; animation: none !important; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-hand-ring { display: none; }
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-row {
  gap: 6px;
  padding: 10px 0;
  border-top: 0;
  min-height: 54px;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-user { gap: 8px; }
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-ctrls { gap: 2px; align-items: center; }
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #211b36;
  border: 1px solid transparent;
  color: #beb2d3;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn:hover:not(:disabled) { background: #2d2346; color: #f0e5ff; transform: none; }
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn--ready { color: #c8bdd8; }
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn--off {
  background: rgba(210, 57, 86, .2);
  border-color: rgba(241, 93, 119, .22);
  color: #ff6f88;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn--off:hover:not(:disabled) {
  background: rgba(224, 62, 92, .29);
  border-color: rgba(255, 111, 136, .34);
  color: #ff8da1;
}
body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn:disabled { opacity: .42; background: rgba(204,183,242,.04); color: #8f849f; }
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-chevron-btn { width: 16px; margin: 0; height: 32px; border-radius: 7px; color: #9e91b4; }
body.dzr-squad-mode .dzr-srv-channels :is(.dzr-vb-action, .dzr-vb-icon-btn, .dzr-voice-bottom-btn, .dzr-vb-chevron-btn):focus-visible { outline: 2px solid #b99ae9; outline-offset: 2px; }
@container squad-channels (min-width: 340px) {
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action { height: 34px; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-action::after { display: none; }
}
@container squad-channels (max-width: 259px) {
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-status { padding: 8px 6px; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-wave { display: none; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-btn { width: 30px; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-ctrls { gap: 1px; }
}

body.dzr-squad-mode .dzr-srv-channels > .dzr-voice-bottom--active { padding-top: 12px; }
body.dzr-squad-mode .dzr-srv-channels > .dzr-voice-bottom--active .dzr-voice-bottom-row {
  border-top: 1px solid rgba(190, 169, 240, .10);
}
body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-status > div > div:nth-child(2) > div:first-child { flex-wrap: wrap; gap: 3px 6px !important; }

@container squad-channels (max-width: 299px) {
  body.dzr-squad-mode .dzr-srv-channels > .dzr-voice-bottom { margin: 6px; padding-inline: 8px; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-row { flex-wrap: nowrap; align-items: center; gap: 6px; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-user { flex: 1 1 0; min-width: 0; }
  body.dzr-squad-mode .dzr-srv-channels .dzr-voice-bottom-ctrls { width: auto; flex: 0 0 auto; justify-content: flex-end; }
}

@keyframes dzr-squad-dock-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.dzr-squad-mode .dzr-srv-channels .dzr-vb-voice-status { animation: none; }
}
