/* ─────────────────────────────────────────────────────────────────
   Toast notifications — append into ui.css
   ─────────────────────────────────────────────────────────────── */

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 400px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 6px 24px rgba(10, 23, 131, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 250ms ease-out, opacity 250ms ease-out;
  border-left: 4px solid #94a3b8;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--leaving {
  transform: translateX(120%);
  opacity: 0;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast__icon svg {
  width: 100%;
  height: 100%;
}

.toast__msg {
  flex: 1;
  word-wrap: break-word;
}

.toast--success { border-left-color: #16a34a; }
.toast--success .toast__icon { color: #16a34a; }

.toast--error   { border-left-color: #dc2626; }
.toast--error   .toast__icon { color: #dc2626; }

.toast--info    { border-left-color: #0a1783; }
.toast--info    .toast__icon { color: #0a1783; }

@media (max-width: 768px) {
  .toast-stack {
    bottom: 80px; /* выше mobile-nav */
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
}