/* Standalone PWA help and scoped installation UI; no shared layout overrides. */
.pwa-install { scroll-margin-top: var(--rx-header-offset, 105px); }
.pwa-install .pwa-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: start; margin-block: 20px 12px; }
.pwa-install .pwa-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; font-size: 1rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.pwa-install .pwa-actions a:focus-visible { outline: 3px solid #092553; outline-offset: 4px; }
.pwa-install .pwa-actions a[aria-busy="true"] { opacity: .7; cursor: progress; }
.pwa-install [hidden] { display: none !important; }
.pwa-install .pwa-help { margin-top: 16px; max-width: 32rem; scroll-margin-top: calc(var(--rx-header-offset, 105px) + 12px); }
.pwa-install .pwa-help summary { width: fit-content; min-height: 44px; padding: 10px 14px; border: 1px solid #9aaec9; border-radius: 8px; background: #fff; color: #092553; cursor: pointer; font-size: 1rem; font-weight: 600; }
.pwa-install .pwa-help p { font-size: .875rem; line-height: 1.65; margin-block: 12px; }
.pwa-install .pwa-status { font-size: .875rem; line-height: 1.6; }
.pwa-install .pwa-status:empty { display: none; }
.pwa-install .pwa-help summary:focus-visible { outline: 3px solid #092553; outline-offset: 3px; }
.pwa-install .pwa-help summary { scroll-margin-top: calc(var(--rx-header-offset, 105px) + 12px); }
.reference-home .pwa-install.ref-app { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: center; padding: 32px; gap: 24px; background: #edf5fe; }
.reference-home .pwa-install.ref-app > div { width: auto; min-width: 0; }
.reference-home .pwa-install.ref-app .pwa-device { width: min(100%, 240px); }
.pwa-device { justify-self: center; width: min(100%, 240px); padding: 28px 18px; border: 7px solid #092553; border-radius: 30px; background: white; color: #092553; box-shadow: 0 16px 30px #09255314; text-align: center; }
.pwa-device img { display: block; width: 160px; max-width: 100%; height: auto; margin: auto; }
.pwa-device p { font-size: .875rem; line-height: 1.6; }
.pwa-device span { display: block; margin-top: 16px; font-size: .8125rem; }
.pwa-shortcut { display: none; }
.pwa-shortcut[hidden] { display: none !important; }
.pwa-shortcut a[hidden] { display: none !important; }
@media (max-width: 600px) {
    .pwa-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 16px; border-bottom: 1px solid #dbe7f5; background: #edf5fe; color: #092553; }
    .pwa-shortcut > span { display: none; }
    .pwa-shortcut a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #9aaec9; border-radius: 10px; background: white; color: #092553; font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
    .pwa-shortcut a:focus-visible { outline: 3px solid #092553; outline-offset: 3px; }
    .pwa-shortcut a[aria-busy="true"] { opacity: .7; cursor: progress; }
    .reference-home .pwa-install.ref-app { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 20px; }
    .reference-home .pwa-install.ref-app .pwa-device { width: min(100%, 220px); }
}

body.pwa-offline { box-sizing: border-box; margin: 0; background: #edf5fe; color: #092553; font-family: system-ui, 'Segoe UI', sans-serif; line-height: 1.65; }
.pwa-offline *, .pwa-offline *::before, .pwa-offline *::after { box-sizing: inherit; }
.pwa-offline main { width: min(100% - 32px, 620px); margin: 32px auto; padding: clamp(24px, 5vw, 48px); border-radius: 24px; background: #fff; box-shadow: 0 10px 40px #0925530a; overflow-wrap: anywhere; }
.pwa-offline img { display: block; width: 160px; height: 160px; max-width: 100%; object-fit: contain; margin: -28px 0 -16px; }
.pwa-offline h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
.pwa-offline .pwa-offline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.pwa-offline a { color: #092553; }
.pwa-offline .pwa-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 1px solid #a5b4c9; border-radius: 10px; font-weight: 650; text-decoration: none; }
.pwa-offline .pwa-link-primary { color: #fff; border-color: #bf3500; background: #bf3500; }
.pwa-offline a:focus-visible { outline: 3px solid #092553; outline-offset: 4px; }
.pwa-offline .pwa-uncertain { border-left: 3px solid #d5440b; padding-left: 16px; font-size: .9375rem; }
.pwa-offline .pwa-offline-note { color: #445b77; font-size: .875rem; }
