@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2) format("woff2"),url(/assets/dm-sans-latin-400-normal-BwCSEQnW.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2) format("woff2"),url(/assets/dm-sans-latin-500-normal-Dr3UlScf.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2) format("woff2"),url(/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2) format("woff2"),url(/assets/dm-sans-latin-700-normal-CUSSCpQX.woff) format("woff")}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/dm-mono-latin-400-normal-4GdczIuU.woff2) format("woff2"),url(/assets/dm-mono-latin-400-normal--0xN8mdc.woff) format("woff")}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/dm-mono-latin-500-normal-DRMDZjhP.woff2) format("woff2"),url(/assets/dm-mono-latin-500-normal-CN8Miw6E.woff) format("woff")}@font-face{font-family:"Instrument Serif";font-style:normal;font-display:swap;font-weight:400;src:url(/assets/instrument-serif-latin-400-normal-DnYpCC2O.woff2) format("woff2"),url(/assets/instrument-serif-latin-400-normal-BVbkICAY.woff) format("woff")}@font-face{font-family:"Instrument Serif";font-style:italic;font-display:swap;font-weight:400;src:url(/assets/instrument-serif-latin-400-italic-DKMiL14s.woff2) format("woff2"),url(/assets/instrument-serif-latin-400-italic-u__WvvIK.woff) format("woff")}:root{font-family:DM Sans,sans-serif;color:#252827;background:#f7f6f2;font-synthesis:none;--bg:#f7f6f2;--sidebar:#f0f0eb;--panel:#fff;--text:#252827;--muted:#5f6763;--line:#e8e9e3;--accent:#3d806d;--accent-dark:#28634f;--accent-soft:#e8f2ec;--hover:#e8eae3;--editor:#fbfcfa;--shadow:0 13px 40px rgba(34,49,42,.035)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #6caa90;outline-offset:2px}svg{width:18px;height:18px;flex:none}button svg{pointer-events:none}[hidden]{display:none!important}.app-shell{display:flex;height:100vh;height:100dvh;overflow:hidden;background:var(--bg)}.sidebar{width:256px;flex:none;background:var(--sidebar);border-right:1px solid #e7e8e1;display:flex;flex-direction:column;padding:28px 15px 17px;height:100vh;height:100dvh;overflow-y:auto;z-index:15}.brand-row{display:flex;align-items:center;padding:0 14px;margin-bottom:43px}.brand-mark{width:26px;height:25px;position:relative;margin-right:10px}.brand-mark span{position:absolute;background:#3e856b;width:6px;border-radius:7px;transform:rotate(25deg)}.brand-mark span:nth-child(1){height:18px;left:2px;top:4px}.brand-mark span:nth-child(2){height:25px;left:10px;top:0}.brand-mark span:nth-child(3){height:15px;left:18px;top:7px}.brand-name{color:var(--text);font-family:"Instrument Serif",serif;font-size:29px;letter-spacing:-1.5px;line-height:1}.brand-dot{color:#3e856b}.new-note-button{height:41px;display:flex;align-items:center;gap:10px;padding:0 12px;width:100%;border:0;border-radius:8px;background:#3f8069;color:#fff;font-size:12px;font-weight:700;box-shadow:0 4px 9px #3f80691b}.new-note-button:hover,.primary-button:hover{background:#2f6f58}.new-note-button svg{width:16px}.shortcut{font-family:DM Mono,monospace;font-size:11px;color:var(--muted);white-space:nowrap}.new-note-button .shortcut{color:#b8d4c8;margin-left:auto}.search-wrap{height:38px;border:1px solid #e2e5df;border-radius:7px;margin:15px 0 33px;background:#f9f9f6;display:flex;align-items:center;gap:8px;padding:0 10px;color:var(--muted)}.search-wrap>svg{width:15px}.search-wrap input{background:none;border:0;outline:none;min-width:0;flex:1;color:var(--text);font-size:11px}.search-wrap input::placeholder{color:var(--muted)}.search-wrap .shortcut{font-size:11px;color:var(--muted)}.nav-heading{display:flex;justify-content:space-between;align-items:center;padding:0 10px 11px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:1.8px}.icon-button{border:0;background:transparent;color:var(--muted);width:33px;height:33px;border-radius:7px;display:grid;place-items:center;padding:0}.icon-button:hover,.tool-button:hover{background:var(--hover);color:var(--text)}.icon-button svg{width:17px;height:17px}.icon-button.tiny{width:20px;height:20px}.icon-button.tiny svg{width:15px;height:15px}.nav-list{display:flex;flex-direction:column;gap:3px;overflow:auto}.note-item{height:48px;padding:0 10px;border:0;border-radius:8px;background:transparent;display:flex;gap:10px;align-items:center;width:100%;text-align:left;color:#647069}.note-item:hover{background:#e9ebe5}.note-icon{width:23px;display:grid;place-items:center}.note-icon svg{width:17px;height:17px}.note-text{min-width:0;display:flex;flex-direction:column;gap:3px}.note-title{font-size:11px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#3f4943}.note-date{font-size:11px;color:var(--muted)}.empty-search{padding:14px 10px;color:var(--muted);font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:22px}.sidebar-hint{display:flex;align-items:center;gap:8px;padding:15px 11px 17px;border-bottom:1px solid #e1e4dc;color:var(--muted);font-size:11px}.sidebar-hint svg{width:14px}.status-pulse{margin-left:auto;background:#67a681;width:6px;height:6px;border-radius:50%}.help-button{height:41px;width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#68736a;padding:0 11px;font-size:11px;font-weight:600}.help-button:hover{color:#326e54}.help-button svg{width:15px;height:15px}.help-button svg:last-child{margin-left:auto;width:13px;height:13px}.sidebar-scrim,.mobile-close,.menu-button{display:none}.main-area{min-width:0;flex:1;padding:0 39px;max-width:1800px;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.topbar-left,.topbar-actions{display:flex;align-items:center}.topbar-actions{gap:7px;position:relative}.save-indicator{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:600;margin-right:14px}.save-dot{height:6px;width:6px;border-radius:50%;background:#6ca784}.save-indicator.saving .save-dot{background:#d8a35e}.save-indicator.save-error .save-dot{background:#ce7676}.topbar-separator{height:20px;width:1px;background:var(--line);margin-right:8px}.topbar-actions .icon-button{width:30px;height:30px}.popover{position:absolute;right:0;top:38px;width:198px;padding:5px;border:1px solid var(--line);background:var(--panel);box-shadow:0 10px 30px #17231c1a;border-radius:9px;z-index:10}.popover button{width:100%;height:34px;display:flex;gap:9px;align-items:center;background:transparent;border:0;text-align:left;padding:0 9px;border-radius:6px;color:var(--text);font-size:11px}.popover button:hover{background:var(--hover)}.popover button.danger{color:#a8443d}.popover svg{width:14px;height:14px}.document-header{padding:45px 2px 28px}.document-overline{font-family:DM Mono,monospace;color:var(--muted);font-size:11px;letter-spacing:1.5px;display:flex;align-items:center;gap:9px}.overline-square{background:#6cad8a;width:6px;height:6px;transform:rotate(45deg)}.overline-divider{color:#c6ccc5}.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:11px 0 7px}.title-row input{background:transparent;border:0;outline:none;min-width:0;flex:1;color:var(--text);font-family:"Instrument Serif",serif;font-size:43px;letter-spacing:-.7px;line-height:1.15;padding:0}.title-actions{display:flex;gap:9px;align-items:center}.outline-button,.primary-button{height:35px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;font-size:11px;font-weight:700;white-space:nowrap}.outline-button{border:1px solid #dee4dc;background:var(--panel);color:#66746a}.outline-button:hover{border-color:#a7bba9;color:#3e7359}.primary-button{border:1px solid #3f8069;background:#3f8069;color:#fff}.outline-button svg,.primary-button svg{width:14px;height:14px}.document-subline{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.file-type{color:var(--accent-dark);display:flex;align-items:center;gap:5px;font-weight:700}.file-type svg{width:13px;height:13px}.subline-divider{color:#c3c9c3}.workspace-card{border:1px solid #e2e6df;border-radius:10px;background:var(--panel);overflow:hidden;box-shadow:var(--shadow);flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:24px}.editor-toolbar{height:51px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 18px;gap:8px}.format-tools,.view-controls{display:flex;align-items:center;gap:1px}.tool-button{width:29px;height:29px;border:0;border-radius:5px;background:transparent;color:#667069;display:grid;place-items:center}.tool-button svg{width:15px;height:15px}.heading-icon{font-size:15px;font-weight:700;line-height:1}.heading-icon span{font-size:11px;vertical-align:baseline}.tool-divider{height:15px;width:1px;background:#e3e6e1;margin:0 8px}.view-controls{border:1px solid #e8ebe6;border-radius:6px;padding:3px;background:#f8f9f6;gap:2px}.view-controls button{height:26px;border:0;background:transparent;border-radius:4px;display:flex;align-items:center;gap:6px;color:var(--muted);padding:0 8px;font-size:11px;font-weight:700}.view-controls button.active{background:#fff;color:#3e735a;box-shadow:0 1px 4px #253c2b17}.view-controls svg{width:13px;height:13px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0}.editor-pane,.preview-pane{display:flex;flex-direction:column;min-width:0;min-height:0}.editor-pane{border-right:1px solid var(--line);background:var(--editor)}.pane-heading{height:43px;flex:none;border-bottom:1px solid var(--line);padding:0 20px;display:flex;align-items:center;justify-content:space-between;font-family:DM Mono,monospace;font-size:11px;font-weight:500;letter-spacing:1.25px;color:var(--muted)}.pane-heading>span:first-child{display:flex;align-items:center;gap:9px}.pane-bullet{width:6px;height:6px;border-radius:50%}.editor-bullet{background:#e0a86a}.preview-bullet{background:#63a984}.editor-body{display:flex;flex:1;min-height:0;overflow:hidden;padding-top:25px;padding-bottom:14px}.editor-body textarea{resize:none;border:0;outline:none;background:transparent;width:100%;height:100%;min-width:0;padding:0 26px;color:#54635a;font:12px/2 DM Mono,monospace;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;tab-size:2;caret-color:#41836a}.editor-body textarea::selection{background:#d6e8d9}.pane-footer{height:33px;flex:none;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:var(--muted);font-size:11px}.pane-footer span:first-child{display:flex;align-items:center;gap:7px}.pane-footer svg{width:12px;height:12px}.preview-body{padding:25px 47px 55px;overflow:auto;flex:1;min-height:0;font-size:13px;line-height:1.85;color:#5d6860}.preview-body>:first-child{margin-top:0}.preview-body h1,.preview-body h2,.preview-body h3,.preview-body h4{color:#313d35}.preview-body h1{font-family:"Instrument Serif",serif;font-size:34px;font-weight:400;letter-spacing:-.5px;line-height:1.2;margin:0 0 20px}.preview-body h2{font-family:"Instrument Serif",serif;font-size:25px;font-weight:400;line-height:1.3;margin:28px 0 8px}.preview-body h3{font-size:13px;font-weight:700;margin:24px 0 5px}.preview-body p{margin:0 0 15px}.preview-body strong{color:#3f4d43}.preview-body ul,.preview-body ol{padding-left:21px;margin:10px 0 21px}.preview-body li{padding-left:2px;margin:3px 0}.preview-body li::marker{color:#5eab7d}.preview-body a{color:#2f7556;text-underline-offset:3px}.preview-body blockquote{margin:23px 0;padding:8px 0 8px 17px;border-left:2px solid #9ac7a8;font-family:"Instrument Serif",serif;font-style:italic;color:var(--muted);font-size:19px;line-height:1.45}.preview-body blockquote p{margin:0}.preview-body code{font-family:DM Mono,monospace;background:#eef2ec;border-radius:3px;padding:2px 4px;color:#59705d;font-size:.85em}.preview-body pre{background:#edf2ed;padding:16px;border-radius:6px;overflow:auto;line-height:1.6}.preview-body pre code{padding:0;background:transparent}.preview-body hr{border:0;border-top:1px solid var(--line);margin:25px 0}.preview-body table{border-collapse:collapse;display:block;overflow:auto;margin:16px 0}.preview-body th,.preview-body td{border:1px solid var(--line);padding:6px 10px;text-align:left}.preview-body img{max-width:100%}.preview-body input[type=checkbox]{accent-color:#4d9770;vertical-align:middle;margin-right:5px}.editor-grid[data-view=edit]{grid-template-columns:1fr}.editor-grid[data-view=edit] .preview-pane{display:none}.editor-grid[data-view=preview]{grid-template-columns:1fr}.editor-grid[data-view=preview] .editor-pane{display:none}.editor-grid[data-view=edit] .editor-pane{border-right:0}.editor-grid[data-view=preview] .preview-body{max-width:850px;width:100%;margin:0 auto;padding-left:75px;padding-right:75px}.guide-dialog{border:1px solid var(--line);border-radius:15px;padding:25px;width:min(430px,calc(100vw - 30px));background:var(--panel);color:var(--text);box-shadow:0 25px 70px #1a302b30}.guide-dialog::backdrop{background:#18231c77}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-icon{background:var(--accent-soft);width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--accent)}.guide-dialog h2{font-family:"Instrument Serif",serif;font-size:32px;font-weight:400;margin:20px 0 10px}.guide-dialog p{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 19px}.guide-list{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:20px}.guide-list>div{display:flex;align-items:center;gap:14px;padding:9px 12px;color:#58665b;font-size:11px}.guide-list>div+div{border-top:1px solid var(--line)}kbd{background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:4px 6px;font:11px DM Mono,monospace;min-width:45px;text-align:center}.guide-done{width:100%;height:38px}:root[data-theme=dark]{--bg:#171c19;--sidebar:#1d2420;--panel:#222a25;--text:#e3e9e2;--muted:#9aa89d;--accent-dark:#8fd0a8;--line:#354038;--accent:#6cba8e;--accent-soft:#263d2e;--hover:#303b33;--editor:#1f2722;--shadow:none;color-scheme:dark}:root[data-theme=dark] .sidebar{border-color:var(--line)}:root[data-theme=dark] .search-wrap{background:#252e27;border-color:var(--line);color:#c9d4ca}:root[data-theme=dark] .note-title{color:#d2ded3}:root[data-theme=dark] .sidebar-hint{border-color:var(--line)}:root[data-theme=dark] .outline-button,:root[data-theme=dark] .view-controls button.active{background:#2b352e;border-color:var(--line);color:#b9d6be}:root[data-theme=dark] .view-controls{background:#1d2520;border-color:var(--line)}:root[data-theme=dark] .editor-toolbar,:root[data-theme=dark] .pane-heading,:root[data-theme=dark] .pane-footer{border-color:var(--line)}:root[data-theme=dark] .workspace-card{border-color:var(--line)}:root[data-theme=dark] .preview-body{color:#acbcb0}:root[data-theme=dark] .preview-body h1,:root[data-theme=dark] .preview-body h2,:root[data-theme=dark] .preview-body h3,:root[data-theme=dark] .preview-body h4,:root[data-theme=dark] .preview-body strong{color:#e1eae0}:root[data-theme=dark] .preview-body code,:root[data-theme=dark] .preview-body pre{background:#303d33;color:#aed0b2}:root[data-theme=dark] .preview-body blockquote{color:#a3b5a6}:root[data-theme=dark] .editor-body textarea{color:#b9cabe}:root[data-theme=dark] .popover{border-color:var(--line)}@media(max-width:1100px){.main-area{padding:0 24px}.sidebar{width:225px}.preview-body{padding-left:30px;padding-right:30px}.editor-toolbar{padding-left:9px}.tool-divider{margin:0 3px}}@media(max-width:850px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%);transition:transform .2s;box-shadow:10px 0 25px #17281c18}.sidebar.open{transform:translate(0)}.sidebar-scrim.visible{display:block;position:fixed;inset:0;background:#1d2a2288;z-index:14}.mobile-close,.menu-button{display:grid}.mobile-close{margin-left:auto}.main-area{padding:0 22px}.topbar{height:62px}.document-header{padding-top:30px}}@media(max-width:640px){.main-area{padding:0 14px}.topbar{height:58px}.topbar-left{min-width:0}.save-indicator{font-size:0;margin-right:2px}.save-indicator .save-dot{width:7px;height:7px}.topbar-separator{margin-right:1px}.document-header{padding:27px 0 22px}.title-row{align-items:flex-start;flex-direction:column;gap:15px}.title-row input{font-size:37px;width:100%}.title-actions{width:100%}.outline-button,.primary-button{flex:1}.editor-toolbar{height:auto;min-height:89px;flex-wrap:wrap;padding:8px;justify-content:center;gap:6px}.format-tools{justify-content:center;flex-wrap:wrap}.view-controls{justify-content:center;width:100%;border:0;padding:0;background:transparent}.view-controls button{flex:1;justify-content:center}.editor-grid{position:relative}.editor-pane,.preview-pane{height:100%}.editor-grid[data-view=split]{display:flex;flex-direction:column;min-height:620px}.editor-grid[data-view=split] .editor-pane,.editor-grid[data-view=split] .preview-pane{height:50%;border-right:0}.editor-grid[data-view=split] .editor-pane{border-bottom:1px solid var(--line)}.editor-grid[data-view=preview] .preview-body{padding:24px 26px}.pane-heading{height:38px}.editor-body{padding-top:19px}.preview-body{padding:24px 26px}.tool-button{width:28px}.tool-divider{margin:0 2px}}.workspace-card{position:relative}.menu-bar{height:34px;display:flex;align-items:center;gap:2px;padding:0 15px;background:var(--editor);border-bottom:1px solid var(--line)}.menu-details{position:relative;font-size:11px;color:var(--muted)}.menu-details summary{list-style:none;cursor:pointer;padding:7px 10px;border-radius:4px;font-weight:700}.menu-details summary::-webkit-details-marker{display:none}.menu-details summary:hover,.menu-details[open] summary{background:var(--hover);color:var(--text)}.menu-dropdown{position:absolute;top:29px;left:0;min-width:190px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:0 12px 28px #19291b22;z-index:12}.menu-dropdown button{height:30px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;background:transparent;color:var(--text);font-size:11px;text-align:left;padding:0 8px;border-radius:4px;white-space:nowrap}.menu-dropdown button:hover{background:var(--hover)}.menu-dropdown kbd{border:0;background:transparent;color:var(--muted);min-width:0;padding:0;font-size:11px}.menu-rule{display:block;border-top:1px solid var(--line);margin:4px 2px}.menu-caption{font:11px DM Mono,monospace;letter-spacing:1.2px;color:var(--muted)}.editor-toolbar{padding-right:10px}.format-tools{min-width:0;overflow:auto;scrollbar-width:none;flex:1;white-space:nowrap}.format-tools::-webkit-scrollbar{display:none}.format-tools>*{flex:none}.heading-button{font-family:DM Mono,monospace;font-size:11px;font-weight:700}.view-controls{flex:none}.find-bar{height:auto;min-height:42px;display:flex;align-items:center;gap:6px;padding:5px 13px;border-bottom:1px solid var(--line);background:var(--panel);color:var(--muted)}.find-bar>svg{width:14px;height:14px}.find-bar input{width:140px;min-width:0;height:27px;border:1px solid var(--line);border-radius:5px;background:var(--editor);color:var(--text);padding:0 8px;font-size:11px;outline:none}.find-bar input:focus{border-color:#78aa85}.find-bar #find-count{min-width:42px;text-align:right;font:11px DM Mono,monospace}.find-bar .icon-button{width:25px;height:25px}.find-bar .icon-button svg{width:14px;height:14px}.find-separator{height:19px;width:1px;background:var(--line);margin:0 3px}.find-action{height:26px;border:1px solid var(--line);border-radius:5px;background:var(--editor);color:var(--text);padding:0 8px;font-size:11px}.find-action:hover{background:var(--hover)}.footer-separator{margin:0 7px}.pane-footer span:last-child{display:flex;align-items:center}.editor-grid.outline-open[data-view=split]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 215px}.editor-grid.outline-open[data-view=edit],.editor-grid.outline-open[data-view=preview]{grid-template-columns:minmax(0,1fr) 215px}.outline-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel);border-left:1px solid var(--line)}.outline-pane[hidden]{display:none!important}.outline-bullet{background:#a68dbd}.outline-pane .pane-heading{padding-right:12px}.outline-list{flex:1;overflow:auto;padding:13px 8px}.outline-list button{display:block;border:0;background:transparent;color:var(--muted);border-radius:5px;padding:7px 8px;width:100%;text-align:left;font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outline-list button:hover{background:var(--hover);color:var(--text)}.outline-list .outline-level-1{font-weight:700;color:var(--text)}.outline-list .outline-level-2{padding-left:16px}.outline-list .outline-level-3{padding-left:25px}.outline-list .outline-level-4,.outline-list .outline-level-5,.outline-list .outline-level-6{padding-left:33px}.outline-empty{color:var(--muted);font-size:11px;padding:10px}.preview-body mark{background:#fff0a8;color:#4b4631;padding:1px 2px;border-radius:2px}.preview-body .language-label{display:block;font:11px DM Mono,monospace;color:var(--muted);margin-bottom:8px;text-transform:uppercase}.preview-body h4,.preview-body h5,.preview-body h6{margin:17px 0 6px;font-size:12px;font-weight:700}:root[data-theme=dark] .menu-bar,:root[data-theme=dark] .find-bar input,:root[data-theme=dark] .find-action{background:var(--editor)}:root[data-theme=dark] .preview-body mark{background:#695e30;color:#f5e8b5}@media(max-width:900px){.menu-caption{display:none}.editor-grid.outline-open[data-view=split]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.outline-pane:not([hidden]){position:absolute;right:0;top:0;bottom:0;width:min(265px,70%);z-index:5;box-shadow:-8px 0 25px #17251a22}.find-bar{flex-wrap:wrap}.find-bar input{flex:1;min-width:110px}}@media(max-width:640px){.menu-bar{padding:0 5px;justify-content:space-around}.menu-details summary{padding:7px 8px}.menu-details:last-of-type .menu-dropdown{right:0;left:auto}.editor-toolbar{min-height:80px;display:block;padding:6px 7px}.format-tools{display:flex;flex-wrap:nowrap;justify-content:flex-start;width:100%;padding-bottom:3px}.view-controls{display:flex;width:100%;margin-top:3px}.find-bar{gap:4px;padding:6px}.find-bar>svg,.find-separator{display:none}.find-bar input{min-width:85px}.find-bar #find-count{min-width:36px}.document-subline{flex-wrap:wrap}.pane-footer{padding:0 10px}.outline-pane:not([hidden]){height:100%}}.checkbox-button{width:auto;display:flex;gap:5px;padding:0 7px;color:#3e735a;font-size:11px;font-weight:700}.checkbox-button span{white-space:nowrap}:root[data-theme=dark] .checkbox-button{color:#a5d5b5}.preview-pane{position:relative}.table-tools{position:absolute;top:47px;right:12px;z-index:5;display:flex;align-items:center;gap:3px;max-width:calc(100% - 24px);overflow:auto;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:0 7px 22px #19291b22;white-space:nowrap}.table-tools[hidden]{display:none}.table-tools>span:first-child{padding:0 7px;color:var(--muted);font:700 11px DM Mono,monospace;text-transform:uppercase}.table-tools button{border:0;border-radius:4px;background:transparent;color:var(--text);padding:6px 7px;font-size:11px;cursor:pointer}.table-tools button:hover,.table-tools button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.table-tools-separator{height:16px;border-left:1px solid var(--line);margin:0 2px}.versions-dialog{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);width:min(520px,calc(100vw - 28px));max-height:min(650px,80vh);padding:23px;box-shadow:0 24px 70px #17251b40}.versions-dialog::backdrop{background:#14201888}.versions-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.versions-top h2{font: 30px "Instrument Serif",serif;margin:7px 0 3px}.versions-dialog>p{font-size:12px;color:var(--muted);margin:7px 0 17px}.versions-list{margin-top:16px;max-height:350px;overflow:auto;color:var(--muted);font-size:12px}.version-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:13px 0}.version-row>div{min-width:0;display:flex;flex-direction:column;gap:5px}.version-row strong{color:var(--text);font-size:11px}.version-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.version-row button{border:1px solid var(--line);border-radius:5px;background:var(--editor);color:var(--text);font-size:11px;padding:7px 10px;cursor:pointer}.preview-body .mermaid{margin:20px 0;overflow:auto;text-align:center;white-space:pre-wrap}.preview-body .mermaid svg{display:block;width:100%;height:auto;min-height:64px;max-width:100%;margin:auto}.preview-body .mermaid-error{font-family:DM Mono,monospace;color:var(--muted);text-align:left}.preview-body .katex-display{overflow:auto;padding:5px 0}@media print{body,.app-shell,.main-area,.workspace-card,.editor-grid{background:#fff!important;color:#111!important;display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}.sidebar,.topbar,.document-header,.menu-bar,.editor-toolbar,.find-bar,.editor-pane,.outline-pane,.lock-banner,.toasts,.preview-pane .pane-heading,.preview-pane .pane-footer{display:none!important}.preview-pane,.preview-body{display:block!important;overflow:visible!important;height:auto!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}.preview-body{font-size:12pt!important;line-height:1.6!important}.preview-body h1{font-size:28pt!important}.preview-body h2{font-size:21pt!important}}.editor-body textarea{font-size:var(--editor-font-size,13px)}.tool-button:disabled,.menu-dropdown button:disabled{opacity:.36;cursor:default}.tool-button:disabled:hover,.menu-dropdown button:disabled:hover{background:transparent}.preview-body .hljs-keyword,.preview-body .hljs-selector-tag,.preview-body .hljs-literal{color:#7956a0}.preview-body .hljs-string,.preview-body .hljs-attr,.preview-body .hljs-addition{color:#398357}.preview-body .hljs-number,.preview-body .hljs-built_in{color:#a8653d}.preview-body .hljs-comment,.preview-body .hljs-quote{color:var(--muted);font-style:italic}.preview-body .hljs-title,.preview-body .hljs-function{color:#397895}.preview-body .hljs-tag,.preview-body .hljs-name{color:#a65266}:root[data-theme=dark] .preview-body .hljs-keyword,:root[data-theme=dark] .preview-body .hljs-selector-tag,:root[data-theme=dark] .preview-body .hljs-literal{color:#c6a7ec}:root[data-theme=dark] .preview-body .hljs-string,:root[data-theme=dark] .preview-body .hljs-attr{color:#9dd4a7}:root[data-theme=dark] .preview-body .hljs-number,:root[data-theme=dark] .preview-body .hljs-built_in{color:#e0ae80}:root[data-theme=dark] .preview-body .hljs-title,:root[data-theme=dark] .preview-body .hljs-function{color:#9ccce2}.sidebar{transition:width .2s,padding .2s}.sidebar-collapse{margin-left:auto;width:26px;height:26px}.sidebar-collapse svg{width:15px;height:15px}.app-shell.sidebar-collapsed .sidebar{width:0;padding-left:0;padding-right:0;border-right:0;overflow:hidden}.app-shell.sidebar-collapsed .menu-button{display:grid;margin-right:8px}@media(max-width:850px){.sidebar-collapse{display:none}.app-shell.sidebar-collapsed .sidebar{width:225px;padding:28px 15px 17px;border-right:1px solid var(--line);overflow:auto}.menu-button{margin-right:8px}}@media(max-width:640px){.app-shell.sidebar-collapsed .sidebar{width:256px}}.preview-body[contenteditable=true]{cursor:text}.preview-body[contenteditable=true]:focus{outline:none;box-shadow:inset 0 0 0 2px #72ac842b}.preview-body input[type=checkbox]:not(:disabled){cursor:pointer}html{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{background:var(--bg);overscroll-behavior:none}.topbar,.document-header,.lock-banner{flex:none}summary:focus-visible,.note-delete:focus-visible,.new-html-button:focus-visible{outline:2px solid #6caa90;outline-offset:2px}.new-row{display:flex;gap:6px}.new-row .new-note-button{flex:1;min-width:0}.new-html-button{width:41px;height:41px;flex:none;border:1px solid #d5e2d9;border-radius:8px;background:var(--panel);color:var(--accent);display:grid;place-items:center;padding:0}.new-html-button:hover{background:var(--accent-soft)}.new-html-button svg{width:17px;height:17px}.note-row{display:flex;align-items:center;border-radius:8px}.note-row:hover{background:#e9ebe5}.note-row.selected{background:#dfeae0}.note-row .note-item{flex:1;min-width:0;background:transparent}.note-row.selected .note-item{color:#356c55}.note-row.selected .note-title{color:#2e634b}.note-delete{flex:none;width:32px;height:32px;margin-right:6px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);display:grid;place-items:center;opacity:0}.note-delete svg{width:15px;height:15px}.note-row:hover .note-delete,.note-row:focus-within .note-delete{opacity:1}.note-delete:hover{background:#f6dcd8;color:#a8443d}@media(hover:none){.note-delete{opacity:.8}}.lock-banner{display:flex;align-items:center;gap:12px;margin-top:14px;padding:10px 12px 10px 14px;border:1px solid #e6d3a3;background:#fbf4e1;color:#5b4a1e;border-radius:9px;font-size:13px;line-height:1.4}.lock-banner svg{width:16px;height:16px}.lock-banner span{flex:1}.lock-banner .primary-button{font-size:12px}.workspace-locked .menu-bar,.workspace-locked .format-tools,.workspace-locked .new-row,.workspace-locked .title-actions,.workspace-locked #more-button,.workspace-locked .table-tools{opacity:.4;pointer-events:none}.workspace-locked .note-delete{display:none}body[data-doc-type=html] [data-mode=markdown],body[data-doc-type=markdown] [data-mode=html]{display:none!important}.tool-group{display:flex;align-items:center;gap:1px}.tool-group>*{flex:none}.text-tool{width:auto;padding:0 9px;font-size:12px;font-weight:600}.html-preview{flex:1;min-height:0;width:100%;border:0;background:#fff;display:block}@media not all and (display-mode:standalone){.standalone-only{display:none!important}}.ask-dialog{border:1px solid var(--line);border-radius:14px;padding:22px;width:min(420px,calc(100vw - 32px));background:var(--panel);color:var(--text);box-shadow:0 25px 70px #1a302b30}.ask-dialog::backdrop{background:#18231c77}.ask-dialog h2{font:400 26px "Instrument Serif",serif;margin:0 0 8px}.ask-dialog p{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.6}.ask-dialog label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:12px;font-weight:600;color:var(--muted)}.ask-dialog input{height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--editor);color:var(--text);font-size:16px;outline:none}.ask-dialog input:focus{border-color:#78aa85}.ask-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.ask-actions button{height:38px;font-size:12px}.primary-button.danger{background:#a8443d;border-color:#a8443d}.primary-button.danger:hover{background:#8f372f}.toasts{position:fixed;left:50%;bottom:20px;transform:translate(-50%);display:flex;flex-direction:column;gap:8px;z-index:50;width:min(460px,calc(100vw - 32px));pointer-events:none}.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:10px;background:#1f2a24;color:#eef3ee;font-size:13px;line-height:1.45;box-shadow:0 12px 32px #0f1a1440}.toast span{flex:1}.toast-action{border:0;border-radius:6px;background:#3f8069;color:#fff;font-weight:700;font-size:12px;padding:8px 12px;white-space:nowrap}.toast-action:hover{background:#2f6f58}.toast-close{border:0;background:transparent;color:#c3d0c6;font-size:20px;line-height:1;width:32px;height:32px;border-radius:6px;flex:none}.toast-close:hover{background:#ffffff1a}.install-help{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin-bottom:18px;font-size:13px}.guide-dialog .install-help p{margin:6px 0 0;font-size:13px}.preview-body .math-display{display:block;overflow:auto;padding:5px 0}.preview-body .math:not(:has(.katex)){font-family:DM Mono,monospace;color:var(--muted)}:root[data-theme=dark] .note-row:hover{background:var(--hover)}:root[data-theme=dark] .note-row.selected{background:#304a38}:root[data-theme=dark] .note-row.selected .note-item{color:#a5d5b5}:root[data-theme=dark] .note-row.selected .note-title{color:#b6e3bf}:root[data-theme=dark] .note-delete:hover{background:#4a2b28;color:#f0a59d}:root[data-theme=dark] .new-html-button{border-color:var(--line)}:root[data-theme=dark] .lock-banner{background:#3a3220;border-color:#5c4e2c;color:#f1e3bd}:root[data-theme=dark] .preview-body a{color:#8fd0a8}:root[data-theme=dark] .popover button.danger{color:#f0a59d}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}@media(pointer:coarse){.tool-button{min-width:38px;height:38px}.icon-button,.topbar-actions .icon-button{width:40px;height:40px}.view-controls button{height:34px}.menu-dropdown button{height:40px;font-size:13px}.popover button{height:42px;font-size:13px}.note-item{height:52px}.note-delete{width:40px;height:40px}.find-bar input,.search-wrap input{font-size:16px}.find-bar input{height:36px}.editor-body textarea{font-size:max(15px,var(--editor-font-size,13px))}}@media(max-width:640px){.main-area{padding:0 10px}.topbar{height:50px}.document-header{padding:6px 0 10px}.document-overline,.document-subline{display:none}.title-row{flex-direction:row;align-items:center;gap:10px;margin:0}.title-row input{font-size:26px}.title-actions{width:auto}.title-actions .primary-button{flex:none;padding:0 12px;height:38px}#save-label{display:none}.editor-toolbar{display:flex;align-items:center;min-height:0;height:auto;padding:5px 6px;gap:6px}.format-tools{flex:1;width:auto;padding-bottom:0}.view-controls{width:auto;margin-top:0;border:1px solid var(--line);padding:2px;background:var(--editor)}.view-controls button{flex:none;padding:0 9px}.view-controls button span{display:none}.editor-grid,.editor-grid[data-view=split]{display:flex;flex-direction:column;min-height:0;height:auto}.editor-pane,.preview-pane,.editor-grid[data-view=split] .editor-pane,.editor-grid[data-view=split] .preview-pane{flex:1;min-height:0;height:auto}.pane-heading:not(.outline-pane .pane-heading),.pane-footer{display:none}.workspace-card{margin-bottom:10px;border-radius:9px}.editor-body{padding-top:14px}.editor-body textarea{padding:0 14px}.preview-body,.editor-grid[data-view=preview] .preview-body{padding:16px 16px 40px}.lock-banner{flex-wrap:wrap;margin-top:8px}.toasts{bottom:12px}}
