/* ============================================================
   私信（站内聊天，步骤60）：右侧会话面板 + 聊天窗口（单聊 / 群聊）+ 通知消息弹窗
   - 面板模板 module/chat/chat.php（改版，保留主题脚本用的 class）；列表行由 chat-list.php 输出，窗口由 chat.js 用 layer 打开，都不改。
   - 面板是浮在页面右侧的界面层卡片（日间浅色、夜间深色，--qh-chrome-*），12px 边距，不贴边。
   - 聊天窗口：中性的标题栏（头像、昵称、在线状态、签名）+ 下沉的消息区 + 输入区。
     对方的气泡是卡片色（日间白色加阴影勾边），自己的气泡是主题色浅底，日夜都是深色字 / 浅色字，对比度够。
   - 面板开关、标签切换、搜索、图片气泡、当前会话高亮由 qirisha-ui/im.js 加 class，主题的发送、接收、上传逻辑不动。
   规范：_优化补丁/前端设计基线.md 6.20；设计稿 _优化补丁/私信设计稿.html
   ============================================================ */

/* ---------------- 本区域的令牌 ---------------- */
:root, .theme-dark {
  --qh-im-surface: #26272a;                          /* 窗口标题栏、输入区（同 --qh-chrome-dialog-solid） */
  --qh-im-well: #1d1e20;                             /* 消息区 */
  --qh-im-bubble: #333438;                           /* 对方的气泡 */
  --qh-im-bubble-shadow: none;
  --qh-im-mine: rgba(var(--qh-accent-rgb), .24);     /* 自己的气泡：主题色浅底 */
  --qh-im-ink: #e8e9eb;                              /* 气泡里的字 */
  --qh-im-online: #4cc38a;
  --qh-im-field: rgba(255, 255, 255, .05);           /* 输入框：底色 / 输入时的底色 / 描边 / 悬停描边 */
  --qh-im-field-on: rgba(255, 255, 255, .08);
  --qh-im-field-line: rgba(255, 255, 255, .1);
  --qh-im-field-hover: rgba(255, 255, 255, .18);
}
.theme-light {
  --qh-im-surface: #fff;
  --qh-im-well: #f3f4f6;
  --qh-im-bubble: #fff;
  --qh-im-bubble-shadow: 0 0 1px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .05);
  --qh-im-mine: rgba(var(--qh-accent-rgb), .15);
  --qh-im-ink: #1f2023;
  --qh-im-online: #1f9d55;
  --qh-im-field: #f3f4f6;
  --qh-im-field-on: #fff;
  --qh-im-field-line: rgba(0, 0, 0, .1);
  --qh-im-field-hover: rgba(0, 0, 0, .2);
}
:root {
  --qh-im-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
  --qh-im-i-smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M8.4 13.8a4.3 4.3 0 0 0 7.2 0'/%3E%3Cpath d='M9.2 9.7v.3M14.8 9.7v.3' stroke-width='2.3'/%3E%3C/svg%3E");
  --qh-im-i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.6'/%3E%3Ccircle cx='9' cy='9.8' r='1.7'/%3E%3Cpath d='M20.5 15.2l-4.8-4.8L6.2 19.5'/%3E%3C/svg%3E");
  --qh-im-i-max: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 9V4.5H9M15 4.5h4.5V9M19.5 15v4.5H15M9 19.5H4.5V15'/%3E%3C/svg%3E");
  --qh-im-i-restore: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4.5V9H4.5M19.5 9H15V4.5M15 19.5V15h4.5M4.5 15H9v4.5'/%3E%3C/svg%3E");
  --qh-im-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --qh-im-i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v13M6.5 12.5L12 18l5.5-5.5'/%3E%3C/svg%3E");
  --qh-im-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18.5V7.5A2.5 2.5 0 0 1 7.5 5h9A2.5 2.5 0 0 1 19 7.5v6a2.5 2.5 0 0 1-2.5 2.5H9.2z'/%3E%3Cpath d='M9 9.5h6M9 12.5h3.5'/%3E%3C/svg%3E");
}

/* ================================================================
   一、右侧会话面板 .jinsom-chat
   ================================================================ */
html .jinsom-chat {
  position: fixed;
  top: 72px;                                         /* 导航栏 60 + 12 */
  right: 12px !important;                            /* 主题 JS 用 jQuery 动画改 right（打开 0、关闭 -280px），这里位置固定，显隐用 .qh-im-open */
  bottom: 12px;
  left: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 340px;
  border: 1px solid var(--qh-chrome-edge);
  border-radius: 14px;
  background: var(--qh-chrome-dialog);
  -webkit-backdrop-filter: var(--qh-blur-pop);
  backdrop-filter: var(--qh-blur-pop);
  box-shadow: var(--qh-chrome-shadow);
  color: var(--qh-chrome-text-body);
  font-family: var(--qh-font);
  font-size: 14px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity .16s ease, transform .22s var(--qh-ease), visibility 0s linear .22s;
}
html .jinsom-chat.qh-im-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .16s ease, transform .22s var(--qh-ease), visibility 0s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html .jinsom-chat { background: var(--qh-chrome-dialog-solid); }
}

