/* 统一聊天框：输入与输出 */
.bg-gray-100\/90.relative.inline-block {
  background: #fdf5e6 !important; /* 宣纸色背景 */
  border: 2px solid #8b4513 !important; /* 棕色木纹边框 */
  border-radius: 8px !important; /* 圆润边角 */
  box-shadow: 0 2px 6px rgba(139,69,19,0.4) !important;
  padding: 12px !important;
  font-family: "Noto Serif SC","SimSun",serif !important;
}

/* 单独输入聊天框 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
  background: #fffaf0 !important; /* 更浅的宣纸色 */
  border: 2px solid #d2b48c !important;
}

/* 聊天框内主要文本内容 */
.markdown-body {
  color: #4e342e !important; /* 深棕色字体，古风配色 */
  font-weight: 500 !important;
  font-family: "Noto Serif SC","SimSun",serif !important;
}

/* 输出聊天框顶部颜色条去除 */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] {
  display: none !important;
}

/* 底部操作按钮 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
  color: #8b4513 !important;
  font-weight: bold !important;
  background: #eee8aa !important;
  border: 1px solid #8b7765 !important;
  border-radius: 4px !important;
  transition: background 0.3s ease;
}
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
  background: #d7ccc8 !important;
}

/* 模型名称文字 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
  color: #5d4037 !important;
  font-style: italic !important;
}

/* Token消耗文字 */
.text-orange-500 {
  color: #a0522d !important;
  font-weight: bold !important;
}

/* 加载元素隐藏 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}

/* 聊天框滚动优化 */
.bg-gray-100\/90.relative.inline-block {
  scrollbar-width: thin !important;
  scrollbar-color: #8b4513 #fdf5e6 !important;
}
.bg-gray-100\/90.relative.inline-block::-webkit-scrollbar {
  width: 6px !important;
}
.bg-gray-100\/90.relative.inline-block::-webkit-scrollbar-track {
  background: #fdf5e6 !important;
}
.bg-gray-100\/90.relative.inline-block::-webkit-scrollbar-thumb {
  background-color: #8b4513 !important;
  border-radius: 3px !important;
}
.top-bar {
  border-bottom: 1px double #8b4513;
  margin-bottom: 8px;
  font-weight: bold;
  color: #5d4037;
}

.story-body .desc { color: #000; }
.story-body .dialogue { color: #00f; font-weight: bold; }

.status-section {
  border: 1px solid #8b4513;
  border-radius: 4px;
  margin: 6px 0;
  background: #fffaf0;
}

.status-section summary {
  cursor: pointer;
  padding: 6px;
  background: #eee8aa;
  font-weight: bold;
  border-bottom: 1px solid #8b4513;
}

.status-section summary:hover {
  background: #d7ccc8;
}

.char-info, .npc-info, .assets-info, .memory-info, .actions-info {
  padding: 8px 12px;
  font-size: 0.9em;
  color: #4e342e;
}

.char-info p, .assets-info p, .memory-info p {
  margin: 4px 0;
}

.body-status p { margin: 2px 0; }

.items ul, .memory-info ol, .actions-info ol {
  margin-left: 20px;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 6px 0;
}