/* The same typography is used while composing and reading a post. */
dialog:has(#compose-form),dialog:has(.re-content){width:min(1060px,calc(100vw - 32px));max-width:1060px}
.re-editor{border:1px solid #dfe3d7;border-radius:12px;overflow:hidden;background:#fff}
.re-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:10px;background:#f2f5eb;border-bottom:1px solid #dfe3d7}
.re-button,.re-select{font-size:12px;line-height:1.4;border:1px solid #d7dfcd;background:#fff;color:#274c40;border-radius:6px;padding:6px 9px;min-height:30px;cursor:pointer;white-space:nowrap}
.re-button:hover,.re-button.active{background:#dce6a2;border-color:#9eaf70}
.re-bold{font-weight:800}.re-button:disabled{opacity:.4}.re-toolbar .re-select{width:auto!important;padding:6px!important;font-size:12px!important}.re-color{display:flex;align-items:center;gap:3px;font-size:11px;font-weight:400!important;margin:0 3px}.re-color input{padding:0!important;border:0!important;width:25px!important;height:27px;background:none}
.re-context{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px;border-bottom:1px solid #dfe3d7;background:#fff9e8;font-size:11px}.re-context[hidden]{display:none}.re-context input[type=range]{width:110px;padding:0;box-shadow:none}
.re-content{font-size:16px;line-height:1.85;color:#263b33;overflow-wrap:anywhere;white-space:normal;display:flow-root}
.re-surface .re-content{outline:none;min-height:300px;padding:22px;max-height:62vh;overflow:auto}
.re-content p{margin:0 0 .9em}.re-content h1{font-size:2em;line-height:1.4;margin:1em 0 .5em}.re-content h2{font-size:1.55em;line-height:1.5;margin:1em 0 .5em}.re-content h3{font-size:1.25em;line-height:1.5;margin:1em 0 .5em}
.re-content ul,.re-content ol{padding-left:1.8em;margin:.5em 0 1em}.re-content li>p{margin-bottom:.25em}.re-content blockquote{border-left:4px solid #99b076;background:#f4f6ec;padding:12px 20px;margin:1em 0;color:#55715e}.re-content pre{background:#173c35;color:#e8eee0;border-radius:9px;padding:18px;white-space:pre-wrap;font-family:monospace;clear:both}.re-content code{font-family:monospace;background:#edf0e6;padding:2px 5px;border-radius:4px}.re-content pre code{background:none;color:inherit;padding:0}.re-content a{color:#326d63;text-decoration:underline}.re-content hr{border:0;border-top:1px solid #d7dfcd;clear:both}
.re-content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0;clear:both}.re-content td,.re-content th{border:1px solid #b9c8ae;padding:9px 12px;min-width:50px;vertical-align:top;position:relative}.re-content th{background:#edf1e3;font-weight:700}.re-content td p:last-child,.re-content th p:last-child{margin:0}.re-content .tableWrapper{overflow-x:auto;clear:both}.re-content .selectedCell:after{content:'';position:absolute;inset:0;background:#aac87d44;pointer-events:none}.re-content .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#8eaa5e;pointer-events:none}.re-content.resize-cursor{cursor:col-resize}
.re-image-node,.re-read-image{position:relative;max-width:100%;margin:12px 0;line-height:0;clear:both}.re-image-node img,.re-read-image img{display:block;width:100%;height:auto;border-radius:5px}.re-image-node[data-align=left],.re-read-image[data-align=left]{float:left;clear:left;margin:6px 22px 12px 0;max-width:70%}.re-image-node[data-align=right],.re-read-image[data-align=right]{float:right;clear:right;margin:6px 0 12px 22px;max-width:70%}.re-image-node[data-align=center],.re-read-image[data-align=center]{margin:16px auto}.re-image-node.selected{outline:2px solid #8ba957;outline-offset:3px}.re-image-grip{position:absolute;right:0;bottom:0;width:27px;height:27px;padding:0;background:#163d37;color:#fff;border-radius:5px 0 0 0;border:0;cursor:nwse-resize;touch-action:none;opacity:0}.re-image-node:hover .re-image-grip,.re-image-node.selected .re-image-grip{opacity:1}
.re-status{font-size:11px;color:#74816f;padding:9px 14px;background:#f7f9f2;border-top:1px solid #edf0e6}
.re-content .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#9aa391;pointer-events:none;height:0}
.re-video-node{clear:both;margin:20px 0;position:relative;aspect-ratio:16/9;width:100%;background:#e8eddb;border-radius:10px;overflow:hidden}.re-video-node iframe{border:0;width:100%;height:100%;position:absolute;inset:0}
.re-diagram-node{clear:both;margin:20px 0;border:1px solid #dfe6d4;border-radius:10px;background:#fafcf7;overflow:hidden;line-height:1.3}.re-diagram-node svg{display:block;width:100%;height:auto}.re-diagram-node .re-button{margin:0 12px 12px}
.re-diagram-dialog{width:min(1040px,calc(100vw - 24px));max-width:1040px;max-height:94vh;border:0;border-radius:15px;padding:22px;background:#fbfcf7;color:#203b35}.re-diagram-dialog::backdrop{background:#143a34aa}.re-diagram-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.re-diagram-head h2{font-size:20px;margin:0 0 16px}.re-help{font-size:12px;color:#738168;line-height:1.7}.re-diagram-canvas{border:1px solid #d5dfc9;border-radius:8px;background-color:#fff;background-image:radial-gradient(#dce3d0 1px,transparent 1px);background-size:20px 20px;touch-action:none}.re-diagram-canvas svg{display:block;width:100%;height:auto;max-height:52vh;user-select:none}.re-diagram-canvas g{cursor:move}.re-diagram-properties{display:flex;align-items:center;gap:14px;margin:15px 0;flex-wrap:wrap}.re-diagram-properties label{font-size:12px;display:flex;align-items:center;gap:8px}.re-diagram-properties textarea{font:inherit;border:1px solid #d5dfc9;border-radius:6px;padding:6px;width:220px;height:56px}.re-diagram-properties input[type=range]{width:100px}.re-diagram-properties input[type=color]{width:35px;height:30px;padding:0;border:0}
.prose:has(.re-content){white-space:normal}.prose:has(.re-content) .re-content p{font-size:inherit;color:inherit;line-height:inherit}.re-editor:focus-within{border-color:#8ba957;box-shadow:0 0 0 3px #a8bf7e22}
@media(max-width:680px){dialog:has(#compose-form),dialog:has(.re-content){width:calc(100vw - 12px);max-height:96vh}.re-toolbar{padding:6px;gap:4px}.re-button{font-size:11px;padding:6px}.re-surface .re-content{min-height:280px;padding:14px}.re-content{font-size:15px}.re-context{gap:5px}.re-diagram-dialog{padding:12px}.re-diagram-properties{gap:8px}.re-image-node[data-align=left],.re-read-image[data-align=left],.re-image-node[data-align=right],.re-read-image[data-align=right]{max-width:60%}}
