/* 内容中心 /content（内容总图 C5，L3 内容线）。颜色只用 tokens.css 的变量；黑色只给字，不做底色；最小字 12px。
   通用的（.blk、.hub-tabs、.tbl、.btn、.cols、.act-row、.act-bar……）是壳线 components.css 的；这里只放内容中心自己的。 */

.ch { font-size: 15px; line-height: 1.55; }
.ch em { font-style: normal; color: var(--pop-ink); }
.ch .pg-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ch .asof { font-size: 13px; color: var(--mute); }
.ch .ch-did { margin: 8px 0; }
.ch .tbl { font-size: 14px; }
.ch .tbl th { font-size: 13px; }
.ch .tbl td.num, .ch .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch .ch-sub { display: block; font-size: 13px; color: var(--mute); font-weight: 400; }
span.ch-sub, a.ch-sub { display: inline; }
.ch .ch-0 { color: var(--weak); }
.ch .ch-low { color: var(--red); font-weight: 600; }
.ch .ch-empty { color: var(--mute); font-size: 14px; margin: 6px 0; }
.ch .ch-line { font-size: 14px; margin: 8px 0; }
.ch .ch-line.bad { color: var(--red); }
.ch .ch-line.warn { color: var(--pop-ink); }
.ch .ch-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.ch .ch-k { font-size: 14px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
.ch .ch-k small { margin-left: 6px; }
.ch .ch-kb { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; }
.ch .ch-kb li { margin: 3px 0; }
.ch .ch-steps { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; }
.ch .ch-steps li { margin: 4px 0; }

/* 三栏：一个店一栏（CONT.号.2、CONT.周.2） */
.ch .ch-cols { align-items: start; }
.ch .ch-col { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card); min-width: 0; }
.ch .ch-col.ch-mine { border-color: var(--pop-line, var(--pop)); box-shadow: inset 3px 0 0 var(--pop); }
.ch .ch-colh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.ch .ch-colh b { font-size: 16px; }
.ch .ch-colh small { font-size: 13px; color: var(--mute); }
.ch .ch-colf { font-size: 14px; margin: 8px 0 0; color: var(--ink); }
.ch .ch-col .tbl { width: 100%; }
.ch .ch-wk td { vertical-align: top; }
.ch .ch-why { font-size: 13px; color: var(--mute); max-width: 260px; }
.ch .ch-terms { font-size: 13px; max-width: 220px; }
.ch .ch-st { white-space: nowrap; }
.ch .ch-st .act-pick { margin-right: 4px; }
.ch .ch-inl { display: inline-flex; margin: 0; }
.ch .ch-wkf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ch .ch-wkf select { max-width: 100%; }
.ch .ch-hold { margin-top: 8px; }
.ch .ch-pick { display: inline-flex; gap: 6px; align-items: center; }

