.toast-region {
  position: fixed;
  bottom: var(--toast-bottom, 20px);
  left: 20px;
  z-index: 11000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

#page-loading {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12000;
  padding: 8px;
  text-align: center;
  background: #1976d2;
  color: white;
  font: 14px sans-serif;
}

.app-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 13px 12px;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: toast-enter 0.2s ease-out;
  pointer-events: auto;
}

.app-toast-success {
  background: #2e7d32;
}
.app-toast-error {
  background: #c62828;
}
.app-toast-info {
  background: #1565c0;
}

.app-toast-icon {
  font-size: 20px;
  line-height: 1.2;
}
.app-toast-message {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-toast-close {
  border: 0;
  padding: 0 2px;
  color: inherit;
  background: transparent;
  font-size: 24px;
  line-height: 18px;
  cursor: pointer;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .toast-region {
    bottom: var(--toast-bottom, 12px);
    left: 12px;
    width: calc(100vw - 24px);
  }
}
