*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#dfe6ef;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#17335a}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #e9b826;outline-offset:-3px}
.reader{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;width:100%;height:100%;height:100dvh;overflow:hidden;background:#dfe6ef;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.reader:fullscreen{width:100%;height:100%;height:100dvh}.reader-head{display:flex;align-items:center;flex-shrink:0;position:relative;gap:4px;padding:4px 6px;background:#102b60;color:white;min-height:52px}.reader-head h1{flex:1;min-width:0;margin:0;padding:0 6px;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;text-decoration:none}.icon:hover:not(:disabled){background:#7893b122}.icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.reader-controls{display:flex;align-items:center;flex-shrink:0;gap:1px;padding:0 4px;background:#fff;border-bottom:1px solid #c4cfde;min-height:46px}.toolbar-space{flex:1}.page-jump{display:flex;align-items:center;gap:4px;margin:0;white-space:nowrap;font-size:13px}.page-jump input{width:43px;height:34px;padding:2px;text-align:center;border:1px solid #b9c9dd;border-radius:6px;background:#f5f8fc;color:#17335a;font-size:16px;appearance:textfield;-moz-appearance:textfield}.page-jump input::-webkit-inner-spin-button,.page-jump input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.zoom-value{padding:0 2px;min-width:45px;height:44px;border:0;background:transparent;font-size:12px;font-weight:600;color:inherit}.reader-stage{flex:1;min-width:0;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;touch-action:none;padding:4px;scrollbar-width:thin}.reader-stage canvas{display:block;margin:0 auto;max-width:none;background:#fff;box-shadow:0 2px 8px #102b6020}.reader progress{flex-shrink:0;width:100%;height:3px;margin:0;accent-color:#edbc2b}.reader-message{position:absolute;top:108px;left:50%;transform:translateX(-50%);max-width:90%;z-index:3;padding:10px 14px;border-radius:8px;background:#102b60;color:white;font-size:13px;box-shadow:0 3px 12px #102b6030}.reader-error{position:absolute;inset:110px 12px auto;z-index:4;background:#fff;padding:18px;border:1px solid #c4cfde;border-radius:10px}.reader-error p{margin:0 0 12px;line-height:1.5}.reader-error a,.reader-error button{display:inline-block;padding:10px 12px;color:#17335a;border:1px solid #9ab0cf;border-radius:6px;margin:4px;background:white;text-decoration:none}.book-options{position:absolute;right:8px;top:50px;z-index:6;width:220px;max-width:calc(100vw - 20px);background:#fff;color:#17335a;border:1px solid #c4cfde;border-radius:10px;padding:6px;box-shadow:0 5px 20px #102b6040}.book-options button,.book-options a{display:block;width:100%;padding:12px 10px;text-align:left;color:inherit;text-decoration:none;border:0;border-radius:5px;background:transparent;font-size:14px}.book-options button:hover,.book-options a:hover{background:#eef3fb}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:700px){.reader-controls{justify-content:center;gap:8px}.toolbar-space{flex:0 0 24px}.reader-head h1{font-size:16px}.reader-stage{padding:8px}}@media(max-width:350px){.reader-controls{gap:0;padding:0}.reader-controls .icon{flex-basis:40px;width:40px}.page-jump{gap:2px}.page-jump input{width:38px}.zoom-value{min-width:40px}}
