@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-sans-latin-400-normal-CDDApCn2.woff2)format("woff2"),url(./ibm-plex-sans-latin-400-normal-CYLoc0-x.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2)format("woff2"),url(./ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:italic;font-display:swap;font-weight:400;src:url(./ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2)format("woff2"),url(./ibm-plex-sans-latin-400-italic-CsGl1sm0.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-sans-latin-500-normal-6ng42L7E.woff2)format("woff2"),url(./ibm-plex-sans-latin-500-normal-BgVn5rGT.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2)format("woff2"),url(./ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2)format("woff2"),url(./ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2)format("woff2"),url(./ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2)format("woff2"),url(./ibm-plex-mono-latin-400-normal-CvHOgSBP.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:italic;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2)format("woff2"),url(./ibm-plex-mono-latin-400-italic-66oory27.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2)format("woff2"),url(./ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:italic;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-600-italic-DrfJ59vG.woff2)format("woff2"),url(./ibm-plex-mono-latin-600-italic-DYu2LnOQ.woff)format("woff")}:root{color-scheme:dark;--bg:#1a1b1d;--bg-sidebar:#1e1f21;--bg-elev:#222325;--bg-elev-2:#2a2b2e;--bg-hover:#2e2f32;--bg-active:#383a3e;--border:#313235;--border-strong:#3f4044;--text:#ecedef;--text-dim:#c3c5ca;--text-faint:#bbbdc2;--accent:#7aa7ff;--accent-text:#bfd3ff;--accent-strong:#284fb0;--accent-strong-hover:#2347a0;--accent-soft:#7aa7ff24;--danger:#ffaaa3;--success:#a3e3a7;--warning:#f2d08a;--selection:#7aa7ff33;--editor-text:#e8e9eb;--editor-heading:#fff;--editor-strong:#f2f2f4;--editor-mark:#b8bcc4;--editor-link:#b4ccff;--editor-code:#efc896;--editor-quote:#c9cbd0;--editor-html:#dbbdf5;--editor-variable:#f2bde5;--editor-ai:#bbbec5;--code-keyword:#dbb6f3;--code-property:#b0c9ff;--code-string:#c9ec98;--code-number:#fbb093;--code-class:#ffd27f;--code-variable:#9de3ff;--font-ui:"IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, Menlo, monospace;--font-editor:var(--font-mono);--bar-h:36px;--radius:6px;--titlebar-h:52px;--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c3c5ca' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:13px/1.45 var(--font-ui);-webkit-font-smoothing:antialiased;user-select:none;overflow:hidden}button{font:inherit;color:inherit}input,select,textarea{font:inherit}::placeholder{color:var(--text-faint);opacity:1}::selection{background:var(--selection)}.drag{-webkit-app-region:drag}.no-drag,.drag button,.drag input,.drag select{-webkit-app-region:no-drag}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#3b3e46 padding-box padding-box;border:2px solid #0000;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#4a4e57 padding-box padding-box;border:2px solid #0000}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-corner{background:0 0}.app{height:100%;display:flex}.app.loading{background:var(--bg)}.button{border-radius:var(--radius);background:var(--bg-elev-2);border:1px solid var(--border-strong);cursor:default;align-items:center;gap:6px;padding:5px 12px;display:inline-flex}.button:hover{background:var(--bg-hover)}.button:disabled{opacity:.5}.button.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}.button.primary:hover{background:var(--accent-strong-hover);border-color:var(--accent-strong-hover)}.button.small{padding:3px 9px;font-size:12px}.button.large{padding:9px 18px;font-size:14px}.icon-button{border-radius:var(--radius);width:26px;height:26px;color:var(--text-dim);cursor:default;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover{background:var(--bg-hover);color:var(--text)}.icon-button.small{width:20px;height:20px}.link-button{color:var(--accent-text);cursor:pointer;background:0 0;border:none;padding:0}.link-button:hover{text-decoration:underline}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.sidebar{background:var(--bg-sidebar);border-right:1px solid var(--border);flex-direction:column;flex:none;width:264px;display:flex}.sidebar-titlebar{height:var(--titlebar-h);flex:none;justify-content:flex-end;align-items:center;padding:0 10px 0 86px;display:flex}.sidebar-scroll{flex:1;padding:0 6px 12px;overflow-y:auto}.sidebar-tree{padding-top:4px}.tree-row{height:26px;color:var(--text);white-space:nowrap;cursor:default;border-radius:5px;align-items:center;gap:4px;padding-right:8px;display:flex}.tree-row.compact{height:22px}.tree-row:hover{background:var(--bg-hover)}.tree-row.active{background:var(--accent-soft);color:#fff}.tree-row.drop-over{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.tree-row.muted .tree-label{color:var(--text-dim)}.tree-chevron{width:14px;height:14px;color:var(--text-faint);flex:none;justify-content:center;align-items:center;transition:transform .12s;display:inline-flex}.tree-chevron.open{transform:rotate(90deg)}.tree-chevron.hidden{visibility:hidden}.tree-icon{color:var(--text-dim);flex:none;display:inline-flex}.tree-row.project .tree-label{font-weight:500}.tree-row.active .tree-icon{color:var(--accent)}.tree-label{text-overflow:ellipsis;overflow:hidden}.tag-dots{flex:none;margin-left:4px;display:inline-flex}.tag-dot{width:8px;height:8px;box-shadow:0 0 0 1.5px var(--bg-sidebar);border-radius:50%}.tag-dot+.tag-dot{margin-left:-3px}.tree-row:hover .tag-dot{box-shadow:0 0 0 1.5px var(--bg-hover)}.tree-row.active .tag-dot{box-shadow:none}.tree-empty{color:var(--text-faint);padding:3px 8px 3px 26px;font-size:12px}.sidebar-search{height:var(--bar-h);border-top:1px solid var(--border);color:var(--text-faint);cursor:text;flex:none;align-items:center;gap:8px;padding:0 14px;display:flex}.sidebar-search-icon{flex:none}.sidebar-search input{min-width:0;height:26px;color:var(--text);user-select:text;background:0 0;border:none;border-radius:0;flex:1;padding:0;font-size:12.5px}.sidebar-search input::placeholder{color:var(--text-faint)}.sidebar-search input:focus-visible{outline:none}.sidebar-search:focus-within{border-top-color:var(--accent);box-shadow:inset 0 1px 0 var(--accent);color:var(--accent)}.search-results{flex-direction:column;gap:10px;padding:6px 2px;display:flex}.search-results .tree-empty{padding-left:8px}.search-group-title{color:var(--text-dim);margin:0 0 3px;padding:0 8px;font-size:11.5px;font-weight:600}.search-hit{flex-direction:column;display:flex}.search-hit button{text-align:left;color:var(--text);cursor:default;background:0 0;border:none;border-radius:5px;padding:3px 8px}.search-hit button:hover{background:var(--bg-hover)}.search-hit-name{text-overflow:ellipsis;white-space:nowrap;align-items:baseline;gap:6px;display:flex;overflow:hidden}.search-hit-kind{color:var(--text-faint);font-size:11px}.search-hit-line{overflow-wrap:anywhere;font-size:12px;line-height:1.4;color:var(--text-dim)!important;padding-left:18px!important}.search-results mark{background:var(--accent-soft);color:var(--text);outline:1px solid var(--accent);outline-offset:0;border-radius:2px}.workspace{background:var(--bg-elev);flex:1;min-width:0;display:flex}.toolbar{height:var(--titlebar-h);flex:none;align-items:center;gap:12px;padding:0 12px 0 18px;display:flex}.app.library-hidden .toolbar{padding-left:86px}.toolbar-left{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.toolbar-actions{align-items:center;gap:6px;display:flex}.toolbar-button{border-radius:var(--radius);height:28px;color:var(--text-dim);background:0 0;border:1px solid #0000;align-items:center;gap:6px;padding:0 9px;display:inline-flex}.toolbar-button:hover,.toolbar-button.on{background:var(--bg-hover);color:var(--text)}.toolbar-button.warn{color:var(--warning)}.segmented{background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:2px;display:inline-flex}.segmented button{color:var(--text-dim);background:0 0;border:none;border-radius:5px;padding:3px 11px}.segmented button.on{background:var(--bg-active);color:var(--text);box-shadow:0 1px 2px #0000004d}.zoom-controls{color:var(--text-dim);align-items:center;gap:2px;display:inline-flex}.zoom-label{color:var(--text-dim);font-variant-numeric:tabular-nums;background:0 0;border:none;min-width:44px}.page-count{color:var(--text-dim);font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:4px;font-size:12px;display:inline-flex}.page-input{text-align:right;width:auto;min-width:2ch;height:22px;font:inherit;font-variant-numeric:tabular-nums;color:var(--text);border:1px solid var(--border-strong);user-select:text;background:0 0;border-radius:4px;padding:0 4px}.page-input:hover{background:var(--bg-hover)}.page-input:focus{background:var(--bg)}.view-toggle button{justify-content:center;align-items:center;min-width:34px;height:24px;padding:0 8px;display:inline-flex}.view-glyph{font-family:var(--font-mono);font-size:14px;font-weight:600;line-height:1}.tab-bar{scrollbar-width:none;flex:none;align-items:center;gap:2px;height:30px;padding:0 12px 0 14px;display:flex;overflow-x:auto}.tab-bar::-webkit-scrollbar{display:none}.doc-tab{border-radius:var(--radius);min-width:0;max-width:240px;height:24px;color:var(--text-dim);flex:0 auto;align-items:center;display:flex}.doc-tab:hover{background:var(--bg-hover)}.doc-tab.active{background:var(--bg-active);color:var(--text)}.doc-tab-name{min-width:0;height:100%;color:inherit;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;padding:0 4px 0 10px;font-size:12.5px;overflow:hidden}.doc-tab-close{width:18px;height:18px;color:inherit;opacity:0;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;margin-right:4px;font-size:14px;line-height:1;display:inline-flex}.doc-tab:hover .doc-tab-close,.doc-tab.active .doc-tab-close,.doc-tab-close:focus-visible{opacity:1}.doc-tab-close:hover{background:var(--bg-hover);color:var(--text)}.doc-tab-new{border-radius:var(--radius);width:24px;height:24px;color:var(--text-dim);background:0 0;border:none;flex:none;font-size:16px;line-height:1}.doc-tab-new:hover{background:var(--bg-hover);color:var(--text)}.doc-tab.grouped{box-shadow:inset 0 -2px 0 var(--group)}.tab-group-chip{background:var(--group);color:#16171a;white-space:nowrap;text-overflow:ellipsis;border:none;border-radius:10px;flex:none;align-items:center;gap:5px;min-width:20px;max-width:160px;height:20px;margin:0 2px 0 6px;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex;overflow:hidden}.tab-group-chip:first-child{margin-left:0}.tab-group-chip.unnamed{border-radius:50%;width:14px;min-width:14px;height:14px;padding:0}.tab-group-chip:hover{filter:brightness(1.08)}.tab-group-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tab-group-count{opacity:.8;font-variant-numeric:tabular-nums;font-weight:500}.tab-group-chip.unnamed .tab-group-count{display:none}.doc-tab.drop-before,.tab-group-chip.drop-before,.doc-tab-new.drop-before{box-shadow:-2px 0 0 var(--accent)}.doc-tab.drop-after,.tab-group-chip.drop-after{box-shadow:2px 0 0 var(--accent)}.doc-tab.grouped.drop-before{box-shadow:inset 0 -2px 0 var(--group), -2px 0 0 var(--accent)}.doc-tab.grouped.drop-after{box-shadow:inset 0 -2px 0 var(--group), 2px 0 0 var(--accent)}.doc-tab.drop-onto{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.doc-tab.grouped.drop-onto{box-shadow:inset 0 0 0 1px var(--accent), inset 0 -2px 0 var(--group)}.workspace-main{flex-direction:column;flex:1;min-width:0;display:flex}.workspace-body{flex:1;min-height:0;position:relative}.pane{position:absolute;inset:0}.pane-hidden{visibility:hidden;pointer-events:none}.statusbar{height:var(--bar-h);color:var(--text-faint);flex:none;align-items:center;gap:16px;padding:0 16px;font-size:11.5px;display:flex}.status-spacer{flex:1}.statusbar{container-type:inline-size}.statusbar>*{white-space:nowrap;flex:none}.statusbar>.status-spacer{flex:1 1 0}@container (width<=900px){.statusbar .guides-button{max-width:200px}}.statusbar>.status-count{flex-wrap:wrap;flex:0 auto;align-content:flex-start;column-gap:.35em;min-width:0;height:16px;line-height:16px;display:inline-flex;overflow:hidden}@container (width<=700px){.statusbar .guides-button{max-width:120px}}.empty-state{height:100%;color:var(--text-dim);flex-direction:column;justify-content:center;align-items:center;gap:6px;display:flex}.empty-state h2{color:var(--text);margin:0;font-size:16px;font-weight:600}.empty-state p{margin:0}.empty-state .hint{color:var(--text-faint);margin-top:12px;font-size:12px}.image-view{justify-content:center;align-items:center;padding:32px;display:flex;position:absolute;inset:0;overflow:auto}.image-view img{background:#fff;max-width:100%;max-height:100%;box-shadow:0 4px 24px #0006}.editor-host,.editor-host .cm-editor{height:100%}.editor-host .cm-editor.cm-focused{outline:none}.cm-prose .cm-line.cm-md-table{white-space:pre;overscroll-behavior-x:contain;position:relative;overflow:auto hidden}.cm-prose .cm-line.cm-md-table:after{content:"";width:var(--mde-table-width);pointer-events:none;height:1px;position:absolute;top:0;left:0}.cm-prose .cm-line.cm-md-table:not(.cm-md-table-last){scrollbar-width:none}.cm-prose .cm-line.cm-md-table:not(.cm-md-table-last)::-webkit-scrollbar{display:none}.cm-table-pad{display:inline-block}.cm-prose .cm-content{max-width:clamp(min(100%,34em),82.5%,48em);font-size:var(--editor-size,22px);user-select:text;margin:0 auto;padding-left:32px!important;padding-right:32px!important}.cm-code .cm-content{user-select:text;font-size:13px}.cm-code .cm-scroller{line-height:1.6!important}.cm-prose .cm-line.cm-list-line,.cm-prose .cm-line.cm-list-cont{padding-left:calc(6px + var(--list-edge));text-indent:calc(var(--list-first) - var(--list-edge))}.cm-prose .cm-line.cm-heading-broken{padding-left:calc(6px + var(--heading-indent));text-indent:calc(-1 * var(--heading-indent))}.cm-heading-break{color:var(--editor-mark);font-weight:400}.cm-content-block{background:#7aa7ff12;border-radius:4px}.cm-content-block-path{color:var(--accent-text)}.cm-front-matter{color:var(--text-dim);background:#ffffff06}.cm-front-matter,.cm-front-matter *{color:var(--text-dim)!important;font-weight:400!important}.cm-variable{color:var(--editor-variable);background:#e8a6d814;border-radius:3px}.cm-misspelled{text-underline-offset:4px;text-decoration-skip-ink:none;text-decoration:underline 1px wavy #ef6b62d9}.cm-ai-text{color:var(--editor-ai)}.cm-panel.cm-search{font-family:var(--font-ui);padding:6px 10px}.cm-panel.cm-search input,.cm-panel.cm-search button{background:var(--bg-elev);color:var(--text);border:1px solid var(--border-strong);border-radius:4px}.cm-panel.cm-search label{color:var(--text-dim)}.preview-host{background:var(--bg-elev);position:absolute;inset:0}.rule-flyout{z-index:30;background:var(--bg-elev-2);border:1px solid var(--border-strong);border-radius:10px;flex-direction:column;display:flex;position:absolute;overflow:hidden;box-shadow:0 14px 40px #00000080}.rule-flyout-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:8px;padding:10px 10px 8px 12px;display:flex}.rule-flyout-title{font:600 13px var(--font-editor);color:var(--text);word-break:break-word}.rule-flyout-file{color:var(--text-faint);margin-top:2px;font-size:11.5px}.rule-flyout-body{flex-direction:column;gap:12px;padding:10px 12px 12px;display:flex;overflow-y:auto}.rule-card{flex-direction:column;gap:4px;display:flex}.rule-head{align-items:baseline;gap:6px;display:flex}.rule-selector{min-width:0;font:12.5px var(--font-editor);color:var(--editor-heading);word-break:break-word;flex:1}.rule-pseudo{font:11px var(--font-editor);color:var(--accent-text);flex:none}.rule-where{color:var(--text-dim);flex:none;font-size:11px}.rule-context{color:var(--text-dim);font-size:11px}.rule-body{box-sizing:border-box;resize:vertical;width:100%;font:12px/1.5 var(--font-editor);color:var(--text);background:var(--bg);border:1px solid var(--border);tab-size:2;border-radius:6px;padding:6px 8px}.rule-body:focus{border-color:var(--accent);outline:none}.rule-error{color:var(--warning);font-size:11.5px}.rule-add{align-self:flex-start}.rule-add code{font-family:var(--font-editor)}.rule-inherited-toggle{align-self:flex-start;font-size:12px}.rule-group{flex-direction:column;gap:10px;display:flex}.rule-group-title{color:var(--text-dim);margin-top:2px;font-size:11.5px;font-weight:600}.rule-note{color:var(--text-dim);margin:2px 0 0;font-size:11px;line-height:1.45}.preview-frame{visibility:hidden;border:0;width:100%;height:100%;position:absolute;inset:0}.preview-frame.visible{visibility:visible}.preview-message{color:var(--text-dim);text-align:center;z-index:1;background:var(--bg-elev);justify-content:center;align-items:center;padding:32px;display:flex;position:absolute;inset:0}.popover-anchor{position:relative}.popover{z-index:30;background:var(--bg-elev-2);border:1px solid var(--border-strong);border-radius:8px;min-width:240px;max-height:70vh;padding:5px;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 12px 32px #00000080}.popover.up{max-height:calc(100vh - var(--titlebar-h) - var(--bar-h) - 24px);top:auto;bottom:calc(100% + 6px)}.popover-heading{color:var(--text-faint);padding:8px 8px 4px;font-size:12px;font-weight:600}.popover-item{text-align:left;background:0 0;border:none;border-radius:5px;align-items:center;gap:8px;width:100%;padding:5px 8px 5px 26px;display:flex;position:relative}.popover-item:hover{background:var(--accent-strong);color:#fff}.popover-item.checked:before{content:"✓";position:absolute;left:9px}.popover-separator{background:var(--border-strong);height:1px;margin:5px 4px}.badge{background:var(--bg-active);color:var(--text);border-radius:8px;padding:0 6px;font-size:10.5px}.warnings-popover{width:380px}.warning-item{border-radius:5px;padding:7px 9px}.warning-item+.warning-item{border-top:1px solid var(--border)}.warning-where{color:var(--text-faint);font-size:11.5px;font-family:var(--font-editor);margin-top:2px}.panel-header{height:var(--titlebar-h);border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;padding:0 10px 0 16px;display:flex}.panel-title{font-weight:600}.panel-subheader{justify-content:space-between;align-items:center;gap:8px;padding:10px 12px 4px 16px;display:flex}.panel-project{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.panel-empty{color:var(--text-faint);padding:16px}.checkbox-row{color:var(--text-dim);align-items:center;gap:8px;padding:4px 16px 8px;font-size:12px;display:flex}.history-list{padding:0 8px 16px}.history-day{color:var(--text-faint);padding:12px 8px 4px;font-size:12px;font-weight:600}.history-item{border-radius:6px}.history-item.open{background:var(--bg-elev-2)}.history-item-main{text-align:left;background:0 0;border:none;border-radius:6px;grid-template-rows:auto auto;grid-template-columns:62px 1fr;gap:2px 8px;width:100%;padding:7px 8px;display:grid}.history-item-main:hover{background:var(--bg-hover)}.history-time{color:var(--text-faint);font-variant-numeric:tabular-nums;grid-row:1/3;padding-top:1px;font-size:12px}.history-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-item.kind-checkpoint .history-name{color:#fff;font-weight:600}.history-meta{color:var(--text-faint);align-items:center;gap:6px;font-size:11.5px;display:flex}.kind-badge{background:var(--bg-active);color:var(--text);border-radius:4px;padding:0 5px;font-size:10px}.kind-badge.checkpoint{color:var(--accent-text);background:#7aa7ff29}.kind-badge.export{color:var(--success);background:#6cc07024}.kind-badge.restore{color:var(--warning);background:#e0b45324}.history-detail{flex-direction:column;gap:1px;padding:2px 8px 10px 78px;display:flex}.history-file{text-align:left;color:var(--text-dim);background:0 0;border:none;border-radius:4px;align-items:center;gap:7px;padding:3px 6px;display:flex}.history-file:hover{background:var(--bg-hover);color:var(--text)}.history-file-name{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.change-dot{border-radius:50%;flex:none;width:7px;height:7px}.change-dot.added{background:var(--success)}.change-dot.removed{background:var(--danger)}.change-dot.modified{background:var(--warning)}.history-detail .restore{align-self:flex-start;margin-top:8px}.diff-view{z-index:5;background:var(--bg-elev);flex-direction:column;display:flex;position:absolute;inset:0}.diff-header{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 14px;display:flex}.diff-title{flex-direction:column;flex:1;min-width:0;display:flex}.diff-title strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.diff-sub{color:var(--text-faint);font-size:12px}.diff-body{font:12.5px/1.6 var(--font-editor);user-select:text;flex:1;padding:12px 0 40px;overflow:auto}.diff-hunk{margin-bottom:14px}.diff-hunk-header{color:var(--text-faint);font-family:var(--font-ui);background:#ffffff08;padding:2px 16px;font-size:11.5px}.diff-line{grid-template-columns:44px 44px 18px 1fr;display:grid}.diff-no{color:var(--text-faint);text-align:right;user-select:none;padding-right:8px}.diff-sign{color:var(--text-faint);user-select:none}.diff-text{white-space:pre-wrap;word-break:break-word;padding-right:16px}.diff-line.add{background:#6cc07014}.diff-line.del{background:#ef6b6214}.diff-line.add mark{color:inherit;background:#6cc07038;border-radius:2px}.diff-line.del mark{color:inherit;background:#ef6b6238;border-radius:2px}.modal-backdrop{z-index:50;background:#00000073;justify-content:center;align-items:flex-start;padding-top:14vh;display:flex;position:fixed;inset:0}.modal{background:var(--bg-elev-2);border:1px solid var(--border-strong);border-radius:10px;flex-direction:column;gap:12px;width:420px;max-width:calc(100vw - 32px);padding:18px 20px 16px;display:flex;box-shadow:0 24px 64px #0000008c}.modal h2{margin:0;font-size:15px}.modal-message{color:var(--text-dim);margin:-4px 0 0}.field{border:none;flex-direction:column;gap:5px;margin:0;padding:0;display:flex}.field>span,.field>legend{color:var(--text-dim);margin-bottom:4px;padding:0;font-size:12px}.field small{color:var(--text-faint);font-size:11.5px}.field input[type=text],.field select{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--bg);height:30px;color:var(--text);user-select:text;padding:0 10px}:root select:not([multiple]){appearance:none;text-overflow:ellipsis;background-image:var(--select-arrow);background-position:right 10px center;background-repeat:no-repeat;background-size:10px 6px;padding-right:30px}:root select:not([multiple]):disabled{opacity:.6}:root input[list]{padding-right:10px}:root input[list]::-webkit-calendar-picker-indicator{appearance:none;opacity:1;color:#0000;cursor:pointer;background:var(--select-arrow) center / 10px 6px no-repeat;width:10px;height:6px;margin:0 0 0 10px;padding:0;display:block}:root input[list]::-webkit-list-button{appearance:none;opacity:1;color:#0000;cursor:pointer;background:var(--select-arrow) center / 10px 6px no-repeat;width:10px;height:6px;margin:0 0 0 10px;padding:0;display:block}.radio-group{gap:16px;display:flex}.radio-row{align-items:center;gap:6px;display:flex}.radio-row.disabled{color:var(--text-faint)}.modal .checkbox-row{color:var(--text);padding:0;font-size:13px}.modal-error{color:var(--danger);font-size:12.5px}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.toasts{z-index:60;pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;bottom:40px;left:50%;transform:translate(-50%)}.toast{pointer-events:auto;background:var(--bg-elev-2);border:1px solid var(--border-strong);border-radius:8px;align-items:center;gap:12px;max-width:560px;padding:9px 14px;display:flex;box-shadow:0 8px 24px #00000073}.toast.error{border-color:#ef6b6299}.toast.success{border-color:#6cc07080}.welcome{flex:1;justify-content:center;align-items:center;display:flex}.welcome-card{text-align:center;flex-direction:column;align-items:center;gap:12px;width:440px;display:flex}.welcome-card h1{margin:0;font-size:26px;font-weight:650}.welcome-card p{color:var(--text-dim);margin:0 0 8px;line-height:1.6}.welcome-path{color:var(--text-faint);font-size:12px;font-family:var(--font-editor)}.authorship-hidden .cm-ai-text{color:inherit}.cm-lintRange.cm-grammar,.cm-lintRange.cm-style,.cm-lintRange.cm-review{text-underline-offset:4px;text-decoration-skip-ink:none;background-image:none;padding-bottom:0;text-decoration-thickness:1px}.cm-lintRange.cm-grammar{text-decoration:underline wavy #5aa0ff}.cm-lintRange.cm-style{text-decoration:underline wavy #b18cf0}.cm-lintRange.cm-review{text-decoration:underline 2px dotted #e0b453}.cm-lintRange.cm-hard,.cm-lintRange.cm-very-hard{background-image:none;padding-bottom:0}.cm-lintRange.cm-hard{background-color:#e0b45314}.cm-lintRange.cm-very-hard{background-color:#ef6b621a}.cm-tooltip.cm-tooltip-lint{background:var(--bg-elev-2);border:1px solid var(--border-strong);font-family:var(--font-ui);border-radius:8px;max-width:420px;padding:4px;box-shadow:0 10px 28px #00000080}.cm-tooltip-lint .cm-diagnostic{border-left:3px solid var(--border-strong);color:var(--text);padding:6px 10px;font-size:12.5px;line-height:1.45}.cm-tooltip-lint .cm-diagnostic-warning{border-left-color:#5aa0ff}.cm-tooltip-lint .cm-diagnostic-info{border-left-color:#b18cf0}.cm-tooltip-lint .cm-diagnostic-hint{border-left-color:#e0b453}.cm-diagnosticSource{color:var(--text-faint);opacity:1;margin-top:3px;font-size:11px;display:block}.cm-diagnosticAction{background:var(--accent-strong);color:#fff;font:12px var(--font-ui);cursor:default;border:none;border-radius:4px;margin:6px 6px 0 0;padding:2px 8px}.cm-diagnosticAction:hover{background:var(--accent-strong-hover)}.status-button{color:var(--text-faint);white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:1px 5px;font-size:11.5px}.status-button:hover,.status-button[aria-expanded=true]{color:var(--text);background:var(--bg-hover)}.status-button.guides-button{text-overflow:ellipsis;max-width:300px;overflow:hidden}.status-file{color:var(--text-dim);white-space:nowrap}.statusbar{gap:12px}.statusbar .popover{font-size:13px}.panel-toggles button{align-items:center;height:22px;display:inline-flex}.right-panel{background:var(--bg-sidebar);border-left:1px solid var(--border);flex-direction:column;flex:none;width:340px;min-height:0;display:flex;position:relative}.panel-top{z-index:2;height:var(--titlebar-h);backdrop-filter:blur(14px);background:#1e1f21e6;justify-content:flex-end;align-items:center;padding:0 12px;display:flex;position:absolute;top:0;left:0;right:0}.panel-toggles.as-tabs{background:0 0;border-color:#0000;gap:2px}.panel-toggles.as-tabs button:not(.on):hover{background:var(--bg-hover);color:var(--text)}.panel-body{flex-direction:column;flex:1;min-height:0;display:flex}.history-panel{min-height:0;padding-top:var(--titlebar-h);flex:1;overflow-y:auto}.command-bar{z-index:20;background:var(--bg-elev-2);border:1px solid var(--border-strong);border-radius:10px;flex-direction:column;gap:8px;width:min(640px,100% - 48px);padding:10px;display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 16px 40px #0000008c}.command-input-row{align-items:flex-start;gap:8px;display:flex}.command-mode{color:var(--accent-text);background:var(--accent-soft);border-radius:4px;flex:none;margin-top:4px;padding:3px 7px;font-size:11.5px}.command-bar textarea{resize:none;color:var(--text);font:14px/1.5 var(--font-ui);user-select:text;background:0 0;border:none;outline:none;flex:1;padding:3px 0}.command-output{white-space:pre-wrap;background:var(--bg);border:1px solid var(--border);max-height:280px;font:13.5px/1.6 var(--font-editor);color:var(--editor-text);user-select:text;border-radius:6px;padding:10px 12px;overflow-y:auto}.command-output.streaming{color:var(--text-dim)}.command-error{color:var(--danger);padding:4px 2px;font-size:12.5px}.command-actions{align-items:center;gap:6px;display:flex}.command-provider{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:11.5px;overflow:hidden}.assistant-panel{flex-direction:column;flex:1;min-height:0;display:flex}.assistant-scroll{min-height:0;padding-top:var(--titlebar-h);flex:1;overflow-y:auto}.chat-list{flex-direction:column;gap:10px;padding:12px;display:flex}.chat-turn-group{flex-direction:column;gap:4px;display:flex}.chat-doc{color:var(--text-faint);align-self:flex-end;font-size:11.5px}.chat-turn{user-select:text;border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.55}.chat-turn.user{background:var(--accent-soft);align-self:flex-end;max-width:90%}.chat-turn.assistant{background:var(--bg-elev)}.chat-turn.error{color:var(--danger)}.chat-text{white-space:pre-wrap}.chat-insert{border:1px solid var(--border-strong);border-radius:6px;margin:8px 0;overflow:hidden}.chat-insert-text{white-space:pre-wrap;font:12.5px/1.55 var(--font-editor);background:var(--bg);padding:8px 10px}.chat-insert-actions{border-top:1px solid var(--border);gap:6px;padding:6px 8px;display:flex}.chat-edit{border:1px solid var(--border-strong);border-radius:6px;margin:8px 0;overflow:hidden}.chat-edit-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:8px;padding:6px 10px;font-size:12px;display:flex}.chat-edit-head .link-button{font-family:var(--font-mono);text-align:left;font-size:12px}.chat-edit-status{color:var(--text-faint);white-space:nowrap;font-size:11.5px}.chat-edit-pair+.chat-edit-pair{border-top:1px solid var(--border)}.chat-edit-old,.chat-edit-new{white-space:pre-wrap;font:12.5px/1.55 var(--font-editor);color:var(--text);padding:6px 10px}.chat-edit-old{background:#ef6b621f;text-decoration:line-through #ef6b62b3}.chat-edit-new{background:#6cc0701f}.chat-edit-pair.applied .chat-edit-old,.chat-edit-pair.missing .chat-edit-old,.chat-edit-pair.ambiguous .chat-edit-old{text-decoration-style:dotted}.chat-edit-file{max-height:220px;overflow:auto}.chat-apply-all{justify-content:flex-end;padding-top:4px;display:flex}.chat-compose{border-top:1px solid var(--border);flex-direction:column;flex:none;gap:6px;padding:10px 12px;display:flex}.chat-compose textarea{resize:none;background:var(--bg);border:1px solid var(--border-strong);color:var(--text);font:13px/1.5 var(--font-ui);user-select:text;border-radius:6px;padding:7px 9px}.chat-compose-row{align-items:center;gap:6px;display:flex}.chat-compose-row .spacer{flex:1}.checkbox-row.inline{padding:0}.chat-provider{min-height:22px;color:var(--text-faint);align-items:center;gap:8px;font-size:11px;display:flex}.chat-provider>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.insights-panel{padding:calc(var(--titlebar-h) + 4px) 12px 24px;flex:1;overflow-y:auto}.insight-section{border-bottom:1px solid var(--border);padding:12px 0}.insight-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.insight-header h3{margin:0;font-size:13px;font-weight:600}.segmented.small button{padding:2px 8px;font-size:12px}.insight-note{color:var(--text-faint);margin:8px 0 4px;font-size:11.5px;line-height:1.5}.grade-summary{align-items:baseline;gap:10px;margin-bottom:8px;display:flex}.grade-badge{color:var(--success);font-size:18px;font-weight:600}.grade-badge.over{color:var(--warning)}.grade-target{color:var(--text-dim);font-size:12px}.metrics{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.metric{background:var(--bg-elev);border-radius:6px;flex-direction:column;padding:6px 8px;display:flex}.metric-value{font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.metric-label{color:var(--text-faint);font-size:11px}.insight-item{text-align:left;width:100%;color:var(--text-dim);background:0 0;border:none;border-radius:5px;gap:8px;padding:5px 6px;font-size:12px;line-height:1.45;display:flex}.insight-item:hover{background:var(--bg-hover);color:var(--text)}.insight-item-grade{min-width:22px;color:var(--warning);font-variant-numeric:tabular-nums;flex:none;font-weight:600}.insight-item q{color:var(--text)}.insight-item-where{color:var(--text-faint);margin-top:2px;font-size:11px;display:block}.insight-count{color:var(--warning);font-variant-numeric:tabular-nums;font-size:11.5px;font-weight:600}.review-count{color:var(--text-dim);flex-wrap:wrap;align-items:baseline;gap:8px;margin:6px 0;font-size:12.5px;display:flex}.headline{border-radius:6px}.headline.open{background:var(--bg-elev)}.headline-main{text-align:left;background:0 0;border:none;border-radius:6px;flex-direction:column;gap:4px;width:100%;padding:7px 6px;display:flex}.headline-main:hover{background:var(--bg-hover)}.headline-text{font-weight:500}.headline-scores{color:var(--text-faint);gap:12px;font-size:11px;display:flex}.score{align-items:center;gap:5px;display:inline-flex}.score-bar{background:var(--bg-active);border-radius:2px;width:44px;height:4px;display:inline-block;overflow:hidden}.score-bar span{background:var(--accent);height:100%;display:block}.headline-detail{padding:0 8px 10px}.headline-notes{margin:4px 0 8px;padding-left:16px;font-size:12px;line-height:1.5}.headline-notes li.good{color:var(--success)}.headline-notes li.warn{color:var(--warning)}.headline-actions{gap:6px;margin-bottom:6px;display:flex}.headline-alt{border-top:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:8px;padding:6px 0;display:flex}.headline-alt-text{font-size:12.5px}.headline-alt-why{color:var(--text-faint);font-size:11px}.modal.settings{gap:0;width:620px;max-height:80vh;padding:0}.settings-head{border-bottom:1px solid var(--border);align-items:center;gap:16px;padding:14px 16px;display:flex}.settings-head h2{flex:1}.settings-body{flex-direction:column;gap:12px;padding:16px 20px 20px;display:flex;overflow-y:auto}.settings-note{color:var(--text-dim);margin:0;font-size:12px;line-height:1.5}.settings-ok{color:var(--success);font-size:12.5px}.field-row{gap:12px;display:flex}.field-row>.field{flex:1}.field input[type=number],.field input[type=password],.key-row input{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--bg);height:30px;color:var(--text);user-select:text;padding:0 10px}.key-row{gap:6px;display:flex}.key-row input{flex:1}.provider-card{border:1px solid var(--border-strong);border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.provider-card.default{border-color:var(--accent-strong)}.provider-head{align-items:center;gap:8px;display:flex}.provider-name{color:var(--text);font:600 13.5px var(--font-ui);background:0 0;border:none;flex:1;padding:2px 0}.provider-actions{gap:6px;display:flex}.swatch{vertical-align:middle;width:18px;height:2px;margin-left:4px;display:inline-block}.swatch.spelling{background:#ef6b62}.swatch.grammar{background:#5aa0ff}.swatch.style{background:#b18cf0}.modal.wide{width:760px}.modal-diff{border:1px solid var(--border);border-radius:6px;max-height:50vh;padding:8px 0}.guides-popover{min-width:260px}.toolbar-button{white-space:nowrap;flex:none}.toolbar-button span{text-overflow:ellipsis;overflow:hidden}.popover-anchor .toolbar-button span{max-width:180px;display:inline-block}.toolbar-actions{flex-shrink:1;min-width:0}.references{border-bottom:1px solid var(--border);flex-direction:column;flex:none;min-height:0;max-height:40%;padding:8px 12px;display:flex}.references-head{align-items:center;gap:8px;display:flex}.section-button{text-align:left;min-width:0;color:var(--text);background:0 0;border:none;flex:1;align-items:baseline;gap:8px;padding:2px 0;font-weight:600;display:flex}.references-summary{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:400;overflow:hidden}.references-list{flex-direction:column;gap:1px;margin-top:6px;display:flex;overflow-y:auto}.references-empty,.references-note{color:var(--text-faint);margin:4px 0;font-size:12px;line-height:1.5}.reference-row{border-radius:5px;grid-template-rows:auto auto;grid-template-columns:auto 1fr auto;align-items:center;column-gap:8px;padding:4px 6px;display:grid}.reference-row:hover{background:var(--bg-hover)}.reference-row input{grid-row:1/3}.reference-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reference-detail{color:var(--text-faint);grid-column:2;font-size:11px}.reference-row.problem .reference-detail{color:var(--danger)}.reference-reveal{opacity:0;grid-area:1/3/3}.reference-row:hover .reference-reveal,.reference-reveal:focus-visible{opacity:1}.review-gaps{margin-top:10px}.review-gaps h4{margin:0 0 4px;font-size:12px;font-weight:600}.review-gaps ul{color:var(--text-dim);margin:0;padding-left:18px;font-size:12px;line-height:1.5}.review-gap-source{color:var(--text-faint);font-size:11px}.modal .spacer{flex:1}.modal-actions .link-button{font-size:12.5px}.picker-heading{color:var(--text-dim);margin:4px 0 0;font-size:12.5px;font-weight:600}.picker-heading span{color:var(--text-faint);margin-left:6px;font-weight:400}.picker-empty{color:var(--text-faint);margin:0;font-size:12.5px}.page-picker{max-height:84vh}.modal-backdrop:has(.page-picker),.modal-backdrop:has(.export-dialog),.modal-backdrop:has(.component-dialog){padding-top:8vh}.modal.component-dialog{width:560px;max-height:84vh;overflow-y:auto}.component-description{color:var(--text-dim);margin:-4px 0 0;font-size:12.5px}.component-problem{color:var(--warning);margin:0;font-size:12.5px}.component-fields{border:1px solid var(--border);background:var(--bg-elev);border-radius:8px;flex-direction:column;gap:12px;padding:12px;display:flex}.component-field .field-label{align-items:center;gap:8px;display:flex}.field-required{letter-spacing:.02em;color:var(--warning);border:1px solid color-mix(in srgb, var(--warning) 45%, transparent);border-radius:8px;padding:0 6px;font-size:10.5px;line-height:16px}.component-field.invalid input,.component-field.invalid select,.component-field.invalid textarea{border-color:var(--danger)}.component-field.invalid .field-required{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 55%, transparent)}.component-field textarea{resize:vertical;border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--bg);min-height:60px;color:var(--text);font:13px/1.45 var(--font-ui);user-select:text;padding:6px 9px}.component-field.checkbox-row small{color:var(--text-faint);font-size:11.5px}.component-preview{border-radius:var(--radius);background:var(--bg);border:1px solid var(--border);font:12px/1.5 var(--font-mono);color:var(--editor-html);white-space:pre-wrap;word-break:break-word;user-select:text;padding:8px 10px;display:block}.picker-strip{flex:none;gap:8px;margin:0;padding:4px 2px 8px;list-style:none;display:flex;overflow-x:auto}.picker-item{background:var(--bg);border:1px solid var(--border);cursor:grab;border-radius:6px;flex-direction:column;flex:none;align-items:center;gap:3px;padding:4px;display:flex}.picker-item.dragging{opacity:.4}.picker-actions{gap:0;display:flex}.picker-actions .icon-button{width:20px;height:20px;font-size:13px}.picker-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;min-height:120px;padding:2px;display:grid;overflow-y:auto}.picker-page{background:var(--bg);color:var(--text-dim);border:2px solid #0000;border-radius:7px;flex-direction:column;align-items:center;gap:4px;padding:6px;display:flex;position:relative}.picker-page:hover{background:var(--bg-hover)}.picker-page.on{border-color:var(--accent);color:var(--text)}.picker-page:not(.on) .picker-thumb{opacity:.55}.picker-thumb{background:#fff;width:96px;height:auto;min-height:60px;display:block;box-shadow:0 1px 3px #0006}.picker-thumb.small{width:56px;min-height:40px}.picker-thumb.placeholder{background:var(--bg-elev-2);height:124px}.picker-thumb.small.placeholder{height:72px}.picker-label{font-size:11.5px}.picker-badge{background:var(--accent-strong);color:#fff;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 5px;font-size:11.5px;font-weight:600;display:flex;position:absolute;top:2px;right:2px}.arrange{flex-direction:column;gap:8px;display:flex}.arrange-list{flex-direction:column;gap:4px;max-height:40vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.arrange-row{background:var(--bg);border:1px solid var(--border);border-radius:7px;align-items:center;gap:10px;padding:7px 8px 7px 10px;display:flex}.arrange-row.document{border-color:var(--border-strong);background:var(--bg-elev)}.arrange-main{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.arrange-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.arrange-where{color:var(--accent-text);margin-right:2px;font-size:11.5px}.arrange-detail{color:var(--text-faint);margin-left:4px;font-size:11.5px}.arrange-detail.problem{color:var(--danger)}.arrange-title{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--bg-elev-2);height:26px;color:var(--text);user-select:text;padding:0 8px}.arrange-actions{flex:none;align-items:center;gap:2px;display:flex}.arrange-add{align-items:center;gap:8px;display:flex}.arrange-add select{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--bg);height:28px;color:var(--text);flex:1;padding:0 10px}.web-library-button,.web-menu-button,.web-editor-menu{display:none}html.web .web-menu-button,html.web .app.narrow .web-library-button{display:inline-flex}@media (pointer:coarse){html.web .web-editor-menu{display:inline-flex}}html.web .app{height:100dvh}html.web .sidebar-titlebar{padding-left:10px}html.web .app.library-hidden .toolbar{padding-left:12px}html.web .toolbar{padding-top:env(safe-area-inset-top);height:calc(var(--titlebar-h) + env(safe-area-inset-top))}html.web .statusbar,html.web .sidebar-search{padding-bottom:env(safe-area-inset-bottom);height:calc(var(--bar-h) + env(safe-area-inset-bottom))}.sync-state{white-space:nowrap;color:var(--text-faint)}.sync-state.offline,.sync-state.error{color:var(--warning)}.status-button.sync-state.signed-out{color:var(--accent-text);text-decoration:underline}html.web .app.narrow .sidebar{z-index:45;width:min(320px,86vw);padding-top:env(safe-area-inset-top);transition:transform .18s ease-out;position:fixed;top:0;bottom:0;left:0;transform:translate(-102%);box-shadow:8px 0 32px #00000073}html.web .app.narrow.drawer-open .sidebar{transform:none}html.web .drawer-scrim{z-index:44;background:#0006;position:fixed;inset:0}html.web .app.narrow .right-panel{z-index:40;width:min(420px,100vw);padding-top:env(safe-area-inset-top);position:fixed;top:0;bottom:0;right:0;box-shadow:-8px 0 32px #00000073}@media (pointer:coarse){html.web .icon-button{width:38px;height:38px}html.web .tree-row{height:38px}html.web .tree-row.compact{height:34px}html.web .tab-bar{height:40px}html.web .doc-tab{height:34px}html.web .doc-tab-close{opacity:1;width:28px;height:28px}html.web .doc-tab-new{width:34px;height:34px}html.web .segmented button{padding:7px 13px}html.web .button{padding:8px 14px}html.web .status-button{padding:6px 7px}html.web .field input[type=text],html.web .field select{height:40px;font-size:16px}html.web .sidebar-search input{font-size:16px}}@media (width<=640px){html.web .cm-prose .cm-content{max-width:100%;font-size:min(var(--editor-size,22px), 17px);padding-left:14px!important;padding-right:14px!important}html.web .toolbar{gap:6px;padding-right:6px}html.web .toolbar-left{gap:4px}html.web .toolbar .zoom-controls,html.web .toolbar .page-count,html.web .toolbar .panel-toggles{display:none}html.web .statusbar{gap:8px;padding-left:10px;padding-right:10px}html.web .statusbar .status-file,html.web .statusbar .guides-button{display:none}html.web .modal-backdrop{padding-top:max(12px, env(safe-area-inset-top));align-items:flex-start}html.web .modal,html.web .modal.wide{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 24px);overflow-y:auto}html.web .popover{max-width:calc(100vw - 16px)}}
