/*SZDG-P2-前端重做-01 · FE-01 全局壳子（顶栏 / 底栏 / 侧栏 / 页头 / 卡片 / 页签）
 *
 * 定位（任务单口径，动手前先读）：
 * 1) 本文件只放**新壳**样式：手机顶栏、手机底栏、电脑侧栏、页头、卡片、胶囊、页签。
 * 2) 页面内部业务内容不改，只换壳不错位。所以一律用低优先级选择器 + 只覆盖
 *    尺寸/圆角/留白/字号，不去重写各页的业务组件样式。
 * 3) 加载顺序在 assets/szdg.css 之后（见 index.html），因此这里的规则在同等特异度下
 *    会压过 szdg.css / app.css，符合「以新壳为准」。需要让位的场景用 .v2-defer 标记。
 * 4) 视觉取值全部来自大脑版13 张效果图的源 CSS（m.css / assets/tokens.css），
 *    不自造一套设计语言。
 * 5) 深色模式：新壳只用 CSS 变量取色，跟随 tokens.css 的 prefers-color-scheme 自动切换，
 *    这里不写死颜色。
 */

/* ============================================================
 * 0. 品牌头像（顶栏 + 侧栏共用）
 *    BOSS 10-06 定3-1 糯米团子：透明底 + 浅金描边 #E6D6B4。
 *    图片资源：assets/img/xiaogu/xiaogu-avatar-nobg-outline-{40,64,128}.png
 * ============================================================ */
.xg-av {
  border-radius: 50%;
  background: transparent;/* 透明底，不给蓝底破坏描边 */
  border: 1px solid var(--shell-avatar-ring);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.xg-av-28 { width: 28px; height: 28px; }
.xg-av-30 { width: 30px; height: 30px; }
.xg-av-34 { width: 34px; height: 34px; }

/* ============================================================
 * 1. 手机顶栏（≤860px 显示；桌面隐藏，侧栏承担品牌区）
 *    效果图 02 号：圆形头像 + 「小谷」+ 在线状态，右侧留空位。
 * ============================================================ */
.shell-topbar {
  display: none;
}

@media (max-width: 860px) {
  .shell-topbar {
    display: flex;
    align-items: center;
    gap: 9px;
    height: var(--shell-topbar-h);
    padding: 0 var(--shell-pad);
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--separator);
  }
  /* 深色模式下顶栏用不透明的面色，避免文字压在气泡上糊掉 */
/*  @media (prefers-color-scheme: dark) {
    .shell-topbar { background: rgba(28, 28, 30, 0.92); }
  } */
  .shell-topbar .stb-name {
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    color: var(--label);
    white-space: nowrap;
  }
  .shell-topbar .stb-sub {
    font-size: 12px;
    line-height: 16px;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .shell-topbar .stb-spacer { flex: 1; min-width: 0; }
  /* 在线状态：圆点 + 文案（离线时顶栏也要能看出来） */
  .shell-topbar .stb-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    line-height: 16px;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .shell-topbar .stb-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); }
  .shell-topbar .stb-status .dot.dot-on { background: var(--ok); }
  .shell-topbar .stb-status .dot.dot-warn { background: var(--warn); }
  /* 顶栏右侧给页面级动作留的位置（示例数据条/ 搜索等） */
  .shell-topbar .stb-extra {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* 顶栏出现后，助手胶囊条紧贴其下（原来靠 top:52px 的硬编码） */
  .assistant-pills { padding-top: 8px; }
}

/* ============================================================
 * 2. 手机底栏（BOSS 10-06 20:37 定稿）
 *   员工：对话 / 待办 / 记忆库 / 我的
 *   负责人·老板：对话 / 待办 / 团队 / 我的
 *   「客户」按定稿位置预留（待办之后），由 CUSTOMER_TAB_ON 开关控制，默认不显示。
 * ============================================================ */
.bottom-tabs {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* @media (prefers-color-scheme: dark) {
  .bottom-tabs { background: rgba(28, 28, 30, 0.94); }
} */
.bottom-tabs .bt {
  font-size: 11px;
  line-height: 15px;
  gap: 3px;
  padding-top: 2px;
  min-width: 0;/* 4~5 项均分时不允许被内容撑宽（否则会横向溢出） */
}
.bottom-tabs .bt-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 22px 容器内统一 20px 视觉尺寸，图标本身是 18px 的 stroke 图标，留 1px 呼吸 */
.bottom-tabs .bt-ico svg { width: 20px; height: 20px; }
.bottom-tabs .bt-lb {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 未读角标（待办数），底栏徽标位置对齐效果图 .tabs a .bd */
.bottom-tabs .bt-badge {
  position: absolute;
  top: 2px;
  left: 54%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--risk);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 500;
}
.bottom-tabs .bt { position: relative; }

/* ============================================================
 * 3. 电脑侧栏（>860px）
 *   入口顺序：对话 / 待办 / 记忆库 / 我的 / 会议 [+ 团队 / 看板 / 对接 / 题池] [+ 素材审核]
 *   「轨迹」已并进记忆库（BOSS 10-07 09:04），侧栏不再有该入口。
 * ============================================================ */
.side { padding: 14px 10px 10px; background: #FFFCF6; border-right: 1px solid var(--border, #E4ECF7); }
.side-brand { padding: 4px 6px 12px; gap: 9px; }
/* 品牌区：企业Logo字块（保留正式标识，小谷头像仅用于助理位置） */
.side-brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-blue, var(--brand-primary, #1766D6));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-nav { gap: 2px; }
.side-nav a {
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--label, #17365F);
}
.side-nav a.active {
  background: var(--accent-orange, #F59A00);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
}
/* 侧栏待办数徽标（与效果图 PC 版右侧红点一致） */
.side-nav a .nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--risk);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 500;
}
.side-user { padding: 10px 6px 2px; }

/* ============================================================
 * 4. 页头 / 页身（手机优先的留白与字号）
 * ============================================================ */
@media (max-width: 860px) {
  .page-head {
    padding: 14px var(--shell-pad) 10px;
    gap: 8px;
    background: transparent;
    border-bottom: none;
  }
  .page-head h1 { font-size: 20px; line-height: 26px; font-weight: 700; }
  .page-body { padding: 4px var(--shell-pad) calc(var(--shell-bottombar-h) + 28px); max-width: 100%; }
  /* 手机端卡片化：块与块之间用新壳间距 */
  .page-body .box { padding: 14px; border-radius: var(--shell-radius); }
  .page-body .sec-title { font-size: 15px; margin-bottom: 10px; }
  .page-body .sec-title .sub { font-size: 12px; }
}
@media (min-width: 861px) {
  .page-head { padding: 16px 28px 12px; }
  .page-head h1 { font-size: 22px; line-height: 28px; }
  .page-body { padding: 20px 28px 96px; }
}

/* ============================================================
 * 5. 胶囊 / 小徽标（新壳统一圆角与字号）
 * ============================================================ */
.pill { font-weight: 500; }
.chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 0.5px solid var(--separator);
  font-size: 13px;
  color: var(--label);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.chip-v2.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip-v2.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; box-shadow: none; }

/* ============================================================
 * 6. 记忆库页签（分类记忆｜轨迹｜日报周报）
 *    BOSS 10-07 09:04：轨迹并进记忆库，页顶三个页签。
 * ============================================================ */
.mem-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 var(--shell-pad);
  background: var(--surface-solid);
  border-bottom: 0.5px solid var(--separator);
  position: sticky;
  top: var(--shell-topbar-h);
  z-index: 110;
}
@media (min-width: 861px) {
  .mem-tabs { padding: 0 28px; top: 0; }
}
.mem-tab {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--secondary);
  padding: 9px 12px;
  height: var(--shell-tab-h);
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}
.mem-tab:hover { color: var(--label); background: rgba(0, 0, 0, 0.03); }
.mem-tab.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}
.mem-pane { padding-top: 12px; }
.mem-pane[hidden] { display: none; }

