/* Belvape chat SOP layout — injected into RAGFlow index.html.
   Targets hashed CSS-module wrappers via substring match. */

[class*="markdownContentWrapper"] {
  line-height: 1.5;
  font-size: 15px;
}

[class*="markdownContentWrapper"] h1,
[class*="markdownContentWrapper"] h2,
[class*="markdownContentWrapper"] h3 {
  line-height: 1.3;
  font-weight: 700;
}

[class*="markdownContentWrapper"] h2 {
  font-size: 1.05rem;
  margin: 1.15rem 0 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #1677ff;
  background: rgba(22, 119, 255, 0.08);
}

[class*="markdownContentWrapper"] h2:first-child {
  margin-top: 0;
}

[class*="markdownContentWrapper"] h3 {
  font-size: 0.95rem;
  margin: 0.85rem 0 0.4rem;
  padding-left: 0.15rem;
  color: inherit;
  opacity: 0.9;
}

[class*="markdownContentWrapper"] p {
  margin: 0.35rem 0 0.55rem;
}

[class*="markdownContentWrapper"] ol {
  list-style: none;
  counter-reset: belvape-step;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
}

[class*="markdownContentWrapper"] ol > li {
  counter-increment: belvape-step;
  position: relative;
  margin: 0.4rem 0;
  padding: 0.5rem 0.7rem 0.5rem 2.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[class*="markdownContentWrapper"] ol > li::before {
  content: counter(belvape-step);
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45rem;
  text-align: center;
}

[class*="markdownContentWrapper"] ol > li > ul {
  list-style: disc;
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  background: transparent;
  border: 0;
}

[class*="markdownContentWrapper"] ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}

[class*="markdownContentWrapper"] ul > li {
  margin: 0.28rem 0;
}

[class*="markdownContentWrapper"] strong {
  font-weight: 700;
}

[class*="markdownContentWrapper"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.9rem;
  font-size: 14px;
}

[class*="markdownContentWrapper"] th,
[class*="markdownContentWrapper"] td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

[class*="markdownContentWrapper"] th {
  background: rgba(22, 119, 255, 0.1);
  font-weight: 650;
}

[class*="markdownContentWrapper"] bdi {
  font-size: 11px;
  opacity: 0.72;
}

html.dark [class*="markdownContentWrapper"] h2,
.dark [class*="markdownContentWrapper"] h2 {
  background: rgba(22, 119, 255, 0.18);
}

html.dark [class*="markdownContentWrapper"] ol > li,
.dark [class*="markdownContentWrapper"] ol > li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark [class*="markdownContentWrapper"] th,
html.dark [class*="markdownContentWrapper"] td,
.dark [class*="markdownContentWrapper"] th,
.dark [class*="markdownContentWrapper"] td {
  border-color: rgba(255, 255, 255, 0.12);
}
