.study-note-body.is-rich-note { white-space: normal; padding: 0; }
.is-rich-note .ProseMirror { min-height: 18rem; padding: 1rem; outline: none; overflow-wrap: anywhere; line-height: 1.65; }
.is-rich-note .ProseMirror:focus-visible { box-shadow: inset 0 0 0 2px #bc9344; border-radius: .5rem; }
.is-rich-note .ProseMirror p { margin: .4em 0 .8em; }
.is-rich-note .ProseMirror h1 { font-size: 1.7em; line-height: 1.25; margin: .8em 0 .4em; }
.is-rich-note .ProseMirror h2 { font-size: 1.4em; line-height: 1.3; margin: .8em 0 .4em; }
.is-rich-note .ProseMirror h3 { font-size: 1.15em; line-height: 1.4; margin: .8em 0 .4em; }
.is-rich-note .ProseMirror ul, .is-rich-note .ProseMirror ol { padding-inline-start: 1.6em; margin-block: .2em; }
.is-rich-note .ProseMirror ul { list-style: disc; }
.is-rich-note .ProseMirror ol { list-style: decimal; }
.is-rich-note [data-kind="task"] li::marker { content: '☐  '; }
.is-rich-note [data-kind="task"][data-checked="true"] li::marker { content: '☑  '; }
.is-rich-note blockquote, .rich-note-preserved { border-inline-start: 3px solid #bc9344; padding: .6em 1em; margin: .7em 0; }
.is-rich-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.is-rich-note code { font-family: ui-monospace, monospace; background: #8882; border-radius: .2em; padding: .1em .2em; }
.is-rich-note .ProseMirror-selectednode { outline: 2px solid #bc9344; }
.rich-note-preserved img { max-width: 100%; height: auto; }
.rich-note-recovery { padding: 1rem; margin-block: .8rem; border: 1px solid #bc9344; border-radius: .8rem; background: #bc934415; }
.rich-note-recovery[hidden], .study-note-tool[hidden] { display: none !important; }
.rich-note-recovery p { margin: 0 0 .7rem; }
.rich-note-recovery button { min-height: 44px; white-space: normal; margin: .2rem; }
.study-note-toolbar { flex-wrap: wrap; }
.study-note-toolbar.is-rich-toolbar { justify-content: flex-start; gap: .25rem; }
.study-note-tool { min-width: 36px; }
@media (max-width: 600px) {
  .is-rich-note .ProseMirror { padding: .75rem .25rem; }
  .study-note-toolbar { gap: .2rem; }
  .study-note-tool { min-height: 44px; }
}
