.fragment-inspector-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.fragment-inspector-controls button {
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color .15s;
}

.fragment-inspector-controls button:hover {
  color: white;
}

.fragment-inspector-controls button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.fragment-inspector-badge:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

#fragment-inspector-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 70;
}

.fragment-inspector-badge {
  background: #fffbeb;
  border: 1px solid #92400e;
  border-radius: .25rem;
  color: #78350f;
  font: 600 12px/1.35 monospace;
  max-width: min(24rem, 90vw);
  overflow-wrap: anywhere;
  padding: .15rem .3rem;
  pointer-events: none;
  position: fixed;
}

.fragment-inspector-badge[href] {
  pointer-events: auto;
  text-decoration: underline;
}