/* 记忆库头卡（对齐 03 号效果图：蓝色渐变 + 4 个数字块） */
.mem-hero {
  background: var(--shell-grad);
  color: #17365F;
  border-radius: var(--shell-radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.mem-hero .mh-t { font-size: 16px; font-weight: 700; }
.mem-hero .mh-s { color: #526B8C; font-size: 12px; line-height: 17px; margin-top: 2px; }
.mem-hero .mh-b { color: #405B7B; font-size: 13px; line-height: 20px; margin-top: 10px; }
.mem-hero .mem-nums { margin-top: 10px; gap: 6px; }
.mem-hero .mem-num {
  background: rgba(23, 54, 95, 0.055);
  border-radius: var(--shell-radius-sm);
  padding: 6px 4px;
  text-align: center;
}
.mem-hero .mem-num b { color: #17365F; font-size: 17px; }
.mem-hero .mem-num span { color: #526B8C; }

/* 记忆库分类卡（对齐 03 号效果图：图标块 + 标题 + 条数 + 右侧尖括号） */
.mem-card { display: flex; align-items: flex-start; gap: 10px; }
.mem-card .mc-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--accent-soft);
}
.mem-card .mc-hd { flex: 1; min-width: 0; align-items: flex-start; }
.mem-card .mc-n { white-space: nowrap; font-size: 12px; }
.mem-card .mc-chev { color: var(--tertiary); font-size: 18px; line-height: 1; font-weight: 300; }
.mem-card .mc-warn { color: var(--warn-text); font-size: 12px; margin-top: 6px; font-weight: 600; }
.mem-card .mc-ok { color: var(--ok-text); font-size: 12px; margin-top: 6px; font-weight: 600; }

/* ============================================================
 * 7. 轨迹 / 日报周报 在记忆库里的排版（接口与字段不变，只换位置与排版）
 * ============================================================ */
.mem-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: 14px 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mem-sub:first-child { margin-top: 0; }
.trail-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--separator); }
.trail-item:last-child { border-bottom: none; }
.trail-sum { font-size: 14px; line-height: 20px; color: var(--label); margin-top: 3px; }
.trail-main { flex: 1; min-width: 0; }
.rp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.rp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-card {
  padding: 10px 6px;
  border-radius: var(--shell-radius-sm);
  background: var(--accent-soft);
  text-align: center;
}
.rp-card .rp-num { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--label); }
.rp-card .rp-l { font-size: 12px; line-height: 16px; color: var(--secondary); }
@media (max-width: 860px) {
  .rp-cards { grid-template-columns: repeat(3, 1fr); }
  .rp-actions { position: sticky; bottom: 0; background: var(--surface-solid); padding-top: 8px; }
}

/* ============================================================
 * 8. 防横向溢出（390 企微 UA 与 1280 桌面都不许出现 scrollWidth>clientWidth）
 *   A6 硬要求。这里只对已知的撑宽元凶做min-width 归零，不做 body overflow-x:hidden 一刀切
 *   （一刀切会掩盖真问题，SZDG 团队页那轮已踩过这个坑并写进注释）。
 * ============================================================ */
.page-head h1 { min-width: 0; overflow-wrap: anywhere; }
.page-head .spacer { min-width: 0; }
@media (max-width: 860px) {
  .page-body .grid-4,
  .page-body .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body .tbl { table-layout: fixed; width: 100%; }
  .page-body .tbl td,
  .page-body .tbl th { padding-left: 6px; padding-right: 6px; word-break: break-word; }
  .page-body .box { overflow-x: auto; }

  /* 分段切换器（.segmented）在 390 宽实测撑宽：
     - 「我的」页 .page-head 里的 #mejump：分段项在窄屏下曾撑宽 viewport；
     - 团队页 .page-head 里的 .team-switch：szdg.css 那轮已单独处理（横向滚动）。
     两处都在 .page-head 里（不是 .page-body），与 SZDG 团队页那轮同型
     （szdg.css 已写注释说明），这里用同法处理：允许换行。
     不用 body overflow-x:hidden 一刀切（一刀切会掩盖真问题）。 */
  .page-head .segmented,
  .page-body .segmented {
    flex-wrap: wrap;
    max-width: 100%;
    row-gap: 4px;
  }
  .page-head .segmented button,
  .page-body .segmented button {
    flex: 0 0 auto;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  /* #mejump 独占一行（页头标题行只留标题），与团队页 order:10 同思路 */
  .page-head .segmented#mejump {
    order: 10;
    flex: 1 1 100%;
    max-width: 100%;
  }
  /* 行内成组的按钮（如「导出JSON」这类 btn-sm 组）允许换行 */
  .page-body .row { flex-wrap: wrap; row-gap: 6px; }

  /* 分区标题行（.sec-title：标题 + 右侧动作按钮组）在 390 宽实测把最后一个按钮
     「导出JSON」推出视口（421 > 390）——.sec-title 是 flex 且默认不换行。
     处理：允许换行；标题后的 .spacer 改成 100% 基准把按钮组整体挤到下一行，
     这样按钮组内部自然按可用宽度排，不会单个按钮被推出视口。 */
  .page-body .sec-title { flex-wrap: wrap; row-gap: 6px; }
  .page-body .sec-title > .spacer { flex: 1 1 100%; height: 0; min-width: 0; }
}
/* ============================================================
 * 9. 【SZDG-P2-前端重做-04 追加】记忆库页三个页签的视觉精排
 *    口径：只新增选择器，**不改动上面任何已有类的值**（任务单硬要求）。
 *    - 「分类记忆」页签的摘要卡 / 7 类分类卡结构在 assets/memory.js 里，
 *      这里只补两端（390 / 1280）不让位错位的布局约束；
 *    - 「轨迹」「日报周报」两个页签的 HTML 仍由 app.js 生成
 *      （渲染、接口、字段、提交逻辑一律没改），这里只做换到记忆库页签后的精排：
 *      列表卡片化、间距对齐、390 不挤、1280 不平铺错位。
 * ============================================================ */
.mem-pane-cat .mem-sub { margin-top: 16px; }
.mem-pane-cat .mem-card { align-items: flex-start; }
.mem-pane-cat .mem-detail { margin-bottom: 12px; }
/* 390：摘要卡里 4 个数字块并排，内边距收窄，避免数字被压出省略号 */
@media (max-width: 400px) {
  .mem-pane-cat .mem-hero .mem-nums { gap: 4px; }
  .mem-pane-cat .mem-hero .mem-num { padding: 6px 2px; }
  .mem-pane-cat .mem-hero .mem-num span { font-size: 11px; }
}

/* 「轨迹」页签：轨迹列表卡片化，行距按 03 的信息密度排 */
.mem-pane-trail .trail-list {
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 4px 14px;
}
.mem-pane-trail .trail-item { padding: 12px 0; gap: 12px; }
.mem-pane-trail .trail-item:last-child { border-bottom: none; }
.mem-pane-trail .trail-top { flex-wrap: wrap; row-gap: 2px; }
.mem-pane-trail .trail-sum { margin-top: 4px; }
.mem-pane-trail .trail-dot { width: 9px; height: 9px; margin-top: 6px; }

/* 「日报周报」页签：日报/周报切换 + 日期选择收进一张卡；三张数字卡与明细列表卡片化 */
.mem-pane-report .rp-head {
  justify-content: space-between;
  background: var(--surface-solid);
  border-radius: var(--shell-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.mem-pane-report .rp-head .tc-in { flex: 0 1 160px; width: auto; }
.mem-pane-report .rp-card { box-shadow: var(--shadow-card); }
.mem-pane-report .rp-list { gap: 8px; }
.mem-pane-report .rp-li {
  background: var(--surface-solid);
  border-radius: var(--shell-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
}
.mem-pane-report .rp-sec-title { margin-top: 16px; }
/* ============================================================
 * 9. 新人引导页（FE-05 · 按 01 号「新人引导」效果图重样）
 *    口径：
 *    1) 只**追加** .ob-* 类，不改上面 0–8 节任何已有类值（任务单硬要求）。
 *    2) 视觉取值来自 01 号效果图的源 CSS（m.css 的 .ph/.tb/.pad/.card2/.sec/.li/.av/
 *       .btnb/.step-dot + assets/tokens.css 的 .pill），不自造设计语言。
 *    3) 手机 390 优先：单列全宽；≥861px 居中卡片（不贴左），两侧留白。
 *    4) 横向溢出：卡片内长文本一律 min-width:0 + 换行，不写死宽度。
 * ============================================================ */

/* ---- 9.1 遮罩与容器 ---- */
.ob-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* 默认不显示；onboard.js 打开时写 style.display='flex'，关闭写 'none' */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font);
  box-sizing: border-box;
}

/* 手机：整屏单列；桌面：居中一张卡（≤560px），上下留白 */
.ob-sheet {
  width: 100%;
  max-width: 560px;
  min-height: 100%;
  background: var(--bg);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
@media (min-width: 861px) {
  .ob-mask { align-items: center; padding: 24px 16px; background: rgba(0, 0, 0, .45); }
  .ob-sheet {
    min-height: 0;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-raised);
  }
}

/* ---- 9.2 顶栏（对齐效果图 .tb：小谷头像 + 名字，无「谷」字块）---- */
.ob-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: var(--shell-topbar-h);
  padding: 0 var(--shell-pad);
  background: var(--surface-solid);
  border-bottom: .5px solid var(--separator);
  flex-shrink: 0;
}
.ob-tb-txt { min-width: 0; }
.ob-topbar .ob-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: var(--label);
}
.ob-topbar .ob-sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--secondary);
}
.ob-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--warn-text);
  background: var(--warn-soft);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- 9.3 开场区（渐变头 + 气泡卡，对齐效果图 01 顶部）---- */
.ob-hero {
  padding: 18px var(--shell-pad) 0;
  background: linear-gradient(180deg, rgba(0, 122, 255, .10), rgba(245, 245, 247, 0));
}
.ob-hero-row { display: flex; align-items: center; gap: 10px; }
.ob-hero-av {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  border: 1px solid var(--shell-avatar-ring);
}
.ob-hero-txt { min-width: 0; }
.ob-pos { font-size: 12px; line-height: 17px; color: var(--secondary); }
.ob-hello {
  font-size: 19px;
  font-weight: 700;
  line-height: 26px;
  color: var(--label);
  word-break: break-word;
}
.ob-bubble {
  margin-top: 14px;
  background: var(--surface-solid);
  border-radius: 4px 18px 18px 18px;
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.ob-lead {
  font-size: 16px;
  line-height: 25px;
  color: var(--label);
}
.ob-sm {
  font-size: 13px;
  line-height: 21px;
  color: var(--label);
  margin-top: 6px;
  word-break: break-word;
}

/* ---- 9.4 步骤条（对齐效果图 .step-dot + 连线）---- */
.ob-bodywrap { padding: 0 var(--shell-pad); flex: 1; }
.ob-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 14px;
  padding: 12px 14px;
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.ob-step-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.ob-step {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.ob-step-done { background: var(--ok); }
.ob-step-wait { background: #C7C7CC; }
.ob-step-lb {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--label);
  white-space: nowrap;
}
.ob-step-lb-now { color: var(--accent); }
.ob-step-line {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(120, 120, 128, .2);
  flex-shrink: 0;
}
.ob-step-line-done { background: var(--ok); }

/* ---- 9.5 分区标题与白卡（对齐效果图 .sec / .card2）---- */
.ob-sec {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: 18px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-card {
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin-bottom: 12px;
}
.ob-card-tight { padding: 4px 14px; }

/* ---- 9.6 卡内行（对齐效果图 .li：头像 + 主副文 + 右侧箭头）---- */
.ob-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }

/* ============================================================
 * SZDG-P2-前端重做-06 · FE-06 待办页分组卡片
 *
 * 定位：只**追加**待办页自己的类（.tdg-* / .td-g / .tdg-sec 等），
 * FE-01 已有的类值一个都没改。A5 效果图的样式取值来自效果图源 CSS
 * （m.css 的 .td-g/.li/.av、a.css 的 .gh/.gt、tokens.css 的 --shadow-card 等），
 * 不自造设计语言。类名加 .tdg- 前缀是为了不和 app.css / szdg.css 里的
 * 同名通用类（.li / .sec / .av 等）串样式。
 * ============================================================ */

/* ---- 顶部汇总条（照 A5 的 📋 hintbar） ---- */
.tdg-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 19px;
  border-radius: 12px;
  padding: 9px 12px;
  margin: 0 0 4px;
}
.tdg-sum-ic { font-size: 15px; flex-shrink: 0; }
.tdg-sum-t { flex: 1; min-width: 0; }
.tdg-sum-t b { font-weight: 700; }
.tdg-sum .pill { flex-shrink: 0; }

/* ---- 分段筛选（沿用原 .seg-filter，只调外距） ---- */
.tdg-filter { margin: 10px 0 4px; }

/* ---- 分区小标题（照 A5 的 .sec：标题 + 右侧动作） ---- */
.tdg-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: 16px 4px 8px;
}

