/* WITNESS polish pass - alignment and overflow discipline.
   Loaded last on every page. Rules are defensive: nothing here restyles
   the design, it only guarantees no element can push the page sideways
   and that long account IDs wrap inside their boxes. */
html, body { overflow-x: clip; }
.shell, .wc-main, .wt-ev-shell { overflow-x: clip; }
img, svg, video { max-width: 100%; }
details.w-extra { max-width: 100%; }
details.w-extra > summary { overflow-wrap: break-word; }
.chain-config { overflow-wrap: break-word; }
.chain-search label { min-width: min(180px, 100%); }
.chain-search input, .chain-search select, .chain-search textarea { max-width: 100%; min-width: 0; }
.chain-meta dd, .chain-meta strong, #tn-contract, #tn-mandate, #tn-proposal { overflow-wrap: anywhere; }
.details > div strong, .wc-card dd, .wc-live-row strong { overflow-wrap: anywhere; }
.wt-paper, .wc-invoice { max-width: 100%; }
footer, .wc-live-actions, .actions { flex-wrap: wrap; }

/* Alignment fix (13 Nov 2026, revised after full QA): the chain card's
   summary used a negative margin pull (-var(--wt-outer)) designed to sit
   inside matching card padding, but the card's own padding is 0 (a
   stronger rule wins), so the summary stuck out to the left, its marker
   was clipped, and the pull-down margin left dead white space in the
   closed card. Normalise BOTH cards to one pattern: no card padding, no
   summary margins, same summary padding as the lab card, and the same
   24px text inset for the content sections inside both cards, so
   headings and content line up the same way in each card. */
details.w-extra.wt-bound-chain { padding: 0 !important; }
.wt-bound-chain > summary { margin: 0 !important; padding: 22px 24px !important; }
details.w-extra > section { padding-left: 24px; padding-right: 24px; }
