  .toast-stack {
    position: fixed;
    right: 16px;
    top: 16px;
    width: min(520px, calc(100% - 32px));
    display: grid;
    gap: 10px;
    z-index: 2200;
  }

  .toast {
    border: 1px solid;
    border-radius: 12px;
    background: rgba(7, 19, 35, 0.92);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    backdrop-filter: blur(12px) saturate(130%);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    animation: toast-in 160ms ease-out;
  }

  .toast--ok {
    border-color: rgba(74, 222, 128, 0.25);
    background:
      linear-gradient(0deg, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0.16)),
      rgba(7, 19, 35, 0.92);
    color: #4ade80;
  }

  .toast--error {
    border-color: rgba(251, 113, 133, 0.25);
    background:
      linear-gradient(0deg, rgba(251, 113, 133, 0.16), rgba(251, 113, 133, 0.16)),
      rgba(7, 19, 35, 0.92);
    color: #fb7185;
  }

  .toast-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 14px 10px;
  }

  .toast-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
  }

  .toast-close {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #1e293b;
    background: rgba(15, 30, 50, 0.72);
    color: #94a3b8;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 20px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
  }

  .toast-close:hover {
    background: rgba(20, 39, 63, 0.92);
    border-color: #334155;
    color: #f1f5f9;
  }

  .toast-close:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
  }

  .toast-timer {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
  }

  .toast-timer-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
  }

  .toast--ok .toast-timer-bar {
    background: #4ade80;
  }

  .toast--error .toast-timer-bar {
    background: #fb7185;
  }

  .toast.is-expiring .toast-timer-bar {
    transition: transform linear;
    transform: scaleX(0);
  }

  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .toast {
      background: #0b1628;
    }

    .toast--ok {
      background:
        linear-gradient(0deg, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0.16)),
        #0b1628;
    }

    .toast--error {
      background:
        linear-gradient(0deg, rgba(251, 113, 133, 0.16), rgba(251, 113, 133, 0.16)),
        #0b1628;
    }
  }

  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
