* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; color: #2f2133; background: #e8e3df; font: 16px/1.4 system-ui, sans-serif; }
.book-tools { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 5px 10px; background: #fffdf8; border-bottom: 1px solid #cbbecd; }
.book-tools button, .book-tools input { min-height: 36px; font: inherit; border-radius: 4px; border: 1px solid #b6a6bc; color: #40204e; background: white; }
.book-tools button { cursor: pointer; padding: 3px 10px; }
.book-tools button:disabled { opacity: .42; cursor: default; }
.book-tools input { width: 3.6em; margin-inline: .15rem; padding: 1px 3px; text-align: center; }
.book-tools fieldset { display: inline-flex; align-items: center; gap: 4px; padding: 0; margin: 0; border: 0; }
.book-tools :focus-visible, a:focus-visible, main:focus-visible { outline: 3px solid #704487; outline-offset: 1px; }
.book-paper { overflow: auto; flex: 1; min-height: 0; padding: 8px; }
canvas { display: block; margin: 0 auto; max-width: none; background: white; box-shadow: 0 2px 12px #2114242e; }
.book-message { margin: 12px; text-align: center; }
a { color: #491c65; }
.book-pdf-fallback { width: 100%; height: 100%; min-height: 300px; border: 0; }
.accessible-copy { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: pre-wrap; }
[hidden] { display: none !important; }
@media(max-width:480px){.book-tools{font-size:14px;gap:3px 5px}.book-tools button{padding:2px 6px}.book-paper{padding:4px}}
.book-tools form { display: flex; align-items: center; gap: 4px; margin: 0; }
.book-tools > a, .book-tools > span { padding: 7px 5px; }
.book-tools > a { font-weight: 650; }
.book-tools > span { color: #776d78; }
