:root{--bg:#fdfcf9;--fg:#1d1d1b;--muted:#6b6b66;--rule:#e4e1d8;--accent:#c0392b}@media (prefers-color-scheme:dark){:root{--bg:#1a1a18;--fg:#ecebe6;--muted:#9a9993;--rule:#34332f;--accent:#e0685b}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font-family:Georgia,Iowan Old Style,serif;line-height:1.6}.page{max-width:44rem;margin:0 auto;padding:2rem 1rem}.editor-bar{display:flex;align-items:center;gap:.75rem;padding-bottom:.75rem;margin-bottom:1.5rem;border-bottom:1px solid var(--rule);font-family:system-ui,sans-serif;font-size:.875rem;flex-wrap:wrap}.doc-name{font-weight:600;flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{color:var(--muted)}.status-live:before{content:"● ";color:#009e73}.me{display:inline-block;font:inherit;background:none;color:var(--fg);border:2px solid;border-radius:999px;padding:.15rem .7rem;cursor:pointer}.prose{outline:none;min-height:60vh;font-size:1.125rem}.prose :where(h1,h2,h3){line-height:1.25}.prose code{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.9em;background:var(--rule);padding:.1em .3em;border-radius:3px}.prose pre{background:var(--rule);padding:.75rem 1rem;border-radius:6px;overflow-x:auto}.prose pre code{background:none;padding:0}.prose blockquote{margin-left:0;padding-left:1rem;border-left:3px solid var(--rule);color:var(--muted)}.prose img.ProseMirror-selectednode{outline:2px solid var(--accent)}.image-uploading{display:inline-block;padding:.2rem .6rem;border:1px dashed var(--rule);border-radius:4px;color:var(--muted);font-size:.85em}.collaboration-carets__caret{position:relative;margin-left:-1px;margin-right:-1px;border-left:1px solid;border-right:1px solid;word-break:normal;pointer-events:none}.collaboration-carets__label{position:absolute;top:-1.4em;left:-1px;padding:.1rem .35rem;border-radius:3px 3px 3px 0;font-family:system-ui,sans-serif;font-size:.75rem;font-weight:600;line-height:normal;white-space:nowrap;color:#111;-webkit-user-select:none;-moz-user-select:none;user-select:none}.logout{font:inherit;background:none;border:none;color:var(--muted);cursor:pointer;text-decoration:underline;padding:0}.login{max-width:26rem;padding-top:18vh}.login h1{margin-bottom:.25rem}.login-button{font:600 1rem system-ui,sans-serif;width:100%;padding:.75rem 1rem;margin-top:1rem;border:1px solid var(--rule);border-radius:8px;background:var(--fg);color:var(--bg);cursor:pointer}.login-error{font-size:.9rem;padding:.6rem .8rem;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.login-error,.test-login{font-family:system-ui,sans-serif}.test-login{margin-top:2.5rem;padding-top:1rem;border-top:1px dashed var(--rule);display:grid;grid-gap:.5rem;gap:.5rem;font-size:.85rem;color:var(--muted)}.test-login p{margin:0}.test-login button,.test-login input{font:inherit;padding:.45rem .6rem}.no-patient-data{font-family:system-ui,sans-serif;font-size:.9rem;padding:.6rem .8rem;border-left:3px solid #e69f00;background:color-mix(in srgb,#e69f00 12%,transparent)}.doc-layout{display:flex;flex-direction:column;min-height:100vh}.doc-layout>.page{flex:1 1;min-width:0}.prose [data-type=block-math],.prose [data-type=inline-math]{cursor:pointer;border-radius:4px}.prose [data-type=block-math]:hover,.prose [data-type=inline-math]:hover{background:color-mix(in srgb,var(--accent) 10%,transparent)}.prose [data-type=block-math]{display:block;text-align:center;padding:.5rem 0;overflow-x:auto}.math-popover{position:absolute;z-index:50;width:min(330px,calc(100vw - 16px));background:var(--bg);border:1px solid var(--rule);border-radius:8px;box-shadow:0 8px 24px rgb(0 0 0/.15);padding:.6rem;font-family:system-ui,sans-serif;font-size:.9rem}.math-popover textarea{width:100%;font:.95rem ui-monospace,SF Mono,Menlo,monospace;background:var(--bg);color:var(--fg);border:1px solid var(--rule);border-radius:4px;padding:.4rem;resize:vertical}.math-preview{min-height:2rem;padding:.5rem .25rem;overflow-x:auto;text-align:center}.math-actions{display:flex;justify-content:flex-end;gap:.5rem}.code-language,.math-actions button{font:inherit;font-size:.85rem;padding:.3rem .7rem;border-radius:4px;border:1px solid var(--rule);background:var(--bg);color:var(--fg);cursor:pointer}.math-actions .primary{background:var(--fg);color:var(--bg)}.code-block{position:relative}.code-block .code-language{position:absolute;top:.35rem;right:.35rem;font-family:system-ui,sans-serif;font-size:.75rem;padding:.1rem .3rem;opacity:.75}.hljs-comment,.hljs-quote{color:#6b6b66;font-style:italic}.hljs-built_in,.hljs-keyword,.hljs-selector-tag{color:#0072b2}.hljs-attr,.hljs-string,.hljs-template-tag{color:#117733}.hljs-literal,.hljs-number{color:#aa4499}.hljs-function,.hljs-section,.hljs-title{color:#b85c00}.hljs-class,.hljs-type{color:#44aa99}@media (prefers-color-scheme:dark){.hljs-comment,.hljs-quote{color:#9a9993}.hljs-built_in,.hljs-keyword,.hljs-selector-tag{color:#56b4e9}.hljs-attr,.hljs-string,.hljs-template-tag{color:#88cc88}.hljs-literal,.hljs-number{color:#dd88cc}.hljs-function,.hljs-section,.hljs-title{color:#e69f00}}.slash-menu{position:absolute;z-index:40;width:17rem;max-height:20rem;overflow-y:auto;background:var(--bg);border:1px solid var(--rule);border-radius:8px;box-shadow:0 8px 24px rgb(0 0 0/.15);padding:.3rem;font-family:system-ui,sans-serif;font-size:.9rem}.slash-item{display:flex;align-items:center;gap:.6rem;width:100%;padding:.4rem .5rem;border:0;border-radius:5px;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}.slash-item.active{background:color-mix(in srgb,var(--fg) 9%,transparent)}.slash-icon{display:inline-grid;place-items:center;width:1.9rem;height:1.9rem;border:1px solid var(--rule);border-radius:5px;font-size:.8rem;font-weight:600}.slash-title{flex:1 1}.slash-empty,.slash-hint{color:var(--muted);font-size:.8rem;font-family:ui-monospace,SF Mono,Menlo,monospace}.slash-empty{padding:.5rem}@media (max-width:640px){.slash-menu{position:fixed;top:auto!important;left:0!important;right:0;bottom:var(--keyboard-inset,0);width:auto;max-height:45vh;border-radius:14px 14px 0 0;border-bottom:0;padding:.5rem .5rem calc(.5rem + env(safe-area-inset-bottom))}.slash-item{padding:.65rem .5rem}}.prose table{border-collapse:collapse;width:100%;margin:1rem 0;font-size:.95em}.prose td,.prose th{border:1px solid var(--rule);padding:.35rem .5rem;vertical-align:top}.prose th{background:color-mix(in srgb,var(--fg) 5%,transparent);text-align:left}.prose td p,.prose th p{margin:0}.prose .selectedCell{background:color-mix(in srgb,#56b4e9 20%,transparent)}.prose ul[data-type=taskList]{list-style:none;padding-left:.2rem}.prose ul[data-type=taskList] li{display:flex;gap:.5rem;align-items:baseline}.prose ul[data-type=taskList] li>label input{width:1.05rem;height:1.05rem}.prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--muted);text-decoration:line-through}.prose img{max-width:100%;height:auto;border-radius:4px}@media (min-width:768px){.doc-layout{flex-direction:row}}.home-new,.home-search{display:flex;gap:.5rem;font-family:system-ui,sans-serif;margin:1rem 0}.home-new input,.home-search input{flex:1 1;min-width:0;padding:.5rem .65rem;background:var(--bg)}.home-new button,.home-new input,.home-search button,.home-search input{font:inherit;border:1px solid var(--rule);border-radius:6px;color:var(--fg)}.home-new button,.home-search button{padding:.5rem .9rem;background:none;cursor:pointer;white-space:nowrap}.doc-list{list-style:none;margin:1.5rem 0 0;padding:0;font-family:system-ui,sans-serif}.doc-list li{padding:.5rem 0;border-bottom:1px solid var(--rule)}.doc-list a{color:var(--fg);text-decoration:none}.doc-list a:hover{text-decoration:underline}.search-result{margin:1.5rem 0}.search-result h2{font-size:1.05rem;margin-bottom:.4rem}.search-result h2 a{color:var(--fg)}.search-lines{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.85rem;background:var(--rule);border-radius:6px;padding:.6rem .8rem;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.search-line{color:var(--muted)}.search-line-match{color:var(--fg)}.search-lineno{display:inline-block;width:3em;color:var(--muted);-webkit-user-select:none;-moz-user-select:none;user-select:none}.search-lines mark{background:var(--accent);color:var(--bg);border-radius:2px;padding:0 .1em}.offline-banner{font-family:system-ui,sans-serif;font-size:.9rem;padding:.6rem .8rem;margin-bottom:1.5rem;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.offline-docs{padding-left:1.25rem}.offline-docs a{color:var(--fg)}.editor-shell{position:relative}.prose .comment{background:color-mix(in srgb,#e69f00 22%,transparent);border-bottom:2px solid #e69f00;cursor:pointer}.prose .comment.comment-resolved{background:none;border-bottom:0;cursor:text}.comment-bubble{position:absolute;z-index:30;font:600 .8rem system-ui,sans-serif;padding:.3rem .6rem;border-radius:999px;border:1px solid var(--rule);background:var(--fg);color:var(--bg);box-shadow:0 4px 12px rgb(0 0 0/.18);cursor:pointer}.kantlijn{font-family:system-ui,sans-serif;font-size:.85rem}.kantlijn-head{display:flex;align-items:center;gap:.6rem;color:var(--muted);margin-bottom:.5rem}.kantlijn-head strong{color:var(--fg);flex:1 1}.kantlijn-close{display:none;font-size:1.3rem;line-height:1;background:none;border:0;color:var(--muted);cursor:pointer}.kantlijn-list{position:relative}.thread{background:var(--bg);border:1px solid var(--rule);border-radius:8px;padding:.5rem .6rem;box-shadow:0 1px 3px rgb(0 0 0/.06);margin-bottom:.5rem}.kantlijn-list .thread{position:absolute;left:0;right:0;transition:top .15s ease}.thread.active{border-color:#e69f00;box-shadow:0 2px 10px rgb(230 159 0/.25)}.thread.resolved{opacity:.65}.thread blockquote{margin:0 0 .4rem;padding-left:.5rem;border-left:3px solid #e69f00;color:var(--muted);font-style:italic;max-height:4.5em;overflow:hidden}.message+.message{border-top:1px solid var(--rule);margin-top:.4rem;padding-top:.4rem}.message-head time{color:var(--muted);font-size:.75rem;margin-left:.25rem}.comment-body{margin:.15rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.mention{background:color-mix(in srgb,#56b4e9 22%,transparent);border-radius:4px;padding:0 .2rem;font-weight:600}.mention-box{position:relative;margin-top:.4rem}.mention-box textarea{width:100%;font:inherit;padding:.35rem .45rem;border:1px solid var(--rule);border-radius:5px;background:var(--bg);color:var(--fg);resize:vertical}.mention-list{position:absolute;z-index:5;left:0;right:0;top:100%;list-style:none;margin:2px 0 0;padding:.2rem;background:var(--bg);border:1px solid var(--rule);border-radius:6px;box-shadow:0 6px 16px rgb(0 0 0/.15)}.mention-list button{width:100%;text-align:left;border:0;background:none;color:var(--fg);font:inherit;padding:.3rem .4rem;border-radius:4px;cursor:pointer}.mention-list button span{color:var(--muted);font-size:.75rem}.mention-list button.active{background:color-mix(in srgb,var(--fg) 9%,transparent)}.thread-actions{display:flex;justify-content:flex-end;gap:.4rem;margin-top:.4rem}.thread-actions button{font:inherit;font-size:.78rem;padding:.2rem .55rem;border-radius:4px;border:1px solid var(--rule);background:var(--bg);color:var(--fg);cursor:pointer}.thread-actions .primary{background:var(--fg);color:var(--bg)}.thread-actions button:disabled{opacity:.5;cursor:default}.orphaned h3{font-size:.8rem;margin:.5rem 0 .2rem;color:#d55e00}.comment-error,.kantlijn .hint{color:var(--muted);font-size:.78rem}.comment-error{color:#d55e00}.comments-toggle{display:none}@media (min-width:1100px){.doc-layout>.page{max-width:66rem}.editor-body{display:grid;grid-template-columns:minmax(0,44rem) 18rem;grid-gap:2.5rem;gap:2.5rem}}@media (max-width:1099px){.kantlijn{position:fixed;z-index:45;left:0;right:0;bottom:0;max-height:70vh;overflow-y:auto;background:var(--bg);border-top:1px solid var(--rule);border-radius:14px 14px 0 0;box-shadow:0 -8px 24px rgb(0 0 0/.15);padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .2s ease}.kantlijn.open{transform:none}.kantlijn-close{display:block}.kantlijn-list{min-height:0!important}.kantlijn-list .thread{position:static}.comments-toggle{display:block;position:fixed;z-index:40;right:1rem;bottom:calc(1rem + var(--keyboard-inset, 0px));font:600 .9rem system-ui,sans-serif;padding:.5rem .85rem;border-radius:999px;border:1px solid var(--rule);background:var(--fg);color:var(--bg);box-shadow:0 4px 14px rgb(0 0 0/.2)}}.mobile-toolbar{display:none}@media (pointer:coarse) and (max-width:640px){.mobile-toolbar.is-focused{display:flex;position:fixed;z-index:45;left:0;right:0;bottom:var(--keyboard-inset,0);height:48px;gap:2px;padding:4px 6px;overflow-x:auto;background:var(--bg);border-top:1px solid var(--rule);box-shadow:0 -2px 8px rgb(0 0 0/.06)}.mobile-toolbar button{flex:0 0 auto;min-width:36px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--fg);font:600 1rem system-ui,sans-serif}.mobile-toolbar button[aria-pressed=true]{background:color-mix(in srgb,var(--fg) 12%,transparent)}.mobile-toolbar button:disabled{opacity:.35}body:has(.mobile-toolbar.is-focused) .slash-menu{bottom:calc(var(--keyboard-inset, 0px) + 48px)}body:has(.mobile-toolbar.is-focused) .comments-toggle{bottom:calc(1rem + var(--keyboard-inset, 0px) + 48px)}body:has(.mobile-toolbar.is-focused) .prose{padding-bottom:calc(var(--keyboard-inset, 0px) + 64px)}}@media (max-width:640px){.editor-bar .doc-name{flex-basis:100%}}.author-toggle{font:inherit;padding:.15rem .6rem;border:1px solid var(--rule);border-radius:999px;background:transparent;color:var(--fg);cursor:pointer}.author-toggle[aria-pressed=true]{background:var(--fg);color:var(--bg)}.author-legend .authored,.prose .authored{background:color-mix(in srgb,var(--author) 16%,transparent);-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-color:var(--author);text-decoration-color:var(--author);-webkit-text-decoration-style:var(--author-line);text-decoration-style:var(--author-line);text-decoration-thickness:2px;text-underline-offset:4px}.author-legend .authored-unsaved,.prose .authored-unsaved{background:repeating-linear-gradient(-45deg,transparent 0 6px,color-mix(in srgb,var(--muted) 14%,transparent) 6px 12px)}.author-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:-.75rem 0 1.25rem;font-family:system-ui,sans-serif;font-size:.8rem}.author-legend span{padding:0 .25rem}