/* PDF 하나로 — 도구 색 네 개 + 이 도구에만 있는 모양. 뼈대는 공용 myosu.css
 * 색: --c #c2392a(흰 글자 대비 4.9), --c-deep #9a2a1d(--c-soft 위 대비 7.2) */
:root { --c: #c2392a; --c-deep: #9a2a1d; --c-soft: #fde8e4; --bg: #fbf6f4; }

.hero { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.hero h1 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--c-deep); }
.hero svg { flex: none; }

/* 안전 안내 (2026-12-06 대표님 「첫 화면에 잘 보이게」) */
.safe { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: #eaf6ee; color: #14532d; }
.safe .lk { flex: none; font-size: 20px; line-height: 1.2; }
.safe b { display: block; font-size: 15.5px; }
.safe small { display: block; font-size: 13.5px; margin-top: 2px; color: #1f5c37; line-height: 1.5; }

.fine-p { margin: 10px 2px 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.center { text-align: center; }
.empty { margin: 26px 0 6px; text-align: center; font-size: 14px; color: var(--muted); }

/* 못 넣은 파일 */
.err { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: #fdecea; border: 2px solid #e8a39d; color: #7f1d16; }
.err b { display: block; font-size: 15.5px; margin-top: 4px; }
.err p { margin: 4px 0 0; font-size: 14px; }
.err ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }
.err .tiny { margin-top: 10px; }

/* 카드 위 줄 */
.bar2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 0; }
.bar2 .cnt { margin: 0 auto 0 2px; font-size: 15px; color: var(--ink-2); }
.bar2 .cnt b { color: var(--ink); font-size: 17px; }
.order { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--c-soft); color: var(--c-deep); font-size: 13.5px; line-height: 1.5; }
.order b { font-weight: 700; }

/* 쪽 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 0; }
.pc { position: relative; background: var(--surface); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); border: 2px solid transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pc.sel { border-color: var(--c); background: #fff7f5; }
.pc .th { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #f1eeec; cursor: grab; touch-action: pan-y; }
.pc .th img { max-width: 100%; max-height: 100%; transition: transform .15s; pointer-events: none; -webkit-user-drag: none; }
.pc .no { position: absolute; top: 4px; left: 4px; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; background: rgba(21, 23, 28, .85); color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.pc .ck { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800; }
.pc .ck::before { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(21, 23, 28, .35); box-sizing: border-box; z-index: -1; }
.pc .ck { z-index: 1; isolation: isolate; }
.pc.sel .ck::before { background: var(--c); }
.pc .nm { margin: 6px 2px 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .acts { display: flex; gap: 4px; }
.pc .acts button { flex: 1; min-width: 0; height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: var(--c-soft); color: var(--c-deep); font-size: 13.5px; font-weight: 700; }
.pc.ghost { opacity: .35; }
.pc.chosen { box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* 설정 */
.opts { margin-top: 18px; }
.sec { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.fld { display: block; margin: 10px 0 0; }
.fld > span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; }
.fld input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; color: var(--ink); }
.fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c); }
.oh { margin: 14px 2px 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rds { display: flex; flex-wrap: wrap; gap: 8px; }
.rd { flex: 1 1 130px; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; cursor: pointer; }
.rd:has(input:checked) { box-shadow: inset 0 0 0 2px var(--c); background: #fff7f5; font-weight: 700; }
.rd input { accent-color: var(--c); width: 18px; height: 18px; margin: 0; }

/* 만들기 버튼 */
.mk { margin: 6px 0 0; }

/* 다 만든 뒤 */
.result { margin-top: 18px; border: 2px solid #bfe3c7; }
.result .rt { margin: 0; font-size: 17px; font-weight: 800; }
.result .rn { margin: 6px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.result .rs { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.result .rw { margin: 12px 2px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.result .rnew { margin-top: 12px; }

/* 기다리는 창 */
.busy { position: fixed; inset: 0; z-index: 30; background: rgba(21, 23, 28, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.busy .bx { width: 100%; max-width: 340px; background: #fff; border-radius: 22px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.busy .bt { display: block; margin-top: 6px; font-size: 18px; }
.busy .bn { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--c-deep); font-variant-numeric: tabular-nums; min-height: 22px; }
.busy .bbar { height: 10px; margin: 10px 0 0; border-radius: 999px; background: #f1e3e0; overflow: hidden; }
.busy .bbar i { display: block; height: 100%; width: 8%; border-radius: 999px; background: var(--c); transition: width .2s; }
.busy .bs { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #eaf6ee; color: #14532d; font-size: 13.5px; line-height: 1.5; text-align: left; }
.busy .bstop { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .busy .bbar i, .pc .th img { transition: none; } }

/* 컴퓨터에서 파일을 끌고 들어올 때 */
body.dropping .app { outline: 3px dashed var(--c); outline-offset: -6px; border-radius: 18px; }
