Measure a fixed-height CSS fix against every real text, in the browser
When fixing a layout jump caused by a status line that changes between one and two lines (min-height: Nem), do not trust a code reading of which state the attribute selector matches. Drive headless Chrome over CDP, record getBoundingClientRect of the element below on every change, and also log the attribute value in every mode. In one case a [data-action$="_journey"] rule also matched a second mode, because that mode reused the same pause action. Then set every real text the line can show into the live element with textContent and count lines with a Range height divided by the computed line-height, to prove N lines is enough. Generate only texts that can really appear, or the worst case is inflated. A regex test over the CSS file can pin the rule, but only the browser shows which modes it hits.