.pwa-status { background: #fff4ce; color: #493500; border-bottom: 1px solid #dcc36b; }
.pwa-status[hidden], [data-pwa-install][hidden] { display: none !important; }
.pwa-status > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; }
.pwa-status p { margin: 0; font-size: 1rem; line-height: 1.5; }
.pwa-status button, .pwa-install-dialog button, .pwa-offline button { border: 0; border-radius: .5rem; background: #252525; color: #fff; padding: .75rem 1rem; font: inherit; cursor: pointer; }
.pwa-status button { flex-shrink: 0; }
.pwa-install-link { border: 0; background: none; padding: 0; font: inherit; font-size: 15px; color: var(--muted, #4e6073); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pwa-install-banner[hidden], #pwa-install-space[hidden] { display: none !important; }
.pwa-install-banner { position: fixed; z-index: 80; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 24px)); display: grid; grid-template-columns: 56px minmax(0, 1fr) 36px; align-items: center; gap: 12px; padding: 18px; border: 1px solid #e2e5e9; border-top: 4px solid var(--red, #f20b19); border-radius: 16px; background: #fff; color: #101820; box-shadow: 0 8px 36px #0003; }
.pwa-install-banner img { width: 56px; height: 56px; }
.pwa-install-copy strong { font-size: 18px; line-height: 1.3; display: block; }
.pwa-install-copy p { font-size: 15px; line-height: 1.4; margin: 5px 0 0; }
.pwa-install-dismiss { align-self: start; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f0f2f4; color: #101820; font-size: 26px; cursor: pointer; }
.pwa-install-action { grid-column: 1 / -1; border: 0; border-radius: 8px; padding: 12px 18px; background: var(--red, #f20b19); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.pwa-install-action:disabled { opacity: .65; cursor: wait; }
.pwa-install-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 0; border-radius: 1rem; padding: 1.5rem; color: #252525; }
.pwa-install-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.pwa-install-dialog h2 { margin-top: 0; font-size: 1.5rem; }
.pwa-install-dialog p { line-height: 1.6; }
.pwa-install-dialog form { text-align: right; }
.pwa-offline { max-width: 36rem; padding: 3rem 1.5rem; margin: auto; text-align: center; font-family: system-ui, sans-serif; line-height: 1.6; color: #252525; }
.pwa-offline img { width: 120px; height: 120px; }
@media (max-width: 600px) { .pwa-status > div { align-items: flex-start; flex-direction: column; gap: .6rem; } }
