/* Text size and page panel (the user, 2026-11-19: "way too big… goes above the screen… primitive scroll bar"):
   one compact card anchored above the Aa button, never taller than ~540px; More options scroll inside it with a slim,
   quiet scroll bar in the page's ink. Loaded last so it settles the older rules that fought over this panel. */
html:root body #rblook#rblook.rblook{position:fixed!important;top:auto!important;bottom:24px!important;right:28px!important;left:auto!important;
  width:300px!important;max-height:min(540px,calc(100vh / var(--z,1) - 150px))!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;padding:14px 16px!important;scrollbar-width:thin;scrollbar-color:rgba(28,27,25,.22) transparent;scrollbar-gutter:stable}
html:root body #rblook#rblook.rblook::-webkit-scrollbar{width:6px}
html:root body #rblook#rblook.rblook::-webkit-scrollbar-track{background:transparent;margin:10px 0}
html:root body #rblook#rblook.rblook::-webkit-scrollbar-thumb{background:rgba(28,27,25,.2);border-radius:6px}
html:root body #rblook#rblook.rblook::-webkit-scrollbar-thumb:hover{background:rgba(28,27,25,.38)}
html.night:root body #rblook#rblook.rblook{scrollbar-color:rgba(233,226,213,.25) transparent}
html.night:root body #rblook#rblook.rblook::-webkit-scrollbar-thumb{background:rgba(233,226,213,.22)}
/* the options inside are drawn a size smaller, so the panel stays a small card */
html:root body #rblook#rblook.rblook .rs{zoom:.86}
@media (max-width:820px){html:root body #rblook#rblook.rblook{left:12px!important;right:12px!important;width:auto!important;bottom:78px!important;max-height:min(420px,55vh)!important}}
/* contents page: chapter numerals line up on their first letter, not their full stop (the user, 2026-11-19) */
html:root body #app#app#app main.bookp .chl .num{text-align:left!important;justify-self:start!important}
/* the reader's Contents tab (beside Notes): numerals line up on their first letter too (the user, 2026-11-19) */
html:root body #rbsheet .rbs-toc .rbs-num{text-align:left!important;justify-self:start!important}
/* the drop cap's red square lines up with the text's left edge (its glyph sat about 4px out; the user, 2026-11-19) */
@media (min-width:701px){html body main.readp .text p:first-of-type::first-letter,html body main.readp .text p.dropcap::first-letter{margin-left:0!important}}
/* a part without a number (Preface, Introduction…) starts where the chapter numbers start (the user, 2026-11-19) */
html:root body #app#app#app main.bookp .chl a:has(> .num:empty) > .num{display:none!important}
html:root body #app#app#app main.bookp .chl a:has(> .num:empty) > .nm{grid-column:1 / 3!important}
html:root body #rbsheet .rbs-toc a:has(> .rbs-num:empty) > .rbs-num{display:none!important}
html:root body #rbsheet .rbs-toc a:has(> .rbs-num:empty) > .rbs-t{grid-column:1 / 3!important}
