/* PRINTLY ORDER DESIGN PROOF V1 — scoped to Track Your Order; original proof-viewer.css remains untouched. */
.odpv{width:100%;min-width:0;margin:16px 0 0;color:var(--text,#151922);font-family:inherit}
.odpv *{box-sizing:border-box}
.odpv-shell{border:1px solid var(--line,#dfe2e8);background:var(--panel,#fff);border-radius:16px;overflow:hidden}
.odpv-bar{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--panel2,#f6f7f9);border-bottom:1px solid var(--line,#dfe2e8)}
.odpv-heading{display:grid;gap:3px;min-width:0}
.odpv-heading strong{font-size:14px;font-weight:850;overflow-wrap:anywhere}
.odpv-heading small{font-size:12px;color:var(--muted,#667085)}
.odpv-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.odpv-tool{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:39px;padding:8px 11px;border:1px solid var(--line,#dfe2e8);border-radius:10px;background:var(--panel,#fff);font:800 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text,#111);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.odpv-tool:focus-visible,.odpv-page:focus-visible{outline:3px solid #4889fa;outline-offset:2px}
.odpv-tool:disabled{opacity:.4;cursor:default}
.odpv-zoom{padding:0 7px;min-width:50px;font-size:12px;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}
.odpv-body{display:grid;grid-template-columns:140px minmax(0,1fr);min-width:0}
.odpv-rail{border-right:1px solid var(--line,#dfe2e8);padding:10px;display:flex;flex-direction:column;align-items:stretch;gap:8px;max-height:620px;overflow:auto;overscroll-behavior:contain;background:var(--panel2,#f6f7f9)}
.odpv-page{flex:none;display:block;width:100%;border:1px solid var(--line,#dfe2e8);border-radius:11px;background:var(--panel,#fff);padding:6px;cursor:pointer;text-align:center;color:var(--text,#111);font:750 11px/1.3 system-ui,-apple-system,sans-serif;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.odpv-page[aria-current="page"]{border:2px solid #3481f6;padding:5px;box-shadow:0 0 0 2px rgba(52,129,246,.16)}
.odpv-thumb{display:grid;place-items:center;width:100%;height:96px;margin-bottom:5px;border-radius:7px;background:#f0f2f5;overflow:hidden}
.odpv-thumb canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto}
.odpv-main{min-width:0;position:relative;background:#181b21}
.odpv-stage{height:clamp(370px,59vh,650px);min-height:370px;position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:grab;outline-offset:-3px;-webkit-user-select:none;user-select:none;isolation:isolate}
.odpv-stage.odpv-grabbing{cursor:grabbing}
.odpv-stage:focus-visible{outline:3px solid #81b3ff}
.odpv-canvas{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;pointer-events:none}
.odpv-canvas canvas,.odpv-canvas img{display:block;max-width:none;max-height:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;image-rendering:auto}
.odpv-mark{position:absolute;left:0;top:0;pointer-events:none;user-select:none;z-index:1;overflow:hidden;opacity:.20}
.odpv-mark svg{width:100%;height:100%;display:block}
.odpv-badge{position:absolute;bottom:10px;right:10px;padding:7px 10px;background:rgba(0,0,0,.72);color:white;border-radius:9px;font:800 12px/1.2 system-ui,-apple-system,sans-serif;pointer-events:none;z-index:3}
.odpv-progress{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;background:#191b20;color:#f2f2f2;font:700 14px/1.5 system-ui,-apple-system,sans-serif}
.odpv-progress[hidden]{display:none}
.odpv-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:11px 14px;background:var(--panel2,#f6f7f9);border-top:1px solid var(--line,#dfe2e8)}
.odpv-page-nav{display:flex;align-items:center;gap:7px}
.odpv-count{font-size:12px;font-weight:800;color:var(--text,#111);white-space:nowrap;font-variant-numeric:tabular-nums}
.odpv-open{font-size:12px;font-weight:750;color:var(--accent,#2478db);text-decoration:underline;text-underline-offset:2px}
.odpv-hint{padding:8px 12px;color:var(--muted,#667085);font-size:11px;line-height:1.45;text-align:center;background:var(--panel,#fff)}
@media(max-width:800px){
  .odpv-bar{gap:10px;padding:10px}
  .odpv-heading{width:100%}
  .odpv-tools{width:100%;display:grid;grid-template-columns:39px 39px minmax(44px,1fr) 52px 52px;gap:6px}
  .odpv-tool{min-height:42px;padding:7px 6px}
  .odpv-body{grid-template-columns:minmax(0,1fr)}
  .odpv-rail{display:flex;flex-direction:row;align-items:stretch;gap:8px;max-height:none;min-height:0;overflow:auto;border-right:0;border-bottom:1px solid var(--line,#dfe2e8);padding:8px;scrollbar-width:thin}
  .odpv-page{width:94px;min-width:94px}
  .odpv-thumb{height:65px}
  .odpv-stage{height:clamp(360px,54svh,590px);min-height:360px}
  .odpv-bottom{padding:10px}
  .odpv-hint{font-size:10px}
}
@media(max-width:380px){.odpv-tools{grid-template-columns:37px 37px minmax(38px,1fr) 46px 46px}}

/* Keep the tools and page navigation available in full-screen mode (including iOS fallback). */
.odpv-shell:fullscreen,.odpv-shell.odpv-fauxfull{display:flex;flex-direction:column;width:100%;height:100dvh;border-radius:0;background:var(--panel,#fff)}
.odpv-shell.odpv-fauxfull{position:fixed;inset:0;z-index:2147480000}
.odpv-shell:fullscreen .odpv-body,.odpv-shell.odpv-fauxfull .odpv-body{flex:1;min-height:0}
.odpv-shell:fullscreen .odpv-main,.odpv-shell.odpv-fauxfull .odpv-main{height:100%;min-height:0}
.odpv-shell:fullscreen .odpv-stage,.odpv-shell.odpv-fauxfull .odpv-stage{height:100%;min-height:0}
.odpv-shell:fullscreen .odpv-rail,.odpv-shell.odpv-fauxfull .odpv-rail{max-height:100%}

.odpv [hidden]{display:none !important}

.odpv-body.odpv-single{grid-template-columns:minmax(0,1fr)}

/* V3 independent image thumbnails; native-resolution images, never combined or downsampled. */
.odpv-thumb img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;-webkit-user-drag:none}
.odpv-page>span:last-child{overflow-wrap:anywhere}

/* V3.1: Always show a visible preview tile, even while images load or if they fail. */
.odpv-thumb{position:relative}
.odpv-thumb .odpv-thumb-fallback{display:grid;place-items:center;inset:0;position:absolute;padding:5px;text-align:center;font:700 10px/1.3 system-ui,sans-serif;color:#5b6373;overflow-wrap:anywhere}
.odpv-thumb img{position:relative;z-index:1;opacity:0;transition:opacity .12s ease}
.odpv-thumb img.odpv-image-loaded{opacity:1}
