/* DeepRobotics 售后服务首页选型层样式。 */
#__customer_home {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #202020;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: auto;
  opacity: 1;
  transition: opacity 220ms ease;
}
#__customer_home.customer-closing { opacity: 0; pointer-events: none; }

.customer-home-panel {
  width: min(100%, 680px);
  max-height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-home-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.customer-home-brand img { width: 150px; height: auto; }
.customer-home-brand span { margin-top: 5px; font-size: 12px; letter-spacing: 6px; color: #858991; }

.customer-home-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.customer-home-modes button {
  min-height: 148px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 3px 12px #1822300a;
  color: #25282e;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.customer-home-modes button:hover { border-color: #6d9fff; background: #f8fbff; }
.customer-home-modes button.customer-active { border-color: #3978c6; background: #eef4ff; box-shadow: 0 3px 12px #3978c622; }
.customer-home-modes button.customer-active strong { color: #1f5cad; }
.customer-home-modes button:focus-visible { outline: 2px solid #3978c6; outline-offset: 3px; }
.customer-mode-tag { margin-top: auto; padding: 3px 10px; border-radius: 999px; background: #eef4fb; color: #35628d; font-size: 11px; line-height: 18px; }
.customer-home-modes button.customer-active .customer-mode-tag { background: #dceafa; }
.customer-home-modes strong { font-size: 17px; line-height: 24px; font-weight: 650; }
.customer-home-modes small { max-width: 270px; text-wrap: balance; margin-bottom: 4px; font-size: 12px; line-height: 20px; color: #737b87; text-align: center; }

.customer-home-title { margin: 16px 0 6px; font-size: 21px; line-height: 1.3; font-weight: 650; color: #202124; }
.customer-home-intro { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #858991; }

.customer-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.customer-home-grid button {
  min-height: 108px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #25282e;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.customer-home-grid button:not(:disabled):hover { background: #f8fbff; }
.customer-home-grid button:not(:disabled):hover strong { color: #3978c6; }
.customer-home-grid button.customer-active { border-color: #3978c6; background: #eef4ff; box-shadow: 0 3px 12px #3978c622; }
.customer-home-grid button.customer-active strong { color: #1f5cad; }
.customer-home-grid button:disabled { cursor: default; opacity: .58; }
.customer-home-grid img { width: 100%; height: 60px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 4px; }
.customer-home-grid strong { font-size: 15px; line-height: 22px; font-weight: 650; }
.customer-home-grid small { font-size: 11px; line-height: 18px; color: #8a909a; }

.customer-home-foot { margin: 14px 0 0; font-size: 11px; color: #969ca5; }

@media (max-width: 600px) {
  .customer-home-panel { padding: 36px 16px 16px; }
  .customer-home-brand img { width: 124px; }
  .customer-home-modes button { min-height: 158px; padding: 18px 10px; }
  .customer-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .customer-home-grid button { min-height: 92px; }
  .customer-home-grid img { height: 44px; }
  .customer-home-title { font-size: 19px; }
}

/* ==== 侧边栏精简：只保留搜索 ==== */
/* 1. 隐藏列表区（Pull requests / Scheduled / Plugins / Projects / Recents） */
nav[aria-label="Scheduled task folders"] > .vertical-scroll-fade-mask {
  display: none !important;
}

/* 2. 隐藏模式切换按钮（Switch mode: Codex） */
nav[aria-label="Scheduled task folders"] button[aria-label^="Switch mode"] {
  display: none !important;
}

/* 3. 隐藏侧栏顶部 New chat 行 */
nav[aria-label="Scheduled task folders"] > div:first-child > div:not(:first-child) {
  display: none !important;
}

/* 4. 隐藏底部账户/帮助区域 */
nav[aria-label="Scheduled task folders"] ~ div.absolute.inset-x-0.bottom-0 {
  display: none !important;
}

/* ==== 自定义侧边栏：动画 + 历史对话列表 ==== */
#__customer_sidebar { height: 100%; }
.customer-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.customer-sidebar-brand {
  border: 0;
  background: transparent;
  padding: 6px 6px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.customer-sidebar-brand img {
  width: 108px;
  height: auto;
  display: block;
}
.customer-sidebar-label {
  font-size: 11px;
  letter-spacing: 5px;
  color: #858991;
}
.customer-sidebar-selection {
  margin: 0 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #35628d;
  font-size: 12px;
  font-weight: 550;
  padding: 7px 10px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .15s, background .15s;
}
.customer-sidebar-selection:hover { border-color: #6d9fff; background: #f8fbff; }
.customer-thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.customer-thread-list::-webkit-scrollbar { width: 5px; }
.customer-thread-list::-webkit-scrollbar-thumb { background: #d8dde3; border-radius: 999px; }
.customer-thread-item {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  cursor: pointer;
  color: #3d4147;
  min-width: 0;
}
.customer-thread-item:hover { background: #f0f2f5; }
.customer-thread-active { background: #eef4ff; }
.customer-thread-active .customer-thread-title { color: #1f5cad; }
.customer-thread-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-thread-time { font-size: 11px; color: #a0a6ae; }
.customer-thread-empty {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: #a0a6ae;
}


/* ==== 启动加载动画（品牌弹跳） ==== */
.startup-loader__logo.customer-boot-anim {
  width: auto;
  height: auto;
  opacity: 1;
  animation: none;
}
.startup-loader__logo.customer-boot-anim img {
  width: min(260px, 60vw);
  height: auto;
  display: block;
}

/* ==== 删除右侧菜单 ==== */
button[aria-label^="Toggle bottom panel" i],
button[aria-label^="Toggle side panel" i],
button[aria-label="Chat actions" i],
button[aria-label^="Toggle summary" i],
button[aria-label^="Project:" i],
button[aria-label^="Change project" i],
button[aria-label="Don't work in a project" i],
button[aria-label="Change permissions" i],
button[aria-label="Custom High" i],
button[aria-label="Outputs" i],
button[aria-label="Create a file or site" i] {
  display: none !important;
}

/* 右侧浮动输出面板整体删除 */
div.pointer-events-none.max-h-full.min-h-0.origin-top-right {
  display: none !important;
}

/* 首页中央的 OpenAI 淡色装饰 logo 删除 */
div.size-14.cursor-interaction.opacity-30 {
  display: none !important;
}

/* 历史对话条目：标题下的模式标签 + 时间 */
.customer-thread-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
/* 手机端输入区底部安全余量 */
@media (max-width: 640px) {
  .transcript-dock {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
  }
}
.customer-thread-mode {
  color: #35628d;
  font-size: 10px;
  line-height: 13px;
  font-weight: 500;
}
.customer-thread-time { font-size: 10px; color: #a0a6ae; }

/* 全屏错误恢复页（ChatGPT hit a snag）删除 */
div.bg-surface-recovery {
  display: none !important;
}

/* 中间加载阶段：OpenAI 花瓣组件（_Root_yklzu）即时替换为品牌动画（纯 CSS，无延迟） */
[class*="_Root_yklzu"] {
  position: relative;
  width: min(260px, 60vw);
  height: calc(min(260px, 60vw) * 0.2844);
}
[class*="_Root_yklzu"] > * {
  display: none !important;
}
[class*="_Root_yklzu"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/ai/customer-assets/brand-load.svg") center / contain no-repeat;
}

/* ==== 输入区精简 ==== */
/* 附件菜单只留 Files and folders：隐藏其余项 */
button[aria-label^="Work in a project" i],
button[aria-label^="Goal " i],
button[aria-label^="Plan mode" i],
button[aria-label="Dictate" i] {
  display: none !important;
}

/* 去掉输入框阴影 */
[class*="_ComposerLayoutBody_"] {
  box-shadow: none !important;
}

/* 操作指南时禁用附件上传 */
button.customer-upload-off {
  pointer-events: none !important;
  opacity: 0.45 !important;
}
.customer-upload-hint {
  font-size: 10px;
  line-height: 14px;
  color: #a0a6ae;
  white-space: nowrap;
  align-self: center;
}

/* “What should we work on …”标题行：渲染即隐藏（CSS :has 即时生效，
   group/title 全 bundle 仅此一处使用），品牌动画由 JS 注入其原位 */
div:has(> [class*="group/title"]) {
  display: none !important;
}
.customer-composer-anim {
  width: min(220px, 50vw);
  height: auto;
  margin: 0 auto 10px;
  display: block;
}

/* 输入框卡片：彻底去掉灰色边框/描边，与页面融合 */
[class*="_ComposerLayoutBody_"] {
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}

/* 首页动画下方四个建议方框删除 */
div[class*="auto-fit,minmax(10rem"] {
  display: none !important;
}

/* 输入框底部胶囊（项目/模型档位等）即时隐藏，零闪现：
   文字胶囊均带 h-token-button-composer 且无 aspect-square（附件按钮是 aspect-square 图标钮，发送键无该类） */
button.h-token-button-composer:not(.aspect-square) {
  display: none !important;
}
/* 项目胶囊整体（含清除按钮） */
div[class*="_ActiveProjectSelectorTrigger"] {
  display: none !important;
}

/* 上传进度面板（参照 27050：文件名+进度条+百分比） */
#__customer_upload_panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 110px;
  z-index: 2147482500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.customer-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.customer-upload-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #3d4147;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-upload-bar {
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: #e8eaed;
  overflow: hidden;
  flex-shrink: 0;
}
.customer-upload-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #3978c6;
  transition: width 0.15s ease;
}
.customer-upload-percent {
  font-size: 11px;
  color: #35628d;
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}
.customer-upload-row--failed .customer-upload-fill {
  background: #b42318;
}
.customer-upload-row--failed .customer-upload-percent {
  color: #b42318;
}
@media (max-width: 640px) {
  #__customer_upload_panel {
    bottom: 130px;
    width: calc(100vw - 24px);
  }
}

/* ==== 手机端适配（像原生 App） ==== */
@media (max-width: 640px) {
  /* 输入区 16px 防止 iOS 聚焦自动放大 */
  [contenteditable="true"],
  .ProseMirror {
    font-size: 16px !important;
  }
  html, body {
    overscroll-behavior: none !important;
  }
  /* 视口高度链：移动端浏览器工具栏可见时 100vh 是"大视口"，比可见区域高，
     导致输入框被底部工具栏遮住。html/body/#root/应用壳统一改为跟随
     --customer-vh（compat 脚本用 visualViewport API 实时计算可见高度，
     键盘弹出时也会同步收缩），桌面端不受此媒体查询影响。 */
  html, body, #root, #root > div.relative {
    height: var(--customer-vh, 100dvh) !important;
  }
  /* iPhone 全面屏 home 指示条安全区 */
  [class*="_ComposerLayoutRoot_"] {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  /* 侧栏品牌区 */
  .customer-sidebar-inner {
    padding-top: 10px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .customer-sidebar-brand {
    padding: 4px 6px 8px;
  }
  .customer-sidebar-brand img {
    width: 92px;
  }
  .customer-sidebar-selection {
    font-size: 11px;
    padding: 6px 8px;
  }
  .customer-thread-item {
    padding: 6px 8px;
  }
  .customer-thread-title {
    font-size: 12px;
  }
  /* 消息列表顶部留空：防止 sticky 标题栏盖住首条消息 */
  .transcript-turn-window {
    padding-top: 60px !important;
    margin-top: -40px !important;
  }
  /* 上传进度面板上移避开键盘 */
  #__customer_upload_panel {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }
}

/* 会话状态：转圈（正在生成）和蓝点（未读/已生成） */
.customer-thread-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.customer-thread-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid #d8dde3;
  border-top-color: #3978c6;
  border-radius: 50%;
  animation: customer-spin 0.8s linear infinite;
}
@keyframes customer-spin {
  to { transform: rotate(360deg); }
}
.customer-thread-unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3978c6;
  box-shadow: 0 0 4px rgba(57, 120, 198, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .customer-thread-spinner {
    animation: none;
  }
}

/* 线程页顶部工具栏：去掉文件夹图标和笔（编辑标题）图标 */
button[aria-label^="Change project" i],
button[aria-label="Edit message" i],
button[aria-label="Thread title" i],
button[aria-label*="edit" i],
button[aria-label*="rename" i] {
  display: none !important;
}

/* 消息下方的"分叉会话"按钮隐藏（保留复制） */
button[aria-label="Fork chat from here" i] {
  display: none !important;
}

/* 线程标题左侧的项目选择器文件夹图标（div 容器，非 button） */
div[class*="_ActiveProjectSelectorTrigger"] > div,
div.aspect-square.h-token-button-composer.pointer-events-auto,
div.pointer-events-auto.flex.aspect-square.h-token-button-composer {
  display: none !important;
}

/* 标题旁的"编辑"笔图标（aspect-square 图标按钮） */
button.aspect-square.h-token-button-composer:has(svg path[fill-rule="evenodd"][clip-rule="evenodd"][d^="M10.842"]) {
  display: none !important;
}
/* 兜底：标题行的 aspect-square 图标按钮（笔/文件夹），排除侧栏切换按钮和附件上传按钮
   （附件钮同样是 aspect-square 图标钮，见上方 338 行注释，绝不能被误杀） */
button.aspect-square.h-token-button-composer:not([data-app-shell-sidebar-trigger]):not(.group\/sidebar-trigger):not([aria-label="Add files and more"]):not([aria-label="添加文件及更多操作"]) {
  display: none !important;
}

/* 精准隐藏：标题旁的文件夹图标和笔图标（按 SVG path 特征匹配） */
/* 文件夹图标（M5.55957 开头的 path） */
button:has(svg path[d^="M5.55957"]),
div[class*="_ActiveProjectSelectorTrigger"] svg {
  display: none !important;
}
/* 笔图标（M6.33325 开头 = 笔轮廓 + M10.842 开头 = 笔尖） */
button:has(svg path[d^="M6.33325"]),
button:has(svg path[d^="M10.842"]) {
  display: none !important;
}

/* 文件夹图标（span 容器变体，在标题左侧 x≈65 处） */
span.aspect-square.h-token-button-composer:has(svg path[d^="M5.55957"]) {
  display: none !important;
}
/* 更宽泛的兜底：header 里所有 aspect-square 的 span 图标容器 */
span.pointer-events-auto.aspect-square.h-token-button-composer {
  display: none !important;
}

/* ===== 强制登录门禁（复用官网登录/注册流程） ===== */
#__customer_login_gate {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 20, 30, 0.55);
  backdrop-filter: blur(2px);
  padding: 20px;
  overflow: auto;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.customer-gate-card {
  width: min(100%, 400px);
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  color: #202020;
}
.customer-gate-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.customer-gate-brand img {
  width: 96px;
  height: auto;
}
.customer-gate-brand span {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 2px;
}
.customer-gate-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.customer-gate-head p {
  margin: 4px 0 14px;
  font-size: 12px;
  color: #8a9099;
}
.customer-gate-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #f2f4f7;
  border-radius: 10px;
  padding: 3px;
}
.customer-gate-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}
.customer-gate-tab--on {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.customer-gate-field {
  margin-bottom: 12px;
  flex: 1;
  min-width: 0;
}
.customer-gate-field label {
  display: block;
  font-size: 12px;
  color: #5b6470;
  margin-bottom: 5px;
}
.customer-gate-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8dde5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
}
.customer-gate-field input:focus {
  border-color: #2b6cff;
}
.customer-gate-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.customer-gate-captcha {
  height: 42px;
  width: 108px;
  border-radius: 10px;
  border: 1px solid #d8dde5;
  cursor: pointer;
  object-fit: cover;
  background: #f7f8fa;
  flex-shrink: 0;
}
.customer-gate-sms {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #2b6cff;
  color: #2b6cff;
  background: #fff;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.customer-gate-sms:disabled {
  border-color: #b9c2cf;
  color: #9aa4b1;
  cursor: default;
}
.customer-gate-submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: #2b6cff;
  color: #fff;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.customer-gate-submit:disabled {
  opacity: 0.65;
}
.customer-gate-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #9aa4b1;
}
.customer-gate-toast {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #107c41;
  opacity: 0;
  transition: opacity 0.25s ease;
  min-height: 16px;
}
.customer-gate-toast--error {
  color: #c2334b;
}

/* ===== 侧栏底部账号区 ===== */
.customer-sidebar-user {
  margin-top: auto;
  padding: 10px 8px 8px;
  border-top: 1px solid rgba(120, 130, 145, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.customer-user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.customer-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2b6cff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.customer-user-name {
  font-size: 12px;
  color: #dfe4ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-user-logout {
  border: 1px solid rgba(150, 160, 175, 0.4);
  background: transparent;
  color: #9aa4b1;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.customer-user-logout:hover {
  color: #fff;
  border-color: rgba(200, 210, 225, 0.6);
}
.customer-user-login {
  width: 100%;
  border: 0;
  background: #2b6cff;
  color: #fff;
  border-radius: 10px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 640px) {
  .customer-gate-card {
    padding: 20px 16px 14px;
  }
}

/* ==== 合并回补（2026-10-01）：以下规则在用户登录门版本中被覆盖丢失，重新并入 ==== */

/* 选型弹窗右上角关闭按钮（先浏览历史对话，不强制选型） */
.customer-home-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a909a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.customer-home-close:hover { background: #f0f2f5; color: #3d4147; }
.customer-home-close svg { width: 16px; height: 16px; }

/* 弹窗底部"先浏览历史对话"链接 */
.customer-home-skip {
  margin: 12px 0 0;
  border: 0;
  background: transparent;
  color: #35628d;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.customer-home-skip:hover { background: #f0f5fb; }

/* 顶部 File/View/Help 菜单栏：桌面版残留，Web 端点击无功能，整体隐藏（保留左侧侧栏开关） */
[role="menubar"]:has(> button[id^="application-menu-trigger"]) {
  display: none !important;
}

/* ==== 加号附件菜单：一步到位只留一行中文「附件上传」 ====
   上游菜单结构：Add 段（Files and folders 按钮）+ Files 段（workspace 文件搜索，
   对客户无意义）。全部用 CSS 在首帧隐藏，避免英文→中文的跳动。
   作用域用菜单外壳类名（首页菜单带 composer-home-top-menu，会话内菜单不带，
   两者都在 _ComposerTopMenuShell_ 外壳内）。 */
[class*="_ComposerTopMenuShell_"] .vertical-scroll-fade-mask > div + div {
  display: none !important;
}
[class*="_ComposerTopMenuShell_"] .sticky.top-0 {
  display: none !important;
}
[class*="_ComposerTopMenuShell_"] button[data-list-navigation-item] span.truncate:not(:has(span)) {
  font-size: 0 !important;
}
[class*="_ComposerTopMenuShell_"] button[data-list-navigation-item] span.truncate:not(:has(span))::after {
  content: "附件上传";
  font-size: 14px;
}
