/* 画面ロック */
html.rdnm-lock, body.rdnm-lock {
  overflow: hidden !important;
}

/* オーバーレイ */
#rdnm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;           /* 初期は透明 */
  animation: rdnm-fade-in 200ms ease-out forwards;
}

@keyframes rdnm-fade-in {
  to { opacity: 1; }
}

/* ダイアログ */
#rdnm-dialog {
  background: #fff;
  width: min(680px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding: 22px 22px 18px;
  transform: scale(0.98);
  animation: rdnm-pop-in 200ms ease-out forwards;
}

@keyframes rdnm-pop-in {
  to { transform: scale(1); }
}

/* フェードアウト時 */
#rdnm-overlay.rdnm-hide {
  animation: rdnm-fade-out 220ms ease-in forwards;
}
#rdnm-dialog.rdnm-hide {
  animation: rdnm-pop-out 220ms ease-in forwards;
}
@keyframes rdnm-fade-out {
  to { opacity: 0; }
}
@keyframes rdnm-pop-out {
  to { transform: scale(0.98); opacity: 0; }
}

#rdnm-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

#rdnm-list {
  margin: 0 0 16px 1.2em;
  padding: 0;
  max-height: 52vh;
  overflow: auto;
}
#rdnm-list li {
  margin: 0 0 8px;
  line-height: 1.6;
}

#rdnm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rdnm-btn {
  appearance: none;
  border: none;
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 0.94rem;
  cursor: pointer;
  transition: filter .15s ease;
}
.rdnm-btn:focus { outline: 2px solid #1e90ff33; outline-offset: 2px; }
.rdnm-btn:hover { filter: brightness(0.96); }

.rdnm-btn-primary {
  background: #1e90ff;
  color: #fff;
}
.rdnm-btn-ghost {
  background: #f1f5f9;
  color: #111827;
}