:root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,Segoe UI,Roboto,-apple-system,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{color:#1f2328;background:#f7f7f5;transition:background .2s,color .2s}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=dark] body{color:#e6edf3;background:#0d1117}[data-theme=dark] .app{background:#0d1117}[data-theme=dark] .app-header{background:#161b22;border-bottom-color:#30363d}[data-theme=dark] .brand-name{color:#f0f6fc}[data-theme=dark] .user-email{color:#8b949e}[data-theme=dark] .header-btn{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .header-btn:hover{background:#30363d}[data-theme=dark] .header-btn.ghost{color:#8b949e;background:0 0}[data-theme=dark] .header-btn.ghost:hover{color:#f85149;background:0 0}[data-theme=dark] .role-badge{color:#8b949e;background:#21262d}[data-theme=dark] .theme-toggle-btn{color:#f0f6fc;background:#21262d;border-color:#30363d}[data-theme=dark] .theme-toggle-btn:hover{background:#30363d}[data-theme=dark] .sidebar{background:#0f141c;border-right-color:#30363d}[data-theme=dark] .sidebar-title{color:#8b949e}[data-theme=dark] .new-doc{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .new-doc:hover{background:#30363d}[data-theme=dark] .doc-item{color:#c9d1d9}[data-theme=dark] .doc-item:hover{background:#21262d}[data-theme=dark] .doc-item.is-selected{color:#93c5fd;background:#1e3a8a}[data-theme=dark] .doc-item-del{color:#8b949e}[data-theme=dark] .doc-item-del:hover{color:#f85149}[data-theme=dark] .editor-scroll{background:#0d1117}[data-theme=dark] .editor-topbar{background:#161b22;border-bottom-color:#30363d}[data-theme=dark] .doc-title-input{color:#f0f6fc}[data-theme=dark] .doc-menu-item{color:#8b949e}[data-theme=dark] .doc-menu-item:hover,[data-theme=dark] .doc-menu-item.is-active{color:#f0f6fc;background:#21262d}[data-theme=dark] .comments-btn{color:#8b949e}[data-theme=dark] .comments-btn:hover{color:#f0f6fc;background:#21262d}[data-theme=dark] .comments-btn.is-active{color:#58a6ff;background:#21262d}[data-theme=dark] .editor-content{background:#161b22;border-color:#30363d;box-shadow:0 4px 20px #0006}[data-theme=dark] .editor-content .ProseMirror{color:#c9d1d9}[data-theme=dark] .editor-content h1,[data-theme=dark] .editor-content h2,[data-theme=dark] .editor-content h3{color:#f0f6fc}[data-theme=dark] .editor-content hr{border-top-color:#30363d}[data-theme=dark] .editor-content blockquote{color:#8b949e;border-left-color:#388bfd}[data-theme=dark] .editor-content code{color:#f0f6fc;background:#21262d}[data-theme=dark] .editor-content pre{background:#1f242c;border-color:#30363d}[data-theme=dark] .editor-content th,[data-theme=dark] .editor-content td{border-color:#30363d}[data-theme=dark] .editor-content th{color:#f0f6fc;background:#21262d}[data-theme=dark] .collab-status{color:#8b949e;background:#161b22;border-color:#30363d}[data-theme=dark] .toolbar{background:#161b22;border-bottom-color:#30363d}[data-theme=dark] .tb-sep{background:#30363d}[data-theme=dark] .tb-btn{color:#c9d1d9}[data-theme=dark] .tb-btn:hover:not(:disabled){background:#21262d}[data-theme=dark] .tb-btn.is-active{color:#93c5fd;background:#1e3a8a;border-color:#2563eb}[data-theme=dark] .tb-insert-label{color:#6e7681}[data-theme=dark] .tb-ai-btn{color:#c084fc;background:linear-gradient(135deg,#2e1065 0%,#1e1b4b 100%);border-color:#6b21a8}[data-theme=dark] .tb-ai-btn:hover{color:#d8b4fe;background:linear-gradient(135deg,#3b0764 0%,#2e1065 100%);border-color:#9333ea}[data-theme=dark] .tb-ai-gear{color:#8b949e}[data-theme=dark] .custom-select-trigger{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .custom-select-trigger:hover{color:#f0f6fc;background:#292e36;border-color:#484f58}[data-theme=dark] .custom-select-menu{background:#161b22;border-color:#30363d;box-shadow:0 10px 28px -6px #0009}[data-theme=dark] .custom-select-item{color:#c9d1d9}[data-theme=dark] .custom-select-item:hover{color:#f0f6fc;background:#21262d}[data-theme=dark] .custom-select-item.is-selected{color:#93c5fd;background:#1e3a8a}[data-theme=dark] .menu-dropdown{background:#161b22;border-color:#30363d;box-shadow:0 8px 24px #00000080}[data-theme=dark] .menu-item{color:#c9d1d9}[data-theme=dark] .menu-item:hover:not(:disabled){background:#21262d}[data-theme=dark] .menu-divider{background:#30363d}[data-theme=dark] .comments-panel,[data-theme=dark] .version-panel{background:#161b22;border-left-color:#30363d}[data-theme=dark] .cp-head,[data-theme=dark] .version-head{border-bottom-color:#30363d}[data-theme=dark] .cp-title,[data-theme=dark] .version-title,[data-theme=dark] .version-label{color:#f0f6fc}[data-theme=dark] .version-item:hover{background:#21262d}[data-theme=dark] .version-item.is-current{background:#1e3a8a}[data-theme=dark] .comment-thread{background:#161b22;border-color:#30363d}[data-theme=dark] .comment-popover{background:#161b22;border-color:#30363d;box-shadow:0 10px 34px #00000080}[data-theme=dark] .cp-quote{color:#c9d1d9;background:#21262d}[data-theme=dark] .cp-text,[data-theme=dark] .cp-name{color:#f0f6fc}[data-theme=dark] .cp-footer-input{color:#f0f6fc;background:#0d1117;border-color:#30363d}[data-theme=dark] .share-dialog{background:#161b22;box-shadow:0 10px 40px #0009}[data-theme=dark] .share-head h2{color:#f0f6fc}[data-theme=dark] .share-add input{color:#f0f6fc;background:#0d1117;border-color:#30363d}[data-theme=dark] .share-row{border-top-color:#30363d}[data-theme=dark] .share-who{color:#f0f6fc}[data-theme=dark] .home{background:#0d1117}[data-theme=dark] .home-greeting{color:#f0f6fc}[data-theme=dark] .home-doc-card{color:#f0f6fc;background:#161b22;border-color:#30363d}[data-theme=dark] .home-doc-card:hover{background:#21262d;border-color:#484f58}[data-theme=dark] .home-doc-title{color:#f0f6fc}[data-theme=dark] .ai-modal-window{background:#161b22;border:1px solid #30363d}[data-theme=dark] .ai-modal-title{color:#f0f6fc}[data-theme=dark] .ai-modal-header{border-bottom-color:#30363d}[data-theme=dark] .ai-field-label{color:#c9d1d9}[data-theme=dark] .ai-provider-card{background:#161b22;border-color:#30363d}[data-theme=dark] .ai-provider-card:hover{background:#21262d}[data-theme=dark] .ai-provider-card.is-selected{background:#1e3a8a;border-color:#3b82f6}[data-theme=dark] .ai-card-name{color:#f0f6fc}[data-theme=dark] .ai-card-desc{color:#8b949e}[data-theme=dark] .ai-model-chip{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .ai-model-chip:hover{background:#30363d}[data-theme=dark] .ai-model-chip.is-selected{color:#fff;background:#388bfd}[data-theme=dark] .ai-key-input{color:#f0f6fc;background:#0d1117;border-color:#30363d}[data-theme=dark] .ai-modal-footer{background:#131720;border-top-color:#30363d}[data-theme=dark] .ai-btn-secondary{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .ai-btn-secondary:hover{color:#f0f6fc;background:#30363d}[data-theme=dark] .ai-popover-card{background:#161b22fa;border-color:#30363d}[data-theme=dark] .ai-pill-switch{background:#21262d}[data-theme=dark] .ai-switch-btn.active{color:#f0f6fc;background:#30363d}[data-theme=dark] .ai-quote-preview{color:#8b949e;background:#21262d;border-left-color:#388bfd}[data-theme=dark] .ai-prompt-input,[data-theme=dark] .ai-output-box{color:#f0f6fc;background:#0d1117;border-color:#30363d}[data-theme=dark] .ai-pop-btn-secondary{color:#c9d1d9;background:#21262d;border-color:#30363d}[data-theme=dark] .ai-pop-btn-secondary:hover:not(:disabled){background:#30363d}[data-theme=dark] .ai-rendered-html th,[data-theme=dark] .ai-rendered-html td{border-color:#30363d}[data-theme=dark] .ai-rendered-html th{color:#f0f6fc;background:#21262d}[data-theme=dark] .ai-rendered-html tr:nth-child(2n) td{background:#21262d66}[data-theme=dark] .ai-warning-box{color:#fef08a;background:#27200d;border-color:#854d0e}[data-theme=dark] .ai-warning-btn{color:#fef08a;background:#3b2c09;border-color:#a16207}[data-theme=dark] .ai-warning-btn:hover{background:#4d380c}[data-theme=dark] .ai-output-box.has-error{background:#200f13;border-color:#671e28}[data-theme=dark] .ai-error-banner{background:#200f13}[data-theme=dark] .ai-error-banner-title{color:#fca5a5}[data-theme=dark] .ai-error-banner-body{color:#fca5a5;background:#14080a;border-color:#7f1d1d}[data-theme=dark] .ai-error-banner-hint{color:#f87171}[data-theme=dark] .ai-error-action-btn.primary{color:#fff;background:#dc2626;border-color:#b91c1c}[data-theme=dark] .ai-error-action-btn.primary:hover{background:#ef4444}[data-theme=dark] .ai-error-action-btn.secondary{color:#fca5a5;background:#2e1318;border-color:#842029}[data-theme=dark] .ai-error-action-btn.secondary:hover{background:#3e1920}[data-theme=dark] .editor-content .column-resize-handle{background-color:#60a5fa;box-shadow:0 0 6px #60a5fa80}[data-theme=dark] .editor-content .column-resize-dragging{background-color:#60a5fa26!important}[data-theme=dark] .tb-table-controls .tb-insert-label{color:#58a6ff!important}.sidebar{background:#fbfbfa;border-right:1px solid #e6e6e3;flex-direction:column;flex-shrink:0;width:260px;display:flex;overflow-y:auto}.sidebar-head{justify-content:space-between;align-items:center;padding:14px 16px 10px;display:flex}.sidebar-title{letter-spacing:.04em;text-transform:uppercase;color:#8a8f96;font-size:12px;font-weight:700}.new-doc{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:6px;padding:3px 10px;font-size:12px;font-weight:600}.new-doc:hover{background:#f0efec}.doc-list{margin:0;padding:4px 8px 16px;list-style:none}.doc-item{cursor:pointer;color:#3a3f45;border-radius:7px;align-items:center;gap:8px;padding:7px 10px;font-size:14px;display:flex}.doc-item:hover{background:#f0efec}.doc-item.is-selected{color:#1a52d6;background:#e4ecff}.doc-item-title{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.doc-del{color:#adb5bd;cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;padding:2px 4px;font-size:12px}.doc-item:hover .doc-del{opacity:1}.doc-del:hover{color:#c23b3b;background:#fbe9e9}.sidebar-empty,.sidebar-error{color:#8a8f96;padding:10px 16px;font-size:13px}.sidebar-error{color:#c23b3b}.new-doc-wrap{position:relative}.new-doc-menu{z-index:50;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:150px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #00000024}.new-doc-menu button{cursor:pointer;color:#374151;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px 10px;font:13px/1 ui-sans-serif,system-ui,sans-serif;display:flex}.new-doc-menu button:hover{background:#f3f4f6}.sidebar-filters{flex-wrap:wrap;gap:6px;padding:8px 12px 4px;display:flex}.filter-chip{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:3px 10px;font:12px/1 ui-sans-serif,system-ui,sans-serif}.filter-chip.is-active{color:#fff;background:#111827;border-color:#111827}.doc-item-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.doc-item-tags{align-items:center;gap:6px;display:flex}.doc-tag{align-items:center;gap:3px;font:10px/1 ui-sans-serif,system-ui,sans-serif;display:inline-flex}.doc-tag-type{color:#3730a3;letter-spacing:.03em;background:#eef2ff;border-radius:4px;padding:2px 6px;font-weight:600}.doc-tag-dot{border-radius:50%;width:6px;height:6px;display:inline-block}.custom-select-container{-webkit-user-select:none;user-select:none;display:inline-block;position:relative}.custom-select-trigger{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;outline:none;justify-content:space-between;align-items:center;gap:8px;height:32px;padding:5px 12px;font-size:13px;font-weight:500;transition:all .15s cubic-bezier(.16,1,.3,1);display:inline-flex;box-shadow:0 1px 2px #0000000a}.custom-select-container.sm .custom-select-trigger{height:28px;padding:3px 10px;font-size:12px}.custom-select-trigger:hover{color:#0f172a;background:#f8fafc;border-color:#cbd5e1}.custom-select-container.is-open .custom-select-trigger{background:#fff;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.custom-select-label{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;display:inline-flex;overflow:hidden}.select-icon{color:#64748b;align-items:center;font-size:14px;display:inline-flex}.select-text{font-size:13px}.select-badge{color:#475569;background:#f1f5f9;border-radius:4px;padding:1px 5px;font-size:10px;font-weight:600}.select-chevron{color:#94a3b8;flex-shrink:0;transition:transform .2s cubic-bezier(.16,1,.3,1)}.custom-select-container.is-open .select-chevron{color:#3b82f6;transform:rotate(180deg)}.custom-select-menu{z-index:100;background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:170px;max-height:280px;padding:5px;animation:.15s cubic-bezier(.16,1,.3,1) selectFadeIn;position:absolute;top:calc(100% + 5px);left:0;overflow-y:auto;box-shadow:0 10px 28px -6px #0f172a26,0 4px 10px -2px #0f172a0d}@keyframes selectFadeIn{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.custom-select-item{color:#334155;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;outline:none;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:7px 10px;font-size:13px;font-weight:500;transition:all .12s;display:flex}.custom-select-item:hover{color:#0f172a;background:#f1f5f9}.custom-select-item.is-selected{color:#2563eb;background:#eff6ff;font-weight:600}.select-item-content{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;display:inline-flex;overflow:hidden}.select-check{color:#2563eb;flex-shrink:0}.toolbar{z-index:10;background:#fff;border-bottom:1px solid #e6e6e3;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 24px;display:flex;position:sticky;top:0}.tb-group{align-items:center;gap:2px;display:flex}.tb-sep{background:#e6e6e3;width:1px;height:20px;margin:0 8px}.tb-btn{color:#3a3f45;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;min-width:30px;height:30px;padding:0 7px;font-size:14px;line-height:1;transition:background .12s,border-color .12s;display:inline-flex}.tb-btn:hover:not(:disabled){background:#ecebe8}.tb-btn.is-active{color:#1a52d6;background:#e4ecff;border-color:#c3d4ff}.tb-btn:disabled{opacity:.35;cursor:default}.tb-btn code{background:0 0;padding:0;font-size:12px}.tb-block-select{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:6px;height:30px;padding:0 8px;font-size:13px}.tb-block-select:hover{background:#f6f5f3}.tb-insert-label{color:#8a8f96;margin-right:4px;font-size:13px}.tb-ai-btn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:6px;align-items:center;gap:5px;height:30px;padding:0 12px;font-size:12.5px;font-weight:600;transition:background .12s,border-color .12s;display:inline-flex}.tb-ai-btn:hover{color:#1f2328;background:#ecebe8;border-color:#d9d9d4}.tb-ai-gear{color:#64748b;border-radius:9999px;font-size:13px}.comments-panel{background:#fbfbfa;border-left:1px solid #e6e6e3;flex-direction:column;flex-shrink:0;width:300px;display:flex;overflow-y:auto}.comments-head{background:#fbfbfa;border-bottom:1px solid #e6e6e3;align-items:center;gap:10px;padding:12px 14px;display:flex;position:sticky;top:0}.comments-title{letter-spacing:.04em;text-transform:uppercase;color:#8a8f96;font-size:12px;font-weight:700}.comments-toggle{color:#8a8f96;align-items:center;gap:4px;margin-left:auto;font-size:11px;display:flex}.comments-close{color:#8a8f96;cursor:pointer;background:0 0;border:none;font-size:13px}.comments-empty{color:#8a8f96;padding:16px 14px;font-size:13px;line-height:1.6}.thread-list{margin:0;padding:8px;list-style:none}.thread{background:#fff;border:1px solid #e6e6e3;border-radius:9px;margin-bottom:10px;padding:10px}.thread.is-resolved{opacity:.6}.thread-anchor{text-align:left;color:#8a6a2e;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:#fff6e8;border:none;border-radius:6px;width:100%;margin-bottom:8px;padding:4px 8px;font-size:12px;display:block;overflow:hidden}.thread-anchor:hover{background:#ffeccb}.entry{margin-bottom:8px}.entry.is-reply{border-left:none;margin-left:0;padding-left:0}.entry-head{align-items:center;gap:6px;font-size:12px;display:flex}.entry-name{color:#1f2328;font-weight:600}.entry-when{color:#a0a4ab;font-size:11px}.entry-del{color:#c2c6cc;cursor:pointer;background:0 0;border:none;margin-left:auto;font-size:11px}.entry-del:hover{color:#c23b3b}.entry-body{color:#3a3f45;white-space:pre-wrap;margin-top:2px;font-size:13px}.thread-actions{gap:12px;margin-top:6px;display:flex}.btn-link{color:#1a52d6;cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;font-weight:600}.reply-box{width:100%}.reply-box textarea{box-sizing:border-box;resize:vertical;border:1px solid #e0e0dc;border-radius:7px;width:100%;min-height:48px;padding:7px 9px;font-family:inherit;font-size:13px}.reply-buttons{gap:8px;margin-top:6px;display:flex}.btn-primary{color:#fff;cursor:pointer;background:#1a52d6;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:600}.btn-ghost{color:#8a8f96;cursor:pointer;background:0 0;border:none;font-size:12px}.comment-mark{cursor:pointer;background:#fff2cc;border-bottom:2px solid #f2c14e}.comment-mark:hover{background:#ffe9a8}.version-panel{background:#faf9f7;border-left:1px solid #e6e6e3;flex-direction:column;flex:0 0 300px;width:300px;display:flex;overflow-y:auto}.version-head{border-bottom:1px solid #e6e6e3;align-items:center;padding:12px 14px;display:flex}.version-title{letter-spacing:.04em;text-transform:uppercase;color:#8a8f96;font-size:12px;font-weight:700}.version-close{color:#8a8f96;cursor:pointer;background:0 0;border:none;margin-left:auto;font-size:13px}.version-save{color:#fff;cursor:pointer;background:#2567f4;border:none;border-radius:8px;margin:12px 14px 4px;padding:8px 12px;font-size:13px;font-weight:500}.version-save:hover:not(:disabled){background:#1a56da}.version-save:disabled{opacity:.5;cursor:default}.version-error{color:#c23b3b;margin:6px 14px;font-size:12px}.version-empty{color:#8a8f96;padding:16px 14px;font-size:13px}.version-list{margin:0;padding:8px;list-style:none}.version-row{background:#fff;border:1px solid #e6e6e3;border-radius:8px;align-items:center;gap:8px;margin-bottom:8px;padding:10px;display:flex}.version-info{flex-direction:column;flex:1;min-width:0;display:flex}.version-label{color:#1f2328;font-size:13px;font-weight:600}.version-meta{color:#a0a4ab;margin-top:2px;font-size:11px}.version-actions{gap:6px;display:flex}.vbtn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #dcdbd7;border-radius:6px;padding:4px 10px;font-size:12px}.vbtn:hover:not(:disabled){background:#f4f3f1}.vbtn:disabled{opacity:.5;cursor:default}.vbtn-del{color:#c23b3b}.vbtn-del:hover{background:#fdecec}.menu{position:relative}.menu-trigger{color:#6b7177;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 4px;font-size:13px}.menu-trigger:hover{color:#1f2328;background:#f0efec}.menu-trigger.is-open{color:#1a52d6;background:#e4ecff}.menu-trigger.is-active{color:#1f2328;font-weight:600}.menu-dropdown{z-index:50;background:#fff;border:1px solid #e6e6e3;border-radius:8px;min-width:180px;margin-top:4px;padding:5px;position:absolute;top:100%;left:0;box-shadow:0 6px 24px #0000001f}.menu-item{text-align:left;color:#3a3f45;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;width:100%;padding:7px 9px;font-size:13px;display:flex}.menu-item:hover:not(:disabled){background:#f0efec}.menu-item:disabled{opacity:.4;cursor:default}.menu-check{color:#1a52d6;width:14px;font-size:12px}.menu-divider{background:#ececea;height:1px;margin:5px 4px}.mermaid-block{border:1px solid #e6e6e3;border-radius:10px;margin:.6em 0;overflow:hidden}.mermaid-editor{background:#fbfbfa}.mermaid-src{box-sizing:border-box;color:#e6edf3;resize:vertical;background:#1f2328;border:none;outline:none;width:100%;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5}.mermaid-actions{background:#f4f3f1;border-top:1px solid #e6e6e3;gap:8px;padding:8px 10px;display:flex}.mmd-btn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #dcdbd7;border-radius:6px;padding:5px 12px;font-size:13px}.mmd-btn:hover{background:#ecebe8}.mmd-btn.primary{color:#fff;background:#2567f4;border-color:#2567f4}.mmd-btn.primary:hover{background:#1a56da}.mermaid-preview{background:#fff;justify-content:center;padding:16px;display:flex;position:relative}.mermaid-svg{max-width:100%}.mermaid-svg svg{max-width:100%;height:auto}.mermaid-error{color:#c23b3b;padding:8px;font-family:ui-monospace,monospace;font-size:13px}.mermaid-edit-btn{color:#3a3f45;cursor:pointer;opacity:0;background:#fff;border:1px solid #dcdbd7;border-radius:6px;padding:3px 10px;font-size:12px;transition:opacity .12s;position:absolute;top:8px;right:8px}.mermaid-preview:hover .mermaid-edit-btn{opacity:1}.mermaid-edit-btn:hover{background:#ecebe8}.mermaid-drag{color:#8a8f96;cursor:grab;opacity:0;-webkit-user-select:none;user-select:none;background:#f0efec;border-radius:6px;padding:2px 6px;font-size:14px;line-height:1;transition:opacity .12s;position:absolute;top:8px;left:8px}.mermaid-preview:hover .mermaid-drag{opacity:1}.mermaid-drag:active{cursor:grabbing}.mermaid-enlarge-btn{color:#3a3f45;cursor:pointer;opacity:0;background:#fff;border:1px solid #dcdbd7;border-radius:6px;padding:3px 9px;font-size:13px;transition:opacity .12s;position:absolute;top:8px;right:56px}.mermaid-preview:hover .mermaid-enlarge-btn{opacity:1}.mermaid-enlarge-btn:hover{background:#ecebe8}.coderef-block{margin:12px 0}.coderef-empty{background:#fafafa;border:1px dashed #c7cad1;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;display:flex}.coderef-url{border:1px solid #d1d5db;border-radius:6px;flex:1;min-width:240px;padding:7px 10px;font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}.coderef-btn{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:7px 14px;font:13px/1 ui-sans-serif,system-ui,sans-serif}.coderef-btn.primary{color:#fff;background:#2567f4;border-color:#2567f4}.coderef-btn:disabled{opacity:.5;cursor:default}.coderef-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.coderef-head{background:#f6f8fa;border-bottom:1px solid #e5e7eb;align-items:center;gap:8px;padding:7px 12px;font:12px/1.2 ui-sans-serif,system-ui,sans-serif;display:flex}.coderef-path{color:#0969da;text-overflow:ellipsis;white-space:nowrap;font-weight:600;text-decoration:none;overflow:hidden}.coderef-path:hover{text-decoration:underline}.coderef-lines{color:#57606a;font-weight:500}.coderef-sha{color:#8a8f96;margin-left:auto;font:11px/1 ui-monospace,monospace}.coderef-refresh{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:5px;padding:2px 7px}.coderef-refresh:disabled{opacity:.5;cursor:default}.coderef-code{color:#1f2328;white-space:pre;background:#fff;margin:0;padding:12px 14px;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-x:auto}.coderef-error{color:#b91c1c;padding:8px 12px;font:12px/1.4 ui-sans-serif,system-ui,sans-serif}.ai-modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:1000;background:#0f172a73;justify-content:center;align-items:center;animation:.18s ease-out aiOverlayFade;display:flex;position:fixed;inset:0}@keyframes aiOverlayFade{0%{opacity:0}to{opacity:1}}.ai-modal-window{background:#fff;border-radius:18px;width:560px;max-width:calc(100vw - 32px);animation:.2s cubic-bezier(.16,1,.3,1) aiModalZoom;overflow:hidden;box-shadow:0 20px 50px -10px #0f172a40,0 0 1px #0000001a}@keyframes aiModalZoom{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.ai-modal-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.ai-modal-title{color:#0f172a;letter-spacing:-.2px;align-items:center;gap:8px;font-size:16px;font-weight:700;display:flex}.ai-modal-sparkle{color:#8b5cf6;font-size:16px}.ai-modal-close{color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;transition:all .15s;display:flex}.ai-modal-close:hover{color:#0f172a;background:#e2e8f0}.ai-modal-body{max-height:72vh;padding:22px 24px;overflow-y:auto}.ai-field-label{color:#334155;margin-bottom:8px;font-size:12.5px;font-weight:700}.ai-provider-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px;display:grid}.ai-provider-card{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:4px;padding:12px 14px;transition:all .18s cubic-bezier(.16,1,.3,1);display:flex}.ai-provider-card:hover{border-color:#cbd5e1;transform:translateY(-1px)}.ai-provider-card.is-selected{background:#f0f7ff;border-color:#3b82f6;box-shadow:0 4px 12px #3b82f61f}.ai-card-top{justify-content:space-between;align-items:center;display:flex}.ai-card-name{color:#0f172a;align-items:center;gap:6px;font-size:13.5px;font-weight:600;display:flex}.ai-card-icon{font-size:14px}.ai-card-tag{letter-spacing:.3px;text-transform:uppercase;color:#6b7177;background:#f0efec;border:1px solid #e2e0db;border-radius:4px;padding:2px 6px;font-size:9.5px;font-weight:700}.ai-card-desc{color:#64748b;font-size:11.5px;line-height:1.35}.ai-model-chips{flex-wrap:wrap;gap:6px;margin-bottom:16px;display:flex}.ai-model-chip{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9999px;align-items:center;gap:6px;padding:5px 12px;font-size:12px;font-weight:500;transition:all .12s;display:inline-flex}.ai-model-chip:hover{background:#f1f5f9}.ai-model-chip.is-selected{color:#fff;box-shadow:none;background:#2567f4;border-color:#2567f4}.ai-chip-name{font-size:12px}.ai-key-input{color:#0f172a;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;outline:none;width:100%;padding:10px 14px;font-family:inherit;font-size:13px;transition:all .15s}.ai-key-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.ai-key-hint{color:#64748b;margin-top:6px;font-size:11.5px;line-height:1.4}.ai-modal-footer{background:#f8fafc;border-top:1px solid #f1f5f9;justify-content:flex-end;gap:8px;padding:14px 24px;display:flex}.ai-btn-secondary{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:500;transition:all .12s}.ai-btn-secondary:hover{color:#0f172a;background:#f1f5f9}.ai-btn-primary{color:#fff;cursor:pointer;background:#2567f4;border:none;border-radius:8px;padding:7px 16px;font-size:13px;font-weight:600;transition:background .12s}.ai-btn-primary:hover:not(:disabled){background:#1a56da}.ai-btn-primary:disabled{opacity:.45;cursor:not-allowed}.ai-required{color:#c23b3b;font-size:12px;font-weight:600}.ai-popover-card{z-index:100;-webkit-backdrop-filter:blur(16px);background:#fffffffa;border:1px solid #e2e8f0;border-radius:16px;width:530px;max-width:calc(100vw - 32px);margin-top:10px;padding:16px;animation:.18s cubic-bezier(.16,1,.3,1) popoverEnter;position:absolute;transform:translate(-50%);box-shadow:0 20px 45px -10px #0f172a33,0 4px 12px #0f172a0f}@keyframes popoverEnter{0%{opacity:0;transform:translate(-50%,-8px)scale(.97)}to{opacity:1;transform:translate(-50%)scale(1)}}.ai-pop-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.ai-pop-badge{color:#7c3aed;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:9999px;padding:3px 9px;font-size:12.5px;font-weight:700}.ai-pop-model-tag{color:#64748b;cursor:pointer;background:#f1f5f9;border-radius:9999px;align-items:center;gap:5px;padding:3px 8px;font-size:11.5px;transition:all .15s;display:inline-flex}.ai-pop-model-tag:hover{color:#0f172a;background:#e2e8f0}.ai-pop-gear{font-size:11px}.ai-pill-switch{background:#f1f5f9;border-radius:9999px;margin-bottom:12px;padding:3px;display:flex}.ai-switch-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:9999px;flex:1;justify-content:center;align-items:center;gap:5px;padding:6px 10px;font-size:12.5px;font-weight:600;transition:all .15s;display:flex}.ai-switch-btn.active{color:#0f172a;background:#fff;box-shadow:0 2px 6px #00000014}.ai-quote-preview{color:#64748b;background:#f8fafc;border-left:3px solid #cbd5e1;border-radius:0 6px 6px 0;max-height:48px;margin-bottom:12px;padding:6px 10px;font-size:11.5px;font-style:italic;overflow-y:auto}.ai-custom-prompt{gap:6px;margin-bottom:12px;display:flex}.ai-prompt-input{background:#fff;border:1px solid #e2e8f0;border-radius:9999px;outline:none;flex:1;padding:7px 12px;font-family:inherit;font-size:12.5px;transition:all .15s}.ai-prompt-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.ai-regen-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9999px;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;display:flex}.ai-regen-btn:hover:not(:disabled){background:#e2e8f0}.ai-regen-btn:disabled{opacity:.5;cursor:default}.ai-output-box{color:#0f172a;background:#fafaf9;border:1px solid #e2e8f0;border-radius:10px;min-height:75px;margin-bottom:14px;padding:12px 14px;font-size:13.5px;line-height:1.6}.ai-output-box.is-loading{justify-content:center;align-items:center;display:flex}.ai-shimmer-container{flex-direction:column;align-items:center;gap:8px;width:100%;display:flex}.ai-shimmer-line{background:linear-gradient(90deg,#3b82f6,#8b5cf6,#ec4899,#3b82f6) 0 0/200% 100%;border-radius:9999px;width:100%;height:4px;animation:1.4s linear infinite shimmerAnim}@keyframes shimmerAnim{0%{background-position:200% 0}to{background-position:-200% 0}}.ai-shimmer-text{color:#64748b;font-size:12px;font-weight:500}.ai-output-box.has-error{background:#fef2f2;border-color:#fca5a5;padding:0;overflow:hidden}.ai-error-banner{background:#fef2f2;border-radius:10px;padding:12px 14px}.ai-error-banner-header{align-items:center;gap:8px;margin-bottom:8px;display:flex}.ai-error-banner-icon{font-size:15px}.ai-error-banner-title{color:#991b1b;letter-spacing:-.2px;font-size:13px;font-weight:700}.ai-error-banner-body{color:#b91c1c;word-break:break-word;background:#fff;border:1px solid #fecaca;border-radius:7px;max-height:105px;margin-bottom:8px;padding:8px 10px;font-size:12px;line-height:1.5;overflow-y:auto}.ai-error-banner-hint{color:#7f1d1d;margin-bottom:10px;font-size:11.5px;font-weight:500;line-height:1.4}.ai-error-banner-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ai-error-action-btn{cursor:pointer;border-radius:9999px;padding:5px 12px;font-size:11.5px;font-weight:600;transition:all .15s}.ai-error-action-btn.primary{color:#fff;background:#ef4444;border:1px solid #dc2626;box-shadow:0 1px 3px #ef44444d}.ai-error-action-btn.primary:hover{background:#dc2626;transform:translateY(-1px)}.ai-error-action-btn.secondary{color:#991b1b;background:#fff;border:1px solid #fca5a5}.ai-error-action-btn.secondary:hover{background:#fee2e2}.ai-rendered-html ul{margin:0;padding-left:20px}.ai-rendered-html li{margin-bottom:4px}.ai-rendered-html table{border-collapse:collapse;border-radius:8px;width:100%;margin:4px 0;font-size:12.5px;overflow:hidden;box-shadow:0 1px 3px #0000000d}.ai-rendered-html th,.ai-rendered-html td{text-align:left;vertical-align:top;border:1px solid #cbd5e1;padding:6px 10px}.ai-rendered-html th{color:#1e293b;background:#f1f5f9;font-weight:600}.ai-rendered-html tr:nth-child(2n) td{background:#f1f5f966}.ai-warning-box{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.5}.ai-warning-text{margin-bottom:8px;font-weight:500}.ai-warning-actions{flex-wrap:wrap;gap:8px;display:flex}.ai-warning-btn{color:#78350f;cursor:pointer;background:#fff;border:1px solid #fcd34d;border-radius:9999px;padding:5px 12px;font-size:12px;font-weight:600;transition:all .15s}.ai-warning-btn:hover{background:#fef3c7;transform:translateY(-1px)}.ai-pop-actions{justify-content:space-between;align-items:center;display:flex}.ai-pop-actions-right{align-items:center;gap:8px;display:flex}.ai-pop-btn-ghost{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:9999px;padding:6px 10px;font-size:12.5px;font-weight:500}.ai-pop-btn-ghost:hover{color:#0f172a;background:#f1f5f9}.ai-pop-btn-secondary{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;padding:6px 12px;font-size:12.5px;font-weight:500;transition:all .12s}.ai-pop-btn-secondary:hover:not(:disabled){background:#f1f5f9;border-color:#cbd5e1}.ai-pop-btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#3b82f6);border:none;border-radius:9999px;padding:6px 14px;font-size:12.5px;font-weight:600;transition:all .12s;box-shadow:0 2px 6px #2563eb40}.ai-pop-btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 10px #2563eb59}.ai-pop-btn-primary:disabled,.ai-pop-btn-secondary:disabled{opacity:.42;pointer-events:none;box-shadow:none;filter:grayscale(.6);transform:none;cursor:not-allowed!important}.review-bar{flex-wrap:wrap;align-items:center;gap:10px;display:inline-flex}.rv-reviewers{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.rv-empty{color:#9ca3af;font:12px/1 ui-sans-serif,system-ui,sans-serif}.rv-chip{color:#374151;background:#f3f4f6;border-radius:999px;align-items:center;gap:4px;padding:3px 8px;font:12px/1 ui-sans-serif,system-ui,sans-serif;display:inline-flex}.rv-chip.is-approved{color:#166534;background:#dcfce7}.rv-chip.is-changes{color:#991b1b;background:#fee2e2}.rv-chip-x{cursor:pointer;color:inherit;opacity:.5;background:0 0;border:none;padding:0 0 0 2px;font-size:10px}.rv-chip-x:hover{opacity:1}.rv-progress{color:#374151;padding:0 4px;font:600 12px/1 ui-sans-serif,system-ui,sans-serif}.rv-add-wrap{position:relative}.rv-add{cursor:pointer;color:#4b5563;background:#fff;border:1px dashed #c7cad1;border-radius:6px;padding:4px 10px;font:12px/1 ui-sans-serif,system-ui,sans-serif}.rv-pick-menu{z-index:50;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:180px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #00000024}.rv-pick-menu button{cursor:pointer;color:#374151;text-align:left;background:0 0;border:none;border-radius:6px;width:100%;padding:7px 10px;font:13px/1 ui-sans-serif,system-ui,sans-serif;display:block}.rv-pick-menu button:hover{background:#f3f4f6}.rv-pick-empty{color:#9ca3af;padding:8px 10px;font:12px/1.3 ui-sans-serif,system-ui,sans-serif}.review-actions{gap:6px;display:inline-flex}.rv-btn{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:4px 10px;font:12px/1 ui-sans-serif,system-ui,sans-serif}.rv-btn:disabled{opacity:.5;cursor:default}.rv-btn-approve.is-active{color:#fff;background:#16a34a;border-color:#16a34a}.rv-btn-changes.is-active{color:#fff;background:#dc2626;border-color:#dc2626}.editor-shell{background:#f7f7f5;flex-direction:column;height:100%;display:flex}.editor-topbar{z-index:11;background:#fff;border-bottom:1px solid #ececea;flex-shrink:0;align-items:flex-start;gap:10px;padding:10px 16px 8px 24px;display:flex}.title-block{flex-direction:column;flex:1;min-width:0;display:flex}.doc-title-input{color:#1f2328;box-sizing:border-box;background:0 0;border:none;outline:none;width:100%;padding:0;font-size:20px;font-weight:700;line-height:1.3}.doc-title-input::placeholder{color:#c2c6cc}.doc-menu-row{gap:16px;margin-top:3px;display:flex}.doc-menu-item{color:#6b7177;cursor:default;-webkit-user-select:none;user-select:none;font-size:13px}.doc-menu-item.is-active{color:#1f2328;font-weight:600}.topbar-right{flex-shrink:0;align-items:center;gap:8px;display:flex}.comments-btn{color:#3a3f45;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e6e6e3;border-radius:7px;padding:6px 12px;font-size:13px;font-weight:600}.comments-btn:hover{background:#f0efec}.comments-btn.is-active{color:#1a52d6;background:#e4ecff;border-color:#c3d4ff}.editor-with-panel{flex:1;min-height:0;display:flex}.editor-scroll{flex:1;padding:0 0 120px;position:relative;overflow-y:auto}.editor-scroll .editor-content{margin-top:40px}.editor-content.font-sans .ProseMirror{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.editor-content.font-inter .ProseMirror{font-family:Inter,system-ui,-apple-system,sans-serif}.editor-content.font-jakarta .ProseMirror{font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif}.editor-content.font-serif .ProseMirror{font-family:Georgia,Cambria,Times New Roman,serif}.editor-content.font-merriweather .ProseMirror{font-family:Merriweather,Georgia,serif}.editor-content.font-playfair .ProseMirror{font-family:Playfair Display,Georgia,serif}.editor-content.font-mono .ProseMirror{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}.editor-content.font-fira .ProseMirror{font-family:Fira Code,ui-monospace,monospace}.editor-content.font-casual .ProseMirror{font-family:Comic Sans MS,cursive,sans-serif}.font-picker{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:7px;padding:6px 8px;font-size:13px;font-weight:600}.font-picker:hover{background:#f0efec}.comment-bubble{z-index:20;color:#fff;cursor:pointer;background:#1f2328;border:none;border-radius:9999px;padding:6px 12px;font-size:12px;font-weight:600;position:absolute;transform:translate(-50%);box-shadow:0 4px 12px #0003}.comment-bubble:hover{background:#000}.ai-floating-bubble-bar{z-index:90;-webkit-backdrop-filter:blur(16px);color:#1f2328;background:#fff;border:1px solid #e6e6e3;border-radius:9999px;align-items:center;gap:3px;padding:4px;animation:.16s cubic-bezier(.16,1,.3,1) bubblePopIn;display:flex;position:absolute;transform:translate(-50%);box-shadow:0 16px 36px #00000024,0 4px 12px #00000014}@keyframes bubblePopIn{0%{opacity:0;transform:translate(-50%,6px)scale(.95)}to{opacity:1;transform:translate(-50%)scale(1)}}.ai-bubble-btn{color:#3a3f45;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:9999px;align-items:center;gap:5px;padding:6px 12px;font-size:12.5px;font-weight:500;transition:all .15s;display:inline-flex}.ai-bubble-btn:hover{color:#1f2328;background:#f0efec}.ai-bubble-btn--glow{font-weight:600}[data-theme=dark] .ai-floating-bubble-bar{color:#fff;background:#0f172af0;border-color:#ffffff24;box-shadow:0 16px 36px #00000038,0 4px 12px #0000001a}[data-theme=dark] .ai-bubble-btn{color:#f8fafc}[data-theme=dark] .ai-bubble-btn:hover{color:#fff;background:#ffffff26}.ai-bubble-divider{background:#e2e0db;width:1px;height:16px;margin:0 2px}[data-theme=dark] .ai-bubble-divider{background:#fff3}.comment-mark--flash{transition:background .3s;background:#ffd874!important}.comment-popover{z-index:30;background:#fff;border:1px solid #e6e6e3;border-radius:12px;width:360px;max-width:92vw;padding:0;position:absolute;overflow:hidden;box-shadow:0 10px 34px #0000002e}.comment-popover-empty{color:#8a8f96;padding:16px;font-size:13px}.cp-head{border-bottom:1px solid #ececea;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.cp-title{color:#1f2328;font-size:15px;font-weight:600}.cp-head-left,.cp-head-right{flex:1 1 0;align-items:center;display:flex}.cp-head-right{justify-content:flex-end}.cp-close-btn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #dcdbd7;border-radius:7px;padding:4px 12px;font-size:13px}.cp-close-btn:hover{background:#f4f3f1}.cp-archive-btn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #dcdbd7;border-radius:7px;padding:4px 12px;font-size:13px}.cp-archive-btn:hover{background:#f4f3f1}.cp-archived{color:#8a8f96;text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:600}.cp-entries{min-height:140px;max-height:420px;padding:14px 16px;overflow-y:auto}.cp-entry{gap:10px;margin-bottom:14px;display:flex}.cp-entry:last-child{margin-bottom:0}.cp-avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:32px;height:32px;font-size:12px;font-weight:600;display:flex}.cp-entry-main{min-width:0}.cp-entry-head{align-items:baseline;gap:6px;display:flex}.cp-name{color:#1f2328;font-size:14px;font-weight:600}.cp-when{color:#9aa0a6;font-size:12px}.cp-text{color:#3a3f45;white-space:pre-wrap;word-break:break-word;margin-top:2px;font-size:14px}.cp-footer{border-top:1px solid #ececea;align-items:center;gap:8px;padding:10px 12px;display:flex}.cp-footer-input{resize:none;background:0 0;border:none;flex:1;max-height:130px;padding:8px 4px;font-family:inherit;font-size:14px}.cp-footer-input:focus{outline:none}.cp-send-btn{color:#fff;cursor:pointer;background:#2567f4;border:none;border-radius:8px;flex:none;padding:7px 16px;font-size:13px;font-weight:500}.cp-send-btn:hover:not(:disabled){background:#1a56da}.cp-send-btn:disabled{opacity:.5;cursor:default}.cp-quote{color:#8a8f96;margin:12px 14px 0;font-size:12px;font-style:italic}.comment-composer{padding:0}.collab-status{color:#57606a;background:#fff;border:1px solid #e6e6e3;border-radius:999px;align-items:center;gap:7px;padding:5px 12px;font-size:12px;display:flex;position:fixed;bottom:16px;right:18px;box-shadow:0 1px 3px #0000000f}.collab-status .dot{background:#adb5bd;border-radius:50%;width:8px;height:8px}.collab-status .dot-connected{background:#2f9d54}.collab-status .dot-connecting{background:#f2b705}.collab-status .dot-disconnected{background:#c23b3b}.editor-content .collaboration-carets__caret{pointer-events:none;word-break:normal;border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d;margin-left:-1px;margin-right:-1px;position:relative}.editor-content .collaboration-carets__label{color:#fff;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:3px 3px 3px 0;padding:1px 4px;font-size:11px;font-weight:600;line-height:1;position:absolute;top:-1.4em;left:-1px}.editor-content{background:#fff;border:1px solid #e6e6e3;border-radius:10px;max-width:760px;margin:0 auto;padding:56px 72px;box-shadow:0 1px 3px #0000000a}.editor-content .ProseMirror{color:#1f2328;outline:none;min-height:480px;font-size:16px;line-height:1.4}.editor-content .ProseMirror>*+*{margin-top:.3em}.editor-content .ProseMirror p,.editor-content .ProseMirror h1,.editor-content .ProseMirror h2,.editor-content .ProseMirror h3,.editor-content .ProseMirror ul,.editor-content .ProseMirror ol,.editor-content .ProseMirror blockquote,.editor-content .ProseMirror pre{margin:0}.editor-content img{cursor:pointer;border-radius:8px;max-width:100%;height:auto;margin:.5em 0;display:block}.editor-content img.ProseMirror-selectednode{outline-offset:2px;outline:2px solid #2567f4}.img-lightbox{z-index:1000;cursor:zoom-out;background:#000000d1;justify-content:center;align-items:center;padding:40px;display:flex;position:fixed;inset:0}.img-lightbox-img{cursor:default;border-radius:8px;max-width:94vw;max-height:92vh;box-shadow:0 12px 48px #00000080}.img-lightbox-close{color:#fff;cursor:pointer;background:#ffffff26;border:none;border-radius:50%;width:38px;height:38px;font-size:18px;position:fixed;top:18px;right:22px}.img-lightbox-close:hover{background:#ffffff47}.editor-content h1{font-size:2em;font-weight:700;line-height:1.25}.editor-content h2{font-size:1.5em;font-weight:700;line-height:1.3}.editor-content h3{font-size:1.2em;font-weight:600}.editor-content ul,.editor-content ol{padding-left:1.4em}.editor-content blockquote{color:#57606a;border-left:3px solid #d9d9d4;padding-left:1em}.editor-content code{background:#f0f0ee;border-radius:4px;padding:.15em .35em;font-size:.9em}.editor-content pre{color:#eaeef2;background:#1f2328;border-radius:8px;padding:14px 16px;overflow-x:auto}.editor-content pre code{color:inherit;background:0 0;padding:0}.editor-content hr{border:none;border-top:1px solid #e6e6e3;margin:1.5em 0}.editor-content .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#adb5bd;pointer-events:none;height:0}.editor-content ul[data-type=taskList]{padding-left:.2em;list-style:none}.editor-content ul[data-type=taskList] li{align-items:flex-start;gap:.5em;display:flex}.editor-content ul[data-type=taskList] li>label{margin-top:.25em}.editor-content ul[data-type=taskList] li>div{flex:1}.editor-content .tableWrapper{box-sizing:border-box;border-radius:8px;max-width:100%;margin:1.2em 0;overflow-x:auto}.editor-content table{border-collapse:collapse;table-layout:fixed;box-sizing:border-box;border-radius:8px;width:100%;margin:0;overflow:hidden}.editor-content th,.editor-content td{vertical-align:top;word-break:break-word;overflow-wrap:break-word;box-sizing:border-box;border:1px solid #d9d9d4;min-width:40px;padding:8px 12px;font-size:13.5px;line-height:1.45;position:relative}.editor-content th{text-align:left;color:#24292f;background:#f6f8fa;font-weight:600}.editor-content tr:nth-child(2n) td{background:#00000004}.ProseMirror.resize-cursor,.editor-content.resize-cursor,.editor-content .ProseMirror.resize-cursor{cursor:col-resize!important}.editor-content .column-resize-handle{z-index:25;pointer-events:none;background-color:#3b82f6;border-radius:2px;width:5px;transition:background-color .15s;position:absolute;top:0;bottom:0;right:-2px;box-shadow:0 0 6px #3b82f680}.editor-content .column-resize-dragging{background-color:#3b82f614!important}.editor-content .selectedCell:after{content:"";pointer-events:none;z-index:2;background:#5082e61f;position:absolute;inset:0}.mermaid-zoom-svg{cursor:default;background:#fff;border-radius:10px;max-width:94vw;max-height:92vh;padding:24px;overflow:auto}.mermaid-zoom-svg svg{width:auto;max-width:100%;height:auto}.doc-type-badge{color:#3730a3;letter-spacing:.03em;background:#eef2ff;border-radius:6px;align-items:center;padding:2px 8px;font:600 11px/1 ui-sans-serif,system-ui,sans-serif;display:inline-flex}.status-pill-wrap{display:inline-block;position:relative}.status-pill{border:1px solid var(--pill-color,#6b7280);color:var(--pill-color,#6b7280);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font:600 12px/1 ui-sans-serif,system-ui,sans-serif;display:inline-flex}.status-pill:disabled{cursor:default}.status-dot{background:var(--pill-color,currentColor);border-radius:50%;width:8px;height:8px}.status-caret{opacity:.7;font-size:9px}.status-menu{z-index:50;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:160px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #0000001f}.status-menu-item{cursor:pointer;color:#374151;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;width:100%;padding:7px 10px;font:13px/1 ui-sans-serif,system-ui,sans-serif;display:flex}.status-menu-item:hover{background:#f3f4f6}.status-menu-item.is-current{font-weight:600}.home{background:#f7f7f5;flex:1;overflow-y:auto}.home-inner{max-width:900px;margin:0 auto;padding:44px 40px 80px}.home-header{align-items:center;gap:16px;margin-bottom:36px;display:flex}.home-avatar{color:#fff;background:#2567f4;border-radius:50%;flex:none;justify-content:center;align-items:center;width:52px;height:52px;font-size:22px;font-weight:700;display:flex}.home-greeting{color:#1f2328;margin:0;font-size:26px;font-weight:700}.home-sub{color:#8a8f96;margin:4px 0 0;font-size:14px}.home-new{color:#fff;cursor:pointer;white-space:nowrap;background:#2567f4;border:none;border-radius:10px;margin-left:auto;padding:10px 18px;font-size:14px;font-weight:600}.home-new:hover{background:#1a56da}.home-section{margin-bottom:34px}.home-section-title{letter-spacing:.04em;text-transform:uppercase;color:#8a8f96;margin:0 0 14px;font-size:12px;font-weight:700}.home-empty{color:#8a8f96;font-size:14px}.home-link{color:#2567f4;cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;text-decoration:underline}.home-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;display:grid}.home-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:12px;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;transition:box-shadow .12s,border-color .12s,transform .12s;display:flex}.home-card:hover{border-color:#c3d4ff;transform:translateY(-1px);box-shadow:0 6px 18px #2567f41f}.hc-icon{font-size:22px}.hc-title{color:#1f2328;text-overflow:ellipsis;white-space:nowrap;width:100%;font-size:15px;font-weight:600;overflow:hidden}.hc-meta{color:#a0a4ab;font-size:12px}.auth-screen{background:#f7f7f5;place-items:center;height:100vh;display:grid}.auth-card{background:#fff;border:1px solid #e6e6e3;border-radius:12px;flex-direction:column;gap:14px;width:340px;padding:32px 28px;display:flex;box-shadow:0 4px 20px #0000000d}.auth-brand{justify-content:center;align-items:center;gap:8px;display:flex}.auth-brand .brand-mark{color:#fff;background:linear-gradient(135deg,#ffb347,#ff8a3d);border-radius:7px;place-items:center;width:26px;height:26px;font-size:12px;font-weight:700;display:grid}.auth-brand .brand-name{color:#1f2328;font-weight:700}.auth-title{color:#1f2328;text-align:center;margin:4px 0 8px;font-size:18px;font-weight:700}.auth-field{flex-direction:column;gap:5px;display:flex}.auth-field span{color:#57606a;font-size:12px;font-weight:600}.auth-field input{border:1px solid #e0e0dc;border-radius:7px;outline:none;padding:9px 11px;font-size:14px}.auth-field input:focus{border-color:#1a52d6;box-shadow:0 0 0 3px #1a52d61a}.auth-error{color:#c23b3b;background:#fbe9e9;border:1px solid #f0c9c9;border-radius:7px;padding:8px 11px;font-size:13px}.auth-submit{color:#fff;cursor:pointer;background:#1a52d6;border:none;border-radius:8px;margin-top:4px;padding:10px;font-size:14px;font-weight:600}.auth-submit:hover:not(:disabled){background:#1746b8}.auth-submit:disabled{opacity:.6;cursor:default}.auth-switch{color:#57606a;text-align:center;font-size:13px}.auth-note{color:#57606a;text-align:center;margin:0 0 6px;font-size:14px;line-height:1.6}.auth-switch button{color:#1a52d6;cursor:pointer;background:0 0;border:none;padding:0;font-weight:600}.share-overlay{z-index:50;background:#14161a66;place-items:center;display:grid;position:fixed;inset:0}.share-dialog{background:#fff;border-radius:12px;width:440px;max-width:calc(100vw - 32px);padding:22px 24px;box-shadow:0 10px 40px #0003}.share-head{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.share-head h2{color:#1f2328;margin:0;font-size:16px;font-weight:700}.share-close{color:#8a8f96;cursor:pointer;background:0 0;border:none;font-size:14px}.share-add{gap:8px;display:flex}.share-add input{border:1px solid #e0e0dc;border-radius:7px;outline:none;flex:1;padding:8px 10px;font-size:14px}.share-add input:focus{border-color:#1a52d6}.share-add select{border:1px solid #e0e0dc;border-radius:7px;padding:8px;font-size:13px}.share-add>button[type=submit]{color:#fff;cursor:pointer;background:#1a52d6;border:none;border-radius:7px;padding:8px 14px;font-size:13px;font-weight:600}.share-add>button[type=submit]:disabled{opacity:.6}.share-error{color:#c23b3b;background:#fbe9e9;border:1px solid #f0c9c9;border-radius:7px;margin-top:10px;padding:7px 10px;font-size:13px}.share-list{margin:16px 0 0;padding:0;list-style:none}.share-empty{color:#8a8f96;padding:8px 0;font-size:13px}.share-row{border-top:1px solid #f0efec;align-items:center;gap:10px;padding:9px 0;display:flex}.share-who{color:#1f2328;flex-direction:column;flex:1;font-size:14px;display:flex}.share-who small{color:#8a8f96;font-size:12px}.share-role{color:#57606a;font-size:12px}.share-revoke{color:#c23b3b;cursor:pointer;background:0 0;border:none;font-size:12px;font-weight:600}.app{background:#f7f7f5;flex-direction:column;height:100vh;display:flex}.app-header{background:#fff;border-bottom:1px solid #e6e6e3;flex-shrink:0;align-items:center;gap:14px;height:52px;padding:0 18px;display:flex}.brand{align-items:center;gap:8px;margin-right:auto;display:flex}.brand-mark{color:#fff;background:linear-gradient(135deg,#ffb347,#ff8a3d);border-radius:7px;place-items:center;width:26px;height:26px;font-size:12px;font-weight:700;display:grid}.brand-name{color:#1f2328;font-weight:700}.app-body{flex:1;min-height:0;display:flex}.phase-tag{color:#8a7250;background:#fdf3e3;border:1px solid #f2e2c4;border-radius:999px;margin-left:auto;padding:3px 10px;font-size:12px}.app-main{flex:1;min-width:0}.header-btn{color:#3a3f45;cursor:pointer;background:#fff;border:1px solid #e6e6e3;border-radius:7px;margin-left:auto;padding:5px 12px;font-size:13px;font-weight:600}.header-btn:hover{background:#f0efec}.header-btn.ghost{color:#8a8f96;border-color:#0000;margin-left:0}.header-btn.ghost:hover{color:#c23b3b;background:0 0}.header-btn.share-primary{color:#fff;background:#2567f4;border-color:#2567f4}.header-btn.share-primary:hover{background:#1a56da;border-color:#1a56da}.role-badge{color:#57606a;background:#f0efec;border-radius:999px;padding:4px 11px;font-size:12px}.header-user{align-items:center;gap:8px;margin-left:16px;display:flex}.theme-toggle-btn{cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:9999px;justify-content:center;align-items:center;width:32px;height:32px;font-size:15px;transition:all .18s;display:flex}.theme-toggle-btn:hover{background:#e2e8f0;transform:scale(1.05)}.user-email{color:#57606a;font-size:13px}.app-boot{color:#8a8f96;place-items:center;height:100vh;font-size:15px;display:grid}.app-placeholder{color:#8a8f96;text-align:center;place-items:center;height:100%;padding:24px;font-size:15px;display:grid}.app-error{color:#57606a;line-height:1.9}.app-placeholder code{background:#f0f0ee;border-radius:4px;padding:.1em .4em}