/* 标题行：「私信」+ 全部标为已读、关闭 */
.jinsom-chat .qh-im-top { display: flex; align-items: center; gap: 2px; flex: none; height: 56px; padding: 0 10px 0 18px; }
.jinsom-chat .qh-im-title { flex: 1; color: var(--qh-chrome-strong); font-size: 17px; font-weight: 600; }
html .jinsom-chat .jinsom-chat-close-icon,
html .jinsom-chat .jinsom-chat-clear-icon {
  position: relative;                                /* 压掉主题挂在面板左外侧的主题色方块 */
  top: auto;
  left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: rgba(var(--qh-chrome-ink), .6);
  line-height: normal;
  opacity: 1;
}
html .jinsom-chat .jinsom-chat-close-icon:hover,
html .jinsom-chat .jinsom-chat-clear-icon:hover { background: var(--qh-chrome-hover); color: var(--qh-chrome-strong); }
.jinsom-chat .qh-im-top svg { width: 20px; height: 20px; }

/* 会话 / 关注 / 群组：分段切换（主题 base.js 切 .on，im.js 同步 aria-selected） */
html .jinsom-chat .jinsom-chat-header { flex: none; height: auto; margin: 0 14px; overflow: visible; color: inherit; }
html .jinsom-chat .jinsom-chat-header > button { height: 32px; font-size: 14px; }
html .jinsom-chat .jinsom-chat-header > button.on { background: var(--qh-chrome-seg-on); box-shadow: var(--qh-chrome-seg-on-shadow); color: var(--qh-chrome-strong); font-weight: 500; }

/* 搜索框 */
html .jinsom-chat .jinsom-chat-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: 38px;
  margin: 10px 14px 6px;
  padding: 0 10px 0 36px;
  border: 0;
  border-radius: 9px;
  background: var(--qh-chrome-field);
  cursor: text;
}
.jinsom-chat .jinsom-chat-search-box svg { position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; color: var(--qh-chrome-muted); }
html .jinsom-chat .jinsom-chat-search-input {
  flex: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--qh-chrome-strong);
  font-family: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.jinsom-chat .jinsom-chat-search-input::placeholder { color: var(--qh-chrome-muted); }
.jinsom-chat .jinsom-chat-search-input::-webkit-search-cancel-button { cursor: pointer; }

/* 列表区：三个列表叠在一起，只显示当前标签（im.js 在面板上写 data-qh-tab；主题 JS 改的 left 不再起作用） */
html .jinsom-chat .jinsom-chat-content {
  position: relative;
  flex: 1 1 auto;
  height: auto !important;                           /* 压过 base.js 按窗口高度写的行内高度：面板上下都定死了 */
  min-height: 0;
  background: none;
  clear: none;
}
html .jinsom-chat .jinsom-chat-content-user,
html .jinsom-chat .jinsom-chat-content-group,
html .jinsom-chat .jinsom-chat-content-recent {
  top: 0;
  left: 0 !important;                                /* 主题 base.js 用 jQuery 动画把不看的列表挪到 left:240px */
  float: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2px 6px 10px;
  background: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
html .jinsom-chat .jinsom-chat-content-recent,
html .jinsom-chat[data-qh-tab="user"] .jinsom-chat-content-user,
html .jinsom-chat[data-qh-tab="group"] .jinsom-chat-content-group { visibility: visible; }
html .jinsom-chat[data-qh-tab="user"] .jinsom-chat-content-recent,
html .jinsom-chat[data-qh-tab="group"] .jinsom-chat-content-recent { visibility: hidden; }

html .jinsom-chat .jinsom-chat-content-recent-notice,
html .jinsom-chat .jinsom-chat-content-recent-user,
html .jinsom-chat .jinsom-chat-content-follow-user,
html .jinsom-chat .jinsom-chat-content-user-add { float: none; width: auto; margin: 0; padding: 0; clear: none; }
html .jinsom-chat .jinsom-chat-content-recent-notice { margin-bottom: 2px; }
html .jinsom-chat .jinsom-group-top-br { display: none; }   /* 置顶群聊的分界线（空 div） */

/* 一行：44px 头像 | 昵称 + 时间 / 最后一条消息 + 未读数 */
html .jinsom-chat .jinsom-chat-content li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  float: none;
  box-sizing: border-box;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 10px;
  border-radius: 10px;
  color: inherit;
  list-style: none;
  cursor: pointer;
  transition: background-color .15s;
}
html .jinsom-chat .jinsom-chat-content li:last-child { margin-bottom: 0; }
html .jinsom-chat .jinsom-chat-content li:hover { background: var(--qh-chrome-pop-hover); }
html .jinsom-chat .jinsom-chat-content li.is-current { background: var(--qh-chrome-current); }   /* 正在聊天的会话（im.js） */
html .jinsom-chat .jinsom-chat-content li.qh-im-hide { display: none; }                        /* 搜索时不匹配的行（im.js） */

