/* CX-WEBV2-INTEGRATE · 视频推荐 / 草稿 / 合规闭环 */
.vf-create,
.vf-secondary-view {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.vf-hero {
  padding: 24px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--surface-white);
}

.vf-hero-copy > span,
.vf-zero {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 600;
}

.vf-hero h1,
.vf-secondary-view h1 {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}

.vf-hero-copy p,
.vf-secondary-view > p,
.vf-shelf-heading p,
.vf-draft-head p {
  margin: 0;
  color: var(--on-variant);
  font-size: 13px;
}

.vf-prompt-box {
  margin-top: 20px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--paper-bg);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.vf-prompt-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(242, 109, 33, 0.12);
}

.vf-prompt-box textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 16px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--on-surface);
  font-size: 15px;
  line-height: 1.65;
}

.vf-upload {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px dashed var(--border-muted);
  border-radius: 12px;
  background: #fafaf8;
  cursor: pointer;
}
.vf-upload:hover { border-color: var(--primary); }
.vf-upload-mark {
  width: 36px;
  height: 36px;
  line-height: 34px;
  border-radius: 999px;
  background: var(--primary-tint, #eef4f1);
  color: var(--primary);
  font-size: 22px;
}
.vf-upload strong { font-size: 14px; font-weight: 600; }
.vf-upload span { font-size: 12px; color: var(--on-variant); }
.vf-upload-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.vf-prompt-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--border-muted);
}

.vf-prompt-tools label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--on-variant);
  font-size: 12px;
  font-weight: 500;
}

.vf-prompt-tools select {
  min-height: 34px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
  font-size: 12px;
}

.vf-check {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
}

.vf-selected {
  flex: 1;
  min-width: 120px;
  color: var(--on-variant);
  font-size: 12px;
  text-align: right;
}

.vf-selected.is-empty { opacity: 0.8; }

.vf-compliance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  color: var(--on-variant);
  font-size: 12px;
}

.vf-compliance.is-clear { background: #f3f8f4; }
.vf-compliance.is-checking { background: var(--surface-taupe); }
.vf-compliance.is-risk {
  display: block;
  border-color: #e6b2ab;
  background: #fff8f7;
}

.vf-compliance-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.vf-compliance-head > span { flex: 1; }
.vf-compliance-head label {
  color: var(--on-variant);
  font-size: 12px;
  font-weight: 400;
}

.vf-compliance button,
.vf-risk-row button {
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
  color: var(--on-surface);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.vf-compliance button:hover,
.vf-risk-row button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.vf-highlight {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-white);
  color: var(--on-surface);
  font-size: 14px;
  line-height: 1.65;
}

.vf-highlight mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: #f7d8d4;
  color: #852e25;
}

.vf-risk-list { margin-top: 8px; }
.vf-risk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(210, 75, 62, 0.14);
}

.vf-risk-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.vf-risk-row em {
  color: var(--on-variant);
  font-size: 11.5px;
  font-style: normal;
}

.vf-scenario-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-top: 20px;
}

.vf-intent-group {
  padding: 18px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--surface-white);
}

.vf-intent-group h2,
.vf-shelf-heading h2,
.vf-draft-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.vf-intent-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.vf-intent-group:nth-child(1) .vf-intent-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vf-intent-group:nth-child(3) .vf-intent-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vf-render-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  border: 1px solid var(--border-muted);
}
.vf-render-tag.is-i2v { color: #b45309; border-color: #f3c39a; }
.vf-render-tag.is-still { color: #57534e; }
.vf-render-tag.is-cast { color: #44403c; }
.vf-render-tag.is-risk { color: #b91c1c; border-color: #fecaca; }
.vf-deliver-row { flex-wrap: wrap; gap: 8px; }

.vf-intent-card,
.vf-action-grid > button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.vf-intent-card:hover,
.vf-action-grid > button:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.vf-intent-card span,
.vf-action-grid > button span { min-width: 0; }
.vf-intent-card strong,
.vf-action-grid strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.vf-intent-card em,
.vf-action-grid span {
  display: block;
  margin-top: 4px;
  color: var(--on-variant);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.vf-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--on-variant);
}

.vf-intent-card:hover .vf-icon,
.vf-capability-grid .vf-icon { color: var(--primary); }

.vf-shelf,
.vf-draft {
  margin-top: 20px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--surface-white);
}

.vf-shelf-nav {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--border-muted);
}

.vf-shelf-nav button {
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--on-variant);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.vf-shelf-nav button:hover,
.vf-shelf-nav button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.vf-shelf-content { padding: 18px; }
.vf-shelf-heading,
.vf-draft-head,
.vf-draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vf-template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vf-template-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--surface-white);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.vf-template-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.vf-template-card.is-selected {
  box-shadow: 0 0 0 2px var(--primary);
}

