.install-prompt {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(496px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
    background: #fff;
    color: #17243b;
    box-shadow: 0 10px 40px #06132a40;
    transform: translateX(-50%);
    font-size: 1rem;
    line-height: 1.4;
}

.install-prompt[hidden] { display: none; }

body:has(.app-footer) .install-prompt { bottom: calc(76px + 12px + env(safe-area-inset-bottom)); }

.install-prompt__icon { flex: 0 0 auto; width: 44px; height: 44px; }
.install-prompt__body { flex: 1 1 auto; min-width: 0; }
.install-prompt__body h2 { margin: 0 0 2px; font-size: 1rem; line-height: 1.3; }
.install-prompt__text { margin: 0; color: #526178; font-size: .875rem; }
.install-prompt__text[hidden], .install-prompt__action[hidden] { display: none; }

.install-prompt .install-prompt__action {
    margin: 8px 0 0;
    min-height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 0.65rem;
    background: #0046c8;
    color: #fff;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.install-prompt .install-prompt__close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f8;
    color: #17243b;
    font: 1.6rem/1 Arial, sans-serif;
    cursor: pointer;
}

.install-prompt button:focus-visible { outline: 3px solid #0046c8; outline-offset: 3px; }
