.note-editor{border:1px solid #adc4b9;border-radius:8px;overflow:hidden;background:#fff}.note-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px;background:#edf6f2;border-bottom:1px solid #adc4b9}.note-toolbar[hidden]{display:none!important}.note-toolbar button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:5px!important;margin:0;border:1px solid transparent;border-radius:5px;background:transparent!important;color:#17332d!important;box-shadow:none!important}.note-toolbar button:hover,.note-toolbar button:focus-visible{background:#d3e9de!important;border-color:#7eaa95}.note-toolbar svg{display:block}.note-glyph{font:21px Georgia,serif;line-height:1}.note-glyph.bold{font-weight:800}.note-glyph.italic{font-style:italic}.note-glyph.underline{text-decoration:underline}.note-toolbar select{flex:none;width:auto!important;min-width:0;max-width:120px;height:36px;min-height:36px;font:14px system-ui;padding:3px 20px 3px 6px!important;margin:0}.note-toolbar .note-colour-control{display:flex;flex:none;align-items:center;gap:3px;margin:0!important;width:56px;height:36px;font:18px Georgia,serif}.note-toolbar input.note-colour{appearance:auto!important;display:block!important;flex:none!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;padding:2px!important;border:1px solid #8ca99d!important;border-radius:4px!important;background:white!important;cursor:pointer}.note-rich-surface{padding:10px;background:#fff;color:#17332d;min-height:110px}.note-rich-surface .tiptap{outline:none;min-height:90px;overflow-wrap:anywhere}.note-rich-surface p,.note-render p{margin:.35em 0}.note-rich-surface table,.note-render table{border-collapse:collapse;max-width:100%;table-layout:fixed;width:100%}.note-rich-surface td,.note-rich-surface th,.note-render td,.note-render th{border:1px solid #8ca99d;padding:6px;min-width:30px;overflow-wrap:anywhere}.note-thread{border-inline-start:3px solid #b7d7c7;margin:10px 0;padding:8px 12px;background:#f3f8f5}.note-author{font-size:.85em;color:#48675c;margin:0 0 4px}.note-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.note-actions button{width:auto;min-height:36px;padding:5px 12px;font-size:.9rem}.note-fullscreen{position:fixed;inset:0;z-index:10000;background:white;padding:12px;overflow:auto}.note-render{overflow-wrap:anywhere;max-width:100%}.note-error{color:#9a241c}.note-status:empty{display:none}.note-status{font-size:.9rem;color:#48675c;margin:6px 0}.sidebar nav button.menu-attention,.sidebar nav button.menu-attention:hover{background:#ffdf83!important;color:#382600!important;box-shadow:inset 4px 0 #ffad00;font-weight:700}.menu-attention-badge{display:inline-flex;justify-content:center;align-items:center;min-width:24px;height:24px;border-radius:50%;background:#853900;color:#fff;border:2px solid white;padding:0 5px;margin-inline-start:8px;font:bold 13px system-ui;vertical-align:middle}.editor-dialog:has(.email-receipts-panel){width:min(1100px,calc(100vw - 32px));max-width:1100px}.email-history-window{max-height:340px;overflow:auto;border:1px solid #c7d9d0;border-radius:8px}.email-history{width:100%;border-collapse:collapse;table-layout:fixed}.email-history th{position:sticky;top:0;background:#e7f2ec;text-align:start;z-index:1}.email-history th,.email-history td{padding:10px 12px;vertical-align:top;border-bottom:1px solid #d8e4dd;overflow-wrap:anywhere}.email-history th:nth-child(1){width:33%}.email-history th:nth-child(2){width:20%}.email-history th:nth-child(3){width:32%}.email-history th:nth-child(4){width:15%}.email-history td button{padding:5px 8px;font-size:.85rem;margin-bottom:4px}.email-history td time{font-variant-numeric:tabular-nums}.email-tooltip-control{position:relative;display:inline-flex}.email-tooltip{position:absolute;bottom:calc(100% + 8px);inset-inline-start:0;z-index:10020;width:240px;max-width:70vw;background:#17332d;color:white;padding:8px 10px;border-radius:6px;font-size:13px;line-height:1.4;box-shadow:0 2px 8px #0003;pointer-events:none}.email-tooltip-control:not(:hover):not(:focus-within) .email-tooltip{display:none}.email-tooltip[hidden]{display:none!important}@media(max-width:600px){.email-history{min-width:620px}.note-toolbar{gap:2px}.note-toolbar button{width:34px;min-width:34px}.note-thread{padding:8px}.note-actions{gap:6px}}@media print{.note-toolbar,.note-actions{display:none}.note-render tr{break-inside:avoid}}

/* Author/time sit outside the formatted note panel. */
.note-thread{border:0;background:transparent;padding:0;margin:18px 0 22px}.note-thread>.note-author{margin:0 0 6px;font-size:.85rem;color:#48675c}.note-paper{background:#fff;border:1px solid #b8cfc2;border-radius:8px;padding:12px 14px;min-height:44px;box-shadow:0 1px 2px #17332d0a}.note-thread>.note-actions{margin:6px 0 0}.note-edit-panel{margin-top:6px}

.note-editor{position:relative}.note-editor.mention-open{overflow:visible}.note-mention-menu{position:absolute;width:min(280px,100%);max-height:180px;overflow:auto;z-index:100;background:white;border:1px solid #87b39b;border-radius:6px;box-shadow:0 4px 14px #0003;padding:4px}.note-mention-menu[hidden]{display:none!important}.note-mention-menu button{display:block;width:100%;padding:8px;text-align:start;border:0;background:white;color:#17332d}.note-mention-menu button[aria-selected=true],.note-mention-menu button:hover{background:#dff1e7}.note-mention-menu p{margin:6px;font-size:14px}.note-rich-surface .note-mention{background:#dff1e7;border-radius:3px;padding:1px 3px}

.note-editor.note-fullscreen{position:fixed}

.note-heading{display:flex;align-items:center;gap:6px;margin-bottom:5px}.note-heading .note-author{margin:0;font-size:.85rem;color:#48675c}.note-heading button.note-fold{flex:none;width:30px;min-width:30px;height:30px;min-height:30px;padding:0!important;border:0;background:transparent!important;color:#174c3c!important;font-size:20px;line-height:1;box-shadow:none}.note-heading button.note-fold:focus-visible{outline:2px solid #086e59}

.note-focus-mode{position:fixed!important;inset:0;z-index:10030;background:#f3f7f5;overflow:auto;padding:20px!important;box-sizing:border-box}.note-focus-mode>.note-focus-bar{position:sticky;top:-20px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;background:#f3f7f5;border-bottom:1px solid #c4d9ce;margin-bottom:16px}.note-focus-bar:empty{display:none}.note-heading .note-fold svg{vertical-align:middle}

.mention-queue{grid-column:1/-1}.note-mention-card,.note-mention-banner{padding:12px 16px;background:#fff1d6;border:1px solid #bb791e;border-radius:8px;margin:8px 0}.note-mentioned>.note-paper{border:2px solid #bb791e;background:#fffaf0}.note-mentioned>strong{color:#663c0d}.note-mention-card p{margin:6px 0}.editor-dialog:has(.note-focus-mode){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0}.note-thread{min-width:0}

.note-toolbar-help{position:absolute;z-index:150;max-width:min(280px,calc(100% - 16px));padding:8px 10px;border-radius:6px;background:#17332d;color:#fff;font:13px/1.4 system-ui;box-shadow:0 2px 8px #0003;pointer-events:none}.note-toolbar-help[hidden]{display:none!important}
