/* Generic action dialog overlay */
.action-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 7000;
}
.action-dialog-overlay[aria-hidden="false"] { display: flex; }

/* Transparent backdrop variant (no dimming) */
.action-dialog-overlay.transparent { background: transparent; }

/* Bottom-docked variant */
.action-dialog-overlay.dock-bottom {
  align-items: flex-end;
  justify-content: center;
  padding: 10px 14px;
}
.action-dialog-overlay.dock-bottom .action-dialog {
  width: min(1000px, 94vw);
  max-height: 42vh;
  font-size: 125%;
}
.action-dialog-overlay.dock-bottom .action-dialog .action-text {
  max-height: 24vh;
  overflow-y: auto;
}

.action-dialog {
  background: rgba(20,20,20,0.9);
  color: #fff;
  border: 3px solid rgba(255,255,255,0.96);
  border-radius: 16px;
  min-width: min(520px, 92vw);
  max-width: min(720px, 92vw);
  padding: clamp(12px, 2vh, 20px) clamp(16px, 2vw, 24px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  text-align: center;
  /* Increase base font size (x1.5) for all text inside the dialog */
  font-size: 150%;
}
.action-dialog h3 {
  margin: 0 0 8px 0;
  text-align: center;
}
.action-dialog p { margin: 8px 0 16px 0; line-height: 1.5; text-align: center; }
.action-dialog .action-text { overflow-y: auto; max-height: 40vh; }
.action-dialog .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.action-dialog button {
  appearance: none; border: 2px solid rgba(255,255,255,0.95); border-radius: 14px;
  background: transparent; color: #fff; cursor: pointer;
  padding: 10px 16px; font-size: calc(clamp(14px, 1.1vw, 16px) * 1.5);
}
.action-dialog button:active { transform: translateY(1px) scale(0.99); }

/* Layout variant: actions at the top */
.action-dialog.actions-top .actions { order: 1; margin-bottom: 10px; }
.action-dialog.actions-top .action-text { order: 2; }
