/* Shared safe letter body and original built-in emotes, including the reading room. */
.yobu-letter-content,.yobu-letter-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-weight:400}
.yobu-letter-content strong,.yobu-letter-preview strong{font-weight:700}
.yobu-letter-content em,.yobu-letter-preview em{font-style:italic}
.yobu-letter-content s,.yobu-letter-preview s{text-decoration:line-through}
.yobu-inline-emote{display:inline-block!important;width:80px!important;height:80px!important;object-fit:contain;vertical-align:middle;margin:4px 3px;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.yobu-received-stamp{display:flex;flex-direction:column;align-items:center;width:92px;padding:6px;margin:4px 0 18px auto;border:1px dashed #91a788;border-radius:5px;background:#f7f9ef;transform:rotate(4deg);white-space:normal}
.yobu-postage-image{display:block;width:100%;height:100%;object-fit:contain}
.yobu-received-stamp .yobu-postage-image{width:76px;height:76px}
.yobu-received-stamp small{font:8px/1.7 sans-serif;letter-spacing:2px;color:#65745c}
html[data-theme=dark] .yobu-received-stamp{background:#283b32;border-color:#698773}
html[data-theme=dark] .yobu-received-stamp small{color:#bfccae}
@media(max-width:600px){.yobu-inline-emote{width:64px!important;height:64px!important}}
/* v58: the old global caret rule also matched every child of contenteditable. */
#letter-rich[contenteditable=true],#letter-rich[contenteditable=true] *{caret-color:currentColor!important}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) :is(h1,h2,h3,h4,h5,h6){font-family:inherit;line-height:1.5;margin:.6em 0 .3em;font-weight:700;letter-spacing:normal}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) h1{font-size:1.7em}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) h2{font-size:1.45em}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) :is(h3,h4,h5,h6){font-size:1.2em}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) :is(ul,ol){margin:.4em 0;padding-left:1.7em;white-space:normal}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) li{white-space:pre-wrap;margin:.2em 0}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) blockquote{margin:.6em 0;padding:.25em 0 .25em 1em;border-left:3px solid #8ca983;color:inherit;background:rgba(137,166,118,.08)}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em;background:rgba(137,166,118,.13);border-radius:4px;padding:.1em .25em}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) pre{margin:.6em 0;padding:.7em .9em;border-radius:8px;background:rgba(137,166,118,.10);white-space:pre-wrap;overflow-wrap:anywhere}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) pre code{padding:0;background:none;border-radius:0}
:is(#letter-rich,.yobu-letter-content,.preview-letter-body,.letter-paper .letter-body) a{color:inherit;text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
