:root{
  --bg:#FAFAF8; --surface:#FFFFFF; --surface-2:#F3F2EE;
  --border:#E8E6E0; --border-2:#D8D6CF;
  --text:#1B1B1A; --text-2:#6E6C66; --text-3:#9B9890;
  --accent:#5546D6; --accent-d:#3E32A8; --accent-soft:#ECEAFB;
  --danger:#C0392B; --danger-soft:#FBECEA;
  --v-bg:#0A0A0B;
  --r:10px; --r-lg:14px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bot:env(safe-area-inset-bottom,0px);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg);color:var(--text);
  font-family:"Pretendard","Pretendard Variable",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
body{max-width:520px;margin:0 auto;min-height:100vh;position:relative}
i[data-i] svg{display:block}
.hidden{display:none !important}

/* ---------- layout ---------- */
.screen{min-height:100vh;display:flex;flex-direction:column}
.pad{padding:16px 18px 40px;flex:1}
.mt{margin-top:18px}
.stack{display:flex;flex-direction:column;gap:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.center{text-align:center}
.muted{color:var(--text-2);font-size:13px}
.sm{font-size:13px}
.grow{flex:1}
.wide{width:100%}

/* ---------- header ---------- */
.app-head{display:flex;align-items:center;gap:10px;padding:calc(12px + var(--safe-top)) 14px 12px;
  border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:20}
.brand{display:flex;flex-direction:column;line-height:1.15;flex:1}
.brand-mark{font-size:19px;font-weight:700;letter-spacing:-0.02em}
.brand-sub{font-size:12px;color:var(--text-2);font-weight:500}
.head-title{flex:1;font-size:16px;font-weight:600;letter-spacing:-0.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{width:38px;height:38px;border:none;background:transparent;border-radius:var(--r);
  display:flex;align-items:center;justify-content:center;color:var(--text-2);cursor:pointer}
.icon-btn:active{background:var(--surface-2)}
.icon-btn i svg{width:21px;height:21px}

/* ---------- section ---------- */
.section-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-title{font-size:17px;font-weight:700;letter-spacing:-0.01em}
.section-title.sm{font-size:14px;font-weight:600;color:var(--text-2)}

/* ---------- buttons ---------- */
button{font-family:inherit}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:var(--accent);color:#fff;border:none;border-radius:var(--r);
  padding:11px 16px;font-size:14px;font-weight:600;cursor:pointer;letter-spacing:-0.01em}
.btn-primary:active{background:var(--accent-d)}
.btn-primary.sm{padding:8px 13px;font-size:13px;border-radius:9px}
.btn-primary.tall{padding:15px;font-size:16px}
.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:var(--surface);color:var(--text);border:1px solid var(--border-2);border-radius:var(--r);
  padding:11px 16px;font-size:14px;font-weight:500;cursor:pointer}
.btn-ghost:active{background:var(--surface-2)}
.btn-ghost.sm{padding:8px 12px;font-size:13px}
.btn-danger.ghost{background:transparent;border:1px solid var(--border-2);color:var(--danger);
  border-radius:var(--r);padding:11px 14px;font-size:14px;font-weight:500;cursor:pointer}
.btn-danger.ghost:active{background:var(--danger-soft)}
i svg{width:17px;height:17px;vertical-align:middle}

