:root{--bg-app:#eceff3;--bg-panel:#ffffff;--bg-subtle:#f7f8fb;--bg-muted:#eef2f7;--line:#e6e9ef;--line-strong:#d6dce6;--text:#0f172a;--text-soft:#566175;--text-muted:#7a8598;--primary:#2554d9;--primary-strong:#1f45b2;--primary-soft:#e4ecff;--ok:#067647;--ok-bg:#ecfdf3;--warn:#9a6700;--warn-bg:#fff7e6;--danger:#b42318;--danger-bg:#fff1f0;--shadow-xs:0 1px 2px rgba(15,23,42,0.05);--shadow-sm:0 4px 12px rgba(15,23,42,0.06);--shadow-lg:0 14px 36px rgba(15,23,42,0.12);--radius-sm:6px;--radius-md:8px}*{box-sizing:border-box}body,html{margin:0;padding:0}body{font-family:Inter,SF Pro Text,Segoe UI,Roboto,sans-serif;font-size:13px;line-height:1.4;color:var(--text);background:var(--bg-app)}a{color:inherit}h1,h2,h3,h4,p{margin:0}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fff;color:var(--text);padding:8px 10px;outline:none;transition:border-color .12s ease,box-shadow .12s ease}input::placeholder,textarea::placeholder{color:var(--text-muted)}input:focus,select:focus,textarea:focus{border-color:#93b2ff;box-shadow:0 0 0 3px rgba(29,78,216,.16)}textarea{resize:vertical;line-height:1.5}button{height:34px;border:1px solid transparent;border-radius:var(--radius-sm);background:var(--primary);color:#fff;padding:0 12px;font-weight:560;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}button:hover{background:var(--primary-strong)}button:disabled{opacity:.55;cursor:not-allowed}.primary-btn{background:var(--primary);color:#fff}.ghost-btn,.icon-button{background:#fff;color:#334155;border:1px solid var(--line-strong)}.ghost-btn:hover,.icon-button:hover{background:#f8fafc}.danger-text{color:var(--danger)!important}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(460px,100%);border:1px solid var(--line);border-radius:12px;background:#fff;padding:22px;box-shadow:var(--shadow-sm);display:grid;grid-gap:12px;gap:12px}.auth-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:var(--text-muted)}.auth-hint{color:var(--text-soft)}.auth-form{display:grid;grid-gap:10px;gap:10px}.auth-form label{display:grid;grid-gap:5px;gap:5px}.kb-app{min-height:100vh;display:grid;grid-template-rows:64px minmax(0,1fr);background:linear-gradient(180deg,#f1f3f6,#e9edf2)}.kb-app.sidebar-open{background:linear-gradient(180deg,#eceff4,#e4e9f0)}.global-header{position:-webkit-sticky;position:sticky;top:0;z-index:60;display:grid;grid-template-columns:minmax(240px,300px) minmax(380px,1fr) auto;align-items:center;grid-gap:14px;gap:14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.98);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:0 18px;box-shadow:var(--shadow-xs)}.mobile-sidebar-toggle{display:none;width:38px;height:38px;border:1px solid var(--line-strong);border-radius:8px;background:#f8fafc;color:#334155;padding:8px;align-items:center;justify-content:center;gap:4px;flex-direction:column;box-shadow:none}.mobile-sidebar-toggle:hover{background:#edf1f6;border-color:#c9d2de}.mobile-sidebar-toggle:active{background:#e7ecf3;border-color:#bbc6d5}.mobile-sidebar-toggle:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(148,163,184,.28)}.kb-app.sidebar-open .mobile-sidebar-toggle{background:#eef2f7;border-color:#c9d2de}.mobile-sidebar-toggle span{width:16px;height:2px;border-radius:999px;background:#334155;display:block}.workspace-switcher{display:flex;align-items:center;gap:9px;position:relative}.user-avatar,.workspace-avatar{width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--primary-soft);color:#1d3f9a;font-size:12px;font-weight:620;flex-shrink:0}.workspace-switcher select{min-width:160px;max-width:320px;background:#fff}.workspace-readonly{min-width:160px;max-width:260px;height:34px;color:var(--text-soft);display:inline-flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-switcher-btn,.workspace-readonly{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fff;padding:0 10px;align-items:center}.tenant-switcher-btn{display:flex;gap:8px;min-width:140px;max-width:280px;height:36px;color:var(--text);cursor:pointer;text-align:left}.tenant-switcher-btn:hover{background:#f8fafc;border-color:#c9d2de}.tenant-switcher-icon{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;font-size:11px;font-weight:700;flex-shrink:0}.tenant-switcher-label{flex:1 1;min-width:0;font-size:13px;font-weight:560;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-switcher-chevron{flex-shrink:0;color:var(--text-muted);transition:transform .15s ease}.tenant-switcher-chevron.open{transform:rotate(180deg)}.tenant-dropdown{position:absolute;top:calc(100% + 6px);left:0;z-index:100;width:260px;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden;animation:tenant-dropdown-in .12s ease}@keyframes tenant-dropdown-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.tenant-dropdown-search{padding:8px;border-bottom:1px solid var(--line)}.tenant-dropdown-search input{height:32px;font-size:12px;border-radius:6px}.tenant-dropdown-list{overflow-y:auto;padding:4px;max-height:320px}.tenant-dropdown-empty{padding:16px;text-align:center;color:var(--text-muted);font-size:12px}.tenant-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;height:34px;padding:0 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font-size:13px;font-weight:400;cursor:pointer;text-align:left}.tenant-dropdown-item:hover{background:var(--bg-subtle)}.tenant-dropdown-item.active{background:var(--primary-soft);border-color:#d6e1f7;color:var(--primary);font-weight:560}.tenant-dropdown-item-icon{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7;color:#475569;font-size:11px;font-weight:700;flex-shrink:0}.tenant-dropdown-item.active .tenant-dropdown-item-icon{background:var(--primary);color:#fff}.tenant-dropdown-item-icon img,.tenant-switcher-icon img{width:100%;height:100%;object-fit:cover;border-radius:999px}.tenant-avatar-preview{display:flex;align-items:center;gap:10px;margin-top:-2px}.tenant-avatar-preview img{width:36px;height:36px;object-fit:cover}.tenant-avatar-preview img,.tenant-table-avatar{border-radius:999px;border:1px solid var(--line);background:#fff}.tenant-table-avatar{width:28px;height:28px;display:inline-flex;overflow:hidden}.tenant-table-avatar img{width:100%;height:100%;object-fit:cover}.tenant-no-avatar{color:var(--text-muted);font-size:12px}.tenant-avatar-mode-switch{display:inline-flex;gap:6px;margin-top:8px}.mini-toggle-btn{height:30px;padding:0 10px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--text-soft);font-size:12px;font-weight:550}.mini-toggle-btn:hover{background:#f8fafc}.mini-toggle-btn.active{border-color:#c8d7f8;background:#e9f0ff;color:#1d4ed8}.tenant-dropdown-item-name{flex:1 1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-dropdown-item-check{flex-shrink:0;font-size:13px;color:var(--primary)}.omnibar{position:relative}.omnibar input{height:38px;border-radius:8px;background:var(--bg-subtle);border-color:#dfe4ec;padding-left:34px}.omnibar-icon{position:absolute;top:50%;left:12px;width:13px;height:13px;border:2px solid #94a3b8;border-radius:999px;transform:translateY(-55%)}.omnibar-icon:after{content:"";position:absolute;width:6px;height:2px;background:#94a3b8;right:-5px;bottom:-1px;transform:rotate(45deg)}.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px}.bell-btn{position:relative;width:36px;padding:0;border-color:#d7deea;background:#f7f9fd}.bell-btn:hover{background:#edf2fa}.moderation-icon-wrap{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#1d4ed8;color:#fff;box-shadow:inset 0 -1px 0 rgba(15,23,42,.18)}.moderation-icon{width:14px;height:14px;stroke:currentColor}.notif-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:999px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;background:#dc2626;color:#fff;border:2px solid #fff}.profile-pill{display:flex;align-items:center;gap:8px;min-width:170px;padding:3px 8px 3px 4px;border:1px solid var(--line-strong);border-radius:999px;background:#fff}.profile-pill strong{font-size:12px;display:block}.profile-pill small{color:var(--text-muted);font-size:11px}.add-menu-wrap{position:relative;z-index:85}.menu-popover{position:absolute;z-index:40;right:0;top:calc(100% + 6px);min-width:170px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow-lg);padding:6px;display:grid;grid-gap:3px;gap:3px}.menu-popover button{width:100%;justify-content:flex-start;text-align:left;background:#fff;color:#0f172a;border:1px solid transparent;height:30px}.menu-popover button:hover{background:#f8fafc;border-color:#e5eaf2}.add-trigger{gap:8px;height:36px;padding:0 12px 0 10px;border-radius:8px;box-shadow:0 1px 0 rgba(15,23,42,.14)}.add-trigger,.add-trigger-plus{display:inline-flex;align-items:center}.add-trigger-plus{width:18px;height:18px;border-radius:999px;background:rgba(255,255,255,.22);justify-content:center;font-size:12px}.add-trigger-caret{font-size:10px;opacity:.9}.add-menu-popover{z-index:120;min-width:280px;padding:7px}.menu-popover button.add-menu-item{height:auto;min-height:46px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;grid-gap:9px;gap:9px;padding:8px;border-radius:7px}.add-item-icon{width:26px;height:26px;border-radius:7px;border:1px solid #cddaf7;background:#e8f0ff;color:#1d4ed8;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.add-item-icon.image{border-color:#bde8d0;background:#e9fdf0;color:#047857}.add-item-icon.video{border-color:#bfd6ff;background:#eaf2ff;color:#1d4ed8}.add-item-text{display:grid;grid-gap:1px;gap:1px}.add-item-text strong{font-size:12px;line-height:1.2}.add-item-text small{color:#6b7280;font-size:11px;line-height:1.2}.kb-body{display:grid;grid-template-columns:270px minmax(0,1fr);grid-gap:12px}.kb-body,.left-sidebar{min-height:0;gap:12px;padding:12px}.left-sidebar{border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;box-shadow:var(--shadow-xs)}.primary-nav{display:grid;grid-gap:4px;gap:4px}.primary-nav-item{width:100%;text-align:left;justify-content:flex-start;background:transparent;color:#334155;border:1px solid transparent}a.primary-nav-item{display:flex;align-items:center;height:34px;padding:0 12px;border-radius:var(--radius-sm);text-decoration:none;font-weight:560;font-size:13px}.primary-nav-item:hover{background:#eef2f8}.primary-nav-item.active{background:#f2f6ff;border-color:#d6e1f7;color:#1e3a8a}.sidebar-section-head{display:flex;align-items:center;justify-content:space-between;color:var(--text-soft);font-weight:560;padding:0 4px}.section-add-btn{height:26px;padding:0 8px 0 6px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d5ddec;border-radius:6px;background:#f8faff;color:#1e3a8a;font-weight:600;font-size:11px}.section-add-btn:hover{background:#eef3fb;border-color:#c8d3e6}.section-add-btn span:first-child{width:14px;height:14px;border-radius:999px;background:#e7eef9;display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:11px}.sections-tree-panel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px;flex:1 1;min-height:120px;max-height:400px;overflow-x:hidden;overflow-y:auto}.tree-list{list-style:none;margin:0;padding:0;display:block}.tree-list-nested{margin-left:6px;padding-left:4px;border-left:1px dashed #d7e1f0}.tree-row{display:flex;align-items:center;gap:4px;width:100%;min-height:28px;border:1px solid transparent;border-radius:6px;background:transparent;padding:1px 6px;color:#334155;margin-bottom:2px;overflow:hidden}.tree-row.active{border-color:#d6e1f7;background:#f2f6ff;color:#1e3a8a}.tree-row.drop-target{border-color:#98b8ff;background:#e4edff}.tree-root{justify-content:flex-start;margin-bottom:6px;font-weight:600;border-color:#e3e8f1;background:#f8f9fc}.tree-collapse,.tree-collapse-spacer{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:#64748b;border:1px solid #d8dee8;border-radius:4px;background:#fff;padding:0;flex-shrink:0}.tree-collapse-spacer{border-color:transparent;background:transparent}.tree-collapse:hover{background:#f8fafc;border-color:#cfd7e4;color:#475569}.tree-label{flex:1 1;min-width:0;text-align:left;justify-content:flex-start;border:0;height:24px;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:24px}.tree-label,.tree-label:hover{background:transparent;color:inherit}.tree-actions{display:flex;gap:4px;align-items:center}.tree-actions .secondary-action{opacity:0;pointer-events:none;transition:opacity .12s ease}.tree-row.active .tree-actions .secondary-action,.tree-row:hover .tree-actions .secondary-action{opacity:1;pointer-events:auto}.tree-icon-btn{width:18px;height:18px;border:1px solid var(--line-strong);border-radius:5px;background:#fff;color:#334155;padding:0;font-size:10px}.tree-icon-btn:hover{background:#f8fafc;border-color:#cfd8e7;color:#1f2937}.tree-add-btn{border-color:#c7d8fb;background:#edf3ff;color:#1d4ed8;font-weight:700}.tree-add-btn:hover{background:#e1ecff;border-color:#b6cdf8;color:#1d4ed8}.tree-icon-btn.danger{color:var(--danger)}.tree-icon-btn.danger:hover{background:#fff1f0;border-color:#f1c0bb;color:var(--danger)}.tree-rename{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;grid-gap:6px;gap:6px;width:100%}.tree-rename input{height:28px}.tree-inline-btn{height:28px;padding:0 10px;border:1px solid var(--line-strong);background:#fff;color:#334155;font-size:12px;font-weight:560}.tree-inline-btn:hover{background:#f8fafc;border-color:#cfd8e7;color:#1f2937}.tree-inline-btn.icon{display:inline-flex;align-items:center;width:20px;min-width:20px;height:20px;padding:0;font-size:12px;justify-content:center;border-radius:5px}.tree-inline-btn.confirm{border-color:#b5dcc9;background:#f3fcf7;color:#067647}.tree-inline-btn.confirm:hover{background:#e8f7ef;border-color:#95c8af;color:#065f46}.tree-inline-btn.cancel{border-color:#efcfcc;background:#fff7f6;color:#b42318}.tree-inline-btn.cancel:hover{background:#ffedeb;border-color:#deadaa;color:#912018}.logout-btn{background:#fff;border-color:var(--line-strong);color:#334155}.logout-btn:hover{background:#f8fafc;border-color:#d0d7e3;color:#1f2937}.empty-state{color:var(--text-muted);font-size:12px;padding:8px 10px}.content-area{min-height:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#ffffff,#fcfdff);box-shadow:var(--shadow-xs);display:grid;grid-gap:10px;gap:10px;align-content:flex-start}.content-toolbar{justify-content:space-between;gap:12px}.breadcrumbs,.content-toolbar{display:flex;align-items:center}.breadcrumbs{gap:7px;color:var(--text-soft);font-size:12px}.breadcrumbs b{color:#9aa5b8;font-weight:500}.toolbar-controls{display:flex;align-items:center;gap:8px}.filter-menu{position:relative}.icon-filter-btn{display:inline-flex;align-items:center;gap:6px;height:32px;background:#fff;color:#334155;border:1px solid var(--line-strong);max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-filter-btn.active{border-color:#ced9ef;background:#f2f6ff;color:#1e3a8a}.icon-filter-btn:hover{background:#f8fafc;border-color:#d3dceb;color:#334155}.icon-filter-btn.active:hover{background:#eaf0fb;border-color:#c7d4ec;color:#1e3a8a}.icon-filter-btn:disabled{opacity:1;color:#475569;background:#f8fafc}.filter-icon{width:12px;height:12px;border:1.5px solid #64748b;border-radius:3px;display:inline-block}.filter-icon.status{border-radius:999px}.filter-icon.author{border-radius:999px 999px 4px 4px}.view-toggle{display:inline-flex;border:1px solid var(--line-strong);border-radius:6px;overflow:hidden;background:#fff}.view-toggle button{height:30px;border:0;border-right:1px solid var(--line-strong);background:transparent;color:#475569;border-radius:0}.view-toggle button:last-child{border-right:0}.view-toggle button.active{background:#f2f6ff;color:#1e3a8a}.view-toggle button:hover{background:#f5f7fb;color:#334155}.view-toggle button.active:hover{background:#eaf0fb;color:#1e3a8a}.materials-meta{display:flex;align-items:center;justify-content:space-between;color:var(--text-soft);font-size:12px;gap:10px}.filter-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.filter-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:999px;border:1px solid #d8deea;background:#f5f8ff;color:#374a74;font-size:11px}.filter-chip button{width:16px;height:16px;border-radius:999px;border:1px solid #bfd1f2;background:#fff;color:#355ca5;padding:0;line-height:1;font-size:12px}.filter-chip button:hover{background:#f5f9ff;border-color:#9db9ea;color:#23407f}.filter-clear-btn{height:26px;padding:0 10px;border:1px solid #d5dce8;background:#fff;color:#475569;font-size:11px}.filter-clear-btn:hover{background:#f8fafc;border-color:#c5d0e1;color:#334155}.engine-opensearch{color:var(--ok)}.engine-database{color:var(--warn)}.editor-panel,.panel,.table-shell{border:1px solid var(--line);border-radius:8px;background:var(--bg-panel);box-shadow:var(--shadow-xs)}.table-shell{overflow:visible}.materials-table{width:100%;border-collapse:collapse;min-width:720px;table-layout:fixed}.materials-table td,.materials-table th{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.materials-table th{background:#fafbfd;color:var(--text-soft);font-weight:560;font-size:12px;position:-webkit-sticky;position:sticky;top:0;z-index:1}.materials-table th:first-child{width:40%}.materials-table th:nth-child(2){width:14%}.materials-table th:nth-child(3){width:16%}.materials-table th:nth-child(4){width:18%}.materials-table th:nth-child(5){width:12%}.materials-table td:last-child,.materials-table th:last-child{white-space:nowrap}.materials-table tbody tr{cursor:pointer}.materials-table tbody tr:hover{background:#f8fafd}.materials-table tbody tr.selected{background:#f2f6fd}.asset-cell{display:flex;align-items:center;gap:10px;min-width:0}.asset-cell>div{min-width:0;flex:1 1}.asset-cell strong{font-size:13px;font-weight:560}.asset-cell small,.asset-cell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-cell small{color:var(--text-muted);font-size:11px}.materials-table td:nth-child(3){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-type-icon{width:22px;height:22px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8e2f5;background:#edf3ff;color:#1f4db0;font-size:11px;font-weight:700}.asset-type-icon.image{background:#edfdf5;border-color:#cfeedd;color:#047857}.asset-type-icon.video{background:#eff6ff;border-color:#d6e6ff;color:#1d4ed8}.asset-type-icon.presentation{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.status-pill{display:inline-flex;align-items:center;border-radius:999px;border:1px solid var(--line-strong);padding:2px 9px;font-size:11px;font-weight:560}.status-published{color:var(--ok);border-color:#b7e4cc;background:var(--ok-bg)}.status-pending{color:var(--warn);border-color:#f3d3a2;background:var(--warn-bg)}.status-rejected{color:var(--danger);border-color:#f5c7c3;background:var(--danger-bg)}.status-draft{color:#475569;border-color:#dce2eb;background:#f5f7fb}.row-menu{position:relative;display:inline-flex;justify-content:center;width:100%}.ellipsis-btn{width:30px;padding:0;background:#fff;color:#475569;border:1px solid #d5dce8;font-size:15px;letter-spacing:1px;margin:0 auto}.ellipsis-btn:hover{border-color:#c3ccd9;background:#f8fafc}.row-actions{min-width:150px;right:0;z-index:50}.materials-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-gap:10px;gap:10px}.asset-card{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;display:grid;grid-template-rows:140px auto auto;cursor:pointer;box-shadow:var(--shadow-xs)}.asset-card:hover{border-color:#cfd9ea;box-shadow:var(--shadow-sm)}.asset-preview{position:relative;background:#f1f5f9}.asset-preview img{width:100%;height:100%;object-fit:cover}.asset-preview .status-pill{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.94)}.asset-preview-fallback{width:100%;height:100%;display:grid;place-items:center;color:#475569;font-weight:600;font-size:14px}.asset-preview-fallback.image{background:linear-gradient(130deg,#f0fdf4,#dcfce7)}.asset-preview-fallback.video{background:linear-gradient(130deg,#eff6ff,#dbeafe)}.asset-preview-fallback.article{background:linear-gradient(130deg,#f8fafc,#f1f5f9)}.asset-card-body{padding:9px 10px;display:grid;grid-gap:4px;gap:4px;min-width:0}.asset-card-body strong{font-size:13px}.asset-card-body small,.asset-card-body strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-card-body small{color:var(--text-muted)}.asset-card-actions{border-top:1px solid var(--line);padding:8px 10px;display:flex;gap:6px}.asset-card-actions button{flex:1 1}.editor-panel{padding:14px;display:grid;grid-gap:12px;gap:12px}.editor-head{justify-content:space-between}.editor-head,.editor-head-actions{display:flex;align-items:center;gap:10px}.editor-head-actions label{display:flex;align-items:center;gap:6px;color:var(--text-soft)}.editor-head-actions input{width:auto}.editor-form{display:grid;grid-gap:10px;gap:10px}.editor-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.editor-layout{display:block}.editor-layout.with-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:8px;gap:8px}.preview-panel,.reader-surface{border:1px solid var(--line);border-radius:6px;background:var(--bg-subtle);padding:10px}.editor-actions{display:flex;align-items:center;gap:8px}.panel{padding:14px;display:grid;grid-gap:12px;gap:12px;background:linear-gradient(180deg,#ffffff,#fbfcff)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head-meta{color:var(--text-muted);font-size:13px;margin-right:auto}.row-inactive{opacity:.5}.inline-actions{display:flex;align-items:center;gap:6px}.compact-table{width:100%;border-collapse:collapse}.compact-table td,.compact-table th{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-size:13px}.compact-table th{background:#fafbfd;color:var(--text-soft);font-weight:560;font-size:12px;position:-webkit-sticky;position:sticky;top:0;z-index:1}.compact-table td:last-child,.compact-table th:last-child{width:1%;white-space:nowrap}.compact-table tbody tr{transition:background 80ms ease}.compact-table tbody tr:hover{background:#f8fafd}.compact-table strong{font-weight:560}.compact-table code{font-size:12px;background:#f1f5f9;padding:2px 6px;border-radius:4px;color:#475569}.compact-action-btn{height:28px;padding:0 10px;font-size:12px;font-weight:560;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:#334155;cursor:pointer}.compact-action-btn:hover{background:#f8fafc;border-color:#c9d2de}.compact-action-btn.danger{color:var(--danger);border-color:#f2b8b5}.compact-action-btn.danger:hover{background:#fff3f2;border-color:#e29590}.compact-action-btn.ok{color:var(--ok);border-color:#b5dcc9}.compact-action-btn.ok:hover{background:#f3fcf7;border-color:#95c8af}.moderation-task-actions{flex-wrap:wrap}.moderation-task-btn{height:28px;padding:0 10px;border:1px solid #d3dbe8;border-radius:6px;background:#fff;color:#334155;font-size:12px;font-weight:560}.moderation-task-btn:hover{background:#f6f9fd;border-color:#becce2;color:#1f2937}.moderation-task-btn.publish{border-color:#c6d8ff;background:#edf3ff;color:#1d4ed8}.moderation-task-btn.publish:hover{border-color:#aac3f8;background:#e2ecff;color:#1e40af}.moderation-task-btn.reject{border-color:#efcfcc;background:#fff7f6;color:#b42318}.moderation-task-btn.reject:hover{border-color:#deadaa;background:#ffedeb;color:#912018}.dashboard-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));grid-gap:8px;gap:8px}.dashboard-stats article{border:1px solid var(--line);border-radius:6px;background:linear-gradient(180deg,#f9fbff,#f6f8fc);padding:9px;display:grid;grid-gap:4px;gap:4px}.dashboard-stats article span{color:var(--text-soft);font-size:11px}.dashboard-stats article strong{font-size:18px}.search-policy-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px}.search-policy-form label{display:grid;grid-gap:5px;gap:5px}.checkbox-row{display:flex!important;align-items:center;gap:6px;padding-top:18px}.checkbox-row input{width:auto}.analytics-block{border:1px solid var(--line);border-radius:6px;background:var(--bg-subtle);padding:10px;display:grid;grid-gap:4px;gap:4px}.message{border-radius:6px;padding:8px 10px;border:1px solid var(--line);font-size:12px}.message.error{color:var(--danger);border-color:#f4c7c3;background:var(--danger-bg)}.message.success{color:var(--ok);border-color:#b7e4cc;background:var(--ok-bg)}.message.info{color:#334155;border-color:#dce3ef;background:#f8fafd}.external-link{color:#1d4ed8;text-decoration:none}.external-link:hover{text-decoration:underline}.modal-overlay{position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.32);display:grid;place-items:center;padding:20px}.modal-card{width:min(460px,100%);border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-lg);padding:16px;display:grid;grid-gap:10px;gap:10px}.modal-card-wide{width:min(520px,100%)}.modal-card h3{font-size:17px}.modal-card p{color:var(--text-soft);font-size:12px}.modal-card form{display:grid;grid-gap:10px;gap:10px}.modal-card label{display:grid;grid-gap:6px;gap:6px;color:var(--text-soft);font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.danger-btn{background:#dc2626;border-color:#dc2626;color:#fff}.danger-btn:hover{background:#b91c1c;border-color:#b91c1c}.drawer-overlay{position:fixed;inset:0;background:rgba(15,23,42,.26);z-index:70;display:flex;justify-content:flex-end}.kb-sidebar-backdrop{display:none}.drawer-panel{width:min(640px,92vw);height:100%;background:#fff;border-left:1px solid var(--line);box-shadow:var(--shadow-lg);display:grid;grid-template-rows:auto minmax(0,1fr)}.drawer-header{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.drawer-header h3{margin-bottom:8px;font-size:17px}.drawer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--bg-subtle)}.drawer-action-btn{height:30px;padding:0 11px;border:1px solid #d3dbe8;background:#fff;color:#334155;font-size:12px;font-weight:600}.drawer-action-btn:hover{background:#f5f8fd;border-color:#becbe0;color:#1f2937}.drawer-action-btn.publish{border-color:var(--primary);background:var(--primary);color:#fff}.drawer-action-btn.publish:hover{border-color:var(--primary-strong);background:var(--primary-strong);color:#fff}.drawer-action-btn.secondary{border-color:#cbd5e1;background:#fff}.drawer-action-btn.reject{border-color:#f2b8b5;background:#fff3f2;color:#b42318}.drawer-action-btn.reject:hover{border-color:#e29590;background:#ffe4e1;color:#912018}.drawer-action-btn.close{border-color:#c9d2e0;background:#f8fafc;color:#334155}.drawer-action-btn.close:hover{border-color:#b5c3d8;background:#eef2f7;color:#1f2937}.drawer-body{overflow:auto;padding:14px;display:grid;grid-gap:12px;gap:12px}.drawer-media{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#000}.drawer-media iframe,.drawer-media img,.drawer-media video{width:100%;display:block;min-height:240px;border:0}.metadata-grid{border-top:1px solid var(--line);padding-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.metadata-grid div{border:1px solid var(--line);border-radius:6px;padding:8px;background:var(--bg-subtle);display:grid;grid-gap:3px;gap:3px}.metadata-grid span{color:var(--text-muted);font-size:11px}.metadata-grid strong{font-size:12px}.markdown{line-height:1.56;font-size:13px;color:#1f2937}.markdown h2,.markdown h3{margin-top:14px}.markdown ol,.markdown p,.markdown ul{margin:8px 0}.markdown ol,.markdown ul{padding-left:20px}@media (max-width:1220px){.global-header{grid-template-columns:minmax(190px,240px) minmax(0,1fr) auto;gap:10px}.profile-pill{min-width:0}.kb-body{grid-template-columns:240px minmax(0,1fr)}.search-policy-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:980px){.kb-app{grid-template-rows:auto minmax(0,1fr)}.global-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"toggle workspace tools" "search search search";gap:8px;padding:10px 10px 12px}.mobile-sidebar-toggle{display:inline-flex;grid-area:toggle}.workspace-switcher{grid-area:workspace}.omnibar{grid-area:search}.header-tools{grid-area:tools}.workspace-switcher{min-width:0}.tenant-switcher-btn,.workspace-readonly,.workspace-switcher select{min-width:100px;max-width:100%}.tenant-dropdown{width:min(260px,90vw)}.header-tools{justify-content:flex-end;flex-wrap:nowrap;min-width:0}.profile-pill{min-width:0;width:auto;max-width:220px}.profile-pill>div{min-width:0}.profile-pill small,.profile-pill strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-body{grid-template-columns:1fr;gap:0;padding:10px}.left-sidebar{position:fixed;left:10px;top:106px;bottom:10px;width:min(300px,calc(100vw - 20px));z-index:85;transform:translateX(-110%);transition:transform .18s ease;max-height:none;overflow:auto}.left-sidebar.open{transform:translateX(0)}.kb-sidebar-backdrop{display:block;position:fixed;inset:0;z-index:80;border:0;background:rgba(47,55,67,.38)!important;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);color:transparent;box-shadow:none;width:100%;height:100vh;padding:0;margin:0;border-radius:0}.logout-btn{margin-top:0}.content-toolbar{flex-direction:column;align-items:stretch}.toolbar-controls{flex-wrap:wrap}.materials-meta{flex-direction:column;align-items:flex-start}.editor-layout.with-preview,.metadata-grid{grid-template-columns:1fr}.content-area{padding:10px;border-radius:10px}}@media (max-width:760px){.global-header{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"toggle workspace" "search search" "tools tools";row-gap:10px}.header-tools{justify-content:space-between;flex-wrap:wrap}.profile-pill{width:auto;min-width:0;max-width:min(100%,220px)}.profile-pill small{display:none}.add-trigger{flex:0 1 auto;justify-content:center}.left-sidebar{top:150px}.search-policy-form{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(120px,1fr))}}.pub{min-height:100vh;background:#f7f8fa}.pub-header{position:-webkit-sticky;position:sticky;top:0;z-index:40;height:56px;border-bottom:1px solid #eaedf0;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);justify-content:flex-start;padding:0 16px}.pub-header,.pub-header-inner{display:flex;align-items:center}.pub-header-inner{width:100%;gap:12px}.pub-brand{display:flex;align-items:center;gap:10px}.pub-brand-icon{width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef0ff;color:#4f5bd5;overflow:hidden}.pub-brand-icon img{width:100%;height:100%;object-fit:cover}.pub-brand h1{font-size:15px;font-weight:600;color:#0a2540;line-height:1.2}.pub-brand p{font-size:12px;color:#8792a2;line-height:1.2}.pub-toggle{display:none;width:32px;height:32px;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#425466;align-items:center;justify-content:center;cursor:pointer}.pub-toggle:hover{background:#f4f5f7}.pub-layout{width:100%;margin:0;display:grid;grid-template-columns:320px minmax(0,1fr);grid-gap:0;gap:0;padding-bottom:40px;min-height:calc(100vh - 56px)}.pub-sidebar{position:-webkit-sticky;position:sticky;top:56px;max-height:calc(100vh - 56px);overflow-y:auto;border:0;border-right:1px solid #eaedf0;border-radius:0;background:#fff;padding:20px 18px;display:grid;align-content:flex-start;grid-gap:12px;gap:12px}.pub-sidebar-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#8792a2;padding:0 8px}.pub-sidebar-workspace{font-size:12px;color:#8792a2;padding:0 8px;margin:0}.pub-nav{display:grid;grid-gap:2px;gap:2px}.pub-nav-row{display:flex;align-items:center;border-radius:6px;transition:color .12s ease}.pub-nav-chevron{all:unset;width:18px;height:18px;color:#64748b;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;transition:color .12s ease,background-color .12s ease}.pub-nav-chevron:hover{background:#eef2f7;color:#334155}.pub-nav-chevron.leaf{color:#94a3b8;cursor:default}.pub-nav-chevron.leaf:hover{background:transparent;color:#94a3b8}.pub-sidebar-articles{display:grid;grid-gap:4px;gap:4px}.pub-article-nav-item{width:100%;min-height:32px;border:0;border-radius:6px;background:transparent;color:#425466;display:flex;align-items:center;gap:8px;padding:0 10px;text-align:left;font-size:13px;cursor:pointer}.pub-article-nav-item span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pub-article-nav-item:hover{background:#f4f5f7}.pub-article-nav-item.active{background:#eef0ff;color:#4f5bd5;font-weight:600}.pub-sidebar-empty{margin:4px 10px 0;color:#94a3b8;font-size:12px}.pub-nav-item{display:flex;align-items:center;gap:8px;text-align:left;min-height:34px;padding:0 10px;border-radius:6px;border:none;color:#425466;font-size:13px;font-weight:500;cursor:pointer;transition:background .1s ease,color .1s ease}.pub-nav-item,.pub-nav-row .pub-nav-item{width:100%;background:transparent}.pub-nav-item:hover{background:#f4f5f7;color:#0a2540}.pub-nav-item.active{background:transparent;color:#334155;font-weight:600}.pub-nav-doc-item{min-height:30px;font-size:12px;color:#64748b;font-weight:500}.pub-nav-doc-item.active{color:#4f5bd5}.pub-nav-nested,.pub-nav-tree{list-style:none;margin:0;padding:0}.pub-nav-nested{border-left:1px solid #eaedf0;margin-left:22px}.pub-main{display:grid;align-content:flex-start;grid-gap:16px;gap:16px;padding:16px 22px 0}.pub-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:#64748b;padding:2px 2px 0}.pub-breadcrumb-part{display:inline-flex;align-items:center;gap:6px}.pub-breadcrumb-sep{color:#94a3b8}.pub-main .pub-reader-status{width:100%;margin:24px 0}.pub-search-wrap{position:relative}.pub-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8792a2;pointer-events:none}.pub-search-wrap input{width:100%;height:44px;border:1px solid #e0e3e7;border-radius:10px;background:#fff;padding:0 14px 0 42px;font-size:14px;color:#0a2540;transition:border-color .15s ease,box-shadow .15s ease}.pub-search-wrap input:focus{outline:none;border-color:#a4b0ff;box-shadow:0 0 0 3px rgba(79,91,213,.1)}.pub-search-wrap input::placeholder{color:#a3acb9}.pub-toolbar{display:flex;align-items:center;gap:8px;padding:0 2px}.pub-count{font-size:13px;color:#8792a2;font-weight:500}.pub-active-section{font-size:12px;color:#4f5bd5;background:#eef0ff;padding:3px 10px;border-radius:999px;font-weight:500}.pub-doc-list,.pub-doc-list-item{display:grid;grid-gap:6px;gap:6px}.pub-doc-list-item{width:100%;border:1px solid #eaedf0;border-radius:8px;background:#fff;color:#1e293b;text-align:left;padding:12px 14px;cursor:pointer}.pub-doc-list-item:hover{border-color:#d5dbe3;background:#fbfcfe}.pub-doc-list-title{font-size:14px;font-weight:600;line-height:1.35}.pub-doc-list-meta{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#64748b}.pub-articles{display:grid;grid-gap:8px;gap:8px}.pub-card{display:grid;grid-gap:10px;gap:10px;padding:16px 20px;border:1px solid #eaedf0;border-radius:10px;background:#fff;text-decoration:none;color:inherit;transition:border-color .12s ease,box-shadow .12s ease}.pub-card:hover{border-color:#d0d5dd;box-shadow:0 4px 12px rgba(0,0,0,.05)}.pub-card-main{display:grid;grid-gap:4px;gap:4px}.pub-card-main h3{font-size:16px;font-weight:600;color:#0a2540;margin:0;line-height:1.35;transition:color .12s ease}.pub-card:hover h3{color:#4f5bd5}.pub-card-main p{font-size:14px;color:#425466;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pub-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.pub-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:4px;background:#f4f5f7;font-size:12px;color:#425466;font-weight:500}.pub-date{font-size:12px;color:#8792a2}.pub-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#8792a2;text-align:center;gap:8px}.pub-empty h3{font-size:16px;color:#425466;font-weight:600;margin:4px 0 0}.pub-empty p{font-size:14px;color:#8792a2;margin:0}.pub-error{padding:12px 16px;border-radius:8px;background:#fff5f5;border:1px solid #fecaca;color:#dc2626;font-size:14px}.pub-loading{display:grid;grid-gap:8px;gap:8px}.pub-skeleton{height:80px;border-radius:10px;background:linear-gradient(90deg,#f0f1f3 25%,#e8e9eb 50%,#f0f1f3 75%);background-size:200% 100%;animation:pub-shimmer 1.5s ease-in-out infinite}@keyframes pub-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.pub-backdrop{display:none}.pub-backdrop:focus-visible,.pub-backdrop:hover{background:rgba(15,23,42,.36)}.pub-reader{width:min(740px,calc(100% - 32px));margin:24px auto 48px}.pub-back{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;margin-bottom:16px;border-radius:6px;color:#425466;text-decoration:none;font-size:14px;font-weight:500;transition:color .1s ease,background .1s ease}.pub-back:hover{background:#eef0f3;color:#0a2540}.pub-article{background:#fff;border:1px solid #eaedf0;border-radius:12px;padding:32px;display:grid;grid-gap:20px;gap:20px}.pub-article-header{display:grid;grid-gap:12px;gap:12px}.pub-kicker{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#4f5bd5;margin:0}.pub-article h1{font-size:28px;font-weight:700;line-height:1.25;color:#0a2540;margin:0}.pub-article-desc{font-size:16px;line-height:1.5;color:#425466;margin:0}.pub-article-meta-row{display:flex;flex-wrap:wrap;gap:16px;padding-top:4px}.pub-meta-item{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#8792a2}.pub-divider{height:1px;background:#eaedf0;border:none;margin:0}.pub-video{position:relative;border-radius:8px;overflow:hidden;border:1px solid #eaedf0;background:#000;aspect-ratio:16/9}.pub-video iframe{width:100%;height:100%;border:0}.pub-image{margin:0;border-radius:8px;overflow:hidden;border:1px solid #eaedf0}.pub-image img{width:100%;display:block}.pub-ext-link{display:inline-flex;align-items:center;gap:6px;color:#4f5bd5;font-weight:500;font-size:14px;text-decoration:none}.pub-ext-link:hover{text-decoration:underline}.pub-reader-status{width:min(740px,calc(100% - 32px));margin:80px auto;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;color:#8792a2}.pub-spinner{animation:pub-spin 1s linear infinite}@keyframes pub-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.pub-article-body .markdown{font-size:15px;line-height:1.7;color:#2a3249}.pub-article-body .markdown h2{font-size:20px;font-weight:650;margin:28px 0 8px;color:#0a2540}.pub-article-body .markdown h3{font-size:17px;font-weight:600;margin:22px 0 6px;color:#0a2540}.pub-article-body .markdown p{margin:12px 0}.pub-article-body .markdown ol,.pub-article-body .markdown ul{margin:12px 0;padding-left:24px}.pub-article-body .markdown li{margin:4px 0}@media (max-width:960px){.pub-toggle{display:inline-flex}.pub-layout{grid-template-columns:minmax(0,1fr);width:min(100%,calc(100% - 24px));margin-top:12px}.pub-sidebar{position:fixed;left:12px;top:68px;bottom:12px;width:min(300px,calc(100% - 24px));z-index:70;transform:translateX(calc(-100% - 24px));transition:transform .2s ease;box-shadow:0 20px 60px rgba(0,0,0,.15);max-height:none;border:1px solid #eaedf0;border-radius:12px}.pub-sidebar.open{transform:translateX(0)}.pub-backdrop{display:block;position:fixed;inset:0;z-index:65;border:0;background:rgba(15,23,42,.36);color:transparent;box-shadow:none;height:auto;border-radius:0;padding:0}}@media (max-width:640px){.pub-header{height:52px;padding:0 12px}.pub-brand h1{font-size:14px}.pub-brand p{display:none}.pub-layout{width:calc(100% - 16px);gap:12px}.pub-card{padding:14px 16px}.pub-card-main h3{font-size:15px}.pub-reader{width:calc(100% - 24px);margin-top:16px}.pub-article{padding:20px 16px}.pub-article h1{font-size:22px}.pub-article-meta-row{gap:10px}}