.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;          /* ↑ 기존 999보다 확실히 높게 */
}
.modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(1px);
  z-index: 0;             /* 백드롭은 아래층 */
}
.modal-panel {
  position: relative;
  z-index: 1;             /* 패널은 백드롭 위층 */
  margin: 60px auto;
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  padding: 20px 18px;
  animation: modalIn .18s ease-out;
  font-family: "Nanum Myeongjo", serif;
}
@keyframes modalIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 닫기 버튼 */
.modal-close {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #f3f3f3; cursor: pointer; font-size: 22px; line-height: 1;
}
.modal-close:hover { background: #e9e9e9; }

/* 타이틀/콘텐츠 */
.modal-title { margin: 6px 6px 14px; font-size: 18px; color: #1f1f1f; }
.modal-content { padding: 6px 6px 4px; display: grid; gap: 10px; font-size: 14px; color: #333; }
.detail-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
.detail-row strong { color: #666; }

/* 바디 스크롤 잠금 */
.body-no-scroll { overflow: hidden; }