* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0e1621; color: #e6e6e6; height: 100dvh; overflow: hidden;
}
.hidden { display: none !important; }
button { font-family: inherit; }
input, select, button { font-size: 15px; }

/* ---------- Авторизация ---------- */
.auth {
  height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c2733, #0e1621);
}
.auth-card {
  background: #17212b; padding: 32px; border-radius: 12px; width: 320px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-card h1 { text-align: center; margin-bottom: 8px; font-size: 22px; }
.auth-card input {
  padding: 12px; border-radius: 8px; border: 1px solid #2b3a4a;
  background: #232e3c; color: #fff; outline: none;
}
.auth-card input:focus { border-color: #5288c1; }
.auth-card button {
  padding: 12px; border-radius: 8px; border: none; cursor: pointer;
  background: #5288c1; color: #fff; font-weight: 600;
}
.auth-card button.secondary { background: #2b3a4a; }
.error { color: #ff6b6b; font-size: 13px; text-align: center; min-height: 16px; }

/* ---------- Каркас чата ---------- */
.chat {
  height: 100dvh; display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 60px 1fr;
  grid-template-areas: "header header" "aside main";
}

/* ---------- Шапка ---------- */
.chat header {
  grid-area: header;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: #17212b;
  border-bottom: 1px solid #0e1621;
  position: relative; z-index: 20;
}
.chat header .title { font-size: 17px; font-weight: 600; }
.chat header .user {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
#myName { color: #7ab8f5; font-weight: 600; }
#logoutBtn {
  background: transparent; border: 1px solid #2b3a4a; color: #c9d4e0;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  touch-action: manipulation;
}
#logoutBtn:hover { color: #fff; border-color: #5288c1; }

.back-btn {
  display: none;
  background: transparent; border: none; color: #e6e6e6;
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.back-btn:hover { color: #7ab8f5; }

/* ---------- Сайдбар ---------- */
.chat aside {
  grid-area: aside; background: #17212b; padding: 12px 0;
  overflow-y: auto; border-right: 1px solid #0e1621;
}
.chat aside .section { margin-bottom: 16px; }
.chat aside h3 {
  font-size: 12px; color: #7ab8f5; margin-bottom: 6px;
  padding: 6px 16px; text-transform: uppercase; letter-spacing: .5px;
}
.chat aside ul { list-style: none; }
.chat aside li {
  padding: 10px 16px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  border-left: 3px solid transparent;
}
.chat aside li:hover { background: #232e3c; }
.chat aside li.active {
  background: #232e3c; border-left-color: #5288c1;
}
.chat aside li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #4dcd5e; flex-shrink: 0;
}
.chat aside li.offline { color: #6b7a89; }
.chat aside li.offline::before { background: #4a5a6a; }
#newRoom {
  margin: 6px 16px 0; padding: 8px 10px;
  background: #232e3c; border: 1px solid #2b3a4a;
  border-radius: 6px; color: #fff; width: calc(100% - 32px);
}
#newRoom:focus { outline: none; border-color: #5288c1; }
button.small {
  margin: 8px 16px 0; padding: 8px 10px;
  width: calc(100% - 32px);
  background: #2b3a4a; border: none; color: #fff;
  border-radius: 6px; cursor: pointer;
}
button.small:hover { background: #3a4a5a; }

/* ---------- Чат ---------- */
.chat main {
  grid-area: main; display: flex; flex-direction: column;
  background: #0e1621; position: relative;
  min-height: 0; overflow: hidden;
}
.chat-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 16px; min-height: 26px;
}
#typingIndicator {
  font-size: 13px; color: #7ab8f5; font-style: italic;
}
#roomActions { display: flex; gap: 8px; }
#roomActions button {
  background: #2b3a4a; color: #e6e6e6; border: none;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
#roomActions button:hover { background: #3a4a5a; }
#roomActions button.danger { background: #7a2b3a; }
#roomActions button.danger:hover { background: #9a3b4a; }

#messages {
  flex: 1 1 0; min-height: 0; overflow-y: auto;
  padding: 10px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg {
  max-width: 75%; padding: 8px 12px; border-radius: 12px;
  background: #182533; word-wrap: break-word;
}
.msg .meta { font-size: 12px; color: #7ab8f5; font-weight: 600; margin-bottom: 3px; }
.msg .time { font-size: 11px; color: #7a8a99; margin-left: 8px; }
.msg.own { background: #2b5278; align-self: flex-end; }
.msg.own .meta { color: #a5d8ff; }
.msg img, .msg video {
  max-width: 100%; max-height: 320px;
  width: auto; height: auto;
  border-radius: 8px; margin-top: 6px;
  display: block; object-fit: contain; cursor: pointer;
}
.msg .file-link {
  display: inline-block; margin-top: 6px;
  color: #a5d8ff; text-decoration: underline;
}

#msgForm {
  display: flex; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center; background: #17212b;
  border-top: 1px solid #0e1621;
  flex-shrink: 0;
}
.attach { cursor: pointer; font-size: 20px; padding: 0 4px; }
#msgInput {
  flex: 1; padding: 10px 14px; border-radius: 20px;
  border: 1px solid #2b3a4a; background: #232e3c; color: #fff;
  outline: none; min-width: 0;
}
#msgInput:focus { border-color: #5288c1; }
#msgForm button[type="submit"] {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: #5288c1; color: #fff; font-size: 18px; cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Модалка участников ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-card {
  background: #17212b; border-radius: 12px; width: 90%; max-width: 420px;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #232e3c;
}
.modal-header h2 { font-size: 16px; }
.modal-close {
  background: transparent; border: none; color: #aaa;
  font-size: 24px; cursor: pointer; line-height: 1;
}
.modal-body { padding: 16px 20px; overflow-y: auto; }
.members-add { display: flex; gap: 8px; margin-bottom: 16px; }
.members-add select {
  flex: 1; padding: 8px; border-radius: 6px;
  border: 1px solid #2b3a4a; background: #232e3c; color: #fff;
}
.members-add button {
  padding: 8px 14px; border-radius: 6px; border: none;
  background: #5288c1; color: #fff; cursor: pointer; font-weight: 600;
}
#membersList { list-style: none; }
#membersList li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 6px;
}
#membersList li .owner-tag {
  font-size: 11px; color: #f0c040; margin-left: 6px;
}
#membersList li .remove-btn {
  background: transparent; border: none; color: #ff6b6b;
  cursor: pointer; font-size: 18px; padding: 0 6px;
}

/* ---------- Модалка медиа ---------- */
.media-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; cursor: zoom-out;
}
.media-modal img, .media-modal video {
  max-width: 95vw; max-height: 95vh; border-radius: 8px;
}

/* ==================================================
   МОБИЛЬНЫЙ РЕЖИМ (как Telegram): список комнат ↔ чат
   ================================================== */
/* ---------- Мобильный режим ---------- */



@media (max-width: 900px) {
  .hamburger-btn { display: block; }

  /* Стартовый экран — список комнат */
  .chat {
    grid-template-columns: 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas: "header" "aside";
  }
  .chat aside {
    display: block;
    grid-area: aside;
    border-right: none;
    padding: 8px 0;
    background: #17212b;
  }
  .chat aside .section { margin-bottom: 0; }
  .chat aside h3 { padding: 12px 20px 6px; font-size: 13px; }
  .chat aside li {
    padding: 16px 20px; font-size: 16px;
    border-bottom: 1px solid #0e1621;
    border-left: none;
    border-radius: 0;
  }
  .chat aside li.active {
    background: #232e3c;
    border-left: 3px solid #5288c1;
  }

  /* Чат скрыт, пока комната не открыта */
  .chat main { display: none; }

  /* Открыт чат: показываем main, прячем aside */
  .chat.chat-open {
    grid-template-areas: "header" "main";
  }
  .chat.chat-open aside { display: none; }
  .chat.chat-open main { display: flex; }

  /* Кнопки в шапке */
  .back-btn { display: none; }
  .chat.chat-open .back-btn { display: block; }
  .chat.chat-open .hamburger-btn { display: none; }

  .chat header { padding: 0 10px; gap: 6px; }
  .chat header .title { font-size: 16px; }
  #myName { font-size: 14px; }
  #logoutBtn { padding: 6px 10px; font-size: 13px; }

  .msg { max-width: 85%; }
}

/* ---------- Кнопка ☰ ---------- */
.hamburger-btn {
  display: inline-flex;
  background: transparent;
  border: none;
  color: #e6e6e6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:hover,
.hamburger-btn:active {
  background: #232e3c;
  color: #7ab8f5;
}

@media (max-width: 900px) {
  .hamburger-btn { display: inline-flex; align-items: center; justify-content: center; }
}

/* ============================================
   Меню ☰ (выезжающая панель)
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: none;
}
.menu-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #17212b;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,.5);
  pointer-events: none;
}
.side-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #232e3c;
  flex-shrink: 0;
}
.side-menu-header h2 { font-size: 16px; }
.side-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.side-menu .section { margin-bottom: 20px; }
.side-menu h3 {
  font-size: 12px;
  color: #7ab8f5;
  padding: 6px 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.side-menu #newRoom {
  margin: 6px 20px 0;
  padding: 10px 12px;
  background: #232e3c;
  border: 1px solid #2b3a4a;
  border-radius: 8px;
  color: #fff;
  width: calc(100% - 40px);
  box-sizing: border-box;
}
.side-menu #newRoom:focus { outline: none; border-color: #5288c1; }
.side-menu button.small {
  margin: 8px 20px 0;
  padding: 10px;
  width: calc(100% - 40px);
  background: #5288c1;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-sizing: border-box;
}
.side-menu button.small:hover { background: #6ba0d8; }

.side-menu #userList { list-style: none; }
.side-menu #userList li {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-menu #userList li:hover { background: #232e3c; }
.side-menu #userList li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4dcd5e;
  flex-shrink: 0;
}
.side-menu #userList li.offline { color: #6b7a89; }
.side-menu #userList li.offline::before { background: #4a5a6a; }

/* Кнопка ☰ — видима везде */
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #e6e6e6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 10001;
  position: relative;
}
.hamburger-btn:hover,
.hamburger-btn:active {
  background: #232e3c;
  color: #7ab8f5;
}

/* В открытом чате кнопку ☰ прячем — там уже есть «←» */
.chat.chat-open .hamburger-btn { display: none; }

/* ---------- ☰ везде ---------- */
button.hamburger-btn,
.hamburger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (min-width: 901px) {
  .chat.chat-open .hamburger-btn { display: inline-flex !important; }
}

/* ============================================
   Аватарки
   ============================================ */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #2b3a4a;
  flex-shrink: 0;
}
.avatar-sm { width: 24px; height: 24px; }
.avatar-lg { width: 48px; height: 48px; }

/* Аватарка в шапке чата */
.chat-header-bar .avatar { width: 28px; height: 28px; }

/* Профиль в меню */
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px;
}
.profile-row #myNameSide { flex: 1; font-weight: 600; }
.avatar-upload {
  font-size: 12px; color: #7ab8f5; cursor: pointer;
  padding: 4px 8px; border: 1px solid #2b3a4a; border-radius: 6px;
}
.avatar-upload:hover { background: #232e3c; }

/* Аватарки в списке пользователей */
.side-menu #userList li {
  display: flex; align-items: center; gap: 10px;
}

/* ============================================
   Список комнат — последнее сообщение + непрочитанные
   ============================================ */
.chat aside li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  gap: 8px;
}
.room-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.room-name { font-weight: 600; font-size: 14px; }
.room-last {
  font-size: 12px; color: #7a8a99;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.room-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.room-time { font-size: 11px; color: #7a8a99; }
.room-unread {
  background: #5288c1; color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.chat aside li::before { display: none; } /* убираем зелёную точку в новом виде */

/* ============================================
   Контекстное меню сообщения
   ============================================ */
.msg-menu {
  position: fixed;
  background: #1c2733;
  border: 1px solid #2b3a4a;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  z-index: 99999;
  min-width: 160px;
  padding: 4px;
}
.msg-menu button {
  display: block; width: 100%;
  padding: 8px 12px;
  background: transparent; border: none;
  color: #e6e6e6; text-align: left;
  font-size: 14px; cursor: pointer;
  border-radius: 6px;
}
.msg-menu button:hover { background: #232e3c; }
.msg-menu button.danger { color: #ff6b6b; }

/* Метка "изменено" */
.msg .edited { font-size: 10px; color: #7a8a99; font-style: italic; margin-left: 4px; }

/* Модалка редактирования */
#editInput {
  width: 100%; padding: 10px 12px;
  background: #232e3c; border: 1px solid #2b3a4a;
  border-radius: 8px; color: #fff;
  font-family: inherit; font-size: 14px;
  resize: vertical; min-height: 80px;
  box-sizing: border-box;
}
#editInput:focus { outline: none; border-color: #5288c1; }
.edit-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px;
}
.edit-actions button {
  padding: 8px 16px; border-radius: 6px; border: none;
  background: #5288c1; color: #fff; cursor: pointer; font-weight: 600;
}
.edit-actions button.secondary { background: #2b3a4a; }
.edit-actions button:hover { opacity: .9; }

/* Реакция сообщения (для контекстного меню) */
.msg { position: relative; }
.msg-menu-trigger {
  position: absolute; top: 4px; right: 4px;
  opacity: 0; transition: opacity .15s;
  background: rgba(0,0,0,.3); border: none; color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
}
.msg:hover .msg-menu-trigger { opacity: 1; }

/* Кнопка-иконка в шапке */
.header-icon {
  background: transparent; border: none; color: #e6e6e6;
  font-size: 18px; cursor: pointer; padding: 8px 10px;
  border-radius: 6px; min-width: 40px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.header-icon:hover { background: #232e3c; color: #7ab8f5; }

/* Поиск */
#searchInput {
  width: 100%; padding: 10px 14px;
  background: #232e3c; border: 1px solid #2b3a4a;
  border-radius: 8px; color: #fff; font-size: 14px;
  box-sizing: border-box;
}
#searchInput:focus { outline: none; border-color: #5288c1; }
#searchResults { margin-top: 12px; }
.search-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px solid #232e3c;
}
.search-item:hover { background: #232e3c; }
.search-item .room { font-size: 11px; color: #7ab8f5; margin-bottom: 2px; }
.search-item .author { font-size: 12px; color: #8a9aab; }
.search-item .text { font-size: 14px; margin-top: 2px; word-wrap: break-word; }
.search-item .time { font-size: 11px; color: #7a8a99; margin-left: 6px; }
.search-empty { color: #7a8a99; font-size: 13px; padding: 20px; text-align: center; }

/* Реакции */
.msg-menu-reactions {
  display: flex; gap: 4px; padding: 6px;
  border-bottom: 1px solid #232e3c; margin-bottom: 4px;
}
.msg-menu-reactions button {
  font-size: 18px; padding: 4px 6px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 6px; width: auto;
}
.msg-menu-reactions button:hover { background: #232e3c; transform: scale(1.15); }

.msg-reactions {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.msg-reaction {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 10px;
  background: rgba(82, 136, 193, .2); border: 1px solid transparent;
  font-size: 12px; cursor: pointer; user-select: none;
}
.msg-reaction.mine {
  background: rgba(82, 136, 193, .5);
  border-color: #5288c1;
}
.msg-reaction:hover { background: rgba(82, 136, 193, .35); }
.msg-reaction .count { font-size: 11px; color: #e6e6e6; }

.unread-divider {
  display: flex; align-items: center; gap: 8px;
  color: #5288c1; font-size: 11px; font-weight: 600;
  margin: 8px 0; text-transform: uppercase;
  letter-spacing: .5px;
}
.unread-divider::before, .unread-divider::after {
  content: ""; flex: 1; height: 1px; background: #5288c1;
  opacity: .4;
}
/* ---------- Push-баннер ---------- */
.push-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  background: #17212b;
  border: 1px solid #2b3a4a;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9997;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.push-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.push-banner-text strong {
  font-size: 14px;
  color: #7ab8f5;
}
.push-banner-text span {
  font-size: 13px;
  color: #c9d4e0;
}
.push-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.push-banner button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #5288c1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
}
.push-banner button.secondary {
  background: #2b3a4a;
  color: #c9d4e0;
}
.push-banner button:hover { opacity: .9; }
.push-banner button:active { opacity: .75; }

@media (max-width: 600px) {
  .push-banner {
    left: 8px; right: 8px; bottom: 8px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .push-banner-actions {
    justify-content: flex-end;
  }
}

/* ---------- Push-баннер ---------- */
.push-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  background: #17212b;
  border: 1px solid #2b3a4a;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9997;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.push-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.push-banner-text strong { font-size: 14px; color: #7ab8f5; }
.push-banner-text span { font-size: 13px; color: #c9d4e0; }
.push-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.push-banner button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #5288c1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
}
.push-banner button.secondary {
  background: #2b3a4a;
  color: #c9d4e0;
}
.push-banner button:hover { opacity: .9; }
.push-banner button:active { opacity: .75; }

@media (max-width: 600px) {
  .push-banner {
    left: 8px; right: 8px; bottom: 8px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .push-banner-actions { justify-content: flex-end; }
}
/* ---------- Разделитель дней ---------- */
.day-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 10px;
  position: relative;
}
.day-divider span {
  background: #17212b;
  color: #7a8a99;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: capitalize;
  letter-spacing: .3px;
  position: relative;
  z-index: 1;
}
.day-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: #232e3c;
  z-index: 0;
}

/* ---------- Начало переписки ---------- */
.history-end {
  text-align: center;
  color: #6b7a89;
  font-size: 12px;
  padding: 16px 0 8px;
  font-style: italic;
}
/* Кнопка mute/unmute комнаты */
.mute-btn {
  background: transparent;
  border: 1px solid #2b3a4a;
  color: #e6e6e6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
  transition: all .15s;
  touch-action: manipulation;
}
.mute-btn:hover { background: #232e3c; }
.mute-btn.muted {
  background: #7a2b3a;
  border-color: #7a2b3a;
  color: #ff9090;
}
