#home-screen-popup {
    position: fixed;
    width: calc(100% - 32px);
    max-width: 360px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    margin: auto;
    padding: 25px 22px 10px;
    border: 1px solid var(--mj-line);
    border-radius: 18px;
    background: var(--mj-surface);
    color: var(--mj-ink);
    text-align: center;
    font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
}

#home-screen-popup::backdrop {
    background: rgba(6, 18, 37, .55);
    backdrop-filter: blur(3px);
}

#home-screen-popup h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 7px 0 19px;
    color: var(--mj-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

#home-screen-popup .home-screen-title-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

#home-screen-popup button {
    min-height: 46px;
    font: inherit;
    cursor: pointer;
}

#home-screen-popup .home-screen-primary {
    width: 100%;
    padding: 12px;
    border: 1px solid #2468ce;
    border-radius: 10px;
    background: #2468ce;
    color: #fff;
    font-weight: 650;
}

#home-screen-popup .home-screen-primary:hover,
#home-screen-popup .home-screen-primary:focus-visible {
    background: #1658b8;
}

#home-screen-popup .home-screen-primary:disabled {
    opacity: .62;
    cursor: wait;
}

#home-screen-popup .home-screen-later {
    display: block;
    width: 100%;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--mj-muted);
    font-size: 14px;
}

#home-screen-popup .home-screen-later:hover,
#home-screen-popup .home-screen-later:focus-visible {
    color: var(--mj-ink);
    text-decoration: underline;
}

#home-screen-popup #home-screen-status {
    margin: 13px 0 0;
    color: var(--mj-muted);
    font-size: 13px;
    line-height: 1.65;
}

#home-screen-popup #home-screen-status[hidden] {
    display: none !important;
}

html[data-theme="dark"] #home-screen-popup .home-screen-primary {
    border-color: #4e8fe9;
    background: #2468ce;
}

@media (min-width: 701px) {
    #home-screen-popup {
        display: none !important;
    }

    #home-screen-popup::backdrop {
        display: none;
    }
}
