.markdown-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.markdown-toolbar .button{padding:7px 9px;font-size:12px}.markdown-body{white-space:normal;overflow-wrap:anywhere}.markdown-body p{margin:0 0 12px}.markdown-body pre{white-space:pre;overflow:auto;background:#f2f5f8;padding:14px;border-radius:6px}.markdown-body code{font-family:monospace;background:#edf1f4;padding:2px 4px}.markdown-body pre code{padding:0}.markdown-body blockquote{border-left:3px solid #9bb4c8;margin:12px 0;padding:2px 15px;color:#536578}.markdown-preview{border:1px solid #d9e1e8;padding:18px;margin:12px 0;background:#fff}.markdown-preview[hidden]{display:none}

.markdown-body img{display:block;max-width:100%;height:auto;margin:16px 0;border:1px solid #dce5e7;border-radius:6px}

/* Shared, dependency-free editor chrome for staff and customer forms. */
.markdown-editor-shell{margin:10px 0 16px;border:1px solid #c9d7e2;border-radius:5px;background:#fff;overflow:hidden;min-width:0}
.markdown-editor-shell:focus-within{border-color:#87abc5;box-shadow:0 0 0 2px #2472a615}
div.markdown-editor-shell .markdown-toolbar-unified{display:flex;align-items:center;gap:8px;margin:0;padding:8px;background:#f3f6f8;border:0;border-bottom:1px solid #d7e0e7;border-radius:0}
.markdown-editor-shell .markdown-button-group,.markdown-editor-shell .markdown-view-controls{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
.markdown-editor-shell .markdown-button-group+.markdown-button-group{padding-left:8px;border-left:1px solid #d0dbe4}
div.markdown-editor-shell .markdown-toolbar .button{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-height:30px;padding:4px 8px;margin:0;border:1px solid #cbd6df;border-radius:3px;background:#fff;color:#39546a;font-size:11px;line-height:1.3;text-decoration:none}
div.markdown-editor-shell .markdown-toolbar .markdown-icon-button{width:32px;padding:5px}
div.markdown-editor-shell .markdown-toolbar svg{display:block;width:16px;height:16px;flex-shrink:0}
div.markdown-editor-shell .markdown-toolbar .button:hover{background:#e8f1f7;border-color:#87aac5}
div.markdown-editor-shell .markdown-toolbar .button:focus-visible{outline:2px solid #246da6;outline-offset:2px}
div.markdown-editor-shell .markdown-toolbar [data-markdown-preview]{margin:0;background:#246da6;color:#fff;border-color:#246da6}
div.markdown-editor-shell .markdown-toolbar [data-markdown-preview][aria-pressed=true]{background:#e8f2f8;color:#205677}
div.markdown-editor-shell .markdown-toolbar .markdown-expand-button{margin-left:auto}
div.markdown-editor-shell>textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:210px;margin:0;padding:12px;border:0;border-radius:0;box-shadow:none;line-height:1.6;resize:vertical;background:#fff;color:#263e50}
div.markdown-editor-shell>textarea:focus{outline:0;box-shadow:none}
div.markdown-editor-shell>textarea[hidden]{display:none}
.markdown-editor-shell>.markdown-preview{min-height:210px;margin:0;padding:12px;border:0;border-radius:0;box-sizing:border-box}
.markdown-editor-status{display:flex;justify-content:flex-end;padding:6px 12px;border-top:1px solid #e0e7ed;background:#f6f8fa;color:#657a89;font-size:10px;line-height:1.4}
.markdown-editor-shell.markdown-editor-expanded{position:fixed;inset:20px;z-index:2000;display:flex;flex-direction:column;margin:0;box-shadow:0 12px 70px #102a4680}
div.markdown-editor-shell.markdown-editor-expanded>textarea,.markdown-editor-expanded>.markdown-preview{flex:1;min-height:0;overflow:auto;resize:none}
.markdown-editor-expanded>.markdown-toolbar,.markdown-editor-expanded>.markdown-editor-status{flex-shrink:0}
@media(max-width:600px){div.markdown-editor-shell .markdown-toolbar-unified{padding:6px;gap:8px}.markdown-editor-shell .markdown-button-group+.markdown-button-group{padding-left:0;border:0}.markdown-editor-shell.markdown-editor-expanded{inset:8px}.markdown-editor-shell .markdown-view-controls{margin-left:0}}

.is-admin .main-content .markdown-editor-shell>textarea{border:0;border-radius:0;margin:0;box-shadow:none}
.is-admin .main-content .markdown-editor-shell.markdown-editor-expanded>textarea{resize:none;min-height:0}
