/* 视频制作（design/ui-refresh-v2 #video）：标题 + 脚本输入框工具栏 + 制作项目网格。
   手机端只读：可看项目、镜头进度和成片，建立项目与编辑入口收起并提示去电脑。 */
#app #tab-video-edit:has(#production-start-card:not([hidden])) { max-width: 1056px; }
#app #tab-video-edit .video-workspace-header { align-items: center; margin: 4px 0 18px; padding: 0; border: 0; }
#app #tab-video-edit .video-workspace-header::after { display: none; }
#app #tab-video-edit .video-workspace-header h1 { margin: 0; color: var(--wb-ink); font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
#app #tab-video-edit .vp-lead { margin: 6px 0 0; color: var(--wb-muted); font-size: 13px; line-height: 1.5; }
#app #tab-video-edit .vp-external { min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--wb-muted); font-size: 12px; text-decoration: underline; text-decoration-color: var(--wb-line-input); text-underline-offset: 4px; }
#app #tab-video-edit .vp-external:hover { color: var(--wb-ink); }
#app #tab-video-edit:has(#production-start-card:not([hidden])) .production-stage-rail { display: none; }

/* ---------- 输入框 ---------- */
#app #tab-video-edit .vp-composer {
  margin: 0;
  padding: 0;
  border: 1px solid var(--wb-line-input);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: none;
}
#app #tab-video-edit .vp-composer:hover { box-shadow: none; }
#app #tab-video-edit .vp-composer:focus-within { border-color: var(--wb-faint); }
#app #tab-video-edit .vp-pick-wrap { position: relative; }
#app #tab-video-edit .vp-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px 2px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#app #tab-video-edit .vp-pick small { flex: none; color: var(--wb-muted); font-size: 12px; font-weight: 400; }
#app #tab-video-edit .vp-pick > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--wb-ink);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app #tab-video-edit .vp-pick:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: -4px; border-radius: 10px; }
#app #tab-video-edit .vp-caret { flex: none; width: 14px; height: 14px; color: var(--wb-muted); }
#app #tab-video-edit .vp-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
#app #tab-video-edit .vp-pick-meta { margin: 0; padding: 0 18px; color: var(--wb-faint); font-size: 12px; line-height: 1.6; }
#app #tab-video-edit .vp-bar { padding: 8px 10px 10px; }
#app #tab-video-edit .vp-tpl {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  margin: 0 2px 0 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  grid-template-columns: none;
  cursor: default;
}
#app #tab-video-edit .vp-tpl .production-template-swatch { flex: none; width: 20px; height: 14px; min-height: 0; border-radius: 3px; aspect-ratio: auto; }
#app #tab-video-edit .vp-tpl .production-template-swatch::before { display: none; }
#app #tab-video-edit .vp-tpl > div { display: block; min-width: 0; }
#app #tab-video-edit .vp-tpl small, #app #tab-video-edit .vp-tpl p { display: none; }
#app #tab-video-edit .vp-tpl strong { display: block; max-width: 12em; overflow: hidden; color: var(--wb-ink-2); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
#app #tab-video-edit .vp-ratio-ico { display: block; flex: none; width: 16px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
#app #tab-video-edit .vp-chip > span:last-child { max-width: 11em; overflow: hidden; text-overflow: ellipsis; }
#app #tab-video-edit .vp-script-pop { left: 8px; right: 8px; width: auto; max-height: 280px; padding: 6px; }
#app #tab-video-edit .vp-script-pop .wb-menu-item { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; }
#app #tab-video-edit .vp-model-pop { width: max-content; min-width: 168px; padding: 6px; }
#app #tab-video-edit .vp-model-pop .wb-menu-item { display: flex; width: 100%; min-height: 34px; }
#app #tab-video-edit .vp-ratio-pop { display: flex; gap: 4px; width: auto; padding: 6px; }
#app #tab-video-edit .vp-ratio-pop[hidden] { display: none; }
#app #tab-video-edit .vp-ratio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 76px;
  height: 64px;
  padding: 8px 6px;
  color: var(--wb-muted);
  font-size: 11px;
  white-space: normal;
  text-align: center;
}
#app #tab-video-edit .wb-menu-item.is-on { background: var(--wb-chip-on); color: var(--wb-ink); font-weight: 600; }
#app #tab-video-edit .wb-menu-item:disabled { color: var(--wb-faint); cursor: default; }
#app #tab-video-edit .wb-menu-item:disabled:hover { background: none; }
#app #tab-video-edit .vp-bar .wb-go .btn-loading { display: inline; }
#app #tab-video-edit .vp-bar .wb-go .btn-loading[hidden] { display: none; }
#app #tab-video-edit .production-pack-matches:not([hidden]) { margin: 0 12px 12px; }
#app #tab-video-edit .production-pack-matches[hidden] { display: none; }

/* ---------- 制作项目 ---------- */
#app #tab-video-edit #production-start-card[hidden] ~ .vp-projects,
#app #tab-video-edit #production-start-card[hidden] ~ .vp-mobile-note { display: none; }
#app #tab-video-edit .vp-mobile-note { display: none; }
#app #tab-video-edit .vp-projects-head { display: flex; align-items: center; gap: 16px; margin: 44px 0 4px; }
#app #tab-video-edit .vp-projects-head h2 { margin: 0; color: var(--wb-ink); font-size: 16px; font-weight: 650; }
#app #tab-video-edit .vp-projects-steps { margin-left: auto; color: var(--wb-faint); font-size: 12px; white-space: nowrap; }
#app #tab-video-edit .vp-projects-all { font-size: 12px; }
#app #tab-video-edit .vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; gap: 28px 20px; margin-top: 18px; }
#app #tab-video-edit .vp-empty { grid-column: 1 / -1; margin: 12px 0; color: var(--wb-faint); font-size: 13px; }
/* 按钮被网格拉伸时内容会垂直居中，所以顶对齐并固定标题/元信息高度，保证每行封面齐平。 */
#app #tab-video-edit .vp-tile { position: relative; display: flex; flex-direction: column; align-self: start; min-width: 0; }
#app #tab-video-edit .vp-tile-open { display: flex; flex-direction: column; align-self: start; width: 100%; min-width: 0; height: auto; min-height: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
#app #tab-video-edit .vp-tile-delete {
  position: absolute; top: 8px; right: 8px; z-index: 2; height: 28px; min-height: 28px; padding: 0 8px;
  border: 0; border-radius: 8px; background: rgba(251, 250, 247, .92); color: var(--wb-ink); font-size: 12px;
  opacity: 0; cursor: pointer;
}
#app #tab-video-edit .vp-tile:hover .vp-tile-delete,
#app #tab-video-edit .vp-tile:focus-within .vp-tile-delete { opacity: 1; }
#app #tab-video-edit .vp-tile-art {
  position: relative;
  display: flex;
  flex: none;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #2B2925;
  color: #F4F1EB;
  transition: transform .2s;
}
#app #tab-video-edit .vp-tile:nth-child(3n+2) .vp-tile-art { background: #EFE8DC; color: #2B2925; }
#app #tab-video-edit .vp-tile:nth-child(3n) .vp-tile-art { background: var(--bg-card); color: #2B2925; box-shadow: inset 0 0 0 1px var(--wb-line); }
#app #tab-video-edit .vp-tile-art::after { position: absolute; top: 14%; right: 9%; width: 32%; aspect-ratio: 1; border-radius: 2px; background: currentColor; opacity: .18; content: ''; }
#app #tab-video-edit .vp-tile-art b { display: -webkit-box; max-width: 62%; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#app #tab-video-edit .vp-tile:hover .vp-tile-art { transform: translateY(-2px); }
#app #tab-video-edit .vp-tile-open:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: 4px; border-radius: 10px; }
#app #tab-video-edit .vp-tile-steps { display: flex; gap: 3px; margin-top: 8px; }
#app #tab-video-edit .vp-tile-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--wb-line); }
#app #tab-video-edit .vp-tile-steps i.done { background: var(--wb-ink-2); }
#app #tab-video-edit .vp-tile-steps i.now { background: var(--wb-accent); }
#app #tab-video-edit .vp-tile strong { display: block; overflow: hidden; margin-top: 10px; color: var(--wb-ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
#app #tab-video-edit .vp-tile small { display: block; height: 1.5em; overflow: hidden; margin-top: 0; color: var(--wb-faint); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

/* 项目视图：阶段条改为细文字步骤，少框。 */
#app #tab-video-edit .production-stage-rail { gap: 0; margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#app #tab-video-edit .production-stage-rail span { min-height: 36px; padding: 0 14px 0 0; border: 0; background: none; color: var(--wb-faint); font-size: 12px; }
#app #tab-video-edit .production-stage-rail span::after { display: none; }
#app #tab-video-edit .production-stage-rail b { width: 18px; height: 18px; min-width: 18px; border: 1px solid var(--wb-line-input); background: none; color: var(--wb-muted); font-size: 11px; }
#app #tab-video-edit .production-stage-rail span.active { background: none; color: var(--wb-ink); font-weight: 600; }
#app #tab-video-edit .production-stage-rail span.active b, #app #tab-video-edit .production-stage-rail span.done b { border-color: var(--wb-ink); background: var(--wb-ink); color: var(--bg-card); }
#app #tab-video-edit .production-stage-rail span.done { color: var(--wb-muted); }