html .jinsom-chat .jinsom-chat-content-recent-user-avatar {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 1;
  float: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
}
html .jinsom-chat .jinsom-chat-content-recent-user-avatar img.avatar,
html .jinsom-chat .jinsom-chat-content-recent-user-avatar > img {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: rgba(var(--qh-chrome-ink), .06);
  object-fit: cover;
}
html .jinsom-chat .jinsom-chat-content-recent-user-info { display: contents; }
html .jinsom-chat .jinsom-chat-content-recent-user-info span.name {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  overflow: hidden;
  color: var(--qh-chrome-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html .jinsom-chat .jinsom-chat-content-recent-user-info span.time {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: var(--qh-chrome-muted);
  font-size: 12px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
html .jinsom-chat .jinsom-chat-content-recent-user-info span.msg {
  grid-column: 2;                                    /* 第三列留给未读数（没有未读时空着，和时间对齐） */
  grid-row: 2;
  display: block;
  width: auto;
  margin: 0;
  overflow: hidden;
  color: rgba(var(--qh-chrome-ink), .55);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html .jinsom-chat .jinsom-chat-content-recent-user-info span.msg p { display: inline; margin: 0; }
html .jinsom-chat .jinsom-chat-content-recent-user-info span.msg img { display: none; }          /* 预览里的表情图 */
/* 未读数：数字角标（基线 6.5，11px） */
html .jinsom-chat .jinsom-chat-content-recent-user li .jinsom-chat-list-tips,
html .jinsom-chat .jinsom-chat-content-group li .jinsom-chat-list-tips,
html .jinsom-chat .jinsom-chat-content-recent-notice li .tips {
  position: static;
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: 9px;
  background: var(--qh-accent) !important;           /* 群聊未读数主题 JS 写了行内灰底 */
  color: #fff;
  font: 700 11px/18px var(--qh-font);
  text-align: center;
}
/* VIP：金色描边（隐藏主题的「vip」小图），认证：贴在头像右下角，头像框挂件在小头像上不显示（基线 6.6 / 6.13） */
html .jinsom-chat .jinsom-chat-content-recent-user-avatar span.jinsom-vip-icon,
.layui-layer.jinsom-chat-user-window .jinsom-vip-icon,
.layui-layer.jinsom-chat-group-window .jinsom-vip-icon { display: none; }
html .jinsom-chat .jinsom-vip-icon + img.avatar,
html .jinsom-chat .jinsom-vip-icon + ls img.avatar,
.layui-layer.jinsom-chat-user-window .jinsom-vip-icon + img.avatar,
.layui-layer.jinsom-chat-user-window .jinsom-vip-icon + ls img.avatar { box-shadow: 0 0 0 2px var(--qh-chrome-dialog-solid), 0 0 0 3.5px var(--qh-vip); }
html .jinsom-chat ls.ls-txk-zzsy,
.layui-layer.jinsom-chat-user-window ls.ls-txk-zzsy,
.layui-layer.jinsom-chat-group-window ls.ls-txk-zzsy { display: block; position: relative; width: 100%; height: 100%; margin: 0; }
html .jinsom-chat ls.ls-txk-zzsy > x,
.layui-layer.jinsom-chat-user-window ls.ls-txk-zzsy > x,
.layui-layer.jinsom-chat-group-window ls.ls-txk-zzsy > x { display: none; }
html .jinsom-chat .jinsom-chat-content-recent-user-avatar .jinsom-verify {
  right: -1px;
  bottom: -1px;
  z-index: 2;
  transform: scale(.78);
  transform-origin: right bottom;
}

/* 通知消息：主题色浅底图标块 + 两行文字 */
html .jinsom-chat .jinsom-chat-content-recent-notice-icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  background: var(--qh-s-tint);
  color: var(--qh-chrome-accent-ink);
  opacity: 1;
}
.jinsom-chat .jinsom-chat-content-recent-notice-icon svg { width: 22px; height: 22px; }
html .jinsom-chat .jinsom-chat-content-recent-notice-info { display: contents; float: none; min-height: 0; margin: 0; line-height: normal; }
html .jinsom-chat .jinsom-chat-content-recent-notice-info span { grid-column: 2; grid-row: 1; float: none; color: var(--qh-chrome-strong); font-size: 15px; font-weight: 500; line-height: 22px; }
html .jinsom-chat .jinsom-chat-content-recent-notice-info em { grid-column: 2; grid-row: 2; color: rgba(var(--qh-chrome-ink), .55); font-size: 13px; font-style: normal; line-height: 20px; }

/* 加载中、空列表、搜索无结果 */
html .jinsom-chat .jinsom-load-post { padding: 28px 0; background: none; }
html .jinsom-chat .jinsom-empty-page { padding: 48px 20px; color: var(--qh-chrome-muted); }
html .jinsom-chat .jinsom-empty-page i { font-size: 36px; opacity: .6; }
html .jinsom-chat .jinsom-empty-page .title p { margin: 8px 0 0; font-size: 13px; }
.jinsom-chat .qh-im-none::after {
  content: "没有找到这个昵称";
  display: block;
  padding: 40px 0;
  color: var(--qh-chrome-muted);
  font-size: 13px;
  text-align: center;
}

/* ================================================================
   二、聊天窗口（layer 弹窗，皮肤 .jinsom-chat-user-window / .jinsom-chat-group-window）
   layer 的行内宽高照常（主题 600×540 / 750×540，可拉伸、可最大化），里面用弹性布局排满，
   主题 JS 在拉伸、最大化、还原时写的消息区行内高度都不再需要。
   ================================================================ */
.layui-layer.jinsom-chat-user-window,
.layui-layer.jinsom-chat-group-window {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--qh-chrome-edge);
  border-radius: 14px !important;                    /* 压过主题只有上边圆角的 !important */
  background: var(--qh-im-surface);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  box-shadow: var(--qh-chrome-dialog-shadow);
  color: var(--qh-chrome-text-body);
  font-family: var(--qh-font);
  overflow: hidden !important;                       /* layer 还原窗口时会写行内 overflow: visible，输入区的底色就盖住了下面两个圆角 */
  -webkit-font-smoothing: antialiased;
}
.layui-layer.jinsom-chat-user-window.qh-im-full,
.layui-layer.jinsom-chat-group-window.qh-im-full { border-width: 0; border-radius: 0 !important; }   /* 最大化时铺满窗口，不要圆角（im.js 按最大化按钮的 .layui-layer-maxmin 加 class） */

/* 标题栏：layer 自带的标题栏只当拖动区，内容是主题追加的 .jinsom-chat-windows-user-header（绝对定位压在上面） */
.layui-layer.jinsom-chat-user-window .layui-layer-title,
.layui-layer.jinsom-chat-group-window .layui-layer-title {
  flex: none;
  box-sizing: border-box;
  height: 68px;
  padding: 0;
  border-bottom: 1px solid var(--qh-chrome-line);
  border-radius: 0;
  background: transparent;
  color: transparent;
  line-height: 68px;
}
.layui-layer.jinsom-chat-user-window .layui-layer-content,
.layui-layer.jinsom-chat-group-window .layui-layer-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0 !important;
  min-height: 0 !important;                          /* 压过主题的 459px，让消息区跟着窗口高度伸缩 */
  height: auto !important;
  background: transparent;
}
.layui-layer.jinsom-chat-group-window .layui-layer-content { flex-direction: row; }

.layui-layer .jinsom-chat-windows-user-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 100px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 68px;
  padding-left: 20px;
  color: var(--qh-chrome-strong);
  line-height: normal;
  pointer-events: none;                              /* 空白处让给下面的标题栏，可以拖动窗口；链接照常能点 */
}
.layui-layer .jinsom-chat-windows-user-header a,
.layui-layer .jinsom-chat-windows-user-header .jinsom-chat-windows-user-name { pointer-events: auto; }
.layui-layer .jinsom-chat-windows-user-avatar { position: relative; flex: none; float: none; width: 40px; height: 40px; margin: 0; }
.layui-layer .jinsom-chat-windows-user-avatar a { display: block; width: 100%; height: 100%; }
.layui-layer .jinsom-chat-windows-user-avatar img { display: block; width: 40px; height: 40px; margin: 0; border-radius: 50%; object-fit: cover; }
.layui-layer.jinsom-chat-group-window .jinsom-chat-windows-user-avatar img { border-radius: 10px; }   /* 群聊头像是版块图标 */
.layui-layer .jinsom-chat-windows-user-avatar .jinsom-verify { right: -1px; bottom: -1px; z-index: 2; transform: scale(.78); transform-origin: right bottom; }
.layui-layer .jinsom-chat-windows-user-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  float: none;
  min-width: 0;
}
.layui-layer .jinsom-chat-windows-user-name {
  float: none;
  max-width: 260px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}
