/* ── Flash / Toast notifications ─────────────────────────────────── */
.flash {
  position: relative;
  max-width: 60rem;
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sf);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: flash-slide-in 0.35s ease-out;
  z-index: 90;
}

.flash-notice {
  background: var(--system-blue);
  color: var(--accent-on);
  border: none;
}

.flash-alert {
  background: var(--system-red);
  color: var(--accent-on);
  border: none;
}

.flash__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  padding: 0;
  margin: 0;
}

.flash__close:hover {
  opacity: 1;
}

.flash.fade-out {
  animation: flash-fade 0.4s ease forwards;
}

.flash + .flash {
  margin-top: 0.5rem;
}

@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash-fade {
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}
