.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 94, 84, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
}

body[data-theme="dark"] .modal-backdrop {
  background: rgba(3, 15, 13, 0.6);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(26rem, 100%);
  background: var(--panel-strong);
  border: 0.0625rem solid var(--stroke);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.modal-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-input[hidden] {
  display: none;
}

.modal-input input {
  border: 0.0625rem solid var(--stroke);
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  background: #f7f8f8;
  color: var(--ink);
}

body[data-theme="dark"] .modal-input input {
  background: #0b1916;
  color: #e8f5ef;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
