/* 口播带货（超级编导） · 2026-11-01
 * ⚠️ 全部选择器带 #sub-selltalk 作用域，类名前缀 st-，不碰任何既有样式。
 * ========================================================================== */

/* ── 上传区 ─────────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-uprow { display: flex; gap: 10px; align-items: flex-start; }
/* 🔴 file input 不能用 hidden（=display:none）：Safari / 微信 web-view 里对 display:none 的
   input 调 click() 会**吞掉第一次点击**（老板反馈"要连点两下才能上传"）。
   改成视觉隐藏，元素仍在渲染树里，一次就能唤起选择器。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-file {
  position: fixed; left: -9999px; top: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
/* 点击要落在格子上（不是 img 上），避免拖拽手势把第一次点击吃掉 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid img { -webkit-user-drag: none; user-select: none; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-drop { -webkit-tap-highlight-color: transparent; }

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-drop {
  position: relative;
  width: auto; height: 96px; flex: 1 1 0; min-width: 0;
  border: 1.5px dashed #f0c9a8; border-radius: 14px;
  background: #fffaf6;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  text-align: center; color: #b08a68; font-size: 12px; line-height: 1.4;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-drop:active { background: #fff2e8; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-plus { font-size: 22px; line-height: 1; color: #d8a67a; }

/* 每格底部一行极简说明（老板 2026-11-01：「小子太多太乱，隐到对应的添加框里，与之融合」）。
   原来三行 12px 大段挤在框下面，信息重复又抢视线；现在压成 10px 一行，贴着各自的框。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-drop-sub {
  display: block; margin-top: 3px;
  font-size: 10px; line-height: 1.3; color: #c9a98d; font-weight: 400;
}

/* 图片格：有图时**框内九宫格**（27px 一格，3×3），末尾虚线加号 ——
   跟角色框同一套做法（老板 2026-11-01：「这样太丑了，你看角色上传的多好」，
   之前把缩略图挂在框下面，无论大小都不对）。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid {
  /* 用 flex 居中换行，而不是 grid：3 张 + 加号时 grid 会把加号甩到第二行最左边，
     看着像"贴左上角"；flex 每行都居中，跟角色框的观感一致。 */
  position: relative;
  display: flex; flex-wrap: wrap; gap: 3px;
  align-items: center; justify-content: center; align-content: center;
  width: 100%; height: 100%; box-sizing: border-box;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igcell {
  position: relative; flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 6px; overflow: hidden; background: #fff;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igcell img {
  width: 28px; height: 28px; max-width: 100%; object-fit: cover; display: block;
}
/* 只有 1 张：铺满整格（单图就该像张封面，不是角落里一个 28px 小方块） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid.single { display: block; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid.single .st-igcell { flex: none; width: 100%; height: 100%; border-radius: 14px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid.single .st-igcell img {
  width: 100% !important; height: 100% !important; border-radius: 14px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-imggrid.single .st-igdel {
  width: 22px; height: 22px; font-size: 13px; line-height: 22px;
  border-radius: 0 13px 0 11px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igdel {
  position: absolute; top: 0; right: 0; width: 13px; height: 13px; padding: 0;
  border: 0; border-radius: 0 6px 0 6px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 9px; line-height: 13px; text-align: center;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igadd {
  flex: 0 0 28px; width: 28px; height: 28px; padding: 0; box-sizing: border-box;
  border: 1.5px dashed #f0c9a8; border-radius: 6px; background: #fffaf6;
  color: #d8a67a; font-size: 13px; line-height: 1;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igadd:active { background: #fff2e8; }
/* 只有 1 张（铺满整格）时的圆形加号：不占格子，浮在右下角 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igplus {
  position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94);
  color: #e07a2c; font-size: 16px; line-height: 26px; text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); z-index: 3;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-igplus:active { background: #fff2e8; }

/* ── 「我的声音」格：三态（未传 / 复刻中 / 就绪） ── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vdrop { flex-direction: column; gap: 2px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vdrop .st-plus { font-size: 20px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vdrop small { display: block; font-size: 10px; color: #c09a78; margin-top: 2px; }
/* 声音格的段数两行（99px 框宽，一行写不下"2 段 · 9.2 秒 · 可再加"） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) #stVoiceSegs b {
  display: block; font-size: 9.5px; font-weight: 600; line-height: 1.35;
  color: #b5713a; white-space: nowrap;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) #stVoiceSegs i {
  display: block; font-style: normal; font-size: 9px; line-height: 1.35;
  color: #c9a98d; white-space: nowrap;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vbusy {
  display: block; font-size: 12px; color: #d18b4a;
  animation: st-vblink 1.1s ease-in-out infinite;
}
@keyframes st-vblink { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vok {
  font-size: 20px; line-height: 1; color: #fff; background: #f0902f;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 3px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vdrop.done { border-style: solid; border-color: #f0a85a; background: #fff5ec; color: #b5713a; }

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
  font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; z-index: 2;
}

/* 角色可放 2 个（老板 2026-11-01：图片 1-8 张、角色 1-2 个）：
   框内并排两张 40px 小图，没满时后面跟一个虚线小加号；满了就只剩两张图 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actors {
  display: flex; gap: 5px; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 0 4px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-thumb {
  position: relative; width: 40px; height: 40px; border-radius: 9px;
  overflow: hidden; flex: 0 0 auto;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-x {
  position: absolute; top: 0; right: 0; width: 15px; height: 15px; padding: 0;
  border: 0; border-radius: 0 9px 0 8px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 10px; line-height: 15px;
  text-align: center; z-index: 2;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-add {
  width: 40px; height: 40px; flex: 0 0 auto; padding: 0;
  border: 1.5px dashed #f0c9a8; border-radius: 9px; background: #fffaf6;
  color: #d8a67a; font-size: 15px; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-actor-add i { font-style: normal; font-size: 8px; color: #b08a68; margin-top: 2px; }

/* ── 选项胶囊 ───────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-group { margin-top: 14px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-group-t { font-size: 12.5px; color: #8a6a52; margin-bottom: 8px; font-weight: 500; }

/* ── 画面参数区：清晰度 / 比例 / 时长 收在一块（老板 2026-11-01：这几个参数放一块方便选）── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-params {
  margin-top: 14px; padding: 14px 14px 8px;
  border: 1px solid #f3e3d4; border-radius: 14px; background: #fffdfb;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-params .st-group { margin-top: 0; margin-bottom: 10px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-params .st-group:last-child { margin-bottom: 2px; }

/* 时长模式：两段式，选中的填色（官方模型体验那张图就是这个形态） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-seg { display: flex; gap: 10px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-segbtn {
  flex: 1 1 0; min-width: 0; height: 42px;
  border: 1px solid #f0d8c4; border-radius: 12px;
  background: #faf7f4; color: #8a6a52;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-segbtn.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 600;
}
/* 智能时长时滑块变灰不可拖（不是隐藏——用户要看得到"这条由脚本定"） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range.is-off { opacity: .35; pointer-events: none; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range-ends.is-off { opacity: .35; }

/* 比例：三张小卡，图标用纯 CSS 画（不引图片，避免再出 404 / 错版） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ratios { display: flex; gap: 6px; }   /* 六项（自动/16:9/4:3/1:1/3:4/9:16）要能一行放下 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ratio {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 9px 0 7px;
  border: 1px solid #f0d8c4; border-radius: 10px;
  background: #fff; color: #8a6a52;
  font-size: 11.5px; font-weight: 500; line-height: 1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ratio-ico {
  display: block; margin: 0 auto 6px;
  border: 1.5px solid currentColor; border-radius: 2px; box-sizing: border-box;
}
/* 「自动」不接受固定形状：用虚线方框表示"按素材来" */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ratio-auto { width: 18px; height: 18px; border-style: dashed; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ratio.active {
  border-color: var(--primary); background: #fff2e8;
  color: var(--primary); font-weight: 600;
}

/* ── 目标市场与语言：两个并排下拉 + 一个整宽下拉 + 画面预览 ── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-req { color: #e07a3a; font-size: 11px; font-weight: 400; margin-left: 6px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-selrow { display: flex; gap: 10px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sel {
  width: 100%; height: 46px; padding: 0 34px 0 14px;
  border: 1px solid #f0d8c4; border-radius: 12px;
  background-color: #fff;
  color: #5c4433; font-size: 14px; font-weight: 500;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1.5l5 5 5-5' stroke='%23b08a68' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-selrow .st-sel { flex: 1 1 0; min-width: 0; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sel-wide { margin-top: 10px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-mktpv {
  margin-top: 10px; padding: 12px 14px;
  border: 1px dashed #f0d8c4; border-radius: 12px;
  background: #fffaf6; color: #8a6a52; font-size: 12.5px; line-height: 1.65;
}

/* ── 时长滑块（5~30 秒，替代原来的三档胶囊） ── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sec { color: #f0902f; font-size: 15px; font-weight: 700; margin: 0 1px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sechint { float: right; font-size: 11px; color: #c09a78; font-weight: 400; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px; outline: none;
  margin: 6px 0 4px;
  background: linear-gradient(90deg, #f0902f 0%, #f0902f var(--p, 40%), #f3e3d4 var(--p, 40%), #f3e3d4 100%);
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #f0902f;
  box-shadow: 0 1px 3px rgba(0,0,0,.16); cursor: pointer;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid #f0902f; cursor: pointer;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-range-ends { display: flex; justify-content: space-between; font-size: 11px; color: #c9a98d; }

/* 芯片一律**等分网格**（老板 2026-11-01：「同行的排列很整齐，咱们歪七八拐」）。
   原来 flex-wrap 按内容自适应宽度 ⇒ 6 个开场策略排成 2/3/1，参差不齐。
   改 3 列 × N 行，`1fr` 让每格同宽、`grid-auto-rows:1fr` 让每行同高，
   文案长短不一致也只是格内换行，格子本身永远对齐。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-chip {
  border: 1px solid #f0d8c4; background: #fff; color: #8a6a52;
  border-radius: 10px; padding: 8px 5px; font-size: 12.5px; line-height: 1.25;
  cursor: pointer; transition: all .15s; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; min-height: 54px;
}
/* 副标题 11px→10.5px、左右留白 6→5：三段式格宽 100px 时，8 字副标题（如"先说麻烦再给答案"）
   刚好一行放得下；实在要换行时用 text-wrap:balance 让两行长度均衡，别掉出"案"这种孤字。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-chip small {
  display: block; font-size: 10.5px; color: #b09a86; margin-top: 3px;
  line-height: 1.35; text-wrap: balance;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-chip.active { border-color: var(--primary); background: #fff2e8; color: var(--primary); font-weight: 600; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-chip.active small { color: var(--primary); }

/* ── 文本输入 ───────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ta {
  width: 100%; border: 1px solid #eee; border-radius: 12px;
  padding: 12px; font-size: 13px; line-height: 1.6; color: #333;
  background: #fff; resize: vertical; font-family: inherit;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ta:focus { outline: none; border-color: var(--primary); background: #fffdfb; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-ta::placeholder { color: #c3b8af; }

/* ── 编导主按钮 ─────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-director-btn {
  width: 100%; margin-top: 16px; border: 0; border-radius: 14px;
  padding: 15px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-director-btn:disabled { opacity: .6; cursor: default; }
/* 生成中面板（2026-11-01）：呼吸光晕 + 扫光 + 三颗跳动点 + 流光进度条
   全部带 #sub-selltalk 作用域；动画只用 transform/opacity，不触发重排 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage {
  position: relative; overflow: hidden; margin-top: 12px;
  padding: 14px 15px 13px; border-radius: 14px;
  background: linear-gradient(135deg, #fff8f2 0%, #fffdfb 46%, #fff2e7 100%);
  border: 1px solid #f7ddc8;
  animation: st-stage-glow 2.6s ease-in-out infinite;
}
@keyframes st-stage-glow {
  0%, 100% { box-shadow: 0 6px 16px rgba(232, 116, 48, .10); }
  50%      { box-shadow: 0 10px 28px rgba(232, 116, 48, .22); }
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-in { position: relative; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-scan {
  position: absolute; left: -10%; right: -10%; top: -46%; height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,203,160,.38) 50%, rgba(255,255,255,0) 100%);
  animation: st-stage-scan 2.8s linear infinite;
}
@keyframes st-stage-scan { 0% { top: -46%; } 100% { top: 100%; } }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-h {
  position: relative; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #8a5b33;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-tx { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-sec {
  flex: 0 0 auto; font-size: 12px; font-weight: 500; color: #b08c6a;
  font-variant-numeric: tabular-nums;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dots i {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: #f0a06a; animation: st-dot 1.2s ease-in-out infinite;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dots i:nth-child(2) { animation-delay: .15s; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes st-dot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1;  transform: translateY(-3px); }
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-bar {
  position: relative; margin: 11px 0 9px; height: 6px;
  border-radius: 6px; background: #f6e3d4; overflow: hidden;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-bar > i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #ffd9b8 0%, #f5883f 35%, #ffcda6 55%, #f5883f 80%, #ffd9b8 100%);
  background-size: 220% 100%;
  animation: st-stage-bar 1.5s linear infinite;
  transition: width .6s ease;
}
/* 没有真实百分比时（编导那一步）：一小段橙色从左扫到右，表示"还在跑"，不是"跑完了" */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-bar > i.indet {
  width: 34%;
  animation: st-stage-bar 1.4s linear infinite, st-indet 1.5s ease-in-out infinite;
}
@keyframes st-indet {
  0%   { left: -36%; }
  100% { left: 100%; }
}

/* 第 n / 共 4 步 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-n {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #c07f4c;
  font-variant-numeric: tabular-nums;
}
/* 四步流水线（2026-11-01 照 AI 探店工作台做的） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow { position: relative; display: flex; margin: 14px 0 3px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 16px; height: 3px;
  border-radius: 3px; background: #f3e2d4; overflow: hidden; z-index: 0;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-line > i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #ffb877, #f2782c); transition: width .5s ease;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item {
  position: relative; z-index: 1; flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item b {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1;
  background: #fff; border: 1.5px solid #f0dccb; color: #c9a98d;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item small { font-size: 11px; color: #a98a70; white-space: nowrap; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.done b { background: #f2782c; border-color: #f2782c; color: #fff; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.done small { color: #a9633a; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.cur b {
  background: #f2782c; border-color: #f2782c; color: #fff;
  animation: st-flow-pulse 1.6s ease-in-out infinite;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.cur b em {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: st-spin .9s linear infinite;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.cur small { color: #e06a1f; font-weight: 600; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-flow-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(242, 120, 44, .16); }
  50%      { box-shadow: 0 0 0 8px rgba(242, 120, 44, .06); }
}
@keyframes st-stage-bar { 0% { background-position: 0% 50%; } 100% { background-position: -220% 50%; } }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-tip {
  position: relative; font-size: 11.5px; line-height: 1.5; color: #a98a70;
}
@media (prefers-reduced-motion: reduce) {
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-scan,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-bar > i,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-stage-bar > i.indet,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dots i,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.cur b,
  :is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-flow-item.cur b em { animation: none; }
}

/* ── 脚本区 ─────────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-script-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-script-badge {
  background: #f5f3ff; color: #7c3aed; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-points { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: #374151; }
/* 脚本卡里能直接改的文本（2026-11-01）：平时不描边，hover / 聚焦才给反馈 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) [contenteditable="true"] {
  outline: none; border-radius: 6px; cursor: text;
  transition: background .15s, box-shadow .15s;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) [contenteditable="true"]:hover { background: #fffaf5; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) [contenteditable="true"]:focus {
  background: #fff7ef; box-shadow: inset 0 0 0 1px #f0c9a8;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-hook {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 13.5px; line-height: 1.6; font-weight: 500;
}

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: #fafafa; border: 1px solid #f0f0f0;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-no { font-size: 12px; font-weight: 700; color: #7c3aed; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-sec { font-size: 11px; color: #9ca3af; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-v { font-size: 13px; line-height: 1.65; color: #1f2937; }
/* 出镜人规格 + 每镜的表演/动态（2026-11-01 对齐探店工作台的分镜表） */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-cast {
  margin: 0 0 10px; padding: 9px 11px; border-radius: 10px;
  background: #fdf6ef; color: #7a5a3f; font-size: 12px; line-height: 1.6;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-cast b { display: block; color: #a87446; font-size: 11px; font-weight: 700; margin-bottom: 2px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-cast i { display: block; margin-top: 3px; font-style: normal; color: #9a7a5c; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-a,
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-d { font-size: 12px; line-height: 1.6; color: #8a7a6a; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-d { color: #9a8a7a; margin-bottom: 2px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-c { margin-top: 4px; font-size: 12px; color: #6b7280; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-shot-l { margin-top: 6px; font-size: 13px; line-height: 1.65; color: #9a3412; }

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vocount { display: block; text-align: right; font-size: 11.5px; color: #9a8b80; margin-top: 6px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-vocount.over { color: #dc2626; }

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-risk {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #fef2f2; color: #b91c1c; font-size: 12px; line-height: 1.6;
}

/* ── 分节小标题 ─────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sub {
  margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: #6b4a2f;
  display: flex; align-items: center; gap: 8px;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-sub .st-mini {
  margin-left: auto; border: 0; background: none; color: #7c3aed;
  font-size: 12px; cursor: pointer; padding: 0;
}

/* ── 发布文案 ───────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-pub { font-size: 13px; line-height: 1.75; color: #374151; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-pub-t { font-weight: 700; color: #111827; margin-bottom: 6px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-pub-tags { margin-top: 8px; color: #7c3aed; font-size: 12.5px; }

/* ── 结果视频 ───────────────────────────────────────────────── */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-video {
  /* 🔴 2026-11-01 修黑边：原来写死 max-height:520px，9:16 的成片被压成方块，
     播放器就在两边补黑边（文件本身 480×854 是满的，跟提示词无关）。
     改成高度跟着比例走，横片竖片都不会再有黑边。 */
  width: 100%; height: auto; border-radius: 14px; background: #000; display: block;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-result-info { margin-top: 10px; font-size: 12.5px; color: #6b7280; line-height: 1.6; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dl {
  display: block; text-align: center; margin-top: 12px;
  background: var(--primary); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 13px 0; font-size: 14px; font-weight: 600;
}

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-manual-link {
  background: none; border: 0; color: #9a7b62; font-size: 12.5px;
  text-decoration: underline; cursor: pointer; padding: 0;
}

:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-note { font-size: 11.5px; color: #9a8b80; line-height: 1.6; margin-top: 8px; }

/* ───────────────── 图片管理浮层（挂 body，类名唯一，不套 #sub-selltalk） ─────────────────
   老板 2026-11-01：鼠标指向缩略图要弹出「大图预览 + 删 + 加」。
   卡片必须挂 body：父级 .card/.st-drop 都有 overflow:hidden，挂里面会被裁成一条。 */
.st-imgpop { position: fixed; inset: 0; z-index: 9990; display: none; }
.st-imgpop.on { display: block; }
.st-imgpop-mask {
  position: absolute; inset: 0; background: rgba(32, 18, 8, .52);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.st-imgpop-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: min(86vw, 340px); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3); transition: transform .16s ease;
}
.st-imgpop.on .st-imgpop-card { transform: translate(-50%, -50%) scale(1); }
.st-imgpop-pic {
  display: flex; align-items: center; justify-content: center;
  background: #f7f2ec; max-height: 58vh; overflow: hidden;
}
.st-imgpop-pic img { max-width: 100%; max-height: 58vh; object-fit: contain; display: block; }
.st-imgpop-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 16px; line-height: 28px; text-align: center; z-index: 2; cursor: pointer;
}
.st-imgpop-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.st-imgpop-n { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #9a7a5c; }
.st-imgpop-del, .st-imgpop-add {
  flex: 0 0 auto; border: 1px solid transparent; border-radius: 10px;
  padding: 7px 12px; font-size: 12.5px; line-height: 1.2; cursor: pointer;
}
.st-imgpop-del { background: #fff; border-color: #f0d8c4; color: #b5713a; }
.st-imgpop-del:active { background: #fdf6ef; }
.st-imgpop-add { background: #f2782c; color: #fff; }
.st-imgpop-add:active { background: #dd6a1f; }

/* ───────── 编导卡：顶部「按 X 写脚本 · 改 ›」提示 + 自己写入口 ─────────
   老板 2026-11-01：市场语言搬进「出片」卡后，编导这边要能看见会按什么写，
   点「改 ›」直接滚到出片卡里的市场选择器。 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dirlink {
  color: #e07a2c; text-decoration: none; font-weight: 600;
  white-space: nowrap; flex: 0 0 auto;
}
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dirskip { text-align: center; margin-top: 12px; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-dirskip .st-dirlink { font-weight: 400; font-size: 12.5px; color: #b5713a; }
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-selrow.st-flash { animation: st-flash 1.2s ease; }
@keyframes st-flash {
  0%, 100% { background: transparent; }
  30%      { background: #fff0e2; }
}


/* 负向提示词展示（2026-11-02）：只读小块，和口播稿区分开 */
:is(#sub-selltalk, #sub-dclone, #sub-rclone, #sub-sclone) .st-neg {
  font-size: 12px; line-height: 1.7; color: #6b7280;
  background: #f8fafc; border: 1px dashed #dbe2ea; border-radius: 8px;
  padding: 9px 11px; word-break: break-all;
}
