:root{color:#dce5f7;background:#0b1220;font-family:Inter,SF Pro Display,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#0b1220}button,input{font:inherit}button,.language-switch,.icon-file-button{border:1px solid #7fa7ff;border-radius:6px;background:#b8ccff;color:#061a3f;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:.5rem .8rem;text-decoration:none;white-space:nowrap}button:hover,.language-switch:hover,.icon-file-button:hover{filter:brightness(1.04)}button:focus-visible,.language-switch:focus-visible,.icon-file-button:focus-within{outline:3px solid #58d7a1;outline-offset:2px}button:disabled{cursor:not-allowed;filter:none;opacity:.42}.workbench{display:grid;grid-template-columns:280px minmax(360px,1fr) minmax(360px,1fr);grid-template-rows:56px minmax(0,1fr);height:100vh;overflow:hidden;color:#dce5f7;background:#0b1220}.workbench.history-collapsed{grid-template-columns:48px minmax(360px,1fr) minmax(360px,1fr)}.workbench.preview-fullscreen{grid-template-columns:280px 0 minmax(0,1fr)}.workbench.preview-fullscreen.history-collapsed{grid-template-columns:48px 0 minmax(0,1fr)}.workbench.theme-light{color:#172033;background:#f6f8fc}.topbar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;min-width:0;border-bottom:1px solid rgba(148,163,184,.22);background:#11192af0;padding:0 1.25rem}.theme-light .topbar{border-bottom-color:#4854692e;background:#f8fafff5}.brand-block,.topbar-actions,.toolbar-actions{display:flex;align-items:center;gap:.75rem;min-width:0}.topbar-actions{overflow-x:auto;padding-block:.25rem;scrollbar-width:thin;white-space:nowrap}.topbar-actions>*{flex:0 0 auto}.brand-mark{display:grid;flex:0 0 auto;width:2rem;height:2rem;place-items:center;border-radius:6px;background:#315aa6;color:#eef4ff;font-weight:800;letter-spacing:0}.theme-light .brand-mark{background:#2556b8;color:#f8fbff}h1,h2{margin:0;color:#f7f9ff;line-height:1.15}.theme-light h1,.theme-light h2{color:#111827}h1{overflow:hidden;font-size:1.15rem;text-overflow:ellipsis;white-space:nowrap}h2{overflow:hidden;font-size:1rem;text-overflow:ellipsis;white-space:nowrap}.brand-block p,.eyebrow,.preview-meta,.history-meta,.status,.empty-history,.empty-outline,.empty-preview{color:#aeb9ce}.theme-light .brand-block p,.theme-light .eyebrow,.theme-light .preview-meta,.theme-light .history-meta,.theme-light .status,.theme-light .empty-history,.theme-light .empty-outline,.theme-light .empty-preview{color:#647085}.brand-block p,.eyebrow{margin:0;font-size:.75rem}.brand-block .document-association{max-width:28rem;overflow:hidden;color:#7fd8b5;text-overflow:ellipsis;white-space:nowrap}.theme-light .brand-block .document-association{color:#17613f}.eyebrow{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.ghost-button,.tool-button,.language-switch{border-color:#94a3b847;background:#1c2638;color:#dce5f7}.theme-light .ghost-button,.theme-light .tool-button,.theme-light .language-switch{border-color:#48546933;background:#eef3fb;color:#172033}.history-panel,.editor-panel,.preview-panel{min-width:0;min-height:0}.history-panel{display:flex;border-right:1px solid rgba(148,163,184,.22);background:#0f1728}.theme-light .history-panel{border-right-color:#4854692e;background:#edf2f9}.history-expand-button{display:none;width:100%;min-height:100%;border:0;border-radius:0;background:#111b2d;color:#dce5f7;writing-mode:vertical-rl;letter-spacing:.08em}.theme-light .history-expand-button{background:#e5ecf7;color:#172033}.history-content,.editor-panel,.preview-panel{display:flex;flex-direction:column;min-height:0}.history-content{width:100%}.history-actions,.preview-actions{display:flex;align-items:center;gap:.5rem}.workbench.history-collapsed .history-content{display:none}.workbench.history-collapsed .history-expand-button{display:inline-flex}.workbench.preview-fullscreen .editor-panel{display:none}.workbench.preview-fullscreen .preview-panel{grid-column:3}.panel-header,.pane-toolbar{display:flex;flex:0 0 auto;gap:1rem;align-items:center;justify-content:space-between;min-width:0;min-height:56px;border-bottom:1px solid rgba(148,163,184,.18);padding:.75rem 1rem}.navigation-header{gap:.6rem}.sidebar-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;min-width:0;border:1px solid rgba(148,163,184,.2);border-radius:6px;padding:.2rem}.theme-light .sidebar-tabs{border-color:#4854692e}.sidebar-tab{min-height:1.9rem;border:0;background:transparent;color:#aeb9ce;padding:.3rem .6rem;font-size:.8rem}.theme-light .sidebar-tab{color:#647085}.sidebar-tab[aria-selected=true]{background:#315aa6;color:#fff;font-weight:700}.theme-light .sidebar-tab[aria-selected=true]{background:#2556b8;color:#fff}.theme-light .panel-header,.theme-light .pane-toolbar{border-bottom-color:#48546929}.icon-file-button{width:2rem;min-height:2rem;padding:0;font-size:1.2rem;font-weight:700}.icon-file-button input{position:absolute;inline-size:1px;block-size:1px;clip:rect(0 0 0 0);overflow:hidden}.history-list{display:flex;flex:1;flex-direction:column;gap:.35rem;min-height:0;overflow:auto;padding:.7rem}.outline-pane{flex:1;min-height:0;overflow:hidden}.outline-pane[hidden]{display:none}.outline-list{display:flex;height:100%;flex-direction:column;gap:.2rem;overflow:auto;padding:.7rem}.outline-item{position:relative;justify-content:flex-start;width:100%;min-height:2rem;overflow:hidden;border-color:transparent;background:transparent;color:#cbd5e1;padding:.35rem .55rem;text-align:left;text-overflow:ellipsis}.theme-light .outline-item{color:#344158}.outline-item[data-level="2"]{padding-left:1rem}.outline-item[data-level="3"]{padding-left:1.45rem}.outline-item[data-level="4"]{padding-left:1.9rem}.outline-item[data-level="5"]{padding-left:2.35rem}.outline-item[data-level="6"]{padding-left:2.8rem}.outline-item:hover{background:#94a3b81a}.outline-item[aria-current=location]{border-left-color:#58d7a1;background:#58d7a11a;color:#fff;font-weight:700}.outline-item[aria-current=location]:before{content:"›";flex:0 0 auto;margin-right:.25rem;color:#58d7a1}.theme-light .outline-item[aria-current=location]{background:#2556b814;color:#172033}.outline-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-outline{margin:0;padding:.55rem;font-size:.86rem}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem}.history-load{display:flex;flex-direction:column;align-items:flex-start;min-width:0;border-color:transparent;background:transparent;color:#dce5f7;text-align:left}.theme-light .history-load{color:#172033}.history-item[data-active=true] .history-load{background:#7fa7ff29}.history-load:hover{background:#94a3b81f}.theme-light .history-load:hover{background:#48546914}.history-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.history-meta{font-size:.78rem}.history-delete{align-self:stretch;border-color:#ffb4ab47;background:#ffb4ab1a;color:#ffb4ab}.editor-panel{border-right:1px solid rgba(148,163,184,.16);background:#0c1424}.theme-light .editor-panel{border-right-color:#48546924;background:#f8fbff}.pane-toolbar{background:#0f1728e0}.theme-light .pane-toolbar{background:#f5f8fdeb}.tool-button{width:2rem;min-height:2rem;padding:0;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-weight:800}.editor-shell{display:flex;flex:1;min-height:0;overflow:hidden}.markdown-editor{flex:1;min-width:0;min-height:0;overflow:hidden}.markdown-editor .cm-editor{font-size:.92rem}.markdown-editor .cm-editor.cm-focused{outline:3px solid #58d7a1;outline-offset:-3px}.workbench:not(.theme-light) .markdown-editor .cm-scroller,.workbench:not(.theme-light) .markdown-preview{scrollbar-color:rgba(174,185,206,.28) transparent;scrollbar-width:thin}.workbench:not(.theme-light) .markdown-editor .cm-scroller::-webkit-scrollbar,.workbench:not(.theme-light) .markdown-preview::-webkit-scrollbar{width:.65rem;height:.65rem}.workbench:not(.theme-light) .markdown-editor .cm-scroller::-webkit-scrollbar-track,.workbench:not(.theme-light) .markdown-preview::-webkit-scrollbar-track{background:transparent}.workbench:not(.theme-light) .markdown-editor .cm-scroller::-webkit-scrollbar-thumb,.workbench:not(.theme-light) .markdown-preview::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#aeb9ce47;background-clip:padding-box}.workbench:not(.theme-light) .markdown-editor .cm-scroller::-webkit-scrollbar-thumb:hover,.workbench:not(.theme-light) .markdown-preview::-webkit-scrollbar-thumb:hover{background:#aeb9ce73;background-clip:padding-box}.markdown-editor .cm-panel.cm-search{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;max-width:100%;padding:.55rem}.markdown-editor .cm-panel.cm-search input{min-width:7rem;max-width:100%;border:1px solid rgba(148,163,184,.3);border-radius:4px;background:#0c1424;color:#eaf0ff;padding:.35rem .45rem}.theme-light .markdown-editor .cm-panel.cm-search input{border-color:#4854693d;background:#fff;color:#172033}.markdown-editor .cm-panel.cm-search button{min-height:1.9rem;padding:.3rem .55rem;font-size:.78rem}.status{display:flex;flex:0 0 auto;gap:.75rem;align-items:center;justify-content:space-between;min-height:2.75rem;margin:0;border-top:1px solid rgba(148,163,184,.14);padding:.75rem 1rem;font-size:.88rem}.status-action{min-height:1.9rem;padding:.3rem .6rem;border-color:#ffb4ab5c;background:#ffb4ab1a;color:#ffb4ab}.status-action[hidden]{display:none}.theme-light .status{border-top-color:#48546924}.status[data-tone=error]{color:#ffb4ab}.workbench-dialog{width:min(34rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;border:1px solid rgba(148,163,184,.35);border-radius:8px;background:#111b2d;color:#dce5f7;padding:0;box-shadow:0 24px 70px #0006}.workbench-dialog::backdrop{background:#050a12b8}.theme-light .workbench-dialog{border-color:#48546947;background:#fff;color:#263247}.dialog-content{padding:1.25rem}.dialog-content h2{color:inherit;white-space:normal}.dialog-content p{margin:.75rem 0 1.25rem;color:#aeb9ce;line-height:1.55}.theme-light .dialog-content p{color:#647085}.dialog-actions{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:flex-end}.danger-button{border-color:#e67b74;background:#9e302a;color:#fff}.preview-panel{background:#111827}.theme-light .preview-panel{background:#fff}.preview-toolbar{padding-inline:1.25rem}.preview-meta{flex:0 0 auto;font-size:.82rem}.sync-control{display:inline-flex;align-items:center;gap:.4rem;min-height:2rem;color:#cbd5e1;font-size:.8rem;white-space:nowrap}.theme-light .sync-control{color:#445168}.sync-control input{width:1rem;height:1rem;margin:0;accent-color:#58d7a1}.workbench[data-sync-disabled] .sync-control{opacity:.5}.markdown-preview{flex:1;min-height:0;overflow:auto;padding:2rem clamp(1.25rem,4vw,3.5rem) 4rem;color:#dce5f7;font-size:1rem;line-height:1.75}.theme-light .markdown-preview{color:#263247}.markdown-preview :where(h1,h2,h3){color:#f7f9ff;line-height:1.2}.theme-light .markdown-preview :where(h1,h2,h3){color:#111827}.markdown-preview h1{margin:0 0 1.5rem;border-bottom:1px solid rgba(148,163,184,.22);padding-bottom:1rem;color:#b8ccff;font-size:clamp(1.9rem,4vw,2.4rem);white-space:normal}.theme-light .markdown-preview h1{border-bottom-color:#4854692e;color:#2556b8}.markdown-preview :where(h2,h3){margin:1.6em 0 .6em}.markdown-preview :where(p,ul,ol,table,pre,blockquote,.code-block){margin:0 0 1rem}.markdown-preview a{color:#8ec5ff}.theme-light .markdown-preview a{color:#1d5aa6}.markdown-preview pre{max-width:100%;overflow:auto;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:#0b1220;color:#eef4ff;padding:2.75rem 1rem 1rem;scrollbar-color:auto;scrollbar-width:auto}.theme-light .markdown-preview pre{border-color:#48546929;background:#f4f7fb;color:#1f2937}.markdown-preview .code-block{position:relative;min-width:0;max-width:100%}.markdown-preview .code-block pre{margin:0}.markdown-preview .code-copy-button{position:absolute;z-index:1;top:.45rem;right:.5rem;min-width:4.5rem;min-height:1.85rem;border:1px solid rgba(174,185,206,.38);border-radius:5px;background:#1b273a;color:#e7eefb;padding:.25rem .55rem;font:inherit;font-size:.76rem;line-height:1.2;cursor:pointer}.markdown-preview .code-copy-button:hover{background:#29384f}.markdown-preview .code-copy-button:focus-visible{outline:3px solid #58d7a1;outline-offset:2px}.markdown-preview .code-copy-button:disabled{cursor:wait;opacity:.7}.markdown-preview .code-copy-button[data-copy-state=copied]{border-color:#58d7a1;color:#9ce5c6}.markdown-preview .code-copy-button[data-copy-state=failed]{border-color:#e67b74;color:#ffb4ab}.theme-light .markdown-preview .code-copy-button{border-color:#4854694d;background:#fff;color:#263247}.theme-light .markdown-preview .code-copy-button:hover{background:#e8eef7}.theme-light .markdown-preview .code-copy-button[data-copy-state=copied]{border-color:#237653;color:#17613f}.theme-light .markdown-preview .code-copy-button[data-copy-state=failed]{border-color:#b33f38;color:#9e302a}.markdown-preview code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.markdown-preview :not(pre)>code{border-radius:4px;background:#7fa7ff21;padding:.12rem .28rem}.workbench:not(.theme-light) .markdown-preview :where(.hljs-comment,.hljs-quote){color:#93a4ba}.workbench:not(.theme-light) .markdown-preview :where(.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-type){color:#ff8fa3}.workbench:not(.theme-light) .markdown-preview :where(.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute){color:#9ce5c6}.workbench:not(.theme-light) .markdown-preview :where(.hljs-number,.hljs-symbol,.hljs-bullet){color:#f5c97a}.workbench:not(.theme-light) .markdown-preview :where(.hljs-title,.hljs-section,.hljs-selector-id,.hljs-selector-class){color:#8ec5ff}.workbench:not(.theme-light) .markdown-preview :where(.hljs-built_in,.hljs-variable,.hljs-template-variable,.hljs-params){color:#c9b6ff}.workbench:not(.theme-light) .markdown-preview :where(.hljs-meta,.hljs-tag,.hljs-name){color:#80d7e8}.workbench:not(.theme-light) .markdown-preview .hljs-deletion{color:#ff9b91}.theme-light .markdown-preview :where(.hljs-comment,.hljs-quote){color:#667085}.theme-light .markdown-preview :where(.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-type){color:#b4235a}.theme-light .markdown-preview :where(.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute){color:#176b4d}.theme-light .markdown-preview :where(.hljs-number,.hljs-symbol,.hljs-bullet){color:#925f0b}.theme-light .markdown-preview :where(.hljs-title,.hljs-section,.hljs-selector-id,.hljs-selector-class){color:#175cd3}.theme-light .markdown-preview :where(.hljs-built_in,.hljs-variable,.hljs-template-variable,.hljs-params){color:#6941c6}.theme-light .markdown-preview :where(.hljs-meta,.hljs-tag,.hljs-name){color:#087e8b}.theme-light .markdown-preview .hljs-deletion{color:#b42318}.theme-light .markdown-preview :not(pre)>code{background:#2556b81a}.markdown-preview table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.markdown-preview th,.markdown-preview td{border:1px solid rgba(148,163,184,.25);padding:.5rem}.theme-light .markdown-preview th,.theme-light .markdown-preview td{border-color:#48546933}.markdown-preview :where(.task-list-item,li:has(>input[type=checkbox])){list-style:none}.markdown-preview :where(.task-list-item,li:has(>input[type=checkbox]))>input{margin:0 .45rem 0 -1.35rem;accent-color:#58d7a1}.markdown-preview blockquote{border-left:4px solid #58d7a1;border-radius:0 6px 6px 0;background:#58d7a114;padding:.65rem 1rem;color:#cbd5e1}.theme-light .markdown-preview blockquote{background:#2556b812;color:#445168}.empty-history,.empty-preview{margin:0}.mobile-only{display:none}@media(max-width:1080px){.workbench{grid-template-columns:240px minmax(0,1fr);grid-template-rows:56px minmax(50vh,1fr) minmax(45vh,1fr);height:auto;min-height:100vh;overflow:visible}.workbench.history-collapsed{grid-template-columns:48px minmax(0,1fr)}.workbench.preview-fullscreen{grid-template-columns:240px 0 minmax(0,1fr)}.workbench.preview-fullscreen.history-collapsed{grid-template-columns:48px 0 minmax(0,1fr)}.workbench.preview-fullscreen .preview-panel{grid-column:3}.topbar{position:sticky;top:0;z-index:3}.history-panel{grid-row:2 / 4}.editor-panel,.preview-panel{min-height:50vh}}@media(max-width:760px){.workbench{display:flex;flex-direction:column}.topbar{gap:.75rem;align-items:stretch;min-height:56px;padding:.7rem}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.history-panel{display:block;max-height:0;overflow:hidden;border-right:0;transition:max-height .2s ease}.workbench.history-collapsed .history-panel{max-height:0}.workbench.history-collapsed .history-content{display:flex}.history-expand-button,.workbench.history-collapsed .history-expand-button{display:none}.workbench.preview-fullscreen .preview-panel{display:flex}.workbench.history-open .history-panel{max-height:22rem;border-bottom:1px solid rgba(148,163,184,.22)}.rail{display:none}.history-list,.outline-pane{max-height:16rem}.mobile-only{display:inline-flex}.editor-panel,.preview-panel{min-height:70vh}.pane-toolbar{align-items:flex-start;flex-direction:column}.pane-toolbar h2{white-space:normal}.preview-actions{flex-wrap:wrap;width:100%}.markdown-preview .code-copy-button{min-height:2rem}}@media(max-width:520px){.brand-mark{display:none}.topbar{flex-direction:column}.topbar-actions button,.topbar-actions .language-switch{flex:1 1 8rem}.markdown-editor .cm-panel.cm-search label{flex:1 1 9rem}.dialog-actions>button{flex:1 1 100%}}@media(prefers-reduced-motion:reduce){.history-panel{transition:none}}
