/* Hikos · 远端接线 · 知识中枢整页（src/backend/knowhub.js；任务 e8a5bf81 / 道哥 #20186 ②③）。
   信息架构对齐经典视图的 KnowledgeHubPage（小组切换 → 智能问答 → 交付物 · 知识页 · 文件夹 · 回收站），样式跟 Hikos 的 --k-* 皮肤令牌走。 */
html[data-kmb="remote"] .kmb-hub { display: flex; flex-direction: column; gap: 14px; min-height: 0; max-width: 1100px; }

/* ① 小组切换区 */
html[data-kmb="remote"] .kmb-hub-teams { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html[data-kmb="remote"] .kmb-hub-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--k-line); background: rgba(var(--k-bg-rgb), .55); color: var(--k-ink2); font-size: 12.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
html[data-kmb="remote"] .kmb-hub-chip:hover { background: var(--k-hover); color: var(--k-ink); }
html[data-kmb="remote"] .kmb-hub-chip.on { background: rgba(var(--k-acc-rgb), .14); border-color: rgba(var(--k-acc-rgb), .55); color: var(--k-ink); font-weight: 600; }
html[data-kmb="remote"] .kmb-hub-chip em { font-style: normal; font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: rgba(var(--k-acc-rgb), .18); color: var(--k-acc); }
html[data-kmb="remote"] .kmb-hub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }

/* ② 智能问答 */
html[data-kmb="remote"] .kmb-hub-ask { border-radius: 14px; background: rgba(var(--k-bg-rgb), .6); box-shadow: inset 0 0 0 1px var(--k-line); padding: 10px 12px 8px; }
html[data-kmb="remote"] .kmb-hub-askrow { display: flex; align-items: center; gap: 10px; color: var(--k-dim); }
html[data-kmb="remote"] .kmb-hub-q { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--k-ink); font-size: 14px; }
html[data-kmb="remote"] .kmb-hub-q::placeholder { color: var(--k-dim); }
html[data-kmb="remote"] .kmb-hub-askline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--k-dim); padding: 0 2px; }
html[data-kmb="remote"] .kmb-hub-askline .kmb-ask-tools { margin: 0 0 0 auto; }
html[data-kmb="remote"] .kmb-hub-scope b { color: var(--k-ink3); font-weight: 600; }
html[data-kmb="remote"] .kmb-hub-hits { margin-top: 8px; border-top: 1px solid var(--k-line2); padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
html[data-kmb="remote"] .kmb-hub-hits[hidden] { display: none; }
html[data-kmb="remote"] .kmb-hub-lh { font-size: 11px; color: var(--k-dim); padding: 2px 4px; }
html[data-kmb="remote"] .kmb-hub-hit { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--k-ink2); cursor: pointer; }
html[data-kmb="remote"] .kmb-hub-hit:hover { background: var(--k-hover); color: var(--k-ink); }
html[data-kmb="remote"] .kmb-hub-hitt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
html[data-kmb="remote"] .kmb-hub-hitt b { font-weight: 600; font-size: 12.5px; }
html[data-kmb="remote"] .kmb-hub-hitt small { color: var(--k-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-kmb="remote"] .kmb-hub-hit em { font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace; font-style: normal; color: var(--k-acc); }
html[data-kmb="remote"] .kmb-hub-card .kmb-ask { margin: 8px 0 0; }

/* ③ 视图芯片 + 内容 */
html[data-kmb="remote"] .kmb-hub-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[data-kmb="remote"] .kmb-hub-views { display: flex; gap: 6px; flex-wrap: wrap; }
html[data-kmb="remote"] .kmb-hub-vchip { height: 28px; padding: 0 11px; font-size: 12px; }
html[data-kmb="remote"] .kmb-hub-filter { height: 28px; font-size: 12px; max-width: 240px; margin-left: auto; }
html[data-kmb="remote"] .kmb-hub-hint { margin-left: auto; font-size: 11px; color: var(--k-dim); cursor: help; }
html[data-kmb="remote"] .kmb-hub-refresh { color: var(--k-dim); }
html[data-kmb="remote"] .kmb-hub-filter + .kmb-hub-refresh, html[data-kmb="remote"] .kmb-hub-hint + .kmb-hub-refresh { margin-left: 0; }
html[data-kmb="remote"] .kmb-hub-views + .kmb-hub-refresh { margin-left: auto; }
html[data-kmb="remote"] .kmb-hub-body { display: flex; flex-direction: column; gap: 12px; }
html[data-kmb="remote"] .kmb-hub-path { font-size: 11px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-kmb="remote"] .kmb-hub-one, html[data-kmb="remote"] .kmb-hub-sec { border-radius: 14px; background: rgba(var(--k-bg-rgb), .45); box-shadow: inset 0 0 0 1px var(--k-line); padding: 10px 12px; }
html[data-kmb="remote"] .kmb-hub-sech { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--k-ink); margin: 0 0 8px; }
html[data-kmb="remote"] .kmb-hub-sech b { font-weight: 650; }
html[data-kmb="remote"] .kmb-hub-cur { font-style: normal; font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: rgba(var(--k-acc-rgb), .18); color: var(--k-acc); }
html[data-kmb="remote"] .kmb-hub-count { font-size: 11px; }
html[data-kmb="remote"] .kmb-hub-foldbtn { color: var(--k-dim); width: 22px; height: 22px; }
html[data-kmb="remote"] .kmb-hub-enter { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--k-line); background: transparent; color: var(--k-ink3); font-size: 11.5px; cursor: pointer; }
html[data-kmb="remote"] .kmb-hub-enter:hover { background: var(--k-hover); color: var(--k-ink); }
html[data-kmb="remote"] .kmb-hub-sec.folded .kmb-hub-secbody { display: none; }
html[data-kmb="remote"] .kmb-hub-sec.folded .kmb-hub-sech { margin-bottom: 0; }
html[data-kmb="remote"] .kmb-hub-list .kmb-node { padding: 6px 8px; }

/* 宇宙界面里的弹窗版：同一页装进对话框 */
html[data-kmb="remote"] dialog.modal.kmb-hub-dlg { width: min(1040px, 94vw); height: min(760px, 90dvh); max-height: 90dvh; flex-direction: column; overflow: hidden; padding: 18px 18px 14px; }
html[data-kmb="remote"] dialog.modal.kmb-hub-dlg[open] { display: flex; }
html[data-kmb="remote"] .kmb-hub-modal { flex: 1; min-height: 0; overflow: auto; padding: 2px 2px 8px; }

/* #20194：资产中枢与知识中枢重叠，远端收掉它的入口（侧栏 / 星球条 / 宇宙菜单 / 右键）；知识中枢的核心计数角标（本机示例条目的 n/n）也不显示 */
html[data-kmb="remote"] [data-action="km-hub"][data-side="assets"] { display: none !important; }
html[data-kmb="remote"] [data-action="km-hub"] b { display: none; }
