/* 消息区滚动条 */
#messageList::-webkit-scrollbar,
#sessionList::-webkit-scrollbar {
  width: 6px;
}
#messageList::-webkit-scrollbar-track,
#sessionList::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
#messageList::-webkit-scrollbar-thumb,
#sessionList::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 3px;
}
#messageList::-webkit-scrollbar-thumb:hover,
#sessionList::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

/* 会话列表项 */
.session-item {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.session-item:hover {
  background: rgba(15, 23, 42, 0.6);
}
.session-item.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.active { background: #10B981; }
.status-dot.pending_audit { background: #F59E0B; }
.status-dot.audited { background: #3B82F6; }
.status-dot.archived { background: #64748B; }

/* Markdown 渲染 */
.markdown-body {
  line-height: 1.7;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 600;
  margin: 0.8em 0 0.4em;
  color: #F8FAFC;
}
.markdown-body h1 { font-size: 1.3em; }
.markdown-body h2 { font-size: 1.15em; }
.markdown-body h3 { font-size: 1.05em; }
.markdown-body p { margin: 0.5em 0; }
.markdown-body ul, .markdown-body ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}
.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }
.markdown-body li { margin: 0.25em 0; }
.markdown-body strong { color: #10B981; font-weight: 600; }
.markdown-body em { color: #3B82F6; font-style: italic; }
.markdown-body code {
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 0.9em;
  color: #F59E0B;
}
.markdown-body pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0.8em 0;
}
.markdown-body pre code {
  background: none;
  padding: 0;
  color: #F8FAFC;
}
.markdown-body blockquote {
  border-left: 3px solid #8B5CF6;
  padding-left: 1em;
  margin: 0.8em 0;
  color: #94A3B8;
}
.markdown-body hr {
  border: none;
  border-top: 1px solid rgba(100, 116, 139, 0.3);
  margin: 1em 0;
}

/* 消息动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-item {
  animation: fadeInUp 0.2s ease-out;
}