#cms-api-endpoint-bar {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 3px 4px 3px 10px;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--muted) 42%, var(--background));
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.cms-api-endpoint-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
}

.cms-api-endpoint-label {
  flex: 0 0 auto;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.cms-api-endpoint-badge {
  display: inline-flex;
  height: 18px;
  padding: 0 5px;
  flex: 0 0 auto;
  align-items: center;
  color: #059669;
  border-radius: 5px;
  background: color-mix(in srgb, #10b981 11%, transparent);
  font-size: 10px;
  font-weight: 600;
}

.cms-api-endpoint-separator {
  width: 1px;
  height: 14px;
  flex: 0 0 1px;
  background: var(--border);
}

.cms-api-endpoint-value {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
  text-underline-offset: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.cms-api-endpoint-value:hover,
.cms-api-endpoint-value:focus-visible {
  color: var(--primary);
  text-decoration-color: var(--primary);
  outline: none;
}

.cms-api-endpoint-group {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.cms-api-endpoint-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 80;
  display: flex;
  width: max-content;
  max-width: 240px;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--background);
  box-shadow: 0 12px 28px -16px rgb(15 23 42 / 42%);
  font-size: 11px;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.cms-api-endpoint-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  content: "";
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  transform: translate(-50%, -50%) rotate(45deg);
}

.cms-api-endpoint-tooltip-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--primary);
}

.cms-api-endpoint-group:hover .cms-api-endpoint-tooltip,
.cms-api-endpoint-group:focus-within .cms-api-endpoint-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cms-api-endpoint-copy,
.cms-api-endpoint-speed {
  display: inline-flex;
  width: 19px;
  height: 19px;
  padding: 2px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.cms-api-endpoint-copy:hover,
.cms-api-endpoint-speed:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.cms-api-endpoint-copy:focus-visible,
.cms-api-endpoint-speed:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 1px;
}

.cms-api-endpoint-copy svg,
.cms-api-endpoint-speed svg {
  width: 13px;
  height: 13px;
}

.cms-api-endpoint-copy.is-copied {
  color: #059669;
}

.cms-api-endpoint-copy.is-error {
  color: #e11d48;
}

.cms-api-endpoint-speed:hover {
  color: #d97706;
}
