For an algebraic closure $\Omega$ of $\mathbb Q$ write $G=\operatorname{Gal}(\Omega/\mathbb Q)$, with its Krull topology, and write $I_A\subset D_A\subset G$ for the inertia group and the decomposition group of a valuation subring $A$ of $\Omega$. For a prime $\ell$ let $\epsilon_\ell:G\to\mathbb Z_\ell^\times$ be the $\ell$-adic cyclotomic character. A *coefficient ring* for $\ell$ is a discrete valuation ring $\mathcal O\subset\overline{\mathbb Q}_\ell$ that contains $\mathbb Z_\ell$ and is a finitely generated $\mathbb Z_\ell$-module.
**Theorem.** Let $\Omega$ be an algebraic closure of $\mathbb Q$, $\ell\ge5$ a prime, $\mathcal O$ a coefficient ring for $\ell$, and $e\ge2$ an even integer such that $\ell-1$ divides $2e$. Let $M$ be the $\mathcal O$-module $\mathcal O\otimes_{\mathbb Z_\ell}(\mathbb Q_\ell/\mathbb Z_\ell)$ with the discrete topology, on which $G$ acts by $g\cdot m=\epsilon_\ell(g)^{-e}m$. Let $c$ be a class in the first continuous cohomology group $H^1(G,M)$ that satisfies the following two conditions.
1. The restriction of $c$ to $I_A$ is zero for every valuation subring $A$ of $\Omega$.
2. The restriction of $c$ to $D_A$ is zero for every valuation subring $A$ of $\Omega$ whose maximal ideal contains $\ell$.
Then $c=0$.
**Corollary (Estimate Z).** For every primitive Dirichlet character $\chi$ there is a natural number $C$ with the following property. Let $(\nu,q,d)$ be an auxiliary triple for $\chi$, with modulus $N$, and let $t\ge0$ be an integer such that $q$ and $d$ are both larger than each of the six numbers
$$2t+1,\qquad N_\chi,\qquad o,\qquad p_K,\qquad h_K,\qquad p_1.$$
Let $\Omega$ be an algebraic closure of $\mathbb Q$, $\ell\notin\mathcal B_\chi$ an odd prime, $\mathcal O$ a coefficient ring for $\ell$, and $e$ an integer with $0<e<t$ such that $\ell-1$ divides $2e$ and the trivial character modulo $N$ belongs to $\mathscr X_{\mathcal O}(e)$. Then the Selmer length $L$ of $\epsilon_\ell^{-e}$ formed with $\mathcal O$ and $N$ is finite, and
$$\frac L{e_{\mathcal O}}\,\log\ell\le(\ell Ne)^C.$$