.bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  padding: 2px;
  gap: 1px;
}

/* Sliding indicator behind the active tab */
.indicator {
  position: absolute;
  top: 2px;
  bottom: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: left 0.2s ease, width 0.2s ease;
  pointer-events: none;
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  line-height: 1.5;
}

.tab:hover {
  color: var(--text-primary);
}

.active {
  color: var(--text-primary);
  font-weight: 600;
}

.label {
  line-height: 1;
}

.count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.4;
}

.active .count {
  background: var(--amber-bg);
  color: var(--amber);
}

/* Trailing tab — a div, not a button, hosting custom content */
.trailingTab {
  cursor: default;
  gap: 4px;
  padding: 3px 10px;
}
