/* CreativeCenter 스튜디오 — 밝은 편집실. 종이색 바탕 · 흰 카드 · 먹색 글자, 강조는 텅스텐 호박색 하나.
   필름 띠 · 슬레이트 · 영상 비교 창만 어둡게(화면이 주인공). 숫자 · 렌즈 · 시드는 고정폭. 인라인 style 없음(CSP). */
:root {
  --bg: #f6f4ef; --panel: #ffffff; --panel2: #faf8f4; --raise: #f1eee7; --line: #e6e1d7; --line2: #d6d0c4;
  --ink: #1f1d1a; --ink2: #3d3a35; --muted: #6f695f; --faint: #a39d92;
  --amber: #d97706; --amber-d: #b45309; --amber-bg: #fdf3e2; --amber-line: #f2d6a6;
  --cyan: #0f766e; --cyan-bg: #e6f4f2; --red: #b91c1c; --red-bg: #fdecec; --green: #15803d; --green-bg: #e9f6ee;
  --violet: #6d28d9; --violet-bg: #f1ebfd; --blue: #1d4ed8; --blue-bg: #eaf0fd;
  --film: #151413; --film2: #23211f;
  --r: 10px; --r-s: 6px; --shadow: 0 1px 2px rgba(31, 29, 26, .05), 0 1px 0 rgba(31, 29, 26, .02);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Pretendard", "Pretendard Variable", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--amber-d); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.7rem; margin: 0 0 .2rem; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 1rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: .92rem; margin: .8rem 0 .45rem; color: var(--ink2); }
h4 { font-size: .88rem; margin: 0 0 .4rem; }
p { margin: .4rem 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.mono, code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .86em; background: var(--raise); border: 1px solid var(--line); padding: 0 .3em; border-radius: 4px; color: var(--ink2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* --- 틀 --------------------------------------------------------------------------------------------- */
body.app { display: flex; min-height: 100vh; }
.side { width: 228px; flex: none; background: var(--panel2); border-right: 1px solid var(--line); padding: 1rem .7rem 2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; font-size: .98rem; padding: .2rem .45rem 1.1rem; text-decoration: none !important; line-height: 1.15; }
.logo small { display: block; color: var(--muted); font-weight: 500; font-size: .7rem; letter-spacing: .08em; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 900; font-size: .85rem; font-family: var(--mono);
  box-shadow: inset 0 -3px 0 var(--amber); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-sec { font-size: .7rem; color: var(--faint); padding: 1.1rem .7rem .3rem; letter-spacing: .1em; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-radius: var(--r-s); color: var(--ink2); text-decoration: none !important; font-size: .93rem; }
.nav-item .ico { color: var(--faint); }
.nav-item:hover { background: var(--raise); color: var(--ink); }
.nav-item.on { background: var(--panel); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--amber), var(--shadow); }
.nav-item.on .ico { color: var(--amber-d); }
.nav-btn { display: none; }
.navt { position: absolute; opacity: 0; pointer-events: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .5rem 1.6rem; border-bottom: 1px solid var(--line); background: rgba(246, 244, 239, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.topfilter { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .82rem; color: var(--muted); }
.topfilter select { width: auto; margin: 0; padding: .3rem .5rem; font-size: .85rem; }
.spacer { flex: 1; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.me { position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-name { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: .9rem; }
.me-name small { color: var(--muted); font-weight: 400; font-size: .72rem; }
.me-menu { position: absolute; right: 0; top: 120%; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: .35rem; min-width: 200px; box-shadow: 0 12px 32px rgba(31, 29, 26, .14); z-index: 10; }
.me-menu a, .me-menu button { display: block; width: 100%; text-align: left; padding: .45rem .65rem; color: var(--ink); border-radius: var(--r-s); font-size: .9rem; background: none; border: 0; }
.me-menu a:hover, .me-menu button:hover { background: var(--raise); text-decoration: none; }
.me-menu form { margin: 0; }
.content { padding: 1.3rem 1.7rem 3rem; max-width: 1560px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.page-head p { margin: 0; max-width: 80ch; }
.page-date { color: var(--muted); white-space: nowrap; font-family: var(--mono); font-size: .78rem; }
body.plain { min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #fbe6c3, transparent 55%), var(--bg); }
.plain-top { display: flex; align-items: center; gap: .6rem; padding: 1.2rem 1.6rem; font-weight: 800; }
body.plain .content { max-width: 520px; margin: 6vh auto; }

/* --- 카드 · 글자 ------------------------------------------------------------------------------------------ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head a, .card-head .muted { font-size: .85rem; }
.card.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.nowrap { white-space: nowrap; }
.error { color: var(--red); background: var(--red-bg); border: 1px solid #f5c6c6; padding: .55rem .8rem; border-radius: var(--r-s); }
.notice { background: var(--cyan-bg); border: 1px solid #bfe2dd; color: var(--ink); padding: .6rem .9rem; border-radius: var(--r-s); margin: 0 0 1rem; }
.notice.warn { background: var(--amber-bg); border-color: var(--amber-line); }
.notice.bad { background: var(--red-bg); border-color: #f5c6c6; }
.notice ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.good { color: var(--green); }
.bad, .red { color: var(--red); }
.amber { color: var(--amber-d); }
.pre { white-space: pre-wrap; font-size: .9rem; color: var(--ink2); }
.eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- 표 ----------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .74rem; color: var(--muted); font-weight: 650; letter-spacing: .03em; border-bottom-color: var(--line2); white-space: nowrap; background: var(--panel2); }
tbody tr:hover td { background: #fcfbf8; }
th.num, td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.dim td, tr.late td { color: var(--muted); }
td.na { color: var(--faint); font-family: var(--mono); font-size: .8rem; }

/* --- 꼬리표 ------------------------------------------------------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 650; padding: .06rem .45rem; border-radius: 4px; background: var(--raise);
  color: var(--ink2); border: 1px solid var(--line2); white-space: nowrap; line-height: 1.5; vertical-align: .08em; }
.tag.warn, .tag.orange, .tag.amber { background: var(--amber-bg); color: var(--amber-d); border-color: var(--amber-line); }
.tag.blue { background: var(--blue-bg); color: var(--blue); border-color: #c9d7fa; }
.tag.violet { background: var(--violet-bg); color: var(--violet); border-color: #d9c9f7; }
.tag.green { background: var(--green-bg); color: var(--green); border-color: #bfe3cb; }
.tag.red { background: var(--red-bg); color: var(--red); border-color: #f2c2c2; }
.tag.cyan { background: var(--cyan-bg); color: var(--cyan); border-color: #bfe2dd; }
.tag.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag.mono { font-family: var(--mono); font-weight: 500; }
.count { font-family: var(--mono); font-size: .75rem; color: var(--muted); background: var(--raise); border-radius: 999px; padding: 0 .45rem; margin-left: .3rem; }

/* --- 입력 --------------------------------------------------------------------------------------------- */
label { display: block; font-size: .82rem; color: var(--ink2); margin: 0 0 .65rem; font-weight: 550; }
label.chk { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; color: var(--ink); font-size: .88rem; font-weight: 450; }
input[type=email], input[type=password], input[type=text], input[type=search], input[type=number], input[type=url], input:not([type]), select, textarea, input[type=date] {
  display: block; width: 100%; margin-top: .25rem; padding: .5rem .65rem; font: inherit; font-size: .92rem; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid var(--line2); border-radius: var(--r-s); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .16); }
textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 14rem; font-family: var(--mono); font-size: .84rem; }
textarea.mid { min-height: 8rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--amber-d); width: 1rem; height: 1rem; }
fieldset[disabled] { opacity: .65; }
button, .button, .btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .88rem; font-weight: 650; padding: .48rem .9rem; border-radius: var(--r-s);
  border: 1px solid var(--line2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none !important; }
button:hover, .btn:hover { border-color: var(--faint); background: var(--panel2); }
.btn.primary, button.primary, button:not([class]):not([type=button]) { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover, button.primary:hover, button:not([class]):not([type=button]):hover { background: #000; }
.btn.go, button.go { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn.go:hover, button.go:hover { background: var(--amber-d); }
.btn.ghost, button.ghost { background: transparent; }
.btn.danger, button.danger { background: #fff; color: var(--red); border-color: #efb4b4; }
button.big { width: 100%; justify-content: center; padding: .85rem; font-size: 1rem; background: var(--ink); color: #fff; border-color: var(--ink); }
button.link { background: none; border: 0; padding: 0; color: var(--amber-d); font-weight: 500; }
.btn.sm, button.sm { padding: .22rem .55rem; font-size: .78rem; }
form.inline { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
form.inline input, form.inline select { margin: 0; width: auto; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 .9rem; }
.formgrid .wide { grid-column: 1 / -1; }
.formgrid .half { grid-column: span 2; }
.actions, .actform { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .2rem 0; }
.actform select, .actform input { width: auto; margin: 0; }
.actform textarea { flex: 1 1 100%; }
details.alt, details.fold { margin-top: .7rem; }
details.alt summary, details.fold summary { cursor: pointer; color: var(--muted); font-size: .86rem; }
details.fold[open] summary { margin-bottom: .7rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-s); padding: .6rem .8rem; margin: 0 0 .8rem; }
legend { font-size: .78rem; color: var(--muted); padding: 0 .3rem; }

/* --- 레이아웃 ----------------------------------------------------------------------------------------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.col { min-width: 0; }
ul.plain-list { list-style: none; padding: 0; margin: 0; }
ul.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
ul.plain-list li:last-child { border-bottom: 0; }
nav.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 1rem; }
nav.tabs a { padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: .85rem; text-decoration: none; background: #fff; }
nav.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.jump { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .85rem; margin: -.3rem 0 1rem; }
.jump a { color: var(--muted); }

/* --- 숫자 판 ------------------------------------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.kpi { display: flex; gap: .7rem; align-items: flex-start; background: var(--panel); padding: .85rem 1rem; color: var(--ink); text-decoration: none !important; }
a.kpi:hover { background: var(--panel2); }
.kpi > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.kpi small { color: var(--muted); font-size: .76rem; }
.kpi b { font-family: var(--mono); font-size: 1.55rem; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.kpi b i { font-style: normal; font-size: .8rem; color: var(--muted); margin-left: .2rem; font-family: var(--sans); }
.kpi b.red { color: var(--red); } .kpi b.amber { color: var(--amber-d); }
.kpi em { font-style: normal; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.kico { display: none; }

/* --- 오늘: 결정 목록 ------------------------------------------------------------------------------------- */
.decide { list-style: none; margin: 0; padding: 0; }
.decide li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .7rem; align-items: center; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.decide li:last-child { border-bottom: 0; }
.decide .dk { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--raise); color: var(--ink2); }
.decide .dk.choose { background: var(--amber-bg); color: var(--amber-d); }
.decide .dk.failed, .decide .dk.revision { background: var(--red-bg); color: var(--red); }
.decide .dk.approve, .decide .dk.publish { background: var(--green-bg); color: var(--green); }
.decide .dk.cast { background: var(--violet-bg); color: var(--violet); }
.decide b { font-weight: 650; }
.state-row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* --- 제작 보드 ------------------------------------------------------------------------------------------- */
.fboard { display: grid; grid-template-columns: repeat(9, minmax(185px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1rem; }
.col-card { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: .55rem; min-height: 180px; }
.col-card h3 { font-size: .78rem; margin: .1rem .2rem .6rem; color: var(--muted); letter-spacing: .04em; display: flex; justify-content: space-between; }
.opp-card { display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: .55rem .6rem; margin-bottom: .45rem;
  color: var(--ink); text-decoration: none !important; font-size: .86rem; box-shadow: var(--shadow); }
.opp-card:hover { border-color: var(--amber); }
.opp-card .act { font-size: .76rem; color: var(--ink2); border-left: 2px solid var(--amber); padding-left: .4rem; }
.opp-card .act.red { border-color: var(--red); } .opp-card .act.green { border-color: var(--green); }

/* --- 기록 --------------------------------------------------------------------------------------------- */
ul.timeline { list-style: none; padding: 0; margin: 0; }
ul.timeline li { position: relative; padding: .1rem 0 .8rem 1.1rem; border-left: 1px solid var(--line2); margin-left: .3rem; font-size: .9rem; }
ul.timeline li::before { content: ""; position: absolute; left: -4px; top: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
ul.timeline li.decision::before { background: var(--amber); }
ul.timeline .time { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* --- 편 작업실 머리: 슬레이트 · 지금 할 행동 · 탭 ---------------------------------------------------------------------- */
.slate { display: grid; grid-template-columns: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: .8rem; box-shadow: var(--shadow); }
.slate-stripes { width: 16px; background: repeating-linear-gradient(135deg, var(--ink) 0 8px, #fff 8px 16px); }
.slate-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.slate-cell { padding: .5rem .8rem; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slate-cell small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slate-cell b { font-family: var(--mono); font-weight: 650; font-size: .95rem; }
.actbar { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--r); padding: .7rem 1rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.actbar.red { border-left-color: var(--red); } .actbar.green { border-left-color: var(--green); } .actbar.warn { border-left-color: var(--amber); }
.actbar small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .08em; font-family: var(--mono); }
.actbar b { font-size: 1.02rem; }
.assetstrip { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: 0 0 .8rem; font-size: .8rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem .15rem .2rem; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--ink); font-size: .8rem; text-decoration: none !important; }
.chip .face { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--raise); display: grid; place-items: center; font-size: .7rem; }
.chip .face img { width: 100%; height: 100%; object-fit: cover; }
.chip.locked { border-color: #bfe3cb; } .chip.open { border-color: var(--amber-line); background: var(--amber-bg); }
.wtabs { display: flex; gap: 0; border-bottom: 1px solid var(--line2); margin: 0 0 1rem; overflow-x: auto; }
.wtabs a { padding: .55rem .95rem; color: var(--muted); font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.wtabs a:hover { color: var(--ink); }
.wtabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.wtabs a .count { margin-left: .25rem; }
.stagebar { display: flex; gap: 2px; margin: 0 0 .8rem; }
.stagebar span { flex: 1; text-align: center; font-size: .72rem; padding: .3rem .2rem; background: var(--panel); color: var(--faint); border-top: 3px solid var(--line); }
.stagebar span.done { color: var(--ink2); border-top-color: var(--faint); }
.stagebar span.now { color: var(--amber-d); border-top-color: var(--amber); background: var(--amber-bg); font-weight: 750; }
ul.checklist { list-style: none; padding: 0; margin: .3rem 0 .8rem; }
ul.checklist li { display: flex; gap: .5rem; align-items: baseline; padding: .18rem 0; font-size: .9rem; }
ul.checklist li::before { content: "○"; color: var(--faint); font-family: var(--mono); }
ul.checklist li.ok::before { content: "●"; color: var(--green); }
ul.checklist li.no::before { content: "●"; color: var(--red); }

/* --- 필름 띠(어둡게: 화면이 주인공) ------------------------------------------------------------------------------------ */
.scene-head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: .3rem 0 .5rem; }
.scene-head b { font-family: var(--mono); color: var(--amber-d); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; padding: 12px 10px; background: var(--film); border-radius: var(--r-s);
  border-top: 8px solid var(--film); border-bottom: 8px solid var(--film); margin-bottom: 1rem;
  background-image: radial-gradient(circle, #34312d 2.2px, transparent 2.6px), radial-gradient(circle, #34312d 2.2px, transparent 2.6px);
  background-size: 14px 8px, 14px 8px; background-position: 0 -4px, 0 calc(100% + 4px); background-repeat: repeat-x; }
.frame { display: flex; flex-direction: column; background: var(--film2); border: 1px solid #34312d; border-radius: 4px; overflow: hidden; color: #ece8e1; text-decoration: none !important; }
.frame:hover { border-color: var(--amber); }
.frame-img { aspect-ratio: 9 / 16; background: linear-gradient(160deg, #2b2926, #121110); position: relative; display: grid; place-items: center; overflow: hidden; }
.frame-img img, .frame-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-img .ph { color: #7d776e; font-family: var(--mono); font-size: .72rem; text-align: center; padding: .5rem; }
.frame-no { position: absolute; top: 6px; left: 6px; font-family: var(--mono); font-size: .7rem; background: rgba(0, 0, 0, .7); color: #fff; padding: .05rem .35rem; border-radius: 3px; }
.frame-st { position: absolute; top: 6px; right: 6px; }
.frame-cam { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .4rem .35rem; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-family: var(--mono); font-size: .64rem; color: #f5c27a; display: flex; gap: .35rem; flex-wrap: wrap; }
.frame-txt { padding: .45rem .5rem .55rem; font-size: .76rem; line-height: 1.35; }
.frame-txt q { display: block; color: #aaa39a; margin-top: .2rem; }
.frame.warn { border-color: #b8741f; }

/* --- 샷 탭: 샷 한 줄 · 테이크 · 비교 ------------------------------------------------------------------------------------ */
.shotrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.shotrow:last-child { border-bottom: 0; }
.shotrow .board { aspect-ratio: 9 / 16; background: var(--film2); border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: #8a847a; font-family: var(--mono); font-size: .7rem; text-align: center; }
.shotrow .board img, .shotrow .board video { width: 100%; height: 100%; object-fit: cover; }
.shothead { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.shothead b.mono { color: var(--amber-d); }
.takes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 160px)); gap: .6rem; margin-top: .6rem; }
.tk { border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.tk .tthumb { aspect-ratio: 9 / 16; background: var(--film2); display: grid; place-items: center; color: #8a847a; font-family: var(--mono); font-size: .72rem; position: relative; }
.tk .tthumb img, .tk .tthumb video { width: 100%; height: 100%; object-fit: cover; }
.tk .tbody { padding: .4rem .5rem .5rem; font-size: .76rem; display: flex; flex-direction: column; gap: .3rem; }
.tk.approved { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.tk.rejected { opacity: .55; } .tk.failed { border-color: #f2c2c2; }
.tk form { margin: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.prov { font-family: var(--mono); font-size: .72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .6rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare .pane { background: var(--film); border-radius: var(--r); padding: .7rem; color: #ece8e1; }
.compare video, .compare img { width: 100%; max-height: 72vh; object-fit: contain; background: #000; border-radius: 4px; display: block; }
.compare .ph { aspect-ratio: 9 / 16; max-height: 72vh; display: grid; place-items: center; color: #8a847a; font-family: var(--mono); background: #000; border-radius: 4px; }
.camcard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; margin-bottom: .8rem; }
.camcard div { background: var(--panel); padding: .5rem .65rem; }
.camcard small { display: block; font-size: .64rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); }
.camcard b { font-family: var(--mono); font-weight: 650; font-size: .93rem; color: var(--ink); }
.refvid { width: 100%; max-height: 480px; background: #000; border-radius: var(--r-s); display: block; }
.take { display: grid; grid-template-columns: 90px 1fr auto; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.take .tthumb { aspect-ratio: 9 / 16; background: var(--film2); border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: #8a847a; font-family: var(--mono); font-size: .7rem; }
.take .tthumb video, .take .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.take.approved .tthumb { box-shadow: 0 0 0 2px var(--green); }
.take.rejected { opacity: .55; }

/* --- 배우 · 미장센 · 레퍼런스 -------------------------------------------------------------------------------------- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cast-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cast-card:hover { border-color: var(--amber); }
.portrait { aspect-ratio: 3 / 4; background: linear-gradient(170deg, #ece7de, #d9d2c5); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.portrait .ph, .portrait .initial { font-size: 2.6rem; font-weight: 800; color: #bdb5a7; }
.portrait .seal { position: absolute; top: 8px; right: 8px; }
.cast-meta { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.cast-meta b { font-size: 1rem; }
.facepile { display: inline-flex; }
.facepile span { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-left: -8px; background: var(--raise); display: grid; place-items: center; font-size: .7rem; }
.facepile span:first-child { margin-left: 0; }
.facepile img { width: 100%; height: 100%; object-fit: cover; }
.sheet { width: 100%; border-radius: var(--r-s); border: 1px solid var(--line); display: block; background: #fff; }
.hero-cast { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.lockline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .8rem; border-radius: var(--r-s); background: var(--panel2); border: 1px solid var(--line); margin-bottom: .8rem; }
.sha { font-family: var(--mono); font-size: .76rem; color: var(--cyan); word-break: break-all; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.prompt { font-family: var(--mono); font-size: .78rem; color: var(--ink2); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-s); padding: .5rem .6rem; white-space: pre-wrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.tpl { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem; border: 1px solid var(--line2); border-radius: var(--r-s); color: var(--ink); text-decoration: none !important; background: #fff; font-size: .82rem; }
.tpl b { font-size: .9rem; }
.tpl span { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.tpl.on { border-color: var(--amber); background: var(--amber-bg); }
.tpl svg { width: 100%; height: 56px; color: var(--amber-d); margin-bottom: .2rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.lib { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.lib:hover { border-color: var(--amber); }
.lib b { font-size: 1.05rem; } .lib .big { font-family: var(--mono); font-size: 1.6rem; font-weight: 650; }

/* --- 캘린더 · BO 카드 -------------------------------------------------------------------------------------------- */
.cal { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: 150px repeat(14, minmax(84px, 1fr)); gap: 1px; }
.cal-row > div { background: #fff; padding: .4rem .45rem; min-height: 56px; font-size: .78rem; }
.cal-row.head > div { background: var(--panel2); min-height: 0; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.cal-row .today { background: var(--amber-bg) !important; }
.cal-row .wkend { background: #fbfaf7; }
.cal-ep { display: block; padding: .15rem .35rem; border-radius: 4px; margin-bottom: .2rem; background: var(--raise); color: var(--ink); text-decoration: none !important; border-left: 3px solid var(--faint); line-height: 1.3; }
.cal-ep.approved { border-left-color: var(--green); background: var(--green-bg); }
.cal-ep.published, .cal-ep.measured { border-left-color: var(--ink); background: #ecebe8; }
.cal-ep.review { border-left-color: var(--amber); background: var(--amber-bg); }
.bo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.bo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--shadow); scroll-margin-top: 70px; }
.bo-card h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.bo-card .why { font-size: .86rem; color: var(--ink2); }
.bo-card .meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.bo-card.done { opacity: .6; }

/* --- 작은 화면 ------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid2, .grid2.even, .grid3, .hero-cast, .compare { grid-template-columns: 1fr; }
  .camcard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.app { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; padding: .6rem .8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { padding-bottom: .3rem; }
  .nav-btn { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink2); cursor: pointer; font-size: .85rem; }
  .burger { display: inline-flex; flex-direction: column; gap: 3px; }
  .burger i { display: block; width: 16px; height: 2px; background: currentColor; }
  .nav { display: none; padding-top: .5rem; }
  .navt:checked ~ .side .nav { display: flex; }
  .topbar { padding: .5rem 1rem; position: static; flex-wrap: wrap; }
  .content { padding: 1rem 1rem 2.5rem; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .fboard { grid-template-columns: repeat(9, 220px); }
  .actbar { grid-template-columns: 1fr; }
  .shotrow { grid-template-columns: 64px minmax(0, 1fr); }
  .take { grid-template-columns: 70px 1fr; }
  .take > :last-child { grid-column: 1 / -1; }
  .card-head h2 { flex: 1 1 100%; }
}
