.profile-side-menu li.pm-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pm-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0086AB;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.pm-account-row,
.pm-account-nav,
.pm-account-main,
.pm-page,
.pm-inbox {
  max-width: 100%;
  box-sizing: border-box;
}
.pm-page {
  width: 100%;
  min-width: 0;
}
.pm-inbox {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}
.pm-list,
.pm-thread {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 230px);
  height: calc(100dvh - 230px);
  min-height: 380px;
  max-height: 720px;
}
.pm-list-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.pm-thread-header,
.pm-thread-composer {
  flex: 0 0 auto;
}
.pm-list-header,
.pm-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pm-list-header {
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f4;
}
.pm-list-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.pm-list-icon {
  color: #9aa3af;
}
.pm-conv {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
  color: inherit;
}
.pm-conv:hover {
  background: #f8fafb;
  text-decoration: none;
}
.pm-conv.is-unread .pm-conv-name {
  font-weight: 600;
}
.pm-conv-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: visible;
}
.pm-conv-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pm-active-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #fff;
}
.pm-active-dot.is-on {
  background: #22c55e;
}
.pm-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.pm-conv-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1b3a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.pm-profile-list {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.pm-conv-main {
  min-width: 0;
  flex: 1;
}
.pm-conv-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-conv-preview {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #9aa3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-conv-time {
  color: #9aa3af;
  font-size: 12px;
  white-space: nowrap;
}
.pm-empty {
  margin: 0;
  padding: 40px 22px;
  text-align: center;
  color: #9aa3af;
}
.pm-thread-header {
  background: #0086AB;
  color: #fff;
  padding: 14px 18px;
  min-width: 0;
}
.pm-thread-back {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-thread-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-thread-translate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2aa3c7;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pm-lang-wrap {
  position: relative;
  flex: 0 0 auto;
}
.pm-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
}
.pm-lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: #111827;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.pm-lang-menu button:hover,
.pm-lang-menu button.is-selected {
  background: #f3f4f6;
  color: #0086AB;
}
.pm-thread-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 20px 10px;
  -webkit-overflow-scrolling: touch;
}
.pm-bubble-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  max-width: 78%;
}
.pm-bubble-row.is-in {
  align-items: flex-start;
}
.pm-bubble-row.is-out {
  margin-left: auto;
  align-items: flex-end;
}
.pm-bubble {
  border-radius: 22px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pm-bubble-row.is-in .pm-bubble {
  background: #f3f4f6;
  color: #111827;
}
.pm-bubble-row.is-out .pm-bubble {
  background: #0086AB;
  color: #fff;
}
.pm-bubble-meta {
  margin-top: 6px;
  color: #9aa3af;
  font-size: 12px;
}
.pm-bubble-translate {
  background: none;
  border: 0;
  color: #0086AB;
  font-size: 12px;
  font-weight: 600;
  padding: 0 0 0 8px;
  cursor: pointer;
}
.pm-thread-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 18px;
  min-width: 0;
}
.pm-thread-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
}
.pm-thread-send {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: #0086AB;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#PostMessages.pm-inline {
  display: block;
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  background: none;
  z-index: 1;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}
#PostMessages.pm-inline.show {
  display: block;
}
#PostMessages.pm-inline .edit-modal-content,
#PostMessages.pm-inline .pm-dialog {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: none;
  box-shadow: none;
}
#PostMessages {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 999999;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 16px 40px;
  box-sizing: border-box;
}
#PostMessages.show {
  display: flex;
}
#PostMessages .edit-modal-content,
#PostMessages .pm-dialog {
  margin: 0 auto;
  width: 760px;
  max-width: 96%;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
#PostMessages .pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0086AB;
  padding: 18px 22px;
  border-bottom: none;
}
#PostMessages .pm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#PostMessages .pm-back {
  background: transparent;
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#PostMessages .pm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2aa3c7;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}
#PostMessages .pm-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#PostMessages .pm-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2aa3c7;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#PostMessages .pm-body {
  background: #fff;
  padding: 0 28px 24px;
}
#PostMessages .pm-hint {
  margin: 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9aa3af;
  font-size: 15px;
  line-height: 1.5;
}
#PostMessages .pm-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  color: #6b7280;
  background: #fff;
  padding: 18px 16px;
  margin: 0 0 16px;
}
#PostMessages .pm-textarea:focus {
  border-color: #0086AB;
}
#PostMessages .pm-textarea::placeholder {
  color: #c4c9d1;
}
#PostMessages .pm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#PostMessages .pm-translate-wrap {
  position: relative;
  flex: 0 0 auto;
}
#PostMessages .pm-translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0086AB;
  border: 1px solid #0086AB;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#PostMessages .pm-translate-btn:disabled {
  color: #9aa8b3;
  border-color: #dbe3ea;
  background: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}
