/* 快推圈工作台 · 手机版模板（后台 › 模板管理 › 手机精简版）
 *
 * ★ 2026-10-26 用户：「系统设置 增加 模板管理 选项，当前这套保存为 PC 美化、
 *   再一套手机版模板，精简干练」，并给了四张手机端参考图（首页 / 个人中心 /
 *   发圈编辑 / 发圈记录）。
 *
 * 这份文件**只在 `<html data-tpl="m">` 时加载**（见 assets/mobile.js 的 applyTpl）：
 *   - PC 那套一像素都不动 —— 没切模板的站点，这个文件根本不会被请求；
 *   - 手机版不是「另一个 App」，是同一套页面换了一层皮 + 两个页面换了骨架
 *     （首页、个人中心，见 mobile.js 的 pageDashM / pageProfileM）。
 *     按钮、表单、`data-act` 全是同一批，所以功能不会因为换模板少一个。
 *
 * 版式照参考图归成四句话：
 *   · 顶部一条品牌蓝渐变头，左边一个大标题，右边挂状态与客服；
 *   · 内容在浅蓝底上，卡片纯白、圆角 14、投影极浅、卡片之间 12px；
 *   · 一行一列，不并排（手机上并排的下场就是一格 20px、正文一字一行）；
 *   · 底部四颗页签（首页 / 发圈 / 群发 / 我的），其余入口从「我的」里进。
 */

