.site-toast-stack {
    position: fixed;
    z-index: 10000;
    top: 18px;
    right: 18px;
    left: auto;
    width: min(390px, calc(100vw - 36px));
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.site-toast {
    --toast-accent: #0a8f68;
    --toast-soft: #eaf9f3;
    --toast-duration: 5000ms;
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: start;
    overflow: hidden;
    padding: 14px 12px 14px 14px;
    border: 1px solid rgba(11, 39, 75, .12);
    border-left: 4px solid var(--toast-accent);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    color: #0a2b52;
    box-shadow: 0 18px 46px rgba(12, 38, 72, .18);
    opacity: 0;
    transform: translateX(28px);
    pointer-events: auto;
    animation: site-toast-enter .34s cubic-bezier(.2, .8, .2, 1) forwards;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-toast--success { --toast-accent: #079669; --toast-soft: #e8f8f2; }
.site-toast--warning { --toast-accent: #d78a09; --toast-soft: #fff5df; }
.site-toast--danger  { --toast-accent: #d13a4f; --toast-soft: #fff0f2; }
.site-toast--info    { --toast-accent: #078da3; --toast-soft: #e8f7fa; }

.site-toast__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--toast-soft);
    color: var(--toast-accent);
}

.site-toast__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-toast__content {
    min-width: 0;
    padding-top: 1px;
}

.site-toast__content strong {
    display: block;
    margin: 0 0 3px;
    color: #08254d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.site-toast__content p,
.site-toast__content ul {
    margin: 0;
    color: #4e637e;
    font-size: 13px;
    line-height: 1.5;
}

.site-toast__content ul {
    max-height: 118px;
    overflow: auto;
    padding-left: 17px;
}

.site-toast__content li + li {
    margin-top: 3px;
}

.site-toast__close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7890a9;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.site-toast__close:hover,
.site-toast__close:focus-visible {
    background: #f1f5f9;
    color: #08254d;
    outline: none;
}

.site-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(8, 37, 77, .07);
}

.site-toast__progress::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--toast-accent);
    transform-origin: left;
    animation: site-toast-progress var(--toast-duration) linear forwards;
}

.site-toast.is-paused .site-toast__progress::after {
    animation-play-state: paused;
}

.site-toast.is-hiding {
    animation: site-toast-exit .28s ease forwards;
}

@keyframes site-toast-enter {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes site-toast-exit {
    to { opacity: 0; transform: translateX(32px); }
}

@keyframes site-toast-progress {
    to { transform: scaleX(0); }
}

@media (max-width: 640px) {
    .site-toast-stack {
        top: 12px;
        right: 12px;
        left: auto;
        width: calc(100vw - 24px);
        gap: 9px;
    }

    .site-toast {
        grid-template-columns: 38px minmax(0, 1fr) 28px;
        gap: 10px;
        padding: 12px 10px 12px 12px;
        border-radius: 12px;
    }

    .site-toast__icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-toast,
    .site-toast.is-hiding,
    .site-toast__progress::after {
        animation-duration: .01ms !important;
    }
}
