.app-toast-root {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92vw, 380px);
    pointer-events: none;
}

.app-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 12px 28px rgba(11, 22, 14, 0.15);
    animation: appToastIn 0.22s ease both;
}

.app-toast--success {
    background: #eafaf1;
    border-color: #b7e4c7;
    color: #155f38;
}

.app-toast--error {
    background: #fff1f1;
    border-color: #f3c9c9;
    color: #8f1f1f;
}

.app-toast--warning {
    background: #fff7e8;
    border-color: #f2dfba;
    color: #8a520f;
}

.app-toast--info {
    background: #eef6ff;
    border-color: #cfe0f7;
    color: #1f4d86;
}

.app-toast__icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.app-toast--success .app-toast__icon {
    background: rgba(22, 163, 74, 0.12);
}

.app-toast--error .app-toast__icon {
    background: rgba(220, 38, 38, 0.12);
}

.app-toast--warning .app-toast__icon {
    background: rgba(217, 119, 6, 0.14);
}

.app-toast--info .app-toast__icon {
    background: rgba(37, 99, 235, 0.12);
}

.app-toast__message {
    margin: 1px 0 0;
}

.app-toast__body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.app-toast__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-toast__action,
.app-toast__dismiss {
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
    text-decoration: none;
    cursor: pointer;
}

.app-toast__action {
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: inherit;
    background: rgba(255, 255, 255, 0.72);
}

.app-toast__dismiss {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: inherit;
    background: transparent;
}

.app-toast__action:hover,
.app-toast__dismiss:hover {
    background: rgba(255, 255, 255, 0.9);
}

.app-toast__close {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.app-toast__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.app-toast--out {
    animation: appToastOut 0.2s ease forwards;
}

@keyframes appToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes appToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 640px) {
    .app-toast-root {
        top: 12px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
