/* Portable rich content: typography only, never pasted page styles. */
.card-rich-content :is(p,div,ul,ol,li,table,blockquote,pre,h1,h2,h3,h4),.card-rich-editor :is(p,div,ul,ol,li,table,blockquote,pre,h1,h2,h3,h4){white-space:normal}
.card-rich-content :is(p,div),.card-rich-editor :is(p,div){margin:0}
.card-rich-content :is(ul,ol),.card-rich-editor :is(ul,ol){padding-left:1.65em;margin:.4em 0}
.card-rich-content li,.card-rich-editor li{margin:.15em 0}
.card-rich-content table,.card-rich-editor table{border-collapse:collapse;width:max-content;max-width:none;margin:10px 0;font-size:inherit;line-height:1.5;table-layout:auto}
.card-rich-content :is(td,th),.card-rich-editor :is(td,th){border:1px solid #ddd9e7;padding:9px 12px;min-width:110px;max-width:320px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;text-align:left}
.card-rich-content th,.card-rich-editor th{background:#fff4d6;font-weight:700}
.card-rich-content a,.card-rich-editor a{color:#6353bd;text-decoration:underline}
.card-rich-content blockquote,.card-rich-editor blockquote{border-left:3px solid #d8c7ed;padding-left:12px;margin:10px 0;color:#70677f}
.card-rich-content pre,.card-rich-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f3f8;border-radius:8px;padding:10px}
.card-rich-content code,.card-rich-editor code{font-family:ui-monospace,monospace;background:#f5f3f8;border-radius:4px}
#cards .card-rich-content :is(h1,h2,h3,h4){font-size:1.1em;line-height:1.5;margin:.6em 0 .3em;color:inherit}

/* An actual editable line after a terminal image, not stored placeholder text. */
[data-image-tail]{position:relative;display:block;min-height:1.65em;cursor:text}
[data-image-tail]:has(>br:only-child)::before{content:attr(data-placeholder);position:absolute;left:0;top:0;color:#96919d;font-size:.88em;pointer-events:none;user-select:none}

a[data-card-auto-link][href]{color:#6353bd;text-decoration:underline;text-underline-offset:2px;cursor:pointer;overflow-wrap:anywhere}
a[data-card-auto-link]:not([href]){color:inherit;text-decoration:none;cursor:text}
