/* 기준 페이지 본문에는 영향을 주지 않는 공통 모달입니다. */
body.modal-open { overflow:hidden; }
.modal-backdrop [hidden] { display:none !important; }
.modal-backdrop { z-index:1000; padding:24px; background:rgba(26,28,46,.48); overflow-y:auto; overscroll-behavior:contain; }
.modal-backdrop .modal { width:440px; max-width:100%; max-height:calc(100dvh - 48px); overflow-y:auto; overscroll-behavior:contain; border:1px solid #e3e9f1; border-radius:8px; padding:36px 28px 28px; background:#fff; color:#292929; font-family:inherit; letter-spacing:0; box-shadow:0 16px 48px #191d3826; }
.modal-backdrop .modal.wide { width:600px; }
.modal-backdrop .modal h3 { font-size:20px; line-height:1.5; margin:0 0 24px; padding:0 16px; color:#292929; overflow-wrap:anywhere; }
.modal-backdrop .modal .btn { min-height:46px; height:auto; padding:10px 16px; border-radius:3px; font-size:15px; line-height:24px; white-space:normal; text-align:center; }
.modal-backdrop .modal .btn-primary { background:#2e3191; color:#fff; }
.modal-backdrop .modal .btn-outline { border-color:#8c8bc5; background:#fff; color:#2e3191; }
.modal-backdrop .modal .btn:disabled { opacity:.55; cursor:not-allowed; }
.modal-backdrop .modal-close { min-width:32px; min-height:32px; top:10px; right:10px; }
.modal-backdrop .modal-actions { display:flex; gap:12px; margin-top:24px; }
.modal-backdrop .modal-actions>.btn { flex:1; min-width:0; }
.modal-backdrop .input,.modal-backdrop .textarea,.modal-backdrop .select { min-width:0; max-width:100%; border-radius:4px; font-size:16px; }
.modal-backdrop .field-row .input { width:0; min-width:0; }
.modal-backdrop .field-row .btn { flex-shrink:0; }
.modal-backdrop .modal-message { color:#626879; line-height:1.8; font-size:16px; white-space:pre-wrap; overflow-wrap:anywhere; }
#global-dialog { z-index:2000; }
/* COM-08 가입/로그인 결과 모달에만 참조 규격을 적용합니다. */
.modal-backdrop.auth-result-modal { background:rgba(0,0,0,.5); padding:20px; }
body .modal-backdrop.auth-result-modal[data-auth-state] .modal { width:480px; padding:44px 36px 32px; border-radius:12px; text-align:center; }
body .modal-backdrop.auth-result-modal[data-auth-state] .modal h3 { margin:0; padding:0; font-size:22px; line-height:1.5; font-weight:700; }
.auth-result-modal .auth-result-icon { display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin:0 auto 18px; border-radius:50%; background:#eef2ff; }
.auth-result-modal .auth-result-icon span { display:block; font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif; font-size:24px; font-weight:400; line-height:1; }
.auth-result-modal .auth-result-icon span::before { content:var(--auth-result-symbol); }
.auth-result-modal[data-auth-state="signup"] { --auth-result-symbol:'\1F389'; }
.auth-result-modal[data-auth-state="password"] { --auth-result-symbol:'\1F510'; }
.auth-result-modal[data-auth-state="pending"] { --auth-result-symbol:'\23F3'; }
.auth-result-modal[data-auth-state="rejected"] { --auth-result-symbol:'\1F4CB'; }
.auth-result-modal :is(.auth-result-description,.modal-message) { margin:12px 0 0; color:#555; font-size:16px; line-height:1.6; text-align:center; word-break:keep-all; white-space:pre-wrap; }
body .modal-backdrop.auth-result-modal .modal-actions { margin-top:32px; gap:10px; }
body .modal-backdrop.auth-result-modal .modal-actions>.btn { min-height:56px; padding:15px 28px; font-size:18px; line-height:24px; border-radius:4px; }
.auth-terms-modal .auth-terms-close { position:absolute; right:18px; top:18px; display:flex; align-items:center; justify-content:center; width:32px; height:32px; padding:6px; border:0; background:none; cursor:pointer; border-radius:4px; }
.auth-terms-modal .auth-terms-close img { width:20px; height:20px; }
.auth-terms-modal .auth-terms-close:hover { background:#e5e7f5; }
.auth-terms-modal .auth-terms-close:focus-visible { outline:2px solid #2e3191; outline-offset:2px; }
@media(max-width:600px) {
  body .modal-backdrop.auth-result-modal[data-auth-state] .modal { padding:32px 22px 28px; }
  body .modal-backdrop.auth-result-modal[data-auth-state] .modal h3 { font-size:22px; }
  .auth-result-modal :is(.auth-result-description,.modal-message) { font-size:16px; }
  body .modal-backdrop.auth-result-modal .modal-actions>.btn { font-size:18px; }
}
@media(max-width:600px) {
  .modal-backdrop { padding:16px; }
  .modal-backdrop .modal { max-height:calc(100dvh - 32px); padding:32px 20px 24px; }
  .modal-backdrop .modal h3 { font-size:18px; }
  .modal-backdrop .modal .btn { padding:10px; font-size:14px; }
  .modal-backdrop .modal-message { font-size:15px; }
}
