:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #dfe8f3; color: #0f376a; }
button, a { font: inherit; }
.pdf-snap-app { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(145deg, #dce7f3, #edf3f9); }
.pdf-pages { width: 100%; height: 100%; padding-bottom: 30px; overflow-x: hidden; overflow-y: auto; outline: 0; scrollbar-gutter: stable; scroll-behavior: auto; overscroll-behavior: contain; }
.pdf-page { display: grid; width: 100%; height: var(--pdf-page-slot-height, 100%); padding: 14px 18px 18px; place-items: center; overflow: hidden; }
.pdf-page canvas { display: block; max-width: 100%; max-height: 100%; border: 1px solid #b8c8da; border-radius: 2px; background: #fff; box-shadow: 0 10px 30px rgba(20, 55, 94, .2); }
.pdf-page-placeholder { display: grid; max-width: 100%; max-height: 100%; place-items: center; border: 1px solid rgba(122, 148, 177, .35); border-radius: 3px; background: rgba(255, 255, 255, .58); color: #66809d; font-size: .8rem; font-weight: 750; }
.pdf-page-controls { display: none !important; }
.pdf-page-controls button { display: grid; width: 30px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #1769e8; cursor: pointer; font-size: 1.35rem; font-weight: 850; line-height: 1; }
.pdf-page-controls button:hover:not(:disabled) { background: #eaf2ff; }
.pdf-page-controls button:focus-visible { outline: 2px solid #1769e8; outline-offset: 1px; }
.pdf-page-controls button:disabled { color: #afbdcc; cursor: default; }
.pdf-page-controls output { min-width: 64px; color: #315b8d; font-size: .72rem; font-weight: 850; text-align: center; }
.pdf-loading, .pdf-error { position: absolute; z-index: 8; inset: 0; display: grid; align-content: center; justify-items: center; background: linear-gradient(145deg, #e7eff7, #f4f8fc); text-align: center; }
.pdf-loading span { width: 34px; height: 34px; margin-bottom: 13px; border: 3px solid #c6d7eb; border-top-color: #1769e8; border-radius: 50%; animation: pdf-spin .75s linear infinite; }
.pdf-loading strong, .pdf-error strong { font-size: .94rem; }
.pdf-loading small, .pdf-error span { margin-top: 5px; color: #6f849d; font-size: .72rem; }
.pdf-error { padding: 24px; }
.pdf-error a { margin-top: 15px; padding: 9px 14px; border-radius: 9px; background: #1769e8; color: #fff; font-size: .75rem; font-weight: 850; text-decoration: none; }
@keyframes pdf-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .pdf-page { padding: 10px 9px 14px; }
    .pdf-page-controls { top: 8px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .pdf-loading span { animation-duration: 1.5s; }
}
