/* ============================================================================
   screen-topic.css —— 「爆款选题」三个入口屏的专属补充规则。
   三个入口（对标账号 / 话题搜索 / 手动导入）2026-09-27 起各占一屏，靠 **.ax-topic-screen**
   这个共同 class 挂上（registerScreen 的 className，见 topic.js）。所以本文件每条选择器只写一遍。
   ⚠ 别把 .ax-topic-screen 改回「三个 ID 各写一遍」：逗号列表里前两个 ID 会退化成裸选择器，
   命中的就是 <section class="screen"> 本身，一句 display 就把整屏干掉。

   对照的唯一标准是 UI 预览 ui-v2/index.html 的 `pc-topic`（1424-1503 行）与 `mp-topic`（1968-2002 行）：
     ≥1024px = pc-topic：.top 页头 → .wrap.wide 宽容器 → 采集行 → 说明
                          → 任务提示(.li.fl) → 采集结果(.card + .tb 表格) → 生成的选题(.card + .grid.g3)
     <1024px = mp-topic：.top 收成 .ph-top.solid（48px、h3 居中）→ .wrap 收成 .ph-pad 的 16px 内边距
                          → 采集行 + 整宽主按钮 → .banner 任务提示 → .label + .stack(.li) 结果
   两档共用同一份 DOM（web/js/modules/topic.js 的 skeletonHTML），切换全部落在这里的媒体查询。

   2026-09-28 第二轮 —— 屏内那排页签**加回来了**，但加回来的形态与被拆掉的那排不是一回事，
   别照着旧记忆改：
     · 拆掉的理由是甲方第 6 条「对标账号就是对标账号，不要和话题搜索串在一起」：当时那排
       页签切的是**同一块面板、同一份任务列表、同一份采集通道**，所以「串在一屏」是真的。
       那些东西这一轮一个字没动 —— 两屏仍是两套 DOM、两套 st.tab、两条 ?mode= 不同的任务列表。
     · 加回来的理由是甲方第 22 条「还是和原来一样点开，再正常的界面做区分即可」：侧栏收成
       一行「爆款选题」之后，区分二级功能就必须落在屏内，而这枚控件就是那个「正常的界面」。
     · 手动导入屏（topic-manual.js）**没有**这枚控件，也永远不该有：它不依赖采集通道，
       挂一枚只能切走、切不回来的控件在上面就是骗人。
   下面 .seg / .tp-seg 那几条就是这枚控件的全部版式（两档共用 + PC 档收窄）。

   只写原型里没有的、这一屏独有的东西；组件（.card/.pill/.li/.chip/.tb/.wrap/.seg2/.banner/.note/
   .sec-t/.stack/.grid/.label/.hamb/.bar-track/.bar-fill/.act/.act-b…）一律用 proto.css 里那套，不改不复制。
   色值一律走 token（var(--ink)/var(--line)/rgb(var(--g))/var(--ok)…），深浅两套都要能看。
   ========================================================================== */

/* ===================== 屏骨架：.content 就是原型的 .body =====================
   外壳把每屏的滚动容器做成 `section.screen > .content`（registry.js），
   原型是 `.scr > .top + .body`。所以这里把 .content 摆成同一件事：
   页头固定一行、.body 自己滚 —— 里面的 .top / .body 由本屏渲染。 */
.ax-topic-screen > .content { display: flex; flex-direction: column; gap: 0; padding: 0; align-items: stretch; }
.ax-topic-screen > .content > .top { flex: none; width: 100%; max-width: none; }
.ax-topic-screen > .content > .body { flex: 1; min-height: 0; overflow: auto; width: 100%; max-width: none; }
/* 本屏唯一的滚动体是 .body —— 外层 .content 绝不能再自己滚。
   2026-09-26 实测定性：点结果行的勾选 chip 后，外层 .content 自己滚了 1977px（56→2033），
   把 .body 推到视口上方（y 12 → -1965），用户看到的是 .content 的空白区 ⇒「一点就全白、
   往上滑内容才回来、页面像没有上下限」。外层不给滚动，这条症状就不可能再出现。 */
.ax-topic-screen > .content { overflow: hidden; }
.ax-topic-screen .body > .wrap { width: 100%; }

/* ===================== 屏内那枚分段控件（对标搜索 / 话题搜索） =====================
   甲方第 22 条要它在屏内承担「区分二级功能」；第 13 条要它有两段。
   组件本体是 app.css 的 .seg（inline-flex 容器 + 按钮 + .on 渐变），这里只写本屏独有的：
     · 两档通用：容器不铺满，收到内容宽 —— app.css 的 `.seg button{flex:1}` 会把两段拉成
       两个半屏宽的大按钮，而甲方 img07 里那是两枚紧凑的 pill；
     · 段间距与上留白吃 --ax-s* 节奏 token（这一屏其余间距也是这一套）。 */
.ax-topic-screen .seg.tp-seg { width: fit-content; max-width: 100%; margin-bottom: var(--ax-s3); }
.ax-topic-screen .seg.tp-seg button { flex: none; padding: 8px 18px; white-space: nowrap; }

