/* ───────── MGM 등록 · 이행약정서 ───────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&display=swap');
:root { --pa-serif: 'Noto Serif KR', serif; --pa-gold: #B8893F; --pa-gold-2: #D9B572; --pa-ink: #12201C; --pa-doc: #FDFCF8; }

/* 공통 마크 */
.pa-mark { display: inline-flex; align-items: stretch; border: 1.5px solid var(--pa-gold); border-radius: 3px; overflow: hidden; font-size: 13px; line-height: 1; flex: none; }
.pa-mark b { background: var(--pa-gold); color: #fff; font-family: 'Playfair Display', var(--pa-serif); font-weight: 800; padding: 6px 7px 5px; letter-spacing: .02em; }
.pa-mark span { color: var(--pa-gold-2); padding: 6px 8px 5px; font-weight: 800; letter-spacing: .04em; }
.pa-mark.sm { font-size: 12px; }

/* ── 물건 등록 서랍 안의 MGM 등록 블록 ── */
.pa-reg { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: 6px; background: linear-gradient(180deg, #16261F, var(--pa-ink)); color: #fff; position: relative; overflow: hidden; }
.pa-reg::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(217,181,114,.28); border-radius: 3px; pointer-events: none; }
.pa-reg-t b { display: block; font-family: var(--pa-serif); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.pa-reg-t small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.62); }
.pa-reg .hint { color: rgba(255,255,255,.5) !important; }
.pa-regbtn { padding: 10px 14px; border-radius: 4px; background: rgba(217,181,114,.1); border: 1px solid rgba(217,181,114,.45); transition: background .15s, transform .15s; position: relative; }
.pa-regbtn:hover:not(:disabled) { background: rgba(217,181,114,.2); transform: translateY(-1px); }
.pa-regbtn:disabled { opacity: .4; cursor: not-allowed; }
.pa-regbtn .pa-mark { font-size: 15px; }
.pa-reg.locked .pa-regbtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pa-reg.on { display: block; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.pa-reg.on::before { border-color: rgba(184,137,63,.25); }
.pa-reg.on .hint { color: var(--mute) !important; }
.pa-reg-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.pa-st { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 3px; }
.pa-st.ok { background: #E3ECE8; color: var(--forest); }
.pa-st.wait { background: #FBE9E2; color: #A23F1F; }
.pa-reg-g { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; margin-top: 14px; position: relative; }
.pa-reg-g > div { background: var(--card); padding: 10px 12px; min-width: 0; }
.pa-reg-g span { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.pa-reg-g b { font-size: 13.5px; font-weight: 700; }
.pa-reg-g b small { font-size: 11px; color: var(--mute); font-family: var(--sans); }
.pa-reg-c { font-size: 11px; color: var(--mute); margin-top: 10px; position: relative; }
.pa-off { font-size: 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; position: relative; }

/* ── 모달 공통 ── */
.pa-modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(8,14,12,.62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; animation: paFd .2s ease-out; }
.pa-modal { width: min(720px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4), 0 0 0 1px rgba(217,181,114,.25); animation: paUp .3s cubic-bezier(.2,.8,.2,1); }
.pa-mh { flex: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--pa-ink); color: #fff; position: relative; }
.pa-mh::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--pa-gold), transparent); }
.pa-mh h3 { margin: 0; font-family: var(--pa-serif); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.pa-mh p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,.58); }
.pa-mh > div:nth-child(2) { flex: 1; min-width: 0; }
.pa-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.pa-x:hover { background: rgba(255,255,255,.08); }
.pa-mf { flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 22px; background: var(--card); border-top: 1px solid var(--line); }
.pa-mf-t { flex: 1; font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.pa-mf-t b { color: var(--ink); }
.pa-btn { height: 42px; padding: 0 18px; border-radius: 4px; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.pa-btn.ghost { border: 1px solid var(--line); background: var(--card); }
.pa-btn.gold { background: linear-gradient(180deg, #C89B4E, var(--pa-gold)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px rgba(184,137,63,.3); }
.pa-btn.gold:disabled { background: var(--line); color: var(--mute-2); box-shadow: none; cursor: not-allowed; }

/* ── ① 수수료 조건 ── */
.pa-fbody { overflow-y: auto; padding: 8px 26px 22px; }
.pa-row { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pa-row:last-of-type { border-bottom: 0; }
.pa-row .pa-err { grid-column: 2; margin-top: -8px; }
.pa-lab { font-family: var(--pa-serif); font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; padding-top: 6px; }
.pa-lab .no { display: block; font-family: var(--mono); font-size: 11px; color: var(--pa-gold); letter-spacing: .1em; margin-bottom: 4px; }
.pa-lab small { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--mute); margin-top: 5px; line-height: 1.5; }
.pa-err { font-size: 12px; color: var(--accent); font-weight: 600; }
.pa-row.has-err .pa-lab { color: var(--accent); }

.pa-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; white-space: nowrap; height: 36px; }
.pa-check .bx { width: 20px; height: 20px; border: 1.5px solid #BDB6A8; border-radius: 3px; background: #fff; display: grid; place-items: center; transition: all .12s; flex: none; }
.pa-check.on .bx { background: var(--pa-ink); border-color: var(--pa-ink); }
.pa-check:disabled { opacity: .5; }

.pa-paren { display: inline-flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.pa-paren > i { font-style: normal; font-family: var(--pa-serif); font-size: 22px; font-weight: 400; color: #9A927F; line-height: 1; }
.pa-paren input { height: 36px; border: 0; border-bottom: 1.5px solid #CFC7B6; background: transparent; padding: 0 6px; font-size: 15px; font-weight: 700; text-align: center; outline: none; min-width: 0; transition: border-color .15s, background .15s; }
.pa-paren input:focus { border-color: var(--pa-gold); background: rgba(184,137,63,.06); }
.pa-paren input::placeholder { color: #C3BCAD; font-weight: 500; font-size: 13px; }
.pa-paren em { font-style: normal; font-weight: 800; font-size: 14px; margin-left: 4px; }
.pa-paren.off { opacity: .4; }
.pa-paren.bad input { border-color: var(--accent); }

.pa-party { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa-pi { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.pa-pi.on { border-color: var(--pa-gold); box-shadow: 0 0 0 3px rgba(184,137,63,.12); }
.pa-pi .pa-check { width: 64px; }

.pa-fee-line { display: flex; align-items: center; gap: 10px; }
.pa-fee-line .pa-paren input { font-family: var(--mono); font-size: 22px; height: 46px; text-align: right; padding-right: 10px; }
.pa-fee-line .unit { font-size: 16px; font-weight: 800; }
.pa-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-left: auto; flex: none; }
.pa-seg button { height: 32px; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--mute); background: var(--card); }
.pa-seg button.on { background: var(--pa-ink); color: #fff; }
.pa-hangul { margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.pa-hangul b { font-family: var(--pa-serif); color: var(--ink); font-size: 14px; }
.pa-hangul .mono { margin-left: 6px; }

.pa-pay { display: grid; gap: 6px; }
.pa-pc { display: grid; grid-template-columns: 96px 110px 18px 96px 110px; align-items: center; gap: 6px; }
.pa-pc .pa-check { justify-content: flex-start; }
.pa-sl { color: #BDB6A8; font-size: 18px; text-align: center; }
.pa-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pa-meter .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); display: flex; overflow: hidden; }
.pa-meter .bar i { height: 100%; }
.pa-meter .bar i.s0 { background: var(--pa-ink); } .pa-meter .bar i.s1 { background: var(--pa-gold); } .pa-meter .bar i.s2 { background: #7FA595; }
.pa-meter span { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.pa-meter .ok { color: var(--ok); } .pa-meter .no { color: var(--accent); }
.pa-note-s { font-size: 11.5px; color: var(--mute); line-height: 1.55; }

.pa-preview { margin-top: 6px; border-radius: 6px; background: var(--pa-ink); color: #fff; padding: 16px 18px; }
.pa-preview > small { font-size: 11px; letter-spacing: .08em; color: var(--pa-gold-2); font-weight: 700; }
.pa-pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-top: 10px; }
.pa-pv-grid span { display: block; font-size: 11px; color: rgba(255,255,255,.5); }
.pa-pv-grid b { font-size: 13.5px; }

/* ── ② 서명 모달 ── */
.pa-push-bg { align-content: center; }
.pa-push { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); z-index: 80; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(250,248,242,.96); backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0,0,0,.35); cursor: pointer; animation: paPush .5s cubic-bezier(.2,1.2,.3,1); }
.pa-push .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--pa-ink); display: grid; place-items: center; flex: none; }
.pa-push .ic b { font-family: 'Playfair Display', serif; color: var(--pa-gold-2); font-size: 20px; }
.pa-push small { font-size: 11px; color: var(--mute); }
.pa-push b { display: block; font-size: 14px; font-weight: 800; margin: 1px 0 2px; }
.pa-push p { margin: 0; font-size: 12.5px; color: #444; line-height: 1.45; }
.pa-signm { width: min(1120px, 100%); height: calc(100vh - 48px); }
.pa-sbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; }
.pa-docwrap { overflow-y: auto; background: #E9E4D8; padding: 26px; }
.pa-docwrap.solo { flex: 1; min-height: 0; }
.pa-viewm { width: min(860px, 100%); height: calc(100vh - 48px); }
.pa-side { overflow-y: auto; background: var(--card); border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pa-readbar { position: relative; display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; padding-bottom: 8px; }
.pa-readbar i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--pa-gold); border-radius: 2px; transition: width .2s; }
.pa-readbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); z-index: -1; }
.pa-hint { font-size: 12px; color: #7A5A22; background: var(--brass-soft); padding: 10px 12px; border-radius: 4px; }
.pa-step { transition: opacity .2s; }
.pa-step.dim { opacity: .38; pointer-events: none; }
.pa-sh { display: flex; align-items: center; gap: 8px; font-family: var(--pa-serif); font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.pa-sh span { width: 20px; height: 20px; border-radius: 50%; background: var(--pa-ink); color: var(--pa-gold-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; }
.pa-ack { display: flex; gap: 10px; text-align: left; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pa-ack .bx { width: 18px; height: 18px; border: 1.5px solid #BDB6A8; border-radius: 3px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.pa-ack.on .bx { background: var(--pa-ink); border-color: var(--pa-ink); }
.pa-ack b { display: block; font-size: 13px; }
.pa-ack small { display: block; font-size: 11.5px; color: var(--mute); line-height: 1.5; margin-top: 2px; }
.pa-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pa-f2 label, .pa-f1 { display: block; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.pa-f2 input, .pa-otp input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; font-size: 13.5px; margin-top: 4px; background: #fff; }
.pa-otp { display: flex; gap: 6px; align-items: flex-end; }
.pa-otp button { height: 38px; padding: 0 12px; border-radius: 4px; background: var(--pa-ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex: none; }
.pa-otp button:disabled { background: var(--line); color: var(--mute-2); }
.pa-ok { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ok); margin-top: 8px; }
.pa-pad { position: relative; height: 130px; border: 1.5px dashed #CFC7B6; border-radius: 4px; background: #FDFCF8; }
.pa-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.pa-pad .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #BDB6A8; font-family: var(--pa-serif); font-size: 15px; pointer-events: none; }
.pa-pad button { position: absolute; right: 6px; top: 6px; font-size: 11px; font-weight: 700; color: var(--mute); padding: 4px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }

/* ── 약정서 문서 ── */
.pa-doc { max-width: 720px; margin: 0 auto; background: var(--pa-doc); padding: 54px 58px 40px; box-shadow: 0 2px 0 rgba(0,0,0,.03), 0 18px 40px rgba(60,48,20,.12); position: relative; font-family: var(--pa-serif); color: #1A1A16; }
.pa-doc::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(184,137,63,.45); outline: 3px double rgba(184,137,63,.25); outline-offset: 3px; pointer-events: none; }
.pa-dh { text-align: center; padding-bottom: 22px; border-bottom: 2px solid #1A1A16; margin-bottom: 22px; }
.pa-dmeta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: #8A8270; letter-spacing: .04em; margin-bottom: 18px; }
.pa-dh h1 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: .32em; text-indent: .32em; }
.pa-dsub { margin: 8px 0 0; font-size: 12.5px; color: #6E6756; letter-spacing: .12em; }
.pa-parties { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 18px; }
.pa-parties th { width: 92px; text-align: left; vertical-align: top; padding: 9px 10px; background: #F3EFE4; border: 1px solid #D9D1BF; font-size: 15px; font-weight: 900; }
.pa-parties th small { display: block; font-size: 10.5px; font-weight: 600; color: #8A8270; font-family: var(--sans); }
.pa-parties td { padding: 9px 12px; border: 1px solid #D9D1BF; }
.pa-parties td b { display: block; font-size: 14px; }
.pa-parties td span { font-size: 11.5px; color: #6E6756; font-family: var(--sans); }
.pa-terms { border: 1.5px solid #1A1A16; margin-bottom: 18px; }
.pa-tcap { background: #1A1A16; color: #F3EFE4; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-align: center; padding: 6px; }
.pa-terms dl { display: grid; grid-template-columns: 96px 1fr; margin: 0; }
.pa-terms dt { padding: 9px 12px; font-size: 12.5px; font-weight: 700; background: #F7F4EB; border-bottom: 1px solid #E4DDCB; }
.pa-terms dd { margin: 0; padding: 9px 12px; font-size: 13px; border-bottom: 1px solid #E4DDCB; border-left: 1px solid #E4DDCB; }
.pa-terms dt:nth-last-child(2), .pa-terms dd:last-child { border-bottom: 0; }
.pa-terms dd small { display: block; font-size: 11px; color: #8A8270; font-family: var(--sans); margin-top: 2px; }
.pa-terms .mono { font-size: 12px; }
.pa-sch { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-sch span { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; border: 1px solid #D9D1BF; border-radius: 2px; background: #fff; }
.pa-sch em { font-style: normal; font-size: 11.5px; color: #6E6756; } .pa-sch b { font-size: 13px; } .pa-sch i { font-style: normal; font-size: 10.5px; color: #8A8270; }
.pa-pre { font-size: 13.5px; line-height: 1.85; margin: 0 0 16px; text-indent: 1em; }
.pa-arts { list-style: none; margin: 0; padding: 0; }
.pa-arts > li { margin-bottom: 14px; break-inside: avoid; }
.pa-arts h4 { margin: 0 0 4px; font-size: 14px; font-weight: 900; }
.pa-arts h4 span { font-weight: 700; }
.pa-arts p { margin: 0; font-size: 13px; line-height: 1.85; text-align: justify; }
/* 약정서 전문 열람 권한이 없을 때 — 조항 본문 대신 표시 */
.pa-locked { padding: 18px 16px; border: 1px dashed #C9BFA8; background: #FAF7F0; border-radius: 6px; text-align: center; }
.pa-locked h4 { margin: 0 0 8px; font-size: 14px; font-weight: 900; }
.pa-locked p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.7; color: #6E6756; text-align: center; }
.pa-cl { list-style: none; margin: 0; padding: 0; }
.pa-cl li { position: relative; padding-left: 1.5em; font-size: 13px; line-height: 1.85; text-align: justify; }
.pa-cl li i { position: absolute; left: 0; font-style: normal; }
.pa-date { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .15em; margin: 28px 0 22px; }
.pa-sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pa-sig { border-top: 1.5px solid #1A1A16; padding-top: 8px; }
.pa-sig small { font-size: 10.5px; color: #8A8270; font-family: var(--sans); font-weight: 600; }
.pa-sig b { display: block; font-size: 14px; margin: 2px 0 8px; min-height: 20px; }
.pa-sigline { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #6E6756; font-family: var(--sans); min-height: 46px; }
.pa-sigline img { height: 44px; max-width: 110px; object-fit: contain; }
.pa-in { font-family: var(--pa-serif); font-size: 13px; color: #8A8270; }
.pa-stamp { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #B83A2A; color: #B83A2A; display: grid; place-items: center; font-family: var(--pa-serif); font-size: 10.5px; font-weight: 900; transform: rotate(-12deg); flex: none; text-align: center; line-height: 1.1; opacity: .85; }
.pa-stamp.soft { border-color: #4E7A68; color: #4E7A68; }
.pa-stamp.seal { border-radius: 4px; border-color: var(--pa-gold); color: var(--pa-gold); font-family: 'Playfair Display', serif; font-size: 12px; }
.pa-audit { margin-top: 26px; border: 1px dashed #C9C0AA; padding: 12px 14px; font-family: var(--sans); background: #FAF7EF; }
.pa-acap { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #8A8270; margin-bottom: 6px; }
.pa-audit dl { display: grid; grid-template-columns: 70px 1fr; gap: 3px 10px; margin: 0; font-size: 11.5px; }
.pa-audit dt { color: #8A8270; } .pa-audit dd { margin: 0; }
.pa-audit p { margin: 0; font-size: 11.5px; color: #6E6756; }
.pa-hash { word-break: break-all; font-size: 10.5px; }
.pa-audit .pa-afine { margin-top: 8px; font-size: 10.5px; color: #8A8270; line-height: 1.55; }

.pa-doc.compact { padding: 34px 22px 26px; box-shadow: none; }
.pa-doc.compact::before { inset: 8px; }
.pa-doc.compact .pa-dh h1 { font-size: 24px; letter-spacing: .2em; text-indent: .2em; }
.pa-doc.compact .pa-dmeta { flex-direction: column; gap: 2px; align-items: center; }
.pa-doc.compact .pa-parties th { width: 64px; font-size: 13.5px; }
.pa-doc.compact .pa-terms dl { grid-template-columns: 76px 1fr; }
.pa-doc.compact .pa-sigs { grid-template-columns: 1fr; }
.pa-doc.compact .pa-arts p, .pa-doc.compact .pa-cl li { font-size: 12.5px; line-height: 1.8; }

/* ── ③ 모바일 — MGM등록 시트 상단 배너 · 열람 화면 ── */
.pa-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin: 2px 0 14px; border-radius: 6px; background: var(--pa-ink); color: #fff; position: relative; overflow: hidden; }
.pa-banner::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(217,181,114,.3); border-radius: 4px; pointer-events: none; }
.pa-banner .seal { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pa-gold-2); display: grid; place-items: center; flex: none; background: radial-gradient(circle, rgba(217,181,114,.2), transparent 70%); color: var(--pa-gold-2); font-weight: 900; }
.pa-banner .seal b { font-family: 'Playfair Display', serif; font-size: 11px; color: var(--pa-gold-2); }
.pa-banner > div { flex: 1; min-width: 0; }
.pa-banner > div b { display: block; font-family: var(--pa-serif); font-size: 14px; font-weight: 700; }
.pa-banner > div small { display: block; font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 2px; }
.pa-banner > div b.pa-bn-big { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; }
.pa-doc.compact .pa-sigline { min-width: 0; }
.pa-doc.compact .pa-sig { min-width: 0; overflow: hidden; }
.pa-banner .go { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: var(--pa-gold-2); white-space: nowrap; }
.pa-banner.none { background: #FBE9E2; color: #A23F1F; }
.pa-banner.none::before { border-color: rgba(162,63,31,.2); }
.pa-banner.none .seal { border-color: #A23F1F; color: #A23F1F; background: none; }
.pa-banner.none > div small { color: #A23F1F; opacity: .8; }
.pa-accept { font-size: 11.5px; line-height: 1.6; color: var(--mute); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin: 4px 0 12px; }
.pa-accept button { font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

.pa-mview { position: absolute; inset: 0; z-index: 85; background: #E9E4D8; display: flex; flex-direction: column; animation: paSl .28s cubic-bezier(.2,.8,.2,1); }
.pa-mtop { flex: none; height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pa-mtop b { flex: 1; font-family: var(--pa-serif); font-size: 16px; }
.pa-mprint { font-size: 12px; font-weight: 800; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; margin-right: 6px; }
.pa-mscroll { flex: 1; overflow-y: auto; padding: 14px 12px 30px; }
.pa-guard { background: var(--pa-ink); color: #fff; border-radius: 8px; padding: 18px 16px 14px; margin-bottom: 14px; position: relative; }
.pa-guard::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(217,181,114,.28); border-radius: 5px; pointer-events: none; }
.pa-gh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pa-gh .seal { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--pa-gold-2); display: grid; place-items: center; flex: none; }
.pa-gh .seal b { font-family: 'Playfair Display', serif; font-size: 12px; color: var(--pa-gold-2); }
.pa-gh small { font-size: 11px; color: var(--pa-gold-2); letter-spacing: .08em; font-weight: 700; }
.pa-gh b { display: block; font-family: var(--pa-serif); font-size: 16.5px; }
.pa-guard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; position: relative; }
.pa-guard li { background: #18291F; padding: 10px 12px; }
.pa-guard li b { display: block; font-size: 13px; color: #fff; }
.pa-guard li span { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); line-height: 1.5; margin-top: 2px; }
.pa-gsign { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 10px; position: relative; }

@keyframes paFd { from { opacity: 0; } to { opacity: 1; } }
@keyframes paUp { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes paPush { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes paSl { from { transform: translateX(100%); } to { transform: none; } }

@media (max-width: 860px) {
  .pa-sbody { grid-template-columns: 1fr; overflow-y: auto; }
  .pa-docwrap { overflow: visible; }
  .pa-row { grid-template-columns: 1fr; gap: 10px; }
  .pa-row .pa-err { grid-column: 1; }
  .pa-pc { grid-template-columns: 88px 1fr 14px 88px 1fr; }
}

/* 인쇄 — 약정서만 출력 */
@media print {
  body * { visibility: hidden !important; }
  .pa-print, .pa-print * { visibility: visible !important; }
  .pa-print { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; }
  .pa-modal-bg, .pa-modal, .pa-docwrap, .pa-mview, .pa-mscroll { position: static !important; overflow: visible !important; height: auto !important; max-height: none !important; background: none !important; }
}
