/* 1022 새 편집기 [키트] 이 영상에서만 바꾸기 · 이렇게 보여요 · 인트로/아웃트로/끝맺음 ▶ · 단계 표시(✓ ●) · 640px 이하 위 막대 한 줄([⋯]) — edv2-kit.js
 *  앱 색 변수만 씀 · 글자 13px 이상(간편 17px) · 누르는 곳 44px(375 단계 탭 48px · 메뉴 44px) · 색 대비: ✓ 초록 #15803D · ● 청록 #0F766E 흰 바탕 4.5:1 이상 */
.kt { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.kt .ev2-field { margin: 0; }
.kt-sws { display: flex; flex-direction: column; gap: 0; }
.kt-sw.off { color: var(--muted); }
.kt-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.kt-card p { margin: 0; }
.kt-secs { margin-left: 0; }
.kt-pos, .kt-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.kt-pos .btn, .kt-subs .btn { min-height: 44px; padding: 0 8px; font-size: 14px; justify-content: center; }
.kt-pos .btn[aria-pressed="true"], .kt-subs .btn[aria-pressed="true"], .kt-kitb[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kt-kitb { min-height: 44px; font-size: 14px; }
.kt-font { width: 100%; min-height: 44px; }
/* 이렇게 보여요 */
.kt-grid { display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: flex-end; }
.kt-shot { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.kt-shot.off .kt-mini { opacity: .45; }
.kt-shot figcaption { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kt-mini { position: relative; overflow: hidden; border-radius: 8px; background: #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: 0 0 auto; }
.kt-mini > img, .kt-mini > video, .kt-mini > canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.kt-mini img.kt-ml { position: absolute; height: auto; object-fit: contain; }
.kt-mt { position: absolute; left: 4%; right: 4%; transform: translateY(-50%); text-align: center; line-height: 1.15; font-weight: 700; -webkit-text-stroke: .5px #000; paint-order: stroke fill; overflow-wrap: anywhere; }
.kt-ms { position: absolute; left: 4%; right: 4%; transform: translateY(-50%); text-align: center; line-height: 1.2; font-weight: 700; }
.kt-play { min-height: 32px !important; min-width: 44px; padding: 0 10px !important; font-size: 14px !important; }
/* 위 미리보기 덮개(인트로 · 끝맺음 · 아웃트로 재생) */
.kt-roll { position: absolute; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; }
.kt-roll > img, .kt-roll > video, .kt-roll > canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.kt-rollbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px; background: rgba(17,24,39,.82); color: #fff; font-size: 13px; }
.kt-rollt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-rollx { flex: 0 0 auto; min-height: 36px; min-width: 36px; padding: 0 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.kt-rollx:hover, .kt-rollx:focus-visible { background: rgba(255,255,255,.18); }
/* 단계 표시 */
.kt-steps { gap: 6px; }
.kt-steps > li { min-width: 0; }
.kt-steps button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 14px; }
.kt-steps.simple button { min-height: 56px; font-size: 17px; padding-right: 16px; }
.kt-sn { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--track); color: var(--ink-2); font-weight: 700; font-size: 13px; }
.kt-sm { font-size: 13px; font-weight: 700; min-width: 1ch; }
.kt-steps [data-st="done"] .kt-sn { background: var(--ok); color: #fff; }
.kt-steps [data-st="done"] .kt-sm { color: var(--ok); }
.kt-steps [aria-current="step"] { border-color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.kt-steps [aria-current="step"] .kt-sn { background: var(--teal); color: #fff; }
.kt-steps [aria-current="step"] .kt-sm { color: var(--teal); }
.kt-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 위 막대 [⋯] — 넓은 화면에서는 숨김 */
.ev2-top [data-ktmore] { display: none; }
.kt-menu { position: fixed; z-index: 80; max-height: 70vh; overflow: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.22); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.kt-menu .kt-mi { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.kt-menu button.kt-mi:hover, .kt-menu button.kt-mi:focus-visible { background: var(--teal-light); }
.kt-menu button.kt-mi:disabled { color: var(--disabled-ink); cursor: default; background: transparent; }
.kt-menu .kt-mi.info { margin: 0; color: var(--muted); font-size: 13px; cursor: default; min-height: 32px; }
.kt-menu .kt-mi.sel { justify-content: space-between; cursor: default; }
.kt-menu .kt-mi.sel select { min-height: 40px; max-width: 62%; }
.kt-menu .kt-mi.seg { display: flex; gap: 4px; padding: 4px 6px; }
.kt-menu .kt-mi.seg button { flex: 1 1 0; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.kt-menu .kt-mi.seg button[aria-checked="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
html[data-mode="simple"] .kt-menu .kt-mi, html[data-mode="simple"] .kt-menu .kt-mi.seg button { font-size: 17px; min-height: 56px; }
html[data-mode="simple"] .kt-pos .btn, html[data-mode="simple"] .kt-subs .btn, html[data-mode="simple"] .kt-shot figcaption { font-size: 17px; }
@media (max-width: 640px) {
  /* 위 막대 = 한 줄: ← · 이름 · ↶ · [내보내기] · [⋯] (나머지는 [⋯] 메뉴) · 내보내기 상태 글은 생기면 아래 줄 */
  .ev2-top { flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
  .ev2-top > :not([data-ev2back]):not(.ev2-name):not([data-ev2undo]):not([data-ev2export]):not([data-ktmore]):not(.ev2-exst) { display: none !important; }
  .ev2-top .ev2-name { flex: 1 1 0; order: 0; max-width: none; min-width: 0; font-size: 16px; }
  html[data-mode="simple"] .ev2-top .ev2-name { font-size: 17px; }
  .ev2-top [data-ev2back] { font-size: 0 !important; min-width: 44px; padding: 0 10px; justify-content: center; }
  .ev2-top [data-ev2back]::before { content: '←'; font-size: 20px; line-height: 1; }
  .ev2-top [data-ev2export] { padding: 0 12px; }
  .ev2-top [data-ktmore] { display: inline-flex; justify-content: center; }
  .ev2-top .ev2-exst { flex: 1 1 100%; order: 10; }
  .ev2-top .ev2-exst:empty { display: none; }
  /* 단계 = 가로 탭 한 줄 */
  .kt-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; flex-wrap: nowrap; }
  .kt-steps button { width: 100%; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border-radius: 10px; font-size: 12px; line-height: 1.2; text-align: center; }
  .kt-steps.simple button { min-height: 64px; font-size: 17px; padding: 4px 2px; }
  .kt-sl { word-break: keep-all; overflow-wrap: anywhere; }
  .kt-sn { width: 22px; height: 22px; font-size: 12px; }
  .kt-sm { position: absolute; top: 3px; right: 5px; font-size: 12px; }
}
