/* Reader controls stay within the existing single toolbar. */
#bookMode[aria-pressed=true]{color:var(--gold);background:#3a301e;border-color:#8b703e}
.reading-panel{max-height:calc(100vh - 56px);overflow:auto;scrollbar-width:thin}
.book-options{border-top:1px solid #41392b;padding-top:12px;margin-top:12px}
.book-options>label:first-child{font-weight:600}
.book-options select{max-width:165px}
.book-options-extra[hidden]{display:none}
.book-options .book-help{color:#cab78e;line-height:1.6;margin:8px 0 12px}
body.book-mode #pages{display:block;padding:0;gap:0;min-width:100%;width:100%;height:100%;min-height:100%;position:relative}
body.book-mode #scroll{scrollbar-gutter:auto}
/* Curl shadows must never create scrollbars that resize/cancel the spread mid-turn. */
body.book-mode.book-fit #scroll{overflow:hidden}
body.book-mode .pdf-page{box-shadow:none}
body.book-mode .page-controls{opacity:.55;transition:opacity .15s}
body.book-mode .page-controls:hover,body.book-mode .page-controls:focus-within{opacity:1}
body.book-turning #pages .textLayer,body.book-turning #pages .annotation-layer{pointer-events:none;user-select:none}
body.book-turning #pages{user-select:none}
@media(prefers-reduced-motion:reduce){body.book-mode .page-controls{transition:none}}
/* A gesture scales the current surface; full PDF rasterization waits for its end. */
body.zooming-pdf #pages{will-change:transform;pointer-events:none;user-select:none}
