.pwa-dialog-layer[hidden] {
    display: none;
}

.pwa-dialog-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.pwa-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 25, .7);
    backdrop-filter: blur(3px);
}

.pwa-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 350px);
    padding: 24px 20px 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    color: #f8faff;
    background: linear-gradient(180deg, #2b3141 0%, #202532 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    text-align: center;
}

.pwa-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    color: #9ea6b7;
    font-size: 25px;
    cursor: pointer;
}

.pwa-dialog-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .35);
}

.pwa-dialog h2 {
    font-size: 20px;
    line-height: 1.25;
}

.pwa-dialog p {
    margin-top: 9px;
    color: #aeb6c7;
    font-size: 14px;
    line-height: 1.5;
}

.pwa-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.pwa-dialog-actions button {
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pwa-dialog-cancel {
    color: #c4cad6;
    background: #343a4b;
}

.pwa-dialog-install {
    color: #fff;
    background: linear-gradient(180deg, #17d87d 0%, #0ebd69 100%);
}

.pwa-toast {
    position: fixed;
    right: 16px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 1001;
    max-width: 390px;
    margin: 0 auto;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: #eef2f8;
    background: #303647;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}

.pwa-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pwa-toast.is-success {
    border-color: rgba(20, 212, 125, .4);
    background: #174b38;
}
