from pathlib import Path
p=Path('/opt/struktur/social-media-agent/templates/cockpit.html')
s=p.read_text()
old='.sig.blocked-sig{opacity:0.28;filter:grayscale(0.3);pointer-events:none;}'
new=old+'\nbody.show-blocked .sig.blocked-sig{pointer-events:auto;opacity:0.85;filter:none;}'
if old not in s: raise SystemExit('css anchor missing')
p.write_text(s.replace(old,new,1))