/* ---- 分组卡片（照 A5 的 .td-g：白卡 + 圆角 16 + 卡片阴影） ---- */
.tdg-wrap .td-g {
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 2px 14px;
  margin-bottom: 12px;
}
/* 卡头：胶囊 + 组标题（+ 占位组的「待接入」小标） */
.tdg-wrap .td-g .gh {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 0 8px;
  border-bottom: 0.5px solid var(--separator);
}
.tdg-wrap .td-g .gh .gt { font-size: 14px; font-weight: 700; color: var(--label); }
.tdg-wrap .td-g .gh .gc { font-size: 12px; color: var(--secondary); }
.tdg-wrap .td-g .gh .tdg-soon {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--tertiary);
}
/* 行（照 A5 的 .li：头像 + 主区 + 右侧动作） */
.tdg-wrap .td-g .li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: .5px solid var(--separator);
  min-width: 0;
  text-align: left;
}
.ob-li:last-child { border-bottom: none; }
.ob-li-btn {
  width: 100%;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ob-li-btn:active { opacity: .6; }
.ob-li-m { flex: 1; min-width: 0; }
.ob-li-n {
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
  color: var(--label);
  word-break: break-word;
}
.ob-li-s {
  font-size: 12px;
  line-height: 17px;
  color: var(--secondary);
  margin-top: 2px;
  word-break: break-word;
}
.ob-av {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-bottom: 0.5px solid var(--separator);
}
.tdg-wrap .td-g .li:last-child { border-bottom: none; }
.tdg-wrap .td-g .li .m { flex: 1; min-width: 0; }
.tdg-wrap .td-g .li .n { font-size: 14px; font-weight: 500; line-height: 20px; }
.tdg-wrap .td-g .li .s { font-size: 12px; color: var(--secondary); margin-top: 2px; }
/* 行内头像：圆形 + 白字（底色由 app.js 按名字散列给内联 style） */
.tdg-wrap .td-g .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.ob-chev { color: var(--tertiary); font-size: 18px; flex-shrink: 0; }
.ob-box { font-size: 18px; line-height: 22px; flex-shrink: 0; }

/* ---- 9.7 部门块 ---- */
.ob-row2 { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.ob-dept-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: var(--label);
  word-break: break-word;
}
.ob-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.ob-pill-accent { background: var(--accent-soft); color: var(--accent); }
.ob-dept-desc { margin-top: 6px; }

/* ---- 9.8 通用文本 ---- */
.ob-xs { font-size: 12px; line-height: 17px; }
.ob-mut { color: var(--secondary); }
.ob-sp { flex: 1; min-width: 0; }
.ob-ul { margin: 0; padding-left: 18px; }
.ob-ul li { font-size: 14px; line-height: 24px; margin-bottom: 6px; word-break: break-word; }
.ob-ul li:last-child { margin-bottom: 0; }
.ob-body { font-size: 14px; line-height: 24px; color: var(--label); }
.ob-ask-tip { padding: 8px 0 10px; }

/* ---- 9.9 底部按钮（对齐效果图 .btnb：次要 + 主按钮）---- */
.ob-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px var(--shell-pad) 22px;
  flex-shrink: 0;
}
.ob-btn {
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ob-btn-pri { background: var(--accent); color: #fff; flex: 2; }
.ob-btn-sec {
  flex: 1;
  background: var(--surface-solid);
  color: var(--accent);
  border: .5px solid var(--separator);
  font-size: 15px;
}
.ob-btn-ghost {
  background: var(--neutral-soft);
  color: var(--label);
  font-size: 15px;
  font-weight: 500;
}
@media (max-width: 360px) {
  .ob-btn { font-size: 15px; padding: 0 12px; }
  .ob-step-lb { font-size: 12px; }
}
/* 行右侧：截止 + 状态胶囊 + 操作按钮 */
.tdg-wrap .tdg-r {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tdg-wrap .tdg-due { font-size: 12px; color: var(--secondary); white-space: nowrap; }

/* ---- 空位（五个新分组 + 现有分组的空态） ---- */
.tdg-wrap .td-g .li.tdg-empty { color: var(--secondary); }
.tdg-wrap .tdg-empty-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-soft);
  color: var(--tertiary);
  font-size: 15px;
  flex-shrink: 0;
}
.tdg-wrap .tdg-empty .n { color: var(--secondary); }

/* ---- 页脚说明 ---- */
.tdg-foot { text-align: center; margin: 12px 0 4px; }

/* ---- 兼容节点：renderTodoRows / submitTodo 仍按id 找它们，
       视觉上完全不显示（数据实际渲染在 .tdg-wrap 里） ---- */
.tdg-compat { display: none !important; }

/* ---- 1280：分组卡片两栏，不挤 ---- */
@media (min-width: 1024px) {
  .tdg-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: start;
  }
  /* 汇总条与页脚跨整行 */
  .tdg-wrap .tdg-sum,
  .tdg-wrap .tdg-foot { grid-column: 1 / -1; }
  /* 每个「分区小标题 + 分组卡」是一个整体，占一格。
     🔴 若把 .tdg-sec 和 .td-g 平铺成 .tdg-wrap 的兄弟节点，grid 会按顺序交替
     填格子 —— 第1 格是标题、第 2 格才是卡片，于是**所有卡片都被挤到第二栏**，
     第一栏全是光秃秃的小标题（实测 1280 下 9 个卡片 left 全等于 784）。
     所以 app.js 里每个分组包了一层 .tdg-grp，这里只需让它成为 grid item。 */
  .tdg-wrap .tdg-grp { min-width: 0; }
  .tdg-wrap .td-g { margin-bottom: 16px; }
}

/* ---- 390：长内容不撑破视口 ---- */
@media (max-width: 860px) {
  /* 底栏是 fixed，会盖住页面末尾的内容。基线（.page-body）用
     padding-bottom: calc(var(--shell-bottombar-h) + 28px) 让位，
     本单把待办内容放在 .tdg-wrap 里（不在 .page-body 内），
     所以要自己补这份让位，否则最后一个分组卡 + .tdg-foot 会被底栏压住。 */
  .tdg-wrap { padding-bottom: calc(var(--shell-bottombar-h) + 28px); }
  .tdg-wrap .td-g .li { flex-wrap: wrap; row-gap: 6px; }
  .tdg-wrap .td-g .li .m { flex: 1 1 100%; order: 2; }
  .tdg-wrap .td-g .av { order: 1; }
  /* 右侧动作独占一行靠右，避免「截止 + 状态 + 按钮」把标题挤出视口 */
  .tdg-wrap .tdg-r {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .tdg-wrap .tdg-due { white-space: normal; }
}

/* ============================================================
 * 9. SZDG-P2-前端重做-08（FE-08）团队页：按 06 / 08a 效果图重样
 *   口径（任务单硬要求）：
 *   1) 本段**只追加团队页自己的类**（前缀 tm-），不改上面 FE-01 任何已有类值；
 *   2) 视觉取值来自 06 / 08a 效果图的源 CSS（m.css 的 .card2 / .chip / .sec /
 *      .li / .row2 / .av），不自造设计语言；
 *   3) 只写尺寸/圆角/留白/字号/颜色，团队页业务结构由 assets/team.js 负责。
 * ============================================================ */

/* ---- 9.1 顶部人卡 + 部门页签（06 号效果图顶部区） ---- */
.tm-hero {
  background: var(--surface-solid);
  border-bottom: 0.5px solid var(--separator);
  border-radius: var(--shell-radius);
  padding: 10px var(--shell-pad);
  margin-top: 12px;
}
.tm-hero-row { display: flex; align-items: center; gap: 10px; }
.tm-hero-txt { flex: 1; min-width: 0; }
.tm-hero-nm { font-size: 15px; font-weight: 600; color: var(--label); overflow-wrap: anywhere; }
.tm-hero-sub { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; overflow-wrap: anywhere; }
.tm-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.tm-av.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* 胶囊 = m.css .chip（去掉了 .chip 的固定 height，改由 padding 定高以便中文换行不截断） */
.tm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 30px; padding: 4px 12px;
  border-radius: var(--shell-radius-sm);
  background: var(--surface-solid);
  border: 0.5px solid var(--separator);
  font-size: 13px; line-height: 18px; color: var(--label);
  font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  white-space: nowrap;
}
.tm-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tm-chip.off,
.tm-chip[disabled] {
  cursor: not-allowed; color: var(--tertiary);
  background: var(--neutral-soft); border-color: transparent; box-shadow: none;
}
.tm-chip-tag {
  font-size: 10px; line-height: 14px; padding: 0 5px; border-radius: 6px;
  background: var(--neutral-soft); color: var(--secondary);
}

/* ---- 9.2 合计条（06 号「今天 N 个部门合计」accent-soft 条） ---- */
.tm-sum {
  margin-top: 12px;
  background: var(--accent-soft);
  border-radius: var(--shell-radius);
  padding: 10px var(--shell-pad);
  font-size: 13px; line-height: 19px; color: var(--label);
  overflow-wrap: anywhere;
}
.tm-sum.sub { margin-top: 10px; }

/* ---- 9.3 分区标题（06 号 .sec：左标题 + 右侧动作） ---- */
.tm-sec {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--secondary);
  margin: 18px 4px 8px;
}
.tm-sec .spacer { flex: 1; min-width: 0; }
.tm-sec .tm-r { font-weight: 400; color: var(--accent); cursor: pointer; }
.tm-xs { font-size: 12px; line-height: 17px; }
.tm-xs.mut { color: var(--secondary); }
.tm-xs.acc { color: var(--accent); }

/* ---- 9.4 「按部门看」卡片（06 号部门卡 + 三格统计） ---- */
.tm-dcard {
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 12px var(--shell-pad);
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid transparent;
}
.tm-dcard:last-child { margin-bottom: 0; }
.tm-dcard.on { border-color: var(--accent); }
.tm-dcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-dcard-hd { display: flex; align-items: center; gap: 8px; }
.tm-dcard-hd .spacer { flex: 1; min-width: 0; }
.tm-dcard-nm { font-size: 16px; font-weight: 700; color: var(--label); overflow-wrap: anywhere; }
.tm-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; margin-top: 8px; text-align: center;
}
.tm-metrics.wide { margin-top: 12px; }
.tm-metric {
  background: var(--neutral-soft); border-radius: 10px;
  padding: 6px 4px; min-width: 0;
}
.tm-metric.ok { background: var(--ok-soft); }
.tm-metric.warn { background: var(--warn-soft); }
.tm-metric-n {
  font-size: 17px; line-height: 22px; font-weight: 700; color: var(--label);
  overflow-wrap: anywhere;
}

/* ---- 9.5 列表行（06 / 08a 的 .li 行式条目） ---- */
.tm-li-box { padding: 2px var(--shell-pad); }
.tm-li-box.flat { box-shadow: none; background: transparent; padding: 0; }
.tm-li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--separator);
}
.tm-li:last-child { border-bottom: none; }
.tm-li .m { flex: 1; min-width: 0; }
.tm-li .n { font-size: 14px; line-height: 20px; color: var(--label); overflow-wrap: anywhere; }
.tm-li .s { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; overflow-wrap: anywhere; }

