fix typos in theme.css
use pseudo :first-child and last-child instead of special classes/js code
Try renaming related links to avoid 'Editor Editor' 'Shell Shell'
Bug 427492 - enable match styling patterns to define sub-patterns