/**
 * 制作台 · ShotLayout 俯视板 / 站位台（P-css-i：卫星压线，仅保留 Blocking）
 * 原杂糅页壳/参考库/分集对比等已外置；加载：主 CSS 之后。
 */

/* ShotLayout Blocking 俯视板 */
.igs-blocking-panel { margin-top: 0.55rem; }
.igs-blk-seat { margin: 0.15rem 0 0.35rem; }
.igs-blk-board {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 8px;
  overflow: hidden;
  background: #e8efe9;
  touch-action: none;
}
.igs-blk-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.igs-blk-plate-ph {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--igs-muted, #6a7a72);
  padding: 1rem;
  text-align: center;
}
.igs-blk-cam {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #c45c26;
  pointer-events: none;
  opacity: 0.9;
  transform-origin: center center;
}
.igs-blk-dot {
  position: absolute;
  transform: translate(-50%, 50%);
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.28rem;
  border: 1px solid rgba(20, 40, 30, 0.35);
  border-radius: 999px;
  background: #f4f7f4;
  font-size: 0.62rem;
  line-height: 1;
  cursor: grab;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.igs-blk-dot.main {
  background: #ffe08a;
  border-color: #c9a227;
  font-weight: 700;
}
.igs-blk-dot.related {
  background: #cfe8ff;
  border-color: #4a7eb5;
}
.igs-blk-dot.bg {
  opacity: 0.85;
  background: #eef1ee;
}
.igs-blk-dot:active { cursor: grabbing; }
.igs-blk-status {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.68rem;
  white-space: pre-wrap;
  background: #f6f3ea;
  border-radius: 6px;
  max-height: 8rem;
  overflow: auto;
}

/* —— 站位台（专业 Blocking 工作页）—— */
.igs-bws {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 1rem;
  outline: none;
}
.igs-bws-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, #f3f6f3 85%, transparent);
  padding-bottom: 0.35rem;
}
.igs-bws-head h2 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 1.25rem; }
.igs-bws-head-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: end;
}
.igs-bws-head-acts label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--igs-muted, #6a7a72);
}
.igs-bws-head-acts select {
  font: inherit;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 6px;
  background: #fff;
}
.igs-bws-body {
  display: grid;
  /* 右侧操作区加宽：约 22～28rem，宽屏再吃一点 */
  grid-template-columns: 12.5rem minmax(0, 1fr) minmax(22rem, 28rem);
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}
@media (min-width: 1400px) {
  .igs-bws-body {
    grid-template-columns: 13rem minmax(0, 1fr) minmax(24rem, 32rem);
  }
}
@media (max-width: 1100px) {
  .igs-bws-body {
    grid-template-columns: 11rem minmax(0, 1fr) minmax(18rem, 22rem);
  }
}
@media (max-width: 900px) {
  .igs-bws-body { grid-template-columns: 1fr; }
  .igs-bws-insp {
    max-height: none;
    min-height: 18rem;
  }
}
.igs-bws-shots,
.igs-bws-insp {
  overflow: auto;
  background: #f3f6f3;
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 10px;
  padding: 0.5rem;
}
.igs-bws-insp {
  padding: 0.7rem 0.85rem 1rem;
  min-width: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
/* 生图配合 · 图文对读 */
.igs-bws-bridge {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.6rem 0.65rem;
  border: 1px solid #c9a227;
  border-radius: 10px;
  background: #fffaf0;
}
.igs-bws-bridge .igs-bws-lab {
  margin-top: 0;
  color: #7a5a10;
  border-bottom-color: color-mix(in srgb, #c9a227 45%, transparent);
}
.igs-bws-bridge-lead {
  margin: 0 0 0.4rem;
  line-height: 1.45;
}
.igs-bws-steps {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.74rem;
  color: #3a4a42;
  line-height: 1.45;
}
.igs-bws-steps li { margin-bottom: 0.15rem; }
.igs-bws-ref-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.igs-bws-ref-card {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--igs-line, #c9d4ce);
}
.igs-bws-ref-card.miss { border-style: dashed; opacity: 0.92; }
.igs-bws-ref-thumb {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eee9;
  display: grid;
  place-items: center;
}
.igs-bws-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.igs-bws-ref-ph {
  font-size: 0.65rem;
  color: #6a7a72;
  text-align: center;
  padding: 0.2rem;
}
.igs-bws-ref-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.igs-bws-ref-meta b { font-size: 0.78rem; }
.igs-bws-ref-meta span {
  font-size: 0.66rem;
  color: #6a7a72;
  line-height: 1.35;
}
.igs-bws-ref-meta .igs-btn-ghost {
  align-self: flex-start;
  margin-top: 0.1rem;
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
}
.igs-bws-ref-meta .igs-btn-ghost.flash {
  outline: 2px solid #c9a227;
}
.igs-bws-part-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.igs-bws-part {
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 8px;
  background: #fff;
  padding: 0.25rem 0.4rem 0.35rem;
}
.igs-bws-part summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.78rem;
  list-style: none;
}
.igs-bws-part summary::-webkit-details-marker { display: none; }
.igs-bws-part summary span {
  font-size: 0.66rem;
  color: #6a7a72;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-bws-part-text {
  margin: 0.35rem 0;
  padding: 0.4rem 0.45rem;
  font-size: 0.68rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-height: 8rem;
  overflow: auto;
  background: #f6f3ea;
  border-radius: 6px;
}
.igs-bws-part-btns {
  margin-bottom: 0.45rem;
}
.igs-bws-part-btn {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 5.5rem;
  font-size: 0.72rem !important;
}
.igs-bws-insp input,
.igs-bws-insp select,
.igs-bws-insp textarea {
  font: inherit;
  font-size: 0.86rem;
  padding: 0.45rem 0.55rem;
  min-height: 2.15rem;
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 7px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.igs-bws-insp textarea {
  min-height: 3.6rem;
  line-height: 1.4;
  resize: vertical;
}
.igs-bws-insp .igs-btn,
.igs-bws-insp .igs-btn-ghost {
  min-height: 2.1rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}
.igs-bws-lab {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3a4a42;
  margin: 0.45rem 0 0.3rem;
}
.igs-bws-shot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  width: 100%;
  margin: 0 0 0.3rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.igs-bws-shot.on {
  border-color: #c9a227;
  background: #fff8e0;
}
.igs-bws-shot b { font-size: 0.8rem; }
.igs-bws-shot span { font-size: 0.68rem; color: var(--igs-muted, #6a7a72); flex: 1; min-width: 3rem; }
.igs-bws-stage-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}
.igs-bws-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* 场景母版横版：舞台跟 16:9，吃满中栏 */
  aspect-ratio: 16 / 9;
  flex: 1 1 auto;
  min-height: 260px;
  max-height: min(68vh, 640px);
  margin: 0;
  border: 2px solid #2f6b5a;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe8e1;
  touch-action: none;
  user-select: none;
}
.igs-bws-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}
/* 烧板预览：半透明，默认关闭；打开时旧圆点会显出，仅核对用 */
.igs-bws-plate-burn {
  opacity: 0.28;
  mix-blend-mode: multiply;
  z-index: 1;
  filter: grayscale(0.15);
}
.igs-bws-plate-ph {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #4a5a52;
  line-height: 1.45;
  z-index: 0;
}
/* contain 可见图区：格位/圆点/上镜影坐标都相对此盒 */
.igs-bws-content {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.igs-bws-content > * { pointer-events: none; }
.igs-bws-content .igs-bws-slot,
.igs-bws-content .igs-bws-dot,
.igs-bws-content .igs-bws-frame.start.editable { pointer-events: auto; }
.igs-bws-mode {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}
.igs-bws-mode .igs-btn-ghost.on {
  background: color-mix(in srgb, #e85d04 22%, transparent);
  border-color: #e85d04;
  color: #9a3412;
  font-weight: 700;
}
.igs-bws-frames {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.igs-bws-frame {
  position: absolute;
  box-sizing: border-box;
  border: 2.5px solid #e85d04;
  background: rgba(232, 93, 4, 0.08);
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
}
.igs-bws-frame.start.editable {
  cursor: grab;
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.35);
}
.igs-bws-frame.start.editable:active { cursor: grabbing; }
.igs-bws-frame.end {
  border-style: dashed;
  border-color: #2a9d8f;
  background: rgba(42, 157, 143, 0.06);
  z-index: 2;
}
.igs-bws-frame span {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9a3412;
  text-shadow: 0 0 4px #fff;
  pointer-events: none;
}
.igs-bws-frame.end span { color: #0f766e; }
.igs-bws-north {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #2f6b5a;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
}
.igs-bws-cam {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  background: #c45c26;
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  pointer-events: none;
  z-index: 4;
}
.igs-bws-ghosts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.igs-bws-ghost {
  position: absolute;
  transform: translate(-50%, 50%);
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.28rem;
  border: 1.5px dashed rgba(90, 100, 95, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #5a6a62;
  font-size: 0.62rem;
  display: grid;
  place-items: center;
  opacity: 0.55;
}
.igs-bws-ghost.moved {
  border-color: #c45c26;
  color: #c45c26;
  opacity: 0.7;
}
.igs-bws-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background-image:
    linear-gradient(to right, rgba(47, 107, 90, 0.12) 1px, transparent 1px),
    linear-gradient(to top, rgba(47, 107, 90, 0.12) 1px, transparent 1px);
  background-size: 10% 10%;
}
.igs-bws-grid.on { opacity: 1; }
.igs-bws-dots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.igs-bws-dot-face {
  font-size: 0.62rem;
  opacity: 0.85;
  line-height: 1;
}
.igs-bws-gaze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.igs-bws-gaze[hidden] {
  display: none;
}
.igs-bws-gaze-line {
  fill: none;
  stroke: rgba(196, 92, 40, 0.55);
  stroke-width: 0.008;
  stroke-dasharray: 0.02 0.015;
  vector-effect: non-scaling-stroke;
}
.igs-bws-gaze-line.formal {
  stroke: rgba(47, 107, 90, 0.7);
  stroke-dasharray: 0.012 0.01;
}
.igs-bws-gaze-line.side {
  stroke: rgba(90, 120, 180, 0.55);
}
.igs-bws-shot-filter {
  width: 100%;
  margin-bottom: 0.35rem;
  font: inherit;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--igs-line, #c9d4ce);
  border-radius: 6px;
  background: #fff;
}
.igs-bws-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: #3a4a42;
}
.igs-bws-zoom .igs-btn-ghost {
  min-width: 1.6rem;
  padding: 0.15rem 0.35rem;
}
.igs-bws-roster {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 12rem;
  overflow: auto;
  margin-bottom: 0.45rem;
}
.igs-bws-roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  min-height: 2.2rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.igs-bws-roster-item b { font-size: 0.84rem; }
.igs-bws-roster-item span { font-size: 0.7rem; color: #6a7a72; }
.igs-bws-roster-item.main { background: #fff8e0; }
.igs-bws-roster-item.related { background: #eef6ff; }
.igs-bws-roster-item.on {
  border-color: #2f6b5a;
  outline: 1px solid #2f6b5a;
}
.igs-bws-scene-sep {
  font-size: 0.65rem;
  color: #6a7a72;
  padding: 0.35rem 0.4rem 0.15rem;
  font-weight: 600;
}
.igs-bws-shot-flags {
  font-style: normal;
  font-size: 0.62rem;
  color: #6a7a72;
  margin-left: auto;
}
.igs-bws-shot.has-hard .igs-bws-shot-flags { color: #b33; font-weight: 700; }
.igs-pill.danger {
  background: #fde8e8;
  color: #a33;
  border: 1px solid #e8b4b4;
}
.igs-bws-lock {
  max-height: 5.5rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.igs-warn { color: #b45c00; font-style: normal; font-size: 0.7rem; }
.igs-bws-dot {
  position: absolute;
  transform: translate(-50%, 50%);
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border: 2px solid rgba(20, 40, 30, 0.4);
  border-radius: 999px;
  background: #f4f7f4;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: grab;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  touch-action: none;
  -webkit-user-drag: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
}
.igs-bws-dot.main { background: #ffe08a; border-color: #c9a227; }
.igs-bws-dot.related { background: #cfe8ff; border-color: #4a7eb5; }
.igs-bws-dot.bg { opacity: 0.9; }
.igs-bws-dot.on {
  outline: 3px solid #2f6b5a;
  z-index: 6;
}
.igs-bws-dot.dragging {
  z-index: 8;
  box-shadow: 0 4px 14px rgba(20, 40, 30, 0.35);
  cursor: grabbing;
}
.igs-bws-dot:active { cursor: grabbing; }
.igs-bws-help { margin: 0; max-width: 100%; align-self: stretch; }
.igs-bws-meta {
  font-size: 0.72rem;
  color: #3a4a42;
  text-align: center;
  margin-bottom: 0.2rem;
}
.igs-bws-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.25rem !important;
  font-size: 0.72rem;
  color: #3a4a42;
}
.igs-bws-slots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
/* 格位=十字锚点，勿做成角色圆 pill，否则拖人后像「原位残影」 */
.igs-bws-slot {
  position: absolute;
  transform: translate(-50%, 50%);
  pointer-events: auto;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(47, 107, 90, 0.75);
  cursor: crosshair;
  display: grid;
  place-items: center;
}
.igs-bws-slot-mark {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.55;
  text-shadow: 0 0 2px #fff;
}
.igs-bws-slot:hover .igs-bws-slot-mark,
.igs-bws-slot:hover {
  color: #c45c26;
  opacity: 1;
}
.igs-bws-slot.taken .igs-bws-slot-mark {
  opacity: 0.22;
  font-size: 0.7rem;
}
.igs-bws-xy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.igs-bws-insp label {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3a4a42;
}
.igs-bws-insp .igs-bws-lab {
  font-size: 0.8rem;
  margin: 0.65rem 0 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--igs-line, #c9d4ce) 70%, transparent);
  position: sticky;
  top: 0;
  background: #f3f6f3;
  z-index: 1;
}
.igs-bws-insp .danger { color: #a33; }
.igs-bws-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
}
.igs-bws-add-row .igs-btn-ghost,
.igs-bws-slot-pick .igs-btn-ghost {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 4.5rem;
  justify-content: center;
}
.igs-bws-slot-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 8rem;
  overflow: auto;
  margin-bottom: 0.45rem;
}
.igs-bws-refs {
  font-size: 0.74rem;
  white-space: pre-wrap;
  background: #fff;
  border-radius: 7px;
  padding: 0.5rem 0.55rem;
  max-height: 10rem;
  overflow: auto;
  line-height: 1.45;
}
.igs-bws-status {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.7rem;
  white-space: pre-wrap;
  background: #f6f3ea;
  border-radius: 8px;
  max-height: 7rem;
  overflow: auto;
}
body.igs-on-blocking .igs-dock { display: none !important; }
body.igs-on-posMark .igs-dock { display: none !important; }
.igs-kf-video-prompt { margin-top: 0.55rem; }
.igs-kf-video-hint { margin: 0.25rem 0 0; }
.igs-kf-video-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin: 0;
  padding: 0.45rem 0.65rem 0.55rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px dashed rgba(196, 92, 40, 0.28);
  position: static;
  top: auto;
  z-index: auto;
}
.igs-kf-topstack {
  margin: 0.25rem 0 0.55rem;
  border-radius: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--igs-accent) 35%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--igs-accent) 10%, transparent), rgba(196, 92, 40, 0.08));
  overflow: hidden;
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: 0 2px 10px rgba(20, 32, 28, 0.04);
}
.igs-kf-topstack--pane {
  box-shadow: none;
}
.igs-kf-produce-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 252, 245, 0.72);
}
.igs-pending-promote {
  margin: 0.45rem 0 0.65rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border: 1px solid rgba(196, 92, 40, 0.22);
  border-radius: 10px;
  background: rgba(255, 248, 240, 0.88);
}
.igs-pending-promote[data-empty='1'] {
  border-color: color-mix(in srgb, var(--igs-accent) 14%, transparent);
  background: rgba(248, 252, 250, 0.8);
}
.igs-pending-promote__rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.15rem;
  scroll-snap-type: x proximity;
}

/* 本镜即梦生成历史（多候选 · 选定为正式分镜） */
.igs-kf-gen-hist {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--igs-accent) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--igs-accent) 6%, #fff);
}
.igs-kf-gen-hist__rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.1rem;
  scroll-snap-type: x proximity;
}
.igs-kf-gen-hist__card {
  flex: 0 0 auto;
  width: 132px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 28, 0.08);
}
.igs-kf-gen-hist__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f1714;
}
.igs-kf-gen-hist__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-kf-gen-hist__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.78rem;
}
.igs-kf-gen-hist__card .igs-btn {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.28rem 0.35rem;
}
.igs-kf-gen-hist__empty {
  margin: 0.25rem 0 0;
}