/* ---- 9.6 08a 主管看下属面板 ---- */
.tm-sub-empty .empty { padding: 24px 12px; }
.tm-sub-box { padding: 14px var(--shell-pad); }
.tm-sub-hd { display: flex; align-items: center; gap: 10px; }
.tm-sub-tip { margin-top: 10px; }
.tm-sub-body { margin-top: 4px; }
.tm-foot {
  font-size: 12px; line-height: 17px; color: var(--tertiary);
  text-align: center; margin: 12px 0 0;
}

/* ---- 9.7 1280 两栏不挤；390 竖排（FE-08 A5：两种宽度都不许横向溢出） ---- */
.tm-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1000px) {
  .tm-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  /* 两栏时把「按部门看 / 待我处理」各占一栏，标题不再额外贴边 */
  .tm-cols > * { min-width: 0; }
}
@media (max-width: 860px) {
  /* 部门页签允许换行（06 号 5 个胶囊在 390 会撑到 605px，szdg.css 那轮已同型处理） */
  .tm-chips { row-gap: 6px; }
  .tm-chip { white-space: normal; }
  /* 成员行两个按钮在 390 会挤，让它们换行到下一行 */
  .tm-sub-box .mem-item { flex-wrap: wrap; row-gap: 8px; }
  .tm-sub-box .mem-item .mem-info { flex: 1 1 100%; min-width: 0; }
}

/* ============================================================
 * 9. 看板页（FE-09 · SZDG-P2-前端重做-09）
 *    框架借 05 号效果图（BOSS 素材审核 PC：左导航 / 顶栏 / 内容区，本单沿用 FE-01 已有的
 *    .side / .shell-topbar / .page-head / .page-body，不重写外壳）；
 *    卡片样式借 08b 号效果图（BOSS 员工画像 PC：.box + .small.muted + .big-num + .xs.muted）。
 *    本段只**追加** .bd2-* 新类，FE-01 已有类值一个都没改（也不改 .hero/.north/.minis/.mini
 *    这些老类，避免波及其他单）。
 *    数据字段一律沿用 /stats/dashboard 现有字段，未新增任何统计维度。
 * ============================================================ */

/* 北星指标大卡（原来 .hero > .box.north 的位置，换成 08b 的柔和底色卡） */
.bd2-hero {
  margin-top: 16px;
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.bd2-hero .bd2-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
}
.bd2-hero .bd2-hero-n {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--label);
  margin-top: 8px;
}
.bd2-hero .bd2-hero-n small {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  margin-left: 6px;
}
.bd2-hero .bd2-def {
  font-size: 13px;
  line-height: 19px;
  color: var(--secondary);
  margin-top: 6px;
}

/* 四张统计卡（08b 卡片：标签 / 大数字 / 灰色补充） */
.bd2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bd2-card {
  padding: 14px 16px;
  border-radius: var(--shell-radius);
  min-width: 0;/* A4：390 下不许被内容撑宽 */
}
.bd2-card .bd2-lbl {
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
  font-weight: 400;
}
.bd2-card .big-num {
  margin-top: 4px;
  font-size: 30px;
  line-height: 37px;
  color: var(--label);
}
.bd2-card .bd2-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
/* 语义色只给数字上色（对齐 08b「没答上的题」那张卡的取法） */
.bd2-ok .big-num { color: var(--ok-text); }
.bd2-warn .big-num { color: var(--warn-text); }

/* 统计周期胶囊（页头右侧） */
.page-head .bd-period {
  font-size: 13px;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---- 断点：1280 为主；≤1080 四卡降两列；≤600（手机 390）四卡单列不挤压 ---- */
@media (max-width: 1080px) {
  .bd2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* 手机 390：卡片单列，不下沉不挤压 */
  .bd2-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bd2-hero { padding: 14px; }
  .bd2-hero .bd2-hero-n { font-size: 36px; line-height: 44px; }
  .bd2-card { padding: 12px 14px; }
  .bd2-card .big-num { font-size: 26px; line-height: 32px; }
  .page-head .bd-period { white-space: normal; }
}

/* ============================================================
 * 9. 题池页（.pool-*）—— SZDG-P2-前端重做-11（FE-11）

/* ============================================================
 * SZDG-P2-前端重做-06 · FE-06 待办页分组卡片
 *
 * 口径（任务单：只换壳样式，功能/接口/提交流程一律不改）：
 *   1) 本节**只新增** .pool-* 与 .pool-head .demo 两组类，不改上面 1–8 节任何已有类的值。
 *      FE-01 的壳子样式（顶栏/底栏/侧栏/页头/卡片/页签）原样保留。
 *   2) 借的是 05 号效果图（BOSS 素材审核 PC）的**布局语言**：
 *      页头 h1 + 计数胶囊 + 右侧「示例数据」标记；卡内 .segmented 分段器 + .tbl 列表。
 *      05 的右详情面板**不搬**——题池没有详情接口，搬了就得新增接口调用（违反 A3）。
 *   3) 视觉取值沿用 05 源CSS 的口径（--radius-card / --separator / --secondary 等 token），
 *      不自造设计语言；深色模式靠 token 自动跟随。
 *   4) 390 手机端：.pool-tbl 的表格转成**单列卡片**（td::before 取 data-label 显示列名），
 *      不靠横向滚动，也不用 body overflow-x:hidden 一刀切（同第 8 节既定口径，A4）。
 * ============================================================ */

/* 页头右侧「示例数据」标记（05 框架 page-head 右侧那枚灰字） */
.pool-head .demo {
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
}
.pool-head #pool-cnt { flex: 0 0 auto; }

/* 题池主卡：与 05 的 .box 同宽同圆角，只微调内边距让分段器与表格贴住卡边 */
.page-body .pool-box { padding: 12px 16px 14px; }
.pool-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}
.pool-bar > .spacer { flex: 1 1 auto; min-width: 0; }
.pool-bar > .small { white-space: nowrap; }

/* 分段器：三个状态分类，样式全走 tokens.css 的 .segmented，这里只做尺寸微调 */
.pool-seg button { font-size: 13px; }

/* 05 风格提示条（权限口径：谁问的不显示 / 员工看不到题池） */
.pool-tip {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 20px;
}

/* 表格：05 框架的 .tbl 行高与列间距 */
.pool-tbl { table-layout: fixed; width: 100%; }
.pool-tbl th { white-space: nowrap; }
.pool-tbl td { vertical-align: top; }
.pool-tbl .pool-c-count { width: 76px; }
.pool-tbl .pool-c-route { width: 120px; }
.pool-tbl .pool-c-owner { width: 110px; }
.pool-tbl .pool-c-time { width: 132px; }
.pool-tbl .pool-c-act { width: 132px; }
.pool-tbl tbody tr:nth-child(even) { background: var(--fill-tertiary, rgba(120, 120, 128, 0.04)); }

/* 次数徽标：05 框架里那一列用小圆角块；≥10 次（该优先补）标热色 */
.pool-n {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 8px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
}
.pool-n b { font-size: 17px; line-height: 20px; font-weight: 700; color: var(--label); }
.pool-n span { font-size: 11px; line-height: 14px; color: var(--secondary); }
.pool-n.hot { background: var(--warn-soft); }

/* 问题列：05 里素材名是 font-weight:500，副信息用 xs mut */
.pool-q {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: var(--label);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pool-c-time { font-size: 13px; line-height: 19px; color: var(--label); }
.pool-c-time .pool-t2 { font-size: 12px; line-height: 17px; color: var(--secondary); }
.pool-c-owner { font-size: 13px; line-height: 19px; color: var(--label); word-break: break-word; }

.pool-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  background: var(--neutral-soft);
  color: var(--secondary);
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* 操作列：05 里按钮组右对齐 */
.pool-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pool-done { font-size: 12px; color: var(--secondary); }

.pool-err {
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: 13px;
  line-height: 20px;
}
.pool-foot { margin-top: 10px; color: var(--secondary); }

/* ---- 390 手机端：表格转单列卡片（A4：scrollWidth <= clientWidth，不靠横向滚动） ---- */
@media (max-width: 860px) {
  .pool-box { padding: 12px 12px 14px; }
  .pool-bar { flex-wrap: wrap; row-gap: 8px; }
  /* 三个状态分段独占一行，下面那行提示文字自然换行，不挤压分段器 */
  .pool-bar > .spacer { flex: 1 1 100%; height: 0; min-width: 0; }
  .pool-bar > .small { white-space: normal; }

  .pool-tbl thead { display: none; }
  .pool-tbl,
  .pool-tbl tbody,
  .pool-tbl tr,
  .pool-tbl td { display: block; width: auto; }
  .pool-tbl tr {
    border: 0.5px solid var(--separator);
    border-radius: var(--radius-card);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--surface-solid);
  }
  .pool-tbl tr:nth-child(even) { background: var(--surface-solid); }
  .pool-tbl td {
    border-bottom: none;
    padding: 2px 0;
    display: flex;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
  }
  /* 列名用 data-label 自动显示（不另写一份列名 DOM，避免两处文案漂移） */
  .pool-tbl td::before {
    content: attr(data-label);
    flex: 0 0 68px;
    font-size: 12px;
    line-height: 19px;
    color: var(--secondary);
  }
  /* 值列必须能占满剩余宽度：不给 min-width:0 的话 flex 子项会按内容最小宽度收缩，
     390 宽下「资质助手」「2026-10-07 03:02」被压成竖排逐字换行（实测踩到）。
     值列统一 nowrap：时间那格有「最近 / 首次」两行，各自内部不许断。 */
  .pool-tbl td > * { min-width: 0; flex: 1 1 auto; }
  .pool-tbl .pool-c-route > *,
  .pool-tbl .pool-c-owner { white-space: nowrap; }
  /* 时间格是「最近」+「首次」两行。
     注意：td 在 390 下是 flex，子 div 会成为 flex item 并排到一行互相重叠
     （实测 bTop 388 < aTop+aH 405，肉眼是两行字压在一起）。
     这里把时间格改回块级流：列名仍靠 ::before 出，但值区自己纵向排两行。 */
  .pool-tbl .pool-c-time { display: block; }
  .pool-tbl .pool-c-time::before { display: block; margin-bottom: 2px; }
  .pool-tbl .pool-c-time > div {
    display: block;
    white-space: nowrap;
    line-height: 17px;
  }
  .pool-tbl .pool-c-q::before { display: none; }
  .pool-q { font-size: 15px; line-height: 22px; }
  /* 问题单元格单独一行放开排版 */
  .pool-tbl .pool-c-q { display: block; padding: 0 0 6px; }
  .pool-tbl .pool-c-act::before { flex-basis: 68px; }
  .pool-acts { justify-content: flex-start; }
  /* 次数徽标在窄列里会竖排（b 与 span 上下叠）——这里改成一行「12 次」，
     并给b 加 nowrap，否则两位数会被拆成「1」「2」两行（实测踩到）。 */
  .pool-tbl .pool-c-count .pool-n {
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    padding: 2px 10px;
    justify-content: flex-start;
    white-space: nowrap;
  }
  .pool-tbl .pool-c-count .pool-n b {
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
  }
}
/* ============================================================
 * 9. SZDG-P2-前端重做-07（FE-07）员工画像与培训建议
 *    排版取值全部来自 08b-BOSS员工画像-PC.html（只看画像/能力/培训建议部分；
 *    销售指标卡 grid-4 与培训建议引用异议库属FE-B7，本单不做，见回执边界说明）。
 *    一律用 xg-pt- 前缀新增类，不改 FE-01 已有类的取值。
 * ============================================================ */

