.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.toast--success .toast-icon {
  background: #ECFDF5;
  color: #059669;
}

.toast--error .toast-icon {
  background: #FEF2F2;
  color: #DC2626;
}

.toast-message {
  flex: 1;
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 0 2px 4px;
}

.toast-close:hover {
  color: var(--text-secondary);
}
