/* Installing the site as an app (owner, 2026-11-24): the "Install app" buttons, the phone banner and the iPhone
   how-to sheet. wwwroot/js/pwa.js puts .bx-can-install on <html> when the browser can install; nothing shows otherwise,
   and nothing shows inside the installed app. */
.bx-pwa-install { display: none !important; }
html.bx-can-install .bx-pwa-install { display: flex !important; }

.bx-pwa-banner {
  position: fixed; z-index: 1200; left: 12px; right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 16px; border: 1px solid rgba(76, 245, 178, .45);
  background: #0A2029; box-shadow: 0 12px 36px rgba(0, 0, 0, .55), 0 0 22px rgba(25, 230, 176, .16);
  color: #fff; font-family: inherit; animation: bx-pwa-in .25s ease-out;
}
.bx-pwa-banner img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.bx-pwa-banner__text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.bx-pwa-banner__text strong { font-size: 15px; }
.bx-pwa-banner__text small { font-size: 12px; color: #ABC2C7; }
.bx-pwa-banner__go {
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #F3D58B;
  background: #19E6B0; color: #031018; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer;
}
.bx-pwa-banner__x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #ABC2C7; font-size: 22px; cursor: pointer; }
.bx-pwa-banner button:focus-visible, .bx-pwa-sheet button:focus-visible { outline: 3px solid #F3D58B; outline-offset: 2px; }
@keyframes bx-pwa-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.bx-pwa-sheet { position: fixed; inset: 0; z-index: 1300; display: grid; align-items: end; justify-items: center; }
.bx-pwa-sheet__backdrop { position: absolute; inset: 0; background: rgba(1, 8, 12, .7); }
.bx-pwa-sheet__card {
  position: relative; width: min(100%, 440px); box-sizing: border-box; margin: 0 0 env(safe-area-inset-bottom, 0px);
  padding: 22px 20px 20px; border-radius: 20px 20px 0 0; border: 1px solid rgba(76, 245, 178, .45);
  background: #0A2029; color: #fff; text-align: center; font-family: inherit;
}
.bx-pwa-sheet__icon { width: 64px; height: 64px; border-radius: 16px; }
.bx-pwa-sheet__card h2 { margin: 12px 0 10px; font-size: 20px; }
.bx-pwa-sheet__card ol { margin: 0 0 18px; padding-left: 22px; text-align: left; color: #D6E4E7; line-height: 1.55; }
.bx-pwa-sheet__card svg { width: 18px; height: 18px; vertical-align: -3px; color: #19E6B0; }
.bx-pwa-sheet__ok {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #F3D58B;
  background: #19E6B0; color: #031018; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
}
@media (min-width: 761px) { .bx-pwa-sheet { align-items: center; } .bx-pwa-sheet__card { border-radius: 20px; } }

/* Notifications card on the Profile page (Web Push, owner 2026-11-24). wwwroot/js/push.js keeps the state on
   <html data-bx-push="...">, which Blazor never renders; each line and button in the card says which states it is for
   in data-push-when, and every other one is hidden. Before push.js has decided (no attribute yet) only "checking" shows. */
html:not([data-bx-push]) [data-push-card] [data-push-when]:not([data-push-when~="checking"]),
html[data-bx-push="unsupported"] [data-push-card] [data-push-when]:not([data-push-when~="unsupported"]),
html[data-bx-push="ios-install"] [data-push-card] [data-push-when]:not([data-push-when~="ios-install"]),
html[data-bx-push="denied"] [data-push-card] [data-push-when]:not([data-push-when~="denied"]),
html[data-bx-push="off"] [data-push-card] [data-push-when]:not([data-push-when~="off"]),
html[data-bx-push="on"] [data-push-card] [data-push-when]:not([data-push-when~="on"]),
html[data-bx-push="busy"] [data-push-card] [data-push-when]:not([data-push-when~="busy"]),
html[data-bx-push="failed"] [data-push-card] [data-push-when]:not([data-push-when~="failed"]) { display: none !important; }
