/* 검수 웹 — 화면 시안 기본안 A (docs/design/review-web) 를 옮긴 스타일.
   영상 판단을 위해 어두운 QC 콘솔 한 가지 테마만 쓴다. 호박색은 승인할 수 있는 경고, 빨강은 멈춘 상태. */

:root {
  --ground: #111418;
  --panel: #181c21;
  --raised: #20252b;
  --topbar: #0c0e11;
  --monitor: #07080a;
  --line: #2c3239;
  --line-soft: #22272d;
  --line-strong: #3a424b;
  --line-focus: #56606b;
  --text: #e7eaee;
  --dim: #9ba4ae;
  --faint: #8a939d;
  --cue: #9fc3ff;
  --steel: #c9d4df;
  --red: #e5484d;
  --red-text: #ff8a8e;
  --red-soft: #ffc2c4;
  --amber: #f2a33a;
  --amber-soft: #ffd9a0;
  --green: #46c07a;
  --green-ink: #06140c;
  --font-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-tc: "B612 Mono", "IBM Plex Mono", "IBM Plex Sans KR", "Malgun Gothic", Consolas, monospace;
  --font-cap: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* ★ display를 정해 둔 자리에서는 브라우저 기본 [hidden]이 먹지 않는다(클래스 선택자가 더 세다).
   09/21에 .clip-preview에서 겪었다 — 자리마다 고치지 말고 여기서 한 번에 막는다. */
[hidden] { display: none !important; }
/* 한국어는 어절 단위로 줄을 바꾼다 (기본값은 음절 사이에서도 끊겨 "않았습니 / 다."처럼 된다). */
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--cue); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cue); outline-offset: 2px; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.tc { font-family: var(--font-tc); font-variant-numeric: tabular-nums; }
.cap { font-family: var(--font-cap); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.grow { flex: 1 1 0; }
.icon { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* 상단 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 32px; background: var(--topbar); border-bottom: 1px solid var(--line); }
.brand { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.account { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--dim); }
.account a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); }
.account > * { white-space: nowrap; }
.topbar-left { display: flex; align-items: center; gap: 28px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; height: 52px; padding: 0 12px; font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--cue); }
/* 전체 관리자는 메뉴가 둘 더 있다(D-109) — 좁은 화면(노트북 1024 등)에서 메뉴 글자가 두 줄로 꺾이지 않게 조금 좁힌다 */
@media (max-width: 1100px) { .topbar-left { gap: 16px; } .topnav a { padding: 0 8px; } .account { gap: 14px; } }
.proto-banner { display: flex; align-items: center; gap: 10px; padding: 8px 32px; background: rgba(159, 195, 255, 0.08); border-bottom: 1px solid rgba(159, 195, 255, 0.25); font-size: 12.5px; color: var(--cue); }
.proto-banner strong { font-weight: 700; }
/* 실제 데이터를 보여 주는 화면(수집 현황)은 시안 배너와 색을 달리한다. */
.proto-banner--live { background: rgba(70, 192, 122, 0.08); border-bottom-color: rgba(70, 192, 122, 0.3); color: var(--green); }

/* 상태 표시 */
.tally { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 8px; background: var(--raised); border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lamp { width: 8px; height: 8px; background: var(--steel); box-shadow: 0 0 6px rgba(201, 212, 223, 0.6); }
.tally--red { background: rgba(229, 72, 77, 0.12); border-color: rgba(229, 72, 77, 0.6); color: var(--red-text); }
.tally--red .lamp, .lamp--red { background: var(--red); box-shadow: 0 0 6px rgba(229, 72, 77, 0.7); }
.tally--amber { background: rgba(242, 163, 58, 0.12); border-color: rgba(242, 163, 58, 0.55); color: var(--amber); }
.tally--amber .lamp, .lamp--amber { background: var(--amber); box-shadow: 0 0 6px rgba(242, 163, 58, 0.7); }
.tally--green { background: rgba(70, 192, 122, 0.12); border-color: rgba(70, 192, 122, 0.55); color: var(--green); }
.tally--green .lamp, .lamp--green { background: var(--green); box-shadow: 0 0 6px rgba(70, 192, 122, 0.7); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; background: var(--raised); color: var(--steel); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip--amber { background: rgba(242, 163, 58, 0.14); color: var(--amber); }
.chip--amber::before { content: ""; width: 6px; height: 6px; background: var(--amber); }
.chip--green { background: rgba(70, 192, 122, 0.14); color: var(--green); }
.chip--red { background: rgba(229, 72, 77, 0.14); color: var(--red-text); }

/* 페이지 머리 */
.page-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 32px 22px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; font-size: 13px; color: var(--dim); }
.head-body { display: flex; flex-direction: column; gap: 10px; }
.head-status { display: flex; align-items: center; gap: 14px; }
.head-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--dim); }

