.um-primary-link,
.um-btn,
.um-icon-btn {
  border: 0;
  border-radius: var(--um-radius);
  background: var(--um-primary);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.um-primary-link {
  display: inline-flex;
  padding: 11px 16px;
}

.um-actions {
  justify-content: flex-end;
  min-width: 0;
}

.um-section-title {
  margin: 20px 8px 6px;
  color: var(--um-muted);
  font-size: 13px;
  font-weight: 900;
}

.um-text-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--um-accent);
  font-weight: 850;
  cursor: pointer;
}

.um-time {
  color: var(--um-muted);
  font-size: 12px;
  font-weight: 700;
}

.um-action-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--um-chip-bg-strong, #fff1f2);
  color: var(--um-primary-dark);
  font-size: 12px;
  line-height: 1;
}

/* How many notifications arrived live since the panel was last opened (notificationBellInnerHtml),
   pinned to the bell's top-right corner. */
.um-action[data-overlay="notifications"] {
  position: relative;
}

.um-action .um-action-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--um-primary, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--um-surface, #fff);
  pointer-events: none;
}

.um-module {
  padding: 14px;
}

.um-leaderboard-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--um-line);
}

.um-leaderboard-row:first-of-type {
  border-top: 0;
}

.um-leaderboard-row.is-current-user {
  font-weight: 700;
}

.um-leaderboard-row span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--um-chip-bg-strong, #fff1f2);
  color: var(--um-primary-dark);
  font-size: 12px;
  font-weight: 500;
}

.um-module h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.um-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.um-metric {
  display: grid;
  gap: 6px;
  background: var(--um-surface-strong);
  border: 1px solid var(--um-line);
  border-radius: var(--um-radius);
  padding: 16px;
}

.um-metric span,
.um-metric small {
  color: var(--um-muted);
  font-weight: 750;
}

.um-metric strong {
  font-size: 30px;
  color: var(--um-primary-dark);
}

.um-wide-card {
  grid-column: 1 / -1;
}

.um-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.um-listing-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.um-listing-art {
  display: grid;
  place-items: end start;
  min-height: 185px;
  border-radius: var(--um-radius);
  padding: 14px;
  color: #fff1f2;
  font-weight: 900;
  background: linear-gradient(135deg, #e11d48, #2563eb 52%, #0f766e);
}

.um-listing-card strong {
  color: var(--um-ink);
  font-size: 18px;
}

.um-listing-card span,
.um-listing-card small {
  color: var(--um-muted);
}

.um-greeting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.um-panel-pop {
  padding: 14px;
}

.um-panel-pop h2 {
  margin: 0 0 14px;
  font-size: 24px;
}
