/* 知识库管理后台去品牌：藏掉指向上游（GitHub / 官网 / ClawHub / 腾讯文档）的链接与菜单项。由 apply.sh 注入 index.html。 */

a[href*="github.com/Tencent/WeKnora"]:not(.header-logo),
a[href*="weknora.weixin.qq.com"],
a[href*="clawhub.ai/lyingbug"],
a[href*="developers.weixin.qq.com/doc/aispeech"],
a[href*="chromewebstore.google.com/detail/jpemjbopikggjlmikmclgbmkhhopjdgd"] {
  display: none !important;
}

/* 登录页左上角的 logo 本身是个 GitHub 链接：保留 logo，去掉跳转 */
a.header-logo {
  pointer-events: none !important;
  cursor: default !important;
}

/* 右上角账号菜单里的「帮助与文档」「GitHub」（带外链小箭头的两项）及其上面的分隔线 */
.menu-item:has(.menu-external-icon),
.menu-item:has(.menu-github-star-icon),
.menu-divider:has(+ .menu-item .menu-external-icon) {
  display: none !important;
}
