/* Header chrome (drag-region, padding, traffic-light shift, no-select)
   lives in the shared `PanelHeader.module.css`. This file owns only the
   workspace-specific breadcrumb styling: repo name, branch, base branch.
   Keep it scoped to those concerns so future header consumers can compose
   PanelHeader without inheriting branch typography they don't want. */

.branchInfo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-family: var(--font-mono);
  min-width: 0;
}

.repoName {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.branchSep {
  color: var(--text-faint);
}

.branchIcon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.branchName {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.branchArrow {
  color: var(--text-faint);
  flex-shrink: 0;
}

.baseBranch {
  color: var(--text-dim);
  white-space: nowrap;
}

/* Breadcrumb wrapper: branch info + the optional issue/PR link pill. */
.headerLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* "What is this workspace for" pill — the issue/PR it was created
   against (issue #898). Accent-tinted, clickable to open the source. */
.scmLink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 320px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 34%, transparent);
  border-radius: 999px;
  padding: 1px 8px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.scmLink:hover {
  background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
  border-color: color-mix(in srgb, var(--accent-primary) 50%, transparent);
}

.scmLinkIcon {
  flex-shrink: 0;
}

.scmLinkNumber {
  flex-shrink: 0;
  font-weight: 600;
}

.scmLinkTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}
