/**
 * 《重生为女儿的同桌》· Reply UI · v2.7 都市手账
 * 快捷栏 5 tab · 清仪手账本三态模糊 · 女主私密状态
 * 风格参考：《与死对头灵魂互换后…》v3.10 · 奶油纸 / 青绿玫瑰 / 横线便签 / 钉便签卡
 * MUFY / rilichat 通用 · 正文须用 div.desk-text · 禁止 @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;
}

/* ========== 顶栏 · desk-top（都市公告板） ========== */
.desk-top,
div.desk-top,
.mufy_ai_message_bubble .desk-top {
  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.desk-top__item,
.mufy_ai_message_bubble details.desk-top__item {
  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.desk-top__item:nth-of-type(1),
.mufy_ai_message_bubble details.desk-top__item:nth-of-type(1) {
  grid-column: 1 !important;
}

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

summary.desk-top__tab,
.mufy_ai_message_bubble summary.desk-top__tab {
  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.desk-top__tab::after,
.mufy_ai_message_bubble summary.desk-top__tab::after {
  display: none !important;
  content: none !important;
}

details.desk-top__item[open] > summary.desk-top__tab,
.mufy_ai_message_bubble details.desk-top__item[open] > summary.desk-top__tab {
  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;
}

.desk-top__panel,
div.desk-top__panel,
.mufy_ai_message_bubble .desk-top__panel {
  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.desk-top__item:nth-of-type(1)[open] > .desk-top__panel,
.mufy_ai_message_bubble details.desk-top__item:nth-of-type(1)[open] > .desk-top__panel {
  width: calc(300% + 16px) !important;
  max-width: calc(300% + 16px) !important;
  margin-left: 0 !important;
}

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

.desk-think__line,
p.desk-think__line,
.mufy_ai_message_bubble .desk-think__line {
  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;
}

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

.desk-scene__line,
p.desk-scene__line,
.mufy_ai_message_bubble .desk-scene__line {
  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;
}

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

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

.desk-scene__body time,
.mufy_ai_message_bubble .desk-scene__body time {
  color: #b45a8a !important;
  font-weight: 600 !important;
}

.desk-scene__body weather,
.mufy_ai_message_bubble .desk-scene__body weather {
  color: #5a8ab4 !important;
  font-weight: 600 !important;
}

/* ========== 正文 · desk-text（横线便签） ========== */
.desk-text,
div.desk-text,
.mufy_ai_message_bubble .desk-text,
.mufy_ai_message_bubble div.desk-text {
  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;
}

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

.desk-text::after,
div.desk-text::after,
.mufy_ai_message_bubble .desk-text::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;
}

.story-tag,
span.story-tag,
.mufy_ai_message_bubble .story-tag {
  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;
}

.desk-text p,
div.desk-text p,
.mufy_ai_message_bubble .desk-text 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;
}

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

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

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

/* 钉便签卡 · 底栏独立区块（记忆回廊 / 行动建议） */
status-bottom > details.desk-tip,
status-bottom > .desk-mem,
.mufy_ai_message_bubble status-bottom > details.desk-tip,
.mufy_ai_message_bubble status-bottom > .desk-mem {
  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;
}

status-bottom > details.desk-tip::before,
status-bottom > .desk-mem::before,
.mufy_ai_message_bubble status-bottom > details.desk-tip::before,
.mufy_ai_message_bubble status-bottom > .desk-mem::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;
}

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

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

/* ========== 手风琴 · desk-acc（5 tab 一行 · 同京都 home-acc） ========== */
.desk-acc,
.desk-quick,
div.desk-acc,
div.desk-quick,
.mufy_ai_message_bubble .desk-acc,
.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.desk-acc__item,
details.desk-quick__item,
.mufy_ai_message_bubble details.desk-acc__item,
.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.desk-acc__item:nth-of-type(1),
details.desk-quick__item:nth-of-type(1),
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(1),
.mufy_ai_message_bubble details.desk-quick__item:nth-of-type(1) {
  grid-column: 1 !important;
}

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

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

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

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

summary.desk-acc__tab,
summary.desk-quick__tab,
.mufy_ai_message_bubble summary.desk-acc__tab,
.mufy_ai_message_bubble summary.desk-quick__tab {
  display: block !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.desk-acc__tab::after,
summary.desk-quick__tab::after,
.mufy_ai_message_bubble summary.desk-acc__tab::after,
.mufy_ai_message_bubble summary.desk-quick__tab::after {
  display: none !important;
  content: none !important;
}

details.desk-acc__item[open] > summary.desk-acc__tab,
details.desk-quick__item[open] > summary.desk-quick__tab,
.mufy_ai_message_bubble details.desk-acc__item[open] > summary.desk-acc__tab,
.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;
}

.desk-acc__panel,
.desk-quick__panel,
div.desk-acc__panel,
div.desk-quick__panel,
.mufy_ai_message_bubble .desk-acc__panel,
.mufy_ai_message_bubble .desk-quick__panel {
  box-sizing: border-box !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.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel,
details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel,
.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.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel,
details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel,
.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.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel,
details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel,
.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.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel,
details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel,
.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.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel,
details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel,
.mufy_ai_message_bubble details.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel,
.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;
}

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

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

.profile-block__title,
p.profile-block__title,
.mufy_ai_message_bubble .profile-block__title {
  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;
}

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

.desk-player__body .profile-block + .profile-block,
.mufy_ai_message_bubble .desk-player__body .profile-block + .profile-block {
  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;
}

/* ========== hero-card ========== */
.hero-card,
div.hero-card,
.mufy_ai_message_bubble .hero-card {
  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;
}

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

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

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

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

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

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

.hero-chip,
div.hero-chip,
.mufy_ai_message_bubble .hero-chip {
  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;
}

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

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

.hero-chip--dim,
.mufy_ai_message_bubble .hero-chip--dim {
  opacity: 0.88 !important;
}

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

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

.hero-card__quote,
p.hero-card__quote,
.mufy_ai_message_bubble .hero-card__quote {
  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;
}

/* ========== 私密状态 · desk-intimate（可折叠 · 默认收起） ========== */
details.desk-intimate,
.desk-intimate,
div.desk-intimate,
.mufy_ai_message_bubble details.desk-intimate,
.mufy_ai_message_bubble .desk-intimate {
  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.desk-intimate__head,
.desk-intimate__head,
p.desk-intimate__head,
.mufy_ai_message_bubble summary.desk-intimate__head,
.mufy_ai_message_bubble .desk-intimate__head {
  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.desk-intimate__head::-webkit-details-marker,
.mufy_ai_message_bubble summary.desk-intimate__head::-webkit-details-marker {
  display: none !important;
}

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

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

details.desk-intimate[open] > summary.desk-intimate__head::after,
.mufy_ai_message_bubble details.desk-intimate[open] > summary.desk-intimate__head::after {
  transform: rotate(90deg) !important;
}

.desk-intimate__badge,
span.desk-intimate__badge,
.mufy_ai_message_bubble .desk-intimate__badge {
  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;
}

.desk-intimate__body,
div.desk-intimate__body,
.mufy_ai_message_bubble .desk-intimate__body {
  padding: 4px 0 6px !important;
}

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

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

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

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

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

.desk-journal__book,
div.desk-journal__book,
.mufy_ai_message_bubble .desk-journal__book {
  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;
}

.desk-journal__book::before,
.mufy_ai_message_bubble .desk-journal__book::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;
}

.desk-journal__cover,
p.desk-journal__cover,
.mufy_ai_message_bubble .desk-journal__cover {
  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;
}

.desk-journal__seal,
span.desk-journal__seal,
.mufy_ai_message_bubble .desk-journal__seal {
  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;
}

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

.journal-entry,
.frag-item,
article.journal-entry,
div.frag-item,
.mufy_ai_message_bubble .journal-entry,
.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;
}

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

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

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

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

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

.journal-entry__title,
p.journal-entry__title,
.frag-item__title,
span.frag-item__title,
.mufy_ai_message_bubble .journal-entry__title,
.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;
}

