/* ==========================================================================
   长视频分镜工作室 — UI 升级样式表（v2）
   --------------------------------------------------------------------------
   设计原则：
   1. 所有规则均限定在 #longVideoStudioOverlay / #lvVoiceLayer 作用域内，
      不产生任何全局副作用（不改 app.css 既有类与变量）。
   2. 引入局部设计令牌（--lv-*），复用全局调色板变量（--primary/--border/…），
      令牌缺省值与全局一致，保证在任意主题下视觉不塌。
   3. 组件化：把原先散落在 JS 里的内联样式收敛为语义化类名，
      JS 只负责结构（类名），样式集中在此。
   ========================================================================== */

/* ---------- 设计令牌（局部作用域，挂在两个根容器上） ---------- */
#longVideoStudioOverlay,
#lvVoiceLayer {
  /* 品牌色（与全局 --primary 对齐） */
  --lv-accent: var(--primary, #1f6feb);
  --lv-accent-soft: rgba(31, 111, 235, .12);
  --lv-accent-weak: rgba(31, 111, 235, .08);
  --lv-accent-ring: rgba(31, 111, 235, .28);
  --lv-accent-2: #8b5cf6;

  /* 语义色 */
  --lv-success: var(--emerald, #16a34a);
  --lv-success-soft: rgba(22, 163, 74, .12);
  --lv-warn: var(--amber, #b45309);
  --lv-warn-soft: rgba(245, 158, 11, .12);
  --lv-danger: var(--danger, #dc2626);
  --lv-danger-soft: rgba(220, 38, 38, .1);
  --lv-muted: var(--text-muted, #6b7280);

  /* 结构 */
  --lv-radius: 14px;
  --lv-radius-sm: 9px;
  --lv-radius-xs: 7px;
  --lv-gap: 12px;

  /* 阴影 */
  --lv-shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --lv-shadow-2: 0 4px 14px rgba(0, 0, 0, .1);
  --lv-shadow-3: 0 24px 70px rgba(0, 0, 0, .45);

  /* 动效 */
  --lv-ease: cubic-bezier(.4, 0, .2, 1);
  --lv-dur: .18s;

  /* 面板底色（浅色主题兜底） */
  --lv-surface: var(--card-bg, #fff);
  --lv-surface-2: var(--bg-tertiary, #f3f4f6);
  --lv-line: var(--border, #e5e7eb);
  --lv-ink: var(--text, #111827);
  --lv-ink-2: #374151;
}

/* ==========================================================================
   1. 遮罩与外壳
   ========================================================================== */
#longVideoStudioOverlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(10, 12, 20, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lvOverlayIn .2s var(--lv-ease);
}
#lvVoiceLayer {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(10, 12, 20, .6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lvOverlayIn .2s var(--lv-ease);
}
@keyframes lvOverlayIn { from { opacity: 0 } to { opacity: 1 } }
/* A 层：当前岗位状态灯呼吸动画 */
@keyframes lvTeamPulse {
  0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, .45); }
  70%  { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
@keyframes lvPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(.985) }
  to   { opacity: 1; transform: none }
}

/* 主面板 */
.lv-panel {
  position: relative;
  width: min(1160px, 96vw);
  height: min(92vh, 860px);
  background: var(--lv-surface);
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  box-shadow: var(--lv-shadow-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lvPanelIn .22s var(--lv-ease);
}
.lv-panel-sm {
  width: min(720px, 96vw);
  max-height: min(86vh, 760px);
  height: auto;
}

/* ==========================================================================
   2. 头部 / 步骤条 / 主体 / 页脚
   ========================================================================== */
.lv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--lv-line);
  flex-shrink: 0;
  background: var(--lv-surface);
}
.lv-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.lv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lv-brand-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: linear-gradient(135deg, var(--lv-accent), var(--lv-accent-2));
  box-shadow: 0 4px 12px var(--lv-accent-ring);
}
.lv-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--lv-ink);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.lv-proj-title {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--lv-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

/* 阶段徽标 */
.lv-pill {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  background: var(--lv-accent-soft);
  color: var(--lv-accent);
  border: 1px solid transparent;
  transition: background var(--lv-dur), color var(--lv-dur);
}
.lv-pill.is-ok { background: var(--lv-success-soft); color: var(--lv-success); }
.lv-pill.is-warn { background: var(--lv-warn-soft); color: var(--lv-warn); }
.lv-pill.is-danger { background: var(--lv-danger-soft); color: var(--lv-danger); }
.lv-pill.is-muted {
  background: var(--lv-surface-2);
  color: var(--lv-muted);
}

/* 关闭按钮 */
.lv-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-xs);
  background: transparent;
  color: var(--lv-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-close:hover {
  background: var(--lv-danger-soft);
  border-color: var(--lv-danger);
  color: var(--lv-danger);
  transform: rotate(90deg);
}

/* 头部右侧操作区（「历史项目」入口 + 关闭按钮） */
.lv-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* 历史项目入口按钮（位于关闭按钮左侧） */
.lv-btn.lv-head-history {
  white-space: nowrap;
  border-color: var(--lv-line);
  color: var(--lv-ink);
  background: var(--lv-surface-2);
}
.lv-btn.lv-head-history:hover {
  border-color: var(--lv-accent);
  color: var(--lv-accent);
  background: var(--lv-accent-weak);
}
.lv-btn.lv-head-history.is-on {
  border-color: var(--lv-accent);
  color: var(--lv-accent);
  background: var(--lv-accent-soft);
}

/* 历史项目浮层（自创建视图移入头部下方，绝对定位浮层默认隐藏） */
.lv-history-drawer {
  position: absolute;
  top: 68px;
  right: 18px;
  z-index: 30;
  width: min(420px, calc(100vw - 36px));
  max-height: min(420px, 60vh);
  overflow-y: auto;
  background: var(--lv-surface);
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  box-shadow: var(--lv-shadow-3);
  padding: 14px 16px;
}
.lv-history-drawer .lv-sec-title { margin-bottom: 10px; }

/* 步骤条 */
.lv-steps {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--lv-line);
  flex-shrink: 0;
  overflow-x: auto;
  gap: 2px;
  background: var(--lv-surface);
}
.lv-step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.lv-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--lv-muted);
  color: var(--lv-muted);
  background: transparent;
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--lv-muted);
  transition: color var(--lv-dur);
  white-space: nowrap;
}
.lv-step-link {
  width: 26px;
  min-width: 8px;      /* 7 阶段步骤条（比 5 步多两步）时允许收缩，防溢出 */
  flex-shrink: 1;
  height: 1.5px;
  background: var(--lv-line);
  margin: 0 6px;
  transition: background var(--lv-dur);
}
/* 状态：已完成 */
.lv-step.is-done .lv-step-dot {
  border-color: var(--lv-success);
  color: var(--lv-success);
  background: var(--lv-success-soft);
}
.lv-step.is-done .lv-step-label { color: var(--lv-success); }
.lv-step.is-done .lv-step-link { background: var(--lv-success); }
/* 状态：进行中 */
.lv-step.is-active .lv-step-dot {
  border-color: var(--lv-accent);
  color: #fff;
  background: var(--lv-accent);
  box-shadow: 0 0 0 4px var(--lv-accent-weak);
}
.lv-step.is-active .lv-step-label {
  color: var(--lv-accent);
  font-weight: 700;
}
/* §11.5 步骤条可点击回看（已完成/当前步骤）/ 未解锁置灰 */
.lv-step.is-clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 6px;
  transition: background var(--lv-dur);
}
.lv-step.is-clickable:hover { background: var(--lv-accent-weak); }
.lv-step.is-clickable:hover .lv-step-label { color: var(--lv-accent); }
.lv-step.is-locked {
  cursor: not-allowed;
  opacity: .55;
}

