.notes-editor{container-type:inline-size}.notes-editor .cm-host .cm-scroller{overflow:visible}.notes-editor .cm-note-mermaid{margin-inline:calc(50% + min(100cqw,50cqw + 35ch)/-2)}.notes-editor .cm-note-table{cursor:pointer;padding:8px 0;overflow-x:auto}.notes-editor .cm-note-table table{table-layout:auto;border-collapse:separate;border-spacing:0;border:1px solid var(--color-md-table-border);border-radius:8px;width:100%;font-size:14px;line-height:1.5}.notes-editor .cm-note-table th,.notes-editor .cm-note-table td{border-right:1px solid var(--color-md-table-border);border-bottom:1px solid var(--color-md-table-border);text-align:left;padding:5px 12px}.notes-editor .cm-note-table th:last-child,.notes-editor .cm-note-table td:last-child{border-right:0}.notes-editor .cm-note-table tbody tr:last-child td{border-bottom:0}.notes-editor .cm-note-table thead th:first-child{border-top-left-radius:7px}.notes-editor .cm-note-table thead th:last-child{border-top-right-radius:7px}.notes-editor .cm-note-table tbody tr:last-child td:first-child{border-bottom-left-radius:7px}.notes-editor .cm-note-table tbody tr:last-child td:last-child{border-bottom-right-radius:7px}.notes-editor .cm-note-table th{font-weight:var(--font-weight-semibold);background:var(--color-md-table-header-bg)}.notes-editor .cm-note-table tbody tr:nth-child(odd) td{background:var(--color-md-table-row-odd)}.notes-editor .cm-note-table tbody tr:nth-child(2n) td{background:var(--color-md-table-row-even)}.notes-editor .cm-note-mermaid{cursor:pointer;padding:8px 0}.notes-editor .cm-note-mermaid svg{max-width:100%;height:auto}.notes-editor .cm-note-mermaid-error{color:var(--color-text-quaternary);font-size:13px}.cm-note-image-upload{border-radius:8px;width:fit-content;max-width:calc(100% - 8px);margin:8px 0;display:block;position:relative;overflow:hidden}.cm-note-image-upload img{border-radius:8px;width:auto;max-width:100%;height:auto;max-height:150px;display:block}.cm-note-image-upload.is-uploading:after{content:"";background:#0000002e;border-radius:8px;position:absolute;inset:0}.cm-note-image-upload-spin{z-index:1;border:2px solid #fff6;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.8s linear infinite cm-note-image-spin;position:absolute;bottom:10px;right:10px}@keyframes cm-note-image-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.cm-note-image-upload-spin{animation:none}}.cm-note-image-upload-fail{color:#fafafa;background:#17171799;border-radius:8px;justify-content:center;align-items:center;font:500 14px/20px inherit;display:flex;position:absolute;inset:0}.cm-note-image-upload-fail button{font:inherit;color:#fff;cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.cm-note-image-upload-remove{color:#fff;font-weight:var(--font-weight-semibold);cursor:pointer;background:#0000008c;border:0;border-radius:6px;padding:3px 8px;font-family:inherit;font-size:12px;line-height:16px;position:absolute;bottom:8px;right:8px}.cm-note-image-upload-remove:hover{background:#000000b8}.cm-note-image-block{outline-offset:2px;border-radius:8px;outline:2px solid #0000;width:fit-content;max-width:calc(100% - 8px);margin:8px auto;transition:outline-color .1s linear,background-color .28s ease-out;display:block;position:relative}.cm-note-image-block img{border-radius:8px;width:100%;max-width:100%;height:auto;display:block}.cm-note-image-block.is-loading img{opacity:0}.cm-note-image-block.is-loading.has-dims{background-color:color-mix(in srgb, currentColor 6%, transparent)}.cm-note-image-block.is-default-size img{width:auto;max-width:100%;height:auto;max-height:150px}.cm-note-image-block.is-default-size.has-dims{width:var(--note-image-w)}.cm-note-image-block.is-default-size.has-dims img{width:100%;height:auto;max-height:none}.cm-note-image-block.is-selected{outline-color:var(--color-border-brand)}.cm-image-block-selected .cm-cursor{display:none}@media (prefers-reduced-motion:reduce){.cm-note-image-block{transition:none}}.cm-note-image-toolbar{color:#fafafa;box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;background:#171717db;border-radius:8px;align-items:center;gap:2px;padding:4px;transition:opacity .1s linear,transform .1s linear;display:flex;position:absolute;top:8px;right:8px;transform:translateY(-2px)}.cm-note-image-block:hover .cm-note-image-toolbar,.cm-note-image-block.is-selected .cm-note-image-toolbar,.cm-note-image-block:focus-within .cm-note-image-toolbar{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:1;pointer-events:auto;transform:none}.cm-note-image-toolbar button{width:28px;height:28px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid;position:relative}.cm-note-image-toolbar button:hover{background:#ffffff1f}.cm-note-image-toolbar button svg{width:15px;height:15px}.cm-note-image-toolbar-divider{background:#ffffff38;width:1px;height:18px;margin:0 3px;display:inline-block}.cm-note-image-toolbar button[data-tip]:hover:after{content:attr(data-tip);white-space:nowrap;color:#fafafa;z-index:2;background:#171717;border-radius:6px;padding:4px 8px;font:500 12px/16px inherit;position:absolute;top:34px;left:50%;transform:translate(-50%)}@media (prefers-reduced-motion:reduce){.cm-note-image-toolbar{transition:none}}.cm-note-image-dropline{background:var(--color-border-brand);border-radius:1px;height:2px;margin:6px 0;position:relative}.cm-note-image-dropline:before{content:"";background:var(--color-border-brand);border-radius:50%;width:8px;height:8px;position:absolute;top:-3px;left:-4px}.cm-note-image-block.is-dragging{opacity:.5}.cm-note-image-handle{opacity:0;cursor:ew-resize;pointer-events:none;touch-action:none;background:#1717178c;border:1px solid #ffffffb3;border-radius:3px;width:6px;height:44px;margin-top:-22px;transition:opacity .1s linear;position:absolute;top:50%}.cm-note-image-handle.is-left{left:6px}.cm-note-image-handle.is-right{right:6px}.cm-note-image-block:hover .cm-note-image-handle,.cm-note-image-block.is-selected .cm-note-image-handle{opacity:1;pointer-events:auto}@media (prefers-reduced-motion:reduce){.cm-note-image-handle{transition:none}}.cm-note-image-more,.cm-note-image-block.is-narrow .cm-note-image-toolbar button:not(.cm-note-image-more),.cm-note-image-block.is-narrow .cm-note-image-toolbar-divider{display:none}.cm-note-image-block.is-narrow .cm-note-image-more{display:grid}.cm-note-image-block.is-narrow .cm-note-image-handle{height:28px;margin-top:-14px}.cm-note-image-menu{z-index:3;width:var(--menu-w,148px);box-sizing:border-box;min-width:0;color:inherit;background:var(--color-bg-primary);box-shadow:var(--shadow-lg), 0 0 0 1px var(--color-border-secondary_alt);border:none;border-radius:8px;margin:0;padding:4px 6px;display:none;position:absolute;inset:44px 8px auto auto;overflow:visible}.cm-note-image-menu.is-open{display:block}.cm-note-image-menu button{box-sizing:border-box;width:100%;font-weight:var(--font-weight-semibold);color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;margin:1px 0;padding:8px 10px;font-family:inherit;font-size:14px;line-height:20px;display:flex}.cm-note-image-menu button:hover{background:var(--color-bg-primary_hover)}.cm-note-image-menu button svg{width:16px;height:16px;color:var(--color-fg-quaternary);flex-shrink:0}.cm-note-image-menu button[data-image-action=Delete]{color:var(--color-text-error-primary)}.cm-note-image-menu button[data-image-action=Delete]:hover{color:var(--color-text-error-primary_hover);background:var(--color-bg-error-primary)}.cm-note-image-menu button[data-image-action=Delete] svg{color:currentColor}.cm-note-image-menu button svg path{stroke-width:2.25px}.cm-note-image-menu-divider{background:var(--color-border-secondary);height:1px;margin:4px 0;display:block}[data-note-growing] .cm-cursorLayer{animation:none!important}
