/* ============================================================
   Darra GitLab UI 精简 (darra-ui-slim.css)
   2026-08-04 · git.darra.xyz 工业 SCL 代码仓储
   2026-08-18 · 品牌字标 + 左侧项目 + 藏无用入口 + 配额行
   2026-08-18 · IDE 嵌入：html[data-darra-embed="1"] 藏全部原生壳
   2026-08-22 · 项目主页标题下 topic 徽章不展示（explore 筛选仍用 topics）
   侧边栏精简 + 项目图标隐藏
   原理: super sidebar 是 Vue 客户端渲染, CSS 选择器在重渲染后仍生效
   ============================================================ */

/* 嵌入尽早藏壳，避免顶栏/侧栏闪一下 (FOUC) */
html[data-darra-embed="1"] header.super-topbar,
html[data-darra-embed="1"] header.navbar,
html[data-darra-embed="1"] .super-topbar,
html[data-darra-embed="1"] footer,
html[data-darra-embed="1"] .footer-container,
html[data-darra-embed="1"] aside#super-sidebar,
html[data-darra-embed="1"] aside.super-sidebar,
html[data-darra-embed="1"] .super-sidebar,
html[data-darra-embed="1"] nav.navbar,
html[data-darra-embed="1"] .js-super-sidebar {
  display: none !important;
}

/* ---------- 1. 项目侧边栏: 隐藏整个分组 (计划/部署/运维/监控/分析) ----------
   GitLab 19 分组是 button[data-testid=menu-section-button]，不是 a.nav-item-link。
   :has 把按钮 + 展开后的子项整颗 li 藏掉。Code / Manage 不在此列。 */
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Plan"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="计划"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Deploy"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="部署"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Operate"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Operations"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="运维"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Monitor"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="监控"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="Analyze"]),
.super-sidebar li:has([data-testid="menu-section-button"][data-qa-section-name="分析"]),
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Plan"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="计划"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Deploy"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="部署"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Operate"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Operations"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="运维"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Monitor"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="监控"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="Analyze"],
.super-sidebar [data-testid="menu-section-button"][data-qa-section-name="分析"] {
  display: none !important;
}

[data-darra-nav-hidden="1"] {
  display: none !important;
}

/* ---------- 2. 项目侧边栏: 隐藏冗余子项 ----------
   GitLab 19 子项可能是 a[data-testid=nav-item-link] 或 a.super-sidebar-nav-item，不要只匹配 a.nav-item-link。
   Code 下藏：合并请求 / 仓库图 / 比较修订（留 仓库 / 分支 / 提交 / 标签）
   Manage 下藏：动态 / 标记（留 Members；设置入口另留）
   继续藏：发布 / 事件 / 模型注册表+实验 / 看板 / 包注册表 / Terraform / 分析 / Operate 钉选 */