/* 编剧·分镜五步轨 */
.igs-pl-shot-pipe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0.55rem 0 0.25rem;
  padding: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--igs-ink, #1a2420) 55%, transparent);
}
.igs-pl-shot-pipe li {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 28, 0.1);
  background: rgba(255, 255, 255, 0.55);
}
.igs-pl-shot-pipe li.is-done {
  border-color: color-mix(in srgb, var(--igs-accent) 35%, transparent);
  color: color-mix(in srgb, var(--igs-accent) 85%, #0a2018);
  background: color-mix(in srgb, var(--igs-accent) 12%, #fff);
}
.igs-pl-shot-pipe li.is-now {
  border-color: color-mix(in srgb, var(--igs-accent) 55%, transparent);
  font-weight: 650;
  color: var(--igs-ink, #14201c);
  background: color-mix(in srgb, var(--igs-accent) 18%, #fff);
}

.igs-ep-shot-pipe {
  margin: 0.35rem 0 0.45rem;
}
.igs-ep-prompt-stale {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 92, 40, 0.35);
  background: rgba(255, 244, 232, 0.95);
  font-size: 0.8rem;
  color: #5c3a1a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}
.igs-pending-promote__card {
  flex: 0 0 auto;
  width: 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 28, 0.08);
}
.igs-pending-promote__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #efe8dc;
  cursor: pointer;
}
.igs-pending-promote__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-pending-promote__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.25;
}
.igs-pending-promote__meta strong {
  font-size: 0.78rem;
  word-break: break-all;
}
.igs-pending-promote__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.igs-kf-produce-lab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.82rem;
}
.igs-kf-produce-lab strong {
  font-family: var(--igs-serif);
  font-size: 0.95rem;
  color: var(--igs-accent);
}
.igs-kf-produce-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.igs-kf-jimeng-model {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid var(--igs-line);
  background: #fff;
  min-height: 2.35rem;
}
.igs-btn-jimeng-gen {
  background: var(--igs-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  min-height: 2.5rem !important;
  padding: 0.5rem 1rem !important;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--igs-accent) 28%, transparent);
}
.igs-btn-jimeng-gen:hover { filter: brightness(1.06); }
.igs-kf-jump button.on-hot {
  background: color-mix(in srgb, var(--igs-accent) 14%, transparent);
  border-color: var(--igs-accent);
  color: var(--igs-accent);
  font-weight: 700;
}
.igs-kf-more-block {
  margin: 0.45rem 0;
  border: 1px solid var(--igs-line);
  border-radius: 0.55rem;
  background: #fffcf5;
  padding: 0.15rem 0.55rem 0.45rem;
}
.igs-kf-more-block > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  color: var(--igs-muted);
}
.igs-kf-video-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}
.igs-kf-video-bar-meta strong { font-family: var(--igs-serif); }
.igs-kf-video-bar-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.igs-btn-video-copy,
.igs-btn-video-edit,
.igs-btn-screen-copy {
  min-height: 2.4rem !important;
  padding: 0.45rem 0.85rem !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}
