.focus-toast-viewport {
  position: fixed;
  z-index: 60;
  top: 84px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
  transform: translateX(-50%);
  pointer-events: none;
}

.focus-toast {
  --focus-toast-accent: var(--focus-blue);
  --focus-toast-exit-x: 22px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--focus-line) 88%, transparent);
  border-radius: calc(var(--focus-radius) + 2px);
  color: var(--focus-text);
  background: color-mix(in srgb, var(--focus-surface) 97%, transparent);
  box-shadow: var(--focus-shadow);
  opacity: 0;
  transform: translateX(18px) translateY(-4px) scale(0.98);
  pointer-events: auto;
  touch-action: pan-y;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

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

.focus-toast.is-interactive {
  cursor: pointer;
}

.focus-toast.is-leaving {
  opacity: 0;
  transform: translateX(var(--focus-toast-exit-x)) translateY(-4px) scale(0.98);
}

.focus-toast.is-dragging {
  transition: none;
  cursor: grabbing;
}

.focus-toast.success {
  --focus-toast-accent: var(--focus-green);
}

.focus-toast.warning {
  --focus-toast-accent: var(--focus-amber);
}

.focus-toast.error {
  --focus-toast-accent: var(--focus-red);
}

.focus-toast.info {
  --focus-toast-accent: var(--focus-blue);
}

.focus-toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--focus-toast-accent);
  background: color-mix(in srgb, var(--focus-toast-accent) 13%, transparent);
}

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

.focus-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.focus-toast-copy strong {
  overflow: hidden;
  color: var(--focus-text);
  font-size: 0.88rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-toast-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--focus-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.focus-toast-action,
.focus-toast-close {
  border: 0;
  border-radius: 999px;
  color: var(--focus-text);
  background: transparent;
}

.focus-toast-action {
  padding: 7px 9px;
  color: var(--focus-toast-accent);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.focus-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--focus-muted);
  cursor: pointer;
  transform: translateX(12px);
}

.focus-toast-action:hover,
.focus-toast-close:hover {
  background: var(--focus-soft);
}

.focus-toast-close .focus-icon {
  width: 16px;
  height: 16px;
}
