:root{font-family:Arial,Helvetica,sans-serif;color:#232b32;background:#fff;color-scheme:light;--blue:#0076bf;--pale:#e3f4ff}*{box-sizing:border-box}body{margin:0}#viewer{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;padding:12px 24px 16px;gap:4px;overflow:hidden}header{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:15px;margin:0;text-align:center;font-weight:600;color:#414b54}h1 small{display:block;font-size:11px;font-weight:400;color:#697780;margin-top:3px}.tool,.download,.arrow{display:inline-flex;align-items:center;justify-content:center;color:#60717c;background:#fff;border:0;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.tool{width:42px;height:42px;border-radius:9px}.tool:hover,.download:hover{background:#f0f6fa;color:var(--blue)}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stage{position:relative;min-height:0;display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:12px}.viewport{height:100%;width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-x pan-y;display:flex;align-items:center;justify-content:center}.paper{flex:none;position:relative;display:flex;align-items:center;justify-content:center;width:var(--paper-width,100%);height:var(--paper-height,100%)}.paper img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.viewport.zoomed{display:block}.arrow{width:72px;height:72px;border:3px solid var(--blue);border-radius:50%;color:var(--blue);justify-self:center;z-index:1}.arrow svg{width:37px;height:37px;stroke-width:3.4}.arrow:hover:not(:disabled){background:var(--pale)}.arrow:disabled{opacity:.22;cursor:default}.next:not(:disabled){background:#b7e3ff}footer{padding:2px clamp(4px,4vw,60px) 0}.progress{display:flex;align-items:center;gap:16px;margin:7px 0 12px}.progress input{flex:1;min-width:0;accent-color:#0093e8;cursor:pointer;height:24px;margin:0}.progress output{font-size:13px;color:#50616d;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:130px;text-align:right}.controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.tools{display:flex;align-items:center;gap:3px}#zoom-label{font-size:12px;color:#64727c;margin-left:4px}.download{gap:6px;padding:9px 12px;border:1px solid #dce4e9;border-radius:8px;font-size:13px;font-weight:600}.download svg{width:18px;height:18px}button:disabled{opacity:.35;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,.viewport:focus-visible{outline:3px solid #0093e8;outline-offset:3px}#viewer:fullscreen{height:100vh;padding:12px 24px 16px}@media(max-width:650px){#viewer,#viewer:fullscreen{padding:8px 8px 12px}.stage{grid-template-columns:46px minmax(0,1fr) 46px;gap:2px}.arrow{width:44px;height:44px;border-width:2px}.arrow svg{width:26px;height:26px}.progress{gap:8px}.progress output{min-width:auto;font-size:11px}.tool{width:37px;height:40px}.tools{gap:0}footer{padding:0 3px}h1{font-size:13px}h1 small{font-size:10px}}@media(max-height:450px) and (orientation:landscape){#viewer{padding:4px 10px;gap:0}header .tool{height:30px}h1 small{display:none}.progress{margin:0}.controls .tool{height:32px}.arrow{width:46px;height:46px}.stage{grid-template-columns:52px minmax(0,1fr) 52px}}
