/**
 * 《沈氏庄园·私人诊疗》· Reply UI
 * 结构严格参考《重生为女儿的同桌》· 快捷栏 5 tab · 线索簿三态模糊 · 私密状态
 * 四值进度条：好感 fv(红) / 攻略 cm(酒红) / 觉察 al(琥珀) / 绿帽 nt(青绿)
 * MUFY / rilichat 通用 · 正文须用 div.tx · 禁止 @import
 */

:root {
  --ub-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ub-cream: #faf6f0;
  --ub-paper: #fffdf9;
  --ub-ink: #3d3835;
  --ub-muted: #8a8279;
  --ub-line: #ebe4da;
  --ub-teal: #7ec8c8;
  --ub-teal-d: #5aadad;
  --ub-rose: #f0a8b8;
  --ub-rose-d: #e892a4;
  --ub-mint: #a8d5ba;
  --ub-sky: #9ec5e8;
  --ub-peach: #f5c9a8;
  --ub-lilac: #c4b5e8;
  --ub-shadow: 0 6px 20px rgba(61, 56, 53, 0.08);
  --ub-shadow-soft: 0 2px 10px rgba(61, 56, 53, 0.06);
  --ub-radius: 18px;
  --ub-radius-sm: 12px;
  --desk-font: var(--ub-font);
  --desk-serif: "Songti SC", "Noto Serif SC", SimSun, serif;
  --desk-cream: var(--ub-cream);
  --desk-paper: var(--ub-paper);
  --desk-ink: var(--ub-ink);
  --desk-muted: var(--ub-muted);
  --desk-dim: #a89888;
  --desk-line: var(--ub-line);
  --desk-line-bright: #dce8e4;
  --desk-teal: var(--ub-teal-d);
  --desk-rose: var(--ub-rose-d);
  --desk-shadow: var(--ub-shadow);
  --desk-radius: var(--ub-radius);
  --desk-radius-sm: var(--ub-radius-sm);
}
img[src="/chat-star.png"],
img[src*="chat-star.png"] {
  display: none !important;
}

