/******************************************************************************/
/* Modal dialogs (publish / upload / save / move / delete confirm)           */
/******************************************************************************/

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 1000;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 14.5px; }

.modal-close {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
}
.modal-close:hover { background: #f3f4f6; color: var(--ink); }

.modal-form { display: flex; flex-direction: column; overflow: hidden; }
.modal-body { padding: 14px 16px; overflow-y: auto; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 16px;
}
