.app-install-prompt {
    position: fixed;
    inset-inline-end: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 950;
    width: min(390px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid var(--line, #ddd);
    border-radius: 16px;
    background: var(--surface, #fff);
    color: var(--text, #24222b);
    box-shadow: 0 8px 32px #0002;
    font: inherit;
}
.app-install-prompt[hidden],
.app-android-download[hidden],
.app-install-launcher[hidden] {
    display: none !important;
}
.app-install-prompt header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-install-prompt img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}
.app-install-prompt h2 {
    margin: 0;
    font-size: 15px;
}
.app-install-prompt p {
    margin: 10px 0 14px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary, #666);
}
.app-install-prompt footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.app-install-prompt button,
.app-install-launcher,
.app-android-download {
    font: inherit;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--line, #ddd);
    background: var(--surface, #fff);
    color: var(--text, #24222b);
    cursor: pointer;
}
.app-install-prompt [data-install] {
    background: var(--action-primary, #342a6b);
    color: var(--action-primary-text, #fff);
    border-color: transparent;
}
.app-install-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
    width: 100%;
}

.app-install-actions .app-install-launcher,
.app-install-actions .app-android-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    margin: 0;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.6;
    transition:
        border-color 150ms ease,
        background-color 150ms ease;
}

.app-install-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-soft, #f3f2f8);
    color: var(--primary, #342a6b);
}

.app-install-action-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

.app-android-download .app-install-action-icon {
    color: #24754b;
    background: #eaf5ee;
}

html[data-theme='dark'] .app-android-download .app-install-action-icon {
    color: #a7e2be;
    background: #203f2d;
}

.app-install-actions :is(a, button):hover {
    border-color: var(--primary, #342a6b);
    background: var(--surface-soft, #f3f2f8);
}

.app-install-actions :is(a, button):focus-visible {
    outline: 2px solid var(--primary, #342a6b);
    outline-offset: 3px;
}
@media print {
    .app-install-prompt,
    .app-install-launcher,
    .app-android-download {
        display: none !important;
    }
}