.layui-layer .jinsom-chat-windows-user-name:hover { text-decoration: none; }
.layui-layer .jinsom-chat-windows-user-name a { color: var(--qh-chrome-strong); text-decoration: none; }
.layui-layer .jinsom-chat-windows-user-name a:hover { color: var(--qh-accent); }
/* 在线状态：在线是绿点 + 「电脑在线」，离线只是灰字 */
.layui-layer .jinsom-chat-online-status {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  color: var(--qh-chrome-muted);
  font-size: 12px;
  line-height: 22px;
}
.layui-layer .jinsom-chat-online-status m { display: inline-flex; align-items: center; gap: 5px; color: var(--qh-im-online); }
.layui-layer .jinsom-chat-online-status m::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(.5px); }
.layui-layer .jinsom-chat-windows-user-desc {
  flex: 0 0 100%;
  float: none;
  max-width: 380px;
  padding: 0;
  overflow: hidden;
  color: rgba(var(--qh-chrome-ink), .5);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  clear: none;
}
.layui-layer .jinsom-chat-windows-user-desc p { display: inline; margin: 0; }

/* 右上角：最大化 / 还原、关闭（36px 图标按钮，线条图标） */
.layui-layer.jinsom-chat-user-window .layui-layer-setwin,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin { top: 16px; right: 14px; z-index: 3; display: flex; gap: 2px; }
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > span,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > span {
  position: relative;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(var(--qh-chrome-ink), .6);
  font-size: 0;
  opacity: 1;
  filter: none;                                      /* 主题夜间给群聊窗口的关闭按钮加了反色 */
  transition: background-color .15s, color .15s;
}
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > span:hover,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > span:hover { background: var(--qh-chrome-hover); color: var(--qh-chrome-strong); opacity: 1; }
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > span::after,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > span::after { display: none; }
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > span::before,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 0;
  background: currentColor;
  -webkit-mask: var(--qh-im-i-close) center / 20px no-repeat;
  mask: var(--qh-im-i-close) center / 20px no-repeat;
}
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > .layui-layer-max::before,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > .layui-layer-max::before { -webkit-mask-image: var(--qh-im-i-max); mask-image: var(--qh-im-i-max); }
.layui-layer.jinsom-chat-user-window .layui-layer-setwin > .layui-layer-maxmin::before,
.layui-layer.jinsom-chat-group-window .layui-layer-setwin > .layui-layer-maxmin::before { -webkit-mask-image: var(--qh-im-i-restore); mask-image: var(--qh-im-i-restore); }

