.flash-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Card */
.flash {
  position: relative;
  pointer-events: auto;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  background: #fff;
  color: #333;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 40px 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  animation: flash-in 0.25s ease-out forwards;
}

.flash__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Accents */
.flash--success {
  border-left: 4px solid #22c55e;
}
.flash--error {
  border-left: 4px solid #ef4444;
}
.flash--warning {
  border-left: 4px solid #f59e0b;
}
.flash--info {
  border-left: 4px solid #3b82f6;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.flash.is-hiding {
  animation: flash-out 0.2s ease-in forwards;
}
@keyframes flash-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
