/* 1021 새 영상 편집기 장면 칸(edv2-scene.js) — 앱 색 변수만 · 글자 13px 이상(간편 17px) · 누르는 곳 44px(간편 큰 단추 56px) · 375px 가로 넘침 없음 */
/* 왼쪽 [장면] 목록 */
.edv2s-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.edv2s-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.edv2s-card.on { border-color: var(--teal); background: var(--teal-light); }
.edv2s-card.off .edv2s-t { text-decoration: line-through; }
.edv2s-card.off { opacity: .75; }
.edv2s-card.dragging { opacity: .5; }
.edv2s-card.drop-b { box-shadow: 0 -3px 0 var(--teal); } .edv2s-card.drop-a { box-shadow: 0 3px 0 var(--teal); }
.edv2s-sel { flex: 1 1 180px; min-width: 0; display: flex; gap: 8px; align-items: center; text-align: left; min-height: 56px; padding: 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; border-radius: 8px; }
.edv2s-sel:focus-visible, .edv2s-chip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.edv2s-t { min-width: 0; overflow-wrap: anywhere; }
.edv2s-th { flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: #2b2d31 no-repeat; display: inline-flex; align-items: center; justify-content: center; }
.edv2s-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edv2s-th.src span { color: #fff; font-size: 13px; }   /* 1022 주황(#b45309) 위 흰 글자 5:1(예전 #e7e5e4 = 4:1) */
.edv2s-th.src.has span { display: none; }
.edv2s-ctl { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.ev2 .edv2s-ctl .btn { padding: 0 10px; }
.edv2s-len { border-top: 1px dashed var(--line-2); margin-top: 10px; padding-top: 4px; }
.edv2s-len .ev2-row { margin-bottom: 6px; }
/* 오른쪽 [장면] 전환 칩 */
.edv2s-tgrps { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.edv2s-tgrp { display: flex; flex-direction: column; gap: 4px; }
.edv2s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.edv2s-chip { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.edv2s-chip[draggable="true"] { cursor: grab; }
.edv2s-chip.on { border: 3px solid var(--teal); background: var(--teal-light); font-weight: 600; padding: 0 10px; }
.edv2s-chip[disabled] { background: var(--disabled, #e7e5e4); color: var(--disabled-ink, #57534e); cursor: not-allowed; border-color: var(--line); }
.ev2 .btn[aria-pressed="true"] { border: 3px solid var(--teal); background: var(--teal-light); }
.ev2 .edv2s-trx { font-weight: 500; }
.ev2-field select.inp { min-height: 44px; font-size: 14px; max-width: 100%; }
/* 타임라인 전환 표시 */
.edv2s-tmk { position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 4; font-style: normal; font-size: 13px; line-height: 1; padding: 3px 4px; border-radius: 999px; background: var(--ink); color: var(--surface); pointer-events: none; }
/* 왼쪽 [원본 정리] — clean.js 화면을 원본 비율 작은 화면에 */
.edv2s-clean { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.edv2s-clplay { position: relative; width: 100%; aspect-ratio: var(--clar, 1.7778); background: #000; border-radius: 8px; overflow: hidden; }
.edv2s-clplay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.edv2s-clean .clov { z-index: 3; }
.edv2s-clean .clb .cllab, .edv2s-clean .clen { font-size: 13px; }
.edv2s-clean .clfoot [data-clnext] { display: none; }   /* 쇼츠 편집기 "다음: 2 조각 다듬기" — 새 편집기에는 그 탭이 없음 */
.edv2s-clean .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.edv2s-clean .chip { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.edv2s-clean .chip[aria-pressed="true"] { padding: 0 12px; }
.ev2 .edv2s-clean .btn.xs, .ev2 .edv2s-clean .btn.sm { min-height: 44px; font-size: 14px; padding: 0 12px; }
.edv2s-clean .min { font-size: 13px; }
.edv2s-clean .clstep h4 { font-size: 15px; }
.edv2s-clean .clrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.edv2s-clean .clrow.on { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.edv2s-clean .clfoot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.edv2s-clean input[type=color] { width: 44px; height: 40px; vertical-align: middle; }
/* 간편 모드 — 원본 정리는 자막 가리기(안 함 · 띠 · 흐림 · 지우기)만 · 글자 17px · 큰 단추 56px */
html[data-mode="simple"] .edv2s-clean [data-clstep="2"], html[data-mode="simple"] .edv2s-clean [data-clstep="3"] { display: none; }
html[data-mode="simple"] .edv2s-clean .chip { min-height: 56px; font-size: 17px; padding: 0 18px; }
html[data-mode="simple"] .edv2s-clean .min, html[data-mode="simple"] .edv2s-clean .clstep h4, html[data-mode="simple"] .edv2s-clean .clb .cllab, html[data-mode="simple"] .edv2s-sel, html[data-mode="simple"] .edv2s-chip, html[data-mode="simple"] .edv2s-th.src span, html[data-mode="simple"] .edv2s-tmk { font-size: 17px; }
html[data-mode="simple"] .ev2 .edv2s-clean .btn.xs, html[data-mode="simple"] .ev2 .edv2s-clean .btn.sm { font-size: 17px; min-height: 56px; }
html[data-mode="simple"] .edv2s-sel { min-height: 64px; }
html[data-mode="simple"] .ev2 .edv2s-ctl .btn { min-height: 56px; }
@media (max-width: 420px) { .edv2s-ctl { margin-left: 0; width: 100%; } }
/* 1022 왼쪽 [장면] — [+ 그림 장면] · [+ 원본 구간] 한 줄 · 거르기 · 여러 개 고르기 · 챕터 묶음 */
.edv2s-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 8px; min-width: 0; }
.edv2s-add > .btn { min-height: 44px; border-color: var(--teal); }
.edv2s-add .edv2x-add0.in { border-top: 0; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; }
.edv2s-add .edv2x-add0.in > .ev2-muted { display: none; }
.edv2s-flt { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.edv2s-mbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; min-width: 0; }
.edv2s-mbar .btn { min-height: 44px; padding: 0 10px; }
.edv2s-mbar.on { position: sticky; top: 0; z-index: 2; background: var(--surface); border: 2px solid var(--teal); border-radius: 10px; padding: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.edv2s-mbtn { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.edv2s-card.picked { border: 2px solid var(--teal); background: var(--teal-light); }
.edv2s-ck { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--ink-3, #57534e); background: var(--surface); color: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.edv2s-ck.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.edv2s-chs { display: flex; flex-direction: column; gap: 8px; }
.edv2s-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-width: 0; }
.edv2s-ch.on { flex-direction: column; align-items: stretch; border: 2px solid var(--teal); }
.edv2s-chh { margin: 0; font-size: 14px; font-weight: 400; min-width: 0; flex: 1 1 160px; overflow-wrap: anywhere; }
.edv2s-ch > .btn { min-height: 44px; margin-left: auto; }
/* [+ 그림 장면] 창 — 그림 고르기 칸 */
.edv2s-padd { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.edv2s-up { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.edv2s-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; min-width: 0; }
.edv2s-pcell { aspect-ratio: 1; min-height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #2b2d31; overflow: hidden; cursor: pointer; }
.edv2s-pcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edv2s-pcell.on { border: 4px solid var(--teal); }
.edv2s-pcell:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* 오른쪽 [장면] — 적용 범위 · 원본 구간 화면 배치 */
.edv2s-scope { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin-bottom: 10px; }
.edv2s-scope.all { border: 2px solid #b45309; background: #fdf3e7; }
.edv2s-scope.all .ev2-muted { color: #431407; }
.edv2s-scope .btn { min-height: 44px; }
.edv2s-vfit { border-top: 1px dashed var(--line-2, var(--line)); margin-top: 8px; padding-top: 4px; }
.edv2s-vfit input[type="range"] { width: 100%; max-width: 100%; }
html[data-mode="simple"] .edv2s-mbar .btn, html[data-mode="simple"] .edv2s-add > .btn, html[data-mode="simple"] .edv2s-ch > .btn { min-height: 56px; font-size: 17px; }
html[data-mode="simple"] .edv2s-chh, html[data-mode="simple"] .edv2s-mbar { font-size: 17px; }
@media (max-width: 420px) { .edv2s-mbtn { width: 100%; } .edv2s-pgrid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
