
/* 「文档处理」chip 紧跟「AI 速记」之后（两者 order:-1，按文档顺序 AI 速记在前） */
.chat-welcome .chat-quick-tags .lg-docproc-chip { order: -1; }

/* ---------- 二级分类行（替换默认推荐行，位于输入框上方） ---------- */
.chat-welcome .lg-docsub {
  order: -1;
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-welcome .lg-docsub::-webkit-scrollbar { display: none; }
.chat-welcome.lg-optmode .lg-docsub { display: flex; }
/* 替换态（文档处理）：隐藏默认推荐行与「更多」（覆盖 home-category 的高特异性 !important 规则）。
   保留态（自动化任务）不加此类 → 推荐行（含 AI 速记）继续展示，选项行在其下方直接展开。 */
body .chat-welcome.lg-optmode-replace .chat-quick-tags:not(.chat-quick-tags--rec) { display: none !important; }
body .chat-welcome.lg-optmode-replace .lg-tags-more { display: none !important; }

.lg-docsub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.lg-docsub-chip:hover { background: #fafafa; border-color: rgba(0, 0, 0, 0.12); }
.lg-docsub-chip__a { display: inline-flex; align-items: center; color: rgba(0, 0, 0, 0.32); }
.lg-docsub-chip__a svg { width: 13px; height: 13px; }

/* ---------- 输入框顶部「文档处理」标签胶囊 ---------- */
.chat-welcome .planb-composer > .lg-doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 28px;
  padding: 0 6px 0 10px;
  margin: 0 0 8px;
  border-radius: 8px;
  background: #1f2328;
  color: #fff;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  max-width: calc(100% - 24px);
}
.lg-doc-tag__ic { display: inline-flex; align-items: center; }
.lg-doc-tag__ic svg { width: 15px; height: 15px; }
.lg-doc-tag__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
}
.lg-doc-tag__x:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.lg-doc-tag__x svg { width: 12px; height: 12px; }