.super-sidebar [data-testid="nav-item-link"][href*="/-/releases"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/releases"],
.super-sidebar a[href*="/-/releases"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/releases"]),
.super-sidebar li:has(> a[href*="/-/releases"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/incidents"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/incidents"],
.super-sidebar a[href*="/-/incidents"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/incidents"]),
.super-sidebar li:has(> a[href*="/-/incidents"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/ml/"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/ml/"],
.super-sidebar a[href*="/-/ml/"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/ml/"]),
.super-sidebar li:has(> a[href*="/-/ml/"]),
.super-sidebar [data-testid="nav-item-link"][href*="/activity"],
.super-sidebar a.super-sidebar-nav-item[href*="/activity"],
.super-sidebar a[href*="/activity"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/activity"]),
.super-sidebar li:has(> a[href*="/activity"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/labels"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/labels"],
.super-sidebar a[href*="/-/labels"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/labels"]),
.super-sidebar li:has(> a[href*="/-/labels"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/boards"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/boards"],
.super-sidebar a[href*="/-/boards"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/boards"]),
.super-sidebar li:has(> a[href*="/-/boards"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/network/"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/network"],
.super-sidebar a[href*="/-/network"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/network"]),
.super-sidebar li:has(> a[href*="/-/network"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/compare"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/compare"],
.super-sidebar a[href*="/-/compare"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/compare"]),
.super-sidebar li:has(> a[href*="/-/compare"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/merge_requests"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/merge_requests"],
.super-sidebar a[href*="/-/merge_requests"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/merge_requests"]),
.super-sidebar li:has(> a[href*="/-/merge_requests"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/packages"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/packages"],
.super-sidebar a[href*="/-/packages"],
.super-sidebar li:has(> [data-testid="nav-item-link"][href*="/-/packages"]),
.super-sidebar li:has(> a[href*="/-/packages"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/terraform"],
.super-sidebar a.super-sidebar-nav-item[href*="terraform_module_registry"],
.super-sidebar a[href*="terraform_module_registry"],
.super-sidebar a[href*="infrastructure_registry"],
.super-sidebar a[href*="/-/terraform"],
.super-sidebar li:has(> a[href*="terraform_module_registry"]),
.super-sidebar li:has(> a[href*="infrastructure_registry"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/analytics"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/analytics"],
.super-sidebar a[href*="/-/analytics"],
.super-sidebar a[href*="value_stream"],
.super-sidebar a[href*="contributor_analytics"],
.super-sidebar a[href*="repository_analytics"],
.super-sidebar a[href*="/-/graphs"],
.super-sidebar li:has(> a[href*="/-/analytics"]),
.super-sidebar li:has(> a[href*="/-/graphs"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/environments"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/environments"],
.super-sidebar a[href*="/-/environments"],
.super-sidebar li:has(> a[href*="/-/environments"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/feature_flags"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/feature_flags"],
.super-sidebar a[href*="/-/feature_flags"],
.super-sidebar li:has(> a[href*="/-/feature_flags"]),
.super-sidebar [data-testid="nav-item-link"][href*="/-/clusters"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/clusters"],
.super-sidebar a[href*="/-/clusters"],
.super-sidebar li:has(> a[href*="/-/clusters"]) {
  display: none !important;
}

/* ---------- 3. 全局侧边栏: 隐藏 CI/CD 目录 / 主题 / 代码片段 ---------- */
.super-sidebar [data-testid="nav-item-link"][href*="/explore/catalog"],
.super-sidebar [data-testid="nav-item-link"][href*="/explore/projects/topics"],
.super-sidebar [data-testid="nav-item-link"][href*="/explore/snippets"] {
  display: none !important;
}

/* ---------- 4. 项目图标: 项目列表卡片图标 + identicon 字母头像 ---------- */
[data-testid="project-content"] [data-testid="project-icon"],
[data-testid="project-content"] .gl-avatar-identicon {
  display: none !important;
}

/* ---------- 5. 侧边栏钉选区拖拽手柄图标 (grip) ---------- */
.super-sidebar [data-testid="nav-item-start"] [data-testid="grip-icon"] {
  display: none !important;
}

/* ---------- 6. 产品不使用 Wiki / 运维入口 ---------- */
.super-sidebar [data-testid="nav-item-link"][href*="/-/wikis"],
.super-sidebar a.super-sidebar-nav-item[href*="/-/wikis"],
.super-sidebar a[href*="/-/wikis"],
.super-sidebar [data-testid="nav-item-link"][href$="/wiki"],
.super-sidebar a[href$="/wiki"],
.super-sidebar [data-testid="nav-item-link"][href$="/wikis"],
.super-sidebar a[href$="/wikis"],
.super-sidebar li:has(> a[href*="/-/wikis"]),
.super-sidebar li:has(> a[href$="/wiki"]),
.super-sidebar [data-testid="nav-item-link"][href*="/operations"],
.super-sidebar a.super-sidebar-nav-item[href*="/operations"],
.super-sidebar a[href*="/operations"],
.super-sidebar li:has(> a[href*="/operations"]) {
  display: none !important;
}

/* ---------- 7. 左下角：储存空间状态卡 + PLC 平台按钮；最底永远是收起 ---------- */
.super-sidebar .darra-sidebar-footer,
.super-sidebar [data-testid="darra-sidebar-footer"] {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  margin-top: auto;
  flex: none;
  width: 100%;
  box-sizing: border-box;
}
.super-sidebar .contextual-nav > [data-testid="darra-sidebar-footer"] {
  order: 10;
  margin-top: auto;
}
.super-sidebar .contextual-nav > :has([data-testid="super-sidebar-collapse-button"]) {
  order: 11;
  margin-top: 0;
}

.super-sidebar [data-testid="darra-disk-card"],
.super-sidebar .darra-disk-card {
  display: block;
  width: 100%;
  padding: 4px 8px 6px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.super-sidebar .darra-disk-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gl-text-color, #1f2329);
}
.super-sidebar .darra-disk-value {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--gl-text-color-subtle, #737278);
}
.super-sidebar .darra-disk-mini {
  display: none;
}
.super-sidebar .darra-disk-bar {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.super-sidebar .darra-disk-bar[hidden] {
  display: none !important;
}
.super-sidebar .darra-disk-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gl-text-color-subtle, #737278);
}
.super-sidebar .darra-disk-bar-fill.is-warn {
  background: #c0341d;
}

.super-sidebar [data-testid="darra-plc-link"],
.super-sidebar .darra-plc-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
  box-sizing: border-box;
  cursor: pointer;
}
.super-sidebar [data-testid="darra-plc-link"]:hover,
.super-sidebar .darra-plc-btn:hover {
  background: var(--gl-control-background-color-hover, rgba(0, 0, 0, 0.06));
  color: inherit;
}
.super-sidebar [data-testid="darra-plc-link"] svg,
.super-sidebar .darra-plc-btn svg {
  display: block;
  fill: currentColor;
}
.super-sidebar [data-testid="darra-plc-link"] .darra-plc-quota,
.super-sidebar [data-testid="darra-plc-link"] .darra-plc-text {
  display: none !important;
}
.super-sidebar [data-testid="darra-connect-link"] {
  display: none !important;
}

/* 收起：云盘只留短用量，按钮只留图标 */
.super-sidebar.super-sidebar-is-icon-only [data-testid="darra-sidebar-footer"],
.super-sidebar.darra-sidebar-collapsed [data-testid="darra-sidebar-footer"] {
  padding: 4px 4px 8px;
  align-items: center;
  gap: 6px;
}
.super-sidebar.super-sidebar-is-icon-only .darra-disk-card,
.super-sidebar.darra-sidebar-collapsed .darra-disk-card {
  padding: 6px 2px;
  text-align: center;
}
.super-sidebar.super-sidebar-is-icon-only .darra-disk-title,
.super-sidebar.darra-sidebar-collapsed .darra-disk-title,
.super-sidebar.super-sidebar-is-icon-only .darra-disk-full,
.super-sidebar.darra-sidebar-collapsed .darra-disk-full,
.super-sidebar.super-sidebar-is-icon-only .darra-disk-bar,
.super-sidebar.darra-sidebar-collapsed .darra-disk-bar {
  display: none !important;
}
.super-sidebar.super-sidebar-is-icon-only .darra-disk-mini,
.super-sidebar.darra-sidebar-collapsed .darra-disk-mini {
  display: inline;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-all;
}
.super-sidebar.super-sidebar-is-icon-only [data-testid="darra-plc-link"],
.super-sidebar.darra-sidebar-collapsed [data-testid="darra-plc-link"] {
  width: 32px;
  height: 32px;
  padding: 0;
}
.super-sidebar.super-sidebar-is-icon-only [data-testid="darra-plc-link"] .darra-plc-btn-label,
.super-sidebar.darra-sidebar-collapsed [data-testid="darra-plc-link"] .darra-plc-btn-label {
  display: none !important;
}

/* ---------- 8. 顶栏 / 侧栏品牌：24px 标 + Darra 字标，永远可点回首页 ---------- */
.darra-brand-link,
.darra-brand-link:link,
.darra-brand-link:visited,
.darra-brand-link:hover,
.darra-brand-link:focus,
.darra-brand-link:focus-visible,
.darra-brand-link:active {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  min-width: 24px;
  padding: 0 4px;
  text-decoration: none !important;
  color: inherit;
  flex: none;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}
.darra-brand-link img,
.darra-brand-link:focus img,
.darra-brand-link:focus-visible img {
  outline: none !important;
  box-shadow: none !important;
}
.darra-brand-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 0;
  object-fit: contain;
  flex: none;
}
.darra-brand-wordmark {
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: inherit;
}
/* 顶栏字标不藏；侧栏折叠只留图标，避免空槽 */
header.super-topbar .darra-brand-wordmark {
  display: inline-block;
}
.super-sidebar.super-sidebar-is-icon-only .darra-brand-wordmark,
.super-sidebar.darra-sidebar-collapsed .darra-brand-wordmark {
  display: none;
}

/* ---------- 9. 左侧自建「项目 / 探索」，Pajamas 侧栏项语义 ---------- */
.super-sidebar .darra-left-nav {
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
}
.super-sidebar .darra-left-nav > li {
  margin: 0;
}
.super-sidebar [data-testid="darra-nav-projects"],
.super-sidebar [data-testid="darra-nav-explore"] {
  width: 100%;
}
.super-sidebar.super-sidebar-is-icon-only .darra-left-nav [data-testid="nav-item-label"],
.super-sidebar.darra-sidebar-collapsed .darra-left-nav [data-testid="nav-item-label"] {
  display: none !important;
}

/* ---------- 10. 顶栏右侧「浏览项目」/ Explore CTA（左侧 Explore 不藏） ---------- */
header.super-topbar a[href="/explore"]:not(.darra-brand-link),
header.super-topbar a[href="/explore/projects"]:not(.darra-brand-link),
header.super-topbar a[href$="/explore/projects"]:not(.darra-brand-link),
.navbar-gitlab > .navbar-collapse a[href="/explore/projects"]:not(.darra-brand-link),
header [data-testid="explore-projects-link"]:not(.darra-brand-link) {
  display: none !important;
}

/* ---------- 11. 不用的入口整块藏：片段 / 里程碑 / 向导 / 新建仓组 / 评论模板 ---------- */
.super-sidebar [data-testid="nav-item-link"][href*="/snippets"],
.super-sidebar a.super-sidebar-nav-item[href*="/snippets"],
.super-sidebar a[href*="/snippets"],
.super-sidebar [data-testid="nav-item-link"][href*="/-/snippets"],
.super-sidebar a[href*="/-/snippets"],
.super-sidebar li:has(> a[href*="/snippets"]),
.super-sidebar [data-testid="nav-item-link"][href*="/milestones"],
.super-sidebar a.super-sidebar-nav-item[href*="/milestones"],
.super-sidebar a[href*="/milestones"],
.super-sidebar [data-testid="nav-item-link"][href*="/-/milestones"],
.super-sidebar a[href*="/-/milestones"],
.super-sidebar li:has(> a[href*="/milestones"]),
.super-sidebar [data-testid="nav-item-link"][href*="/learn_gitlab"],
.super-sidebar a[href*="/learn_gitlab"],
.super-sidebar [data-testid="nav-item-link"][href*="/get_started"],
.super-sidebar a[href*="/get_started"],
.super-sidebar [data-testid="nav-item-link"][href*="/comment_templates"],
.super-sidebar a[href*="/comment_templates"],
a[href="/-/snippets/new"],
a[href="/snippets/new"],
a[href*="/-/snippets/new"],
[data-testid="new-snippet-button"],
a[href*="/learn_gitlab"],
a[href*="/get_started"],
[data-testid="learn-gitlab-link"],
[data-testid="get-started"],
.js-learn-gitlab,
a[href*="/comment_templates"],
[data-testid="comment-templates"],
header.super-topbar [data-testid="new-menu-toggle"],
header.super-topbar [data-testid="new-dropdown-toggle"],
header.super-topbar [data-testid="create-menu-toggle"],
header.super-topbar .header-new,
header.super-topbar a[href="/projects/new"],
header.super-topbar a[href="/groups/new"] {
  display: none !important;
}

/* ---------- 12. 侧栏底配额 / 帮助中心 / 快捷键弹窗一律不出现 ----------
   Help 飞出里的 GitLab 营销（文档/大学/方案对比/论坛/贡献/反馈）一并藏。
   不藏 PLC 平台、储存空间、Collapse sidebar。 */
.darra-quota,
[data-testid="darra-quota"],
.super-sidebar [data-testid="sidebar-help-button"],
.super-sidebar [data-testid="sidebar-help"],
.super-sidebar [data-testid="help-center"],
.super-sidebar [data-testid="help-dropdown"],
.super-sidebar [data-testid="help-menu"],
.super-sidebar [data-testid="help-center-button"],
.super-sidebar [data-testid="help-center-toggle"],
.super-sidebar .help-center,
.super-sidebar .js-help-dropdown,
#modal-shortcuts,
[data-testid="modal-shortcuts"],
.modal-shortcuts,
a[href="#modal-shortcuts"],
[data-testid="keyboard-shortcuts"] {
  display: none !important;
}

/* Help 飞出菜单项：只藏营销链接，不波及 README / 文件树 / tabs */
.super-sidebar a[href*="docs.gitlab.com"],
.super-sidebar a[href*="university.gitlab.com"],
.super-sidebar a[href*="academy.gitlab.com"],
.super-sidebar a[href*="forum.gitlab.com"],
.super-sidebar a[href*="about.gitlab.com"],
.super-sidebar li:has(> a[href*="docs.gitlab.com"]),
.super-sidebar li:has(> a[href*="university.gitlab.com"]),
.super-sidebar li:has(> a[href*="academy.gitlab.com"]),
.super-sidebar li:has(> a[href*="forum.gitlab.com"]),
.super-sidebar li:has(> a[href*="about.gitlab.com"]),
[data-testid="help-dropdown"] a[href*="docs.gitlab.com"],
[data-testid="help-dropdown"] a[href*="university.gitlab.com"],
[data-testid="help-dropdown"] a[href*="academy.gitlab.com"],
[data-testid="help-dropdown"] a[href*="forum.gitlab.com"],
[data-testid="help-dropdown"] a[href*="about.gitlab.com"],
[data-testid="help-dropdown"] a[href*="gitlab.com/gitlab-org"],
[data-testid="help-dropdown"] a[href="#modal-shortcuts"],
[data-testid="help-menu"] a[href*="docs.gitlab.com"],
[data-testid="help-menu"] a[href*="university.gitlab.com"],
[data-testid="help-menu"] a[href*="academy.gitlab.com"],
[data-testid="help-menu"] a[href*="forum.gitlab.com"],
[data-testid="help-menu"] a[href*="about.gitlab.com"],
[data-testid="help-menu"] a[href*="gitlab.com/gitlab-org"],
[data-testid="help-menu"] a[href="#modal-shortcuts"],
[data-testid="help-center"] a[href*="docs.gitlab.com"],
[data-testid="help-center"] a[href*="university.gitlab.com"],
[data-testid="help-center"] a[href*="academy.gitlab.com"],
[data-testid="help-center"] a[href*="forum.gitlab.com"],
[data-testid="help-center"] a[href*="about.gitlab.com"],
[data-testid="help-center"] a[href*="gitlab.com/gitlab-org"],
[data-testid="help-center"] a[href="#modal-shortcuts"],
[data-testid="disclosure-content"] a[href*="docs.gitlab.com"],
[data-testid="disclosure-content"] a[href*="university.gitlab.com"],
[data-testid="disclosure-content"] a[href*="academy.gitlab.com"],
[data-testid="disclosure-content"] a[href*="forum.gitlab.com"],
[data-testid="disclosure-content"] a[href*="about.gitlab.com"],
[data-testid="disclosure-content"] a[href*="gitlab.com/gitlab-org"],
[data-testid="disclosure-content"] a[href="#modal-shortcuts"],
.gl-new-dropdown a[href*="docs.gitlab.com"],
.gl-new-dropdown a[href*="university.gitlab.com"],
.gl-new-dropdown a[href*="academy.gitlab.com"],
.gl-new-dropdown a[href*="forum.gitlab.com"],
.gl-new-dropdown a[href*="about.gitlab.com"],
.gl-new-dropdown a[href="#modal-shortcuts"],
.gl-new-dropdown li:has(> a[href*="docs.gitlab.com"]),
.gl-new-dropdown li:has(> a[href*="university.gitlab.com"]),
.gl-new-dropdown li:has(> a[href*="forum.gitlab.com"]),
.gl-new-dropdown li:has(> a[href*="about.gitlab.com"]),
.gl-new-dropdown li:has(> a[href="#modal-shortcuts"]) {
  display: none !important;
}

/* ============================================================
   IDE 嵌入模式：只留 Darra 注入层，GitLab 原生壳全藏
   不藏 .darra-filter-bar / .darra-cards / tabs / 模型卡 / 许可证卡
   ============================================================ */
html[data-darra-embed="1"] {
  --super-sidebar-width: 0px;
  --top-bar-height: 0px;
}
html[data-darra-embed="1"] header.super-topbar,
html[data-darra-embed="1"] header.navbar,
html[data-darra-embed="1"] header.navbar-gitlab,
html[data-darra-embed="1"] header,
html[data-darra-embed="1"] .super-topbar,
html[data-darra-embed="1"] footer,
html[data-darra-embed="1"] .footer-container,
html[data-darra-embed="1"] aside#super-sidebar,
html[data-darra-embed="1"] aside.super-sidebar,
html[data-darra-embed="1"] .super-sidebar,
html[data-darra-embed="1"] nav.navbar,
html[data-darra-embed="1"] .js-super-sidebar,
html[data-darra-embed="1"] .navbar-gitlab,
html[data-darra-embed="1"] body.login-page header,
html[data-darra-embed="1"] body.navless header,
html[data-darra-embed="1"] .login-page > header {
  display: none !important;
}
/* 内容区铺满，去掉侧栏占位 */
html[data-darra-embed="1"] .page-with-super-sidebar,
html[data-darra-embed="1"] .layout-page,
html[data-darra-embed="1"] .content-wrapper {
  padding-left: 0 !important;
  margin-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-inline-start: 0 !important;
}

/* ---------- 13. 克隆只留 HTTPS：藏 SSH 选项 + 无密钥空态（不改克隆主机逻辑） ---------- */
[data-testid="copy-ssh-url-button"],
[data-testid="ssh-clone-url-field"],
[data-testid="ssh-url-text-field"],
[data-testid="clone-dropdown-ssh"],
[data-testid="ssh-clone-button"],
[data-testid="ssh-key-empty-state"],
[data-testid="ssh-keys-empty-state"],
[data-testid="ssh-clone-empty-state"],
[data-testid="add-ssh-key-warning"],
input.js-clone-dropdown-ssh,
.js-clone-dropdown-ssh,
.clone-with-ssh,
.git-clone-holder .clone-with-ssh {
  display: none !important;
}

/* ---------- 14. 项目主页标题下的 topic 徽章不展示；explore 筛选仍用 topics ----------
   只藏 MODEL/PROJECT SHOW 标题下那一行 cat-*/lic-*/object-detection。
   作用域限定 body.page-project / data-page=projects:show / html[data-darra-project-show]，
   不碰 .project-cell / [data-testid=project-content] / explore 卡片上的筛选芯片。
   藏徽章容器，不藏项目标题。 */
body.page-project [data-testid="project-topics"],
body.page-project .project-topics,
body.page-project ul.topics,
body.page-project .js-topics,
body.page-project .project-topic-list,
body.page-project [data-testid="topics"],
body[data-page="projects:show"] [data-testid="project-topics"],
body[data-page="projects:show"] .project-topics,
body[data-page="projects:show"] ul.topics,
body[data-page="projects:show"] .js-topics,
body[data-page="projects:show"] .project-topic-list,
body[data-page="projects:show"] [data-testid="topics"],
html[data-darra-project-show="1"] [data-testid="project-topics"],
html[data-darra-project-show="1"] .project-topics,
html[data-darra-project-show="1"] ul.topics,
html[data-darra-project-show="1"] .js-topics,
html[data-darra-project-show="1"] .project-topic-list,
html[data-darra-project-show="1"] [data-testid="topics"] {
  display: none !important;
}

/* 容器类名变动时的兜底：只藏主页标题区里的 topic 链接，不藏 explore 卡 */
body.page-project .project-home-panel a[href*="/explore/projects/topics/"],
body[data-page="projects:show"] .project-home-panel a[href*="/explore/projects/topics/"],
html[data-darra-project-show="1"] .project-home-panel a[href*="/explore/projects/topics/"],
body.page-project [data-testid="project-topic"],
body[data-page="projects:show"] [data-testid="project-topic"],
html[data-darra-project-show="1"] [data-testid="project-topic"] {
  display: none !important;
}
