/**
 * 《贪官模拟器》· Reply UI · v3.0-gazette
 * 英伦报纸风 · 配套 UI/开局UI-v3.0-英伦报纸-单文件.html
 * 类名与 v2.4 一致（of-*），粘贴到平台「内置CSS」即可
 * 原文件请保留：内置CSS.css（都市深蓝主题）
 */

img[src="/chat-star.png"],
img[src*="chat-star.png"] {
  display: none !important;
}

.mufy_ai_message_bubble {
  color: #141210 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  font-family: Georgia, "Noto Serif SC", "Songti SC", "Times New Roman", serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.mufy_ai_message_bubble::before,
.mufy_ai_message_bubble::after {
  display: none !important;
}

.mufy_ai_message_bubble details,
details {
  list-style: none !important;
}

.mufy_ai_message_bubble summary,
details > summary {
  list-style: none !important;
}

.mufy_ai_message_bubble details > summary::-webkit-details-marker,
details > summary::-webkit-details-marker {
  display: none !important;
}

/* ========== 思维链隐藏 ========== */
redacted_thinking,
.mufy_ai_message_bubble redacted_thinking {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.tkb,
redacted_thinking .tkb,
.mufy_ai_message_bubble redacted_thinking .tkb {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

redacted_thinking:not(:has(.tkb)),
.mufy_ai_message_bubble redacted_thinking:not(:has(.tkb)) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ========== 悬停 tip（保留） ==========
 * tip 向上展开时易被 of-hd / of-sub(overflow:hidden) 裁切或盖住。
 * 策略：祖先 overflow:visible + 悬停时抬高整条卡片/触发器层级，tip 置顶。
 */
.of-tip,
div.of-tip,
.mufy_ai_message_bubble .of-tip {
  display: none !important;
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147483646 !important;
  min-width: 140px !important;
  max-width: 260px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #f1eadc !important;
  background: #1a1612 !important;
  border: 1px solid #9e1b32 !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(8, 12, 24, 0.5) !important;
  pointer-events: none !important;
  white-space: normal !important;
  text-align: left !important;
}

.of-tip b,
.mufy_ai_message_bubble .of-tip b {
  display: block !important;
  margin: 0 0 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #9e1b32 !important;
}

.of-tip em,
.mufy_ai_message_bubble .of-tip em {
  display: block !important;
  font-style: normal !important;
  font-size: 11px !important;
  color: #8a8274 !important;
}

.of-tip::after,
.mufy_ai_message_bubble .of-tip::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 6px solid transparent !important;
  border-top-color: #9e1b32 !important;
}

.of-kpi:hover .of-tip,
.of-meter:hover .of-tip,
.of-tag:hover .of-tip,
.of-wx-msg:hover .of-tip,
.mufy_ai_message_bubble .of-kpi:hover .of-tip,
.mufy_ai_message_bubble .of-meter:hover .of-tip,
.mufy_ai_message_bubble .of-tag:hover .of-tip,
.mufy_ai_message_bubble .of-wx-msg:hover .of-tip {
  display: block !important;
}

.of-tag:not(:hover) .of-tip,
.mufy_ai_message_bubble .of-tag:not(:hover) .of-tip {
  display: none !important;
}

details.of-go .of-tag:hover .of-tip,
.mufy_ai_message_bubble details.of-go .of-tag:hover .of-tip {
  display: none !important;
}

/* tip 祖先放开裁切；标题栏压低，内容区抬高，避免 tip 钻进 of-hd 下面 */
.of-hd,
summary.of-hd,
.mufy_ai_message_bubble summary.of-hd {
  position: relative !important;
  z-index: 1 !important;
}

.of-bd,
div.of-bd,
.mufy_ai_message_bubble .of-bd {
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
}

.of-tag,
.of-kpi,
.of-meter,
.of-wx-msg,
.mufy_ai_message_bubble .of-tag,
.mufy_ai_message_bubble .of-kpi,
.mufy_ai_message_bubble .of-meter,
.mufy_ai_message_bubble .of-wx-msg {
  isolation: auto !important;
}

.of-tag:hover,
.of-kpi:hover,
.of-meter:hover,
.of-wx-msg:hover,
.mufy_ai_message_bubble .of-tag:hover,
.mufy_ai_message_bubble .of-kpi:hover,
.mufy_ai_message_bubble .of-meter:hover,
.mufy_ai_message_bubble .of-wx-msg:hover {
  z-index: 10000 !important;
}

details.of-card:has(.of-tag:hover),
details.of-card:has(.of-kpi:hover),
details.of-card:has(.of-meter:hover),
details.of-card:has(.of-wx-msg:hover),
details.of-sub:has(.of-tag:hover),
details.of-sub:has(.of-kpi:hover),
details.of-sub:has(.of-meter:hover),
details.of-sub:has(.of-wx-msg:hover),
details.of-x:has(.of-tag:hover),
details.of-x:has(.of-kpi:hover),
details.of-x:has(.of-meter:hover),
.of-dash:has(.of-tag:hover),
.of-dash:has(.of-kpi:hover),
.of-dash:has(.of-meter:hover),
.of-dash-kpis:has(.of-kpi:hover),
.of-meters:has(.of-meter:hover),
.of-kv:has(.of-tag:hover),
.of-id:has(.of-tag:hover),
.of-sb:has(.of-tag:hover),
.of-sb:has(.of-meter:hover),
.of-xb:has(.of-tag:hover),
.of-rack:has(.of-tag:hover),
.of-rack:has(.of-kpi:hover),
.of-rack:has(.of-meter:hover),
.mufy_ai_message_bubble details.of-card:has(.of-tag:hover),
.mufy_ai_message_bubble details.of-card:has(.of-kpi:hover),
.mufy_ai_message_bubble details.of-card:has(.of-meter:hover),
.mufy_ai_message_bubble details.of-card:has(.of-wx-msg:hover),
.mufy_ai_message_bubble details.of-sub:has(.of-tag:hover),
.mufy_ai_message_bubble details.of-sub:has(.of-kpi:hover),
.mufy_ai_message_bubble details.of-sub:has(.of-meter:hover),
.mufy_ai_message_bubble details.of-sub:has(.of-wx-msg:hover),
.mufy_ai_message_bubble details.of-x:has(.of-tag:hover),
.mufy_ai_message_bubble .of-dash:has(.of-tag:hover),
.mufy_ai_message_bubble .of-dash:has(.of-kpi:hover),
.mufy_ai_message_bubble .of-dash:has(.of-meter:hover),
.mufy_ai_message_bubble .of-dash-kpis:has(.of-kpi:hover),
.mufy_ai_message_bubble .of-meters:has(.of-meter:hover),
.mufy_ai_message_bubble .of-kv:has(.of-tag:hover),
.mufy_ai_message_bubble .of-id:has(.of-tag:hover),
.mufy_ai_message_bubble .of-sb:has(.of-tag:hover),
.mufy_ai_message_bubble .of-sb:has(.of-meter:hover),
.mufy_ai_message_bubble .of-xb:has(.of-tag:hover),
.mufy_ai_message_bubble .of-rack:has(.of-tag:hover),
.mufy_ai_message_bubble .of-rack:has(.of-kpi:hover),
.mufy_ai_message_bubble .of-rack:has(.of-meter:hover) {
  position: relative !important;
  z-index: 9999 !important;
  overflow: visible !important;
}

/* 手机壳：悬停只抬列表行层级，绝不改 overflow/max-height（会顶破圆角屏） */
.of-phone .of-wx-fold:has(.of-wx-msg:hover),
.of-phone .of-wx-thread:has(.of-wx-msg:hover),
.of-phone label.of-wx-fold:has(.of-wx-msg:hover),
.mufy_ai_message_bubble .of-phone .of-wx-fold:has(.of-wx-msg:hover),
.mufy_ai_message_bubble .of-phone .of-wx-thread:has(.of-wx-msg:hover),
.mufy_ai_message_bubble .of-phone label.of-wx-fold:has(.of-wx-msg:hover) {
  position: relative !important;
  z-index: 30 !important;
}

/* ========== 首栏看板 of-dash ========== */
.of-dash,
div.of-dash,
.mufy_ai_message_bubble .of-dash {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: #141210 !important;
  border: 1px solid #3a342c !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: 0 8px 24px rgba(8, 14, 28, 0.35) !important;
}

.of-dash-top,
div.of-dash-top,
.mufy_ai_message_bubble .of-dash-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  background: linear-gradient(90deg, #1f1a16, #141210 60%, #2a241c) !important;
  border-bottom: 1px solid #4a4338 !important;
}

.of-dash-brand,
span.of-dash-brand,
.mufy_ai_message_bubble .of-dash-brand {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: #9e1b32 !important;
  padding: 2px 6px !important;
  border: 1px solid rgba(94, 234, 212, 0.35) !important;
  border-radius: 0 !important;
}

.of-dash-title,
span.of-dash-title,
.mufy_ai_message_bubble .of-dash-title {
  flex: 1 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  color: #f1eadc !important;
}

.of-dash-risk,
span.of-dash-risk,
.mufy_ai_message_bubble .of-dash-risk {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #141210 !important;
  background: #3d5c3a !important;
  padding: 3px 10px !important;
  border-radius: 0 !important;
  letter-spacing: 0.08em !important;
}

.of-dash-risk[data-lv="关注"],
.mufy_ai_message_bubble .of-dash-risk[data-lv="关注"] {
  background: #c9a227 !important;
}

.of-dash-risk[data-lv="警告"],
.mufy_ai_message_bubble .of-dash-risk[data-lv="警告"] {
  background: #c45c26 !important;
}

.of-dash-risk[data-lv="危险"],
.mufy_ai_message_bubble .of-dash-risk[data-lv="危险"] {
  background: #9e1b32 !important;
}

.of-dash-risk[data-lv="临界"],
.mufy_ai_message_bubble .of-dash-risk[data-lv="临界"] {
  background: #9e1b32 !important;
  color: #fff !important;
}

.of-dash-meta,
div.of-dash-meta,
.mufy_ai_message_bubble .of-dash-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 10px 12px 6px !important;
}

.of-cell,
span.of-cell,
.mufy_ai_message_bubble .of-cell {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  color: #5c564c !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid #4a4338 !important;
  border-radius: 0 !important;
}

.of-cell i,
.mufy_ai_message_bubble .of-cell i {
  font-style: normal !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9e1b32 !important;
  letter-spacing: 0.06em !important;
}

.of-cell.of-wide,
.mufy_ai_message_bubble .of-cell.of-wide {
  flex: 1 1 100% !important;
}

.of-dash-kpis,
div.of-dash-kpis,
.mufy_ai_message_bubble .of-dash-kpis {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1px !important;
  margin: 6px 12px 10px !important;
  background: #4a4338 !important;
  border: 1px solid #4a4338 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.of-kpi,
div.of-kpi,
.mufy_ai_message_bubble .of-kpi {
  position: relative !important;
  padding: 10px 6px !important;
  text-align: center !important;
  background: #2c2822 !important;
  cursor: default !important;
}

.of-kpi i,
.mufy_ai_message_bubble .of-kpi i {
  display: block !important;
  font-style: normal !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #8a8274 !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 4px !important;
}

.of-kpi b,
.mufy_ai_message_bubble .of-kpi b {
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #faf6ec !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.2 !important;
}

.of-kpi em,
.mufy_ai_message_bubble .of-kpi em {
  display: block !important;
  margin-top: 2px !important;
  font-style: normal !important;
  font-size: 10px !important;
  color: #9e1b32 !important;
}

.of-dash-line,
div.of-dash-line,
.mufy_ai_message_bubble .of-dash-line {
  margin: 0 12px 8px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #5c564c !important;
  background: rgba(94, 234, 212, 0.04) !important;
  border-left: 2px solid #9e1b32 !important;
}

.of-dash-line b,
.mufy_ai_message_bubble .of-dash-line b {
  display: inline-block !important;
  min-width: 2.2em !important;
  margin-right: 8px !important;
  color: #9e1b32 !important;
  font-size: 11px !important;
}

.of-dash-line:last-child,
.mufy_ai_message_bubble .of-dash-line:last-child {
  margin-bottom: 12px !important;
}

/* ========== 正文 ========== */
.of-story,
div.of-story,
.mufy_ai_message_bubble .of-story {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 18px 20px 18px 22px !important;
  background: linear-gradient(180deg, #faf6ec, #f1eadc) !important;
  border: 1px solid #cfc6b4 !important;
  border-left: 3px solid #141210 !important;
  border-radius: 0 6px 6px 2px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

.of-story p,
.mufy_ai_message_bubble .of-story p {
  margin: 0 0 12px !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #141210 !important;
  text-indent: 2em !important;
}

.of-story p:last-child,
.mufy_ai_message_bubble .of-story p:last-child {
  margin-bottom: 0 !important;
}

/* ========== 底栏架 ========== */
.of-rack,
div.of-rack,
.mufy_ai_message_bubble .of-rack {
  display: block !important;
}

/* ========== 折叠卡 ========== */
details.of-card,
.mufy_ai_message_bubble details.of-card {
  margin: 0 0 10px !important;
  border: 1px solid #cfc6b4 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.of-hd,
summary.of-hd,
.mufy_ai_message_bubble summary.of-hd {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: #faf6ec !important;
  background: #1a1612 !important;
  cursor: pointer !important;
  border-radius: 0 6px 0 0 !important;
}

.of-hd-i,
span.of-hd-i,
.mufy_ai_message_bubble .of-hd-i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 18px !important;
  padding: 0 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #141210 !important;
  background: #9e1b32 !important;
  border-radius: 0 !important;
  letter-spacing: 0 !important;
}

details.of-pl > .of-hd,
.mufy_ai_message_bubble details.of-pl > summary.of-hd {
  background: linear-gradient(90deg, #2a3220, #1a1612) !important;
}

details.of-fc > .of-hd,
.mufy_ai_message_bubble details.of-fc > summary.of-hd {
  background: linear-gradient(90deg, #5c1820, #1a1612) !important;
}

details.of-nt > .of-hd,
.mufy_ai_message_bubble details.of-nt > summary.of-hd {
  background: linear-gradient(90deg, #2c2822, #1a1612) !important;
}

details.of-ph > .of-hd,
.mufy_ai_message_bubble details.of-ph > summary.of-hd {
  background: linear-gradient(90deg, #2f4a28, #1a1612) !important;
}

details.of-hr > .of-hd,
.mufy_ai_message_bubble details.of-hr > summary.of-hd {
  background: linear-gradient(90deg, #5c2030, #1a1612) !important;
}

details.of-mm > .of-hd,
.mufy_ai_message_bubble details.of-mm > summary.of-hd {
  background: linear-gradient(90deg, #3d2a22, #1a1612) !important;
}

details.of-go > .of-hd,
.mufy_ai_message_bubble details.of-go > summary.of-hd {
  background: linear-gradient(90deg, #141210, #2c2822) !important;
}

.of-bd,
div.of-bd,
.mufy_ai_message_bubble .of-bd {
  padding: 12px 14px 14px !important;
  background: #faf6ec !important;
  border-top: 1px solid #ddd4c0 !important;
  border-radius: 0 0 6px 6px !important;
}

.of-bd-phone,
div.of-bd-phone,
.mufy_ai_message_bubble .of-bd-phone {
  padding: 20px 8px 24px !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(148, 163, 184, 0.18), transparent 55%),
    linear-gradient(180deg, #e8ecf2, #f4f6f9) !important;
  overflow: visible !important;
  position: relative !important;
}

/* ========== 身份行 / 键值 ========== */
.of-id,
div.of-id,
.mufy_ai_message_bubble .of-id {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #ddd4c0 !important;
  overflow: visible !important;
  position: relative !important;
}

.of-name,
span.of-name,
.mufy_ai_message_bubble .of-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #141210 !important;
  letter-spacing: 0.04em !important;
}

.of-badge,
span.of-badge,
.mufy_ai_message_bubble .of-badge {
  display: inline-block !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #3a342c !important;
  background: #ebe3d2 !important;
  border: 1px solid #b7ae9c !important;
  border-radius: 0 !important;
}

.of-kv,
div.of-kv,
.mufy_ai_message_bubble .of-kv {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding: 8px 2px !important;
  font-size: 13.5px !important;
  color: #141210 !important;
  border-bottom: 1px solid #e8e0ce !important;
  position: relative !important;
  overflow: visible !important;
}

.of-kv:last-child,
.mufy_ai_message_bubble .of-kv:last-child {
  border-bottom: none !important;
}

.of-kv::before,
.mufy_ai_message_bubble .of-kv::before {
  content: attr(data-k) !important;
  flex-shrink: 0 !important;
  min-width: 4.2em !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #5c564c !important;
  letter-spacing: 0.06em !important;
  padding-top: 2px !important;
}

.of-kv:not([data-k])::before,
.mufy_ai_message_bubble .of-kv:not([data-k])::before {
  content: none !important;
  display: none !important;
}

.of-quote,
div.of-quote,
.mufy_ai_message_bubble .of-quote {
  margin: 10px 0 4px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-style: italic !important;
  color: #3a342c !important;
  background: #ebe3d2 !important;
  border-left: 3px solid #5c564c !important;
  border-radius: 0 4px 4px 0 !important;
}

.of-sec,
div.of-sec,
.mufy_ai_message_bubble .of-sec {
  margin: 10px 0 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #3d2a22 !important;
}

/* ========== 进度条 ========== */
.of-meters,
div.of-meters,
.mufy_ai_message_bubble .of-meters {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

.of-meter,
div.of-meter,
.mufy_ai_message_bubble .of-meter {
  position: relative !important;
  height: 28px !important;
  background: #ebe3d2 !important;
  border: 1px solid #b7ae9c !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.of-fill,
div.of-fill,
.mufy_ai_message_bubble .of-fill {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 0 !important;
  border-radius: 1px 0 0 1px !important;
  transition: width 0.25s ease !important;
  z-index: 0 !important;
}

.of-m-gold .of-fill,
.mufy_ai_message_bubble .of-m-gold .of-fill {
  background: linear-gradient(90deg, #c45c6a, #9e1b32) !important;
}

.of-m-red .of-fill,
.mufy_ai_message_bubble .of-m-red .of-fill {
  background: linear-gradient(90deg, #c45c6a, #9e1b32) !important;
}

.of-m-cyan .of-fill,
.mufy_ai_message_bubble .of-m-cyan .of-fill {
  background: linear-gradient(90deg, #c45c6a, #9e1b32) !important;
}

.of-mtext,
div.of-mtext,
.mufy_ai_message_bubble .of-mtext {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #141210 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.85) !important;
}

/* ========== 标签 ========== */
.of-tag,
span.of-tag,
.mufy_ai_message_bubble .of-tag {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 9px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #141210 !important;
  background: #ebe3d2 !important;
  border: 1px solid #b7ae9c !important;
  border-radius: 0 !important;
  line-height: 1.4 !important;
  cursor: default !important;
}

.of-tag.of-gold,
.mufy_ai_message_bubble .of-tag.of-gold {
  color: #6e1020 !important;
  background: #f7efe0 !important;
  border-color: #d4a0a8 !important;
}

.of-tag.of-red,
.mufy_ai_message_bubble .of-tag.of-red {
  color: #6e1020 !important;
  background: #f7ebe8 !important;
  border-color: #d4a0a8 !important;
}

.of-tag.of-cyan,
.mufy_ai_message_bubble .of-tag.of-cyan {
  color: #6e1020 !important;
  background: #f7ebe8 !important;
  border-color: #d4a0a8 !important;
}

.of-tag.of-wine,
.mufy_ai_message_bubble .of-tag.of-wine {
  color: #6e1020 !important;
  background: #f7ebe8 !important;
  border-color: #d4a0a8 !important;
}

/* ========== 人脉：纵向 of-sub（无横向 Tab） ========== */
details.of-nt .of-sub,
.mufy_ai_message_bubble details.of-nt .of-sub {
  margin: 0 0 8px !important;
}

details.of-nt .of-sub:last-child,
.mufy_ai_message_bubble details.of-nt .of-sub:last-child {
  margin-bottom: 0 !important;
}

/* ========== 手机壳 of-phone · 对齐京都大小姐简洁机壳 ========== */
.of-phone,
div.of-phone,
.mufy_ai_message_bubble .of-phone {
  position: relative !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  padding: 6px !important;
  background: linear-gradient(160deg, #3a3a3a, #141210) !important;
  border-radius: 32px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22) !important;
  overflow: hidden !important;
}

.of-ph-island,
div.of-ph-island,
.mufy_ai_message_bubble .of-ph-island {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  z-index: 5 !important;
  width: 68px !important;
  height: 18px !important;
  margin-left: -34px !important;
  background: #141210 !important;
  border-radius: 12px !important;
  pointer-events: none !important;
}

.of-ph-screen,
div.of-ph-screen,
.mufy_ai_message_bubble .of-ph-screen {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 26px !important;
  background: #fff !important;
  min-height: 420px !important;
  max-height: 520px !important;
  overflow: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

.of-ph-bar,
div.of-ph-bar,
.mufy_ai_message_bubble .of-ph-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  padding: 26px 16px 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #141210 !important;
  background: #fff !important;
  position: relative !important;
  z-index: 6 !important;
}

.of-ph-time,
span.of-ph-time,
.mufy_ai_message_bubble .of-ph-time {
  font-variant-numeric: tabular-nums !important;
}

.of-ph-icons,
span.of-ph-icons,
.mufy_ai_message_bubble .of-ph-icons {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
}

.of-net,
span.of-net,
.mufy_ai_message_bubble span.of-net {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #141210 !important;
}

.of-bars,
span.of-bars,
.mufy_ai_message_bubble span.of-bars {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 1.5px !important;
  height: 10px !important;
}

.of-bars i,
.mufy_ai_message_bubble .of-bars i {
  display: block !important;
  width: 2.5px !important;
  background: #141210 !important;
  border-radius: 1px !important;
}

.of-bars i:nth-child(1) { height: 3px !important; }
.of-bars i:nth-child(2) { height: 5px !important; }
.of-bars i:nth-child(3) { height: 7px !important; }
.of-bars i:nth-child(4) { height: 9px !important; }

.of-batt,
span.of-batt,
.mufy_ai_message_bubble span.of-batt {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #141210 !important;
  font-variant-numeric: tabular-nums !important;
}

.of-ph-nav,
div.of-ph-nav,
.mufy_ai_message_bubble .of-ph-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  padding: 8px 14px 10px !important;
  background: #fff !important;
  border-bottom: 1px solid #d9d9d9 !important;
  position: relative !important;
  z-index: 5 !important;
}

.of-ph-nav-t,
span.of-ph-nav-t,
.mufy_ai_message_bubble .of-ph-nav-t {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #141210 !important;
}

.of-ph-nav-s,
span.of-ph-nav-s,
.mufy_ai_message_bubble .of-ph-nav-s {
  font-size: 12px !important;
  color: #8e8e93 !important;
}

.of-ph-screen:has(.of-wx-toggle:checked) > .of-ph-nav-list,
.mufy_ai_message_bubble .of-ph-screen:has(.of-wx-toggle:checked) > .of-ph-nav-list {
  display: none !important;
}

.of-ph-empty,
div.of-ph-empty,
.mufy_ai_message_bubble .of-ph-empty {
  padding: 48px 16px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #8e8e93 !important;
  background: #fff !important;
}

.of-ph-screen:has(.of-wx-thread) .of-ph-empty,
.mufy_ai_message_bubble .of-ph-screen:has(.of-wx-thread) .of-ph-empty {
  display: none !important;
}

/* ----- 微信会话列表 / 私聊（对齐群主 wx-toggle） ----- */
.of-wx-list,
div.of-wx-list,
.mufy_ai_message_bubble .of-wx-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: #fff !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.of-wx-list::-webkit-scrollbar,
div.of-wx-list::-webkit-scrollbar,
.mufy_ai_message_bubble .of-wx-list::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.of-wx-thread,
div.of-wx-thread,
.mufy_ai_message_bubble .of-wx-thread {
  display: block !important;
  border-bottom: 0.5px solid rgba(60,60,67,0.12) !important;
  background: #fff !important;
}

.of-wx-toggle,
input.of-wx-toggle,
.mufy_ai_message_bubble input.of-wx-toggle {
  display: none !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.of-wx-fold,
label.of-wx-fold,
.mufy_ai_message_bubble label.of-wx-fold {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.of-wx-face,
span.of-wx-face,
.mufy_ai_message_bubble span.of-wx-face {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
  padding: 12px 4px 12px 14px !important;
  box-sizing: border-box !important;
}


.of-wx-av,
span.of-wx-av,
div.of-wx-av,
.mufy_ai_message_bubble .of-wx-av {
  flex-shrink: 0 !important;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2f4f7a, #1e3a5f) !important;
  border-radius: 0 !important;
}

.of-wx-main,
span.of-wx-main,
.mufy_ai_message_bubble span.of-wx-main {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.of-wx-top,
span.of-wx-top,
.mufy_ai_message_bubble span.of-wx-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.of-wx-top b,
.mufy_ai_message_bubble .of-wx-top b {
  font-size: 14px !important;
  color: #141210 !important;
  font-weight: 600 !important;
}

.of-wx-top em,
.mufy_ai_message_bubble .of-wx-top em {
  font-style: normal !important;
  font-size: 11px !important;
  color: #9ca3af !important;
  flex-shrink: 0 !important;
}

.of-wx-msg,
span.of-wx-msg,
.mufy_ai_message_bubble span.of-wx-msg {
  position: relative !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 悬停只放开 tip，不改换行（改 white-space 会撑破列表行） */
.of-wx-msg:hover,
span.of-wx-msg:hover,
.mufy_ai_message_bubble span.of-wx-msg:hover {
  overflow: visible !important;
  z-index: 10000 !important;
}

/* 手机内 tip：改向下展开，避免顶破状态栏/圆角 */
.of-phone .of-wx-msg .of-tip,
.mufy_ai_message_bubble .of-phone .of-wx-msg .of-tip {
  bottom: auto !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  max-width: 220px !important;
}

.of-phone .of-wx-msg .of-tip::after,
.mufy_ai_message_bubble .of-phone .of-wx-msg .of-tip::after {
  top: auto !important;
  bottom: 100% !important;
  border-top-color: transparent !important;
  border-bottom-color: #9e1b32 !important;
}

.of-wx-badge,
span.of-wx-badge,
.mufy_ai_message_bubble span.of-wx-badge {
  flex-shrink: 0 !important;
  min-width: 16px !important;
  padding: 1px 5px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #9e1b32 !important;
  border-radius: 0 !important;
  text-align: center !important;
}

.of-wx-badge:empty,
.mufy_ai_message_bubble .of-wx-badge:empty {
  display: none !important;
}

.of-wx-body,
div.of-wx-body,
.mufy_ai_message_bubble .of-wx-body {
  display: none !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 320px !important;
  background: #ededed !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.of-wx-thread:has(.of-wx-toggle:not(:checked)) .of-wx-body,
.mufy_ai_message_bubble .of-wx-thread:has(.of-wx-toggle:not(:checked)) .of-wx-body {
  display: none !important;
}

.of-wx-thread:has(.of-wx-toggle:checked) .of-wx-body,
.mufy_ai_message_bubble .of-wx-thread:has(.of-wx-toggle:checked) .of-wx-body {
  display: flex !important;
}

.of-wx-thread:has(.of-wx-toggle:checked) > .of-wx-fold,
.mufy_ai_message_bubble .of-wx-thread:has(.of-wx-toggle:checked) > .of-wx-fold {
  display: none !important;
}

.of-wx-list:has(.of-wx-toggle:checked) .of-wx-thread:not(:has(.of-wx-toggle:checked)),
.mufy_ai_message_bubble .of-wx-list:has(.of-wx-toggle:checked) .of-wx-thread:not(:has(.of-wx-toggle:checked)) {
  display: none !important;
}

.of-wx-back,
label.of-wx-back,
.mufy_ai_message_bubble label.of-wx-back {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  background: rgba(247, 247, 247, 0.98) !important;
  border-bottom: 0.5px solid #d1d1d6 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  flex-shrink: 0 !important;
}

.of-wx-head,
div.of-wx-head,
.mufy_ai_message_bubble .of-wx-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px 4px !important;
}

.of-wx-back-i,
span.of-wx-back-i,
.mufy_ai_message_bubble span.of-wx-back-i {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #3d5c3a !important;
  font-weight: 500 !important;
  min-width: 18px !important;
}

.of-wx-name,
span.of-wx-name,
.mufy_ai_message_bubble span.of-wx-name {
  flex: 1 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center !important;
}

.of-wx-meta,
span.of-wx-meta,
.mufy_ai_message_bubble span.of-wx-meta {
  font-size: 11px !important;
  color: #8e8e93 !important;
  min-width: 36px !important;
  text-align: right !important;
}

.of-wx-sub,
div.of-wx-sub,
.mufy_ai_message_bubble .of-wx-sub {
  padding: 2px 16px 10px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #8e8e93 !important;
  text-align: center !important;
}

.of-wx-time,
div.of-wx-time,
.mufy_ai_message_bubble .of-wx-time {
  display: block !important;
  margin: 12px 0 8px !important;
  text-align: center !important;
}

.of-wx-time span,
.mufy_ai_message_bubble .of-wx-time span {
  display: inline-block !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.18) !important;
  border-radius: 0 !important;
}

.of-msg-l,
div.of-msg-l,
.mufy_ai_message_bubble .of-msg-l {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin: 0 48px 10px 12px !important;
}

.of-msg-l > span,
.mufy_ai_message_bubble .of-msg-l > span {
  font-size: 11px !important;
  color: #888 !important;
  padding: 0 6px !important;
}

.of-msg-l > p,
.mufy_ai_message_bubble .of-msg-l > p {
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #111 !important;
  background: #fff !important;
  border-radius: 0 !important;
  text-indent: 0 !important;
  max-width: 100% !important;
  word-break: break-word !important;
}

.of-msg-r,
div.of-msg-r,
.mufy_ai_message_bubble .of-msg-r {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  margin: 0 12px 10px 48px !important;
}

.of-msg-r > p,
.mufy_ai_message_bubble .of-msg-r > p {
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #111 !important;
  background: #dce8c8 !important;
  border-radius: 0 !important;
  text-indent: 0 !important;
  max-width: 100% !important;
  word-break: break-word !important;
}

.of-wx-narr,
p.of-wx-narr,
.mufy_ai_message_bubble p.of-wx-narr {
  display: block !important;
  margin: 8px 24px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #666 !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
  text-indent: 0 !important;
}

/* ========== 子折叠 / 私密 ========== */
details.of-sub,
.mufy_ai_message_bubble details.of-sub {
  margin: 0 0 8px !important;
  border: 1px solid #ddd4c0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.of-sh,
summary.of-sh,
.mufy_ai_message_bubble summary.of-sh {
  position: relative !important;
  z-index: 1 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #3a342c !important;
  background: #ebe3d2 !important;
  cursor: pointer !important;
}

.of-sb,
div.of-sb,
.mufy_ai_message_bubble .of-sb {
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

details.of-x,
.mufy_ai_message_bubble details.of-x {
  margin: 8px 0 !important;
  border: 1px solid #d4a0a8 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  position: relative !important;
}

.of-xh,
summary.of-xh,
.mufy_ai_message_bubble summary.of-xh {
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6e1020 !important;
  background: #f7ebe8 !important;
  cursor: pointer !important;
}

.of-xb,
span.of-xb,
.mufy_ai_message_bubble .of-xb {
  margin-left: 6px !important;
  padding: 1px 5px !important;
  font-size: 10px !important;
  color: #fff !important;
  background: #6e1020 !important;
  border-radius: 0 !important;
}

.of-xd,
div.of-xd,
.mufy_ai_message_bubble .of-xd {
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
  padding: 4px 8px 8px !important;
  background: #fff !important;
}

/* ========== 记忆表 ========== */
table.of-table,
.mufy_ai_message_bubble table.of-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 12px !important;
  margin: 0 0 10px !important;
  background: #fff !important;
  border: 1px solid #cfc6b4 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

table.of-table th,
.mufy_ai_message_bubble table.of-table th {
  padding: 6px 8px !important;
  font-weight: 700 !important;
  color: #faf6ec !important;
  background: #1a1612 !important;
  border: 1px solid #141210 !important;
  text-align: center !important;
}

table.of-table td,
.mufy_ai_message_bubble table.of-table td {
  padding: 6px 8px !important;
  color: #141210 !important;
  border: 1px solid #ddd4c0 !important;
  vertical-align: top !important;
  line-height: 1.5 !important;
}

table.of-table tbody tr:nth-child(even) td,
.mufy_ai_message_bubble table.of-table tbody tr:nth-child(even) td {
  background: #f7f9fc !important;
}

/* ========== 下一步 ========== */
.of-go-bd,
div.of-go-bd,
.mufy_ai_message_bubble .of-go-bd {
  padding: 12px !important;
}

details.of-go suggested_questions,
.mufy_ai_message_bubble details.of-go suggested_questions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  white-space: normal !important;
}

details.of-go suggested_questions p,
details.of-go suggested_questions li,
details.of-go suggested_questions span,
.mufy_ai_message_bubble details.of-go suggested_questions p,
.mufy_ai_message_bubble details.of-go suggested_questions li,
.mufy_ai_message_bubble details.of-go suggested_questions span {
  display: block !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #141210 !important;
  background: #fff !important;
  border: 1px solid #cfc6b4 !important;
  border-left: 3px solid #9e1b32 !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

details.of-go suggested_questions p::first-line,
.mufy_ai_message_bubble details.of-go suggested_questions p::first-line {
  font-weight: 700 !important;
  color: #141210 !important;
}

/* ========== 移动端 ========== */
@media (max-width: 560px) {
  .of-dash-kpis,
  .mufy_ai_message_bubble .of-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .of-meters,
  .mufy_ai_message_bubble .of-meters {
    grid-template-columns: 1fr !important;
  }

  .of-phone,
  .mufy_ai_message_bubble .of-phone {
    max-width: 100% !important;
  }

  .of-tip,
  .mufy_ai_message_bubble .of-tip {
    max-width: 200px !important;
    font-size: 11px !important;
  }
}

@media (hover: none) {
  .of-kpi:active .of-tip,
  .of-meter:active .of-tip,
  .of-tag:active .of-tip,
  .of-wx-msg:active .of-tip {
    display: block !important;
  }

  .of-kpi,
  .of-meter,
  .of-tag,
  .of-wx-msg {
    cursor: pointer !important;
  }

  details.of-card:has(.of-tag:active),
  details.of-card:has(.of-kpi:active),
  details.of-card:has(.of-meter:active),
  details.of-sub:has(.of-tag:active),
  details.of-sub:has(.of-meter:active),
  .of-dash:has(.of-kpi:active),
  .of-dash:has(.of-meter:active),
  .mufy_ai_message_bubble:has(.of-tag:active),
  .mufy_ai_message_bubble:has(.of-kpi:active),
  .mufy_ai_message_bubble:has(.of-meter:active) {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
  }

  .of-phone .of-wx-fold:has(.of-wx-msg:active),
  .of-phone .of-wx-thread:has(.of-wx-msg:active) {
    position: relative !important;
    z-index: 30 !important;
  }

  .of-wx-msg:active,
  span.of-wx-msg:active {
    overflow: visible !important;
  }
}


/* ========== 报纸风补丁（覆盖映射后的关键观感） ========== */
.mufy_ai_message_bubble {
  letter-spacing: 0.01em !important;
}

.of-dash,
div.of-dash,
.mufy_ai_message_bubble .of-dash {
  background: #f1eadc !important;
  border: 1px solid #141210 !important;
  box-shadow:
    0 0 0 4px #f1eadc,
    0 0 0 5px rgba(158, 27, 50, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.28) !important;
}

.of-dash-top,
div.of-dash-top,
.mufy_ai_message_bubble .of-dash-top {
  background: #141210 !important;
  border-bottom: 3px double #9e1b32 !important;
}

.of-dash-brand,
span.of-dash-brand,
.mufy_ai_message_bubble .of-dash-brand {
  color: #faf6ec !important;
  border: 1px solid rgba(250, 246, 236, 0.35) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.of-dash-title,
span.of-dash-title,
.mufy_ai_message_bubble .of-dash-title {
  color: #faf6ec !important;
  font-family: Georgia, "Noto Serif SC", serif !important;
  letter-spacing: 0.18em !important;
}

.of-dash-risk,
span.of-dash-risk,
.mufy_ai_message_bubble .of-dash-risk {
  border-radius: 0 !important;
  border: 1px solid rgba(20, 18, 16, 0.2) !important;
}

.of-cell,
span.of-cell,
.mufy_ai_message_bubble .of-cell {
  background: #faf6ec !important;
  border: 1px solid rgba(20, 18, 16, 0.28) !important;
  color: #2c2822 !important;
}

.of-cell i,
.mufy_ai_message_bubble .of-cell i {
  color: #9e1b32 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.of-dash-kpis,
div.of-dash-kpis,
.mufy_ai_message_bubble .of-dash-kpis {
  background: #141210 !important;
  border: 1px solid #141210 !important;
}

.of-kpi,
div.of-kpi,
.mufy_ai_message_bubble .of-kpi {
  background: #faf6ec !important;
}

.of-kpi i,
.mufy_ai_message_bubble .of-kpi i {
  color: #5c564c !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  text-transform: uppercase !important;
}

.of-kpi b,
.mufy_ai_message_bubble .of-kpi b {
  color: #141210 !important;
  font-family: Georgia, "Noto Serif SC", serif !important;
}

.of-kpi em,
.mufy_ai_message_bubble .of-kpi em {
  color: #9e1b32 !important;
}

.of-dash-line,
div.of-dash-line,
.mufy_ai_message_bubble .of-dash-line {
  color: #2c2822 !important;
  background: rgba(158, 27, 50, 0.06) !important;
  border-left: 3px solid #9e1b32 !important;
}

.of-dash-line b,
.mufy_ai_message_bubble .of-dash-line b {
  color: #9e1b32 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.of-story,
div.of-story,
.mufy_ai_message_bubble .of-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 18%),
    #f1eadc !important;
  border: 1px solid #141210 !important;
  border-left: 1px solid #141210 !important;
  box-shadow:
    inset 0 0 0 1px rgba(158, 27, 50, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.of-story p,
.mufy_ai_message_bubble .of-story p {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif !important;
  color: #141210 !important;
  line-height: 1.95 !important;
}

details.of-card,
.mufy_ai_message_bubble details.of-card {
  background: #faf6ec !important;
  border: 1px solid #141210 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.of-hd,
summary.of-hd,
.mufy_ai_message_bubble summary.of-hd {
  background: #141210 !important;
  color: #faf6ec !important;
  border-radius: 0 !important;
  letter-spacing: 0.14em !important;
  font-family: Georgia, "Noto Serif SC", serif !important;
}

.of-hd-i,
span.of-hd-i,
.mufy_ai_message_bubble .of-hd-i {
  background: #9e1b32 !important;
  color: #faf6ec !important;
  border-radius: 0 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
}

details.of-pl > .of-hd,
.mufy_ai_message_bubble details.of-pl > summary.of-hd,
details.of-fc > .of-hd,
.mufy_ai_message_bubble details.of-fc > summary.of-hd,
details.of-nt > .of-hd,
.mufy_ai_message_bubble details.of-nt > summary.of-hd,
details.of-ph > .of-hd,
.mufy_ai_message_bubble details.of-ph > summary.of-hd,
details.of-hr > .of-hd,
.mufy_ai_message_bubble details.of-hr > summary.of-hd,
details.of-mm > .of-hd,
.mufy_ai_message_bubble details.of-mm > summary.of-hd,
details.of-go > .of-hd,
.mufy_ai_message_bubble details.of-go > summary.of-hd {
  background: #141210 !important;
  border-bottom: 2px solid #9e1b32 !important;
}

.of-bd,
div.of-bd,
.mufy_ai_message_bubble .of-bd {
  background: #faf6ec !important;
  border-top: 1px solid rgba(20, 18, 16, 0.22) !important;
  border-radius: 0 !important;
}

.of-bd-phone,
div.of-bd-phone,
.mufy_ai_message_bubble .of-bd-phone {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(158, 27, 50, 0.08), transparent 55%),
    linear-gradient(180deg, #e8e0ce, #f1eadc) !important;
}

.of-name,
span.of-name,
.mufy_ai_message_bubble .of-name {
  font-family: Georgia, "Noto Serif SC", serif !important;
  letter-spacing: 0.08em !important;
}

.of-badge,
span.of-badge,
.mufy_ai_message_bubble .of-badge {
  background: #ebe3d2 !important;
  border: 1px solid rgba(20, 18, 16, 0.28) !important;
  border-radius: 0 !important;
}

.of-kv::before,
.mufy_ai_message_bubble .of-kv::before {
  color: #9e1b32 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.of-quote,
div.of-quote,
.mufy_ai_message_bubble .of-quote {
  background: #ebe3d2 !important;
  border-left: 3px solid #9e1b32 !important;
  border-radius: 0 !important;
  font-style: italic !important;
}

.of-sec,
div.of-sec,
.mufy_ai_message_bubble .of-sec {
  color: #9e1b32 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(20, 18, 16, 0.22) !important;
  padding-bottom: 4px !important;
}

.of-meter,
div.of-meter,
.mufy_ai_message_bubble .of-meter {
  background: #ebe3d2 !important;
  border: 1px solid rgba(20, 18, 16, 0.28) !important;
  border-radius: 0 !important;
}

.of-m-gold .of-fill,
.mufy_ai_message_bubble .of-m-gold .of-fill {
  background: linear-gradient(90deg, #c9a227, #9e1b32) !important;
}

.of-m-red .of-fill,
.mufy_ai_message_bubble .of-m-red .of-fill {
  background: linear-gradient(90deg, #c45c6a, #9e1b32) !important;
}

.of-m-cyan .of-fill,
.mufy_ai_message_bubble .of-m-cyan .of-fill {
  background: linear-gradient(90deg, #6a7a8a, #2f4f7a) !important;
}

.of-tip,
div.of-tip,
.mufy_ai_message_bubble .of-tip {
  color: #faf6ec !important;
  background: #141210 !important;
  border: 1px solid #9e1b32 !important;
  border-radius: 0 !important;
}

.of-tip b,
.mufy_ai_message_bubble .of-tip b {
  color: #9e1b32 !important;
}

.of-tip em,
.mufy_ai_message_bubble .of-tip em {
  color: #cfc6b4 !important;
}

.of-tip::after,
.mufy_ai_message_bubble .of-tip::after {
  border-top-color: #9e1b32 !important;
}

.of-tag,
span.of-tag,
.mufy_ai_message_bubble .of-tag {
  border-radius: 0 !important;
  background: #ebe3d2 !important;
  border: 1px solid rgba(20, 18, 16, 0.28) !important;
}

table.of-table,
.mufy_ai_message_bubble table.of-table {
  border: 1px solid #141210 !important;
  border-radius: 0 !important;
  background: #faf6ec !important;
}

table.of-table th,
.mufy_ai_message_bubble table.of-table th {
  background: #141210 !important;
  border: 1px solid #141210 !important;
  color: #faf6ec !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

table.of-table tbody tr:nth-child(even) td,
.mufy_ai_message_bubble table.of-table tbody tr:nth-child(even) td {
  background: #ebe3d2 !important;
}

details.of-go suggested_questions p,
details.of-go suggested_questions li,
details.of-go suggested_questions span,
.mufy_ai_message_bubble details.of-go suggested_questions p,
.mufy_ai_message_bubble details.of-go suggested_questions li,
.mufy_ai_message_bubble details.of-go suggested_questions span {
  background: #faf6ec !important;
  border: 1px solid rgba(20, 18, 16, 0.28) !important;
  border-left: 3px solid #9e1b32 !important;
  border-radius: 0 !important;
}

details.of-go suggested_questions p::first-line,
.mufy_ai_message_bubble details.of-go suggested_questions p::first-line {
  color: #9e1b32 !important;
}

/* 手机壳：外框报纸风，屏内保持微信白 */
.of-phone,
div.of-phone,
.mufy_ai_message_bubble .of-phone {
  border-radius: 32px !important;
  background: linear-gradient(160deg, #3a342c, #1a1612) !important;
  overflow: hidden !important;
}

.of-ph-island,
div.of-ph-island,
.mufy_ai_message_bubble .of-ph-island {
  border-radius: 12px !important;
}

.of-ph-screen,
div.of-ph-screen,
.mufy_ai_message_bubble .of-ph-screen {
  border-radius: 26px !important;
  background: #fff !important;
}

.of-ph-bar,
div.of-ph-bar,
.mufy_ai_message_bubble .of-ph-bar,
.of-ph-nav,
div.of-ph-nav,
.mufy_ai_message_bubble .of-ph-nav,
.of-ph-empty,
div.of-ph-empty,
.mufy_ai_message_bubble .of-ph-empty,
.of-wx-list,
div.of-wx-list,
.mufy_ai_message_bubble .of-wx-list,
.of-wx-thread,
div.of-wx-thread,
.mufy_ai_message_bubble .of-wx-thread {
  background: #fff !important;
}

.of-wx-body,
div.of-wx-body,
.mufy_ai_message_bubble .of-wx-body {
  background: #ededed !important;
}

.of-wx-back,
label.of-wx-back,
.mufy_ai_message_bubble label.of-wx-back {
  background: rgba(247, 247, 247, 0.96) !important;
}

.of-wx-av,
span.of-wx-av,
div.of-wx-av,
.mufy_ai_message_bubble .of-wx-av {
  border-radius: 6px !important;
  background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
}

.of-wx-badge,
span.of-wx-badge,
.mufy_ai_message_bubble .of-wx-badge {
  border-radius: 999px !important;
  background: #ef4444 !important;
}

.of-msg-r > p,
.mufy_ai_message_bubble .of-msg-r > p {
  background: #95ec69 !important;
  border: none !important;
  border-radius: 6px !important;
}

.of-msg-l > p,
.mufy_ai_message_bubble .of-msg-l > p {
  background: #fff !important;
  border: none !important;
  border-radius: 6px !important;
}

.of-wx-back-i,
span.of-wx-back-i,
.mufy_ai_message_bubble span.of-wx-back-i {
  color: #07c160 !important;
}

/* ========== tip 防裁切兜底（不含手机壳，壳需 overflow:hidden 保圆角） ========== */
.of-dash,
div.of-dash,
.mufy_ai_message_bubble .of-dash,
.of-rack,
div.of-rack,
.mufy_ai_message_bubble .of-rack,
.of-meters,
div.of-meters,
.mufy_ai_message_bubble .of-meters {
  overflow: visible !important;
}

.of-phone,
div.of-phone,
.mufy_ai_message_bubble .of-phone {
  overflow: hidden !important;
}

.mufy_ai_message_bubble:has(.of-tag:hover),
.mufy_ai_message_bubble:has(.of-kpi:hover),
.mufy_ai_message_bubble:has(.of-meter:hover) {
  position: relative !important;
  z-index: 10001 !important;
  overflow: visible !important;
}

/**
 * 《贪官模拟器》· 平台壳层 · v3.3.1-gazette
 * 英伦报纸风 · 顶栏 / 底部输入区 / 输入输出气泡 / 消息操作条
 *
 * 平台注入规则：选择器会变成 `.custom-styles <你的选择器>`
 * 气泡真实 DOM（rilichat chunk）：
 *   .is-user / .is-assistant
 *     → MessageContent：group-[.is-user]:bg-secondary | group-[.is-assistant]:bg-card
 *       + border border-muted + 内联 hsl(var(--card|--secondary) / opacity)
 *   操作条：div.bg-muted.rounded.flex.p-0.5
 *
 * 用法：追加粘贴到「内置CSS」末尾（接在 内置CSS-英伦报纸.css 之后）
 * 不修改：内置CSS.css / 内置CSS-英伦报纸.css
 * 配色：纸色 #f2ede1 · 墨色 #2b2622 · 绯红 #9e1b32
 */

/* ----- 顶部栏 ----- */
header.flex.h-12.items-center,
header.flex.items-center.justify-between {
  background: #f2ede1 !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px) !important;
  background-size: 100% 3px !important;
  border-bottom: 3px double #2b2622 !important;
  box-shadow: 0 2px 0 #2b2622, 0 4px 8px rgba(43, 38, 34, 0.15) !important;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header.flex.h-12.items-center button,
header.flex.items-center.justify-between button,
header.flex.h-12.items-center a,
header.flex.items-center.justify-between a {
  border-radius: 0 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #2b2622 !important;
  box-shadow: none !important;
}

header.flex.h-12.items-center button:hover,
header.flex.items-center.justify-between button:hover,
header.flex.h-12.items-center a:hover,
header.flex.items-center.justify-between a:hover {
  background: rgba(43, 38, 34, 0.06) !important;
  border-color: rgba(43, 38, 34, 0.25) !important;
  color: #9e1b32 !important;
}

header.flex.h-12.items-center button svg,
header.flex.items-center.justify-between button svg {
  color: currentColor !important;
}

.sticky.w-full.top-0.flex.items-center {
  background: #f2ede1 !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px) !important;
  background-size: 100% 3px !important;
  border-bottom: 3px double #2b2622 !important;
  box-shadow: 0 2px 0 #2b2622, 0 4px 8px rgba(43, 38, 34, 0.15) !important;
  font-family: Georgia, "Times New Roman", "Songti SC", serif !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ----- 底部输入区 #prompt-input ----- */
#prompt-input {
  background: #f2ede1 !important;
  border: 1px solid #2b2622 !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 0 3px #f2ede1,
    0 0 0 4px rgba(158, 27, 50, 0.35),
    0 12px 28px rgba(43, 38, 34, 0.18) !important;
  font-family: Georgia, "Times New Roman", "Songti SC", serif !important;
  overflow: visible !important;
}

#prompt-input [data-slot="input-group"] {
  background: #faf6ec !important;
  border: 1px solid rgba(43, 38, 34, 0.35) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#prompt-input [data-slot="input-group"]:focus-within {
  border-color: #9e1b32 !important;
  box-shadow: inset 0 -2px 0 #9e1b32 !important;
}

#prompt-input-header {
  background: #2b2622 !important;
  color: #faf6ec !important;
  border-bottom: 2px solid #9e1b32 !important;
  padding: 8px !important;
  gap: 6px !important;
}

#prompt-input-header button {
  background: #f2ede1 !important;
  color: #2b2622 !important;
  border: 1px solid rgba(242, 237, 225, 0.35) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "IBM Plex Mono", ui-monospace, "Courier New", monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
}

#prompt-input-header button:hover {
  background: #9e1b32 !important;
  color: #faf6ec !important;
  border-color: #9e1b32 !important;
}

#prompt-input-header button svg {
  color: currentColor !important;
}

#prompt-input [data-slot="input-group-control"],
#prompt-input textarea {
  background: transparent !important;
  color: #2b2622 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: Georgia, "Times New Roman", "Songti SC", serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

#prompt-input textarea::placeholder {
  color: #8a8274 !important;
  font-style: italic !important;
}

#prompt-input-footer {
  background: #ebe4d6 !important;
  border-top: 1px solid rgba(43, 38, 34, 0.28) !important;
  padding: 8px 10px !important;
  gap: 6px !important;
}

#prompt-input-footer button {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
}

#prompt-input-footer button:not([aria-label="发送"]) {
  background: #faf6ec !important;
  color: #2b2622 !important;
  border: 1px solid rgba(43, 38, 34, 0.35) !important;
}

#prompt-input-footer button:not([aria-label="发送"]):hover {
  border-color: #9e1b32 !important;
  color: #9e1b32 !important;
  background: #fffdf7 !important;
}

#prompt-input button[aria-label="发送"],
#prompt-input-footer button[aria-label="发送"] {
  background: #2b2622 !important;
  color: #faf6ec !important;
  border: 1px solid #2b2622 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(158, 27, 50, 0.45) !important;
}

#prompt-input button[aria-label="发送"]:hover,
#prompt-input-footer button[aria-label="发送"]:hover {
  background: #9e1b32 !important;
  border-color: #9e1b32 !important;
  color: #faf6ec !important;
}

#prompt-input button[aria-label="发送"] svg {
  color: #faf6ec !important;
}

/* =========================================================
 * 输入 / 输出气泡（平台 Message 壳，不是 .mufy_ai_message_bubble）
 * .mufy_* 由 内置CSS-英伦报纸.css 管；这里只打平台白圆角壳
 * ========================================================= */

/* 用户气泡：.is-user → MessageContent（bg-secondary + rounded-lg） */
.is-user > div[class*="group-[.is-user]"],
.is-user [class*="group-[.is-user]:bg-secondary"],
.is-user [class*="group-[.is-user]:rounded-lg"] {
  background: #f2ede1 !important;
  background-color: #f2ede1 !important;
  color: #2b2622 !important;
  border: 1px solid #2b2622 !important;
  border-radius: 0 !important;
  box-shadow: 0 6px 16px rgba(43, 38, 34, 0.12) !important;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif !important;
  overflow: visible !important;
}

/* AI 外层白壳：.is-assistant → MessageContent（bg-card + rounded-lg + border-muted）
   内联 style 也是 hsl(var(--card)/opacity)，必须用 !important 压掉 */
.is-assistant > div[class*="group-[.is-assistant]"],
.is-assistant [class*="group-[.is-assistant]:bg-card"],
.is-assistant [class*="group-[.is-assistant]:rounded-lg"],
.is-assistant .border.border-muted {
  background: #faf6ec !important;
  background-color: #faf6ec !important;
  color: #2b2622 !important;
  border: 1px solid #2b2622 !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 22px rgba(43, 38, 34, 0.12) !important;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif !important;
  overflow: visible !important;
}

/* 消息行外层圆角（scroll-mt）抹平 */
.group.scroll-mt-\[96px\].rounded-xl,
div.w-full.h-full.flex.group.rounded-xl {
  border-radius: 0 !important;
}

/* ----- 消息底部操作条：bg-muted rounded flex p-0.5 ----- */
div.bg-muted.rounded.flex,
.is-user ~ div .bg-muted.rounded.flex,
.is-assistant ~ div .bg-muted.rounded.flex,
div.flex.items-center.gap-1 .bg-muted.rounded.flex {
  background: #faf6ec !important;
  border: 1px solid #2b2622 !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 12px rgba(43, 38, 34, 0.1) !important;
  padding: 2px !important;
}

div.bg-muted.rounded.flex > button,
div.bg-muted.rounded.flex button {
  border-radius: 0 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #2b2622 !important;
  box-shadow: none !important;
}

div.bg-muted.rounded.flex > button:hover,
div.bg-muted.rounded.flex button:hover,
div.bg-muted.rounded.flex button.hover\:bg-card\/80:hover {
  background: rgba(43, 38, 34, 0.06) !important;
  border-color: rgba(43, 38, 34, 0.25) !important;
  color: #9e1b32 !important;
}

div.bg-muted.rounded.flex button svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* 聊天主区浅底 */
.w-full.h-full.relative.bg-background {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(242, 237, 225, 0.9), transparent 60%),
    #e8e0ce !important;
}

/**
 * 《贪官模拟器》· 隐藏思维链 · think
 * 隐藏回复中的 <think>...</think>（及内部 .tkb）
 *
 * 用法：追加粘贴到平台「内置CSS」末尾
 *       （可接在 内置CSS-英伦报纸.css / 平台输入栏-英伦报纸.css 之后）
 * 不修改其它 CSS 原文件。
 */

think,
.mufy_ai_message_bubble think {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

think .tkb,
.mufy_ai_message_bubble think .tkb,
.tkb {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
