:root {
  --wqxt-unread-color: #ff5f6d;
  --wqxt-unread-text: #ffffff;
  --wqxt-unread-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

wqxt-unread-indicator {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  display: none;
  box-sizing: border-box;
  transform: translate(50%, -50%);
  border-radius: 999px;
  background: var(--wqxt-unread-color);
  color: var(--wqxt-unread-text);
  pointer-events: none;
  user-select: none;
  isolation: isolate;
}

wqxt-unread-indicator[visible] {
  display: grid;
  place-items: center;
  animation: wqxt-unread-enter 160ms ease-out both;
}

wqxt-unread-indicator[variant="count"] {
  width: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font: 600 10px/1 var(--wqxt-unread-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

wqxt-unread-indicator[compact]:not([variant="count"]) {
  width: 10px;
  height: 10px;
}

wqxt-unread-indicator[locked],
[disabled] > wqxt-unread-indicator,
[aria-disabled="true"] > wqxt-unread-indicator,
[data-locked="true"] > wqxt-unread-indicator {
  display: none !important;
}

@keyframes wqxt-unread-enter {
  from { opacity: 0; transform: translate(50%, -50%) scale(.72); }
  to { opacity: 1; transform: translate(50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  wqxt-unread-indicator[visible] { animation: none; }
}