/* ---------- conti cards ---------- */
.conti-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:15px 16px;display:flex;align-items:center;gap:12px;cursor:pointer}
.conti-card:active{background:var(--surface-2)}
.conti-date{display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:var(--r);background:var(--accent-soft);color:var(--accent-d);flex-shrink:0}
.conti-date .d{font-size:17px;font-weight:700;line-height:1}
.conti-date .m{font-size:10px;font-weight:600;margin-top:2px}
.conti-main{flex:1;min-width:0}
.conti-title{font-size:15px;font-weight:600;letter-spacing:-0.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conti-meta{font-size:12px;color:var(--text-2);margin-top:2px}
.tag{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:20px;
  background:var(--surface-2);color:var(--text-2)}
.chev{color:var(--text-3);flex-shrink:0}

/* ---------- mode toggle ---------- */
.mode-toggle{display:flex;background:var(--surface-2);border-radius:var(--r);padding:4px;gap:4px}
.mode-btn{flex:1;border:none;background:transparent;border-radius:8px;padding:10px;
  font-size:13px;font-weight:600;color:var(--text-2);cursor:pointer;display:flex;
  align-items:center;justify-content:center;gap:6px}
.mode-btn.active{background:var(--surface);color:var(--accent-d);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.mode-btn i svg{width:16px;height:16px}
.mode-hint{font-size:12px;color:var(--text-2);margin-top:8px;text-align:center}

/* ---------- song rows ---------- */
.song-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:12px 14px;display:flex;align-items:center;gap:11px;cursor:pointer}
.song-row:active{background:var(--surface-2)}
.song-num{width:20px;text-align:center;font-size:13px;font-weight:600;color:var(--text-3);flex-shrink:0}
.song-name{flex:1;font-size:15px;font-weight:500;letter-spacing:-0.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song-key{font-size:11px;font-weight:700;color:var(--accent-d);background:var(--accent-soft);
  padding:3px 8px;border-radius:6px;flex-shrink:0}
.song-badges{display:flex;gap:6px;align-items:center;color:var(--text-3);flex-shrink:0}
.song-badges i svg{width:16px;height:16px}
.song-badges .yt{color:#E0322B}

/* ---------- fields ---------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field-label{font-size:12px;font-weight:600;color:var(--text-2)}
.input{width:100%;border:1px solid var(--border-2);border-radius:var(--r);background:var(--surface);
  padding:11px 13px;font-size:15px;font-family:inherit;color:var(--text);transition:border-color .15s}
.input:focus{outline:none;border-color:var(--accent)}
.input.area{min-height:74px;resize:vertical;line-height:1.5}
.input.search{background:var(--surface-2);border-color:transparent}
select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6C66' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}

/* ---------- builder song list ---------- */
.b-song{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:9px 10px 9px 12px;display:flex;align-items:center;gap:8px}
.b-song-name{flex:1;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b-song-name .k{font-size:11px;color:var(--text-3);margin-left:6px}
.mini{width:30px;height:30px;border:none;background:var(--surface-2);border-radius:7px;color:var(--text-2);
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.mini:active{background:var(--border)}
.mini:disabled{opacity:.3}
.mini.del{background:transparent;color:var(--text-3)}
.mini i svg{width:16px;height:16px}

/* 드래그 핸들 & 카드 정렬 */
.drag-handle{width:30px;height:34px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  color:var(--text-3);cursor:grab;touch-action:none;border-radius:7px;margin-left:-4px}
.drag-handle:hover{color:var(--text-2);background:var(--surface-2)}
.drag-handle:active{cursor:grabbing}
.drag-handle i svg{width:18px;height:18px}
.b-song-wrap,.b-memo-card{transition:opacity .12s ease}
.row-reordering{cursor:grabbing;user-select:none}
.row-reordering .drag-handle{cursor:grabbing}
.b-song-wrap.row-dragging,.b-memo-card.row-dragging{opacity:.5}
.b-song-wrap.row-dragging .b-song,.b-memo-card.row-dragging{outline:2px solid var(--accent);outline-offset:1px;border-radius:var(--r)}

.lib-picker{background:var(--surface-2);border-radius:var(--r);padding:8px;margin-top:10px;
  display:flex;flex-direction:column;gap:8px}
.lp-search{margin:0;background:var(--surface);border-color:transparent}
.lp-list{display:flex;flex-direction:column;gap:4px;max-height:230px;overflow-y:auto}
.lp-item{background:var(--surface);border-radius:8px;padding:10px 12px;display:flex;align-items:center;
  gap:8px;cursor:pointer;font-size:14px}
.lp-item:active{background:var(--accent-soft)}
.lp-item .k{font-size:11px;color:var(--text-2);background:var(--surface-2);padding:2px 7px;border-radius:5px}
.lp-item.added{opacity:.45}

/* ---------- song modal images ---------- */
.img-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}
.img-thumb{position:relative;aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:var(--surface-2);
  border:1px solid var(--border)}
.img-thumb img{width:100%;height:100%;object-fit:cover}
.img-thumb .rm{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.img-thumb .rm i svg{width:13px;height:13px}
.img-thumb .ord{position:absolute;bottom:4px;left:4px;background:rgba(0,0,0,.6);color:#fff;
  font-size:10px;font-weight:700;padding:1px 6px;border-radius:10px}
.img-actions{display:flex;gap:8px}
.file-btn{position:relative;overflow:hidden}
.hint{font-size:11px;color:var(--text-3);margin-top:8px;line-height:1.5}

/* ---------- sheet (modal) ---------- */
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:60;
  display:none;align-items:flex-end;justify-content:center}
.sheet-bg.open{display:flex;animation:fade .15s ease}
.sheet{background:var(--bg);border-radius:var(--r-lg) var(--r-lg) 0 0;width:100%;max-width:520px;
  padding:8px 18px calc(20px + var(--safe-bot));max-height:90vh;overflow-y:auto}
.sheet-bg.open .sheet{animation:slideup .22s ease}
.sheet-grip{width:38px;height:4px;border-radius:4px;background:var(--border-2);margin:6px auto 14px}
.sheet-title{font-size:17px;font-weight:700;margin-bottom:16px;letter-spacing:-0.01em}
.sheet-btns{display:flex;gap:8px;margin-top:6px}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes slideup{from{transform:translateY(20px)}to{transform:translateY(0)}}

/* ---------- empty ---------- */
.empty{text-align:center;color:var(--text-3);font-size:14px;padding:40px 20px}
.empty i{display:block;margin:0 auto 10px;color:var(--border-2)}
.empty i svg{width:34px;height:34px}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:calc(28px + var(--safe-bot));transform:translateX(-50%) translateY(20px);
  background:#1B1B1A;color:#fff;font-size:13px;font-weight:500;padding:10px 16px;border-radius:22px;
  z-index:200;opacity:0;pointer-events:none;transition:.25s;max-width:90%;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ========================================================= *
 *  VIEWER (dark, fullscreen)
 * ========================================================= */
.viewer{position:fixed;inset:0;background:var(--v-bg);z-index:100;display:flex;flex-direction:column;
  max-width:none;margin:0}
.v-top{position:absolute;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;gap:10px;
  padding:calc(12px + var(--safe-top)) 16px 22px;
  background:linear-gradient(to bottom,rgba(0,0,0,.65),transparent)}
.v-round{width:36px;height:36px;border-radius:50%;border:none;background:rgba(255,255,255,.14);
  color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.v-round i svg{width:19px;height:19px}
.v-top-mid{flex:1;color:#fff;font-size:14px;font-weight:600;letter-spacing:-0.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v-counter{color:rgba(255,255,255,.7);font-size:13px;font-weight:500;flex-shrink:0}
.v-stage{flex:1;position:relative;overflow:hidden}
.v-slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  padding:52px 6px 66px;transition:transform .3s cubic-bezier(.4,0,.2,1)}
#viewer.hasform .v-slide{padding-top:4px}
.v-slide img{width:100%;height:100%;object-fit:contain;border-radius:2px;
  background:#fff;image-rendering:auto}
.v-ph{width:86%;max-width:420px;aspect-ratio:3/4;background:#161618;border:1px dashed rgba(255,255,255,.14);
  border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  color:rgba(255,255,255,.45);text-align:center;padding:20px}
.v-ph i svg{width:38px;height:38px}
.v-ph .nm{font-size:15px;font-weight:600;color:rgba(255,255,255,.7)}
.v-ph .ds{font-size:12px}
.v-bottom{position:absolute;bottom:0;left:0;right:0;z-index:10;display:flex;align-items:center;gap:10px;
  padding:18px 16px calc(18px + var(--safe-bot));
  background:linear-gradient(to top,rgba(0,0,0,.65),transparent)}
.v-nav{min-width:60px;height:46px;border:none;border-radius:var(--r);background:rgba(255,255,255,.14);
  color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.v-nav:active{background:rgba(255,255,255,.26)}
.v-nav:disabled{opacity:.22}
.v-nav i svg{width:22px;height:22px}
.v-dots{flex:1;display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:center}
.v-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.32);cursor:pointer;transition:.2s}
.v-dot.active{background:#fff;width:20px;border-radius:3px}
.v-dot.songstart{background:rgba(255,255,255,.55)}
.v-yt{position:absolute;right:16px;bottom:calc(80px + var(--safe-bot));z-index:11;
  display:none;align-items:center;gap:6px;background:#E0322B;color:#fff;border:none;
  border-radius:22px;padding:9px 15px;font-size:13px;font-weight:600;cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.3)}
.v-yt.show{display:flex}
.v-yt i svg{width:17px;height:17px}

/* ---------- import ---------- */
.steps{background:var(--surface-2);border-radius:var(--r);padding:12px 14px;display:flex;flex-direction:column;gap:7px}
.step{font-size:13px;color:var(--text-2);line-height:1.5}
.step b{color:var(--text);font-weight:600}
.imp-preview{margin-top:12px;border:1px solid var(--border);border-radius:var(--r);padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.imp-count{font-size:14px;margin-bottom:4px}
.imp-count b{color:var(--accent-d)}
.imp-row{display:flex;align-items:center;gap:8px;font-size:13px}
.imp-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.imp-k{font-size:11px;color:var(--text-2);background:var(--surface-2);padding:1px 7px;border-radius:5px}
.imp-row .yt{color:#E0322B}
.imp-row .yt svg{width:15px;height:15px}

/* ---------- band lineup (builder) ---------- */
.band-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.band-role{flex:0 0 116px;max-width:116px}
.band-name{flex:1}
.band-add{display:flex;gap:8px;margin-top:4px}

/* ---------- band display (conti detail) ---------- */
.cv-band{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.cv-band:empty{display:none}
.band-chip{background:var(--surface);border:1px solid var(--border);border-radius:8px;
  padding:5px 10px;font-size:12.5px;color:var(--text);display:inline-flex;gap:6px;align-items:center}
.band-chip .r{color:var(--accent-d);font-weight:700;font-size:11px}

/* ---------- viewer annotation tools ---------- */
.v-tools{position:absolute;bottom:calc(66px + var(--safe-bot));left:12px;z-index:13;
  display:flex;align-items:center;gap:5px;background:rgba(18,18,20,.82);
  border-radius:24px;padding:5px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.vtool{width:34px;height:34px;border-radius:50%;border:none;background:transparent;color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.vtool i svg{width:18px;height:18px}
.vtool.active{background:rgba(255,255,255,.22)}
.pen-toggle{background:rgba(255,255,255,.13)}
.pen-toggle.active{background:var(--accent)}
.vtool-group{display:none;align-items:center;gap:5px;padding-left:4px;margin-left:2px;
  border-left:1px solid rgba(255,255,255,.16)}
#viewer.penon .vtool-group{display:flex}
.vtool.sw{width:26px;height:26px;border:2px solid rgba(255,255,255,.45)}
.vtool.sw.sw-black{background:#111827}
.vtool.sw.sw-red{background:#e23b3b}
.vtool.sw.sw-blue{background:#2563eb}
.vtool.sw.sw-yellow{background:#f5b800}
.vtool.sw.active{border-color:#fff;transform:scale(1.3);box-shadow:0 0 0 2px rgba(255,255,255,.55)}

/* ---------- annotation canvas ---------- */
.v-anno{position:absolute;inset:0;pointer-events:none;touch-action:none;z-index:5}
#viewer.penon .v-anno{pointer-events:auto;touch-action:none}
#viewer.penon .v-slide img{pointer-events:none}
/* 필기 중 오작동 방지: 선택·이미지드래그·롱프레스·확대 제스처 차단 */
.viewer{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.v-slide img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
#viewer.penon,#viewer.penon .v-stage,#viewer.penon .v-slide{touch-action:none}
#viewer.penon .v-stage{-webkit-user-select:none;user-select:none}

/* ---------- create-song button in conti picker ---------- */
.lp-create{display:flex;align-items:center;justify-content:center;gap:7px;
  background:var(--accent-soft);color:var(--accent-d);border-radius:8px;padding:11px;
  font-size:13.5px;font-weight:600;cursor:pointer;margin-bottom:4px}
.lp-create:active{filter:brightness(.96)}
.lp-create i svg{width:16px;height:16px}

/* ---------- lyrics field ---------- */
.field-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
.link-btn{background:none;border:none;color:var(--accent);font-size:12.5px;font-weight:600;
  cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-family:inherit;padding:2px 4px}
.link-btn:active{opacity:.6}
.link-btn i svg{width:14px;height:14px}
.input.area.lyrics{min-height:120px;line-height:1.6;white-space:pre-wrap}
#s-lyrics-hint a{color:var(--accent);font-weight:600}

/* ---------- sheet image reorder ---------- */
.img-move{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;
  padding:3px;gap:3px}
.img-move button{flex:1;background:rgba(0,0,0,.55);color:#fff;border:none;border-radius:5px;
  padding:3px 0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.img-move button:disabled{opacity:.3}
.img-move button i svg{width:14px;height:14px}
.img-thumb .ord{bottom:24px}

/* ---------- tag chips (song modal) ---------- */
.tag-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.tchip{border:1px solid var(--border-2);background:var(--surface);color:var(--text-2);
  border-radius:16px;padding:5px 11px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}
.tchip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.tag-add-row{display:flex;gap:8px}
.tag-add-row .input{flex:1}

/* ---------- mini tags (rows) ---------- */
.mini-tags{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:6px;vertical-align:middle}
.mini-tag{font-size:10.5px;font-weight:600;color:var(--accent-d);background:var(--accent-soft);
  padding:1px 6px;border-radius:10px;line-height:1.5}
.lp-name{flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:2px;min-width:0}

/* ---------- picker filters ---------- */
.lp-filters{display:flex;flex-direction:column;gap:7px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r);padding:9px 10px}
.fgroup{display:flex;align-items:center;gap:6px}
.fgroup.wrap{flex-wrap:wrap}
.flabel{font-size:11px;font-weight:700;color:var(--text-3);flex:0 0 30px}
.fchip{border:1px solid var(--border-2);background:var(--surface);color:var(--text-2);
  border-radius:14px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit}
.fchip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.finput{border:1px solid var(--border-2);border-radius:8px;background:var(--surface);
  padding:5px 8px;font-size:12.5px;font-family:inherit;color:var(--text);flex:1}
.fclear{align-self:flex-start;background:none;border:none;color:var(--accent);font-size:12px;
  font-weight:600;cursor:pointer;font-family:inherit;padding:2px 0}

/* ---------- song form (builder input) ---------- */
.b-song-wrap{display:flex;flex-direction:column;gap:5px}
.b-form{font-size:12.5px;padding:8px 11px;background:var(--surface-2);border-color:transparent}
.b-form:focus{background:var(--surface);border-color:var(--accent)}

/* ---------- song form (conti detail chips) ---------- */
.song-row-wrap{display:flex;flex-direction:column;gap:5px}
.song-form{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:0 4px 2px 34px}
.sf{font-size:11px;font-weight:600;color:var(--text-2);background:var(--surface-2);
  padding:2px 7px;border-radius:5px;line-height:1.6}
.sfa{font-size:10px;color:var(--text-3)}

/* ---------- PDF layout (hidden offscreen) ---------- */
.pdf-layout{position:fixed;left:-9999px;top:0;width:794px;pointer-events:none}
.pdf-layout.rendering{z-index:-1}
.p-sheet{width:794px;background:#fff;color:#1B1B1A;padding:56px 60px;
  font-family:"Pretendard",-apple-system,sans-serif;box-sizing:border-box}
.p-head{border-bottom:2.5px solid #1B1B1A;padding-bottom:14px;margin-bottom:18px}
.p-title{font-size:26px;font-weight:800;letter-spacing:-0.02em}
.p-meta{font-size:13px;color:#6E6C66;margin-top:5px}
.p-band{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.p-chip{font-size:12px;border:1px solid #D8D6CF;border-radius:14px;padding:4px 11px}
.p-chip b{color:#3E32A8;font-weight:700;margin-right:3px}
.p-songs{display:flex;flex-direction:column;gap:12px}
.p-song{border:1px solid #E8E6E0;border-radius:10px;padding:12px 15px}
.p-song-head{display:flex;align-items:center;gap:9px}
.p-num{width:22px;height:22px;border-radius:50%;background:#1B1B1A;color:#fff;font-size:12px;
  font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.p-name{font-size:16px;font-weight:700;flex:1}
.p-key{font-size:12px;font-weight:700;color:#3E32A8;background:#ECEAFB;padding:2px 9px;border-radius:6px}
.p-tempo{font-size:11.5px;color:#6E6C66;border:1px solid #E8E6E0;padding:2px 8px;border-radius:6px}
.p-form{margin-top:8px;font-size:12.5px;color:#44423D;background:#F3F2EE;border-radius:7px;
  padding:7px 11px;line-height:1.7;font-weight:600}
.p-memo{margin-top:20px;border-top:1px dashed #D8D6CF;padding-top:14px;font-size:13px;line-height:1.7}
.p-memo-title{font-weight:700;font-size:12px;color:#6E6C66;margin-bottom:5px}
.p-foot{margin-top:26px;text-align:center;font-size:10.5px;color:#9B9890}

/* ---------- click-based form builder ---------- */
.b-form-area{display:flex;flex-direction:column;gap:6px}
.b-form-chips{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.fpart{display:inline-flex;align-items:center;gap:4px;background:var(--accent-soft);color:var(--accent-d);
  border:none;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.fpart .x{font-size:12px;opacity:.55;font-weight:400}
.fpart:active{opacity:.7}
.fpart.addbtn{background:var(--surface);border:1px dashed var(--border-2);color:var(--text-2);font-weight:600}
.fpart.addbtn.on{border-style:solid;color:var(--accent-d);border-color:var(--accent)}
.form-palette{background:var(--surface-2);border-radius:var(--r);padding:9px;display:flex;flex-wrap:wrap;gap:5px}
.fp-btn{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:7px 11px;
  font-size:12.5px;font-weight:600;color:var(--text);cursor:pointer;font-family:inherit}
.fp-btn:active{background:var(--accent-soft);border-color:var(--accent)}
.fp-custom{display:flex;gap:6px;width:100%;margin-top:3px}
.fp-custom .input{flex:1;padding:7px 10px;font-size:13px}

/* ---------- viewer song form strip ---------- */
.v-form{position:relative;z-index:8;display:none;flex-wrap:nowrap;align-items:flex-start;
  justify-content:center;gap:0;
  padding:calc(50px + var(--safe-top)) 8px 4px;
  background:linear-gradient(to bottom,rgba(0,0,0,.78),rgba(0,0,0,.32))}
.v-form.show{display:flex}
.vf-col{flex:1 1 0;min-width:0;display:flex;flex-wrap:wrap;align-items:center;
  justify-content:center;gap:5px 5px;padding:0 8px}
.v-form.vf-split .vf-col+.vf-col{border-left:1px solid rgba(255,255,255,.18)}
.vfp{font-size:12px;font-weight:700;color:#fff;
  padding:4px 10px;border-radius:12px;line-height:1.35;white-space:nowrap}
.vfa{display:none}
@media (max-width:400px){
  .vfp{font-size:11px;padding:3px 8px;border-radius:10px}
  .v-form{gap:4px 4px;padding-top:calc(48px + var(--safe-top))}
}
@media (min-width:600px){
  .vfp{font-size:13px;padding:5px 12px}
}

/* ---------- song form colors ---------- */
.fp-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
.fp-btn{display:inline-flex;align-items:center}
.sf{color:#fff}
.p-form{display:flex;flex-wrap:wrap;gap:5px}
.p-fp{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:11px;line-height:1.6}

/* ---------- 태블릿 가로: 두 쪽 보기 ---------- */
#viewer.spread .v-slide{width:50%;right:auto;padding-left:6px;padding-right:6px}
#viewer.spread .v-slide{box-shadow:inset 1px 0 0 rgba(255,255,255,.07)}

/* ---------- 쪽 보기 토글 버튼 ---------- */
.v-pgmode{width:34px;height:34px;font-size:14px;font-weight:800;font-family:inherit}

/* ---------- 좌측 페이지 유튜브 버튼 ---------- */
.v-yt-left{right:auto;left:16px}

/* ---------- 송폼 칩 드래그 ---------- */
.fpart{cursor:grab;touch-action:none}
.fpart .x{background:none;border:none;font-size:13px;line-height:1;padding:0 0 0 2px;cursor:pointer;opacity:.7;font-family:inherit}
.fpart.dragging{opacity:.45;transform:scale(1.06)}
.fpart.drop-hint{outline:2px dashed rgba(0,0,0,.35);outline-offset:1px}

/* ---------- 펜 종류·굵기 도구 ---------- */
.vt-sep{width:1px;height:20px;background:rgba(255,255,255,.16);flex-shrink:0}
.vtool.kind.active{background:var(--accent)}
.vtool.wbtn .wdot{background:#fff;border-radius:50%;display:block}
.vtool.wbtn.active{background:rgba(255,255,255,.28)}
.sw-yellow{background:#f5b800}
.v-tools{max-width:calc(100% - 24px);flex-wrap:wrap;row-gap:4px;border-radius:18px}
.vtool-group{flex-wrap:wrap;row-gap:4px}

/* ---------- 필기 표시 On/Off ---------- */
#viewer.annohide .v-anno{display:none}
.v-round.off{opacity:.5}

/* ---------- 텍스트 필기 ---------- */
.vtool.tbtn{font-size:16px;font-weight:700;font-family:inherit}
.vtool.tbtn.active{background:var(--accent)}
#vt-bold{font-size:15px}
.anno-textin{position:absolute;z-index:20;transform:translateY(-80%);
  background:rgba(255,255,255,.9);border:1.5px solid var(--accent);border-radius:4px;
  padding:1px 5px;font-family:"Pretendard",sans-serif;line-height:1.2;
  min-width:60px;max-width:70vw;outline:none}

/* ---------- 텍스트 선택 박스 ---------- */
.anno-selbox{position:absolute;z-index:19;border:1.5px dashed var(--accent);border-radius:3px;
  box-sizing:border-box;touch-action:none;cursor:move;background:rgba(99,102,241,.07)}
.anno-selbox .sel-h{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:50%;
  background:var(--accent);border:2.5px solid #fff;cursor:nwse-resize;touch-action:none;box-shadow:0 1px 4px rgba(0,0,0,.4)}

/* ---------- 메모 페이지 (빌더) ---------- */
.b-memo-card{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r);padding:9px;margin-bottom:4px}
.memo-tag{font-size:11px;font-weight:800;color:#fff;background:#6b7280;padding:2px 8px;border-radius:6px;flex-shrink:0}
.memo-title{flex:1}
.memo-text{width:100%;min-height:60px;margin-top:8px;line-height:1.5;resize:vertical}
.memo-bg-row{display:flex;align-items:center;gap:6px;margin-top:8px}
.memo-bg-label{font-size:11px;color:var(--text-3);font-weight:700}
.memo-bg-btn{font-size:12px;font-weight:600;border:1px solid var(--border-2);background:var(--surface);
  color:var(--text-2);border-radius:7px;padding:5px 10px;cursor:pointer;font-family:inherit}
.memo-bg-btn.on{background:var(--accent);border-color:var(--accent);color:#fff}

/* ---------- 메모 페이지 (콘티 상세 행) ---------- */
.song-row.memo{background:var(--surface-2)}
.song-num.memo{background:#6b7280;color:#fff;display:flex;align-items:center;justify-content:center}
.song-num.memo i svg{width:13px;height:13px}
.memo-bg-tag{font-size:10.5px;color:var(--text-3);border:1px solid var(--border);padding:1px 6px;border-radius:8px}

/* ---------- 메모 페이지 (뷰어) ---------- */
.v-slide.memo-slide{padding:52px 10px 66px}
#viewer.hasform .v-slide.memo-slide{padding-top:52px}
.v-memo{background:#fff;color:#1b1b1a;border-radius:4px;
  padding:0;overflow:hidden;box-sizing:border-box;position:relative;flex-shrink:0}
.v-memo-inner{position:absolute;inset:0;padding:5.6% 6.4%;overflow:hidden;box-sizing:border-box}
.v-memo-title{font-size:clamp(13px,4cqw,30px);font-weight:800;margin-bottom:0.6em;letter-spacing:-0.02em}
.v-memo-text{font-size:clamp(10px,2.6cqw,21px);line-height:1.7;white-space:pre-wrap;word-break:break-word}
.v-memo{container-type:size}
.v-memo-hint{color:#9b9890;font-size:14px}
.v-memo.bg-grid{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201414%22%20preserveAspectRatio%3D%22none%22%3E%3Cline%20x1%3D%2242%22%20y1%3D%220%22%20x2%3D%2242%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%2284%22%20y1%3D%220%22%20x2%3D%2284%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22126%22%20y1%3D%220%22%20x2%3D%22126%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22168%22%20y1%3D%220%22%20x2%3D%22168%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22210%22%20y1%3D%220%22%20x2%3D%22210%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22252%22%20y1%3D%220%22%20x2%3D%22252%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22294%22%20y1%3D%220%22%20x2%3D%22294%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22336%22%20y1%3D%220%22%20x2%3D%22336%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22378%22%20y1%3D%220%22%20x2%3D%22378%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22420%22%20y1%3D%220%22%20x2%3D%22420%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22462%22%20y1%3D%220%22%20x2%3D%22462%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22504%22%20y1%3D%220%22%20x2%3D%22504%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22546%22%20y1%3D%220%22%20x2%3D%22546%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22588%22%20y1%3D%220%22%20x2%3D%22588%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22630%22%20y1%3D%220%22%20x2%3D%22630%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22672%22%20y1%3D%220%22%20x2%3D%22672%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22714%22%20y1%3D%220%22%20x2%3D%22714%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22756%22%20y1%3D%220%22%20x2%3D%22756%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22798%22%20y1%3D%220%22%20x2%3D%22798%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22840%22%20y1%3D%220%22%20x2%3D%22840%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22882%22%20y1%3D%220%22%20x2%3D%22882%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22924%22%20y1%3D%220%22%20x2%3D%22924%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%22966%22%20y1%3D%220%22%20x2%3D%22966%22%20y2%3D%221414%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2242%22%20x2%3D%221000%22%20y2%3D%2242%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%2284%22%20x2%3D%221000%22%20y2%3D%2284%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22126%22%20x2%3D%221000%22%20y2%3D%22126%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22168%22%20x2%3D%221000%22%20y2%3D%22168%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22210%22%20x2%3D%221000%22%20y2%3D%22210%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22252%22%20x2%3D%221000%22%20y2%3D%22252%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22294%22%20x2%3D%221000%22%20y2%3D%22294%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22336%22%20x2%3D%221000%22%20y2%3D%22336%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22378%22%20x2%3D%221000%22%20y2%3D%22378%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22420%22%20x2%3D%221000%22%20y2%3D%22420%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22462%22%20x2%3D%221000%22%20y2%3D%22462%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22504%22%20x2%3D%221000%22%20y2%3D%22504%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22546%22%20x2%3D%221000%22%20y2%3D%22546%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22588%22%20x2%3D%221000%22%20y2%3D%22588%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22630%22%20x2%3D%221000%22%20y2%3D%22630%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22672%22%20x2%3D%221000%22%20y2%3D%22672%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22714%22%20x2%3D%221000%22%20y2%3D%22714%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22756%22%20x2%3D%221000%22%20y2%3D%22756%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22798%22%20x2%3D%221000%22%20y2%3D%22798%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22840%22%20x2%3D%221000%22%20y2%3D%22840%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22882%22%20x2%3D%221000%22%20y2%3D%22882%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22924%22%20x2%3D%221000%22%20y2%3D%22924%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%22966%22%20x2%3D%221000%22%20y2%3D%22966%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221008%22%20x2%3D%221000%22%20y2%3D%221008%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221050%22%20x2%3D%221000%22%20y2%3D%221050%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221092%22%20x2%3D%221000%22%20y2%3D%221092%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221134%22%20x2%3D%221000%22%20y2%3D%221134%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221176%22%20x2%3D%221000%22%20y2%3D%221176%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221218%22%20x2%3D%221000%22%20y2%3D%221218%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221260%22%20x2%3D%221000%22%20y2%3D%221260%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221302%22%20x2%3D%221000%22%20y2%3D%221302%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221344%22%20x2%3D%221000%22%20y2%3D%221344%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3Cline%20x1%3D%220%22%20y1%3D%221386%22%20x2%3D%221000%22%20y2%3D%221386%22%20stroke%3D%22%23e5e5e5%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E");
  background-size:100% 100%;background-repeat:no-repeat}
.v-memo.bg-staff{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201414%22%20preserveAspectRatio%3D%22none%22%3E%3Cline%20x1%3D%2256%22%20y1%3D%22170%22%20x2%3D%22944%22%20y2%3D%22170%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22181%22%20x2%3D%22944%22%20y2%3D%22181%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22192%22%20x2%3D%22944%22%20y2%3D%22192%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22203%22%20x2%3D%22944%22%20y2%3D%22203%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22214%22%20x2%3D%22944%22%20y2%3D%22214%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22290%22%20x2%3D%22944%22%20y2%3D%22290%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22301%22%20x2%3D%22944%22%20y2%3D%22301%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22312%22%20x2%3D%22944%22%20y2%3D%22312%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22323%22%20x2%3D%22944%22%20y2%3D%22323%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22334%22%20x2%3D%22944%22%20y2%3D%22334%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22410%22%20x2%3D%22944%22%20y2%3D%22410%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22421%22%20x2%3D%22944%22%20y2%3D%22421%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22432%22%20x2%3D%22944%22%20y2%3D%22432%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22443%22%20x2%3D%22944%22%20y2%3D%22443%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22454%22%20x2%3D%22944%22%20y2%3D%22454%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22530%22%20x2%3D%22944%22%20y2%3D%22530%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22541%22%20x2%3D%22944%22%20y2%3D%22541%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22552%22%20x2%3D%22944%22%20y2%3D%22552%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22563%22%20x2%3D%22944%22%20y2%3D%22563%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22574%22%20x2%3D%22944%22%20y2%3D%22574%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22650%22%20x2%3D%22944%22%20y2%3D%22650%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22661%22%20x2%3D%22944%22%20y2%3D%22661%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22672%22%20x2%3D%22944%22%20y2%3D%22672%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22683%22%20x2%3D%22944%22%20y2%3D%22683%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22694%22%20x2%3D%22944%22%20y2%3D%22694%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22770%22%20x2%3D%22944%22%20y2%3D%22770%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22781%22%20x2%3D%22944%22%20y2%3D%22781%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22792%22%20x2%3D%22944%22%20y2%3D%22792%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22803%22%20x2%3D%22944%22%20y2%3D%22803%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22814%22%20x2%3D%22944%22%20y2%3D%22814%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22890%22%20x2%3D%22944%22%20y2%3D%22890%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22901%22%20x2%3D%22944%22%20y2%3D%22901%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22912%22%20x2%3D%22944%22%20y2%3D%22912%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22923%22%20x2%3D%22944%22%20y2%3D%22923%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%22934%22%20x2%3D%22944%22%20y2%3D%22934%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221010%22%20x2%3D%22944%22%20y2%3D%221010%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221021%22%20x2%3D%22944%22%20y2%3D%221021%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221032%22%20x2%3D%22944%22%20y2%3D%221032%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221043%22%20x2%3D%22944%22%20y2%3D%221043%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221054%22%20x2%3D%22944%22%20y2%3D%221054%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221130%22%20x2%3D%22944%22%20y2%3D%221130%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221141%22%20x2%3D%22944%22%20y2%3D%221141%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221152%22%20x2%3D%22944%22%20y2%3D%221152%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221163%22%20x2%3D%22944%22%20y2%3D%221163%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221174%22%20x2%3D%22944%22%20y2%3D%221174%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221250%22%20x2%3D%22944%22%20y2%3D%221250%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221261%22%20x2%3D%22944%22%20y2%3D%221261%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221272%22%20x2%3D%22944%22%20y2%3D%221272%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221283%22%20x2%3D%22944%22%20y2%3D%221283%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221294%22%20x2%3D%22944%22%20y2%3D%221294%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221370%22%20x2%3D%22944%22%20y2%3D%221370%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221381%22%20x2%3D%22944%22%20y2%3D%221381%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221392%22%20x2%3D%22944%22%20y2%3D%221392%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221403%22%20x2%3D%22944%22%20y2%3D%221403%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3Cline%20x1%3D%2256%22%20y1%3D%221414%22%20x2%3D%22944%22%20y2%3D%221414%22%20stroke%3D%22%23d8d8d8%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E");
  background-size:100% 100%;background-repeat:no-repeat}

/* ---------- 메모 (PDF 요약) ---------- */
.p-num.memo{background:#6b7280;font-size:10px;width:auto;padding:0 7px;border-radius:9px}
.p-memo-item{background:#f7f7f5}
.p-memo-text{font-size:12.5px;color:#44423d;margin-top:6px;line-height:1.6;white-space:pre-wrap}

/* ---------- 글자 크기 숫자 입력 ---------- */
.vt-fsize{width:46px;height:30px;border-radius:8px;border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);color:#fff;font-family:inherit;font-size:13px;font-weight:700;
  text-align:center;outline:none;-moz-appearance:textfield}
.vt-fsize::-webkit-outer-spin-button,.vt-fsize::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.vt-fsize:focus{border-color:var(--accent)}

/* ---------- 로그인 ---------- */
.login-wrap{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.login-card{width:100%;max-width:360px;background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:26px 22px;display:flex;flex-direction:column;gap:12px}
.center-col{flex-direction:column;align-items:center;gap:2px;margin-bottom:8px}
.btn-primary.wide,.btn-ghost.wide{width:100%}
.linklike{background:none;border:none;color:var(--accent);font-family:inherit;font-size:13px;
  font-weight:700;cursor:pointer;padding:4px;margin-top:2px}
.reg-form{display:flex;flex-direction:column;gap:10px;border-top:1px dashed var(--border);padding-top:14px;margin-top:4px}
.set-church-line{font-size:13.5px;color:var(--text-2);margin:0 0 10px}
.set-church-line b{color:var(--text)}

/* ---------- 관리자 바 ---------- */
.admin-bar{display:flex;align-items:center;gap:8px;padding:8px 14px;
  background:linear-gradient(90deg,rgba(99,102,241,.14),transparent);border-bottom:1px solid var(--border)}
.admin-chip{font-size:11px;font-weight:800;color:#fff;background:var(--accent);
  padding:3px 8px;border-radius:7px;flex-shrink:0}
.input.sel{flex:1;min-width:0;padding:7px 9px;font-size:13px;font-weight:600}

/* ---------- 콘티 복사 클립보드 바 ---------- */
.clip-bar{display:flex;align-items:center;gap:8px;padding:9px 14px;
  background:var(--surface-2);border-bottom:1px solid var(--border)}
.clip-bar > i svg{width:16px;height:16px;color:var(--text-3);flex-shrink:0}
.clip-info{flex:1;min-width:0;font-size:12.5px;font-weight:600;color:var(--text-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-primary.sm i svg,.btn-ghost.sm i svg{width:13px;height:13px}

/* ---------- 콘티 카드 액션 ---------- */
.conti-card{align-items:stretch}
.conti-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer}
.conti-acts{display:flex;align-items:center;gap:2px;flex-shrink:0;padding-left:4px}
.conti-acts .mini{width:30px;height:30px}
.conti-acts .mini i svg{width:14px;height:14px}
.linklike.sub{color:var(--text-3);font-size:12px}
