.pwa-install {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: min(100%, 640px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    border: 1px solid #3b3e44;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--hithd-surface);
    color: #fff;
    box-shadow: 0 8px 24px #0006;
    transform: translateX(-50%);
}
.pwa-install[hidden] { display: none; }
.pwa-install__copy { grid-column: 1; grid-row: 1; min-width: 0; }
.pwa-install__title { margin: 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pwa-install__message { margin: 4px 0 0; color: #b9bdc5; font-size: 14px; line-height: 1.4; }
.pwa-install__button {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 24px;
    background: var(--hithd-accent);
    color: var(--hithd-base);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.pwa-install__button:hover { background: var(--hithd-accent); color: #fff; }
.pwa-install__close {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #b9bdc5;
}
.pwa-install__close:hover { background: #28282d; color: #fff; }
.pwa-install__instructions { grid-column: 1 / -1; margin: 0; color: #b9bdc5; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
@media (min-width: 576px) {
    .pwa-install { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 16px; }
    .pwa-install__button { grid-column: 2; grid-row: 1; }
    .pwa-install__close { grid-column: 3; align-self: center; }
}
