/* Assistant roleplay content only; user bubbles keep their existing typography. */
.roleplay-text {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.roleplay-text .roleplay-paragraph {
  margin: 0 0 .8em;
  white-space: pre-wrap;
}

.roleplay-text .roleplay-paragraph:last-child {
  margin-bottom: 0;
}

.roleplay-text .roleplay-narration {
  color: #7c3aed;
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  border-inline-start: 2px solid #ddd6fe;
  padding-inline-start: .55em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.roleplay-text .roleplay-dialogue {
  color: #111827;
  font-family: var(--font-sans, Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif);
  font-style: normal;
  font-weight: 700;
}

.roleplay-text .roleplay-narration em,
.roleplay-text .roleplay-dialogue em {
  color: inherit;
}

.roleplay-text .roleplay-dialogue em {
  font-style: normal;
}

.roleplay-text strong {
  font-weight: 700;
}

.roleplay-text code {
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: .08em .32em;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  font-style: normal;
  font-weight: 400;
}

.roleplay-text .roleplay-code-block {
  max-width: 100%;
  margin: .8em 0;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  line-height: 1.6;
  text-align: start;
}

.roleplay-text .roleplay-code-block:first-child {
  margin-top: 0;
}

.roleplay-text .roleplay-code-block:last-child {
  margin-bottom: 0;
}

.roleplay-text .roleplay-code-block code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  white-space: inherit;
}
