/* 1029 새 편집기 롱폼 책(edv2-book.js) — 왼쪽 [장면] 칸 챕터 목록 · 끌기 · ↑↓ · 빼기 · 나누기 · 새 챕터 · 책 한 편 내보내기 · #/editor-v2?book= */
.edv2b { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.edv2b-h { font-size: 14px; overflow-wrap: anywhere; }
.edv2b-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.edv2b-ch { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.edv2b-ch.on { border: 2px solid var(--teal); }
.edv2b-ch.miss { background: #f5f5f4; }
.edv2b-ch.dragging { opacity: .55; }
.edv2b-ch.drop-b { box-shadow: 0 -3px 0 var(--teal); }
.edv2b-ch.drop-a { box-shadow: 0 3px 0 var(--teal); }
.edv2b-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.edv2b-grip { flex: 0 0 auto; width: 28px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: grab; color: var(--ink); font-size: 18px; user-select: none; border-radius: 6px; }
.edv2b-grip:hover { background: var(--teal-light, #ccfbf1); }
.edv2b-n { flex: 0 0 auto; min-width: 22px; height: 22px; border-radius: 999px; background: #374151; color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.edv2b-ch.on .edv2b-n { background: #0f766e; }
.edv2b-t { font-weight: 600; font-size: 14px; min-width: 0; flex: 1 1 120px; overflow-wrap: anywhere; }
.edv2b-title { flex: 1 1 140px; min-width: 0; min-height: 44px; font-size: 15px; font-weight: 600; }
.edv2b-meta { flex: 1 1 140px; min-width: 0; }
.edv2b-ok { color: #0f5f57; font-weight: 600; }
.edv2b-ctl { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.edv2b .btn { min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
.edv2b .btn.edv2b-ic { min-width: 44px; padding: 0; }
.edv2b-cut, .edv2b-add, .edv2b-exrow, .edv2b-size { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.edv2b-cut { padding: 6px 8px; border-radius: 8px; background: #f0fdfa; }
.edv2b-cut .ev2-muted { flex: 1 1 100%; color: #44403c; }
.edv2b-out .edv2b-row { gap: 8px; }
.edv2b-pick { border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px; min-width: 0; }
.edv2b-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 40vh; overflow: auto; padding: 2px; }
.edv2b-pi { display: flex; flex-direction: column; gap: 4px; align-items: stretch; min-height: 44px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; min-width: 0; }
.edv2b-pi img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #e7e5e4; }
.edv2b-pi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edv2b-pi:focus-visible, .edv2b-grip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.edv2b-loose summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; }
.edv2b-lrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding: 4px 0; min-width: 0; overflow-wrap: anywhere; }
.edv2b-ex { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #fafaf9; }
.edv2b-exh { font-size: 14px; overflow-wrap: anywhere; } .edv2b-exh .ev2-muted { display: block; color: #44403c; }
.edv2b-size label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.edv2b-bar { height: 10px; border-radius: 999px; background: #e7e5e4; overflow: hidden; }
.edv2b-bar[hidden] { display: none; }
.edv2b-bar i { display: block; height: 100%; background: #0f766e; transition: width .4s; }
.edv2b-exst { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.edv2b-exst { line-height: 1.5; }
.edv2b-exst .lnk { font-weight: 700; display: inline-block; line-height: 20px; padding: 12px 8px; margin: -12px 0; }   /* 누르는 자리 44px · 줄 높이는 그대로 */
.edv2b [hidden] { display: none !important; }
.edv2b-page { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.edv2b-page .btn { min-height: 44px; }
.edv2b-loosepage { display: flex; flex-direction: column; gap: 8px; }
.edv2b-loosepage .card { padding: 10px 12px; }
html[data-mode="simple"] .edv2b-h, html[data-mode="simple"] .edv2b-t, html[data-mode="simple"] .edv2b-exst, html[data-mode="simple"] .edv2b .ev2-muted { font-size: 16px; }
