.chat-reply {
  min-width: 0;
  color: #d5dee9;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.chat-reply > * + *, .chat-reply li > :is(p, pre) + :is(p, pre), .chat-reply blockquote > * + * { margin-block-start: 12px; }
.chat-reply :is(h1, h2, h3, h4, h5, h6) {
  color: #f3f6fc;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.chat-reply h1 { font-size: 26px; letter-spacing: -.027em; }
.chat-reply h2 { font-size: 20px; }
.chat-reply h3 { font-size: 17px; }
.chat-reply h4 { font-size: 16px; }
.chat-reply h5 { font-size: 15px; }
.chat-reply h6 { font-size: 14px; letter-spacing: normal; }
.chat-reply > * + :is(h1, h2, h3, h4, h5, h6) { margin-block-start: 22px; }
.chat-reply :is(h1, h2, h3, h4, h5, h6) + * { margin-block-start: 8px; }
.chat-reply p { max-width: 76ch; }
.chat-reply strong { color: #f3f6fc; font-weight: 650; }
.chat-reply del { color: #a9b9cf; }

.chat-reply :is(ul, ol) { padding-inline-start: 1.65em; }
.chat-reply ol { list-style: decimal outside; }
.chat-reply ul { list-style: disc outside; }
.chat-reply li ul { list-style-type: circle; }
.chat-reply li ul ul { list-style-type: square; }
.chat-reply li { padding-inline-start: .2em; }
.chat-reply li::marker { color: #a9b9cf; font-weight: 600; }
.chat-reply li + li, .chat-reply li > :is(ol, ul) { margin-block-start: 4px; }
.chat-reply .chat-checklist-item {
  position: relative;
  margin-inline-start: -1.65em;
  padding-inline-start: 24px;
  list-style: none;
}
.chat-checklist-item input {
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #93a1b5;
  border-radius: 3px;
}
.chat-checklist-item input:checked { background: #a2c6ff; border-color: #a2c6ff; }
.chat-checklist-item input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 4px;
  height: 7px;
  border: solid #172336;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chat-reply blockquote { padding-inline-start: 12px; border-inline-start: 3px solid #405066; color: #c2cddd; }
.chat-reply hr { margin-block-start: 20px; border: 0; border-top: 1px solid #354151; }
.chat-reply a { color: #a2c6ff; text-decoration: underline; text-underline-offset: 3px; }
.chat-reply a:hover { color: #d7e7ff; }
.chat-reply :focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 3px; }
.chat-reply :is(pre, code) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.chat-reply :not(pre) > code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #263548;
  color: #d7e7ff;
  font-size: .87em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chat-reply pre, .chat-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #57677c #182230;
  border: 1px solid #405066;
  border-radius: 7px;
}
.chat-reply pre {
  padding: 12px;
  background: #141e2b;
  color: #d7e7ff;
  font-size: 13px;
  white-space: pre;
  overflow-wrap: normal;
}
.chat-reply pre code { font: inherit; }
.chat-table table { width: 100%; border-collapse: collapse; text-align: start; font-size: 14px; line-height: 1.5; }
.chat-table :is(th, td) { min-width: 12ch; padding: 8px 12px; border-bottom: 1px solid #354151; text-align: start; vertical-align: top; }
.chat-table th { background: #263344; color: #eff5ff; font-weight: 600; }
.chat-table td { background: #1b2635; }
.chat-table .align-center { text-align: center; }
.chat-table .align-right { text-align: right; }
.chat-table .align-left { text-align: left; }
.chat-table tr:last-child td { border-bottom: 0; }

@media (max-width: 767px) {
  .chat-reply h1 { font-size: 24px; }
  .chat-reply h2 { font-size: 19px; }
}
