.kb-v3-active #kbHeadingToolbar{display:none!important}
.kb-v3-active .kb-editorjs-tip{display:none!important}
.kb-v3-holder{padding:0!important;overflow:visible!important;background:transparent!important}
.kb-v3-shell{position:relative;min-height:560px;border:1px solid #e8eaf4;border-radius:20px;background:#fff;box-shadow:0 12px 38px rgba(51,65,85,.06);overflow:visible}
.kb-v3-head{position:sticky;top:0;z-index:22;display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 12px;border-bottom:1px solid #eef0f7;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-radius:20px 20px 0 0}
.kb-v3-view-tabs{display:flex;gap:4px;padding:3px;border-radius:12px;background:#f4f5fb}
.kb-v3-view-tabs button{border:0;border-radius:9px;background:transparent;color:#64748b;font-size:12px;font-weight:850;padding:7px 11px;cursor:pointer}
.kb-v3-view-tabs button.active{background:#fff;color:#5b4ce3;box-shadow:0 2px 8px rgba(86,75,195,.12)}
.kb-v3-presence{display:flex;align-items:center;margin-left:auto;min-width:72px}
.kb-v3-avatar{width:26px;height:26px;margin-left:-6px;display:grid;place-items:center;border-radius:50%;border:2px solid #fff;background:var(--avatar);color:#fff;font-size:11px;font-weight:950}
.kb-v3-presence small{margin-left:7px;color:#94a3b8;font-size:11px;white-space:nowrap}
.kb-v3-connection{display:inline-flex;align-items:center;gap:6px;color:#64748b;font-size:11px;font-weight:800;white-space:nowrap}
.kb-v3-connection i{width:7px;height:7px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.12)}
.kb-v3-session-actions{display:flex;align-items:center;gap:5px;padding-left:2px}.kb-v3-session-actions button{min-height:28px;padding:4px 9px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#64748b;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.kb-v3-session-actions button:hover{border-color:#c4b5fd;background:#faf8ff;color:#6d28d9}.kb-v3-session-actions button.danger{color:#dc2626}.kb-v3-session-actions button.danger:hover{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.kb-v3-session-actions button:disabled{opacity:.55;cursor:wait}
.kb-v3-shell[data-connection="connected"] .kb-v3-connection i,.kb-v3-shell[data-connection="saved"] .kb-v3-connection i{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.kb-v3-shell[data-connection="offline"] .kb-v3-connection i,.kb-v3-shell[data-connection="error"] .kb-v3-connection i{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.kb-v3-toolbar{position:sticky;top:48px;z-index:20;display:flex;align-items:center;gap:4px;overflow-x:auto;padding:7px 12px;border-bottom:1px solid #f0f1f6;background:#fff}
.kb-v3-toolbar button{border:0;border-radius:8px;background:transparent;color:#475569;font-size:12px;font-weight:800;min-width:30px;height:30px;padding:0 8px;cursor:pointer;white-space:nowrap}
.kb-v3-toolbar button:hover{background:#f0efff;color:#5b4ce3}
.kb-v3-toolbar>span{width:1px;height:20px;background:#e5e7eb;margin:0 3px;flex:0 0 auto}
.kb-v3-visual{position:relative;padding:40px clamp(34px,8vw,108px) 120px;min-height:460px}
.kb-v3-visual .tiptap{outline:none;min-height:360px;color:#1f2937;font-size:16px;line-height:1.6}
.kb-v3-visual .tiptap>*{position:relative;margin:10px 0}.kb-v3-visual .tiptap p{min-height:1.6em;margin:0!important;padding:0!important;line-height:1.6}
.kb-v3-visual .tiptap h1{font-size:2em;line-height:1.2;margin-top:30px}.kb-v3-visual .tiptap h2{font-size:1.55em;line-height:1.3;margin-top:26px}.kb-v3-visual .tiptap h3{font-size:1.25em;margin-top:22px}
.kb-v3-visual .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#a8afc1;pointer-events:none;height:0}
.kb-v3-visual blockquote{border-left:3px solid #8075f5;padding:3px 0 3px 18px;color:#596174}
.kb-v3-visual pre{padding:18px;border-radius:14px;background:#171923;color:#f7fafc;overflow:auto}.kb-v3-visual code{font-family:"SFMono-Regular",Consolas,monospace}
.kb-v3-visual table{border-collapse:collapse;width:100%;table-layout:fixed}.kb-v3-visual td,.kb-v3-visual th{border:1px solid #dfe3ee;padding:8px;vertical-align:top}.kb-v3-visual th{background:#f6f7fb;text-align:left}
.kb-v3-visual ul[data-type="taskList"]{list-style:none;padding-left:0}.kb-v3-visual li[data-type="taskItem"]{display:flex;gap:8px}.kb-v3-visual li[data-type="taskItem"]>div{flex:1}
.knowledge-callout{padding:14px 16px!important;border:1px solid #ddd9ff;border-left:4px solid #7365ef;border-radius:12px;background:#f7f5ff}.knowledge-callout--warning{border-color:#fde4a7;border-left-color:#f59e0b;background:#fff9e9}
.knowledge-protected-block{padding:14px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px}
.kb-v3-drag-handle{width:24px;height:26px;border:0;border-radius:7px;background:transparent;color:#a0a7b7;font-weight:900;cursor:grab}.kb-v3-drag-handle:hover{background:#f0efff;color:#6d5dfb}
.collaboration-carets__caret{border-left:1px solid var(--user-color);border-right:1px solid var(--user-color);margin-left:-1px;margin-right:-1px;pointer-events:none;position:relative;word-break:normal}
.collaboration-carets__label{position:absolute;top:-1.6em;left:-1px;border-radius:4px 4px 4px 0;background:var(--user-color);color:#fff;font-size:10px;font-weight:750;line-height:1;padding:3px 5px;white-space:nowrap}
.kb-v3-source{padding:18px}.kb-v3-source-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}.kb-v3-source-head label{display:flex;align-items:center;gap:7px;color:#64748b;font-size:12px;font-weight:850}.kb-v3-source-head select{border:1px solid #dfe3ee;border-radius:9px;padding:7px 9px;background:#fff}.kb-v3-source-head [data-v3-preview]{margin-left:auto}
.kb-v3-source textarea{width:100%;min-height:460px;resize:vertical;border:1px solid #d9deea;border-radius:14px;background:#151821;color:#eef2ff;padding:18px;font:13px/1.7 "SFMono-Regular",Consolas,monospace;tab-size:2;outline:none}.kb-v3-source textarea:focus{border-color:#7c6ff2;box-shadow:0 0 0 3px rgba(124,111,242,.12)}
.kb-v3-source-report{margin-top:10px;color:#64748b;font-size:12px;line-height:1.6}.kb-v3-preview{margin-top:12px;padding:18px;border:1px solid #e3e6ef;border-radius:14px;background:#fff;color:#334155;line-height:1.7}
.kb-v3-slash{position:absolute;z-index:60;width:260px;max-height:360px;overflow:auto;padding:7px;border:1px solid #e2e5ef;border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(44,50,76,.18)}.kb-v3-slash[hidden]{display:none}.kb-v3-slash button{display:flex;flex-direction:column;width:100%;border:0;border-radius:9px;background:transparent;text-align:left;padding:9px 11px;cursor:pointer}.kb-v3-slash button:hover{background:#f4f2ff}.kb-v3-slash strong{color:#273043;font-size:13px}.kb-v3-slash small{margin-top:2px;color:#9299a9;font-size:11px}
.kb-v3-upgrade{margin-right:6px!important;color:#5b4ce3!important;border-color:#dcd7ff!important}
@media(max-width:900px){.kb-v3-visual{padding:28px 24px 90px}.kb-v3-presence small{display:none}.kb-v3-connection span{display:none}.kb-v3-session-actions button{padding:4px 7px;font-size:10px}.kb-v3-toolbar{top:48px}.kb-v3-source-head{flex-wrap:wrap}.kb-v3-source-head [data-v3-preview]{margin-left:0}}
