/* Fit from the empty workspace; retain that scale through generation/reports.
   Account retains that scale; popovers use their original layout. */
html.initial-workspace-fit { scrollbar-gutter: stable; }
body.initial-workspace-fit { padding: 12px; min-height: 100dvh; }
body.initial-workspace-fit .wrap { width: 1240px; max-width: none; }

/* Protocol badge glyphs must not change the shared header footprint. */
body.initial-workspace-fit .header-brand-copy .title { height:38px; min-height:38px; display:flex; align-items:center; }

body.initial-workspace-fit .grid>div:first-child>.panel { height:var(--workspace-sidebar-height, auto); }

/* Stacked screens reserve one output envelope, including Beida's two fields. */
@media(max-width:860px){ body.initial-workspace-fit .grid>div:nth-child(2)>.panel:last-child { min-height:650px; box-sizing:border-box; } }
