*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#fff;overflow:hidden}body{font-family:Arial,sans-serif}#viewer{position:relative;width:100%;height:100%;overflow:hidden;touch-action:none;cursor:grab;background:#fff;outline-offset:-4px}#viewer:active{cursor:grabbing}#frame{display:block;width:100%;height:100%;pointer-events:none}#expand{position:absolute;right:max(16px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top));width:46px;height:46px;border:1px solid #ddd;background:#fffffff0;color:#343a40;border-radius:8px;font-size:30px;cursor:pointer;line-height:1}button:focus-visible,#viewer:focus-visible{outline:3px solid #b2945f}#loading{position:absolute;left:calc(50% - 15px);top:calc(50% - 15px);width:30px;height:30px;border:2px solid #ddd;border-top-color:#b2945f;border-radius:50%;animation:spin 1s linear infinite;pointer-events:none}#loading[hidden]{display:none}#error{position:absolute;inset:40% 15% auto;text-align:center;background:white;padding:20px;color:#555}#error button{padding:12px;margin:8px}#viewer.expanded{position:fixed;inset:0;width:100vw;height:100dvh;z-index:2147483647}#viewer:fullscreen{width:100vw;height:100vh}#viewer:-webkit-full-screen{width:100vw;height:100vh}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#loading{animation:none}}

/* Contrast cursors: embedded assets, no extra files required. */
#viewer{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22white%22%20stroke%3D%22%23333%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9%2017V9c0-3%204-3%204%200v7-10c0-3%204-3%204%200v10-8c0-3%204-3%204%200v8-5c0-3%204-3%204%200v10c0%206-4%209-9%209-4%200-6-2-8-5l-4-6c-2-3%201-5%203-3l2%202z%22%2F%3E%3C%2Fsvg%3E") 16 16,grab}
#viewer:active{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20fill%3D%22white%22%20stroke%3D%22%23333%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%20d%3D%22M8%2016v-4c0-3%204-3%204%200v-2c0-3%204-3%204%200v1c0-3%204-3%204%200v2c0-3%204-3%204%200v8c0%206-4%209-9%209-4%200-6-3-8-6l-3-5c-1-3%202-5%204-3z%22%2F%3E%3C%2Fsvg%3E") 16 16,grabbing}
#expand,#expand:active{cursor:default;color:#333;border:1px solid #888;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
#expand:hover{background:#f0f0f0;border-color:#333}

