#pm-center-root {
  display: flex;
  height: 80vh;
  min-height: 520px;
  margin: 22px auto;
  border: 1px solid #000;
  background: #e0e0e0;
  font-size: 13px;
}
#pm-sidebar {
  width: 210px;
  background: #e0e0e0;
  color: #000;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pm-sidebar-header {
  font-size: 13px;
  font-weight: bold;
  background: #e0e0e0;
  padding: 7px 8px;
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#pm-compose-btn {
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 17px;
  cursor: pointer;
}
#pm-thread-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0;
}
.pm-thread-list-item {
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border-bottom: 1px solid #000;
  cursor: pointer;
  font-size: 13px;
  background: #e0e0e0;
  transition: background .08s;
}
.pm-thread-list-item.selected, .pm-thread-list-item:hover {
  background: #f3f3f3;
}
.pm-thread-avatar {
  width: 22px;
  height: 22px;
  border-radius: 0;
  margin-right: 7px;
  object-fit: cover;
  border: 1px solid #000;
  background: #ececec;
}
.pm-thread-info {
  flex: 1 1 auto;
}
.pm-thread-title {
  font-weight: bold;
  font-size: 13px;
  color: #000;
}
.pm-thread-participants {
  font-size: 11px;
  color: #222;
}
.pm-unread-badge {
  background: #e0e0e0;
  color: #c00;
  font-weight: bold;
  border: 1px solid #c00;
  border-radius: 8px;
  padding: 1px 5px;
  margin-left: 5px;
  font-size: 11px;
}
#pm-main-area {
  flex: 1 1 auto;
  background: #e0e0e0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
#pm-main-loader {
  position: absolute;
  top: 40%;
  left: 46%;
  font-size: 15px;
  color: #000;
  z-index: 10;
}
#pm-main-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0;
}
.pm-placeholder {
  color: #333;
  font-size: 14px;
  text-align: center;
  margin-top: 50px;
  background: #e0e0e0;
  border: none;
}
#pm-overlay-root {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  pointer-events: none;
}

/* --- PM Thread Minimalist Layout --- */
.pm-thread-minimal-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #e0e0e0;
  font-size: 13px;
}
.pm-thread-topbar {
  border-bottom: 1px solid #000;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e0e0e0;
}
.pm-thread-title-minimal {
  font-weight: bold;
  font-size: 14px;
  flex: 1 1 auto;
}
.pm-participants-pop-btn,
.pm-thread-rename-btn-minimal {
  background: #e0e0e0;
  border: 1px solid #000;
  color: #000;
  font-size: 12px;
  padding: 2px 7px;
  cursor: pointer;
  border-radius: 0;
  margin-left: 8px;
}
.pm-send-form-minimal {
  padding: 2px 10px 2px 10px;
  border-bottom: 1px solid #000;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-send-input-minimal {
  flex: 1 1 auto;
  font-size: 13px;
  border: 1px solid #000;
  border-radius: 0;
  padding: 5px 6px;
  resize: vertical;
  min-height: 30px;
  max-height: 90px;
  background: #e0e0e0;
}
.pm-send-btn-minimal {
  background: #e0e0e0;
  color: #000;
  border: 1px solid #000;
  font-size: 13px;
  padding: 4px 20px;
  cursor: pointer;
  border-radius: 0;
}
.pm-char-count {
  font-size: 11px;
  color: #888;
  margin-left: 5px;
}
.pm-message-table-minimal {
  width: 100%;
  border-collapse: collapse;
}
.pm-message-row-minimal {
  border-bottom: 1px solid #000;
}
.pm-message-usercell-minimal {
  width: 120px;
  min-width: 90px;
  max-width: 150px;
  background: #e0e0e0;
  border-right: 1px solid #000;
  text-align: center;
  vertical-align: top;
  padding: 9px 3px 9px 3px;
}
.pm-message-avatar-block {
  margin: 0 auto 2px auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-message-avatar-img {
  border: 1px solid #000;
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: #e0e0e0;
}
.pm-message-username {
  font-size: 13px;
  font-weight: bold;
  margin-top: 2px;
}
.pm-message-time-minimal {
  font-size: 11px;
  color: #888;
  margin-bottom: 3px;
}
.pm-message-actions {
  margin-top: 5px;
  margin-bottom: 2px;
}
.pm-message-actions button {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
}
.pm-message-actions img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.pm-message-bodycell-minimal {
  vertical-align: top;
  padding: 9px 11px;
  background: #fff;
  border-bottom: 1px solid #000;
  font-size: 13px;
}
.pm-message-system-minimal {
  background: #f6f6f6;
  color: #555;
}
.pm-message-system-label-minimal {
  font-weight: bold;
  color: #777;
  text-align: center;
  font-size: 13px;
  margin: 8px 0;
}

/* Participants Popup */
.pm-participants-popup {
  background: #e0e0e0;
  border: 1px solid #000;
  z-index: 99999;
  position: fixed;
  min-width: 220px;
  max-width: 99vw;
  box-shadow: 0 4px 20px #0002;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}
.pm-participants-header {
  border-bottom: 1px solid #000;
  font-weight: bold;
  padding: 8px 13px;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pm-participants-close {
  background: #e0e0e0;
  border: 1px solid #000;
  font-size: 15px;
  border-radius: 0;
  cursor: pointer;
  padding: 0 7px;
  margin-left: 18px;
}
.pm-participants-list {
  list-style: none;
  padding: 9px 14px;
  margin: 0;
}
.pm-participants-list li {
  margin-bottom: 5px;
  font-size: 13px;
}
.pm-participants-creator {
  color: #007;
  font-size: 11px;
  font-style: italic;
  margin-left: 2px;
}
.pm-participants-remove {
  background: #e0e0e0;
  border: 1px solid #c00;
  color: #c00;
  font-size: 11px;
  padding: 1px 7px;
  margin-left: 10px;
  border-radius: 0;
  cursor: pointer;
}
.pm-participants-left {
  color: #c00;
  font-size: 11px;
  margin-left: 5px;
}

/* Compose Minimalist */
.pm-compose-minimal {
  max-width: 430px;
  margin: 18px auto 0 auto;
  background: #e0e0e0;
  border: 1px solid #000;
  padding: 12px 18px 8px 18px;
}
.pm-compose-form-minimal {
  width: 100%;
}
.pm-compose-toprow {
  font-weight: bold;
  font-size: 13px;
  border-bottom: 1px solid #000;
  padding-bottom: 7px;
  margin-bottom: 11px;
  text-align: center;
}
.pm-compose-row {
  margin-bottom: 12px;
}
.pm-compose-label {
  display: block;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 2px;
  color: #111;
}
.pm-compose-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: none;
  background: #e0e0e0;
}
.pm-compose-hint {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
}
.pm-compose-char-count {
  font-size: 11px;
  color: #888;
  margin-left: 8px;
}
.pm-compose-actions {
  text-align: left;
  margin-top: 9px;
}
.pm-send-btn-minimal {
  background: #e0e0e0;
  color: #000;
  border: 1px solid #000;
  font-size: 13px;
  padding: 4px 22px;
  border-radius: 0;
  cursor: pointer;
}
.pm-cancel-btn-minimal {
  background: #e0e0e0;
  color: #000;
  border: 1px solid #000;
  font-size: 13px;
  padding: 4px 19px;
  border-radius: 0;
  margin-left: 10px;
  cursor: pointer;
}
.pm-compose-error {
  color: #c00;
  font-size: 12px;
  margin: 7px 0 0 2px;
  display: none;
}