/* PDF 가리기 — 지붕 base.css 위에 이 앱 것만 (줄 대신 면 색 · 쉬는 것엔 그림자 없음 · 단추 완전 원형 · 글자 다섯 단 12 · 14 · 16 · 20 · 32)
   지붕 낱말(--acc · --band …)이 없을 때를 위해 값마다 기본을 단다 */
.pr { --pr-acc: var(--acc, #1f6feb); --pr-band: var(--band, #ececea); --pr-fg: var(--fg, #1d1d1b); --pr-card: var(--card, #ffffff); --pr-ok: var(--ok-fg, #14532d); --pr-okb: var(--ok-bg, #e3f4e8); --pr-bad: var(--up, #b42318); }
.pr-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 999px; background: var(--pr-band); color: var(--mut, #555); font-size: 14px; font-weight: 700; }

.pr-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 24px; cursor: pointer; color: var(--pr-fg); margin: 0; }
.pr-drop .pr-step { position: absolute; left: 16px; top: 16px; }
.pr-art { width: 64px; height: 64px; fill: none; stroke: var(--pr-acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pr-art .bar { fill: var(--pr-fg); stroke: none; transform-origin: 20px 37px; transition: transform .35s ease; }
.pr-drop:hover .pr-art .bar, .pr-drop.on .pr-art .bar { transform: scaleX(.55); }
.pr-drop b { font-size: 20px; }
.pr-drop:hover, .pr-drop.on { background: var(--hover, #eef3fd); }
.pr-drop:focus-within { outline: 3px solid var(--pr-acc); outline-offset: 2px; }
.pr-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pr-err { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--warn-bg, #fff1d6); color: var(--warn-fg, #7a4d00); font-size: 14px; }
.pr-work { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }

.pr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-row + .pr-row { margin-top: 12px; }
.pr-chips, .pr-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-chips label, .pr-seg label, .pr-meta { margin: 0; color: var(--pr-fg); font-size: 16px; }
.pr-chips input, .pr-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; }
.pr-chips span, .pr-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--pr-band); cursor: pointer; }
.pr-chips input:checked + span, .pr-seg input:checked + span { background: var(--pr-acc); color: var(--acc-fg, #fff); font-weight: 600; }
.pr-chips input:focus-visible + span, .pr-seg input:focus-visible + span { outline: 3px solid var(--pr-acc); outline-offset: 2px; }
.pr-words { flex: 1 1 200px; min-width: 0; width: auto !important; }
.pr-found { margin: 12px 0 0; }

.pr-pages { display: flex; flex-direction: column; gap: 16px; }
.pr-pg { position: relative; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; touch-action: none; cursor: crosshair; user-select: none; }
.pr-pages.off .pr-pg { touch-action: auto; cursor: default; }
.pr-pg canvas { display: block; width: 100%; height: 100%; }
.pr-ov { position: absolute; inset: 0; }
.pr-no { position: absolute; right: 8px; bottom: 8px; font-size: 12px; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--pr-band); color: var(--pr-fg); pointer-events: none; }
.pr-box { position: absolute; padding: 0; border: 0; border-radius: 2px; background: rgba(17, 17, 17, .82); cursor: pointer; min-height: 0; }
.pr-box.f { background: rgba(17, 17, 17, .72); outline: 2px solid var(--pr-acc); }
.pr-box:hover { background: rgba(180, 35, 24, .72); }
.pr-box:focus-visible { outline: 3px solid var(--pr-acc); outline-offset: 1px; }
.pr-ghost { position: absolute; background: rgba(31, 111, 235, .18); outline: 2px dashed var(--pr-acc); pointer-events: none; }

.pr-why { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--pr-band); color: var(--pr-fg); font-size: 14px; }
.pr-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; cursor: pointer; }
.pr-meta input { width: 20px !important; height: 20px; min-height: 0 !important; flex: 0 0 20px; accent-color: var(--pr-acc); }
.pr-runrow { margin-top: 16px !important; }

.pr-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border: 0; border-radius: 999px; background: var(--pr-acc); color: var(--acc-fg, #fff); cursor: pointer; text-decoration: none; }
.pr-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.pr-ic.ghost { background: var(--pr-band); color: var(--pr-fg); }
.pr-ic[aria-pressed="true"] { background: var(--pr-acc); color: var(--acc-fg, #fff); }
.pr-ic:hover svg { transform: scale(1.12); }
.pr-ic:hover { filter: brightness(1.06); }
.pr-ic:disabled { opacity: .4; cursor: default; }
.pr-ic:focus-visible { outline: 3px solid var(--pr-acc); outline-offset: 2px; }
.pr-ic::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--pr-fg); color: var(--pr-card); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 2; }
.pr-ic:hover::after, .pr-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.pr-run { width: 64px; height: 64px; flex-basis: 64px; }
.pr-run svg { width: 30px; height: 30px; }
.pr-sp { flex: 1; }
.pr-fb { display: inline-flex; align-items: center; gap: 8px; }
.pr-fb[hidden] { display: none; }

.pr-chk { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-chk li { padding: 8px 12px 8px 36px; border-radius: 12px; background: var(--pr-band); font-size: 14px; position: relative; }
.pr-chk li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 999px; background: var(--mut, #888); }
.pr-chk li.ok { background: var(--pr-okb); color: var(--pr-ok); }
.pr-chk li.ok::before { background: var(--pr-ok); }
.pr-chk li.bad { background: #fde7e4; color: var(--pr-bad); }
.pr-chk li.bad::before { background: var(--pr-bad); }
.pr-scope { margin-top: 24px; }
@media (max-width: 480px) { .pr-ic::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .pr-art .bar, .pr-ic svg, .pr-ic::after { transition: none; } }