/* ---------------- 消息区 ---------------- */
.layui-layer .jinsom-chat-message-list,
.layui-layer .jinsom-chat-message-group-list {
  flex: 1 1 auto;
  box-sizing: border-box;
  height: auto !important;                           /* 主题 JS 拉伸 / 最大化时写的行内高度，交给弹性布局 */
  min-height: 0;
  margin: 0;
  padding: 20px 20px 8px;
  background: var(--qh-im-well);
  overscroll-behavior: contain;
}

/* 一条消息：36px 头像在外侧，气泡最宽 72% */
.layui-layer .jinsom-chat-message-list li,
.layui-layer .jinsom-chat-message-group-list li {
  position: relative;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 0 0 0 48px;
  list-style: none;
  text-align: left;
}
.layui-layer .jinsom-chat-message-list li.myself,
.layui-layer .jinsom-chat-message-group-list li.myself { padding: 0 48px 0 0; text-align: right; }
/* 单聊里同一个人连着发的几条：间距收紧，头像只在第一条显示 */
.layui-layer .jinsom-chat-message-list li:not(.myself) + li:not(.myself),
.layui-layer .jinsom-chat-message-list li.myself + li.myself,
.layui-layer .jinsom-chat-message-group-list li.myself + li.myself { margin-top: -8px; }
.layui-layer .jinsom-chat-message-list li:not(.myself) + li:not(.myself) .jinsom-chat-message-list-user-info,
.layui-layer .jinsom-chat-message-list li.myself + li.myself .jinsom-chat-message-list-user-info,
.layui-layer .jinsom-chat-message-group-list li.myself + li.myself .jinsom-chat-message-list-user-info { visibility: hidden; }

.layui-layer .jinsom-chat-message-list-user-info { position: absolute; top: 0; left: 0; display: block; font-size: 0; }
.layui-layer li.myself .jinsom-chat-message-list-user-info { left: auto; right: 0; }
.layui-layer .jinsom-chat-message-list-user-info m { position: relative; display: block; width: 36px; height: 36px; cursor: pointer; }
.layui-layer .jinsom-chat-message-list-user-info img.avatar { display: block; width: 36px; height: 36px; margin: 0; border-radius: 50%; object-fit: cover; }
.layui-layer .jinsom-chat-message-list-user-info .jinsom-verify { right: -2px; bottom: -2px; z-index: 2; transform: scale(.7); transform-origin: right bottom; }

