/* The screen frame: the header and the status bar stay on the screen, only <main> scrolls (Madadim 8.22, Dmitry 29.10).
   Only the skeleton — colors, fonts and the header's own look stay with the project. Markup: <body> holds the header,
   one <main class="page"> (a centered column) or <main class="full"> (the whole area: screens, previews) and the status bar.
   A project may set --page-max (the column's width, 1040px) and --page-gap (its gap from the frame, 20px). */
html, body { height: 100%; margin: 0; overflow: hidden; }
body { display: flex; flex-direction: column; }
body > header, body > footer { flex: none; }
main.page { flex: 1; min-height: 0; overflow: auto; box-sizing: border-box;
  padding: var(--page-gap, 20px) max(var(--page-gap, 20px), calc((100% - var(--page-max, 1040px)) / 2)); }
/* a page whose table is wider than the column takes the whole width, the gap only (list-table.js sets .wide, Dmitry 30.10);
   a table that fits stays in the column */
main.page.wide { padding-inline: var(--page-gap, 20px); }
main.full { flex: 1; min-height: 0; position: relative; }