.igs-btn-video-copy {
  background: #c45c28 !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(196, 92, 40, 0.28);
}
.igs-btn-screen-copy {
  background: #1d4f91 !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(29, 79, 145, 0.28);
}
.igs-btn-screen-copy.is-over {
  background: #c62828 !important;
  box-shadow: 0 2px 12px rgba(198, 40, 40, 0.4);
  animation: igs-pack-pulse 1.4s ease-in-out infinite;
}
.igs-pack-over {
  color: #c62828;
  font-weight: 800;
}
@keyframes igs-pack-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.igs-btn-video-edit {
  background: var(--igs-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.igs-kf-video-prompt--hero {
  border-color: rgba(196, 92, 40, 0.45);
  box-shadow: 0 4px 16px rgba(196, 92, 40, 0.08);
}
.igs-kf-video-prompt--hero > header {
  background: linear-gradient(90deg, #f8e8dc, #f4efe6);
  flex-wrap: wrap;
}
.igs-kf-video-hero-acts { gap: 0.35rem; }
.igs-kf-video-compare {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 0.65rem;
  margin-top: 0.4rem;
  align-items: stretch;
}
@media (max-width: 980px) {
  .igs-kf-video-compare {
    grid-template-columns: 1fr;
  }
}
.igs-kf-video-compare__prompt .igs-prompt-video {
  min-height: 11rem !important;
  max-height: 22rem;
}
.igs-kf-vcmp-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 11rem;
  padding: 0.55rem;
  border: 1px solid #d5e3da;
  border-radius: 0.45rem;
  background: #f7fbf8;
}
.igs-kf-vcmp-card.is-empty,
.igs-kf-vcmp-card.is-busy {
  justify-content: center;
  text-align: center;
  color: #2a3d34;
}
.igs-kf-vcmp-card.is-busy {
  border-style: dashed;
  background: #fff8ef;
}
.igs-kf-vcmp-card b {
  font-family: var(--igs-serif);
  font-size: 0.92rem;
}
.igs-kf-vcmp-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4a5c53;
}
.igs-kf-vcmp-player {
  width: 100%;
  max-height: 280px;
  border-radius: 0.35rem;
  background: #0f1a14;
  object-fit: contain;
}
.igs-kf-vcmp-cap {
  margin: 0;
  font-size: 0.72rem;
  color: #5a6b63;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.igs-btn-jimeng-video {
  background: #1b7a4e !important;
  border-color: transparent !important;
  color: #fff !important;
}
.igs-pill.ok {
  background: #e4f5ea;
  color: #1b7a4e;
}
.igs-prompt-video {
  min-height: 8.5rem !important;
  font-size: 0.8rem !important;
  background: #fffdf9 !important;
}
.igs-kf-video-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.5rem;
  border-top: 1px solid var(--igs-line);
  background: #faf7f1;
}
.igs-kf-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 3.2rem;
}
.igs-kf-dur { font-size: 0.72rem; color: var(--igs-muted); }
.igs-btn-video-mini {
  background: #c45c28 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 0.28rem 0.5rem !important;
  border-radius: 0.4rem !important;
  cursor: pointer;
}
.igs-btn-video-mini-edit {
  font-size: 0.68rem !important;
  padding: 0.2rem 0.4rem !important;
}
.igs-kf-main { min-width: 0; flex: 1; }
.igs-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.igs-ep-sec { margin: 0.65rem 0 0.25rem !important; font-size: 0.82rem !important; }
.igs-ep-more { margin: 0.35rem 0; font-size: 0.8rem; }
.igs-ep-more > summary { cursor: pointer; font-weight: 600; color: var(--igs-muted); }
.igs-ep-rel-btn { margin-top: 0.45rem; width: 100%; font-size: 0.78rem; }

