.bk-reader { --reader-surface:var(--bg-card,var(--bg)); position:fixed; inset:0; z-index:99999; display:flex; flex-direction:column; background:var(--bg); color:var(--text); }
.bk-reader-toolbar,.bk-reader-navigation { display:flex; align-items:center; gap:8px; padding:8px 12px; background:var(--bg2); border-bottom:1px solid var(--border); flex-shrink:0; }
.bk-reader-title { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.bk-reader-toolbar output { min-width:42px; font-size:12px; text-align:center; }
.bk-reader-navigation { justify-content:center; }
.bk-reader-navigation input { width:64px; text-align:center; }
.bk-reader input { padding:8px; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:4px; }
.bk-reader-layout { display:flex; flex:1; min-height:0; position:relative; }
.bk-reader-body { flex:1; min-width:0; overflow:auto; position:relative; padding:12px; }
.bk-reader-contents { position:absolute; inset:0 auto 0 0; z-index:2; width:min(340px,90%); overflow:auto; padding:12px; background:var(--reader-surface); border-right:1px solid var(--border); }
.bk-reader-contents[hidden] { display:none; }
.bk-reader-contents input { width:100%; margin-bottom:12px; }
.bk-reader-chapter { display:block; width:100%; padding:12px 8px; padding-left:calc(8px + var(--chapter-level,0) * 12px); text-align:left; color:var(--text); background:transparent; border:0; border-bottom:1px solid var(--border); cursor:pointer; overflow-wrap:anywhere; }
.bk-reader-chapter:hover,.bk-reader-chapter:focus-visible { color:var(--teal); background:var(--bg); }
.bk-reader-page { position:relative; margin:0 auto 12px; flex-shrink:0; background:var(--bg2); color:var(--text3); }
.bk-reader-page canvas { display:block; max-width:none; }
.bk-epub-host { height:100%; width:100%; }
.bk-book-sources { display:flex; flex-direction:column; gap:6px; margin-top:12px; border-top:1px solid var(--border); padding-top:8px; }
.bk-book-source { background:transparent; color:var(--teal); border:0; text-align:left; cursor:pointer; padding:6px 0; font-size:12px; }
.bk-library-status { font-size:12px; color:var(--text3); padding:8px 0; }
@media (max-width:480px) { .bk-reader-toolbar { gap:3px; padding:8px 6px; } .bk-reader-toolbar .icon-btn { flex-shrink:0; width:32px; height:36px; } }