[x-cloak] { display: none !important; }
.typing-cursor::after {
  content: '\25AE';
  animation: blink 0.7s infinite;
  margin-left: 2px;
  color: #6366f1;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes pulse-dot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
.dot-pulse span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6366f1;
  animation: pulse-dot 1.4s infinite ease-in-out both;
}
.dot-pulse span:nth-child(1) { animation-delay: -0.32s; }
.dot-pulse span:nth-child(2) { animation-delay: -0.16s; }
.dot-pulse span:nth-child(3) { animation-delay: 0s; }
.chat-area {
  scroll-behavior: smooth;
}
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.pipeline-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  min-width: 0;
  transition: width 0.3s;
}
.seg-embed { background: #3b82f6; }
.seg-search { background: #10b981; }
.seg-llm { background: #ea4335; }
.pipeline-total {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}
.pipeline-legend {
  display: flex;
  gap: 10px;
  margin-top: 3px;
  font-size: 10px;
  color: #999;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}
.md-content strong, .md-content b { font-weight: 700; }
.md-content em, .md-content i { font-style: italic; }
.md-content ul { list-style-type: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
.md-content ol { list-style-type: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.md-content li { margin: 0.25rem 0; }
.md-content p { margin: 0.5rem 0; }
.md-content h1 { font-size: 1.25rem; font-weight: 800; margin: 1rem 0 0.5rem; }
.md-content h2 { font-size: 1.1rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
.md-content h3 { font-size: 1rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
.md-content h4 { font-size: 0.9rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.md-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 0.75rem 0; }
.md-content a { color: #4f46e5; text-decoration: underline; }
.md-content code { background: #f3f4f6; padding: 0.1rem 0.3rem; border-radius: 0.25rem; font-size: 0.85em; }
.md-content pre { background: #f3f4f6; padding: 0.75rem; border-radius: 0.5rem; overflow-x: auto; margin: 0.5rem 0; }
.md-content blockquote { border-left: 3px solid #c7d2fe; padding-left: 0.75rem; color: #6b7280; margin: 0.5rem 0; }
.md-content table { border-collapse: collapse; margin: 0.75rem 0; font-size: 0.85em; display: block; overflow-x: auto; max-width: 100%; }
.md-content th, .md-content td { border: 1px solid #e5e7eb; padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.md-content th { background: #f9fafb; font-weight: 700; }
.md-content tr:nth-child(even) td { background: #fafafa; }
