/* A document as the product paints it (crates/ui-frame/src/page.rs), the stylesheet every page painting a GESTALT letter
   loads: UI's page, one letter alone, and a desktop's windows, each holding one. Nothing here decides a color or a type:
   it lays a letter out inside the box it is given, its head at the top, its own CYOA at the foot, its data scrolling
   between, and holds structure alone. Every length here is the product's (`lengths`, set on the root as the custom
   property of its name), so it grows as the form and the person's text size grow it: a literal is a hairline, 1px, or
   none. Every paint and type a part takes beyond its look is the product's too (`styles`). */
.document { display: flex; flex-direction: column; box-sizing: border-box; }
.document * { box-sizing: border-box; }
.document .dhead, .document .dfoot { flex: none; }
.document .scroll { flex: 1; overflow: auto; min-height: 0; touch-action: pan-y pinch-zoom; }
.document .dfoot { display: flex; align-items: center; gap: var(--doc-gap); flex-wrap: wrap; }
.document .dfoot .actions { flex: 1; }
.document .dfoot .described { flex: 1 0 100%; margin: 0; }
.document .doc { display: flex; flex-direction: column; }
.document .doc section.nested { display: flex; flex-direction: column; padding: var(--nested-y) var(--nested-x); }
.document .doc section.nested h3 { border: 0 !important; padding: 0 !important; }
.document .head { display: flex; align-items: center; gap: var(--head-gap); }
.document .chip { padding: var(--chip-y) var(--chip-x); }
.document .when { margin-left: auto; }
.document .doc h3 { margin: 0; }
.document .doc p { margin: 0; }
.document .doc table { border-collapse: collapse; width: 100%; }
.document .doc th, .document .doc td { text-align: left; vertical-align: top; padding: var(--table-y) var(--table-x); }
.document .doc .chips { display: flex; flex-wrap: wrap; gap: var(--chips-gap); }
.document .doc .bar-track { height: var(--track); border-radius: var(--track-radius); overflow: hidden; }
.document .doc .bar-fill { height: 100%; }
.document .doc pre { margin: 0; overflow: auto; }
.document .doc .card { display: flex; justify-content: space-between; cursor: default; }
.document .actions { display: flex; flex-wrap: wrap; gap: var(--actions-gap); }
.document .actions button { border: 0; cursor: default; font: inherit; padding: var(--action-y) var(--action-x); }
.document .sig { align-self: flex-end; }
