Banner, state panel, menu header, and menu items now share a single centred
panel column rather than each block centring itself independently. The TUI
feels visibly aligned in a Walker floating window of any width — no more
drifting elements off to the left while the menu floats to the right.
- Adaptive panel width: min(COLS − 6, 60), floored at 40.
- Terminal-width detection: `stty size </dev/tty` first (kernel-reported,
always reflects the live window) with `tput cols`/80 fallback. Fixes
off-centre rendering in freshly-spawned floating terminals whose terminfo
hasn't caught up to the compositor's actual size yet.
- Config-file path renders as `~/...` instead of `/home/<user>/...` so it
fits the panel.
- Unset resolution shows `<auto>` instead of `?x?` (matches the other unset
placeholders).
Internally: `pad_block` replaces `center_block`'s widest-line-centres-block
behaviour with a single shared left margin; `cmenu` left-aligns the menu
at the panel edge so the `> ` cursor sits in the same column as the state
panel's section headers above.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>