/* §11.3 分镜自动保存提示（saved 后 2s 淡出） */
.lv-save-hint {
  font-size: 12px;
  color: var(--lv-muted);
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
  transition: color var(--lv-dur);
}
.lv-save-hint.is-ok { color: var(--lv-success); }
.lv-save-hint.is-error { color: var(--lv-danger); }

/* §11.6 渲染阶段镜头明细（行内重渲染） */
.lv-seg-list {
  margin-top: 18px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}
.lv-seg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--lv-line);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.lv-seg-row:last-child { border-bottom: none; }
.lv-seg-no {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 50%;
  background: var(--lv-line);
  color: var(--lv-text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.lv-seg-desc {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lv-text);
}
.lv-seg-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.lv-seg-badge.is-todo { background: var(--lv-line); color: var(--lv-muted); }
.lv-seg-badge.is-run { background: var(--lv-accent-weak); color: var(--lv-accent); }
.lv-seg-badge.is-ok { background: var(--lv-success-soft); color: var(--lv-success); }
.lv-seg-badge.is-err { background: #fee2e2; color: var(--lv-danger); }
/* §13.3 首帧参考图降级留痕：灰字提示（信息性，刻意不用错误红） */
.lv-seg-note {
  flex-basis: 100%;
  font-size: 11.5px;
  color: var(--lv-muted);
  padding-left: 30px;
}
.lv-seg-note.is-err { color: var(--lv-danger); }

/* 主体 / 页脚 */
/* 左右分区（A 层：AI 数字团队右栏，尺寸对齐电商视觉工作台 #pdChatPanel=400px）：
   .lv-main = flex row；左侧 #lvStudioBody 弹性、右侧 #lvTeamPanel 固定 400px。
   body 仍保留原有 class 与内容渲染（setBody 只写 #lvStudioBody，右栏独立宿主不被重写） */
.lv-main {
  display: flex;
  flex: 1;
  min-height: 0;            /* flex 子项可收缩，否则溢出撑高面板 */
}
.lv-main .lv-body {
  flex: 1;
  min-width: 0;             /* 允许文本/表格在窄侧收缩换行 */
  overflow-y: auto;
  padding: 22px;
  background: var(--lv-surface);
}
.lv-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  background: var(--lv-surface);
}

/* 右栏容器：固定 440px（相对电商视觉工作台 #pdChatPanel=400px 加宽），
   给「工作流播报」留出更多纵向/横向容器空间，承载后期真实工作状态。 */
.lv-team-panel {
  width: 440px;
  flex: 0 0 440px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--lv-line);
  background: var(--lv-surface);
  /* 右栏段落多（花名册/实时作业/播报/询问卡/即时沟通），固定高度下列内容会
     超过容器。原先 overflow:hidden 会把底部「即时沟通」的输入区直接裁出可视区
     （实测 clientHeight=328 vs scrollHeight=678，textarea top 已越过 panel 底边）。
     改为纵向可滚：整栏内容始终可达。 */
  overflow-y: auto;
  overflow-x: hidden;
}

/* ------- A 层：团队花名册 ------- */
.lv-team-roster {
  flex: 0 0 auto;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--lv-line);
  background: var(--lv-surface);
}
.lv-team-roster-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.lv-team-roster-title { font-size: 13px; font-weight: 700; color: var(--lv-ink); }
.lv-team-roster-count { font-size: 11px; color: var(--lv-muted); margin-left: auto; }
.lv-team-roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* 横向单行卡片：头像 + 岗位名 + 状态同行，卡片更矮，为下方播报流腾纵向空间 */
.lv-team-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lv-surface-2);
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  padding: 7px 8px;
  min-width: 0;
}
.lv-team-avatar { font-size: 15px; line-height: 1; flex: 0 0 auto; }
.lv-team-name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--lv-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-team-state { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.lv-team-state-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.lv-team-state-text { font-size: 10px; white-space: nowrap; }

/* 实时作业卡：右栏花名册之下，轮询每轮刷新（哪个 AI 在干第 N/M 个任务） */
/* 实时作业：紧凑态——标题行 + 进度条（去掉大字号文字块，让位给工作流播报） */
.lv-team-live {
  flex: 0 0 auto;
  padding: 9px 12px 10px;
  border-bottom: 1px solid var(--lv-line);
  background: var(--lv-surface);
}
.lv-team-live-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.lv-team-live-title { font-size: 11px; font-weight: 700; color: var(--lv-ink-2); flex: 0 0 auto; }
.lv-team-live-meta {
  font-size: 10px; color: var(--lv-muted); margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-team-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex: 0 0 auto;
  animation: lvTeamPulse 1.6s infinite;
}
.lv-team-live-track {
  height: 5px; border-radius: 999px;
  background: var(--lv-surface-2);
  border: 1px solid var(--lv-line);
  overflow: hidden;
}
.lv-team-live-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6feb, #22c55e);
  transition: width .6s var(--lv-ease);
}

