.pwa-banner[hidden], [data-pwa-open][hidden] { display: none; }
.pwa-banner, .pwa-dialog { box-sizing: border-box; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line); font-family: inherit; }
.pwa-banner { position: fixed; z-index: 80; inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px)); padding: 20px; display: flex; align-items: flex-start; gap: 12px; border-radius: 20px; box-shadow: 0 12px 40px rgb(var(--c-shadow) / .16); }
.pwa-banner img, .pwa-dialog img { border-radius: 12px; flex: none; }
.pwa-banner__copy { min-width: 0; flex: 1; }
.pwa-banner strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 650; }
.pwa-banner p { margin: 5px 0 14px; color: var(--c-ink-muted); font-size: 13px; line-height: 1.5; }
.pwa-close { background: transparent; color: var(--c-ink-muted); border: 0; cursor: pointer; flex: none; width: 44px; height: 44px; font-size: 26px; line-height: 1; border-radius: 50%; }
.pwa-banner .pwa-close { margin: -12px -12px 0 -8px; }
.pwa-install-button { font: inherit; font-size: 14px; font-weight: 650; border: 0; border-radius: 999px; padding: 10px 20px; min-height: 44px; color: var(--c-cta-ink); background: var(--c-cta); cursor: pointer; }
.pwa-install-button:hover { background: var(--c-cta-hover); color: var(--c-cta-hover-ink); }
.pwa-footer-button { border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: start; text-decoration: underline; text-underline-offset: .2em; }
.pwa-banner button:focus-visible, .pwa-dialog button:focus-visible, .pwa-footer-button:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
.pwa-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border-radius: 24px; }
.pwa-dialog::backdrop { background: rgb(var(--c-shadow) / .5); }
.pwa-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pwa-dialog h2 { font-size: 22px; line-height: 1.35; margin: 22px 0 12px; overflow-wrap: anywhere; }
.pwa-dialog p { font-size: 16px; line-height: 1.65; }
.pwa-dialog .pwa-dialog__note { font-size: 13px; color: var(--c-ink-muted); margin: 16px 0 24px; }
@media (max-width: 360px) { .pwa-banner { padding: 16px; gap: 10px; } .pwa-banner > img { width: 40px; height: 40px; } .pwa-dialog { padding: 22px; } }
@media (display-mode: standalone) { .pwa-banner, [data-pwa-open] { display: none; } }

.pwa-brand { white-space: nowrap; hyphens: none; }
