@layer theme,base;@layer components{.doc-surface .tiptap{font-family:var(--font-sans);letter-spacing:-.003em;color:var(--color-foreground);caret-color:var(--color-brand);-webkit-font-smoothing:antialiased;font-size:.9375rem;font-weight:450;line-height:1.6}.doc-surface .tiptap:focus-visible{box-shadow:none;outline:none}.doc-surface .tiptap :is(h1,h2,h3,h4){font-family:var(--font-heading);letter-spacing:-.012em;color:var(--color-foreground);scroll-margin-top:1.5rem;font-weight:600}.doc-surface .tiptap h1{margin:2.25rem 0 .5rem;font-size:1.375rem;line-height:1.27273}.doc-surface .tiptap h2{margin:2rem 0 .375rem;font-size:1.1875rem;line-height:1.36842}.doc-surface .tiptap h3{margin:1.5rem 0 .25rem;font-size:1.0625rem;line-height:1.41176}.doc-surface .tiptap h4{margin:1.25rem 0 .25rem;font-size:.9375rem;line-height:1.6}.doc-surface .tiptap>:first-child{margin-top:0}.doc-surface .tiptap p{margin:0 0 .5rem}.doc-surface .tiptap :is(ul,ol){margin:0 0 .5rem;padding-left:1.5rem}.doc-surface .tiptap li,.doc-surface .tiptap li>p{margin:0}.doc-surface .tiptap li::marker{color:var(--color-muted-foreground)}.doc-surface .tiptap a{color:var(--color-foreground);text-decoration:underline;-webkit-text-decoration-color:color-mix(in oklab, var(--color-foreground) 35%, transparent);text-decoration-color:color-mix(in oklab, var(--color-foreground) 35%, transparent);text-underline-offset:3px}.doc-surface .tiptap :not(pre)>code{font-family:var(--font-mono);border-radius:var(--radius-xs);background:color-mix(in oklab, var(--color-foreground) 7%, transparent);padding:.1em .35em;font-size:.85em}.doc-surface .tiptap blockquote{color:var(--color-foreground);margin:.75rem 0;padding-left:1rem;font-style:normal}.doc-surface .tiptap blockquote:before{background:color-mix(in oklab, var(--color-foreground) 22%, transparent);width:2px;top:0;bottom:0}.doc-surface .tiptap hr{border:0;border-top:1px solid var(--color-border);margin:1.5rem 0}.doc-surface .tiptap ul[data-type=taskList]{padding-left:0;list-style:none}.doc-surface .tiptap ul[data-type=taskList] ul[data-type=taskList]{margin-bottom:0;padding-left:1.625rem}.doc-surface .tiptap ul[data-type=taskList]>li{align-items:flex-start;gap:.625rem;display:flex}.doc-surface .tiptap ul[data-type=taskList]>li>label{-webkit-user-select:none;user-select:none;align-items:center;height:1.5rem;display:flex;position:relative}.doc-surface .tiptap ul[data-type=taskList]>li>div{flex:1;min-width:0}.doc-surface .tiptap ul[data-type=taskList]>li input[type=checkbox]{appearance:none;cursor:pointer;border-radius:var(--radius-xs);border:1.5px solid color-mix(in oklab, var(--color-foreground) 32%, transparent);width:1rem;height:1rem;transition:background-color var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out);background-position:50%;background-repeat:no-repeat;background-size:.75rem;flex-shrink:0;margin:0}.doc-surface .tiptap ul[data-type=taskList]>li input[type=checkbox]:checked{border-color:var(--color-brand);background-color:var(--color-brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4 5 8.8l4.5-5'/%3E%3C/svg%3E")}.doc-surface .tiptap ul[data-type=taskList]>li input[type=checkbox]:focus-visible{outline:2px solid color-mix(in oklab, var(--color-brand) 55%, transparent);outline-offset:2px}.doc-surface .tiptap ul[data-type=taskList]>li[data-checked=true]>div{color:var(--color-muted-foreground)}.doc-surface .tiptap .tableWrapper{margin:.75rem 0 1rem;overflow-x:auto}.doc-surface .tiptap table{border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid var(--color-border);border-radius:var(--radius-lg);width:100%;margin:.75rem 0 1rem;font-size:.875rem;line-height:1.42857;overflow:hidden}.doc-surface .tiptap .tableWrapper table{margin:0}.doc-surface .tiptap :is(th,td){vertical-align:top;text-align:left;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);padding:.5rem .75rem;position:relative}.doc-surface .tiptap :is(th,td):last-child{border-right:0}.doc-surface .tiptap tr:last-child>:is(th,td){border-bottom:0}.doc-surface .tiptap table tr>:is(th,td){text-transform:none;letter-spacing:0;color:var(--color-foreground);background:0 0;font-size:.875rem;font-weight:400}.doc-surface .tiptap table tr>th{background:color-mix(in oklab, var(--color-foreground) 3.5%, transparent);font-weight:550}.doc-surface .tiptap table tr:not(:first-child)>td:first-child{font-weight:400}@media (hover:hover) and (pointer:fine){.doc-surface .tiptap table tr:hover>td{background:0 0}}.doc-surface .tiptap :is(th,td)>p{margin:0}.doc-surface .tiptap .selectedCell:after{content:"";pointer-events:none;background:color-mix(in oklab, var(--color-brand) 14%, transparent);position:absolute;inset:0}.doc-surface .tiptap pre{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:color-mix(in oklab, var(--color-foreground) 3%, transparent);font-family:var(--font-mono);tab-size:2;margin:.75rem 0 1rem;padding:.75rem 1rem .75rem 3.25rem;font-size:.8125rem;font-weight:400;line-height:1.53846;position:relative;overflow-x:auto}.doc-surface .tiptap pre:before{content:attr(data-lines);white-space:pre;text-align:right;width:2.25rem;color:color-mix(in oklab, var(--color-muted-foreground) 70%, transparent);font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;top:.75rem;left:0}.doc-surface .tiptap pre code{min-width:max-content;font-size:inherit;background:0 0;padding:0;display:block}.doc-surface .tiptap .code-language{appearance:none;border-radius:var(--radius-xs);height:1.375rem;color:var(--color-muted-foreground);font-family:var(--font-sans);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-fast) var(--ease-smooth-out);background:0 0;border:0;padding:0 .5rem;font-size:.6875rem;font-weight:500;position:absolute;top:.375rem;right:.5rem}.doc-surface .tiptap pre:focus-within .code-language,.doc-surface .tiptap .code-language:focus-visible{opacity:1}@media (hover:hover) and (pointer:fine){.doc-surface .tiptap pre:hover .code-language{opacity:1}.doc-surface .tiptap .code-language:hover{background:color-mix(in oklab, var(--color-foreground) 7%, transparent);color:var(--color-foreground)}}@media (hover:none){.doc-surface .tiptap .code-language{opacity:1}}.doc-surface .tiptap .heading-anchor{border-radius:var(--radius-xs);height:1.25rem;color:var(--color-muted-foreground);font-family:var(--font-sans);letter-spacing:0;vertical-align:.1em;cursor:pointer;opacity:0;-webkit-user-select:none;user-select:none;transition:opacity var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out);background:0 0;border:0;align-items:center;gap:.3125rem;margin-left:.625rem;padding:0 .375rem;font-size:.75rem;font-weight:450;line-height:1;display:inline-flex}.doc-surface .tiptap .heading-anchor[data-copied=true]{color:var(--color-brand);opacity:1}.doc-surface .tiptap .heading-anchor:focus-visible{opacity:1;outline:2px solid color-mix(in oklab, var(--color-brand) 55%, transparent)}@media (hover:hover) and (pointer:fine){.doc-surface .tiptap .has-anchor:hover .heading-anchor{opacity:1}.doc-surface .tiptap .heading-anchor:hover{color:var(--color-foreground)}}@media (hover:none){.doc-surface .tiptap .heading-anchor{display:none}}@media (prefers-reduced-motion:reduce){.doc-surface .tiptap :is(.heading-anchor,.code-language,input[type=checkbox]){transition:none}}.editor-toolbar.svelte-zy4tw1{border-bottom:1px solid var(--color-border);background:oklch(from var(--color-muted) l c h / .35);border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl);flex-wrap:wrap;align-items:center;gap:1px;min-height:2.375rem;padding:6px 8px;display:flex}.toolbar-divider.svelte-zy4tw1{background:var(--color-border);opacity:.6;width:1px;height:1rem;margin:0 4px}.link-popover.svelte-zy4tw1{align-items:center;gap:4px;padding:1px;display:flex}.slash-menu.svelte-1sdzjph{z-index:50;background:var(--color-popover);border:1px solid var(--color-border);border-radius:var(--radius-xl);min-width:260px;max-height:340px;box-shadow:var(--elev-overlay);animation:svelte-1sdzjph-slash-enter var(--duration-fast) var(--ease-out);padding:6px;position:absolute;overflow-y:auto}.slash-item.svelte-1sdzjph{border-radius:var(--radius-md);width:100%;color:var(--color-foreground);cursor:pointer;text-align:left;transition:background-color var(--duration-micro) var(--ease-smooth-out);background:0 0;border:none;align-items:center;gap:.75rem;padding:.5rem .625rem;display:flex}.slash-item.selected.svelte-1sdzjph{background:var(--color-accent)}@media (hover:hover) and (pointer:fine){.slash-item.svelte-1sdzjph:hover{background:var(--color-accent)}}.slash-icon.svelte-1sdzjph{border-radius:var(--radius-sm);background:var(--color-muted);width:2rem;height:2rem;color:var(--color-muted-foreground);transition:background-color var(--duration-micro) var(--ease-smooth-out), color var(--duration-micro) var(--ease-smooth-out);flex-shrink:0;justify-content:center;align-items:center;display:flex}.slash-item.selected.svelte-1sdzjph .slash-icon:where(.svelte-1sdzjph){background:oklch(from var(--color-brand) l c h / .1);color:var(--color-brand)}@media (hover:hover) and (pointer:fine){.slash-item.svelte-1sdzjph:hover .slash-icon:where(.svelte-1sdzjph){background:oklch(from var(--color-brand) l c h / .1);color:var(--color-brand)}}.slash-text.svelte-1sdzjph{flex-direction:column;gap:0;min-width:0;display:flex}.slash-label.svelte-1sdzjph{font-size:.8125rem;font-weight:500;line-height:1.3}.slash-desc.svelte-1sdzjph{color:var(--color-muted-foreground);font-size:.6875rem;line-height:1.3}@media (prefers-reduced-motion:reduce){.slash-menu.svelte-1sdzjph{animation:none}}.image-toolbar.svelte-5hu8mr{z-index:40;background:var(--color-popover);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--elev-raised);animation:svelte-5hu8mr-slash-enter var(--duration-fast) var(--ease-out);align-items:center;gap:1px;padding:3px;display:flex}.image-toolbar-btn.svelte-5hu8mr{border-radius:var(--radius-sm);width:1.75rem;height:1.75rem;color:var(--color-muted-foreground);cursor:pointer;transition:opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out);background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}@media (hover:hover) and (pointer:fine){.image-toolbar-btn.svelte-5hu8mr:hover{background:var(--color-accent);color:var(--color-foreground)}.image-toolbar-btn.destructive.svelte-5hu8mr:hover{background:oklch(from var(--color-error) l c h / .1);color:var(--color-error)}}.image-toolbar-divider.svelte-5hu8mr{background:var(--color-border);opacity:.6;width:1px;height:1rem;margin:0 2px}@media (prefers-reduced-motion:reduce){.image-toolbar.svelte-5hu8mr{animation:none}}.editor-wrapper.svelte-121q5nr{border-radius:var(--radius-xl);background:var(--color-card);border:1px solid var(--color-border);transition:border-color var(--duration-quick) var(--ease-smooth-out), box-shadow var(--duration-quick) var(--ease-smooth-out);position:relative}.editor-wrapper.focused.svelte-121q5nr{border-color:oklch(from var(--color-brand) l c h / .25);box-shadow:0 0 0 3px oklch(from var(--color-brand) l c h / .06)}.editor-wrapper.page.svelte-121q5nr{background:0 0;border:0;border-radius:0}.editor-wrapper.page.svelte-121q5nr .editor-surface:where(.svelte-121q5nr) .tiptap{min-height:var(--editor-min-height,28rem);outline:none}.editor-surface.svelte-121q5nr{min-height:var(--editor-min-height,28rem)}.editor-wrapper.svelte-121q5nr:not(.page) .editor-surface:where(.svelte-121q5nr) .tiptap{min-height:var(--editor-min-height,28rem);color:var(--color-foreground);caret-color:var(--color-brand);outline:none;padding:2rem 2.5rem;font-size:1rem;line-height:1.75}.editor-surface.svelte-121q5nr .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--color-muted-foreground);opacity:.4;pointer-events:none;float:left;height:0}.editor-surface.svelte-121q5nr .tiptap .image-wrapper{max-width:100%;display:inline-block;position:relative}.editor-surface.svelte-121q5nr .tiptap img{transition:box-shadow var(--duration-quick) var(--ease-smooth-out);cursor:pointer}@media (hover:hover) and (pointer:fine){.editor-surface.svelte-121q5nr .tiptap img:hover{box-shadow:0 0 0 2px oklch(from var(--color-brand) l c h / .2)}}.editor-surface.svelte-121q5nr .drag-handle{width:1.25rem;height:1.25rem;color:var(--color-muted-foreground);cursor:grab;opacity:0;transition:opacity var(--duration-fast) var(--ease-smooth-out);border-radius:var(--radius-xs);justify-content:center;align-items:center;display:flex;position:absolute;top:.25rem;left:-1.5rem}@media (hover:hover) and (pointer:fine){.editor-surface.svelte-121q5nr .drag-handle:hover{background:var(--color-accent);color:var(--color-foreground)}}.editor-surface.svelte-121q5nr .drag-handle:active{cursor:grabbing}@media (hover:hover) and (pointer:fine){.editor-surface.svelte-121q5nr .tiptap>:hover .drag-handle,.editor-surface.svelte-121q5nr .tiptap [data-node-view-wrapper]:hover .drag-handle{opacity:.5}.editor-surface.svelte-121q5nr .tiptap>:hover .drag-handle:hover,.editor-surface.svelte-121q5nr .tiptap [data-node-view-wrapper]:hover .drag-handle:hover{opacity:1}}.status-bar.svelte-121q5nr{border-top:1px solid oklch(from var(--color-border) l c h / .5);justify-content:flex-end;align-items:center;padding:.5rem 1.25rem;display:flex}.status-hint.svelte-121q5nr{color:var(--color-muted-foreground);font-size:.6875rem}.status-hint.svelte-121q5nr kbd:where(.svelte-121q5nr){border:1px solid oklch(from var(--color-border) l c h / .6);border-radius:var(--radius-xs);background:var(--color-muted);min-width:1.125rem;height:1.125rem;font-family:var(--font-mono);justify-content:center;align-items:center;margin:0 .125rem;padding:0 .25rem;font-size:.625rem;font-weight:500;line-height:1;display:inline-flex}@media (prefers-reduced-motion:reduce){.editor-wrapper.svelte-121q5nr{transition:none}}}@layer utilities;@keyframes svelte-1sdzjph-slash-enter{0%{opacity:0;transform:translateY(-3px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes svelte-5hu8mr-slash-enter{0%{opacity:0;transform:translateY(-3px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}
