.rich-body-label { display: block; margin-bottom: 10px; font-weight: 700; color: #24543e; }
.rich-body-help { color: #64786c; font-size: 13px; line-height: 1.8; margin: 0 0 14px; }
.rich-editor-shell { min-width: 0; border: 1px solid #a9c1b1; border-radius: 16px; overflow: hidden; background: #fff; }
.rich-editor-shell:focus-within { border-color: #408269; box-shadow: 0 0 0 3px #40826919; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; background: #f1f6f2; border-bottom: 1px solid #d6e2d9; }
.rich-toolbar button { padding: 7px 11px; border: 1px solid #d4e0d7; border-radius: 8px; color: #28533e; background: #fff; font-size: 13px; cursor: pointer; min-height: 36px; }
.rich-toolbar button:hover:not(:disabled) { border-color: #8eac99; background: #eaf3ed; }
.rich-toolbar button:focus-visible { outline: 2px solid #33765b; outline-offset: 2px; }
.rich-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.rich-editor { min-height: 320px; max-height: 680px; overflow: auto; padding: 22px; outline: none; }
.rich-editor:empty::before { content: attr(data-placeholder); color: #718278; pointer-events: none; }
.rich-editor[aria-busy="true"] { background: #f8faf8; }
.rich-editor, .page-rich-prose { color: #364d3f; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; min-width: 0; }
.page-rich-prose { overflow-x: auto; padding-bottom: 6px; }
:is(.rich-editor, .page-rich-prose) :is(p, div) { margin: 0 0 14px; }
:is(.rich-editor, .page-rich-prose) :is(h2, h3, h4) { margin: 24px 0 12px; color: #234b39; line-height: 1.5; }
:is(.rich-editor, .page-rich-prose) h2 { font-size: 25px; }
:is(.rich-editor, .page-rich-prose) h3 { font-size: 21px; }
:is(.rich-editor, .page-rich-prose) h4 { font-size: 18px; }
:is(.rich-editor, .page-rich-prose) img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; border-radius: 10px; margin: 8px 0; }
.rich-editor img { cursor: pointer; }
.rich-editor img.rich-image-selected { outline: 3px solid #438265; outline-offset: 3px; }
.rich-image-unavailable { display: inline-block; padding: 12px; border: 1px dashed #ba9277; border-radius: 10px; background: #fff8ef; color: #84542e; cursor: pointer; font-size: 13px; }
.rich-image-unavailable.rich-image-selected { outline: 2px solid #438265; outline-offset: 3px; }
:is(.rich-editor, .page-rich-prose) table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: auto; margin: 20px 0; font-size: 14px; }
:is(.rich-editor, .page-rich-prose) :is(td, th) { border: 1px solid #bdcfc2; padding: 12px 14px; vertical-align: top; min-width: 64px; }
:is(.rich-editor, .page-rich-prose) th { color: #24533c; background: #edf4ee; font-weight: 700; }
:is(.rich-editor, .page-rich-prose) td { background: #fff; }
:is(.rich-editor, .page-rich-prose) :is(td, th) > :last-child { margin-bottom: 0; }
:is(.rich-editor, .page-rich-prose) caption { padding: 10px; text-align: left; font-weight: 600; }
:is(.rich-editor, .page-rich-prose) blockquote { margin: 18px 0; border-left: 3px solid #83a18f; padding: 12px 18px; background: #f5f8f5; }
:is(.rich-editor, .page-rich-prose) :is(ul, ol) { margin: 16px 0; padding-left: 28px; }
:is(.rich-editor, .page-rich-prose) li { margin: 5px 0; }
:is(.rich-editor, .page-rich-prose) a { color: #2b7354; text-decoration: underline; text-underline-offset: 3px; }
:is(.rich-editor, .page-rich-prose) hr { border: 0; border-top: 1px solid #d4dfd5; margin: 24px 0; }
.rich-editor-status { min-height: 24px; color: #456f56; font-size: 13px; line-height: 1.7; }
@media (max-width: 480px) {
  .rich-toolbar { padding: 10px; gap: 5px; }
  .rich-toolbar button { padding: 7px 9px; }
  .rich-editor { padding: 16px; min-height: 280px; }
  :is(.rich-editor, .page-rich-prose) :is(td, th) { padding: 9px 10px; }
}
