.ht-pdf{box-sizing:border-box;background:#dedede;border:1px solid #bbb;border-radius:8px;padding:12px;color:#383838;min-width:0}.ht-pdf-title{font-size:18px;font-weight:600;line-height:1.4;margin:0 0 10px}.ht-pdf-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:10px}.ht-pdf-toolbar button{font:inherit;font-size:15px;line-height:1.3;padding:6px 12px;border:1px solid #aaa;border-radius:5px;background:#fff;color:#383838;cursor:pointer}.ht-pdf-toolbar button:focus-visible,.ht-pdf-container:focus-visible{outline:2px solid #555;outline-offset:2px}.ht-pdf-page{box-sizing:border-box;width:64px;font:inherit;padding:5px;background:#fff;color:#383838;border:1px solid #aaa;border-radius:4px}.ht-pdf-viewport{position:relative;height:min(var(--ht-pdf-height,700px),75dvh);min-height:250px;isolation:isolate}.ht-pdf-container{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;background:#bdbdbd;--page-margin:0 auto 12px;--page-border:0;--spreadHorizontalWrapped-margin-LR:6px}.ht-pdf .pdfViewer{padding:12px 0;--scale-factor:1}.ht-pdf .pdfViewer.scrollHorizontal{padding:12px}.ht-pdf-status,.ht-pdf-fallback{font-size:15px;margin:6px 0}.ht-pdf [hidden]{display:none!important}.ht-pdf-dialog[open]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;background:#171717;color:#fff;overflow:hidden}.ht-pdf-dialog::backdrop{background:#171717}.ht-pdf-dialog>.ht-pdf{display:flex;flex-direction:column;height:100%;border:0;border-radius:0}.ht-pdf-dialog .ht-pdf-viewport{height:auto;min-height:0;flex:1}.ht-pdf-dialog .ht-pdf-title{margin-bottom:6px}.ht-pdf .ht-pdf-container .pdfViewer .page{flex-shrink:0}.ht-pdf .ht-pdf-toolbar [data-action=fullscreen]{margin-left:auto}.ht-pdf .ht-pdf-toolbar [data-action=close]{margin-left:auto}
@media(max-width:600px){.ht-pdf{padding:8px}.ht-pdf-toolbar{gap:5px}.ht-pdf-toolbar button{font-size:13px;padding:6px 8px}.ht-pdf-page{width:52px;font-size:14px}.ht-pdf .ht-pdf-toolbar [data-action=fullscreen]{margin-left:0}}

/* Reserve the active scrollbar and fit every page across the other axis. */
.ht-pdf[data-scroll="horizontal"] .ht-pdf-container{overflow-x:scroll;overflow-y:hidden}
.ht-pdf[data-scroll="vertical"] .ht-pdf-container{overflow-x:hidden;overflow-y:scroll}
.ht-pdf-toolbar button:disabled{opacity:.45;cursor:default}
.ht-pdf[data-scroll="horizontal"] .ht-pdf-viewport{height:calc(min(var(--ht-pdf-height,700px),75dvh) + 36px)}
.ht-pdf-dialog .ht-pdf[data-scroll="horizontal"] .ht-pdf-viewport{height:auto}
