/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!./app/styles/modules/chats.module.scss ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* === Палитра ========================================================== */
/* === Каркас =========================================================== */
.chats_wrapper__DBuBJ {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0C0816;
  color: #e5e5e5;
}

/* ==== navbar ========================================================= */
.chats_navbar__YzDVZ {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  background: #1f1f1f;
  border-bottom: 1px solid #262626;
}

.chats_navLinks__lpx0g {
  display: flex;
  gap: 20px;
}

.chats_navLink__UZhbp {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}
.chats_navLink__UZhbp:hover {
  color: #e5e5e5;
}

/* ==== две колонки ==================================================== */
.chats_chatContainer__Geymw {
  flex: 1;
  overflow: hidden;
  background: #0C0816;
}

.chats_chatGrid__QEG2m {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100%;
}

/* ==== левая колонка (= список чатов) ================================= */
.chats_chatList__FqA0J {
  overflow-y: auto;
  background: #1f1f1f;
  border-right: 1px solid #262626;
}

.chats_chat-list__Y2J5t {
  /* Базовые стили для десктопа */
  position: relative;
  width: 342px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chats_chat-list-container__v9xvT {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden; /* Предотвращаем горизонтальный скролл */
}

.chats_chatItem__48HnT {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.chats_chatItem__48HnT:hover {
  background: #2a2a2a;
}
.chats_chatItem__48HnT.chats_active__IGyVq {
  background: rgba(43, 134, 255, 0.15);
}

.chats_avatar__46RWu {
  position: relative;
}
.chats_avatar__46RWu img {
  border-radius: 50%;
}
.chats_avatar__46RWu .chats_unreadCount__q9UeM {
  position: absolute;
  right: -5px;
  bottom: -5px;
  background: #2b86ff;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 6px;
}

.chats_chatItemText__viECk h3 {
  margin: 0;
  font-size: 15px;
}

.chats_chatItemText__viECk p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #aaa;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==== контейнер чатов ========================================== */
.chats_chats-container__X0aN_ {
  max-width: 1110px;
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==== правая колонка (чат) ========================================== */
.chats_chatMain__9Yofc {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* header */
.chats_chatHeader__ZDBj5 {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #262626;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.chats_chatInfo__vBRPG h2 {
  margin: 0;
  font-size: 16px;
}

.chats_chatInfo__vBRPG p {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* messages */
.chats_chatMessages__4JQXI {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.chats_messageOther__dsR5Z, .chats_messageOwn__JF9RG {
  max-width: 70%;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.chats_messageOther__dsR5Z .chats_timestamp__u5q1W, .chats_messageOwn__JF9RG .chats_timestamp__u5q1W {
  text-align: right;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

.chats_messageOwn__JF9RG {
  align-self: flex-end;
  background: #2b86ff;
  color: #fff;
}

.chats_messageOther__dsR5Z {
  align-self: flex-start;
  background: #333;
}

/* input */
.chats_chatInputWrapper__wipgS {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #1f1f1f;
  border-top: 1px solid #262626;
  flex-shrink: 0;
  min-height: 60px;
}

.chats_inputArea__Jkg3V {
  flex: 1;
  display: flex;
  gap: 8px;
  background: #0C0816;
  border-radius: 6px;
  padding: 8px 12px;
}

.chats_textarea__ZJuyM {
  flex: 1;
  background: none;
  border: none;
  resize: none;
  color: inherit;
  font: inherit;
}

.chats_iconButton__Xztr_ {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #e5e5e5;
}

.chats_emptyChat__FbK83 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
}

.chats_chat-search-input__x_YSy {
  width: 100%;
  height: 32px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  border-radius: 0;
  font-size: 14px;
  outline: none;
}

.chats_chat-search-input__x_YSy::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  opacity: 1;
}

.chats_chat-search-input__x_YSy::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  opacity: 1;
}

.chats_chat-header__kVSHg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  flex-shrink: 0;
}

/* Индикатор новых сообщений */
.chats_unread-indicator__APboY {
  margin-left: 8px;
  background: #D7FF5E;
  color: black;
  font-size: 12px;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/* Превью сообщений в списке чатов */
.chats_chat-preview-text__noxDj {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
}

/* Состояния чатов в списке */
.chats_chat-item__GEvRJ {
  padding: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  transition: background-color 0.2s ease;
  overflow: hidden; /* Предотвращаем горизонтальный скролл */
  /* Обеспечиваем правильное обрезание текста */
}
.chats_chat-item__GEvRJ:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chats_chat-item__GEvRJ.chats_selected__vSCdq {
  background: rgba(255, 255, 255, 0.1);
}
.chats_chat-item__GEvRJ .chats_flex-1__JyzEl {
  min-width: 0; /* Позволяет flex-элементу сжиматься */
}
.chats_chat-item__GEvRJ h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chats_chat-item__GEvRJ p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  /* Адаптация для планшетов */
  .chats_chats-container__X0aN_ {
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  /* Список чатов */
  .chats_chat-list__Y2J5t {
    width: 280px !important;
  }
  /* Область сообщений */
  .chats_chat-messages__b1Pvt {
    padding: 12px;
  }
  /* Сообщения */
  .chats_messageOwn__JF9RG,
  .chats_messageOther__dsR5Z {
    max-width: 85%;
    padding: 8px 12px;
    font-size: 14px;
  }
  /* Инпут */
  .chats_chat-input-wrapper___Ulvr {
    padding: 8px 12px;
  }
  .chats_input-area__jXFWZ {
    padding: 6px 10px;
  }
  .chats_textarea__ZJuyM {
    font-size: 14px;
  }
  .chats_icon-button__5_s_0 {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  /* Адаптация для мобильных */
  .chats_chats-container__X0aN_ {
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  /* Список чатов - скрываем на мобильных или делаем оверлей */
  .chats_chat-list__Y2J5t {
    position: fixed !important;
    top: 62px;
    left: -100%;
    width: 100% !important;
    height: calc(100vh - 62px) !important;
    z-index: 1000;
    transition: left 0.3s ease;
  }
  .chats_chat-list__Y2J5t.chats_mobile-open__bV5ij {
    left: 0;
  }
  /* Основная область чата */
  .chats_chat-main__ueyzq {
    width: 100%;
  }
  /* Хедер чата */
  .chats_chat-header__kVSHg {
    padding: 12px;
    gap: 8px;
  }
  .chats_chat-header__kVSHg h2 {
    font-size: 16px;
  }
  .chats_chat-header__kVSHg p {
    font-size: 12px;
  }
  /* Область сообщений */
  .chats_chat-messages__b1Pvt {
    padding: 8px;
  }
  /* Сообщения */
  .chats_messageOwn__JF9RG,
  .chats_messageOther__dsR5Z {
    max-width: 90%;
    padding: 6px 10px;
    font-size: 13px;
    margin-bottom: 6px;
  }
  .chats_messageOwn__JF9RG .chats_timestamp__u5q1W,
  .chats_messageOther__dsR5Z .chats_timestamp__u5q1W {
    font-size: 9px;
    margin-top: 2px;
  }
  /* Инпут */
  .chats_chat-input-wrapper___Ulvr {
    padding: 6px 8px;
    min-height: 50px;
  }
  .chats_input-area__jXFWZ {
    padding: 4px 8px;
    border-radius: 4px;
  }
  .chats_textarea__ZJuyM {
    font-size: 13px;
  }
  .chats_icon-button__5_s_0 {
    font-size: 14px;
  }
  /* Поиск чатов */
  .chats_chat-search-input__x_YSy {
    padding: 6px 10px;
    font-size: 13px;
  }
  /* Оверлей для закрытия списка чатов */
  .chats_chat-overlay__q8hJa {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .chats_chat-overlay__q8hJa.chats_active__IGyVq {
    opacity: 1;
    visibility: visible;
  }
}
/* ==== ChatInput компонент ========================================== */
.chats_chat-input-container__2d6CL {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  background: transparent;
}

/* Оверлей инициализации записи */
.chats_chat-input-init-overlay__PqMGc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.chats_chat-input-init-content__TnBKV {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chats_chat-input-init-text__DBr0F {
  font-weight: 500;
}

.chats_chat-input-init-pulse__isyLA {
  width: 1rem;
  height: 1rem;
  background: #3b82f6;
  border-radius: 9999px;
  animation: chats_pulse__pcSVr 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes chats_pulse__pcSVr {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* Оверлей записи голоса */
.chats_chat-input-recording-overlay__xB82Y {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(239, 68, 68, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.chats_chat-input-recording-content__b2xM_ {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chats_chat-input-recording-text__YCiqw {
  font-weight: 500;
}

.chats_chat-input-recording-pulse__OWWZp {
  width: 1rem;
  height: 1rem;
  background: #ef4444;
  border-radius: 9999px;
  animation: chats_pulse__pcSVr 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.chats_chat-input-stop-button__vyb0L {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  background: #dc2626;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}
.chats_chat-input-stop-button__vyb0L:hover {
  background: #b91c1c;
}

/* Сообщение-ответ */
.chats_chat-input-reply__n_i7O {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chats_chat-input-reply-content__aRPai {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chats_chat-input-reply-text__tWca9 {
  flex: 1;
}

.chats_chat-input-reply-label__My9yQ {
  font-size: 0.75rem;
  color: #93c5fd;
  margin-bottom: 0.25rem;
}

.chats_chat-input-reply-message__PDfP6 {
  font-size: 0.875rem;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chats_chat-input-reply-cancel__HDGw8 {
  color: #9ca3af;
  font-size: 1.125rem;
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.chats_chat-input-reply-cancel__HDGw8:hover {
  color: white;
}

/* Записанное голосовое сообщение */
.chats_chat-input-voice-message__4SQkZ {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(22, 101, 52, 0.3);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.chats_chat-input-voice-content__QumRO {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chats_chat-input-voice-info__j6LQF {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chats_chat-input-voice-text__jw7v3 {
  color: #86efac;
  font-size: 0.875rem;
}

.chats_chat-input-voice-actions__T1He5 {
  display: flex;
  gap: 0.5rem;
}

.chats_chat-input-voice-button__kEtqf {
  color: #9ca3af;
  font-size: 0.875rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.chats_chat-input-voice-button__kEtqf:hover {
  color: white;
}
.chats_chat-input-voice-button__kEtqf.chats_delete___qY1C:hover {
  color: #f87171;
}

/* Выбранный трек */
.chats_chat-input-track__H_H4_ {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(88, 28, 135, 0.3);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.chats_chat-input-track-content__vS2A1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chats_chat-input-track-info__Yuikx {
  flex: 1;
  min-width: 0;
}

.chats_chat-input-track-title__gbwFT {
  color: #c084fc;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chats_chat-input-track-artist__qDTbs {
  color: #a78bfa;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chats_chat-input-track-remove__Mn3Px {
  color: #9ca3af;
  font-size: 0.875rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.chats_chat-input-track-remove__Mn3Px:hover {
  color: #f87171;
}

/* Основная область инпута */
.chats_chat-input-main__8YPMq {
  display: flex;
  align-items: center;
}

.chats_chat-input-attachment-button__b06Mp {
  color: #D7FF5E;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding-left: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.chats_chat-input-attachment-button__b06Mp:hover {
  color: #B6E800;
}

.chats_chat-input-form__68H8g {
  flex: 1;
  display: flex;
  align-items: center;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chats_chat-input-message__ffsV_ {
  flex: 1;
  background: transparent;
  outline: none;
  color: white;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border: none;
  box-shadow: none;
  font-size: 16px;
  height: 100%;
  font-weight: normal;
}
.chats_chat-input-message__ffsV_::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
}
.chats_chat-input-message__ffsV_::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
}

.chats_chat-input-microphone-button__soO1b {
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 8px;
  padding-right: 24px;
  height: 100%;
  flex-shrink: 0;
  font-size: 24px;
  line-height: 24px;
  width: 24px;
  min-width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #D7FF5E;
}
.chats_chat-input-microphone-button__soO1b:hover {
  color: #B6E800;
}
.chats_chat-input-microphone-button__soO1b:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chats_chat-input-microphone-recording__gu9s_ {
  color: #ef4444 !important;
  animation: chats_pulse__pcSVr 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.chats_chat-input-send-button__FWmUF {
  color: #D7FF5E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  min-width: 24px;
  min-height: 24px;
  padding-right: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.chats_chat-input-send-button__FWmUF:hover {
  color: #B6E800;
}

/* Меню прикрепления */
.chats_chat-input-attachment-menu__yDBn3 {
  position: fixed;
  background: rgba(12, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 999999;
  min-width: 200px;
}

.chats_chat-input-attachment-menu-item__R5XhE {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: left;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.chats_chat-input-attachment-menu-item__R5XhE:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Мобильная адаптивность для ChatInput */
@media (max-width: 768px) {
  .chats_chat-input-send-button__FWmUF {
    padding-right: 6px !important;
  }
  .chats_chat-input-attachment-button__b06Mp {
    padding-left: 6px !important;
  }
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!./app/styles/chats.module.scss ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* === Палитра ========================================================== */
/* === Каркас =========================================================== */
.chats_wrapper__b_40s {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0C0816;
  color: #e5e5e5;
}

/* ==== navbar ========================================================= */
.chats_navbar__XW_4N {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  background: #1f1f1f;
  border-bottom: 1px solid #262626;
}

.chats_navLinks__0qGBG {
  display: flex;
  gap: 20px;
}

.chats_navLink__4IR4J {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}
.chats_navLink__4IR4J:hover {
  color: #e5e5e5;
}

/* ==== две колонки ==================================================== */
.chats_chatContainer__SyGzy {
  flex: 1;
  overflow: hidden;
  background: #0C0816;
}

.chats_chatGrid__HVfy8 {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100%;
}

/* ==== левая колонка (= список чатов) ================================= */
.chats_chatList__0o_0w {
  overflow-y: auto;
  background: #1f1f1f;
  border-right: 1px solid #262626;
}

.chats_chatItem__0TRcs {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.chats_chatItem__0TRcs:hover {
  background: #2a2a2a;
}
.chats_chatItem__0TRcs.chats_active__nhGni {
  background: rgba(43, 134, 255, 0.15);
}

.chats_avatar__uIFQc {
  position: relative;
}
.chats_avatar__uIFQc img {
  border-radius: 50%;
}
.chats_avatar__uIFQc .chats_unreadCount__1mi_l {
  position: absolute;
  right: -5px;
  bottom: -5px;
  background: #2b86ff;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 6px;
}

.chats_chatItemText__a313_ h3 {
  margin: 0;
  font-size: 15px;
}

.chats_chatItemText__a313_ p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #aaa;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==== контейнер чатов ========================================== */
.chats_chats-container__I_8S9 {
  max-width: 1110px;
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==== правая колонка (чат) ========================================== */
.chats_chatMain__4TrMY {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* header */
.chats_chatHeader__kmfzI {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #262626;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.chats_chatInfo__5YLD8 h2 {
  margin: 0;
  font-size: 16px;
}

.chats_chatInfo__5YLD8 p {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

/* messages */
.chats_chatMessages__CZSry {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.chats_messageOther__UAX_e, .chats_messageOwn__luxhK {
  max-width: 70%;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.chats_messageOther__UAX_e .chats_timestamp__xOw4k, .chats_messageOwn__luxhK .chats_timestamp__xOw4k {
  text-align: right;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

.chats_messageOwn__luxhK {
  align-self: flex-end;
  background: #2b86ff;
  color: #fff;
}

.chats_messageOther__UAX_e {
  align-self: flex-start;
  background: #333;
}

/* input */
.chats_chatInputWrapper__RSAEc {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #1f1f1f;
  border-top: 1px solid #262626;
  flex-shrink: 0;
  min-height: 60px;
}

.chats_inputArea__4NYON {
  flex: 1;
  display: flex;
  gap: 8px;
  background: #0C0816;
  border-radius: 6px;
  padding: 8px 12px;
}

.chats_textarea__W_Thp {
  flex: 1;
  background: none;
  border: none;
  resize: none;
  color: inherit;
  font: inherit;
}

.chats_iconButton__LQaZ8 {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #e5e5e5;
}

.chats_emptyChat__0VQwb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
}

.chats_date-separator__nvinb {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}
.chats_date-separator__nvinb span {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  width: 100px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chats_message-bubble__IUeXM {
  display: flex;
  align-items: flex-start;
}
.chats_message-bubble--same-sender__3FCqx {
  margin-bottom: 10px;
}
.chats_message-bubble--different-sender__LkCIu {
  margin-bottom: 20px;
}
.chats_message-bubble--own__HlgGk {
  justify-content: flex-end;
}
.chats_message-bubble--other__oB1cS {
  justify-content: flex-start;
}
.chats_message-bubble__container__7Rp64 {
  max-width: 320px;
  padding: 8px 16px;
  border-radius: 0;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 1024px) {
  .chats_message-bubble__container__7Rp64 {
    max-width: 384px;
  }
}
.chats_message-bubble__container--own__LiByI {
  background-color: rgba(215, 255, 94, 0.3);
  border: 1px solid rgba(215, 255, 94, 0.5);
  color: white;
}
.chats_message-bubble__container--own__LiByI::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: -9px;
  width: 0;
  height: 0;
  border-left: 8px solid rgba(215, 255, 94, 0.5);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.chats_message-bubble__container--other__efdcJ {
  background-color: rgba(135, 94, 255, 0.3);
  border: 1px solid rgba(135, 94, 255, 0.5);
  color: white;
}
.chats_message-bubble__container--other__efdcJ::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -9px;
  width: 0;
  height: 0;
  border-right: 8px solid rgba(135, 94, 255, 0.5);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.chats_message-bubble__sender-info__Im303 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.chats_message-bubble__sender-name__PV8cM {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.chats_message-bubble__sender-name__PV8cM:hover {
  text-decoration: underline;
}
.chats_message-bubble__reply__UtRND {
  margin-bottom: 8px;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 2px solid #3B82F6;
}
.chats_message-bubble__reply-header__BbRXi {
  font-size: 12px;
  color: #93C5FD;
  margin-bottom: 4px;
}
.chats_message-bubble__reply-text__WWGmY {
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chats_message-bubble__text__6uWdz {
  word-wrap: break-word;
  line-height: 1.4;
}
.chats_message-bubble__text__6uWdz a {
  text-decoration: none;
  word-break: break-all;
}
.chats_message-bubble__text__6uWdz a:hover {
  text-decoration: underline;
}
.chats_message-bubble--other__oB1cS .chats_message-bubble__text__6uWdz a {
  color: #D7FF5E;
}
.chats_message-bubble--own__HlgGk .chats_message-bubble__text__6uWdz a {
  color: #D7FF5E;
}
.chats_message-bubble__time__rbTpM {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}
.chats_message-bubble--other__oB1cS .chats_message-bubble__time__rbTpM {
  text-align: right;
}
.chats_message-bubble__file__c8BIq {
  margin-bottom: 8px;
}
.chats_message-bubble__file__c8BIq img {
  border-radius: 6px;
}
.chats_message-bubble__file__c8BIq a {
  color: #D7FF5E;
  text-decoration: none;
}
.chats_message-bubble__file__c8BIq a:hover {
  text-decoration: underline;
}

.chats_voice-message__wdkSO {
  width: 100%;
  min-width: 200px;
}
.chats_voice-message__container__JLKrT {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.chats_voice-message__play-button__oswi_ {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, #8B5CF6 0%, #6D28D9 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}
.chats_voice-message__play-button__oswi_:hover {
  opacity: 0.9;
}
.chats_voice-message__play-button__oswi_:active {
  opacity: 0.8;
}
.chats_voice-message__play-button__oswi_ svg {
  width: 12px;
  height: 12px;
}
.chats_voice-message__wave-container__0OmAz {
  flex: 1;
  height: 32px;
  cursor: pointer;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.chats_voice-message__waves__GOdbP {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.chats_voice-message__wave-bar__rgBYF {
  flex: 1;
  max-width: 4px;
  background-color: #D7FF5E;
  border-radius: 2px;
  transition: height 0.3s ease;
  min-height: 4px;
  height: 20%;
}
.chats_voice-message__wave-bar--animated__4MCDh {
  animation: chats_wave-animation__sU0Aj 1.2s ease-in-out infinite;
}
.chats_voice-message__wave-bar--animated__4MCDh:nth-child(1) {
  animation-delay: 0s;
}
.chats_voice-message__wave-bar--animated__4MCDh:nth-child(2) {
  animation-delay: 0.15s;
}
.chats_voice-message__wave-bar--animated__4MCDh:nth-child(3) {
  animation-delay: 0.3s;
}
.chats_voice-message__wave-bar--animated__4MCDh:nth-child(4) {
  animation-delay: 0.45s;
}
.chats_voice-message__wave-bar--animated__4MCDh:nth-child(5) {
  animation-delay: 0.6s;
}
.chats_voice-message__progress-overlay__t20Bd {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(139, 92, 246, 0.3);
  pointer-events: none;
  z-index: 0;
  transition: width 0.1s linear;
}
@keyframes chats_wave-animation__sU0Aj {
  0%, 100% {
    height: 25%;
  }
  10% {
    height: 50%;
  }
  20% {
    height: 75%;
  }
  30% {
    height: 100%;
  }
  40% {
    height: 80%;
  }
  50% {
    height: 60%;
  }
  60% {
    height: 40%;
  }
  70% {
    height: 30%;
  }
  80% {
    height: 50%;
  }
  90% {
    height: 35%;
  }
}
.chats_voice-message__time__C_Nlw {
  flex-shrink: 0;
  color: white;
  font-size: 12px;
  font-family: "Courier New", monospace;
  white-space: nowrap;
  margin-left: 4px;
}

.chats_chats-page__search-panel__Q87pL {
  background-color: #1A1A1A;
  border-bottom: 1px solid #4A5568;
  padding: 16px;
}
.chats_chats-page__search-panel__Q87pL .chats_container__vUTkk {
  max-width: 384px;
}
.chats_chats-page__search-panel__Q87pL h3 {
  font-size: 14px;
  font-weight: 500;
  color: #A0AEC0;
  margin-bottom: 8px;
}
.chats_chats-page__search-panel__Q87pL input {
  width: 100%;
  padding: 8px 12px;
  background-color: #2A2A2A;
  color: white;
  border-radius: 4px;
  border: 1px solid #4A5568;
}
.chats_chats-page__search-panel__Q87pL input:focus {
  border-color: #8B5CF6;
  outline: none;
}
.chats_chats-page__search-panel__Q87pL input::-moz-placeholder {
  color: #A0AEC0;
}
.chats_chats-page__search-panel__Q87pL input::placeholder {
  color: #A0AEC0;
}
.chats_chats-page__search-results__tbPm4 {
  margin-top: 8px;
  background-color: #2A2A2A;
  border-radius: 4px;
  border: 1px solid #4A5568;
  max-height: 240px;
  overflow-y: auto;
}
.chats_chats-page__search-loading__DGZvp, .chats_chats-page__search-empty__xZOos {
  padding: 12px;
  color: #A0AEC0;
}
.chats_chats-page__search-user__oHiBB {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chats_chats-page__search-user__oHiBB:hover {
  background-color: #2A2A2A;
}
.chats_chats-page__search-user-info__RJ5s_ .chats_name__oxkOF {
  font-weight: 500;
}
.chats_chats-page__search-user-info__RJ5s_ .chats_username__KUwYF {
  font-size: 14px;
  color: #A0AEC0;
}
.chats_chats-page__content__ouade {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
  height: calc(100vh - 80px);
}
.chats_chats-page__main__Gz0G5 {
  display: flex;
  width: 100%;
  gap: 16px;
  height: 100%;
}
.chats_chats-page__chat-area__xGMHS {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}
.chats_chats-page__chat-area-header__zXkm3 {
  flex-shrink: 0;
}
.chats_chats-page__chat-area-messages__rvBdI {
  flex: 1;
  min-height: 0;
}
.chats_chats-page__chat-area-input__OGMy2 {
  flex-shrink: 0;
}
.chats_chats-page__empty-state__H6rdn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A0AEC0;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.chats_chats-page__empty-state__H6rdn:hover {
  color: white;
}
@media (max-width: 768px) {
  .chats_chats-page__empty-state__H6rdn {
    position: relative;
    z-index: 5;
    padding: 40px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    min-height: 200px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .chats_chats-page__empty-state__H6rdn:active {
    color: #D7FF5E;
    transform: scale(0.98);
  }
}

.chats_chat-overlay__3F4V0 {
  display: none;
}
@media (max-width: 768px) {
  .chats_chat-overlay__3F4V0 {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .chats_active__nhGni {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.chats_chat-list__vMAWC {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .chats_chat-list__vMAWC {
    position: fixed;
    top: 62px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 62px);
    z-index: 25;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background-color: #1A1A1A;
    border-right: none;
  }
  .chats_mobile-open__7EIgf {
    transform: translateX(0) !important;
  }
}
