/* Paper as Word lays it out (15.673, 15.675, 15.676, /kit/paperview.js): the pages one under another on the desk in
   their own scroller, the share in its corner as on the zoom stage, «Лист N из M» under it; the height -
   `--paper-view-h` of the owner */
.paper-view { position: relative; min-width: 0; border-radius: var(--r-l); background: var(--sheet-desk); }
.paper-view-scroll { display: flex; flex-direction: column; align-items: safe center; gap: var(--sp-200); width: 100%;
                    height: var(--paper-view-h, 640px);
                    padding: calc(var(--sp-150) * 2 + var(--h-btn)) var(--sp-200); overflow: auto; outline: none;
                    touch-action: pan-x pan-y; }
/* the own full screen keeps its fixed place over the view's relative one */
.paper-view:is(:fullscreen, .fs-self) { position: fixed; border-radius: calc(var(--r-l) * (1 - var(--fs-k)));
                                       background: linear-gradient(var(--sheet-desk), var(--sheet-desk)), var(--bg); }
.paper-view:is(:fullscreen, .fs-self) > .paper-view-scroll { height: 100%; }
.paper-view-page { flex: none; box-shadow: 0 0 0 var(--bw) var(--line); }
.paper-view > .float-bar .float-btn.text { font-variant-numeric: tabular-nums; }
.paper-view-count { color: var(--ink2); font-size: var(--fs-s); line-height: var(--lh-s); }
/* `fit: "width"` (12.11): the page fills the view's width and scrolls; the count, the switch, the share, print and full
   screen stand on a strip of the desk under the pages (a text editor's status bar), so no page is ever covered */
.paper-view.by-width { --paper-view-foot: calc(var(--h-btn) + var(--sp-100) * 2);
                       display: flex; flex-direction: column; }
.paper-view.by-width > .paper-view-scroll { flex: none; height: calc(var(--paper-view-h, 640px) - var(--paper-view-foot));
                                            padding: var(--sp-200); }
.paper-view.by-width:is(:fullscreen, .fs-self) > .paper-view-scroll { flex: 1 1 auto; height: auto; min-height: 0; }
.paper-view-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-100);
                   min-width: 0; height: var(--paper-view-foot); padding: 0 var(--sp-150) var(--sp-050); }
.paper-view-foot > .paper-view-count { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                                       white-space: nowrap; }
.paper-view-foot > .float-group { flex: none; }
/* 15.2684: one node centred on the desk (a device's screen), the pane never scrolls */
.paper-view.by-node > .paper-view-scroll { display: grid; place-items: center; overflow: hidden; }
