/* =========================================================
   cb-v2.css · 采集箱系列（V2 清爽版）公共外壳
   用途：采集箱 / AI 操作记录 / 定价模板 / 标题词模板 / 商品编辑 / 各类弹窗
        —— 全部页面共用这一份外壳样式，页面里只写自己独有的部分。

   用法：
     <link rel="stylesheet" href="theme.css">
     <link rel="stylesheet" href="cb-v2.css">
     外层必须是 <div class="view is-on" data-style="b">
     浮层（弹窗 / toast）也必须写在 .view 内，否则拿不到令牌、静默失效

   约束（不要破坏）：
     ① 只用 theme.css 已冻结的令牌，不新增色值 / 圆角 / 阴影层级
     ② 本文件所有类名统一 cb- 前缀，避开 theme.css 的 .step / .field / .chip 等同名类
     ③ 页面级样式写在各自文件的 <style> 里，不要回写到本文件
   ========================================================= */

/* ---------- 0. 外壳兜底：无 devbar 时撑满整屏 ---------- */
.app { min-height: 100vh; }
.sidebar { top: 0; height: 100vh; }

.nav-item.is-soon { opacity: .42; pointer-events: none; }
.nav-item .soon-tag {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  padding: 1.5px 6px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3);
}

/* ---------- 1. 顶条：面包屑 + 账号切换 + 当前店铺 ---------- */
.page-head .meta { max-width: 640px; line-height: 1.75; }

