/* 只保留一层卡片：插件自己不再套第二层背景/边框 */
.zib-chat {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 14px 16px 12px;
  border: 1px solid var(--main-border-color, #e8e8e8);
  border-radius: 12px;
  background: var(--main-bg-color, #fff);
  box-sizing: border-box;
}

/* 放在子比弹窗里时：让弹窗本身让位，只留我们这一层卡片，并把弹窗铺满视口 */
/* 用 JS 在 .modal-dialog 上加 zib-chat-modal-dialog 类，不依赖 :has() 支持，!important 压过主题内联宽度 */
.zib-chat-modal-dialog {
  width: 94vw !important;
  max-width: 94vw !important;
  margin: 2vh auto !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
}

.zib-chat-modal-dialog .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.zib-chat-modal-dialog .modal-header,
.zib-chat-modal-dialog .modal-footer {
  border: none;
}

.zib-chat-modal-dialog .modal-body {
  padding: 8px 12px 12px;
}

.modal:has(.zib-chat) .modal-dialog {
  max-width: 96vw;
  width: 96vw;
  margin: 2vh auto;
}

.zib-chat [hidden] {
  display: none !important;
}

.zib-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.zib-chat-header h3 {
  margin: 0;
  font-size: 18px;
}

.zib-chat-messages {
  border: none;
  padding: 0 2px;
  /* 高度由后台「聊天框高度」控制：--zib-chat-height */
  height: var(--zib-chat-height, 520px);
  min-height: 260px;
  overflow-y: auto;
  background: transparent;
  /* 手机：列表内滚动到头不要再带着整页滚；iOS 用惯性滚动 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.zib-chat-messages.is-disabled {
  background: #f7f7f7;
  opacity: 0.7;
}

.zib-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
}

.zib-chat-message.is-self {
  flex-direction: row-reverse;
}

.zib-chat-avatar {
  width: 36px;
  flex: 0 0 36px;
}

.zib-chat-avatar-img {
  border-radius: 6px;
  width: 36px;
  height: 36px;
}

.zib-chat-bubble {
  max-width: 70%;
  background: var(--body-bg-color, #f5f6f8);
  border-radius: 10px;
  padding: 7px 11px 8px;
  position: relative;
}

.zib-chat-message .zib-chat-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid var(--body-bg-color, #f5f6f8);
}

.zib-chat-message.is-self .zib-chat-bubble {
  background: #95ec69;
}

.zib-chat-message.is-retracted .zib-chat-content {
  color: #888;
  font-style: italic;
}

/* 聊天里的图片 / 视频
   之前用 min(var(...), 100%) 当 max-width：在"宽度靠内容撑开"的气泡里会造成
   循环依赖 —— 浏览器先按原图宽度把气泡撑大，再把图缩到 200px，
   于是气泡里留一大片空白（那块空白还是可点的链接）→ 就是"点绿色部分跳新标签页"。
   现在改成：外层 span 用固定 px 上限收口，图片自己 100% 填充，不会再循环。 */
.zib-chat-imglink {
  display: inline-block;
  line-height: 0;
  max-width: var(--zib-chat-img-size, 200px);
  vertical-align: top;
}

.zib-chat-img {
  display: block;
  max-width: 100% !important;
  max-height: var(--zib-chat-img-size, 200px) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 8px;
  cursor: zoom-in;
  /* 加载中/加载失败时给个中性的底，别在暗色主题里变成一块黑 */
  background: rgba(127, 127, 127, 0.12);
}

.zib-chat-img.is-broken {
  min-width: 90px;
  min-height: 60px;
  border: 1px dashed rgba(127, 127, 127, 0.5);
  color: #999;
  font-size: 12px;
  text-align: center;
  line-height: 60px;
  cursor: default;
}

/* 点图片放大（自己实现的灯箱，不依赖主题的图片脚本） */
.zib-chat-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.zib-chat-lightbox[hidden] {
  display: none !important;
}
.zib-chat-lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto !important;
  height: auto !important;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.zib-chat-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}
.zib-chat-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 输入框上方的图片预览（把 [img=地址] 直接显示成缩略图） */
.zib-chat-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px 8px;
}
.zib-chat-preview[hidden] {
  display: none !important;
}
.zib-chat-preview-item {
  position: relative;
  line-height: 0;
}
.zib-chat-preview-item img {
  /* 大小由后台「输入框预览图大小」控制 */
  width: var(--zib-chat-preview-size, 72px) !important;
  height: var(--zib-chat-preview-size, 72px) !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--muted-2-color, #e5e5e5);
  background: var(--muted-bg-color, #eee);
}
.zib-chat-preview-del {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.zib-chat-preview-del:hover {
  background: #d9534f;
}

.zib-chat-video {
  display: block;
  max-width: 320px;
  border-radius: 8px;
}

/* ================= 分享站内内容面板 ================= */
.zib-chat-share {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  max-width: 92%;
  display: flex;
  flex-direction: column;
  background: var(--main-bg-color, #fff);
  border-left: 1px solid var(--main-border-color, #eee);
  border-radius: 0 12px 12px 0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 40;
}

.zib-chat-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--main-border-color, #eee);
  font-weight: 600;
  font-size: 14px;
}

.zib-chat-share-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--muted-2-color, #999);
  cursor: pointer;
}

.zib-chat-share-search {
  padding: 10px 14px;
  border-bottom: 1px solid var(--main-border-color, #f2f2f2);
}

.zib-chat-share-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--main-border-color, #e5e5e5);
  border-radius: 8px;
  outline: none;
  background: var(--body-bg-color, #f7f8fa);
  color: var(--main-color, #333);
  box-sizing: border-box;
}

.zib-chat-share-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 0;
}

.zib-chat-share-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.zib-chat-share-item:hover {
  background: var(--body-bg-color, #f5f6f8);
}

.zib-chat-share-cover {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--muted-bg-color, #eee);
  display: block;
}

.zib-chat-share-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zib-chat-share-info {
  min-width: 0;
  flex: 1 1 auto;
}

.zib-chat-share-title {
  display: block;
  font-size: 13px;
  color: var(--main-color, #333);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zib-chat-share-meta {
  display: block;
  font-size: 11px;
  color: var(--muted-2-color, #999);
  margin-top: 2px;
}

.zib-chat-share-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--main-border-color, #f2f2f2);
  text-align: center;
  font-size: 12px;
  color: var(--muted-2-color, #999);
}

.zib-chat-share-more {
  border: none;
  background: transparent;
  color: var(--focus-color, #2f7dd1);
  cursor: pointer;
  font-size: 12px;
}

/* 消息里的站内内容卡片 */
.zib-chat-postcard {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 300px;
  margin-top: 2px;
  padding: 8px;
  border: 1px solid var(--main-border-color, #eee);
  border-radius: 10px;
  background: var(--main-bg-color, #fff);
  text-decoration: none;
}

.zib-chat-postcard-cover {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--muted-bg-color, #eee);
}

.zib-chat-postcard-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zib-chat-postcard-body {
  min-width: 0;
}

.zib-chat-postcard-title {
  display: block;
  font-size: 13px;
  color: var(--key-color, #222);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zib-chat-postcard-meta {
  display: block;
  font-size: 11px;
  color: var(--muted-2-color, #999);
  margin-top: 2px;
}

.zib-chat-postcard-link {
  display: block;
  font-size: 11px;
  color: var(--focus-color, #2f7dd1);
  margin-top: 3px;
}

.zib-chat-postcard.is-missing {
  display: inline-block;
  font-size: 12px;
  color: var(--muted-2-color, #999);
  border-style: dashed;
}

@media (max-width: 820px) {
  .zib-chat-share {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}

/* 图片下拉框里的「上传图片」按钮不要换行 */
.zib-chat-form .dropdown-image .text-right {
  white-space: nowrap;
}

.zib-chat-retracted-note {
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
  font-weight: 600;
}

.zib-chat-retracted-content {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.5;
}

.zib-chat-system {
  justify-content: center;
  text-align: center;
  margin: 8px 0;
}

.zib-chat-system .zib-chat-system-text {
  display: inline-block;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 4px 10px;
  color: #888;
  font-size: 12px;
}

.zib-chat-message.is-self .zib-chat-bubble::before {
  left: auto;
  right: -6px;
  border-right-color: transparent;
  border-left: 6px solid #95ec69;
}

.zib-chat-meta {
  font-size: 12px;
  color: #8a8a8a;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.zib-chat-message.is-self .zib-chat-meta {
  justify-content: flex-end;
}

.zib-chat-content {
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  word-break: break-word;
}

.zib-chat-content .smilie-icon {
  display: inline-block;
  vertical-align: middle;
  max-width: 32px;
  max-height: 32px;
}

.zib-chat-quote {
  background: #f6f6f6;
  border-left: 3px solid #d0d0d0;
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.zib-chat-quote-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}

.zib-chat-quote-content {
  color: #666;
  line-height: 1.5;
}

.zib-chat-quote[data-quote-id] {
  cursor: pointer;
}

.zib-chat-quote[data-quote-id]:hover {
  background: #f0f0f0;
}

.zib-chat-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

.zib-chat-brand-text {
  margin-right: 6px;
}

.zib-chat-brand-link {
  margin-left: 6px;
  color: #ff5a5f;
  text-decoration: none;
}

.zib-chat-brand-link:hover {
  text-decoration: underline;
}

.zib-chat-mention-tag {
  color: #d9534f;
  font-weight: 600;
}

.zib-chat-form {
  margin-top: 10px;
  background: transparent;
  border-radius: 0;
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid var(--main-border-color, #eee);
}

.zib-chat-form.is-hidden {
  display: none;
}

.zib-chat-form.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.zib-chat-muted {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  color: #c0392b;
}

.zib-chat-muted-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff5a5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.zib-chat-muted-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.zib-chat-muted-desc {
  font-size: 13px;
  color: #8a2d2d;
}
.zib-chat-form textarea {
  width: 100%;
  resize: vertical;
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 0;
  line-height: 1.4;
  height: 86px;
}

.zib-chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  justify-content: space-between;
}

.zib-chat-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zib-chat-tools {
  display: flex;
  align-items: center;
  position: relative;
}

.zib-chat-form .dropup {
  position: relative;
}

.zib-chat-form .dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  display: none;
  z-index: 30;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
}

.zib-chat-form .open > .dropdown-menu {
  display: block;
}

.zib-chat-form .dropdown-smilie {
  overflow-y: auto;
}

.zib-chat-actions button {
  background: #07c160;
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.zib-chat-history {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  justify-content: center;
  position: sticky;
  top: 6px;
  z-index: 5;
}

.zib-chat-load-history {
  border: 1px solid #ff5a5f;
  background: #ff5a5f;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.zib-chat-load-history:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.zib-chat-history-status {
  font-size: 12px;
  color: #888;
}

.zib-chat-divider {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin: 8px 0;
}

.zib-chat-mention-toast {
  position: absolute;
  right: 16px;
  top: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7e6;
  border: 1px solid #ffd08a;
  color: #9c5a00;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 25;
}

.zib-chat-mention-toast button {
  border: none;
  background: #ff9f1a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.zib-chat-mention-toast button:hover {
  background: #e58b0b;
}

.zib-chat-quote-toast {
  position: absolute;
  right: 16px;
  top: 90px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f5ff;
  border: 1px solid #c7dbff;
  color: #274b9f;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 25;
}

.zib-chat-quote-toast button {
  border: none;
  background: #4f7cff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.zib-chat-quote-toast button:hover {
  background: #3a66f0;
}

.zib-chat-newbar {
  position: absolute;
  right: 16px;
  bottom: 130px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f4ff;
  border: 1px solid #b7dcff;
  color: #1b5eaa;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 25;
}

.zib-chat-newbar button {
  border: none;
  background: #2f7dd1;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.zib-chat-newbar button:hover {
  background: #2569b0;
}

.zib-chat-scroll-tools {
  position: absolute;
  right: 16px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 25;
}

.zib-chat-scroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zib-chat-scroll-btn:hover {
  background: #f2f7ff;
}

.zib-chat-scroll-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.zib-chat-message.is-mention-highlight .zib-chat-bubble {
  box-shadow: 0 0 0 2px rgba(255, 159, 26, 0.4);
}

.zib-chat-actions button:hover {
  background: #06ad57;
}

.zib-chat-status,
.zib-chat-admin-status {
  font-size: 12px;
  color: #2c7a7b;
}

.zib-chat-status.is-error,
.zib-chat-admin-status.is-error {
  color: #d9534f;
}

/* 上传排错用的可见调试条：平时隐藏，点过「上传图片」后才出现 */
.zib-chat-upload-debug {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  color: #614700;
  font-size: 12px;
  line-height: 1.6;
  font-family: Consolas, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 160px;
  overflow: auto;
}
.zib-chat-upload-debug[hidden] {
  display: none !important;
}

.zib-chat-admin {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e5e5e5;
}

.zib-chat-closed {
  background: #fff6f6;
  border: 1px solid #f0d8d8;
  color: #c0392b;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.zib-chat-admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.zib-chat-admin-row input {
  min-width: 160px;
}

.zib-chat-mention-box {
  position: fixed;
  left: 16px;
  bottom: 150px;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 10px;
  z-index: 99999;
}

.zib-chat-mention-item.is-active,
.zib-chat-mention-item:hover {
  background: #eef6ff;
}

/* @ 面板的表头 / 关闭 / 在线点 / 状态行 */
.zib-chat-mention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.zib-chat-mention-close {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.zib-chat-mention-close:hover {
  color: #d9534f;
}
.zib-chat-mention-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.zib-chat-mention-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  margin-right: 6px;
  vertical-align: middle;
}
.zib-chat-mention-sub {
  margin-left: 6px;
  font-size: 12px;
  color: #9aa0a6;
}
.zib-chat-mention-status {
  font-size: 12px;
  color: #999;
  padding-top: 4px;
}
.zib-chat-mention-status:empty {
  display: none;
}

.zib-chat-context-menu {
  position: fixed;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 50;
}

.zib-chat-context-menu button,
.zib-chat-context-menu a {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.zib-chat-context-menu button:hover,
.zib-chat-context-menu a:hover {
  background: #f2f7ff;
}

.zib-chat-context-menu button.is-disabled,
.zib-chat-context-menu button:disabled,
.zib-chat-context-menu a.is-disabled {
  color: #999;
  cursor: not-allowed;
  background: transparent;
  pointer-events: none;
}

.zib-chat-mention-head {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.zib-chat-mention-search {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.zib-chat-mention-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zib-chat-mention-item {
  text-align: left;
  background: #f7f7f7;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.zib-chat-mention-item:hover {
  background: #e9f8ef;
}

.zib-chat-mention-empty {
  font-size: 12px;
  color: #999;
  padding: 6px 0;
}

@media (max-width: 640px) {
  .zib-chat {
    padding: 10px 10px 8px;
    border-radius: 10px;
  }

  .zib-chat-messages {
    /* 手机上不超过 70vh，免得聊天框把整个屏幕占满 */
    height: min(var(--zib-chat-height, 520px), 70vh);
    min-height: 200px;
  }

  .zib-chat-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .zib-chat-header h3 {
    font-size: 15px;
  }

  /* 手指点得着的按钮尺寸（主题的 .but 在手机上偏小） */
  .zib-chat-tools .but,
  .zib-chat-actions button,
  .zib-chat-header-right button {
    padding: 6px 9px;
    min-height: 34px;
    line-height: 20px;
  }

  .zib-chat-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .zib-chat-actions-right {
    margin-left: auto;
  }

  .zib-chat-form textarea {
    /* iOS 上字号小于 16px 时，聚焦会自动把整页放大 */
    font-size: 16px;
    height: 78px;
  }

  .zib-chat-bubble {
    max-width: 86%;
  }

  /* 窄屏再收一道：min(设置值, 74vw) 两边都是确定长度，不会像百分比那样把气泡撑开 */
  .zib-chat-imglink {
    max-width: min(var(--zib-chat-img-size, 200px), 74vw);
  }

  .zib-chat-preview-item img {
    /* 窄屏上预览图跟着屏幕缩 */
    width: min(var(--zib-chat-preview-size, 72px), 22vw) !important;
    height: min(var(--zib-chat-preview-size, 72px), 22vw) !important;
  }

  .zib-chat-preview-del {
    width: 24px;
    height: 24px;
    line-height: 22px;
  }

  .zib-chat-mention-box {
    left: 8px;
    bottom: 150px;
    max-width: calc(100vw - 16px);
    max-height: 40vh;
  }

  .zib-chat-lightbox-close {
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    line-height: 38px;
  }

  .zib-chat-lightbox-img {
    max-width: 96vw;
    max-height: 76vh;
  }

  .zib-chat-context-menu {
    min-width: 140px;
  }

  .zib-chat-context-menu button,
  .zib-chat-context-menu a {
    padding: 9px 12px;
  }
}

/* 看大图时别再让页面跟着滚 */
body.zib-chat-lightbox-open {
  overflow: hidden;
}

/* Dark mode support (theme toggles add .dark-theme on body and .dark on html) */
.dark-theme .zib-chat,
.dark .zib-chat {
  background: #1c1f24;
  border-color: #2a2f36;
  color: #e6e6e6;
}

.dark-theme .zib-chat-messages,
.dark .zib-chat-messages {
  background: #171a1f;
  border-color: #2a2f36;
}

.dark-theme .zib-chat-messages.is-disabled,
.dark .zib-chat-messages.is-disabled {
  background: #1b1e24;
}

.dark-theme .zib-chat-header h3,
.dark .zib-chat-header h3 {
  color: #e6e6e6;
}

.dark-theme .zib-chat-bubble,
.dark .zib-chat-bubble {
  background: #242a31;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dark-theme .zib-chat-message .zib-chat-bubble::before,
.dark .zib-chat-message .zib-chat-bubble::before {
  border-right-color: #242a31;
}

.dark-theme .zib-chat-message.is-self .zib-chat-bubble,
.dark .zib-chat-message.is-self .zib-chat-bubble {
  background: #2f7a4b;
}

.dark-theme .zib-chat-message.is-self .zib-chat-bubble::before,
.dark .zib-chat-message.is-self .zib-chat-bubble::before {
  border-left-color: #2f7a4b;
}

.dark-theme .zib-chat-content,
.dark .zib-chat-content {
  color: #e6e6e6;
}

.dark-theme .zib-chat-meta,
.dark .zib-chat-meta {
  color: #a0a7b3;
}

.dark-theme .zib-chat-system .zib-chat-system-text,
.dark .zib-chat-system .zib-chat-system-text {
  background: #22272e;
  color: #9aa3ad;
}

.dark-theme .zib-chat-quote,
.dark .zib-chat-quote {
  background: #1e232a;
  border-left-color: #3a4048;
  color: #b5bcc6;
}

.dark-theme .zib-chat-quote-name,
.dark .zib-chat-quote-name,
.dark-theme .zib-chat-quote-content,
.dark .zib-chat-quote-content {
  color: #b5bcc6;
}

.dark-theme .zib-chat-quote[data-quote-id]:hover,
.dark .zib-chat-quote[data-quote-id]:hover {
  background: #252b33;
}

.dark-theme .zib-chat-form,
.dark .zib-chat-form {
  background: #1c2127;
  border-color: #2a3038;
}

.dark-theme .zib-chat-form textarea,
.dark .zib-chat-form textarea {
  color: #e6e6e6;
}

.dark-theme .zib-chat-form textarea::placeholder,
.dark .zib-chat-form textarea::placeholder {
  color: #8b93a1;
}

.dark-theme .zib-chat-form .dropdown-menu,
.dark .zib-chat-form .dropdown-menu {
  background: #1f242b;
  border-color: #2f3640;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-theme .zib-chat-muted,
.dark .zib-chat-muted {
  background: #2a1f1f;
  border-color: #3a2b2b;
  color: #f3b7b7;
}

.dark-theme .zib-chat-muted-desc,
.dark .zib-chat-muted-desc {
  color: #f0a3a3;
}

.dark-theme .zib-chat-retracted-note,
.dark .zib-chat-retracted-note {
  color: #f0a3a3;
}

.dark-theme .zib-chat-retracted-content,
.dark .zib-chat-retracted-content {
  background: #2a1f1f;
  border-color: #3a2b2b;
  color: #f0a3a3;
}

.dark-theme .zib-chat-footer,
.dark .zib-chat-footer {
  color: #9aa3ad;
}

.dark-theme .zib-chat-brand-link,
.dark .zib-chat-brand-link {
  color: #ff8a8e;
}

.dark-theme .zib-chat-mention-tag,
.dark .zib-chat-mention-tag {
  color: #ff8a8e;
}

.dark-theme .zib-chat-history-status,
.dark .zib-chat-history-status,
.dark-theme .zib-chat-divider,
.dark .zib-chat-divider {
  color: #8b93a1;
}

.dark-theme .zib-chat-mention-toast,
.dark .zib-chat-mention-toast {
  background: #2b2416;
  border-color: #5a3c14;
  color: #ffcf8a;
}

.dark-theme .zib-chat-mention-toast button,
.dark .zib-chat-mention-toast button {
  background: #c67b12;
}

.dark-theme .zib-chat-mention-toast button:hover,
.dark .zib-chat-mention-toast button:hover {
  background: #a9660f;
}

.dark-theme .zib-chat-quote-toast,
.dark .zib-chat-quote-toast {
  background: #1f2636;
  border-color: #334160;
  color: #9bb6ff;
}

.dark-theme .zib-chat-quote-toast button,
.dark .zib-chat-quote-toast button {
  background: #4b6bd6;
}

.dark-theme .zib-chat-quote-toast button:hover,
.dark .zib-chat-quote-toast button:hover {
  background: #3c59c7;
}

.dark-theme .zib-chat-newbar,
.dark .zib-chat-newbar {
  background: #1b2533;
  border-color: #2b4a66;
  color: #8fc4ff;
}

.dark-theme .zib-chat-newbar button,
.dark .zib-chat-newbar button {
  background: #2f7dd1;
}

.dark-theme .zib-chat-newbar button:hover,
.dark .zib-chat-newbar button:hover {
  background: #2569b0;
}

.dark-theme .zib-chat-scroll-btn,
.dark .zib-chat-scroll-btn {
  background: #1f242b;
  border-color: #2f3640;
  color: #e6e6e6;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.dark-theme .zib-chat-scroll-btn:hover,
.dark .zib-chat-scroll-btn:hover {
  background: #273041;
}

.dark-theme .zib-chat-status,
.dark .zib-chat-status,
.dark-theme .zib-chat-admin-status,
.dark .zib-chat-admin-status {
  color: #7fc7c7;
}

.dark-theme .zib-chat-admin,
.dark .zib-chat-admin {
  border-top-color: #2a2f36;
}

.dark-theme .zib-chat-closed,
.dark .zib-chat-closed {
  background: #2a1f1f;
  border-color: #3a2b2b;
  color: #f0a3a3;
}

.dark-theme .zib-chat-mention-box,
.dark .zib-chat-mention-box {
  background: #1f242b;
  border-color: #2f3640;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-theme .zib-chat-context-menu,
.dark .zib-chat-context-menu {
  background: #1f242b;
  border-color: #2f3640;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-theme .zib-chat-context-menu button:hover,
.dark .zib-chat-context-menu button:hover,
.dark-theme .zib-chat-context-menu a:hover,
.dark .zib-chat-context-menu a:hover {
  background: #2a3240;
}

.dark-theme .zib-chat-context-menu button.is-disabled,
.dark .zib-chat-context-menu button.is-disabled,
.dark-theme .zib-chat-context-menu button:disabled,
.dark .zib-chat-context-menu button:disabled,
.dark-theme .zib-chat-context-menu a.is-disabled,
.dark .zib-chat-context-menu a.is-disabled {
  color: #6c7480;
}

.dark-theme .zib-chat-mention-head,
.dark .zib-chat-mention-head {
  color: #b5bcc6;
}

.dark-theme .zib-chat-mention-search,
.dark .zib-chat-mention-search {
  background: #161a20;
  border-color: #2f3640;
  color: #e6e6e6;
}

.dark-theme .zib-chat-mention-item,
.dark .zib-chat-mention-item {
  background: #242a31;
  color: #e6e6e6;
}

.dark-theme .zib-chat-mention-item:hover,
.dark .zib-chat-mention-item:hover {
  background: #20322a;
}

.dark-theme .zib-chat-mention-empty,
.dark .zib-chat-mention-empty {
  color: #8b93a1;
}

/* 昵称 + 子比等级/会员徽章：徽章跟着昵称，时间仍然靠右 */
.zib-chat-user-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.zib-chat-user-wrap > * {
  flex: 0 0 auto;
}

.zib-chat-user-wrap .zib-chat-user {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zib-chat-user-wrap .img-icon {
  flex: 0 0 auto;
  height: 1.1em;
  max-width: 6em;
  vertical-align: -0.15em;
}

/* ===== 右侧群成员面板 ===== */
.zib-chat-body {
  display: flex;
  gap: 12px;
  align-items: stretch;
  position: relative;
}

.zib-chat-main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.zib-chat-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zib-chat-members-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  cursor: pointer;
}

.zib-chat-members-toggle:hover {
  border-color: #cfe0f5;
  color: #2f7dd1;
}

.zib-chat-members-badge {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 11px;
  color: #666;
}

.zib-chat-members {
  flex: 0 0 260px;
  width: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* 高度贴合自己的内容（align-self），不再被拉成和左侧一样高 —— 否则列表下面会留一大块空白 */
  align-self: flex-start;
  max-height: 100%;
  /* 做成一块自己的圆角小卡片 */
  background: var(--body-bg-color, #f7f8fa);
  border: 1px solid var(--main-border-color, #eee);
  border-radius: 10px;
  overflow: hidden;
  margin-left: 4px;
}

.zib-chat-members-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.zib-chat-members-title {
  font-weight: 600;
}

.zib-chat-members-online {
  font-size: 12px;
  color: #888;
}

.zib-chat-members-close {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.zib-chat-members-search {
  padding: 8px 12px;
  border-bottom: 1px solid #f2f2f2;
}

.zib-chat-members-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.zib-chat-members-input:focus {
  border-color: #cfe0f5;
}

.zib-chat-members-list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  max-height: 420px;
}

.zib-chat-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f7f7f7;
}

.zib-chat-member:hover {
  background: #f7fbff;
}

.zib-chat-member-avatar {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.zib-chat-member-avatar img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.zib-chat-member-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c9c9;
  border: 2px solid #fff;
}

.zib-chat-member-dot.is-online {
  background: #22c55e;
}

.zib-chat-member-info {
  flex: 1 1 auto;
  min-width: 0;
}

.zib-chat-member-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.zib-chat-member-link {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.zib-chat-member-name .img-icon {
  flex: 0 0 auto;
  height: 1.1em;
  max-width: 6em;
}

.zib-chat-member-meta {
  font-size: 11px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zib-chat-member-buts {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zib-chat-member-but {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #d9e6f5;
  border-radius: 4px;
  background: #f2f7ff;
  color: #2f7dd1;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  cursor: pointer;
}

.zib-chat-member-but:hover {
  background: #e6f0ff;
  color: #1f5fa8;
}

.zib-chat-member-but.is-home {
  border-color: #eee;
  background: #fafafa;
  color: #666;
}

.zib-chat-member-but.is-home:hover {
  background: #f2f2f2;
  color: #444;
}

.zib-chat-members-foot {
  padding: 6px 12px;
  border-top: 1px solid #f2f2f2;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.zib-chat-members-more {
  border: none;
  background: transparent;
  color: #2f7dd1;
  font-size: 12px;
  cursor: pointer;
}

.zib-chat-members-status {
  display: inline-block;
  margin-left: 6px;
}

@media (max-width: 820px) {
  .zib-chat-members {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 86%;
    max-width: 320px;
    z-index: 40;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  }

  .zib-chat-members-list {
    max-height: none;
  }
}

.dark-theme .zib-chat-members,
.dark .zib-chat-members {
  background: #2b2f36;
  border-color: #3a3f47;
}

.dark-theme .zib-chat-members-head,
.dark .zib-chat-members-head {
  border-bottom-color: #3a3f47;
}

.dark-theme .zib-chat-members-search,
.dark .zib-chat-members-search {
  border-bottom-color: #33383f;
}

.dark-theme .zib-chat-members-input,
.dark .zib-chat-members-input {
  background: #23262b;
  border-color: #3a3f47;
  color: #e6e6e6;
}

.dark-theme .zib-chat-member,
.dark .zib-chat-member {
  border-bottom-color: #33383f;
}

.dark-theme .zib-chat-member:hover,
.dark .zib-chat-member:hover {
  background: #33383f;
}

.dark-theme .zib-chat-member-link,
.dark .zib-chat-member-link {
  color: #e6e6e6;
}

.dark-theme .zib-chat-member-dot,
.dark .zib-chat-member-dot {
  border-color: #2b2f36;
}

.dark-theme .zib-chat-members-toggle,
.dark .zib-chat-members-toggle {
  background: #2b2f36;
  border-color: #3a3f47;
  color: #ddd;
}

.dark-theme .zib-chat-members-badge,
.dark .zib-chat-members-badge {
  background: #3a3f47;
  color: #bbb;
}

/* ================================================================
   界面统一：圆角 / 留白 / 深浅色一致
   ----------------------------------------------------------------
   放在最后统一覆盖，避免到处改。圆角只用三档：
     卡片 12px、面板与输入区 10px、小控件 8px / 胶囊 999px
   ================================================================ */

/* 顶部标题栏：加一条发丝线，和消息区分开 */
.zib-chat-header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--main-border-color, #f0f0f0);
}

/* 消息区：只加圆角。浅色下保持无底色（不弄出第二个框），
   深色下它本来就有底色，圆角后就是一块干净的圆角面板 */
.zib-chat-messages {
  border-radius: 10px;
}

/* 输入区：做成一块柔和的输入面板，聚焦时描边亮一下 */
.zib-chat-form {
  margin-top: 12px;
  padding: 8px 10px 6px;
  border: 1px solid var(--main-border-color, #ececec);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.045);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.zib-chat-form:focus-within {
  border-color: rgba(6, 173, 87, 0.45);
  background: rgba(6, 173, 87, 0.035);
}
.zib-chat-form textarea {
  padding: 2px 2px 6px;
}

/* 发送按钮：胶囊形，和整站的圆角风格对齐 */
.zib-chat-actions button {
  padding: 7px 22px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.22);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.zib-chat-actions button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(7, 193, 96, 0.2);
}

/* 成员面板：自己的圆角小卡片（高度贴合内容，右下角不再拖一大块空白） */
.zib-chat-members {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.zib-chat-members-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--main-border-color, #eee);
}
.zib-chat-members-online {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.12);
  color: #1e9e5a;
  font-size: 12px;
}
.zib-chat-members-search {
  border-bottom: 1px solid var(--main-border-color, #f2f2f2);
}
.zib-chat-members-input {
  border-radius: 8px;
  border-color: var(--main-border-color, #e5e5e5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.zib-chat-members-input:focus {
  border-color: rgba(6, 173, 87, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 173, 87, 0.1);
}

/* 成员行：去掉硬分隔线，改成悬停高亮的小圆角行 */
.zib-chat-member {
  margin: 0 6px;
  padding: 7px 8px;
  border-bottom: 0;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.zib-chat-member:hover {
  background: rgba(127, 127, 127, 0.08);
}
.zib-chat-member-but {
  border-radius: 999px;
  padding: 3px 10px;
}
.zib-chat-members-foot {
  border-top: 1px solid var(--main-border-color, #f2f2f2);
}

/* 滚动条：细一点、圆角，不抢视线 */
.zib-chat-messages::-webkit-scrollbar,
.zib-chat-members-list::-webkit-scrollbar,
.zib-chat-share-list::-webkit-scrollbar {
  width: 8px;
}
.zib-chat-messages::-webkit-scrollbar-thumb,
.zib-chat-members-list::-webkit-scrollbar-thumb,
.zib-chat-share-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.28);
}
.zib-chat-messages::-webkit-scrollbar-thumb:hover,
.zib-chat-members-list::-webkit-scrollbar-thumb:hover {
  background: rgba(127, 127, 127, 0.45);
}
.zib-chat-messages::-webkit-scrollbar-track,
.zib-chat-members-list::-webkit-scrollbar-track {
  background: transparent;
}

/* 上/下滚动按钮：圆形更顺眼 */
.zib-chat-scroll-btn {
  border-radius: 999px;
}

/* —— 深色下的一致性 —— */
.dark-theme .zib-chat-header,
.dark .zib-chat-header {
  border-bottom-color: #2a2f36;
}
.dark-theme .zib-chat-form,
.dark .zib-chat-form {
  border-color: #2f353d;
  background: rgba(255, 255, 255, 0.035);
}
.dark-theme .zib-chat-form:focus-within,
.dark .zib-chat-form:focus-within {
  border-color: rgba(6, 173, 87, 0.5);
  background: rgba(6, 173, 87, 0.06);
}
.dark-theme .zib-chat-members,
.dark .zib-chat-members {
  background: #1f2328;
  border-color: #2f353d;
}
.dark-theme .zib-chat-members-head,
.dark-theme .zib-chat-members-search,
.dark-theme .zib-chat-members-foot,
.dark .zib-chat-members-head,
.dark .zib-chat-members-search,
.dark .zib-chat-members-foot {
  border-color: #2f353d;
}
.dark-theme .zib-chat-members-online,
.dark .zib-chat-members-online {
  background: rgba(46, 204, 113, 0.16);
  color: #57d98b;
}
.dark-theme .zib-chat-members-input,
.dark .zib-chat-members-input {
  background: #22262c;
  border-color: #343a42;
  color: #e6e6e6;
}
.dark-theme .zib-chat-member,
.dark .zib-chat-member {
  border-bottom: 0;
}
.dark-theme .zib-chat-member:hover,
.dark .zib-chat-member:hover {
  background: rgba(255, 255, 255, 0.07);
}
.dark-theme .zib-chat-member-but,
.dark .zib-chat-member-but {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #8ab4f8;
}
.dark-theme .zib-chat-member-but.is-home,
.dark .zib-chat-member-but.is-home {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #b9bec4;
}
.dark-theme .zib-chat-system .zib-chat-system-text,
.dark .zib-chat-system .zib-chat-system-text {
  background: rgba(255, 255, 255, 0.07);
  color: #9aa0a6;
}
.dark-theme .zib-chat-scroll-btn,
.dark .zib-chat-scroll-btn {
  background: #242a31;
  border-color: #343a42;
  color: #e6e6e6;
}
.dark-theme .zib-chat-messages::-webkit-scrollbar-thumb,
.dark-theme .zib-chat-members-list::-webkit-scrollbar-thumb,
.dark .zib-chat-messages::-webkit-scrollbar-thumb,
.dark .zib-chat-members-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