/* 询问卡：需要用户确认/选择/输入时，右栏给出「标题 + 内容 + 动作」 */
.lv-team-ask {
  flex: 0 0 auto;
  padding: 9px 12px 11px;
  border-top: 1px solid var(--lv-line);
  background: var(--lv-surface);
}
.lv-team-ask-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lv-team-ask-title {
  font-size: 11px; font-weight: 700; color: var(--lv-warn);
  display: inline-flex; align-items: center; gap: 5px;
}
.lv-team-ask-title::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lv-warn);
  animation: lvTeamPulse 1.6s infinite;
}
.lv-team-ask-card {
  border: 1px solid color-mix(in srgb, var(--lv-warn) 40%, transparent);
  border-radius: 9px;
  background: var(--lv-surface-2);
  padding: 9px 11px;
}
/* 当前岗位行（原「当前环节」段并入此处，信息去重） */
.lv-team-ask-now {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 7px; margin-bottom: 7px;
  border-bottom: 1px dashed var(--lv-line);
}
.lv-team-ask-now-avatar { font-size: 15px; line-height: 1; flex: 0 0 auto; }
.lv-team-ask-now-role { font-size: 12px; font-weight: 700; color: var(--lv-ink); }
.lv-team-ask-now-state {
  margin-left: auto; font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.lv-team-ask-now-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: 0 0 auto;
}
.lv-team-ask-duty { font-size: 10.5px; color: var(--lv-muted); margin-top: 3px; line-height: 1.6; }
.lv-team-ask-name { font-size: 12px; font-weight: 700; color: var(--lv-ink); }
.lv-team-ask-body { font-size: 11px; color: var(--lv-muted); line-height: 1.7; margin-top: 4px; }
.lv-team-ask-actions { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }

/* ------- 工作流播报流（带岗位署名气泡）------- */
.lv-team-chat-head {
  flex: 0 0 auto;
  padding: 9px 12px 7px;
  border-bottom: 1px solid var(--lv-line);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lv-surface);
}
.lv-team-chat-title { font-size: 12px; font-weight: 700; color: var(--lv-ink); }
.lv-team-chat-sub { font-size: 11px; color: var(--lv-muted); margin-left: auto; }
.lv-team-chat {
  /* 弹性占满右栏剩余空间（flex:1 1 auto）：让「工作流播报」成为右栏主体、纵向更高。
     同时保证内容不足时也撑满，配合 #lvChatPanel 的 sticky bottom:0 使输入框始终贴底。
     内容多时内部滚动，min-height 兜底防止被其它段落挤成细缝（实测曾被压到 24px）。 */
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 160px;
  max-height: none;
  padding: 12px 14px;
  background: var(--lv-surface);
}
.lv-team-bubble { display: flex; justify-content: flex-start; gap: 6px; margin-bottom: 10px; }
.lv-team-bubble-avatar {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lv-accent-weak);
  border: 1px solid var(--lv-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
}
.lv-team-bubble-main { max-width: 84%; min-width: 0; }
.lv-team-bubble-name { font-size: 10px; margin-bottom: 2px; color: var(--lv-ink-2); font-weight: 700; }
.lv-team-bubble-duty { font-weight: 400; color: var(--lv-muted); }
.lv-team-bubble-body {
  background: var(--lv-surface-2);
  border: 1px solid var(--lv-line);
  border-radius: 2px 10px 10px 10px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--lv-ink);
  word-break: break-word;
}
/* 指派态气泡：黄框醒目提示「这是派给你的活」，与普通进度播报区分 */
.lv-team-bubble.is-assign .lv-team-bubble-avatar {
  background: color-mix(in srgb, var(--lv-warn) 18%, transparent);
  border-color: color-mix(in srgb, var(--lv-warn) 55%, transparent);
}
.lv-team-bubble.is-assign .lv-team-bubble-body {
  border-color: color-mix(in srgb, var(--lv-warn) 55%, transparent);
  background: color-mix(in srgb, var(--lv-warn) 8%, var(--lv-surface-2));
}
.lv-team-bubble.is-assign .lv-team-bubble-name { color: var(--lv-warn); }
/* [批 3] 真实事件气泡：AI 执行（蓝框）与人工操作（默认框）必须一眼可分，
   否则「AI 已替你推进」与「你亲手推进」在观感上没有区别，直播仍是假象。 */
.lv-team-bubble.is-agent .lv-team-bubble-avatar {
  background: color-mix(in srgb, var(--lv-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--lv-accent) 55%, transparent);
}
.lv-team-bubble.is-agent .lv-team-bubble-body {
  border-color: color-mix(in srgb, var(--lv-accent) 38%, transparent);
  background: color-mix(in srgb, var(--lv-accent) 6%, var(--lv-surface-2));
}
/* 失败必须刺眼：失败被静默或染成中性色，就是「看着一切顺利」的谎言 */
.lv-team-bubble.is-fail .lv-team-bubble-avatar {
  background: var(--lv-danger-soft);
  border-color: color-mix(in srgb, var(--lv-danger) 55%, transparent);
}
.lv-team-bubble.is-fail .lv-team-bubble-body {
  border-color: color-mix(in srgb, var(--lv-danger) 55%, transparent);
  background: color-mix(in srgb, var(--lv-danger) 7%, var(--lv-surface-2));
}
.lv-team-bubble.is-fail .lv-team-bubble-name { color: var(--lv-danger); }
.lv-team-ev-err {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--lv-danger);
  word-break: break-word;
}
.lv-team-chat-empty { font-size: 12px; color: var(--lv-muted); line-height: 1.9; padding: 10px 2px; }

/* ------- 批 4：指令下达段（幕僚长拆解回显）------- */
.lv-chief-panel {
  border: 1px solid var(--lv-line);
  border-radius: 10px;
  background: var(--lv-surface);
  padding: 12px 14px;
}
.lv-chief-loading { font-size: 12px; color: var(--lv-muted); line-height: 1.8; }
.lv-chief-item {
  display: flex; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--lv-line);
}
.lv-chief-item:last-of-type { border-bottom: none; }
.lv-chief-seq {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lv-accent-weak);
  color: var(--lv-accent);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lv-chief-main { min-width: 0; flex: 1 1 auto; }
.lv-chief-owner { font-size: 12px; font-weight: 700; color: var(--lv-ink); margin-bottom: 3px; }
.lv-chief-dep { margin-left: 8px; font-size: 10px; font-weight: 400; color: var(--lv-warn); }
.lv-chief-ins {
  font-size: 12px; line-height: 1.7;
  color: var(--lv-ink-2);
  word-break: break-word;
}
/* 步骤用等宽字体：tool_key 是英文标识，等宽更易核对「这一步到底调什么」 */
.lv-chief-steps {
  margin-top: 4px;
  font-size: 11px; line-height: 1.6;
  color: var(--lv-accent);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
}
.lv-chief-steps-empty { color: var(--lv-muted); font-family: inherit; }
/* 越权/空转警示必须刺眼：绿色一片等于告诉老板「都挺好」 */
.lv-chief-warn {
  margin-top: 8px; padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px; line-height: 1.7;
  color: var(--lv-danger);
  background: color-mix(in srgb, var(--lv-danger) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--lv-danger) 40%, transparent);
}
.lv-chief-note {
  margin-top: 8px; padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px; line-height: 1.7;
  color: var(--lv-warn);
  background: color-mix(in srgb, var(--lv-warn) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--lv-warn) 38%, transparent);
}
.lv-chief-tip {
  margin-top: 10px; padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px; line-height: 1.7;
  color: var(--lv-muted);
  background: var(--lv-surface-2);
}
.lv-chief-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ------- 批 5：任务摘要条（嵌在「工作流播报」里，不是独立面板）-------
   2026-11-20 老板反馈：「既有工作流播报又有 AI 数字团队 · 任务直播，显得比较乱」。
   原来这里是独立标题 + 每任务一张卡（task_id、每步一行），与播报气泡在讲同一件事。
   现收敛为**一行摘要**：明细都由播报气泡承担，这里只说数量与终态分布。 */