/* MUFY 气泡：透明壳，样式写在内部区块 */
.mufy_ai_message_bubble {
  color: var(--ub-ink) !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  font-family: var(--ub-font) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

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

.mufy_ai_message_bubble * {
  box-sizing: border-box;
}

/* 思维链：只隐藏 .thinking-body，勿对 redacted_thinking 本身 display:none（防闭合标签解析失败时误吞正文） */
redacted_thinking,
.mufy_ai_message_bubble redacted_thinking {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.thinking-body,
redacted_thinking .thinking-body,
.mufy_ai_message_bubble redacted_thinking .thinking-body,
.mufy_ai_message_bubble .thinking-body {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 兼容旧输出：无 thinking-body 包裹时仍隐藏整段思维链 */
redacted_thinking:not(:has(.thinking-body)),
.mufy_ai_message_bubble redacted_thinking:not(:has(.thinking-body)) {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

think,
.thinking,
reasoning,
[thinking] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

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

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

/* ========== 顶栏 · dt（都市公告板） ========== */
.dt,
div.dt,
.mufy_ai_message_bubble .dt {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  background: #fffdf9 !important;
  border: 2px solid #dce8e4 !important;
  border-radius: var(--ub-radius) !important;
  box-shadow: var(--ub-shadow) !important;
  overflow: hidden !important;
  max-width: 100% !important;
}

details.dti,
.mufy_ai_message_bubble details.dti {
  grid-row: 1 !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 8px 8px 10px !important;
  border: none !important;
  background: transparent !important;
  min-width: 0 !important;
  overflow: visible !important;
}

details.dti:nth-of-type(1),
.mufy_ai_message_bubble details.dti:nth-of-type(1) {
  grid-column: 1 !important;
}

details.dti:nth-of-type(2),
.mufy_ai_message_bubble details.dti:nth-of-type(2) {
  grid-column: 2 !important;
}

summary.dtt,
.mufy_ai_message_bubble summary.dtt {
  display: block !important;
  margin: 0 !important;
  padding: 10px 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  color: #8a7268 !important;
  background: #faf6f0 !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  list-style: none !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

summary.dtt::after,
.mufy_ai_message_bubble summary.dtt::after {
  display: none !important;
  content: none !important;
}

details.dti[open] > summary.dtt,
.mufy_ai_message_bubble details.dti[open] > summary.dtt {
  color: #ffffff !important;
  background: linear-gradient(90deg, #4a9e9e 0%, #6eb8c4 40%, #d88098 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(90, 173, 173, 0.35) !important;
}

.dtp,
div.dtp,
.mufy_ai_message_bubble .dtp {
  box-sizing: border-box !important;
  margin-top: 8px !important;
  padding: 12px !important;
  background: #faf6f0 !important;
  border: 1px solid #ebe4da !important;
  border-radius: var(--ub-radius-sm) !important;
}

details.dti:nth-of-type(1)[open] > .dtp,
.mufy_ai_message_bubble details.dti:nth-of-type(1)[open] > .dtp {
  width: calc(300% + 16px) !important;
  max-width: calc(300% + 16px) !important;
  margin-left: 0 !important;
}

details.dti:nth-of-type(2)[open] > .dtp,
.mufy_ai_message_bubble details.dti:nth-of-type(2)[open] > .dtp {
  width: calc(150% + 8px) !important;
  max-width: calc(150% + 8px) !important;
  margin-left: calc(-50% - 8px) !important;
}

.tkl,
p.tkl,
.mufy_ai_message_bubble .tkl {
  margin: 0 0 6px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #6b635b !important;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace !important;
  background: #fffef8 !important;
  border-bottom: 1px dashed #e8dfd4 !important;
  border-radius: 6px !important;
}

.tkl:last-child,
.mufy_ai_message_bubble .tkl:last-child {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.scl,
p.scl,
.mufy_ai_message_bubble .scl {
  margin: 0 0 8px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #2d2825 !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  border: 1px solid #ebe4da !important;
  border-radius: 10px !important;
}

.scl:last-child,
.mufy_ai_message_bubble .scl:last-child {
  margin-bottom: 0 !important;
}

.scb lo,
.mufy_ai_message_bubble .scb lo {
  color: var(--ub-teal-d) !important;
  font-weight: 600 !important;
}

.scb tm,
.mufy_ai_message_bubble .scb tm {
  color: #b45a8a !important;
  font-weight: 600 !important;
}

.scb we,
.mufy_ai_message_bubble .scb we {
  color: #5a8ab4 !important;
  font-weight: 600 !important;
}

.scb scn,
.mufy_ai_message_bubble .scb scn {
  color: #7a6b8a !important;
  font-weight: 600 !important;
}

.scb lo,
.scb tm,
.scb we,
.scb scn,
.mufy_ai_message_bubble .scb lo,
.mufy_ai_message_bubble .scb tm,
.mufy_ai_message_bubble .scb we,
.mufy_ai_message_bubble .scb scn {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* ========== 正文 · tx（横线便签） ========== */
.tx,
div.tx,
.mufy_ai_message_bubble .tx,
.mufy_ai_message_bubble div.tx {
  display: block !important;
  position: relative !important;
  margin: 0 0 14px !important;
  padding: 16px 20px 20px !important;
  background-color: #fffef8 !important;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    #e8e0d4 31px,
    #e8e0d4 32px
  ) !important;
  background-position: 0 52px !important;
  border: 2px solid #e8dfd4 !important;
  border-radius: var(--ub-radius) !important;
  box-shadow: var(--ub-shadow) !important;
  text-align: left !important;
  font-family: var(--ub-font) !important;
  color: #2d2825 !important;
  line-height: 1.75 !important;
  overflow: hidden !important;
}

.txh,
.mufy_ai_message_bubble .txh {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.tx::after,
div.tx::after,
.mufy_ai_message_bubble .tx::after {
  content: "" !important;
  position: absolute !important;
  top: 10px !important;
  right: 14px !important;
  width: 52px !important;
  height: 18px !important;
  background: linear-gradient(135deg, rgba(255, 220, 120, 0.55), rgba(255, 200, 100, 0.35)) !important;
  border-radius: 2px !important;
  transform: rotate(8deg) !important;
  pointer-events: none !important;
}

.stg,
span.stg,
.mufy_ai_message_bubble .stg {
  display: inline-block !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f0a8b8, #e892a4) !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 6px rgba(232, 146, 164, 0.35) !important;
  vertical-align: middle !important;
}

.tx p,
div.tx p,
.mufy_ai_message_bubble .tx p {
  display: block !important;
  margin: 0 0 1.15em !important;
  padding: 0 !important;
  text-indent: 2em !important;
  line-height: 1.85 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #2d2825 !important;
  background: transparent !important;
}

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

.tx em,
.tx i,
.mufy_ai_message_bubble .tx em {
  color: #884858 !important;
  font-style: italic !important;
}

/* ========== 底栏容器 ========== */
sb,
.mufy_ai_message_bubble sb {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* 钉便签卡 · 底栏独立区块（记忆回廊 / 行动建议） */
sb > details.tp,
sb > .mm,
.mufy_ai_message_bubble sb > details.tp,
.mufy_ai_message_bubble sb > .mm {
  position: relative !important;
  margin: 0 0 12px !important;
  padding-top: 8px !important;
  background: #fffdf9 !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: var(--ub-radius-sm) !important;
  box-shadow: var(--ub-shadow-soft) !important;
  overflow: visible !important;
}

sb > details.tp::before,
sb > .mm::before,
.mufy_ai_message_bubble sb > details.tp::before,
.mufy_ai_message_bubble sb > .mm::before {
  content: "" !important;
  position: absolute !important;
  top: -2px !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: -6px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #ffe082, #f5a623) !important;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  z-index: 2 !important;
}

sb > .mm::before,
.mufy_ai_message_bubble sb > .mm::before {
  background: radial-gradient(circle at 35% 35%, #b8e0f0, #5aadad) !important;
}

sb > details.tp::before,
.mufy_ai_message_bubble sb > details.tp::before {
  background: radial-gradient(circle at 35% 35%, #ffb4c4, #e85a7a) !important;
}

/* ========== 手风琴 · ac（5 tab 一行 · 同京都 home-acc） ========== */
.ac,
.desk-quick,
div.ac,
div.desk-quick,
.mufy_ai_message_bubble .ac,
.mufy_ai_message_bubble .desk-quick {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 10px !important;
  margin: 0 0 12px !important;
  background: #fffdf9 !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: var(--ub-radius-sm) !important;
  box-shadow: var(--ub-shadow-soft) !important;
  max-width: 100% !important;
  overflow: visible !important;
}

details.aci,
details.desk-quick__item,
.mufy_ai_message_bubble details.aci,
.mufy_ai_message_bubble details.desk-quick__item {
  grid-row: 1 !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-width: 0 !important;
  overflow: visible !important;
}

details.aci:nth-of-type(1),
details.desk-quick__item:nth-of-type(1),
.mufy_ai_message_bubble details.aci:nth-of-type(1),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(1) {
  grid-column: 1 !important;
}

details.aci:nth-of-type(2),
details.desk-quick__item:nth-of-type(2),
.mufy_ai_message_bubble details.aci:nth-of-type(2),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(2) {
  grid-column: 2 !important;
}

details.aci:nth-of-type(3),
details.desk-quick__item:nth-of-type(3),
.mufy_ai_message_bubble details.aci:nth-of-type(3),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(3) {
  grid-column: 3 !important;
}

details.aci:nth-of-type(4),
details.desk-quick__item:nth-of-type(4),
.mufy_ai_message_bubble details.aci:nth-of-type(4),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(4) {
  grid-column: 4 !important;
}

details.aci:nth-of-type(5),
details.desk-quick__item:nth-of-type(5),
.mufy_ai_message_bubble details.aci:nth-of-type(5),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(5) {
  grid-column: 5 !important;
}

summary.act,
summary.desk-quick__tab,
.mufy_ai_message_bubble summary.act,
.mufy_ai_message_bubble summary.desk-quick__tab {
  display: block !important;
  position: relative !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 9px 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  color: #8a7268 !important;
  background: #faf6f0 !important;
  border: 1.5px solid #ebe4da !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  list-style: none !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

summary.act::after,
summary.desk-quick__tab::after,
.mufy_ai_message_bubble summary.act::after,
.mufy_ai_message_bubble summary.desk-quick__tab::after {
  display: none !important;
  content: none !important;
}

details.aci[open] > summary.act,
details.desk-quick__item[open] > summary.desk-quick__tab,
.mufy_ai_message_bubble details.aci[open] > summary.act,
.mufy_ai_message_bubble details.desk-quick__item[open] > summary.desk-quick__tab {
  color: #ffffff !important;
  background: linear-gradient(90deg, #4a9e9e 0%, #6eb8c4 45%, #d88098 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 3px 12px rgba(90, 173, 173, 0.3) !important;
}

.acp,
.desk-quick__panel,
div.acp,
div.desk-quick__panel,
.mufy_ai_message_bubble .acp,
.mufy_ai_message_bubble .desk-quick__panel {
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 8px !important;
  padding: 10px !important;
  background: linear-gradient(180deg, #fffcfa 0%, #fff8f2 100%) !important;
  border: 1px solid #ebe4da !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 8px rgba(61, 56, 53, 0.05) !important;
  max-height: none !important;
  overflow: visible !important;
}

details.aci:nth-of-type(1)[open] > .acp,
details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.aci:nth-of-type(1)[open] > .acp,
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel {
  width: calc(500% + 24px) !important;
  max-width: calc(500% + 24px) !important;
  margin-left: 0 !important;
}

details.aci:nth-of-type(2)[open] > .acp,
details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.aci:nth-of-type(2)[open] > .acp,
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel {
  width: calc(500% + 24px) !important;
  max-width: calc(500% + 24px) !important;
  margin-left: calc(-100% - 6px) !important;
}

details.aci:nth-of-type(3)[open] > .acp,
details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.aci:nth-of-type(3)[open] > .acp,
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel {
  width: calc(500% + 24px) !important;
  max-width: calc(500% + 24px) !important;
  margin-left: calc(-200% - 12px) !important;
}

details.aci:nth-of-type(4)[open] > .acp,
details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.aci:nth-of-type(4)[open] > .acp,
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel {
  width: calc(500% + 24px) !important;
  max-width: calc(500% + 24px) !important;
  margin-left: calc(-300% - 18px) !important;
}

details.aci:nth-of-type(5)[open] > .acp,
details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.aci:nth-of-type(5)[open] > .acp,
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel {
  width: calc(500% + 24px) !important;
  max-width: calc(500% + 24px) !important;
  margin-left: calc(-400% - 24px) !important;
}

/* ==== 标签数自适应：暗档隐藏时按 4/3 个标签铺满整行（需浏览器支持 :has，旧内核回退为 5 列） ==== */
/* 4 个标签 */
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) > details.aci[open] > .acp {
  width: calc(400% + 18px) !important;
  max-width: calc(400% + 18px) !important;
}
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) > details.aci:nth-of-type(1)[open] > .acp { margin-left: 0 !important; }
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) > details.aci:nth-of-type(2)[open] > .acp { margin-left: calc(-100% - 6px) !important; }
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) > details.aci:nth-of-type(3)[open] > .acp { margin-left: calc(-200% - 12px) !important; }
.ac:has(> details.aci:nth-of-type(4)):not(:has(> details.aci:nth-of-type(5))) > details.aci:nth-of-type(4)[open] > .acp { margin-left: calc(-300% - 18px) !important; }
/* 3 个标签 */
.ac:has(> details.aci:nth-of-type(3)):not(:has(> details.aci:nth-of-type(4))) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.ac:has(> details.aci:nth-of-type(3)):not(:has(> details.aci:nth-of-type(4))) > details.aci[open] > .acp {
  width: calc(300% + 12px) !important;
  max-width: calc(300% + 12px) !important;
}
.ac:has(> details.aci:nth-of-type(3)):not(:has(> details.aci:nth-of-type(4))) > details.aci:nth-of-type(1)[open] > .acp { margin-left: 0 !important; }
.ac:has(> details.aci:nth-of-type(3)):not(:has(> details.aci:nth-of-type(4))) > details.aci:nth-of-type(2)[open] > .acp { margin-left: calc(-100% - 6px) !important; }
.ac:has(> details.aci:nth-of-type(3)):not(:has(> details.aci:nth-of-type(4))) > details.aci:nth-of-type(3)[open] > .acp { margin-left: calc(-200% - 12px) !important; }

.ro,
div.ro,
.mufy_ai_message_bubble .ro {
  padding: 4px 0 6px !important;
  background: transparent !important;
}

/* profile / player */
.pb,
div.pb,
.mufy_ai_message_bubble .pb {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  overflow: hidden !important;
}

.pbt,
p.pbt,
.mufy_ai_message_bubble .pbt {
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: #8a7268 !important;
  border-bottom: 1px dashed #ebe0d6 !important;
  background: transparent !important;
}

.plb,
div.plb,
.mufy_ai_message_bubble .plb {
  padding: 0 !important;
  background: linear-gradient(180deg, #fffcfa 0%, #fff8f2 100%) !important;
  border: 1px solid #ebe4da !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.plb .pb + .pb,
.mufy_ai_message_bubble .plb .pb + .pb {
  border-top: 1px dashed #ebe0d6 !important;
}

.profile-basic,
div.profile-basic,
.mufy_ai_message_bubble .profile-basic {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.profile-basic__info,
div.profile-basic__info,
.mufy_ai_message_bubble .profile-basic__info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.profile-portrait,
div.profile-portrait,
.mufy_ai_message_bubble .profile-portrait {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 168px !important;
  max-width: 36vw !important;
  aspect-ratio: 9 / 12 !important;
  margin: 10px 12px 10px 4px !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8f2ec 100%) !important;
  border: 2px dashed #d8cfc4 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.profile-portrait__ph,
span.profile-portrait__ph,
.mufy_ai_message_bubble .profile-portrait__ph {
  position: absolute !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  color: #c4b8ac !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.profile-portrait__img,
img.profile-portrait__img,
.mufy_ai_message_bubble .profile-portrait__img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 10px !important;
}

/* ========== hc ========== */
.hc,
div.hc,
.mufy_ai_message_bubble .hc {
  padding: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(61, 56, 53, 0.06) !important;
}

.hch,
div.hch,
.mufy_ai_message_bubble .hch {
  padding: 14px 16px 10px !important;
  background: linear-gradient(90deg, #ffe8ec, #fff0f2) !important;
  border-bottom: 1px dashed #ebe0d6 !important;
}

.hcn,
p.hcn,
.mufy_ai_message_bubble .hcn {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #d87088 !important;
  letter-spacing: 0.04em !important;
}

.hcg,
span.hcg,
.mufy_ai_message_bubble .hcg {
  color: #8a7268 !important;
  font-size: 16px !important;
}

.hgr,
div.hgr,
.mufy_ai_message_bubble .hgr {
  padding: 4px 0 !important;
  border-bottom: 1px dashed #ebe0d6 !important;
}

.hcb,
div.hcb,
.mufy_ai_message_bubble .hcb {
  padding: 8px 0 !important;
  background: #fffef8 !important;
  border-bottom: 1px dashed #ebe0d6 !important;
}

.hcc,
div.hcc,
.mufy_ai_message_bubble .hcc {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 12px 14px !important;
}

.hp,
div.hp,
.mufy_ai_message_bubble .hp {
  flex: 1 1 calc(50% - 8px) !important;
  min-width: 120px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: #faf6f0 !important;
  border: 1px solid #ebe4da !important;
}

.hps,
.mufy_ai_message_bubble .hps {
  background: #fff9f0 !important;
  border-color: #f0e0c0 !important;
}

.hpg,
.mufy_ai_message_bubble .hpg {
  background: #f5faf6 !important;
  border-color: #c8e8d4 !important;
}

.hpd,
.mufy_ai_message_bubble .hpd {
  opacity: 0.88 !important;
}

.hpl,
span.hpl,
.mufy_ai_message_bubble .hpl {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #8a7268 !important;
}

.hpv,
span.hpv,
.mufy_ai_message_bubble .hpv {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #4a4540 !important;
}

.hcq,
p.hcq,
.mufy_ai_message_bubble .hcq {
  margin: 0 !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-style: italic !important;
  color: #884858 !important;
  background: #fff8f2 !important;
  border-top: 1px dashed #ebe0d6 !important;
  border-bottom: none !important;
}

/* ========== 私密状态 · im（可折叠 · 默认收起） ========== */
details.im,
.im,
div.im,
.mufy_ai_message_bubble details.im,
.mufy_ai_message_bubble .im {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-top: 1px dashed #ebe0d6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

summary.imh,
.imh,
p.imh,
.mufy_ai_message_bubble summary.imh,
.mufy_ai_message_bubble .imh {
  display: block !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #d87088 !important;
  background: linear-gradient(90deg, #ffe8ec 0%, #fff5f0 100%) !important;
  border-bottom: none !important;
  cursor: pointer !important;
  list-style: none !important;
  user-select: none !important;
}

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

details.im[open] > summary.imh,
.mufy_ai_message_bubble details.im[open] > summary.imh {
  border-bottom: 1px dashed #ebe0d6 !important;
}

summary.imh::after,
.mufy_ai_message_bubble summary.imh::after {
  content: "▸" !important;
  float: right !important;
  font-size: 11px !important;
  color: #d87088 !important;
  opacity: 0.65 !important;
  transition: transform 0.2s ease !important;
}

details.im[open] > summary.imh::after,
.mufy_ai_message_bubble details.im[open] > summary.imh::after {
  transform: rotate(90deg) !important;
}

.imb,
span.imb,
.mufy_ai_message_bubble .imb {
  display: inline-block !important;
  margin-left: 6px !important;
  padding: 1px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #e892a4, #d87088) !important;
  border-radius: 4px !important;
  vertical-align: middle !important;
}

.imd,
div.imd,
.mufy_ai_message_bubble .imd {
  padding: 4px 0 6px !important;
}

it.imi,
.mufy_ai_message_bubble it.imi {
  align-items: stretch !important;
  padding: 8px 12px !important;
}

it.imi lb,
.mufy_ai_message_bubble it.imi lb {
  min-width: 44px !important;
  color: #ffffff !important;
  background: #d87088 !important;
  background-color: #d87088 !important;
  border-color: transparent !important;
  transform: rotate(0deg) !important;
}

it.imi vl,
.mufy_ai_message_bubble it.imi vl {
  padding: 6px 10px !important;
  color: #5a4548 !important;
  background-color: #fff5f0 !important;
  border: 1px solid #f0e0e4 !important;
  border-radius: 6px !important;
}

/* ========== 清仪的手账本 · jn ========== */
details.jn,
.mufy_ai_message_bubble details.jn {
  overflow: visible !important;
}

.jnp,
.desk-frag__panel,
div.jnp,
div.desk-frag__panel,
.mufy_ai_message_bubble .jnp,
.mufy_ai_message_bubble .desk-frag__panel {
  padding: 10px 8px 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.jnk,
div.jnk,
.mufy_ai_message_bubble .jnk {
  position: relative !important;
  padding: 14px 16px 16px 36px !important;
  background-color: #fff9f0 !important;
  background-image:
    repeating-linear-gradient(
      transparent,
      transparent 25px,
      rgba(200, 188, 168, 0.35) 26px
    ),
    linear-gradient(90deg, #f0e4d8 0, #f0e4d8 28px, transparent 28px) !important;
  border: 1px solid #d4c8b8 !important;
  border-radius: 4px 14px 14px 4px !important;
  box-shadow:
    inset 3px 0 8px rgba(180, 160, 140, 0.15),
    2px 4px 14px rgba(61, 56, 53, 0.1) !important;
  overflow: hidden !important;
}

.jnk::before,
.mufy_ai_message_bubble .jnk::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  bottom: 8px !important;
  left: 14px !important;
  width: 2px !important;
  background: repeating-linear-gradient(
    180deg,
    #c4a882 0,
    #c4a882 6px,
    transparent 6px,
    transparent 14px
  ) !important;
  opacity: 0.55 !important;
}

.jnc,
p.jnc,
.mufy_ai_message_bubble .jnc {
  margin: 0 0 12px !important;
  padding: 0 0 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  color: #6b5344 !important;
  border-bottom: 2px double #d4c8b8 !important;
}

.jns,
span.jns,
.mufy_ai_message_bubble .jns {
  display: inline-block !important;
  margin-left: 6px !important;
  padding: 1px 5px !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
  background: #c48848 !important;
  border: 1px solid #a86830 !important;
  border-radius: 3px !important;
  transform: rotate(-8deg) !important;
  vertical-align: middle !important;
}

.jl,
.frag-grid,
div.jl,
div.frag-grid,
.mufy_ai_message_bubble .jl,
.mufy_ai_message_bubble .frag-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.je,
.frag-item,
article.je,
div.frag-item,
.mufy_ai_message_bubble .je,
.mufy_ai_message_bubble .frag-item {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 10px 4px 12px !important;
  border: none !important;
  border-bottom: 1px dashed #ddd0c0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}

.je:last-child,
.frag-item:last-child,
.mufy_ai_message_bubble .je:last-child,
.mufy_ai_message_bubble .frag-item:last-child {
  border-bottom: none !important;
  padding-bottom: 4px !important;
}

.jeo,
.frag-item--on,
.mufy_ai_message_bubble .jeo,
.mufy_ai_message_bubble .frag-item--on {
  opacity: 1 !important;
}

.jeh,
.frag-item--hint,
.mufy_ai_message_bubble .jeh,
.mufy_ai_message_bubble .frag-item--hint {
  opacity: 1 !important;
}

.jef,
.frag-item--off,
.mufy_ai_message_bubble .jef,
.mufy_ai_message_bubble .frag-item--off {
  opacity: 0.92 !important;
  min-height: 36px !important;
}

.jed,
p.jed,
.mufy_ai_message_bubble .jed {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: #a89888 !important;
}

.jet,
p.jet,
.frag-item__title,
span.frag-item__title,
.mufy_ai_message_bubble .jet,
.mufy_ai_message_bubble .frag-item__title {
  display: none !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #5a4540 !important;
  line-height: 1.45 !important;
}

.jex,
p.jex,
.mufy_ai_message_bubble .jex {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: 1.65 !important;
  color: #4a4440 !important;
  letter-spacing: 0.02em !important;
}

.jei,
p.jei,
.frag-item__hint,
span.frag-item__hint,
.mufy_ai_message_bubble .jei,
.mufy_ai_message_bubble .frag-item__hint {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  line-height: 1.55 !important;
  color: #6b635b !important;
  letter-spacing: 0.04em !important;
}

.jeo .jed,
.mufy_ai_message_bubble .jeo .jed {
  color: #5aadad !important;
}

.jeo .jet,
.mufy_ai_message_bubble .jeo .jet {
  display: block !important;
}

.jeo .jex,
.mufy_ai_message_bubble .jeo .jex {
  display: block !important;
}

.jeo .jei,
.mufy_ai_message_bubble .jeo .jei {
  display: none !important;
}

.jeh .jed,
.mufy_ai_message_bubble .jeh .jed {
  color: #c48848 !important;
}

.jeh .jet,
.jeh .jex,
.mufy_ai_message_bubble .jeh .jet,
.mufy_ai_message_bubble .jeh .jex {
  display: block !important;
}

.jeh .jei:not(:empty),
.frag-item--hint .frag-item__hint:not(:empty),
.mufy_ai_message_bubble .jeh .jei:not(:empty),
.mufy_ai_message_bubble .frag-item--hint .frag-item__hint:not(:empty) {
  display: block !important;
}

.jef .jed,
.jef .jet,
.jef .jex,
.jef .jei,
.frag-item--off .frag-item__title,
.frag-item--off .frag-item__hint,
.mufy_ai_message_bubble .jef .jed,
.mufy_ai_message_bubble .jef .jet,
.mufy_ai_message_bubble .jef .jex,
.mufy_ai_message_bubble .jef .jei,
.mufy_ai_message_bubble .frag-item--off .frag-item__title,
.mufy_ai_message_bubble .frag-item--off .frag-item__hint {
  display: none !important;
}

.jef::after,
.frag-item--off::after,
.mufy_ai_message_bubble .jef::after,
.mufy_ai_message_bubble .frag-item--off::after {
  content: "此事尚未查明 · 线索模糊难辨" !important;
  display: block !important;
  font-size: 12px !important;
  font-style: italic !important;
  line-height: 1.6 !important;
  letter-spacing: 0.06em !important;
  color: #9a9088 !important;
  filter: blur(5px) !important;
  opacity: 0.75 !important;
  user-select: none !important;
}

/* ==== 暗档条目：正文默认模糊，点击（聚焦）/悬停后浮现（已揭发全文 + 有线索片段均可浮现） ==== */
.je.jeo,
.je.jeh,
.mufy_ai_message_bubble .je.jeo,
.mufy_ai_message_bubble .je.jeh {
  cursor: pointer !important;
  outline: none !important;
}
.jeo .jet,
.jeo .jex,
.jeh .jet,
.jeh .jex,
.jeh .jei,
.mufy_ai_message_bubble .jeo .jet,
.mufy_ai_message_bubble .jeo .jex,
.mufy_ai_message_bubble .jeh .jet,
.mufy_ai_message_bubble .jeh .jex,
.mufy_ai_message_bubble .jeh .jei {
  filter: blur(5px) !important;
  opacity: 0.9 !important;
  user-select: none !important;
  transition: filter 0.28s ease, opacity 0.28s ease !important;
}
.jeo:hover .jet, .jeo:hover .jex,
.jeo:focus .jet, .jeo:focus .jex,
.jeo:focus-within .jet, .jeo:focus-within .jex,
.jeo:active .jet, .jeo:active .jex,
.jeh:hover .jet, .jeh:hover .jex, .jeh:hover .jei,
.jeh:focus .jet, .jeh:focus .jex, .jeh:focus .jei,
.jeh:focus-within .jet, .jeh:focus-within .jex, .jeh:focus-within .jei,
.jeh:active .jet, .jeh:active .jex, .jeh:active .jei,
.mufy_ai_message_bubble .jeo:hover .jet, .mufy_ai_message_bubble .jeo:hover .jex,
.mufy_ai_message_bubble .jeo:focus .jet, .mufy_ai_message_bubble .jeo:focus .jex,
.mufy_ai_message_bubble .jeo:focus-within .jet, .mufy_ai_message_bubble .jeo:focus-within .jex,
.mufy_ai_message_bubble .jeo:active .jet, .mufy_ai_message_bubble .jeo:active .jex,
.mufy_ai_message_bubble .jeh:hover .jet, .mufy_ai_message_bubble .jeh:hover .jex, .mufy_ai_message_bubble .jeh:hover .jei,
.mufy_ai_message_bubble .jeh:focus .jet, .mufy_ai_message_bubble .jeh:focus .jex, .mufy_ai_message_bubble .jeh:focus .jei,
.mufy_ai_message_bubble .jeh:focus-within .jet, .mufy_ai_message_bubble .jeh:focus-within .jex, .mufy_ai_message_bubble .jeh:focus-within .jei,
.mufy_ai_message_bubble .jeh:active .jet, .mufy_ai_message_bubble .jeh:active .jex, .mufy_ai_message_bubble .jeh:active .jei {
  filter: none !important;
  opacity: 1 !important;
  user-select: auto !important;
}
.jeo::after,
.jeh::after,
.mufy_ai_message_bubble .jeo::after,
.mufy_ai_message_bubble .jeh::after {
  content: "🔒 点击浮现" !important;
  display: block !important;
  margin-top: 6px !important;
  font-size: 10px !important;
  font-style: normal !important;
  letter-spacing: 0.1em !important;
  color: #b0a596 !important;
}
.jeo:hover::after, .jeo:focus::after, .jeo:focus-within::after, .jeo:active::after,
.jeh:hover::after, .jeh:focus::after, .jeh:focus-within::after, .jeh:active::after,
.mufy_ai_message_bubble .jeo:hover::after,
.mufy_ai_message_bubble .jeo:focus::after,
.mufy_ai_message_bubble .jeo:focus-within::after,
.mufy_ai_message_bubble .jeo:active::after,
.mufy_ai_message_bubble .jeh:hover::after,
.mufy_ai_message_bubble .jeh:focus::after,
.mufy_ai_message_bubble .jeh:focus-within::after,
.mufy_ai_message_bubble .jeh:active::after {
  content: "🔓 已浮现" !important;
  color: #5aadad !important;
}

/* 旧版 frag 编号/状态 · 兼容 */
.frag-item__no,
span.frag-item__no,
.mufy_ai_message_bubble .frag-item__no {
  display: none !important;
}

.frag-item--on .frag-item__title,
.mufy_ai_message_bubble .frag-item--on .frag-item__title {
  display: block !important;
}

.frag-item__state,
span.frag-item__state,
.mufy_ai_message_bubble .frag-item__state {
  display: none !important;
}

.acp.wmp,
.desk-quick__panel.wmp,
.mufy_ai_message_bubble .acp.wmp,
.mufy_ai_message_bubble .desk-quick__panel.wmp {
  padding: 12px 10px 14px !important;
  background: linear-gradient(180deg, #f5e8e4 0%, #faf0ec 100%) !important;
}

/* ========== 记忆回廊 · mm ========== */
.mm,
div.mm,
.mufy_ai_message_bubble .mm {
  overflow: hidden !important;
}

.msb,
div.msb,
.mufy_ai_message_bubble .msb {
  padding: 8px 10px 10px !important;
}

details.mm > summary.mmh,
summary.mmh,
.mufy_ai_message_bubble details.mm > summary.mmh {
  list-style: none !important;
  padding: 16px 40px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-align: center !important;
  color: #5aadad !important;
  text-shadow: 1px 1px 0 #ffffff, 0 2px 8px rgba(90, 173, 173, 0.25) !important;
  background: linear-gradient(135deg, #fffdf9 0%, #f0faf8 50%, #fff5f0 100%) !important;
  cursor: pointer !important;
}

details.mm[open] > summary.mmh,
.mufy_ai_message_bubble details.mm[open] > summary.mmh {
  border-bottom: 1px dashed #ddd4c8 !important;
}

.mmp,
div.mmp,
.mufy_ai_message_bubble .mmp {
  padding: 12px 14px 14px !important;
  background: linear-gradient(180deg, #faf6f0 0%, #fffdf9 100%) !important;
}

.mmp details,
.mufy_ai_message_bubble .mmp details {
  margin: 0 0 10px !important;
  border: 1px solid #ebe4da !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.mmp details > summary,
.mufy_ai_message_bubble .mmp details > summary {
  padding: 9px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8a7268 !important;
  background: #fffaf6 !important;
  cursor: pointer !important;
}

.mmp details[open] > summary,
.mufy_ai_message_bubble .mmp details[open] > summary {
  border-bottom: 1px dashed #ebe0d6 !important;
}

/* 记忆分区标题 · LTM/STM */
.mh,
p.mh,
.mufy_ai_message_bubble .mh {
  margin: 8px 0 5px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  color: #b0873a !important;
  text-shadow: 0 1px 0 #fffdf9 !important;
}

.msep,
p.msep,
.mufy_ai_message_bubble .msep {
  margin: 8px 0 4px !important;
  text-align: center !important;
  font-size: 10px !important;
  letter-spacing: 0.35em !important;
  color: #d8cbb8 !important;
}

/* 记忆表格 · No./Time/Scene/Event */
.mtb,
table.mtb,
.mufy_ai_message_bubble .mtb {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  margin: 2px 0 8px !important;
  font-size: 11px !important;
  background: #fffdf9 !important;
  border: 1px solid #ebe4da !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.mtb th,
.mufy_ai_message_bubble .mtb th {
  padding: 5px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  text-align: left !important;
  background: linear-gradient(90deg, #5aadad 0%, #d88098 100%) !important;
}

.mtb td,
.mufy_ai_message_bubble .mtb td {
  padding: 5px 7px !important;
  border-top: 1px solid #f0e8de !important;
  color: #4a4440 !important;
  line-height: 1.55 !important;
  vertical-align: top !important;
  word-break: break-word !important;
}

.mtb th:nth-child(1),
.mtb td:nth-child(1),
.mufy_ai_message_bubble .mtb td:nth-child(1) {
  width: 9% !important;
  text-align: center !important;
  color: #a89888 !important;
}
.mtb th:nth-child(2),
.mtb td:nth-child(2) { width: 22% !important; }
.mtb th:nth-child(3),
.mtb td:nth-child(3) { width: 21% !important; }
.mtb th:nth-child(4),
.mtb td:nth-child(4) { width: 48% !important; }

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

/* ========== 行动建议 · tp ========== */
details.tp,
.mufy_ai_message_bubble details.tp {
  overflow: hidden !important;
}

details.tp > summary.tph,
summary.tph,
.mufy_ai_message_bubble details.tp > summary.tph {
  list-style: none !important;
  padding: 16px 40px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-align: center !important;
  color: #b4883a !important;
  text-shadow: 1px 1px 0 #ffffff !important;
  background: linear-gradient(135deg, #fffdf9 0%, #fff8e8 50%, #fff5f0 100%) !important;
  cursor: pointer !important;
}

details.tp[open] > summary.tph,
.mufy_ai_message_bubble details.tp[open] > summary.tph {
  border-bottom: 1px dashed #ddd4c8 !important;
}

.tpb,
div.tpb,
.mufy_ai_message_bubble .tpb {
  padding: 14px 12px 16px !important;
  background: linear-gradient(180deg, #faf6f0 0%, #fffdf9 100%) !important;
}

/* ========== 朋友圈 · wx（柔和浅色手机） ========== */
details.wx,
.mufy_ai_message_bubble details.wx {
  overflow: visible !important;
}

.wmp:not(.acp):not(.desk-quick__panel),
div.wmp:not(.acp):not(.desk-quick__panel),
.mufy_ai_message_bubble .wmp:not(.acp):not(.desk-quick__panel) {
  padding: 16px 12px 18px !important;
  background: linear-gradient(180deg, #f5e8e4 0%, #faf0ec 100%) !important;
  border-radius: 0 0 14px 14px !important;
}

.wnv,
div.wnv,
.mufy_ai_message_bubble .wnv {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 14px 10px !important;
  background: linear-gradient(180deg, #ffe8ec, #fff0f2) !important;
  border-bottom: 1px solid #ebe4da !important;
}

.wnb,
.wnc,
.mufy_ai_message_bubble .wnb,
.mufy_ai_message_bubble .wnc {
  font-size: 18px !important;
  color: #5aadad !important;
  line-height: 1 !important;
}

.wnt,
span.wnt,
.mufy_ai_message_bubble .wnt {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #3a3530 !important;
}

.wsc,
div.wsc,
.mufy_ai_message_bubble .wsc {
  padding: 0 !important;
  background: #fffdf9 !important;
  max-height: none !important;
  overflow: visible !important;
}

.wm,
article.wm,
.mufy_ai_message_bubble .wm {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 14px 12px !important;
  background: #ffffff !important;
  border-bottom: 1px dotted #ebe4da !important;
}

.wmac,
span.wmac,
.mufy_ai_message_bubble .wmac {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7ec8c8, #d88098) !important;
  border-radius: 6px !important;
}

.wmn,
p.wmn,
.mufy_ai_message_bubble .wmn {
  margin: 0 0 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #5aadad !important;
}

.wmt,
p.wmt,
.mufy_ai_message_bubble .wmt {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #2d2825 !important;
}

.wmi,
p.wmi,
.mufy_ai_message_bubble .wmi {
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  color: #8a8279 !important;
  background: #faf6f0 !important;
  border-radius: 6px !important;
}

.wmm,
p.wmm,
.mufy_ai_message_bubble .wmm {
  margin: 0 0 8px !important;
  font-size: 11px !important;
  color: #a89888 !important;
}

.wmx,
div.wmx,
.mufy_ai_message_bubble .wmx {
  padding: 6px 8px !important;
  background: #faf6f0 !important;
  border-radius: 6px !important;
  border: 1px solid #ebe4da !important;
}

.wml,
p.wml,
.mufy_ai_message_bubble .wml {
  margin: 0 0 4px !important;
  padding-bottom: 4px !important;
  font-size: 12px !important;
  color: #5aadad !important;
  border-bottom: 1px dotted #ebe4da !important;
}

.wmc,
p.wmc,
.mufy_ai_message_bubble .wmc {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #4a4540 !important;
}

.wmc strong,
.mufy_ai_message_bubble .wmc strong {
  color: #d87088 !important;
  font-weight: 600 !important;
}

/* ========== 对话区外壳 · 奶油手账 ========== */
div[class*="overflow-y-auto"]:has(div.markdown-body),
div[class*="flex-1"]:has(div.markdown-body),
main:has(div.markdown-body) {
  background: transparent !important;
}

#customized-answer-content,
#customized-question-content,
div[class*="relative"][class*="group"]:has(.mufy_ai_message_bubble),
.mufy_user_message_bubble,
div[class*="justify-end"] > div[class*="bg-white"],
div[class*="justify-end"] > div[class*="rounded-lg"] {
  background: rgba(255, 253, 249, 0.92) !important;
  background-color: rgba(255, 253, 249, 0.92) !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.98) 0%,
    rgba(250, 246, 240, 0.95) 55%,
    rgba(245, 240, 232, 0.9) 100%
  ) !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: 16px !important;
  box-shadow: var(--ub-shadow) !important;
  padding: 12px 14px !important;
  margin: 10px 0 !important;
  color: var(--ub-ink) !important;
}

#customized-question-content,
.mufy_user_message_bubble,
div[class*="justify-end"] > div[class*="bg-white"] {
  border-left: 3px solid var(--ub-teal) !important;
}

#customized-answer-content,
div[class*="relative"][class*="group"]:has(.mufy_ai_message_bubble) {
  border-right: 3px solid var(--ub-rose) !important;
}

div[class*="bg-white"]:has(div.markdown-body),
#customized-answer-content > div[class*="bg-white"],
#customized-question-content > div[class*="bg-white"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#mufy_chat_header,
div#mufy_chat_header {
  background: linear-gradient(135deg, #fffdf9, #faf6f0) !important;
  border-bottom: 1px solid #ebe4da !important;
  color: var(--ub-ink) !important;
}

#mufy_chat_input_container,
div#mufy_chat_input_container {
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.6), #fffdf9) !important;
  border-top: 1px solid #ebe4da !important;
}

#ai-chat-bottom-input,
textarea#ai-chat-bottom-input {
  background: #ffffff !important;
  border: 1.5px solid #e8dfd4 !important;
  border-radius: 12px !important;
  color: var(--ub-ink) !important;
}
/* ========== it · 灵动签谱行 ========== */
it,
.mufy_ai_message_bubble it {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 10px 12px !important;
  margin: 0 !important;
  padding: 11px 16px 11px 18px !important;
  text-align: left !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px dashed #ebe4da !important;
  border-radius: 0 !important;
}

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

it lb,
.mufy_ai_message_bubble it lb {
  flex-shrink: 0 !important;
  display: inline-block !important;
  min-width: auto !important;
  padding: 3px 10px 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
  text-align: center !important;
  border-radius: 4px 10px 4px 10px !important;
  line-height: 1.35 !important;
  transform: rotate(-1.5deg) !important;
  box-shadow: 1px 2px 5px rgba(61, 56, 53, 0.12) !important;
  background: #5aadad !important;
  background-color: #5aadad !important;
}

it:nth-of-type(6n+1) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+1) lb {
  background: #8ec9a8 !important;
  background-color: #8ec9a8 !important;
}

it:nth-of-type(6n+2) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+2) lb {
  background: #5aadad !important;
  background-color: #5aadad !important;
}

it:nth-of-type(6n+3) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+3) lb {
  background: #6a9fd4 !important;
  background-color: #6a9fd4 !important;
}

it:nth-of-type(6n+4) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+4) lb {
  background: #d87088 !important;
  background-color: #d87088 !important;
}

it:nth-of-type(6n+5) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+5) lb {
  background: #e8a060 !important;
  background-color: #e8a060 !important;
  color: #ffffff !important;
}

it:nth-of-type(6n+6) lb,
.mufy_ai_message_bubble it:nth-of-type(6n+6) lb {
  background: #6a8a6a !important;
  background-color: #6a8a6a !important;
}

it vl,
.mufy_ai_message_bubble it vl {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4a4540 !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

it:nth-of-type(6n+1) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+1) vl {
  color: #3a6a58 !important;
}

it:nth-of-type(6n+2) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+2) vl {
  color: #3a6870 !important;
}

it:nth-of-type(6n+3) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+3) vl {
  color: #4a6088 !important;
}

it:nth-of-type(6n+4) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+4) vl {
  color: #884858 !important;
}

it:nth-of-type(6n+5) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+5) vl {
  color: #8a6030 !important;
}

it:nth-of-type(6n+6) vl,
.mufy_ai_message_bubble it:nth-of-type(6n+6) vl {
  color: #4a6848 !important;
}

it:has(bc),
it:has(.bc),
.mufy_ai_message_bubble it:has(bc),
.mufy_ai_message_bubble it:has(.bc) {
  display: block !important;
  padding: 10px 12px !important;
}

it:has(bc) lb,
it:has(.bc) lb,
.mufy_ai_message_bubble it:has(bc) lb,
.mufy_ai_message_bubble it:has(.bc) lb {
  display: inline-block !important;
  margin-bottom: 8px !important;
}

/* 进度条行：flex 父级下强制占满一行（:has 失效时兜底） */
it bc,
it .bc,
.mufy_ai_message_bubble it bc,
.mufy_ai_message_bubble it .bc {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  order: 2 !important;
  align-self: stretch !important;
}

it:has(bc) tip,
it:has(.bc) tip,
it bc + tip,
it .bc + tip,
.mufy_ai_message_bubble it:has(bc) tip,
.mufy_ai_message_bubble it:has(.bc) tip {
  flex: 1 1 100% !important;
  width: 100% !important;
  order: 3 !important;
}

it:has(bc) lb,
it:has(.bc) lb,
.mufy_ai_message_bubble it:has(bc) lb,
.mufy_ai_message_bubble it:has(.bc) lb {
  order: 1 !important;
}

tip,
.mufy_ai_message_bubble tip {
  display: block !important;
  margin-top: 5px !important;
  font-size: 12px !important;
  color: #6b635b !important;
}

bc,
.bc,
div.bc,
.mufy_ai_message_bubble bc,
.mufy_ai_message_bubble .bc {
  display: block !important;
  width: 100% !important;
  height: 12px !important;
  margin: 2px 0 4px !important;
  padding: 0 !important;
  background: #f0ebe4 !important;
  border-radius: 99px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

bf,
.bf,
div.bf,
.mufy_ai_message_bubble bf,
.mufy_ai_message_bubble .bf {
  display: block !important;
  height: 100% !important;
  min-width: 2% !important;
  max-width: 100% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-radius: 99px !important;
  box-sizing: border-box !important;
  background: linear-gradient(90deg, #e05565, #f07080) !important;
}

/* 好感 · 红 */
bf.fv,
.bf.fv,
div.bf.fv,
bf.bar-fill--favor,
.bf.bar-fill--favor,
div.bf.bar-fill--favor,
.mufy_ai_message_bubble bf.fv,
.mufy_ai_message_bubble .bf.fv,
.mufy_ai_message_bubble bf.bar-fill--favor,
.mufy_ai_message_bubble .bf.bar-fill--favor {
  background: linear-gradient(90deg, #d94050, #f06878) !important;
  background-color: #e05565 !important;
}

/* 醋意/好感为 0 时不强制最小宽度 */
bf[style*="width:0"],
.bf[style*="width:0"],
.mufy_ai_message_bubble bf[style*="width:0"],
.mufy_ai_message_bubble .bf[style*="width:0"] {
  min-width: 0 !important;
}
/* 醋意 · 紫 */
bf.jealous,
.bf.jealous,
div.bf.jealous,
bf.bar-fill--jealous,
.bf.bar-fill--jealous,
div.bf.bar-fill--jealous,
.mufy_ai_message_bubble bf.jealous,
.mufy_ai_message_bubble .bf.jealous,
.mufy_ai_message_bubble bf.bar-fill--jealous,
.mufy_ai_message_bubble .bf.bar-fill--jealous {
  background: linear-gradient(90deg, #8a5aad, #b898d8) !important;
  background-color: #9b72c4 !important;
}


/* 心防 · 紫 */
bf.guard,
.bf.guard,
div.bf.guard,
bf.bar-fill--guard,
.bf.bar-fill--guard,
div.bf.bar-fill--guard,
.mufy_ai_message_bubble bf.guard,
.mufy_ai_message_bubble .bf.guard,
.mufy_ai_message_bubble bf.bar-fill--guard,
.mufy_ai_message_bubble .bf.bar-fill--guard {
  background: linear-gradient(90deg, #8a5aad, #b898d8) !important;
  background-color: #9b72c4 !important;
}

/* 攻略 · 酒红玫瑰 */
bf.cm,
.bf.cm,
div.bf.cm,
bf.bar-fill--charm,
.bf.bar-fill--charm,
div.bf.bar-fill--charm,
.mufy_ai_message_bubble bf.cm,
.mufy_ai_message_bubble .bf.cm,
.mufy_ai_message_bubble bf.bar-fill--charm,
.mufy_ai_message_bubble .bf.bar-fill--charm {
  background: linear-gradient(90deg, #a01843, #e0447a) !important;
  background-color: #c22a5b !important;
}

/* 觉察 · 琥珀警戒 */
bf.al,
.bf.al,
div.bf.al,
bf.bar-fill--alert,
.bf.bar-fill--alert,
div.bf.bar-fill--alert,
.mufy_ai_message_bubble bf.al,
.mufy_ai_message_bubble .bf.al,
.mufy_ai_message_bubble bf.bar-fill--alert,
.mufy_ai_message_bubble .bf.bar-fill--alert {
  background: linear-gradient(90deg, #c8791a, #f0b429) !important;
  background-color: #d98e1e !important;
}

/* 绿帽 · 青绿 */
bf.nt,
.bf.nt,
div.bf.nt,
bf.bar-fill--ntr,
.bf.bar-fill--ntr,
div.bf.bar-fill--ntr,
.mufy_ai_message_bubble bf.nt,
.mufy_ai_message_bubble .bf.nt,
.mufy_ai_message_bubble bf.bar-fill--ntr,
.mufy_ai_message_bubble .bf.bar-fill--ntr {
  background: linear-gradient(90deg, #1f7a6e, #4fc3ad) !important;
  background-color: #2a9384 !important;
}

/* ========== 记忆 · 贴纸 ========== */
it.mi,
.mufy_ai_message_bubble it.mi {
  background: #fffef5 !important;
  border-left: 3px solid var(--ub-teal) !important;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

it.mil,
.mufy_ai_message_bubble it.mil {
  background: #faf8ff !important;
  border-left-color: var(--ub-lilac) !important;
}

it.mi lb,
.mufy_ai_message_bubble it.mi lb {
  background: #5aadad !important;
  background-color: #5aadad !important;
  color: #ffffff !important;
}

it.mil lb,
.mufy_ai_message_bubble it.mil lb {
  background: #8a72b8 !important;
  background-color: #8a72b8 !important;
  color: #ffffff !important;
}
/* ========== 下一步建议 · 横向便利签 ========== */
.sr,
div.sr,
.mufy_ai_message_bubble .sr {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 10px 12px !important;
  padding: 18px 10px 22px !important;
  background: linear-gradient(180deg, #faf6f0 0%, #fffdf9 100%) !important;
}

sug.sn,
.sn,
.mufy_ai_message_bubble sug.sn {
  position: relative !important;
  flex: 1 1 calc(33.333% - 12px) !important;
  min-width: 96px !important;
  max-width: 34% !important;
  margin: 0 !important;
  padding: 18px 11px 14px !important;
  border: none !important;
  border-radius: 2px !important;
  box-shadow: 2px 4px 10px rgba(61, 56, 53, 0.1), inset 0 -20px 20px -10px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

sug.sn::before,
.sn::before,
.mufy_ai_message_bubble sug.sn::before {
  content: "" !important;
  position: absolute !important;
  top: -5px !important;
  left: 50% !important;
  width: 36px !important;
  height: 12px !important;
  margin-left: -18px !important;
  background: rgba(255, 220, 140, 0.65) !important;
  border-radius: 1px !important;
  transform: rotate(-2deg) !important;
  pointer-events: none !important;
}

sug.sna,
.sna,
.mufy_ai_message_bubble .sna {
  background: #fff9b0 !important;
  background-color: #fff9b0 !important;
  transform: rotate(-2.5deg) !important;
}

sug.snb,
.snb,
.mufy_ai_message_bubble .snb {
  background: #ffd8ec !important;
  background-color: #ffd8ec !important;
  transform: rotate(2deg) !important;
  margin-top: 8px !important;
}

sug.snc,
.snc,
.mufy_ai_message_bubble .snc {
  background: #cce8ff !important;
  background-color: #cce8ff !important;
  transform: rotate(-1deg) !important;
}

sug.sn op,
.sn op,
.mufy_ai_message_bubble sug.sn op {
  display: block !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #5a4038 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

sug.sna op,
.mufy_ai_message_bubble .sna op {
  color: #6a5820 !important;
}

sug.snb op,
.mufy_ai_message_bubble .snb op {
  color: #884860 !important;
}

sug.snc op,
.mufy_ai_message_bubble .snc op {
  color: #386080 !important;
}

sug.sn de,
.sn de,
.mufy_ai_message_bubble sug.sn de {
  display: block !important;
  margin-top: 8px !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #6b5a52 !important;
}

sug:not(.sn),
.mufy_ai_message_bubble sug:not(.sn) {
  display: block !important;
  margin: 8px 14px 10px !important;
  padding: 12px 14px !important;
  background: linear-gradient(180deg, #fffef0, #fff9e6) !important;
  border: 1px solid #f0e8c8 !important;
  border-radius: 10px !important;
}

trend,
.mufy_ai_message_bubble trend {
  display: none !important;
}
.pd,
div.pd,
.mufy_ai_message_bubble .pd {
  position: relative !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  padding: 6px 6px 8px !important;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e) !important;
  border-radius: 32px !important;
  box-shadow: 0 16px 40px rgba(61, 56, 53, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

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

.ps,
div.ps,
.mufy_ai_message_bubble .ps {
  margin: 0 !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fff5f5 0%, #faf6f0 100%) !important;
}

.psb,
div.psb,
.mufy_ai_message_bubble .psb {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 26px 18px 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #3a3530 !important;
  background: linear-gradient(180deg, #ffe8ec, #fff0f2) !important;
}

.psi,
span.psi,
.mufy_ai_message_bubble .psi {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.pnt,
span.pnt,
.mufy_ai_message_bubble .pnt {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #3a3530 !important;
}

.pbr,
span.pbr,
.mufy_ai_message_bubble .pbr {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 1.5px !important;
  height: 10px !important;
  padding: 0 2px !important;
}

.pbr i,
.mufy_ai_message_bubble .pbr i {
  display: block !important;
  width: 2.5px !important;
  background: #3a3530 !important;
  border-radius: 1px !important;
}

.pbr i:nth-child(1),
.mufy_ai_message_bubble .pbr i:nth-child(1) {
  height: 3px !important;
}

.pbr i:nth-child(2),
.mufy_ai_message_bubble .pbr i:nth-child(2) {
  height: 5px !important;
}

.pbr i:nth-child(3),
.mufy_ai_message_bubble .pbr i:nth-child(3) {
  height: 7px !important;
}

.pbr i:nth-child(4),
.mufy_ai_message_bubble .pbr i:nth-child(4) {
  height: 9px !important;
}

.pba,
span.pba,
.mufy_ai_message_bubble .pba {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #3a3530 !important;
}

.pba::before,
.mufy_ai_message_bubble .pba::before {
  content: "🔋" !important;
  margin-right: 2px !important;
  font-size: 10px !important;
}
@media (max-width: 520px) {
  .dt,
  .mufy_ai_message_bubble .dt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
    gap: 4px !important;
    padding: 8px !important;
  }

  details.dti:nth-of-type(1)[open] > .dtp,
  .mufy_ai_message_bubble details.dti:nth-of-type(1)[open] > .dtp {
    width: calc(500% + 4px) !important;
    max-width: calc(500% + 4px) !important;
    max-height: min(48vh, 360px) !important;
    overflow-y: auto !important;
  }

  details.dti:nth-of-type(2)[open] > .dtp,
  .mufy_ai_message_bubble details.dti:nth-of-type(2)[open] > .dtp {
    width: calc(150% + 8px) !important;
    max-width: calc(150% + 8px) !important;
    margin-left: calc(-50% - 8px) !important;
    max-height: min(48vh, 360px) !important;
    overflow-y: auto !important;
  }

  .scl,
  p.scl,
  .mufy_ai_message_bubble .scl {
    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .dtp,
  div.dtp,
  .mufy_ai_message_bubble .dtp {
    padding: 10px !important;
  }

  summary.dtt,
  .mufy_ai_message_bubble summary.dtt {
    padding: 9px 6px !important;
    font-size: 11px !important;
  }

  .ac,
  .desk-quick,
  .mufy_ai_message_bubble .ac,
  .mufy_ai_message_bubble .desk-quick {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 8px !important;
  }

  details.aci,
  details.aci:nth-of-type(1),
  details.aci:nth-of-type(2),
  details.aci:nth-of-type(3),
  details.aci:nth-of-type(4),
  details.aci:nth-of-type(5),
  details.desk-quick__item,
  details.desk-quick__item:nth-of-type(1),
  details.desk-quick__item:nth-of-type(2),
  details.desk-quick__item:nth-of-type(3),
  details.desk-quick__item:nth-of-type(4),
  details.desk-quick__item:nth-of-type(5),
  .mufy_ai_message_bubble details.aci,
  .mufy_ai_message_bubble details.aci:nth-of-type(1),
  .mufy_ai_message_bubble details.aci:nth-of-type(2),
  .mufy_ai_message_bubble details.aci:nth-of-type(3),
  .mufy_ai_message_bubble details.aci:nth-of-type(4),
  .mufy_ai_message_bubble details.aci:nth-of-type(5),
  .mufy_ai_message_bubble details.desk-quick__item,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(1),
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(2),
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(3),
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(4),
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(5) {
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  details.aci:nth-of-type(1)[open] > .acp,
  details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.aci:nth-of-type(1)[open] > .acp,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel {
    width: calc(500% + 16px) !important;
    max-width: calc(500% + 16px) !important;
    margin-left: 0 !important;
  }

  details.aci:nth-of-type(2)[open] > .acp,
  details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.aci:nth-of-type(2)[open] > .acp,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel {
    width: calc(500% + 16px) !important;
    max-width: calc(500% + 16px) !important;
    margin-left: calc(-100% - 4px) !important;
  }

  details.aci:nth-of-type(3)[open] > .acp,
  details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.aci:nth-of-type(3)[open] > .acp,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel {
    width: calc(500% + 16px) !important;
    max-width: calc(500% + 16px) !important;
    margin-left: calc(-200% - 8px) !important;
  }

  details.aci:nth-of-type(4)[open] > .acp,
  details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.aci:nth-of-type(4)[open] > .acp,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel {
    width: calc(500% + 16px) !important;
    max-width: calc(500% + 16px) !important;
    margin-left: calc(-300% - 12px) !important;
  }

  details.aci:nth-of-type(5)[open] > .acp,
  details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.aci:nth-of-type(5)[open] > .acp,
  .mufy_ai_message_bubble details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel {
    width: calc(500% + 16px) !important;
    max-width: calc(500% + 16px) !important;
    margin-left: calc(-400% - 16px) !important;
  }

  summary.act,
  summary.desk-quick__tab,
  .mufy_ai_message_bubble summary.act,
  .mufy_ai_message_bubble summary.desk-quick__tab {
    font-size: 9px !important;
    padding: 8px 1px !important;
  }

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

  .jl,
  .frag-grid,
  .mufy_ai_message_bubble .jl,
  .mufy_ai_message_bubble .frag-grid {
    gap: 0 !important;
  }

  .jnk,
  .mufy_ai_message_bubble .jnk {
    padding: 12px 12px 14px 30px !important;
  }

  .jex,
  p.jex,
  .mufy_ai_message_bubble .jex {
    font-size: 12px !important;
  }

  .hcc,
  .mufy_ai_message_bubble .hcc {
    flex-direction: column !important;
  }

  .hp,
  .mufy_ai_message_bubble .hp {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  .tx,
  .mufy_ai_message_bubble .tx {
    padding: 16px 14px 18px !important;
  }

  sug.sn,
  .sn,
  .mufy_ai_message_bubble sug.sn {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
