/* Load after styles.css and v11-reader.css. No notebook/split layout here. */
/* Share sibling .book-tab sizing/hover while retaining button semantics. */
.book-reader-action { border: 0; border-bottom: 3px solid transparent; background: transparent; }
.study-view.v11-reader .original-toolbar:has(.book-reader-entry) { flex-wrap: wrap; height: auto; flex-basis: auto; }
.study-view.v11-reader .original-toolbar .book-reader-entry { flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 4px 7px; }
.book-reader.study-view { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; gap: 8px; }
.book-reader-heading { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.book-reader-heading > div { min-width: 0; }
.book-reader-heading h1 { font-size: 18px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-reader-heading p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted, #526477); }
.book-reader.study-view.v11-reader .original-panel { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; min-height: 0; width: 100%; height: 0; max-height: none; margin: 0; }
.book-reader.study-view .original-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; height: auto; flex-basis: auto; padding: 6px 8px; }
.book-reader-page-label { font-size: 12px; max-width: 20%; overflow-wrap: anywhere; }
.book-reader.study-view .original-viewport > .notice { position: absolute; top: 8px; left: 8px; right: 8px; }
@media (max-width: 900px) {
  .book-reader.study-view { gap: 5px; }
  .book-reader-heading h1 { font-size: 16px; }
  .book-reader-heading p { font-size: 11px; }
}
