/* Toast (design system: feedback/Toast). Built by toast_controller.js. */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out);
}

.toast.show {
  transform: none;
  opacity: 1;
}

.toast-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--info);
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

.toast-notice .toast-icon,
.toast-success .toast-icon {
  color: var(--success);
}

.toast-alert .toast-icon,
.toast-error .toast-icon {
  color: var(--danger);
}

.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-message {
  flex: 1;
  font: 500 14px/1.4 var(--font-body);
  color: #fff;
}

.toast-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
    width: auto;
  }
}
