/* Shared modal chrome - load before modal.css (modal layers extend these rules) */

.modal-content > .modal-header {
  position: relative;
  display: block;
  text-align: center;
  padding: 14px 44px 12px;
  margin-bottom: 0;
  border-bottom: none;
}

.modal-content > .modal-header .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-content > .modal-header .modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .modal-content > .modal-header .modal-close:hover {
  background: var(--border-light);
}

.modal-content > .modal-header h2,
.modal-content > .modal-header .modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
