#install-prompt-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 910500;
    pointer-events: none;
}

.install-prompt {
    position: relative;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-medium, 14px);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
}

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

.install-prompt-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.install-prompt-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--radius-small, 10px);
    background: rgba(37, 99, 235, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-prompt-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.install-prompt-content {
    flex: 1;
    min-width: 0;
}

.install-prompt-title {
    display: block;
    margin-bottom: 4px;
    color: var(--color-dark, #1f2329);
    font-size: 13px;
}

.install-prompt-message {
    margin: 0;
    color: var(--color-gray, #6b7079);
    font-size: 12px;
    line-height: 1.45;
}

.install-prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.install-prompt-actions button {
    min-width: 110px;
}

/* Public runtime: the panel button classes (btn-blue/btn-gray) are not loaded there */
.public-runtime .install-prompt {
    border-color: rgba(0, 0, 0, 0.08);
}

.public-runtime .install-prompt-icon {
    background: #f2f2ef;
}

.public-runtime .install-prompt-actions button {
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.public-runtime #install-prompt-confirm {
    background: var(--color-dark, #1f2329);
    color: #ffffff;
}

.public-runtime #install-prompt-dismiss {
    border-color: rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: var(--color-dark, #1f2329);
}

@media (min-width: 769px) {
    #install-prompt-container {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .install-prompt {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 12px;
    }

    .install-prompt-actions {
        flex-direction: column;
    }

    .install-prompt-actions button {
        width: 100%;
    }
}
