/* ===================== 批量生成（项目流水线）样式 ===================== */

/* body 是 overflow:hidden 的固定布局，视图必须自己成为滚动容器，否则内容超出视口就再也点不到 */
.batch-view {
  height: calc(100dvh - 62px); overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 34px 90px; max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 2;
  font-size: 14px; line-height: 1.65;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.batch-view::-webkit-scrollbar { width: 8px; }
.batch-view::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
@media (max-width: 900px) { .batch-view { height: auto; padding-bottom: 60px; } }

/* 批量生成局部用色：比全局 --muted 更亮的辅助色，保证小字可读 */
.batch-view {
  --b-dim: #a8aec2;        /* 次要说明文字 */
  --b-soft: #8b91a6;       /* 最弱层级但仍可读 */
  --b-accent: #cfc4ff;     /* 强调紫 */
  --b-gold: #ffd48a;       /* 戏份标题 */
  --b-num: #efeaff;
}
.batch-view b { color: var(--b-num); font-weight: 650; }

/* 每步的主动作栏（估价/统计 + 按钮）整体吸底，滚到哪都能点，也不遮挡内容 */
.b-sticky-foot {
  position: sticky; bottom: -1px; z-index: 6;
  margin: 18px -26px -26px; padding: 20px 26px 20px;
  background: linear-gradient(180deg, rgba(14,16,22,0) 0%, rgba(14,16,22,.97) 16%, #0e1016 28%);
  border-radius: 0 0 15px 15px;
}
.b-sticky-foot .btn-lg { width: 100%; margin-top: 10px; box-shadow: 0 10px 26px rgba(124, 92, 255, .25); }
.b-sticky-foot .b-estimate { margin: 0 0 2px; }
.b-sticky-foot .b-script-stats { margin: 0 0 2px; }

/* ---------- 首页两个入口卡 ---------- */
.b-home-head { margin: 6px 0 26px; }
.b-home-head h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: .01em; color: #f4f6fc; }
.b-home-head p { color: #b9bfd2; font-size: 15px; margin: 0; line-height: 1.8; }
.b-home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.b-home-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel, rgba(255,255,255,0.03));
  padding: 32px 28px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.b-home-card:hover { transform: translateY(-3px); border-color: #5b9bff; box-shadow: 0 12px 34px rgba(77,125,255,0.18); }
.b-hc-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.b-home-card.new .b-hc-icon { background: linear-gradient(135deg, #5b9bff, #3f7dff); }
.b-home-card.mine .b-hc-icon { background: linear-gradient(135deg, #43dcff, #38d39f); }
.b-home-card strong { font-size: 22px; font-weight: 700; letter-spacing: .01em; color: #f6f7fc; }
.b-home-card span:last-child { color: #b8bed2; font-size: 14.5px; line-height: 1.75; }

/* 首页流程一览 */
.b-flow-intro {
  display: flex; align-items: stretch; gap: 14px; margin-top: 26px; max-width: 760px;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  background: linear-gradient(180deg, rgba(77,125,255,.05), rgba(77,125,255,.015));
}
.b-fi-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.b-fi-step b {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: linear-gradient(135deg, #5b9bff, #3f7dff);
  margin-bottom: 5px;
}
.b-fi-step strong { font-size: 14.5px; color: #eef0f8; }
.b-fi-step span { color: #9ea5ba; font-size: 12.5px; line-height: 1.6; }
.b-fi-arrow { align-self: center; color: var(--b-soft); font-size: 15px; flex: none; }
@media (max-width: 900px) { .b-flow-intro { flex-wrap: wrap; } .b-fi-arrow { display: none; } }

/* ---------- 我的项目 ---------- */
.b-nav-back { margin-bottom: 8px; }
.b-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 16px; }
.b-proj-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel, rgba(255,255,255,0.03));
  padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 11px;
  transition: border-color 0.15s ease, transform 0.15s ease; position: relative;
}
.b-proj-card:hover { border-color: #5b9bff; transform: translateY(-2px); }
.b-proj-card h4 { margin: 0; font-size: 18px; font-weight: 700; color: #f4f6fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 18px; }
.b-proj-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.b-chip { font-size: 12.5px; padding: 3px 11px; border-radius: 999px; background: rgba(77,125,255,0.16); color: #d0c6ff; }
.b-chip.green { background: rgba(56,211,159,0.16); color: #5fe8b0; }
.b-chip.gray { background: rgba(150,150,170,0.16); color: #bcc2d4; }
.b-proj-prog { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 3px; }
.b-proj-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5b9bff, #43dcff); transition: width .3s ease; }
.b-proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.b-proj-time { font-size: 12.5px; color: #9aa1b6; }
.b-proj-go { font-size: 13px; color: var(--b-accent); opacity: 0; transition: opacity .15s ease; }
.b-proj-card:hover .b-proj-go { opacity: 1; }
.b-proj-del {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 6px;
  border: 0; background: transparent; color: var(--b-soft); font-size: 14px; cursor: pointer; line-height: 1;
}
.b-proj-del:hover { color: #ff6b81; background: rgba(255,107,129,0.1); }

/* ---------- 流程头部 ---------- */
.b-flow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.b-flow-head h1 { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .01em; }
.b-step-ind { font-size: 12px; color: #c3b6ff; background: rgba(77,125,255,0.12); padding: 4px 12px; border-radius: 999px; flex: none; }
.b-step { max-width: 900px; }
.b-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel, rgba(255,255,255,0.03)); padding: 26px; }
.b-card h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: .01em; }
.b-card .fl { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--b-dim); }

/* ---------- 步骤进度条 ---------- */
.b-steps-bar {
  display: flex; align-items: center; gap: 8px; max-width: 900px; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px;
  background: var(--panel, rgba(255,255,255,0.03));
}
.b-snode { display: flex; align-items: center; gap: 7px; flex: none; }
.b-snode-dot {
  width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 650; color: var(--b-soft);
  border: 1.5px solid var(--line-strong); background: rgba(255,255,255,.03);
  transition: all .18s ease;
}
.b-snode-label { font-size: 12.5px; color: var(--b-soft); white-space: nowrap; }
.b-snode.done .b-snode-dot { border-color: rgba(56,211,159,.55); color: #4ade9f; background: rgba(56,211,159,.08); }
.b-snode.done .b-snode-label { color: var(--b-dim); }
.b-snode.cur .b-snode-dot {
  border-color: transparent; color: #fff; font-size: 12px;
  background: linear-gradient(135deg, #5b9bff, #3f7dff);
  box-shadow: 0 0 0 4px rgba(77,125,255,.16), 0 4px 14px rgba(77,125,255,.4);
}
.b-snode.cur .b-snode-label { color: var(--b-num); font-weight: 650; }
.b-snode.clickable { cursor: pointer; }
.b-snode.clickable:hover .b-snode-dot { border-color: #5b9bff; color: var(--b-accent); }
.b-snode.clickable:hover .b-snode-label { color: var(--b-accent); }
.b-snode-line { flex: 1; height: 1.5px; min-width: 14px; background: var(--line-strong); border-radius: 2px; }
.b-snode-line.done { background: linear-gradient(90deg, rgba(56,211,159,.55), rgba(143,123,255,.55)); }

/* ---------- 折叠窗 ---------- */
.b-fold {
  border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.b-fold summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.b-fold summary::-webkit-details-marker { display: none; }
.b-fold summary::before { content: '▸'; color: var(--b-soft); transition: transform 0.15s ease; font-size: 11px; }
.b-fold[open] summary::before { transform: rotate(90deg); }
.b-fold-val { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--b-accent); }
.b-fold-tip { margin: 10px 4px 4px; font-size: 12px; color: var(--b-dim); line-height: 1.75; }
.b-fold > .b-opt-grid, .b-fold > .b-opt-row, .b-fold > .b-img-model { padding: 4px 16px 16px; }
.b-img-model .fl { display: block; margin: 6px 0 6px; }

/* 选项组 */
.b-opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.b-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.b-opt {
  border: 1.5px solid var(--line); border-radius: 10px; background: transparent; color: inherit;
  padding: 9px 14px; font-size: 13px; cursor: pointer; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.b-opt:hover { border-color: #5b9bff; }
.b-opt.active { border-color: #5b9bff; background: rgba(77,125,255,0.14); color: #c8dbff; font-weight: 600; }
.b-opt small { display: block; color: var(--b-soft); font-size: 11px; margin-top: 3px; line-height: 1.5; }
.b-opt:disabled { opacity: 0.4; cursor: not-allowed; }

/* 估价与按钮 */
.b-estimate {
  margin: 18px 0 4px; font-size: 13px; color: var(--b-dim); line-height: 1.8;
  border: 1px dashed rgba(143,123,255,.35); border-radius: 11px; padding: 11px 14px;
  background: rgba(77,125,255,.05);
}
.b-estimate b { color: var(--b-accent); font-size: 15px; }
.b-card > .btn-lg { margin-top: 14px; width: 100%; }

/* ---------- 风格选择 ---------- */
.b-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.b-style {
  border: 1.5px solid var(--line); border-radius: 14px; background: transparent; color: inherit;
  padding: 22px 16px; cursor: pointer; text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.b-style:hover { border-color: #5b9bff; transform: translateY(-2px); }
.b-style.active { border-color: #5b9bff; background: rgba(77,125,255,0.14); box-shadow: 0 0 0 3px rgba(77,125,255,.12); }
.b-style .b-style-ico { font-size: 27px; display: block; margin-bottom: 8px; }
.b-style strong { font-size: 15px; display: block; }
.b-style small { color: var(--b-dim); font-size: 11.5px; margin-top: 5px; display: block; line-height: 1.6; }

/* ---------- 剧本输入 ---------- */
.b-script-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-match { font-size: 13px; }
.b-script { width: 100%; margin-top: 12px; line-height: 1.85; font-family: inherit; resize: vertical; font-size: 13.5px; }

/* 剧本统计条 */
.b-script-stats {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12.5px; color: var(--b-dim);
}
.b-script-stats b { color: var(--b-accent); font-family: var(--mono); font-weight: 650; }
.b-script-stats i { width: 1px; height: 12px; background: var(--line-strong); }
.b-kbd-tip { color: var(--b-soft); font-size: 11.5px; }
.b-kbd-tip::first-letter { text-transform: uppercase; }

/* ---------- 识别选择 ---------- */
.b-sel-group { margin-top: 16px; }
.b-sel-group > h4 { margin: 0 0 8px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.b-sel-group > h4 .b-chip { font-weight: 400; }
.b-sel-item {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; margin-top: 8px; background: rgba(255,255,255,0.02);
  transition: border-color .15s ease, background .15s ease;
}
.b-sel-item.checked { border-color: rgba(143,123,255,0.55); background: rgba(77,125,255,0.07); }
.b-sel-item input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
.b-sel-thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.b-sel-info { min-width: 0; flex: 1; }
.b-sel-info b { font-size: 13.5px; display: block; }
.b-sel-info small { color: var(--b-dim); font-size: 11.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 资产图展示 ---------- */
.b-gallery-group { margin-top: 20px; }
.b-gallery-group > h4 { margin: 0 0 10px; font-size: 14.5px; }
.b-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.b-gal-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.02);
  transition: border-color .15s ease, transform .15s ease;
}
.b-gal-card:hover { border-color: rgba(143,123,255,.45); transform: translateY(-2px); }
.b-gal-imgwrap { position: relative; }
.b-gal-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.b-gal-kind {
  position: absolute; top: 8px; left: 8px; font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(7,8,12,.72); color: #c8dbff; border: 1px solid rgba(143,123,255,.4);
  backdrop-filter: blur(4px);
}
.b-gal-card .b-gal-desc { padding: 10px 12px 8px; }
.b-gal-card .b-gal-desc b { font-size: 13.5px; display: block; }
.b-gal-card .b-gal-desc small { color: var(--b-dim); font-size: 11.5px; line-height: 1.65; display: block; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-gal-acts { display: flex; gap: 6px; padding: 0 10px 11px; }
.b-mini-btn {
  appearance: none; font-family: inherit; font-size: 11.5px; cursor: pointer; line-height: 1;
  color: var(--b-dim); background: rgba(255,255,255,.04); border: 1px solid var(--line);
  padding: 6px 9px; border-radius: 8px; transition: all .14s ease; white-space: nowrap;
}
.b-mini-btn:hover { color: var(--b-accent); border-color: rgba(143,123,255,.5); background: rgba(77,125,255,.1); }
.b-mini-btn:disabled { opacity: .5; cursor: wait; }

/* ---------- 分镜看板 ---------- */
.b-board-bar {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,0.02);
}
.b-sel-count { font-size: 12.5px; color: var(--b-dim); }
.b-board-prog { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--b-dim); }
.b-board-prog span.ok { color: #4ade9f; font-weight: 600; }
.b-prog { width: 110px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.b-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38d39f, #43dcff); transition: width .4s ease; }
.flex-sp { flex: 1; }

/* ---------- 按数量批量生成工具条 ---------- */
.b-batchbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px dashed rgba(143,123,255,.34); border-radius: 12px;
  padding: 11px 16px; margin: 0 0 14px;
  background: linear-gradient(180deg, rgba(77,125,255,.07), rgba(77,125,255,.02));
}
.b-bb-label { font-size: 13px; color: #cfd4e6; font-weight: 600; letter-spacing: .02em; }
.b-bb-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.b-bb-chip {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #d3d8e8;
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.b-bb-chip:hover { border-color: rgba(143,123,255,.65); color: #fff; background: rgba(77,125,255,.18); }
.b-bb-chip.all { border-color: rgba(42,212,238,.4); color: #a9f0ff; }
.b-bb-custom { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #b3b9cc; }
.b-bb-custom input {
  width: 62px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: #f0f2f8; font-size: 13px; text-align: center; padding: 0 6px;
}
.b-bb-custom input:focus { outline: none; border-color: #5b9bff; }
.b-bb-tip { font-size: 12px; color: #949bb0; }
.b-board { display: flex; flex-direction: column; gap: 16px; }
.b-shot {
  display: grid; grid-template-columns: 130px 1fr 300px; gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel, rgba(255,255,255,0.03)); padding: 16px;
  transition: border-color .15s ease;
}
.b-shot:hover { border-color: var(--line-strong); }
.b-shot.selected { border-color: rgba(143,123,255,0.6); box-shadow: 0 0 0 3px rgba(77,125,255,.08); }
.b-shot-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.b-shot-title input[type="checkbox"] { width: 15px; height: 15px; }
.b-shot-no {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none;
  font-size: 11.5px; font-weight: 650; color: var(--b-gold); background: rgba(255,212,138,.1);
  border: 1px solid rgba(255,212,138,.3);
}
.b-shot-title h4 { margin: 0; font-size: 14.5px; color: var(--b-gold); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-shot-col h5 { margin: 0 0 8px; font-size: 11.5px; color: var(--b-soft); font-weight: 600; letter-spacing: 0.05em; }
.b-shot-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.b-shot-refs img {
  width: 56px; height: 56px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in;
  transition: transform .14s ease, border-color .14s ease;
}
.b-shot-refs img:hover { transform: scale(1.06); border-color: rgba(143,123,255,.5); }
.b-shot-refs .no-ref { font-size: 11.5px; color: var(--b-soft); }
.b-shot-text {
  font-size: 13px; line-height: 1.95; color: inherit; white-space: pre-wrap; max-height: 340px; overflow: auto;
  border-left: 2px solid rgba(143,123,255,0.4); padding-left: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
}
.b-atchip {
  display: inline-block; padding: 1px 7px; margin: 0 1px; border-radius: 6px; cursor: zoom-in;
  background: rgba(77,125,255,0.18); color: #ddd4ff; font-weight: 600; font-size: 12.5px; border: 0;
  transition: background .14s ease;
}
.b-atchip:hover { background: rgba(77,125,255,0.36); }
/* 编辑态 @ 艾特：候选下拉 + 引用预览条 */
.b-at-pop {
  margin-top: 6px; border: 1px solid rgba(143,123,255,.4); border-radius: 9px;
  background: rgba(20,22,34,.97); padding: 6px; max-height: 170px; overflow: auto;
  box-shadow: 0 12px 28px -14px rgba(0,0,0,.85);
}
.b-at-pop-title { font-size: 11px; color: var(--b-soft); margin: 2px 4px 6px; }
.b-at-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 4px 6px; border: 0; background: transparent; color: inherit;
  border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.b-at-item:hover { background: rgba(77,125,255,.18); }
.b-at-item img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.b-at-item.inuse::after { content: '已引用'; margin-left: auto; font-size: 10.5px; color: #7ee2a8; }
.b-at-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.b-at-strip-label { font-size: 11px; color: var(--b-soft); }
.b-at-miss {
  font-size: 12px; color: #ffb37a; border: 1px dashed rgba(255,179,122,.5);
  border-radius: 6px; padding: 1px 7px;
}
/* 视频参考资产缩略图（分镜卡片 + @ 候选下拉） */
.b-shot-refs video {
  width: 56px; height: 56px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line);
  cursor: zoom-in; background: #000; transition: transform .14s ease, border-color .14s ease;
}
.b-shot-refs video:hover { transform: scale(1.06); border-color: rgba(143,123,255,.5); }
.b-at-item video { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex: none; background: #000; }
/* 安全责任承诺书 */
.safety-text { font-size: 13px; line-height: 1.85; color: inherit; max-height: 46vh; overflow: auto; padding-right: 4px; }
.safety-text p { margin: 0 0 10px; }
.safety-text b { color: #ffd9a8; }
.b-shot-video video { width: 100%; border-radius: 10px; background: #000; display: block; box-shadow: 0 10px 26px -12px rgba(0,0,0,.8); }
.b-shot-video .b-video-empty {
  height: 120px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center;
  color: var(--b-soft); font-size: 12px; text-align: center; line-height: 1.7;
}
.b-shot-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.b-shot-actions .btn { font-size: 12.5px; padding: 8px 13px; }
.b-shot-cost { font-size: 11.5px; color: var(--b-soft); }
.b-shot-status { font-size: 11.5px; }
.b-shot-status.running { color: #43dcff; }
.b-shot-status.done { color: #38d39f; }
.b-shot-status.failed { color: #ff6b81; }

@media (max-width: 980px) {
  .b-shot { grid-template-columns: 1fr; }
  .b-home-cards { grid-template-columns: 1fr; }
  .b-steps-bar { overflow-x: auto; }
  .b-snode-label { display: none; }
  .b-snode.cur .b-snode-label { display: inline; }
}

/* ---------- 资产图重绘弹窗 ---------- */
#bRedrawModal .modal-card { max-width: 560px; width: 100%; }
#bRedrawModal .modal-card h3 { font-size: 16px; }
#bRedrawModal .modal-body { padding: 16px 20px 20px; }
.b-rd-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.b-rd-top img {
  width: 132px; height: 132px; object-fit: cover; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.b-rd-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b-rd-kind {
  align-self: flex-start; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: rgba(77,125,255,.18); color: #d3c9ff;
}
.b-rd-info strong { font-size: 16px; color: #f2f4fa; }
.b-rd-info small { font-size: 12.5px; color: #99a0b5; line-height: 1.6; }
#bRedrawModal .modal-label { font-size: 12.5px; color: #c2c8da; letter-spacing: 0; }
.b-rd-prompt {
  width: 100%; font-size: 13.5px; line-height: 1.8; resize: vertical; min-height: 96px;
  color: #eef0f8;
}
.b-rd-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.b-rd-chip {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #c4cadd;
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.b-rd-chip:hover { border-color: rgba(143,123,255,.6); color: #fff; background: rgba(77,125,255,.16); }
.b-rd-tip { margin: 12px 0 0; font-size: 12.5px; color: #9ba2b8; line-height: 1.7; }
.b-rd-tip b { color: var(--b-gold); }
.b-rd-tip kbd {
  font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #d5daeb;
}
@media (max-width: 560px) {
  .b-rd-top { flex-direction: column; }
  .b-rd-top img { width: 100%; height: 180px; }
}

/* 图片丢失占位 */
.b-img-ph {
  display: grid; place-items: center; text-align: center; padding: 6px;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 9px;
  background: rgba(255,255,255,.03); color: #9aa1b6; font-size: 12px; line-height: 1.5;
}
.b-gal-imgwrap .b-img-ph { width: 100%; aspect-ratio: 1; border-radius: 0; }
.b-shot-refs .b-img-ph { width: 56px; height: 56px; font-size: 10px; padding: 2px; cursor: default; }
.b-rd-top .b-img-ph { width: 132px; height: 132px; flex: none; }

/* ---------- 分镜编排编辑弹窗（整剧本戏份自定义修改） ---------- */
.b-se-card {
  max-width: 940px; overflow: hidden;
  display: flex; flex-direction: column;
}
.b-se-card header { flex: none; }
.b-se-body {
  padding: 16px 20px 18px; display: flex; flex-direction: column;
  min-height: 0; max-height: calc(90vh - 56px);
}
.b-se-note { margin: 0 0 12px; font-size: 13px; line-height: 1.75; color: #a9b0c6; flex: none; }
.b-se-note strong { color: #e6e9f4; font-weight: 600; }
.b-se-note code {
  font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 5px;
  background: rgba(255,255,255,.08); color: #d3c9ff;
}
.b-se-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; flex: none; }
.b-se-count { font-size: 13px; font-weight: 650; color: #d8dcea; margin-right: 2px; }
.b-se-kbd { font-size: 12px; color: #8f96ac; }
.b-se-kbd kbd {
  font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #d5daeb; margin: 0 1px;
}
.b-se-list {
  flex: 1; min-height: 140px; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.b-se-list::-webkit-scrollbar { width: 8px; }
.b-se-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }
.b-se-item {
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  background: rgba(255,255,255,.025); padding: 12px 13px 10px; transition: border-color .15s ease, box-shadow .15s ease;
}
.b-se-item:focus-within { border-color: rgba(143,123,255,.55); box-shadow: 0 0 0 3px rgba(77,125,255,.1); }
.b-se-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.b-se-no {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #14161f;
  background: linear-gradient(135deg, #ffd489, #f0b45a);
}
.b-se-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: #eef0f8; }
.b-se-badge {
  flex: none; font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(56,211,159,.16); color: #4ade9f; white-space: nowrap;
}
.b-se-btns { display: flex; gap: 5px; flex: none; }
.b-se-btns .b-mini-btn.b-se-del:hover { color: #ff8b8b; border-color: rgba(255,110,110,.5); background: rgba(255,90,90,.1); }
.b-se-text {
  width: 100%; font-size: 13px; line-height: 1.85; color: #e8ebf5;
  resize: none; overflow-y: auto; min-height: 150px; max-height: 420px;
}
.b-se-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.b-se-stat { font-size: 12px; color: #8f96ac; flex: none; padding-top: 3px; }
.b-se-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 1; min-width: 0; }
.b-se-chip {
  font-size: 12px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #b9c0d4;
  transition: all .14s ease; white-space: nowrap;
}
.b-se-chip:hover { border-color: rgba(143,123,255,.6); color: #fff; background: rgba(77,125,255,.16); }
.b-se-actions {
  flex: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 700px) {
  .b-se-body { padding: 14px 14px 16px; }
  .b-se-head { flex-wrap: wrap; }
  .b-se-title { flex: 1 1 100%; order: 3; }
  .b-se-actions { flex-wrap: wrap; }
}

/* 分镜编排：AI 导演模型选择 */
.b-sb-model-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.b-sb-model-row .fl { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--b-dim, #8a8f9c); }
.b-sb-model-row select.fi { width: auto; min-width: 240px; }
.b-sb-model-row .b-fold-tip { flex-basis: 100%; margin: 0; }

/* 分镜看板：视频生成模型选择条 */
.b-board-modelbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 10px 14px;
  border: 1px solid var(--line, rgba(255,255,255,0.08)); border-radius: 10px;
}
.b-board-modelbar .fl { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--b-dim, #8a8f9c); }
.b-board-modelbar select.fi { width: auto; min-width: 260px; }
.b-board-modelbar .b-fold-tip { font-size: 11.5px; }

/* 看板卡片：内联编辑与参考资产管理 */
.b-ref-item { position: relative; display: inline-block; }
.b-ref-del {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border: 0; border-radius: 999px; background: rgba(220,60,60,0.92); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.b-ref-del:hover { background: #d33; }
/* 换图按钮：左上角蓝色圆钮，与右上角删除钮错开 */
.b-ref-swap {
  position: absolute; top: -6px; left: -6px; width: 18px; height: 18px;
  border: 0; border-radius: 999px; background: rgba(77,125,255,0.92); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.b-ref-swap:hover { background: #4d7dff; }
.b-ref-addlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 8px; border: 1px dashed var(--line, rgba(255,255,255,0.14)); border-radius: 8px; }
.b-shot-ta { width: 100%; resize: vertical; font-size: 13px; line-height: 1.7; }
.b-shot.editing { border-color: var(--b-accent, #4d7dff); box-shadow: 0 0 0 1px var(--b-accent, #4d7dff) inset; }

/* Step4 底部按钮组：跳过 + 生成并排 */
.b-foot-btns { display: flex; gap: 10px; width: 100%; }
.b-foot-btns .btn-lg { margin-top: 10px; }
.b-foot-btns .btn-primary { flex: 1.4; }
.b-foot-btns .btn-ghost { flex: 1; }

/* Step5 分组标题内联「上传」按钮 */
.b-gallery-group h4 { display: flex; align-items: center; gap: 10px; }
.b-gallery-group h4 .b-up-btn { margin-left: auto; }

/* 未出图条目的补传占位卡 */
.b-gal-pending .b-gal-imgwrap { border: 1px dashed rgba(143,123,255,.35); }
.b-gal-empty {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  color: var(--b-sub, #8b91a6); font-size: 13px; letter-spacing: 2px;
}
