/* ==================== wechat-style-patch.css · 黑白灰波点风整体样式补丁 ==================== */

/* ============ 1. 聊天气泡：改成大圆角灰调，引用框不动 ============ */
.qaq-wx-bubble {
  border-radius: 16px !important;
  padding: 10px 13px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  box-shadow: none !important;
}
/* 接收方：极浅雾灰 */
.qaq-wx-bubble-row:not(.qaq-me) .qaq-wx-bubble {
  background-color: #eceef1 !important;
  border: 1px solid #e3e5e9 !important;
  color: #3a3a3c !important;
}
.qaq-wx-bubble-row:not(.qaq-me) .qaq-wx-bubble::before {
  top: 14px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 2px !important;
  background-color: #eceef1 !important;
  border-left: 1px solid #e3e5e9 !important;
  border-bottom: 1px solid #e3e5e9 !important;
  left: -4px !important;
}
/* 发送方：中灰 + 白字 */
.qaq-wx-bubble-row.qaq-me .qaq-wx-bubble {
  background-color: #b4b8bf !important;
  border: 1px solid #a9adb5 !important;
  color: #ffffff !important;
}
.qaq-wx-bubble-row.qaq-me .qaq-wx-bubble::before {
  top: 14px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 2px !important;
  left: auto !important;
  right: -4px !important;
  background-color: #b4b8bf !important;
  border: none !important;
  border-right: 1px solid #a9adb5 !important;
  border-top: 1px solid #a9adb5 !important;
}
/* 气泡内时间戳随气泡调色 */
.qaq-wx-bubble-row.qaq-me .qaq-wx-time-inside { color: rgba(255,255,255,0.72) !important; }
/* 引用框保持原样，仅略微圆润统一 */
.qaq-wx-quote-box { border-radius: 10px !important; }