@media (max-width: 768px) {
  #app #tab-video-edit .video-workspace-header { align-items: flex-start; justify-content: flex-start; margin: 6px 0 16px; border: 0; box-shadow: none; text-align: left; }
  #app #tab-video-edit .video-workspace-header::after { display: none; }
  #app #tab-video-edit .video-workspace-header > div { width: auto; text-align: left; }
  #app #tab-video-edit .video-workspace-header h1 { font-size: 22px; }
  #app #tab-video-edit .vp-external { display: none; }
  /* 只读：不在手机上建立项目或编辑镜头。 */
  #app #tab-video-edit #production-start-card { display: none; }
  #app #tab-video-edit #production-start-card:not([hidden]) ~ .vp-mobile-note { display: block; margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--wb-chip-on); color: var(--wb-muted); font-size: 13px; line-height: 1.6; }
  #app #tab-video-edit .vp-projects-head { flex-wrap: wrap; margin-top: 24px; }
  #app #tab-video-edit .vp-projects-steps { display: none; }
  #app #tab-video-edit .vp-projects-all { margin-left: auto; min-height: 44px; }
  #app #tab-video-edit .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  #app #tab-video-edit .vp-tile-art { padding: 12px; }
  #app #tab-video-edit .vp-tile-art b { max-width: 70%; font-size: 12px; }
  #app #tab-video-edit .production-project-actions,
  #app #tab-video-edit .production-inline-actions,
  #app #tab-video-edit .production-keyframe-actions,
  #app #tab-video-edit .production-frame-mode-toggle,
  #app #tab-video-edit #production-save-shot,
  #app #tab-video-edit .production-shot-delete,
  #app #tab-video-edit .production-shot-drag,
  #app #tab-video-edit .production-project-delete { display: none !important; }
  #app #tab-video-edit .production-editor-panel :is(input, textarea, select) { pointer-events: none; background: transparent; }
  #app #tab-video-edit.is-project-open .production-stage-rail,
  #app #tab-video-edit.is-project-open .ve,
  #app #tab-video-edit.is-project-open .ve-actions,
  #app #tab-video-edit.is-project-open .ve-remote-note,
  #app #tab-video-edit.is-project-open #production-project::before { display: none !important; }
  #app #tab-video-edit.is-project-open #production-remote { display: block; }
  #app #tab-video-edit.is-project-open .video-workspace-header,
  #app #tab-video-edit.is-project-open .vp-mobile-note { display: none !important; }
  #app #tab-video-edit.is-project-open .ve-dbar { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 4px; padding: 0; border: 0; text-align: left; }
  #app #tab-video-edit.is-project-open .ve-go-btn,
  #app #tab-video-edit.is-project-open .ve-dbar .ve-tb,
  #app #tab-video-edit.is-project-open .ve-export-pop,
  #app #tab-video-edit.is-project-open .ve-mid,
  #app #tab-video-edit.is-project-open .ve-saved,
  #app #tab-video-edit.is-project-open .ve-slash,
  #app #tab-video-edit.is-project-open .ve-meta,
  #app #tab-video-edit.is-project-open .ve-hidden-data { display: none !important; }
  #app #tab-video-edit.is-project-open .ve-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--wb-muted); font-size: 14px; }
  #app #tab-video-edit.is-project-open .ve-back svg { width: 16px; height: 16px; }
  #app #tab-video-edit.is-project-open #production-project-title { display: none; margin: 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit .vp-remote-head h2 { margin: 0; font-size: 22px; line-height: 1.35; }
  #app #tab-video-edit .vp-remote-stage, #app #tab-video-edit #production-remote-stage { margin: 6px 0 0; color: var(--wb-muted); font-size: 13px; }
  #app #tab-video-edit .vp-remote-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
  #app #tab-video-edit .vp-remote-steps i { height: 3px; border-radius: 2px; background: var(--wb-line); }
  #app #tab-video-edit .vp-remote-steps i.done { background: var(--wb-ink-2); }
  #app #tab-video-edit .vp-remote-steps i.now { background: var(--wb-accent, #c4552a); }
  #app #tab-video-edit .vp-remote-sec { margin-top: 28px; }
  #app #tab-video-edit .vp-remote-sec h3 { margin: 0 0 12px; font-size: 16px; }
  #app #tab-video-edit .vp-remote-sec h3 small { margin-left: 6px; color: var(--wb-faint); font-weight: 500; }
  #app #tab-video-edit .vp-remote-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px; border-radius: 12px; background: var(--bg-card); }
  #app #tab-video-edit .vp-remote-card img, #app #tab-video-edit .vp-remote-ph { display: block; width: 112px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--wb-chip-on); }
  #app #tab-video-edit .vp-remote-line { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; min-width: 0; font-size: 14px; line-height: 1.4; }
  #app #tab-video-edit .vp-remote-line b { flex: none; color: var(--wb-ink); font-size: 14px; }
  #app #tab-video-edit .vp-remote-line span { overflow: hidden; color: var(--wb-ink-2); text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit .vp-remote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  #app #tab-video-edit .vp-remote-actions button, #app #tab-video-edit .vp-remote-actions a {
    min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--wb-ink); color: var(--bg-card);
    font-size: 13px; line-height: 36px; text-decoration: none;
  }
  #app #tab-video-edit .vp-remote-actions button[data-remote-redo], #app #tab-video-edit .vp-remote-actions a:last-child { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit .vp-remote-empty { margin: 0; color: var(--wb-faint); font-size: 13px; }
  #app #tab-video-edit .vp-remote-final video { width: 100%; border-radius: 12px; background: #111; }
  #app #tab-video-edit .vp-remote-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #app #tab-video-edit .vp-remote-shots figure { margin: 0; }
  #app #tab-video-edit .vp-remote-shots img, #app #tab-video-edit .vp-remote-shots span { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--wb-chip-on); }
  #app #tab-video-edit .vp-remote-shots figcaption { margin-top: 6px; color: var(--wb-muted); font-size: 12px; }
}

