.pwa-install-hint {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2147482000;
    display: flex;
    align-items: center;
    width: min(285px, calc(100vw - 28px));
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 15px;
    color: #fff;
    background: #1769e0;
    box-shadow: 0 7px 20px rgba(20, 56, 110, .24);
    animation: pwa-install-pop .4s cubic-bezier(.2, .85, .25, 1.15) both;
}

.pwa-install-trigger {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 0;
    font: inherit;
    color: #fff;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.pwa-install-trigger:hover,
.pwa-install-trigger:focus-visible {
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    outline: 2px solid #fff;
    outline-offset: 0;
}

.pwa-install-trigger > img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

.pwa-install-trigger > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.pwa-install-trigger small {
    margin-top: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pwa-install-trigger b {
    color: #fff;
    font-size: 13px;
    line-height: 1.15;
}

.pwa-install-dismiss {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .35);
    border-radius: 0 10px 10px 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.pwa-install-dismiss:hover,
.pwa-install-dismiss:focus-visible {
    background: rgba(255, 255, 255, .16);
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.pwa-install-dismiss svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwa-install-dialog-open {
    overflow: hidden !important;
}

.pwa-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    overflow: auto;
    background: rgba(11, 28, 52, .68);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: pwa-backdrop-in .18s ease-out both;
}

.pwa-install-modal {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100dvh - 36px);
    padding: 28px;
    overflow: auto;
    box-sizing: border-box;
    border-radius: 24px;
    color: #172033;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.pwa-install-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #334155;
    background: #eef2f7;
    cursor: pointer;
}

.pwa-install-close svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
}

.pwa-install-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 48px;
}

.pwa-install-heading img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(25, 94, 190, .2);
}

.pwa-install-heading h2,
.pwa-install-heading p,
.pwa-install-step h3,
.pwa-install-step p {
    margin: 0;
}

.pwa-install-heading h2 {
    margin: 2px 0 5px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.08;
}

.pwa-install-heading > div > p:last-child {
    color: #526176;
    font-size: 16px;
}

.pwa-install-eyebrow {
    color: #1769e0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pwa-install-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.pwa-install-step {
    position: relative;
    padding: 14px;
    border: 2px solid #dce7f7;
    border-radius: 18px;
    background: #f8fbff;
}

.pwa-step-number {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #1769e0;
    font-size: 19px;
    font-weight: 800;
}

.pwa-install-step h3 {
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.2;
}

.pwa-install-step > p {
    margin-top: 7px;
    color: #526176;
    font-size: 15px;
    line-height: 1.42;
}

.pwa-demo {
    height: 205px;
    overflow: hidden;
    border: 1px solid #cbd7e8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(37, 68, 112, .08);
}

.pwa-demo-bar {
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 11px;
    border-bottom: 1px solid #d6dde8;
    background: #f2f3f5;
}

.pwa-demo-address {
    width: 60%;
    padding: 7px 12px;
    border-radius: 8px;
    color: #657084;
    background: #fff;
    font-size: 12px;
    text-align: center;
}

.pwa-demo-highlight {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px solid #ff3b30;
    border-radius: 11px;
    color: #0868d7;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 59, 48, .15);
    animation: pwa-highlight-pulse 1.5s ease-in-out infinite;
}

.pwa-demo-highlight::after {
    content: '';
    position: absolute;
    top: 43px;
    right: 11px;
    width: 3px;
    height: 27px;
    border-radius: 2px;
    background: #ff3b30;
}

.pwa-demo-share svg,
.pwa-symbol-reminder svg,
.pwa-sheet-row svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwa-demo-more .pwa-sheet-row.is-highlighted {
    margin-top: 7px;
}

.pwa-demo-more .pwa-sheet-row.is-highlighted svg {
    color: #0a63cb;
}

.pwa-demo-page {
    display: grid;
    height: 150px;
    place-content: center;
    justify-items: center;
    gap: 7px;
    color: #1769e0;
    background: linear-gradient(150deg, #edf6ff, #fff);
}

.pwa-demo-page img {
    width: 62px;
    height: 62px;
    border-radius: 15px;
}

.pwa-symbol-reminder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #0868d7;
    background: #e5f1ff;
    font-size: 13px;
}

.pwa-demo-sheet {
    padding: 8px 11px 0;
    box-sizing: border-box;
    background: #f0f1f4;
}

.pwa-sheet-handle {
    width: 38px;
    height: 5px;
    margin: 0 auto 7px;
    border-radius: 5px;
    background: #aeb5bf;
}

.pwa-sheet-title {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.pwa-sheet-row {
    display: flex;
    height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #e2e5e9;
    background: #fff;
    font-size: 12px;
}

.pwa-sheet-row:first-of-type {
    border-radius: 10px 10px 0 0;
}

.pwa-sheet-row:last-child {
    border: 0;
    border-radius: 0 0 10px 10px;
}

.pwa-sheet-row.is-highlighted {
    position: relative;
    z-index: 1;
    margin: 3px -4px;
    border: 3px solid #ff3b30;
    border-radius: 8px;
    color: #0a63cb;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, .12);
}

.pwa-add-bar {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid #d6dde8;
    color: #0a67d4;
    background: #f5f6f8;
    font-size: 12px;
}

.pwa-add-bar b {
    padding: 7px 9px;
    border: 3px solid #ff3b30;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, .12);
}

.pwa-add-app {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 16px 12px;
}

.pwa-add-app img {
    width: 58px;
    height: 58px;
    border-radius: 13px;
}

.pwa-add-app div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pwa-add-app small {
    color: #697589;
}

.pwa-demo-add > p {
    margin: 7px 16px;
    color: #697589;
    font-size: 12px;
    line-height: 1.4;
}

.pwa-webapp-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 11px;
    padding: 10px 9px;
    border: 3px solid #ff3b30;
    border-radius: 9px;
    color: #172033;
    font-size: 11px;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, .12);
}

.pwa-webapp-option span {
    position: relative;
    width: 35px;
    height: 20px;
    border-radius: 20px;
    background: #34c759;
}

.pwa-webapp-option span::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

@media (max-width: 1000px) and (min-width: 761px) {
    .pwa-install-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pwa-install-help {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #654800;
    background: #fff3c9;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.pwa-install-help b {
    margin-right: 4px;
}

.pwa-install-done {
    display: block;
    min-width: 190px;
    margin: 18px auto 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #1769e0;
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
}

.pwa-install-done:hover,
.pwa-install-done:focus-visible,
.pwa-install-close:hover,
.pwa-install-close:focus-visible {
    filter: brightness(.95);
    outline: 3px solid rgba(23, 105, 224, .25);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .pwa-install-hint {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .pwa-install-modal {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .pwa-install-heading {
        align-items: flex-start;
        gap: 12px;
        padding-right: 40px;
    }

    .pwa-install-heading img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 14px;
    }

    .pwa-install-eyebrow,
    .pwa-install-heading > div > p:last-child {
        display: none;
    }

    .pwa-install-heading h2 {
        margin-top: 10px;
        font-size: 24px;
    }

    .pwa-install-steps {
        grid-template-columns: 1fr;
    }

    .pwa-demo {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-install-hint,
    .pwa-install-backdrop,
    .pwa-demo-highlight {
        animation: none;
    }
}

@keyframes pwa-install-pop {
    from { opacity: 0; transform: translateY(12px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pwa-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pwa-highlight-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 59, 48, .12); }
    50% { box-shadow: 0 0 0 9px rgba(255, 59, 48, .2); }
}
