Crowned spiropyran fluoroionophores with a carboxyl moiety for the selective detection of lithium ions.