/* EliteClown chat */
body .chat-main .chat-scroll-area{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body .chat-main .chat-scroll-area > .chat-msg{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  margin:4px 0!important;
  padding:4px 8px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  contain:none!important;
  box-sizing:border-box!important;
}
body .chat-main .chat-scroll-area > .chat-msg.mine,
body .chat-main .chat-scroll-area > .chat-msg[data-mine="1"]{justify-content:flex-end!important}
body .chat-main .chat-scroll-area > .chat-msg > .avatar,
body .chat-main .chat-scroll-area > .chat-msg > .pm-avatar{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  margin:0!important;
  order:0!important;
  align-self:flex-end!important;
}
body .chat-main .chat-scroll-area > .chat-msg.mine > .avatar,
body .chat-main .chat-scroll-area > .chat-msg[data-mine="1"] > .avatar,
body .chat-main .chat-scroll-area > .chat-msg.mine > .pm-avatar,
body .chat-main .chat-scroll-area > .chat-msg[data-mine="1"] > .pm-avatar{order:2!important}
body .chat-main .chat-scroll-area > .chat-msg > .bubble{
  position:relative!important;
  order:1!important;
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  flex:0 1 auto!important;
  width:fit-content!important;
  min-width:120px!important;
  max-width:min(560px,calc(100% - 70px))!important;
  margin:0!important;
  padding:12px 14px!important;
  border-radius:18px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  contain:none!important;
}
body .chat-main .chat-scroll-area > .chat-msg.mine > .bubble,
body .chat-main .chat-scroll-area > .chat-msg[data-mine="1"] > .bubble{margin-left:auto!important;margin-right:0!important}
body .chat-main .chat-scroll-area .msg-head,
body .chat-main .chat-scroll-area .pm-headline{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:34px!important;
  margin:0 0 6px!important;
  padding:0!important;
  overflow:visible!important;
  contain:none!important;
}
body .chat-main .chat-scroll-area .msg-head > b,
body .chat-main .chat-scroll-area .pm-headline > b,
body .chat-main .chat-scroll-area .msg-authorline{
  display:block!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:calc(100% - 42px)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.22!important;
}
body .chat-main .chat-scroll-area .msg-head a,
body .chat-main .chat-scroll-area .msg-head .nick-text,
body .chat-main .chat-scroll-area .pm-headline a,
body .chat-main .chat-scroll-area .pm-headline .nick-text,
body .chat-main .chat-scroll-area .msg-arrow{
  display:inline!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body .chat-main .chat-scroll-area .msg-menu{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  margin-left:auto!important;
  padding:0!important;
  overflow:visible!important;
  contain:none!important;
  z-index:50!important;
}
body .chat-main .chat-scroll-area .msg-menu-toggle{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body .chat-main .chat-scroll-area .msg-menu > .msg-menu-list,
body .chat-main .chat-scroll-area .msg-menu.open > .msg-menu-list,
body .chat-main .chat-scroll-area .msg-menu[data-menu-open="1"] > .msg-menu-list,
body .chat-main .chat-scroll-area .msg-actions > .msg-menu-list,
body > .msg-menu-list:not(.ec-menu-portal){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.ec-menu-portal{
  position:fixed!important;
  display:grid!important;
  gap:8px!important;
  width:300px!important;
  min-width:300px!important;
  max-width:min(300px,calc(100vw - 20px))!important;
  max-height:calc(100vh - 20px)!important;
  padding:10px!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,rgba(21,10,25,.99),rgba(8,4,10,.99))!important;
  border:1px solid rgba(255,135,205,.44)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.75)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  box-sizing:border-box!important;
  transform:none!important;
}
.ec-menu-portal form{display:block!important;margin:0!important;width:100%!important}
.ec-menu-portal button,.ec-menu-portal a{
  width:100%!important;
  min-height:42px!important;
  justify-content:flex-start!important;
  text-align:left!important;
  white-space:normal!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  box-sizing:border-box!important;
}
body .chat-main .chat-scroll-area .msg-text,
body .chat-main .chat-scroll-area .bubble p.msg-text{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:4px 0!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.42!important;
}
body .chat-main .chat-scroll-area .bubble small{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .chat-main .chat-scroll-area .reply-quote{
  display:inline-grid!important;
  width:auto!important;
  max-width:min(320px,100%)!important;
  margin:4px 0 6px!important;
  padding:7px 9px!important;
}
body .chat-main .chat-scroll-area .reply-quote b,
body .chat-main .chat-scroll-area .reply-quote span{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
}
body .chat-main .chat-scroll-area .message-files-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:8px 0 6px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body .chat-main .chat-scroll-area .message-file-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  max-width:210px!important;
  min-width:0!important;
  min-height:48px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  border:1px solid rgba(255,95,183,.22)!important;
  background:rgba(255,255,255,.045)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  color:inherit!important;
  text-decoration:none!important;
}
body .chat-main .chat-scroll-area .message-file-chip.image,
body .chat-main .chat-scroll-area .message-file-chip.video{
  flex-direction:column!important;
  align-items:stretch!important;
  width:150px!important;
  max-width:150px!important;
  min-height:0!important;
  padding:6px!important;
}
body .chat-main .chat-scroll-area .message-file-chip img,
body .chat-main .chat-scroll-area .message-file-chip video{
  display:block!important;
  width:100%!important;
  height:100px!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  max-height:100px!important;
  object-fit:cover!important;
  border-radius:10px!important;
  margin:0!important;
  background:#08040b!important;
}
body .chat-main .chat-scroll-area .message-file-chip.file .file-ico{width:28px!important;min-width:28px!important;flex:0 0 28px!important;text-align:center!important}
body .chat-main .chat-scroll-area .message-file-chip span{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-weight:900!important;
}
/* catch every old media variant inside chat bubbles */
body .chat-main .chat-scroll-area .bubble :is(img,video):not(.avatar img):not(.avatar video),
body .chat-main .chat-scroll-area .media-tile :is(img,video),
body .chat-main .chat-scroll-area .media-open :is(img,video){
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  border-radius:10px!important;
  margin:0!important;
}
body .chat-main .chat-scroll-area .media-tile,
body .chat-main .chat-scroll-area .bubble > .media-open,
body .chat-main .chat-scroll-area .bubble > img,
body .chat-main .chat-scroll-area .bubble > video{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:150px!important;
  max-width:150px!important;
  height:110px!important;
  max-height:110px!important;
  min-height:0!important;
  padding:6px!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.045)!important;
  box-sizing:border-box!important;
}
body .media-modal .modal-body img,
body .media-modal .modal-body video{
  max-width:min(92vw,1200px)!important;
  max-height:86vh!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  border-radius:18px!important;
}
.chosen-files-preview{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-height:120px;overflow-y:auto;padding:8px 10px;border-radius:14px;border:1px solid rgba(255,95,183,.18);background:rgba(255,255,255,.035);scrollbar-width:thin}
.chosen-file-chip{display:inline-flex;align-items:center;gap:7px;max-width:210px;padding:7px 10px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.chosen-file-chip b{font-style:normal}.chosen-file-chip em{font-style:normal;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chosen-files-clear{margin-left:auto!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:rgba(255,90,130,.20)!important;color:#ffd8e0!important;border:0!important}
.chat-sendbar.drag-over{outline:2px solid rgba(255,104,197,.6)!important;outline-offset:3px!important;background:rgba(255,89,180,.08)!important}
@keyframes pmUnreadPulse{0%,100%{box-shadow:inset 0 0 0 1px rgba(255,202,77,.42),0 0 10px rgba(255,195,45,.16)}50%{box-shadow:inset 0 0 0 1px rgba(255,224,113,.9),0 0 26px rgba(255,192,39,.48)}}
.chat-side-user.unread{animation:pmUnreadPulse 1.65s ease-in-out infinite!important;background:linear-gradient(135deg,rgba(255,193,43,.18),rgba(255,255,255,.04))!important}
.chat-side-user.unread small{color:#ffe6a0!important}.chat-side-user.unread b{color:#fff!important}
.pm-unread-badge,.pm-tab-count{display:inline-grid!important;place-items:center!important;min-width:20px!important;height:20px!important;padding:0 6px!important;border-radius:999px!important;background:#ffc83d!important;color:#1a0e06!important;font-style:normal!important;font-size:11px!important;font-weight:1000!important;line-height:1!important;box-shadow:0 0 18px rgba(255,199,48,.43)!important}
.pm-tab-count{margin-left:7px!important;vertical-align:middle!important}
.pm-tab-count.hidden{display:none!important}
.pm-meta{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.pm-delivery{display:inline-flex!important;align-items:center!important;gap:4px!important;color:#9493a1!important;font-weight:800!important}
.pm-delivery .pm-check{font-size:13px!important;letter-spacing:-3px!important;padding-right:3px!important}
.pm-delivery.read{color:#55b8ff!important}
@media(max-width:760px){
  body .chat-main .chat-scroll-area > .chat-msg{gap:8px!important;padding:5px 2px!important}
  body .chat-main .chat-scroll-area > .chat-msg > .avatar,
  body .chat-main .chat-scroll-area > .chat-msg > .pm-avatar{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;flex-basis:34px!important}
  body .chat-main .chat-scroll-area > .chat-msg > .bubble{max-width:calc(100vw - 92px)!important;padding:11px 12px!important}
  body .chat-main .chat-scroll-area .msg-menu,
  body .chat-main .chat-scroll-area .msg-menu-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex-basis:32px!important}
  body .chat-main .chat-scroll-area .msg-head > b,
  body .chat-main .chat-scroll-area .pm-headline > b,
  body .chat-main .chat-scroll-area .msg-authorline{max-width:calc(100% - 40px)!important}
  body .chat-main .chat-scroll-area .message-file-chip.image,
  body .chat-main .chat-scroll-area .message-file-chip.video{width:122px!important;max-width:122px!important}
  body .chat-main .chat-scroll-area .message-file-chip img,
  body .chat-main .chat-scroll-area .message-file-chip video{height:84px!important;max-height:84px!important}
  body .chat-main .chat-scroll-area .media-tile,
  body .chat-main .chat-scroll-area .bubble > .media-open,
  body .chat-main .chat-scroll-area .bubble > img,
  body .chat-main .chat-scroll-area .bubble > video{width:122px!important;max-width:122px!important;height:84px!important;max-height:84px!important}
}

/* final chat/menu polish */
.ec-menu-portal,
.ec-menu-portal *{box-sizing:border-box!important}
.ec-menu-portal{
  width:300px!important;
  min-width:300px!important;
  max-width:min(300px,calc(100vw - 20px))!important;
  background:linear-gradient(145deg,rgba(22,12,26,.99),rgba(8,5,11,.99))!important;
  color:#fff!important;
}
.ec-menu-portal form{display:block!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.ec-menu-portal button,
.ec-menu-portal a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:rgba(255,255,255,.055)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-align:left!important;
  white-space:normal!important;
  opacity:1!important;
  cursor:pointer!important;
  appearance:none!important;
}
.ec-menu-portal button:hover,
.ec-menu-portal a:hover{background:rgba(255,115,198,.16)!important;border-color:rgba(255,135,205,.30)!important}
.ec-menu-portal button.danger,
.ec-menu-portal .danger,
.ec-menu-portal form button.danger{
  background:linear-gradient(135deg,#b91534,#c21d41)!important;
  border-color:rgba(255,87,116,.45)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ec-menu-portal button:disabled{opacity:.7!important;cursor:wait!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

body .chat-main .chat-sendbar{
  overflow:hidden!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,1fr) minmax(160px,auto) auto!important;
}
body .chat-main .chat-sendbar > *{min-width:0!important;box-sizing:border-box!important}
body .chat-main .chat-sendbar input[name="text"]{min-width:0!important;width:100%!important}
body .chat-main .chat-sendbar input[type="file"]{max-width:230px!important;min-width:0!important;overflow:hidden!important}
body .chat-main .reply-preview,
body .chat-main .chosen-files-preview{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
body .chat-main .reply-preview span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body .chat-main .reply-preview button,
body .chat-main .chosen-file-remove,
body .chat-main .chosen-files-clear{
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  max-width:28px!important;
  max-height:28px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:999px!important;
}
body .chat-main .chosen-files-preview{align-items:center!important;flex-wrap:wrap!important;gap:8px!important;padding-right:10px!important}
body .chat-main .chosen-file-chip{min-width:0!important;max-width:min(220px,calc(100% - 38px))!important;overflow:hidden!important;box-sizing:border-box!important}
body .chat-main .chosen-file-chip em{min-width:0!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body .chat-main .chosen-files-clear{margin-left:0!important;flex-basis:auto!important;width:auto!important;max-width:110px!important;min-width:82px!important;padding:0 10px!important;border-radius:12px!important}

body .chat-main .chat-scroll-area .bubble{max-width:min(560px,calc(100% - 76px))!important;overflow:visible!important}
body .chat-main .chat-scroll-area .message-files-row{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:auto!important;
  max-width:min(100%,520px)!important;
  overflow:hidden!important;
}
body .chat-main .chat-scroll-area .bubble .message-file-chip,
body .chat-main .chat-scroll-area .bubble .media-tile,
body .chat-main .chat-scroll-area .bubble a.media-open,
body .chat-main .chat-scroll-area .bubble div.media-open{
  flex:0 0 152px!important;
  width:152px!important;
  max-width:152px!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body .chat-main .chat-scroll-area .bubble .message-file-chip.image,
body .chat-main .chat-scroll-area .bubble .message-file-chip.video,
body .chat-main .chat-scroll-area .bubble .media-tile.small,
body .chat-main .chat-scroll-area .bubble .media-tile,
body .chat-main .chat-scroll-area .bubble a.media-open{
  padding:6px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.045)!important;
}
body .chat-main .chat-scroll-area .bubble .message-file-chip img,
body .chat-main .chat-scroll-area .bubble .message-file-chip video,
body .chat-main .chat-scroll-area .bubble .media-tile img,
body .chat-main .chat-scroll-area .bubble .media-tile video,
body .chat-main .chat-scroll-area .bubble a.media-open img,
body .chat-main .chat-scroll-area .bubble a.media-open video,
body .chat-main .chat-scroll-area .bubble > img,
body .chat-main .chat-scroll-area .bubble > video{
  display:block!important;
  width:140px!important;
  max-width:140px!important;
  height:96px!important;
  max-height:96px!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:cover!important;
  border-radius:10px!important;
  margin:0!important;
}
body .chat-main .chat-scroll-area .bubble .message-file-chip span,
body .chat-main .chat-scroll-area .bubble .media-tile span,
body .chat-main .chat-scroll-area .bubble a.media-open span{
  display:block!important;
  width:100%!important;
  max-width:140px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:760px){
  body .chat-main .chat-sendbar{grid-template-columns:1fr!important}
  body .chat-main .chat-sendbar input[type="file"]{max-width:100%!important;width:100%!important}
  body .chat-main .chat-scroll-area .bubble .message-file-chip,
  body .chat-main .chat-scroll-area .bubble .media-tile,
  body .chat-main .chat-scroll-area .bubble a.media-open,
  body .chat-main .chat-scroll-area .bubble div.media-open{flex-basis:122px!important;width:122px!important;max-width:122px!important}
  body .chat-main .chat-scroll-area .bubble .message-file-chip img,
  body .chat-main .chat-scroll-area .bubble .message-file-chip video,
  body .chat-main .chat-scroll-area .bubble .media-tile img,
  body .chat-main .chat-scroll-area .bubble .media-tile video,
  body .chat-main .chat-scroll-area .bubble a.media-open img,
  body .chat-main .chat-scroll-area .bubble a.media-open video{width:110px!important;max-width:110px!important;height:78px!important;max-height:78px!important}
}
@media(max-width:900px){body .chat-main .chat-scroll-area{width:100%!important;max-width:100%!important;overflow-x:hidden!important}body .chat-main .chat-scroll-area > .chat-msg{max-width:100%!important;overflow:visible!important}body .chat-main .chat-scroll-area > .chat-msg > .bubble{max-width:calc(100% - 58px)!important;min-width:0!important}body .chat-main .chat-scroll-area > .chat-msg > .avatar,body .chat-main .chat-scroll-area > .chat-msg > .pm-avatar{flex-basis:36px!important;width:36px!important;height:36px!important;min-width:36px!important}body .chat-main .chat-scroll-area .message-files-row{overflow:hidden!important}body .chat-main .chat-scroll-area .message-file-chip.image,body .chat-main .chat-scroll-area .message-file-chip.video{width:min(170px,100%)!important;max-width:100%!important}.ec-menu-portal{max-width:calc(100vw - 16px)!important;width:min(300px,calc(100vw - 16px))!important}}
@media(max-width:420px){body .chat-main .chat-scroll-area > .chat-msg{padding:4px 2px!important}body .chat-main .chat-scroll-area > .chat-msg > .bubble{max-width:calc(100% - 44px)!important;padding:10px 11px!important}body .chat-main .chat-scroll-area .msg-head,body .chat-main .chat-scroll-area .pm-headline{gap:5px!important}.ec-custom-sticker img,.ec-custom-sticker video{width:min(132px,48vw)!important;max-height:132px!important}}

@media(max-width:760px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .chat-hub{width:100%!important;max-width:100%!important;min-width:0!important;padding:0 8px 92px!important;box-sizing:border-box!important;overflow-x:hidden!important}
  .chat-tabs{width:max-content!important;max-width:100%!important;margin:12px auto 18px!important;padding:8px!important;box-sizing:border-box!important}
  .chat-tab{min-height:54px!important;padding:0 22px!important;font-size:17px!important}
  .chat-hub-layout,.public-chat-layout{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;box-sizing:border-box!important}
  .chat-main,.public-chat-main,.private-chat-main{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;border-radius:22px!important;overflow:hidden!important;box-sizing:border-box!important}
  .chat-search{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;padding:10px!important;box-sizing:border-box!important}
  .chat-search input,.chat-search .btn{width:100%!important;min-width:0!important;height:48px!important;box-sizing:border-box!important}
  .chat-pinned{width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important}
  .chat-pinned summary{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
  .chat-pinned summary span{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .chat-scroll-area,.pm-scroll{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:10px 2px!important;box-sizing:border-box!important}
  .chat-main .chat-scroll-area>.chat-msg,.chat-main .chat-scroll-area>.pm-msg{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:7px!important;margin:6px 0!important;padding:6px 0!important;box-sizing:border-box!important;overflow:visible!important;contain:none!important}
  .chat-main .chat-scroll-area>.chat-msg.mine,.chat-main .chat-scroll-area>.pm-msg.mine{justify-content:flex-end!important;padding-left:0!important;padding-right:0!important}
  .chat-main .chat-scroll-area>.chat-msg>.avatar,.chat-main .chat-scroll-area>.pm-msg>.avatar,.chat-main .chat-scroll-area>.pm-msg>.pm-avatar{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;align-self:flex-end!important}
  .chat-main .chat-scroll-area>.chat-msg>.bubble,.chat-main .chat-scroll-area>.pm-msg>.bubble{flex:0 1 auto!important;width:auto!important;max-width:calc(100% - 46px)!important;min-width:0!important;margin:0!important;padding:10px 10px!important;border-radius:18px!important;box-sizing:border-box!important;overflow:visible!important;contain:none!important}
  .chat-main .chat-scroll-area>.chat-msg.mine>.bubble,.chat-main .chat-scroll-area>.pm-msg.mine>.bubble{margin-left:auto!important;margin-right:0!important;max-width:calc(100% - 46px)!important}
  .chat-main .chat-scroll-area .msg-head,.chat-main .chat-scroll-area .pm-headline{display:flex!important;align-items:flex-start!important;gap:6px!important;width:100%!important;min-width:0!important;min-height:0!important;margin:0 0 6px!important;overflow:visible!important}
  .chat-main .chat-scroll-area .msg-head>b,.chat-main .chat-scroll-area .pm-headline>b,.chat-main .chat-scroll-area .msg-authorline{display:flex!important;align-items:center!important;gap:5px!important;flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 38px)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important;flex-wrap:wrap!important}
  .chat-main .chat-scroll-area .msg-head .role,.chat-main .chat-scroll-area .pm-headline .role{flex:0 0 auto!important;max-width:100%!important}
  .chat-main .chat-scroll-area .msg-head a,.chat-main .chat-scroll-area .pm-headline a,.chat-main .chat-scroll-area .msg-head .nick-text,.chat-main .chat-scroll-area .pm-headline .nick-text{display:inline-block!important;min-width:0!important;max-width:min(170px,100%)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;vertical-align:middle!important}
  .chat-main .chat-scroll-area .msg-menu,.chat-main .chat-scroll-area .msg-menu-toggle{flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
  .chat-main .chat-scroll-area .msg-text,.chat-main .chat-scroll-area .bubble p.msg-text{width:100%!important;max-width:100%!important;font-size:16px!important;line-height:1.42!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .chat-main .chat-scroll-area .bubble small,.chat-main .chat-scroll-area .pm-meta{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important}
  .pm-delivery{white-space:nowrap!important}
  .reply-quote{max-width:100%!important;width:100%!important;box-sizing:border-box!important}
  .reply-quote b,.reply-quote span{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .message-files-row{max-width:100%!important;width:100%!important;gap:7px!important;overflow:hidden!important}
  .message-file-chip.image,.message-file-chip.video,.chat-main .chat-scroll-area .bubble .message-file-chip.image,.chat-main .chat-scroll-area .bubble .message-file-chip.video{width:112px!important;max-width:112px!important;flex-basis:112px!important}
  .message-file-chip img,.message-file-chip video{height:78px!important;max-height:78px!important}
  .chat-form.chat-sendbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:12px 0 0!important;padding:10px!important;border-radius:20px!important;box-sizing:border-box!important;overflow:hidden!important}
  .chat-form.chat-sendbar input[name="text"]{width:100%!important;min-width:0!important;height:52px!important;padding:0 14px!important;font-size:16px!important;box-sizing:border-box!important}
  .chat-form.chat-sendbar input[type="file"]{width:100%!important;max-width:100%!important;min-width:0!important;height:46px!important;padding:8px!important;border-radius:15px!important;border:1px solid rgba(255,95,183,.22)!important;background:rgba(255,255,255,.035)!important;color:#ffe6f5!important;font-size:13px!important;box-sizing:border-box!important;overflow:hidden!important}
  .chat-form.chat-sendbar input[type="file"]::file-selector-button{height:30px!important;margin-right:8px!important;border:0!important;border-radius:10px!important;background:#f2eff7!important;color:#170818!important;font-weight:900!important;padding:0 10px!important}
  .chat-form.chat-sendbar .btn.primary{width:100%!important;min-height:54px!important;font-size:16px!important;border-radius:18px!important}
  .chat-form.chat-sendbar .sticker-button{width:48px!important;height:44px!important;min-width:48px!important}
  .reply-preview,.chosen-files-preview{width:100%!important;max-width:100%!important;min-width:0!important;grid-column:1/-1!important;box-sizing:border-box!important}
  .private-dialogs-sidebar{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 12px!important;padding:10px!important;border-radius:20px!important;box-sizing:border-box!important;overflow:hidden!important}
  .pm-dialog-search{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.pm-dialog-search input,.pm-dialog-search .btn{width:100%!important;height:44px!important}
  .pm-dialog-list{display:grid!important;gap:8px!important;max-height:220px!important;overflow:auto!important;padding-right:2px!important}.chat-side-user{min-width:0!important;min-height:62px!important;padding:8px!important;border-radius:16px!important}.chat-side-user span:not(.avatar){min-width:0!important}.chat-side-user b,.chat-side-user small{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .pm-head{display:grid!important;gap:4px!important;padding:2px 0 10px!important}.pm-head h1{font-size:24px!important;line-height:1.15!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.pm-head small{font-size:13px!important;color:#c8bbcb!important}
  .quick-left-menu{left:8px!important;bottom:58px!important;transform:scale(.82)!important;transform-origin:left bottom!important;z-index:9990!important}
}

@media(max-width:760px){
  .chat-tabs{padding:4px!important;gap:4px!important;margin:8px auto 12px!important;border-radius:14px!important}
  .chat-tab{min-height:36px!important;height:36px!important;padding:0 14px!important;font-size:14px!important;border-radius:10px!important;line-height:36px!important}
  body .chat-main .chat-scroll-area .msg-head,
  body .chat-main .chat-scroll-area .pm-headline{flex-wrap:wrap!important;row-gap:4px!important}
  body .chat-main .chat-scroll-area .msg-head > b,
  body .chat-main .chat-scroll-area .pm-headline > b,
  body .chat-main .chat-scroll-area .msg-authorline{max-width:100%!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important;word-break:break-word!important;flex:1 1 100%!important}
  body .chat-main .chat-scroll-area .msg-head a,
  body .chat-main .chat-scroll-area .msg-head .nick-text,
  body .chat-main .chat-scroll-area .pm-headline a,
  body .chat-main .chat-scroll-area .pm-headline .nick-text{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;max-width:100%!important}
  body .chat-main .chat-scroll-area > .chat-msg.mine > .bubble,
  body .chat-main .chat-scroll-area > .pm-msg.mine > .bubble{max-width:calc(100% - 46px)!important}
}