/* 空态完全不占位：没有派活时右栏不能被一个空盒子撑高 */
.lv-task-stream { margin-top: 8px; }
.lv-task-stream:empty { display: none; }

.lv-task-strip {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px; line-height: 1.6;
  color: var(--lv-muted);
  background: var(--lv-surface-2);
  border: 1px solid var(--lv-line);
}
/* 有失败 → 整条染色，一眼看出「这批活没干完」 */
.lv-task-strip.is-fail {
  color: var(--lv-danger);
  background: color-mix(in srgb, var(--lv-danger) 7%, transparent);
  border-color: color-mix(in srgb, var(--lv-danger) 30%, transparent);
}
.lv-task-strip-txt { flex: 1 1 auto; word-break: break-word; }
.lv-task-strip-txt .lv-task-strip-n { font-weight: 700; }
.lv-task-strip-ops { flex: 0 0 auto; display: flex; gap: 6px; }
.lv-task-strip-ops .lv-btn { font-family: inherit; }

/* ------- 路径 1：工序链（拆解预览里「总导演 → 分镜导演 → 特效师」）------- */
.lv-chief-chain {
  margin-top: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--lv-accent, #2f6fed);
}

/* 原「当前环节卡」样式（.lv-team-status*）已随 DOM 合入 #lvTeamAsk 移除 */

/* ------- §11.4 批次 C：即时沟通框（右栏第 ④ 段，独立宿主）------- */
/* 宿主钉在右栏底部：右栏内容（花名册/实时作业/播报/询问卡）可滚动，但输入区
   始终可见，不需要用户往下滚才能发消息。 */
#lvChatPanel {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--lv-surface);
}
.lv-team-chatbox {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  /* 输入区精简后（无标题头/无提示行/无空态），列表(上限 120) + compose(≈70)
     合计 ≈190px；上限收到 200 让出纵向空间给播报区。 */
  max-height: 200px;
  border-top: 1px solid var(--lv-line);
  background: var(--lv-surface);
}
.lv-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 12px 8px;
  min-height: 0;
  max-height: 120px;
}
/* 无消息时列表不占位（空态文案已移除，输入框 placeholder 承担引导） */
.lv-chat-list:empty { display: none; }
.lv-chat-row { display: flex; gap: 6px; margin-bottom: 9px; }
.lv-chat-row.is-user { flex-direction: row-reverse; }
.lv-chat-avatar {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lv-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.lv-chat-main { max-width: 84%; min-width: 0; }
.lv-chat-row.is-user .lv-chat-main { display: flex; flex-direction: column; align-items: flex-end; }
.lv-chat-meta { font-size: 9px; color: var(--lv-muted); margin-bottom: 2px; }
.lv-chat-body {
  background: var(--lv-surface-2);
  border: 1px solid var(--lv-line);
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--lv-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.lv-chat-row.is-user .lv-chat-body { background: #1f6feb22; border-color: #1f6feb44; }
.lv-chat-tag {
  font-size: 9px;
  color: #b45309;
  background: #f59e0b22;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 4px;
}
.lv-chat-tag-done { color: #15803d; background: #22c55e22; }
.lv-chat-tag-err { color: #b91c1c; background: #ef444422; }
.lv-chat-more {
  font-size: 10px;
  color: var(--lv-muted);
  text-align: center;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
}
.lv-chat-compose {
  border-top: 1px solid var(--lv-line);
  padding: 7px 10px 9px;
}
/* 输入框容器：样图按钮（左上）与发送按钮（右下）浮动在 textarea 内，
   不占额外行，最大化节约纵向空间。 */
.lv-chat-input-wrap { position: relative; }
.lv-chat-attach {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #22c55e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.lv-chat-attach:hover { color: #16a34a; }
.lv-chat-input {
  display: block;
  width: 100%;
  min-height: 58px;
  max-height: 132px;
  font-size: 11.5px;
  font-family: inherit;
  line-height: 1.6;
  border: 1px solid var(--lv-line);
  border-radius: 7px;
  background: var(--lv-surface-2);
  color: var(--lv-ink);
  /* 上 右(发送) 下(发送) 左(样图图标)：为两个浮动按钮留位 */
  padding: 7px 62px 28px 30px;
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
}
.lv-chat-input:focus { outline: none; border-color: var(--lv-accent); }
.lv-chat-input::placeholder { color: var(--lv-muted); opacity: .75; }
.lv-chat-send {
  position: absolute;
  right: 6px;
  bottom: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: #1f6feb;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
}
.lv-chat-send:disabled { opacity: .6; cursor: default; }
.lv-chat-apply-bar { padding: 2px 12px 8px; }
.lv-chat-apply {
  width: 100%;
  padding: 7px 0;
  border-radius: 8px;
  border: 1px solid #1f6feb;
  background: #1f6feb14;
  color: #1f6feb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.lv-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--lv-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
  background: var(--lv-surface);
  min-height: 62px;
}
.lv-foot-hint {
  font-size: 12px;
  color: var(--lv-muted);
  line-height: 1.5;
}
.lv-foot-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. 通用原子：按钮 / 输入 / 提示 / 卡片
   ========================================================================== */
.lv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--lv-radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-btn:disabled,
.lv-btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  /* 禁用态不再有 hover 位移 */
}
/* busy 进行中：按钮前置 spinner，点击后立即有「正在处理」反馈（避免空点感） */
.lv-btn.is-busy {
  position: relative;
  pointer-events: none;
}
.lv-btn.is-busy::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: lvSpin .7s linear infinite;
}
@keyframes lvSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.lv-btn-primary {
  background: var(--lv-accent);
  color: #fff;
  box-shadow: 0 2px 10px var(--lv-accent-ring);
}
.lv-btn-primary:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--lv-accent-ring);
}
.lv-btn-primary:not(:disabled):active { transform: translateY(0); }

.lv-btn-ghost {
  background: transparent;
  border-color: var(--lv-accent);
  color: var(--lv-accent);
}
.lv-btn-ghost:not(:disabled):hover { background: var(--lv-accent-weak); }

.lv-btn-subtle {
  background: transparent;
  border-color: var(--lv-line);
  color: var(--lv-ink);
}
.lv-btn-subtle:not(:disabled):hover {
  background: var(--lv-surface-2);
  border-color: var(--lv-accent);
  color: var(--lv-accent);
}

.lv-btn-muted {
  background: transparent;
  border-color: var(--lv-line);
  color: var(--lv-muted);
}
.lv-btn-muted:not(:disabled):hover { background: var(--lv-surface-2); color: var(--lv-ink); }

.lv-btn-danger {
  background: transparent;
  border-color: #fca5a5;
  color: var(--lv-danger);
}
.lv-btn-danger:not(:disabled):hover { background: var(--lv-danger-soft); }

.lv-btn-warn {
  background: transparent;
  border-color: var(--lv-warn);
  color: var(--lv-warn);
}
.lv-btn-warn:not(:disabled):hover { background: var(--lv-warn-soft); }

/* 尺寸修饰 */
.lv-btn-sm { padding: 7px 13px; font-size: 12px; }
.lv-btn-lg { padding: 11px 24px; font-size: 14px; }
/* 迷你按钮：参考图「上传 / 清除」用，此前类名未定义导致裸文字。
   边框用 currentColor，自动跟随配色类（danger/accent）的文字色，深浅底都清晰。 */
.lv-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: var(--lv-radius-xs);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--lv-dur) var(--lv-ease);
  background: transparent;
}