/* 气泡 */
.layui-layer .jinsom-chat-message-list-content {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  max-width: 72%;
  max-width: min(72%, 560px);                         /* 最大化后也不要拉成一长行 */
  min-height: 0;
  margin: 0;
  padding: 8px 13px;
  border-radius: 4px 14px 14px 14px;                 /* 靠头像的上角收小，代替原来的小三角 */
  background: var(--qh-im-bubble);
  box-shadow: var(--qh-im-bubble-shadow);
  color: var(--qh-im-ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.layui-layer li.myself .jinsom-chat-message-list-content {
  margin: 0;
  border-radius: 14px 4px 14px 14px;
  background: var(--qh-im-mine);
  box-shadow: none;
  color: var(--qh-im-ink);
}
.layui-layer .jinsom-chat-message-list-content::after { display: none; }   /* 原来的小三角 */
.layui-layer .jinsom-chat-message-list-content p { margin: 0; }
.layui-layer .jinsom-chat-message-list-content p + p { margin-top: 6px; }
.layui-layer .jinsom-chat-message-list-content a { color: var(--qh-chrome-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.layui-layer .jinsom-chat-message-list-content img.wp-smiley,
.layui-layer .jinsom-chat-message-list-content .emoji {
  width: 24px !important;                            /* 主题给表情图写了 !important 30px */
  height: 24px !important;
  min-width: 0;
  min-height: 0;
  margin: 0 1px !important;
  vertical-align: -6px !important;
}
.layui-layer .jinsom-chat-message-list-content img.jinsom-group-img {
  display: block;
  max-width: 240px;
  max-height: 260px;
  border-radius: 10px;
  cursor: zoom-in;
}
/* 只有图片的消息（im.js 加 .qh-im-media）：不要气泡底 */
.layui-layer .jinsom-chat-message-list-content.qh-im-media,
.layui-layer li.myself .jinsom-chat-message-list-content.qh-im-media { padding: 0; background: none; box-shadow: none; }
.layui-layer .jinsom-chat-message-list-content.qh-im-media img.jinsom-group-img { box-shadow: 0 0 0 1px var(--qh-chrome-line); }
/* 发送失败：气泡左边一个主题色感叹号（主题字体图标），下面一行说明 */
.layui-layer .jinsom-chat-message-list-content i.error { position: absolute; top: 50%; left: -24px; margin-top: -9px; color: var(--qh-accent); font-size: 18px; line-height: 18px; }

/* 时间分隔、系统提示 */
.layui-layer .jinsom-chat-message-list-time {
  display: table;
  margin: 2px auto 14px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(var(--qh-chrome-ink), .05);
  color: rgba(var(--qh-chrome-ink), .5);
  font-size: 12px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.layui-layer .jinsom-chat-message-list-join { margin: 0 0 14px; text-align: center; }
.layui-layer .jinsom-chat-message-list-join span {
  display: inline-block;
  max-width: 86%;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(var(--qh-chrome-ink), .06);
  color: rgba(var(--qh-chrome-ink), .6);
  font-size: 12px;
  line-height: 18px;
}
.layui-layer .jinsom-chat-message-list-join.error span { background: rgba(var(--qh-accent-rgb), .12); color: var(--qh-chrome-accent-ink); }

/* ---------------- 输入区 ---------------- */
.layui-layer .jinsom-chat-windows-footer { position: relative; flex: none; border-top: 1px solid var(--qh-chrome-line); background: var(--qh-im-surface); }
/* 「底部 / 新消息」：浮在消息区右下角的小按钮 */
.layui-layer .jinsom-msg-tips {
  top: -46px;
  right: 18px;
  z-index: 2;
  box-sizing: border-box;
  width: auto;
  height: 32px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--qh-chrome-edge);
  border-radius: 16px;
  background: var(--qh-chrome-pop-solid);
  box-shadow: var(--qh-chrome-shadow);
  color: var(--qh-chrome-accent-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
}
.layui-layer .jinsom-msg-tips::after { display: none; }
.layui-layer .jinsom-msg-tips::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--qh-im-i-down) center / 16px no-repeat;
  mask: var(--qh-im-i-down) center / 16px no-repeat;
}

/* 工具栏：表情、图片（+ 插件加的按钮），36px 图标按钮 */
.layui-layer .jinsom-chat-windows-footer-bar { display: flex; align-items: center; gap: 2px; padding: 6px 10px 2px; border: 0; }
.layui-layer .jinsom-chat-windows-footer-bar::after { display: none; }   /* .clear 的浮动清除 */
.layui-layer .jinsom-chat-windows-footer-bar > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 10px;
  color: rgba(var(--qh-chrome-ink), .6);
  font-size: 21px;
  line-height: 36px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.layui-layer .jinsom-chat-windows-footer-bar > span:hover { background: var(--qh-chrome-hover); color: var(--qh-chrome-strong); }
.layui-layer .jinsom-chat-windows-footer-bar > span.smile,
.layui-layer .jinsom-chat-windows-footer-bar > span.image { font-size: 0; }
.layui-layer .jinsom-chat-windows-footer-bar > span.smile::before,
.layui-layer .jinsom-chat-windows-footer-bar > span.image::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--qh-im-i-smile) center / 22px no-repeat;
  mask: var(--qh-im-i-smile) center / 22px no-repeat;
}
.layui-layer .jinsom-chat-windows-footer-bar > span.image::before { -webkit-mask-image: var(--qh-im-i-image); mask-image: var(--qh-im-i-image); }
.layui-layer .jinsom-chat-windows-footer-bar > span.notice { display: none; }   /* 主题工具栏右边的铃铛没有绑定任何功能 */
.layui-layer .jinsom-chat-windows-footer-bar > span.jinsom-upload-group-img-loading:empty { display: none; }
.layui-layer .jinsom-chat-windows-footer-bar input[type="file"] { display: none; }   /* layui 上传组件挂的文件框 */

/* 表情面板：外观是全站共用的 smile.css（步骤61），这里只管位置：工具栏上方的浮层 */
.layui-layer .jinsom-chat-windows-footer-bar .jinsom-smile-form { top: auto; bottom: 44px; left: -4px; z-index: 5; }

/* 输入框 */
.layui-layer .jinsom-chat-textarea,
.layui-layer .jinsom-chat-textarea-group {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 28px);
  height: 74px;
  margin: 4px 14px 10px;
  padding: 8px 12px;
  border: 1px solid var(--qh-im-field-line) !important;   /* 压过主题夜间的 1px 边框（var(--ddd)） */
  border-radius: 10px;
  outline: 0;
  background: var(--qh-im-field);
  color: var(--qh-chrome-strong);
  font-family: var(--qh-font);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  transition: background-color .15s, border-color .15s;
}
.layui-layer .jinsom-chat-textarea:hover,
.layui-layer .jinsom-chat-textarea-group:hover { border-color: var(--qh-im-field-hover) !important; }
.layui-layer .jinsom-chat-textarea:focus,
.layui-layer .jinsom-chat-textarea-group:focus { background: var(--qh-im-field-on); }   /* 输入时只变底色，外框颜色不变（基线 6.7 / 6.19） */
.layui-layer .jinsom-chat-textarea::placeholder,
.layui-layer .jinsom-chat-textarea-group::placeholder { color: var(--qh-chrome-muted); }

/* 发送行：左边按键说明，右边主按钮 */
.layui-layer .jinsom-chat-windows-footer-send { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 14px 12px; }
.layui-layer .jinsom-chat-windows-footer-send::after { display: none; }
.layui-layer .jinsom-chat-windows-footer-send::before { content: "按 Enter 发送"; margin-right: auto; color: var(--qh-chrome-muted); font-size: 12px; }
.layui-layer .jinsom-chat-send-message-btn,
.layui-layer .jinsom-chat-send-message-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  box-sizing: border-box;
  width: auto;
  min-width: 76px;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--qh-r-btn);
  background: var(--qh-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  cursor: pointer;
  user-select: none;
  transition: transform .2s var(--qh-ease);
}
.layui-layer .jinsom-chat-send-message-btn:hover,
.layui-layer .jinsom-chat-send-message-btn-group:hover { background-image: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)); opacity: 1; }
.layui-layer .jinsom-chat-send-message-btn:active,
.layui-layer .jinsom-chat-send-message-btn-group:active { transform: scale(.97); }

