.rich-text { position:relative; min-width:0; border:1px solid var(--line); border-radius:4px; background:var(--panel); }
.rich-text-toolbar { display:flex; flex-wrap:wrap; gap:2px; padding:4px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--panel) 86%,var(--line)); }
.rich-text-toolbar button { display:grid; place-items:center; width:28px; min-width:28px; height:28px; min-height:28px; padding:3px; border:0; border-radius:3px; background:transparent; color:var(--text); font:inherit; font-size:12px; cursor:pointer; }
.rich-text-toolbar button:hover,.rich-text-toolbar button:focus-visible { background:var(--line); outline:0; }
.rich-text-toolbar svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rich-text-editor { min-height:72px; padding:8px 10px; outline:0; overflow-wrap:anywhere; white-space:pre-wrap; }
html body :is(.rich-text-editor,.project-note-content,.event-note-content,.sal-note-content,.event-minutes section > div) { font-weight:400 !important; }
html body :is(.rich-text-editor,.project-note-content,.event-note-content,.sal-note-content,.event-minutes section > div) * { font-weight:inherit !important; }
html body :is(.rich-text-editor,.project-note-content,.event-note-content,.sal-note-content,.event-minutes section > div) :is(strong,b) { font-weight:700 !important; }
.rich-text-editor:empty::before { content:attr(data-placeholder); color:var(--muted); pointer-events:none; }
.rich-text-editor p { margin:0 0 7px; }.rich-text-editor p:last-child { margin-bottom:0; }
.rich-text-editor ul,.rich-text-editor ol { margin:4px 0; padding-left:22px; }.rich-text-editor a,.project-note-content a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.rich-mention,.rich-mention[data-resource-id] { display:inline-block; padding:0 3px; border-radius:3px; background:#dbeafe; color:#1d4f91; font-weight:inherit; white-space:nowrap; }
.rich-mention-menu { position:fixed; z-index:1001; width:min(320px,calc(100vw - 16px)); max-height:180px; overflow:auto; padding:2px; border:1px solid var(--line); border-radius:4px; background:var(--panel); box-shadow:0 6px 18px #0002; }
.rich-mention-menu button { display:block; width:100%; min-height:24px; padding:2px 6px; border:0; border-radius:3px; background:transparent; color:var(--text); text-align:left; font:inherit; font-size:12px; line-height:18px; cursor:pointer; }
.rich-mention-menu button:hover,.rich-mention-menu button:focus-visible,.rich-mention-menu button.is-active { background:var(--line); outline:0; }
.project-note-content { flex:1; min-width:0; overflow-wrap:anywhere; }.project-note-content p { margin:0 0 6px; white-space:pre-wrap; }.project-note-content p:last-child { margin-bottom:0; }.project-note-content ul,.project-note-content ol { margin:4px 0; padding-left:22px; }
.project-note-body .rich-text { flex:1; }
