/* The Save / load box and the small message at the bottom. */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 28, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal .box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  width: min(560px, 100%);
  display: grid;
  gap: 10px;
}

.modal h2 {
  margin: 0;
  font: 700 14px var(--font);
  color: var(--accent);
}

.modal textarea {
  width: 100%;
  height: 240px;
  font-size: 12px;
  resize: vertical;
}

.modal .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--panel);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12.5px;
  z-index: 30;
  max-width: calc(100% - 32px);
}

.toast[hidden] {
  display: none;
}
