/* NOTE_RICH_FORMAT_20261020. No document mutations when viewing a note. */
.note-format-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:9px 10px;background:#fff;border:1px solid #dfe5ef;border-radius:9px;margin:8px 0 5px;color:#374151}
.note-format-toolbar button,.note-format-toolbar select,.note-format-toolbar input {box-sizing:border-box;min-height:31px;border:1px solid #dce2eb;border-radius:5px;background:#fff;color:inherit;font:13px system-ui;padding:4px 7px;max-width:100%}
.note-format-toolbar button {cursor:pointer;min-width:31px}
.note-format-toolbar button:hover,.note-format-toolbar button[aria-pressed=true] {background:#eaf1ff;color:#315db3}
.note-format-toolbar label {display:inline-flex;align-items:center;gap:4px;font:12px system-ui;color:#657187}
.note-format-toolbar input[type=number] {width:58px}
.note-format-toolbar input[type=color] {width:30px;padding:2px}
.note-format-toolbar .note-format-separator {height:22px;border-left:1px solid #dce2eb;margin:0 3px}
.note-format-toolbar details {position:relative}
.note-format-toolbar summary {cursor:pointer;list-style:none;font-size:13px;padding:5px 8px;border:1px solid #dce2eb;border-radius:5px}
.note-format-toolbar details>div {position:absolute;top:36px;right:0;z-index:9000;width:280px;max-width:82vw;display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#fff;border:1px solid #dce2eb;border-radius:8px;box-shadow:0 8px 30px #172b4d22}
.note-format-status {font-size:12px;line-height:1.65;color:#62748d;margin:4px 2px;min-height:20px}
.note-format-status[data-error=true] {color:#b42318}
.note-word-dialog {box-sizing:border-box;width:min(1080px,94vw);max-height:90vh;border:1px solid #dce2eb;border-radius:12px;padding:22px;color:#344054;background:#fff}
.note-word-dialog::backdrop {background:#172b4d66}
.note-word-dialog h2 {font:600 20px system-ui;margin:0 0 10px}
.note-word-dialog>p {font:13px/1.7 system-ui;color:#62748d}
.note-word-preview {padding:16px;border:1px solid #e1e6ef;max-height:56vh;overflow:auto;min-height:120px;background:white}
.note-word-actions {display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}
.note-word-actions button {padding:8px 14px;border:1px solid #dce2eb;border-radius:6px;background:#fff;color:#345482;cursor:pointer}
.note-word-actions button:disabled {opacity:.45;cursor:default}
[data-note-format-legacy] :is([data-rich-cmd],[data-rich-block],.note-heading-select) {display:none}
/* Respect inline formatting pasted from the source; defaults only fill gaps. */
:is(.rich-writing,.youdao-content) :is(h1,h2,h3,h4,h5,h6) {line-height:1.35;color:inherit}
:is(.rich-writing,.youdao-content) h1 {font-size:28px;margin:24px 0 14px;font-weight:700}
:is(.rich-writing,.youdao-content) h2 {font-size:22px;margin:20px 0 12px;font-weight:700}
:is(.rich-writing,.youdao-content) h3 {font-size:18px;margin:18px 0 10px;font-weight:700}
:is(.rich-writing,.youdao-content) ol {list-style-type:decimal;padding-left:1.8em}
:is(.rich-writing,.youdao-content) ol ol {list-style-type:lower-alpha}
:is(.rich-writing,.youdao-content) ol ol ol {list-style-type:lower-roman}
:is(.rich-writing,.youdao-content) ol[type="1"] {list-style-type:decimal}
:is(.rich-writing,.youdao-content) ol[type=a] {list-style-type:lower-alpha}
:is(.rich-writing,.youdao-content) ol[type=A] {list-style-type:upper-alpha}
:is(.rich-writing,.youdao-content) ol[type=i] {list-style-type:lower-roman}
:is(.rich-writing,.youdao-content) ol[type=I] {list-style-type:upper-roman}
:is(.rich-writing,.youdao-content) li::marker {color:var(--note-marker-color,#6687ff)}
:is(.rich-writing,.youdao-content) li {margin:5px 0}
:is(.rich-writing,.youdao-content) table {border-collapse:collapse;max-width:100%}
:is(.rich-writing,.youdao-content) :is(td,th) {border:1px solid #d9dfe8;padding:7px 10px;vertical-align:top}
:is(.rich-writing,.youdao-content) pre {white-space:pre-wrap;background:#f3f5f7;padding:12px;border-radius:5px}
:is(.rich-writing,.youdao-content) img {max-width:100%}
@media(max-width:700px){.note-format-toolbar {gap:4px;padding:7px}.note-format-toolbar details>div {position:fixed;top:20vh;left:5vw;right:auto;width:90vw;max-width:90vw;box-sizing:border-box}.note-format-toolbar label{font-size:11px}}
