[hidden] {
  display: none !important;
}

/* -------------------------------------------------------- status bar bell */

.sb-notify {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -5px 0 -5px -2px;
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.sb-notify svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

body.unlocked .sb-notify {
  opacity: 0.82;
  pointer-events: auto;
}

body.locked .sb-notify {
  visibility: hidden;
}

body.unlocked .sb-notify:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.sb-notify:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.sb-notify-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff453a;
  box-shadow: 0 0 0 1.5px rgba(10, 12, 20, 0.55);
}

/* ---------------------------------------------------------------- cards */

.notif-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  color: #fff;
  background: rgba(28, 28, 36, 0.58);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  transition: transform 0.15s ease, background 0.18s ease;
}

.notif-card.unread {
  background: rgba(42, 42, 54, 0.68);
}

.notif-card:active {
  transform: scale(0.985);
}

.notif-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.notif-app-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: var(--bing, linear-gradient(160deg, #4b5563, #111827));
  box-shadow: 0 5px 12px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.notif-app-icon svg {
  width: 63%;
  height: 63%;
}

.notif-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-main {
  flex: 1;
  min-width: 0;
}

.notif-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.notif-meta time {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
}

.notif-unread {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #5ac8fa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.notif-title {
  margin-top: 2px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.1px;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-body {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.74);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-dismiss {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  align-self: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.09);
}

.notif-dismiss:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.notif-dismiss svg {
  width: 11px;
  height: 11px;
}

/* --------------------------------------------------------------- banner */

.notif-banner-layer {
  position: absolute;
  top: calc(var(--sb-h) + 8px);
  left: 0;
  right: 0;
  z-index: 26;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}

.notif-banner-card {
  max-width: 390px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.notif-banner-card.show {
  opacity: 1;
  transform: none;
}

body.locked .notif-banner-layer,
body.notif-center-open .notif-banner-layer {
  display: none;
}

body.locked .notif-center {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------- lock screen list */

.lock-notifications {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(680px, 84%);
  max-height: 27vh;
  margin: 16px auto 0;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lock-notifications::-webkit-scrollbar {
  display: none;
}

.lock-notifications .notif-card {
  padding: 9px 11px;
  border-radius: 16px;
}

.lock-notifications .notif-app-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
}

.lock-notifications .notif-title {
  font-size: 12.5px;
}

.lock-notifications .notif-body {
  font-size: 11.5px;
}

.lock-notifications .notif-meta {
  font-size: 9px;
}

/* ------------------------------------------------------------- center */

.notif-center {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--sb-h) + 14px) 16px
    max(20px, calc(env(safe-area-inset-bottom) + 12px));
  color: #fff;
  background: radial-gradient(120% 70% at 10% 0%, rgba(24, 26, 46, 0.72), transparent 60%),
    radial-gradient(100% 60% at 100% 100%, rgba(40, 16, 44, 0.5), transparent 65%),
    rgba(6, 8, 14, 0.62);
  -webkit-backdrop-filter: blur(34px) saturate(140%);
  backdrop-filter: blur(34px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.notif-center.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s;
}

.notif-center-inner {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: 100%;
  min-height: 0;
}

.notif-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
}

.notif-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.notif-center-head h2 {
  margin: 3px 0 0;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -1px;
}

.notif-center-head p {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
}

.notif-center-actions {
  display: flex;
  gap: 7px;
  flex: none;
}

.notif-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.notif-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.notif-pill.accent {
  background: rgba(255, 255, 255, 0.9);
  color: #10121a;
  border-color: rgba(255, 255, 255, 0.9);
}

.notif-pill:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.notif-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.notif-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 60px;
  color: rgba(255, 255, 255, 0.62);
}

.notif-empty svg {
  width: 46px;
  height: 46px;
  opacity: 0.5;
}

.notif-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.notif-empty span {
  font-size: 12px;
}

.notif-grabber {
  display: block;
  width: 134px;
  height: 14px;
  margin: 4px auto 0;
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.notif-grabber::after {
  content: "";
  display: block;
  width: 134px;
  height: 5px;
  margin: 4px auto;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 380px) {
  .notif-center-head h2 {
    font-size: 30px;
  }

  .notif-center-actions {
    flex-direction: column;
  }

  .notif-pill {
    padding: 7px 10px;
    font-size: 11px;
  }

  .notif-card {
    padding: 10px;
  }

  .notif-app-icon {
    width: 32px;
    height: 32px;
  }

  .notif-dismiss {
    width: 20px;
    height: 20px;
  }

  .lock-notifications {
    width: 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notif-banner-card,
  .notif-center,
  .notif-card {
    transition-duration: 0.01ms !important;
  }
}
