#ink-toast-stack {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: var(--ink-z-popover-max, 1200);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

.ink-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(138, 92, 255, 0.35);
  background: linear-gradient(140deg, rgba(9, 14, 26, 0.96), rgba(18, 26, 44, 0.92));
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  color: #eef2ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(138, 92, 255, 0.22);
  padding: 12px 14px 10px 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.28s ease;
}

.ink-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(138, 92, 255, 0.95), rgba(29, 209, 161, 0.95));
  box-shadow: 0 0 12px rgba(138, 92, 255, 0.65);
}

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

.ink-toast.hide {
  transform: translateX(110%);
  opacity: 0;
}

.ink-toast.success {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(52, 211, 153, 0.25);
}

.ink-toast.warning {
  border-color: rgba(255, 184, 77, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 184, 77, 0.28);
}

.ink-toast.danger {
  border-color: rgba(255, 92, 124, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 92, 124, 0.28);
}

.ink-toast.info {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(96, 165, 250, 0.24);
}

.ink-toast__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 4px;
}

.ink-toast__icon {
  width: 20px;
  text-align: center;
  margin-top: 1px;
  opacity: 0.95;
  flex: 0 0 20px;
}

.ink-toast__content {
  font-size: 0.96rem;
  line-height: 1.4;
  padding-right: 26px;
  letter-spacing: 0.1px;
}

.ink-toast__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: rgba(238, 242, 255, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.ink-toast__close:hover {
  color: #ffffff;
}

.ink-toast__bar {
  margin-top: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(138, 92, 255, 0.95), rgba(29, 209, 161, 0.95));
  transform-origin: left center;
  animation-name: inkToastCountdown;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.ink-toast.is-paused .ink-toast__bar {
  animation-play-state: paused;
}

@keyframes inkToastCountdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
  #ink-toast-stack {
    left: 10px;
    right: 10px;
    top: 68px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink-toast {
    transition: none;
  }

  .ink-toast__bar {
    animation: none;
  }
}