.journal-entry__text,
p.journal-entry__text,
.mufy_ai_message_bubble .journal-entry__text {
  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;
}

.journal-entry__hint,
p.journal-entry__hint,
.frag-item__hint,
span.frag-item__hint,
.mufy_ai_message_bubble .journal-entry__hint,
.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;
}

.journal-entry--on .journal-entry__date,
.mufy_ai_message_bubble .journal-entry--on .journal-entry__date {
  color: #5aadad !important;
}

.journal-entry--on .journal-entry__title,
.mufy_ai_message_bubble .journal-entry--on .journal-entry__title {
  display: block !important;
}

.journal-entry--on .journal-entry__text,
.mufy_ai_message_bubble .journal-entry--on .journal-entry__text {
  display: block !important;
}

.journal-entry--on .journal-entry__hint,
.mufy_ai_message_bubble .journal-entry--on .journal-entry__hint {
  display: none !important;
}

.journal-entry--hint .journal-entry__date,
.mufy_ai_message_bubble .journal-entry--hint .journal-entry__date {
  color: #c48848 !important;
}

.journal-entry--hint .journal-entry__title,
.journal-entry--hint .journal-entry__text,
.mufy_ai_message_bubble .journal-entry--hint .journal-entry__title,
.mufy_ai_message_bubble .journal-entry--hint .journal-entry__text {
  display: none !important;
}