.cb-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.cb-crumb { font-size: 12.5px; color: var(--ink-3); }
.cb-crumb b { color: var(--ink); font-weight: 650; }
.cb-crumb i { font-style: normal; margin: 0 7px; color: var(--line-strong); }
.cb-topbar-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* 原生 select 换成细描边胶囊，全站统一（下拉箭头用内联 svg，不引外部字体） */
.cb-sel {
  height: var(--ctrl-h); padding: 0 30px 0 11px; font-size: 12.5px; font-weight: 650; color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7681' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  appearance: none; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cb-sel:hover { border-color: var(--accent); }
.cb-sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.cb-sel.is-block { width: 100%; height: var(--ctrl-h); font-size: 13.5px; border-radius: var(--r); }

.cb-shop { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.cb-shop b { color: var(--ink); font-weight: 650; }
.cb-shop .ro { font-size: 11px; color: var(--ink-3); }
.cb-shop .lnk { color: var(--accent-strong); font-weight: 650; cursor: pointer; }
.cb-shop .lnk:hover { text-decoration: underline; }

/* ---------- 2. 面板头 / 状态页签 / 搜索 ---------- */
.cb-listhead {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px var(--pad-card); border-bottom: 1px solid var(--line);
}
.cb-listhead h3 { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.cb-meta-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.cb-meta-chip.is-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.cb-sync { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cb-sync .t { font-size: 11.5px; color: var(--ink-3); }

.btn.is-loading { pointer-events: none; opacity: .7; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
.btn.is-loading .ic { animation: cb-spin .8s linear infinite; }

.cb-tabsrow {
  display: flex; align-items: center; gap: 1px; flex-wrap: wrap;
  padding: 0 var(--pad-card); border-bottom: 1px solid var(--line);
}
.cb-tab {
  position: relative; height: 42px; padding: 0 12px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.cb-tab:hover { color: var(--ink); }
.cb-tab.is-on { color: var(--accent-strong); border-bottom-color: var(--accent); font-weight: 700; }
.cb-tabn {
  margin-left: 5px; font-size: 10.5px; font-weight: 700;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.cb-tab.is-on .cb-tabn { color: var(--accent-strong); }
.cb-search { margin-left: auto; width: 200px; }
.cb-search .input { height: var(--ctrl-h); font-size: 12.5px; border-radius: var(--r-sm); }

/* ---------- 3. 表格：信息密度对齐原型，窄了宁可横滚也不压扁（2026-11-13 老板拍板列表整体放大一档；11-15 追加：产品图为视觉主体放大到 64px，字体维持 11-13 档；三档密度切换已删——11-15 13:44 拍板） ---------- */
.cb-tbl { table-layout: fixed; width: 100%; border-collapse: collapse; }
.cb-tbl th {
  padding: 12px 10px; text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 650; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.cb-tbl td {
  padding: 14px 12px; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden;
}
.cb-tbl tbody tr { transition: background .12s; }
.cb-tbl tbody tr:hover { background: var(--surface-2); }
.cb-tbl tbody tr:last-child td { border-bottom: 0; }
.cb-tbl .is-num { font-variant-numeric: tabular-nums; }
.cb-tbl .is-r { text-align: right; }

.cb-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cb-thumb {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center;
  font-size: 30px; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.cb-ptitle {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 🔴 2026-11-16「标题展示不全」真正根因：标题整串包在 <a class="cb-act"> 里（点标题去编辑），
   而 .cb-act 自带 white-space:nowrap → 标题永远不换行，上面的 2 行 clamp 一直是摆设，
   只剩 overflow:hidden 单行硬裁。此处强制恢复换行，clamp 才真正生效。 */
.cb-ptitle a { white-space: normal; }
/* 「显示全名」展开态：取消截断，按自然换行铺开（2026-11-15 第 6 条） */
.cb-ptitle.is-full { -webkit-line-clamp: unset; display: block; overflow: visible; }
.cb-idline {
  margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cb-idline .k { font-family: inherit; }
.cb-idline b { font-weight: 650; color: var(--ink-2); letter-spacing: .2px; }
.cb-idline .sep { color: var(--line-strong); }
.cb-idline .cb-act { color: var(--ink-3); text-decoration: none; }
.cb-idline .cb-act:hover { color: var(--accent-strong); }
.cb-psub {
  margin-top: 4px; font-size: 12px; color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-cell .nm { font-size: 13.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-cell .s { margin-top: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-cell.is-mute .nm { color: var(--ink-3); font-weight: 500; }

/* 状态小徽标：比 .badge 矮 2px，多列并行时更利落 */
.cb-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.cb-chip.is-ok { background: var(--ok-bg); color: var(--ok); }
.cb-chip.is-warn { background: var(--warn-bg); color: var(--warn); }
.cb-chip.is-err { background: var(--danger-bg); color: var(--danger); }
.cb-chip.is-info { background: var(--accent-soft); color: var(--accent-strong); }
.cb-chip.is-gray { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

.cb-err {
  margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--danger);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cb-muted { color: var(--ink-3); }

.cb-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cb-act {
  font-size: 13px; font-weight: 650; color: var(--accent-strong);
  cursor: pointer; white-space: nowrap; border: 0; background: none; padding: 0;
  font-family: inherit; transition: color .12s;
}
.cb-act:hover { text-decoration: underline; }
.cb-act.is-danger { color: var(--danger); }
.cb-act.is-quiet { color: var(--ink-3); font-weight: 600; cursor: default; white-space: normal; }
.cb-act.is-danger { color: var(--danger); font-weight: 650; } /* 发布失败「重新发布」（老板 2026-11-15 14:32 拍板红字） */
.cb-act.is-quiet:hover { text-decoration: none; }
.cb-act.is-src { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cb-act.is-src:hover { color: var(--accent-strong); }

/* ---------- 4. 空态 ---------- */
.cb-empty { padding: 46px 20px; text-align: center; }
.cb-empty b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.cb-empty span { display: block; margin: 0 auto; max-width: 30em; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 5. 弹窗族 ---------- */
.cb-mask {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(16, 24, 40, .44);
}
.cb-mask[hidden] { display: none; }
.cb-modal {
  width: 560px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden;
}
.cb-modal.is-sm { width: 480px; }
.cb-modal.is-md { width: 720px; }
.cb-modal.is-lg { width: 960px; }
.cb-modal.is-xl { width: 1120px; }
.cb-modal-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--pad-card); border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
}
.cb-modal-h .cb-h-sub { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.cb-x {
  width: 28px; height: 28px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: var(--r-sm); background: transparent;
  font-size: 18px; line-height: 1; color: var(--ink-3); cursor: pointer;
}
.cb-x:hover { background: var(--surface-2); color: var(--ink); }
.cb-modal-b { padding: var(--pad-card); overflow-y: auto; flex: 1; min-height: 0; }
.cb-modal-b.is-flush { padding: 0; }
.cb-modal-f {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px var(--pad-card); border-top: 1px solid var(--line); background: var(--surface-2);
}
.cb-modal-f .cb-f-left { margin-right: auto; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 6. 表单件（弹窗内与页内通用） ---------- */
.cb-lab { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.cb-lab .req { color: var(--danger); margin-left: 2px; }
.cb-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.65; }
.cb-hint b { color: var(--ink-2); }
.cb-textarea {
  width: 100%; height: 130px; padding: 10px 11px; font-size: 12.5px; line-height: 1.8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  resize: vertical; transition: border-color .15s, box-shadow .15s;
}
.cb-textarea::placeholder { color: #A9B0BD; }
.cb-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.cb-errline { margin-top: 8px; font-size: 11.5px; color: var(--danger); line-height: 1.6; }
.cb-okline {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-strong); font-size: 11.5px; line-height: 1.65;
}
.cb-okline b { font-weight: 700; }
.cb-warnline {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--warn-bg); color: var(--warn); font-size: 11.5px; line-height: 1.65;
}
.cb-fld { margin-top: 16px; }
.cb-fld:first-child { margin-top: 0; }
.cb-pick {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.cb-pick .cb-thumb { background: var(--surface); }
.cb-pick .t { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-pick .s { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 两列 / 三列字段 */
.cb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cb-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

/* 数字输入 + 单位后缀 */
.cb-num { position: relative; display: flex; align-items: center; }
.cb-num .input { padding-right: 42px; font-variant-numeric: tabular-nums; }
.cb-num .unit {
  position: absolute; right: 12px; font-size: 11.5px; color: var(--ink-3); pointer-events: none;
}

/* 单选卡片（占比：关税 / 取整方式 这类互斥选项） */
.cb-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-opt {
  flex: 1 1 0; min-width: 96px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: 12.5px; color: var(--ink-2); transition: border-color .15s, background .15s, color .15s;
}
.cb-opt:hover { border-color: var(--accent); }
.cb-opt input { accent-color: var(--accent); margin: 0; flex: none; }
.cb-opt.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.cb-opt .k { font-weight: 650; color: var(--ink); }
.cb-opt.is-on .k { color: var(--accent-strong); }
.cb-opt .d { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }

/* ---------- 7. toast ---------- */
.cb-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  max-width: min(600px, 90vw); padding: 11px 18px;
  border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.5; text-align: center;
  box-shadow: var(--sh-md); opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .18s, transform .18s;
}
.cb-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 8. 通用积木（各页复用，避免每页重造） ---------- */
/* 指标块：一行 3~5 个，数字用等宽数字对齐 */
.cb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.cb-kpi {
  padding: 11px 13px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.cb-kpi .k { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.cb-kpi .v {
  margin-top: 3px; font-size: 17px; font-weight: 750; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.cb-kpi .v small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.cb-kpi.is-accent { background: var(--accent-soft); border-color: transparent; }
.cb-kpi.is-accent .v { color: var(--accent-strong); }
.cb-kpi.is-warn { background: var(--warn-bg); border-color: transparent; }
.cb-kpi.is-warn .v { color: var(--warn); }

/* 段落小标题：比 panel-head 轻一档，用于面板内部再分块 */
.cb-secttl {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
  margin: 18px 0 10px;
}
.cb-secttl:first-child { margin-top: 0; }
.cb-secttl .n {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-strong);
  font-size: 10.5px; font-weight: 800;
}
.cb-secttl .tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-3); }

/* 卡内小卡：可点 / 只读两种 */
.cb-card {
  padding: 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.cb-card.is-hover:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.cb-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.cb-card.is-flat { background: var(--surface-2); }

/* AI 能力角标：与按钮/标题同行时标识「这一步是模型干的」 */
.cb-ai {
  display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px;
  border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .02em;
  background: #FFF1EA; color: #9A3412; border: 1px solid #FDBA74;
}

/* 代码/ID 等宽文本 */
.cb-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}

/* 左侧编辑区 + 右侧常驻栏（商品编辑页 / AI 分析栏） */
.cb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: var(--gap); align-items: start; }
.cb-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 1240px) { .cb-cols { grid-template-columns: 1fr; } .cb-rail { position: static; } }

/* 竖向阶段轴（AI 优化 / 生图的「已跑到第几步」） */
.cb-steps { list-style: none; margin: 0; padding: 0; }
.cb-stepi { position: relative; display: flex; gap: 12px; padding: 0 0 16px 0; }
.cb-stepi:last-child { padding-bottom: 0; }
.cb-stepi::before {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: var(--line-strong);
}
.cb-stepi:last-child::before { display: none; }
.cb-stepi .dot {
  width: 21px; height: 21px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; z-index: 1;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-3);
}
.cb-stepi .bd { min-width: 0; padding-top: 1px; }
.cb-stepi .tt { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.cb-stepi .dd { margin-top: 3px; font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.cb-stepi.is-done .dot { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.cb-stepi.is-done .tt { color: var(--ink); }
.cb-stepi.is-now .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.cb-stepi.is-now .tt { color: var(--accent-strong); font-weight: 700; }
.cb-stepi.is-now::before { background: var(--line); }

/* 横向进度条（出图进度 / 批量任务） */
.cb-bar { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.cb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }

/* 图片格（生图结果 / 图库） */
.cb-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cb-imgtile {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 22px; color: var(--ink-3);
}
.cb-imgtile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px;
  font-size: 9.5px; font-weight: 700; color: #fff; background: rgba(16, 24, 40, .58);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-imgtile .no {
  position: absolute; left: 5px; top: 5px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 4px;
  font-size: 9.5px; font-weight: 800; color: #fff; background: rgba(16, 24, 40, .62);
}

/* ---------- 9. 响应式：列宽（自适应重排 2026-11-16） ----------
   原则：商品列 width:auto 吃掉剩余宽度（标题长度不可控，其余列等比缩放只会让标题永远差一口气）；
   其余 8 列语义定宽。窄屏（≤1450）整体收缩一档，≤1300 才兜底横滚。
   列宽放 CSS 而非 th 内联 style —— 内联无法被媒体查询覆盖，窄屏就瘦不下来。 */
.cb-tbl th.c-prod { width: auto; }
.cb-tbl th.c-state { width: 84px; }
.cb-tbl th.c-price { width: 96px; }
.cb-tbl th.c-src { width: 72px; }
.cb-tbl th.c-shops { width: 152px; }   /* 152＝两个店铺 chip 并排（128 会被压成三行，1920 截图目检发现） */
.cb-tbl th.c-time { width: 146px; }   /* 146＝「2026-11-15 14:37」实测 118px + 左右内边距 24 + 余量 */
.cb-tbl th.c-score { width: 76px; }
.cb-tbl th.c-stage { width: 104px; }
.cb-tbl th.c-acts { width: 130px; }
/* 窄屏收缩档：定宽列合计 860 → 818（采集状态/完整度不瘦——状态 chip 3 字需 84、完整度「100 分」需 76，
   实测瘦到 76/68 会溢出），把余量让给商品列。实测商品列：1440→272px、1366→198px，均不必横滚。 */
@media (max-width: 1450px) {
  /* 货源价格不瘦：区间值「¥12.80~35.60」实测需 96（88 会溢出，探针列序号 38 抓到） */
  .cb-tbl th.c-src { width: 64px; }
  .cb-tbl th.c-shops { width: 132px; }
  .cb-tbl th.c-stage { width: 96px; }
  .cb-tbl th.c-acts { width: 124px; }
}
.panel-body.tight { overflow-x: auto; }
/* ≤1300 兜底横滚：1120＝窄档定宽 818 + 商品列最小 302（再窄标题就没法看了）
   🔴 反直觉：横滚态下商品列反而比 1366 宽（302 vs 198）——1280 实测截断 0 条，1366 截断 8 条。
   ✅ 取舍已裁定（2026-11-16 07:2x，PRD V3.59 §7.12.5.1 段 D「实装基线」；TD-22 第③件）：
      选 A＝维持现状、横滚线留在 1300。1366/1440 不横滚，长标题靠「显示全名」就地展开。
      否 B（把横滚线提到 1450 换标题宽度）的两条硬账，别再翻案：
      ① 1440 表格内容宽 1090，距 1120 只差 30px 就要整表横滚，换来的只是商品列 272→302（中文约多 2 字）；
      ② 1366 表格 1016，横滚 104px，而操作列仅 124px——「去编辑」默认只露 20px，把高频操作推出视口。
      例外只有一种：老板为某个具体客户屏另行拍板。 */
@media (max-width: 1300px) { .cb-tbl { min-width: 1120px; } }
@media (max-width: 1180px) {
  .cb-search { width: 100%; margin-left: 0; padding-bottom: 10px; }
  .cb-tabsrow { padding-top: 6px; }
  /* 单列时用 minmax(0,1fr)：否则宽表把整栏撑出去，页面横向溢出 */
  .cb-cols { grid-template-columns: minmax(0, 1fr); }
}

/* 44px 控件校准（2026-11-11）：theme.css 冻结不可改，btn-sm 在本系列页统一拉到 --ctrl-h；层级感靠字号/描边保留 */
.btn.btn-sm { height: var(--ctrl-h); }