/* ---------------- 群聊：左边聊天，右边群公告 + 群成员 ---------------- */
.layui-layer .jinsom-chat-windows-left { display: flex; flex-direction: column; flex: 1 1 auto; float: none; width: auto; min-width: 0; }
.layui-layer .jinsom-chat-windows-right {
  display: flex;
  flex-direction: column;
  flex: none;
  float: none;
  width: 200px;
  height: auto !important;                           /* 主题 JS 写的行内高度 */
  border-left: 1px solid var(--qh-chrome-line);
  background: var(--qh-im-surface);
}
.layui-layer .jinsom-chat-group-notice { flex: none; height: auto; max-height: 40%; padding: 14px 16px; overflow: hidden; border-bottom: 1px solid var(--qh-chrome-line); }
.layui-layer .jinsom-chat-group-notice-title,
.layui-layer .jinsom-chat-group-user-number { color: var(--qh-chrome-strong); font-size: 14px; font-weight: 600; text-align: left; }
.layui-layer .jinsom-chat-group-notice-desc { margin-top: 6px; color: rgba(var(--qh-chrome-ink), .6); font-size: 13px; line-height: 1.6; }
.layui-layer .jinsom-chat-group-user { display: flex; flex-direction: column; flex: 1 1 auto; height: auto; min-height: 0; padding: 12px 0 6px; }
.layui-layer .jinsom-chat-group-user-number { padding: 0 16px; }
.layui-layer .jinsom-chat-group-user-number span { color: var(--qh-chrome-muted); font-size: 12px; font-weight: 400; }
.layui-layer .jinsom-chat-group-user-list { flex: 1 1 auto; height: auto; min-height: 0; margin-top: 6px; padding: 0 6px; }
.layui-layer .jinsom-chat-group-user-list li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; color: var(--qh-chrome-text-body); font-size: 13px; list-style: none; }
.layui-layer .jinsom-chat-group-user-list li:hover { background: var(--qh-chrome-pop-hover); }
.layui-layer .jinsom-chat-group-user-list li img { width: 26px; height: 26px; margin: 0; border-radius: 50%; }
.layui-layer .jinsom-chat-group-user-list li span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.layui-layer .jinsom-chat-group-user-list li i { color: var(--qh-chrome-accent-ink); font-size: 15px; }
/* 群聊里别人的消息：头像右边一行昵称（12px），气泡在昵称下面 */
.layui-layer .jinsom-chat-message-group-list li:not(.myself) .jinsom-chat-message-list-user-info a {
  position: absolute;
  top: -1px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 320px;
  color: rgba(var(--qh-chrome-ink), .5);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  text-decoration: none;
}
.layui-layer .jinsom-chat-message-group-list li:not(.myself) .jinsom-chat-message-list-user-info a span { position: static; color: inherit; font-size: 12px; line-height: 18px; }
.layui-layer .jinsom-chat-message-group-list .jinsom-chat-message-list-content { margin-top: 20px; }
.layui-layer .jinsom-chat-message-group-list li.myself .jinsom-chat-message-list-content { margin-top: 0; }

/* ================================================================
   三、通知消息弹窗（面板第一行「通知消息」打开，皮肤 .jinsom-system-notice-form）
   ================================================================ */
.layui-layer.jinsom-system-notice-form {
  border: 1px solid var(--qh-chrome-edge);
  border-radius: 14px;
  background: var(--qh-im-surface);
  box-shadow: var(--qh-chrome-dialog-shadow);
  color: var(--qh-chrome-text-body);
  font-family: var(--qh-font);
  overflow: hidden;
}
.layui-layer.jinsom-system-notice-form .layui-layer-title {
  height: 56px;
  padding: 0 60px 0 20px;
  border-bottom: 1px solid var(--qh-chrome-line);
  background: transparent;
  color: var(--qh-chrome-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 56px;
}
.layui-layer.jinsom-system-notice-form .layui-layer-content { background: var(--qh-im-well); }
.layui-layer.jinsom-system-notice-form .layui-layer-setwin { top: 10px; right: 10px; }
.layui-layer.jinsom-system-notice-form .layui-layer-setwin > span {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(var(--qh-chrome-ink), .6);
  font-size: 0;
  filter: none;
  opacity: 1;
}
.layui-layer.jinsom-system-notice-form .layui-layer-setwin > span:hover { background: var(--qh-chrome-hover); color: var(--qh-chrome-strong); }
.layui-layer.jinsom-system-notice-form .layui-layer-setwin > span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--qh-im-i-close) center / 20px no-repeat;
  mask: var(--qh-im-i-close) center / 20px no-repeat;
}
.layui-layer .jinsom-system-notice-content { padding: 14px; }
.layui-layer .jinsom-system-notice-content li {
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--qh-im-bubble);
  box-shadow: var(--qh-im-bubble-shadow);
  list-style: none;
}
.layui-layer .jinsom-system-notice-content li .title { display: flex; align-items: center; gap: 6px; color: var(--qh-chrome-strong); font-size: 15px; font-weight: 600; line-height: 22px; }
.layui-layer .jinsom-system-notice-content li .title i {
  margin: 0;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--qh-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 18px;
}
.layui-layer .jinsom-system-notice-content li .time { display: flex; justify-content: space-between; margin: 4px 0 10px; color: var(--qh-chrome-muted); font-size: 12px; }
.layui-layer .jinsom-system-notice-content li .time span:last-child { float: none; }
.layui-layer .jinsom-system-notice-content li .content { min-height: 0; color: rgba(var(--qh-chrome-ink), .78); font-size: 14px; line-height: 1.7; }
.layui-layer .jinsom-system-notice-content li .content img { border-radius: 8px; }
.layui-layer .jinsom-system-notice-content .more { margin: 0 0 6px; padding: 9px; border-radius: 9px; background: rgba(var(--qh-chrome-ink), .06); box-shadow: none; color: var(--qh-chrome-text-body); font-size: 13px; }
.layui-layer .jinsom-system-notice-content .more:hover { background: rgba(var(--qh-chrome-ink), .1); }
.layui-layer .jinsom-system-notice-content .jinsom-empty-page { padding: 60px 20px; color: var(--qh-chrome-muted); }

