.rich-viewer{color:var(--foreground);white-space:pre-wrap;overflow-wrap:break-word;--heading-1-size:var(--text-lg);--heading-1-leading:var(--text-lg--line-height)}.rich-viewer ul:not(:first-child),.rich-viewer ol:not(:first-child),.rich-viewer pre:not(:first-child),.rich-viewer figure:not(:first-child),.rich-viewer hr:not(:first-child),.rich-viewer .rich-viewer-grid-block:not(:first-child),.rich-viewer .rich-viewer-table-scroll:not(:first-child){margin-top:.75rem}.rich-viewer :is(h2,h3,h4,h5,h6):not(:first-child){margin-top:2rem}.rich-viewer p:empty{min-height:1lh}.rich-viewer ul,.rich-viewer ol{padding-inline-start:1.5rem}.rich-viewer ul{list-style:outside}.rich-viewer ol{list-style:decimal}.rich-viewer ol[type=a]{list-style:lower-alpha}.rich-viewer ol[type=A]{list-style:upper-alpha}.rich-viewer ol[type=i]{list-style:lower-roman}.rich-viewer ol[type=I]{list-style:upper-roman}.rich-viewer-tasks{padding-inline-start:0;list-style:none}.rich-viewer-task{align-items:flex-start;gap:.5rem;display:flex}.rich-viewer-task>input{margin-top:.4rem}.rich-viewer-task-content{flex:1;min-width:0}.rich-viewer blockquote{border-inline-start:1px solid var(--border);color:var(--muted-foreground);padding-inline-start:.75rem}.rich-viewer hr{border:0;border-top:1px solid var(--border)}.rich-viewer-inline-code{background:var(--muted);font-family:var(--font-mono,ui-monospace), monospace;padding:.05rem .25rem;font-size:.875em}.rich-viewer-code{background:var(--muted);border:1px solid var(--border);font-family:var(--font-mono,ui-monospace), monospace;white-space:pre;tab-size:2;padding:.5rem .75rem;font-size:.875em;overflow-x:auto}.rich-viewer-highlight{background:var(--accent);color:var(--accent-foreground)}.rich-viewer-tag{color:var(--primary);font-weight:500}.rich-viewer-table-scroll{max-width:100%;overflow-x:auto}.rich-viewer-table{border-collapse:collapse;table-layout:fixed;width:max-content;min-width:100%}.rich-viewer-table td,.rich-viewer-table th{border:1px solid var(--border);vertical-align:top;text-align:start;min-width:6rem;padding:.375rem .5rem}.rich-viewer-table th{background:var(--muted)}.rich-viewer-photo{--rich-viewer-photo-max-height:min(70svh, 40rem);flex-direction:column;gap:.25rem;width:fit-content;min-width:min(100%,12rem);max-width:100%;display:flex}.rich-viewer-photo[data-alignment=center]{margin-inline:auto}.rich-viewer-photo[data-alignment=right]{margin-inline-start:auto}.rich-viewer-photo-open{cursor:zoom-in;text-align:start;background:0 0;border:0;padding:0;display:block}.rich-viewer-photo-open:disabled{cursor:default}.rich-viewer-photo-open:focus-visible{outline:1px solid var(--ring);outline-offset:2px}.rich-viewer-photo-image{width:100%;max-width:100%;height:auto;display:block}.rich-viewer-caption{color:var(--muted-foreground);font-size:.875rem}.rich-viewer-grid{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.25rem;display:grid}.rich-viewer-grid .rich-viewer-photo-failed{min-height:0}.rich-viewer-grid-block{flex-direction:column;gap:.25rem;display:flex}.rich-viewer-grid-item{flex-direction:column;gap:.25rem;min-width:0;display:flex}.rich-viewer-grid-image{aspect-ratio:1;object-fit:cover;width:100%;height:auto;display:block}.rich-viewer-note{border:1px solid var(--border);background:var(--muted);color:var(--muted-foreground);align-items:center;gap:.5rem;padding:.375rem .5rem;font-size:.875rem;display:flex}.rich-viewer-photo-failed{border:1px dashed color-mix(in oklch, var(--muted-foreground) 45%, transparent);background:var(--card);min-height:6rem;color:var(--muted-foreground);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;padding:.75rem;font-size:.875rem;display:flex}
