.room-members-button,
.history-room,
.roster-row .text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.room-members-button:hover {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.assistant-presence.absent i {
  background: #a1aba3;
}
.history-room {
  margin: 0 0 13px;
  flex-wrap: wrap;
  line-height: 1.5;
  color: #536f5a;
  font-size: 12px;
}
.history-room i {
  font-style: normal;
  color: #94a394;
}
.dialog .roster-options {
  margin: 9px 0;
  padding: 7px 9px 8px;
}
.roster-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 7px;
  cursor: pointer;
}
.roster-choice:hover,
.roster-choice:focus-within {
  background: #f0f5ec;
}
.roster-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.roster-choice .avatar {
  width: 31px;
  height: 31px;
}
.roster-choice > span:last-child {
  display: grid;
  gap: 2px;
}
.roster-choice strong {
  font-size: 13px;
  font-weight: 590;
}
.roster-choice small,
.roster-row em {
  font-size: 10px;
  color: #6a7a6d;
}
.roster-row em {
  background: #eef3e9;
  padding: 2px 4px;
  border-radius: 4px;
  font-style: normal;
}
.roster-row .text-button {
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 2px;
}
.dialog.history-dialog {
  width: min(640px, calc(100vw - 28px));
  height: min(640px, 88dvh);
  max-height: min(90dvh, 780px);
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e3e6e4;
  background: #fff;
  box-shadow: 0 20px 56px rgba(15, 28, 22, 0.22);
}
.history-dialog[open] {
  display: flex;
  flex-direction: column;
}
.history-dialog .dialog-head {
  position: relative;
  flex: none;
  justify-content: center;
  min-height: 48px;
  padding: 12px 44px;
  border-bottom: 1px solid #f0f1f0;
  background: #fff;
}
.history-dialog .dialog-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: #191919;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-dialog .dialog-head .icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.history-dialog .dialog-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.wx-history-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.wx-search-form {
  flex: none;
  padding: 14px 22px 0;
  background: #fff;
  border-bottom: 1px solid #eceeed;
}
.wx-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid #d5dcd8;
  background: #fff;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.wx-search-bar:focus-within {
  border-color: #07c160;
  box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.12);
}
.wx-search-icon {
  display: inline-flex;
  align-items: center;
  color: #9ba39e;
  flex: none;
}
.wx-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #191919;
}
.wx-search-bar input::placeholder {
  color: #a6aba8;
}
.wx-search-bar input::-webkit-search-cancel-button {
  display: none;
}
.wx-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e8e6;
  color: #555e58;
  flex: none;
}
.wx-search-clear[hidden] {
  display: none;
}
.wx-search-clear:hover {
  background: #d3d8d5;
  color: #191919;
}
.wx-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 14px 4px 12px;
}
.wx-tab {
  position: relative;
  padding: 3px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: #576b95;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.wx-tab:hover {
  color: #3a4f7a;
}
.wx-tab.is-active {
  color: #07c160;
  font-weight: 600;
}
.wx-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: #07c160;
}
.wx-subfilter {
  padding: 10px 2px 12px;
  border-top: 1px solid #f2f3f2;
}
.wx-subfilter[hidden] {
  display: none;
}
.wx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wx-chip {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: #4c5851;
  background: #f3f5f4;
  border: 1px solid transparent;
  cursor: pointer;
}
.wx-chip:hover {
  background: #e9eeeb;
}
.wx-chip.is-active {
  background: #eaf8f0;
  border-color: #07c160;
  color: #06994d;
  font-weight: 600;
}
.wx-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.wx-date-inputs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7c847f;
}
.wx-date-inputs input {
  height: 29px;
  padding: 2px 7px;
  border: 1px solid #d5dcd8;
  border-radius: 6px;
  font-size: 12px;
  color: #2b342f;
  background: #fff;
}
.wx-date-inputs [aria-invalid='true'] {
  border-color: #d9483b;
}
.history-date-error {
  font-size: 12px;
  color: #c23f32;
}
.history-date-error:not(:empty) {
  margin-top: 6px;
}
.history-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.history-range button {
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  color: #56645c;
  background: #f3f5f4;
}
.history-range button:hover {
  background: #e7ece9;
}
.history-range button[aria-pressed='true'] {
  background: #eaf8f0;
  color: #06994d;
  font-weight: 600;
}
.wx-results-meta {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 22px;
  font-size: 11.5px;
  color: #8f9692;
  background: #fafbfa;
  border-bottom: 1px solid #f0f2f1;
}
.wx-clear-all {
  font-size: 12px;
  color: #576b95;
  background: transparent;
  cursor: pointer;
}
.wx-clear-all[hidden] {
  display: none;
}
.wx-clear-all:hover {
  text-decoration: underline;
}
.wx-history-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.wx-hit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid #f2f3f2;
  transition: background 0.14s;
}
.wx-hit:hover {
  background: #f8faf9;
}
.wx-hit-avatar .avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex: none;
}
.wx-hit-avatar .avatar.av-person {
  border-radius: 6px;
}
.wx-hit-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wx-hit-sender {
  font-size: 12.5px;
  color: #939995;
  line-height: 1.3;
}
.wx-hit-text {
  font-size: 14px;
  line-height: 1.55;
  color: #191919;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wx-hit-text.muted {
  color: #909692;
}
.wx-hl {
  background: transparent;
  color: #07c160;
  font-weight: 650;
}
.wx-file-card {
  max-width: 310px;
  background: #f4f5f5;
  border-radius: 8px;
  padding: 11px 13px 9px;
  border: 1px solid #eceeed;
}
.wx-file-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wx-file-card-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wx-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wx-file-meta {
  font-size: 12px;
  color: #979c99;
}
.wx-file-badge {
  width: 38px;
  height: 44px;
  flex: none;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.3px;
  background: #5c728a;
}
.wx-file-badge.doc {
  background: #2b6be6;
  font-size: 17px;
}
.wx-file-badge.sheet {
  background: #1f8a4c;
  font-size: 17px;
}
.wx-file-badge.pdf {
  background: #d9483b;
  font-size: 11px;
}
.wx-file-badge.ppt {
  background: #e06a2b;
  font-size: 17px;
}
.wx-file-badge.report {
  background: #1f6b4b;
  font-size: 11px;
}
.wx-file-card-foot {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #e6e8e7;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8f9692;
}
.wx-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #07c160;
  display: inline-block;
}
.wx-media-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wx-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e6eae7;
  background: #f3f5f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wx-thumb.placeholder {
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  color: #6a7870;
  font-size: 10px;
  text-align: center;
}
.wx-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}
.wx-hit-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  padding-top: 1px;
}
.wx-hit-meta time {
  font-size: 12px;
  color: #a0a5a2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wx-locate-btn {
  font-size: 12.5px;
  color: #576b95;
  background: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}
