.application-toast {
    position: fixed;
    z-index: 1000001;
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    width: min(430px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    align-items: start;
    gap: 14px;
    padding: 18px 16px 20px 18px;
    overflow: hidden;
    border: 1px solid #dce8df;
    border-radius: 20px;
    background: #fff;
    color: #16243a;
    box-shadow: 0 22px 60px rgba(14, 31, 43, .18), 0 4px 14px rgba(14, 31, 43, .06);
    opacity: 0;
    transform: translateY(-12px) scale(.985);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.application-toast[hidden] { display: none !important; }
.application-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.application-toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #bd9c5a, #12865a);
}
.application-toast__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #117a50;
    background: #e8f7ef;
    box-shadow: inset 0 0 0 1px #d2ebdb;
}
.application-toast__mark svg { width: 23px; height: 23px; stroke-width: 2.5; }
.application-toast__copy { min-width: 0; }
.application-toast__eyebrow {
    display: block;
    margin: 1px 0 4px;
    color: #876b39;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.3;
}
.application-toast__title {
    display: block;
    margin: 0;
    color: #16243a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}
.application-toast__message {
    margin: 5px 0 0;
    color: #526174;
    font-size: 13px;
    line-height: 1.45;
}
.application-toast__close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}
.application-toast__close:hover { background: #f1f5f3; color: #16243a; }
.application-toast__close:focus-visible { outline: 3px solid #b49455; outline-offset: 2px; }
.application-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #b49455, #13895d);
    transform-origin: left;
}
.application-toast.is-visible .application-toast__progress {
    animation: application-toast-progress 3s linear forwards;
}
@keyframes application-toast-progress { to { transform: scaleX(0); } }

@media (max-width: 600px) {
    .application-toast {
        top: auto;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 16px;
        width: auto;
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        gap: 11px;
        padding: 15px 12px 18px 15px;
        border-radius: 18px;
        transform: translateY(12px) scale(.985);
    }
    .application-toast__mark { width: 42px; height: 42px; border-radius: 13px; }
    .application-toast__title { font-size: 15px; }
    .application-toast__message { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .application-toast { transition: none; }
    .application-toast.is-visible .application-toast__progress { animation: none; }
}