.journal-entry--hint .journal-entry__hint:not(:empty),
.frag-item--hint .frag-item__hint:not(:empty),
.mufy_ai_message_bubble .journal-entry--hint .journal-entry__hint:not(:empty),
.mufy_ai_message_bubble .frag-item--hint .frag-item__hint:not(:empty) {
  display: block !important;
  filter: blur(4px) !important;
  opacity: 0.85 !important;
  user-select: none !important;
}

.journal-entry--off .journal-entry__date,
.journal-entry--off .journal-entry__title,
.journal-entry--off .journal-entry__text,
.journal-entry--off .journal-entry__hint,
.frag-item--off .frag-item__title,
.frag-item--off .frag-item__hint,
.mufy_ai_message_bubble .journal-entry--off .journal-entry__date,
.mufy_ai_message_bubble .journal-entry--off .journal-entry__title,
.mufy_ai_message_bubble .journal-entry--off .journal-entry__text,
.mufy_ai_message_bubble .journal-entry--off .journal-entry__hint,
.mufy_ai_message_bubble .frag-item--off .frag-item__title,
.mufy_ai_message_bubble .frag-item--off .frag-item__hint {
  display: none !important;
}

.journal-entry--off::after,
.frag-item--off::after,
.mufy_ai_message_bubble .journal-entry--off::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;
}

.journal-entry--on::after,
.journal-entry--hint::after,
.frag-item--on::after,
.frag-item--hint::after,
.mufy_ai_message_bubble .journal-entry--on::after,
.mufy_ai_message_bubble .journal-entry--hint::after,
.mufy_ai_message_bubble .frag-item--on::after,
.mufy_ai_message_bubble .frag-item--hint::after {
  content: none !important;
  display: none !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;
}

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

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

details.desk-mem__fold,
.mufy_ai_message_bubble details.desk-mem__fold {
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

details.desk-mem__fold > summary.desk-mem__head,
summary.desk-mem__head,
.mufy_ai_message_bubble details.desk-mem__fold > summary.desk-mem__head {
  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.desk-mem__fold[open] > summary.desk-mem__head,
.mufy_ai_message_bubble details.desk-mem__fold[open] > summary.desk-mem__head {
  border-bottom: 1px dashed #ddd4c8 !important;
}

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

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

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

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

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

details.desk-tip > summary.desk-tip__head,
summary.desk-tip__head,
.mufy_ai_message_bubble details.desk-tip > summary.desk-tip__head {
  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.desk-tip[open] > summary.desk-tip__head,
.mufy_ai_message_bubble details.desk-tip[open] > summary.desk-tip__head {
  border-bottom: 1px dashed #ddd4c8 !important;
}

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

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

.wx-moments-panel:not(.desk-acc__panel):not(.desk-quick__panel),
div.wx-moments-panel:not(.desk-acc__panel):not(.desk-quick__panel),
.mufy_ai_message_bubble .wx-moments-panel:not(.desk-acc__panel):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;
}

.wx-moments-nav,
div.wx-moments-nav,
.mufy_ai_message_bubble .wx-moments-nav {
  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;
}

.wx-moments-nav__back,
.wx-moments-nav__cam,
.mufy_ai_message_bubble .wx-moments-nav__back,
.mufy_ai_message_bubble .wx-moments-nav__cam {
  font-size: 18px !important;
  color: #5aadad !important;
  line-height: 1 !important;
}

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

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

.wx-moment,
article.wx-moment,
.mufy_ai_message_bubble .wx-moment {
  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;
}

.wx-moment__avatar-char,
span.wx-moment__avatar-char,
.mufy_ai_message_bubble .wx-moment__avatar-char {
  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;
}

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

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

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

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

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

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

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

.wx-moment__cmt strong,
.mufy_ai_message_bubble .wx-moment__cmt 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;
}
/* ========== item · 灵动签谱行 ========== */
item,
.mufy_ai_message_bubble item {
  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;
}

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

item label,
.mufy_ai_message_bubble item label {
  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;
}

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

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

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

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

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

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

item value,
.mufy_ai_message_bubble item value {
  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;
}

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

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

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

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

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

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

item:has(bar-container),
item:has(.bar-container),
.mufy_ai_message_bubble item:has(bar-container),
.mufy_ai_message_bubble item:has(.bar-container) {
  display: block !important;
  padding: 10px 12px !important;
}

item:has(bar-container) label,
item:has(.bar-container) label,
.mufy_ai_message_bubble item:has(bar-container) label,
.mufy_ai_message_bubble item:has(.bar-container) label {
  display: inline-block !important;
  margin-bottom: 8px !important;
}

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

item:has(bar-container) tip,
item:has(.bar-container) tip,
item bar-container + tip,
item .bar-container + tip,
.mufy_ai_message_bubble item:has(bar-container) tip,
.mufy_ai_message_bubble item:has(.bar-container) tip {
  flex: 1 1 100% !important;
  width: 100% !important;
  order: 3 !important;
}

item:has(bar-container) label,
item:has(.bar-container) label,
.mufy_ai_message_bubble item:has(bar-container) label,
.mufy_ai_message_bubble item:has(.bar-container) label {
  order: 1 !important;
}

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

bar-container,
.bar-container,
div.bar-container,
.mufy_ai_message_bubble bar-container,
.mufy_ai_message_bubble .bar-container {
  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;
}

bar-fill,
.bar-fill,
div.bar-fill,
.mufy_ai_message_bubble bar-fill,
.mufy_ai_message_bubble .bar-fill {
  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;
}

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

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


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

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

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

item.mem-item label,
.mufy_ai_message_bubble item.mem-item label {
  background: #5aadad !important;
  background-color: #5aadad !important;
  color: #ffffff !important;
}

item.mem-item--long label,
.mufy_ai_message_bubble item.mem-item--long label {
  background: #8a72b8 !important;
  background-color: #8a72b8 !important;
  color: #ffffff !important;
}
/* ========== 下一步建议 · 横向便利签 ========== */
.sticky-row,
div.sticky-row,
.mufy_ai_message_bubble .sticky-row {
  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;
}

suggest.sticky-note,
.sticky-note,
.mufy_ai_message_bubble suggest.sticky-note {
  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;
}

suggest.sticky-note::before,
.sticky-note::before,
.mufy_ai_message_bubble suggest.sticky-note::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;
}

