#view-broll {
  --kj-bg: #f3f4fa;
  --kj-ink: #1f2337;
  --kj-sub: #66708b;
  --kj-line: #e8eaf3;
  --kj-purple: #5b48d9;
  --kj-purple-d: #3f2fb0;
  --kj-purple-l: #efecff;
  --kj-gradient: linear-gradient(90deg, #19c37d, #0ea5e9);
  --kj-shadow: 0 1px 3px rgba(30, 30, 80, .06), 0 8px 24px rgba(30, 30, 80, .06);
  background: var(--kj-bg);
  color: var(--kj-ink);
  font-size: 14px;
  line-height: 1.55;
  padding: 0;
}

.kj-workspace { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.kj-main { width: 100%; max-width: 1150px; padding: 18px 26px 64px; margin: 0 auto; }
.kj-crumb { color: var(--kj-sub); font-size: 12.5px; margin-bottom: 10px; }
.kj-crumb b { color: var(--kj-ink); }
.kj-title { font-size: 22px; font-weight: 800; }
.kj-subtitle { color: var(--kj-sub); font-size: 13px; margin: 4px 0 16px; }

.kj-stepper, .kj-card {
  background: white;
  border: 1px solid var(--kj-line);
  border-radius: 14px;
  box-shadow: var(--kj-shadow);
  margin-bottom: 16px;
}
.kj-stepper { display: flex; align-items: center; padding: 13px 20px; }
.kj-st { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.kj-st small { display: block; color: var(--kj-sub); font-size: 11px; }
.kj-no { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--kj-gradient); color: white; font-size: 13px; font-weight: 800; }
.kj-st .kj-no { width: 26px; height: 26px; }
.kj-st-line { flex: 1; height: 2px; min-width: 10px; margin: 0 14px; background: var(--kj-gradient); border-radius: 2px; }
.kj-card { padding: 18px; scroll-margin-top: 14px; }
.kj-step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.kj-step-head h2 { font-size: 15px; font-weight: 800; }
.kj-step-sub { color: var(--kj-sub); font-size: 12px; margin: 0 0 14px 34px; }
.kj-tag { display: inline-block; white-space: nowrap; background: var(--kj-purple-l); color: var(--kj-purple-d); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.kj-tag.kj-green { background: #e7f9f0; color: #087446; }
.kj-hint { color: var(--kj-sub); font-size: 12px; }

.kj-chat { position: relative; background: #fbfbfe; border: 1.5px solid var(--kj-line); border-radius: 12px; }
.kj-chat:focus-within { border-color: var(--kj-purple); background: white; box-shadow: 0 0 0 3px rgb(91 72 217 / 8%); }
.kj-chat textarea { width: 100%; min-height: 86px; resize: vertical; border: 0; outline: 0; background: transparent; padding: 14px 14px 4px; font: inherit; color: inherit; }
.kj-chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 10px 10px 14px; }
.kj-chat-bar .kj-btn { padding: 6px 12px; }
.kj-chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0 14px 6px; }
.kj-chips:empty { display: none; }
.kj-chip { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; background: var(--kj-purple-l); border: 1px solid #ddd6ff; color: var(--kj-purple-d); padding: 4px 8px; border-radius: 9px; font-size: 12px; }
.kj-chip a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kj-chip button { flex: none; font: inherit; border: 0; color: inherit; background: #ddd6ff; padding: 1px 5px; border-radius: 5px; cursor: pointer; }
#kj-upload-status { margin-top: 7px; }

.kj-opt-lbl { font-size: 13px; font-weight: 800; margin: 16px 0 8px; }
.kj-param-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kj-pbox { min-width: 0; background: #fbfbfe; border: 1px solid var(--kj-line); border-radius: 11px; padding: 11px 13px; }
.kj-pl { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 800; }
.kj-input { width: 100%; height: 36px; border: 1px solid var(--kj-line); border-radius: 9px; padding: 0 10px; color: inherit; background: white; font: inherit; }
.kj-dstep { display: flex; align-items: center; height: 36px; border: 1px solid var(--kj-line); border-radius: 9px; overflow: hidden; background: white; }
.kj-dstep button { flex: 0 0 32px; height: 100%; border: 0; background: #f6f7fd; color: #4a4f66; font-size: 17px; cursor: pointer; }
.kj-dstep button:hover:not(:disabled) { background: var(--kj-purple-l); }
.kj-dstep input { flex: 1; width: 0; text-align: center; border: 0; background: white; color: inherit; font: inherit; }
.kj-dstep span { padding: 0 7px 0 2px; color: var(--kj-sub); font-size: 11.5px; }
.kj-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.kj-seg label { flex: 1; position: relative; }
.kj-seg input { position: absolute; opacity: 0; }
.kj-seg span { display: block; border: 1.5px solid var(--kj-line); border-radius: 10px; padding: 7px 6px; text-align: center; font-size: 12px; font-weight: 700; color: #4a4f66; background: white; cursor: pointer; }
.kj-seg input:checked + span { border-color: var(--kj-purple); color: var(--kj-purple-d); background: var(--kj-purple-l); box-shadow: 0 0 0 3px rgb(91 72 217 / 8%); }
.kj-seg input:focus-visible + span { outline: 2px solid var(--kj-purple); outline-offset: 2px; }
.kj-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kj-next-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kj-next-row.kj-left { justify-content: space-between; }
.kj-btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; line-height: 1.35; font-family: inherit; font-weight: 700; font-size: 13px; text-align: center; text-decoration: none; cursor: pointer; }
.kj-btn.kj-ghost { border-color: var(--kj-line); background: white; color: #4a4f66; }
.kj-btn.kj-ghost:hover:not(:disabled) { border-color: var(--kj-purple); color: var(--kj-purple); }
.kj-btn.kj-pri { background: linear-gradient(90deg, #6a52ff, #5440d8); color: white; box-shadow: 0 6px 16px rgb(91 72 217 / 24%); }
.kj-btn:disabled, .kj-dstep button:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.kj-feedback { background: linear-gradient(90deg, #efecff, #e9f7ff); border: 1px solid #ddd6ff; border-radius: 12px; padding: 10px 14px; margin-top: 12px; color: #4a4468; font-size: 12.5px; }

.kj-prompt { border: 1px solid var(--kj-line); border-radius: 12px; margin-top: 12px; }
.kj-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(0, .5fr) minmax(0, .5fr) minmax(0, .8fr); border-bottom: 1px solid var(--kj-line); }
#kj-shots > :last-child { border-bottom: 0; }
.kj-row.kj-head { border-radius: 12px 12px 0 0; background: #f6f7fd; font-size: 12px; font-weight: 800; color: #5a6078; }
.kj-head > div, .kj-time, .kj-cell { padding: 8px 10px; }
.kj-time { display: flex; flex-direction: column; justify-content: center; gap: 3px; background: #fafaff; color: var(--kj-purple-d); font-size: 12.5px; font-weight: 800; }
.kj-time small { color: var(--kj-sub); font-size: 10.5px; font-weight: 600; }
.kj-cell { position: relative; min-width: 0; }
.kj-cell textarea { display: block; width: 100%; min-height: 54px; resize: vertical; padding: 6px; border: 1px solid var(--kj-line); border-radius: 7px; color: inherit; background: white; font: inherit; font-size: 12px; }
.kj-cell textarea:focus, .kj-input:focus { outline: 1px solid var(--kj-purple); }
.kj-cell.kj-speech .kj-mentions { right: 4px; left: auto; }
.kj-empty { padding: 20px 12px; text-align: center; color: var(--kj-sub); font-size: 12px; }
.kj-mentions { position: absolute; z-index: 10; left: 8px; bottom: calc(100% - 6px); width: min(280px, 78vw); max-height: 190px; overflow: auto; background: white; border: 1px solid var(--kj-line); border-radius: 11px; box-shadow: var(--kj-shadow); }
.kj-chat > .kj-mentions { left: 14px; bottom: 54px; }
.kj-mentions p { background: #f6f7fd; padding: 6px 12px; color: var(--kj-sub); font-size: 11px; font-weight: 700; }
.kj-mentions button { display: block; width: 100%; text-align: left; padding: 7px 12px; border: 0; color: inherit; background: white; font: inherit; font-size: 12px; overflow-wrap: anywhere; cursor: pointer; }
.kj-mentions button:hover, .kj-mentions button.kj-selected { background: var(--kj-purple-l); }

.kj-summary dd { color: var(--kj-purple-d); font-weight: 800; }
.kj-cost { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; background: #fff6e6; border: 1px solid #ffe2b0; border-radius: 12px; padding: 10px 14px; margin-top: 16px; color: #7a5200; font-size: 12.5px; }
.kj-cost b { font-size: 14px; }
.kj-progress { margin-top: 13px; font-size: 12px; color: var(--kj-sub); }
.kj-progress progress { width: 100%; height: 9px; accent-color: #12b76a; }
.kj-video-card { max-width: 480px; border: 1px solid var(--kj-line); border-radius: 12px; overflow: hidden; }
.kj-video-card video { display: block; width: 100%; max-height: 420px; background: #1e1b2e; }
.kj-video-meta { padding: 10px 12px; }
.kj-res-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kj-history {
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  margin: 18px 26px 16px 0;
  padding: 16px 14px;
  background: white;
  border: 1px solid var(--kj-line);
  border-radius: 14px;
  box-shadow: var(--kj-shadow);
}
.kj-history h2 { font-size: 13.5px; font-weight: 800; }
.kj-hd-date { color: var(--kj-sub); font-size: 11px; margin: 4px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--kj-line); }
.kj-history-list { max-height: 65vh; overflow: auto; }
.kj-history-item { display: block; text-align: left; width: 100%; padding: 9px 11px; margin-bottom: 8px; border-radius: 11px; border: 1px solid var(--kj-line); background: #fbfbfe; font: inherit; color: inherit; cursor: pointer; }
.kj-history-item:hover { background: var(--kj-purple-l); }
.kj-history-item strong { display: block; font-size: 12px; }
.kj-history-item small { color: var(--kj-sub); font-size: 11px; }
.kj-history-view { display: block; margin-top: 4px; color: var(--kj-purple-d); font-size: 11px; font-weight: 700; }
.kj-history .kj-empty { border: 1px dashed var(--kj-line); border-radius: 11px; }
.kj-history-pages:not([hidden]) { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; }
.kj-history-pages .kj-btn { padding: 5px 8px; font-size: 11.5px; white-space: nowrap; }
#kj-history-page { color: var(--kj-sub); font-size: 11.5px; }
.kj-history-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.kj-history-foot .kj-btn { flex: 1; padding: 6px 8px; font-size: 11.5px; white-space: nowrap; }

.kj-history-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(12px, 4vw, 20px);
  border: 1px solid var(--kj-line);
  border-radius: 14px;
  color: var(--kj-ink);
  box-shadow: var(--kj-shadow);
}
.kj-history-dialog::backdrop { background: rgb(31 35 55 / 48%); }
.kj-history-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.kj-history-dialog-head h2 { font-size: 16px; }
.kj-history-dialog-status { margin: 8px 0 12px; overflow-wrap: anywhere; }
.kj-history-dialog .kj-video-card { max-width: none; }
.kj-history-dialog video { max-height: min(50dvh, 420px); }
.kj-history-storyboard { margin-top: 16px; }
.kj-history-storyboard h3 { font-size: 14px; margin-bottom: 6px; }
.kj-history-shots { list-style: none; }
.kj-history-shots li { border: 1px solid var(--kj-line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.kj-history-shots h4 { font-size: 12px; color: var(--kj-purple-d); margin-bottom: 6px; }
.kj-history-shots dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; }
.kj-history-shots dt { color: var(--kj-sub); }
.kj-history-shots dd { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .kj-workspace { grid-template-columns: minmax(0, 1fr) 236px; }
  .kj-main { padding: 16px; }
  .kj-history { margin: 16px 16px 16px 0; }
}
@media (max-width: 1000px) {
  .kj-workspace { grid-template-columns: minmax(0, 1fr); }
  .kj-history { position: static; margin: 0 16px 16px; }
}
@media (max-width: 630px) {
  .kj-main { padding: 12px; }
  .kj-history { margin-inline: 12px; }
  .kj-card { padding: 12px; }
  .kj-stepper { padding: 10px; }
  .kj-st { gap: 4px; font-size: 11px; }
  .kj-st small, .kj-row.kj-head { display: none; }
  .kj-st-line { margin: 0 4px; }
  .kj-param-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kj-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kj-time, .kj-cell.kj-picture, .kj-cell.kj-speech { grid-column: 1 / -1; }
  .kj-cell.kj-tone .kj-mentions { right: 4px; left: auto; }
}
