.gd-catalog-page{margin:0;background:#edf1f7;color:#17263f;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.gd-shell{max-width:1500px;margin:auto;padding:24px}.gd-catalog{--gd-ink:#162a48;--gd-line:#dce3ed;color:var(--gd-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f6fa;border:1px solid var(--gd-line);border-radius:20px;overflow:hidden;box-sizing:border-box}.gd-catalog *{box-sizing:border-box}.gd-header{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;padding:22px 24px}.gd-eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#60718a}.gd-header h2{font:700 clamp(19px,2.5vw,28px)/1.2 system-ui;margin:6px 0 0;color:var(--gd-ink)}.gd-catalog button,.gd-catalog a.gd-download{background:#fff;border:1px solid #cdd7e6;border-radius:9px;color:#172d4e;padding:9px 13px;font:600 13px/1.3 system-ui;cursor:pointer;min-height:38px;text-decoration:none;white-space:nowrap}.gd-catalog button:hover:not(:disabled){background:#e8eef8}.gd-catalog button:focus-visible,.gd-catalog input:focus-visible{outline:3px solid #527ee5;outline-offset:2px}.gd-catalog button:disabled{opacity:.4;cursor:default}.gd-header button{background:#18365d;color:#fff;border-color:#18365d}.gd-header button:hover:not(:disabled){background:#244c80}.gd-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;background:#fff;border-top:1px solid var(--gd-line);border-bottom:1px solid var(--gd-line);padding:12px}.gd-page-label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.gd-page-input{width:57px!important;min-width:0!important;background:#fff!important;color:#17263f!important;font:500 14px system-ui!important;border:1px solid #cdd7e6!important;border-radius:7px!important;padding:8px 4px!important;height:37px!important;margin:0!important}.gd-divider{width:1px;height:25px;background:var(--gd-line);margin:0 5px}.gd-zoom{font-size:12px;min-width:43px;text-align:center}.gd-status{font-size:12px;text-align:center;min-height:18px;margin:10px 12px;color:#51647e}.gd-stage{height:65vh;min-height:300px;overflow:auto;overscroll-behavior:contain;padding:16px;scrollbar-gutter:stable;background:radial-gradient(ellipse at center,#e4e9f1,#cfd8e6)}.gd-pages{display:flex;gap:3px;width:max-content;min-width:100%;min-height:100%;justify-content:safe center;align-items:flex-start}.gd-pages canvas{display:block;max-width:none!important;background:white;box-shadow:0 8px 28px #172c4b26;flex:none}.gd-hint{font-size:11px;text-align:center;margin:12px 15px;color:#60718a}.gd-catalog:fullscreen{border-radius:0;width:100%;height:100%;display:flex;flex-direction:column;background:#f4f6fa}.gd-catalog:fullscreen .gd-stage{height:auto;flex:1;min-height:0}.gd-catalog:fullscreen .gd-header{padding:12px 20px}.gd-catalog:fullscreen .gd-hint{margin:8px}@media(max-width:600px){.gd-shell{padding:8px}.gd-catalog{border-radius:12px}.gd-header{padding:16px 12px}.gd-header button{font-size:11px;padding:9px}.gd-toolbar{gap:5px;padding:10px 6px}.gd-toolbar button{padding:8px 10px;font-size:12px}.gd-divider{display:none}.gd-stage{padding:10px;height:64vh;min-height:260px}.gd-hint{font-size:10px}}

/* Keep canvas swaps inside a stable viewport, without geometry animations. */
.gd-shell{width:100%;min-width:0;box-sizing:border-box}
.gd-catalog{width:100%;max-width:100%;min-width:0}
.gd-stage{position:relative;min-width:0;overflow-anchor:none}
.gd-pages{animation:none;transform:none}
/* Side controls stay visible while the PDF is scrolled or enlarged. */
.gd-view{position:relative;min-width:0}
.gd-view .gd-stage{padding-left:58px;padding-right:58px}
.gd-catalog .gd-side-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:42px;height:64px;min-height:0;padding:0;border:1px solid #d4deeb;border-radius:12px;background:#18365d;color:#fff;font:500 40px/1 system-ui;box-shadow:0 3px 12px #14294520;touch-action:manipulation}
.gd-catalog .gd-side-arrow:hover:not(:disabled){background:#244c80;color:#fff}
.gd-catalog .gd-side-arrow:disabled{opacity:.3;background:#62758e;color:#fff}
.gd-side-prev{left:8px}.gd-side-next{right:8px}
.gd-zoom-tip{font-weight:600}
.gd-catalog:fullscreen .gd-view{flex:1;min-height:0;display:flex;flex-direction:column}
.gd-catalog:fullscreen .gd-view .gd-stage{flex:1;min-height:0}
@media(max-width:600px){.gd-view .gd-stage{padding-left:42px;padding-right:42px}.gd-catalog .gd-side-arrow{width:32px;height:52px;border-radius:9px;font-size:32px}.gd-side-prev{left:5px}.gd-side-next{right:5px}.gd-zoom-tip{display:block;margin-bottom:3px}}
/* Mobile reader: fit the sheet to its width instead of a tall fixed stage. */
@media(max-width:700px){
 .gd-shell{padding:0}
 .gd-catalog{border-radius:8px;box-shadow:none}
 .gd-header{padding:10px 12px;gap:8px}
 .gd-eyebrow{display:none}
 .gd-header h2{font-size:15px;margin:0;line-height:1.3}
 .gd-header button{font-size:10px;padding:6px 8px;min-height:30px}
 .gd-toolbar{padding:8px 5px;gap:4px;flex-wrap:wrap}
 .gd-toolbar button,.gd-catalog .gd-download{padding:5px 7px;min-height:32px;font-size:11px;border-radius:6px}
 .gd-toolbar [data-action="fit"],.gd-toolbar [data-action="mode"]{display:none}
 .gd-page-label{font-size:10px;gap:3px}
 .gd-page-input{width:35px!important;height:32px!important;padding:5px 2px!important;font-size:12px!important}
 .gd-zoom{font-size:10px;min-width:30px}
 .gd-toolbar [data-action="full"],.gd-catalog .gd-download{font-size:0;min-width:32px;display:inline-flex;justify-content:center;align-items:center}
 .gd-toolbar [data-action="full"]::before{content:"⛶";font:20px/1 system-ui}
 .gd-catalog .gd-download::before{content:"↓";font:20px/1 system-ui}
 .gd-status{font-size:10px;min-height:14px;margin:6px 8px}
 .gd-view .gd-stage{padding:4px;height:260px;min-height:0}
 .gd-pages{min-height:0}
 .gd-catalog .gd-side-arrow{width:28px;height:44px;font-size:29px;opacity:.88;border-radius:7px}
 .gd-side-prev{left:3px}.gd-side-next{right:3px}
 .gd-hint{margin:8px;font-size:10px;line-height:1.4}
 .gd-catalog:fullscreen .gd-view .gd-stage{height:auto!important;min-height:0}
}

@media(max-width:700px){
 .gd-catalog:fullscreen .gd-header,.gd-catalog:fullscreen .gd-hint{display:none}
 .gd-catalog:fullscreen .gd-pages{align-items:center;min-height:100%}
 .gd-catalog:fullscreen .gd-view .gd-stage{padding:4px}
 .gd-catalog .gd-side-arrow{width:28px;height:44px}
}
/* Pinch gestures redraw the PDF at the requested zoom after the gesture. */
.gd-stage{touch-action:pan-x pan-y}
.gd-catalog .gd-landscape{display:none}
.gd-phone .gd-toolbar .gd-landscape{display:inline-flex;font-size:11px;min-height:32px;align-items:center}
.gd-phone .gd-toolbar [data-action="full"]{display:none}
.gd-phone:fullscreen .gd-header,.gd-phone:fullscreen .gd-hint{display:none}
.gd-phone:fullscreen .gd-view .gd-stage{padding:4px}
