/* Bottom sheets (settings, tutorial, confirm): the only floating surfaces besides toasts. */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: var(--space-3);
  display: grid;
  place-items: end center;
  background: var(--scrim);
}

.modal {
  width: min(100%, 460px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.modal h2 {
  margin: 0;
  font-size: var(--text-h2);
  line-height: 1.25;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head .icon-btn {
  margin: 0 -10px 0 0;
}

.confirm-modal p {
  margin: 0 0 var(--space-5);
  font-size: var(--text-title);
  font-weight: 500;
  line-height: 1.4;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.confirm-actions button {
  width: 100%;
}