suggest.sticky-note--a,
.sticky-note--a,
.mufy_ai_message_bubble .sticky-note--a {
  background: #fff9b0 !important;
  background-color: #fff9b0 !important;
  transform: rotate(-2.5deg) !important;
}

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

suggest.sticky-note--c,
.sticky-note--c,
.mufy_ai_message_bubble .sticky-note--c {
  background: #cce8ff !important;
  background-color: #cce8ff !important;
  transform: rotate(-1deg) !important;
}

suggest.sticky-note option,
.sticky-note option,
.mufy_ai_message_bubble suggest.sticky-note option {
  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;
}

suggest.sticky-note--a option,
.mufy_ai_message_bubble .sticky-note--a option {
  color: #6a5820 !important;
}

suggest.sticky-note--b option,
.mufy_ai_message_bubble .sticky-note--b option {
  color: #884860 !important;
}

suggest.sticky-note--c option,
.mufy_ai_message_bubble .sticky-note--c option {
  color: #386080 !important;
}

suggest.sticky-note desc,
.sticky-note desc,
.mufy_ai_message_bubble suggest.sticky-note desc {
  display: block !important;
  margin-top: 8px !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: #6b5a52 !important;
}

suggest:not(.sticky-note),
.mufy_ai_message_bubble suggest:not(.sticky-note) {
  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;
}
.phone-device,
div.phone-device,
.mufy_ai_message_bubble .phone-device {
  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;
}

.phone-island,
div.phone-island,
.mufy_ai_message_bubble .phone-island {
  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;
}

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