.vf-template-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 20px;
}

.vf-template-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-muted);
  border-radius: 9px;
  background: var(--surface-white);
  color: var(--on-variant);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.vf-template-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.vf-template-detail {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 20px;
  padding-right: 38px;
}

.vf-template-detail > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--surface-taupe);
}

.vf-template-copy > span {
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 600;
}

.vf-template-copy h2 {
  margin: 7px 0 7px;
  font-size: 20px;
  font-weight: 600;
}

.vf-template-copy p,
.vf-template-help {
  margin: 0;
  color: var(--on-variant);
  font-size: 13px;
  line-height: 1.6;
}

.vf-template-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.vf-template-facts span {
  padding: 5px 9px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  background: var(--surface-white);
  color: var(--on-variant);
  font-size: 11.5px;
}

.vf-template-steps {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--surface-taupe);
}

.vf-template-steps > strong {
  font-size: 13px;
  font-weight: 600;
}

.vf-template-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: vf-step;
}

.vf-template-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-white);
  color: var(--on-surface);
  font-size: 12px;
  counter-increment: vf-step;
}

.vf-template-steps li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-hover);
  content: counter(vf-step);
  font-size: 11px;
  font-weight: 600;
}

.vf-template-help {
  margin-top: 14px;
}

.vf-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-taupe);
}

.vf-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 600;
}

.vf-card-body {
  display: block;
  padding: 11px;
}

.vf-card-body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.vf-card-body > em {
  display: -webkit-box;
  min-height: 51px;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--on-variant);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.45;
}

.vf-card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  color: var(--on-variant);
  font-size: 10.5px;
}

.vf-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-card-meta b {
  flex: 0 0 auto;
  color: var(--primary-hover);
  font-weight: 600;
}

.vf-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.vf-category-chips button {
  padding: 6px 10px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  background: var(--surface-white);
  color: var(--on-variant);
  cursor: pointer;
  font-size: 12px;
}

.vf-category-chips button:hover,
.vf-category-chips button.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-hover);
}

.vf-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vf-capability-grid article {
  padding: 16px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
}

.vf-capability-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.vf-capability-grid p {
  margin: 5px 0 0;
  color: var(--on-variant);
  font-size: 12px;
  line-height: 1.55;
}