#PostMessages .pm-compose-lang-menu {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 6px);
}
#PostMessages .pm-submit-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
#PostMessages .pm-cancel-btn {
  background: #fff;
  color: #5b6773;
  border: 1px solid #d5dce3;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#PostMessages .pm-cancel-btn:hover {
  background: #f5f7f9;
  border-color: #c5ced6;
  color: #374151;
}
#PostMessages .pm-send-btn {
  background: #0086AB;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#PostMessages .pm-send-btn:hover {
  background: #0091e6;
}
#PostMessages .pm-powered {
  margin: 10px 0 0;
  color: #b8c0c8;
  font-size: 11px;
}
#PostMessages.is-success .pm-dialog {
  width: 420px;
}
#PostMessages.is-success .pm-back,
#PostMessages.is-success .pm-lang-pill {
  display: none;
}
#PostMessages.is-success .pm-header {
  justify-content: flex-start;
  padding: 16px 22px;
}
#PostMessages .pm-success {
  padding: 36px 28px 28px;
  text-align: center;
}
#PostMessages .pm-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #e8f6fb;
  color: #0086AB;
  display: flex;
  align-items: center;
  justify-content: center;
}
#PostMessages .pm-success-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
#PostMessages .pm-success-text {
  margin: 0 0 22px;
  color: #9aa3af;
  font-size: 14px;
  line-height: 1.5;
}
#PostMessages .pm-success-divider {
  height: 1px;
  background: #eef1f4;
  margin: 0 0 20px;
}
#PostMessages .pm-success-primary,
#PostMessages .pm-success-secondary {
  display: block;
  width: 100%;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
#PostMessages .pm-success-primary {
  background: #0086AB;
  color: #fff;
  border: 0;
  margin-bottom: 12px;
}
#PostMessages .pm-success-primary:hover {
  background: #0091e6;
}
#PostMessages .pm-success-secondary {
  background: #fff;
  color: #0086AB;
  border: 1px solid #0086AB;
}
@media (max-width: 1199px) {
  .pm-list,
  .pm-thread {
    height: calc(100vh - 260px);
    height: calc(100dvh - 260px);
  }
}
@media (max-width: 991px) {
  .pm-account-row {
    margin-left: 0;
    margin-right: 0;
  }
  .pm-account-nav,
  .pm-account-main {
    padding-left: 0;
    padding-right: 0;
    float: none;
    width: 100%;
  }
  .pm-account-nav {
    margin-bottom: 16px;
  }
  .pm-list,
  .pm-thread {
    height: calc(100vh - 280px);
    height: calc(100dvh - 280px);
    max-height: none;
  }
}
@media (max-width: 767px) {
  .pm-list,
  .pm-thread {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .pm-inbox {
    border-radius: 12px;
  }
  .pm-list-header {
    padding: 14px 14px;
  }
  .pm-list-header h2 {
    font-size: 20px;
  }
  .pm-conv {
    gap: 10px;
    padding: 12px 14px;
  }
  .pm-conv-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .pm-thread-header {
    gap: 8px;
    padding: 10px 10px;
  }
  .pm-thread-name {
    font-size: 15px;
  }
  .pm-lang-label {
    display: none;
  }
  .pm-thread-translate,
  #PostMessages .pm-lang-pill {
    padding: 7px 10px;
    font-size: 12px;
  }
  .pm-lang-menu {
    right: 0;
    left: auto;
    min-width: 150px;
    max-height: 200px;
  }
  .pm-thread-body {
    padding: 14px 12px 8px;
  }
  .pm-bubble-row {
    max-width: 88%;
  }
  .pm-bubble {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 18px;
  }
  .pm-thread-composer {
    gap: 8px;
    padding: 10px 10px 12px;
  }
  .pm-thread-input {
    padding: 11px 14px;
  }
  .pm-thread-send {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  #PostMessages {
    padding: 0;
    align-items: stretch;
  }
  #PostMessages .edit-modal-content,
  #PostMessages .pm-dialog {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  #PostMessages .pm-header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 12px;
  }
  #PostMessages .pm-body {
    padding: 0 14px 16px;
  }
  #PostMessages .pm-hint {
    min-height: 90px;
    font-size: 14px;
    padding: 8px 0;
  }
  #PostMessages .pm-textarea {
    min-height: 110px;
    padding: 14px 12px;
  }
  #PostMessages .pm-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #PostMessages .pm-translate-btn,
  #PostMessages .pm-cancel-btn,
  #PostMessages .pm-send-btn {
    justify-content: center;
    width: 100%;
  }
  #PostMessages .pm-submit-wrap {
    width: 100%;
    flex-direction: column-reverse;
  }
  #PostMessages.is-success .pm-dialog {
    width: 100%;
    min-height: auto;
    margin: auto 12px;
    border-radius: 16px;
  }
  #PostMessages .pm-success {
    padding: 28px 16px 20px;
  }
}
@media (max-width: 480px) {
  .pm-list,
  .pm-thread {
    height: calc(100vh - 200px);
    height: calc(100dvh - 200px);
    min-height: 300px;
  }
  .pm-conv-time {
    font-size: 11px;
  }
  .pm-thread-header .pm-conv-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
@media (max-height: 700px) {
  .pm-list,
  .pm-thread {
    min-height: 260px;
    height: calc(100vh - 160px);
    height: calc(100dvh - 160px);
  }
}