.wx-locate-btn:hover {
  background: #edf2fa;
  color: #364f82;
}
@media (max-width: 600px) {
  .dialog.history-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .wx-search-form {
    padding: 10px 14px 0;
  }
  .wx-filter-tabs {
    gap: 6px 14px;
    padding: 11px 2px 10px;
  }
  .wx-hit {
    padding: 12px 14px;
    gap: 10px;
  }
  .wx-results-meta {
    padding: 6px 14px;
  }
  .room-tabs > div {
    gap: 12px;
  }
  .room-tabs .tab {
    white-space: nowrap;
  }
}
@media (pointer: coarse) and (max-width: 600px) {
  .wx-search-bar input,
  .wx-date-inputs input {
    font-size: 16px;
  }
  .roster-choice {
    min-height: 48px;
  }
}

/* Quick Scroll-to-Latest Floating Button */
.timeline-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.scroll-bottom-btn {
  position: absolute;
  right: 22px;
  bottom: 16px;
  z-index: 22;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #214e39;
  border: 1px solid #cde0d1;
  box-shadow: 0 8px 24px rgba(17, 46, 33, 0.16);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.scroll-bottom-btn[hidden] {
  display: none;
}
.scroll-bottom-btn:hover {
  background: #f0f7f1;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(17, 46, 33, 0.2);
}
.scroll-bottom-btn.has-new {
  background: #07c160;
  color: #fff;
  border-color: #07c160;
}
.scroll-bottom-btn.has-new:hover {
  background: #06ad56;
}
.scroll-bottom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.scroll-bottom-badge[hidden] {
  display: none;
}

/* Conversation Pin Button & Context Menu */
.conversation-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 9px;
  margin: 1px 0;
}
.conversation-item:hover {
  background: #f5f7f3;
}
.conversation-item.selected {
  background: #e9f1e6;
}
.conversation-item .conversation {
  margin: 0;
  background: transparent;
  padding-right: 34px;
}
.conversation-item .conversation:hover,
.conversation-item .conversation.selected {
  background: transparent;
}
.conv-pin-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #829486;
  background: transparent;
  opacity: 0;
  transition: opacity 0.14s, background 0.14s, color 0.14s;
  z-index: 2;
}
.conversation-item:hover .conv-pin-btn,
.conversation-item:focus-within .conv-pin-btn,
.conv-pin-btn.is-pinned {
  opacity: 1;
}
.conv-pin-btn:hover {
  background: #e1ece0;
  color: #21573b;
}
.conv-pin-btn.is-pinned {
  color: #2c6e49;
}
.conv-pin-btn.is-pinned svg {
  transform: rotate(30deg);
}
.room-actions .icon-btn.is-active-pin {
  background: #e6f2e8;
  color: #1f6b45;
}
.room-actions .icon-btn.is-active-pin svg {
  transform: rotate(30deg);
}
.assistant-presence-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 560;
  color: #285d40;
  background: #ebf5ed;
  border: 1px solid #cfe4d3;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.assistant-presence-btn:hover {
  background: #dff0e3;
  border-color: #b4d5bb;
}
.assistant-presence-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #07c160;
}
.assistant-presence-btn.is-mention-only {
  color: #627367;
  background: #f3f5f2;
  border-color: #dde3dd;
}
.assistant-presence-btn.is-mention-only i {
  background: #9aa79d;
}
.conv-context-menu {
  position: fixed;
  z-index: 90;
  min-width: 188px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7e0d8;
  box-shadow: 0 12px 32px rgba(17, 42, 31, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conv-context-menu[hidden] {
  display: none;
}
.conv-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #213429;
  text-align: left;
}
.conv-context-menu button:hover {
  background: #eef5ee;
  color: #164f33;
}
.group-global-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f1f8f3;
  border: 1px solid #cce3d2;
}
.group-global-banner strong {
  display: block;
  font-size: 14px;
  color: #18442f;
}
.group-global-banner small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #546d5e;
  line-height: 1.5;
}
.group-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.btn.small.is-pinned-btn {
  background: #e6f2e8;
  border-color: #b7d7be;
  color: #1f6b45;
}