/* 9.1 画像摘要卡：头像 + 姓名 + 部门·角色·熟练度（对齐 08b 右侧成员卡头部） */
.xg-pt-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.xg-pt-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tdg-wrap .td-g .li:last-child { border-bottom: none; }
.tdg-wrap .td-g .li .m { flex: 1; min-width: 0; }
.tdg-wrap .td-g .li .n { font-size: 14px; font-weight: 500; line-height: 20px; }
.tdg-wrap .td-g .li .s { font-size: 12px; color: var(--secondary); margin-top: 2px; }
/* 行内头像：圆形 + 白字（底色由 app.js 按名字散列给内联 style） */
.tdg-wrap .td-g .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
/* 行右侧：截止 + 状态胶囊 + 操作按钮 */
.tdg-wrap .tdg-r {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tdg-wrap .tdg-due { font-size: 12px; color: var(--secondary); white-space: nowrap; }

/* ---- 空位（五个新分组 + 现有分组的空态） ---- */
.tdg-wrap .td-g .li.tdg-empty { color: var(--secondary); }
.tdg-wrap .tdg-empty-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-soft);
  color: var(--tertiary);
  font-size: 15px;
  flex-shrink: 0;
}
.tdg-wrap .tdg-empty .n { color: var(--secondary); }

/* ---- 页脚说明 ---- */
.tdg-foot { text-align: center; margin: 12px 0 4px; }

/* ---- 兼容节点：renderTodoRows / submitTodo 仍按id 找它们，
       视觉上完全不显示（数据实际渲染在 .tdg-wrap 里） ---- */
.tdg-compat { display: none !important; }

/* ---- 1280：分组卡片两栏，不挤 ---- */
@media (min-width: 1024px) {
  .tdg-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: start;
  }
  /* 汇总条与页脚跨整行 */
  .tdg-wrap .tdg-sum,
  .tdg-wrap .tdg-foot { grid-column: 1 / -1; }
  /* 每个「分区小标题 + 分组卡」是一个整体，占一格。
     🔴 若把 .tdg-sec 和 .td-g 平铺成 .tdg-wrap 的兄弟节点，grid 会按顺序交替
     填格子 —— 第1 格是标题、第 2 格才是卡片，于是**所有卡片都被挤到第二栏**，
     第一栏全是光秃秃的小标题（实测 1280 下 9 个卡片 left 全等于 784）。
     所以 app.js 里每个分组包了一层 .tdg-grp，这里只需让它成为 grid item。 */
  .tdg-wrap .tdg-grp { min-width: 0; }
  .tdg-wrap .td-g { margin-bottom: 16px; }
}

/* ---- 390：长内容不撑破视口 ---- */
@media (max-width: 860px) {
  /* 底栏是 fixed，会盖住页面末尾的内容。基线（.page-body）用
     padding-bottom: calc(var(--shell-bottombar-h) + 28px) 让位，
     本单把待办内容放在 .tdg-wrap 里（不在 .page-body 内），
     所以要自己补这份让位，否则最后一个分组卡 + .tdg-foot 会被底栏压住。 */
  .tdg-wrap { padding-bottom: calc(var(--shell-bottombar-h) + 28px); }
  .tdg-wrap .td-g .li { flex-wrap: wrap; row-gap: 6px; }
  .tdg-wrap .td-g .li .m { flex: 1 1 100%; order: 2; }
  .tdg-wrap .td-g .av { order: 1; }
  /* 右侧动作独占一行靠右，避免「截止 + 状态 + 按钮」把标题挤出视口 */
  .tdg-wrap .tdg-r {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .tdg-wrap .tdg-due { white-space: normal; }
}

/* ============================================================
 * 9. SZDG-P2-前端重做-07（FE-07）员工画像与培训建议
 *    排版取值全部来自 08b-BOSS员工画像-PC.html（只看画像/能力/培训建议部分；
 *    销售指标卡 grid-4 与培训建议引用异议库属FE-B7，本单不做，见回执边界说明）。
 *    一律用 xg-pt- 前缀新增类，不改 FE-01 已有类的取值。
 * ============================================================ */

/* 9.1 画像摘要卡：头像 + 姓名 + 部门·角色·熟练度（对齐 08b 右侧成员卡头部） */
.xg-pt-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.xg-pt-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.xg-pt-idmain { flex: 1; min-width: 0; }
.xg-pt-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--label);
  overflow-wrap: anywhere;
}
.xg-pt-sub {
  font-size: 12px;
  line-height: 17px;
  color: var(--secondary);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
/* 小节标题（对齐 08b 的 .small + font-weight:600 那一行） */
.xg-pt-cap {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--label);
  margin: 14px 0 6px;
}
.xg-pt-cap:first-child { margin-top: 0; }

/* 9.2 能力标签（四维派生的偏弱/一般/较好/强，不新增接口字段） */
.xg-pt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.xg-pt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 26px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--neutral-soft, rgba(120, 120, 128, 0.08));
  color: var(--secondary);
}
.xg-pt-tag .xg-pt-tagv { font-weight: 700; color: var(--label); }
.xg-pt-tag.low { background: var(--warn-soft); color: var(--warn-text); }
.xg-pt-tag.low .xg-pt-tagv { color: var(--warn-text); }
.xg-pt-tag.mid { background: var(--accent-soft); color: var(--accent); }
.xg-pt-tag.mid .xg-pt-tagv { color: var(--accent); }
.xg-pt-tag.high { background: var(--ok-soft); color: var(--ok-text); }
.xg-pt-tag.high .xg-pt-tagv { color: var(--ok-text); }

/* 9.3 总管大脑的判断（对齐 08b 的 neutral-soft 圆角说明块） */
.xg-pt-judge {
  font-size: 13px;
  line-height: 19px;
  color: var(--label);
  background: var(--neutral-soft, rgba(120, 120, 128, 0.08));
  border-radius: 10px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

/* 9.4 培训建议列表（对齐 08b 的 train-item：标签在上、标题在下） */
.xg-pt-train {
  padding: 10px 12px;
  border-radius: var(--radius-modal, 12px);
  background: rgba(120, 120, 128, 0.05);
  border: 0.5px solid var(--separator);
}
.xg-pt-train + .xg-pt-train { margin-top: 10px; }
.xg-pt-train .train-tag { margin-bottom: 6px; }
.xg-pt-train .train-t { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.xg-pt-train .train-b {
  font-size: 13px;
  line-height: 19px;
  margin-top: 4px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.xg-pt-train .train-tag.pending { color: var(--warn-text); }

/* 9.5 「没答上的题」入口（链到已上线的题池 #/pool，逻辑不动，只统一样式） */
/* =====================================================================
 * SZDG-CRM1008-04 · 待办新分组「空位骨架页」
 * 四个分组（本批未跟进 / 收款节点到了 / 续期提醒 / 项目回执）的空卡片位：
 * 整块可点，点了弹 mock 新建窗。
 * 纯追加，0 删除；不覆盖上面 FE-06 已有的任何类值。
 * ===================================================================== */
.tdg-wrap .td-g.td-g-slot { border-style: dashed; }

.tdg-wrap .tdg-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--label);
  cursor: pointer;
}
.xg-pt-pool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xg-pt-pool .xg-pt-poolico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--warn-soft);
}
.xg-pt-pool .xg-pt-poolmain { flex: 1; min-width: 0; }
.xg-pt-pool .xg-pt-pooln { font-size: 15px; font-weight: 500; line-height: 21px; }
.xg-pt-pool .xg-pt-pools { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; }
.xg-pt-pool .xg-pt-poolchev { color: var(--tertiary); font-size: 18px; line-height: 1; font-weight: 300; }

/* 9.6 成员画像弹层（负责人点成员；1280 居中、390 全宽可滚） */
.xg-pt-modal {
  width: 420px;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-solid);
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--shadow-raised);
  padding: 16px 18px 20px;
}
.xg-pt-modal .xg-pt-av { width: 36px; height: 36px; font-size: 15px; }
.xg-pt-modal .szdg-modal-hd { margin-bottom: 12px; }
/* 弹层里的能力四维行间距对齐 08b */
.xg-pt-modal .attr-row { margin-top: 10px; }

@media (max-width: 860px) {
  .xg-pt-modal { width: 100%; max-height: 88vh; padding: 14px 14px 18px; }
  /* 弹层遮罩在手机上贴边，别把内容挤成一条*/
  .szdg-modal-mask { padding: 12px; }
  .xg-pt-id { gap: 9px; }
  .xg-pt-name { font-size: 15px; line-height: 21px; }
  .page-body .xg-pt-train { padding: 10px 12px; }
}
/* ============================================================
 * 9. SZDG-P2-前端重做-10（FE-10）素材录入 / 抖音教程 / BOSS 审核
 *    2) 全部取色走 tokens 变量，深色模式自动跟随；
 *    3) 05 为 PC 1280 优先（表格 + 右预览 440px），≤860px 降级为上下排布。
 * ============================================================ */