/* 这一行 = 分段控件 + 右端那枚「归档本次采集」（2026-10-04，用户逐字给的落点）。
   ⚠ 分段控件自己那条 `margin-bottom: --ax-s3` 由这一行接管：不撤销的话，行高会变成
     "分段控件 + 它自己的下边距 + 行自己的下边距"，比其它相邻块多出一截 ——
     间距只在这一处给（`gap` 管左右、`margin-bottom` 管与下一块的纵向距离）。
   手机档这一枚退化成图标钮（`.hamb`），行照样是两端对齐：它跟着 `.tp-pconly` 消失、
   由 `.tp-mponly.hamb` 顶上（见下面手机档那组开关）。 */
.ax-topic-screen .tp-segrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--ax-s2); margin-bottom: var(--ax-s3);
}
.ax-topic-screen .tp-segrow .seg.tp-seg { margin-bottom: 0; }
.ax-topic-screen .tp-segacts { display: inline-flex; align-items: center; gap: var(--ax-s2); flex: none; }

/* 页头两侧的开关：PC 才有的那几件与手机才有的返回键。
   手机档那条内距 2026-09-28 从 14px/10px 收成 --ax-s3/--ax-s2：全站手机档页头
   （app.responsive 的 .appbar、screen-records 的 .mr-top、member 的 .ax-mbr-top）
   已经统一到 --ax-s3，只有本屏还留在 14px，切到爆款选题时页头左右边缘跳 2px。
   ⚠ 2026-10-04 第八轮：原来这里还有 `.tp-sub`（页头副题那半截的省略号档）——
   副题随用户「采集范围点点点儿，那个也去掉」整块撤了，规则一并删，不留死选择器。 */
/* 页头右上角那两枚（历史 / 归档，2026-10-04 第八轮）。
   两档各自一对同名钩子的按钮（PC 药丸 / 手机图标钮），与采集主按钮、结果区按钮同一套路。
   这里只管容器：两枚之间用 --ax-s2（与页头自己的 gap 同档），并让容器**不被压扁**
   （flex:none）—— 否则 .sp 一撑，两枚药丸会被挤成两行。 */
.ax-topic-screen .tp-headacts { display: inline-flex; align-items: center; gap: var(--ax-s2); flex: none; }
/* ⚠ 2026-10-03 第三轮：这里原来有 `.tp-sec-hint`（任务列表抬头后面那半句「· 进行中的任务
   都会列出来」的浅色档）—— 那句话按甲方「跟用户不相干的动作，都不需要说明」删了
   （topic.js renderTask），样式随之撤，不留没人用的死规则。 */

/* 同一份 DOM 的两套排布开关：手机档独有的东西（返回键、.seg2 页签、整宽主按钮、.banner、.label、.stack）
   桌面档一律不占位；.tp-pconly（PC 独有的表格、行内主按钮、卡片页头）反过来在手机档关掉。 */
.ax-topic-screen .tp-mponly { display: none; }

/* ⚠ 例外：**游客在 PC 档要能看到返回键**。
   设计上 PC 靠左侧栏导航，所以这里把手机档的那批东西（返回键、页签、整宽主按钮、banner、
   label、stack）一律关掉 —— 但侧栏 `.sb` 是以 `body.pc-authed` 为开关的，**游客没有这个 class**，
   本屏又没有底栏兜底。于是 1440px 的游客点进「爆款选题」之后再也回不去：屏上除了
   「注册 / 登录」没有任何可点的控件，只能按浏览器后退键（2026-09-26 交付前巡检两条独立发现）。
   这里只把**返回键**在非登录态放出来 —— `.tp-mponly` 整体不能放开，它同时还盖着上面那一批
   手机档排布。登录态不受影响：PC 有侧栏，不重复给一枚返回键。 */
body:not(.pc-authed) .ax-topic-screen button.hamb.tp-mponly { display: grid; }

