.book-reader{max-width:1000px}.book-reader h1{font:700 36px Georgia,serif;margin-bottom:0}.book-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0}.book-controls input{width:76px;min-height:44px;font:inherit;padding:8px;border:1px solid #9a8d7c;border-radius:6px}.book-controls button{min-height:44px}.book-controls button:disabled{opacity:.4;cursor:default}.book-sheet{margin:16px 0;border:1px solid #d9d0c4;background:white;box-shadow:0 2px 12px #0001}.book-sheet img{width:100%;height:auto;display:block}.book-shortcuts{display:flex;flex-wrap:wrap;gap:8px 20px}.book-shortcuts a{padding:10px 0}#book-text{white-space:pre-wrap;font:16px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}@media(max-width:600px){.book-controls{gap:8px}.book-controls .btn{padding:10px}.book-reader h1{font-size:30px}.book-sheet{margin-left:-8px;margin-right:-8px}}

.book-reader [hidden]{display:none!important}.book-original-chart{display:block;width:100%;height:auto}.book-reader details>summary{padding:14px 0;cursor:pointer;font-size:16px}.book-reader .path-feature{margin-top:20px}.book-reader .path-heading h2{font-size:26px}

.book-profile-sheet{margin:16px 0;padding:clamp(22px,5vw,58px);min-height:720px;border:1px solid #d9d0c4;background:#fff;box-shadow:0 2px 12px #0001}.book-profile-sheet h2{font:700 clamp(30px,5vw,48px) Georgia,serif;margin:.2em 0}.book-profile-sheet .profile-number{font-weight:800;color:#76532c;text-transform:uppercase;letter-spacing:.06em}.book-profile-sheet dl{display:grid;grid-template-columns:minmax(100px,170px) 1fr;gap:10px 18px;margin:28px 0}.book-profile-sheet dt{font-weight:800}.book-profile-sheet dd{margin:0}.book-profile-sheet .book-avatar{max-width:260px;max-height:300px;object-fit:contain;float:right;margin:0 0 20px 25px}@media(max-width:600px){.book-profile-sheet{min-height:560px;padding:24px 18px}.book-profile-sheet dl{grid-template-columns:1fr}.book-profile-sheet dd{margin-bottom:8px}.book-profile-sheet .book-avatar{float:none;display:block;margin:0 auto 20px}}

.book-controls{position:sticky;top:0;z-index:25;background:#faf8f3;border-bottom:1px solid #d8cfc4;box-shadow:0 2px 8px #0001;padding:9px 6px}.book-controls label{display:flex;align-items:center;gap:6px}.book-profile-sheet{min-height:0}.book-reader{padding-bottom:90px}@media(max-width:600px){.book-controls{gap:6px}.book-controls input{width:58px}.book-controls .btn{font-size:15px;padding:8px}.book-controls #book-total{font-size:14px}}

.book-reading-page{scroll-margin-top:var(--book-page-offset,160px);margin:0 0 30px;padding-top:12px;border-top:2px solid #d8cfc4}.book-page-label{font-weight:700;color:#6d604d;margin:4px 0 12px}.book-page-text{white-space:pre-wrap;font:16px/1.6 system-ui;overflow-wrap:anywhere}.book-reading-page .book-profile-sheet{margin-top:0}.book-reading-page img{max-width:100%;height:auto}

.book-zoom-controls{display:flex;align-items:center;gap:7px}.book-zoom-controls output{min-width:50px;text-align:center;font-variant-numeric:tabular-nums}.book-contents{display:flex;gap:10px 20px;flex-wrap:wrap;padding:18px 0}.book-reading-page{overflow-x:auto;overflow-y:hidden}.book-reading-page>.book-profile-sheet,.book-reading-page>.book-sheet,.book-reading-page>.book-page-tools,.book-reading-page>details{zoom:var(--book-reading-zoom,1)}.book-profile-sheet .book-avatar{width:260px;height:300px;object-fit:contain}.book-page-tools{margin:12px 0;padding:8px 12px;border:1px solid #d8cfc4;border-radius:7px;background:#f9f7f1}.book-page-tools>summary{font-weight:600}.book-sheet a{display:block}@media(max-width:600px){.book-zoom-controls{flex-basis:100%;justify-content:center}.book-profile-sheet .book-avatar{width:220px;height:254px}.book-controls{padding:7px 4px}}

body.book-reader-page{overflow-x:clip}.book-reader .book-reading-page{scroll-margin-top:var(--book-page-offset,160px)}
