/* 1005 208 9장 1단계 — 통합 영상 편집기 껍데기(#/editor-next) · 색 · 간격은 확정 아님(대표: 기능 완성 후 한 번에) — 앱 색 변수만 씀 */
.edn { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.edn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
/* 1005 대표 고침 ①② — 편집기에 들어오면 /new 왼쪽 메뉴는 아이콘 줄 · 머리말 줄은 숨기고 위 막대 하나로(간편|전문가 · 🔔 는 위 막대 오른쪽 끝) · 화면 폭 전체 · 나가면 원래대로(leave) */
@media (min-width: 768px) {
  body.edn-on:not(.edn-navx) .nav { width: var(--nav-rail-w); flex-basis: var(--nav-rail-w); padding: 10px 6px; align-items: center; }
  body.edn-on:not(.edn-navx) .nav .logo b, body.edn-on:not(.edn-navx) .nav .kit, body.edn-on:not(.edn-navx) #nav .grp, body.edn-on:not(.edn-navx) .nav .lbl, body.edn-on:not(.edn-navx) .nav .new, body.edn-on:not(.edn-navx) .nav .acct .t, body.edn-on:not(.edn-navx) .nav .acct button, body.edn-on:not(.edn-navx) .nav .xback, body.edn-on:not(.edn-navx) .nav hr { display: none !important; }
  body.edn-on:not(.edn-navx) .nav a.it { width: 56px; justify-content: center; padding: 0; }
  body.edn-on:not(.edn-navx) .nav .badge { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; font-size: 12px; padding: 0 5px; }
}
body.edn-on .hdr { display: none; }
body.edn-on .view { padding: 12px 16px; max-width: none; }
.edn-top .mseg { margin-left: 4px; } .edn-top .xqwrap { display: flex; align-items: center; gap: 4px; } .edn-top .xqwrap[hidden] { display: none; }
.edn-top .bell { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); } .edn-top .bell svg { width: 18px; height: 18px; }
.edn-name { font-size: 17px; } .edn-sub { color: var(--muted); font-size: 14px; }
/* 1006 2-a v2 위 막대는 늘 한 줄 — 단추 · 칸은 줄지 않고 제목 · 내보내기 상태만 줄여서 말줄임(전체 글은 title) */
.edn-top { flex-wrap: nowrap; } .edn-top > * { flex-shrink: 0; } .edn-top .btn { white-space: nowrap; }
.edn-top .edn-name { white-space: nowrap; } .edn-top .edn-sub { flex: 0 1 auto; min-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edn-top .edn-exst { flex: 0 1 auto; min-width: 0; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .edn-top .grow { flex: 1 1 0; min-width: 0; } .edn-top .grow, .edn-vh .grow, .edn-ctl .grow, .edn-ph .grow { flex: 1; }
.edn-note { margin: 0; }
.edn-main { display: flex; gap: 10px; align-items: stretch; height: max(480px, calc(100vh - 290px)); }   /* 1012 N23 실제 높이는 fit() 이 창 높이 − 칸 위치 − 타임라인으로 다시 정함 */   /* 칸 높이 고정 · 칸 안에서 스크롤(타임라인이 화면 밖으로 밀리지 않게) */
.edn-pane { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
/* 1005 대표 고침 ③ — 208 1장 비율: 왼쪽 200 · 미리보기(남는 폭 · 비율 따라 높이) · 대본 330 이상 · 도구 270. 미리보기 폭 · 높이는 fit() 이 정함(16:9 면 낮게 · 위아래 빈칸 없이) */
/* 1012 N23 대표 지시: 화면 크기가 바뀌면 칸 넷이 같은 비율로 같이 늘고 줄어듦 · 왼쪽(소스) · 오른쪽(도구) 칸을 넓게(대본 · 미리보기는 그만큼 좁게) — 폭은 편집 칸 폭의 % · 미리보기는 fit() 이 남는 폭 · 칸 높이에 맞춤 */
.edn-left { flex: 0 0 var(--edn-lw, 19%); min-width: 200px; } .edn-view { flex: 0 0 auto; align-self: flex-start; max-height: 100%; background: #2f2a26; color: #f3efe7; padding: 10px; } .edn-script { flex: 1 1 var(--edn-sw, 22%); min-width: 240px; } .edn-right { flex: 0 0 var(--edn-rw, 25%); min-width: 280px; }
.edn-main.fold-script .edn-view { margin: 0 auto; }
.edn-strip { display: none; flex: 0 0 40px; width: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 8px 0; align-items: center; flex-direction: column; gap: 8px; font: inherit; font-size: 13px; line-height: 1.3; }
.edn-main.fold-left .edn-left, .edn-main.fold-script .edn-script, .edn-main.fold-right .edn-right { display: none; }
.edn-main.fold-left [data-unfold="left"], .edn-main.fold-script [data-unfold="script"], .edn-main.fold-right [data-unfold="right"] { display: flex; }
.edn-main [data-unfold="left"] { order: 0; } .edn-left { order: 1; } .edn-view { order: 2; } .edn-script { order: 3; } .edn-main [data-unfold="script"] { order: 4; } .edn-right { order: 5; } .edn-main [data-unfold="right"] { order: 6; }
.edn-ph { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; } .edn-ph > .min { overflow: hidden; text-overflow: ellipsis; }
.edn-fold { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-width: 32px; min-height: 32px; cursor: pointer; font: inherit; }
.edn-tabs { display: flex; gap: 2px; background: var(--beige-2); border-radius: 10px; padding: 2px; flex: 1; }
.edn-tabs button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 6px 2px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.edn-tabs button[aria-selected="true"] { background: var(--surface); font-weight: 700; }
.edn-body { padding: 10px; overflow: auto; flex: 1; font-size: 14px; }
.edn-li { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 6px; }
.edn-vh, .edn-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.edn-q, .edn-ratio { font-size: 12px; background: rgba(0,0,0,.35); border-radius: 6px; padding: 2px 8px; }
.edn-stage { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; margin: 8px 0; }
.edn-frame { background: #6f655b; border-radius: 6px; overflow: hidden; display: flex; }
.edn-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.edn-ctl .btn { min-height: 36px; } .edn-ctl .min { color: #e9e2d6; }
.edn-now { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 8px; background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 14px; } .edn-now[hidden] { display: none; }
.edn-insta { margin-top: 8px; background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 한 줄(칸 높이 계산이 폭에 따라 흔들리지 않게) */ .edn-insta[hidden] { display: none; }
.edn-sc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; } .edn-sc p { margin: 6px 0 0; }
.edn-w { display: inline-block; white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin: 0 2px 4px 0; line-height: 1.6; }
/* 1006 2-a 단어 칩 — 누를 수 있음 · 뺀 단어 줄 그음(남겨 둠) · 자막만 고친 단어 점선 밑줄 · 강조 노랑 */
button.edn-w { font: inherit; color: inherit; background: var(--surface); cursor: pointer; } button.edn-w:hover, button.edn-w:focus-visible { border-color: var(--ink); }
.edn-w.cut { text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; color: var(--muted); background: transparent; border-style: dashed; }
.edn-w.fixed { text-decoration: underline dotted; text-underline-offset: 3px; } .edn-w.cut.fixed { text-decoration: line-through; }
.edn-w.emph { background: #ffe58a; border-color: #d8b400; color: #2f2a26; font-weight: 700; }
[data-ednscript] { position: relative; }
.edn-wmenu { position: absolute; z-index: 5; width: 260px; background: var(--surface); border: 1px solid var(--ink); border-radius: 10px; padding: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); display: grid; gap: 6px; } .edn-wmenu[hidden] { display: none; }
.edn-gap { margin-left: 6px; font-size: 12px; color: #8a5a00; background: #fff4d6; border: 1px solid #e6c46b; border-radius: 6px; padding: 0 6px; }
.edn-wmenu .xrow { display: flex; gap: 6px; flex-wrap: wrap; } .edn-wmenu label { display: grid; gap: 4px; } .edn-wmenu p { margin: 0; }
.edn-tl { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.edn-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; } .edn-row > span { flex: 0 0 56px; color: var(--muted); }
.edn-track { flex: 1; display: flex; gap: 2px; min-height: 24px; background: var(--beige-2); border-radius: 6px; overflow: hidden; } .edn-track.empty { min-height: 14px; }
.edn-clip { font-style: normal; color: #fff; background: #c2541b; padding: 3px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }   /* 원본 구간 = 주황 · 그림 장면 = 초록(다음 단계) */
@media (max-width: 1100px) { .edn-main { flex-wrap: wrap; } .edn-left, .edn-right { flex-basis: 100%; } }
.edn-sync { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; } .edn-sync > div:first-child { flex: 1; min-width: 280px; }   /* 1005 E1 쇼츠 편집기에서 바뀜 */
.edn-clip.pic { background: #2f7d4f; } .edn-clip { cursor: pointer; } .edn-li[data-ednscene] { cursor: pointer; } .edn-li.on { outline: 2px solid var(--teal); }   /* 1005 E3 그림 장면 = 초록 · 원본 = 주황(208) */
.edn-frame img[data-ednpic] { width: 100%; height: 100%; object-fit: cover; } .edn-picnone { color: #f3efe7; font-size: 13px; padding: 12px; } .edn-lock { color: var(--accent); }
/* 1006 2-b 넣은 말(초록) · 글자 바꾸기 대기(주황 점선) · 장면 순서(↕ 끌기 · ↑↓) · 고친 곳 목록 */
.edn-w.ins { background: #e3f6e8; border-color: #2f7d4f; color: #1e5a37; font-weight: 600; } .edn-w.ins.pend { border-style: dashed; }
.edn-w.repl { background: #fff1e0; border-color: #d9822b; border-style: dashed; }
.edn-mv { float: right; display: inline-flex; gap: 4px; align-items: center; } .edn-drag { cursor: grab; padding: 0 4px; color: var(--muted); user-select: none; }
.edn-mv .btn.xs { padding: 0 6px; min-height: 22px; font-size: 12px; } .edn-sc.dropto { outline: 2px dashed #2f7d4f; outline-offset: 2px; }
.edn-pendn { margin-left: 6px; font-size: 12px; color: #8a4b00; background: #fff1e0; border: 1px solid #d9822b; border-radius: 6px; padding: 0 6px; }
.edn-pend { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 8px; display: grid; gap: 6px; } .edn-pend ul { margin: 0; padding-left: 16px; font-size: 13px; }
.edn-pend { min-width: 0; } .edn-pend li { overflow-wrap: anywhere; } .edn-pend .btn { white-space: normal; width: 100%; height: auto; min-height: 36px; line-height: 1.3; } .edn-pend select { max-width: 100%; }   /* 왼쪽 칸 200px 안에서 줄바꿈 */
.edn-aiv { margin-left: 6px; font-size: 12px; color: #1d4ed8; background: #e8efff; border: 1px solid #9db4f0; border-radius: 6px; padding: 0 6px; }   /* 1006 2-c AI 목소리 표시 */
/* 1006 3단계 1차 미리보기 직접 조작 — 자막 · 제목 상자 · 손잡이 8개 · 안전 영역 빨간 선 · 맞춤선 */
.edn-frame { position: relative; } .edn-ov { position: absolute; inset: 0; touch-action: none; user-select: none; }
.edn-safe { position: absolute; border: 1px dashed #ff2d2d; pointer-events: none; }
.edn-guide { position: absolute; pointer-events: none; } .edn-guide.v { left: 50%; top: 0; bottom: 0; border-left: 1px solid #00d1ff; } .edn-guide.h { top: 50%; left: 0; right: 0; border-top: 1px solid #00d1ff; } .edn-guide.e { border: 0 solid #00d1ff; } .edn-guide.e[style*="left"] { top: 0; bottom: 0; border-left-width: 1px; } .edn-guide.e[style*="top"] { left: 0; right: 0; border-top-width: 1px; }
.edn-ovb { position: absolute; transform: translateY(-50%); cursor: move; outline: 1px dashed transparent; } .edn-ovb:hover { outline-color: rgba(255,255,255,.6); } .edn-ovb.on, .edn-ovb:focus-visible { outline: 1px solid #00d1ff; }
.edn-ovt { text-align: center; font-family: "Noto Sans KR", sans-serif; font-weight: 700; line-height: 1.448; color: #fff; paint-order: stroke fill; white-space: pre-wrap; word-break: keep-all; width: calc(100% / 0.95); margin-left: calc((100% - 100% / 0.95) / 2); transform-origin: 50% 50%; pointer-events: none; }
.edn-ovb.hook .edn-ovt { color: #ffe500; } .edn-ovt.ovs { position: absolute; top: 0; left: 0; color: #000; } .edn-ovb { } .edn-ovt.ovf { position: relative; } .edn-ov.empty-title .edn-ovb.hook .edn-ovt { opacity: .55; }
.edn-ovh { position: absolute; width: 10px; height: 10px; background: #fff; border: 1px solid #00a3cc; border-radius: 2px; }
.edn-ovh.n { top: -6px; left: calc(50% - 5px); cursor: ns-resize; } .edn-ovh.s { bottom: -6px; left: calc(50% - 5px); cursor: ns-resize; } .edn-ovh.e { right: -6px; top: calc(50% - 5px); cursor: ew-resize; } .edn-ovh.w { left: -6px; top: calc(50% - 5px); cursor: ew-resize; }
.edn-ovh.ne { top: -6px; right: -6px; cursor: nesw-resize; } .edn-ovh.sw { bottom: -6px; left: -6px; cursor: nesw-resize; } .edn-ovh.nw { top: -6px; left: -6px; cursor: nwse-resize; } .edn-ovh.se { bottom: -6px; right: -6px; cursor: nwse-resize; }
/* 1006 L1 챕터 묶음(롱폼 만들기 책) — 왼쪽 [장면] 탭 위 · 200px 안에서 줄바꿈 */
.edn-chbox { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 8px; display: grid; gap: 6px; min-width: 0; }
.edn-chh { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.edn-chlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.edn-ch { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.edn-ch.on { outline: 2px solid var(--teal); } .edn-ch.miss { opacity: .6; }
.edn-chgo { all: unset; cursor: pointer; font-size: 13px; overflow-wrap: anywhere; } .edn-chgo:hover, .edn-chgo:focus-visible { text-decoration: underline; }
.edn-chtitle { width: calc(100% - 22px); min-width: 0; }
.edn-chctl { display: flex; gap: 4px; flex-wrap: wrap; } .edn-chctl .danger { color: #b3261e; border-color: #b3261e; }
.edn-chloose summary { cursor: pointer; } .edn-chloose div { margin-top: 4px; overflow-wrap: anywhere; }
.edn-chsplit { margin-top: 4px; white-space: normal; height: auto; }
.edn-chbox .btn.xs { min-width: 0; height: 28px; min-height: 28px; padding: 0 8px; font-size: 12px; } .edn-chctl { flex-wrap: nowrap; } .edn-chtitle { height: 28px; border-radius: 6px; }
.edn-chbox input.edn-chtitle { height: 28px; min-height: 28px; padding: 2px 6px; font-size: 13px; } .edn-li .btn.edn-chsplit { display: block; min-width: 0; height: 26px; min-height: 26px; padding: 0 8px; font-size: 12px; }
/* 1006 L2 책 내보내기 */
.edn-chexp { display: grid; gap: 4px; border-top: 1px dashed var(--line); padding-top: 6px; overflow-wrap: anywhere; } .edn-chok { color: var(--teal); }
/* 1007 3단계 2차 그림 · 스티커 레이어 */
.edn-ovl { position: absolute; cursor: move; outline: 1px dashed transparent; transform-origin: 50% 50%; line-height: 0; } .edn-ovl:hover { outline-color: rgba(255,255,255,.6); } .edn-ovl.on, .edn-ovl:focus-visible { outline: 2px solid #00a3cc; }
.edn-ovl img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; } .edn-ovlph { display: block; background: rgba(0,0,0,.4); color: #fff; font-size: 11px; line-height: 1.4; padding: 4px; }
.edn-ovrot { position: absolute; top: -22px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #00a3cc; cursor: grab; }
.edn-lyp { display: grid; gap: 6px; } .edn-lyrow { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 4px; } .edn-lyrow.on { background: rgba(0,163,204,.08); }
.edn-lyrow .inp.xs { width: 64px; height: 26px; } .edn-lyadd { display: flex; gap: 4px; flex-wrap: wrap; } .edn-lyadd select { max-width: 100%; min-width: 0; flex: 1 1 120px; }
/* 1007 4단계-1 왼쪽 탭 */
.edn-card { display: grid; grid-template-columns: 56px 1fr; gap: 6px; align-items: start; } .edn-card.off { opacity: .55; } .edn-card.off .edn-th { filter: grayscale(1); }
.edn-th { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--line); display: block; } .edn-cardb { min-width: 0; overflow-wrap: anywhere; } .edn-cardt { color: var(--ink2, #555); }
.edn-cardc { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .edn-cardc .btn.xs, .edn-srcp .btn.xs, .edn-vp .btn.xs, .edn-kitp .btn.xs { min-width: 0; height: 26px; min-height: 26px; padding: 0 8px; font-size: 12px; }
.edn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .edn-gi { all: unset; cursor: pointer; border-radius: 6px; outline: 2px solid transparent; } .edn-gi.on, .edn-gi:focus-visible { outline-color: var(--teal); } .edn-gi .edn-th { width: 100%; height: 52px; }
.edn-srcp, .edn-vp, .edn-kitp { display: grid; gap: 6px; min-width: 0; } .edn-up { position: relative; overflow: hidden; }
.edn-vcard { border-top: 1px dashed var(--line); padding-top: 4px; overflow-wrap: anywhere; } .edn-vcard.on { background: rgba(0,163,204,.08); } .edn-vstyle { display: flex; gap: 8px; flex-wrap: wrap; }
.edn-kitrow { display: flex; gap: 8px; flex-wrap: wrap; } .edn-kitprev { display: flex; gap: 4px; align-items: center; background: #111; color: #fff; border-radius: 8px; padding: 10px 8px; min-height: 40px; } .edn-kitprevt { font-weight: 700; flex: 1; } .edn-kitprev i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
/* 1007 4단계-2 오른쪽 탭 · 타임라인 트랙 */
.edn-tk { font-style: normal; font-size: 11px; padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted, #777); min-width: 0; }
.edn-tk.on { background: #5b6b8c; color: #fff; } .edn-track[data-edntrk="voice"] .edn-tk.on { background: #7a5bb0; } .edn-track[data-edntrk="bgm"] .edn-tk.on { background: #3a8a8a; } .edn-tk.ly { background: #a0742a; }
.edn-tabs.sm { flex: none; margin-bottom: 6px; } .edn-tabs.sm button { font-size: 12px; padding: 4px 2px; }
.edn-rs label, .edn-rsub label { display: inline-flex; align-items: center; gap: 4px; margin: 3px 6px 3px 0; } .edn-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.edn-rsub input[type="number"], .edn-rs input[type="number"] { width: 70px; flex: none; }
/* 1007 5단계 스튜디오 음악 */
.edn-moods { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .edn-mtr { display: flex; gap: 4px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--beige-2); } .edn-mtr > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .edn-mcur { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.edn-tlist { margin: 6px 0 2px 18px; padding: 0; } .edn-tlist li { margin: 2px 0; }
/* 1007 5단계 즉석 이미지 */
.edn-igf { display: grid; gap: 4px; margin-top: 6px; } .edn-igf textarea { width: 100%; resize: vertical; }
.edn-igshelf { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; } .edn-igi { flex: 0 0 132px; border: 1px solid var(--beige-2); border-radius: 8px; padding: 4px; background: var(--surface); }
.edn-igi p { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .edn-igi .xrow { display: flex; flex-wrap: wrap; gap: 2px; }
.edn-igth { position: relative; height: 90px; background: repeating-conic-gradient(#ddd 0% 25%, #fff 0% 50%) 50% / 12px 12px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; } .edn-igth img { max-width: 100%; max-height: 100%; }
.edn-aib { position: absolute; left: 3px; top: 3px; background: #222; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 4px; }
.edn-insta { white-space: normal; overflow: visible; } .edn-insta > .min { display: block; }
.edn-aitag { background: #222; color: #fff; font-size: 11px; padding: 0 4px; border-radius: 4px; }
.edn-insta > summary { cursor: pointer; } .edn-view { position: relative; } .edn-insta[open] { position: absolute; left: 10px; right: 10px; bottom: 10px; max-height: calc(100% - 60px); overflow-y: auto; z-index: 6; box-shadow: 0 6px 24px rgba(0,0,0,.35); }   /* 1007 열면 미리보기 위에 겹쳐 뜸(미리보기 크기는 그대로) */ .edn-igf input[type="number"], .edn-insta input[type="number"], .edn-rs input[type="number"], .edn-rsub input[type="number"] { width: 96px; } .edn-igi .btn.xs { padding: 2px 6px; font-size: 12px; }

/* 1012 N23 장면 그림 직접 맞추기(끌기 · 모서리 = 크기 · 위 동그라미 = 회전 · 빈 곳 = 검정) */
.edn-frame.tf { background: #000; } .edn-frame.tf img[data-ednpic] { position: absolute; height: auto; object-fit: fill; max-width: none; transform-origin: 50% 50%; }
.edn-ovpic { position: absolute; border: 2px dashed #00d1ff; pointer-events: none; transform-origin: 50% 50%; }
.edn-ovph { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border: 2px solid #00a3cc; border-radius: 3px; cursor: nwse-resize; z-index: 4; }
.edn-ovph.rot { border-radius: 50%; cursor: grab; }
.edn-lyadd2 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .edn-lyadd2 .btn { white-space: nowrap; }
.edn-rstf { display: grid; gap: 6px; margin-top: 8px; } .edn-rstf .xrow { display: flex; gap: 6px; flex-wrap: wrap; }
/* 1012 N23 오른쪽 칸 숫자 칸이 잘려 보이던 것(대표 화면: 회전 "1" · 폭 "4") — 편집기 안 작은 입력칸은 낮고 좁게 · 글자는 다 보이게 */
.edn-body .inp.xs, .edn-body select.inp.xs { min-height: 30px; height: 30px; padding: 0 6px; font-size: 14px; border-radius: 8px; }
.edn-body input.inp.xs[type="number"] { width: 76px; flex: none; text-align: right; }
.edn-body select.inp.xs { width: auto; max-width: 100%; }
.edn-rstf label { display: inline-flex; align-items: center; gap: 6px; margin: 2px 8px 2px 0; }
.edn-lyrow label { display: inline-flex; align-items: center; gap: 4px; }
.edn-ov { will-change: transform; }   /* 1012 N23 미리보기 글자 색 번짐(LCD) 없이 — 내보낸 영상과 같은 회색 가장자리 */
/* 1012 N24 색 프리셋 · 자막 글꼴 */
.edn-gpre { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; } .edn-gpre .btn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.edn-rsub select.inp.xs { max-width: 170px; }
/* 1013 N43 색 프리셋 미리보기 · 이어서 할 문서 고르기 창(뒤 편집기 흐리게) */
.edn-gpre { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.edn-gpb { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; text-align: center; }
.edn-gpb .gpt { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; } .edn-gpb .gpt i { position: absolute; inset: 0; }
.edn-gpb .gpn { font-size: 12px; line-height: 1.2; } .edn-gpb.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); } .edn-gpb:hover { border-color: var(--teal); }
.edn.edn-blur { filter: blur(6px) saturate(.9); pointer-events: none; user-select: none; transition: filter .25s ease; }
.edn-pick { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(15, 23, 42, .28); animation: ednpickin .2s ease; }
.edn-pickc { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 12px; }
.edn-pickrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; } .edn-pickrow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .edn-pickrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 1014 N53 이어서 하기 창 위에서 [지우기] 확인 창이 창 뒤(z 200)에 깔려 안 보이던 것 — 확인 창을 위로 */
.edn-pick ~ .overlay { z-index: 950; } body:has(.edn-pick) .toasts { z-index: 960; }
@keyframes ednpickin { from { opacity: 0; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .edn-pick { animation: none; } .edn.edn-blur { transition: none; } }
.edn-track { position: relative; touch-action: pan-y; } .edn-track .edn-clip { cursor: grab; } .edn-track.tl-drag .edn-clip { cursor: grabbing; } .edn-track .edn-clip.dragging { position: relative; z-index: 3; opacity: .85; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: none; }
.edn-tlmark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--accent, #e5484d); border-radius: 2px; pointer-events: none; z-index: 4; }

/* 1014 N45 편집기에서 옆 메뉴 펼치기 — [☰ 메뉴] 누르면 원래 크기 메뉴가 편집기 위에 겹쳐 뜸(편집기 자리는 그대로) · 밖을 누르거나 Esc 로 닫힘 · 아이콘 줄에 마우스를 올리면 메뉴 이름 */
@media (min-width: 768px) {
  body.edn-on.edn-navx .app { padding-left: var(--nav-rail-w); }
  body.edn-on.edn-navx .nav { position: fixed; left: 0; top: 0; bottom: 0; z-index: 950; width: 264px; flex-basis: 264px; overflow-y: auto; box-shadow: 8px 0 32px rgba(0, 0, 0, .35); animation: ednnavin .18s ease; }
  body.edn-on.edn-navx::after { content: ""; position: fixed; inset: 0; z-index: 940; background: rgba(15, 23, 42, .25); }
}
@keyframes ednnavin { from { transform: translateX(-24px); opacity: .6; } to { transform: none; opacity: 1; } }
.edn-navbtn { font-weight: 600; } .edn-navbtn[aria-expanded="true"] { background: var(--ink); color: var(--surface); }
.edn-vph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .edn-vmore { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 118, 110, .25); }
.edn-vuse { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .edn-vuse .chip { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 999px; } .edn-vuse .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); } .edn-vuse .chip .muted { font-size: 11px; }
.vrows.compact .vr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); } .vrows.compact .vr:first-child { border-top: 0; }
.vrows.compact .vline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .vrows.compact .vline b { font-size: 14.5px; margin-right: 2px; } .vrows.compact .vchip { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.vrows.compact .vflags { display: inline-flex; gap: 3px; margin-left: 4px; align-items: center; } .lflag { width: 18px; height: 18px; flex: none; } .lflag.txt { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); font-size: 9px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); box-sizing: border-box; }
.vrows.compact .vmore { font-style: normal; font-size: 11px; color: var(--muted); } .vrows.compact .vfits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .vrows.compact .vbtns { display: flex; flex-direction: column; gap: 4px; } .vrows.compact .vbtns .btn { min-width: 64px; }
.ednrow { display: flex; gap: 8px; align-items: stretch; } .ednrow .row-link { flex: 1; min-width: 0; } .ednrow .btn { align-self: center; } /* 1014 N45 */
/* 1019 UI-4·6 톤 낮은 붉은색(흰 글자 대비 5.6:1) — 이어서 할까요 [닫기] 크게 · 왼쪽 위 [☰ 메뉴보기] 크게 */
.edn-pickx, .edn-navbtn { --edn-red: #A8483F; --edn-red-press: #873A33; background: var(--edn-red); border-color: var(--edn-red); color: var(--surface); font-weight: 700; }
.edn-pickx:hover, .edn-navbtn:hover { background: var(--edn-red-press); border-color: var(--edn-red-press); }
.edn-pickc .xrow .edn-pickx { min-height: 56px; min-width: 112px; font-size: 19px; padding: 0 26px; }
body .edn-top .btn.edn-navbtn { min-height: 48px; font-size: 17px; padding: 0 20px; border-radius: 12px; }
body .edn-top { padding-top: 7px; padding-bottom: 7px; }   /* 위 막대 높이 64px 그대로(메뉴보기 48px + 위아래 7px + 테두리) */
.edn-navbtn[aria-expanded="true"] { background: var(--edn-red-press); border-color: var(--edn-red-press); color: var(--surface); }
.edn-picklist { gap: 6px; } .edn-pickc .edn-pickrow { padding: 8px 12px; }   /* 7줄이 한 화면에 — 창이 길지 않게 */
.edn-pickfoot { flex-wrap: wrap; gap: 10px 16px; } .edn-pickmore { min-width: 160px; }
.edn-pickrow[hidden] { display: none; }   /* 더보기 전 숨긴 줄(.edn-pickrow 의 display:flex 가 hidden 을 덮지 않게) */
/* 1020 FT3 쇼츠 템플릿(프레임) — 장면 그림은 영상 창 안 · 프레임 그림(창 자리 투명)이 그 위 · 자막 · 레이어 조작 칸(edn-ov)이 맨 위 */
.edn-frame.fk { background: #000; }
.edn-fkwin { position: absolute; left: 0; width: 100%; overflow: hidden; z-index: 0; }
.edn-fkwin img[data-ednpic] { width: 100%; height: 100%; object-fit: cover; display: block; }
.edn-frame.tf .edn-fkwin img[data-ednpic] { position: absolute; height: auto; object-fit: fill; max-width: none; transform-origin: 50% 50%; }
.edn-fk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.edn-frame.fk .edn-ov { z-index: 2; }
/* 1021 가로(16:9) 내보낼 크기 — 1920×1080(기본) · 1280×720(가볍고 빠름) · 위 막대 아래 한 줄(폰에서는 줄바꿈 · 칩 44px 이상 · 글자 13px 이상) */
.edn-exsize { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; max-width: 100%; }
.edn-exsize[hidden] { display: none; }
.edn-exsize .lbl { font-size: 14px; font-weight: 600; }
.edn-exsize .chip { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; max-width: 100%; white-space: normal; }
.edn-exsize .chip[aria-checked="true"] { padding: 0 12px; }
.edn-exsize .muted { font-size: 13px; }
