#root :is(.rich-guide-content, .guide-body-reader, .activity-guide-reuse-body) {
  white-space: pre-wrap;
  white-space: break-spaces;
}
#root .guide-document-editor {
  --ui-input-height: 36px;
  min-inline-size: 0;
  color: var(--ios-ink, #1f2329);
  background: #fff;
}
#root .rich-guide-toolbar,
#root .rich-guide-toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  min-inline-size: 0;
}
#root .rich-guide-toolbar {
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ios-line, #e5e7eb);
  background: #fff;
}
#root .rich-guide-toolbar-group {
  padding-inline-start: 8px;
  border-inline-start: 1px solid #e5e7eb;
}
#root .rich-guide-toolbar select {
  inline-size: 112px;
  max-inline-size: 100%;
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}
#root .rich-guide-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  inline-size: 36px;
  min-inline-size: 36px;
  block-size: 36px;
  min-block-size: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #4e5969;
  background: transparent;
  cursor: pointer;
}
#root .rich-guide-toolbar button:hover:not(:disabled),
#root .rich-guide-toolbar select:hover:not(:disabled) {
  background-color: #f2f3f5;
}
#root .rich-guide-toolbar button[aria-pressed=true] {
  color: #235bd7;
  background: #eaf1ff;
}
#root .rich-guide-toolbar button:disabled {
  opacity: .35;
  cursor: default;
}
#root .rich-guide-toolbar :is(button, select):focus-visible {
  outline: 2px solid #3370ff;
  outline-offset: 1px;
}
#root .guide-document-surface {
  min-inline-size: 0;
}
#root .guide-document-content {
  --ui-font-size: 16px;
  --ui-font-weight: 400;
  --ui-line-height: 1.8;
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: 360px;
  max-block-size: 520px;
  margin: 0;
  padding: 28px clamp(20px, 4vw, 48px) 40px;
  border: 0;
  border-radius: 0;
  outline: none;
  color: #1f2329;
  background: #fff;
  font-family: var(--ios-font-ui, "Microsoft YaHei", sans-serif);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  white-space: break-spaces;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#root .guide-document-content > :first-child {
  margin-block-start: 0;
}
#root .guide-document-content :is(p, h1, h2, h3, h4, h5, h6) {
  max-inline-size: 100%;
  text-align: start;
}
#root .guide-document-content p {
  margin: 0 0 .8em;
}
#root .guide-document-content :is(h1, h2, h3, h4, h5, h6) {
  --ui-font-weight: 700;
  --ui-line-height: 1.4;
  margin: 1.1em 0 .5em;
  font-weight: 700;
  line-height: 1.4;
}
#root .guide-document-content h1 {
  --ui-font-size: 28px;
  font-size: 28px;
}
#root .guide-document-content h2 {
  --ui-font-size: 23px;
  font-size: 23px;
}
#root .guide-document-content h3 {
  --ui-font-size: 19px;
  font-size: 19px;
}
#root .guide-document-content :is(h4, h5, h6) {
  --ui-font-size: 17px;
  font-size: 17px;
}
#root .guide-document-content :is(b, strong) {
  --ui-font-weight: 700;
  font-weight: 700;
}
#root .guide-document-content :is(em, i) {
  font-style: italic;
}
#root .guide-document-content u {
  text-decoration: underline;
}
#root .guide-document-content :is(ul, ol) {
  margin: .5em 0 .8em;
  padding-inline-start: 1.6em;
}
#root .guide-document-content ul {
  list-style-type: disc;
}
#root .guide-document-content ol {
  list-style-type: decimal;
}
#root .guide-document-content li {
  display: list-item;
  margin: .25em 0;
}
#root .guide-document-content li > p {
  margin: 0;
}
#root .guide-document-content blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 16px;
  border-inline-start: 3px solid #c9cdd4;
  color: #646a73;
}
#root .guide-document-content blockquote > :last-child {
  margin-block-end: 0;
}
#root .guide-document-content[data-empty=true]::before {
  float: left;
  block-size: 0;
  content: attr(data-placeholder);
  color: #a0a6b1;
  pointer-events: none;
}
#root .guide-document-content[contenteditable=false] {
  cursor: default;
}
#root .guide-document-content .ProseMirror-selectednode {
  outline: 2px solid #9ebfff;
}
#root .guide-document-loading {
  margin: 0;
  padding: 24px;
  color: #646a73;
}
#root .guide-document-editor .guide-body-status {
  --ui-font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  min-inline-size: 0;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-top: 1px solid var(--ios-line, #e5e7eb);
  border-radius: 0;
  color: #8f959e;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#root .guide-body-status > p {
  margin: 0;
}
#root .guide-body-counter {
  flex: none;
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
}
#root .guide-body-status.is-over-limit {
  color: #a92127;
  background: #fff5f3;
}
#root .guide-body-status.is-over-limit .guide-body-limit-help {
  flex-basis: 100%;
}
#root .guide-change-section .guide-document-editor {
  border: 1px solid var(--ios-line, #e5e7eb);
  border-radius: 8px;
}
@media (max-width: 700px) {
  #root .guide-document-editor {
    --ui-input-height: 40px;
  }
  #root .rich-guide-toolbar {
    gap: 4px;
    padding: 6px 8px;
  }
  #root .rich-guide-toolbar-group {
    padding-inline-start: 4px;
  }
  #root .rich-guide-toolbar select {
    inline-size: 100px;
  }
  #root .rich-guide-toolbar button {
    flex-basis: 40px;
    inline-size: 40px;
    min-inline-size: 40px;
    block-size: 40px;
    min-block-size: 40px;
  }
  #root .guide-document-content {
    min-block-size: 320px;
    padding: 24px 20px 32px;
  }
  #root .guide-document-editor .guide-body-status {
    padding-inline: 12px;
  }
}
