/* 회차 한꺼번에 올리기(#/episode-bulk/<작품 id>, assets/episode-bulk.js). 앞머리 ebk-. 버튼은 사이트 기본(남색·흰색). 2026-11-12 화면 다시 만들기. */
.ebk-page{padding-bottom:120px}
.ebk-wrap{max-width:960px;margin:0 auto;padding:24px 16px 40px}
body.editorial .ebk-back{margin:0 0 10px;font-size:14px}
body.editorial .ebk-back a{color:#525252}
body.editorial .ebk-wrap h1{margin:0;font-size:26px;font-weight:800;letter-spacing:-.03em}
body.editorial .ebk-sub,body.editorial .ebk-muted{margin:6px 0 0;font-size:14px;color:#6b6f78}
.ebk-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:16px;margin-top:22px}
.ebk-left{display:grid;gap:12px;min-width:0}
/* 파일 */
.ebk-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:190px;padding:20px;border:1.5px dashed #c9ccd4;border-radius:12px;background:#f7f7f9;text-align:center;color:#7a7c85}
.ebk-drop.over{border-color:#1e2a4a;background:#eef0f5}
body.editorial .ebk-drop b{font-size:15px;color:#0a0a0a}
body.editorial .ebk-drop small{font-size:12.5px;color:#6b6f78}
.ebk-pick{position:relative;margin-top:6px;cursor:pointer}
.ebk-file{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #ececef;border-radius:12px;background:#fff}
.ebk-file.over{border-color:#1e2a4a}
.ebk-fi{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:44px;border-radius:4px;background:#eef0f4;font-size:10px;font-weight:800;color:#5b6070}
.ebk-fn{min-width:0}
body.editorial .ebk-fn b{display:block;overflow:hidden;font-size:14.5px;text-overflow:ellipsis;white-space:nowrap}
body.editorial .ebk-fn small{display:block;margin-top:2px;font-size:12.5px;color:#6b6f78}
body.editorial .ebk-link{flex:none;margin-left:auto;font-size:13px;font-weight:700;color:#1e2a4a;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9ccd4;cursor:pointer}
/* 번호·공개 */
.ebk-opts{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 16px;padding:16px 18px;border:1px solid #ececef;border-radius:12px;background:#fff}
.ebk-opts label,.ebk-field{display:grid;gap:6px;font-size:12.5px;font-weight:700;color:#3d4250}
.ebk-opts input[type=number],.ebk-opts input[type=datetime-local]{height:36px;padding:0 10px;border:1px solid #d9dbe1;border-radius:8px;font:inherit;font-size:14px;color:#0a0a0a}
.ebk-opts #ebkStart,.ebk-opts #ebkEvery{width:90px}
.ebk-seg{display:inline-flex;overflow:hidden;border:1px solid #d9dbe1;border-radius:8px}
.ebk-seg label{display:block;gap:0;border-left:1px solid #d9dbe1;cursor:pointer}
.ebk-seg label:first-child{border-left:0}
.ebk-seg input{position:absolute;opacity:0;pointer-events:none}
.ebk-seg span{display:flex;align-items:center;justify-content:center;height:34px;padding:0 14px;font-size:13.5px;font-weight:600;color:#3d4250;white-space:nowrap}
.ebk-seg input:checked+span{background:#1e2a4a;color:#fff}
.ebk-seg input:focus-visible+span{box-shadow:inset 0 0 0 2px #8ea0c8}
.ebk-sched{display:none!important}
.ebk-opts.sched .ebk-sched{display:grid!important}
body.editorial .ebk-hint{flex-basis:100%;margin:0;font-size:12.5px;line-height:1.55;color:#6b6f78}
/* 쓰는 법 */
.ebk-how{padding:16px 18px;border:1px solid #ececef;border-radius:12px;background:#fff}
body.editorial .ebk-how summary{font-size:14px;font-weight:800;color:#0a0a0a;cursor:pointer;list-style:none}
.ebk-how summary::-webkit-details-marker{display:none}
.ebk-how pre{margin:10px 0;padding:12px 14px;border-radius:8px;background:#f4f4f6;font:12.5px/1.7 ui-monospace,Consolas,monospace;color:#3d4250;white-space:pre-wrap}
body.editorial .ebk-how pre b{color:#1e2a4a}
body.editorial .ebk-how p{margin:0;font-size:12.5px;line-height:1.6;color:#6b6f78}
/* 미리보기 */
.ebk-list{margin-top:20px}
.ebk-lbar{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;padding:0 2px 10px;border-bottom:1px solid #ececef;font-size:13.5px;color:#737373}
body.editorial .ebk-lbar b{font-size:15px;color:#0a0a0a}
body.editorial .ebk-lbar .ebk-warn{margin-left:auto}
body.editorial .ebk-warn{color:#8a5300!important;font-weight:700}
.ebk-row{display:grid;grid-template-columns:60px minmax(0,1.6fr) .9fr 1.1fr 2.1fr;align-items:center;gap:10px;min-height:50px;padding:0 10px;border-bottom:1px solid #f2f2f4;font-size:14px}
body.editorial .ebk-head{min-height:40px;font-size:12.5px;font-weight:600;color:#8e8e8e}
.ebk-row .num{text-align:right;font-variant-numeric:tabular-nums}
.ebk-t{min-width:0}
body.editorial .ebk-t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ebk-m{display:none}
body.editorial .ebk-state{font-size:12.5px;font-weight:700;color:#1f7a4d}
body.editorial .ebk-state.warn{color:#8a5300}
body.editorial .ebk-state.done{color:#1e2a4a}
body.editorial .ebk-state.fail,body.editorial .ebk-state.pre{color:#8a5300}
.ebk-row.skip{opacity:.55}
.ebk-opts input:disabled{background:#f4f4f6;color:#8e8e8e}
.ebk-seg input:disabled+span{opacity:.6}
body.editorial .ebk-lock{color:#8a5300}
body.editorial .ebk-empty{margin:20px 0 0;font-size:14px;color:#6b6f78}
/* 아래 고정 줄 */
.ebk-dock{position:fixed;left:0;right:0;bottom:0;z-index:30;border-top:1px solid #ececef;background:rgba(255,255,255,.97);padding-bottom:env(safe-area-inset-bottom,0px)}
.ebk-dock[hidden]{display:none}
.ebk-dock-in{display:flex;align-items:center;gap:12px;max-width:960px;margin:0 auto;padding:12px 16px}
body.editorial .ebk-dock-in p{flex:1;min-width:0;margin:0;font-size:14px;color:#3d4250}
body.editorial #ebkProgress{font-size:13px;color:#6b6f78}
.ebk-dock-in .btn.dark{min-width:120px;height:42px}
body.has-tabbar .ebk-dock{bottom:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:0}
/* 아래 고정 줄이 바닥글 끝을 가리지 않게 */
body:has(.ebk-dock:not([hidden])){padding-bottom:84px}
body.has-tabbar:has(.ebk-dock:not([hidden])){padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
@media (max-width:700px){
  .ebk-wrap{padding:18px 16px 30px}
  body.editorial .ebk-wrap h1{font-size:23px}
  .ebk-grid{grid-template-columns:minmax(0,1fr)}
  .ebk-opts{padding:14px}
  .ebk-opts>label{flex:1 1 40%}
  .ebk-opts>label.ebk-from{flex-basis:100%}
  .ebk-opts input[type=datetime-local]{width:100%}
  .ebk-field{flex-basis:100%}
  .ebk-seg{display:flex}
  .ebk-seg label{flex:1}
  .ebk-head{display:none}
  .ebk-row{grid-template-columns:minmax(0,1fr) auto;padding:12px 2px;min-height:0}
  .ebk-row .ebk-no,.ebk-row>span:nth-child(3),.ebk-row>span:nth-child(4){display:none}
  body.editorial .ebk-m{display:block;margin-top:3px;font-size:12px;font-weight:500;color:#6b6f78}
  body.editorial .ebk-m.ebk-warn{color:#8a5300!important;font-weight:700}
  .ebk-row .ebk-state.pre{display:none}
  .ebk-dock-in{flex-wrap:wrap;gap:8px}
  body.editorial .ebk-dock-in p{flex-basis:100%;font-size:13px}
  .ebk-dock-in .btn.dark{margin-left:auto}
}