.phone-statusbar,
div.phone-statusbar,
.mufy_ai_message_bubble .phone-statusbar {
  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;
}

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

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

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

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

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

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

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

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

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

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

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

  details.desk-top__item:nth-of-type(2)[open] > .desk-top__panel,
  .mufy_ai_message_bubble details.desk-top__item:nth-of-type(2)[open] > .desk-top__panel {
    width: calc(125% + 4px) !important;
    max-width: calc(125% + 4px) !important;
    margin-left: calc(-25% - 4px) !important;
    max-height: min(48vh, 360px) !important;
    overflow-y: auto !important;
  }

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

  details.desk-acc__item,
  details.desk-acc__item:nth-of-type(1),
  details.desk-acc__item:nth-of-type(2),
  details.desk-acc__item:nth-of-type(3),
  details.desk-acc__item:nth-of-type(4),
  details.desk-acc__item: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.desk-acc__item,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(1),
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(2),
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(3),
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(4),
  .mufy_ai_message_bubble details.desk-acc__item: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.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel,
  details.desk-quick__item:nth-of-type(1)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel,
  .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.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel,
  details.desk-quick__item:nth-of-type(2)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel,
  .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.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel,
  details.desk-quick__item:nth-of-type(3)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel,
  .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.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel,
  details.desk-quick__item:nth-of-type(4)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel,
  .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.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel,
  details.desk-quick__item:nth-of-type(5)[open] > .desk-quick__panel,
  .mufy_ai_message_bubble details.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel,
  .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.desk-acc__tab,
  summary.desk-quick__tab,
  .mufy_ai_message_bubble summary.desk-acc__tab,
  .mufy_ai_message_bubble summary.desk-quick__tab {
    font-size: 9px !important;
    padding: 8px 1px !important;
  }

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

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

  .desk-journal__book,
  .mufy_ai_message_bubble .desk-journal__book {
    padding: 12px 12px 14px 30px !important;
  }

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

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

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

  .desk-text,
  .mufy_ai_message_bubble .desk-text {
    padding: 16px 14px 18px !important;
  }

  suggest.sticky-note,
  .sticky-note,
  .mufy_ai_message_bubble suggest.sticky-note {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
/**
 * MOD · 妻子重生「林舒予」· reply-mod.css
 * 粘贴到 prompts/reply.css 末尾 · 依赖本体 v2.7+
 * 6 tab 手风琴：.desk-acc.mod-wife-acc
 */

/* ========== 6 tab 手风琴 ========== */
.desk-acc.mod-wife-acc,
div.desk-acc.mod-wife-acc,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1) {
  grid-column: 1 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2) {
  grid-column: 2 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3) {
  grid-column: 3 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4) {
  grid-column: 4 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5) {
  grid-column: 5 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6),
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6) {
  grid-column: 6 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: 0 !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: calc(-100% - 6px) !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: calc(-200% - 12px) !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: calc(-300% - 18px) !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: calc(-400% - 24px) !important;
}

.desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6)[open] > .desk-acc__panel,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6)[open] > .desk-acc__panel {
  width: calc(600% + 30px) !important;
  max-width: calc(600% + 30px) !important;
  margin-left: calc(-500% - 30px) !important;
}

/* 林舒予 tab 激活色 · 淡紫玫瑰 */
.desk-acc.mod-wife-acc details.mod-wife[open] > summary.desk-acc__tab,
.mufy_ai_message_bubble .desk-acc.mod-wife-acc details.mod-wife[open] > summary.desk-acc__tab {
  background: linear-gradient(90deg, #9b8ec4 0%, #c4b5e8 45%, #e892a4 100%) !important;
  box-shadow: 0 3px 12px rgba(155, 142, 196, 0.35) !important;
}

/* ========== 林舒予面板 ========== */
.hero-card.mod-wife-card,
.mufy_ai_message_bubble .hero-card.mod-wife-card {
  border-left: 3px solid #c4b5e8 !important;
}

.mod-wife-card__tag,
.mufy_ai_message_bubble .mod-wife-card__tag {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #9b8ec4 !important;
  letter-spacing: 0.02em !important;
}

.hero-chip--lilac,
.mufy_ai_message_bubble .hero-chip--lilac {
  background: linear-gradient(135deg, #f3effa 0%, #ebe4f8 100%) !important;
  border-color: #d4c8ef !important;
}

.hero-chip--lilac .hero-chip__value,
.mufy_ai_message_bubble .hero-chip--lilac .hero-chip__value {
  color: #7a6aab !important;
}

/* MOD 进度条 */
bar-fill.sync,
.bar-fill.sync,
div.bar-fill.sync,
.mufy_ai_message_bubble bar-fill.sync,
.mufy_ai_message_bubble .bar-fill.sync {
  background: linear-gradient(90deg, #9b8ec4 0%, #c4b5e8 100%) !important;
}

bar-fill.knot,
.bar-fill.knot,
div.bar-fill.knot,
.mufy_ai_message_bubble bar-fill.knot,
.mufy_ai_message_bubble .bar-fill.knot {
  background: linear-gradient(90deg, #e892a4 0%, #f0a8b8 55%, #c4b5e8 100%) !important;
}

/* ========== 窄屏 6 tab ========== */
@media (max-width: 520px) {
  .desk-acc.mod-wife-acc,
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item,
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item {
    grid-row: auto !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(3) {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(4) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(5) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6),
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item:nth-of-type(6) {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .desk-acc.mod-wife-acc details.desk-acc__item[open] > .desk-acc__panel,
  .mufy_ai_message_bubble .desk-acc.mod-wife-acc details.desk-acc__item[open] > .desk-acc__panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }
}
