/* 입국심사 신청서 / 신청자 관리 (휴대폰 기준) */
.ap { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.ap > * + * { margin-top: 14px; }
.ap-head { text-align: center; padding: 8px 0 4px; }
.ap-head h1 { font-size: 34px; margin: 6px 0 2px; }
.ap-pass .ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ap-pass .full { grid-column: 1 / 3; }
.ap-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--dash); }
.perk { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 192, 211, 0.3); color: var(--peach-ink); }
.perk b { font-weight: 700; }
.perk.sky { background: rgba(130, 195, 236, 0.2); color: var(--accent2); }
.ap-min { margin-top: 10px; }
.ap-warn { color: var(--peach-ink); font-weight: 600; }

/* 여권 */
.pp { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.pp-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #12324A; color: #FAF9F6; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; }
.pp-em { width: 22px; height: 22px; border-radius: 50%; background: var(--peach); color: #12324A; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.pp-no { margin-left: auto; color: var(--accent); }
.pp-body { display: flex; gap: 12px; padding: 14px; background:
  repeating-linear-gradient(135deg, rgba(130, 195, 236, 0.07) 0 6px, transparent 6px 12px); }
.pp-photo { flex: 0 0 auto; width: 86px; height: 110px; border-radius: 8px; border: 1.5px dashed var(--dash); display: grid; place-items: center; overflow: hidden; background: var(--bg2); }
.pp-photo span { font-family: var(--f-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pf { min-width: 0; }
.pf.wide { grid-column: 1 / 3; }
.pf .k { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--faint); }
.pf b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--faint); }
.pf.on b { color: var(--text); animation: ink 0.5s ease; }
@keyframes ink { from { opacity: 0; filter: blur(3px); transform: translateY(-3px); } to { opacity: 1; filter: none; transform: none; } }
.pp-mrz { padding: 8px 14px 10px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; overflow: hidden; }

/* 도장 */
.stamp { position: absolute; right: 14px; bottom: 14px; width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--peach-ink); color: var(--peach-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; opacity: 0; transform: rotate(-14deg) scale(2.2); pointer-events: none; }
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed var(--peach-ink); }
.stamp small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; }
.stamp b { font-family: var(--f-display); font-size: 25px; line-height: 1.15; }
.stamp em { font-style: normal; font-family: var(--f-mono); font-size: 11px; }
.stamp.on { animation: stamp 0.55s cubic-bezier(0.3, 1.4, 0.6, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.2); } 60% { opacity: 0.95; transform: rotate(-14deg) scale(0.92); } 100% { opacity: 0.88; transform: rotate(-14deg) scale(1); } }

.pp-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dots { display: flex; gap: 4px; flex: 0 0 auto; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dash); }
.dots i.on { background: var(--accent2); }

/* 질문 카드 */
#card { margin-top: 12px; }
#card > * + * { margin-top: 12px; }
.q { font-family: var(--f-display); font-weight: 700; font-size: 21px; margin: 0; line-height: 1.35; }
.officer { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); margin: 0 0 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px dashed var(--dash); background: transparent; border-radius: 99px; padding: 9px 14px; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 42px; }
.chips button[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: rgba(130, 195, 236, 0.18); color: var(--accent2); }
.chips.mbti { display: grid; grid-template-columns: repeat(4, 1fr); }
.chips.mbti button { padding: 9px 0; border-radius: 12px; font-family: var(--f-mono); }
.chips.mbti button:last-child { grid-column: 1 / 5; font-family: var(--f-body); }
.sub { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ap-photo { display: grid; place-items: center; min-height: 150px; border: 1.5px dashed var(--dash); border-radius: var(--r-sm); background: var(--bg2); cursor: pointer; overflow: hidden; }
.ap-photo img { width: 100%; max-height: 300px; object-fit: contain; display: block; }
.ap-photo span { color: var(--muted); font-weight: 600; padding: 12px; text-align: center; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ap-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent2); }
.ap-terms { padding-left: 30px; line-height: 1.6; }
.note { font-size: 13px; color: var(--peach-ink); font-weight: 600; }
.err { color: var(--danger); font-weight: 700; font-size: 14px; margin: 0; }
.nav { display: flex; gap: 8px; }
.nav .btn { flex: 1; }
.nav .btn.primary { flex: 2; }
.fare { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--dash); padding-top: 12px; }
.fare strong { font-size: 24px; color: var(--accent2); font-variant-numeric: tabular-nums; }
dl.sum { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
dl.sum dt { color: var(--muted); font-weight: 600; }
dl.sum dd { margin: 0; font-weight: 700; min-width: 0; }

/* 신청자 관리 */
.aa-top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0 8px; }
.aa-count { display: flex; gap: 8px; flex-wrap: wrap; }
.aa-count .tag { font-size: 13px; padding: 4px 10px; }
.aa-filter { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; }
.aa-filter button { flex: 0 0 auto; border: 1.5px dashed var(--dash); background: none; color: var(--muted); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; }
.aa-filter button.on { border-style: solid; border-color: var(--accent); color: var(--accent2); background: rgba(130, 195, 236, 0.18); }
.aa-row { display: flex; gap: 12px; }
.aa-row img { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; background: var(--bg2); flex: 0 0 auto; cursor: zoom-in; }
.aa-row .info { flex: 1; min-width: 0; }
.aa-row .name { font-weight: 700; font-size: 17px; }
.aa-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.aa-st.new { background: rgba(130, 195, 236, 0.2); color: var(--accent2); }
.aa-st.ok { background: rgba(229, 163, 58, 0.18); color: #9a6514; }
.aa-st.no { background: rgba(192, 57, 43, 0.08); color: var(--muted); }
.aa-st.paid { background: rgba(46, 139, 87, 0.16); color: var(--ok); }
.aa-st.wait { background: var(--bg2); color: var(--muted); }
.aa-st.cancel { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.aa-cert { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(229, 163, 58, 0.14); font-size: 13px; font-weight: 600; }
.aa-cert.ok { background: rgba(46, 139, 87, 0.12); color: var(--ok); }
.aa-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.aa-zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); display: grid; place-items: center; z-index: 50; }
.aa-zoom img { max-width: 94vw; max-height: 90vh; border-radius: 12px; }
.aa-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .aa-st.ok { color: var(--gold); } .pp-top { background: #0E1A26; } }
@media (prefers-reduced-motion: reduce) { .stamp.on { opacity: 0.88; transform: rotate(-14deg); } }
