.site-toast-stack {
    position: fixed;
    z-index: 10000;
    top: 18px;
    right: 18px;
    left: auto;
    width: min(420px, 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 var(--ho-line, #e4eaf1);
    border-left: 4px solid var(--toast-accent);
    border-radius: 14px;
    background: var(--ho-white, #fff);
    background: color-mix(in srgb, var(--ho-white, #fff) 98%, transparent);
    color: var(--ho-text, #142b4d);
    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: var(--ho-navy, #08254d);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.site-toast__content p,
.site-toast__content ul {
    margin: 0;
    color: var(--ho-muted, #526176);
    font-size: 13px;
    line-height: 1.5;
}

.site-toast__content ul {
    padding: 0;
    list-style: none;
}

.site-toast__content li {
    position: relative;
    padding-left: 13px;
}

.site-toast__content li::before {
    position: absolute;
    top: .69em;
    left: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--toast-accent);
    content: '';
    transform: translateY(-50%);
}

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

.site-toast__more {
    margin-top: 7px !important;
    font-weight: 600;
}

.site-toast__close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ho-muted, #526176);
    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: var(--ho-soft, #f8fafd);
    color: var(--ho-navy, #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__content strong { font-size: 13px; }
    .site-toast__content p,
    .site-toast__content ul { font-size: 12px; line-height: 1.45; }

    .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;
    }
}
