.book-reading-progress{display:flex;align-items:center;gap:9px;padding:12px 0 3px;border-top:1px solid #e7eef5;margin-top:10px}.book-reading-progress>div{flex:1;min-width:0}
.reading-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#46617f;font-size:12px;margin-bottom:7px}.reading-progress-label strong{color:#16838b}
.reading-meter{height:7px;background:#e5edf4;border-radius:20px;overflow:hidden;flex-shrink:0}.reading-meter>span{display:block;height:100%;background:linear-gradient(90deg,#16838b,#59b6a7);border-radius:inherit;transition:width .2s}
.reading-medal{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;color:#546b86;font-size:11px}.reading-medal img{width:64px;height:76px;object-fit:contain}.reading-medal-compact img{width:29px;height:34px}.reading-medal-compact{display:inline-flex;flex-shrink:0}
.reading-history[hidden]{display:none}.reading-history{margin:20px 0}.reading-history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.reading-history-heading h3{font-size:23px;color:#203c71;margin:0 0 8px}.reading-history-heading p{color:#78899f;font-size:13px;margin:0}.reading-history-totals{display:flex;gap:26px;text-align:center}.reading-history-totals strong{font-size:28px;color:#16838b}.reading-history-totals small{display:block;font-size:11px;font-weight:500;color:#74839a}
.reading-history-filters{display:flex;gap:8px;flex-wrap:wrap;margin:23px 0 12px}.reading-history-filters .btn{font-size:12px;padding:8px 16px}.reading-sync{font-size:11px;color:#78899f;min-height:20px;margin-bottom:14px}.reading-sync .btn{font-size:11px;padding:5px 10px}.reading-history-list{display:grid;gap:14px}.reading-history-item{display:flex;align-items:center;gap:22px;padding:22px;background:#fff;border:1px solid #dfe8f1;border-radius:16px}.reading-history-cover{width:78px;height:112px;object-fit:cover;flex-shrink:0;border-radius:5px;box-shadow:0 4px 10px #1e3c7215}.reading-cover-empty{display:grid;place-items:center;background:#e8f2fa;font-size:32px}.reading-history-info{flex:1;min-width:0}.reading-history-info h4{font-size:18px;color:#203c71;margin:8px 0 4px}.reading-history-info>p{margin:0 0 14px;font-size:12px;color:#70829a}.reading-history-info>small{display:block;font-size:10px;line-height:1.5;color:#7b8da2;margin-top:7px}.reading-history-tags{display:flex;gap:8px;flex-wrap:wrap}.reading-history-tags>span{font-size:10px;padding:3px 9px;border-radius:15px;background:#edf3fa;color:#58718c}.reading-history-tags>.is-completed{background:#e5f4ed;color:#2b7a61}.reading-history-dates{font-size:10px;line-height:1.6;color:#8191a3;margin-top:10px}.reading-history-action{width:150px;display:flex;flex-direction:column;align-items:center;gap:13px;flex-shrink:0}.reading-history-action .btn{font-size:12px;width:100%;padding:9px}.reading-history-empty{padding:35px 20px;background:#f2f7fc;border-radius:14px;text-align:center;color:#71839b}
/* Let the viewport fill the available height in fullscreen. */
#readerModal.reader-focus-mode .doc-reader{display:flex;flex-direction:column}#readerModal.reader-focus-mode .doc-toolbar{flex-shrink:0}#readerModal.reader-focus-mode .doc-viewport{flex:1;min-height:0;height:auto}
@media(max-width:650px){.reading-history-heading{align-items:flex-start;flex-direction:column;gap:15px}.reading-history-heading h3{font-size:21px}.reading-history-totals{gap:30px}.reading-history-item{padding:15px;gap:13px;flex-wrap:wrap;align-items:flex-start}.reading-history-cover{width:54px;height:78px}.reading-history-info{min-width:180px}.reading-history-info h4{font-size:16px}.reading-history-action{width:100%;flex-direction:row;justify-content:flex-end}.reading-history-action .btn{width:auto;min-width:140px}.reading-history-action .reading-medal{flex-direction:row;margin-right:auto}.reading-history-action .reading-medal img{width:38px;height:45px}}
@media(prefers-reduced-motion:reduce){.reading-meter>span{transition:none}}
