.rich-editor{display:flex;flex-direction:column;border:1px solid var(--np-border,var(--np-border));border-radius:10px;background:var(--np-bg-surface,var(--np-bg-surface));transition:border-color .12s ease,box-shadow .12s ease}.rich-editor:focus-within{border-color:var(--np-ring,var(--np-ring));box-shadow:0 0 0 3px color-mix(in srgb,var(--np-ring,var(--np-ring)) 18%,transparent)}.np-composer .rich-editor,.np-composer .rich-editor:focus-within{border:0;border-radius:0;box-shadow:none;background:transparent}.np-composer .rich-editor__prosemirror{max-height:min(320px,40dvh);overflow-y:auto;overscroll-behavior:contain}.np-composer--note-edit .rich-editor__prosemirror{padding:12px 14px;max-height:min(220px,28dvh)}.rich-editor--disabled{opacity:.6;pointer-events:none}.rich-editor__content{display:flex;flex-direction:column}.rich-editor__prosemirror{min-height:6rem;padding:.625rem .75rem;outline:none;color:var(--np-text,var(--np-text));font-size:13px;line-height:1.55;overflow-wrap:anywhere}.rich-editor__prosemirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;color:var(--np-text-placeholder,var(--np-text-muted))}.rich-editor__error{padding:.25rem .75rem;font-size:12px;line-height:1.4;color:var(--np-danger-text,#d92d20);border-bottom:1px solid var(--np-border-subtle,var(--np-border-subtle))}.rich-editor__title{display:block;width:100%;border:0;border-bottom:1px solid var(--np-border-subtle,var(--np-border-subtle));outline:0;background:none;padding:11px 14px;font:inherit;font-weight:500;color:var(--np-text,var(--np-text))}.rich-editor__title::placeholder{color:var(--np-text-muted,var(--np-text-secondary));font-weight:400}.rich-editor__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:.375rem .5rem;border-bottom:1px solid var(--np-border-subtle,var(--np-border-subtle))}.rich-editor__tb-icon{display:grid;place-items:center;width:15px;height:15px;flex:none;overflow:hidden}.rich-editor__tb-control{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;overflow:hidden;border-radius:6px;border:none;background:transparent;color:var(--np-text-disabled,var(--np-text-secondary));cursor:pointer;transition:background-color .1s ease,color .1s ease}.rich-editor__tb-control:hover:not(:disabled){background:var(--np-bg-hover,var(--np-bg-hover));color:var(--np-text-secondary,var(--np-text))}.rich-editor__tb-control.is-active{background:var(--color-bg-brand-secondary,var(--np-bg-hover));color:var(--np-accent-text,var(--np-ring))}.rich-editor__tb-control:disabled{opacity:.45;cursor:not-allowed}.rich-editor__tb-select{height:28px;max-width:8.5rem;padding:0 .375rem;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--np-text-secondary,var(--np-text));font-size:12px;font-weight:500;cursor:pointer}.rich-editor__tb-select:hover:not(:disabled){background:var(--np-bg-hover,var(--np-bg-hover))}.rich-editor__tb-select:disabled{opacity:.45;cursor:not-allowed}.rich-editor__tb-divider{width:1px;height:18px;margin:0 4px;background:var(--np-border-subtle,var(--np-border-subtle))}.rich-editor__tb-control svg{display:block;width:15px;height:15px;flex:none}.rich-editor__tb-spin{display:block;transform-origin:center;transform-box:fill-box;animation:rich-editor-spin .9s linear infinite}@keyframes rich-editor-spin{to{transform:rotate(1turn)}}.rich-editor__tb-popover-anchor{position:relative}.rich-editor__tb-popover{position:absolute;top:calc(100% + 6px);left:0;z-index:230;min-width:232px;max-width:min(280px,calc(100vw - 24px));padding:6px;border-radius:var(--r-surface,10px);border:1px solid var(--line-soft,var(--np-border));background:var(--card,var(--np-bg-surface));box-shadow:var(--shadow-menu,var(--np-shadow-lg,0 12px 16px -4px rgba(16,24,40,.1)));display:flex;flex-direction:column;gap:6px}.rich-editor__tb-field{display:flex;flex-direction:column;gap:4px;padding:4px 4px 0;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--quiet,var(--np-text-muted))}.rich-editor__tb-input{width:100%;height:32px;padding:0 10px;border-radius:var(--r-sm,8px);border:1px solid var(--line,var(--np-border));background:var(--field,var(--np-bg-canvas,var(--np-bg-surface)));color:var(--ink,var(--np-text));font:inherit;font-size:13px;font-weight:400;letter-spacing:normal;text-transform:none;outline:none;box-shadow:none}.rich-editor__tb-input:focus,.rich-editor__tb-input:focus-visible{outline:none;box-shadow:none;border-color:var(--accent,var(--np-ring))}.rich-editor__tb-error{font-size:11px;color:var(--np-danger-text,#d92d20)}.rich-editor__tb-popover-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:2px 4px 4px}.rich-editor__tb-menu-item{display:block;width:100%;padding:.375rem .5rem;border:none;border-radius:6px;background:transparent;text-align:left;font-size:12px;font-weight:500;color:var(--np-text-secondary,var(--np-text));cursor:pointer}.rich-editor__tb-menu-item:hover{background:var(--np-bg-hover,var(--np-bg-hover))}.rich-editor__tb-menu-item--danger{color:var(--np-danger-text,#d92d20)}.rich-editor__tb-popover-actions .rich-editor__tb-menu-item{width:auto}.rich-editor__tb-popover-actions .np-btn{height:30px;min-height:30px;padding-inline:10px;font-size:12px}.rich-editor__emoji-menu{left:auto;right:0;min-width:0;width:min(264px,calc(100vw - 24px));padding:6px}.rich-editor__emoji-find{display:flex;align-items:center;height:32px;margin:0 0 4px;padding-inline:10px;border:1px solid var(--line-soft,var(--np-border));border-radius:var(--r-pill,999px);background:var(--field,var(--np-bg-canvas,var(--np-bg-surface)))}.rich-editor__emoji-find:focus-within{background:var(--card,var(--np-bg-surface));border-color:var(--line,var(--np-border));box-shadow:none}.rich-editor__emoji-find input{flex:1;min-width:0;height:100%;border:0;outline:0;box-shadow:none;background:none;font:inherit;font-size:13px;color:var(--ink,var(--np-text))}.rich-editor__emoji-find input:focus,.rich-editor__emoji-find input:focus-visible{outline:none;box-shadow:none;border:0}.rich-editor__emoji-find input::placeholder{color:var(--body,var(--np-text-muted))}.rich-editor__emoji-scroll{max-height:220px;overflow-y:auto}.rich-editor__emoji-category{padding:.375rem .125rem .125rem;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--np-text-muted,var(--np-text-muted))}.rich-editor__emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:1px}.rich-editor__emoji-item{display:inline-flex;align-items:center;justify-content:center;height:28px;border:none;border-radius:6px;background:transparent;font-size:16px;line-height:1;cursor:pointer}.rich-editor__emoji-item:hover{background:var(--np-bg-hover,var(--np-bg-hover))}.rich-editor__emoji-empty{padding:.5rem .25rem;font-size:12px;color:var(--np-text-muted,var(--np-text-muted))}.note-markdown-body{font-size:13px;line-height:1.55;color:var(--np-text,var(--np-text));overflow-wrap:anywhere}.note-markdown-body p{margin:0 0 .375rem}.note-markdown-body>:last-child,.rich-editor__prosemirror>:last-child{margin-bottom:0}.note-markdown-body h1,.note-markdown-body h2,.note-markdown-body h3{margin:.75rem 0 .375rem;font-weight:600;line-height:1.3;color:var(--np-text,var(--np-text))}.note-markdown-body>h1:first-child,.note-markdown-body>h2:first-child,.note-markdown-body>h3:first-child{margin-top:0}.note-markdown-body h1{font-size:17px}.note-markdown-body h2{font-size:15px}.note-markdown-body h3{font-size:13.5px}.note-markdown-body ol,.note-markdown-body ul{margin:0 0 .375rem;padding-left:1.25rem}.note-markdown-body ul{list-style:disc}.note-markdown-body ol{list-style:decimal}.note-markdown-body li{margin:.125rem 0}.note-markdown-body li>p{margin:0}.note-markdown-body blockquote{margin:.375rem 0;padding:.125rem 0 .125rem .75rem;border-left:3px solid var(--np-border,var(--np-border));color:var(--np-text-secondary,var(--np-text-secondary))}.note-markdown-body code{padding:.0625rem .3125rem;border-radius:4px;border:1px solid var(--np-border-subtle,var(--np-border-subtle));font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:.92em}.note-markdown-body code,.note-markdown-body pre{background:var(--np-bg-canvas,var(--np-bg-hover))}.note-markdown-body pre{margin:.375rem 0;padding:.5rem .625rem;border-radius:8px;border:1px solid var(--np-border-subtle,var(--np-border-subtle));overflow-x:auto}.note-markdown-body pre code{padding:0;border:none;background:transparent;font-size:12px;line-height:1.5}.note-markdown-body a:not(.mention-chip-inline):not(.note-markdown-image-link):not(.note-markdown-image-dl){color:var(--np-accent-text,var(--np-ring));text-decoration:underline;text-underline-offset:2px}.note-markdown-body hr{margin:.625rem 0;border:none;border-top:1px solid var(--np-border-subtle,var(--np-border-subtle))}.note-markdown-body table{margin:.375rem 0;border-collapse:collapse;width:100%;font-size:12.5px;table-layout:fixed}.note-markdown-body td,.note-markdown-body th{padding:.3125rem .5rem;border:1px solid var(--np-border,var(--np-border));text-align:left;vertical-align:top}.note-markdown-body th{background:var(--np-bg-canvas,var(--np-bg-hover));font-weight:600}.note-markdown-body img,.rich-editor__img img,.rich-editor__prosemirror img{max-width:min(240px,100%);max-height:160px;width:auto;height:auto;object-fit:contain;border-radius:8px;display:block;margin:.375rem 0}.note-markdown-image,.rich-editor__img{margin:.375rem 0}.note-markdown-image img,.rich-editor__img img,.rich-editor__prosemirror .rich-editor__img img{margin:0}.rich-editor__prosemirror .react-renderer.node-image{display:block;width:fit-content;max-width:100%;outline:none}.rich-editor__img{position:relative;display:inline-block;width:fit-content;max-width:min(240px,100%);line-height:0}.rich-editor__img.is-selected,.rich-editor__prosemirror .react-renderer.node-image.ProseMirror-selectednode,.rich-editor__prosemirror .rich-editor__img.ProseMirror-selectednode{outline:none}.rich-editor__img.is-selected img,.rich-editor__prosemirror .react-renderer.node-image.ProseMirror-selectednode img{outline:2px solid var(--accent,var(--np-ring));outline-offset:2px}.note-markdown-image{position:relative;display:inline-block;width:fit-content;max-width:min(240px,100%);line-height:0}.note-markdown-image-dl,.rich-editor__img-x{position:absolute;top:6px;right:6px;z-index:3;display:grid;place-items:center;padding:0;border:1px solid rgba(21,21,21,.18);border-radius:999px;background:#fff;color:#151515;box-shadow:var(--shadow-menu,0 4px 10px rgba(16,24,40,.08));cursor:pointer;opacity:1;visibility:visible;text-decoration:none}.rich-editor__img-x{width:22px;height:22px}.note-markdown-image-dl{width:28px;height:28px}.note-markdown-image-dl svg,.rich-editor__img-x svg{color:#151515;fill:#151515;opacity:1;background:transparent}.rich-editor__img-x svg{width:11px;height:11px}.note-markdown-image-dl svg{width:15px;height:15px}.note-markdown-image-dl:hover,.rich-editor__img-x:hover{background:#f4f4f5;color:#151515;opacity:1;visibility:visible}.note-markdown-image-dl:hover svg,.rich-editor__img-x:hover svg{background:transparent;color:#151515;fill:#151515;opacity:1}.note-markdown-image-dl:focus-visible,.rich-editor__img-x:focus-visible{outline:2px solid var(--accent,var(--np-ring));outline-offset:2px}.rich-editor__prosemirror table{overflow:hidden}.rich-editor__prosemirror td.selectedCell,.rich-editor__prosemirror th.selectedCell{background:color-mix(in srgb,var(--np-ring,var(--np-ring)) 14%,transparent)}.rich-editor__prosemirror .ProseMirror-selectednode:not(.node-image):not(.rich-editor__img){outline:2px solid var(--accent,var(--np-ring));outline-offset:1px;border-radius:8px}.rich-editor__prosemirror .mention-chip-inline__popover{display:none!important}.np-misspelling{text-decoration:underline wavy var(--np-danger-text,#dc2626);text-decoration-skip-ink:none;text-underline-offset:.18em;cursor:pointer}@media (prefers-reduced-motion:no-preference){.np-misspelling{transition:background-color .12s ease}}.np-misspelling:hover{background-color:color-mix(in srgb,var(--np-danger-text,#dc2626) 10%,transparent)}.cl-poweredByClerk,[class*=PoweredByClerk],[class*=poweredByClerk]{display:none!important}