:root { --text: #0a0a0a; --muted: #6b6b6b; --rule: #e6e6e6; --accent: #141414; --bg: #f5f5f4; --card: #fff; --hl: rgba(255, 221, 87, .45); --err: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; -webkit-text-size-adjust: 100%; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--rule); }
.top img { border-radius: 6px; }
main { max-width: 760px; margin: 0 auto; padding: 12px 12px 60px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; margin: 12px 0; }
.card.ok { border-color: #8bc34a; }
h1 { font-size: 20px; margin: 0 0 8px; } h2 { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; } .small { font-size: 12px; }
.pages { display: grid; gap: 10px; }
.pg { position: relative; container-type: inline-size; background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; aspect-ratio: 595 / 839; }
.pg img { display: block; width: 100%; height: 100%; }
.pg .ld { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.pg.ok .ld { display: none; }
.pg .no { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.8); padding: 0 6px; border-radius: 6px; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov .cv { position: absolute; background: #fff; }
.ov .tx { position: absolute; white-space: nowrap; line-height: 1; background: var(--hl); color: #000; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
.ov .sg { position: absolute; display: grid; place-items: center; border: 1.5px dashed #e65100; border-radius: 4px; color: #e65100; font-size: 1.6cqw; background: rgba(255,255,255,.5); }
.ov .sg img { width: 100%; height: 100%; object-fit: contain; }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ck:last-child { border-bottom: 0; }
.ck input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.ck a { font-size: 14px; color: #1565c0; }
.f { display: grid; gap: 4px; margin: 10px 0; font-size: 14px; color: var(--muted); }
.f input { font: inherit; font-size: 16px; color: var(--text); padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 8px; width: 100%; }
.pad { display: block; width: 100%; height: 180px; border: 1.5px solid #bdbdbd; border-radius: 10px; background: #fff; touch-action: none; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.btn { font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid #cfcfcf; border-radius: 8px; background: #fff; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.big { width: 100%; padding: 14px; font-size: 17px; font-weight: 600; }
.btn:disabled { opacity: .5; }
.err { color: var(--err); min-height: 1.2em; font-weight: 600; }
