/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./components/Chat.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
.Chat_chatContainer__3_OLQ {
  display: flex;
  height: 100vh;
  height: 100dvh;
  background: var(--background);
  overflow: hidden;
  position: relative;
}

.Chat_notificationContainer__wvErv {
  position: fixed;
  top: 0;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.Chat_notification__Yq7yv {
  position: absolute;
  right: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  animation: Chat_slideIn__sc4bz 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 320px;
  min-width: 200px;
  height: auto;
  overflow: hidden;
  pointer-events: all;
  transition: top 0.3s ease;
}

.Chat_notification__Yq7yv span {
  flex: 1 1;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Chat_notification__Yq7yv[data-type="success"] {
  background: var(--success);
  color: white;
}

.Chat_notification__Yq7yv[data-type="error"] {
  background: var(--error);
  color: white;
}

.Chat_notificationClose__MHmVW {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.1s;
  line-height: 1;
}

.Chat_notificationClose__MHmVW:active {
  opacity: 1;
  transform: scale(0.9);
}

.Chat_notificationProgress__dAf1B {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  animation: Chat_progressBar__q8rbX 5s linear;
  width: 100%;
}

@keyframes Chat_progressBar__q8rbX {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes Chat_slideIn__sc4bz {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.Chat_sidebar__8j_mx {
  width: 340px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border-right: 0.5px solid var(--border);
  z-index: 10;
}

@media (max-width: 768px) {
  .Chat_sidebar__8j_mx {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 20;
    transition: transform 0.3s ease;
  }

  .Chat_sidebar__8j_mx.Chat_hidden__8yog2 {
    transform: translateX(-100%);
  }
}

.Chat_header__yxiWb {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  min-height: 64px;
}

.Chat_header__yxiWb h2 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 32px;
}

.Chat_logoutBtn__lFZ_r {
  padding: 0 14px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.1s;
  height: 40px;
  line-height: 24px;
}

.Chat_logoutBtn__lFZ_r:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.Chat_adminBtn__drdcD {
  padding: 0 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.1s;
  height: 40px;
  line-height: 24px;
}

.Chat_adminBtn__drdcD:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.Chat_userInfo__Yx2qq {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.Chat_userInfo__Yx2qq span {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  line-height: 22px;
}

.Chat_settingsBtn__nJQG2 {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  opacity: 0.6;
  transition: opacity 0.1s;
}

.Chat_settingsBtn__nJQG2:active {
  opacity: 1;
}

.Chat_avatar__CHi_m {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.Chat_addBtn__Mm3Hm {
  margin: 12px 16px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.1s;
  height: 50px;
  line-height: 24px;
}

.Chat_addBtn__Mm3Hm:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.Chat_addFriendBox__L3tDb {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: Chat_slideDown__GRmcL 0.2s ease;
}

@keyframes Chat_slideDown__GRmcL {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.Chat_infoBtn___Vfnv {
  margin: 0;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text-light);
  border: none;
  border-top: 0.5px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.1s;
  height: 52px;
  width: 100%;
  flex-shrink: 0;
  text-align: center;
}

.Chat_infoBtn___Vfnv:active {
  opacity: 0.6;
}

.Chat_modalOverlay__A2UFe {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.Chat_requestsWindow__voKYu {}
.Chat_addFriendsWindow__ID0nS {}
.Chat_createGroupWindow__UHgM8 {}

.Chat_infoModal__UJIZK {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: Chat_slideDown__GRmcL 0.2s ease;
}

.Chat_infoModalHeader__yenxw {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.Chat_infoModalClose__nFD8l {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0;
  transition: opacity 0.1s;
}

.Chat_infoModalClose__nFD8l:active {
  opacity: 0.5;
}

.Chat_infoModalBody__Cc4d2 {
  padding: 20px;
}

.Chat_patchTitle__XtLcK {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 12px;
}

.Chat_patchList__Vo48p {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.Chat_patchList__Vo48p li {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}


.Chat_friendsList__NuDbQ::-webkit-scrollbar {
  width: 0;
}

.Chat_friendItem__ZlGYn {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.1s;
  border-bottom: 0.5px solid var(--border);
  position: relative;
}

.Chat_unreadBadge__cmeQT {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--error);
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}

.Chat_friendItem__ZlGYn:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.Chat_friendItem__ZlGYn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.Chat_friendItem__ZlGYn.Chat_active__X_MNv {
  background: rgb(141 141 141 / 26%);
  color: var(--text);
}

.Chat_friendItem__ZlGYn.Chat_active__X_MNv .Chat_avatar__CHi_m {
  background: var(--primary);
  color: white;
}

.Chat_friendItem__ZlGYn.Chat_active__X_MNv .Chat_status__9nwyJ {
  color: var(--text-light);
}

.Chat_friendInfo__WKWbn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1;
  min-width: 0;
}

.Chat_friendName__PU3fF {
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.Chat_friendTag__MX5FE {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.Chat_status__9nwyJ {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 19px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.Chat_status__9nwyJ::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
}

.Chat_status__9nwyJ.Chat_online__TTvd5::before {
  background: var(--success);
}

.Chat_chatArea__peroQ {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  background: var(--background);
  position: relative;
}

@media (max-width: 768px) {
  .Chat_chatArea__peroQ {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 15;
    transition: transform 0.3s ease;
  }

  .Chat_chatArea__peroQ.Chat_hidden__8yog2 {
    transform: translateX(100%);
  }
}

.Chat_chatHeader__cTuV4 {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 64px;
}

.Chat_backBtn__oTGG7 {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: opacity 0.1s;
}

.Chat_backBtn__oTGG7:active {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .Chat_backBtn__oTGG7 {
    display: block;
  }
}

.Chat_headerContent__HdPsw {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.1s;
}

.Chat_headerContent__HdPsw:active {
  opacity: 0.7;
}

.Chat_chatHeader__cTuV4 span {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  line-height: 22px;
}

.Chat_messagesArea__MInG2 {
  flex: 1 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}

.Chat_dateSeparator__0cTyE {
  display: flex;
  align-items: center;
  margin: 16px 0;
  text-align: center;
  width: 100%;
}

.Chat_dateSeparator__0cTyE::before,
.Chat_dateSeparator__0cTyE::after {
  content: '';
  flex: 1 1;
  height: 0.5px;
  background: var(--border);
}

.Chat_dateSeparator__0cTyE span {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.Chat_messagesArea__MInG2::-webkit-scrollbar {
  width: 0;
}

.Chat_message__YX51t {
  display: flex;
  touch-action: pan-y;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  max-width: min(75%, 520px);
  min-width: 0;
  width: -moz-fit-content;
  width: fit-content;
  animation: Chat_messageSlide__0KhGg 0.2s ease;
}

.Chat_message__YX51t.Chat_sent__G56is {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.Chat_message__YX51t.Chat_received__ggGPy {
  align-self: flex-start;
}

.Chat_msgAvatar__DBKbG {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 10px;
}

.Chat_msgAvatarImg__hTCYX {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.Chat_msgAvatarPlaceholder__fbio3 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.Chat_msgInner__m3u8w {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1;
  position: relative;
}

.Chat_message__YX51t.Chat_withAvatar__djhil .Chat_msgAvatar__DBKbG {
  display: flex;
}

.Chat_message__YX51t:not(.Chat_withAvatar__djhil) .Chat_msgAvatar__DBKbG {
  display: none;
}

@keyframes Chat_messageSlide__0KhGg {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.Chat_message__YX51t.Chat_sent__G56is {
  align-self: flex-end;
}

.Chat_message__YX51t.Chat_received__ggGPy {
  align-self: flex-start;
}

.Chat_messageContent__lPbe_ {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 20px;
  min-width: 0;
}

.Chat_message__YX51t.Chat_sent__G56is .Chat_messageContent__lPbe_ {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.Chat_message__YX51t.Chat_received__ggGPy .Chat_messageContent__lPbe_ {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 0.5px solid var(--border);
}

.Chat_messageContent__lPbe_ p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.Chat_messageContent__lPbe_ p + p {
  margin-top: 8px;
}

.Chat_messageContent__lPbe_ strong {
  font-weight: 700;
}

.Chat_messageContent__lPbe_ em {
  font-style: italic;
  transform: skewX(-13deg);
  display: inline-block;
}

.Chat_messageContent__lPbe_ u,
.Chat_messageContent__lPbe_ ins {
  text-decoration: underline;
}

.Chat_messageContent__lPbe_ del,
.Chat_messageContent__lPbe_ s {
  text-decoration: line-through;
  opacity: 0.7;
}

.Chat_messageContent__lPbe_ code {
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

.Chat_message__YX51t.Chat_received__ggGPy .Chat_messageContent__lPbe_ code {
  background: var(--background);
}

.Chat_timestamp__nO5_S {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 4px;
  padding: 0 4px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

.Chat_readCheck__wHZl4 {
  font-size: 16px;
  line-height: 1;
  color: var(--text-lighter);
}

.Chat_readCheck__wHZl4.Chat_read__U5feZ {
  color: #4fc3f7;
}

.Chat_editedLabel__7kbUY {
  font-size: 11px;
  color: var(--text-lighter);
  font-style: italic;
  margin-bottom: 4px;
  padding: 0 4px;
}

.Chat_messageActions__7EqGg {
  position: absolute;
  top: -8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.Chat_messageActionsLeft__mjXCD {
  right: auto;
  left: 8px;
}

.Chat_messageActionsLeft__mjXCD .Chat_messageMenu__oxz8e {
  right: auto;
  left: 0;
}

.Chat_messageActionsLeft__mjXCD .Chat_emojiPicker__cuK7K {
  right: auto;
  left: 0;
}
 
.Chat_menuButton___DOpC {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.1s;
}

.Chat_menuButton___DOpC:active {
  transform: scale(0.95);
  background: var(--background);
}

.Chat_messageMenu__oxz8e {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 10;
  min-width: 120px;
}

.Chat_messageMenu__oxz8e button {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.1s;
}

.Chat_messageMenu__oxz8e button:active {
  background: var(--background);
}

.Chat_messageMenu__oxz8e button.Chat_deleteBtn__PSHDM {
  color: var(--error);
}

.Chat_deleteConfirm__0YfJq {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 0.5px solid var(--border);
}

.Chat_deleteConfirm__0YfJq span {
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

.Chat_deleteConfirmBtns__xiZE4 {
  display: flex;
  gap: 6px;
}

.Chat_deleteModal__SAnYo {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: Chat_slideDown__GRmcL 0.2s ease;
}

.Chat_deleteModalTitle___MaN1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.Chat_deleteModalSub__rbDSv {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 20px;
}

.Chat_deleteModalBtns__0Lq0J {
  display: flex;
  gap: 8px;
}

.Chat_deleteConfirmYes__CzwDN {
  flex: 1 1;
  padding: 12px 0;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.1s;
}

.Chat_deleteConfirmYes__CzwDN:active { opacity: 0.7; }

.Chat_deleteConfirmNo__uYcjZ {
  flex: 1 1;
  padding: 12px 0;
  background: var(--background);
  color: var(--text);
  border: 0.5px solid var(--border);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.1s;
}

.Chat_deleteConfirmNo__uYcjZ:active { opacity: 0.7; }

.Chat_editingBox___6lov {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.Chat_editInput__HPKVz {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  background: var(--background);
  color: var(--text);
}

.Chat_editInput__HPKVz:focus {
  outline: none;
  border-color: var(--primary);
}

.Chat_editActions__Y5Exb {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.Chat_editSave__EcMkW,
.Chat_editCancel__a_br2 {
  padding: 6px 16px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
}

.Chat_editSave__EcMkW {
  background: var(--primary);
  color: white;
}

.Chat_editSave__EcMkW:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.Chat_editCancel__a_br2 {
  background: var(--text-lighter);
  color: white;
}

.Chat_editCancel__a_br2:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.Chat_inputArea__aDzaw {
  padding: 0;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.Chat_replyPreview__voJEb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--background);
  border-bottom: 0.5px solid var(--border);
  border-left: 3px solid var(--primary);
}

.Chat_replyPreviewContent__YnMlJ {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.Chat_replyPreviewName__5Gc9r {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.Chat_replyPreviewText__uSY8q {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Chat_replyPreviewClose__yd8PU {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.1s;
}

.Chat_replyPreviewClose__yd8PU:active {
  opacity: 0.5;
}

.Chat_replyInputRow__8g6cK {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  align-items: center;
}

.Chat_imageBtn__JjhyF {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--background);
  color: var(--text-light);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  line-height: 1;
}
.Chat_imageBtn__JjhyF:hover { border-color: var(--primary); color: var(--primary); }
.Chat_imageBtn__JjhyF:disabled { opacity: 0.4; cursor: not-allowed; }

.Chat_inputWrapper__fxQ1e {
  flex: 1 1;
  position: relative;
}

.Chat_charCount__ZshzZ {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: var(--text-lighter);
  font-weight: 500;
  pointer-events: none;
  line-height: 1;
}

.Chat_charCountWarn__o3Zi9 {
  color: orange;
}

.Chat_charCountMax__INQQY {
  color: var(--error);
}

.Chat_messageContent__lPbe_ a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: opacity 0.1s;
}

.Chat_messageContent__lPbe_ a:active {
  opacity: 0.7;
}

.Chat_message__YX51t.Chat_received__ggGPy .Chat_messageContent__lPbe_ a {
  color: inherit;
}

.Chat_collapseBtn__C7Iaa {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0;
  opacity: 0.7;
  display: block;
  color: inherit;
  text-decoration: underline;
}

.Chat_collapseBtn__C7Iaa:active {
  opacity: 1;
}

.Chat_emojiPicker__cuK7K {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  z-index: 20;
  width: 180px;
}

.Chat_emojiPickerLeft__1EeF4 {
  right: auto;
  left: 0;
}

.Chat_emojiBtn__6G_7D {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.1s;
  line-height: 1;
}

.Chat_emojiBtn__6G_7D:hover {
  background: var(--background);
}

.Chat_messageMeta__p6U_J {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.Chat_message__YX51t.Chat_received__ggGPy .Chat_messageMeta__p6U_J {
  align-items: flex-start;
}

.Chat_reactionsRow__lB8r_ {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.Chat_reactionChip__jY91D {
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.1s;
  color: var(--text);
  line-height: 1.4;
}

.Chat_reactionChip__jY91D:active {
  transform: scale(0.95);
}

.Chat_reactionChipActive__i7RGH {
  background: rgba(50, 171, 142, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.Chat_quoteBlock__bDGF2 {
  border-left: 3px solid rgba(255,255,255,0.4);
  padding: 4px 10px;
  margin-bottom: 6px;
  font-style: italic;
  font-size: 13px;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 2px;
}

.Chat_message__YX51t.Chat_received__ggGPy .Chat_quoteBlock__bDGF2 {
  border-left-color: var(--primary);
  background: rgba(50, 171, 142, 0.08);
}

.Chat_messageInput__MY7Je {
  width: 100%;
  box-sizing: border-box;
  resize: none;
  height: 50px;
  max-height: 120px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  padding: 10px 48px 10px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text);
  transition: border-color 0.1s;
}

.Chat_messageInput__MY7Je:focus {
  outline: none;
  border-color: var(--primary);
}

.Chat_messageInput__MY7Je::placeholder {
  color: var(--text-light);
}

.Chat_messageInput__MY7Je::-webkit-scrollbar {
  width: 4px;
}

.Chat_messageInput__MY7Je::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.Chat_inputArea__aDzaw button {
  flex-shrink: 0;
}

.Chat_emptyState__mN5i1 {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 32px 24px;
  overflow-y: auto;
}
.Chat_emptyState__mN5i1 h3 {
  color: var(--text-light);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}


.Chat_onboarding__F3XsN {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 420px;
  width: 100%;
  animation: Chat_slideDown__GRmcL 0.3s ease;
}

.Chat_onboardingHeader__Yhkr9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.Chat_onboardingLogo__QCOjs {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.Chat_onboardingTitle__Hqk_S {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.Chat_onboardingSub__bRezI {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.Chat_onboardingSteps__zaTWd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.Chat_onboardingStep__nmuKx {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.Chat_onboardingStep__nmuKx:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(50,171,142,0.12);
}

.Chat_onboardingStep__nmuKx.Chat_done__1p2D_ {
  opacity: 0.6;
  cursor: default;
}

.Chat_onboardingStep__nmuKx.Chat_done__1p2D_:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.Chat_onboardingStepIcon__64NxP {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(50,171,142,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.Chat_onboardingStep__nmuKx.Chat_done__1p2D_ .Chat_onboardingStepIcon__64NxP {
  background: rgba(50,171,142,0.2);
}

.Chat_onboardingStepText__Zn5lg {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.Chat_onboardingStepTitle__pD0Na {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.Chat_onboardingStepDesc__O3l3M {
  font-size: 13px;
  color: var(--text-light);
}

.Chat_onboardingStepCheck__h2rkp {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--primary);
  background: transparent;
  transition: all 0.15s;
}

.Chat_onboardingStep__nmuKx.Chat_done__1p2D_ .Chat_onboardingStepCheck__h2rkp {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.Chat_typingIndicator__Pc9xo {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  animation: Chat_messageSlide__0KhGg 0.2s ease;
  width: 100%;
  margin-top: auto;
}

.Chat_typingBubble__ngKjw {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
}

.Chat_typingDot__lwjQA {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-light);
  animation: Chat_typingBounce__0Zsc5 1.2s infinite;
}

.Chat_typingDot__lwjQA:nth-child(2) { animation-delay: 0.2s; }
.Chat_typingDot__lwjQA:nth-child(3) { animation-delay: 0.4s; }

@keyframes Chat_typingBounce__0Zsc5 {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.Chat_infoVersion__VAXbp {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-lighter);
  background: var(--background);
  border-radius: 50px;
  padding: 4px 14px;
  display: inline-block;
  margin: 0 auto 20px;
  border: 0.5px solid var(--border);
  width: -moz-fit-content;
  width: fit-content;
}

.Chat_infoLinks__yEIuI {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.Chat_infoLink__CMf9G {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.Chat_infoLink__CMf9G:hover { opacity: 0.75; }

.Chat_infoLinkIcon__5Q8TD { font-size: 20px; }

.Chat_infoShortcuts__m69qT {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.Chat_infoShortcut__nE43X {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.Chat_infoShortcut__nE43X kbd {
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text);
  font-weight: 600;
}

.Chat_infoFooter__3iblZ {
  text-align: center;
  font-size: 12px;
  color: var(--text-lighter);
  margin: 4px 0 0;
}

/* ── Lightbox ── */
.Chat_lightbox__xW6IK {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: Chat_fadeIn__MCOf9 0.15s ease;
  cursor: zoom-out;
}

@keyframes Chat_fadeIn__MCOf9 {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.Chat_lightboxImg__fyQGD {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  animation: Chat_zoomIn__KOiVH 0.15s ease;
  cursor: default;
}

@keyframes Chat_zoomIn__KOiVH {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.Chat_lightboxClose__Hz7xa {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.Chat_lightboxClose__Hz7xa:hover { background: rgba(255,255,255,0.22); }

.Chat_msgImg__VxCUZ {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 4px;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.Chat_msgImg__VxCUZ:hover { opacity: 0.88; }