/* ---------------------------------------------------------------- 画布 */
html[data-tpl="m"] body { background: #eaf1fa; }

html[data-tpl="m"] .shell {
  display: block;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f1f6fd;
  position: relative;
  box-shadow: 0 0 0 1px #dde8f6, 0 18px 50px rgba(16, 60, 120, .10);
}
@media (max-width: 680px) {
  html[data-tpl="m"] .shell { max-width: none; box-shadow: none; }
}

/* 侧栏、抽屉、☰ 全部收起：手机版只留底栏，「其余」入口在「我的」里 */
html[data-tpl="m"] .side,
html[data-tpl="m"] .side-scrim,
html[data-tpl="m"] .kt-burger { display: none !important; }
html[data-tpl="m"] .kt-body { display: block; }

/* ---------------------------------------------------------------- 顶栏 */
html[data-tpl="m"] .kt-top {
  height: auto;
  min-height: 76px;
  padding: 16px 16px 20px;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, #2f7bf6 0%, #4f8cf7 52%, #6aa6fb 100%);
  box-shadow: none;
}
html[data-tpl="m"] .kt-brand,
html[data-tpl="m"] .kt-sep { display: none; }
html[data-tpl="m"] .kt-page { flex: 1; min-width: 0; align-items: flex-start; }
html[data-tpl="m"] .kt-page .ico { display: none; }
html[data-tpl="m"] .kt-page .txt b {
  font-size: 22px; font-weight: 800; letter-spacing: 1px; line-height: 1.25;
}
html[data-tpl="m"] .kt-page .txt span { display: none; }
/* ★ 2026-10-26：手机版顶栏只留「代理状态 + 客服」两颗。
   `flex: none` 是必须的 —— 少了它，`.kt-page` 的 22px 大标题会把右侧挤出去，
   表现成右边那颗圆按钮被裁掉半截（390 宽实测）。刷新按钮在手机上没用
   （下拉/切页本来就会重拉），藏掉正好腾出位置。 */
html[data-tpl="m"] .kt-top-right { flex: none; gap: 6px; padding-top: 4px; }
html[data-tpl="m"] .kt-iconbtn[data-act="page.reload"] { display: none; }
html[data-tpl="m"] .kt-who { display: none; }
/* ★ 2026-10-29：26px 的圆钮在手机上等于「点三次中一次」（用户拇指平均触到
   9mm≈34px）。抬到 34px，图标本身不变大，看起来仍是一颗小圆钮。 */
html[data-tpl="m"] .kt-iconbtn { width: 34px; height: 34px; font-size: 15px; }
html[data-tpl="m"] .agent-pill {
  font-size: 10.5px; padding: 3px 8px; max-width: 116px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
html[data-tpl="m"] .agent-pill .ap-x { display: none; }

/* ---------------------------------------------------------------- 内容区 */
html[data-tpl="m"] .kt-body .content {
  max-width: none;
  padding: 12px 14px 88px;
}
/* ★ 2026-10-29：手机顶栏实测就是 **76px**（52 的主栏 + 下面一条），而 PC 那套
   `.kt-body .main{min-height:calc(100vh - 54px)}` 是按 54 扣的 —— 短页面（比如
   只有一层 iframe 的使用教程）算出来比视口高 24px，手机上白白多一条外层滚动条，
   滚到底那段全是空的。长页面本来就要滚，这条只影响短页面，改了没有副作用。 */
html[data-tpl="m"] .kt-body .main { min-height: calc(100vh - 76px); }
html[data-tpl="m"] .card {
  border-radius: 14px;
  border: 1px solid #e6eefa;
  box-shadow: 0 2px 10px rgba(21, 73, 153, .05);
  padding: 14px;
  margin-bottom: 12px;
}
html[data-tpl="m"] .card > header { margin-bottom: 12px; gap: 8px; }
html[data-tpl="m"] .card > header h3 { font-size: 15px; }
html[data-tpl="m"] .card > header .sub { font-size: 11px; }

/* ★ 2026-10-29：使用教程（`/guide` 那篇长文档装在 iframe 里）。
   高度 = 视口 − **176**（不是 152）。实测（390×844 / 390×700 两档一致）：
   框顶 = 88px（顶栏 52 + 内容区上内边距 12 + 页面壳再垫的 24），框下要留 88px
   （`.content` 的 padding-bottom，里头含着底栏 58）。
   原来写 152 时整个文档高 = 视口 + 24 → **手机上永远多一条外层滚动条**，
   而且滚到底那 24px 全是空白。 */
html[data-tpl="m"] .guide-frame {
  height: calc(100vh - 176px); min-height: 380px; border-radius: 14px;
}

/* 手机上表单一律单列：两列并排时每个输入框只剩 150px，光标一进去就横滚 */
html[data-tpl="m"] .grid.g2,
html[data-tpl="m"] .grid.g3,
html[data-tpl="m"] .grid.g4,
html[data-tpl="m"] .pf-3,
html[data-tpl="m"] .pf-split,
html[data-tpl="m"] .dash-cols { grid-template-columns: minmax(0, 1fr); }
/* ★ 2026-10-29：15px 是**手机上填不了表**的老坑 —— iOS Safari 和安卓 Chrome
   都有一条硬规则：输入框字号 < 16px，一聚焦就把整页放大一次（用户得再捏一次
   才能看见旁边的字，填到一半整页乱跳）。`style.css` 的窄屏段本来就是 16px，
   是这里又写回 15px 把它盖掉了。所以这一批**一律 16px**，别为了「显得紧凑」
   往回改；真嫌字大，改 padding 和行高，别动字号。
   `select` 也在内：它聚焦时同样放大（原生选择器还会顺带把页面顶飞）。 */
html[data-tpl="m"] .field input,
html[data-tpl="m"] .field select,
html[data-tpl="m"] .field textarea,
html[data-tpl="m"] .copybox input,
html[data-tpl="m"] textarea,
html[data-tpl="m"] select,
html[data-tpl="m"] input[type="text"],
html[data-tpl="m"] input[type="password"],
html[data-tpl="m"] input[type="number"],
html[data-tpl="m"] input[type="search"],
html[data-tpl="m"] input[type="date"],
html[data-tpl="m"] input[type="time"] { font-size: 16px; }
html[data-tpl="m"] .btn { padding: 9px 14px; border-radius: 9px; }
html[data-tpl="m"] .btn.primary { box-shadow: 0 6px 16px rgba(22, 119, 255, .24); }
html[data-tpl="m"] .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html[data-tpl="m"] .tabs { overflow-x: auto; white-space: nowrap; }
/* 内容形态：桌面是「一行平铺」，390 宽放不下四颗 → 三列网格。
   「更多」是第 4 颗，落在第二行第 1 列只剩 1/3 宽、左边一大块白 ——
   真机截图里像一张没做完的卡。让它整行横铺、压扁成「展开更多」的次要条。 */
html[data-tpl="m"] .kindrow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-tpl="m"] .kindbtn { min-height: 66px; }
html[data-tpl="m"] .kindrow > .kindbtn.more {
  grid-column: 1 / -1; min-height: 0; height: 36px; flex-direction: row; gap: 6px;
  color: var(--ink-sub); background: #fbfdff; border-style: dashed;
}
html[data-tpl="m"] .wx-row { flex-wrap: wrap; }
html[data-tpl="m"] .wx-line { flex-wrap: wrap; row-gap: 6px; }

/* ---------------------------------------------------------------- 底部页签 */
html[data-tpl="m"] .m-tabbar {
  display: flex;
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 430px; margin: 0 auto;
  height: 58px;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #e7eefa;
  box-shadow: 0 -4px 18px rgba(16, 60, 120, .07);
  z-index: 90;
}
html[data-tpl="m"] .m-tabbar .mt {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: #8b98ab; text-decoration: none;
}
html[data-tpl="m"] .m-tabbar .mt.on { color: #1677ff; font-weight: 700; }
html[data-tpl="m"] .m-tabbar .mt svg { width: 21px; height: 21px; }

/* ==========================================================================
   手机版组件（只在 mobile.js 里用到；PC 那套引不到这些类）
   ========================================================================== */

/* 「任务管理 / 今日数据」这种段标题：比卡片标题大一档、前面带一根竖条 */
.m-sec {
  display: flex; align-items: center; gap: 7px;
  margin: 16px 2px 10px; font-size: 15.5px; font-weight: 800; color: #1f2b3d;
}
.m-sec::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #4f9dff, #1677ff);
}
.m-sec .m-sec-r { margin-left: auto; font-size: 11.5px; font-weight: 400; color: #8a97a8; text-decoration: none; }
/* 小字链接的触控：视觉上仍是那行小字，热区撑到 28px 高（否则拇指按不中）。 */
.m-sec a.m-sec-r { display: inline-flex; align-items: center; min-height: 28px; padding-left: 10px; }
.m-sec a.m-sec-r:hover { color: var(--brand); }

.m-card { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid #e6eefa;
  box-shadow: 0 2px 10px rgba(21, 73, 153, .05); margin-bottom: 12px; }
.m-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.m-hd b { font-size: 15px; font-weight: 800; color: #1f2b3d; }
.m-more { margin-left: auto; font-size: 12px; color: #90a0b6; text-decoration: none; }

/* 三栏数字（设备总数 / 在线 / 离线） */
.m-stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.m-stat3 > div { padding: 4px 0 10px; }
.m-stat3 b {
  display: block; font-size: 26px; font-weight: 800; line-height: 1.15;
  color: #1677ff; font-variant-numeric: tabular-nums;
}
.m-stat3 b.ok { color: #10b981; }
.m-stat3 b.bad { color: #ef4444; }
.m-stat3 span { font-size: 11.5px; color: #7b8798; }

.m-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 42px; border-radius: 10px;
  background: linear-gradient(93deg, #1677ff, #3f8dfb); color: #fff;
  font-size: 14.5px; font-weight: 700; text-decoration: none; border: 0;
  box-shadow: 0 8px 18px rgba(22, 119, 255, .26);
}
.m-btn:active { transform: translateY(1px); }
.m-btn.ghost { background: #f4f8ff; color: #1677ff; box-shadow: none; border: 1px solid #cfe3ff; }

/* 两张「创建任务」大卡（用户 2026-10-26：原来叫「创建个微任务 / 创建企微任务」，
   改成我们自己的两种活：发圈、群发） */
.m-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-task {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 118px;
  padding: 14px; border-radius: 14px; background: #fff; text-decoration: none;
  border: 1px solid #e6eefa; box-shadow: 0 2px 10px rgba(21, 73, 153, .05);
}
.m-task b { display: block; font-size: 15px; font-weight: 800; color: #1f2b3d; }
.m-task .d { display: block; margin: 3px 0 12px; font-size: 10.5px; color: #93a1b4; line-height: 1.5; }
.m-task .go {
  /* ★ 2026-10-26：群发卡副标题多了一行（图文/视频/链接/视频号/小程序），
     两张卡等高以后按钮会一高一低。`margin-top:auto` 把它压到底，两卡就齐了。 */
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 13px; color: #fff; font-size: 12px; font-weight: 700;
}
.m-task .bg-ic {
  position: absolute; right: -6px; bottom: -6px; width: 68px; height: 68px;
  opacity: .13;
}
.m-task .bg-ic svg { width: 68px; height: 68px; fill: currentColor; }
.m-t-moments .go { background: linear-gradient(93deg, #34d399, #10b981); }
.m-t-moments .bg-ic { color: #10b981; }
.m-t-group .go { background: linear-gradient(93deg, #1677ff, #4f9dff); }
.m-t-group .bg-ic { color: #1677ff; }

/* 一行式入口（查看任务记录 / 各页跳转） */
.m-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 13px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #e6eefa; text-decoration: none;
  box-shadow: 0 2px 10px rgba(21, 73, 153, .05);
}
.m-row .m-ri {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: #eaf3ff; color: #1677ff;
}
.m-row .m-ri svg { width: 17px; height: 17px; fill: currentColor; }
.m-row b { flex: 1; font-size: 14px; color: #1f2b3d; }
.m-row .m-go { font-size: 12px; color: #90a0b6; }
.m-row + .m-row { margin-top: 8px; }

/* 三宫格 / 四宫格 / 九宫格 */
.m-grid3, .m-grid4 { display: grid; gap: 4px; }
.m-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 2px; border-radius: 12px; text-decoration: none;
  color: #3a4759; font-size: 11.5px; background: none; border: 0; text-align: center;
}
.m-tile:active { background: #f2f7ff; }
.m-tile .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #eef5ff; color: #1677ff;
}
.m-tile .ic svg { width: 20px; height: 20px; fill: currentColor; }
.m-tile .ic.green { background: #e9fbf3; color: #10b981; }
.m-tile .ic.blue { background: #eaf3ff; color: #1677ff; }
.m-tile .ic.orange { background: #fff4e8; color: #f59e0b; }
.m-tile .ic.purple { background: #f2eeff; color: #7c5cff; }
.m-tile .ic.red { background: #ffeef0; color: #ef4444; }
.m-tile .ic.slate { background: #eef2f7; color: #64748b; }

/* 我的微信号（手机版首页底部那张小卡） */
.m-li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f1f5fb; }
.m-li:first-of-type { border-top: 0; }
.m-li .av {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f9dff, #1677ff); color: #fff; font-size: 13px; font-weight: 700;
}
.m-li .tx { flex: 1; min-width: 0; }
.m-li .tx b { display: block; font-size: 13.5px; color: #1f2b3d; }
.m-li .tx span { display: block; font-size: 10.5px; color: #93a1b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-li .st { font-size: 11px; padding: 2px 8px; border-radius: 9px; background: #f1f5fb; color: #7b8798; }
.m-li .st.on { background: #e9fbf3; color: #10b981; }

/* 个人中心头部 */
.m-me {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: 14px; margin-bottom: 12px;
  background: #fff; border: 1px solid #e6eefa; box-shadow: 0 2px 10px rgba(21, 73, 153, .05);
}
.m-me .m-av {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #dbe7f7; color: #7891ae; font-size: 22px; font-weight: 800;
}
.m-me .m-me-tx { flex: 1; min-width: 0; }
.m-me .m-me-tx b { display: block; font-size: 17px; font-weight: 800; color: #1f2b3d; }
.m-me .m-me-tx span { display: block; font-size: 11.5px; color: #93a1b4; margin-top: 2px; }
.m-logout {
  flex: none; height: 32px; padding: 0 14px; border-radius: 16px;
  background: #fff; border: 1px solid #e3ecf7; color: #4b5b70; font-size: 12.5px; cursor: pointer;
}
.m-logout:active { background: #f4f8ff; }

/* 账号对接：三个数 + 购买按钮 */
.m-quota { display: flex; align-items: flex-end; gap: 6px; padding: 2px 0 12px; }
.m-quota > div { flex: 1; text-align: center; }
.m-quota b { display: block; font-size: 24px; font-weight: 800; color: #1f2b3d; font-variant-numeric: tabular-nums; }
.m-quota span { font-size: 11px; color: #8a97a8; }
.m-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; background: #f7fafe; border: 1px dashed #cfe3ff;
}
.m-buy span { font-size: 12px; color: #7b8798; }
.m-buy button {
  flex: none; height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid #f5c98a;
  background: #fff8ef; color: #d9822b; font-size: 12.5px; font-weight: 700; cursor: pointer;
}

/* 折叠区（手机版把「账号信息 / 改密码 / 卡密兑换 / 微信号管理」收在这里） */
details.m-fold {
  background: #fff; border-radius: 14px; border: 1px solid #e6eefa; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(21, 73, 153, .05); overflow: hidden;
}
details.m-fold > summary {
  display: flex; align-items: center; gap: 8px; padding: 14px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: #1f2b3d; list-style: none;
}
details.m-fold > summary::-webkit-details-marker { display: none; }
details.m-fold > summary::after {
  content: '›'; margin-left: auto; color: #a8b6c8; font-size: 16px; transform: rotate(90deg);
}
details.m-fold[open] > summary::after { transform: rotate(-90deg); }
details.m-fold > .m-fold-body { padding: 0 14px 14px; }
details.m-fold .card { border: 0; box-shadow: none; padding: 0; margin: 0 0 12px; }

/* 发圈 / 群发页在手机上是**一条竖列**：内容形态 → 文案 → 素材 → 可见范围 → 时间 → 提交 */
html[data-tpl="m"] .pm-grid,
html[data-tpl="m"] .gp-grid,
html[data-tpl="m"] .mo-grid { display: block; }
html[data-tpl="m"] .sum { font-size: 12.5px; line-height: 1.8; }

/* ==========================================================================
   2026-10-26 · 手机版「任务记录」页（PC 那套渲染函数，这里只换皮）
   —— 用户给的参考图里这页是「搜索 + 三个下拉 + 列表」，我们功能更全：
      四张统计卡（就是四个筛选入口）+ 类型签 + 状态签 + 表格 + 批量操作。
      版式按手机重排，一个功能都不撤。
   ========================================================================== */

/* 四张统计卡：桌面 4 列、≤640 时被基础样式压成**一列**（一屏全是大数字）。
   手机上两列刚好：一眼看全四档，又只占两行。 */
html[data-tpl="m"] .kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin: 2px 0 12px;
}
html[data-tpl="m"] .kpi {
  gap: 8px; padding: 9px 10px; border-radius: 12px;
}
html[data-tpl="m"] .kpi .ic { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
html[data-tpl="m"] .kpi .v { font-size: 19px; letter-spacing: 0; }
html[data-tpl="m"] .kpi .k { font-size: 11.5px; }
html[data-tpl="m"] .kpi .d { font-size: 10px; }
/* 那颗「›」在手机上只占位、指不到下一层（点卡片就是筛选），撤掉换回 10px 宽度 */
html[data-tpl="m"] .kpi .chev { display: none; }
html[data-tpl="m"] .kpi .tx { gap: 1px; }

/* 类型签 / 状态签：桌面挤在同一排靠一条竖线分，手机上那条竖线会被折到
   第二行开头，看着像一根莫名其妙的短棍（真机截图里就是这样）。
   改成**上下两排**：类型签一整排（三颗刚好），状态签一整排且可横向滑。 */
html[data-tpl="m"] .tabline-row {
  flex-direction: column; align-items: stretch; gap: 0;
  padding: 4px 0 0;
}
html[data-tpl="m"] .tabline-row .vsep,
html[data-tpl="m"] .tabline-row .spacer { display: none; }
html[data-tpl="m"] .tabline-row > .tabline {
  /* ★ 2026-10-26：`min-width: 0` 是必须的。`.tabline` 自己是个 flex 容器，
     默认 `min-width: auto` 会被内容撑到 506px（实测「全部任务 / 发朋友圈任务 /
     群发」那一排），于是它**自己**伸出屏幕 —— 窄屏体检里是 `over 29→506`，
     而里面的按钮明明可以横滑。 */
  flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
html[data-tpl="m"] .tabline-row > .tabline::-webkit-scrollbar { display: none; }
html[data-tpl="m"] .tabline-row > .tabline > button {
  flex: none; white-space: nowrap; padding: 8px 10px 9px; font-size: 12.5px;
}
/* 两排之间用一条极淡的分隔线，读起来是「类型 / 状态」两组，而不是一串按钮 */
html[data-tpl="m"] .tabline-row > .tabline.states {
  border-top: 1px solid #f2f6fc;
}

/* 搜索框：`.kw` 基础样式带 min-width:170，跟「重置」并排会挤出右边，
   手机上让它吃满剩余、重置收窄。 */
html[data-tpl="m"] .gtfilters {
  flex-wrap: nowrap; gap: 8px; padding: 10px 12px 8px;
}
html[data-tpl="m"] .gtfilters .kw { flex: 1; min-width: 0; }
/* 「重置」只有两个字，`flex: none` 之后被压成 30px 宽、贴着搜索框右边缘，
   像一颗被截断的标签。给个下限，它才像一颗按钮。 */
html[data-tpl="m"] .gtfilters .btn { flex: none; min-width: 60px; }

/* 通讯录分页条：桌面一行放下「共 N 条 + 页码 1 2 3 + 每页 50」；390 宽下页码把
   「共 330 条」挤成 34px 宽的一条竖线（窄屏体检的「一字一行」）。改两行：
   第一行只放说明，第二行才是页码按钮。 */
html[data-tpl="m"] .ct-pager {
  flex-wrap: wrap; row-gap: 8px; padding: 10px 12px 12px;
}
html[data-tpl="m"] .ct-pager .info {
  flex: 1 0 100%; white-space: nowrap;
}
html[data-tpl="m"] .ct-pager .spacer { display: none; }
html[data-tpl="m"] .ct-pager .size { white-space: nowrap; }

/* 五格汇总条（微信账号 / 群聊 / 联系人 / 最近同步时间 / 同步完成 + 进度条）：
   桌面一行五格，390 宽下每格只剩 70px —— 「最近同步时间」被挤成五个字一列、
   时间戳和进度条叠在一起（真机截图里就是一团）。改成 2 列，最后一格跨两列。 */
html[data-tpl="m"] .ct-sum {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}
html[data-tpl="m"] .ct-sum-i {
  padding: 9px 10px; border-right: 0; gap: 8px;
}
html[data-tpl="m"] .ct-sum-i:nth-child(odd) { border-right: 1px solid var(--border-soft); }
html[data-tpl="m"] .ct-sum-i:last-child {
  grid-column: 1 / -1; border-top: 1px solid var(--border-soft);
}
html[data-tpl="m"] .ct-sum-i .k,
html[data-tpl="m"] .ct-sum-i b small { white-space: nowrap; }
html[data-tpl="m"] .ct-sum-i .d {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 群聊 / 联系人那张表只有四列（勾选 30 / 名称 auto / 归属号 76 / 状态 116），
   390 宽下正好放得下，**不要**像八列的 `gtx` 那样拉宽横滚 —— 拉宽之后名称列
   会撑到 558px，右边三列全滚出屏幕，第一屏只剩一个名字。
   `table-layout: fixed` 会把 auto 列平均分掉剩余宽度，这里只要保证名称列
   别被压到「一字一行」（< 110px）就够了。 */
html[data-tpl="m"] table.ct-tb { min-width: 0; }
html[data-tpl="m"] table.ct-tb th,
html[data-tpl="m"] table.ct-tb td { padding-left: 8px; padding-right: 8px; }

/* 任务记录那张表：★ 2026-10-27 起手机模板里**不横滚了** —— 用户给的参考图
   是「一张一张任务卡」，八列硬挤只会变成一片省略号（10-25 那次就翻在这）。
   现在一行一张卡：
      第一排 勾选 · 缩略图 + 标题 + 说明 + 标签
      第二排 勾选 · 账号 · 状态
      第三排 勾选 · 时间 · 操作
   （`table-layout: fixed` 那一套在这张卡上完全不适用，所以 thead / colgroup 直接藏） */
html[data-tpl="m"] table.gtx { min-width: 0; display: block; }
html[data-tpl="m"] table.gtx colgroup,
html[data-tpl="m"] table.gtx thead { display: none; }
html[data-tpl="m"] table.gtx tbody { display: block; }
html[data-tpl="m"] table.gtx tbody tr {
  display: grid; align-items: center; gap: 7px 8px; padding: 11px 12px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  /* ★ 2026-10-29：原来第三行是 `"pick when ops"`，同时 `td.gt-op` 又写了
     `grid-column: 2 / 4` —— 两者都落在「第 2 列起」，于是操作按钮**压在时间上**：
     真机截图里第二张卡那行是「10-19 09:00 › 立即发开始 编辑 重发 更多」，
     「立即发布」和「开始」叠成一团。现在时间独占一行、操作另起一行，
     五个按钮（立即发布/重试/编辑/重发/更多）就有整行宽度，不用再抢。 */
  grid-template-areas:
    "pick name name"
    "pick acct st"
    "pick when when"
    "pick ops  ops";
  border-bottom: 1px solid var(--border-soft);
}
html[data-tpl="m"] table.gtx tbody tr:last-child { border-bottom: 0; }
html[data-tpl="m"] table.gtx tbody td { display: block; height: auto; padding: 0; border: 0; overflow: visible; }
html[data-tpl="m"] table.gtx tbody td.pick { grid-area: pick; align-self: start; padding-top: 14px; }
html[data-tpl="m"] table.gtx tbody td.gt-nc { grid-area: name; }
html[data-tpl="m"] table.gtx tbody td.gt-ac { grid-area: acct; }
html[data-tpl="m"] table.gtx tbody td.gt-wh { grid-area: when; }
html[data-tpl="m"] table.gtx tbody td.gt-sd { grid-area: st; justify-self: end; }
html[data-tpl="m"] table.gtx tbody td.gt-op { grid-area: ops; }
/* 操作行**左对齐**：时间那行（`已结束 › 立即发布`）是从名字列起点开始的；
   操作行要是靠右，两行就一左一右劈开、中间空出一大块（第一版实拍正是这样）。
   靠左以后两行同一起点，读起来是「这行状态 / 这行操作」。 */
html[data-tpl="m"] table.gtx tbody td.gt-op .ops {
  justify-content: flex-start; flex-wrap: wrap; row-gap: 6px;
}
/* 状态：胶囊 + 百分比一行，进度条掉到下一行铺满这一格（同 style.css 窄屏那套）。 */
html[data-tpl="m"] table.gtx .gt-st { flex-direction: row; flex-wrap: wrap; align-items: center;
  justify-content: flex-end; gap: 4px 6px; }
html[data-tpl="m"] table.gtx .gt-prog { order: 3; flex: 0 0 100%; width: auto; }
html[data-tpl="m"] table.gtx .gt-when { flex-direction: row; align-items: center; gap: 7px; min-width: 0; }
html[data-tpl="m"] table.gtx .gt-thumb { width: 38px; height: 38px; border-radius: 9px; }
html[data-tpl="m"] table.gtx .gt-thumb svg { width: 17px; height: 17px; }
/* 行内操作（立即发布/重试/编辑/重发/更多）：桌面是 28px 的小字链，指尖按不住。
   撑到 30px 高、左右各留 8px，五个按钮在 334px 里仍然排得下（放不下会换行，
   因为 `.ops` 已经允许 wrap）。 */
html[data-tpl="m"] table.gtx .a-link {
  padding: 6px 8px; min-height: 32px; display: inline-flex; align-items: center;
}
html[data-tpl="m"] table.gtx tbody tr:has(td[colspan]) { display: block; padding: 0; }
html[data-tpl="m"] table.gtx tbody td[colspan] { display: block; }

/* 底栏（共 N 条 / 删除选中 / 页码 / 每页）：390 宽一排挤不下，之前靠 `flex-wrap`
   硬挤 —— 结果排成「共 2 条　删除选中　1　每页　10 条/页」一条散串，页码还被夹在
   中间。手机上改成三排：① 共 N 条 …… 删除选中（靠右）② 页码居中 ③ 每页 + 下拉靠右。 */
html[data-tpl="m"] .gt-foot { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
html[data-tpl="m"] .gt-foot .spacer { display: none; }
html[data-tpl="m"] .gt-foot > .btn { margin-left: auto; }
html[data-tpl="m"] .gt-foot .pager { flex: 1 0 100%; order: 2; justify-content: center; flex-wrap: wrap; }
html[data-tpl="m"] .gt-foot .info:last-of-type { order: 3; margin-left: auto; }
html[data-tpl="m"] .gt-foot select.psize { order: 4; width: auto; }
html[data-tpl="m"] .gt-foot .pbtn { min-width: 32px; height: 32px; }

/* 发圈 / 群发顶上那条 ①编辑内容 › ②选择账号 › ③设置定时 › ④确认发布 ——
   桌面上四颗胶囊横着排得下；390 宽横排会折成两行，而分隔符 `›` 是**独立的
   span**，折行后它就单独占一格（真机截图里第二行开头/行末各躺着一个光秃秃的
   `›`，像标点打错了）。手机上：四颗等分一排放，箭头一律不画。 */
html[data-tpl="m"] .mo-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px; flex-wrap: nowrap; margin-bottom: 10px;
}
html[data-tpl="m"] .mo-step {
  justify-content: center; gap: 4px; padding: 4px 5px;
  font-size: 11px; letter-spacing: -.2px; white-space: nowrap;
}
html[data-tpl="m"] .mo-step .n { width: 15px; height: 15px; font-size: 9px; }
/* ★ 选择器必须是 `> .arw`：分隔符是 `.mo-steps` 的**直接子元素**，不是 `.mo-step`
   里面的东西。第一版写成 `.mo-step .arw` 一点没生效，而且它还占掉了 4 列网格里的
   三格 —— 四颗胶囊被挤成两行、每颗后面还拖着个 `›`。 */
html[data-tpl="m"] .mo-steps > .arw { display: none; }

/* 群发首页那张介绍卡里的 1-4 步（`.gp-hero .steps`，跟上面 .mo-steps 是同一个
   写法：步骤 + 独立的 `.arw` 分隔符）。
   ★ 2026-10-29 实拍：单列四行 + 右侧 150px 插画，把文字挤成 200px 宽，
   整张卡撑到 330px 高 —— 手机上一屏就这么没了。改 2×2、插画让位。 */
html[data-tpl="m"] .gp-hero .steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
html[data-tpl="m"] .gp-hero .steps > .arw { display: none; }
html[data-tpl="m"] .gp-hero .art { display: none; }

/* ================================================================ 指尖够得着（2026-10-29）
 * 桌面那套按钮是给鼠标画的：`.ct-op` 18px 高、开关 22px、步进器 30px —— 鼠标点得准，
 * 拇指点不准（实测「点三次中一次」）。这里只放大**盒子**（宽高 / padding），
 * 字号与颜色一律不动 —— 字号一动，整块排版跟着重排，就不是「增强适配」了。
 * 判据在 `tools/web_narrow_check.py` 的 ⑤：块级可点元素高度 < 32px 就报。
 *
 * 为什么不再往上堆：44px 是 Apple HIG 的理想值，但这套页面密度很高（一屏要放下
 * 账号卡 + 群组 + 内容 + 确认四块），全抬到 44 会把页面拉长一倍。32px 是
 * 「拇指指腹压得住、页面不变形」的那个折中。
 */
html[data-tpl="m"] .ct-op { padding: 7px 9px; min-height: 32px; border-radius: 6px; }
html[data-tpl="m"] .lic-chip { height: 32px; padding: 0 12px 0 10px; }
html[data-tpl="m"] .qty-btn { width: 34px; height: 34px; font-size: 17px; }
html[data-tpl="m"] .modal header > button[data-act="modal.close"] {
  min-width: 32px; min-height: 32px; font-size: 19px; line-height: 1;
  /* ★ 2026-10-30：原来写的是 `margin: -6px -6px -6px 0` —— 简写把上一条
     `.modal header button{margin-left:auto}` 覆盖成 0，手机上所有弹窗的 ×
     都紧贴在标题右边（AI 美化那张 390 宽截图一眼就看见了）。
     左边必须留 auto，否则「关闭」看着像标题的一部分。 */
  margin: -6px -6px -6px auto; border-radius: 8px;
}
/* 分段控件（发送方式「立即推送 / 定时任务」、后台子集「只看今日」）：三颗并排的
   胶囊只有 30px 高，而且它是**必点**的一个开关（选错就按定时发出去）。 */
html[data-tpl="m"] .seg button { min-height: 34px; padding: 7px 14px; }
html[data-tpl="m"] .seg.sd-seg button { min-height: 32px; }
/* 支付渠道那两颗（微信支付 / 支付宝当面付）：30px 高，是付款路径上的第一下。 */
html[data-tpl="m"] .pay-ch-tab { min-height: 34px; }

/* 开关：40×22 的胶囊，滑块只有 18px —— 看着挺大，实际可点区域只有那条 22px 高。
   抬到 51×31（iOS 原生 UISwitch 的尺寸）、滑块 27px。滑块 27 则 `on` 的 left =
   51 - 27 - 2 = 22 —— 漏改这句就变成「开了还停在左边」，看不出开没开。 */
html[data-tpl="m"] .fl-sw { width: 52px; height: 32px; }
html[data-tpl="m"] .fl-sw i { top: 2px; left: 2px; width: 28px; height: 28px; }
html[data-tpl="m"] .fl-sw.on i { left: 22px; }

/* ★ 2026-10-29 删掉 `html[data-tpl="m"] .ct-acct .ct-st { padding: 7px 10px … }`：
   通讯录账号卡上那颗「正常 / 哑号 / 封禁」胶囊跟着账号状态整套下线了（PC 与手机
   同一份 app.js，DOM 里不再生成它），留着这条只会在下次读样式时误以为还有这颗按钮。 */

/* 分页（`‹ 1 2 3 ›`）：任务页在 `.gt-foot` 里已经单独写过，通讯录 / 素材库各自
   另有一套 —— 26×26 的方块指头压不住，统一抬到 32。 */
html[data-tpl="m"] .pbtn { min-width: 32px; height: 32px; }

/* 「点击购买」那条（我的页 / 授权卡里）：30px 高、贴在卡片右边缘，是全页最该点中的
   一颗按钮，却比正文还矮。抬到 34px。 */
html[data-tpl="m"] .m-buy button, html[data-tpl="m"] .pf-buy button { min-height: 34px; }

/* 类型签 / 状态签：桌面是一排（类型 ｜ 状态），390 宽一排装不下 ——
   原来靠 `nowrap` 硬撑，右端被卡片裁掉半个字（「群发任务 (1)」只剩「群发任务 (」，
   状态签的「有失败」更是整个看不见），而它**没有滚动条**，用户根本不知道右边还有。
   手机上改成两排：类型一排、状态一排，各自放不下就自己换行。 */
html[data-tpl="m"] .tabline-row { padding: 4px 12px 0; row-gap: 2px; }
html[data-tpl="m"] .tabline-row > .tabline { flex: 1 1 100%; flex-wrap: wrap; }
html[data-tpl="m"] .tabline-row .vsep { display: none; }
html[data-tpl="m"] .tabline-row .spacer { display: none; }
html[data-tpl="m"] .tabline > button { padding: 8px 10px 9px; font-size: 13px; }
html[data-tpl="m"] .tabline > button .c { margin-left: 3px; }

/* ---- 「我的」页那条 AI 余额（2026-10-30）----
   ★ 这里必须自己写 `display:flex`：`.m-card` 是**块级**白卡（不是 flex 容器），
     只写 `flex-direction` 等于什么都没做 —— 第一版就是这么出的图：
     余额一行、按钮被挤到下一行、那行「只能用于…」跟按钮叠在一起。
   ★ 右边那颗按钮与「账户流水」竖着排：390 宽下一行放不下「¥12.50 + 按钮 + 链接」，
     横排会把小字挤成两行、按钮贴到边缘。 */
.m-wal { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-wal-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.m-wal-l .k { font-size: 11.5px; color: #5b6b82; }
.m-wal-l b { font-size: 23px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; color: #17233d; }
.m-wal-l .d { font-size: 10.5px; color: #8a919f; line-height: 1.45; }
.m-wal-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.m-wal-r .m-btn { width: auto; padding: 0 14px; height: 32px; font-size: 13px; }
.m-wal-link { font-size: 11.5px; color: #1677ff; white-space: nowrap; text-decoration: none; }
