/* ═══════════════════════════════════════════════════════════════════════════
   M.H.I. shared modal styles — for mhi-modal.js (mhiConfirm + mhiPrompt).
   Loaded on every page that uses the helpers (base.html + vtt.html).
   Kept independent from the wiki/VTT design systems so it never breaks
   when either of those gets restyled.
   ═══════════════════════════════════════════════════════════════════════════ */

.mhi-modal-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  animation: mhi-modal-fade .15s ease;
}
@keyframes mhi-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.mhi-modal {
  min-width: 320px; max-width: 92vw;
  background: linear-gradient(180deg, rgba(15,15,28,.98), rgba(7,7,14,.98));
  border: 1px solid rgba(225,29,72,.4);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 22px rgba(225,29,72,.15);
  padding: 16px 18px 14px;
  animation: mhi-modal-pop .18s cubic-bezier(.4,0,.2,1);
}
@keyframes mhi-modal-pop {
  from { transform: translateY(8px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.mhi-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mhi-modal-title {
  font-family: var(--font-head, 'IBM Plex Sans', sans-serif);
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  color: #fb7185; text-transform: uppercase;
}
.mhi-modal-x {
  background: transparent; border: none; color: #6f738f;
  font-size: 14px; cursor: pointer; padding: 0 6px; line-height: 1;
}
.mhi-modal-x:hover { color: #e11d48; }
.mhi-modal-label {
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: 12.5px; color: #c8cde6; line-height: 1.5;
  margin-bottom: 9px; white-space: pre-wrap;
}
.mhi-modal-message {
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: 13px; color: #dde1f0; line-height: 1.5;
  margin: 4px 0 6px; white-space: pre-wrap;
}
.mhi-modal--confirm { min-width: 360px; max-width: 440px; }
.mhi-modal-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px; padding: 8px 10px;
  color: #dde1f0; font-family: var(--font-body, sans-serif); font-size: 13px;
  outline: none; transition: border-color .15s;
}
.mhi-modal-input:focus { border-color: rgba(225,29,72,.55); background: rgba(225,29,72,.06); }
.mhi-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 14px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mhi-modal-cancel,
.mhi-modal-confirm {
  height: 32px; padding: 0 16px; border-radius: 5px; cursor: pointer;
  font-family: var(--font-head, 'IBM Plex Sans', sans-serif);
  font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all .15s;
}
.mhi-modal-cancel {
  background: transparent; border: 1px solid rgba(255,255,255,.16);
  color: #9499bb;
}
.mhi-modal-cancel:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.mhi-modal-confirm {
  background: #e11d48; border: 1px solid #e11d48; color: #fff;
}
.mhi-modal-confirm:hover { background: #f43f5e; }
.mhi-modal-confirm--danger {
  background: rgba(225,29,72,.12);
  border-color: rgba(225,29,72,.55);
  color: #f43f5e;
}
.mhi-modal-confirm--danger:hover {
  background: rgba(225,29,72,.28); color: #fff;
}
