.app-toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 11000;
    display: flex;
    width: min(26rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
    transform: translateX(-50%);
}

.app-toast {
    display: grid;
    grid-template-columns: 1.55rem minmax(0, 1fr) 1.5rem;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 3.1rem;
    padding: .7rem .75rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    box-shadow: 0 .7rem 1.8rem rgba(15, 23, 42, .16);
    font-size: .82rem;
    line-height: 1.35;
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-.7rem) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.is-closing {
    opacity: 0;
    transform: translateY(-.45rem) scale(.98);
}

.app-toast-success {
    border-color: #b7e4ca;
    background: #f0fdf4;
    color: #166534;
}

.app-toast-error {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b42318;
}

.app-toast-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.app-toast-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.app-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: #fff;
    color: currentColor;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
}

.app-toast-success .app-toast-icon {
    color: #16a34a;
}

.app-toast-error .app-toast-icon {
    color: #dc2626;
}

.app-toast-info .app-toast-icon {
    color: #2563eb;
}

.app-toast-warning .app-toast-icon {
    color: #d97706;
}

.app-toast-message {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.app-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    opacity: .7;
}

.app-toast-close:hover,
.app-toast-close:focus-visible {
    background: rgba(15, 23, 42, .08);
    opacity: 1;
    outline: none;
}

@media (max-width: 480px) {
    .app-toast-container {
        top: .75rem;
        width: calc(100vw - 1.5rem);
    }
}
