#ff-pdf-viewer{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:#f0e9e2;color:#211b19;overflow:hidden;overscroll-behavior:contain;font:16px/1.5 system-ui,-apple-system,sans-serif;box-sizing:border-box}
#ff-pdf-viewer[open]{display:flex;flex-direction:column}
#ff-pdf-viewer::backdrop{background:#211b19b3}
#ff-pdf-viewer .ff-pdf-toolbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:#fffaf2;border-bottom:1px solid #d5c4b5;z-index:2;box-shadow:0 2px 8px #0001}
#ff-pdf-viewer button,#ff-pdf-viewer .ff-pdf-save{font:inherit;line-height:1.3;cursor:pointer;border:1px solid #731b24;border-radius:12px;padding:12px 16px;min-height:48px;color:#731b24;background:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation}
#ff-pdf-viewer #ff-pdf-back{background:#731b24;color:#fff;font-weight:700}
#ff-pdf-viewer .ff-pdf-body{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 12px calc(24px + env(safe-area-inset-bottom));text-align:center}
#ff-pdf-viewer h2{font:700 20px/1.35 system-ui,-apple-system,sans-serif;max-width:1000px;margin:0 auto 8px}
#ff-pdf-viewer p{margin:8px auto 16px;max-width:850px}
#ff-pdf-viewer img{display:block;width:100%;max-width:1100px;height:auto;margin:0 auto;box-shadow:0 2px 14px #0002;background:#fff;touch-action:pan-x pan-y pinch-zoom}
#ff-pdf-viewer :focus-visible{outline:3px solid #c28b24;outline-offset:3px}
body:has(#ff-pdf-viewer[open]){overflow:hidden}
@media(max-width:440px){#ff-pdf-viewer .ff-pdf-toolbar{gap:8px}#ff-pdf-viewer button,#ff-pdf-viewer .ff-pdf-save{font-size:14px;padding:12px 10px}}
