.epub-reader{width:100%;min-width:0}
.epub-viewport{height:clamp(380px,65svh,850px);width:100%;overflow:hidden;position:relative;touch-action:pan-y;background:transparent}
.epub-flow{height:100%;column-fill:auto;column-gap:32px;line-height:1.85;font-size:21px;overflow:visible;will-change:transform;overflow-wrap:anywhere}
.epub-flow *{box-sizing:border-box;max-width:100%}
.epub-flow p{margin:0 0 .85em;text-align:justify;text-justify:inter-ideograph;white-space:normal;orphans:2;widows:2}
.epub-flow h1{font-size:1.65em;line-height:1.4;margin:0 0 .8em;break-after:avoid}
.epub-flow h2{font-size:1.3em;line-height:1.5;margin:1em 0 .6em;break-after:avoid}
.epub-flow h3{font-size:1.12em;line-height:1.5;break-after:avoid}
.epub-flow figure{margin:1em 0;break-inside:avoid;max-height:100%}
.epub-flow img{display:block;max-width:100%;max-height:45svh;width:auto;height:auto;object-fit:contain;margin:0 auto}
.epub-flow figcaption{font-size:.78em;line-height:1.5;text-align:center;margin:.4em 0}
.epub-flow table{width:100%;border-collapse:collapse;font-size:.78em;line-height:1.5;break-inside:auto}
.epub-flow th,.epub-flow td{border:1px solid currentColor;padding:.35em;vertical-align:top;text-align:left}
.epub-flow tr{break-inside:avoid}
.epub-flow a{color:inherit;text-decoration:underline}
.epub-flow .epub-pagebreak,.epub-flow [hidden]{display:none!important}
.epub-page-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1rem 0}
.epub-page-controls button{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px;padding:.6em 1em;cursor:pointer;min-height:44px}
.epub-page-controls button:disabled{opacity:.4;cursor:default}
.epub-load-status{font-size:.8rem;min-height:1.5em}
@media(max-width:600px){.epub-viewport{height:60svh;min-height:320px}.epub-flow img{max-height:39svh}.epub-page-controls button{padding:.5em .75em}}
