.bz-pwa [hidden], .bz-pwa[hidden] { display: none !important; }
.topbar:has(.bz-pwa) { flex-wrap: wrap; }
.bz-pwa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #142c40;
  font-size: .875rem;
  line-height: 1.4;
}
.bz-pwa-button {
  border: 1px solid #b4c5d2;
  border-radius: .5rem;
  padding: .38rem .65rem;
  background: #fff;
  color: #142c40;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.bz-pwa-button:not(:disabled):hover { background: #eaf3fb; }
.bz-pwa-button:focus-visible, .bz-pwa-item a:focus-visible { outline: 2px solid #205f9d; outline-offset: 2px; }
.bz-pwa-button:disabled { opacity: .65; cursor: default; }
.bz-pwa-badge {
  display: inline-block;
  min-width: 1.3rem;
  margin-left: .2rem;
  padding: .05rem .26rem;
  border-radius: 1rem;
  background: #205f9d;
  color: #fff;
  text-align: center;
}
.bz-pwa-badge.is-attention { background: #a82222; }
.bz-pwa-panel, .bz-pwa-install-help {
  position: absolute;
  z-index: 100;
  top: calc(100% + .35rem);
  right: 0;
  border: 1px solid #b4c5d2;
  border-radius: .65rem;
  box-shadow: 0 .7rem 2rem #142c402b;
  background: #fff;
  color: #142c40;
  text-align: left;
}
.bz-pwa-install-help { width: min(19rem, 85vw); padding: .75rem; }
.bz-pwa-panel {
  box-sizing: border-box;
  width: min(29rem, calc(100vw - 1.5rem));
  max-height: min(36rem, 66vh);
  overflow: auto;
  padding: .8rem;
}
.bz-pwa-panel-heading, .bz-pwa-device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
}
.bz-pwa-panel-heading { justify-content: space-between; }
.bz-pwa-panel-heading h2 { margin: 0; color: inherit; font-size: 1rem; }
.bz-pwa-device { margin-top: .65rem; }
.bz-pwa-status { margin: .5rem 0 0; }
.bz-pwa-status:empty { display: none; }
.bz-pwa-list { display: grid; gap: .35rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.bz-pwa-list:empty { display: none; }
.bz-pwa-item {
  display: grid;
  gap: .2rem;
  padding: .5rem .65rem;
  border: 1px solid #d8e3ec;
  border-radius: .5rem;
  overflow-wrap: anywhere;
}
.bz-pwa-item.is-unread { border-left: 3px solid #205f9d; background: #f1f7fc; }
.bz-pwa-item.is-attention { border-left: 3px solid #a82222; }
.bz-pwa-item.is-unread.is-attention { background: #fff3f2; }
.bz-pwa-item a { color: #1b578f; }
.bz-pwa-item time { font-size: .8rem; color: #4d6173; }
.bz-pwa-attention { font-size: .8rem; font-weight: 700; color: #a82222; }
.bz-pwa-item .bz-pwa-button { justify-self: start; }
@media (max-width: 42rem) {
  .bz-pwa-panel, .bz-pwa-install-help { position: fixed; top: auto; right: .75rem; margin-top: .35rem; }
}
