/* AI Portrait Trust Console — 전문가용: 정보 밀도 우선, 색은 상태를 말할 때만 */
:root {
  --bg: #f3f5f8; --panel: #ffffff; --panel-2: #f8f9fb; --ink: #111827; --ink-2: #374151; --sub: #6b7280;
  --line: #e3e7ee; --line-2: #d3d9e3; --brand: #1d3a8a; --brand-2: #2f55c9; --brand-soft: #e8eefc;
  --ok: #0f8a5f; --ok-soft: #e4f5ee; --warn: #b7791f; --warn-soft: #fbf1df; --bad: #c2362f; --bad-soft: #fbe9e8;
  --info: #2563eb; --info-soft: #e7efff; --rail: #0f172a; --rail-ink: #cbd5e1; --rail-dim: #64748b;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --mono: "JetBrains Mono", "D2Coding", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1017; --panel: #121925; --panel-2: #0f1520; --ink: #e5e9f0; --ink-2: #c3cad6; --sub: #8a94a6;
    --line: #1f2937; --line-2: #2b3647; --brand: #4f74e6; --brand-2: #7b9cff; --brand-soft: #162447;
    --ok: #34c28a; --ok-soft: #0f2a21; --warn: #e0a84a; --warn-soft: #2d2413; --bad: #f0706a; --bad-soft: #321716;
    --info: #6ea0ff; --info-soft: #14223f; --rail: #070b12; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1017; --panel: #121925; --panel-2: #0f1520; --ink: #e5e9f0; --ink-2: #c3cad6; --sub: #8a94a6;
  --line: #1f2937; --line-2: #2b3647; --brand: #4f74e6; --brand-2: #7b9cff; --brand-soft: #162447;
  --ok: #34c28a; --ok-soft: #0f2a21; --warn: #e0a84a; --warn-soft: #2d2413; --bad: #f0706a; --bad-soft: #321716;
  --info: #6ea0ff; --info-soft: #14223f; --rail: #070b12; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 13.5px/1.5 "Pretendard", "Pretendard Variable", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); text-decoration: none; }
.ic { width: 18px; height: 18px; flex: none; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--sub); }
.boot { display: grid; place-items: center; height: 100vh; }
.boot-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; } }

/* ── 로그인 ── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.auth-side { background: var(--rail); color: var(--rail-ink); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { color: #fff; font-size: 26px; line-height: 1.3; margin: 28px 0 10px; letter-spacing: -.01em; }
.auth-side p { max-width: 460px; color: var(--rail-ink); }
.auth-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #1e293b; border-radius: 8px; overflow: hidden; max-width: 520px; }
.auth-facts div { background: #0f172a; padding: 14px 16px; }
.auth-facts b { display: block; color: #fff; font-size: 18px; }
.auth-facts span { font-size: 12px; color: var(--rail-dim); }
.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-card { width: 100%; max-width: 360px; }
.auth-card h2 { font-size: 18px; margin: 0 0 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--rail-dim); letter-spacing: .04em; text-transform: uppercase; }

/* ── 폼 ── */
.field { display: grid; gap: 5px; margin: 14px 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input { height: 36px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); padding: 0 10px; outline: none; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--panel); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.block { width: 100%; justify-content: center; height: 38px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.err { color: var(--bad); font-size: 12.5px; min-height: 18px; margin-top: 6px; }

/* ── 셸 ── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.rail .brand { padding: 16px 16px 14px; color: #fff; border-bottom: 1px solid #1e293b; }
.nav { padding: 10px 8px; display: grid; gap: 1px; overflow-y: auto; }
.nav-group { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-dim); padding: 12px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--rail-ink); }
.nav a:hover { background: #111c30; color: #fff; }
.nav a.on { background: #1b2a4d; color: #fff; box-shadow: inset 2px 0 0 var(--brand-2); }
.nav a .cp { margin-left: auto; font-size: 10.5px; color: var(--rail-dim); font-family: var(--mono); }
.nav a.locked { color: var(--rail-dim); }
.rail-foot { margin-top: auto; padding: 12px 16px; border-top: 1px solid #1e293b; font-size: 11.5px; color: var(--rail-dim); }
.top { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.crumb { color: var(--sub); font-size: 12.5px; }
.crumb b { color: var(--ink); font-weight: 600; }
.top .grow { flex: 1; }
.env { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-2); }
.who { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.iconbtn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--panel-2); }
.page { padding: 20px 22px 40px; max-width: 1560px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.page-head h1 { font-size: 19px; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 2px 0 0; color: var(--sub); }
.page-head .grow { flex: 1; }

/* ── 패널·지표·표 ── */
.grid { display: grid; gap: 14px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.panel-h h3 { margin: 0; font-size: 13.5px; font-weight: 700; }
.panel-h .grow { flex: 1; }
.panel-b { padding: 14px; }
.kpi { padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--sub); }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; margin-top: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--sub); text-transform: uppercase; letter-spacing: .04em;
  padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); position: sticky; top: 0; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--panel-2); }