/* 图标方钮（上移/下移/删除） */
.lv-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--lv-radius-xs);
  border: 1px solid var(--lv-line);
  background: transparent;
  color: var(--lv-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-icon-btn:hover {
  border-color: var(--lv-accent);
  color: var(--lv-accent);
  background: var(--lv-accent-weak);
}
.lv-icon-btn.is-danger:hover {
  border-color: #fca5a5;
  color: var(--lv-danger);
  background: var(--lv-danger-soft);
}

/* 输入控件 */
.lv-input,
.lv-textarea,
.lv-select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-sm);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--lv-surface);
  color: var(--lv-ink);
  transition: border-color var(--lv-dur), box-shadow var(--lv-dur);
}
.lv-input::placeholder,
.lv-textarea::placeholder { color: var(--lv-muted); opacity: .8; }
.lv-input:focus,
.lv-textarea:focus,
.lv-select:focus {
  outline: none;
  border-color: var(--lv-accent);
  box-shadow: 0 0 0 3px var(--lv-accent-weak);
}
.lv-textarea { resize: vertical; }
.lv-select { cursor: pointer; }

.lv-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lv-ink);
  margin-bottom: 7px;
}
.lv-label-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--lv-muted);
  margin-bottom: 5px;
}

/* 分段选择（时长 / 画幅） */
.lv-seg-group { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-seg {
  padding: 8px 15px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-sm);
  background: transparent;
  color: var(--lv-ink);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-seg:hover { border-color: var(--lv-accent); color: var(--lv-accent); }
.lv-seg.is-on {
  border-color: var(--lv-accent);
  background: var(--lv-accent-soft);
  color: var(--lv-accent);
  font-weight: 600;
}

/* 行内多列栅格 */
.lv-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.lv-col { flex: 1; min-width: 150px; }
.lv-col-sm { flex: 0 1 110px; min-width: 100px; }

/* 居中的窄内容列（创建页/成片页等单列表单） */
.lv-narrow { max-width: 640px; margin: 0 auto; }

/* 卡片 */
.lv-card {
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  padding: 16px;
  background: var(--lv-surface);
  transition: border-color var(--lv-dur), box-shadow var(--lv-dur);
}
.lv-card:hover {
  border-color: var(--lv-accent);
  box-shadow: var(--lv-shadow-2);
}
/* 带色条的分区卡 */
.lv-card-accent {
  position: relative;
  overflow: hidden;
}
.lv-card-accent::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--lv-accent);
  opacity: .85;
}
.lv-card-ok::before { background: var(--lv-success); }

/* 分区标题 */
.lv-sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lv-ink);
  margin-bottom: 12px;
}
.lv-sec-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--lv-accent);
  flex-shrink: 0;
}
.lv-sec-title .lv-sec-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--lv-muted);
  margin-left: auto;
}

/* 提示条 */
.lv-tip {
  font-size: 11px;
  line-height: 1.55;
  margin-top: 6px;
  color: var(--lv-muted);
}
.lv-tip-warn { color: var(--lv-warn); }
.lv-tip-danger { color: var(--lv-danger); }
/* v217：产品样图上传区（创建前） */
.lv-sample-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-sample-picked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-sample-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--lv-line); background: var(--lv-line);
}
/* 2026-10-10：多张样图网格 */
.lv-sample-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.lv-sample-thumb-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.lv-sample-thumb-item .lv-btn-sm { padding: 2px 8px; font-size: 12px; }
.lv-sample-limit { font-size: 12px; color: var(--lv-muted, #888); }}
.lv-sample-name { font-size: 12px; color: var(--lv-muted); flex: 1; min-width: 160px; }

/* 成片资产登记：未登记时必须显式告警（此前是无条件宣称"已保存"，属假文案） */
.lv-foot-hint-warn { color: var(--lv-warn); }

/* 空态 / 居中提示 */
.lv-empty {
  font-size: 12px;
  color: var(--lv-muted);
  padding: 16px;
  border: 1px dashed var(--lv-line);
  border-radius: var(--lv-radius);
  text-align: center;
  line-height: 1.6;
}
.lv-center {
  text-align: center;
  padding: 60px 20px;
  color: var(--lv-muted);
}
.lv-center-ico { font-size: 34px; margin-bottom: 14px; line-height: 1; }
.lv-center-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lv-ink);
  margin-bottom: 8px;
}
.lv-center-desc { font-size: 12px; line-height: 1.6; }

/* 状态徽标 */
.lv-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--lv-accent-soft);
  color: var(--lv-accent);
}
.lv-badge.is-ok { background: var(--lv-success-soft); color: var(--lv-success); }
.lv-badge.is-warn { background: var(--lv-warn-soft); color: var(--lv-warn); }
.lv-badge.is-danger { background: var(--lv-danger-soft); color: var(--lv-danger); }
.lv-badge.is-muted { background: var(--lv-surface-2); color: var(--lv-muted); }

/* 文件选择 */
.lv-file-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lv-file { font-size: 12px; font-family: inherit; color: var(--lv-ink); }
.lv-hidden-file { display: none; }

/* 成本条 */
.lv-cost {
  font-size: 12px;
  color: var(--lv-muted);
  line-height: 1.6;
}
.lv-cost b { color: var(--lv-accent); }
/* 成本未知态（真实缺口修复）：模型无 per_unit 定价时**不显示 ¥0.00**，
   改用灰字说明「费用以账单为准」，避免把「未接扣费」误导成「免费」。 */
