/* "Install this app" banner and the profile-panel section (js/install-prompt.js). Same dark-and-gold look as the
   "update available" notice. No inline styles are used anywhere, so this also works under a strict CSP. */

.uo-install-banner {
    position: fixed;
    left: 50%;
    /* above the "Office Settings" bar at the bottom of an office page, and clear of the phone's home indicator */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
    transform: translateX(-50%);
    z-index: 99990;   /* below the update notice (100000), above the page */
    box-sizing: border-box;
    width: min(92vw, 28rem);
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    border: 1px solid #b08d57;
    border-radius: 8px;
    background: #1b1612;
    color: #eadfc8;
    font: 15px/1.4 system-ui, sans-serif;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.uo-install-title,
.uo-install-section-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.uo-install-lede { margin: 0 0 0.5rem; }
.uo-install-steps { margin: 0.25rem 0 0.5rem; padding-left: 1.3rem; }
.uo-install-steps li { margin: 0.25rem 0; }
.uo-install-share { vertical-align: -3px; }
.uo-install-hint { margin: 0 0 0.5rem; font-size: 0.9em; opacity: 0.85; }
.uo-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
.uo-install-banner button,
#install-section button {
    font: inherit;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #b08d57;
    background: transparent;
    color: inherit;
    cursor: pointer;
    min-height: 40px;   /* comfortable to tap */
}
.uo-install-banner button.uo-install-primary,
#install-section button.uo-install-primary {
    background: #b08d57;
    color: #1b1612;
    font-weight: 600;
}
.uo-install-banner button.uo-install-link {
    border-color: transparent;
    text-decoration: underline;
    opacity: 0.85;
}
.uo-install-banner button:focus-visible,
#install-section button:focus-visible { outline: 2px solid #eadfc8; outline-offset: 2px; }

/* The profile-panel section follows the panel's own colours. */
#install-section {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(176, 141, 87, 0.45);
    border-radius: 8px;
}
@media print { .uo-install-banner { display: none; } }