.vf-draft { padding: 18px; }
.vf-draft-head h2 { margin-top: 8px; }
.vf-draft-scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.vf-draft-scene {
  padding: 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: #fff;
}
.vf-draft-scene header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.vf-draft-scene em {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 999px;
  background: var(--primary-tint, #eef4f1);
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.vf-draft-scene strong { flex: 1; font-size: 14px; }
.vf-draft-scene header span { color: var(--on-variant); font-size: 12px; }
.vf-draft-scene p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
.vf-draft-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  white-space: pre-wrap;
}
.vf-draft-line > span {
  color: var(--on-variant);
  font-size: 12px;
  line-height: 1.5;
}
.vf-draft-visual { color: var(--on-surface); font-size: 13px; }
.vf-draft-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.vf-brief-hint {
  margin: 0;
  padding: 8px 16px 0;
  color: var(--on-variant);
  font-size: 12px;
  line-height: 1.5;
}
.vf-draft-scene.is-editing {
  display: grid;
  gap: 8px;
}
.vf-draft-scene.is-editing header {
  flex-wrap: wrap;
}
.vf-scene-title {
  flex: 1;
  min-width: 120px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
  font-size: 14px;
  font-weight: 600;
}
.vf-scene-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--on-variant);
  font-size: 12px;
  white-space: nowrap;
}
.vf-scene-duration input {
  width: 56px;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
  font-size: 12px;
}
.vf-scene-remove,
.vf-add-scene {
  min-height: 34px;
  padding: 0 10px;
  border: 1px dashed var(--border-muted);
  border-radius: 8px;
  background: transparent;
  color: var(--on-variant);
  font-size: 12px;
  cursor: pointer;
}
.vf-add-scene {
  margin-top: 10px;
  width: 100%;
}
.vf-draft-scene.is-editing > label {
  display: grid;
  gap: 4px;
  color: var(--on-variant);
  font-size: 12px;
}
.vf-draft-scene.is-editing textarea {
  width: 100%;
  padding: 8px 9px;
  resize: vertical;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--paper-bg);
  color: var(--on-surface);
  font-size: 13px;
  line-height: 1.5;
}
.vf-scene-title:focus,
.vf-scene-duration input:focus,
.vf-draft-scene.is-editing textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(242, 109, 33, 0.12);
}
@media (max-width: 760px) {
  .vf-draft-scenes { grid-template-columns: 1fr; }
}
.vf-stage-rail {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  color: var(--on-variant);
  font-size: 12px;
}
.vf-stage-rail li {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-bg);
}
.vf-stage-rail .is-done { color: var(--on-surface); }
.vf-stage-rail .is-active {
  background: var(--primary-tint, #eef4f1);
  color: var(--primary);
  font-weight: 600;
}
.vf-refine-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.vf-refine-bar input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface, #fff);
}
.vf-refine-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg, #fff);
}
.vf-refine-panel .vf-refine-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vf-refine-panel .vf-refine-head strong { font-weight: 600; }
.vf-refine-panel .vf-refine-head span { flex: 1; font-size: 12px; color: var(--text-muted); }
.vf-refine-panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  background: var(--surface, #fff);
}
.vf-refine-panel .vf-refine-result { margin-top: 8px; }
.vf-refine-panel .vf-refine-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.vf-refine-panel .vf-refine-tip {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  align-self: center;
}
.vf-regen-confirm {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.vf-track-rail {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
}
.vf-clip {
  display: grid;
  gap: 4px;
  min-width: 88px;
  padding: 8px;
  text-align: left;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.vf-clip.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(242, 109, 33, 0.12);
}
.vf-clip img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.vf-clip em {
  font-style: normal;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.vf-clip strong { font-size: 12px; }
.vf-clip span { color: var(--on-variant); font-size: 11px; }
.vf-unit-tag {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.vf-channel-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.vf-fixed-duration {
  color: var(--on-variant);
  font-size: 13px;
}
.vf-clip-channel {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.vf-prev-tail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  width: fit-content;
}
.vf-still-hint {
  margin: 8px 0 0;
  color: var(--on-variant);
  font-size: 13px;
  line-height: 1.45;
}
.vf-track-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-top: 14px;
}
.vf-shot-editor,
.vf-shot-preview {
  padding: 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: #fff;
}
.vf-shot-editor { display: grid; gap: 8px; }
.vf-shot-editor header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-shot-editor > label {
  display: grid;
  gap: 4px;
  color: var(--on-variant);
  font-size: 12px;
}
.vf-shot-editor textarea {
  width: 100%;
  padding: 8px 9px;
  resize: vertical;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--paper-bg);
  color: var(--on-surface);
  font-size: 13px;
  line-height: 1.5;
}
.vf-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vf-shot-preview img,
.vf-shot-preview video {
  width: 100%;
  border-radius: 8px;
  background: #111;
}
.vf-ref-images {
  margin-top: 10px;
}
.vf-ref-images h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}
.vf-ref-images-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vf-ref-image {
  position: relative;
  display: inline-block;
}
.vf-ref-image img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-muted);
  background: #111;
}
.vf-ref-image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-muted);
  background: #fff;
  color: #c0392b;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.vf-ref-image-remove:hover {
  background: #fdecea;
  border-color: #c0392b;
}
.vf-first-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.vf-first-frame .vf-ref-image-remove {
  top: 8px;
  right: 8px;
}
.vf-produced-list {
  margin-top: 12px;
  border-top: 1px solid var(--border-muted);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}
.vf-produced-list h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}
.vf-produced-item {
  display: grid;
  grid-template-columns: 20px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.vf-produced-item.active {
  border-color: var(--primary, #F26D21);
  box-shadow: 0 0 0 1px var(--primary, #F26D21) inset;
}
.vf-produced-idx {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-tint, #eef4f1);
  color: var(--primary, #F26D21);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.vf-produced-item video {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.vf-version-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  background: var(--paper-bg, #fff);
}
.vf-version-switch span {
  font-size: 12px;
  color: var(--on-variant);
}
.vf-produced-dur {
  font-size: 11px;
  color: var(--on-variant);
}
.vf-shot-preview p {
  margin: 0;
  color: var(--on-variant);
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .vf-track-desk { grid-template-columns: 1fr; }
}
.vf-draft-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-muted);
}

.vf-draft-actions > span {
  color: var(--on-variant);
  font-size: 12px;
}

.vf-inline-error,
.vf-inline-message {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.vf-inline-error {
  border: 1px solid #e6b2ab;
  background: #fff4f2;
  color: #852e25;
}

.vf-inline-message {
  border: 1px solid #b8d8c2;
  background: #f3f8f4;
  color: #28633d;
}

.vf-task-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
}

.vf-task-state video {
  grid-column: 1 / -1;
  width: min(680px, 100%);
  margin-top: 6px;
  border-radius: 8px;
  background: #211f1c;
}

.vf-empty {
  margin-top: 14px;
  padding: 28px;
  border: 1px dashed var(--border-muted);
  border-radius: 10px;
  color: var(--on-variant);
  text-align: center;
  font-size: 13px;
}

.vf-secondary-view {
  padding: 24px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: var(--surface-white);
}

.vf-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-variant);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.vf-back:hover { color: var(--primary); }
.vf-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  .vf-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf-scenario-layout { grid-template-columns: 1fr; }
}

