[data-nexus-api-endpoint-bar] {
  align-items: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-sizing: border-box;
  color: hsl(var(--foreground));
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  max-width: 100%;
  width: fit-content;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-label {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-default {
  background: hsl(var(--muted));
  border-radius: 0.35rem;
  color: hsl(var(--muted-foreground));
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.4rem;
  white-space: nowrap;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-separator {
  color: hsl(var(--muted-foreground));
  flex: 0 0 auto;
  opacity: 0.6;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-url {
  flex: 0 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  max-width: min(42rem, calc(100vw - 12rem));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-copy {
  align-items: center;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.45rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: inline-flex;
  gap: 0.3rem;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  transition: background-color 120ms ease, color 120ms ease,
    border-color 120ms ease;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-copy:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-copy:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-copy svg {
  height: 1rem;
  width: 1rem;
}

[data-nexus-api-endpoint-bar] .nexus-api-endpoint-copy span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  [data-nexus-api-endpoint-bar] {
    gap: 0.45rem;
    width: 100%;
  }

  [data-nexus-api-endpoint-bar] .nexus-api-endpoint-label {
    font-size: 0.8rem;
  }

  [data-nexus-api-endpoint-bar] .nexus-api-endpoint-url {
    font-size: 0.75rem;
    max-width: none;
  }
}