/* Direct @ Mention Member Picker & Live Voice-to-Text Recognition */
.composer {
  position: relative;
}
.mention-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(310px, calc(100vw - 32px));
  max-height: 256px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cddacd;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 48, 36, 0.16);
  padding: 6px;
}
.mention-popover[hidden] {
  display: none;
}
.mention-popover-head {
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #63796a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebf0ea;
  margin-bottom: 4px;
}
.mention-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s;
}
.mention-option:hover,
.mention-option.is-active {
  background: #eaf3e7;
}
.mention-option .avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}
.mention-option-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.mention-option-copy strong {
  font-size: 13px;
  font-weight: 610;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mention-option-copy small {
  font-size: 11px;
  color: #657b6c;
}
.mention-option-handle {
  font-size: 11px;
  font-weight: 600;
  color: #2b6647;
  background: #e4f1e6;
  padding: 2px 6px;
  border-radius: 999px;
  flex: none;
}
.mention-empty {
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  color: #77877c;
}

.voice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: #eef6ed;
  border: 1px solid #c9dec8;
  font-size: 12px;
  color: #204d37;
}
.voice-bar[hidden] {
  display: none;
}
.voice-bar.is-error {
  background: #fdf2ef;
  border-color: #efc3b8;
  color: #9e3121;
}
.voice-bar.is-error .voice-live-dot {
  background: #c74736;
  animation: none;
}
.voice-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d94638;
  flex: none;
  animation: voicePulse 1.2s ease-in-out infinite;
}
@keyframes voicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 70, 56, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 70, 56, 0);
  }
}
.voice-bar-status {
  font-weight: 620;
  white-space: nowrap;
}
.voice-bar-timer {
  font-variant-numeric: tabular-nums;
  color: #4f6c5a;
  font-size: 11.5px;
}
.voice-bar-interim {
  flex: 1;
  min-width: 80px;
  color: #4f6b5a;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-lang-select {
  border: 1px solid #c4d7c4;
  border-radius: 6px;
  background: #fff;
  color: #2a4a39;
  font-size: 11.5px;
  padding: 2px 6px;
  min-height: 26px;
}
.voice-stop-btn {
  min-height: 26px;
  padding: 0 8px;
  background: #fff;
  border-color: #dfbab3;
  color: #a63425;
}
.voice-stop-btn:hover:not(:disabled) {
  background: #fcebe8;
  border-color: #d6988d;
}
.composer-tools .icon-btn.is-listening {
  background: #fdeae7;
  color: #be3323;
  box-shadow: 0 0 0 2px rgba(217, 70, 56, 0.22);
}
.msg-delivered {
  font-size: 10px;
  color: #497d56;
  background: #e7f3e7;
  padding: 0 5px;
  border-radius: 4px;
  line-height: 15px;
}

/* ==========================================================================
 * 聊天窗口：清空聊天记录 + 多选消息删除
 * ========================================================================== */