.lv-cost-unknown { color: var(--lv-muted); }
/* 扣费失败告警态（资损级缺口修复）：渲染成功但费用结算失败时必须醒目。
   绝不能静默 —— 用户以为已正常扣费，实为漏收。沿用告警色而非 muted 灰。 */
.lv-cost-failed { color: #dc2626; font-weight: 600; }

/* 进度条 */
.lv-progress {
  height: 8px;
  background: var(--lv-line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.lv-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lv-accent), var(--lv-accent-2));
  transition: width .5s var(--lv-ease);
}
/* 进行中进度条：斜条纹流光动画，让「后台在跑」在视觉上可见 */
.lv-progress-bar-anim {
  background-image: linear-gradient(90deg, var(--lv-accent), var(--lv-accent-2));
  background-size: 200% 100%;
  position: relative;
}
.lv-progress-bar-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .16) 0 8px,
    transparent 8px 16px
  );
  background-size: 23px 100%;
  animation: lvProgressStripes .8s linear infinite;
}
@keyframes lvProgressStripes {
  from { background-position: 0 0; }
  to { background-position: 23px 0; }
}
/* 实时任务行：进度条下方「正在生成/渲染第 N/M 个」动态文案 */
.lv-progress-task {
  margin: 2px 0 8px;
  font-size: 12px;
  color: var(--lv-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lv-progress-task::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lv-accent);
  animation: lvTeamPulse 1.4s infinite;
  flex: 0 0 auto;
}
.lv-progress-task b { color: var(--lv-ink); font-weight: 700; }

/* ==========================================================================
   4. 业务组件
   ========================================================================== */
/* --- 分镜镜头卡 --- */
.lv-shot {
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  padding: 15px;
  background: var(--lv-surface);
  transition: border-color var(--lv-dur), box-shadow var(--lv-dur);
}
.lv-shot:hover {
  border-color: var(--lv-accent);
  box-shadow: var(--lv-shadow-1);
}
.lv-shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lv-shot-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lv-ink);
}
.lv-shot-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--lv-radius-xs);
  background: var(--lv-accent-soft);
  color: var(--lv-accent);
  font-size: 11px;
  font-weight: 800;
}
.lv-shot-ops { display: flex; gap: 6px; }
.lv-shot-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* --- 分镜编辑页容器 --- */
.lv-wrap { max-width: 880px; margin: 0 auto; }
.lv-sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lv-sb-stat {
  font-size: 14px;
  font-weight: 700;
  color: var(--lv-ink);
}
.lv-sb-stat b { color: var(--lv-accent); }
.lv-shots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- 制作选项面板 --- */
.lv-options {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  background: var(--lv-surface-2);
}
.lv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--lv-ink);
}
.lv-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--lv-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.lv-check-body { margin: 0 0 12px 24px; }
.lv-voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.lv-opt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.lv-opt-name { color: var(--lv-muted); flex-shrink: 0; }
.lv-grow { flex: 1; min-width: 160px; }

/* 内联（非全宽）的下拉/输入 */
.lv-select-inline {
  width: auto;
  min-width: 130px;
  padding: 6px 10px;
  font-size: 12px;
}
.lv-range { width: 90px; accent-color: var(--lv-accent); cursor: pointer; }
.lv-range-sm { width: 80px; }
.lv-inline-tip { margin-top: 0; }

/* --- 首帧确认卡 --- */
.lv-frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.lv-frame {
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  padding: 11px;
  background: var(--lv-surface);
  transition: border-color var(--lv-dur), box-shadow var(--lv-dur);
}
.lv-frame:hover { box-shadow: var(--lv-shadow-2); }
.lv-frame.is-ok { border-color: #86efac; }
.lv-frame-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--lv-radius-sm);
  display: block;
  background: var(--lv-surface-2);
}
.lv-frame-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lv-surface-2);
  border-radius: var(--lv-radius-sm);
  color: var(--lv-muted);
  font-size: 12px;
}
.lv-frame-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-ink);
  margin: 9px 0 3px;
}
.lv-frame-desc {
  font-size: 11px;
  color: var(--lv-muted);
  line-height: 1.45;
  margin-bottom: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv-frame-ok {
  font-size: 11px;
  color: var(--lv-success);
  font-weight: 700;
}
.lv-frame-ops { display: flex; gap: 6px; margin-bottom: 6px; }
.lv-frame-ops .lv-btn { flex: 1; padding: 7px 10px; font-size: 12px; }

/* 首帧「按意见重生」：已填写的修改意见（常显，让用户知道这张图按什么要求画的） */
.lv-frame-note {
  font-size: 11px;
  line-height: 1.5;
  color: #7c5a12;
  background: #fef9c3;
  border-left: 3px solid #eab308;
  border-radius: 3px;
  padding: 5px 7px;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 首帧生成失败的真实原因（此前一律显示「首帧生成失败」，用户无从判断） */
.lv-frame-err {
  font-size: 11px;
  line-height: 1.5;
  color: #b91c1c;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  border-radius: 3px;
  padding: 5px 7px;
  margin: 6px 0;
  word-break: break-all;
}

/* 生图容器内的圆形进度条（替代纯文字「正在生图中」，视觉更清晰） */
.lv-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: lvSpin 0.8s linear infinite;
  box-sizing: border-box;
}
@keyframes lvSpin { to { transform: rotate(360deg); } }

/* 重新生成中的遮罩提示（叠在旧图上，明确「正在换新图」而非无响应） */
.lv-frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}
.lv-frame-ph.is-loading { flex-direction: column; gap: 8px; }
/* 承载 .lv-frame-loading 需要定位上下文（.lv-frame 本身不是 relative） */
.lv-frame { position: relative; }

