.notify-menu {
  width: var(--notify-width);
  max-width: 100%;
}

.notify-menu__dnd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--popover-row-padding);
}

.notify-menu__empty {
  padding: var(--popover-row-padding);
  color: var(--popover-text-muted);
}

.notify-menu__log {
  max-height: 50vh;
  overflow-y: auto;
  list-style: none;
}

.notify-entry,
.notify-bubble {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.notify-entry {
  padding: 6px 6px 6px 10px;
}

.notify-entry__icon {
  width: var(--notify-log-icon);
  height: var(--notify-log-icon);
}

.notify-entry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notify-entry__head strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notify-entry__head time {
  flex: none;
  font-size: 12px;
  color: var(--popover-text-muted);
}

.notify-entry p {
  margin-top: 2px;
  color: var(--popover-text-muted);
  overflow-wrap: anywhere;
}

.notify-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.notify-close img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.notify-close:hover,
.notify-close:focus-visible {
  background-color: var(--notify-close-hover-bg);
  outline: none;
}

.notify-entry .notify-close {
  opacity: 0;
}

.notify-entry:hover .notify-close,
.notify-entry:focus-within .notify-close {
  opacity: 1;
}

@media (pointer: coarse) {
  .notify-entry .notify-close {
    opacity: 1;
  }
}

.notify-bubbles {
  position: fixed;
  top: calc(var(--taskbar-height) + var(--popover-gap));
  right: var(--popover-margin);
  z-index: var(--z-popover);
  display: grid;
  gap: var(--popover-margin);
  width: min(var(--notify-width), calc(100vw - 2 * var(--popover-margin)));
  pointer-events: none;
}

.notify-bubble {
  padding: 10px 8px 10px 12px;
  color: var(--notify-bubble-text);
  font-family: var(--menu-font);
  font-size: 14px;
  background-color: var(--notify-bubble-bg);
  border: 1px solid var(--notify-bubble-border);
  border-bottom-width: 2px;
  border-radius: var(--notify-bubble-radius);
  box-shadow: var(--notify-bubble-shadow);
  pointer-events: auto;
  animation: notify-in 0.2s ease-out;
}

.notify-bubble__icon {
  width: var(--notify-icon);
  height: var(--notify-icon);
}

.notify-bubble__body {
  margin-top: 2px;
  color: var(--notify-bubble-muted);
  overflow-wrap: anywhere;
}

@keyframes notify-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.reduce-motion .notify-bubble {
  animation: none;
}