/* 语音气泡与语音框跟随灰调 */
.qaq-wx-bubble-row.qaq-me .qaq-wx-voice-bubble { color: #ffffff !important; }
.qaq-wx-voice-trans-box {
  border-radius: 12px !important;
  background: #eceef1 !important;
  border-color: #e3e5e9 !important;
  color: #4b5563 !important;
}

/* ============ 2. 转账 / 红包 / 名片等卡片：统一雾灰大圆角，去红绿 ============ */
.qaq-wx-tx-card,
.qaq-wx-file-card,
.qaq-wx-contact-card,
.qaq-wx-chat-history-card,
.qaq-wx-fav-card,
.qaq-wx-qr-card {
  border-radius: 16px !important;
  border: 1px solid #e3e5e9 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.035) !important;
}
.qaq-wx-tx-card[data-tx-status="sent"] .qaq-wx-tx-icon {
  background: #6b7280 !important;
  border-color: #6b7280 !important;
  color: #ffffff !important;
}
.qaq-wx-tx-amount { color: #3a3a3c !important; }

/* 竖版红包封面：改成雾银极简，去金红 */
.qaq-wx-rp-vert-card {
  border-radius: 16px !important;
  background: linear-gradient(165deg, #d1d5db 0%, #8a9099 55%, #5b616b 100%) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #f3f4f6 !important;
}
.qaq-wx-rp-vert-seal {
  background: linear-gradient(135deg, #f3f4f6, #b8bcc2) !important;
  color: #4b5563 !important;
  border: 1.5px solid #ffffff !important;
}
.qaq-wx-rp-envelope {
  background: linear-gradient(165deg, #9ca3af 0%, #5b616b 100%) !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
}
.qaq-wx-rp-open-btn {
  background: linear-gradient(135deg, #f3f4f6 0%, #c9ccd1 55%, #8a9099 100%) !important;
  border: 3px solid #ffffff !important;
  color: #3a3a3c !important;
}

/* ============ 3. 底部输入栏：清晰大气的圆形描边图标 ============ */
.qaq-wx-input-bar {
  gap: 10px !important;
  padding: 9px 14px !important;
}
.qaq-wx-input-bar .qaq-wx-icon-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.6px solid #c9ccd1 !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 17px !important;
  flex-shrink: 0 !important;
}
.qaq-wx-input-bar .qaq-wx-icon-btn:active {
  background: #eceef1 !important;
  transform: scale(0.93);
}
.qaq-wx-input-wrap-box {
  height: 40px !important;
  border-radius: 20px !important;
  border: 1.6px solid #d5d8dd !important;
  padding: 0 40px 0 14px !important;
  background: #ffffff !important;
}
.qaq-wx-input-wrap-box input {
  caret-color: #34c759 !important;
  font-size: 14px !important;
}
.qaq-wx-stt-mic-btn {
  width: 26px !important;
  height: 26px !important;
  color: #9ca3af !important;
  font-size: 15px !important;
}

/* ============ 4. 全局白灰波点背景（壁纸 + 设置页 + 各子页面 + App 内部背景） ============ */
:root { --qaq-app-inner-bg: transparent; }

.qaq-wallpaper,
.qaq-settings-app,
.qaq-settings-subpage,
.qaq-wechat-app,
.qaq-wx-chat-room:not(.qaq-in-offline-mode),
.qaq-plan-app,
.qaq-album-app,
.qaq-wordbank-app {
  background-image:
    radial-gradient(rgba(0,0,0,0.05) 1.1px, transparent 1.3px),
    linear-gradient(145deg, var(--qaq-theme-bg-start, #fff), var(--qaq-theme-bg-end, #ededed)) !important;
  background-size: 20px 20px, 100% 100% !important;
  background-position: 0 0, 0 0 !important;
}
/* 消息列表区也铺同款波点，气泡浮在上面 */
.qaq-wx-chat-room:not(.qaq-in-offline-mode) .qaq-wx-msg-list {
  background-color: transparent !important;
  background-image:
    radial-gradient(rgba(0,0,0,0.045) 1.1px, transparent 1.3px) !important;
  background-size: 20px 20px !important;
}
/* 「更多个性化」里可改的 App 内部背景：设置 --qaq-app-inner-bg 为图片 url 即生效 */
.qaq-desktop[data-qaq-app-bg="on"] .qaq-wechat-app,
.qaq-desktop[data-qaq-app-bg="on"] .qaq-settings-app,
.qaq-desktop[data-qaq-app-bg="on"] .qaq-album-app,
.qaq-desktop[data-qaq-app-bg="on"] .qaq-plan-app,
.qaq-desktop[data-qaq-app-bg="on"] .qaq-wordbank-app {
  background: var(--qaq-app-inner-bg) center/cover no-repeat !important;
}
/* 夜间波点淡化 */
.qaq-desktop.qaq-night-mode .qaq-wallpaper,
.qaq-desktop.qaq-night-mode .qaq-settings-app,
.qaq-desktop.qaq-night-mode .qaq-settings-subpage,
.qaq-desktop.qaq-night-mode .qaq-wechat-app,
body.qaq-night-mode .qaq-wx-chat-room:not(.qaq-in-offline-mode) .qaq-wx-msg-list {
  background-image:
    radial-gradient(rgba(255,255,255,0.055) 1.1px, transparent 1.3px),
    linear-gradient(145deg, #1c1c1e, #111113) !important;
  background-size: 20px 20px, 100% 100% !important;
}

/* ============ 5. 底栏导航图标：更大更清楚 ============ */
.qaq-wx-tabbar { height: 58px !important; }
.qaq-wx-tab-btn i { font-size: 20px !important; }
.qaq-wx-tab-btn span { font-size: 10.5px !important; margin-top: 1px; }
.qaq-wx-tab-btn.qaq-active i { transform: scale(1.04); }

/* ==================== 5. 消息长按菜单（方角 + 小尾巴） ==================== */
body .qaq-wx-msg-ctx-popover{
  display:grid !important;          /* 每行几列由 JS 写在行内样式里，最多 5 个 */
  gap:0 !important;
  padding:4px !important;
  border-radius:6px !important;
  background:#1c1c1e !important;
  box-shadow:0 6px 20px rgba(0,0,0,.25) !important;
  backdrop-filter:none !important;
  overflow:visible !important;
  max-height:none !important;
  max-width:calc(100vw - 16px);
}
body .qaq-wx-msg-ctx-btn{
  min-width:48px;
  padding:8px 10px !important;
  border-radius:4px !important;
  color:#f2f2f2 !important;
  font-size:12px !important;
  white-space:nowrap;
}
body .qaq-wx-msg-ctx-btn:active{ background:rgba(255,255,255,.12) !important; }
body .qaq-wx-msg-ctx-btn::before,
body .qaq-wx-msg-ctx-btn::after{ display:none !important; }

/* 小尾巴：默认朝下指向消息；菜单翻到手指下方时朝上 */
body .qaq-wx-msg-ctx-popover::after{
  content:"";
  position:absolute;
  left:var(--qaq-tail-x, 50%);
  top:100%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#1c1c1e;
}
body .qaq-wx-msg-ctx-popover.qaq-tail-up::after{
  top:auto;
  bottom:100%;
  border-top-color:transparent;
  border-bottom-color:#1c1c1e;
}

/* ============ 7. 系统提示：弱化成不抢眼的浅灰小字 ============ */
.qaq-wx-sys-tip,
.qaq-wx-time-divider,
.qaq-wx-narration-tip {
  background: transparent !important;
  color: #a7abb2 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.2px;
}
.qaq-wx-rel-sys-pill {
  background: rgba(0,0,0,0.035) !important;
  border: 1px solid #e3e5e9 !important;
  color: #8a9099 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
/* 顶部风控飘红也转成克制的灰条 */
.qaq-wx-warn-banner {
  background: #f2f3f5 !important;
  border-bottom: 1px solid #e3e5e9 !important;
  color: #8a9099 !important;
}

/* ============ 8. 像素庭院按钮：灰度化配色，去彩色图标 ============ */
.qaq-garden-pill,
.qaq-garden-circle-btn {
  background: rgba(255,255,255,0.82) !important;
  color: #4b5563 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.qaq-garden-pill i,
.qaq-garden-circle-btn i,
.qaq-garden-fold-panel i {
  color: #4b5563 !important;
}
.qaq-garden-circle-badge,
.qaq-weather-warn-bang {
  background: #4b5563 !important;
}
.qaq-garden-pill.qaq-vip-active {
  background: linear-gradient(135deg, #d1d5db, #9ca3af) !important;
  color: #3a3a3c !important;
}
.qaq-forage-action-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563) !important;
  box-shadow: 0 4px 12px rgba(75,85,99,0.25) !important;
}
.qaq-dew-btn,
.qaq-explore-badge {
  background: linear-gradient(135deg, #c9ccd1, #9ca3af) !important;
  color: #3a3a3c !important;
}
.qaq-gdw-btn,
.qaq-garden-entry-banner .qaq-settings-arrow { color: #4b5563 !important; }

/* ==================== 8. 聊天设置 > 个人设置页 分块 ==================== */
/* 只匹配含「日程安排」那一行的分组，四级页面里的美化工作台、查找记录页不受影响 */
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell){
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  margin:0 0 16px !important;
  padding:0 !important;
}

/* 每一行：白底 + 左右描边，行与行之间细分隔线 */
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-info-cell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-sub-switches-box{
  position:relative;
  margin:0;
  background:#ffffff;
  border-left:1px solid #e6e8eb;
  border-right:1px solid #e6e8eb;
  border-bottom:1px solid #f0f1f3;
}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-sub-switches-box{
  background:#f7f8fa;
  border-top:1px dashed #e6e8eb;
}

/* 每块第一行：上圆角 + 与上一块拉开距离 */
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="avatarUrl"],
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="persona"],
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqRoleScheduleCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqBindMyPersonaForRoleCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqSetRoleImageAreaCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6HtmlTheaterCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6TimeAwarenessCell{
  margin-top:32px;
  border-top:1px solid #e6e8eb;
  border-top-left-radius:14px;
  border-top-right-radius:14px;
}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="avatarUrl"]{
  margin-top:24px;
}

/* 每块最后一行：下圆角，去掉分隔线 */
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="nickname"],
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqRoleRpNotesCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqRoleAutoReplyCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="contextMsgLimit"],
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqSetRoleVoiceCell,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6TheaterSubBox,
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6HtmlTheaterCell:has(+ #qaqV6TheaterSubBox[style*="none"]),
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > :last-child{
  border-bottom:1px solid #e6e8eb;
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
}

/* 块标题 */
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="avatarUrl"]::before{content:"基本资料";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > [data-sfield="persona"]::before{content:"人设与扮演";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqRoleScheduleCell::before{content:"作息与状态";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqBindMyPersonaForRoleCell::before{content:"对话设置";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqSetRoleImageAreaCell::before{content:"生图与接口";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6HtmlTheaterCell::before{content:"小剧场";}
#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > #qaqV6TimeAwarenessCell::before{content:"自主行为与记忆";}

#qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-info-cell::before{
  position:absolute;
  left:6px;
  top:-22px;
  font-size:11px;
  font-weight:600;
  color:#8e9299;
  letter-spacing:.4px;
  pointer-events:none;
}

/* 夜间模式 */
.qaq-desktop.qaq-night-mode #qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-info-cell{
  background:#242426;
  border-color:#3a3a3c;
}
.qaq-desktop.qaq-night-mode #qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-sub-switches-box{
  background:#1f1f21;
  border-color:#3a3a3c;
}
.qaq-desktop.qaq-night-mode #qaqWxFourthBody > .qaq-settings-group:has(#qaqRoleScheduleCell) > .qaq-wx-info-cell::before{
  color:#8a8a8e;
}
/* ==================== 9. 聊天背景波点：放大 + 错位排列 ==================== */
:root{
  --qaq-dot-bg:#f5f5f6;              /* 底色 */
  --qaq-dot-color:rgba(0,0,0,.07);   /* 点的颜色 */
  --qaq-dot-r:2.6px;                 /* 点的半径，想再大就调这里 */
  --qaq-dot-gap:28px;                /* 同一行两个点的间距 */
}
.qaq-desktop.qaq-night-mode{
  --qaq-dot-bg:#1c1c1e;
  --qaq-dot-color:rgba(255,255,255,.06);
}

/* 线下模式和带内联背景（自定义聊天壁纸）的不受影响 */
:where(#qaqWxChatRoom:not(.qaq-in-offline-mode)) #qaqWxRoomMsgList:where(:not([style*="background"])){
  background-color:var(--qaq-dot-bg) !important;
  background-image:
    radial-gradient(circle, var(--qaq-dot-color) var(--qaq-dot-r), transparent calc(var(--qaq-dot-r) + .6px)),
    radial-gradient(circle, var(--qaq-dot-color) var(--qaq-dot-r), transparent calc(var(--qaq-dot-r) + .6px)) !important;
  background-size:var(--qaq-dot-gap) var(--qaq-dot-gap) !important;
  background-position:0 0, calc(var(--qaq-dot-gap) / 2) calc(var(--qaq-dot-gap) / 2) !important;
  background-attachment:local !important; /* 波点跟着消息一起滚动 */
}
/* ==================== 10. 聊天室顶栏：标题靠左 + 去掉在线圆点 ==================== */
#qaqWxChatRoom .qaq-wx-topbar,
#qaqWxMeetupSubpage .qaq-wx-topbar{
  grid-template-columns:auto minmax(0,1fr) auto !important;
  column-gap:4px !important;
}
#qaqWxChatRoom .qaq-wx-topbar .qaq-wx-top-left,
#qaqWxMeetupSubpage .qaq-wx-topbar .qaq-wx-top-left{
  min-width:0 !important;
  width:auto !important;
}
#qaqWxChatRoom .qaq-wx-room-head-center,
#qaqWxMeetupSubpage .qaq-wx-room-head-center{
  position:static !important;
  transform:none !important;
  justify-self:stretch !important;
  min-width:0;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  padding-left:2px;
}
#qaqWxChatRoom .qaq-wx-room-head-center .qaq-wx-top-title,
#qaqWxMeetupSubpage .qaq-wx-room-head-center .qaq-wx-top-title{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left !important;
}
#qaqWxChatRoom .qaq-wx-room-substatus,
#qaqWxMeetupSubpage .qaq-wx-room-substatus{
  justify-content:flex-start !important;
  text-align:left !important;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* 线下模式会给圆点写内联颜色，一并隐藏 */
#qaqWxChatRoom .qaq-wx-room-substatus .qaq-wx-online-dot,
#qaqWxMeetupSubpage .qaq-wx-room-substatus .qaq-wx-online-dot{
  display:none !important;
}
/* ==================== 11. 线下模式：分割线 / 背景卡片 / 选项 / 锁定 ==================== */
/* 分割线 */
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider{
  color:#8e8e93;
  gap:8px;
}
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider::before,
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider::after{
  background:none;
  border-top:1px dashed #d1d1d6;
  height:0;
}
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider-pill{
  background:#ffffff;
  border:1px solid #e5e5ea;
  color:#6e6e73;
  box-shadow:none;
  font-size:11px;
  font-weight:600;
  padding:4px 12px;
}
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider-pill i{
  color:#a1a1a6;
  font-size:10px;
}
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider.qaq-clickable .qaq-wx-offline-divider-pill{
  border-color:#c7c7cc;
  color:#1c1c1e;
}
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-divider.qaq-locked{
  opacity:.55;
}

/* 见面背景卡片 */
:is(#qaqWechatApp, .qaq-offline-history-modal) .qaq-wx-offline-scene-banner{
  background:#ffffff;
  border:1px dashed #d1d1d6;
  border-radius:12px;
  color:#48484a;
}

/* 剧情互动选项 */
#qaqWechatApp .qaq-offline-choices-box{
  border-top:1px dashed #e5e5ea;
}
#qaqWechatApp .qaq-offline-choice-btn{
  background:#ffffff;
  border:1px solid #e5e5ea;
  border-radius:10px;
  color:#1c1c1e;
}
#qaqWechatApp .qaq-offline-choice-btn:active{
  background:#f0f0f2;
}
#qaqWechatApp .qaq-offline-choice-btn i{
  color:#a1a1a6 !important;
}