/* --- 首帧确认页：参考图面板（默认折叠、总是可见） --- */
.lv-ref-panel {
  margin: 0 0 16px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  background: var(--lv-surface-2, #f8fafc);
  overflow: hidden;
}
.lv-ref-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.lv-ref-panel-head:hover { background: var(--lv-accent-weak, #eff6ff); }
.lv-ref-panel-title { font-size: 13px; font-weight: 600; color: var(--lv-ink); }
.lv-ref-panel-sum { flex: 1; font-size: 11px; color: var(--lv-muted); }
.lv-ref-panel-arrow { font-size: 11px; color: var(--lv-accent); white-space: nowrap; }
.lv-ref-panel-body {
  padding: 4px 14px 14px;
  border-top: 1px dashed var(--lv-line);
}

/* --- 修改意见输入弹层 --- */
.lv-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100030;
}
.lv-modal {
  background: #151D2E;
  border: 1px solid #518D71;
  border-radius: 10px;
  padding: 18px 20px;
  width: 92%;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.42);
}
.lv-modal-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #e8eef7; }
.lv-modal-tip {
  font-size: 12px;
  line-height: 1.65;
  color: #a9b6c8;
  margin: 0 0 10px;
}
.lv-modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2c3a4f;
  background: #0f1626;
  color: #e8eef7;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
}
.lv-modal-input::placeholder { color: #5c6b82; }
.lv-modal-input:focus { outline: none; border-color: #518D71; }

/* 改图重画弹窗内的镜头级样图上传区（深色弹窗配色适配） */
.lv-regen-ref {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px dashed #3a4a63;
  border-radius: 8px;
  background: rgba(15, 22, 38, 0.5);
}
.lv-regen-ref-label {
  font-size: 12px;
  color: #c8d2e0;
  line-height: 1.5;
}
.lv-regen-ref .lv-ref-name { color: #e8eef7; }
.lv-regen-ref .lv-ref-hint { color: #a9b6c8; }
.lv-regen-ref .lv-ref-thumb { border-color: #3a4a63; }
.lv-upload-btn {
  align-self: flex-start;
  color: var(--lv-accent);
  background: color-mix(in srgb, var(--lv-accent) 14%, transparent);
  /* 覆盖 .lv-btn-mini 的实心 currentColor 硬描边，改半透明柔边，深色弹窗里不发死 */
  border-color: color-mix(in srgb, var(--lv-accent) 30%, transparent);
}
.lv-upload-btn:hover {
  background: color-mix(in srgb, var(--lv-accent) 24%, transparent);
  border-color: color-mix(in srgb, var(--lv-accent) 50%, transparent);
}
.lv-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
/* 改图重画弹窗的「取消」：去掉生硬细描边（--lv-line 在 #151D2E 上像脏框），
   改中性柔和填充低调退后，把焦点让给 accent 实底的「开始重画」。 */
.lv-modal-actions .lv-btn-subtle {
  background: rgba(255, 255, 255, .07);
  border-color: transparent;
  color: #c8d2e0;
}
.lv-modal-actions .lv-btn-subtle:not(:disabled):hover {
  background: rgba(255, 255, 255, .13);
  color: #e8eef7;
}

/* 首帧大图预览 */
.lv-frame-preview {
  position: fixed;
  inset: 0;
  z-index: 100030;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}
.lv-frame-preview img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

/* --- 成片页 --- */
.lv-done {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lv-done-ico { font-size: 34px; margin-bottom: 10px; line-height: 1; }
.lv-done-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--lv-ink);
  margin-bottom: 16px;
}
.lv-done-video {
  width: 100%;
  max-height: 420px;
  border-radius: var(--lv-radius);
  background: #000;
  box-shadow: var(--lv-shadow-2);
}
.lv-done-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* §14.2 拼接降级警告条（警告态，非错误态，不覆盖绿色完成态） */
.lv-concat-warn {
  max-width: 720px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 1px solid var(--lv-warn);
  border-left-width: 4px;
  border-radius: var(--lv-radius-sm);
  background: var(--lv-warn-soft);
  text-align: left;
}
.lv-concat-warn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--lv-warn);
  margin-bottom: 4px;
}
.lv-concat-warn-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--lv-ink);
}

/* §14.1/14.2 降级时的分段下载区 */
.lv-seg-downloads {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--lv-line);
  text-align: left;
}
.lv-seg-downloads-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--lv-muted);
  margin-bottom: 8px;
}
.lv-seg-downloads-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- 3a-MVP 分层参考资产（L1 风格图 / L2 角色设定图） --- */
.lv-ref-block {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-sm);
  background: var(--lv-surface-2);
  text-align: left;
}
.lv-ref-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lv-ink);
  margin-bottom: 10px;
}
.lv-ref-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lv-ref-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--lv-radius-sm);
  border: 1px solid var(--lv-line);
  flex-shrink: 0;
}
.lv-ref-meta { flex: 1; min-width: 0; }
.lv-ref-name {
  font-size: 13px;
  color: var(--lv-ink);
  font-weight: 600;
}
.lv-ref-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--lv-muted);
  margin-top: 3px;
}
.lv-ref-empty { margin-bottom: 10px; }

/* Q13 已于 2026-10-14 推翻（产品决策）：移除逐次版权授权勾选/闸门，
   授权条款并入平台《服务条款》一次性约定，不再占用上传 UI。 */
.lv-char-row {
  padding: 10px 0;
  border-top: 1px dashed var(--lv-line);
}
.lv-char-row:first-of-type { border-top: none; padding-top: 0; }
.lv-char-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lv-ink);
  margin-bottom: 8px;
}
.lv-char-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lv-char-cell {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--lv-line);
  border-radius: var(--lv-radius-sm);
  background: var(--lv-surface-2);
  cursor: pointer;
  overflow: hidden;
}
.lv-char-cell.has-img { border-style: solid; }
.lv-char-cell:hover { border-color: var(--lv-accent); }
.lv-char-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lv-char-ph {
  font-size: 20px;
  color: var(--lv-muted);
}
.lv-char-label {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 2px 0;
  font-size: 10px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
.lv-char-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.lv-char-del:hover { background: var(--lv-danger); }

/* --- 历史项目 --- */
.lv-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lv-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-sm);
  transition: border-color var(--lv-dur), background var(--lv-dur);
}
.lv-history-item:hover {
  border-color: var(--lv-accent);
  background: var(--lv-accent-weak);
}
.lv-history-main { flex: 1; min-width: 0; }
.lv-history-name {
  font-size: 13px;
  color: var(--lv-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lv-history-meta {
  font-size: 11px;
  color: var(--lv-muted);
  margin-top: 3px;
}
.lv-history-ops { display: flex; gap: 8px; flex-shrink: 0; }
.lv-history-more { margin-top: 12px; text-align: center; }
.lv-history-end {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--lv-muted);
}

/* --- 声音复刻弹层 --- */
.lv-tabs {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--lv-line);
}
.lv-tab {
  padding: 9px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--lv-muted);
  transition: all var(--lv-dur) var(--lv-ease);
}
.lv-tab:hover { color: var(--lv-accent); }
.lv-tab.is-on {
  border-bottom-color: var(--lv-accent);
  color: var(--lv-accent);
}
.lv-pane { flex: 1; overflow-y: auto; padding: 18px 20px; }

/* 音色列表项 */
.lv-voice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius-sm);
  margin-bottom: 10px;
  transition: border-color var(--lv-dur), box-shadow var(--lv-dur);
}
.lv-voice-item:hover {
  border-color: var(--lv-accent);
  box-shadow: var(--lv-shadow-1);
}
.lv-voice-main { flex: 1; min-width: 0; }
.lv-voice-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lv-voice-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--lv-ink);
}
.lv-voice-meta {
  font-size: 11px;
  color: var(--lv-muted);
  margin-top: 4px;
}
.lv-voice-err {
  font-size: 11px;
  color: var(--lv-danger);
  margin-top: 4px;
}
.lv-voice-ops { display: flex; gap: 8px; flex-shrink: 0; }