/* ===================== 手机档（<1024px）＝ mp-topic ===================== */
@media (max-width: 1023px) {
  /* 本屏的两套排布开关（同一份 DOM，按档位切） */
  .ax-topic-screen .tp-pconly { display: none; }
  .ax-topic-screen .tp-mponly.hamb { display: grid; }
  .ax-topic-screen .tp-mponly.seg2,
  .ax-topic-screen .tp-mponly.banner,
  .ax-topic-screen .tp-mponly.stack { display: flex; }
  .ax-topic-screen .tp-mponly.label { display: block; }
  .ax-topic-screen button.tp-mponly { display: inline-flex; }

  /* .top → .ph-top.solid：48px、只剩一个居中的 h3（原型那条 180° 的 chev 就是这个返回键）。
     padding/gap 走 --ax-s3/--ax-s2（见上面那条注释：与全站手机档页头同一个 token）。 */
  .ax-topic-screen .tp-top { height: 48px; padding: 0 var(--ax-s3); gap: var(--ax-s2); border-bottom: 1px solid var(--line); background: var(--main); }
  .ax-topic-screen .tp-top h2 { flex: 1; text-align: center; }
  /* ⚠ 2026-10-04 第八轮：这里原来藏着页头那两件（.tagline 副题与 [data-topic-queue] 计数
     chip），现在它们连 DOM 一起撤了（用户逐字「把那个待人工接管和进行中的那个就去掉，
     采集范围点点点儿，那个也去掉」）—— 规则随之删，不留没人命中的死选择器。 */
  /* 页头那枚标题是**绝对居中**的（components.css 手机档那条，左右各留 64px 给按钮），
     所以右上角那枚图标钮原来被收窄到 32px（当时的算式是「两枚 + 间隙 ≈ 72px，
     仍在那一档留白之内」）。
     ⚠ 2026-10-08 删掉这条收窄，理由两条，缺一条都不该删：
       ① **算式的前提没了**：那「两枚」是「历史 + 归档本次采集」。2026-10-04 用户逐字
          「可以把归档放到对标搜索和话题搜索的右侧」之后，归档搬去了分段控件那一行
          （见 topic.js 的 actsHTML 注释），页头右上角只剩**一枚**历史。
       ② **它和全站对不齐**：`.uiv2 .hamb` 的基类尺寸是 36（proto.css:398），
          全站十个屏头都吃那个数，只有爆款选题这一屏是 32 —— 而实测（web/tmp/mp-head-try.mjs）
          它不是视觉问题（图标本身是同一个 s20，只差 4px 的命中盒），是**命中面积**问题：
          同一排按钮一个 36 一个 32，手指上是能感觉到的。
       回到基类 36 之后与「对标搜索 / 话题搜索」四字标题仍不撞（实测右端 x≈342，标题右边界 ≈235）。
     ⚠ 别顺手把 `.act`（appbar 里那枚带框胶囊）也推到 36：实测它在 chat / wexiao 会把
       「开新会话」挤出右边界并折成两行（同一次实测的 act36 那一行）。那不是一个件，
       也不该同一尺寸。 */
  .ax-topic-screen .tp-headacts { gap: var(--ax-s1); }
  /* （居中本身由 components.css 末尾「手机档页头标题居中」那一条统一给，这里不再单独处理。） */

  /* .wrap → .ph-pad：--ax-s4(16px) 内边距就是手机档的全部留白 */
  .ax-topic-screen .body > .wrap { max-width: 100%; margin: 0; padding: var(--ax-s4) var(--ax-s4) 100px; }

  /* mp-topic 里「采集结果」不是卡片，是 .label + .stack —— 把卡片壳去掉，别多画一层 */
  .ax-topic-screen .card.tp-plain { background: none; border: 0; box-shadow: none; padding: 0; }

  /* 采集行：原型是「pill + input」一行、主按钮另起一行占满 */
  .ax-topic-screen .tp-plat { height: 40px; }
  .ax-topic-screen .tp-collectrow .inp { height: 40px; font-size: var(--fs-small); }

}

/* ===================== PC 档（≥1024px）＝ pc-topic ===================== */
@media (min-width: 1024px) {
  /* 页头内距改回 --ax-gutter（2026-09-28 第二轮）：components.css:812 那条对齐公式
     `max(18px, (100% - min(880,100%))/2 + 28px)` 里的 100% 是**包含块**（.content 的内容盒），
     它假设 .top 自己铺满整条主区。但 app.responsive.css:378 的
     `body.pc-authed .screen .content > * { max-width: var(--ax-col) }` 把 .top 也一起收进
     700px 那一列（模块屏的 .top 与 .body 同为 .content 的直接子节点）——
     于是公式按 1122px 的包含块算出 142px 内距，再把它加到**只有 708px 宽**的 .top 上：
       ① 页头内容从 x=646 起，正文列从 x=534 起 ⇒ 三屏页头与卡片左缘整整错开 112px；
       ② 700 − 142×2 = 416px 的可用宽被 h2(64) + 计数 chip(155) + 三个 gap 吃掉大半，
          副标题只剩 140px，「按关键词搜平台上的近期高赞作品」14 个字被省略号切掉
          （P1-13，r1/23-topic-search.png 上肉眼可见）。
     本屏的 .top 与 .body 同宽同起点，所以页头只要跟 .wrap 一样内缩 --ax-gutter 就与正文列
     逐像素对齐；公式那套内距是给「.top 铺满、.wrap 居中」的屏用的，本屏不适用。
     ⚠ 选择器必须带 `> .content >`（0,3,0）压过 components.css 的 `.uiv2 .top`（0,2,0）——
       components.css 加载在本文件**之后**（index.html:27 vs :17），同权重时它胜出。 */
  .ax-topic-screen > .content > .top { padding-inline: var(--ax-gutter); }

  /* 采集行：pill / input / 主按钮同高 42px，主按钮是行内那枚 pill（手机那枚已被 .tp-pconly 关掉）。
     这枚主按钮是这一屏唯一的落地动作，比旁边的 ghost pill 需要更宽的命中区：
     行内内距从写死的 22px 收成 --ax-s5(20px)（`.uiv2 .pill` 本身是 13px，22 是另一档）。 */
  .ax-topic-screen .tp-plat { height: 42px; }
  .ax-topic-screen .tp-pconly[data-topic-collect] { height: 42px; padding: 0 var(--ax-s5); }
  /* 同一个槽位的另外两种形态（「先扫码授权」与通道未就绪时的置灰钮）原来没被上一条命中，
     高 32px 夹在 42px 的输入框旁边，比左右两件矮一截。 */
  .ax-topic-screen .tp-collectrow .pill.primary.tp-pconly { height: 42px; padding: 0 var(--ax-s5); }
  /* .grid.g3 在 ≤1200px 会被 proto.css 收成一列；采集结果表要能横向滚（原型给了 min-width:660px） */
  .ax-topic-screen .tbwrap { margin-right: -2px; }
  /* 原先这里有两条 `.ax-topic-screen .seg{width:fit-content}` / `.seg button{flex:none}`
     的 PC 档覆盖 —— 它们写的时候屏内根本没有这枚控件（页面签那一次把 markup 删了，
     规则没跟着删，成了死件）。2026-09-28 第二轮控件加回来，那两条的值一字不改地
     并进了上面「两档通用」那一段：分段控件在手机档也要收到内容宽。
     留一份在媒体查询里、一份在外面，两处会分叉。 */
}