/* 线下期间锁定的线上设置项 */
#qaqWechatApp .qaq-wx-online-only-disabled{
  background:#f4f4f5 !important;
  opacity:.5 !important;
}
#qaqWechatApp .qaq-wx-online-only-disabled::after{
  color:#6e6e73;
  background:#e9e9eb;
  border-radius:99px;
  font-weight:600;
}

/* 线下设置页 */
#qaqWechatApp .qaq-offline-preset-btn{
  border:1px solid #e5e5ea;
  background:#ffffff;
  color:#3a3a3c;
}
#qaqWechatApp .qaq-offline-preset-btn.qaq-active{
  background:#1c1c1e;
  border-color:#1c1c1e;
  color:#ffffff;
}
#qaqSetOfflineConfigSubRow{
  background:#f7f7f8 !important;
}
#qaqSetOfflineConfigSubRow .qaq-wx-info-label{
  color:#3a3a3c !important;
}
#qaqOffExitNowBtn{
  color:#1c1c1e !important;
  border-color:#d1d1d6 !important;
  background:#f4f4f5 !important;
}

/* 进入线下弹窗 / 记录回顾弹窗 */
body .qaq-offline-entry-modal,
body .qaq-offline-history-modal{
  background:rgba(0,0,0,.42) !important;
}
body .qaq-offline-entry-modal .qaq-ig-edit-card > label{
  background:#f7f7f8 !important;
  border-color:#e5e5ea !important;
}
body .qaq-offline-entry-modal textarea{
  border-color:#d1d1d6;
  color:#1c1c1e;
}
body .qaq-offline-entry-modal textarea:focus{
  border-color:#1c1c1e;
}