/* 表单字段间距 */
.lv-field { margin-bottom: 14px; }
.lv-notice {
  font-size: 13px;
  color: var(--lv-warn);
  padding: 16px;
  background: var(--lv-warn-soft);
  border: 1px solid var(--lv-warn);
  border-radius: var(--lv-radius-sm);
  line-height: 1.6;
}
.lv-form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ==========================================================================
   5. 响应式
   ========================================================================== */
@media (max-width: 720px) {
  #longVideoStudioOverlay,
  #lvVoiceLayer { padding: 0; }
  .lv-panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .lv-head { padding: 13px 15px; }
  .lv-title { font-size: 15px; }
  .lv-brand-ico { width: 30px; height: 30px; flex-basis: 30px; font-size: 15px; }
  .lv-steps { padding: 11px 15px; }
  .lv-step-label { display: none; }
  .lv-step-link { width: 18px; margin: 0 3px; }
  .lv-body { padding: 16px; }
  .lv-foot { padding: 12px 15px; }
  .lv-foot-hint { display: none; }
  .lv-proj-title { max-width: 130px; }
  .lv-frame-grid { grid-template-columns: 1fr 1fr; }
  .lv-row { gap: 12px; }
  .lv-col { min-width: 100%; }
  /* 窄屏：右栏由固定 440px 收窄，避免挤压左栏主工作区 */
  .lv-team-panel { width: 320px; flex-basis: 320px; }
}
@media (max-width: 560px) {
  /* 更窄屏：右栏改为满宽堆叠到主区下方 */
  .lv-main { flex-direction: column; }
  .lv-team-panel {
    width: 100%;
    flex-basis: auto;
    max-height: 46vh;
    border-left: none;
    border-top: 1px solid var(--lv-line);
  }
}
@media (max-width: 420px) {
  .lv-frame-grid { grid-template-columns: 1fr; }
  .lv-foot-actions { width: 100%; }
  .lv-foot-actions .lv-btn { flex: 1; }
}

/* 无障碍：尊重系统降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  #longVideoStudioOverlay,
  #lvVoiceLayer,
  .lv-panel { animation: none; }
  .lv-close:hover { transform: none; }
  .lv-btn-primary:hover { transform: none; }
}

/* ==========================================================================
   批次 D：需求理解卡 + 精准访谈（§4）
   ========================================================================== */
.lv-req-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lv-ink);
  margin-bottom: 12px;
}
.lv-req-ok {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--lv-success);
  background: var(--lv-success-soft);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
/* 需求卡「10 秒软门」提示条（2026-11-20）：倒计时 / 已暂停两态 */
.lv-auto-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
}
.lv-auto-bar b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #b45309;
}
.lv-auto-bar .lv-auto-sub {
  color: #a16207;
  opacity: .85;
  font-size: 11.5px;
}
.lv-auto-bar.is-hold {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
/* 产品 VI 生效状态条（2026-11-20）：没样图 / 识别失败 都必须可视 */
.lv-vi-bar {
  margin: 0 0 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.lv-vi-bar.is-ok {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.lv-req-card {
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  background: var(--lv-surface);
  overflow: hidden;
  margin-bottom: 12px;
}
.lv-req-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--lv-line);
  font-size: 13px;
  line-height: 1.5;
}
.lv-req-row:last-child { border-bottom: none; }
.lv-req-label {
  flex: 0 0 86px;
  color: var(--lv-muted);
  font-size: 12px;
  padding-top: 1px;
}
.lv-req-val { flex: 1; min-width: 0; color: var(--lv-ink); word-break: break-word; }
.lv-req-sec {
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  background: var(--lv-surface);
}
.lv-req-sec-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-ink);
  margin-bottom: 7px;
}
.lv-req-item {
  font-size: 12px;
  line-height: 1.6;
  color: var(--lv-ink);
}
.lv-req-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}
/* 样图识别结果（2026-10-17：识别用什么模型现在可见） */
.lv-rec-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.lv-rec-item + .lv-rec-item { border-top: 1px dashed var(--lv-line); }
.lv-rec-info { flex: 1; min-width: 0; }
.lv-rec-role { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.lv-rec-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--lv-line); color: var(--lv-ink); font-size: 11px; font-weight: 600;
}
.lv-rec-conf { font-size: 11px; color: var(--lv-muted, #888); }
.lv-rec-model {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--lv-line); color: var(--lv-muted, #888);
  font-size: 10px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-rec-sum { font-size: 12px; line-height: 1.55; color: var(--lv-ink); }
.lv-rec-lock { border-color: var(--lv-warn); border-left-width: 4px; }
.lv-req-iv-tip {
  margin: 4px 0 2px;
  padding: 9px 12px;
  border: 1px solid var(--lv-warn);
  border-left-width: 4px;
  border-radius: var(--lv-radius-sm);
  background: var(--lv-warn-soft);
  font-size: 12px;
  color: var(--lv-ink);
}
.lv-iv-q {
  padding: 12px 14px;
  border: 1px solid var(--lv-line);
  border-radius: var(--lv-radius);
  background: var(--lv-surface);
  margin-bottom: 10px;
}
/* 方案 A：右栏逐题问询（CodeBuddy 式 ABCD 选项 + 其他描述） */
.lv-iv-q-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-ink);
  margin-bottom: 8px;
  line-height: 1.6;
}
.lv-iv-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.lv-iv-opt {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--lv-line);
  border-radius: 7px;
  background: var(--lv-surface-2);
  color: var(--lv-ink);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
.lv-iv-opt:hover { border-color: var(--lv-primary); }
.lv-iv-opt.is-on {
  border-color: var(--lv-primary);
  background: var(--lv-primary-soft);
  color: var(--lv-primary);
  font-weight: 700;
}
.lv-iv-free {
  margin-top: 2px;
  font-size: 11px;
}
/* 主区访谈面板（方案 A+，2026-10-14）：进度条 + 引导提示 */
.lv-iv-progress {
  float: right;
  font-size: 12px;
  color: var(--lv-primary);
  font-weight: 700;
}
.lv-iv-progress-bar {
  margin: 8px 0 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--lv-line);
  overflow: hidden;
}
.lv-iv-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lv-primary), var(--lv-primary-soft));
  transition: width .25s ease;
}
.lv-iv-main-hint {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--lv-primary);
  background: var(--lv-primary-soft);
  border-radius: var(--lv-radius);
  font-size: 12px;
  color: var(--lv-ink);
}
