/* 妮维雅 Demo：隐藏与演示无关的入口（只隐藏，不删原组件） */

/* 右上角「做任务赢积分好礼」 */
.growth-plan-entry-wrapper,
.growth-plan-entry {
  display: none !important;
}

/* 输入框右上角的机器人吉祥物（GrowthBuddy）。
   原先只按 img[src*="miao"] 匹配，但成长数据加载后换成远端 buddy 缩略图/视频，
   发送瞬间槽位重挂载会闪一下原版形象——所以整个槽位无条件隐藏，
   且兜住非 standalone 分支里同一个 120×120 的 GrowthBuddy 容器 */
[class*="_topRightSlotStandalone_"],
[class*="_topArea_"] div[style*="width: 120px"][style*="height: 120px"] {
  display: none !important;
}

/* 首页「日常办公 / 代码开发 / 设计创意」模式切换：Demo 只有找数一种用途，整排隐藏 */
.wb-scene-tabs {
  display: none !important;
}
/* 首页内容块保持原版位置：隐藏模式切换后内容变矮 72px，外层上下居中会让整体下沉；
   底部补回同样的 72px，标题就停在原版「Buxi」的位置（与窗口高度无关；只作用于首页欢迎态） */
.chat-container--welcome [class*="_emptyStateContainer_"] {
  padding-bottom: 72px !important;
  box-sizing: border-box;
}

/* 原来由模式切换撑开的间距，补回到标题区下方 */
.wb-home-header {
  margin-bottom: 28px !important;
}

/* 专家页「专家 / 专家团」：妮维雅 Demo 没有专家团（原版专家团需要云端调度），只留「专家」 */
.ec-list-tabs .ec-list-tab:nth-child(n+2) {
  display: none !important;
}

/* 技能页「推荐 / SkillHub / 套件」：只留「推荐」（妮维雅分平台技能），隐藏原版的 SkillHub 与套件市场 */
.skills-segment-group .skills-segment-item:not(:first-child) {
  display: none !important;
}

/* 侧栏品牌名后的原版版本号 v5.2.6 */
.conversation-list-version-badge {
  display: none !important;
}

/* 对话中 Buxi 的默认头像（含思考状态） */
.avatar-row-main .face:has(> svg g:is([clip-path^="url(#copilot-clip-"], [clip-path^="url(#copilot-thinking-clip-"])) {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url(/buxi-logo.png) center / contain no-repeat;
}
.avatar-row-main .face > svg:has(g:is([clip-path^="url(#copilot-clip-"], [clip-path^="url(#copilot-thinking-clip-"])) {
  display: none !important;
}

/* 左侧「空间」分组（文件夹工作空间 + 项目） */
.conversation-section-groups {
  display: none !important;
}

/* 侧栏导航「助理 / 项目 / 自动化」：Demo 暂不展示（整行含助理右侧的文件夹/配置按钮） */
.conversation-list-tabs .conversation-list-tab-row:has(> [dt-eid="claw_entry_click"]),
.conversation-list-tabs [dt-eid="project_menu_click"],
.conversation-list-tabs [dt-eid="automation_entry_click"] {
  display: none !important;
}

/* 账户菜单隐藏演示中用不到的入口 */
.user-menu-popover .user-menu-item--billing-plan,
.user-menu-popover .user-menu-item--billing-credits,
.user-menu-popover .user-menu-item--growth-record,
.user-menu-popover .user-menu-item[dt-eid="avatar_menu_feedback"],
.user-menu-popover .user-menu-item[dt-eid="footer_check_update"] {
  display: none !important;
}

/* 账户菜单的计费分组没有可见项目时，去掉多余的分隔线 */
.user-menu-popover .user-menu-items:not(:has(> .daily-checkin--menu-banner, > .user-menu-item--billing-usage)) > .user-menu-separator {
  display: none;
}

/* 侧栏底部头像旁的「微信小程序」入口（云上虾小程序，Demo 不提供） */
.user-menu-trigger-miniprogram,
[dt-eid="miniprogram_entry"] {
  display: none !important;
}

/* 发送首条消息时一闪而过的「工作区准备中」浮层：原版机器人 mascot-new 换成 Buxi logo */
.workspace-preparing__icon img[src*="mascot-new"] {
  display: none !important;
}
.workspace-preparing__icon:has(img[src*="mascot-new"]) {
  width: 120px;
  height: 120px;
  margin-left: auto;
  margin-right: auto;
  background: url(/buxi-logo.png) center / 72px no-repeat;
}

/* 设置中隐藏助理入口和账户的套餐、积分区块 */
.settings-navigation [dt-eid="setting_nav_claw_click"],
.account-panel .account-panel__credits-section {
  display: none;
}

/* ---------- 指令模板：技能标签 + 下拉 / 日期空位（逻辑见 nivea-slots.js） ---------- */

/* 输入框里的技能标签：浅灰底、蓝字，对标灵犀「灵犀-找买点」 */
[data-slate-editor] [class*="_skillTag_"],
[data-slate-editor] [class*="_skillTag_"] [class*="_text_"],
[data-slate-editor] [class*="_skillTag_"] [class*="_iconContainer_"] {
  color: #2f6bff;
}
[data-slate-editor] [class*="_skillTag_"] {
  height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.nivea-slot-wrap {
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
}
/* 原版给输入框里 @ 标签的外层统一铺了一层紫色底（方角、!important、选择器很长压不过），
   空位自己有圆角底色——用它读的那个变量把这层底色关掉 */
.nivea-slot-wrap {
  --cb-mention-phrase-bg: transparent;
}
.nivea-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #2f6bff;
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease;
}
.nivea-slot:hover,
.nivea-slot.is-open {
  background: #d9e6ff;
}
.nivea-slot.is-readonly {
  cursor: default;
}
.nivea-slot__chevron {
  flex-shrink: 0;
  transition: transform 0.12s ease;
}
.nivea-slot.is-open .nivea-slot__chevron {
  transform: rotate(180deg);
}
.nivea-slot--daterange {
  gap: 6px;
  cursor: default;
}
.nivea-slot__date {
  position: relative;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
}
.nivea-slot__date:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nivea-slot.is-readonly .nivea-slot__date {
  cursor: default;
  text-decoration: none;
}
/* 原生日期选择器只借用它的弹层：输入框本身透明、不接收点击，位置垫在日期文字下面作为弹层锚点 */
.nivea-slot__date-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.nivea-slot__sep {
  opacity: 0.75;
}

/* 下拉菜单挂在 body 上（输入框高度固定，会裁掉内部浮层） */
.nivea-slot-menu {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: #1f2329;
}
.nivea-slot-menu__label {
  padding: 4px 10px 6px;
  font-size: 12px;
  color: #8f959e;
}
.nivea-slot-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.nivea-slot-menu__item:hover {
  background: #f2f3f5;
}
.nivea-slot-menu__item.is-active {
  color: #2f6bff;
  background: #eef3ff;
}

/* 输入框左下角的连接器图标入口（技能页已去掉连接器，这里一并隐藏）。
   position: absolute 不能省：工具栏会量「左侧一排按钮」的宽度来决定要不要把模型名折叠成图标，
   隐藏的按钮仍被算进间距，量出来比容器宽就误判成放不下；脱离文档流的子元素它才会跳过 */
[dt-eid="agent_input_connector_chip"] {
  display: none !important;
  position: absolute !important;
}