/* 夜间模式 */
.qaq-desktop.qaq-night-mode #qaqWechatApp .qaq-wx-offline-divider-pill,
.qaq-desktop.qaq-night-mode #qaqWechatApp .qaq-wx-offline-scene-banner,
.qaq-desktop.qaq-night-mode #qaqWechatApp .qaq-offline-choice-btn,
.qaq-desktop.qaq-night-mode #qaqWechatApp .qaq-offline-preset-btn{
  background:#242426;
  border-color:#3a3a3c;
  color:#d1d1d6;
}
.qaq-desktop.qaq-night-mode #qaqWechatApp .qaq-offline-preset-btn.qaq-active{
  background:#f0f0f0;
  border-color:#f0f0f0;
  color:#1c1c1e;
}
/* ==================== 12. 关系变更系统提示 ==================== */
#qaqWxRoomMsgList [class*="rel-sys-pill"]{
  background:#ffffff !important;
  border:1px solid #e5e5ea !important;
  color:#6e6e73 !important;
  box-shadow:none !important;
  border-radius:99px !important;
}
#qaqWxRoomMsgList [class*="rel-sys-pill"] *{
  color:inherit !important;
  background-color:transparent !important;
}
#qaqWxRoomMsgList [class*="rel-sys-pill"] :is(b, strong){
  color:#1c1c1e !important;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList [class*="rel-sys-pill"]{
  background:#242426 !important;
  border-color:#3a3a3c !important;
  color:#a1a1a6 !important;
}
/* ==================== 13. 时光跃迁纪事卡片 ==================== */
#qaqWxRoomMsgList .qaq-wx-timewarp-card-wrap{
  background:#ffffff;
  border:1px solid #e5e5ea;
  border-radius:14px;
  box-shadow:none;
  color:#1c1c1e;
  padding:12px 14px;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-head{
  border-bottom:1px dashed #e5e5ea;
  color:#1c1c1e;
  font-size:12px;
  font-weight:700;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-head i{
  color:#8e8e93;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-head span[style]{
  color:#a1a1a6 !important; /* 已跳过状态 */
}
#qaqWxRoomMsgList .qaq-wx-timewarp-span-tag{
  background:#f4f4f5;
  border:1px solid #e5e5ea;
  border-radius:99px;
  color:#6e6e73;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-head + div[style]{
  color:#a1a1a6 !important; /* 起止时间那一行 */
}
#qaqWxRoomMsgList .qaq-wx-timewarp-body{
  color:#3a3a3c !important;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-actions{
  border-top:1px solid #f2f2f4;
}
#qaqWxRoomMsgList .qaq-wx-tw-btn{
  background:#ffffff;
  border:1px solid #d1d1d6;
  border-radius:99px;
  color:#3a3a3c;
}
#qaqWxRoomMsgList .qaq-wx-tw-btn.qaq-primary{
  background:#1c1c1e;
  border-color:#1c1c1e;
  color:#ffffff;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-card-wrap .qaq-tw-warp-bar-track{
  background:#ececee;
}
#qaqWxRoomMsgList .qaq-wx-timewarp-card-wrap .qaq-tw-warp-bar-fill{
  background:#1c1c1e;
}