/* ===================== 游客态 =====================
   2026-09-28：游客态改成**与登录态共用同一副骨架**（topic.js 的 renderGuest），
   所以它现在落在 `.wrap.wide`（1120px）里 —— 三张介绍卡会被拉成一条 1120px 的长条，
   一行字长得读不下去。收一个内容上限，与采集卡（.tp-collectcard）同用 --ax-col(700px)，
   页头往下是一列。 */
.ax-topic-screen .tp-guest { max-width: var(--ax-col); }

/* ===================== 平台下拉（原型的「🔥 平台 ▾」pill） =====================
   原型只有一枚 pill + 一个 caret：这里就是一枚 pill 套一个原生 select（铺满整枚 pill、透明），
   点哪里都直接展开系统下拉；选项来自 /api/topic/channels 下发的平台，不写死平台名。 */
.ax-topic-screen .tp-plat { position: relative; cursor: pointer; }
.ax-topic-screen .tp-plat select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font: inherit; border: 0; padding: 0; background: none;
}

/* ===================== 结果行 ===================== */
/* 勾选方块：原型就是表格里那个 22px 的 ✓ chip；真正的 checkbox 藏在 chip 里，
   change 事件照旧打在 [data-topic-item] 上，勾选/取消的 HTTP 口径一点没变。 */
.ax-topic-screen label.chip { cursor: pointer; justify-content: center; min-width: 22px; flex: none; position: relative; }
/* 绝对定位的隐藏勾选框**必须有锚**（label 上那句 position:relative）。
   2026-09-26 实测定性：没有锚时它的包含块落到外层 `.content`（position:relative），盒子被摆到外层坐标系
   2000+px 处 ⇒ ① 外层滚动高度被撑到 3063（内容其实只有 982，页面"像没有上下限"）；
   ② 点 label 触发浏览器"把控件滚进视野"，外层 .content 直接滚到 2033，内层滚动体被推到视口外（y 12→-1965）
   ⇒ 整屏发白、往上滑内容才回来。左侧 two 值把它钉在芯片内，两个症状一起消失。 */
.ax-topic-screen label.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 作品链接：表格里跟在标题下面，手机档跟在数据行下面（原型没有这一行，它是 §4.2 的要求） */
.ax-topic-screen .tp-link { display: flex; align-items: center; gap: var(--ax-s2); flex-wrap: wrap; margin-top: var(--ax-s1); }
.ax-topic-screen .tp-link a { font-size: var(--fs-caption); color: var(--gt); text-decoration: none; word-break: break-all; }

/* .li 两边都可能很长（通道名 + 状态 + 动作），窄档让动作自己换到下一行，别把正文挤成一列字 */
.ax-topic-screen .li { flex-wrap: wrap; }
.ax-topic-screen .li .rb { flex-wrap: wrap; justify-content: flex-end; }

/* ===================== 区块节奏（2026-09-28） =====================
   ① 区块与区块之间的纵向间距：全站只有 --ax-gap-section 一处出处
      （uiv2/components.css:35）。topic.js 里三处「卡与卡之间」原来各写一遍
      `mt20`（proto.css:192 的 20px），与该 token 差 2px。
   ② 卡内抬头（采集通道 / 采集结果 / 生成的选题 / 已导入）：吃 components.css
      的 `.uiv2 .sec-t` 那一档（--fs-meta / --fw-strong / --muted），
      **不用 .sectit** —— .sectit 自带 `padding-left: var(--ax-card-pad)`，
      那是给「与卡片平级的宿主屏标题」用的；这里是**卡内**抬头，卡自己已有
      18px 内距，再内缩 13px 就把标题推成缩进（与 deal.js:169 的判断同源）。
      抬头是卡的第一个元素，.sec-t 默认的 22px 上留白在这里是多余的，压成 0。 */
.ax-topic-screen .tp-gap { margin-top: var(--ax-gap-section); }
.ax-topic-screen .card > .sec-t:first-child { margin-top: 0; }
/* 同一条理由的另外两处：`.tp-tasks` / `.tp-steps` 自己已经带 tp-gap（22px），里面的
   .sec-t 抬头再带 22px 就是 44px 的双份留白 —— 抬头是这两块的第一个元素。 */
.ax-topic-screen .tp-tasks > .sec-t:first-child,
.ax-topic-screen .tp-steps > .sec-t:first-child { margin-top: 0; }
/* 抬头要带右侧动作（刷新通道状态 / 共 N 条 / 复制全部）⇒ 横向两端对齐 */
.ax-topic-screen .tp-cardhead { display: flex; align-items: center; gap: var(--ax-s2); }
.ax-topic-screen .tp-cardhead .sp { flex: 1; min-width: 8px; }
/* .banner 里那段会长文本的正文：原来是每个调用点各写一遍
   `style="flex:1;min-width:0"`（本文件 6 处），收成一个类。
   不给 min-width:0 的话 flex 子项不肯收缩，长句会把右侧的按钮挤出 banner。 */
