/* [2026-12-06] 모바일 쓰기 툴바 '줄꾸미기' 모달 (inc/line_deco_modal.php, js/26-line-deco.js)
   아래에서 올라오는 시트, 본문 3칸: 줄 수 | 줄 모양 | 미리보기 */
.ld { position: fixed; inset: 0; z-index: 200000; visibility: hidden; pointer-events: none; }
.ld.open { visibility: visible; pointer-events: auto; }
.ld-back { position: absolute; inset: 0; background: rgba(28,25,23,.45); opacity: 0; transition: opacity .2s; }
.ld.open .ld-back { opacity: 1; }
.ld-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0;
	display: flex; flex-direction: column; height: min(72vh, 560px); padding-bottom: env(safe-area-inset-bottom);
	transform: translateY(100%); transition: transform .25s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
.ld.open .ld-sheet { transform: none; }
.ld-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.ld-head b { font-size: 17px; color: #1c1917; }
.ld-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f5f5f4; color: #57534e; display: flex; align-items: center; justify-content: center; }

.ld-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 64px 124px 1fr; grid-template-rows: minmax(0, 1fr); gap: 10px; padding: 0 14px; }
.ld-col { display: flex; flex-direction: column; min-height: 0; }
.ld-col-t { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #a8a29e; }
.ld-list { list-style: none; margin: 0; padding: 4px; flex: 1; min-height: 0; overflow-y: auto; border-radius: 12px; background: #fafaf9; -webkit-overflow-scrolling: touch; }
.ld-list li { display: flex; align-items: center; gap: 7px; padding: 10px 9px; margin-bottom: 3px; border-radius: 9px; font-size: 14px; color: #44403c; cursor: pointer; word-break: keep-all; line-height: 1.3; }
.ld-col--n .ld-list li { justify-content: center; }
.ld-list li.on { background: #fff; color: #db2777; font-weight: 800; box-shadow: inset 0 0 0 1.5px #f9a8d4, 0 2px 6px rgba(219,39,119,.12); }

.ld-col--pv { align-items: stretch; }
.ld-pv { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.ld-pv-paper { position: relative; width: 100%; height: auto; aspect-ratio: 1748 / 2480; border-radius: 6px; overflow: hidden;
	background: #fffdf8 no-repeat center top; background-size: 100% auto; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.ld-pv-lines { position: absolute; inset: 0; background: no-repeat center top; background-size: 100% auto; }
.ld-pv-cap { margin: 6px 0 0; text-align: center; font-size: 12px; color: #78716c; }

.ld-foot { display: flex; gap: 8px; padding: 12px 14px 14px; }
.ld-btn { flex: 1; height: 48px; border: 0; border-radius: 14px; background: #ec4899; color: #fff; font-size: 15px; font-weight: 800; }
.ld-btn--ghost { flex: 0 0 34%; background: #f5f5f4; color: #57534e; }