/* 跃迁过场弹窗遮罩：原来偏蓝，改成中性黑 */
body .qaq-tw-warp-overlay{
  background:rgba(0,0,0,.55);
}

/* 夜间模式 */
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-timewarp-card-wrap{
  background:#242426;
  border-color:#3a3a3c;
  color:#f0f0f0;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-timewarp-head{
  color:#f0f0f0;
  border-bottom-color:#3a3a3c;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-timewarp-body{
  color:#d1d1d6 !important;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-timewarp-span-tag,
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-tw-btn{
  background:#1c1c1e;
  border-color:#3a3a3c;
  color:#d1d1d6;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-tw-btn.qaq-primary{
  background:#f0f0f0;
  border-color:#f0f0f0;
  color:#1c1c1e;
}
.qaq-desktop.qaq-night-mode #qaqWxRoomMsgList .qaq-wx-timewarp-actions{
  border-top-color:#3a3a3c;
}
/* 线下角色回复字数：独立一行，位于气泡外右下角 */
#qaqWxRoomMsgList .qaq-offline-wordcount,
#qaqWxMeetupMsgList .qaq-offline-wordcount,
#qaqOfflineHistoryStage .qaq-offline-wordcount {
  display: block;
  align-self: flex-end;
  margin: 3px 2px 0 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: #92969d !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.3;
  text-align: right !important;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