@media (min-width: 769px) {
  #app #tab-video-edit #production-remote { display: none !important; }

  #app #tab-video-edit.is-project-open {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    bottom: 0;
    left: calc(var(--sidebar-inset, 0px) + var(--sidebar-w, 232px));
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--bg-primary, #FBFAF7);
    overflow: hidden;
  }
  #app #tab-video-edit.is-project-open .video-workspace-header,
  #app #tab-video-edit.is-project-open .production-stage-rail,
  #app #tab-video-edit.is-project-open .vp-projects,
  #app #tab-video-edit.is-project-open .vp-mobile-note { display: none !important; }

  #app #tab-video-edit #production-project [hidden] { display: none !important; }
  #app #tab-video-edit #production-project .ve-hidden-data { display: none !important; }
  #app #tab-video-edit.is-project-open #production-project:not([hidden]) {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--bg-primary, #FBFAF7);
    box-shadow: none;
    overflow: hidden;
    color: var(--wb-ink);
  }
  #app #tab-video-edit #production-project :is(button, input, textarea, select, label) { min-height: 0; font-family: inherit; }
  #app #tab-video-edit .production-warning:not([hidden]) { margin: 0; padding: 8px 16px; background: var(--wb-chip-on); font-size: 12px; }

  /* 通用小件：工具按钮 / 主按钮 / 弹层 / 分段 / 标签页 */
  #app #tab-video-edit #production-project .ve-tb {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 32px; height: 32px; min-height: 32px; padding: 0 7px;
    border: 0; border-radius: 8px; background: transparent; color: var(--wb-muted);
    font-size: 12px; line-height: 1; white-space: nowrap; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-tb:hover:not(:disabled) { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-tb.on { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-tb:disabled { opacity: .4; cursor: default; }
  #app #tab-video-edit #production-project .ve-tb svg { flex: none; width: 18px; height: 18px; }
  #app #tab-video-edit #production-project .ve-tb .ve-caret { width: 10px; height: 10px; opacity: .6; }
  #app #tab-video-edit #production-project .ve-go-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 10px;
    background: var(--wb-ink); color: var(--bg-primary, #FBFAF7);
    font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: transform .2s, background .2s;
  }
  #app #tab-video-edit #production-project .ve-go-btn:active:not(:disabled) { transform: scale(.98); }
  #app #tab-video-edit #production-project .ve-go-btn:disabled { background: var(--wb-line-input); color: var(--bg-primary, #FBFAF7); cursor: default; }
  #app #tab-video-edit #production-project .ve-go-btn .btn-loading:not([hidden]) { display: inline; }
  #app #tab-video-edit #production-project .ve-pop-wrap { position: relative; display: inline-flex; }
  #app #tab-video-edit #production-project .ve-pop {
    position: absolute; z-index: 30; display: flex; flex-direction: column; min-width: 196px; padding: 8px;
    border: 1px solid var(--wb-line); border-radius: 12px; background: var(--bg-card, #fff);
    box-shadow: 0 12px 32px rgba(31, 29, 26, .12);
  }
  #app #tab-video-edit #production-project .ve-pop :is(button, .ve-pop-item):not(.ve-tb):not(.ve-go-btn):not(.ve-seg button) {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%;
    height: 34px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
    color: var(--wb-ink-2); font-size: 13px; font-weight: 400; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-pop :is(button, .ve-pop-item):not(.ve-tb):not(.ve-go-btn):not(.ve-seg button):hover { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-pop :is(button, .ve-pop-item):not(.ve-tb):not(.ve-go-btn):not(.ve-seg button).on { background: var(--wb-chip-on); color: var(--wb-ink); font-weight: 600; }
  #app #tab-video-edit #production-project .ve-pop :is(button, .ve-pop-item):disabled,
  #app #tab-video-edit #production-project .ve-pop .ve-pop-item.is-off { color: var(--wb-faint); cursor: default; }
  #app #tab-video-edit #production-project .ve-pop small { margin-left: auto; padding-left: 12px; color: var(--wb-faint); font-size: 11px; font-weight: 400; }
  #app #tab-video-edit #production-project .ve-grp { margin: 6px 10px 2px; color: var(--wb-faint); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-pop-empty { margin: 6px 10px; color: var(--wb-faint); font-size: 12px; line-height: 1.6; white-space: normal; }
  #app #tab-video-edit #production-project .ve-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-seg button {
    height: 30px; min-height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent;
    color: var(--wb-ink-2); font-size: 13px; font-weight: 400; white-space: nowrap; cursor: pointer;
    transition: background .2s, color .2s;
  }
  #app #tab-video-edit #production-project .ve-seg button.on { background: var(--bg-card, #fff); color: var(--wb-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(31, 29, 26, .08); }
  #app #tab-video-edit #production-project .ve-seg button:disabled { opacity: .45; cursor: default; }
  #app #tab-video-edit #production-project .ve-tabs { display: flex; gap: 18px; margin-bottom: 14px; }
  #app #tab-video-edit #production-project .ve-tabs button {
    position: relative; height: auto; min-height: 0; padding: 6px 0; border: 0; background: none;
    color: var(--wb-muted); font-size: 13px; white-space: nowrap; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-tabs button.on { color: var(--wb-ink); font-weight: 600; }
  #app #tab-video-edit #production-project .ve-tabs button.on::after { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--wb-ink); content: ''; }
  #app #tab-video-edit #production-project .ve-link {
    height: auto; min-height: 0; padding: 0; border: 0; background: none; color: var(--wb-ink); font-size: 12px;
    text-decoration: underline; text-decoration-color: var(--wb-line-input); text-underline-offset: 3px; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-link:hover { text-decoration-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-hint { margin: 0; color: var(--wb-muted); font-size: 12px; line-height: 1.6; }
  #app #tab-video-edit #production-project .ve-hint.has-error { color: #B4432F; }
  #app #tab-video-edit #production-project .ve-grow { flex: 1; }

  /* 顶栏 */
  #app #tab-video-edit #production-project .ve-dbar {
    position: relative; display: flex; flex: none; align-items: center; gap: 6px; height: 56px; margin: 0; padding: 0 16px 0 12px;
    border-bottom: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7);
  }
  #app #tab-video-edit #production-project .ve-back {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 32px; padding: 0 10px 0 6px;
    border: 0; border-radius: 8px; background: none; color: var(--wb-muted); font-size: 13px; white-space: nowrap; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-back svg { width: 16px; height: 16px; }
  #app #tab-video-edit #production-project .ve-back:hover { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-slash { color: var(--wb-line-input); }
  #app #tab-video-edit #production-project .ve-dtitle { max-width: 300px; margin: 0; padding: 0 8px; overflow: hidden; color: var(--wb-ink); font-size: 14px; font-weight: 600; line-height: 32px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-mid { display: flex; flex: 1; justify-content: center; min-width: 0; overflow: hidden; color: var(--wb-muted); font-size: 12px; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-saved { margin-right: 6px; color: var(--wb-faint); font-size: 12px; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-vstyle { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-vstyle:hover,
  #app #tab-video-edit #production-project .ve-vstyle.on { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-vstyle svg { width: 12px; height: 12px; }
  #app #tab-video-edit #production-project .ve-vstyle-pop { top: calc(100% + 6px); right: 0; width: 240px; }
  #app #tab-video-edit #production-project .ve-export-pop { top: calc(100% - 6px); right: 12px; }

  /* 对话框 + 画面 + 检查器，底部时间线 */
  #app #tab-video-edit #production-project .ve {
    --left-w: var(--chat-w, 300px); --right-w: var(--insp-w, 300px);
    position: relative; display: grid; flex: 1 1 auto; grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w); grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0; margin: 0; padding: 0; border: 0; background: none;
  }
  #app #tab-video-edit #production-project .ve.is-edit { --left-w: var(--assets-w, 236px); }
  #app #tab-video-edit #production-project .ve.is-voice { --left-w: var(--script-w, 360px); }
  #app #tab-video-edit #production-project .ve.chat-folded:not(.is-edit):not(.is-voice) { --left-w: 44px; }
  #app #tab-video-edit #production-project .ve.no-left { --left-w: 0px; }
  #app #tab-video-edit #production-project .ve.no-right { --right-w: 0px; }
  #app #tab-video-edit #production-project .ve > :is(.ve-chat, .vc-assets, .ve-script) { grid-row: 1; grid-column: 1; }
  #app #tab-video-edit #production-project .ve > .ve-main { grid-row: 1; grid-column: 2; }
  #app #tab-video-edit #production-project .ve > :is(.ve-insp, .ve-voice-panel) { grid-row: 1; grid-column: 3; }
  #app #tab-video-edit #production-project .ve.no-left > :is(.ve-chat, .vc-assets, .ve-script),
  #app #tab-video-edit #production-project .ve.no-right > :is(.ve-insp, .ve-voice-panel),
  #app #tab-video-edit #production-project .ve.no-tl > .ve-tl,
  #app #tab-video-edit #production-project .ve.no-left > .ve-resize.is-left,
  #app #tab-video-edit #production-project .ve.no-right > .ve-resize.is-right,
  #app #tab-video-edit #production-project .ve.no-tl > .ve-resize.is-bottom { display: none !important; }
  #app #tab-video-edit #production-project .ve-resize { position: absolute; z-index: 5; touch-action: none; }
  #app #tab-video-edit #production-project .ve-resize::after { position: absolute; background: var(--wb-accent); opacity: 0; transition: opacity .15s; content: ''; }
  #app #tab-video-edit #production-project .ve-resize:hover::after, #app #tab-video-edit #production-project .ve-resize.is-dragging::after { opacity: .7; }
  #app #tab-video-edit #production-project .ve-resize.is-left, #app #tab-video-edit #production-project .ve-resize.is-right { grid-row: 1; grid-column: 2 / 3; top: 0; bottom: 0; width: 8px; cursor: col-resize; }
  #app #tab-video-edit #production-project .ve-resize.is-left { left: -4px; }
  #app #tab-video-edit #production-project .ve-resize.is-right { right: -4px; }
  #app #tab-video-edit #production-project .ve-resize.is-left::after, #app #tab-video-edit #production-project .ve-resize.is-right::after { top: 0; bottom: 0; left: 3px; width: 2px; }
  #app #tab-video-edit #production-project .ve-resize.is-bottom { grid-row: 2; grid-column: 1 / -1; top: -4px; left: 0; right: 0; height: 8px; cursor: row-resize; }
  #app #tab-video-edit #production-project .ve-resize.is-bottom::after { left: 0; right: 0; top: 3px; height: 2px; }
  #app #tab-video-edit #production-project .ve.chat-folded:not(.is-edit):not(.is-voice) .ve-resize.is-left { display: none; }
  #app #tab-video-edit #production-project .ve.is-resizing { cursor: col-resize; user-select: none; }
  #app #tab-video-edit #production-project .ve.is-resizing.is-rows { cursor: row-resize; }
  #app #tab-video-edit #production-project .ve.is-resizing :is(iframe, video, .vc-canvas) { pointer-events: none; }
  #app #tab-video-edit #production-project .ve.is-edit .ve-chat { display: none; }
  #app #tab-video-edit #production-project .ve-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 6px 14px; }
  #app #tab-video-edit #production-project .ve-chat-head b { overflow: hidden; color: var(--wb-ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-chat-log { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 0; padding: 4px 14px 10px; overflow-y: auto; overscroll-behavior: contain; }
  #app #tab-video-edit #production-project .ve-chat-log > :first-child { margin-top: auto; }
  #app #tab-video-edit #production-project .ve-chat-log .ve-hint b { color: var(--wb-ink); font-weight: 650; }
  #app #tab-video-edit #production-project .ve-thread { display: flex; flex-direction: column; gap: 12px; }
  #app #tab-video-edit #production-project .ve-thread:empty { display: none; }
  #app #tab-video-edit #production-project .ve-msg { max-width: 92%; color: var(--wb-ink); font-size: 13px; line-height: 1.6; }
  #app #tab-video-edit #production-project .ve-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
  #app #tab-video-edit #production-project .ve-msg.is-user { align-self: flex-end; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-msg.is-user p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
  #app #tab-video-edit #production-project .ve-msg time { display: block; margin-top: 2px; color: var(--wb-faint); font-size: 10px; text-align: right; }
  #app #tab-video-edit #production-project .ve-msg.is-ai { align-self: flex-start; }
  #app #tab-video-edit #production-project .ve-msg.is-art { width: 100%; }
  #app #tab-video-edit #production-project .ve-msg.is-typing p { color: var(--wb-muted); }
  #app #tab-video-edit #production-project .ve-q { margin-top: 10px; }
  #app #tab-video-edit #production-project .ve-q b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
  #app #tab-video-edit #production-project .ve-opts { display: flex; flex-wrap: wrap; gap: 6px; }
  #app #tab-video-edit #production-project .ve-opts button { min-height: 28px; padding: 4px 12px; border: 1px solid var(--wb-line-input); border-radius: 999px; background: var(--bg-card, #fff); color: var(--wb-ink-2); font-size: 12px; line-height: 1.4; text-align: left; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-opts button:hover:not(:disabled) { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-opts button.on { border-color: var(--wb-ink); background: var(--wb-ink); color: var(--bg-card, #fff); }
  #app #tab-video-edit #production-project .ve-opts button:disabled { cursor: default; }
  #app #tab-video-edit #production-project .ve-opts button:disabled:not(.on) { opacity: .45; }
  #app #tab-video-edit #production-project .ve-q-skip { display: inline-block; margin-top: 8px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-art { max-width: 240px; overflow: hidden; border-radius: 8px; background: #000; }
  #app #tab-video-edit #production-project .ve-art :is(video, img) { display: block; width: 100%; max-height: 150px; object-fit: contain; }
  #app #tab-video-edit #production-project .ve-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-width: 240px; }
  #app #tab-video-edit #production-project .ve-art-kf { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #000; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-art-kf.on { border-color: var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-art-kf.is-peek { border-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-art-kf img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  #app #tab-video-edit #production-project .ve-art-meta { display: block; margin-top: 4px; color: var(--wb-muted); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-art-meta .ve-link { font-size: 11px; }
  #app #tab-video-edit #production-project .ve-art-on { color: var(--wb-ink-2); }
  #app #tab-video-edit #production-project .ve-chat-log .ve-hint .ve-link { margin-left: 6px; }
  #app #tab-video-edit #production-project .ve-chat-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 0 10px 10px; padding: 10px; border: 1px solid var(--wb-line); border-radius: 12px; background: var(--bg-card, #fff); }
  #app #tab-video-edit #production-project .ve-chat-box:focus-within { border-color: var(--wb-line-input); box-shadow: 0 0 0 3px var(--wb-line-2); }
  #app #tab-video-edit #production-project .ve-chat-box textarea {
    display: block; width: 100%; min-height: 96px; max-height: 40vh; padding: 0; border: 0; background: none;
    color: var(--wb-ink); font-size: 13px; line-height: 1.7; resize: vertical; outline: none; box-shadow: none;
  }
  #app #tab-video-edit #production-project .ve-chat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  #app #tab-video-edit #production-project .ve-chip {
    display: inline-flex; align-items: center; gap: 5px; max-width: 150px; height: 28px; min-height: 28px; padding: 0 9px;
    border: 1px solid var(--wb-line); border-radius: 999px; background: transparent; color: var(--wb-ink-2); font-size: 12px; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-chip svg { flex: none; width: 14px; height: 14px; }
  #app #tab-video-edit #production-project .ve-chip:hover:not(:disabled), #app #tab-video-edit #production-project .ve-chip.on { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-chip.is-set { border-color: var(--wb-line-input); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-chip:disabled { opacity: .5; cursor: default; }
  #app #tab-video-edit #production-project .ve-chip[hidden], #app #tab-video-edit #production-project .ve-chat [hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-chip-pop { bottom: calc(100% + 6px); left: 0; min-width: 220px; max-height: 320px; overflow-y: auto; }
  #app #tab-video-edit #production-project .ve-chat .ve-seg-sm button { height: 24px; min-height: 24px; padding: 0 8px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-chat-box > textarea { flex: 1 0 100%; }
  #app #tab-video-edit #production-project .ve-chat-box > .ve-chat-chips { display: contents; }
  #app #tab-video-edit #production-project .ve-chat-send { margin-left: auto; }
  #app #tab-video-edit #production-project .ve-chat.is-empty .ve-chat-box { opacity: .5; pointer-events: none; }
  #app #tab-video-edit #production-project .ve-chat.is-folded .ve-chat-head { justify-content: center; padding: 10px 0; }
  #app #tab-video-edit #production-project .ve-chat.is-folded :is(.ve-chat-head b, .ve-chat-log, .ve-chat-box) { display: none; }
  #app #tab-video-edit #production-project .ve-cands { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: rgba(31, 29, 26, .55); }
  #app #tab-video-edit #production-project .ve-cands button { display: block; width: 84px; height: auto; min-height: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #2B2925; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-cands button.on { border-color: #FBFAF7; }
  #app #tab-video-edit #production-project .ve-cands img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  #app #tab-video-edit #production-project .ve-shots { min-height: 0; overflow-y: auto; padding: 10px 8px; border-right: 1px solid var(--wb-line); }
  #app #tab-video-edit #production-project .ve-shot {
    position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center;
    width: 100%; margin: 0; padding: 6px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-shot:hover { background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-shot.on { background: var(--wb-chip-on); box-shadow: inset 0 0 0 1px var(--wb-line); }
  #app #tab-video-edit #production-project .ve-shot.dragging { opacity: .45; }
  #app #tab-video-edit #production-project .ve-shot.drag-before { box-shadow: inset 0 2px 0 var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-shot.drag-after { box-shadow: inset 0 -2px 0 var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-shot:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: -2px; }
  #app #tab-video-edit #production-project .ve-frame { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; background: #2B2925; }
  #app #tab-video-edit #production-project .ve-frame.is-empty { background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #app #tab-video-edit #production-project .ve-shot-copy { min-width: 0; }
  #app #tab-video-edit #production-project .ve-shot-copy b { display: block; color: var(--wb-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .ve-shot-copy > span { display: block; margin-top: 2px; overflow: hidden; color: var(--wb-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--wb-faint); vertical-align: 1px; }
  #app #tab-video-edit #production-project .ve-dot.ok { background: #5E8B4A; }
  #app #tab-video-edit #production-project .ve-dot.run { background: var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-dot.bad { background: #B4432F; }
  #app #tab-video-edit #production-project .ve-shot-del {
    position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; min-height: 22px; padding: 0;
    border: 0; border-radius: 6px; background: var(--bg-card, #fff); color: var(--wb-muted); font-size: 14px; line-height: 1;
    opacity: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(31, 29, 26, .12);
  }
  #app #tab-video-edit #production-project .ve-shot:hover .ve-shot-del:not(:disabled),
  #app #tab-video-edit #production-project .ve-shot-del:focus-visible { opacity: 1; }
  #app #tab-video-edit #production-project .ve-shot-del:hover { color: #B4432F; }

  #app #tab-video-edit #production-project .ve-main { min-height: 0; overflow-y: auto; padding: 24px 32px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .production-editor-empty { display: grid; place-items: center; height: 100%; color: var(--wb-muted); font-size: 13px; }
  #app #tab-video-edit #production-project .ve-main-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
  #app #tab-video-edit #production-project .ve-player {
    position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #2B2925;
  }
  #app #tab-video-edit #production-project .ve-player.is-portrait { width: auto; height: min(58vh, 640px); max-width: 100%; }
  #app #tab-video-edit #production-project .ve-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #2B2925; }
  #app #tab-video-edit #production-project .ve-frame-sub {
    position: absolute; left: 6%; right: 30%; bottom: 12%; color: #F4F1EB; font-size: 15px; font-weight: 600; line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 14px rgba(0, 0, 0, .45); pointer-events: none;
  }
  #app #tab-video-edit #production-project .ve-player:has(.ve-frame-sub)::after { position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(20, 18, 15, .38)); pointer-events: none; content: ''; }
  #app #tab-video-edit #production-project .ve-player > :is(.ve-frame-sub, .ve-review, .ve-badge, .ve-play, .ve-busy) { z-index: 1; }
  #app #tab-video-edit #production-project .ve-player:has(.ve-review) .ve-frame-sub { bottom: calc(12% + 44px); }
  #app #tab-video-edit #production-project .ve-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--wb-chip-on); color: var(--wb-muted); font-size: 13px; text-align: center; }
  #app #tab-video-edit #production-project .ve-player:has(.ve-empty) { background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-empty.is-error { color: #B4432F; }
  #app #tab-video-edit #production-project .ve-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 41, 37, .55); color: #FBFAF7; font-size: 13px; }
  #app #tab-video-edit #production-project .ve-play {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; min-height: 56px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(251, 250, 247, .9); color: #1F1D1A; transform: translate(-50%, -50%); cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-play svg { width: 20px; height: 20px; margin-left: 3px; }
  #app #tab-video-edit #production-project .ve-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(31, 29, 26, .6); color: #FBFAF7; font-size: 11px; }
  #app #tab-video-edit #production-project .ve-badge.is-bad { background: rgba(180, 67, 47, .85); }
  #app #tab-video-edit #production-project .ve-review {
    position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 14px; border-radius: 10px; background: rgba(31, 29, 26, .78); color: #FBFAF7; font-size: 13px;
  }
  #app #tab-video-edit #production-project .ve-review div { display: flex; gap: 6px; }
  #app #tab-video-edit #production-project .ve-review button { height: 30px; min-height: 30px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-review .no { background: rgba(251, 250, 247, .14); color: #FBFAF7; }
  #app #tab-video-edit #production-project .ve-review .yes { background: #FBFAF7; color: #1F1D1A; }

  #app #tab-video-edit #production-project .ve-ctl { width: 100%; max-width: 760px; }
  #app #tab-video-edit #production-project .ve-kfrow { display: flex; align-items: center; gap: 12px; }
  #app #tab-video-edit #production-project .ve-kf { position: relative; flex: none; width: 172px; }
  #app #tab-video-edit #production-project .ve-kf-frame { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-kf-frame.has-image { background: #2B2925; cursor: zoom-in; }
  #app #tab-video-edit #production-project .ve-kf-frame.has-error { box-shadow: 0 0 0 1.5px #B4432F; }
  #app #tab-video-edit #production-project .ve-kf-frame.is-off { opacity: .6; }
  #app #tab-video-edit #production-project .ve-kf-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #app #tab-video-edit #production-project .ve-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--wb-faint); font-size: 11px; text-align: center; }
  #app #tab-video-edit #production-project .ve-kf small { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; color: var(--wb-muted); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-kf small .has-error { color: #B4432F; }
  #app #tab-video-edit #production-project .ve-lock { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: inherit; font-size: 11px; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-lock input { width: 12px; height: 12px; margin: 0; accent-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-kf-acts {
    position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; padding: 2px; border-radius: 8px;
    background: rgba(251, 250, 247, .94); opacity: 0; transition: opacity .2s;
  }
  #app #tab-video-edit #production-project .ve-kf:hover .ve-kf-acts,
  #app #tab-video-edit #production-project .ve-kf:focus-within .ve-kf-acts { opacity: 1; }
  #app #tab-video-edit #production-project .ve-kf-acts .ve-tb { min-width: 26px; height: 26px; min-height: 26px; padding: 0 4px; color: #4A463F; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-kf-acts .ve-tb svg { width: 15px; height: 15px; }
  #app #tab-video-edit #production-project .ve-kf-acts:not(:has(> :not([hidden]))) { display: none; }
  #app #tab-video-edit #production-project .ve-arrow { color: var(--wb-faint); }
  #app #tab-video-edit #production-project .ve-gen-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  #app #tab-video-edit #production-project .ve-model-pop { top: calc(100% + 4px); right: 0; min-width: 240px; max-height: min(520px, 70vh); overflow-y: auto; overscroll-behavior: contain; }
  #app #tab-video-edit #production-project .ve-model-pop .ve-motion-more-toggle { margin-top: 4px; border-top: 1px solid var(--wb-line, rgba(31, 29, 26, .08)); border-radius: 0 0 8px 8px; }
  #app #tab-video-edit #production-project .ve-motion-more { padding: 4px 0 2px; }
  #app #tab-video-edit #production-project .ve-motion-search {
    width: calc(100% - 12px); height: 30px; margin: 2px 6px 4px; padding: 0 10px; border: 1px solid var(--wb-line, rgba(31, 29, 26, .12));
    border-radius: 8px; background: var(--bg-card, #fff); color: var(--wb-ink); font-size: 13px;
  }
  #app #tab-video-edit #production-project .ve-motion-search:focus { outline: none; border-color: var(--wb-ink-2); }
  #app #tab-video-edit #production-project .ve-model-pop .ve-motion-prefs-link { margin-top: 4px; color: var(--wb-faint); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-go-line { margin-top: 14px; }
  #app #tab-video-edit #production-project .ve-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  #app #tab-video-edit #production-project .ve-refs-list { display: contents; }
  #app #tab-video-edit #production-project .ve-ref { position: relative; width: 76px; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 6px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-ref img { width: 100%; height: 100%; object-fit: cover; }
  #app #tab-video-edit #production-project .ve-ref-remove {
    position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; min-height: 20px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(31, 29, 26, .6); color: #FBFAF7; font-size: 12px; opacity: 0; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-ref:hover .ve-ref-remove { opacity: 1; }
  #app #tab-video-edit #production-project .ve-ref-add {
    display: grid; place-items: center; width: 76px; height: 76px; min-height: 76px; padding: 0; border: 0; border-radius: 6px;
    background: var(--wb-chip-on); color: var(--wb-muted); font-size: 18px; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-extra { margin-top: 16px; }
  #app #tab-video-edit #production-project .ve-extra-line { display: flex; align-items: center; gap: 8px; color: var(--wb-faint); font-size: 12px; }
  #app #tab-video-edit #production-project .production-media-history { margin-top: 10px; }
  #app #tab-video-edit #production-project .production-media-history-head { display: none; }
  #app #tab-video-edit #production-project .production-media-history-list { display: flex; gap: 8px; overflow-x: auto; }
  #app #tab-video-edit #production-project .production-media-history-item {
    display: grid; flex: none; gap: 4px; width: 132px; height: auto; min-height: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  }
  #app #tab-video-edit #production-project .production-media-history-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .production-media-history-thumb :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
  #app #tab-video-edit #production-project .production-media-history-meta strong { display: block; color: var(--wb-ink-2); font-size: 11px; font-weight: 500; }
  #app #tab-video-edit #production-project .production-media-history-meta small { display: block; overflow: hidden; color: var(--wb-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

  /* 右侧检查器 */
  #app #tab-video-edit #production-project .ve-insp { min-height: 0; overflow-y: auto; padding: 20px; border-left: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-fld { display: block; margin: 0 0 18px; }
  #app #tab-video-edit #production-project .ve-fld > span:first-child { display: block; margin-bottom: 8px; color: var(--wb-muted); font-size: 12px; font-weight: 400; }
  #app #tab-video-edit #production-project .ve-fld :is(textarea, input[type="text"], select:not(.vp-native)) {
    display: block; width: 100%; height: auto; min-height: 0; padding: 10px 12px; border: 0; border-radius: 8px;
    background: var(--wb-chip-on); color: var(--wb-ink); font-size: 13px; line-height: 1.7; resize: none; outline: none;
    box-shadow: none; transition: background .2s, box-shadow .2s;
  }
  #app #tab-video-edit #production-project .ve-fld :is(textarea, input[type="text"], select):focus { background: var(--bg-card, #fff); box-shadow: 0 0 0 1px var(--wb-line-input), 0 0 0 4px var(--wb-line-2); }
  #app #tab-video-edit #production-project .ve-fld small.ve-hint { display: block; margin-top: 6px; font-size: 11px; }
  #app #tab-video-edit #production-project .ve-stepper { display: inline-flex; align-items: center; gap: 2px; }
  #app #tab-video-edit #production-project .ve-stepper b { min-width: 52px; color: var(--wb-ink); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .ve-insp .ve-seg { display: flex; width: 100%; }
  #app #tab-video-edit #production-project .ve-insp .ve-seg button { flex: 1; padding: 0 6px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-chart-tbl { display: grid; grid-template-columns: 1fr 72px; gap: 4px 8px; margin-top: 10px; }
  #app #tab-video-edit #production-project .ve-chart-tbl input {
    width: 100%; height: auto; min-height: 0; padding: 6px 8px; border: 0; border-radius: 6px; background: var(--wb-chip-on);
    color: var(--wb-ink); font-size: 12px; outline: none;
  }
  #app #tab-video-edit #production-project .ve-chart-tbl .ve-chart-json { grid-column: 1 / -1; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: var(--wb-chip-on); font: 12px/1.6 ui-monospace, monospace; resize: vertical; }
  #app #tab-video-edit #production-project :is(.ve-mg-fields, .ve-mg-source, .ve-fld, .ve-tabs, .ve-seg, .ve-switch, .ve-hint)[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  #app #tab-video-edit #production-project .ve-info > .ve-hint { margin: 6px 0 0; }
  #app #tab-video-edit #production-project .ve-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--wb-muted); font-size: 12px; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-switch input { position: absolute; opacity: 0; pointer-events: none; }
  #app #tab-video-edit #production-project .ve-switch i { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--wb-line-2); transition: background .15s; }
  #app #tab-video-edit #production-project .ve-switch i::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; content: ''; }
  #app #tab-video-edit #production-project .ve-switch input:checked + i { background: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-switch input:checked + i::after { transform: translateX(12px); }
  #app #tab-video-edit #production-project .ve-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--wb-line-2); }
  #app #tab-video-edit #production-project .ve-ov { pointer-events: none; }
  #app #tab-video-edit #production-project .ve-ov-card {
    position: absolute; box-sizing: border-box; border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    animation: ve-ov-in .5s cubic-bezier(.2, .8, .2, 1) both;
  }
  #app #tab-video-edit #production-project .ve-ov-text { font-weight: 850; letter-spacing: -.03em; line-height: 1.12; }
  #app #tab-video-edit #production-project .ve-ov-src { margin-top: 18px; opacity: .66; }
  @keyframes ve-ov-in { from { opacity: 0; translate: var(--ov-from, 0 0); } }
  #app #tab-video-edit #production-project .ve-motion { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--wb-line-2); }
  #app #tab-video-edit #production-project .ve-motion-head { display: flex; align-items: center; gap: 8px; }
  #app #tab-video-edit #production-project .ve-motion-head > span { flex: none; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-motion :is(select, input[type="text"]) {
    min-width: 0; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--wb-chip-on);
    color: var(--wb-ink); font-size: 12px; outline: none;
  }
  #app #tab-video-edit #production-project .ve-motion select { flex: 1; }
  #app #tab-video-edit #production-project .ve-motion-go {
    flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--wb-ink); color: var(--bg-card, #fff);
    font-size: 12px; font-weight: 600; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-motion-go:disabled { opacity: .5; cursor: default; }
  #app #tab-video-edit #production-project .ve-motion .ve-hint b { color: var(--wb-ink); font-weight: 650; }
  #app #tab-video-edit #production-project .ve-motion .ve-hint .ve-link { margin-left: 6px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-motion-code {
    max-height: 240px; margin: 0; padding: 10px; overflow: auto; border-radius: 8px; background: var(--wb-chip-on);
    color: var(--wb-ink); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre;
  }
  #app #tab-video-edit #production-project .ve-motion-revise { display: flex; gap: 8px; }
  #app #tab-video-edit #production-project .ve-motion-revise input { flex: 1; }
  #app #tab-video-edit #production-project .ve-motion-ref { color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-motion-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  #app #tab-video-edit #production-project .ve-motion-versions > span { margin-right: 2px; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-motion-versions button {
    min-width: 34px; height: 26px; padding: 0 8px; border: 1px solid var(--wb-line-2); border-radius: 999px; background: transparent;
    color: var(--wb-muted); font-size: 12px; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-motion-versions button.on { border-color: var(--wb-ink); background: var(--wb-ink); color: var(--bg-card, #fff); }
  #app #tab-video-edit #production-project .ve-motion-versions button:disabled { opacity: .5; cursor: default; }
  #app #tab-video-edit #production-project #production-template-fields { display: grid; gap: 10px; }
  #app #tab-video-edit #production-project .ve-slots { display: grid; gap: 8px; }
  #app #tab-video-edit #production-project .ve-slots-title { display: flex; align-items: baseline; gap: 8px; color: var(--wb-ink); font-size: 12px; font-weight: 650; }
  #app #tab-video-edit #production-project .ve-slots-title small { color: var(--wb-muted); font-weight: 400; }
  #app #tab-video-edit #production-project .ve-slot { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; }
  #app #tab-video-edit #production-project .ve-slot > span:first-child { overflow: hidden; color: var(--wb-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-slot input {
    min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--wb-chip-on);
    color: var(--wb-ink); font-size: 12px; outline: none;
  }
  #app #tab-video-edit #production-project .ve-slot-num { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; }
  #app #tab-video-edit #production-project .ve-player > .ve-ov-stale { z-index: 1; }
  #app #tab-video-edit #production-project :is(.ve-motion-head, .ve-motion-go, .ve-motion input, .ve-motion-code, .ve-motion-revise, .ve-motion-versions, .ve-slots, #production-template-fields)[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-ov-code { position: absolute; inset: 0; pointer-events: none; }
  #app #tab-video-edit #production-project .ve-ov-code[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-ov-code video { width: 100%; height: 100%; object-fit: contain; }
  #app #tab-video-edit #production-project .ve-ov-stale {
    position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6);
    color: #fff; font-size: 11px;
  }
  #app #tab-video-edit #production-project .ve-mg-fields { display: grid; gap: 10px; margin-top: 10px; }
  #app #tab-video-edit #production-project .ve-mg-fields .ve-fld, #app #tab-video-edit #production-project .ve-mg-source { margin: 0; }
  #app #tab-video-edit #production-project .ve-mg-source { display: block; margin-top: 10px; }
  #app #tab-video-edit #production-project .ve-mg { position: absolute; inset: 0; overflow: hidden; }
  #app #tab-video-edit #production-project .ve-mg-stage {
    position: absolute; top: 0; left: 0; display: flex; flex-direction: column; box-sizing: border-box; transform-origin: 0 0;
    font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  }
  #app #tab-video-edit #production-project .ve-mg-head { display: flex; justify-content: space-between; font-weight: 750; letter-spacing: .13em; opacity: .72; }
  #app #tab-video-edit #production-project .ve-mg-body { display: grid; flex: 1; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
  #app #tab-video-edit #production-project .ve-mg-title { font-weight: 850; letter-spacing: -.04em; line-height: 1.12; animation: ve-mg-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
  #app #tab-video-edit #production-project .ve-mg-chart { min-height: 0; animation: ve-mg-fade .35s linear both; }
  #app #tab-video-edit #production-project .ve-mg-bars { display: flex; align-items: flex-end; gap: 22px; height: 100%; }
  #app #tab-video-edit #production-project .ve-mg-col { display: grid; flex: 1; gap: 10px; min-width: 0; }
  #app #tab-video-edit #production-project .ve-mg-num { font-size: 28px; font-weight: 750; }
  #app #tab-video-edit #production-project .ve-mg-bar { border-radius: 8px 8px 2px 2px; transform-origin: 50% 100%; animation: ve-mg-grow .8s cubic-bezier(.25, 1.25, .45, 1) var(--mg-delay, 0s) both; }
  #app #tab-video-edit #production-project .ve-mg-lbl { overflow: hidden; font-size: 24px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-mg-line { position: relative; height: 100%; }
  #app #tab-video-edit #production-project .ve-mg-line svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  #app #tab-video-edit #production-project .ve-mg-line path { stroke-dasharray: 1; animation: ve-mg-draw 1.1s cubic-bezier(.3, .7, .3, 1) both; }
  #app #tab-video-edit #production-project .ve-mg-line circle, #app #tab-video-edit #production-project .ve-mg-pt { animation: ve-mg-fade .6s .5s both; }
  #app #tab-video-edit #production-project .ve-mg-pt { position: absolute; width: 150px; transform: translateX(-50%); text-align: center; }
  #app #tab-video-edit #production-project .ve-mg-pt-num { font-size: 23px; font-weight: 750; }
  #app #tab-video-edit #production-project .ve-mg-pt-lbl { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-mg-text { display: grid; align-content: center; height: 100%; line-height: 1.5; }
  #app #tab-video-edit #production-project .ve-mg-foot { display: flex; justify-content: space-between; gap: 30px; padding-top: 18px; opacity: .68; }
  #app #tab-video-edit #production-project .ve-mg-replay {
    position: absolute; top: 10px; right: 12px; z-index: 1; height: 24px; min-height: 0; padding: 0 10px; border: 0; border-radius: 999px;
    background: rgba(31, 29, 26, .6); color: #FBFAF7; font-size: 11px; cursor: pointer;
  }
  @keyframes ve-mg-rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes ve-mg-fade { from { opacity: 0; } }
  @keyframes ve-mg-grow { from { transform: scaleY(0); } }
  @keyframes ve-mg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  #app #tab-video-edit #production-project .ve-asset { margin-top: 8px; }
  #app #tab-video-edit #production-project .ve-asset input {
    display: inline; width: 9em; height: auto; min-height: 0; padding: 0 2px; border: 0; border-bottom: 1px solid var(--wb-line-input);
    background: transparent; color: var(--wb-ink); font-size: 12px; outline: none;
  }
  #app #tab-video-edit #production-project .ve-asset-results { display: grid; gap: 8px; margin-top: 10px; }
  #app #tab-video-edit #production-project .ve-asset-results:empty { display: none; }
  #app #tab-video-edit #production-project .production-asset-card { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center; margin: 0; padding: 0; border: 0; background: none; }
  #app #tab-video-edit #production-project .production-asset-card img,
  #app #tab-video-edit #production-project .production-asset-no-image { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .production-asset-card strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .production-asset-card small { color: var(--wb-faint); font-size: 11px; }
  #app #tab-video-edit #production-project .production-asset-card .btn { grid-column: 2; justify-self: start; min-height: 26px; height: 26px; padding: 0 10px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-idet summary { display: flex; justify-content: space-between; padding: 6px 0; color: var(--wb-ink-2); font-size: 13px; list-style: none; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-idet summary::-webkit-details-marker { display: none; }
  #app #tab-video-edit #production-project .ve-idet summary span { color: var(--wb-faint); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-idet[open] summary { margin-bottom: 10px; }

  /* 时间线 */
  #app #tab-video-edit #production-project .ve-tl { position: relative; display: flex; flex-direction: column; grid-row: 2; grid-column: 1 / -1; height: var(--tl-h, auto); min-height: 0; padding: 10px 16px 14px; border-top: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-tl > * { flex: none; }
  #app #tab-video-edit #production-project .ve-tl > .ve-tracks { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  #app #tab-video-edit #production-project .ve-tl-head { display: flex; align-items: center; gap: 6px; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-tl-head b { margin-right: 8px; color: var(--wb-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .ve-tracks { position: relative; display: grid; grid-template-columns: 40px calc((100% - 50px) * var(--tl-zoom, 1)); gap: 6px 10px; align-items: center; margin-top: 8px; overflow-x: auto; }
  #app #tab-video-edit #production-project .ve-tracks > small { position: sticky; left: 0; z-index: 3; align-self: stretch; display: flex; align-items: center; background: var(--bg-primary, #FBFAF7); box-shadow: 10px 0 0 var(--bg-primary, #FBFAF7); color: var(--wb-faint); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-lane { display: flex; gap: 2px; height: 38px; }
  #app #tab-video-edit #production-project .ve-lane.audio { height: 26px; }
  #app #tab-video-edit #production-project .ve-lane-empty { display: flex; align-items: center; flex: 1; padding: 0 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--wb-line); color: var(--wb-faint); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-blk {
    position: relative; display: flex; align-items: flex-end; min-width: 0; height: 100%; min-height: 0; padding: 0 6px 4px; overflow: hidden;
    border: 0; border-radius: 4px; color: #FBFAF7; font-size: 10px; font-variant-numeric: tabular-nums; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-blk.ok { background: #4A463F; }
  #app #tab-video-edit #production-project .ve-blk.review { background: #6F6A62; }
  #app #tab-video-edit #production-project .ve-blk.gen { background: linear-gradient(90deg, #8F887D, #A39D93, #8F887D); background-size: 200% 100%; animation: ve-sk 1.2s linear infinite; }
  #app #tab-video-edit #production-project .ve-blk.wait { background: transparent; box-shadow: inset 0 0 0 1px var(--wb-line-input); color: var(--wb-faint); }
  #app #tab-video-edit #production-project .ve-blk.on { box-shadow: 0 0 0 1.5px var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-blk:focus-visible { outline: 2px solid var(--wb-ink); outline-offset: 1px; }
  #app #tab-video-edit #production-project .ve-blk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }
  #app #tab-video-edit #production-project .ve-blk-n { position: relative; display: inline-flex; align-items: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  #app #tab-video-edit #production-project .ve-blk.wait .ve-blk-n { text-shadow: none; }
  #app #tab-video-edit #production-project .ve-blk .ve-dot { width: 5px; height: 5px; margin-right: 4px; vertical-align: 0; }
  #app #tab-video-edit #production-project .ve-blk.dragging { opacity: .45; }
  #app #tab-video-edit #production-project .ve-blk.drag-before { box-shadow: inset 2px 0 0 var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-blk.drag-after { box-shadow: inset -2px 0 0 var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-blk-del {
    position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 16px; height: 16px; min-height: 16px; padding: 0;
    border: 0; border-radius: 4px; background: rgba(251, 250, 247, .92); color: #4A463F; font-size: 12px; line-height: 1; opacity: 0; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-blk:hover .ve-blk-del:not(:disabled), #app #tab-video-edit #production-project .ve-blk-del:focus-visible { opacity: 1; }
  #app #tab-video-edit #production-project .ve-blk-del:hover { color: #B4432F; }
  #app #tab-video-edit #production-project .ve-wave { flex: 1; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(217, 96, 42, .55) 0 2px, transparent 2px 5px), rgba(217, 96, 42, .1); }
  #app #tab-video-edit #production-project .ve-playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--wb-accent); pointer-events: none; transition: left .3s; }
  #app #tab-video-edit #production-project .ve-takes-pop { right: 0; bottom: calc(100% + 6px); }
  #app #tab-video-edit #production-project .ve-takes-pop { min-width: 260px; }
  #app #tab-video-edit #production-project .ve-voice i { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wb-chip-on); font-size: 10px; font-style: normal; }
  #app #tab-video-edit #production-project .ve-fieldline { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; padding: 6px 10px; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-fieldline input {
    width: 100%; height: auto; min-height: 0; padding: 6px 0; border: 0; border-bottom: 1px solid var(--wb-line-input);
    background: transparent; color: var(--wb-ink); font-size: 12px; outline: none;
  }
  #app #tab-video-edit #production-project .ve-fieldline input:disabled { opacity: .5; }
  #app #tab-video-edit #production-project .ve-seg-sm button { height: 26px; min-height: 26px; padding: 0 8px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-pop-go { width: auto; height: 32px; min-height: 32px; margin: 8px 10px 4px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve-take { display: flex; align-items: center; gap: 2px; }
  #app #tab-video-edit #production-project .ve-take .ve-take-pick { flex: 1; }
  #app #tab-video-edit #production-project .ve-take.on .ve-take-pick { background: var(--wb-chip-on); color: var(--wb-ink); font-weight: 600; }
  #app #tab-video-edit #production-project .ve-take .ve-take-pick:disabled { cursor: default; }
  #app #tab-video-edit #production-project .ve-take.is-off .ve-take-pick { color: var(--wb-faint); }
  #app #tab-video-edit #production-project .ve-take .ve-tb svg { width: 14px; height: 14px; }
  #app #tab-video-edit #production-project .ve-take .ve-tb-txt { width: auto; padding: 0 8px; font-size: 11px; white-space: nowrap; }
  #app #tab-video-edit #production-project :is(.ve-music-pop, .ve-style-pop) { right: 0; bottom: calc(100% + 6px); width: 320px; max-height: min(560px, 70vh); overflow-y: auto; --ui-control-height: 0px; }
  #app #tab-video-edit #production-project .ve-pop-note { margin: 2px 10px 6px; color: var(--wb-faint); font-size: 11px; line-height: 1.5; white-space: normal; }
  #app #tab-video-edit #production-project .ve-pop-note.is-warn { color: var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-music-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 10px 6px; }
  #app #tab-video-edit #production-project .ve-music-head strong { overflow: hidden; color: var(--wb-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-music-head small { flex: none; margin-left: auto; padding: 0; }
  #app #tab-video-edit #production-project .ve-music-wave { position: relative; height: 48px; margin: 0 10px; border-radius: 8px; background: var(--wb-chip-on); overflow: hidden; }
  #app #tab-video-edit #production-project .ve-music-bars { position: absolute; inset: 6px 4px; display: flex; align-items: center; gap: 1px; }
  #app #tab-video-edit #production-project .ve-music-bars b { flex: 1; min-width: 0; border-radius: 1px; background: rgba(74, 70, 63, .45); }
  #app #tab-video-edit #production-project :is(.ve-music-ticks, .ve-music-lane) i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(31, 29, 26, .35); }
  #app #tab-video-edit #production-project .ve-music-ticks { position: absolute; inset: 0; }
  #app #tab-video-edit #production-project .ve-music-ticks u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-fieldline input[type="range"] { padding: 0; border: 0; accent-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-fieldline small { margin: 0; padding: 0; }
  #app #tab-video-edit #production-project .ve-music-pop .ve-fieldline:has(input[type="range"]) { grid-template-columns: 40px 1fr auto; }
  #app #tab-video-edit #production-project .ve-music-switches { display: flex; gap: 16px; padding: 6px 10px; }
  #app #tab-video-edit #production-project .ve-music-acts { display: flex; gap: 4px; padding-top: 4px; border-top: 1px solid var(--wb-line); margin-top: 4px; }
  #app #tab-video-edit #production-project .ve-pop .ve-music-acts button { width: auto; flex: 1; justify-content: center; }
  #app #tab-video-edit #production-project .ve-lane.music { position: relative; height: 18px; }
  #app #tab-video-edit #production-project .ve-music-lane { position: relative; display: block; height: 100%; border-radius: 4px; background: rgba(74, 70, 63, .14); }
  #app #tab-video-edit #production-project .ve-style-sw { display: inline-flex; flex: none; overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(31, 29, 26, .12); }
  #app #tab-video-edit #production-project .ve-style-sw i { width: 9px; height: 18px; }
  #app #tab-video-edit #production-project .ve-style-custom { margin: 2px 0 6px; padding: 4px 0; border-radius: 8px; background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-style-colors { display: flex; gap: 6px; }
  #app #tab-video-edit #production-project .ve-style-colors input[type="color"] { width: 28px; height: 22px; min-height: 0; padding: 0; border: 1px solid var(--wb-line); border-radius: 5px; background: none; cursor: pointer; }

  #app #tab-video-edit .ve-cover-dialog { width: min(880px, calc(100vw - 48px)); padding: 0; border: 0; border-radius: 14px; background: var(--bg-card, #fff); color: var(--wb-ink); box-shadow: 0 24px 60px rgba(31, 29, 26, .2); }
  #app #tab-video-edit .ve-cover-dialog::backdrop { background: rgba(31, 29, 26, .35); }
  #app #tab-video-edit .ve-cover-dialog .production-cover-studio { margin: 0; padding: 20px; border: 0; box-shadow: none; }
  #app #tab-video-edit .ve-cover-dialog .production-cover-head { display: flex; align-items: flex-start; gap: 12px; }
  #app #tab-video-edit .ve-cover-dialog .production-cover-head > div { flex: 1; }
  #app #tab-video-edit .ve-cover-dialog .production-cover-head h3 { margin: 0 0 4px; font-size: 16px; }
  #app #tab-video-edit .ve-cover-dialog .production-cover-head p { margin: 0; color: var(--wb-muted); font-size: 13px; }
  #app #tab-video-edit .ve-cover-dialog .ve-tb { min-width: 32px; height: 32px; min-height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--wb-muted); font-size: 18px; cursor: pointer; }
  #app #tab-video-edit .ve-cover-dialog #production-final-video { width: 100%; border-radius: 8px; background: #111; }

  /* 剪辑视图：固定画布 + 素材区 + 多轨时间线 */
  #app #tab-video-edit #production-project .ve-viewtabs { margin-left: 4px; }
  #app #tab-video-edit #production-project .ve-viewtabs[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-viewtabs button { height: 26px; padding: 0 12px; font-size: 12px; }
  #app #tab-video-edit #production-project .ve.is-edit .ve-shots,
  #app #tab-video-edit #production-project .ve.is-edit #production-editor-empty,
  #app #tab-video-edit #production-project .ve.is-edit #production-editor-content { display: none !important; }
  #app #tab-video-edit #production-project .vc-assets[hidden], #app #tab-video-edit #production-project .vc-canvas[hidden], #app #tab-video-edit #production-project .vc-insp[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve.is-edit .ve-main { display: flex; padding: 12px 16px; overflow: hidden; }
  #app #tab-video-edit #production-project .vc-assets { display: flex; flex-direction: column; min-height: 0; padding: 10px 10px 8px; border-right: 1px solid var(--wb-line); }
  #app #tab-video-edit #production-project .vc-as-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  #app #tab-video-edit #production-project .vc-as-head b { color: var(--wb-ink); font-size: 13px; }
  #app #tab-video-edit #production-project .vc-as-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
  #app #tab-video-edit #production-project .vc-as-tabs button { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--wb-muted); font-size: 12px; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-as-tabs button small { color: var(--wb-faint); font-size: 10px; }
  #app #tab-video-edit #production-project .vc-as-tabs button.on { background: var(--wb-chip-on); color: var(--wb-ink); font-weight: 600; }
  #app #tab-video-edit #production-project .vc-as-grid { display: grid; flex: 1; grid-template-columns: 1fr 1fr; align-content: start; gap: 8px; min-height: 0; overflow-y: auto; }
  #app #tab-video-edit #production-project .vc-as-item { position: relative; display: grid; gap: 4px; min-width: 0; cursor: grab; }
  #app #tab-video-edit #production-project .vc-as-item:active { cursor: grabbing; }
  #app #tab-video-edit #production-project .vc-as-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #1F1D1A; }
  #app #tab-video-edit #production-project .vc-as-thumb :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  #app #tab-video-edit #production-project .vc-as-mg { display: grid; place-items: center; height: 100%; background: repeating-conic-gradient(#2A2723 0 25%, #34302B 0 50%) 0 0 / 12px 12px; color: rgba(255, 255, 255, .5); }
  #app #tab-video-edit #production-project .vc-as-mg video { object-fit: contain !important; }
  #app #tab-video-edit #production-project .vc-as-mg svg { width: 22px; height: 22px; }
  #app #tab-video-edit #production-project .vc-as-head .ve-tb-lbl + .ve-tb-lbl { margin-left: 4px; }
  #app #tab-video-edit #production-project .vc-as-head b { margin-right: auto; }
  #app #tab-video-edit #production-project .vc-as-audio { display: grid; place-items: center; height: 100%; background: rgba(217, 96, 42, .12); color: var(--wb-accent); }
  #app #tab-video-edit #production-project .vc-as-audio svg { width: 22px; height: 22px; }
  #app #tab-video-edit #production-project .vc-as-copy { display: grid; min-width: 0; }
  #app #tab-video-edit #production-project .vc-as-copy b { overflow: hidden; color: var(--wb-ink); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .vc-as-copy small { color: var(--wb-faint); font-size: 10px; }
  #app #tab-video-edit #production-project .vc-as-go, #app #tab-video-edit #production-project .vc-as-del { position: absolute; top: 4px; display: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: rgba(31, 29, 26, .72); color: #fff; font-size: 14px; line-height: 20px; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-as-go { right: 4px; }
  #app #tab-video-edit #production-project .vc-as-del { left: 4px; }
  #app #tab-video-edit #production-project .vc-as-item:hover :is(.vc-as-go, .vc-as-del) { display: block; }
  #app #tab-video-edit #production-project .vc-as-empty { grid-column: 1 / -1; margin: 8px 2px; color: var(--wb-faint); font-size: 12px; line-height: 1.6; }
  #app #tab-video-edit #production-project .vc-canvas { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
  #app #tab-video-edit #production-project .ve-player > .vc-canvas { position: absolute; inset: 0; z-index: 0; }
  #app #tab-video-edit #production-project .ve-player.has-canvas > :not(.vc-canvas) { z-index: 1; }
  #app #tab-video-edit #production-project .ve-player.has-canvas > .ve-frame-sub, .ve-player.has-canvas::after { pointer-events: none; }
  #app #tab-video-edit #production-project .ve-player.is-playing > .ve-play { display: none; }
  #app #tab-video-edit #production-project .vc-canvas.is-scope .vc-bar { display: none; }
  #app #tab-video-edit #production-project .vc-canvas.is-scope .vc-stage { box-shadow: none; }
  #app #tab-video-edit #production-project .ve-player.has-canvas { overflow: visible; background: transparent; }
  #app #tab-video-edit #production-project .vc-canvas.is-scope .vc-view { overflow: visible; }
  #app #tab-video-edit #production-project .vc-canvas.is-scope .vc-clip { border-radius: 10px; }
  #app #tab-video-edit #production-project .vc-tools { position: absolute; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--wb-line); border-radius: 10px; background: var(--bg-card, #fff); box-shadow: 0 6px 20px rgba(31, 29, 26, .16); }
  #app #tab-video-edit #production-project .vc-tools[hidden], .vc-tool-pop[hidden] { display: none; }
  #app #tab-video-edit #production-project .vc-tools .ve-tb { width: 28px; height: 28px; min-height: 28px; }
  #app #tab-video-edit #production-project .vc-tools .ve-tb svg { width: 16px; height: 16px; }
  #app #tab-video-edit #production-project .vc-tools-sep { width: 1px; height: 16px; margin: 0 3px; background: var(--wb-line); }
  #app #tab-video-edit #production-project .vc-tool-pop { position: absolute; z-index: 3; min-width: 200px; max-width: 280px; padding: 10px; border: 1px solid var(--wb-line); border-radius: 10px; background: var(--bg-card, #fff); box-shadow: 0 8px 24px rgba(31, 29, 26, .18); }
  #app #tab-video-edit #production-project .vc-tp-text { box-sizing: border-box; width: 100%; min-height: 64px; padding: 6px 8px; border: 1px solid var(--wb-line-input); border-radius: 6px; color: var(--wb-ink); font-size: 13px; resize: vertical; }
  #app #tab-video-edit #production-project .vc-tp-note { margin: 0 0 8px; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-tp-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  #app #tab-video-edit #production-project .vc-tp-sw button, .vc-tp-custom { width: 22px; height: 22px; min-height: 22px; padding: 0; border: 1px solid rgba(31, 29, 26, .15); border-radius: 50%; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-tp-sw button.on { box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 0 3.5px var(--wb-ink); }
  #app #tab-video-edit #production-project .vc-tp-custom { position: relative; overflow: hidden; background: conic-gradient(#D2462F, #E0A526, #2F8F5B, #2E6BD8, #8E4FD8, #D2462F); }
  #app #tab-video-edit #production-project .vc-tp-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-tp-slots { display: grid; gap: 8px; }
  #app #tab-video-edit #production-project .vc-tp-slots label { display: grid; gap: 3px; color: var(--wb-muted); font-size: 11px; }
  #app #tab-video-edit #production-project .vc-tp-in { display: flex; gap: 4px; }
  #app #tab-video-edit #production-project .vc-tp-in input { box-sizing: border-box; flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--wb-line-input); border-radius: 6px; color: var(--wb-ink); font-size: 13px; }
  #app #tab-video-edit #production-project .vc-tp-in .vc-tp-unit { flex: 0 0 56px; }
  #app #tab-video-edit #production-project .vc-tp-acts { display: flex; justify-content: flex-end; margin-top: 10px; }
  #app #tab-video-edit #production-project .vc-tp-menu { display: grid; margin: -4px; }
  #app #tab-video-edit #production-project .vc-tp-menu button { height: 32px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--wb-ink-2); font-size: 13px; text-align: left; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-tp-menu button:hover { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .vc-view { position: relative; display: grid; flex: 1; place-items: center; min-height: 0; overflow: hidden; }
  #app #tab-video-edit #production-project .vc-fit { position: relative; }
  #app #tab-video-edit #production-project .vc-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #000; outline: none; box-shadow: 0 6px 24px rgba(31, 29, 26, .18); touch-action: none; user-select: none; }
  #app #tab-video-edit #production-project .vc-clip { position: absolute; inset: 0; overflow: hidden; }
  #app #tab-video-edit #production-project .vc-media, #app #tab-video-edit #production-project .vc-layers { position: absolute; inset: 0; }
  #app #tab-video-edit #production-project .vc-media-el { position: absolute; max-width: none; object-fit: fill; pointer-events: none; }
  #app #tab-video-edit #production-project .vc-empty { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .5); font-size: 40px; }
  #app #tab-video-edit #production-project .vc-layer { position: absolute; overflow: visible; pointer-events: none; }
  #app #tab-video-edit #production-project .vc-layer .vc-motion { position: absolute; top: 0; left: 0; display: block; object-fit: contain; transform-origin: 0 0; }
  #app #tab-video-edit #production-project .vc-text { box-sizing: border-box; width: 100%; white-space: pre; font-kerning: none; }
  #app #tab-video-edit #production-project .vc-text-ph { opacity: .45; }
  #app #tab-video-edit #production-project .vc-layer-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(31, 29, 26, .78); color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none; }
  #app #tab-video-edit #production-project .vc-layer-empty { display: grid; place-items: center; height: 100%; border: 4px dashed rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .7); font-size: 28px; }
  #app #tab-video-edit #production-project .vc-sel, #app #tab-video-edit #production-project .vc-guides { position: absolute; inset: 0; pointer-events: none; }
  #app #tab-video-edit #production-project .vc-box { position: absolute; box-sizing: border-box; outline: calc(2px / var(--k, 1)) solid var(--wb-accent); }
  #app #tab-video-edit #production-project .vc-box.is-media { outline-style: dashed; }
  #app #tab-video-edit #production-project .vc-h { position: absolute; width: calc(12px / var(--k, 1)); height: calc(12px / var(--k, 1)); margin: calc(-6px / var(--k, 1)) 0 0 calc(-6px / var(--k, 1)); border: calc(1.5px / var(--k, 1)) solid var(--wb-accent); border-radius: calc(3px / var(--k, 1)); background: #fff; box-sizing: border-box; pointer-events: auto; }
  #app #tab-video-edit #production-project .vc-h-nw { left: 0; top: 0; cursor: nwse-resize; }
  #app #tab-video-edit #production-project .vc-h-ne { left: 100%; top: 0; cursor: nesw-resize; }
  #app #tab-video-edit #production-project .vc-h-sw { left: 0; top: 100%; cursor: nesw-resize; }
  #app #tab-video-edit #production-project .vc-h-se { left: 100%; top: 100%; cursor: nwse-resize; }
  #app #tab-video-edit #production-project .vc-h-n { left: 50%; top: 0; cursor: ns-resize; }
  #app #tab-video-edit #production-project .vc-h-s { left: 50%; top: 100%; cursor: ns-resize; }
  #app #tab-video-edit #production-project .vc-h-e { left: 100%; top: 50%; cursor: ew-resize; }
  #app #tab-video-edit #production-project .vc-h-w { left: 0; top: 50%; cursor: ew-resize; }
  #app #tab-video-edit #production-project .vc-guide { position: absolute; background: #E8458B; }
  #app #tab-video-edit #production-project .vc-guide.is-v { top: 0; bottom: 0; width: calc(1px / var(--k, 1)); }
  #app #tab-video-edit #production-project .vc-guide.is-h { left: 0; right: 0; height: calc(1px / var(--k, 1)); }
  #app #tab-video-edit #production-project .vc-bar { display: flex; flex: none; align-items: center; gap: 8px; height: 36px; padding-top: 8px; }
  #app #tab-video-edit #production-project .vc-clock { color: var(--wb-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .vc-insp { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--wb-line-2); }
  #app #tab-video-edit #production-project .vc-insp:empty { display: none; }
  #app #tab-video-edit #production-project .vc-insp-head { display: flex; align-items: baseline; justify-content: space-between; }
  #app #tab-video-edit #production-project .vc-insp-head b { color: var(--wb-ink); font-size: 13px; }
  #app #tab-video-edit #production-project .vc-insp-head span { color: var(--wb-faint); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-row { display: flex; align-items: center; gap: 6px; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-row > span { flex: none; width: 30px; }
  #app #tab-video-edit #production-project .vc-row > span + input + small + span { margin-left: 8px; }
  #app #tab-video-edit #production-project .vc-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .vc-row input[type="number"] { width: 58px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--wb-chip-on); color: var(--wb-ink); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-row label { display: inline-flex; align-items: center; gap: 4px; }
  #app #tab-video-edit #production-project .vc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
  #app #tab-video-edit #production-project .vc-acts button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--wb-chip-on); color: var(--wb-ink); font-size: 12px; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-acts button:disabled { opacity: .45; cursor: default; }
  #app #tab-video-edit #production-project .vc-acts button.is-danger { color: #B3261E; }
  #app #tab-video-edit #production-project .vc-row input[type="color"] { width: 28px; height: 28px; padding: 2px; border: 0; border-radius: 6px; background: var(--wb-chip-on); cursor: pointer; }
  #app #tab-video-edit #production-project .vc-row .vc-wide { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--wb-chip-on); color: var(--wb-ink); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-row .vc-seg { flex: 1; width: auto; min-width: 0; }
  #app #tab-video-edit #production-project .vc-row .vc-seg button { flex: 1; height: 26px; padding: 0 8px; font-size: 12px; }
  #app #tab-video-edit #production-project .vc-text-input { width: 100%; padding: 8px; border: 0; border-radius: 8px; background: var(--wb-chip-on); color: var(--wb-ink); font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; box-sizing: border-box; }
  #app #tab-video-edit #production-project .vc-font-btn { flex: 1; min-width: 0; height: 28px; padding: 0 8px; overflow: hidden; border: 0; border-radius: 6px; background: var(--wb-chip-on); color: var(--wb-ink); font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-font-pop { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--wb-line-2); border-radius: 8px; }
  #app #tab-video-edit #production-project .vc-font-pop[hidden] { display: none; }
  #app #tab-video-edit #production-project .vc-font-q { height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--wb-chip-on); color: var(--wb-ink); font-size: 12px; }
  #app #tab-video-edit #production-project .vc-font-cats { display: flex; flex-wrap: wrap; gap: 4px; }
  #app #tab-video-edit #production-project .vc-font-cats button { height: 22px; padding: 0 8px; border: 0; border-radius: 5px; background: none; color: var(--wb-muted); font-size: 11px; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-font-cats button.on { background: var(--wb-chip-on); color: var(--wb-ink); font-weight: 600; }
  #app #tab-video-edit #production-project .vc-font-list { display: grid; max-height: 220px; overflow-y: auto; }
  #app #tab-video-edit #production-project .vc-font-list button { padding: 5px 6px; border: 0; border-radius: 5px; background: none; color: var(--wb-ink); font-size: 12px; text-align: left; cursor: pointer; }
  #app #tab-video-edit #production-project .vc-font-list button:hover, #app #tab-video-edit #production-project .vc-font-list button.on { background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .vc-font-list small, #app #tab-video-edit #production-project .vc-note { color: var(--wb-faint); font-size: 11px; line-height: 1.5; }
  #app #tab-video-edit #production-project .vc-note { margin: 0; }
  #app #tab-video-edit #production-project .vc-note.is-error { color: #B3261E; }
  #app #tab-video-edit #production-project .ve.is-edit .ve-tracks { gap: 4px 10px; }
  #app #tab-video-edit #production-project .vt-ruler { position: relative; height: 16px; cursor: pointer; }
  #app #tab-video-edit #production-project .vt-ruler span { position: absolute; top: 0; padding-left: 3px; border-left: 1px solid var(--wb-line-input); color: var(--wb-faint); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .vt-lane { position: relative; min-height: 26px; border-radius: 4px; background: rgba(31, 29, 26, .04); }
  #app #tab-video-edit #production-project .vt-shots { height: 40px; }
  #app #tab-video-edit #production-project .vt-voice { height: 24px; }
  #app #tab-video-edit #production-project .vt-music { height: 20px; }
  #app #tab-video-edit #production-project .vt-lane > :is(.ve-wave, .vt-shot, .vt-clip) { position: absolute; }
  #app #tab-video-edit #production-project .vt-voice .ve-wave { top: 0; bottom: 0; }
  #app #tab-video-edit #production-project .vt-music .ve-music-lane { position: absolute; top: 0; left: 0; }
  #app #tab-video-edit #production-project .vt-empty { display: flex; align-items: center; height: 100%; min-height: 24px; padding: 0 10px; color: var(--wb-faint); font-size: 11px; pointer-events: none; }
  #app #tab-video-edit #production-project .vt-shot { top: 0; bottom: 0; box-sizing: border-box; overflow: hidden; border: 1px solid var(--bg-primary, #FBFAF7); border-radius: 4px; background: #4A463F; cursor: pointer; }
  #app #tab-video-edit #production-project .vt-shot img { width: 100%; height: 100%; object-fit: cover; opacity: .85; pointer-events: none; }
  #app #tab-video-edit #production-project .vt-shot span { position: absolute; left: 4px; bottom: 2px; color: #fff; font-size: 10px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
  #app #tab-video-edit #production-project .vt-shot.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--wb-line-input); }
  #app #tab-video-edit #production-project .vt-shot.is-empty span { color: var(--wb-faint); text-shadow: none; }
  #app #tab-video-edit #production-project .vt-shot.on { box-shadow: 0 0 0 2px var(--wb-accent); z-index: 1; }
  #app #tab-video-edit #production-project .vt-clip { box-sizing: border-box; display: flex; align-items: center; height: 24px; min-width: 6px; overflow: hidden; border-radius: 5px; background: #5B6CD6; color: #fff; font-size: 11px; cursor: grab; }
  #app #tab-video-edit #production-project .vt-clip.is-motion { background: #2F8F83; }
  #app #tab-video-edit #production-project .vt-clip.is-text { background: #3B3832; }
  #app #tab-video-edit #production-project .vt-clip.is-missing { opacity: .5; }
  #app #tab-video-edit #production-project .vt-clip.on { box-shadow: 0 0 0 2px var(--wb-ink); z-index: 1; }
  #app #tab-video-edit #production-project .vt-clip span { flex: 1; min-width: 0; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
  #app #tab-video-edit #production-project .vt-clip i { flex: none; width: 6px; height: 100%; background: rgba(255, 255, 255, .25); cursor: ew-resize; }
  #app #tab-video-edit #production-project .vt-lane.is-drop, #app #tab-video-edit #production-project .vt-shot.is-drop { box-shadow: 0 0 0 2px var(--wb-accent); background-color: rgba(217, 96, 42, .1); }
  #app #tab-video-edit #production-project .vt-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--wb-accent); pointer-events: none; z-index: 2; }
}
@keyframes ve-sk { from { background-position: 200% 0; } to { background-position: 0 0; } }

  /* 工作区面板选择、时间线缩放、字幕开关、画布比例 */
  #app #tab-video-edit #production-project .ve-panels-pop { top: calc(100% + 6px); right: 0; width: 220px; }
  #app #tab-video-edit #production-project .ve-panels-pop .ve-pan-item[aria-checked="true"]::after { margin-left: auto; color: var(--wb-ink); content: '✓'; }
  #app #tab-video-edit #production-project .ve-panels-pop .ve-pan-sep { height: 1px; margin: 6px 4px; background: var(--wb-line); }
  #app #tab-video-edit #production-project .ve-ratio-pop { bottom: calc(100% + 6px); left: 0; min-width: 160px; }
  #app #tab-video-edit #production-project .ve-ratio-pop i { display: inline-block; flex: none; border: 1.5px solid currentColor; border-radius: 2px; }
  #app #tab-video-edit #production-project #production-subs-toggle[aria-pressed="false"] { color: var(--wb-faint); text-decoration: line-through; }
  #app #tab-video-edit #production-project .ve-zoom { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
  #app #tab-video-edit #production-project .ve-zoom input[type="range"] { width: 96px; height: auto; min-height: 0; padding: 0; border: 0; accent-color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve.is-voice .ve-chat, #app #tab-video-edit #production-project .ve.is-voice .ve-insp, #app #tab-video-edit #production-project .ve.is-voice .ve-ctl { display: none; }
  #app #tab-video-edit #production-project .ve-script[hidden], #app #tab-video-edit #production-project .ve-voice-panel[hidden], #app #tab-video-edit #production-project .ve-listen[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-listen { display: grid; gap: 8px; width: min(100%, 720px); margin: 0 auto 18px; padding: 12px 14px; border: 1px solid var(--wb-line); border-radius: 12px; background: var(--bg-card, #fff); }
  #app #tab-video-edit #production-project .ve-listen-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  #app #tab-video-edit #production-project .ve-listen-head b { color: var(--wb-ink); font-size: 13px; font-weight: 600; }
  #app #tab-video-edit #production-project .ve-listen-head > span:not(.ve-seg) { color: var(--wb-ink); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-listen-head small { flex: 1; color: var(--wb-muted); font-size: 12px; }
  #app #tab-video-edit #production-project .ve-listen audio { width: 100%; height: 36px; }

  /* 配音工作区：左侧旁白稿，右侧配音设置 */
  #app #tab-video-edit #production-project .ve-script { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-script-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
  #app #tab-video-edit #production-project .ve-script-head b { color: var(--wb-ink); font-size: 13px; font-weight: 600; }
  #app #tab-video-edit #production-project .ve-script-head small { color: var(--wb-accent); font-size: 11px; }
  #app #tab-video-edit #production-project .ve-script-list { flex: 1; min-height: 0; padding: 0 10px 12px; overflow-y: auto; }
  #app #tab-video-edit #production-project .ve-para { padding: 8px 8px 6px; border-radius: 8px; cursor: text; }
  #app #tab-video-edit #production-project .ve-para + .ve-para { margin-top: 2px; }
  #app #tab-video-edit #production-project .ve-para:hover { background: var(--wb-chip-on); }
  #app #tab-video-edit #production-project .ve-para.on { background: var(--bg-card, #fff); box-shadow: inset 0 0 0 1px var(--wb-line); }
  #app #tab-video-edit #production-project .ve-para-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--wb-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
  #app #tab-video-edit #production-project .ve-para-head small { margin-left: auto; font-size: 11px; }
  #app #tab-video-edit #production-project .ve-para-head small.is-stale { color: var(--wb-accent); }
  #app #tab-video-edit #production-project .ve-para textarea {
    display: block; width: 100%; height: auto; min-height: 0; padding: 0; overflow: hidden; resize: none;
    border: 0; background: transparent; color: var(--wb-ink); font-size: 14px; line-height: 1.7; outline: none; box-shadow: none;
  }
  #app #tab-video-edit #production-project .ve-para textarea::placeholder { color: var(--wb-faint); }
  #app #tab-video-edit #production-project .ve-voice-panel { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: 14px 10px; overflow-y: auto; border-left: 1px solid var(--wb-line); background: var(--bg-primary, #FBFAF7); }
  #app #tab-video-edit #production-project .ve-vp-title { margin: 0 10px 6px; color: var(--wb-ink); font-size: 13px; font-weight: 600; }
  #app #tab-video-edit #production-project .ve-voice-panel .ve-voice {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; min-height: 34px; padding: 0 10px;
    border: 0; border-radius: 8px; background: transparent; color: var(--wb-ink-2); font-size: 13px; text-align: left; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-voice-panel .ve-voice:hover, #app #tab-video-edit #production-project .ve-voice-panel .ve-voice.on { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-voice-panel .ve-voice.on { font-weight: 600; }
  #app #tab-video-edit #production-project .ve-voice-list { display: flex; flex-direction: column; gap: 4px; margin: 0 10px 6px 58px; }
  #app #tab-video-edit #production-project .ve-voice-list[hidden] { display: none; }
  #app #tab-video-edit #production-project .ve-voice-search {
    width: 100%; height: 30px; min-height: 30px; padding: 0 10px; border: 1px solid var(--wb-line-input); border-radius: 8px;
    background: var(--bg-card, #fff); color: var(--wb-ink); font-size: 12px; outline: none; box-shadow: none;
  }
  #app #tab-video-edit #production-project .ve-voice-rows { max-height: 260px; overflow-y: auto; border: 1px solid var(--wb-line); border-radius: 8px; background: var(--bg-card, #fff); padding: 4px; }
  #app #tab-video-edit #production-project .ve-voice-rows .ve-grp { display: block; margin: 6px 6px 2px; }
  #app #tab-video-edit #production-project .ve-voice-rows .ve-pop-empty { margin: 8px 6px; }
  #app #tab-video-edit #production-project .ve-voice-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center;
    padding: 5px 6px; border-radius: 6px; color: var(--wb-ink-2); font-size: 12px; cursor: pointer; outline: none;
  }
  #app #tab-video-edit #production-project .ve-voice-row:hover, #app #tab-video-edit #production-project .ve-voice-row:focus-visible, #app #tab-video-edit #production-project .ve-voice-row.on { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-voice-row.on .ve-voice-name { font-weight: 600; }
  #app #tab-video-edit #production-project .ve-voice-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-voice-row small { grid-column: 1; margin: 0; overflow: hidden; color: var(--wb-faint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  #app #tab-video-edit #production-project .ve-voice-play {
    grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 24px; height: 24px; min-height: 24px; padding: 0;
    border: 1px solid var(--wb-line-input); border-radius: 50%; background: transparent; color: var(--wb-ink-2); font-size: 9px; cursor: pointer;
  }
  #app #tab-video-edit #production-project .ve-voice-play:hover, #app #tab-video-edit #production-project .ve-voice-play.is-on { background: var(--wb-ink); border-color: var(--wb-ink); color: #fff; }
  #app #tab-video-edit #production-project .ve-vp-acts { display: grid; gap: 6px; margin: 12px 10px 0; }
  #app #tab-video-edit #production-project .ve-vp-acts .ve-go-btn { width: 100%; }
  #app #tab-video-edit #production-project .ve-vp-acts [hidden] { display: none !important; }
  #app #tab-video-edit #production-project .ve-go-btn.is-stop { border: 1px solid var(--wb-line-input); background: var(--bg-card, #fff); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-ghost-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; padding: 0 14px; border: 1px solid var(--wb-line-input); border-radius: 9px; background: transparent; color: var(--wb-ink-2); font-size: 12px; cursor: pointer; }
  #app #tab-video-edit #production-project .ve-ghost-btn:hover:not(:disabled) { background: var(--wb-chip-on); color: var(--wb-ink); }
  #app #tab-video-edit #production-project .ve-ghost-btn:disabled { color: var(--wb-faint); cursor: default; }
  #app #tab-video-edit #production-project .ve-ghost-btn .btn-loading:not([hidden]) { display: inline; }