/* ================================================================
   滚动条：面板列表、消息区、输入框、群成员、通知弹窗统一 6px 细滚动条，没有上下箭头（表情面板的在 smile.css）。
   全站有两条给滚动条轨道铺浅底的规则：主题的 ::-webkit-scrollbar-track-piece（#EDEDEF）、后台「自定义 CSS」的
   ::-webkit-scrollbar-track（#f6f6f6 + 内阴影），夜间是一条白边、滑块也看不见，轨道一律透明（步骤61）。
   新版 Chrome 认了标准的 scrollbar-width 以后就不再用 ::-webkit-scrollbar，会画出带箭头的系统滚动条，
   所以标准写法只给不认 ::-webkit-scrollbar 的浏览器（Firefox）。
   ================================================================ */
.jinsom-chat .jinsom-chat-content-user::-webkit-scrollbar,
.jinsom-chat .jinsom-chat-content-group::-webkit-scrollbar,
.jinsom-chat .jinsom-chat-content-recent::-webkit-scrollbar,
.layui-layer .jinsom-chat-message-list::-webkit-scrollbar,
.layui-layer .jinsom-chat-message-group-list::-webkit-scrollbar,
.layui-layer .jinsom-chat-group-user-list::-webkit-scrollbar,
.layui-layer .jinsom-chat-textarea::-webkit-scrollbar,
.layui-layer .jinsom-chat-textarea-group::-webkit-scrollbar,
.layui-layer.jinsom-system-notice-form .layui-layer-content::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
.jinsom-chat .jinsom-chat-content-user::-webkit-scrollbar-track,
.jinsom-chat .jinsom-chat-content-user::-webkit-scrollbar-track-piece,
.jinsom-chat .jinsom-chat-content-group::-webkit-scrollbar-track,
.jinsom-chat .jinsom-chat-content-group::-webkit-scrollbar-track-piece,
.jinsom-chat .jinsom-chat-content-recent::-webkit-scrollbar-track,
.jinsom-chat .jinsom-chat-content-recent::-webkit-scrollbar-track-piece,
.layui-layer .jinsom-chat-message-list::-webkit-scrollbar-track,
.layui-layer .jinsom-chat-message-list::-webkit-scrollbar-track-piece,
.layui-layer .jinsom-chat-message-group-list::-webkit-scrollbar-track,
.layui-layer .jinsom-chat-message-group-list::-webkit-scrollbar-track-piece,
.layui-layer .jinsom-chat-group-user-list::-webkit-scrollbar-track,
.layui-layer .jinsom-chat-group-user-list::-webkit-scrollbar-track-piece,
.layui-layer .jinsom-chat-textarea::-webkit-scrollbar-track,
.layui-layer .jinsom-chat-textarea::-webkit-scrollbar-track-piece,
.layui-layer .jinsom-chat-textarea-group::-webkit-scrollbar-track,
.layui-layer .jinsom-chat-textarea-group::-webkit-scrollbar-track-piece,
.layui-layer.jinsom-system-notice-form .layui-layer-content::-webkit-scrollbar-track,
.layui-layer.jinsom-system-notice-form .layui-layer-content::-webkit-scrollbar-track-piece { background: transparent; box-shadow: none; }
.jinsom-chat .jinsom-chat-content-user::-webkit-scrollbar-thumb,
.jinsom-chat .jinsom-chat-content-group::-webkit-scrollbar-thumb,
.jinsom-chat .jinsom-chat-content-recent::-webkit-scrollbar-thumb,
.layui-layer .jinsom-chat-message-list::-webkit-scrollbar-thumb,
.layui-layer .jinsom-chat-message-group-list::-webkit-scrollbar-thumb,
.layui-layer .jinsom-chat-group-user-list::-webkit-scrollbar-thumb,
.layui-layer .jinsom-chat-textarea::-webkit-scrollbar-thumb,
.layui-layer .jinsom-chat-textarea-group::-webkit-scrollbar-thumb,
.layui-layer.jinsom-system-notice-form .layui-layer-content::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(var(--qh-chrome-ink), .22); }
.jinsom-chat .jinsom-chat-content-user::-webkit-scrollbar-button,
.layui-layer .jinsom-chat-message-list::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  .jinsom-chat .jinsom-chat-content-user,
  .jinsom-chat .jinsom-chat-content-group,
  .jinsom-chat .jinsom-chat-content-recent,
  .layui-layer .jinsom-chat-message-list,
  .layui-layer .jinsom-chat-message-group-list,
  .layui-layer .jinsom-chat-group-user-list,
  .layui-layer .jinsom-chat-textarea,
  .layui-layer .jinsom-chat-textarea-group,
  .layui-layer.jinsom-system-notice-form .layui-layer-content { scrollbar-width: thin; scrollbar-color: rgba(var(--qh-chrome-ink), .22) transparent; }
}