/* 笔记表、词表：首屏 20 / 50 行，其余点开（排完序也是前 20 行） */
.ch .ch-all { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ch .ch-all:not(:checked) + .ch-cut tbody tr:nth-child(n+21) { display: none; }
.ch .ch-all:not(:checked) + .ch-cut.ch-cut50 tbody tr:nth-child(n+21) { display: table-row; }
.ch .ch-all:not(:checked) + .ch-cut.ch-cut50 tbody tr:nth-child(n+51) { display: none; }
.ch .ch-all:checked ~ .ch-more { display: none; }
.ch .more, .ch .ch-more { display: inline-block; margin: 8px 0; padding: 6px 12px; font-size: 15px; color: var(--pop-ink); background: var(--pop-soft); border-radius: 8px; cursor: pointer; list-style: none; }
.ch summary.more::-webkit-details-marker { display: none; }
.ch .ch-title { min-width: 220px; max-width: 360px; }
.ch .ch-nw { white-space: nowrap; }
.ch .ch-cols.c3 { gap: 12px; }
.ch .ch-id code { font-size: 12px; color: var(--mute); margin-right: 4px; }
.ch .ch-starb { color: var(--pop); font-size: 16px; }
.ch tr.ch-on td { background: var(--pop-soft); }

/* 今天拍什么：发现页｜搜索页两栏，选中的那栏亮 */
.ch .ch-pane { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--card); min-width: 0; }
.ch .ch-pane.on { border-color: var(--pop); box-shadow: inset 0 3px 0 var(--pop); background: #fff; }
.ch .ch-paneh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.ch .ch-paneh b { font-size: 16px; }
.ch .ch-paneh small { color: var(--mute); font-size: 13px; }
.ch .ch-paneh .btn, .ch .ch-paneh .t { margin-left: auto; }
.ch .ch-refs { margin-top: 10px; }
.ch .ch-self { margin-top: 12px; }
.ch .ch-check { display: grid; gap: 8px; max-width: 900px; }
.ch .ch-check textarea { min-height: 120px; }
.ch .ch-res { font-size: 15px; padding: 8px 12px; border-radius: 8px; margin: 10px 0; }
.ch .ch-res.ok { background: var(--green-soft); color: var(--green); }
.ch .ch-res.bad { background: var(--red-soft); color: var(--red); }
.ch .ch-fix { margin: 8px 0; padding: 8px 12px; background: var(--pop-soft); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch .ch-mark { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.ch .ch-mark select { max-width: 220px; }
.ch .ch-xhs { margin-top: 12px; }
.ch .ch-done { margin-top: 10px; }

.ch .act-bar[hidden] { display: none; }
/* 号表照 B6：14px、7px 10px；表头可以折两行，表在卡片里放不下就在卡片里左右滑，不撑出卡片、不把整页撑宽（11/17：每张表比卡宽 162px，整页横着滑） */
.ch .ch-acct { font-size: 14px; width: 100%; }
.ch .ch-acct th, .ch .ch-acct td { padding: 7px 10px; }
.ch .ch-acct th { white-space: normal; line-height: 1.3; }
.ch .ch-col > .scroll-x { margin: 0 -4px; }
/* 三个运营三栏：表小，容器 1000px 以上都放三栏（壳线 .cols.c3 在 1290 以下变两栏，那样三个人排成 2＋1 不好比） */
@container main (max-width: 1290px) { .ch .ch-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container main (max-width: 1000px) { .ch .ch-cols.c3 { grid-template-columns: minmax(0, 1fr); } }
/* 周规划按店分三段，一段一张整宽的表（六列放不进三分之一宽） */
.ch .ch-stack { display: grid; gap: 12px; }
.ch .ch-wk .ch-why { max-width: 420px; }
.ch .ch-wk .ch-terms { max-width: 320px; }
@media (max-width: 760px) {
  .ch .ch-title { min-width: 160px; }
  .ch .ch-pane, .ch .ch-col { padding: 10px; }
  .ch .ch-cols.c2, .ch .cols.c2 { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 11/17 视觉（内容线）：右栏旁边的块单独让开右栏，过了右栏的底回到满宽（原来整个 .ch 包成一块，笔记表、词表一直被挤在 850 宽） ===== */
.pmain > .ch { display: block; }
.pmain > .ch > :is(section, header, form, details, p) { display: flow-root; }
.ch .kpis { margin: 0 0 16px; }
.ch .kpis a.kpi { color: inherit; text-decoration: none; }
.rcol .rc-note { margin: 8px 0 0; font-size: 12px; color: var(--mute); line-height: 1.5; }

/* 各运营的号：一人一张卡——头像圆、名字、跟没跟上；进度条到考核篇数（竖线＝按日子该到）；号表照旧 */
.ch .ch-op { padding: 14px 14px 12px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.ch .ch-op.is-behind { box-shadow: inset 0 3px 0 var(--red), var(--shadow-card); }
.ch .ch-op .ch-colh { justify-content: flex-start; align-items: center; gap: 8px; margin-bottom: 10px; }
.ch .ch-op .ch-colh .t { margin-left: auto; }
.ch .ch-av { width: 32px; height: 32px; font-size: 14px; }
.ch .ch-pace { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.ch .ch-pace-n b { font: 700 var(--fs-card-num)/1 var(--num); color: var(--ink); }
.ch .ch-pace-n small { font-size: 13px; color: var(--mute); margin-left: 3px; }
.ch .ch-bar { position: relative; height: 8px; border-radius: 4px; background: var(--gray-soft); }
.ch .ch-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; background: var(--pop); }
.ch .ch-bar s { position: absolute; top: -4px; bottom: -4px; left: var(--x); width: 2px; margin-left: -1px; background: var(--red); border-radius: 1px; }
.ch .ch-colsub { font-size: 13px; color: var(--mute); margin: 6px 0 10px; }
.ch .ch-colsub em { color: var(--pop-ink); font-weight: 600; }
.ch .ch-op .ch-colf { padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.ch .ch-acct td.num .mbar { margin-top: 4px; }

/* 笔记表：标题格带一个类型小方块（搜＝搜索页、发＝发现页、其＝其他），★ 值得复刻做成小牌，投产做成小数字牌（颜色跟推广结论），单数成交带行内小条 */
.ch .ch-title { display: table-cell; }
.ch .ch-title > .ch-thumb { float: left; margin: 1px 10px 0 0; }
.ch .ch-tt { display: block; overflow: hidden; line-height: 1.45; }
.ch .ch-thumb { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--gray-soft); color: var(--mute); }
.ch .ch-thumb.k-s { background: var(--blue-soft); color: var(--blue); }
.ch .ch-thumb.k-f { background: var(--pop-soft); color: var(--pop-ink); }
.ch .ch-starb { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--pop-soft); color: var(--pop-ink); white-space: nowrap; }
.ch tr.ch-star td:first-child { box-shadow: inset 3px 0 0 var(--pop); }
.ch .ch-roi { display: inline-block; min-width: 40px; padding: 2px 7px; border-radius: 6px; font: 600 13px/1.4 var(--num); background: var(--gray-soft); color: var(--ink-2); text-align: right; }
.ch .ch-roi.ok { background: var(--green-soft); color: var(--green); }
.ch .ch-roi.low { background: var(--red-soft); color: var(--red); }
.ch .ch-roi.o { background: var(--amber-soft); color: var(--amber); }
.ch #ch-notes td.num .mbar, .ch #ch-terms td.num .mbar { width: calc(var(--w) * .8); }
.ch .toolbar.ch-tools { padding: 8px 10px; background: var(--head-bg); border: 1px solid var(--line); border-radius: var(--radius-ctl); }
/* 号表在一人一卡里六列放得下：格子收窄一点，号名可以折行，数不折行（不够宽时照旧在卡里左右滑） */
.ch .ch-op { padding: 12px 10px 10px; }
.ch .ch-op .ch-acct th, .ch .ch-op .ch-acct td { padding: 7px 5px; }
.ch .ch-op .ch-acct th { font-size: 12px; }
.ch .ch-op .ch-acct td:first-child { min-width: 72px; word-break: break-all; }
.ch .ch-op .ch-acct th:first-child, .ch .ch-op .ch-acct td:first-child { padding-left: 8px; }
.ch .ch-op .ch-acct th:last-child, .ch .ch-op .ch-acct td:last-child { padding-right: 8px; }
.ch #ch-notes td:nth-child(3) { min-width: 190px; max-width: 240px; }
.ch #ch-notes td:nth-child(3) .ch-sub { margin-top: 4px; line-height: 1.45; }
.ch #ch-notes td:nth-child(7) { min-width: 96px; }
.ch #ch-notes td:nth-child(9) { min-width: 110px; }

/* 周规划：一排「这周的板」（一店一卡），下面一店一张卡：头像圆＋店·负责人＋发了几篇的小进度条＋确认没 */
.ch .ch-board { margin: 0 0 14px; }
.ch .ch-wkcol { padding: 14px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); scroll-margin-top: 72px; }
.ch .ch-wkcol:target { box-shadow: 0 0 0 2px var(--pop-line), var(--shadow-card); }
.ch .ch-wkcol .ch-colh { justify-content: flex-start; align-items: center; gap: 8px 10px; }
.ch .ch-wkcol .ch-colh > span:last-child { margin-left: auto; }
.ch .ch-wkp { display: inline-flex; align-items: center; gap: 6px; }
.ch .ch-wkp .ch-bar { width: 90px; height: 6px; }
.ch .ch-wkp small { font-size: 12px; color: var(--mute); white-space: nowrap; }
.ch .ch-wk tbody tr td:first-child { border-left: 0; }

/* 今天拍什么：步骤条（视觉规范 step bar）——圆圈编号、做完的绿勾、在做的橙、查出问题的红；手机上横滑 */
.ch .ch-stepbar { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.ch .ch-stepbar li { position: relative; min-width: 0; }
.ch .ch-stepbar li + li::before { content: ""; position: absolute; left: -8px; right: calc(100% - 4px); top: 15px; height: 2px; background: var(--line); }
.ch .ch-stepbar li.done + li::before { background: var(--green-line); }
.ch .ch-stepbar a { display: flex; gap: 8px; align-items: flex-start; padding: 0 10px 0 4px; color: inherit; text-decoration: none; }
.ch .ch-stepbar i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 14px/1 var(--num); font-style: normal; background: var(--gray-soft); color: var(--mute); }
.ch .ch-stepbar span { display: grid; min-width: 0; }
.ch .ch-stepbar b { font-size: 14px; }
.ch .ch-stepbar small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .ch-stepbar li.on i { background: var(--pop); color: #fff; }
.ch .ch-stepbar li.on b { color: var(--pop-ink); }
.ch .ch-stepbar li.done i { background: var(--green-soft); color: var(--green); }
.ch .ch-stepbar li.bad i { background: var(--red-soft); color: var(--red); }
.ch .ch-stepbar li.bad small { color: var(--red); }
.ch .ch-pair { align-items: start; gap: 16px; }
.ch .ch-pair > .blk { margin: 0; min-width: 0; }
@media (max-width: 860px) {
  .ch .ch-stepbar { display: flex; overflow-x: auto; gap: 14px; }
  .ch .ch-stepbar li { flex: 0 0 auto; }
  .ch .ch-stepbar li + li::before { display: none; }
  .ch .ch-pair { grid-template-columns: minmax(0, 1fr); }
}
.ch .ch-pair .ch-tools input.in { flex: 1 1 220px; min-width: 0; }
.ch .ch-check .btn { justify-self: start; }
.ch a.t.blue { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.ch #ch-terms td:nth-child(9) .t { white-space: normal; }
/* 进度条用壳线的 mbar（模板里不写 style=）：ch-fill＝发了多少，ch-due＝按日子该到的竖线 */
.ch .ch-bar .mbar { position: absolute; top: 0; bottom: 0; left: 0; height: auto; margin: 0; max-width: 100%; opacity: 1; }
.ch .ch-bar .mbar.ch-fill { width: var(--w); min-width: 0; border-radius: 4px; background: var(--pop); }
.ch .ch-op.is-behind .ch-bar .mbar.ch-fill { background: var(--c2); }
.ch .ch-bar .mbar.ch-due { left: var(--w); width: 2px; min-width: 2px; top: -4px; bottom: -4px; margin-left: -1px; border-radius: 1px; background: var(--red); }
.ch .ch-wkp .ch-bar { position: relative; display: inline-block; }
/* 11/17 修：笔记表在 1150 宽里放得下：号和笔记 ID 一格、品和类型一格，表头能折行、格子左右空少一点；号卡小表的出单占比并进「30 天单」 */
#ch-notes th { white-space: normal; }
#ch-notes th, #ch-notes td { padding-left: 7px; padding-right: 7px; }
#ch-notes td:nth-child(3) { max-width: 120px; white-space: normal; }
#ch-notes td.ch-acc { white-space: nowrap; }
#ch-notes td.ch-acc .ch-id { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
#ch-notes td.ch-acc .ch-id code { font-size: 12px; color: var(--mute); }
.ch-acct td.num .ch-sub { display: block; }
#ch-notes thead th, .ch-acct thead th { white-space: normal !important; }
#ch-notes thead th:nth-child(3) { width: 104px; }
#ch-notes td:nth-child(3) .ch-starb { white-space: normal; }
#ch-notes thead th.num { width: 48px; }
.ch-acct thead th.num { width: 52px; }
#ch-notes td:nth-child(3), #ch-notes td:nth-child(3) * { white-space: normal !important; }
.ch #ch-notes td:nth-child(3) { min-width: 128px; }
.ch #ch-notes td:nth-child(7) { min-width: 80px; }
.ch #ch-notes th, .ch #ch-notes td { padding-left: 5px; padding-right: 5px; }
.ch #ch-notes td.ch-title { min-width: 200px; }