.tbl-wrap { overflow: auto; max-height: 560px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.mute { background: var(--panel-2); color: var(--sub); border: 1px solid var(--line); }
.empty { padding: 36px 20px; text-align: center; color: var(--sub); }
.empty .ic { width: 28px; height: 28px; color: var(--line-2); }
.empty h4 { margin: 10px 0 4px; color: var(--ink-2); font-size: 14px; }
.scope { display: grid; gap: 8px; margin-top: 14px; text-align: left; max-width: 560px; margin-inline: auto; }
.scope div { display: flex; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); font-size: 12.5px; color: var(--ink-2); }
.scope .ic { width: 16px; height: 16px; color: var(--brand-2); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; }
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(460px, 94vw); background: var(--panel); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dlg-h { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dlg-b { padding: 4px 16px 8px; }
.dlg-f { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 18px; bottom: 18px; background: var(--rail); color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 12.5px; box-shadow: var(--shadow); z-index: 50; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3-1, .g-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .shell { grid-template-columns: minmax(0, 1fr); } .rail { display: none; } }
.mt { margin-top: 14px; }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow { display: flex; align-items: center; gap: 0; overflow-x: auto; }
.flow-step { flex: 1; min-width: 96px; border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; background: var(--panel-2); }
.flow-step b { display: block; font-size: 13px; }
.flow-step span { font-size: 11.5px; color: var(--brand-2); font-family: var(--mono); }
.flow-arrow { width: 18px; height: 1px; background: var(--line-2); flex: none; position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left-color: var(--line-2); }
@media (max-width: 1300px) { .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; align-items: start; }
.rowlink { cursor: pointer; }
.rowlink.sel td { background: var(--brand-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
h4.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); margin: 18px 0 6px; }
.tbl-wrap.short { max-height: 260px; }
.capqr { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.capqr img.qr { width: 132px; height: 132px; display: block; background: #fff; border-radius: 6px; image-rendering: pixelated; }
.capqr img.qr.big { width: 196px; height: 196px; }
.small { font-size: 11.5px; }
.break { word-break: break-all; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.mb { margin-bottom: 14px; }
.shell { background: linear-gradient(to right, var(--rail) 232px, var(--bg) 232px); }
@media (max-width: 820px) { .shell { background: var(--bg); } }

/* ── 계약(CP4) ── */
.sigbar { display: inline-block; width: 40px; height: 6px; vertical-align: middle; margin-right: 6px; }
.sigbar .bg { fill: var(--line); } .sigbar .fg { fill: var(--ok); }
.small { font-size: 11.5px; }
.sub { margin: 16px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.smd { width: 100%; max-width: 640px; height: auto; display: block; }
.smd .n rect { fill: var(--panel-2); stroke: var(--line-2); }
.smd .n text { font-size: 11.5px; text-anchor: middle; fill: var(--sub); }
.smd .n.cur rect { stroke-width: 2; }
.smd .n.cur.ok rect { fill: var(--ok-soft); stroke: var(--ok); } .smd .n.cur.ok text { fill: var(--ok); font-weight: 700; }
.smd .n.cur.warn rect { fill: var(--warn-soft); stroke: var(--warn); } .smd .n.cur.warn text { fill: var(--warn); font-weight: 700; }
.smd .n.cur.info rect { fill: var(--info-soft); stroke: var(--info); } .smd .n.cur.info text { fill: var(--info); font-weight: 700; }
.smd .n.cur.bad rect { fill: var(--bad-soft); stroke: var(--bad); } .smd .n.cur.bad text { fill: var(--bad); font-weight: 700; }
.smd .n.cur.mute rect { stroke: var(--sub); } .smd .n.cur.mute text { fill: var(--ink); font-weight: 700; }
.smd .e { stroke: var(--line-2); stroke-width: 1.2; fill: none; } .smd .e.on { stroke: var(--brand-2); stroke-width: 2; }
.smd .ah { fill: var(--line-2); } .smd .ahon { fill: var(--brand-2); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); border: 2px solid var(--panel); }
.tbl tr.diff td { background: var(--info-soft); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; align-items: start; }
.field-row .input { width: 100%; }
.mt-s { margin-top: 6px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
@media (max-width: 900px) { .split, .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); } }
.nowrap { white-space: nowrap; }
.split.wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.ct-title { min-width: 180px; }
.auth-links { display: flex; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--sub); }

/* ── 권한·계정(CP5) ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 14px; color: var(--sub); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--brand-2); }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; }
.mrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0; }
.notice { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 10px; }
.break { word-break: break-all; }
.heat { width: 100%; height: auto; max-width: 820px; display: block; }
.heat .hm rect { stroke: var(--panel); }
.heat .hm text { font-size: 10.5px; text-anchor: middle; font-weight: 600; }
.heat .hm.ok rect { fill: var(--ok-soft); } .heat .hm.ok text { fill: var(--ok); }
.heat .hm.info rect { fill: var(--info-soft); } .heat .hm.info text { fill: var(--info); }
.heat .hm.warn rect { fill: var(--warn-soft); } .heat .hm.warn text { fill: var(--warn); }
.heat .hm.mute rect { fill: var(--panel-2); } .heat .hm.mute text { fill: var(--sub); font-weight: 400; }
.heat .hm-row { font-size: 11px; text-anchor: end; fill: var(--ink-2); font-family: var(--mono); }
.heat .hm-col { font-size: 11px; text-anchor: middle; fill: var(--sub); font-weight: 600; }
.heat .hm-col.me { fill: var(--brand-2); }
.heat .hm-me { fill: none; stroke: var(--brand-2); stroke-width: 2; }
.heat .hm-leg { font-size: 11px; fill: var(--sub); text-anchor: start; font-weight: 400; }

/* ── CP6 트윈 ── */
.tw-split { grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); padding: 12px 14px; }
.tw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tw-steps { max-width: 700px; margin: 4px 0 6px; }
.smd .n.done rect { fill: var(--brand-soft); stroke: var(--brand-2); } .smd .n.done text { fill: var(--ink-2); }
.input.sm { height: 30px; font-size: 12.5px; }
.tbl.compact td, .tbl.compact th { padding-top: 4px; padding-bottom: 4px; }
td.clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-list { table-layout: fixed; width: 100%; } .tw-list th:nth-child(1) { width: 38px; } .tw-list th:nth-child(3) { width: 58px; } .tw-list th:nth-child(4) { width: 62px; }
.cutchart .ax.r { text-anchor: end; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; margin: 8px 0; }
.note .ic { width: 16px; height: 16px; margin-top: 1px; }
.note.warn { background: var(--warn-soft); color: var(--ink-2); } .note.warn .ic { color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--ink-2); } .note.bad .ic { color: var(--bad); }
.note.info { background: var(--info-soft); color: var(--ink-2); }
.bullet, .cutchart, .funnel { width: 100%; height: auto; display: block; max-width: 720px; }
.bullet .lbl { font-size: 12px; fill: var(--ink-2); }
.bullet .track, .funnel .track { fill: var(--panel-2); stroke: var(--line); }
.bullet .zone { fill: var(--ok-soft); }
.bullet .bar.ok, .funnel .bar.ok { fill: var(--ok); } .bullet .bar.bad { fill: var(--bad); } .funnel .bar.warn { fill: var(--warn); }
.bullet .thr, .funnel .thr { stroke: var(--ink); stroke-width: 1.6; }
.bullet .val { font: 600 12px var(--mono); } .bullet .val.ok { fill: var(--ok); } .bullet .val.bad { fill: var(--bad); }
.bullet .crit { font: 11px var(--mono); fill: var(--sub); }
.bullet .mark circle { stroke-width: 1.4; } .bullet .mark path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.bullet .mark.ok circle { fill: var(--ok-soft); stroke: var(--ok); } .bullet .mark.ok path { stroke: var(--ok); }
.bullet .mark.bad circle { fill: var(--bad-soft); stroke: var(--bad); } .bullet .mark.bad path { stroke: var(--bad); }
.cutchart .grid { stroke: var(--line); } .cutchart .band { fill: var(--info-soft); opacity: .6; }
.cutchart .ax { font: 10.5px var(--mono); fill: var(--sub); text-anchor: middle; } .cutchart .ax.l, .funnel .ax.l { text-anchor: start; }
.cutchart .ax.ok { fill: var(--ok); } .cutchart .ax.bad { fill: var(--bad); font-weight: 700; }
.cutchart .rng { stroke: var(--brand-2); stroke-width: 2; }
.cutchart .med { fill: var(--brand-2); } .cutchart .min { fill: var(--panel); stroke: var(--brand-2); stroke-width: 1.5; }
.cutchart .med.bad { fill: var(--bad); } .cutchart .min.bad { stroke: var(--bad); }
.cutchart .thr { stroke-width: 1.4; stroke-dasharray: 4 3; } .cutchart .thr.still { stroke: var(--ink-2); } .cutchart .thr.talk { stroke: var(--warn); }
.funnel .ax { font: 11px var(--mono); fill: var(--ink-2); }
.funnel .seg.ok { fill: var(--ok); } .funnel .seg.warn { fill: var(--warn); } .funnel .seg.bad { fill: var(--bad); } .funnel .seg.mute { fill: var(--line-2); }
.tw-rate { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.tw-rate .rate-f { display: flex; gap: 6px; align-items: center; }
@media (max-width: 1100px) { .tw-split { grid-template-columns: minmax(0, 1fr); } }
.bullet .base { stroke: var(--info); stroke-width: 1.4; stroke-dasharray: 3 2; } .bullet .basel { font: 10.5px var(--mono); fill: var(--info); }
.bullet .basebar { fill: var(--info); opacity: .75; } .bullet .base-l { fill: var(--info); }

/* ── CP7 제작·대본검토 ── */
.script { white-space: pre-wrap; line-height: 1.8; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); font-size: 13.5px; }
.script mark { border-radius: 3px; padding: 0 2px; color: inherit; }
.script mark.sev-block { background: var(--bad-soft); box-shadow: inset 0 -2px 0 var(--bad); }
.script mark.sev-warn { background: var(--warn-soft); box-shadow: inset 0 -2px 0 var(--warn); }
.script mark sup, .findings sup { font: 600 9.5px var(--mono); color: var(--sub); margin-left: 1px; }
.findings { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.findings .quote { margin: 3px 0; padding-left: 8px; border-left: 2px solid var(--line-2); color: var(--ink-2); }
.statute { margin-top: 4px; } .statute summary { cursor: pointer; font-size: 12.5px; color: var(--brand-2); }
.statute div { padding: 6px 8px; background: var(--panel-2); border-radius: 4px; margin-top: 4px; line-height: 1.6; }
textarea.input.ta { height: auto; padding: 8px 10px; width: 100%; font: inherit; }
.clip2 { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }

.bl-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.bl-form .grow { flex: 1 1 320px; margin: 0; }
.bl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-in { width: 96px; }

dialog.wide { width: min(760px, 94vw); }
.ns-doc { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 12px; background: var(--panel-2); }
.ns-doc h4 { margin: 10px 0 6px; font-size: 13px; }
.ns-doc h4:first-child { margin-top: 0; }
.ns-end { text-align: center; margin-top: 18px; }
.ns-file { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
/* CP8d 클립 선별 범례(HTML — SVG 밖) */
.lgd { display: inline-flex; align-items: center; gap: 4px; margin: 4px 12px 0 0; font: 11px var(--mono); color: var(--ink-2); }
.lgd .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.lgd .sw.ok { background: var(--ok); } .lgd .sw.warn { background: var(--warn); } .lgd .sw.bad { background: var(--bad); } .lgd .sw.mute { background: var(--line); }
@media (max-width: 640px) {                     /* 좁은 화면: 패널 머리글(제목·설명·선택·버튼)을 줄바꿈 — 세로로 한 글자씩 깨지지 않게 */
  .panel-h { flex-wrap: wrap; row-gap: 8px; }
  .panel-h > .muted { flex-basis: 100%; order: 1; }
  .panel-h > .grow { display: none; }
  .panel-h > select, .panel-h > .btn { order: 2; }
}
/* CP9 A/B 비교 · 피드백 */
.ab { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ab figure { margin: 0; } .ab video { width: 100%; background: #000; border-radius: 8px; aspect-ratio: 16/9; }
.ab figcaption { font: 12px var(--mono); color: var(--sub); margin-bottom: 4px; }
.fb-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .fb-form .grow { flex: 1; min-width: 180px; }
button.chip { border: 0; cursor: pointer; font-family: inherit; }
.input.w-auto { width: auto; }
.input.grow { flex: 1; min-width: 220px; }
.pre-wrap { white-space: pre-wrap; }
.tbl.wide { min-width: 960px; }

/* ── CP14 사용성: 업무 흐름 메뉴 · 내 할 일 · 캠페인 · 인물 카드 · 알림 · 기술 상세 ── */
body { font-family: "Noto Sans KR", "Noto Sans CJK KR", "Pretendard", system-ui, sans-serif; font-size: 14px; }
.nav a { padding: 9px 12px; font-size: 14px; }
.nav a .bd { margin-left: auto; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.top .search { flex: 0 1 340px; height: 34px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 0 12px; }
.bell { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.bell b { position: absolute; top: -6px; right: -6px; background: #e11d48; color: #fff; border-radius: 99px; font-size: 10.5px; padding: 0 5px; line-height: 17px; }
.npanel { position: absolute; right: 70px; top: 52px; width: 380px; max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.18); z-index: 30; }
.npanel .ni { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.npanel .ni.un { background: var(--info-soft); }
.npanel .ni span { margin-left: auto; color: var(--sub); font-size: 11.5px; white-space: nowrap; }
.hello { font-size: 21px; font-weight: 700; margin: 0; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; }
.task .ti.ok { background: var(--ok-soft); color: var(--ok); } .task .ti.warn { background: var(--warn-soft); color: var(--warn); }
.task .ti.bad { background: var(--bad-soft); color: var(--bad); } .task .ti.info { background: var(--info-soft); color: var(--info); }
.task .ti.mute { background: var(--panel-2); color: var(--sub); }
.task .tt { font-weight: 700; } .task .td { font-size: 12.5px; color: var(--sub); }
.task .tm { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.age { font-size: 12px; color: var(--sub); white-space: nowrap; }
.pbar { display: flex; gap: 3px; min-width: 120px; }
.pbar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.pbar i.on { background: var(--ok); } .pbar i.cur { background: var(--brand-2); } .pbar i.fail { background: var(--bad); }
.stepper { display: flex; padding: 6px 4px 2px; overflow-x: auto; }
.stp { flex: 1; min-width: 96px; text-align: center; position: relative; font-size: 12px; }
.stp .d { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--sub); position: relative; z-index: 1; }
.stp::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.stp:first-child::before { display: none; }
.stp.done .d { background: var(--ok); color: #fff; } .stp.done::before, .stp.cur::before { background: var(--ok); }
.stp.cur .d { background: var(--brand-2); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.stp.fail .d { background: var(--bad); color: #fff; }
.stp b { display: block; font-size: 12.5px; } .stp span { color: var(--sub); font-size: 11px; }
.nowband { display: flex; align-items: center; gap: 14px; background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; margin-top: 12px; flex-wrap: wrap; }
.nowband .t { font-weight: 700; } .nowband .d { font-size: 12.5px; color: var(--ink-2); } .nowband .grow { flex: 1; }
.nowband.bad { background: var(--bad-soft); } .nowband.done { background: var(--ok-soft); }
.party { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.party:last-child { border-bottom: 0; } .party .r { margin-left: auto; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.tline { list-style: none; margin: 0; padding: 0; }
.tline li { display: flex; gap: 10px; font-size: 12.8px; padding: 5px 0; }
.tline li i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: 6px; flex: none; }
.tline li span { margin-left: auto; color: var(--sub); white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.pcard:hover { border-color: var(--brand-2); }
.pcard .ph { height: 150px; background: linear-gradient(160deg, var(--brand-soft), var(--panel-2)); display: grid; place-items: center; position: relative; overflow: hidden; }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pcard .ph .ini { font-size: 40px; font-weight: 700; color: var(--brand-2); }
.pcard .ph .chip { position: absolute; right: 8px; top: 8px; }
.pcard .bd { padding: 10px 12px 12px; }
.pcard .nm { font-weight: 700; font-size: 15px; } .pcard .ag { font-size: 12px; color: var(--sub); }
.pcard .nx { font-size: 12.5px; margin-top: 8px; color: var(--ink-2); }
.pcard .nx.warn { color: var(--warn); font-weight: 700; } .pcard .nx.bad { color: var(--bad); font-weight: 700; }
.hstep { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hstep > * { border-radius: 8px; padding: 9px 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.hstep > * b { display: block; font-size: 13px; color: var(--ink); }
.hstep > .on { background: var(--ok-soft); border-color: transparent; } .hstep > .cur { background: var(--brand-soft); border-color: var(--brand-2); }
.hstep > .sel { box-shadow: 0 0 0 2px var(--brand-2); } .hstep a:hover { border-color: var(--brand-2); }
.tech { display: none; }
body.tech-on .tech { display: revert; }
body.tech-on details.tech, body.tech-on div.tech, body.tech-on section.tech { display: block; }
.techbtn.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 14px; font-size: 13px; color: var(--ink-2); border-right: 1px solid var(--line-2); }
.seg a:last-child { border-right: 0; } .seg a.on { background: var(--brand); color: #fff; }
.mtop { margin-top: 14px; } .row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-2-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.btn.lg { height: 38px; padding: 0 18px; font-size: 14px; }
.sec-h { font-size: 14.5px; font-weight: 700; margin: 0; }
.ttl-sub { color: var(--sub); font-size: 13px; }
@media (max-width: 900px) { .g-2-1 { grid-template-columns: 1fr; } .hstep { grid-template-columns: 1fr 1fr; } .npanel { right: 8px; left: 8px; width: auto; } }
.tbl-wrap.full { max-height: none; }

/* CP15a 인물 마법사 */
.wiz .psec { display: none; } .wiz .psec.on { display: block; }
.wiz #hd:not(:has(.psec.on)) { display: none; }
.wiz-nav { display: flex; gap: 10px; margin-top: 14px; align-items: center; } .wiz-nav .grow { flex: 1; }
.btn.disabled { opacity: .45; pointer-events: none; }
.meter { width: 100%; max-width: 620px; display: block; margin: 6px 0; }
.meter .lbl { font-size: 12.5px; fill: var(--ink-2); } .meter .track { fill: var(--panel-2); stroke: var(--line); }
.meter .bar.ok { fill: var(--ok); } .meter .bar.warn { fill: var(--warn); } .meter .thr { stroke: var(--ink); stroke-width: 2; }
.meter .val { font-size: 12.5px; font-weight: 700; } .meter .val.ok { fill: var(--ok); } .meter .val.bad { fill: var(--bad); }

/* CP15b 컷 편집기 */
.sub-h { padding: 0 0 8px; border: 0; gap: 8px; } .sub-h h4 { margin: 0; }
.cutline { width: 100%; display: block; margin: 4px 0 2px; }
.cutline text { font-size: 11px; fill: #fff; text-anchor: middle; font-weight: 700; } .cutline .ax { fill: var(--sub); font-weight: 400; text-anchor: start; } .cutline .ax.r { text-anchor: end; }
.cutline .k-talk rect, .sw.k-talk { fill: var(--brand-2); background: var(--brand-2); } .cutline .k-scene rect, .sw.k-scene { fill: var(--ok); background: var(--ok); }
.cutline .k-product rect, .sw.k-product { fill: #8a94a6; background: #8a94a6; } .cutline .k-narr rect, .sw.k-narr { fill: var(--warn); background: var(--warn); }
.lgd-row { display: flex; gap: 12px; margin: 2px 0 8px; } .lgd-row .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.cuted td { vertical-align: top; } .cuted .wide { width: 100%; min-width: 220px; margin-bottom: 4px; } .cuted .num { width: 76px; }
.cuted .grip { cursor: grab; color: var(--sub); user-select: none; } .cuted tr.dragging { opacity: .4; } .nowrap { white-space: nowrap; }

/* CP15c 검수·피드백 */
.fbgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.ab.single .fb-prev { display: none; } .ab.single { grid-template-columns: 1fr; }
.cutstrip { width: 100%; display: block; margin: 8px 0 2px; cursor: pointer; }
.cutstrip text { font-size: 11px; fill: #fff; text-anchor: middle; font-weight: 700; pointer-events: none; }
.cutstrip .v-ok rect, .sw.v-ok { fill: var(--ok); background: var(--ok); } .cutstrip .v-warn rect, .sw.v-warn { fill: var(--warn); background: var(--warn); }
.cutstrip .v-bad rect, .sw.v-bad { fill: var(--bad); background: var(--bad); } .cutstrip g:hover rect { opacity: .8; }
.fbside { border-left: 1px solid var(--line); padding-left: 14px; max-height: 720px; overflow: auto; }
.fbc { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel); }
.fbc-h { display: flex; align-items: center; gap: 8px; } .fbc-h .grow { flex: 1; } .fbc-b { margin: 6px 0 4px; }
@media (max-width: 1100px) { .fbgrid { grid-template-columns: 1fr; } .fbside { border-left: 0; padding-left: 0; } }
.flow a.flow-step { color: inherit; text-decoration: none; } .flow a.flow-step:hover { border-color: var(--brand-2); } .flow-step .big { font-size: 18px; }
#cuted { overflow-x: auto; max-width: 100%; } .sub-h { flex-wrap: wrap; }
.cuted .wide { min-width: 170px; } .cuted td:nth-child(6) .input { width: 120px; }
.g-2-1 > * { min-width: 0; }

/* CP16 등록권 */
dialog.wide { width: min(680px, 94vw); }
.codebox { font-size: 22px; letter-spacing: 1px; padding: 12px 14px; border: 1.5px dashed var(--brand-2); border-radius: 8px; background: var(--brand-soft); text-align: center; margin-bottom: 6px; user-select: all; }
ol.steps { padding-left: 18px; } ol.steps li { margin-bottom: 4px; }

/* CP18 워터마크 보이기 */
.wmview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.wmgrid { width: 100%; max-width: 420px; display: block; margin: 6px 0; } .wmgrid.audio { max-width: 420px; }
.wmgrid .ok { fill: var(--ok); } .wmgrid .bad { fill: var(--bad); } .wmgrid .b1 { fill: var(--ink-2); } .wmgrid .b0 { fill: var(--line); }
.wmsum { font-size: 15px; margin: 4px 0 2px; } .sw.v-ok { background: var(--ok); } .sw.v-bad { background: var(--bad); }
@media (max-width: 1000px) { .wmview { grid-template-columns: 1fr; } }
.wmdiff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; } .wmdiff figure { margin: 0; }
.wmdiff img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--line); background: #000; } .wmdiff figcaption { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.fpbar { width: 380px; max-width: 100%; display: block; } .fpbar .track { fill: var(--panel-2); stroke: var(--line); } .fpbar .zone { fill: var(--ok-soft); }
.fpbar circle.ok { fill: var(--ok); } .fpbar circle.bad { fill: var(--bad); } .fpbar text { font-size: 11.5px; font-weight: 700; } .fpbar text.ok { fill: var(--ok); } .fpbar text.bad { fill: var(--bad); }
.letter ol { padding-left: 20px; } .letter ol li { margin-bottom: 4px; } .letter p { line-height: 1.7; }

/* CP17 본 사업에서 제공(누를 수 없음) */
.soon { margin: 14px 8px 0; padding-top: 10px; border-top: 1px solid #1d2a44; }
.soon-h { font-size: 11px; color: var(--rail-dim); padding: 0 10px 6px; letter-spacing: .3px; }
.soon-i { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: var(--rail-dim); cursor: not-allowed; user-select: none; }
.soon-i .ic { opacity: .55; } .soon-i small { margin-left: auto; font-size: 10px; border: 1px solid #2a3a5c; border-radius: 8px; padding: 0 6px; }
.soon-tip { display: none; position: absolute; left: calc(100% + 8px); top: 0; width: 230px; z-index: 30; background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); }
.soon-i:hover .soon-tip, .soon-i:focus .soon-tip { display: block; }
.tour-steps { list-style: none; margin: 0; padding: 6px 14px 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.tour-steps a { display: flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 4px; border-radius: 6px; }
.tour-steps a:hover { background: var(--panel-2); } .tour-steps b { width: 20px; height: 20px; border-radius: 10px; background: var(--brand-2); color: #fff; display: inline-grid; place-items: center; font-size: 11px; }
@media (max-width: 900px) { .tour-steps { grid-template-columns: 1fr; } }
