.messages {
  position: relative;
}
.messages > header {
  height: 78px;
  min-height: 78px;
  padding: 10px 16px;
  gap: 16px;
  overflow: hidden;
}
.messages > header .chat-contact {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.messages > header .chat-number-line {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.chat-number-line > b {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.messages > header .chat-contact > small {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.messages > header #seatOwner {
  display: inline;
  color: #42546b;
  font-weight: 750;
}
.messages > header #intervene {
  flex: 0 0 auto;
}
.messages.search-empty > * {
  visibility: hidden;
}
.messages.search-empty::after {
  content: '没有匹配的会话，请调整或清空搜索条件';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  visibility: visible;
  z-index: 2;
}
.copy-phone-button {
  height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: row !important;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #c8d6e7;
  border-radius: 7px;
  background: #f5f8fc;
  color: #41668f;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.16s;
}
.copy-phone-button:hover {
  border-color: #8ca9c8;
  background: #edf4fb;
  color: #244f7d;
}
.copy-phone-button.copied {
  border-color: #9ccdbb;
  background: #eaf7f2;
  color: #17775a;
}
.conversation {
  position: relative;
  cursor: pointer;
}
.conversation > span {
  padding-right: 28px;
}
.conversation-copy {
  position: absolute;
  right: 38px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #d4deea;
  border-radius: 7px;
  background: #fff;
  color: #58718f;
  font-size: 12px;
  opacity: 0.76;
  transition: 0.16s;
}
.message-body > p {
  position: relative;
  padding-right: 42px !important;
}
.message-content {
  white-space: pre-wrap;
}
.message-copy {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #58718f;
  font-size: 9px;
  font-weight: 750;
  opacity: 0;
  transition: 0.16s;
}
.message-body > p:hover .message-copy,
.message-copy:focus-visible,
.message-copy.copied {
  opacity: 1;
}
.conversation:hover .conversation-copy,
.conversation-copy:focus-visible {
  opacity: 1;
  border-color: #92aac4;
  background: #f4f8fc;
  color: #315c89;
  outline: none;
}
.conversation-copy.copied {
  opacity: 1;
  border-color: #95c8b5;
  background: #eaf7f2;
  color: #147659;
}
.conversation:focus-visible {
  outline: 2px solid #6d91bc;
  outline-offset: -2px;
}
.conversation .badge {
  margin-right: 30px;
}
body.theme-dark .messages > header #seatOwner {
  color: #dbe8f7;
}
body.theme-dark .copy-phone-button {
  border-color: #40546c;
  background: #1c2a3b;
  color: #bdd0e6;
}
body.theme-dark .copy-phone-button:hover {
  border-color: #6482a3;
  background: #24364a;
  color: #edf6ff;
}
body.theme-dark .messages.search-empty::after {
  background: #111820;
  color: #9eacbc;
}
@media (max-width: 720px) {
  .messages > header {
    height: 74px;
    min-height: 74px;
    padding: 8px 12px;
  }
  .messages > header .chat-contact > small {
    max-width: calc(100vw - 260px);
  }
}
@media (max-width: 480px) {
  .messages > header #intervene {
    padding: 8px 10px;
  }
  .messages > header .chat-contact > small {
    max-width: 48vw;
  }
  .copy-phone-button {
    padding: 0 7px;
  }
  .copy-phone-button span {
    display: none !important;
  }
}
body.theme-dark .copy-phone-button,
body.theme-dark .conversation-copy {
  background: #1d242e;
  border-color: #35404e;
  color: #bdcad9;
}
body.theme-dark .copy-phone-button:hover,
body.theme-dark .conversation-copy:hover {
  background: #253244;
  border-color: #57708e;
  color: #fff;
}
body.theme-dark .copy-phone-button.copied,
body.theme-dark .conversation-copy.copied {
  background: #173228;
  border-color: #356b57;
  color: #8ed6ba;
}
@media (max-width: 720px) {
  .copy-phone-button span {
    display: none;
  }
  .copy-phone-button {
    width: 30px;
    justify-content: center;
    padding: 0;
  }
}