.room-actions .icon-btn.is-active-select {
  background: #dff1e4;
  color: #166534;
  border-color: #a9d4b6;
}
.room-actions .icon-btn.danger-hover:hover:not(:disabled) {
  background: #fdecec;
  color: #b91c1c;
}
.room-actions .icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.conv-context-menu button.is-danger {
  color: #b42318;
}
.conv-context-menu button.is-danger:hover {
  background: #fef1f0;
  color: #991b1b;
}
.choice-row.danger-row {
  color: #b42318;
  border-color: #f3d0cc;
  background: #fff9f8;
}
.choice-row.danger-row:hover:not(:disabled) {
  background: #fef0ee;
  border-color: #e6aba4;
}
.choice-row.danger-row:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* 消息悬浮快捷操作栏（引用 / 多选 / 删除） */
.msg-hover-actions {
  position: absolute;
  top: 20px;
  left: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d9e2d8;
  box-shadow: 0 3px 10px rgba(24, 59, 50, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 6;
}
.mine .msg-hover-actions {
  left: auto;
  right: calc(100% + 6px);
}
@media (min-width: 761px) {
  .message.from-bot .msg-content:has(.yy-reply-card, .yy-act-panel, .yy-approval-card, .yy-thinking-card, .report-card) > .msg-hover-actions {
    top: -4px;
    left: auto;
    right: 0;
  }
}
.message:hover .msg-hover-actions,
.message:focus-within .msg-hover-actions {
  opacity: 1;
  pointer-events: auto;
}
.msg-hover-actions .quote-action,
.msg-hover-actions .msg-act-btn {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  opacity: 1;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #54715d;
  transition: background 0.12s ease, color 0.12s ease;
}
.msg-hover-actions .msg-act-btn:hover {
  background: #eaf2ea;
  color: #1c5b3b;
}
.msg-hover-actions .msg-act-btn.is-danger:hover {
  background: #fdecec;
  color: #b91c1c;
}

/* 多选消息模式 */
.timeline.is-select-mode .message.is-selectable {
  position: relative;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: -10px;
  margin-right: -10px;
  border-radius: 12px;
  transition: background 0.12s ease;
}
.timeline.is-select-mode .message.is-selectable:hover {
  background: rgba(24, 92, 60, 0.05);
}
.timeline.is-select-mode .message.is-selected {
  background: rgba(22, 128, 72, 0.1);
}
.msg-select-box {
  flex: none;
  align-self: flex-start;
  margin-top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #9eb1a3;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
  order: -1;
}
.mine .msg-select-box {
  order: 99;
}
.msg-select-box:hover {
  border-color: #1f7a4c;
}
.msg-select-box.is-checked {
  background: #1f7a4c;
  border-color: #1f7a4c;
  color: #fff;
}

/* 底部多选操作栏 */
.chat-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f5f9f5;
  border: 1px solid #cfe0d2;
  box-shadow: 0 2px 10px rgba(24, 59, 50, 0.06);
}
.chat-select-left,
.chat-select-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-select-count {
  font-size: 13px;
  color: #465d4f;
}
.chat-select-count strong {
  color: #165e3b;
  font-variant-numeric: tabular-nums;
}
.chat-select-expand {
  font-size: 12px;
  color: #1d6b44;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e5f2e8;
}
.chat-select-expand:hover {
  background: #d5eadb;
}
.chat-select-bar .btn.small.is-active-all {
  background: #dff1e4;
  border-color: #a9d4b6;
  color: #155c37;
}
.btn.danger {
  background: #d93829;
  border-color: #c72d1f;
  color: #fff;
}
.btn.danger:hover:not(:disabled) {
  background: #be2a1c;
  border-color: #a62216;
}
.btn.danger:disabled {
  background: #e5b7b3;
  border-color: #deb0ac;
  color: #fff;
  cursor: not-allowed;
}

/* 删除 / 清空确认弹窗预览 */
.confirm-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #1d2c24;
}
.confirm-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #65766b;
}
.confirm-delete-preview {
  list-style: none;
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f6f8f5;
  border: 1px solid #e1e8e0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.confirm-delete-preview li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #324339;
}
.confirm-delete-preview li strong {
  flex: none;
  color: #1a4d34;
}
.confirm-delete-preview li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.confirm-delete-preview li.more-note {
  color: #6a7d70;
  font-style: italic;
}

@media (max-width: 760px) {
  .msg-hover-actions {
    position: static;
    opacity: 1;
    pointer-events: auto;
    margin-top: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }
  .chat-select-bar {
    padding: 10px 12px;
  }
  .chat-select-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
