.hbv-library{max-width:none;margin:0;padding:0 0 3rem;color:var(--hbv-text,#e9e6df)}
.hbv-library h2{margin:1rem 0 .25rem}
.hbv-library__plan{color:var(--hbv-muted,#a8a39a);margin:0 0 1rem}
.hbv-library__grid{list-style:none;margin:1.25rem 0 0;padding:0;display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.hbv-book-card{display:flex;flex-direction:column;gap:.6rem;background:var(--hbv-surface,#15151a);border:1px solid var(--hbv-border,#2a2a33);border-radius:12px;padding:.8rem}
.hbv-book-card__cover{aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:var(--hbv-surface-2,#1d1d24);display:flex;align-items:center;justify-content:center}
.hbv-book-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.hbv-book-card__placeholder{font-size:3rem;color:var(--hbv-muted,#a8a39a)}
.hbv-book-card__title{font-size:1rem;margin:0;line-height:1.3}
.hbv-book-card__actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:auto}
.hbv-book-card__note{font-size:.8rem;color:var(--hbv-muted,#a8a39a)}
.hbv-btn{display:inline-block;padding:.55rem .9rem;border-radius:999px;background:var(--hbv-accent,#d4a94c);color:var(--hbv-accent-contrast,#14110a);font-weight:600;text-decoration:none;font-size:.9rem;border:1px solid transparent}
.hbv-btn:hover,.hbv-btn:focus-visible{filter:brightness(1.1)}
.hbv-btn.hbv-btn--ghost,a.button.hbv-btn--ghost{background:transparent;color:var(--hbv-text,#e9e6df);border-color:var(--hbv-border-strong,#4a4a57)}
.hbv-notice{border:1px solid var(--hbv-border,#2a2a33);border-left:3px solid var(--hbv-accent,#d4a94c);background:var(--hbv-surface,#15151a);color:var(--hbv-text,#e9e6df);padding:.75rem 1rem;border-radius:8px;font-size:.875rem;line-height:1.5;margin:1rem 0}
.hbv-notice a{color:var(--hbv-accent,#d4a94c);text-decoration:underline}
.hbv-reader{position:relative;background:var(--hbv-surface,#15151a);border:1px solid var(--hbv-border,#2a2a33);border-radius:12px;overflow:hidden}
.hbv-reader:fullscreen{background:#0c0c0f;overflow:auto;border-radius:0}
.hbv-reader__bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;padding:.5rem .75rem;background:rgba(15,15,19,.92);backdrop-filter:blur(6px);border-bottom:1px solid var(--hbv-border,#2a2a33)}
.hbv-reader__btn{min-width:44px;min-height:44px;padding:.25rem .7rem;border-radius:8px;border:1px solid var(--hbv-border-strong,#4a4a57);background:transparent;color:var(--hbv-text,#e9e6df);font-size:1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.hbv-reader__btn:hover,.hbv-reader__btn:focus-visible{background:var(--hbv-surface-2,#1d1d24)}
.hbv-reader__btn--text{font-size:.85rem}
.hbv-reader__pos{min-width:5.5rem;text-align:center;font-variant-numeric:tabular-nums}
.hbv-reader__sep{flex:0 0 1px;align-self:stretch;background:var(--hbv-border,#2a2a33);margin:0 .25rem}
.hbv-reader__status{padding:2rem;text-align:center;color:var(--hbv-muted,#a8a39a)}
.hbv-reader__status[hidden]{display:none}
.hbv-reader__pages{display:flex;flex-direction:column;align-items:center;gap:14px;padding:16px 8px 32px;outline-offset:-3px;max-height:80vh;overflow:auto;background:#0c0c0f;-webkit-user-select:none;user-select:none}
.hbv-reader:fullscreen .hbv-reader__pages{max-height:none;height:calc(100vh - 62px)}
.hbv-rpage{background:#fff;box-shadow:0 8px 30px rgba(0,0,0,.5);max-width:none;flex:0 0 auto}
.hbv-rpage canvas{display:block;width:100%;height:auto}
@media print{.hbv-reader__pages{display:none!important}.hbv-reader::after{content:"Printing is disabled for the online reader.";display:block;padding:2rem}}
