@font-face { font-family: "Pretendard"; font-weight: 400; src: url("fonts/Pretendard-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 500; src: url("fonts/Pretendard-Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 600; src: url("fonts/Pretendard-SemiBold.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 700; src: url("fonts/Pretendard-Bold.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Pretendard"; font-weight: 800; src: url("fonts/Pretendard-ExtraBold.otf") format("opentype"); font-display: swap; }

:root {
  --paper: #e9edf1;
  --panel: #ffffff;
  --ink: #14213d;
  --slate: #56657a;
  --rule: #cad2dc;
  --signal: #ffd43b;   /* the caption highlight colour in the rendered shorts */
  --sky: #7fe3ff;      /* the keyword colour in the rendered shorts */
  --alert: #b4441c;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
[hidden], .ed-panel[hidden], .check[hidden], .size-box[hidden], .sound-box[hidden], .broll-box[hidden], .br-tools[hidden], .hint[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 "Pretendard", system-ui, sans-serif;
  font-feature-settings: "tnum";
  min-height: 100vh;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--ink); color: #fff;
}
.brand { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand::before {               /* a tiny 9:16 frame with a caption bar */
  content: ""; display: inline-block; width: 11px; height: 19px; margin-right: 10px; vertical-align: -3px;
  border: 2px solid #fff; border-radius: 2px;
  background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 74%, transparent 74%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); background: var(--panel); border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer; text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn.primary:hover { filter: brightness(0.96); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--slate); }
.btn.quiet:hover { color: var(--ink); border-color: var(--rule); }
.btn.danger:hover { color: var(--alert); border-color: var(--alert); }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.top-actions { display: flex; gap: 8px; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.on-dark:hover { border-color: #fff; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); }
.projects { border-right: 1px solid var(--rule); padding: 16px 12px; background: #f3f5f8; }
.projects ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.projects li button {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: pointer; display: grid; gap: 2px;
}
.projects li button:hover { background: #e3e8ee; }
.projects li button[aria-current="true"] { background: var(--panel); box-shadow: inset 3px 0 0 var(--ink); }
.projects .p-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projects .p-sub { font-size: 13px; color: var(--slate); }
.projects .p-sub.err { color: var(--alert); }
.empty-side { color: var(--slate); font-size: 14px; padding: 8px 12px; }
main { padding: 28px 32px 64px; min-width: 0; }

.welcome { max-width: 62ch; padding-top: 40px; }
.welcome h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.welcome p { color: var(--slate); margin: 0 0 22px; }

.job-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.job-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; word-break: break-all; }
.meta { color: var(--slate); font-size: 14px; margin: 4px 0 0; }
.meta b { color: var(--ink); font-weight: 600; }
.note { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #FFF4C2; color: #5A4500; font-size: 13px; line-height: 1.5; max-width: 760px; word-break: break-all; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.bar { height: 8px; background: #d7dee6; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }
.progress-block { max-width: 640px; margin: 8px 0 24px; }
.progress-block p { margin: 8px 0 0; color: var(--slate); font-size: 14px; }
.error { color: var(--alert); background: #fbeee8; padding: 10px 14px; border-radius: var(--radius-sm); }

/* ---------- the source ribbon: the whole talk with the picked clips ---------- */
.ribbon { margin: 0 0 26px; }
.ribbon-track {
  position: relative; height: 56px; background: var(--ink); border-radius: var(--radius-sm); overflow: hidden;
}
.ribbon-track .tick { position: absolute; bottom: 0; width: 1px; background: rgba(255,255,255,.22); }
.ribbon-track .span {
  position: absolute; top: 8px; bottom: 8px; background: var(--signal); border-radius: 3px; border: 0;
  color: var(--ink); font-weight: 800; font-size: 12px; cursor: pointer; padding: 0 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-width: 6px;
}
.ribbon-track .span.manual { background: var(--sky); }
.ribbon-track .span:hover { filter: brightness(1.08); }
.ribbon-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); margin-top: 4px; }

/* ---------- clips ---------- */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.clip { background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--rule); }
.clip.flash { outline: 3px solid var(--signal); }
.frame { position: relative; aspect-ratio: 9 / 16; background: #0f1830; }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .state {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; font-size: 14px;
}
.frame .state .bar { width: 70%; margin: 10px auto 0; background: rgba(255,255,255,.2); }
.frame .state .bar span { background: var(--signal); }
.clip-body { padding: 14px 14px 12px; display: grid; gap: 6px; flex: 1; }
.clip-top { display: flex; gap: 10px; align-items: baseline; }
.score { white-space: nowrap; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.score small { font-size: 12px; font-weight: 600; color: var(--slate); margin-left: 2px; }
.clip-title { font-weight: 700; line-height: 1.35; }
.clip-meta { font-size: 13px; color: var(--slate); }
.clip-reason { font-size: 13px; color: var(--slate); margin: 0; }
.clip-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }

/* ---------- dialogs ---------- */
.dlg { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, 94vw); color: var(--ink); }
.dlg::backdrop { background: rgba(20, 33, 61, .55); }
.dlg form { padding: 22px 24px; display: grid; gap: 16px; }
.dlg h3 { font-size: 20px; font-weight: 800; }
.dlg label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.dlg label small { font-weight: 400; color: var(--slate); }
.dlg input:not([type=checkbox]):not([type=file]), .dlg select, .dlg textarea {
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; font-weight: 400; width: 100%;
}
.dlg textarea { font-size: 15px; line-height: 1.7; resize: vertical; }
.check { display: flex !important; grid-template-columns: none; gap: 8px; align-items: center; font-weight: 500 !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop {
  border: 2px dashed var(--rule); border-radius: var(--radius-lg); padding: 30px 16px; text-align: center; cursor: pointer;
  color: var(--slate); font-weight: 500 !important; position: relative;
}
.drop.over, .drop:hover { border-color: var(--ink); color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dlg-actions, .ed-actions { display: flex; justify-content: space-between; gap: 8px; }
.up-progress p { margin: 6px 0 0; font-size: 13px; color: var(--slate); }

.editor { width: min(1240px, 96vw); height: 94vh; overflow: hidden; }
.editor[open] { display: flex; flex-direction: column; }
.ed-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.ed-body { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; }
.ed-source { padding: 18px 22px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; }
.ed-source video { flex: none; max-height: 34vh; object-fit: contain; }
.ed-source .transcript { flex: 1; min-height: 0; overflow: auto; padding-bottom: 18px; }
.ed-text { padding: 18px 22px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.ed-source video { width: 100%; background: #000; border-radius: var(--radius-sm); aspect-ratio: 16/9; }
.range { display: grid; gap: 8px; margin: 12px 0 14px; justify-items: start; }
.range-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.range-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.range-row .lbl { width: 32px; font-weight: 700; }
#editDlg .range-row input { width: 96px; padding: 5px 8px; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 5px 8px; }
.ed-source h4 { font-size: 15px; margin-bottom: 2px; }
.hint { font-size: 13px; color: var(--slate); margin: 0 0 8px; }
.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.transcript li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; align-items: start; }
.transcript li:hover { background: #f1f4f7; }
.transcript li.in { background: #fff6cc; }
.transcript li.dir span:nth-child(2)::after { content: "촬영 지시"; margin-left: 6px; font-size: 12px; color: var(--alert); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.transcript .t { color: var(--slate); font-size: 12px; padding-top: 2px; }
.transcript .pick { display: none; gap: 4px; }
.transcript li:hover .pick, .transcript li:focus-within .pick { display: flex; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .projects { border-right: 0; border-bottom: 1px solid var(--rule); }
  main { padding: 20px 16px 48px; }
  .ed-body { grid-template-columns: 1fr; grid-template-rows: auto; overflow: auto; }
  .ed-source, .ed-text { overflow: visible; display: block; }
  .ed-source .transcript { max-height: 60vh; }
  .ed-source { border-right: 0; border-bottom: 1px solid var(--rule); }
  .job-head { flex-direction: column; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

.trend-dlg { width: min(760px, 94vw); }
.trend-dlg h4 { margin: 18px 0 6px; font-size: 14px; }
.trend-list { margin: 0; padding-left: 20px; max-height: 220px; overflow: auto; font-size: 13px; line-height: 1.5; }
.trend-list li { margin: 0 0 6px; }
.trend-list .meta { display: block; font-size: 12px; margin: 0; }
.trend-list a { color: var(--ink); }
ul.trend-list { list-style: none; padding-left: 0; }
.dlg-actions.left { justify-content: flex-start; margin-top: 8px; }

.size-box { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.size-prev { position: relative; width: 180px; height: 320px; border-radius: 10px; overflow: hidden;
  background: #000 center / cover no-repeat; box-shadow: 0 0 0 1px var(--rule); }
.sp-cap { position: absolute; left: 4px; right: 4px; transform: translateY(-50%); text-align: center; white-space: nowrap;
  font-family: "Pretendard", sans-serif; font-weight: 800; color: #fff; line-height: 1.1;
  paint-order: stroke fill; -webkit-text-stroke: 2px #000; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.sp-cap .hl { color: #FFD43B; }
.sp-title { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap;
  font-family: "Pretendard", sans-serif; font-weight: 900; line-height: 1.22; }
.sp-title.box { background: #FFD43B; }
.sp-title.plain { -webkit-text-stroke: .5px #000; paint-order: stroke fill; }
.sp-title span { display: block; }
.title-style { display: grid; gap: 8px; }
.color-rows { display: grid; gap: 6px; }
.color-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); }
.color-row input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: none; }
.color-row .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0003; cursor: pointer; padding: 0; }
.size-ctl { display: grid; gap: 10px; }
.size-ctl output { font-weight: 700; color: var(--ink); margin-left: 6px; }
.size-ctl input[type=range] { width: 100%; padding: 0; border: 0; background: none; accent-color: #FFD43B; height: 24px; }
.color-row > span { white-space: nowrap; min-width: 40px; }
.ed-text .color-row input[type=color] { flex: none; width: 36px !important; height: 28px !important; padding: 2px !important;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff; cursor: pointer; }
.color-row .sw { flex: none; }

.ai-words { margin-top: 12px; font-size: 13px; }
.ai-words summary { cursor: pointer; color: var(--slate); }
.ai-words textarea { width: 100%; margin-top: 6px; font-size: 12px; }
.trend-list .meta .btn { margin-left: 6px; padding: 1px 8px; font-size: 11px; }

.broll-box { border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 10px; }
.broll-box h4 { margin: 0; }
.br-m { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.br-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.br-head .t { font-weight: 700; white-space: nowrap; }
.br-head .x { flex: 1; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-q { display: flex; gap: 6px; }
.br-q input { flex: 1; min-width: 0; }
.br-q select { width: auto; }
.br-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.br-c { position: relative; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 16/10; }
.br-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-c.on { border-color: #FFD43B; }
.br-c .v { position: absolute; right: 4px; bottom: 3px; font-size: 10px; color: #fff; background: #000a; padding: 0 4px; border-radius: 4px; }
.br-tools { display: flex; gap: 6px; }

.gpu-chip { font-weight: 600; font-size: 13px; }
.gpu-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #8a94a6; vertical-align: middle; }
.gpu-chip.on::before { background: #4ade80; }
.gpu-chip.busy::before { background: #FFD43B; }
.br-c .n { position: absolute; left: 4px; top: 3px; font-size: 11px; font-weight: 800; color: #14213D; background: #FFD43B; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; }

.sound-box { border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 10px; }
.sound-box h4 { margin: 0; }
.sd-item { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
.sd-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; font-size: 12px; padding: 6px; border-radius: 8px; }
.sd-row.on { background: #FFF4C2; }
.sd-row .ti { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-row .ti small { color: var(--slate); }
.sd-row audio { grid-column: 1 / -1; width: 100%; height: 30px; }
.sd-vol { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate); }
.sd-vol input { flex: 1; padding: 0; border: 0; background: none; accent-color: #FFD43B; }
.ed-text .sd-vol { display: flex !important; grid-template-columns: none; font-weight: 500; }
.ed-text .sd-vol output { min-width: 36px; text-align: right; }

/* editor tabs */
.ed-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: -4px 0 4px; position: sticky; top: -18px; background: var(--panel); z-index: 2; padding-top: 4px; }
.ed-tab { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; }
.ed-tab.on { color: var(--ink); border-bottom-color: #3b82f6; }
.ed-panel { display: grid; gap: 14px; align-content: start; }

/* text-based word editor (dark, like a subtitle tool) */
.wx { background: #171b24; color: #e6e9ef; border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.wx-find { border: 1px solid #2c3342; border-radius: 10px; padding: 10px; display: grid; gap: 8px; background: #1d2230; }
.wx-row { display: flex; gap: 8px; align-items: center; }
.wx-row input { flex: 1; min-width: 0; background: #12161f !important; color: #e6e9ef !important; border: 1px solid #343c4d !important; border-radius: 8px; padding: 8px 10px; }
.wx-row input::placeholder { color: #7d8597; }
.wx-ico { color: #8a93a6; font-size: 16px; margin-right: -4px; }
.wx-count { font-size: 12px; color: #8a93a6; min-width: 36px; text-align: right; }
.wx-btn { background: #262d3b; color: #cfd5e1; border: 1px solid #343c4d; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wx-btn:hover:not(:disabled) { background: #2f3747; }
.wx-btn:disabled { opacity: .45; cursor: default; }
.wx-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.wx-btn.danger { background: #7f1d1d; border-color: #991b1b; color: #fde2e2; }
.wx-note { font-size: 12px; color: #8a93a6; margin: 0; }
.wx-export { border: 1px solid #2c3342; border-radius: 10px; background: #1d2230; }
.wx-export summary { list-style: none; cursor: pointer; padding: 10px; text-align: center; font-weight: 700; color: #e6e9ef; }
.wx-export summary::-webkit-details-marker { display: none; }
.wx-menu { display: grid; border-top: 1px solid #2c3342; }
.wx-menu a, .wx-menu label { padding: 10px 14px; color: #cfd5e1; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 500; display: block !important; }
.wx-menu a:hover, .wx-menu label:hover { background: #262d3b; }
.wx-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wx-tools #wxSel { flex: 1; font-size: 13px; color: #aab2c2; }
.wx-words { line-height: 2.3; font-size: 15px; outline: none; max-height: 52vh; overflow: auto; padding: 4px 2px; }
.wx-w { display: inline-block; padding: 0 7px; margin: 0 2px; border-radius: 6px; cursor: pointer; user-select: none; color: #e6e9ef; }
.wx-w:hover { background: #262d3b; }
.wx-w.sel { background: #2563eb; color: #fff; }
.wx-w.hit { box-shadow: inset 0 -2px 0 #FFD43B; }
.wx-w.hit.cur { background: #5b4a12; }
.wx-w.chg { color: #7FE3FF; }
.wx-w.del { color: #f87171; text-decoration: line-through; opacity: .6; }
.wx-w.del.sel { background: #7f1d1d; color: #fde2e2; opacity: 1; }
.wx-sep { color: #5b6476; margin: 0 6px; }
.wx-part { display: block; font-size: 11px; color: #8a93a6; margin: 6px 0 -4px; letter-spacing: .02em; }
.wx-empty { color: #8a93a6; font-size: 13px; margin: 0; }

/* ---------- blog ---------- */
.blog-dlg { width: min(860px, 96vw); }
.blog-head { display: flex; justify-content: space-between; align-items: center; }
.blog-in { display: grid; gap: 12px; }
.blog-copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.blog-title { width: 100%; font-size: 20px !important; font-weight: 800; margin: 8px 0; }
.blog-preview { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 18px 22px; max-height: 60vh; overflow: auto;
  font-size: 16px; line-height: 1.8; background: #fff; }
.blog-preview p { margin: 0 0 12px; }
.blog-preview .pic { position: relative; text-align: center; }
.blog-preview .pic img { max-width: 100%; max-height: 360px; border-radius: 6px; }
.blog-preview .pic::before { content: "사진 " attr(data-n); position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.blog-preview .video a { color: #0b6bcb; }
.note.err { background: #fde7df; color: var(--alert); }
.rv-changes { margin: 4px 0 12px 18px; font-size: 14px; line-height: 1.7; }
#rvNewBody { width: 100%; }
.blog-preview .cap { color: var(--slate); font-size: 14px; margin-top: -6px; }

/* ---------- storyboard ---------- */
.sb-box { display: grid; gap: 10px; }
.sb-box textarea, .sb-box input:not([type=checkbox]) { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; }
.sb-box label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.sb-box label.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.sb-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.sb-rows th { text-align: left; color: var(--slate); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--rule); }
.sb-rows td { padding: 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sb-rows td:first-child { white-space: nowrap; font-weight: 700; }
.sb-rows select { font-size: 13px; padding: 3px; }
.sb-rows .hint { font-size: 12px; margin-top: 3px; }
#sbDoc { display: grid; gap: 8px; }
#sbDoc[hidden], .sb-rows[hidden] { display: none; }

/* ---------- editing brief ---------- */
.brief-help { margin: 0 0 0 18px; line-height: 1.6; }
#briefText { width: 100%; font-size: 13px; line-height: 1.5; }
.brief-warn { margin: 0 0 8px 18px; color: var(--alert); font-size: 14px; line-height: 1.6; }
.brief-rep { margin: 0 0 0 18px; font-size: 14px; line-height: 1.6; display: grid; gap: 8px; }
.brief-rep .said { color: var(--ink); }
.brief-rep .ok { color: #2e7d4f; }
.brief-rep .bad { color: var(--alert); }
#briefOut[hidden] { display: none; }
.ov-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.ov-list li { display: flex; gap: 6px; align-items: center; }
.ov-list input { flex: 1; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 6px 8px; }
#ovBox[hidden] { display: none; }
.brief-rep .cut { color: #8a5a00; }

/* automatic sync/caption check + AI caption fix, under each clip */
.check-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.chk { font-size: 12px; color: var(--slate); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 2px 6px; }
.chk.ok { color: #2f6f3e; border-color: #2f6f3e; }
.chk.bad { color: var(--alert); border-color: var(--alert); }
