/* Notifications (react-hot-toast) drawn with the popover tokens, so they
   follow the theme; the icon colour names the kind. The rules travel with
   toast.tsx into the public bundle, whose stylesheet has no spacing tokens:
   4px and 8px are the protected --space-1 and --space-2. */
.cn-toaster {
  font-size: 13px;
}
.cn-toast {
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 4px 12px #00000014;
}
.cn-toast > [role="status"] {
  margin: 0 4px;
  flex: 1;
  min-width: 0;
}
.cn-toast > svg {
  flex-shrink: 0;
}
.cn-toast--success > svg {
  color: var(--success-text);
}
.cn-toast--error > svg {
  color: var(--destructive-text);
}
.cn-toast--warning > svg {
  color: var(--attention-text);
}
.cn-toast--info > svg,
.cn-toast--loading > svg {
  color: var(--muted-foreground);
}
.cn-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 4px;
  color: var(--muted-foreground);
}
.cn-toast-close:hover,
.cn-toast-close:focus-visible {
  background: var(--muted);
  color: var(--foreground);
}
