.backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg-heavy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.card {
  background: var(--app-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-xl);
  width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.header {
  padding: var(--space-4) var(--space-5) 0;
}

.title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0;
}

.body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

/* ── Modifiers (opt-in via Modal props) ── */

/* Wider card for list-style modals (e.g. KeyboardShortcutsModal). The
 * `92vw` cap keeps the modal usable on narrow windows. Defined after
 * `.card` so the wider width wins when both classes are applied. */
.cardWide {
  width: 640px;
  max-width: 92vw;
}

/* Move overflow from the card to the body so the title stays sticky
 * when the body content scrolls. The card becomes a flex column so the
 * body fills remaining height; the body itself scrolls (see
 * `.bodyScrollable`). */
.cardScrollable {
  display: flex;
  flex-direction: column;
  overflow-y: visible;
}

.bodyScrollable {
  overflow-y: auto;
  flex: 1 1 auto;
}
