:root{--bg: #f6f6f7;--surface: #ffffff;--border: #e8e8ea;--border-strong: #dcdce0;--text: #1f2328;--muted: #8a8f98;--faint: #b7bac1;--ink: #1f2328;--accent: #3b6ef5;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 18px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.brand{display:flex;align-items:center;gap:9px}.brand-dot{width:15px;height:15px;border-radius:4px;background:linear-gradient(135deg,#3b6ef5,#7c4dff)}.brand-name{font-size:14px;font-weight:600;color:var(--text)}.presence{display:flex;align-items:center;gap:12px}.online{display:flex;align-items:center}.avatar{color:#fff;font-size:11px;font-weight:700;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--surface)}.avatar+.avatar{margin-left:-8px}.name-input{border:1px solid var(--border-strong);border-radius:7px;padding:5px 10px;font:inherit;font-size:13px;width:108px;color:var(--text);background:#fbfbfc}.name-input:focus{outline:none;border-color:var(--accent);background:#fff}.toolbar-wrap{background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.toolbar{display:flex;align-items:center;gap:2px;max-width:1040px;margin:0 auto;padding:7px 20px;flex-wrap:wrap}.tb-btn{border:none;background:transparent;border-radius:6px;min-width:28px;height:28px;padding:0 7px;font-size:13px;cursor:pointer;color:#454a52;display:inline-flex;align-items:center;justify-content:center}.tb-btn:hover{background:#f0f0f2}.tb-btn.active{background:var(--ink);color:#fff}.tb-btn:disabled{opacity:.35;cursor:default}.tb-btn.comment,.tb-btn.suggest{font-weight:600;font-size:12.5px}.tb-sep{width:1px;height:18px;background:var(--border);margin:0 6px}.tb-spacer{flex:1}.tb-swatch{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.12);cursor:pointer;padding:0;margin:0 1px}.tb-swatch.active{box-shadow:0 0 0 2px var(--ink)}.main{flex:1;display:flex;min-height:0}.doc-scroll{flex:1;overflow-y:auto;padding:36px 24px 80px}.doc-page{max-width:760px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 3px #14161c0d,0 8px 24px #14161c0a;padding:64px 76px;min-height:calc(100vh - 220px)}.editor .ProseMirror{outline:none;font-size:16px;line-height:1.7;color:#24292f}.editor .ProseMirror:focus{outline:none}.editor .ProseMirror>*+*{margin-top:.75em}.editor .ProseMirror h1{font-size:28px;font-weight:700;letter-spacing:-.01em;margin:.8em 0 .2em}.editor .ProseMirror h2{font-size:22px;font-weight:700;margin:.7em 0 .2em}.editor .ProseMirror h3{font-size:18px;font-weight:600;margin:.6em 0 .2em}.editor .ProseMirror blockquote{border-left:3px solid var(--border-strong);margin:.6em 0;padding-left:16px;color:#57606a}.editor .ProseMirror pre{background:#1f2328;color:#f3f4f6;padding:14px 16px;border-radius:8px;overflow-x:auto;font-size:13.5px}.editor .ProseMirror code{background:#f0f1f3;padding:1px 5px;border-radius:4px;font-size:.88em}.editor .ProseMirror pre code{background:none;padding:0}.editor .ProseMirror ul,.editor .ProseMirror ol{padding-left:24px}.editor .ProseMirror hr{border:none;border-top:1px solid var(--border-strong);margin:1.2em 0}.editor .ProseMirror mark{border-radius:2px;padding:0 1px}.editor .ProseMirror p.is-editor-empty:first-child:before{content:"Start writing…";color:var(--faint);float:left;pointer-events:none;height:0}.gk-comment{background:#fff3bf;border-bottom:1px solid #f0c000;cursor:pointer}.gk-comment.is-revealed{animation:gk-comment-reveal 1.5s ease-out;border-radius:2px}@keyframes gk-comment-reveal{0%,55%{background:#ffd43b;box-shadow:0 0 0 3px #f0c00059}to{background:#fff3bf;box-shadow:0 0 0 3px #f0c00000}}@media (prefers-reduced-motion: reduce){.gk-comment.is-revealed{animation:none;box-shadow:0 0 0 3px #f0c00059}}.gk-comment[data-comment-resolved-at]{background:transparent;border-bottom:1px solid #dcdce0}.gk-suggestion{background-color:#d3f9d8;border-bottom:2px solid #2f9e44;cursor:pointer}.gk-suggestion[data-suggestion-decision]{background-color:transparent;border-bottom:1px solid #dcdce0}.composer{max-width:760px;margin:14px auto 0;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);padding:12px;box-shadow:0 4px 16px #14161c0f}.composer textarea{width:100%;border:1px solid var(--border);border-radius:6px;padding:9px 10px;font:inherit;font-size:14px;resize:vertical;min-height:58px}.composer textarea:focus{outline:none;border-color:var(--accent)}.composer-actions{margin-top:9px;display:flex;gap:8px}.composer-actions button{border:none;background:var(--ink);color:#fff;border-radius:7px;padding:7px 14px;font:inherit;font-size:13px;font-weight:500;cursor:pointer}.composer-actions button:disabled{opacity:.4;cursor:default}.composer-actions .ghost{background:#f0f0f2;color:#454a52}.sidebar{width:340px;flex-shrink:0;border-left:1px solid var(--border);background:#f7f9fc;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:18px}.panel,.comments{border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:hidden}.comments{border:none;border-radius:0;background:transparent;overflow:visible}.panel-head,.comments-head{padding:11px 12px;border-bottom:1px solid var(--border);font-size:12.5px;font-weight:650;letter-spacing:0;color:#4b5563}.comments-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 10px;border-bottom:none}.comment-tabs{display:flex;gap:2px;padding:2px;margin-bottom:10px;background:#eef1f5;border-radius:8px}.comment-tabs button{flex:1;border:none;border-radius:6px;padding:5px 0;background:transparent;color:#6b7280;font:inherit;font-size:12px;cursor:pointer}.comment-tabs button.is-selected{background:var(--surface);color:var(--text);font-weight:600}.comment-tab-count{color:#a3a8b0}.comment-tabs button.is-selected .comment-tab-count{color:var(--muted)}.comments-count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#eef1f5;color:#596270;font-size:11px;line-height:20px;text-align:center}.panel-empty,.comments-empty{padding:14px 13px;font-size:12.5px;color:var(--muted);line-height:1.5}.sugg-list,.comment-list{list-style:none;margin:0;padding:0}.comment-list{display:grid;gap:9px}.sugg-item,.comment-item{padding:12px;border-bottom:1px solid var(--border);cursor:pointer}.comment-item{border:none;border-radius:12px;background:#eef2f7;padding:14px;box-shadow:0 1px 2px #232d410a}.comment-item:last-child{border-bottom:none}.comment-item:hover{background:#eaf0f6}.sugg-item:last-child,.comment-item:last-child{border-bottom:none}.sugg-item:hover{background:#fafafb}.sugg-author,.comment-author{font-size:12.5px;font-weight:600;color:var(--text);margin-bottom:5px}.comment-item.is-revealed{background:#fff;box-shadow:0 0 0 2px #4c6ef5,0 1px 2px #232d410a}.comment-rule{display:flex;align-items:baseline;gap:6px;margin:0 0 8px;padding:5px 7px;border:1px solid var(--border);border-radius:7px;background:#f7f8fa;font-size:11px;line-height:1.35;color:#626c79}.comment-rule-no{flex:none;font-weight:700;font-size:10px;color:#626c79;background:#14181e14;border-radius:3px;padding:0 4px}.comment-rule-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-rule-jump{flex:none;display:inline-flex;align-items:center;gap:3px;border:1px solid rgba(47,95,168,.3);background:#e8eff9;color:#2f5fa8;border-radius:6px;padding:1px 5px;font-size:10.5px;font-weight:600;cursor:pointer}.comment-rule-jump:hover{background:#dbe7f7}.comment-kind{width:fit-content;margin:0 0 7px;padding:0;font-size:10.5px;font-weight:650;line-height:1.25}.comment-kind-note{color:#687181}.comment-kind-single-response{color:#8a5a00}.comment-kind-request-review{color:#6b3fa0}.comment-kind-discussion{color:#3566a8}.sugg-diff{font-size:13.5px;line-height:1.5;margin-bottom:10px}.sugg-old{text-decoration:line-through;color:#b1544f;background:#ffe3e0;padding:0 3px;border-radius:3px}.sugg-arrow{color:var(--faint);margin:0 6px}.sugg-new{color:#2b7a3e;background:#d3f9d8;padding:0 3px;border-radius:3px}.sugg-actions{display:flex;gap:7px}.sugg-actions button{border:none;border-radius:6px;padding:5px 13px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.sugg-actions .accept{background:#2f9e44;color:#fff}.sugg-actions .reject{background:#f0f0f2;color:#57606a}.sugg-actions button:disabled{cursor:default;opacity:.5}.sugg-kind{width:fit-content;margin:0 0 6px;font-size:10.5px;font-weight:650;line-height:1.25}.sugg-kind-restore{color:#2f7d4f}.sugg-kind-rewrite{color:#6b3fa0}.sugg-instruction{margin-bottom:8px;font-size:12px;line-height:1.45;color:var(--muted)}.sugg-accepted,.sugg-rejected{font-size:11.5px}.sugg-accepted{color:#2b7a3e}.sugg-rejected{color:#6b7280}.comment-create{display:grid;gap:8px;padding:12px 13px;border-bottom:1px solid var(--border);background:#fafbff}.comment-create-label{font-size:12px;font-weight:650;color:#4b5563}.comment-create textarea{width:100%;min-height:72px;resize:vertical;border:1px solid var(--border-strong);border-radius:7px;padding:8px 9px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;line-height:1.45}.comment-create textarea:focus{outline:none;border-color:#a1a1aa;box-shadow:0 0 0 2px #18181b14}.comment-create-actions{display:flex;justify-content:flex-end;gap:7px}.comment-create-actions button{border:1px solid #18181b;border-radius:7px;padding:6px 11px;background:#18181b;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.comment-create-actions button:disabled{cursor:default;opacity:.45}.comment-create-actions .ghost{border-color:#e4e4e7;background:#fff;color:#3f3f46}.comment-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:5px}.comment-message{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px}.comment-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#607d9f;color:#fff;font-size:11px;font-weight:700;-webkit-user-select:none;user-select:none}.comment-message-body{min-width:0}.comment-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;min-width:0;color:#252a31;font-size:12px}.comment-identity strong{font-size:12.5px;font-weight:600}.comment-identity>span{color:#717984;font-size:10.5px;font-weight:400}.comment-header-actions{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto}.comment-icon-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 auto;border:1px solid transparent;border-radius:6px;background:transparent;color:#9aa1ac;cursor:pointer;font-size:13px}.comment-icon-button:hover{border-color:transparent;background:#e4e7eb;color:#27272a}.comment-text{font-size:13px;color:#4e5661;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.comment-request{display:flex;flex-wrap:wrap;gap:4px 7px;margin:2px 0 8px;font-size:10.5px;color:#6f7680}.comment-request strong{color:#315a96;font-weight:650}.comment-replies{display:grid;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #dce3eb}.comment-reply-composer{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #dce3eb}.comment-reply-input{min-width:0}.comment-reply-composer textarea{width:100%;height:34px;min-height:34px;max-height:110px;resize:none;border:1px solid #dadce0;border-radius:4px;padding:7px 9px;background:#fff;color:#202124;font:inherit;font-size:12px;line-height:1.4}.comment-reply-composer.is-focused textarea{height:58px;resize:vertical}.comment-reply-composer textarea:focus{outline:none;border-color:#a1a1aa;box-shadow:0 0 0 1px #a1a1aa}.comment-reply-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:7px}.comment-reply-actions button{border:1px solid #18181b;border-radius:7px;padding:6px 12px;background:#18181b;color:#fff;font:inherit;font-size:11px;font-weight:600;cursor:pointer}.comment-reply-actions button:disabled{cursor:default;border-color:#d4d4d8;background:#d4d4d8}.comment-reply-actions .ghost{border-color:#e4e4e7;background:#fff;color:#3f3f46}.comment-discussion-resolve{margin-top:9px;border:1px solid #d4d4d8;border-radius:7px;padding:5px 10px;background:#fff;color:#27272a;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.comment-discussion-resolve:disabled{cursor:default;opacity:.5}.comment-awaiting,.comment-complete,.comment-error{margin-top:9px;font-size:11.5px}.comment-override{margin-top:10px;padding-top:10px;border-top:1px solid #dde3ea}.comment-override-title{font-size:11.5px;font-weight:600;color:#4b5563;margin-bottom:6px}.comment-override textarea{width:100%;border:1px solid var(--border-strong);border-radius:6px;padding:7px 9px;font:inherit;font-size:12.5px;resize:vertical;background:var(--surface)}.comment-override textarea:focus{outline:none;border-color:var(--accent)}.comment-override-note{margin-top:5px;font-size:10.5px;color:var(--muted)}.comment-override-actions{display:flex;gap:7px;margin-top:9px}.comment-override-actions button{border:none;border-radius:6px;padding:5px 12px;background:#6b7280;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.comment-override-actions button:disabled{cursor:default;opacity:.5}.comment-override-actions .ghost{background:transparent;color:#1a73e8}.comment-dismissed{margin-top:9px;font-size:11.5px;color:#6b7280}.comment-awaiting{color:#6b7280}.comment-complete{color:#2b7a3e}.comment-error{color:#b42318}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.collaboration-carets__caret{border-left:1px solid;border-right:1px solid;margin-left:-1px;margin-right:-1px;position:relative;word-break:normal;pointer-events:none}.collaboration-carets__label{position:absolute;top:-1.5em;left:-1px;font-size:11px;font-weight:600;line-height:1;color:#fff;padding:2px 6px;border-radius:4px 4px 4px 0;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none}