/* 목록 */
.page { display: flex; flex-direction: column; gap: 18px; padding: 24px 32px 40px; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.list-tools { display: flex; align-items: center; gap: 14px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--text); font-size: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); color: var(--dim); font-size: 14px; font-weight: 500; }
.tab:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }
.tab[aria-current="page"] { background: var(--raised); border-color: var(--line-focus); color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
.table th { height: 40px; padding: 0 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { height: 68px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.row-title { display: flex; flex-direction: column; gap: 3px; }
.row-title a { font-size: 15px; font-weight: 600; color: var(--text); }
.row-title span { font-size: 12.5px; color: var(--faint); }
.reason { font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.empty { padding: 40px; text-align: center; color: var(--faint); }

/* 상세 배치 */
.detail { display: flex; align-items: flex-start; gap: 24px; padding: 24px 32px 40px; }
.detail-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rail { flex: 0 0 400px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) {
  .detail { flex-direction: column; }
  .rail { flex-basis: auto; width: 100%; }
}

/* 영상 모니터 */
.monitor { display: flex; flex-direction: column; background: var(--monitor); border: 1px solid var(--line); }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #8fa3a8; }
.frame > svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-band { position: absolute; left: 0; top: 0; bottom: 0; width: 18.75%; background: rgba(9, 11, 14, 0.62); }
.ov-logo { position: absolute; left: 2.2%; top: 4.2%; display: flex; align-items: center; justify-content: center; width: 12.5%; height: 7%; border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.ov-credit { position: absolute; right: 2.4%; top: 4.6%; font-family: var(--font-cap); font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.ov-anchor { position: absolute; left: 1.9%; top: 26%; width: 15%; height: 55.6%; }
.ov-badge { position: absolute; left: 3.1%; top: 83.5%; display: flex; align-items: center; justify-content: center; width: 12.5%; height: 5.4%; background: #fff; color: #111418; font-family: var(--font-cap); font-size: 11px; font-weight: 700; }
.ov-missing { position: absolute; left: 2.4%; top: 82.4%; width: 13.9%; height: 7.6%; border: 2px dashed var(--red); background: rgba(229, 72, 77, 0.12); }
.ov-missing-tag { position: absolute; left: 2.4%; top: 91.2%; padding: 1px 6px; background: var(--red); color: #1a1206; font-size: 11px; font-weight: 700; }
.ov-sub { position: absolute; left: 18.75%; right: 0; bottom: 9%; display: flex; align-items: center; min-height: 12%; padding: 0 3%; background: rgba(9, 11, 14, 0.84); color: #fff; font-family: var(--font-cap); font-size: clamp(12px, 1.6vw, 19px); font-weight: 700; letter-spacing: -0.01em; }
.ov-slogan { position: absolute; right: 2.4%; bottom: 2.6%; font-family: var(--font-cap); font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.transport { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; border-top: 1px solid #1b1f24; }
.play { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--text); color: var(--monitor); border: 0; cursor: pointer; }
.tc-now { font-size: 18px; }
.tc-total, .fmt { font-size: 12px; color: var(--faint); }
.fmt { font-size: 11px; }
.timeline { position: relative; display: flex; gap: 2px; padding: 0 16px 14px; }
.seg { display: flex; align-items: center; height: 18px; padding-left: 5px; background: var(--line); color: var(--faint); font-size: 10px; }
.seg--current { background: var(--line-focus); color: var(--text); }
.seg--warn { background: rgba(242, 163, 58, 0.3); box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); }
.playhead { position: absolute; top: -4px; width: 2px; height: 26px; background: #fff; }
.marks { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 12px; }
.marks-track { position: relative; height: 16px; }
.marks-track .bar { position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: var(--line); }
.marks-track .done { position: absolute; left: 0; top: 6px; height: 4px; background: var(--line-focus); }
.marks-track .head { position: absolute; top: 0; width: 2px; height: 16px; background: #fff; }
.marks-track .mark { position: absolute; top: 3px; width: 10px; height: 10px; transform: translateX(-5px) rotate(45deg); }
.mark--ok { background: var(--green); }
.mark--miss { background: var(--red); }
.legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; transform: rotate(45deg); }

/* 영상 없음 (차단) */
.slate { display: flex; flex-direction: column; justify-content: center; gap: 22px; width: 100%; aspect-ratio: 16 / 9; padding: 0 64px; background: repeating-linear-gradient(135deg, #0b0d10 0 14px, #0f1215 14px 28px); border: 1px solid var(--line); }
.slate-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--red-text); }
.slate-title { max-width: 24em; font-size: clamp(18px, 2vw, 26px); line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }
.slate-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.slate-stats div { display: flex; flex-direction: column; gap: 4px; }
.slate-stats span:first-child { font-size: 12px; color: var(--faint); }
.slate-stats span:last-child { font-size: 24px; }

/* 패널 */
.panel { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); }
.panel--quiet { gap: 6px; background: #14171b; border-color: var(--line-soft); }
.panel--quiet h2, .panel--quiet .dim { color: var(--faint); }
.panel--red { border-color: rgba(229, 72, 77, 0.55); }
.panel--green { border-color: rgba(70, 192, 122, 0.7); }
.panel--focus { gap: 14px; padding-bottom: 18px; border-color: var(--line-focus); }
.panel--org { scroll-margin-top: 16px; }  /* 회원 관리 고객사별 — 요약 표 · 고객사 심사에서 #org-N으로 건너온다 (D-139) */
.panel--org:target { border-color: var(--line-focus); }
.panel-head--wrap { flex-wrap: wrap; }  /* 좁은 화면에서는 설명을 제목 아래로 — 제목이 눌리지 않게 */
.table--team { table-layout: fixed; min-width: 1090px; }  /* 고객사마다 표의 열이 같은 자리에 오게 · 좁으면 칸 안에서 밀린다 */
.table--team td { overflow-wrap: anywhere; }
.role-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }  /* 전체 관리자의 역할 바꾸기 (D-140) */
.role-form select { min-height: 32px; padding: 0 8px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); }
.role-help ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
/* 전체 관리자의 잠김 풀기 (D-143) — 회원 상세는 단추 + 설명, 목록은 상태 칩 아래 한 줄 */
.unlock-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.unlock-form .note { flex: 1 1 260px; }
.unlock-form--cell { gap: 6px; flex-wrap: nowrap; margin-top: 4px; font-size: 12.5px; white-space: nowrap; }
/* 어느 고객사 작업인가 — 전체 관리자의 검수 목록 · 상세 (D-141) */
.holder { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.holder--inline { flex-direction: row; align-items: center; gap: 6px; }
.holder-src { font-size: 11.5px; color: var(--faint); }
.chip--org { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { display: flex; flex-direction: column; gap: 2px; }
.eyebrow { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }
.boxed { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--raised); }
.boxed-label { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; }
.hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.hit .phrase-warn { font-weight: 600; color: var(--amber-soft); }
.hit .phrase-block { font-weight: 600; color: var(--red-soft); }
.note { font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.kv > span:first-child { color: var(--dim); }
.ok { color: var(--green); font-weight: 600; }
.bad { color: var(--red-text); font-weight: 600; }
.divided { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* 배지 검사 지점 */
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.point { display: flex; align-items: center; gap: 12px; }
.crop { position: relative; flex: 0 0 64px; height: 36px; overflow: hidden; background: #3b4652; box-shadow: inset 0 0 0 1px rgba(70, 192, 122, 0.8); }
.crop::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 72%; background: rgba(9, 11, 14, 0.62); }
.crop::after { content: ""; position: absolute; left: 10%; top: 30%; width: 54%; height: 40%; background: #fff; }
.crop--miss { box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.9); }
.crop--miss::after { background: transparent; border: 1.5px dashed var(--red); }
.point .tc { font-size: 12px; }
.point .label { font-size: 11.5px; color: var(--faint); }
.point .status { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.5px; font-weight: 600; }

/* 대본 */
.script { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.script-head { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.script-head h2 { font-size: 14px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--dim); }
.swatch i { width: 14px; height: 9px; }
.swatch--warn i { background: rgba(242, 163, 58, 0.4); box-shadow: inset 0 -2px 0 var(--amber); }
.swatch--block i { background: rgba(229, 72, 77, 0.35); box-shadow: inset 0 -2px 0 var(--red); }
.sentences { list-style: none; margin: 0; padding: 0; }
.sentence { display: flex; align-items: baseline; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.sentence:last-child { border-bottom: 0; }
.sentence .num { flex: 0 0 16px; font-size: 12px; color: var(--faint); }
.sentence .start { flex: 0 0 96px; font-size: 12px; color: var(--faint); }
.sentence .text { flex: 1 1 0; min-width: 0; font-size: 15px; line-height: 1.6; }
.sentence .tag { flex: 0 0 auto; font-size: 12px; font-weight: 600; }
.sentence--current { background: var(--raised); }
.sentence--current .num, .sentence--current .start { color: var(--text); }
.sentence--block { background: rgba(229, 72, 77, 0.06); }
.sentence--block .num, .tag--block { color: var(--red-text); }
.tag--warn { color: var(--amber); }
.tag--replace { color: var(--steel); }
mark { padding: 0 3px; color: inherit; }
mark.warn { background: rgba(242, 163, 58, 0.28); color: var(--amber-soft); box-shadow: inset 0 -2px 0 var(--amber); }
mark.block { background: rgba(229, 72, 77, 0.3); color: var(--red-soft); box-shadow: inset 0 -2px 0 var(--red); }
mark.replace { background: rgba(201, 212, 223, 0.12); color: var(--text); box-shadow: inset 0 -2px 0 var(--steel); }

/* 결정 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn--lg { min-height: 48px; font-size: 15px; font-weight: 700; }
.btn--approve { background: var(--green); color: var(--green-ink); }
.btn--approve:hover { color: var(--green-ink); filter: brightness(1.08); }
.btn--light { background: var(--text); color: var(--ground); }
.btn--light:hover { color: var(--ground); filter: brightness(0.94); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-focus); }
.btn--ghost:hover { color: var(--text); border-color: var(--dim); }
.btn--danger { background: transparent; color: var(--red-text); border-color: var(--red); }
.btn--danger:hover { color: var(--red-text); background: rgba(229, 72, 77, 0.08); }
.btn--locked { background: #1b1f24; color: var(--faint); border: 1px dashed var(--line-strong); cursor: not-allowed; }
/* 보내는 중 — 두 번 눌림 막기(static/busy_forms.js) */
.is-busy, .is-busy:hover { opacity: 0.72; cursor: progress; filter: none; }
.ai-next { display: grid; gap: 4px; }
.ai-next strong { font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--dim); }
textarea, input[type="text"], input[type="password"], input[type="email"] { width: 100%; padding: 10px 12px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); font-family: inherit; font-size: 13.5px; line-height: 1.5; }
input[type="text"], input[type="password"], input[type="email"] { height: 44px; font-size: 14px; }
/* 계정 화면 (D-101) — 한 줄 폼의 이메일 칸 · 역할 고르기 */
.goal-form--inline input[type="email"], .goal-form--inline input[type="text"] { width: auto; flex: 1 1 260px; }
.goal-form--inline select { min-height: 44px; padding: 0 10px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); }
textarea { resize: vertical; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help { font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.record { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.record--green { background: rgba(70, 192, 122, 0.08); }
.record--red { background: rgba(229, 72, 77, 0.07); }

/* 대본 수정 */
.edit-list { list-style: none; margin: 0; padding: 0; }
.edit-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.edit-item:last-child { border-bottom: 0; }
.edit-item > label { flex: 0 0 16px; padding-top: 11px; font-size: 12px; color: var(--faint); }
.edit-item > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.edit-item textarea { height: 64px; font-size: 15px; line-height: 1.55; }
.edit-item--changed { background: rgba(159, 195, 255, 0.05); }
.edit-item--changed textarea { border-color: var(--cue); }
.counter { align-self: flex-end; font-size: 11.5px; color: var(--faint); }
.orig del { color: var(--red-text); text-decoration-color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.steps li { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; }
.steps li::before { counter-increment: step; content: counter(step); flex: 0 0 14px; font-family: var(--font-tc); font-size: 12px; color: var(--faint); }

/* 수집 현황 */
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats > div { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--panel); }
.stats > div > span:first-child { font-size: 12px; color: var(--faint); }
.stats > div > span:last-child { font-size: 22px; }
.warn-num, .warn-text { color: var(--amber); }
.thumb { display: block; width: 96px; height: 54px; object-fit: cover; background: var(--monitor); }
.thumb--empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); background: transparent; font-size: 11px; color: var(--faint); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; color: var(--dim); }
.photo-grid { list-style: none; margin: 0; padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photo-card { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); }
.photo-card--excluded, .photo-card--failed { border-color: rgba(229, 72, 77, 0.55); }
.photo-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--monitor); }
.photo-frame a { display: block; width: 100%; height: 100%; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-missing { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; text-align: center; font-size: 12.5px; color: var(--red-text); }
.photo-card--excluded .photo-frame, .photo-card--failed .photo-frame { background: repeating-linear-gradient(135deg, #0b0d10 0 14px, #0f1215 14px 28px); }
.photo-frame { position: relative; }
.photo-frame--dim img { opacity: 0.45; filter: grayscale(0.6); }
.photo-stamp { position: absolute; left: 10px; top: 10px; padding: 2px 8px; background: var(--red); color: #1a1206; font-size: 11.5px; font-weight: 700; }
.photo-info { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.photo-info .caption { font-size: 13px; line-height: 1.55; }
.photo-info .kv > span:last-child { text-align: right; }
.body-text { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 22px; font-size: 15px; line-height: 1.75; }
.meta-lines { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 12px; }
.meta-lines .tc { overflow-wrap: anywhere; }

/* 로그인 */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 36px); padding: 32px; }
.login-card { display: flex; flex-direction: column; gap: 20px; width: 360px; max-width: 100%; padding: 32px; background: var(--panel); border: 1px solid var(--line); }


/* WBS 4.1 — 실제 렌더 재생 */
.frame--video { width: 100%; height: auto; display: block; background: #000; border: 0; }
.linkish {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .85;
}
.linkish:hover { opacity: 1; }

/* WBS 4.1 · 수동 수집 — 한 줄 안내 */
.notice {
  margin: 0 0 14px; padding: 10px 14px; font-size: 13px; line-height: 1.5;
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--ink);
}
.notice--green { background: rgba(70, 192, 122, 0.10); border-color: rgba(70, 192, 122, 0.5); color: var(--green); }
.notice--amber { background: rgba(242, 163, 58, 0.10); border-color: rgba(242, 163, 58, 0.5); color: var(--amber); }
.notice--red   { background: rgba(229, 72, 77, 0.10); border-color: rgba(229, 72, 77, 0.55); color: var(--red-text); }
.notice code { font-size: 12px; opacity: .9; }

/* WBS 4.1 · 동작 결과 한 줄 (승인·반려·폐기·대본 저장) */
.flash { padding: 14px 32px 0; }
.flash .notice { margin: 0 0 6px; }

/* WBS 4.1 · 자동 수집 주기 버튼 (D-040) */
.schedule-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.schedule-bar__label { font-size: 12.5px; color: var(--cue); font-weight: 600; }
.schedule-bar__when { font-size: 12px; color: var(--cue); opacity: .8; margin-left: 4px; }
.chip-btn {
  height: 26px; padding: 0 12px; background: var(--raised); border: 1px solid var(--line-strong);
  color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer;
}
.chip-btn:hover { border-color: var(--steel); }
.chip-btn--on {
  background: rgba(70, 192, 122, 0.14); border-color: rgba(70, 192, 122, 0.6);
  color: var(--green); font-weight: 700;
}

/* 연합뉴스 RSS 추가 (시험) — 출처 배지. 기존 chip 스타일을 그대로 쓰고 색만 나눈다 */
.chip--src { white-space: nowrap; border: 1px solid var(--line-strong); }
.chip--src-newfile { background: rgba(201, 212, 223, 0.10); border-color: var(--line-strong); color: var(--cue); }
.chip--src-yna { background: rgba(94, 150, 224, 0.14); border-color: rgba(94, 150, 224, 0.55); color: #9CC1F0; }
/* 금칙어 사전 — 공용 / 고객사 사전 (D-112) */
.chip--dict-common { border: 1px solid rgba(94, 150, 224, 0.55); background: rgba(94, 150, 224, 0.14); color: #9CC1F0; }
.chip--dict-own { border: 1px solid rgba(70, 192, 122, 0.5); background: rgba(70, 192, 122, 0.12); color: var(--green); }
.banned-lock { white-space: nowrap; font-size: 12px; }
/* 금칙어 검색 (D-113) — 화면 위 검색 칸 · 찾은 글자 · 찾은 까닭 · 찾은 것이 없을 때 */
.panel--search { gap: 4px; }
.search-form { margin: 0; }
.search-form input[type="text"].search-input { flex: 1 1 260px; height: 48px; font-size: 15px; }  /* 좁으면 칸이 한 줄을 다 쓴다 */
mark.found { padding: 0 1px; background: rgba(94, 150, 224, 0.3); color: inherit; box-shadow: inset 0 -2px 0 #5E96E0; }
.banned-table .row-title .why { color: #9CC1F0; }
.empty--search { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty--search p { margin: 0; }

/* 제작 화면 — 대본과 기사 원문을 나란히 (계획서 2.9 병기). 좁은 화면에서는 위아래로 쌓는다. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .pair { grid-template-columns: 1fr; } }
.pair > * { min-width: 0; }
.body-text { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.body-text .text { white-space: pre-wrap; line-height: 1.75; }
.pair .sentences .start { color: var(--faint); font-size: 12px; }

/* 대본 머리에서 '대본 수정'을 오른쪽 끝으로 민다 (제작 화면). */
.script-head .grow { flex: 1; }
.script-head .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* 목표 길이 입력 — 버튼과 한 줄로 (제작 화면 · D-061). */
.goal-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.goal-form--inline { padding: 12px 20px 0; }
.goal-form input[type="number"] { width: 130px; }

/* 음성 프로바이더 고르기 (제작 화면 ② · D-065). 쓸 수 없는 것은 흐리게 두고 이유를 적는다. */
.voice-choice { border: 0; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.voice-choice legend { padding: 0; margin-bottom: 4px; }
.voice-option { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.voice-option--off { cursor: not-allowed; opacity: .55; }
.voice-option .note { flex-basis: 100%; padding-left: 26px; }
/* ② 만드는 방식 — 따로 / 한 번에 (D-128): 고른 쪽에 띠를 긋고 그 칸만 아래에 보인다 */
.way-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
@media (max-width: 760px) { .way-choice { grid-template-columns: 1fr; } }
.way-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line);
            background: var(--panel); color: var(--text); text-decoration: none; }
.way-card:hover { border-color: var(--line-focus); }
.way-card--on { border-color: var(--cue); box-shadow: inset 3px 0 0 var(--cue); background: var(--raised); }
.way-card--off { opacity: .6; cursor: not-allowed; }
.way-card .note { display: block; margin-top: 4px; }
.way-mark { color: var(--cue); line-height: 1.5; }
/* 방식을 고르기 전에 보는 예상 비용 (D-136) — 어림이라는 것이 보이게 점선 위에 둔다 */
.way-card .way-cost { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-strong); color: var(--text); }
.way-cost strong { color: var(--amber-soft); }
.cost-preview { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: rgba(242, 163, 58, 0.06);
                border: 1px dashed rgba(242, 163, 58, 0.5); }
.cost-preview__head { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--amber); }
.cost-preview__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cost-preview__sum strong { font-size: 20px; color: var(--amber-soft); }
.cost-preview details > summary { cursor: pointer; }

/* 제작 단계 탭 (D-131) — 네 단계를 가로로 늘어놓고, 고른 단계의 칸만 그 아래에 보인다.
   고른 탭은 아래 칸과 같은 바탕으로 이어 붙인다(칸의 윗줄을 탭이 가린다). 상태는 탭마다 등 하나 + 글자.
   스크립트가 없는 화면(html에 .js가 없다)에서는 네 칸이 모두 보이고 탭은 그 칸으로 가는 링크로 남는다. */
.step-box { display: flex; flex-direction: column; }
.step-tabs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: -1px; }
.step-tab { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 52px; padding: 8px 14px;
            background: #14171b; border: 1px solid var(--line); border-bottom-color: var(--line-focus);
            color: var(--dim); font-size: 14px; }
.step-tab:hover { background: var(--panel); border-color: var(--line-strong); border-bottom-color: var(--line-focus); color: var(--text); text-decoration: none; }
.step-tab[aria-selected="true"] { background: var(--raised); border-color: var(--line-focus); border-bottom-color: var(--raised);
                                  box-shadow: inset 0 2px 0 var(--cue); color: var(--text); }
.step-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px;
            border: 1px solid var(--line-focus); font-size: 12px; }
.step-tab[aria-selected="true"] .step-num { border-color: var(--cue); color: var(--cue); }
.step-name { font-weight: 600; }
.step-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.step-state .lamp { width: 7px; height: 7px; background: var(--line-focus); box-shadow: none; }
.step-tab--done .step-state { color: var(--green); }
.step-tab--done .lamp { background: var(--green); box-shadow: 0 0 6px rgba(70, 192, 122, 0.7); }
.step-tab--running .step-state { color: var(--amber); }
.step-tab--running .lamp { background: var(--amber); box-shadow: 0 0 6px rgba(242, 163, 58, 0.7); animation: step-pulse 1.2s ease-in-out infinite; }
.step-tab--ready .step-state { color: var(--text); }
.step-tab--ready .lamp { background: var(--steel); box-shadow: 0 0 6px rgba(201, 212, 223, 0.6); }
.step-tab--blocked .step-state { color: var(--red-text); }
.step-tab--blocked .lamp { background: var(--red); box-shadow: 0 0 6px rgba(229, 72, 77, 0.7); }
@keyframes step-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .step-tab--running .lamp { animation: none; } }
.step-panel { padding: 14px 16px 16px; border: 1px solid var(--line-focus); scroll-margin-top: 72px; }
.js .step-panel--off, .js .step-panel-head { display: none; }  /* 탭이 단계 이름 · 상태를 이미 보여 준다 */
html:not(.js) .step-tabs { margin-bottom: 10px; }
html:not(.js) .step-tab[aria-selected="true"] { border-bottom-color: var(--line-focus); }
html:not(.js) .step-panel + .step-panel { margin-top: 10px; }
/* ★ 막힌 까닭 (D-133) — 걸린 말 · 그 문장 · 푸는 길. 걸린 말은 대본 · 기사 원문에서도 mark로 칠한다(위 mark.block 등) */
.blocked { gap: 12px; }
.blocked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.blocked-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: rgba(229, 72, 77, 0.07); box-shadow: inset 3px 0 0 var(--red); }
.blocked-item .phrase-block { font-size: 16px; }
.blocked-quote { font-size: 15px; line-height: 1.65; }
.blocked-script .sentence { padding: 6px 0; }
.blocked-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.blocked .steps li > span { line-height: 1.6; }
.script-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 20px 0; }
.script-legend mark { padding: 1px 6px; font-size: 12px; }

/* ★ 만드는 중 — 모래시계 · 진행 막대 · 경과 시간 · 작은 단계 (D-132).
   모래시계: 위 모래가 줄고 아래 모래가 차오른 뒤 뒤집힌다 — 틀은 뒤집어도 같은 모양이고 모래는 뒤집히는 동안
   사라졌다가 다시 차서, 끊김 없이 되풀이된다.
   막대 · 글자는 화면이 진행을 읽을 때마다 그 자리에서 바뀐다(통째로 새로 고치지 않는다). 색은 '진행 중'의 호박색. */
.hourglass { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
             color: var(--amber); transform-origin: 50% 50%; animation: hourglass-turn 2.8s ease-in-out infinite; }
.hourglass-sand { fill: currentColor; stroke: none; }
.hourglass-sand--top { animation: hourglass-drain 2.8s linear infinite; }
.hourglass-sand--bottom { animation: hourglass-fill 2.8s linear infinite; }
@keyframes hourglass-turn { 0%, 72% { transform: rotate(0deg); } 100% { transform: rotate(180deg); } }
@keyframes hourglass-drain { 0% { opacity: 0; } 8% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes hourglass-fill { 0%, 8% { opacity: 0; } 68%, 84% { opacity: 1; } 100% { opacity: 0; } }
.step-state .hourglass, .tally--busy .hourglass { margin: 0 -1px; }
.tally--busy { gap: 6px; }
.progress-box { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 8px; padding: 14px 16px;
                background: rgba(242, 163, 58, 0.07); border: 1px solid rgba(242, 163, 58, 0.45); }
.progress-glass { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px;
                  background: rgba(242, 163, 58, 0.12); border: 1px solid rgba(242, 163, 58, 0.4); }
.progress-main { display: flex; flex-direction: column; gap: 7px; flex: 1 1 0; min-width: 0; }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.progress-head strong { font-size: 15px; color: var(--amber-soft); }
.progress-clock { font-size: 13px; color: var(--amber); white-space: nowrap; }
.progress-now { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.progress-bar { position: relative; height: 10px; overflow: hidden; background: var(--monitor); border: 1px solid var(--line-strong); }
.progress-bar i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 6px; background: var(--amber); transition: width 0.8s ease-out; }
/* 막대 위로 빛이 흐른다 — 멈춰 보이지 않게(숫자가 그대로여도 일은 하고 있다) */
.progress-bar i::after { content: ""; position: absolute; inset: 0;
                         background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
                         transform: translateX(-100%); animation: progress-sheen 1.8s ease-in-out infinite; }
@keyframes progress-sheen { 100% { transform: translateX(100%); } }
.progress-stages { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.progress-stage { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line);
                  font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.progress-stage::before { content: ""; width: 7px; height: 7px; background: var(--line-focus); }
.progress-stage--done { border-color: rgba(70, 192, 122, 0.45); color: var(--green); }
.progress-stage--done::before { content: "✓"; width: auto; height: auto; background: none; font-size: 12px; line-height: 1; }
.progress-stage--current { border-color: rgba(242, 163, 58, 0.7); background: rgba(242, 163, 58, 0.12); color: var(--amber-soft); font-weight: 600; }
.progress-stage--current::before { background: var(--amber); box-shadow: 0 0 6px rgba(242, 163, 58, 0.7); animation: step-pulse 1.2s ease-in-out infinite; }
/* 수집 진행 (D-135) — 끝난 결과 한 줄 */
.collect-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.collect-result__when { margin-left: auto; font-size: 12px; opacity: 0.85; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hourglass, .hourglass-sand--top, .hourglass-sand--bottom, .progress-bar i::after, .progress-stage--current::before { animation: none; }
  .hourglass-sand--bottom { opacity: 0.35; }
  .progress-bar i { transition: none; }
}
@media (max-width: 760px) {
  .progress-box { gap: 10px; padding: 12px; }
  .progress-glass { width: 38px; height: 38px; }
  .progress-glass .hourglass { width: 26px; height: 26px; }
}
/* 좁은 화면 — 네 탭을 한 줄에 두되 탭 안을 세로로 쌓는다(번호 · 이름 · 상태) */
@media (max-width: 760px) {
  .step-tabs { gap: 2px; }
  .step-tab { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 5px; min-height: 0; padding: 8px 7px 9px; font-size: 12.5px; }
  .step-num { width: 20px; height: 20px; font-size: 11.5px; }
  .step-state { margin-left: 0; gap: 5px; font-size: 11.5px; white-space: normal; }
  .step-panel { padding: 12px 12px 14px; }
}

/* 만든 음성 듣기 (제작 화면 ② · D-071). 문장 옆 ▶는 그 문장 구간만 튼다. */
.voice-player { display: block; width: 100%; max-width: 560px; margin: 8px 0 4px; }
.play-sentence {
  flex: 0 0 auto; align-self: center; border: 1px solid var(--line-soft); border-radius: 999px;
  background: transparent; color: var(--faint); font: inherit; font-size: 12px; padding: 2px 10px; cursor: pointer;
}
.play-sentence:hover, .sentence--current .play-sentence { color: var(--text); border-color: var(--faint); }

/* ③ 앵커 클립 고르기 (제작 화면 · D-072). 좁은 화면에서는 표만 옆으로 민다. */
.clip-scroll { overflow-x: auto; margin: 8px 0 6px; }
.clip-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clip-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.clip-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.clip-table td.tc { white-space: nowrap; }
.clip-state { font-size: 12px; color: var(--faint); }
.clip-row--completed td { color: var(--faint); }
.clip-row--failed .clip-state, .clip-row--submitted .clip-state { color: var(--red-text); }
.clip-row--making .clip-state { color: var(--amber); }  /* 지금 만드는 중인 클립 (D-132) */
.clip-row.sentence--current td { background: var(--raised); }

/* ③ 만든 클립 미리보기 (D-075) — 세로 9:16 하나. 좁은 화면에서는 설명이 영상 아래로 내려간다. */
.clip-preview { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; margin: 8px 0 12px; }
.clip-video { width: 216px; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; }
.clip-preview-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1 1 220px; min-width: 0; }
.play-clip, .clip-reset {
  border: 1px solid var(--line-soft); border-radius: 999px; background: transparent; color: var(--faint);
  font: inherit; font-size: 12px; padding: 2px 10px; cursor: pointer; white-space: nowrap;
}
.play-clip:hover, .sentence--current .play-clip { color: var(--text); border-color: var(--faint); }
/* ③ 되돌리기 (D-076) — 값을 치른 클립을 버리는 버튼이라 옅은 빨강으로 구분한다 */
.clip-reset { margin-left: 4px; }
.clip-reset:hover { color: var(--red-text); border-color: var(--red-text); }
/* ④ 만든 영상·시험 영상 (D-081) — 가로 16:9. 재생 전용이라 다운로드 단추는 두지 않는다. */
.draft-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0 12px; }
.draft-box .clip-video { width: 420px; aspect-ratio: 16 / 9; }

/* 올리기 준비 (D-086) — 플랫폼별 문안과 올린 곳 기록 */
.publish-box { gap: 8px; }
.publish-text { width: 100%; padding: 10px 12px; background: var(--monitor); border: 1px solid var(--line-soft);
  color: var(--text); font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.publish-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.publish-form input[type="url"] { flex: 3 1 260px; }
.publish-form input[type="text"] { flex: 2 1 160px; }
.publish-form input { min-height: 40px; padding: 0 10px; background: var(--raised);
  border: 1px solid var(--line-soft); color: var(--text); font: inherit; font-size: 13px; }

/* 배포 탭 (D-088) — 세 플랫폼을 아래로 늘이지 않고 탭으로 갈아 끼운다 */
.pub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pub-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  font: inherit; font-size: 13.5px; cursor: pointer; }
.pub-tab:hover { color: var(--text); border-color: var(--line-strong); }
.pub-tab[aria-selected="true"] { background: var(--raised); border-color: var(--line-focus);
  color: var(--text); font-weight: 600; }
.pub-tab .dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 6px rgba(70, 192, 122, 0.7); }

.publish-upload { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-top: 4px;
  background: var(--raised); border: 1px solid var(--line-soft); }
.publish-upload select, .publish-upload input[type="datetime-local"] { min-height: 40px; padding: 0 10px;
  background: var(--monitor); border: 1px solid var(--line-soft); color: var(--text); font: inherit; font-size: 13px; }
/* ★ 예약은 비공개로 올릴 때만 된다 (D-089) — 잠긴 칸이 잠긴 것으로 보여야 한다 */
.publish-upload input[type="datetime-local"]:disabled { opacity: 0.45; cursor: not-allowed; }
.publish-form.no-schedule label[for="yt-at"] { opacity: 0.45; }

.clip-confirm { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }

/* ③ 견적 (D-073) — 견적을 본 뒤에만 만들기 버튼이 나온다. */
.quote-box { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 8px; background: var(--raised); }
.quote-error { color: var(--red-text); }

/* 대본 시도 기록 — 접었다 펴는 목록 (제작 화면 · D-062). */
details.boxed summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
details.boxed summary::-webkit-details-marker { display: none; }
details.boxed summary::before { content: "▸"; color: var(--faint); }
details.boxed[open] summary::before { content: "▾"; }
details.boxed .sentences { margin-top: 8px; }
details.boxed .sentence { padding: 4px 0; }

/* ★ 금칙어 사전 화면 (D-093). 보기·손으로 넣기·켜고 끄기·문장 시험. */
.field-legend { font-size: 13px; font-weight: 600; }
.banned-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
@media (max-width: 760px) { .banned-grid { grid-template-columns: 1fr; } }
.banned-table td { height: 58px; vertical-align: middle; }
.banned-table .row-title span { font-size: 11.5px; }
.pattern { font-family: var(--font-tc); font-size: 14px; color: var(--text); }
.row--off { opacity: 0.55; }
.row--off .pattern { text-decoration: line-through; text-decoration-color: var(--faint); }
.btn--row { min-height: 32px; padding: 0 12px; font-size: 13px; }
.test-hits { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.test-hits li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
/* 화면에서는 감추고 읽어 주는 이름만 남긴다 (입력 칸이 자리표시글만 가진 곳). */
.sr-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 전체 관리자 (D-108 · D-109) — 고객사 역할 칩과 구별되는 표시 · 위 메뉴의 전체 관리 메뉴(회원 관리 · 고객사 심사) 앞 구분선 */
.chip--admin { background: rgba(159, 195, 255, 0.12); border: 1px solid rgba(159, 195, 255, 0.45); color: var(--cue); }
.topnav-sep { width: 1px; height: 18px; margin: 0 8px; background: var(--line-strong); }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 팀 — 사람 더하기 (D-115): 초대 링크 · 직접 만들기 두 칸 · 방금 만든 링크 · 첫 비밀번호(한 번만 보임) */
.panel--result { border-color: rgba(70, 192, 122, 0.55); background: rgba(70, 192, 122, 0.06); }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-row input[type="text"] { flex: 1 1 320px; width: auto; font-family: Consolas, "D2Coding", ui-monospace, monospace; }  /* 손으로 옮겨 적어도 틀리지 않게 — 기호 사이를 벌리지 않는 글꼴 */
.share-box { font-family: Consolas, "D2Coding", ui-monospace, monospace; font-size: 13.5px; resize: none; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .add-grid { grid-template-columns: 1fr; } }
.add-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line-soft); background: #14171b; }
.add-card h3 { margin: 0; font-size: 15px; }
.add-card .note { margin: 0; }
.add-card .btn { align-self: flex-start; }
/* 팀 — 영상 로고 · 문구 (D-129): 영상에서처럼 흰 바탕판 위에 보여 준다 */
.logo-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 10px; }
/* 바둑판 = 투명한 곳 — 올린 그림의 바탕이 투명한지 여기서 보인다 (D-130) */
.logo-plate { display: inline-flex; padding: 8px; border-radius: 6px;
              background: conic-gradient(#f4f6f8 25%, #d5dae0 0 50%, #f4f6f8 0 75%, #d5dae0 0) 0 0 / 16px 16px; }
.logo-plate img { display: block; max-width: 240px; max-height: 64px; }
.brand-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.brand-form input[type="text"] { flex: 1 1 280px; max-width: 420px; min-height: 40px; padding: 0 10px;
                                  background: var(--raised); color: var(--text); border: 1px solid var(--line); }
/* 팀 — 첫 로그인 전 계정 고치기 (D-127): 그 사람 줄 바로 아래에 접어 둔다 */
.row--edit td { padding-top: 0; border-top: 0; }
.member-edit > summary { cursor: pointer; padding: 2px 0 6px; }
.member-edit[open] > summary { margin-bottom: 10px; }
.add-card select { min-height: 44px; padding: 0 10px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); }
.row-actions { display: flex; gap: 12px; align-items: center; }

/* AI 사진 (D-116) — 승인받아 만드는 이미지 · 요청 칸 · 모아 보기 */
.chip--ai { border: 1px solid rgba(178, 140, 255, 0.55); background: rgba(178, 140, 255, 0.14); color: #CDB8FF; }
.ai-text { color: #CDB8FF; }
.panel--ai { border-color: rgba(178, 140, 255, 0.35); }
.ai-form { display: flex; flex-direction: column; gap: 10px; }
.ai-form select { min-height: 40px; padding: 0 10px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); }
.ai-request { display: flex; flex-direction: column; gap: 6px; }
.ai-subject { margin: 0; font-size: 14px; line-height: 1.6; }
.ai-prompt summary { cursor: pointer; font-size: 12.5px; color: var(--faint); }
.ai-prompt pre { white-space: pre-wrap; font-size: 12px; color: var(--dim); margin: 6px 0 0; }
.ai-reject { display: flex; gap: 8px; margin-top: 8px; }
.ai-reject input[type="text"] { height: 40px; }
.ai-past { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.row--attention { background: rgba(242, 163, 58, 0.07); }

/* 사진 · 영상 올리기 (D-117) — 고르는 칸 · 고른 목록 · 왼쪽 '올리기 전 미리보기' · 방금 올린 것 */
.upload-form { display: flex; flex-direction: column; gap: 10px; }
.drop { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px dashed var(--line-strong); background: var(--raised); cursor: pointer; text-align: center; }
.field .drop { font-weight: 400; }
.drop:hover, .drop--over { border-color: var(--cue); background: rgba(124, 170, 255, 0.08); }
.drop:focus-within { outline: 2px solid var(--cue); outline-offset: 2px; }
.drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-text { font-size: 13.5px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.pick-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.pick-row:first-child { border-top: 0; }
.pick-row--bad { background: rgba(229, 72, 77, 0.08); }
.pick-kind { flex: none; min-width: 34px; padding: 1px 6px; text-align: center; background: var(--ground); color: var(--steel); font-weight: 600; }
.pick-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pick-name { overflow-wrap: anywhere; color: var(--text); }
.pick-meta { color: var(--dim); }
.pick-remove { flex: none; }
.pending { margin: 16px 20px 0; padding: 12px 14px 0; border: 1px dashed rgba(124, 170, 255, 0.55); background: rgba(124, 170, 255, 0.05); }
.pending-head { margin: 0; font-size: 13px; }
.pending-label { font-size: 12px; }
.pending .photo-grid { padding: 12px 0 14px; }
.photo-card--pending { border-style: dashed; }
.photo-stamp--pending { background: var(--cue); }
.photo-notice { margin: 16px 20px 0; }
.photo-card--fresh { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

/* 사진 · 영상 사용 / 사용 안 함 (D-119) */
.use-head { margin: 12px 20px 0; }
.chip-form { margin: 0; }
.chip-toggle { border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.chip-toggle::after { content: "⇄"; font-size: 11px; opacity: 0.55; }  /* 누르면 바뀐다는 표시 */
.chip-toggle:hover { border-color: var(--cue); }
.chip-toggle:hover::after { opacity: 1; }
.chip-toggle--off { background: rgba(229, 72, 77, 0.12); color: var(--red-text); }
.use-note { margin: 0; font-size: 12px; color: var(--dim); }
.use-result { margin: 0; font-size: 12.5px; }

/* 수집 현황 검색 (D-118) */
.collect-search { margin: 4px 0 0; }
.search-result { margin: 6px 0 12px; }
.found-where { font-size: 12px; color: var(--cue); }
.found-snippet { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.upload-form textarea { min-height: 56px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }
.photo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ★ AI 앵커 · 목소리 (D-146) — 팀 화면에서 소유자가 고르고, 전체 관리 화면에서 넣는다 */
.anchor-thumb { display: block; width: 90px; height: 160px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); flex: none; }
.anchor-thumb--sm { width: 45px; height: 80px; border-radius: 4px; }
.anchor-now { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.anchor-now__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.anchor-form { display: flex; flex-direction: column; gap: 12px; }
.anchor-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.anchor-choice legend { padding: 0; margin-bottom: 6px; }
.anchor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.anchor-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; position: relative; }
.anchor-card:hover { border-color: var(--line-focus); }
.anchor-card:has(input:checked) { border-color: var(--cue); box-shadow: inset 0 0 0 1px var(--cue); background: var(--raised); }
.anchor-card input { position: absolute; top: 10px; left: 10px; margin: 0; }
.anchor-card img { display: block; width: 90px; height: 160px; object-fit: cover; border-radius: 6px; }
.anchor-card__text { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.voice-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.voice-pick select { flex: 1 1 260px; max-width: 560px; min-width: 0; min-height: 40px; padding: 0 10px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); }
.anchor-line { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.anchor-compare { display: flex; gap: 16px; flex-wrap: wrap; }
.anchor-compare figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.anchor-compare .anchor-thumb { width: 135px; height: 240px; }
.anchor-rules { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ★ 전체 관리자 미리 보기 (D-147) — 앵커 카드 한눈에 + 누르면 원본 · 바탕 뺀 모습 · 영상 속 모습 */
.anchor-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery-card { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.gallery-card--off { opacity: .55; }
.gallery-open { display: block; border-radius: 6px; overflow: hidden; }
.gallery-open img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--raised); }
.gallery-open:hover img, .gallery-open:focus-visible img { outline: 2px solid var(--cue); outline-offset: -2px; }
.gallery-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.anchor-dialog { width: min(1240px, 96vw); max-height: 94vh; padding: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--text); }
.anchor-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.anchor-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.anchor-dialog__head h3 { margin: 0 0 4px; font-size: 18px; }
.anchor-dialog__views { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.anchor-dialog__views figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.anchor-dialog__views figure:not(.anchor-dialog__frame) { flex: 0 0 270px; }   /* 설명 글이 칸을 넓히지 않게 */
.anchor-dialog__views img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--raised); }
.anchor-dialog__frame { flex: 1 1 480px; min-width: 0; }
.anchor-dialog__frame img { max-width: 640px; aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  .anchor-dialog__views figure:not(.anchor-dialog__frame) { flex: 0 0 calc(50% - 7px); }
  .anchor-dialog__frame { flex-basis: 100%; }
}

/* ★ 고객사별 앵커 등록 (D-148 · 전체 관리) · 영상마다 앵커 고르기 (제작 화면 ②) */
.org-anchors { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.org-anchors:first-of-type { border-top: 0; padding-top: 4px; }
.org-anchors__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
.org-anchors__name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.org-anchors__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.org-anchors__set legend { padding: 0; margin-bottom: 6px; }
.org-anchors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.org-anchors .row-actions { flex-wrap: wrap; }
/* 앵커마다 고객사 고르기 (D-148 보완) — 카드의 '고객사 고르기' · 창 아래 '이 앵커를 쓸 고객사' · 넣기의 '쓸 고객사' */
.anchor-howto { margin: 0 0 12px; line-height: 1.6; }
.gallery-users { overflow-wrap: anywhere; }
.gallery-actions { display: flex; gap: 6px; margin-top: 2px; }
.gallery-orgs { flex: 1 1 auto; min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.gallery-del { flex: none; min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.dialog-orgs { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.dialog-orgs .row-actions { flex-wrap: wrap; }
.dialog-orgs__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
/* ★ 앵커 추가 · 삭제 (D-150) — 맨 위 '＋ AI 앵커 추가' · 창 맨 아래 '앵커 삭제' */
.anchor-head-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: flex-end; }
.dialog-danger { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid rgba(229, 72, 77, 0.45); border-radius: 8px; scroll-margin-top: 12px; }
.dialog-danger .row-actions { flex-wrap: wrap; }
.anchor-delete { display: flex; flex-direction: column; gap: 10px; }
.linkish--red { color: var(--red-text); }
/* ★ 우리 앵커 (D-151) — 소유자가 카드마다 '기본값으로 설정' */
.anchor-thumb--lg { width: 135px; height: 240px; }
.anchor-now__name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.owner-anchors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); gap: 12px; }
.owner-anchor { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-width: 0; }
.owner-anchor img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: var(--raised); }
.owner-anchor--current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.owner-anchor__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.owner-anchor__badge { align-self: flex-start; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: rgba(70, 192, 122, 0.14); color: var(--green); }
.owner-anchor__badge--auto { background: rgba(242, 163, 58, 0.14); color: var(--amber); font-weight: 600; }
.owner-anchor__set { margin-top: auto; }
.owner-anchor__set .btn { width: 100%; min-height: 38px; padding: 0 10px; }
@media (max-width: 520px) { .owner-anchors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .owner-anchor { padding: 8px; } }
.pick-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; min-width: 0; }
.pick-chip:hover { border-color: var(--line-focus); }
.pick-chip:has(input:checked) { border-color: var(--cue); box-shadow: inset 0 0 0 1px var(--cue); background: var(--raised); }
.pick-chip input { margin: 0; flex: none; }
.pick-chip img { display: block; width: 36px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; background: var(--raised); }
.pick-chip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-chip--off { opacity: .6; }
.anchor-pick { margin: 4px 0 8px; }
.anchor-pick summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cue); }
.anchor-pick[open] summary { margin-bottom: 8px; }
.anchor-pick__form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.anchor-grid--sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.anchor-card--sm { padding: 8px; }
.anchor-card--sm img { width: 45px; height: 80px; border-radius: 4px; }
.anchor-card--sm input { top: 8px; left: 8px; }

/* 발음 사전 — 읽어 보기 (D-155) */
.reading-try { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 4px; font-size: 14.5px; line-height: 1.6; }
.reading-try dt { color: var(--dim); font-size: 12.5px; padding-top: 2px; }
.reading-try dd { margin: 0; }
/* ① 대본 칸 — 음성에 넣을(넣은) 글 (D-156) */
.sentence .reading-line { margin: 2px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.sentence .reading-line--drift { color: #E8B04A; }
.sentence .reading-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 11px; color: var(--dim); }
.sentence .sentence-body { flex: 1 1 0; min-width: 0; }
.sentence .sentence-body .text { margin: 0; }
.sentence .reading-change { color: var(--text); border-bottom: 1px dotted #5E96E0; }
/* ② 칸 받아쓰기 검사 (D-158) */
.speech-box { display: flex; flex-direction: column; gap: 8px; }
.speech-spots { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.speech-spot { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.speech-spot--sure { border-color: rgba(224, 94, 94, 0.55); }
.speech-spot__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.speech-spot__line { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.speech-spot__line .reading-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 11px; color: var(--dim); }
.speech-spot__decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.speech-failed { color: #E58B8B; }
.speech-gate { color: #E8B04A; }
.inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.speech-notes { margin-top: 4px; }
.speech-notes summary { cursor: pointer; font-size: 13px; color: var(--dim); }
.speech-notes .speech-spots { margin-top: 8px; }
/* ② 이 문장 다시 읽히기 · 클립 하나 다시 만들기 (D-159 · D-160) */
.reread { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.reread form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.reread-picks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reread-pick { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.55; }
.reread-pick input { margin-top: 4px; }
/* ③ 표 — 한 번에 만들기 클립 하나 다시 만들기(견적부터) */
.clip-redo { margin-left: 4px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--faint); font-size: 12px; padding: 2px 10px; white-space: nowrap; text-decoration: none; }
.clip-redo:hover { color: var(--amber-soft); border-color: var(--amber-soft); }
.way-card .way-warn { margin-top: 6px; color: #E8B04A; }
