# UnifiedWriter dev-5.46.0 UI polish / Menu & Toolbar finalization

## Purpose

v5.46.0 is a product-polish build after the v5.45.0 stage-2/stage-3 consolidation. It does not try to add another large document feature category. Instead, it makes the existing Google Docs-like shell more usable and less fragile in real-device regression tests.

## Implemented items

- Compact top-menu and submenu density for Japanese, English and Chinese labels.
- Stable icon / label / shortcut / submenu-arrow columns without excessive blank space.
- One-row compact toolbar with horizontal overflow instead of wrapping into a tall multi-row toolbar.
- Shell-level command availability API so toolbar and menu actions can be disabled together.
- Contextual table toolbar buttons that appear only when a table cell/range is selected.
- Existing contextual image toolbar is now driven by the same selection-mode state as menu command availability.
- Mixed-selection visual indicator for toolbar buttons that cannot represent one single state.
- Status bar selection mode display for text/table/image/comment regression diagnostics.
- Cleaned and rebuilt `demo/regression-tests.html` as a valid single HTML document targeting dev-5.46.0.

## Design notes

Command availability is intentionally managed by the shell, not by scattered CSS selectors in individual menu definitions. UnifiedWriter has multiple command surfaces: menu, toolbar, context menu, keyboard shortcuts and Host-facing public API. A single availability map prevents object-specific commands from appearing active when the current selection mode is text, image, table or comment.

The toolbar remains a Control chrome element. It may use overflow scrolling to preserve a compact Google Docs-like layout, but it must not change the DocumentModel or renderer layout.