.ax-topic-screen .tp-flex { flex: 1; min-width: 0; }
/* 手动导入屏那行「已选截图：xxx.png」：文件名可能很长（无空格的长 token），
   不给 overflow-wrap 的话 flex 子项会撑破整行、把右边的「移除截图」顶出容器。 */
.ax-topic-screen .tp-filename { overflow-wrap: anywhere; }
/* 截图选择行（topic-manual.js 的 panelHTML）。两件事：
   ① 行高与上下两个输入框齐平（42px）—— 改前是 32px 的胶囊夹在两段 22px 空当中间，
      「上传截图」既不属于上面的标题、也不属于下面的图片说明，整张表单读起来是三段无关的横条；
   ② 没选图时（.tp-imgrow 没有 .has-img）给一圈虚线内缩，把它读成「这里可以放一张截图」的
      空槽而不是一枚误点的按钮。虚线与 .ax-empty（components.css:604）、.tp-shot 取图失败态
      （下面 :353）是同一套语言，选中之后这圈虚线整个撤掉。
      换行由下面 `.tp-collectcard .row { flex-wrap:wrap }` 统一给（选中后的长文件名在
      320px 窄档要能落到第二行），这里不重复声明。 */
.ax-topic-screen .tp-imgrow {
  gap: var(--ax-s2);
  min-height: 42px;
}
.ax-topic-screen .tp-imgrow:not(.has-img) {
  padding: 0 var(--ax-s3);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}
/* 采集行那张卡：与下面的通道卡同宽（--ax-col），页头往下是一列，不是一块窄一条宽 */
.ax-topic-screen .tp-collectcard { max-width: var(--ax-col); }
.ax-topic-screen .tp-collectcard .row { flex-wrap: wrap; }
/* 卡底那条「手动导入」脚注（tp-alt）与它的说明随 2026-10-02 第二轮一起撤了
   （用户逐字「把那个手动导入去掉」）—— 原来给它写的三条规则也一并删掉，不留死件。 */

/* ===================== 输入框内嵌麦克风（2026-10-02 第二轮） =====================
   用户逐字：「把那个语音输入换成一个小的麦克风图标，放到输入框里」/「放到两个文字输入框
   的最右侧」。所以 .tp-inp-wrap 是一层壳：input 照旧吃 .inp，麦克风绝对定位在它的右端。
   壳自己接管「这一格占多宽」：对标搜索 = 与平台 pill / 主按钮同行（flex:1 1 auto），
   话题搜索 = 两个整行框（.tp-inp-full，flex-basis:100%）。 */
