.app-install[hidden],
.app-install [hidden],
[data-app-install-trigger][hidden] {
    display: none !important;
}

.app-install-open {
    overflow: hidden;
}

.app-install {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    padding: 20px;
    place-items: center;
}

.app-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 62%);
    backdrop-filter: blur(4px);
}

.app-install-dialog {
    position: relative;
    width: min(100%, 500px);
    max-height: min(720px, calc(100dvh - 40px));
    padding: 30px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #e11d2e;
    border-radius: 20px;
    outline: none;
    background: #ffffff;
    box-shadow: 0 30px 90px rgb(15 23 42 / 32%);
}

.app-install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 25px;
    line-height: 1;
}

.app-install-close:hover {
    background: #fff1f2;
    color: #be123c;
}

.app-install-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgb(225 29 46 / 20%);
}

.app-install-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #be123c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-install-dialog h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(24px, 5vw, 30px);
    line-height: 1.15;
}

.app-install-dialog > p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.app-install-steps {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: install-step;
}

.app-install-steps:empty {
    display: none;
}

.app-install-steps li {
    position: relative;
    min-height: 42px;
    padding: 10px 12px 10px 52px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    line-height: 1.45;
    counter-increment: install-step;
}

.app-install-steps li::before {
    position: absolute;
    top: 8px;
    left: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #fff1f2;
    color: #be123c;
    content: counter(install-step);
    font-size: 12px;
    font-weight: 850;
}

.app-install-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.app-install-actions .button {
    flex: 1 1 0;
    justify-content: center;
}

.sidebar-menu-section .app-install-menu-button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
}

.sidebar-menu-section .app-install-menu-button:hover {
    background: #f8fafc;
    color: #172033;
}

.sidebar-menu-section .app-install-menu-button .menu-icon {
    display: block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-install-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    background: #fff7f8;
    color: #be123c;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.login-install-button:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #9f1239;
}

.login-install-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 899px) {
    .sidebar-menu-section .app-install-menu-button {
        min-height: 48px;
        padding: 9px 11px;
        font-size: 14px;
    }

    .sidebar-menu-section .app-install-menu-button .menu-icon {
        flex-basis: 21px;
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 520px) {
    .app-install {
        align-items: end;
        padding: 10px;
    }

    .app-install-dialog {
        max-height: calc(100dvh - 20px);
        padding: 24px 18px 18px;
        border-radius: 20px;
    }

    .app-install-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 14px;
        border-radius: 16px;
    }

    .app-install-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-install *,
    .app-install-menu-button,
    .login-install-button {
        scroll-behavior: auto;
        transition: none !important;
    }
}
