.field-content-editor > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 44, 0.05);
}

.rich-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 12px;
  border-bottom: 1px solid #e7eaee;
  background: rgba(250, 251, 252, 0.97);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rich-editor-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 0 0 auto;
}

.rich-editor-group + .rich-editor-group {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid #e0e4e9;
}

.rich-editor-button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #303743;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.rich-editor-button:hover,
.rich-editor-button:focus-visible {
  border-color: #d7dce2;
  background: #fff;
  outline: none;
}

.rich-editor-button:active {
  transform: translateY(1px);
  background: #f0f2f5;
}

.rich-editor-text-button {
  min-width: auto;
  font-size: 13px;
  font-weight: 650;
}

.rich-editor-writing-area {
  background: #fff;
}

.rich-editor-writing-area textarea {
  width: 100%;
  min-height: 430px;
  margin: 0;
  padding: 30px 34px 38px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  resize: vertical;
  box-shadow: none !important;
  background: transparent;
  color: #222831;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.9;
}

.rich-editor-writing-area textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(58, 105, 255, 0.08) !important;
}

.rich-editor-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid #edf0f3;
  background: #fbfcfd;
  color: #7a828d;
  font-size: 12px;
}

.wiki-numbered {
  margin: 12px 0 18px;
  padding-left: 28px;
}

.wiki-numbered li + li {
  margin-top: 7px;
}

.wiki-quote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid #b8c0cc;
  border-radius: 0 10px 10px 0;
  background: #f7f8fa;
  color: #4a5260;
}

.wiki-divider {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: #e1e5ea;
}

.wiki-external-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.document-body strong {
  font-weight: 750;
}

.document-body del {
  color: #777f89;
}

@media (max-width: 720px) {
  .rich-editor {
    border-radius: 14px;
  }

  .rich-editor-toolbar {
    padding: 8px;
  }

  .rich-editor-button {
    height: 34px;
    min-width: 34px;
    padding: 0 9px;
  }

  .rich-editor-writing-area textarea {
    min-height: 360px;
    padding: 22px 18px 30px;
    font-size: 16px;
    line-height: 1.8;
  }

  .rich-editor-status {
    align-items: flex-end;
  }

  .rich-editor-status span:first-child {
    max-width: 75%;
  }
}