.ax-topic-screen .tp-inp-wrap { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.ax-topic-screen .tp-inp-wrap.tp-inp-full { flex: 1 1 100%; }
.ax-topic-screen .tp-inp-wrap .inp { flex: 1; min-width: 0; padding-right: 42px; }
.ax-topic-screen .tp-mic-ic {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; flex: none; cursor: pointer;
  color: var(--muted); border: 1px solid transparent; background: none;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.ax-topic-screen .tp-mic-ic:hover { background: var(--hover); color: var(--ink); }
.ax-topic-screen .tp-mic-ic .ic { width: 16px; height: 16px; }
/* 录音中转红、转写中转主题色（attachDictation 的 paintBtn 挂 .rec / .busy）——
   原来这两个态画在 pill 上，现在画在图标钮上，颜色语言与 IP 建档屏的 .ip-mic-btn 同一套。 */
.ax-topic-screen .tp-mic-ic.rec { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.ax-topic-screen .tp-mic-ic.busy { color: var(--gt); pointer-events: none; }

/* 手动导入屏的正文框（textarea）那一颗（2026-10-03 第三轮，a3 清单 #29）：原来它是一行
   「说一段，转成文字」的文字按钮 + 旁边一条留白提示，与本组话题搜索屏的做法不一致；
   现在同形 —— 图标嵌在框里。textarea 有 150px 最小高（proto.css 的 .uiv2 .ta），
   所以那颗不居中（居中会落在框的腰部），改成贴右上角、与第一行文字对齐；
   框右侧留出与 .tp-inp-wrap 同宽的 42px，正文不被图标压住。 */
.ax-topic-screen .tp-ta-wrap { position: relative; display: block; }
.ax-topic-screen .tp-ta-wrap .ta { padding-right: 42px; }
.ax-topic-screen .tp-ta-wrap .tp-mic-ic { top: 6px; transform: none; }

/* 话题搜索屏：主按钮与它左边那两档筛选（【发布时间】【排序依据】，相邻组[282]）同处一格，
   整组推到行尾与上面两条 100% 输入框的右缘对齐（PC 档；窄档随行自然排布）。
   ⚠ `flex-wrap: wrap`：窄档（320~390px）两枚筛选药丸 + 主按钮一行放不下时，让它们落到
   第二行，而不是把主按钮顶出卡片（.tp-collectacts 自己是 inline-flex，不自带换行）。 */
.ax-topic-screen .tp-collectacts {
  display: inline-flex; align-items: center; gap: var(--ax-s2);
  margin-left: auto; flex-wrap: wrap; justify-content: flex-end;
}
/* 那两枚筛选药丸（topic.js 的 filterPillHTML）：与平台 pill 同一套「原生 select 铺满」的写法，
   只是内容矮一号、不要那枚平台图标。 */
.ax-topic-screen .tp-plat-sel { font-size: var(--fs-meta); height: 32px; padding: 0 var(--ax-s3); gap: var(--ax-s1); }
.ax-topic-screen .tp-plat-sel .ic { width: 14px; height: 14px; }
/* ⚠ 2026-10-03 第三轮：这里原来有 `.tp-tagfilter` 那一组（勾选框 + 选中态 + focus 环）——
   「让 AI 按细分标签筛」那枚复选框按 D4 删了，样式随之撤，不留没人用的死规则。 */
.ax-topic-screen .tp-collectrow .tp-pconly { height: 42px; padding: 0 var(--ax-s5); }
/* 卡内那条 .note 提醒（平台清单未就绪 / 扣费口径 / 可见性说明）：原本逐处手写 `mt10`
   （proto.css 的 10px）。结果卡与按钮之间、按钮与说明之间全是 10px，
   读起来像三样东西在同一层 —— 说明该比控件轻一档、矮一档。 */
.ax-topic-screen .tp-note { margin-top: var(--ax-s3); }
/* 生成区那枚「结合我的 IP 档案」（2026-10-07，钩子 data-topic-link）：勾选行与它下面
   那句说明说的是同一件事，而 .ax-check 自己已经带 10px 下内距、上面那条 .tp-note 再带
   --ax-s3，两截加起来 22px 会把一句话从它的开关上撕开。这里只收这**一对**的距离，
   整组对外的间距仍由外层 .tp-gap 给（不碰全局 .tp-note，别处照旧）。
   权重 (0,3,0) > `.ax-topic-screen .tp-note` 的 (0,2,0)，不靠源序。 */
.ax-topic-screen .tp-link + .tp-note { margin-top: 0; }
/* 同一处说明在「标题/动作行」正下方时收成 --ax-s2（省得标题与正文之间空一整段） */
.ax-topic-screen .tp-gap-s { margin-top: var(--ax-s2); }
/* 任务下方的进度条：原 inline `mt10` */
.ax-topic-screen .tp-bar { margin-top: var(--ax-s3); }
/* 作品封面（2026-10-19）：标题前一张竖版缩略图；没有 / 过期加载失败时只剩占位底色，行高不跳 */
.ax-topic-screen .tp-tt { display: flex; align-items: flex-start; gap: var(--ax-s3); }
.ax-topic-screen .tp-tt-main { flex: 1; min-width: 0; }
.ax-topic-screen .tp-cover {
  flex: none; display: block; width: 54px; height: 72px; border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--ink, #888) 10%, transparent);
}
.ax-topic-screen .tp-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-topic-screen .li > .tp-cover { width: 48px; height: 64px; margin-right: var(--ax-s2); }
/* 采完但条数少于所选那档时的那句「为什么」（2026-10-19，服务端 continue_note） */
.ax-topic-screen .tp-cont-note { margin: var(--ax-s3) 0 0; }
/* 结果表上方那排动作（全选本页 / 清空勾选 / 拿这些结果去对话）：原 inline `mt10` */
.ax-topic-screen .tp-acts { margin-top: var(--ax-s3); flex-wrap: wrap; }
/* 采集结果表：列宽原来逐个写在 `<th style="width:…">` 上（34/78/70/70/104px），
   `min-width:660px` 原来写在 `<table style>` 上。收进类里，表结构改动时跟着标签走。
   660px 是原型给的就地滚下限 —— 窄窗时 `.tbwrap` 横向滚，不把表压扁。
   选择器带上 `table.tb` 是为了压过 proto.css:254 的 `.uiv2 table.tb th`（同权重、加载更早）。
   ⚠ 2026-10-04：表从六栏收到两栏（勾选 + 作品标题，理由见 topic.js 的 itemParts）——
      四栏的列宽规则（.tp-th-like/.tp-th-num/.tp-th-time）一并删，不留没人命中的死选择器。
      表格窄到只剩两栏之后 660px 也失去了意义（标题列要占满整宽），下限跟着收掉。 */
.ax-topic-screen table.tb .tp-th-pick { width: 34px; }
/* 2026-10-19 四栏加回（点赞 / 评论 / 转发 / 发布时间，理由见 topic.js 的 itemsHTML）：
   数字右对齐、不折行；标题列吃掉剩下的宽度。窄窗时 `.tbwrap` 横向滚（下限 640px），不把标题压成一字一行。 */
.ax-topic-screen .tp-tb table.tb { min-width: 640px; }
.ax-topic-screen table.tb .tp-num { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.ax-topic-screen table.tb .tp-day { width: 96px; font-variant-numeric: tabular-nums; }
.ax-topic-screen table.tb th.tp-num { text-align: right; }
.ax-topic-screen .tp-author { display: block; margin-top: var(--ax-s1); font-size: var(--fs-caption); color: var(--muted); }
/* 结果区的「查看排序」那一排（默认 / 点赞 / 评论 / 转发 / 发布时间） */
.ax-topic-screen .tp-sortbar { margin-top: var(--ax-s3); gap: var(--ax-s2); flex-wrap: wrap; align-items: center; }
.ax-topic-screen .tp-sortbar > .mut { font-size: var(--fs-caption); }
.ax-topic-screen .tp-nums { font-variant-numeric: tabular-nums; }

/* ⚠ 2026-10-02：这里原来有「采集通道卡 / 我的采集账号（<details> 折叠）/ 通道行状态句 /
   健康点」四组规则（.tp-chan-card / .tp-fold* / .tp-chan-st / .ax-topic-dot）——
   宿主随用户端扫码/绑定链路一起撤除（板块 11：采集走平台统一账号，后台发起登录），
   四组一并删。后台「账号通道」页有自己的样式，不受影响。 */

/* ===================== 采集任务区（2026-09-25：进行中任务逐条列出） =====================
   任务区由 JS 用 `.stack` 逐条渲染（每条的 PC 行 `.li` / 手机 `.banner` + 自己的进度条合成一个
   `.tp-task`）。`.stack` 的 8px 间距只落在「任务与任务」之间：`.tp-task` 内部保持块级，
   免得进度条被 proto.css 的 `.bar-track{flex:1}` 拉成弹性项而变形。 */
.ax-topic-screen .tp-task { display: block; }
.ax-topic-screen .tp-task > .bar-track { display: block; }
/* 行内的「查看进度 / 刷新进度」不参与挤压：手机档的标题很长，按钮必须还能一眼看到 */
.ax-topic-screen .tp-task .li .rb > .pill,
.ax-topic-screen .tp-task .banner > .pill { flex: none; white-space: nowrap; }
/* 手机档两枚以上按钮：说明占满图标右边那一整行，按钮换到下一行、靠右（2026-10-19 加「继续采集」时一并修） */
.ax-topic-screen .tp-task .banner.tp-banner-multi { flex-wrap: wrap; }
.ax-topic-screen .tp-task .banner.tp-banner-multi > .tp-flex { flex: 1 1 calc(100% - 44px); }
.ax-topic-screen .tp-task .banner.tp-banner-multi > .pill:first-of-type { margin-left: auto; }

/* ===================== 提示 / 空态 / 加载态 ===================== */
/* .banner 默认是「提醒」色；失败、终止、规则失效这类如实告知必须更重一档 */
.ax-topic-screen .banner.tp-bad {
  border-color: color-mix(in srgb, var(--bad) 42%, transparent);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
}
.ax-topic-screen .banner.tp-bad > .ic { color: var(--bad); }
/* .banner 里的两行（任务名 / 事实）。改前是 `style="display:block"` + 逐处的
   `margin-top:6px` 写死行内样式，且 6px 在 12px 正文下不成档。这里给一个类：
   标题吃 --fs-small/--fw-medium（banner 底色偏暖，标题比 .note 重一档才对得起
   「这是一条告示」），副行仍是 .note。 */
.ax-topic-screen .tp-banner-t {
  display: block;
  font-size: var(--fs-small);
  line-height: var(--lh-meta);
  font-weight: var(--fw-medium);
  color: var(--ink);
}
.ax-topic-screen .tp-banner-s { display: block; margin-top: var(--ax-s1); }

/* 空态/加载态/错误态用的是公共件（common.js 的 emptyHTML / loadingHTML / errorHTML）。
   2026-09-28 排版轮本屏做了三件事：
   ① 删掉本屏那份 `.empty-state` 抄件（13px/650 + 30px/26px 内距）。改前同一句话在全站有
      **三套**排版口径 —— components.css 的 `.ax-empty`（--fs-body 标题 + --fs-meta 说明 +
      虚线框 + 56px 图标砖）、app.css 的 `.empty`（15px/12.5px）、以及本屏这一份。删掉本屏
      这份之后，本屏的 `.empty-state` 落到 components.css 的设计目标上。
   ② 下面是**过桥**，不是第三份实现：common.js:159/166 仍然吐 `.empty-state`/`.empty-text`，
      而它们唯一的样式在 copy.js 的注入式 CSS 里（13.5px/800）。common.js 不在本轮我的
      文件清单内（已记进 risks 交给上游），所以这里只把字号/字重/字色拉到与 `.ax-empty`
      同一档，让本屏三屏在 common.js 迁移过去之前先看起来一致。**上游把 common.js 改成
      直接输出 .ax-empty/.ax-empty-t 之后，这一整段可以删掉。**
   ③ 加载态高度交给 components.css 的 `.loading-wrap{min-height:var(--ax-loading-min)}`
      （:686），删掉本屏那句写死的 `padding:26px 0` —— 五处各补高度是同一个毛病。 */
.ax-topic-screen .empty-state { gap: var(--ax-s2); padding: var(--ax-s7) var(--ax-s5); }
.ax-topic-screen .empty-text {
  font-size: var(--fs-body);
  line-height: var(--lh-meta);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

/* 选中 0 条时按钮要真的点不动（原型没有禁用态，这是既有行为，只补视觉） */
.ax-topic-screen .pill[disabled] { opacity: .5; pointer-events: none; }

/* 整宽主按钮（手机档的「开始采集 / 用选中的 N 条生成选题 / 导入这些作品」）
   高度跟采集行同档（42px），别让它比同一行里的输入框高一截。
   ⚠ 宽度只给**手机档**：这一屏的 .tp-block 一直带着 .tp-mponly（≥1024 就被 display:none
   关掉了，只有手动导入屏那枚是无条件渲染的）。手机上是拇指区，铺满一行好点；桌面上
   一条 664px 宽的渐变横条压在一张表单卡底下，比它上面的输入框还抢眼，收成内容宽。 */
.ax-topic-screen .tp-block { width: 100%; justify-content: center; height: 42px; }
@media (min-width: 1024px) {
  .ax-topic-screen .tp-block { width: auto; }
}
/* 采集卡/导入卡里那些**不与别的控件同行**的输入框（手动导入的「整体标题」「图片说明」）。
   proto.css:263 的 `.uiv2 .inp{flex:1}` 只在 flex 容器里有意义，单独放一行时 input 退回
   它的固有宽度（约 200px），在 700px 的卡里占不满、占位文案还被截断（「整体标题（选填，只在粘」）。
   显式给宽度，与上面的 textarea 一样铺满。 */
.ax-topic-screen .tp-collectcard > .inp { width: 100%; }

/* ===================== AI 的一步一步：步骤时间线（每步截图） =====================
   依据 .qoder/plan-20260925-ui/COLLECT-STEPS.md「前端」：只在**聚焦**的那条任务块里渲染
   （topic.js 的 stepsHTML / stepsInnerHTML），左边一条轨道 + 序号圆点，每行一件 .li
   （沿用 proto.css 的面），行内是动作文案、事实、缩略图、相对时间。
   手机档同一份 DOM，只把缩略图放大到接近整宽：甲方要的就是「看得到页面长什么样」。
   2026-10-02 第二轮：原来它上面还挂一个「采集过程」sec-t 抬头（.tp-steps-t 那是给
   抬头排版的），与任务列表读起来重复 —— 抬头整块撤掉，时间线直接长在任务行下面。 */

/* 轨道：列表自己留 30px 左槽，圆点骑在竖线上（圆点用 --main 底把线断开，才读成一个点） */
.ax-topic-screen .tp-steps-list {
  position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; display: grid; gap: var(--ax-s2);
}
.ax-topic-screen .tp-steps-list::before {
  content: ''; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 1px;
  transform: translateX(-50%); background: var(--line-2);
}
.ax-topic-screen .tp-step { position: relative; align-items: flex-start; }
.ax-topic-screen .tp-step-no {
  position: absolute; left: -30px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-caption); font-weight: var(--fw-strong); line-height: 1;
  color: var(--gt); background: var(--main); border: 1px solid rgba(var(--g), .38);
}

/* 缩略图：固定框尺寸（图片从 blob 换上来时不会把行顶得一跳），点击放大用 zoom-in 光标 */
.ax-topic-screen .tp-shot {
  display: block; width: 156px; height: 98px; margin-top: var(--ax-s2); padding: 0; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line); background: var(--hover);
  cursor: zoom-in; text-align: center; color: inherit; font: inherit;
}
.ax-topic-screen .tp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ax-topic-screen .tp-shot-msg {
  display: grid; place-items: center; width: 100%; height: 100%; padding: var(--ax-s1);
  font-size: var(--fs-caption); line-height: var(--lh-meta); color: var(--muted);
}
.ax-topic-screen .tp-shot[data-shot-state="fail"] { border-style: dashed; border-color: rgba(var(--warn-rgb), .45); }
.ax-topic-screen .tp-shot-none {
  display: grid; place-items: center; width: auto; max-width: 100%; height: auto; min-height: 54px;
  padding: var(--ax-s2) var(--ax-s3); border-style: dashed; cursor: default;
  font-size: var(--fs-caption); line-height: var(--lh-meta); color: var(--muted);
}

/* 已经有步骤、只是这次刷新失败：明确告诉用户「过程还在，是刷新没读到」，别把已画出来的清掉 */
.ax-topic-screen .tp-stepswarn { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ax-s2); margin-top: var(--ax-s3); }
.ax-topic-screen .tp-stepswarn .pill { height: 26px; padding: 0 var(--ax-s3); font-size: var(--fs-meta); }

/* 收起态那枚「展开全部 N 步 / 收起」（2026-10-04 第八轮）。
   位置在**时间线上面**：收起来的是更早的步，展开本来就该往上长（topic.js 的 stepsMoreHTML）。
   尺寸比照上面那条 .tp-stepswarn 的按钮（26px/--fs-meta）—— 同一块区域里的两枚次级按钮
   不该长成两个样子。
   ⚠ 2026-10-04 收尾（用户截图圈的正是这一枚）：它当时**贴着第一行卡片**，按钮底边压住了
     步骤序号那个圆点。真因是间距写在了一个不会生效的地方 —— 原来注释里写"间距交给下面
     .tp-steps-list 自己的 tp-gap"，可 `.tp-steps-list` 自己有一条 `margin: 0`（它要的是
     grid 的 gap，不要外边距），两条规则**同权重**，`margin: 0` 在后 ⇒ 把 `.tp-gap` 的 22px
     顶掉了。间距现在显式写在这一枚自己的下边距上，不再指望那条会被覆盖掉的规则。 */
.ax-topic-screen .tp-steps-more { display: flex; margin-bottom: var(--ax-s3); }
.ax-topic-screen .tp-steps-more .pill { height: 26px; padding: 0 var(--ax-s3); font-size: var(--fs-meta); }

/* ===================== 采集过程：手机档（<1024px） ===================== */
@media (max-width: 1023px) {
  /* 左槽收窄一档，圆点跟着收；缩略图放大到接近整宽（这一步的图就是给手机看的） */
  .ax-topic-screen .tp-steps-list { padding-left: 26px; }
  .ax-topic-screen .tp-steps-list::before { left: 12px; }
  .ax-topic-screen .tp-step-no { left: -26px; top: 10px; width: 22px; height: 22px; font-size: var(--fs-micro); }
  .ax-topic-screen .tp-shot { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 10; }
}
