.spx-media-dialog.is-pdf-viewer{width:min(1180px,96vw);height:92vh;height:92dvh;max-height:92dvh;padding:0;overflow:hidden}
.spx-media-dialog.is-pdf-viewer[open]{display:flex;flex-direction:column}
.is-pdf-viewer .spx-dialog-bar{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:16px;align-items:center;padding:14px 20px;min-width:0}
.is-pdf-viewer .spx-dialog-bar h2{font-size:1rem;line-height:1.4;min-width:0;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.is-pdf-viewer .spx-dialog-bar>a{font-size:.82rem;white-space:nowrap}
.is-pdf-viewer [data-dialog-close]{width:44px;height:44px;min-width:44px;padding:10px;border:1px solid #c7d8ee;border-radius:50%;color:var(--navy);background:#f3f7fd;display:grid;place-items:center}
.is-pdf-viewer [data-dialog-close]:hover{background:#dce9fb}
.is-pdf-viewer .spx-dialog-content{flex:1;min-width:0;min-height:0;height:auto;overflow:hidden;display:block;background:#e9eff6}
.spx-pdf-reader{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;color:var(--ink);font-size:14px}
.spx-pdf-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;background:#f4f8fe;border-bottom:1px solid #cbdbee;flex:0 0 auto;min-width:0}
.spx-pdf-tools{display:grid;align-items:center;gap:5px;min-width:0;flex:0 0 auto;max-width:100%}
.spx-pdf-pages{grid-template-columns:40px 98px 50px 40px;width:243px}
.spx-pdf-zoom-tools{grid-template-columns:40px 150px 40px;width:240px}
.spx-pdf-secondary{grid-template-columns:40px 88px 114px;width:252px}
.spx-pdf-tools button,.spx-pdf-tools>a,.spx-pdf-error-actions>*{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;min-height:40px;padding:8px;border:1px solid #c6d6eb;border-radius:7px;background:#fff;color:#254c7e;font:inherit;line-height:1.2;text-decoration:none;flex-shrink:0}
.spx-pdf-tools button:hover,.spx-pdf-tools>a:hover,.spx-pdf-error-actions>*:hover{background:#dce9fb;border-color:#9fbce3}
.spx-pdf-tools button[aria-pressed=true]{background:var(--blue);color:#fff;border-color:var(--blue)}
.spx-pdf-tools svg{width:19px;height:19px;flex-shrink:0}
.spx-pdf-tools button:not([data-pdf-text]){width:40px;height:40px;flex:0 0 40px}
.spx-pdf-tools [data-pdf-text]{width:88px;height:40px;flex:0 0 88px}
.spx-pdf-tools [data-pdf-download]{width:114px;height:40px;flex:0 0 114px}
.spx-pdf-page-label{display:flex;gap:6px;align-items:center;white-space:nowrap}
.spx-pdf-page-label input{width:50px;min-width:44px;height:40px;padding:5px;text-align:center;background:#fff;border:1px solid #c6d6eb;border-radius:6px;font:inherit;color:var(--navy);appearance:textfield;-moz-appearance:textfield}
.spx-pdf-page-label input::-webkit-inner-spin-button{appearance:none;margin:0}
.spx-pdf-total{white-space:nowrap;min-width:34px}
.spx-pdf-tools select{width:150px;max-width:100%;min-width:0;height:40px;padding:6px 24px 6px 8px;border:1px solid #c6d6eb;border-radius:6px;background:#fff;color:var(--navy);font:inherit}
.spx-pdf-secondary{margin-left:auto}
.spx-pdf-viewport{flex:1;min-width:0;min-height:0;overflow:auto;padding:12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;background:#e9eff6;scroll-behavior:auto}
.spx-pdf-viewport[aria-busy=true]{cursor:progress}
.spx-pdf-sheet{position:relative;margin-inline:auto;background:#fff;box-shadow:0 3px 18px #1835541f;flex:none}
.spx-pdf-sheet canvas{display:block;max-width:none;max-height:none}
.spx-pdf-text-page{width:100%;max-width:76ch;margin-inline:auto;padding:clamp(18px,4vw,38px);background:#fff;border-radius:8px;line-height:1.85;overflow-wrap:anywhere;color:#21384f}
.spx-pdf-text-page p{text-align:justify;hyphens:auto;-webkit-hyphens:auto;line-height:inherit;margin-bottom:1em}
.spx-pdf-text-page p:last-child{margin-bottom:0}
.spx-pdf-bottom{display:flex;gap:14px;justify-content:space-between;align-items:center;flex:0 0 auto;padding:7px 14px;background:#fff;border-top:1px solid #d4e0ef;color:var(--muted);font-size:.75rem}
.spx-pdf-status{margin:0;line-height:1.5}
.spx-pdf-status.is-error{color:#922d39}
.spx-pdf-error{max-width:550px;padding:30px;margin:25px auto;background:#fff;border:1px solid #cbdbee;border-radius:12px}
.spx-pdf-error h3{font-size:1.1rem;line-height:1.45}
.spx-pdf-error-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
@media(max-width:740px){
 .spx-media-dialog.is-pdf-viewer{width:calc(100vw - 16px);height:94vh;height:94dvh;max-width:none;max-height:94dvh;border-radius:12px}
 .is-pdf-viewer .spx-dialog-bar{grid-template-columns:minmax(0,1fr) 44px;gap:5px 12px;padding:12px 14px}
 .is-pdf-viewer .spx-dialog-bar h2{font-size:.87rem;grid-column:1;grid-row:1}
 .is-pdf-viewer .spx-dialog-bar>a{grid-column:1;grid-row:2;justify-self:start;font-size:.76rem}
 .is-pdf-viewer [data-dialog-close]{grid-column:2;grid-row:1 / span 2}
 .spx-pdf-toolbar{display:grid;grid-template-columns:minmax(0,1fr);padding:8px;gap:7px;justify-items:center}
 .spx-pdf-tools{gap:4px;font-size:12px}
 .spx-pdf-pages{width:240px}
 .spx-pdf-zoom-tools{grid-template-columns:40px 168px 40px;width:256px}
 .spx-pdf-secondary{width:250px}
 .spx-pdf-tools button,.spx-pdf-tools>a{min-width:40px;min-height:40px;padding:8px}
 .spx-pdf-secondary{margin-left:0}
 .spx-pdf-page-label input{font-size:16px}
 .spx-pdf-tools select{width:168px;font-size:16px}
 .spx-pdf-bottom{padding:6px 12px;font-size:11px}
 .spx-pdf-hint{display:none}
 .spx-pdf-text-page{padding:18px}
 .spx-pdf-error{padding:22px;margin:12px 0}
}
@media(max-width:360px){.spx-pdf-toolbar{gap:6px}}