/* ---- 9.1 通用小件（三个页共用） ---- */
.mt-secttl {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin: 18px 2px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mt-secttl-top { margin-top: 4px; }
.mt-secttl-in { margin-top: 0; }
.mt-secttl-r { margin-left: auto; font-weight: 400; color: var(--accent); }
.mt-card {
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  border: 0.5px solid var(--separator);
}
.mt-card-tight { padding: 4px 14px; }
.mt-card-sub { margin-top: 12px; }
.mt-notice { font-size: 13px; line-height: 19px; }
.mt-notice-sm { font-size: 12px; line-height: 18px; }
.mt-req { color: var(--risk-text); }
.mt-field { margin-top: 12px; }
.mt-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.mt-textarea { height: auto; min-height: 96px; line-height: 21px; resize: vertical; }
.mt-subhint { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 6px; }
.mt-submit { margin-top: 16px; }
.mt-subnote { font-size: 12px; line-height: 17px; color: var(--secondary); text-align: center; margin-top: 8px; }
.mt-form { margin-top: 14px; }

/* ---- 9.2 04a 素材录入 ---- */
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chips .chip-v2 { cursor: pointer; }
.mt-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-mode {
  position: relative;
  border: 0.5px solid var(--separator);
  border-radius: var(--shell-radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
  padding: 12px 6px;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.mt-mode .mt-mic { display: block; font-size: 24px; line-height: 30px; }
.mt-mode .mt-modename { font-size: 14px; font-weight: 600; margin-top: 2px; }
.mt-mode .mt-modedesc { font-size: 11px; line-height: 15px; color: var(--secondary); margin-top: 1px; }
.mt-mode.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent-soft), var(--shadow-card);
  color: var(--accent);
}
.mt-mode.on .mt-modedesc { color: var(--accent); opacity: .75; }
/* 抖音那张：黑底 + 「教程」角标（对齐 04a 效果图最后一张卡片） */
.mt-mode-dark { background: #111; border-color: #111; color: #fff; }
.mt-mode-dark .mt-modedesc { color: #fff; opacity: .7; }
.mt-mode-dark.on { box-shadow: 0 0 0 1.5px var(--accent); color: #fff; }
.mt-newtag {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: #FF2D55;
  color: #fff;
}
.mt-who { display: flex; gap: 8px; font-size: 13px; line-height: 19px; padding: 5px 0; }
.mt-who .mt-wa { color: var(--accent); font-weight: 600; min-width: 76px; flex-shrink: 0; }
.mt-who .mt-wn { color: var(--secondary); min-width: 0; overflow-wrap: anywhere; }

/* 「我提交的」列表行 */
.mt-mi { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 0.5px solid var(--separator); }
.mt-mi:last-child { border-bottom: none; }
.mt-mi-ico { font-size: 22px; line-height: 26px; flex-shrink: 0; }
.mt-mi-main { flex: 1; min-width: 0; }
.mt-mi-t { font-size: 14px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.mt-mi-s { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; }
.mt-rej { font-size: 12px; line-height: 18px; color: var(--risk-text); background: var(--risk-soft); border-radius: 8px; padding: 6px 10px; margin: -2px 0 10px 32px; }

/* ---- 9.3 04b 抖音 / 视频 / 录音 → 豆包转逐字稿（5 步图文） ---- */
.mt-tut { margin-top: 18px; }
.mt-pre {
  font-family: "PingFang SC", "Noto Sans CJK SC", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 20px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
}
.mt-prefoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mt-presub { flex: 1; min-width: 0; font-size: 12px; line-height: 17px; color: var(--secondary); }
.mt-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 0.5px solid var(--separator); }
.mt-step:last-child { border-bottom: none; }
.mt-stepmain { flex: 1; min-width: 0; }
.mt-stephead { display: flex; align-items: center; gap: 8px; }
.mt-stepdot {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mt-stept { font-size: 14px; font-weight: 600; line-height: 20px; overflow-wrap: anywhere; }
.mt-stepd { font-size: 13px; line-height: 19px; color: var(--secondary); margin-top: 6px; }
/* 步骤示意图：纯 div 拼的手机小图（96×120），不新增图片资源 */
.mt-dw {
  width: 78px; height: 98px; flex: 0 0 78px;
  border-radius: 12px; border: 1.5px solid var(--label);
  background: #fff; padding: 5px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 8px; line-height: 11px; overflow: hidden;
}
.mt-dw-bar { flex: 1; background: #222; color: #fff; border-radius: 5px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 3px; }
.mt-dw-btn { background: #FE2C55; color: #fff; border-radius: 4px; text-align: center; padding: 2px 0; }
.mt-dw-prompt .mt-dw-txt { flex: 1; background: var(--bg); border-radius: 4px; padding: 3px; overflow: hidden; }
.mt-dw-prompt .mt-dw-btn { background: #007AFF; }
.mt-dw-name { font-weight: 700; }
.mt-dw-msg { flex: 1; background: var(--accent-soft); color: var(--label); border-radius: 5px; padding: 3px; margin-left: 10px; overflow: hidden; }
.mt-dw-md { flex: 1; color: var(--label); overflow: hidden; }
.mt-dw-md .mt-dw-t { font-weight: 700; }
.mt-dw-md .mt-dw-l { color: var(--secondary); margin-top: 2px; }
.mt-dw-paste .mt-dw-t { font-weight: 700; }
.mt-dw-paste .mt-dw-l { flex: 1; border: .5px solid var(--separator); border-radius: 4px; padding: 3px; margin-top: 2px; overflow: hidden; }
.mt-tutnote { font-size: 12px; line-height: 17px; color: var(--secondary); margin: 10px 2px 0; }
@media (max-width: 420px) {
  .mt-dw { width: 64px; height: 84px; flex: 0 0 64px; }
  .mt-step { gap: 10px; }
}

/* ---- 9.4 05 BOSS 素材审核（PC 1280 优先：表格 + 右侧 440px 预览） ---- */
.mt-review { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 16px; align-items: start; }
.mt-rlist { background: var(--surface-solid); border-radius: var(--shell-radius); box-shadow: var(--shadow-card); border: 0.5px solid var(--separator); padding: 12px 16px; min-width: 0; }
.mt-rprev { background: var(--surface-solid); border-radius: var(--shell-radius); box-shadow: var(--shadow-card); border: 0.5px solid var(--separator); padding: 16px 18px; min-width: 0; }
.mt-rbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.mt-rbar .spacer { flex: 1; }
.mt-rfilter { height: 28px; font-size: 12px; }
.mt-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; }
.mt-tbl th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--secondary);
  padding: 8px 6px; border-bottom: 0.5px solid var(--separator); white-space: nowrap;
}
.mt-tbl td { padding: 10px 6px; border-bottom: 0.5px solid var(--separator); vertical-align: middle; font-size: 13px; }
.mt-tbl tbody tr { cursor: pointer; }
.mt-tbl tbody tr:hover { background: rgba(0, 0, 0, .02); }
.mt-tbl tbody tr.on { background: var(--accent-soft); }
.mt-td-ico { font-size: 18px; width: 30px; }
.mt-ltitle { font-size: 14px; font-weight: 500; line-height: 19px; overflow-wrap: anywhere; }
.mt-lsub { font-size: 12px; line-height: 16px; color: var(--secondary); margin-top: 2px; }
.mt-lcell { display: inline-flex; align-items: center; gap: 6px; }
.mt-rfoot { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 10px; }
.mt-phd2 { display: flex; align-items: flex-start; gap: 10px; }
.mt-pico { font-size: 20px; line-height: 24px; flex-shrink: 0; }
.mt-pmain { flex: 1; min-width: 0; }
.mt-ptitle2 { font-size: 16px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.mt-pmeta { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; overflow-wrap: anywhere; }
.mt-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mt-preview {
  margin: 10px 0 0;
  background: var(--bg);
  border: 0.5px solid var(--separator);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 21px;
  height: 330px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.mt-rejinput { margin-top: 10px; width: 100%; box-sizing: border-box; }
.mt-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mt-acts .btn { min-width: 96px; }
.mt-btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.mt-btn-reject { color: var(--risk-text); }
.mt-pfoot { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 10px; text-align: right; }
@media (max-width: 1100px) {
  .mt-review { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 860px) {
  .mt-review { grid-template-columns: minmax(0, 1fr); }
  .mt-rlist, .mt-rprev { padding: 12px; }
  /* 手机端表格只留「素材 + 状态」两列，避免横向溢出 */
  .mt-th-asst { display: none; }
  .mt-tbl th, .mt-tbl td { padding-left: 4px; padding-right: 4px; }
  .mt-preview { height: 240px; }
  .mt-acts { justify-content: stretch; }
  .mt-acts .btn { flex: 1 1 0; min-width: 0; }
  .mt-pfoot { text-align: left; }
}
/* ============================================================

 * 9. 看板页（FE-09 · SZDG-P2-前端重做-09）
 *    框架借 05 号效果图（BOSS 素材审核 PC：左导航 / 顶栏 / 内容区，本单沿用 FE-01 已有的
 *    .side / .shell-topbar / .page-head / .page-body，不重写外壳）；
 *    卡片样式借 08b 号效果图（BOSS 员工画像 PC：.box + .small.muted + .big-num + .xs.muted）。
 *    本段只**追加** .bd2-* 新类，FE-01 已有类值一个都没改（也不改 .hero/.north/.minis/.mini
 *    这些老类，避免波及其他单）。
 *    数据字段一律沿用 /stats/dashboard 现有字段，未新增任何统计维度。
 * ============================================================ */

/* 北星指标大卡（原来 .hero > .box.north 的位置，换成 08b 的柔和底色卡） */
.bd2-hero {
  margin-top: 16px;
  background: var(--surface-solid);
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.bd2-hero .bd2-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
}
.bd2-hero .bd2-hero-n {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--label);
  margin-top: 8px;
}
.bd2-hero .bd2-hero-n small {
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  margin-left: 6px;
}
.bd2-hero .bd2-def {
  font-size: 13px;
  line-height: 19px;
  color: var(--secondary);
  margin-top: 6px;
}

/* 四张统计卡（08b 卡片：标签 / 大数字 / 灰色补充） */
.bd2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bd2-card {
  padding: 14px 16px;
  border-radius: var(--shell-radius);
  min-width: 0;/* A4：390 下不许被内容撑宽 */
}
.bd2-card .bd2-lbl {
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
  font-weight: 400;
}
.bd2-card .big-num {
  margin-top: 4px;
  font-size: 30px;
  line-height: 37px;
  color: var(--label);
}
.bd2-card .bd2-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
/* 语义色只给数字上色（对齐 08b「没答上的题」那张卡的取法） */
.bd2-ok .big-num { color: var(--ok-text); }
.bd2-warn .big-num { color: var(--warn-text); }

/* 统计周期胶囊（页头右侧） */
.page-head .bd-period {
  font-size: 13px;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---- 断点：1280 为主；≤1080 四卡降两列；≤600（手机 390）四卡单列不挤压 ---- */
@media (max-width: 1080px) {
  .bd2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* 手机 390：卡片单列，不下沉不挤压 */
  .bd2-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bd2-hero { padding: 14px; }
  .bd2-hero .bd2-hero-n { font-size: 36px; line-height: 44px; }
  .bd2-card { padding: 12px 14px; }
  .bd2-card .big-num { font-size: 26px; line-height: 32px; }
  .page-head .bd-period { white-space: normal; }
}

/* ============================================================
 * 11. SZDG-P2-前端重做-12（FE-12）对接 / 会议 / 登录 / 告知 套新壳
 *
 * 定位（任务单口径）：这四页**无对应效果图**，按 13 张总览的统一风格做
 * （页头/卡片/留白/字号与全站一致），只做样式统一、不加功能。
 * 一律用新前缀类（.lk2- / .mt2- / .lg2- / .nt2-）**追加**，
 * 不改 FE-01/06/07/09 已有类的取值，也不改 szdg.css / app.css。
 * 视觉取值沿用 tokens.css 的 --shell-* 变量与 13 张效果图的源 CSS，不自造设计语言。
 * ============================================================ */

/* ---- 11.1 对接页（.lk2-*）：卡片留白 + 表格手机端单列卡片 ---- */
.lk2-wrap .lk2-box { margin-top: 12px; }
.lk2-wrap .lk2-box:first-of-type { margin-top: var(--shell-gap); }
.lk2-wrap .lk2-box .sec-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lk2-wrap .lk2-box .sec-title .sub { font-size: 12px; color: var(--secondary); font-weight: 400; }
/* 1280：审批表与离职三表都按固定列宽排，斑马纹沿用 token */
.lk2-wrap .lk2-tbl { table-layout: fixed; width: 100%; }
@media (max-width: 860px) {
  /* 390：表格转单列卡片（列名靠 td::before 取 data-label，不另写一份列名 DOM） */
  .lk2-wrap .lk2-tbl thead { display: none; }
  .lk2-wrap .lk2-tbl,
  .lk2-wrap .lk2-tbl tbody,
  .lk2-wrap .lk2-tbl tr,
  .lk2-wrap .lk2-tbl td { display: block; width: auto; }
  .lk2-wrap .lk2-tbl tr {
    background: var(--surface-solid);
    border-radius: var(--shell-radius-sm);
    border: 0.5px solid var(--separator);
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .lk2-wrap .lk2-tbl td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    border: none;
    font-size: 13px;
    line-height: 19px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .lk2-wrap .lk2-tbl td::before {
    content: attr(data-label);
    flex: 0 0 66px;
    color: var(--tertiary);
    font-size: 12px;
  }
  /* 四张表列名各不相同，用表格修饰类 + nth-child 各写一份。
     列名与各自 thead 里的 th 一一对应（文案以 thead 为准，两处必须同步改）。 */
  .lk2-wrap .lk2-tbl-appr td:nth-child(1)::before { content: "标题"; }
  .lk2-wrap .lk2-tbl-appr td:nth-child(2)::before { content: "状态"; }
  .lk2-wrap .lk2-tbl-appr td:nth-child(3)::before { content: "企微单号"; }
  .lk2-wrap .lk2-tbl-appr td:nth-child(4)::before { content: "发起时间"; }
  .lk2-wrap .lk2-tbl-pending td:nth-child(1)::before,
  .lk2-wrap .lk2-tbl-stats td:nth-child(1)::before,
  .lk2-wrap .lk2-tbl-log td:nth-child(1)::before { content: "姓名"; }
  .lk2-wrap .lk2-tbl-pending td:nth-child(2)::before,
  .lk2-wrap .lk2-tbl-stats td:nth-child(2)::before,
  .lk2-wrap .lk2-tbl-log td:nth-child(2)::before { content: "部门"; }
  .lk2-wrap .lk2-tbl-pending td:nth-child(3)::before { content: "标记时间"; }
  .lk2-wrap .lk2-tbl-pending td:nth-child(4)::before { content: "操作"; }
  .lk2-wrap .lk2-tbl-stats td:nth-child(3)::before { content: "提问"; }
  .lk2-wrap .lk2-tbl-stats td:nth-child(4)::before { content: "回答"; }
  .lk2-wrap .lk2-tbl-stats td:nth-child(5)::before { content: "真正解决"; }
  .lk2-wrap .lk2-tbl-stats td:nth-child(6)::before { content: "按助手"; }
  .lk2-wrap .lk2-tbl-log td:nth-child(3)::before { content: "删了什么"; }
  .lk2-wrap .lk2-tbl-log td:nth-child(4)::before { content: "保留的统计"; }
  .lk2-wrap .lk2-tbl-log td:nth-child(5)::before { content: "谁触发"; }
  .lk2-wrap .lk2-tbl-log td:nth-child(6)::before { content: "时间"; }
  .lk2-wrap .lk2-tbl td.rp-t { justify-content: center; }
  .lk2-wrap .lk2-tbl td.rp-t::before { content: none; }
  .lk2-wrap .lk2-tbl td > * { min-width: 0; }
}

/* ---- 11.2 会议页（.mt2-*）：发起/我的会议两栏 + 列表项圆角卡 ---- */
.mt2-wrap .mt2-two { margin-top: var(--shell-gap); gap: var(--shell-gap); }
.mt2-wrap .mt2-box { margin-top: 0; }
.mt2-wrap .mt2-box .sec-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt2-wrap .mt2-box .sec-title .sub { font-size: 12px; color: var(--secondary); font-weight: 400; }
/* 列表项按新壳卡片取值（圆角 12 + 卡片阴影），选中态沿用 accent 描边 */
.mt2-wrap .mt2-list .mt-item {
  border-radius: var(--shell-radius-sm);
  background: var(--surface-solid);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 11px 12px;
}
.mt2-wrap .mt2-list .mt-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.mt2-wrap .mt2-list .mt-i-title { font-size: 14px; font-weight: 600; }
.mt2-wrap .mt2-list .mt-i-sub { font-size: 12px; line-height: 17px; color: var(--secondary); margin-top: 2px; }
.mt2-wrap .mt2-detail { margin-top: var(--shell-gap); }
@media (max-width: 860px) {
  /* 390：两栏并成单列，别把「我的会议」列表压到 1/3 宽 */
  .mt2-wrap .mt2-two { grid-template-columns: minmax(0, 1fr); }
  .mt2-wrap .mt2-list .mt-i-top { flex-wrap: wrap; row-gap: 4px; }
  .mt2-wrap .mt2-detail .tc-row { flex-wrap: wrap; row-gap: 8px; }
}

/* ---- 11.3 登录页（.lg2-*）：卡片留白/圆角/字号取新壳变量，id 与文案不动 ---- */
.lg2-wrap { padding: 40px 16px 56px; }
.lg2-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px;
  text-align: center;
}
.lg2-brand { margin-bottom: 16px; }
.lg2-logo {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.lg2-name { font-size: 16px; line-height: 22px; font-weight: 600; }
.lg2-title { font-size: 22px; line-height: 30px; }
.lg2-sub { font-size: 13px; line-height: 19px; }
.lg2-qr {
  width: 200px; height: 200px;
  margin: 20px auto 14px;
  border-radius: var(--shell-radius-sm);
}
.lg2-scan { font-size: 15px; line-height: 21px; font-weight: 600; }
.lg2-steps { gap: 6px; margin-top: 8px; font-size: 12px; line-height: 17px; }
.lg2-err { text-align: left; }
.lg2-foot { margin-top: 20px; font-size: 12px; line-height: 19px; }
@media (min-width: 861px) {
  .lg2-card { max-width: 440px; padding: 32px 32px 28px; }
  .lg2-qr { width: 216px; height: 216px; }
}

/* ---- 11.4 首次告知页（.nt2-*）：四件事卡片 + 底部动作行 ---- */
.nt2-wrap { padding: 32px 16px 48px; align-items: flex-start; }
.nt2-card {
  width: 100%;
  max-width: 760px;
  border-radius: var(--shell-radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 20px;
}
.nt2-hello { font-size: 12px; line-height: 17px; margin-bottom: 6px; }
.nt2-title { font-size: 20px; line-height: 27px; }
.nt2-sub { font-size: 13px; line-height: 19px; }
.nt2-four { margin-top: 16px; gap: var(--shell-gap); }
.nt2-four .item {
  border-radius: var(--shell-radius-sm);
  padding: 14px 14px 12px;
  border: 0.5px solid var(--separator);
  min-width: 0;
}
.nt2-four .item .q { font-size: 15px; line-height: 21px; }
.nt2-four .item ul { font-size: 13px; line-height: 20px; }
.nt2-four .item .hint { font-size: 12px; line-height: 17px; }
.nt2-not { margin-top: 12px; padding: 12px 14px; font-size: 13px; line-height: 20px; }
.nt2-foot { font-size: 12px; line-height: 18px; }
.nt2-actions { margin-top: 18px; flex-wrap: wrap; row-gap: 10px; }
.nt2-actions .nt2-legal { margin-right: auto; font-size: 12px; line-height: 18px; }
@media (min-width: 861px) {
  .nt2-card { padding: 32px 36px 28px; }
  .nt2-four { margin-top: 20px; }
}
/* 390：四件事并成单列；底部动作按钮各占一行，不被挤成两行半个 */
@media (max-width: 860px) {
  .nt2-four { grid-template-columns: minmax(0, 1fr); }
  .nt2-actions { flex-direction: column; align-items: stretch; }
  .nt2-actions .nt2-legal { margin-right: 0; order: 3; }
  .nt2-actions .nt2-more,
  .nt2-actions .nt2-agree { width: 100%; justify-content: center; }
}

.tdg-wrap .tdg-slot {
  padding: 14px 12px;
  border: none;
  border-top: 1px solid var(--separator);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tdg-wrap .tdg-slot:hover { background: var(--separator); }
.tdg-wrap .tdg-slot:focus-visible { outline: 2px solid var(--accent, #007AFF); outline-offset: -2px; }

.tdg-wrap .tdg-slot-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--secondary);
  color: var(--secondary);
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  flex-shrink: 0;
}
.tdg-wrap .tdg-slot-t { font-size: 14px; font-weight: 600; }
.tdg-wrap .tdg-slot-s {
  font-size: 12px;
  color: var(--secondary);
  margin-left: auto;
  text-align: right;
  min-width: 0;
}

@media (max-width: 860px) {
  /* 390 上「说明」另起一行，别把主标题挤出视口 */
  .tdg-wrap .tdg-slot { flex-wrap: wrap; row-gap: 4px; }
  .tdg-wrap .tdg-slot-t { flex: 1 1 auto; }
  .tdg-wrap .tdg-slot-s { flex: 1 1 100%; margin-left: 38px; text-align: left; }
}

/* mock 新建弹窗：沿用 .sheet-overlay / .sheet 的既有形态，只调间距 */
.tdg-sheet-overlay { z-index: 260; }
/* 390 上弹窗内容比视口高，必须限高滚动，否则标题会被滚出视口、按钮点不到。
   （实测踩坑：第一版没限高，844 高的屏上「新建 · XXX」标题整个看不见。） */
.tdg-sheet {
  max-height: calc(100vh - 32px - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tdg-sheet-body { padding: 2px 8px 6px; }
.tdg-sheet-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--secondary);
}
/* .tc-in 自带 flex:1 1 180px（chat.css 给「指派待办」那排输入框用的），
   放进纵向 label 里会被拉成 180px 高的大块。这里收回成单行高度。 */
.tdg-sheet-f .tc-in {
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  padding: 9px 10px;
}
.tdg-sheet-tip {
  font-size: 12px;
  color: var(--secondary);
  line-height: 18px;
  background: var(--separator);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 2px 0 4px;
}
.tdg-sheet-save { width: 100%; margin-top: 8px; flex-shrink: 0; }
.tdg-sheet .sheet-cancel { flex-shrink: 0; }

/* ===== SZDG-1010W-00 响应式标准断点（P0-B）=====
   断点口径：<640 手机 / 640-1023 平板 / >=1024 桌面 / >=1280 宽桌面
   目标：无横向溢出；内容区max-width居中；不写死页面宽度。 */

/* 手机 <640px：底栏通栏，无侧栏，卡片单列 */
@media (max-width: 639px) {
  .page-body { padding: 12px 12px 80px; max-width: 100%; }
  .tdg-sheet { width: 100%; border-radius: 12px 12px 0 0; }
}

/* 平板 640-1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .page-body { padding: 16px 20px 96px; }
}

/* 桌面 >=1024px：侧栏展开，内容区max-width */
@media (min-width: 1024px) {
  .page-body { padding: 24px 32px 96px; max-width: 1136px; margin: 0 auto; }
}

/* 宽桌面 >=1280px：内容区居中不撑满 */
@media (min-width: 1280px) {
  .page-body { max-width: 1200px; }
}

/* 全局防横向溢出 */
html, body { overflow-x: hidden; }
img, canvas, video { max-width: 100%; }

/* ===== 欢迎屏：小谷主视觉 + 4快捷卡 ===== */
.welcome-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 30px; text-align: center;
}
.welcome-mascot img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 16px; }
.welcome-hero h2 { font-size: 28px; font-weight: 700; color: #123B78; margin: 0 0 8px; }
.welcome-sub { font-size: 16px; color: var(--secondary, #7186A4); margin: 0 0 32px; }
.welcome-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; width: 100%;
}
.wq-card {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; background: #fff; border: 1px solid var(--border, #E4ECF7);
  border-radius: 14px; font-size: 15px; color: var(--label, #17365F); cursor: pointer;
  transition: box-shadow .2s, transform .1s; text-align: left;
}
.wq-card:hover { box-shadow: 0 4px 16px rgba(23,102,214,.1); transform: translateY(-2px); }
.wq-ico { font-size: 20px; }
@media (max-width: 600px) {
  .welcome-quick { grid-template-columns: 1fr; }
  .welcome-hero h2 { font-size: 22px; }
}

/* ===== 全站卡片统一：加大圆角+柔和阴影 ===== */
.page-body .box,
.page-body .card,
.welcome-hero .wq-card {
  border-radius: 16px !important;
}

/* 页头统一 */
.page-head {
  background: transparent !important;
  border-bottom: none !important;
  padding-top: 20px !important;
}

/* 任务卡片统一样式 */
.todo-item,
.crm-item,
.project-item {
  border-radius: 14px !important;
  border: 1px solid var(--border, #E4ECF7) !important;
  background: #fff !important;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 3px rgba(23,54,95,.04) !important;
}

/* 表格卡片化 */
.todo-table,
.qual-table {
  border-radius: 14px !important;
  overflow: hidden !important;
}

/* ===== 底部导航统一：品牌蓝激活态 ===== */
.bottom-tabs {
  background: #fff !important;
  border-top: 1px solid var(--border, #E4ECF7) !important;
}
.bottom-tabs .bt.active {
  color: var(--brand-primary, #1766D6) !important;
}
.bottom-tabs .bt.active .bt-ico {
  transform: scale(1.1);
}

/* 顶部助手胶囊统一 */
.assistant-pills .ap.active {
  background: var(--accent-soft, #EAF3FF) !important;
  border-color: var(--brand-primary, #1766D6) !important;
  color: var(--brand-primary, #1766D6) !important;
}

/* ===== 全站按钮统一：品牌蓝主按钮 ===== */
button.primary,
/* 主按钮：品牌蓝 */
.btn-primary,
.sendbtn,
.pill-primary {
  background: var(--brand-primary, #1766D6) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
}
/* 发送按钮：企业橙 */
.send {
  background: var(--brand-orange, #F59A00) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.btn-primary:hover,
.sendbtn:hover,
.pill-primary:hover {
  background: var(--brand-primary-hover, #1055B8) !important;
}
.send:hover {
  background: #E08A00 !important;
}

/* 次要按钮 */
button.secondary,
.btn-secondary,
button.cancel,
.tl-btn-ghost {
  background: #F5F8FD !important;
  border: 1px solid var(--border, #E4ECF7) !important;
  border-radius: 12px !important;
  color: var(--label, #17365F) !important;
}

/* 输入框统一 */
input[type="text"],
input[type="password"],
textarea,
select {
  border: 1px solid var(--border, #E4ECF7) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--label, #17365F) !important;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-primary, #1766D6) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(23,102,214,.1) !important;
}

/* 正文文字统一 */
body {
  color: var(--label, #17365F) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif !important;
}
.secondary,
.muted {
  color: var(--secondary, #7186A4) !important;
}

/* ===== 知识审核页统一 ===== */
.kv-row,
.review-item,
.kb-item {
  border-radius: 14px !important;
  border: 1px solid var(--border, #E4ECF7) !important;
  background: #fff !important;
  margin-bottom: 10px !important;
  padding: 14px !important;
}

/* 状态标签统一 */
.tag,
.badge,
.pill {
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.tag-success,
.badge-success { background: #E8F8F0 !important; color: var(--ok, #28A36A) !important; }
.tag-warning,
.badge-warning { background: var(--brand-orange-soft, #FFF3DE) !important; color: var(--brand-orange, #F59A00) !important; }
.tag-danger,
.badge-danger { background: #FDE8E8 !important; color: var(--risk, #E45858) !important; }

/* 分组标题统一 */
.sec-title,
.section-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--label, #17365F) !important;
  margin-bottom: 12px !important;
}

/* ===== 聊天气泡统一 ===== */
.msg-bubble,
.bubble,
.msg {
  border-radius: 16px !important;
}
.msg-user .bubble {
  background: var(--brand-primary, #1766D6) !important;
  color: #fff !important;
  border-bottom-right-radius: 4px !important;
}
.msg-assistant .bubble {
  background: #fff !important;
  color: var(--label, #17365F) !important;
  border: 1px solid var(--border, #E4ECF7) !important;
  border-bottom-left-radius: 4px !important;
}

/* 输入框容器统一 */
.composer {
  border-radius: 16px !important;
  border: 1px solid var(--border, #E4ECF7) !important;
  box-shadow: 0 2px 12px rgba(23,54,95,.06) !important;
}

/* ===== 空状态统一 ===== */
.empty-state,
.no-data,
.placeholder {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center;
  color: var(--secondary, #7186A4);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty-state .title { font-size: 16px; font-weight: 600; color: var(--label, #17365F); margin-bottom: 8px; }
.empty-state .desc { font-size: 14px; line-height: 1.5; }

/* 加载状态统一 */
.loading,
.skeleton {
  background: linear-gradient(90deg, #F0F4FA 25%, var(--border, #E4ECF7) 50%, #F0F4FA 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 通知条统一 */
.notice {
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}
.notice-warn { background: var(--brand-orange-soft, #FFF3DE) !important; color: var(--brand-orange, #F59A00) !important; }
.notice-error { background: #FDE8E8 !important; color: var(--risk, #E45858) !important; }
.notice-info { background: var(--accent-soft, #EAF3FF) !important; color: var(--brand-primary, #1766D6) !important; }

/* ===== Tab标签页统一 ===== */
.tabs,
.seg,
.pills {
  border-bottom: 1px solid var(--border, #E4ECF7) !important;
  padding: 0 16px !important;
}
.tabs .tab,
.seg .seg-item,
.pills .pill {
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: var(--secondary, #7186A4) !important;
  border-bottom: 2px solid transparent !important;
  transition: all .2s !important;
}
.tabs .tab.active,
.seg .seg-item.active,
.pills .pill.active {
  color: var(--brand-primary, #1766D6) !important;
  border-bottom-color: var(--brand-primary, #1766D6) !important;
  font-weight: 600 !important;
}

/* ===== 进度条统一 ===== */
.progress,
.progress-bar {
  height: 8px !important;
  border-radius: 4px !important;
  background: var(--border, #E4ECF7) !important;
  overflow: hidden !important;
}
.progress .fill,
.progress-bar .fill {
  background: var(--brand-primary, #1766D6) !important;
  height: 100% !important;
  border-radius: 4px !important;
  transition: width .3s !important;
}

/* 时间线统一 */
.timeline,
.steps {
  padding-left: 20px !important;
}
.timeline .step,
.steps .step {
  position: relative !important;
  padding-bottom: 20px !important;
  padding-left: 16px !important;
}
.timeline .step::before,
.steps .step::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--border, #E4ECF7) !important;
}
.timeline .step.done::before,
.steps .step.done::before {
  background: var(--ok, #28A36A) !important;
}
.timeline .step.active::before,
.steps .step.active::before {
  background: var(--brand-primary, #1766D6) !important;
  box-shadow: 0 0 0 4px rgba(23,102,214,.15) !important;
}

/* ===== 表单统一 ===== */
.form-group {
  margin-bottom: 16px !important;
}
.form-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--label, #17365F) !important;
  margin-bottom: 8px !important;
}
.form-hint {
  font-size: 12px !important;
  color: var(--secondary, #7186A4) !important;
  margin-top: 4px !important;
}
.form-error {
  font-size: 12px !important;
  color: var(--risk, #E45858) !important;
  margin-top: 4px !important;
}

/* 分割线统一 */
.divider {
  height: 1px !important;
  background: var(--border, #E4ECF7) !important;
  margin: 16px 0 !important;
  border: none !important;
}

/* 头像统一 */
.avatar {
  border-radius: 50% !important;
  background: var(--accent-soft, #EAF3FF) !important;
  color: var(--brand-primary, #1766D6) !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* ===== 表格统一 ===== */
table,
.todo-table,
.qual-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}
table th,
.todo-table th,
.qual-table th {
  background: #F5F8FD !important;
  color: var(--secondary, #7186A4) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border, #E4ECF7) !important;
}
table td,
.todo-table td,
.qual-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border, #E4ECF7) !important;
  color: var(--label, #17365F) !important;
  font-size: 14px !important;
}
table tr:last-child td,
.todo-table tr:last-child td,
.qual-table tr:last-child td {
  border-bottom: none !important;
}

/* ===== 按钮组统一 ===== */
.btn-group {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.btn-group .btn {
  margin: 0 !important;
}

/* 悬浮按钮统一 */
.fab,
.float-btn {
  position: fixed !important;
  right: 16px !important;
  bottom: 80px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--brand-primary, #1766D6) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(23,102,214,.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  z-index: 100 !important;
}