#qaqWxCallPage {
  z-index: 85 !important;
  box-sizing: border-box;
  background: linear-gradient(155deg,#484950,#202126) !important;
  color: #fff;
  padding: 28px 18px 16px;
  gap: 8px;
}
#qaqWxCallStatus, #qaqWxCallDuration {
  text-align: center; color: #dedee1; font-size: 13px;
}
#qaqWxCallName {
  text-align: center; font-size: 25px; font-weight: 700;
}
#qaqWxCallPage .qaq-wx-call-hints,
#qaqWxCallKeyboard { display: flex; gap: 6px; }
#qaqWxCallPage .qaq-wx-call-hints { flex-wrap: wrap; }
#qaqWxCallPage input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 0;
  border-radius: 8px; background: #fff; color: #222;
}
#qaqWxCallKeyboard[hidden] { display: none !important; }
#qaqWxCallTranscript {
  flex: 1; min-height: 0; overflow-y: auto;
  touch-action: pan-y; overscroll-behavior: contain;
}
#qaqWxCallTranscript .qaq-wx-call-line {
  padding: 7px 2px; line-height: 1.55; overflow-wrap: anywhere;
}
#qaqWxCallTranscript .qaq-call-note { display: block; color: #c2c2c6; }
#qaqWxCallPage .qaq-wx-call-controls {
  display: flex; justify-content: space-around; gap: 8px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
#qaqWxCallPage button {
  border: 0; border-radius: 12px; padding: 8px;
  background: #55565c; color: white; cursor: pointer;
}
#qaqWxCallPage .qaq-wx-call-controls button {
  display: grid; gap: 5px; place-items: center;
  min-width: 68px; min-height: 58px;
}
#qaqWxCallPage #qaqWxCallHangupBtn { background: #b83940; }
#qaqWxCallPage button:disabled { opacity: .55; }
#qaqWxRoomMsgList .qaq-wx-call-record {
  align-self: center; margin: 4px auto; padding: 7px 14px;
  border: 1px solid #d7d9df; border-radius: 99px;
  color: #51545a; background: #fafafa; font-size: 12px; cursor: pointer;
}
.qaq-call-detail-lines { max-height: 52vh; overflow-y: auto; touch-action: pan-y; }
.qaq-call-detail-lines p { white-space: pre-wrap; overflow-wrap: anywhere; }