/* 062D: Markdown-style Xiaobei answers, migrated from the old prep workbench renderer. */
.chat-stream .msg.xb .wb-message-text,
.chat-stream .msg.assistant .wb-message-text {
  color: #24413f;
  font-size: 12.8px;
  line-height: 1.68;
  white-space: normal;
}

.chat-stream .msg.xb .wb-message-text p,
.chat-stream .msg.assistant .wb-message-text p {
  margin: 0 0 9px;
}

.chat-stream .msg.xb .wb-message-text p:last-child,
.chat-stream .msg.assistant .wb-message-text p:last-child {
  margin-bottom: 0;
}

.chat-stream .msg.xb .wb-message-text h4,
.chat-stream .msg.xb .wb-message-text h5,
.chat-stream .msg.assistant .wb-message-text h4,
.chat-stream .msg.assistant .wb-message-text h5 {
  margin: 12px 0 7px;
  color: #0b5f59;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.chat-stream .msg.xb .wb-message-text h4:first-child,
.chat-stream .msg.xb .wb-message-text h5:first-child,
.chat-stream .msg.assistant .wb-message-text h4:first-child,
.chat-stream .msg.assistant .wb-message-text h5:first-child {
  margin-top: 0;
}

.chat-stream .msg.xb .wb-message-text .wb-md-lesson-heading,
.chat-stream .msg.assistant .wb-message-text .wb-md-lesson-heading {
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid #e2eee9;
}

.chat-stream .msg.xb .wb-message-text ul,
.chat-stream .msg.xb .wb-message-text ol,
.chat-stream .msg.assistant .wb-message-text ul,
.chat-stream .msg.assistant .wb-message-text ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.chat-stream .msg.xb .wb-message-text li,
.chat-stream .msg.assistant .wb-message-text li {
  margin: 3px 0;
}

.chat-stream .msg.xb .wb-message-text strong,
.chat-stream .msg.assistant .wb-message-text strong {
  color: #073f3c;
  font-weight: 900;
}

.chat-stream .msg.xb .wb-md-field-grid,
.chat-stream .msg.assistant .wb-md-field-grid {
  display: grid;
  gap: 7px;
  margin: 8px 0 10px;
}

.chat-stream .msg.xb .wb-md-field-grid > h5,
.chat-stream .msg.assistant .wb-md-field-grid > h5 {
  margin: 2px 0 0;
}

.chat-stream .msg.xb .wb-md-field,
.chat-stream .msg.assistant .wb-md-field {
  display: grid;
  grid-template-columns: minmax(72px, .32fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 9px;
  border: 1px solid #deebe7;
  border-radius: 10px;
  background: rgba(248, 252, 249, .86);
}

.chat-stream .msg.xb .wb-md-field + .wb-md-field,
.chat-stream .msg.assistant .wb-md-field + .wb-md-field {
  margin-top: 7px;
}

.chat-stream .msg.xb .wb-md-field strong,
.chat-stream .msg.assistant .wb-md-field strong {
  color: #0b5f59;
  font-size: 12px;
  line-height: 1.5;
}

.chat-stream .msg.xb .wb-md-field span,
.chat-stream .msg.assistant .wb-md-field span {
  min-width: 0;
  color: #24413f;
  line-height: 1.55;
}

.chat-stream .msg.xb .wb-message-text code,
.chat-stream .msg.assistant .wb-message-text code {
  padding: 1px 5px;
  border-radius: 6px;
  background: #eef8f5;
  color: #0b6f66;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

.chat-stream .msg.xb .wb-message-text hr,
.chat-stream .msg.assistant .wb-message-text hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #dceae6;
}

.chat-stream .msg.xb .wb-message-text blockquote,
.chat-stream .msg.assistant .wb-message-text blockquote {
  margin: 8px 0;
  padding: 6px 10px;
  border-left: 3px solid #60c8bd;
  border-radius: 8px;
  background: #f1fbf8;
  color: #315f5a;
}

.chat-stream .msg.xb .wb-md-table-wrap,
.chat-stream .msg.assistant .wb-md-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 10px;
  border: 1px solid #e6d8c9;
  border-radius: 10px;
  background: #fffaf2;
}

.chat-stream .msg.xb .wb-md-table-wrap table,
.chat-stream .msg.assistant .wb-md-table-wrap table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.chat-stream .msg.xb .wb-md-table-wrap th,
.chat-stream .msg.xb .wb-md-table-wrap td,
.chat-stream .msg.assistant .wb-md-table-wrap th,
.chat-stream .msg.assistant .wb-md-table-wrap td {
  padding: 7px 9px;
  border-bottom: 1px solid #eadfd2;
  border-color: #eadfd2 !important;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.chat-stream .msg.xb .wb-md-table-wrap th,
.chat-stream .msg.assistant .wb-md-table-wrap th {
  background: #f8f1e8;
  color: #5a4330;
  font-weight: 900;
}

.chat-stream .msg.xb .wb-md-table-wrap tr:last-child td,
.chat-stream .msg.assistant .wb-md-table-wrap tr:last-child td {
  border-bottom: 0;
}
