/* ============================================
   web-push.css: the notifications card, Settings > Notifications,
   and the Home Screen app's back arrow (Nov 16, 2026, B96 + F58)
   ============================================ */

/* ---- The card: a dark sheet from the bottom, like the apps' (pick 2B) ---- */
.sb-pa {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  font-family: 'Poppins', sans-serif;
}
.sb-pa--in { background: rgba(0, 0, 0, 0.3); }
.sb-pa-card {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0;
  background: rgba(20, 20, 24, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  color: #fff;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.2, .9, .3, 1), opacity 0.2s ease;
}
.sb-pa--in .sb-pa-card { transform: none; opacity: 1; }
@media (min-width: 769px) {
  .sb-pa { align-items: center; }
  .sb-pa-card { border-radius: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-pa, .sb-pa-card { transition: none; }
}
.sb-pa-bell {
  width: 84px;
  height: 84px;
  margin: 8px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #6D28D9, #14B8A6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.sb-pa-title {
  margin: 14px 0 10px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}
.sb-pa-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.sb-pa-share { vertical-align: -3px; }
.sb-pa-btns { display: flex; gap: 8px; margin-top: 18px; }
.sb-pa-pill, .sb-pa-go {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
}
.sb-pa-pill {
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.sb-pa-go {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(45deg, rgba(109, 40, 217, 0.9), rgba(20, 184, 166, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.sb-pa-go:disabled { opacity: 0.6; cursor: default; }
.sb-pa-pill:focus-visible, .sb-pa-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Settings > Notifications ---- */
.settings-push-status { display: flex; flex-direction: column; gap: 4px; }
.settings-push-status .settings-row-sub { line-height: 1.45; }
.settings-push-note {
  margin: 8px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--th-fg-8b8b98);
}
.settings-push-switches.is-busy { opacity: 0.6; pointer-events: none; }

/* ---- Home Screen app: back arrow beside the menu button (phones) ---- */
#sb-app-back { display: none; }
@media (max-width: 768px) {
  #sb-app-back {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    left: 50px;
    z-index: 101;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--th-fg-18181b);
    cursor: pointer;
  }
  html.sb-kb-comment #sb-app-back { top: calc(var(--sb-vv-top, 0px) + env(safe-area-inset-top, 0px) + 6px); }
}
