.pdf-reader {min-width:0; border:1px solid #ccc; border-radius:4px; overflow:hidden; scroll-margin-top:220px;}
.pdf-toolbar {display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; padding:.6rem; background:#f4f4f7; border-bottom:1px solid #ccc;}
.pdf-viewport + .pdf-toolbar {border-bottom:0; border-top:1px solid #ccc;}
.pdf-toolbar label {display:flex; align-items:center; gap:.4rem; font-size:.9rem;}
.pdf-toolbar button {width:44px; height:44px; display:grid; place-items:center; border:1px solid #bbb; border-radius:4px; background:white; cursor:pointer;}
.pdf-toolbar button:disabled {opacity:.4; cursor:default;}
.pdf-toolbar input {width:4rem;}
.pdf-toolbar input,.pdf-toolbar select {height:44px; padding:.4rem; min-width:0; border:1px solid #aaa; border-radius:4px; background:white;}
.pdf-reader [role=status] {margin:.4rem .75rem; font-size:.875rem;}
.pdf-viewport {width:100%; max-height:80vh; overflow:auto; background:#e7e7ea; min-height:240px;}
.pdf-viewport canvas {display:block; background:white; max-width:none;}
.pdf-text {margin-top:1rem; overflow-wrap:anywhere;}
.pdf-text summary {padding:.75rem 0; cursor:pointer;}
.pdf-text p {white-space:normal;}
