.rt-toast-root {
    position: fixed;
    inset: auto 1rem 1rem auto;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(26rem, calc(100vw - 2rem));
    pointer-events: none;
}

.rt-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    transform-origin: bottom right;
}

.rt-toast__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rt-toast__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.rt-toast__body {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #475569;
}

.rt-toast__body ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.rt-toast__close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 0.4rem;
    line-height: 0;
}

.rt-toast__close:hover {
    color: #334155;
    background: #f1f5f9;
}

.rt-toast--success {
    border-color: #bbf7d0;
}

.rt-toast--success .rt-toast__icon {
    background: #ecfdf5;
    color: #059669;
}

.rt-toast--error {
    border-color: #fecaca;
}

.rt-toast--error .rt-toast__icon {
    background: #fef2f2;
    color: #dc2626;
}

.rt-toast--warning {
    border-color: #fde68a;
}

.rt-toast--warning .rt-toast__icon {
    background: #fffbeb;
    color: #d97706;
}

.rt-toast--info {
    border-color: #bfdbfe;
}

.rt-toast--info .rt-toast__icon {
    background: #eff6ff;
    color: #2563eb;
}

.rt-toast-enter {
    animation: rt-toast-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rt-toast-leave {
    animation: rt-toast-out 0.28s ease-in both;
}

@keyframes rt-toast-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rt-toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(0.6rem) scale(0.96);
    }
}

@media (max-width: 640px) {
    .rt-toast-root {
        inset: auto 0.75rem 0.75rem 0.75rem;
        width: auto;
    }
}
