.pm-notifications-mount {
  display: inline-flex;
  align-items: center;
}

.pm-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pm-notifications__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pm-notifications__btn:hover,
.pm-notifications__btn[aria-expanded="true"] {
  color: #fff;
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.65);
}

.pm-notifications__btn--active {
  color: #93c5fd;
}

.pm-notifications__btn--open {
  position: relative;
  z-index: 201;
  color: #fff;
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.65);
}

.pm-notifications__badge {
  position: absolute;
  top: -2px;
  left: -2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px #0a0a0a;
}

.pm-notifications__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  width: min(20rem, calc(100vw - 2rem));
  border: 1px solid #3f3f46;
  background: #18181b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pm-notifications__panel[hidden] {
  display: none !important;
}

.pm-notifications__panel--mobile {
  position: fixed;
  z-index: 202;
  left: 50%;
  right: auto;
  width: min(18rem, calc(100vw - 1.5rem));
  transform: translateX(-50%);
}

.pm-notifications__backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.pm-notifications__backdrop[hidden] {
  display: none !important;
}

html.pm-notifications-open {
  overflow: hidden;
}

.pm-notifications__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #27272a;
}

.pm-notifications__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.pm-notifications__list {
  max-height: 16rem;
  overflow-y: auto;
}

.pm-notifications__list--empty {
  padding: 0.85rem;
}

.pm-notifications__empty {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #71717a;
}

.pm-notifications__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 1px solid #27272a;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pm-notifications__item--unread {
  background: rgba(59, 130, 246, 0.06);
}

.pm-notifications__item-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.pm-notifications__item-unread {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #60a5fa;
}

.pm-notifications__item:last-child {
  border-bottom: 0;
}

.pm-notifications__item:hover {
  background: rgba(39, 39, 42, 0.65);
}

.pm-notifications__item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e4e4e7;
}
.pm-notifications__item-title--name {
  color: #e4e4e7;
}

.pm-notifications__item-message {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #a1a1aa;
}