.hzb{width:min(1500px,calc(100vw - 64px));max-width:none;position:relative;left:50%;transform:translateX(-50%);margin:70px 0;font:14px/1.6 'HZV Inter',Inter,sans-serif;color:#344258;--book-paper:white;--book-ink:#28364c}.hzb *{box-sizing:border-box}.hzb [hidden]{display:none!important}.hzb>h2{text-align:center;font-size:30px;margin:0 0 30px}.hzb-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}.hzb button{border:1px solid #d5dfed;background:#fff;border-radius:10px;color:#344258;padding:8px 12px;font:13px/1.5 'HZV Inter',Inter,sans-serif;cursor:pointer}.hzb button:disabled{opacity:.4;cursor:default}.hzb button:focus-visible,.hzb input:focus-visible{outline:2px solid #4b8ede;outline-offset:3px}.hzb-saved{padding:16px;border-radius:18px;background:var(--book-paper);border:1px solid #dce5f0}.hzb-saved header{display:flex;align-items:center;justify-content:space-between;font-size:18px}.hzb-saved header button{border:0;background:transparent;font-size:20px}.hzb-saved>p{font-size:11px;color:#8e9bb0}.hzb [data-saved-list]{max-height:360px;overflow:auto;margin:14px 0}.hzb [data-saved-list] button{display:block;text-align:left;width:100%;margin-bottom:8px}.hzb [data-saved-list] small{display:block;font-size:11px;color:#8e9bb0;max-height:38px;overflow:hidden}.hzb-saved>button{display:block;width:100%;margin:7px 0;background:#eef6ff;color:#4b8ede}.hzb-book{padding:32px 40px 16px;border-radius:18px;background:var(--book-paper);box-shadow:0 16px 40px #1d2c4214;min-width:0}.hzb-page{font:19px/1.9 Lora,Georgia,serif;color:var(--book-ink);columns:2;column-gap:50px;column-rule:1px solid #e7e7eb;height:520px;overflow:auto;column-fill:auto;scroll-behavior:smooth}.hzb-page p{margin:0 0 22px}.hzb-page h2{font:600 25px/1.5 Lora,Georgia,serif}.hzb-word{cursor:pointer}.hzb-word:hover,.hzb-word.is-hit{background:#ebf7ff;color:#3275bd;border-radius:3px}.hzb-book nav{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:12px;color:#8e9bb0}.hzb-book nav button{border:0;color:#8e9bb0;background:transparent}.hzb-rail{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:20px}.hzb-rail button{border:0;border-radius:30px;box-shadow:0 2px 6px #25344910}.hzb-rail input{border:1px solid #dce5f0;padding:8px 12px;border-radius:30px;max-width:180px;font:13px 'HZV Inter',Inter,sans-serif}.hzb [data-book-toc-list]{text-align:center;margin-top:15px}.hzb [data-book-toc-list] button{margin:5px}.hzb [data-book-status]{text-align:center;font-size:12px;color:#8e9bb0;min-height:20px}.hzb.hide-saved .hzb-layout{grid-template-columns:1fr}.hzb.hide-saved .hzb-saved{display:none}.hzb.is-dark{--book-paper:#252935;--book-ink:#e2e5ec}.hzb.is-dark .hzb-saved{color:#e2e5ec}.hzb.is-dark .hzb-page h2{color:#e2e5ec}
.hzb-dictionary,.hzb-practice{position:absolute;z-index:20;top:160px;left:50%;transform:translateX(-50%);width:400px;max-width:calc(100% - 24px);padding:22px;background:white;border:1px solid #e1e5ed;border-radius:18px;box-shadow:0 16px 60px #25344930;color:#344258}.hzb-dictionary header,.hzb-practice header{display:flex;justify-content:space-between;align-items:center;gap:10px}.hzb-dictionary header strong{font-size:25px;color:#273248}.hzb-dictionary header button,.hzb-practice header button{border:0;font-size:18px;padding:3px 8px}.hzb-dictionary p{border-bottom:1px solid #edf0f5;padding:12px 0;font-size:13px;margin:0}.hzb [data-dict-vi]{color:#3275bd;font-weight:600}.hzb [data-dict-example]{font:italic 15px/1.6 Lora,Georgia,serif}.hzb-dictionary>button{margin:15px 5px 0 0;background:#eef6ff;color:#3275bd}.hzb-practice input{width:100%;border:1px solid #dce5f0;border-radius:8px;font:18px Lora,Georgia,serif;padding:10px}.hzb-practice>p{font-size:18px;min-height:30px}.hzb-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
@media(max-width:1000px){.hzb-layout{grid-template-columns:190px minmax(0,1fr);gap:15px}.hzb-page{columns:1;height:480px}.hzb-book{padding:25px}}
@media(max-width:600px){.hzb{width:calc(100vw - 32px)}.hzb-layout{grid-template-columns:1fr}.hzb-saved [data-saved-list]{max-height:180px}.hzb-page{height:460px;font-size:18px}.hzb-book{padding:20px}.hzb-book nav button{font-size:11px;padding:7px}.hzb-dictionary,.hzb-practice{top:220px}}
/* Adapted from ELC's reader viewport, highlight toolbar and dictionary. */
.hzb-book{padding:44px 56px 16px;border-radius:14px;box-shadow:0 10px 34px #00000024}.hzb-page{font-family:'EB Garamond',Georgia,serif;font-size:22px;line-height:1.9;text-align:justify;column-gap:64px;column-fill:balance;column-rule:1px solid #00000014;height:520px}.hzb-page :is(p,h2,h3,li){break-inside:avoid;margin:0 0 1.1em}.hzb-page h2{font:600 1.3em/1.5 'EB Garamond',Georgia,serif;text-align:left;color:inherit}.hzb-page p{text-indent:0}
.hzb-highlight-tools{position:absolute;z-index:30;display:flex;align-items:stretch;gap:2px;background:white;padding:8px 10px;border-radius:12px;border:1px solid #0000000f;box-shadow:0 10px 28px #0003;max-width:calc(100% - 16px);flex-wrap:wrap}.hzb-highlight-tools button{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;border-radius:6px;padding:5px 8px;font-size:18px}.hzb-highlight-tools small{font-size:10px}.hzb-hl-colors{display:flex;align-items:center;gap:7px;padding:0 8px;border-left:1px solid #0001;border-right:1px solid #0001}.hzb .hzb-hl-colors button{width:20px;height:20px;border:2px solid white;border-radius:50%;padding:0;box-shadow:0 0 0 1px #0002}.hzb mark{color:inherit;padding:0}.hzb-mark-highlight.hzb-mark-yellow{background:#fef08a}.hzb-mark-highlight.hzb-mark-green{background:#bbf7d0}.hzb-mark-highlight.hzb-mark-pink{background:#fbcfe8}.hzb-mark-highlight.hzb-mark-blue{background:#ebf7ff}.hzb-mark-underline{background:none;border-bottom:2px solid #16a34a}.hzb-mark-wavy{background:transparent;text-decoration:underline wavy #2563eb;text-underline-offset:4px}.hzb-mark-note{background:#fff2c7;border-bottom:2px dotted #d69e2e;cursor:pointer}
.hzb-notes-panel{position:absolute;top:100px;right:16px;width:350px;max-width:calc(100% - 32px);max-height:560px;overflow:auto;padding:18px;border:1px solid #dce4ee;border-radius:16px;background:#fff;box-shadow:0 16px 50px #25344926;z-index:25}.hzb-notes-panel header{display:flex;justify-content:space-between;align-items:center}.hzb-notes-panel article{border-top:1px solid #edf0f5;padding:12px 0}.hzb-notes-panel article button:first-child{border:0;text-align:left;background:#f8fafc;width:100%;font-size:12px}.hzb-notes-panel textarea{width:100%;min-height:70px;padding:8px;border:1px solid #dce4ee;border-radius:8px;margin:8px 0;font:13px/1.6 'HZV Inter',Inter,sans-serif}
.hzb .hzb-dictionary{width:400px;padding:22px;color:#28344a;font:400 13px/1.55 'HZV Inter',Inter,sans-serif;border:1px solid #64748b2e;box-shadow:0 22px 60px #122e3040;max-height:620px;overflow:auto}.hzb-dictionary header{align-items:flex-start}.hzb-dictionary header>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.hzb-dictionary header strong{font:700 25px/1.15 'HZV Inter',Inter,sans-serif}.hzb [data-dict-pos]{padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:700}.hzb-dict-icons{display:flex;gap:4px;flex-shrink:0}.hzb .hzb-dict-icons button{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;font-size:18px;color:#667085}.hzb .hzb-dict-icons button[aria-pressed=true]{background:#edf5ff;color:#3275d1}.hzb-pronounce{display:flex;align-items:center;gap:8px;padding:16px 0}.hzb-pronounce>div{display:flex;flex-direction:column;gap:3px}.hzb-pronounce small{font-size:10px;color:#8a94a6;font-weight:700}.hzb .hzb-pronounce button{border:0;background:transparent;padding:4px;color:#667085}.hzb-dictionary dl{margin:12px 0 0}.hzb-dictionary dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;border-top:1px solid #edf0f4;padding:12px 0}.hzb-dictionary dt{font-size:11px;font-weight:700;color:#8a94a6}.hzb-dictionary dd{margin:0;font-size:13px;overflow-wrap:anywhere}.hzb-dictionary dd:empty{display:none}.hzb-dictionary dl>div:has(dd:empty){display:none}.hzb [data-dict-vi]{font-size:15px;font-weight:700;color:#246fc5}.hzb [data-dict-example]{font:italic 14px/1.55 Georgia,serif}.hzb.is-dark .hzb-page{color:#e2e8f0}@media(max-width:1000px){.hzb-book{padding:28px}.hzb-page{columns:1;height:480px}}@media(max-width:600px){.hzb-book{padding:22px}.hzb-page{font-size:20px}.hzb-highlight-tools{gap:0;padding:6px}.hzb-highlight-tools button{padding:5px}.hzb-dictionary dl>div{grid-template-columns:92px minmax(0,1fr)}}