.vlog-daily-studio .vlog-slot-line {
  margin: 10px 0 16px;
  color: var(--on-variant);
  font-size: 13px;
  font-weight: 400;
}
.vlog-field {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.vlog-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  resize: vertical;
}
.vlog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 400;
}
.vlog-tools .seg {
  border: 1px solid var(--border-muted);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.vlog-tools .seg.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}
.vlog-upload {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 18px 14px;
  text-align: center;
  border: 1px dashed var(--border-muted);
  border-radius: 12px;
  background: #fafaf8;
  cursor: pointer;
  color: var(--on-surface);
}
.vlog-upload:hover { border-color: var(--primary); }
.vlog-upload-mark {
  width: 36px;
  height: 36px;
  line-height: 34px;
  border-radius: 999px;
  background: var(--primary-tint, #eef4f1);
  color: var(--primary);
  font-size: 22px;
  font-weight: 500;
}
.vlog-upload strong { font-size: 14px; font-weight: 600; }
.vlog-upload span { font-size: 12px; font-weight: 400; color: var(--on-variant); }
.vlog-upload-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
.vlog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vlog-preview,
.vlog-result {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  background: #fafaf8;
}
.vlog-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}
.vlog-preview ol { margin: 0; padding-left: 18px; }
.vlog-preview li { margin: 6px 0; font-size: 13px; font-weight: 400; }
.vlog-preview li em {
  display: block;
  color: var(--on-variant);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
}
.vlog-prompt {
  margin: 12px 0 0;
  padding: 10px;
  white-space: pre-wrap;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-variant);
}
.vlog-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.vlog-result-clip video {
  width: 100%;
  border-radius: 8px;
  background: #111;
}
.vlog-result-clip figcaption {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.vlog-result-clip .btn { margin-top: 8px; }

.h3p-studio .h3p-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}
.h3p-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
  text-align: left;
  cursor: pointer;
}
.h3p-chip.is-active { border-color: var(--primary); background: var(--primary-tint); }
.h3p-chip strong { font-size: 13px; }
.h3p-chip em {
  font-style: normal;
  font-size: 12px;
  color: var(--on-variant);
  line-height: 1.45;
}
.h3p-upload,
.h3p-field {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
}
.h3p-upload {
  padding: 14px;
  border: 1px dashed var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
  cursor: pointer;
}
.h3p-upload span,
.h3p-field input,
.h3p-field textarea {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--on-variant);
}
.h3p-field input,
.h3p-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--surface-white);
  color: var(--on-surface);
  font: inherit;
}
.h3p-tools,
.h3p-actions,
.h3p-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.h3p-tools span { font-size: 13px; color: var(--on-variant); }
.h3p-result { margin-top: 24px; }
.h3p-result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.h3p-result-head span,
.h3p-summary { color: var(--on-variant); font-size: 13px; }
.h3p-howto {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--on-variant);
  font-size: 13px;
  line-height: 1.55;
}
.h3p-block {
  margin-top: 14px;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  background: var(--paper-bg);
}
.h3p-block header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
}
.h3p-block pre {
  margin: 8px 0 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .vf-hero { padding: 16px; }
  .vf-prompt-tools { flex-wrap: wrap; }
  .vf-selected { order: 4; width: 100%; text-align: left; }
  .vf-prompt-tools .btn { margin-left: auto; }
  .vf-intent-cards,
  .vf-intent-group:nth-child(2) .vf-intent-cards { grid-template-columns: 1fr; }
  .h3p-studio .h3p-starters { grid-template-columns: 1fr; }
  .vf-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf-capability-grid { grid-template-columns: 1fr; }
  .vf-shelf-heading,
  .vf-draft-head,
  .vf-draft-actions { align-items: flex-start; flex-direction: column; }
  .vf-draft-head-actions { width: 100%; justify-content: flex-start; }
  .vf-compliance-head { align-items: flex-start; flex-wrap: wrap; }
  .vf-risk-row { align-items: flex-start; flex-direction: column; }
  .vf-template-detail { grid-template-columns: 1fr; padding-right: 32px; }
  .vf-template-detail > img { width: min(320px, 100%); }
  .vf-template-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .vf-template-grid { grid-template-columns: 1fr; }
  .vf-shelf-nav { overflow-x: auto; }
  .vf-shelf-nav button { white-space: nowrap; }
  .vf-action-grid { grid-template-columns: 1fr; }
  .vf-template-overlay { padding: 10px; }
  .vf-template-modal { max-height: calc(100vh - 20px); padding: 16px; }
  .vf-template-steps ol { grid-template-columns: 1fr; }
  .vf-template-modal .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .vf-template-modal .modal-actions .btn { width: 100%; min-height: 44px; }
}
