/* The PDF's own bookmarks are the source of truth for section navigation. */
.book-actions [data-book-index] { min-width:140px; }
.book-controls [data-book-share] { width:auto; padding:8px 16px; border-radius:24px; font-size:.875rem; }
.book-share-status { padding:16px 24px; margin:0; color:#d5e3ed; background:#ffffff08; font-size:.875rem; line-height:1.8; }
#pdf-viewer.book-reader #book-publication-notice { margin:0; padding:16px 24px; color:#ffdbc1; background:#ffb97f18; font-size:.875rem; line-height:1.8; }
.book-share-status input { display:block; width:100%; min-height:44px; padding:10px; font-size:1rem; margin-top:10px; border:1px solid #8cabbf; border-radius:8px; background:#0e2132; color:#fff; }
.book-index-dialog { position:fixed; inset:0 auto 0 0; width:min(480px,94vw); height:100dvh; max-width:94vw; max-height:100dvh; margin:0; padding:0; border:0; border-right:1px solid #395269; border-radius:0 18px 18px 0; color:#eef5fb; background:#142536; box-shadow:20px 0 60px #0008; overflow:auto; }
.book-index-dialog::backdrop { background:#071320bb; backdrop-filter:blur(3px); }
.book-index-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; border-bottom:1px solid #ffffff15; }
.book-index-heading p { font-size:.8125rem; letter-spacing:.08em; color:#e8aa7a; margin:0 0 8px; }
.book-index-heading h2 { font-size:1.6rem; margin:0; }
.book-index-heading > button { font-size:27px; min-width:44px; min-height:44px; border:1px solid #ffffff22; border-radius:50%; }
.book-index-tabs { display:flex; gap:12px; padding:20px 24px 0; }
.book-index-tabs button { flex:1; min-height:46px; border:1px solid #ffffff26; border-radius:10px; font-size:1rem; color:#b7cbdc; }
.book-index-tabs [aria-selected=true] { color:#fff; background:#2a435a; border-color:#6b849b; }
.book-index-dialog [hidden] { display:none!important; }
.book-index-search { display:block; padding:24px 24px 16px; font-size:.875rem; color:#c4d5e2; }
.book-index-search input { display:block; width:100%; margin-top:9px; min-height:46px; padding:10px 12px; border:1px solid #61798d; border-radius:9px; color:white; background:#0c1b29; font-size:1rem; }
.book-index-sections { display:block; position:static; inset:auto; border:0; background:transparent; box-shadow:none; padding:0 14px 24px; }
.book-index-sections button { display:flex; align-items:center; justify-content:space-between; gap:18px; width:100%; padding:15px 12px; min-height:54px; text-align:left; border-bottom:1px solid #ffffff14; border-radius:7px; }
.book-index-sections button > span { font-size:1rem; line-height:1.5; }
.book-index-sections button small { flex-shrink:0; font-size:.8125rem; color:#e8b48b; }
.book-index-sections button:hover { background:#ffffff0c; }
.book-index-empty,.book-index-description,.book-thumb-progress { font-size:.875rem; line-height:1.8; color:#bed0df; padding:16px 24px; margin:0; }
.book-thumbnails { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:8px 24px 24px; }
.book-thumbnails button { min-width:0; border:1px solid #ffffff25; padding:8px; border-radius:10px; text-align:left; background:#0d1c2b; }
.book-thumbnails button:hover { border-color:#e7a875; }
.book-thumbnails button > span { display:grid; place-items:center; aspect-ratio:.707; background:#f7f8fa; border-radius:4px; overflow:hidden; }
.book-thumbnails img { width:100%; height:100%; object-fit:contain; }
.book-thumbnails button b { display:block; font-size:.875rem; font-weight:500; padding:10px 2px 3px; }
.book-thumb-loading { font-size:.8125rem; color:#677c8d; }
.book-thumbnails-more { display:block; width:calc(100% - 48px); margin:0 24px 8px; min-height:48px; padding:10px; border:1px solid #8ba1b2; border-radius:10px; font-size:.875rem; color:#e8f1f8; }
.book-index-dialog button:focus-visible,.book-index-dialog input:focus-visible { outline:2px solid #ffc79c; outline-offset:3px; }
.book-actions button:disabled { opacity:.4; cursor:default; }
@media(max-width:700px) {
  .book-actions { flex-wrap:wrap; }
  .book-actions [data-book-index] { flex:1 1 100%; }
  .book-index-dialog { width:100vw; max-width:100vw; border-radius:0; }
  .book-index-heading { padding:22px 18px; }
  .book-index-tabs { padding-inline:18px; }
  .book-thumbnails { padding-inline:18px; gap:12px; }
}
