/* PDF 한 번에 — 지붕 base.css 위에 이 앱 것만 (줄 대신 면 색 · 쉬는 것엔 그림자 없음 · 그라데이션 없음 · 단추 완전 원형 · 글자 다섯 단 12 · 14 · 16 · 20 · 32)
   첫 화면은 넣는 자리 하나와 세 결과 단추뿐 — 글은 그 자리 한 줄과 단추 이름 셋(요청서 261102-mix-pdf «사용자의 직관 수준을 높이 평가하지 말아라») */
.po { padding-top: 40px; padding-bottom: 8px; }
.po-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.po-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 48px 24px; cursor: pointer; color: var(--fg); margin: 0; }
.po-drop b { font-size: 20px; }
.po-art { width: 64px; height: 64px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.po-art .doc { stroke: var(--mut); }
.po-art .arr { stroke: var(--acc); transition: transform .25s ease; }
.po-drop:hover .po-art .arr, .po-drop.on .po-art .arr { transform: translateY(3px); }
.po-drop:hover, .po-drop.on { background: var(--hover); }
.po-drop:focus-within { outline: 3px solid var(--acc); outline-offset: 2px; }
.po-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.po-err { margin: 12px 0 0; background: var(--warn-bg); color: var(--warn-fg); border-radius: 12px; padding: 8px 12px; font-size: 14px; }

.po-gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.po-get { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 12px; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-fg); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.po-get svg { flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--acc-fg) 18%, transparent); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.po-gn { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.po-n { flex: 0 0 auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.po-n:empty { display: none; }
.po-n:not(:empty) { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--acc-fg) 22%, transparent); }
.po-get:hover:not(:disabled) svg { transform: translateY(2px); }
.po-get:hover:not(:disabled) { filter: brightness(1.08); }
.po-get:disabled { background: var(--band); color: var(--mut); cursor: default; }
.po-get:disabled svg { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.po-get:disabled .po-n:not(:empty) { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.po-get:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.po-state { min-height: 20px; margin: 8px 0 0; }

.po-res { margin-top: 8px; }
.po-file { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; }
.po-file > svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.po-file b { flex: 1 1 auto; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.po-card { margin-top: 12px; padding: 20px 24px; }
.po-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.po-h svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

#po-out { display: block; width: 100%; min-height: 140px; resize: vertical; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--band); color: var(--fg); font: inherit; font-size: 14px; line-height: 1.6; }
#po-out:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.po-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.po-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-fg); cursor: pointer; }
.po-ic.ghost { background: var(--band); color: var(--fg); }
.po-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.po-ic:hover { filter: brightness(1.05); }
.po-ic:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.po-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(--fg); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.po-ic:hover::after, .po-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--band); color: var(--fg); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.chip i { font-style: normal; color: var(--mut); }
.chip.r-red { background: #fde4e1; color: #8a1c12; }
.chip.r-orange { background: #fdecd3; color: #7a4100; }
.chip.r-gray { background: var(--band); }
.chip.r-keep { background: var(--ok-bg); color: var(--ok-fg); font-weight: 600; }
.po-blocks, .po-hits, .po-chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.po-b { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--band); font-size: 14px; }
.po-b.r-red { background: #fdf0ee; }
.po-b.r-orange { background: #fdf5ea; }
.po-fs { display: flex; flex-wrap: wrap; gap: 6px; }
.po-none { margin: 0; }
.po-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.po-keep p { flex: 1 1 100%; margin: 0; }
.po-note { margin-top: 8px; }
.po-done { margin-top: 8px; }

.po-words { display: block; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--band); color: var(--fg); font: inherit; font-size: 14px; }
.po-words:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.po-hits li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }
.po-hits li.note { display: block; }
.po-why { margin: 12px 0 0; }
.po-chk { margin-top: 12px; }
.po-chk li { padding: 6px 12px; border-radius: 12px; font-size: 14px; background: var(--band); }
.po-chk li.ok { background: var(--ok-bg); color: var(--ok-fg); }
.po-chk li.bad { background: var(--warn-bg); color: var(--warn-fg); }
.po-scope { margin-top: 20px; }

@media (max-width: 640px) {
  .po { padding-top: 24px; }
  .po-gets { grid-template-columns: 1fr; gap: 8px; }
  .po-drop { padding: 36px 16px; }
  .po-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .po-art .arr, .po-get svg, .po-ic::after { transition: none; } }
