/* Drukwerk extra's — built on the theme tokens (fallbacks for any other theme). */

:root {
  --pdx-ink: var(--c-ink, #172E4B);
  --pdx-ink-soft: var(--c-ink-soft, #4B5A6E);
  --pdx-paper: var(--c-paper, #F5F3EE);
  --pdx-paper-2: var(--c-paper-2, #ECE9E1);
  --pdx-surface: var(--c-surface, #fff);
  --pdx-line: var(--c-line, rgba(23, 46, 75, .14));
  --pdx-line-strong: var(--c-line-strong, rgba(23, 46, 75, .28));
  --pdx-blue: var(--c-blue, #3095B4);
  --pdx-blue-deep: var(--c-blue-deep, #1D6F89);
  --pdx-blue-tint: var(--c-blue-tint, #E6F2F6);
  --pdx-orange: var(--c-orange, #F16721);
  --pdx-orange-deep: var(--c-orange-deep, #B8430A);
  --pdx-cyan: var(--c-cyan, #00A0E3);
  --pdx-magenta: var(--c-magenta, #E5007E);
  --pdx-yellow: var(--c-yellow, #FFE11A);
  --pdx-ok: #1E7A4C;
  --pdx-warn: #8A5A00;
  --pdx-err: #B3261E;
  --pdx-r: var(--r-lg, 10px);
  --pdx-r-sm: var(--r-sm, 4px);
  --pdx-shadow: var(--shadow, 0 1px 2px rgba(23, 46, 75, .06), 0 8px 24px -12px rgba(23, 46, 75, .18));
  --pdx-shadow-lg: var(--shadow-lg, 0 2px 4px rgba(23, 46, 75, .06), 0 24px 48px -20px rgba(23, 46, 75, .3));
  --pdx-display: var(--f-display, Archivo, "Arial Narrow", Arial, sans-serif);
  --pdx-body: var(--f-body, Inter, system-ui, sans-serif);
  --pdx-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
}

.pdx-icon { width: 18px; height: 18px; flex: none; }

/* ---------- buttons & small parts ---------- */
.pdx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6rem 1rem; border: 1.5px solid var(--pdx-ink); border-radius: var(--r-md, 6px); background: var(--pdx-ink); color: var(--pdx-paper); font: 600 .9375rem/1.2 var(--pdx-body); text-decoration: none; cursor: pointer; transition: background-color .2s var(--pdx-ease), color .2s var(--pdx-ease), border-color .2s var(--pdx-ease); }
.pdx-btn:hover { background: var(--pdx-blue-deep); border-color: var(--pdx-blue-deep); color: #fff; }
.pdx-btn--ghost { background: transparent; color: var(--pdx-ink); border-color: var(--pdx-line-strong); }
.pdx-btn--ghost:hover { background: var(--pdx-ink); border-color: var(--pdx-ink); color: var(--pdx-paper); }
.pdx-btn--primary { background: var(--pdx-orange-deep); border-color: var(--pdx-orange-deep); color: #fff; }
.pdx-btn--primary:hover { background: var(--pdx-ink); border-color: var(--pdx-ink); }
.pdx-btn--icon { width: 44px; padding: 0; }
.pdx-link { padding: 0; border: 0; background: none; color: var(--pdx-blue-deep); font: 500 .875rem/1.4 var(--pdx-body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pdx-link:hover { color: var(--pdx-ink); text-decoration-color: var(--pdx-orange); }
.pdx-card { margin: 0 0 16px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); box-shadow: var(--pdx-shadow); }
.pdx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 20px; border-bottom: 1px solid var(--pdx-line); }
.pdx-card-title { margin: 0 !important; font: 700 .9375rem/1.2 var(--pdx-display) !important; font-stretch: 112%; letter-spacing: .01em !important; color: var(--pdx-ink); }

/* ---------- live preview ---------- */
.pdx-preview { margin-top: 20px; overflow: hidden; }
.pdx-live { display: inline-flex; align-items: center; gap: 6px; font: 600 .6875rem/1 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-blue-deep); }
.pdx-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pdx-orange); box-shadow: 0 0 0 0 rgba(241, 103, 33, .5); animation: pdx-pulse 2s infinite; }
@keyframes pdx-pulse { 70% { box-shadow: 0 0 0 7px rgba(241, 103, 33, 0); } 100% { box-shadow: 0 0 0 0 rgba(241, 103, 33, 0); } }
.pdx-stage { position: relative; padding: 18px 20px 4px; background:
  linear-gradient(var(--pdx-line) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--pdx-line) 1px, transparent 1px) 0 0 / 24px 24px,
  var(--pdx-paper); background-blend-mode: normal; min-height: 160px; display: grid; place-items: center; }
.pdx-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--pdx-paper), transparent 30%, transparent 70%, var(--pdx-paper)); opacity: .55; pointer-events: none; }
.pdx-stage.is-empty { min-height: 120px; }
.pdx-svg { position: relative; display: block; width: 100%; max-height: 300px; overflow: visible; }
.pdx-ref { fill: rgba(23, 46, 75, .035); stroke: rgba(23, 46, 75, .45); stroke-dasharray: 5 4; }
.pdx-ref-label { fill: var(--pdx-ink-soft); font-family: var(--pdx-display); font-weight: 700; font-stretch: 118%; opacity: .7; }
.pdx-sheet { fill: #fff; stroke: rgba(23, 46, 75, .18); stroke-width: .4; transition: all .35s var(--pdx-ease); }
.pdx-art-block { fill: var(--pdx-blue); opacity: .9; }
.pdx-art--mono .pdx-art-block { fill: #3A3F47; }
.pdx-art--pms .pdx-art-block { fill: var(--pdx-orange); }
.pdx-art-line { fill: var(--pdx-ink); opacity: .16; }
.pdx-art--color .pdx-art-line:nth-child(2) { fill: var(--pdx-magenta); opacity: .55; }
.pdx-art--color .pdx-art-line:nth-child(3) { fill: var(--pdx-yellow); opacity: .9; }
.pdx-hole { fill: var(--pdx-paper); stroke: rgba(23, 46, 75, .2); stroke-width: .4; }
.pdx-fold { stroke: var(--pdx-magenta); fill: none; }
.pdx-fold.is-valley { stroke: var(--pdx-cyan); }
.pdx-wire { fill: none; stroke: #7C8794; }
.pdx-staple { fill: #7C8794; }
.pdx-spine { fill: var(--pdx-ink); opacity: .18; }
.pdx-sheen { mix-blend-mode: screen; pointer-events: none; }
.pdx-sheet-g.is-matt .pdx-art-block { opacity: .78; }
.pdx-dim { stroke: var(--pdx-orange-deep); }
.pdx-dim-label { fill: var(--pdx-orange-deep); font-family: var(--pdx-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.pdx-stage-caption { margin: 0; padding: 12px 20px 0; color: var(--pdx-ink); font: 600 .9375rem/1.4 var(--pdx-body); font-variant-numeric: tabular-nums; }
.pdx-stage-bleed { display: block; margin-top: 2px; color: var(--pdx-ink-soft); font-weight: 400; font-size: .8125rem; }
.pdx-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; margin: 14px 20px 0; font-size: .875rem; }
.pdx-spec dt, .pdx-spec dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--pdx-line); }
.pdx-spec dt { color: var(--pdx-ink-soft); }
.pdx-spec dd { color: var(--pdx-ink); font-weight: 500; text-align: right; }
.pdx-spec dd.is-open { color: var(--pdx-ink-soft); font-weight: 400; font-style: italic; }
.pdx-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px 20px; }
.pdx-preview-actions:empty { display: none; }

/* ---------- price matrix ---------- */
.pdx-matrix .prindustry-price-cell { cursor: pointer; }
.pdx-cell-price { display: block; }
.pdx-cell-ppp { display: block; margin-top: 1px; font-size: .6875rem; font-weight: 500; color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.pdx-matrix .is-selected .pdx-cell-ppp { color: rgba(255, 255, 255, .78); }
.pdx-matrix .prindustry-price-cell:focus-visible { outline: 2px solid var(--pdx-orange); outline-offset: -3px; }

/* ---------- insights ---------- */
.pdx-insights { overflow: hidden; }
.pdx-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--pdx-paper-2); }
.pdx-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--pdx-ink-soft); font: 600 .75rem/1 var(--pdx-body); cursor: pointer; }
.pdx-seg button[aria-pressed="true"] { background: var(--pdx-surface); color: var(--pdx-ink); box-shadow: 0 1px 3px rgba(23, 46, 75, .18); }
.pdx-total { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 18px 20px 6px; }
.pdx-total-amount { display: block; font: 800 clamp(1.8rem, 1.4rem + 1.2vw, 2.3rem)/1 var(--pdx-display); font-stretch: 116%; letter-spacing: -.02em; color: var(--pdx-ink); font-variant-numeric: tabular-nums; }
.pdx-total-sub { display: block; margin-top: 6px; color: var(--pdx-ink-soft); font-size: .875rem; font-variant-numeric: tabular-nums; }
.pdx-total-meta { display: grid; gap: 3px; text-align: right; font-size: .875rem; color: var(--pdx-ink-soft); }
.pdx-total-meta strong { color: var(--pdx-ink); font-variant-numeric: tabular-nums; }
.pdx-chart { margin: 8px 20px 0; padding: 12px 12px 4px; border-radius: var(--r-md, 6px); background: var(--pdx-paper); }
.pdx-chart figcaption { margin-bottom: 2px; font: 600 .6875rem/1 var(--pdx-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pdx-ink-soft); }
.pdx-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pdx-chart-area { fill: var(--pdx-blue); opacity: .1; }
.pdx-chart-line { fill: none; stroke: var(--pdx-blue-deep); stroke-width: 2; stroke-linejoin: round; }
.pdx-chart-dot { fill: var(--pdx-surface); stroke: var(--pdx-blue-deep); stroke-width: 1.5; }
.pdx-chart-dot.is-on { fill: var(--pdx-orange); stroke: var(--pdx-orange-deep); }
.pdx-chart-x { fill: var(--pdx-ink-soft); font: 500 10px var(--pdx-body); }
.pdx-chart-x.is-on { fill: var(--pdx-ink); font-weight: 700; }
.pdx-chart-val { fill: var(--pdx-orange-deep); font: 700 11px var(--pdx-body); }
.pdx-hint { display: flex; gap: 10px; align-items: flex-start; margin: 12px 20px 0; padding: 12px 14px; border-left: 3px solid var(--pdx-orange); border-radius: 0 var(--r-md, 6px) var(--r-md, 6px) 0; background: #FDF0E8; color: var(--pdx-ink); font-size: .875rem; line-height: 1.45; }
.pdx-hint .pdx-icon { color: var(--pdx-orange-deep); margin-top: 1px; }
.pdx-share { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 6px; }
.pdx-share .pdx-btn { min-height: 42px; font-size: .875rem; }
.pdx-qr { display: flex; align-items: center; gap: 16px; margin: 6px 20px 0; padding: 12px; border: 1px dashed var(--pdx-line-strong); border-radius: var(--r-md, 6px); }
.pdx-qr[hidden] { display: none; }
.pdx-qr-svg { width: 120px; height: 120px; flex: none; }
.pdx-qr p { margin: 0; font-size: .8125rem; color: var(--pdx-ink-soft); }
.pdx-share-status { min-height: 1em; margin: 0; padding: 4px 20px 16px; font-size: .8125rem; color: var(--pdx-ok); }

/* ---------- preflight ("Drukproef-check") ---------- */
.pdx-pf { --pf-tone: var(--pdx-blue-deep); --pf-tint: var(--pdx-blue-tint); container-type: inline-size; position: relative; margin-top: 14px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); box-shadow: var(--pdx-shadow); overflow: hidden; font-size: .875rem; color: var(--pdx-ink); animation: pdx-rise .25s var(--pdx-ease); }
.pdx-pf.is-ok { --pf-tone: var(--pdx-ok); --pf-tint: #E8F4EC; }
.pdx-pf.is-warn { --pf-tone: #A36A00; --pf-tint: #FDF3DF; }
.pdx-pf.is-error { --pf-tone: var(--pdx-err); --pf-tint: #FBEAE8; }
.pdx-pf.is-info { --pf-tone: var(--pdx-blue-deep); --pf-tint: var(--pdx-blue-tint); }
.pdx-pf-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; padding: 16px 18px; background: var(--pf-tint); border-bottom: 1px solid var(--pdx-line); transition: background-color .4s var(--pdx-ease); }
.pdx-pf-ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.pdx-pf-ringsvg { position: absolute; inset: 0; width: 64px; height: 64px; }
.pdx-pf-arc { fill: none; stroke-width: 6; stroke: var(--pdx-line); transition: stroke .35s var(--pdx-ease); transition-delay: calc(var(--i) * 60ms); }
.pdx-pf-arc.is-ok { stroke: var(--pdx-ok); }
.pdx-pf-arc.is-warn { stroke: #E0A100; }
.pdx-pf-arc.is-error { stroke: var(--pdx-err); }
.pdx-pf-arc.is-info { stroke: var(--pdx-blue); }
.pdx-pf-arc.is-pending { stroke: rgba(23, 46, 75, .12); }
.pdx-pf.is-pending .pdx-pf-ringsvg { animation: pdx-spin 2.4s linear infinite; }
.pdx-pf-ringnum { position: relative; font: 600 .75rem/1 var(--pdx-body); color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; }
.pdx-pf-ringnum strong { font: 800 1.25rem/1 var(--pdx-display); font-stretch: 112%; color: var(--pdx-ink); }
.pdx-pf-verdict { min-width: 0; }
.pdx-pf-kicker { margin: 0 0 2px; font: 600 .6875rem/1.2 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pf-tone); }
.pdx-pf-h { margin: 0 !important; font: 800 1.3rem/1.15 var(--pdx-display) !important; font-stretch: 112%; letter-spacing: -.01em !important; color: var(--pdx-ink); }
.pdx-pf-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 4px 0 0; font-size: .8125rem; color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; }
.pdx-pf-meta > span:not(:first-child):not(.pdx-pf-subline)::before { content: "·"; margin-right: 8px; opacity: .6; }
.pdx-pf-meta > span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--pdx-ink); }
.pdx-pf-subline { flex-basis: 100%; margin-top: 4px; color: var(--pdx-ink); }
.pdx-pf-actions { display: flex; flex-direction: column; gap: 6px; }
.pdx-pf-open, .pdx-pf-studio { min-height: 40px; font-size: .8125rem; }
.pdx-pf-open { background: var(--pdx-surface); }
.pdx-pf-studio.pdx-btn--ghost { background: var(--pdx-surface); }
.pdx-pf-open[hidden], .pdx-pf-studio[hidden] { display: none; }
.pdx-pf-chip--fix { gap: 6px; border-color: var(--pdx-orange-deep); color: var(--pdx-orange-deep); cursor: pointer; }
.pdx-pf-chip--fix .pdx-icon { width: 14px; height: 14px; }
.pdx-pf-chip--fix:hover { background: var(--pdx-orange-deep); border-color: var(--pdx-orange-deep); color: #fff; }
.pdx-dz-extra { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 8px; margin: 8px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--pdx-ink-soft); }
.pdx-dz-extra .pdx-icon { width: 15px; height: 15px; margin-top: 2px; color: var(--pdx-blue-deep); }
.pdx-dz-extra .pdx-link { grid-column: 2; justify-self: start; font-size: .8125rem; }
/* "Zelf ontwerpen" above the plugin's dropzone */
.pdx-make { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; margin: 0 0 4px; padding: 14px 16px; border: 1.5px solid var(--pdx-line); border-radius: var(--pdx-r); background: linear-gradient(120deg, #FDF0E8, var(--pdx-blue-tint)); }
.pdx-make-art { position: relative; width: 58px; height: 52px; }
.pdx-make-art i { position: absolute; width: 30px; height: 40px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(23, 46, 75, .16), 0 6px 12px -6px rgba(23, 46, 75, .45); }
.pdx-make-art i:nth-child(1) { left: 0; top: 8px; transform: rotate(-9deg); background: linear-gradient(#172E4B 55%, #fff 55%); }
.pdx-make-art i:nth-child(2) { left: 14px; top: 2px; transform: rotate(3deg); background: linear-gradient(#F16721 0 100%); }
.pdx-make-art i:nth-child(3) { left: 28px; top: 10px; transform: rotate(11deg); background: linear-gradient(160deg, #FFE11A 40%, #fff 40%); }
.pdx-make-text { display: grid; gap: 2px; min-width: 0; font-size: .8125rem; line-height: 1.45; color: var(--pdx-ink-soft); }
.pdx-make-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--pdx-ink); }
.pdx-make-text strong .pdx-icon { width: 16px; height: 16px; color: var(--pdx-ok); }
.pdx-make .pdx-btn { min-height: 42px; white-space: nowrap; }
.pdx-make .pdx-btn[disabled] { opacity: .5; cursor: default; }
.pdx-make:has(.pdx-btn--ghost) { grid-template-columns: minmax(0, 1fr) auto; background: #EEF7F1; border-color: #B9DEC8; }
.pdx-make-or { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: .75rem; color: var(--pdx-ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.pdx-make-or::before, .pdx-make-or::after { content: ""; flex: 1; height: 1px; background: var(--pdx-line); }
@media (max-width: 560px) {
  .pdx-make { grid-template-columns: minmax(0, 1fr); }
  .pdx-make-art { display: none; }
  .pdx-make .pdx-btn { width: 100%; }
}
.pdx-pf-bar { height: 3px; background: rgba(23, 46, 75, .08); }
.pdx-pf-bar[hidden] { display: none; }
.pdx-pf-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pdx-cyan), var(--pdx-magenta) 60%, var(--pdx-yellow)); transition: width .3s var(--pdx-ease); }

.pdx-pf-main { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; }
.pdx-pf.is-single .pdx-pf-main:has(.pdx-pf-hero[hidden]) { grid-template-columns: 1fr; }
.pdx-pf-hero { margin: 0; }
.pdx-pf-hero[hidden] { display: none; }
.pdx-pf-sheet { position: relative; display: block; width: 100%; min-height: 120px; padding: 0; border: 0; background: var(--pdx-paper); box-shadow: 0 1px 2px rgba(23, 46, 75, .1), 0 12px 28px -14px rgba(23, 46, 75, .45); cursor: zoom-in; overflow: hidden; }
.pdx-pf-sheet:disabled { cursor: default; }
.pdx-pf-sheet img { display: block; width: 100%; height: auto; }
.pdx-pf-sheet:not(:disabled):hover { box-shadow: 0 0 0 2px var(--pdx-blue), 0 12px 28px -14px rgba(23, 46, 75, .45); }
.pdx-pf-sheet:focus-visible { outline: 2px solid var(--pdx-orange); outline-offset: 3px; }
.pdx-pf-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pdx-pf-ov .pdx-ov-mark { animation: pdx-mark-in .45s var(--pdx-ease) both; animation-delay: calc(var(--i) * 40ms + .15s); }
@keyframes pdx-mark-in { from { opacity: 0; } }
.pdx-pf-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.pdx-pf.is-pending .pdx-pf-scan { opacity: 1; background: linear-gradient(180deg, transparent 0, rgba(0, 160, 227, 0) 38%, rgba(0, 160, 227, .28) 49%, rgba(0, 160, 227, .9) 50%, rgba(0, 160, 227, 0) 51%, transparent 100%) 0 0 / 100% 200% no-repeat; animation: pdx-scan 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes pdx-scan { from { background-position: 0 100%; } to { background-position: 0 0; } }
.pdx-pf-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; font-size: .6875rem; color: var(--pdx-ink-soft); }
.pdx-pf-legend[hidden], .pdx-pf-legend [hidden] { display: none; }
.pdx-key { display: inline-block; width: 14px; height: 0; margin: 0 4px 3px 0; border-top: 2px solid var(--pdx-magenta); vertical-align: middle; }
.pdx-key--safe { border-top: 2px dashed var(--pdx-cyan); }
.pdx-key--bleed { height: 8px; border: 0; margin-bottom: 0; border-radius: 2px; background: rgba(229, 0, 126, .25); }

.pdx-pf-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdx-pf-check { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 58px; padding: 9px 11px; border: 1px solid var(--pdx-line); border-radius: 8px; background: var(--pdx-surface); transition: border-color .3s, background-color .3s; }
.pdx-pf-check-icon { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pdx-paper-2); color: var(--pdx-ink-soft); }
.pdx-pf-check-icon .pdx-icon { width: 15px; height: 15px; stroke-width: 2.4; }
.pdx-pf-check-label { align-self: end; font-size: .6875rem; line-height: 1.2; color: var(--pdx-ink-soft); }
.pdx-pf-check-value { align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .875rem/1.3 var(--pdx-body); color: var(--pdx-ink); font-variant-numeric: tabular-nums; }
.pdx-pf-check.is-ok .pdx-pf-check-icon { background: #E3F2E9; color: var(--pdx-ok); }
.pdx-pf-check.is-warn { border-color: #EBC873; background: #FFFBF1; }
.pdx-pf-check.is-warn .pdx-pf-check-icon { background: #FCEBC4; color: #8A5A00; }
.pdx-pf-check.is-error { border-color: #E5A49F; background: #FEF6F5; }
.pdx-pf-check.is-error .pdx-pf-check-icon { background: #F8D7D4; color: var(--pdx-err); }
.pdx-pf-check.is-info .pdx-pf-check-icon { background: var(--pdx-blue-tint); color: var(--pdx-blue-deep); }
.pdx-pf:not(.is-pending) .pdx-pf-check { animation: pdx-tile .4s var(--pdx-ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes pdx-tile { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.pdx-pf-check.is-pending .pdx-pf-check-value { color: var(--pdx-ink-soft); font-weight: 500; }
.pdx-pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pdx-blue); animation: pdx-blink 1s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * 90ms); }
.pdx-pf-check:nth-child(n) .pdx-pf-dot { animation-delay: inherit; }
@keyframes pdx-blink { from { opacity: .25; transform: scale(.7); } }

.pdx-pf-sub { margin: 0 0 8px; font: 600 .6875rem/1.2 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-ink-soft); }
.pdx-pf-strip-wrap { padding: 0 18px 16px; }
.pdx-pf-strip-wrap[hidden] { display: none; }
.pdx-pf-strip { display: flex; gap: 10px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.pdx-pf-strip li { flex: none; }
.pdx-pf-thumb { --ratio: .7071; position: relative; display: grid; gap: 4px; justify-items: center; padding: 0; border: 0; background: none; cursor: zoom-in; font: 600 .6875rem/1 var(--pdx-body); color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; }
.pdx-pf-thumb:disabled { cursor: default; }
.pdx-pf-thumb-img { display: block; height: 84px; aspect-ratio: var(--ratio); background: var(--pdx-paper-2); box-shadow: 0 1px 2px rgba(23, 46, 75, .14), 0 4px 10px -6px rgba(23, 46, 75, .4); overflow: hidden; transition: transform .2s var(--pdx-ease), box-shadow .2s; }
.pdx-pf-thumb-img img { display: block; width: 100%; height: 100%; object-fit: cover; animation: pdx-fade .35s var(--pdx-ease); }
.pdx-pf-thumb.is-waiting .pdx-pf-thumb-img { background: linear-gradient(100deg, var(--pdx-paper-2) 40%, #f7f6f2 50%, var(--pdx-paper-2) 60%) 0 0 / 300% 100%; animation: pdx-shimmer 1.4s linear infinite; box-shadow: none; }
@keyframes pdx-shimmer { to { background-position: -150% 0; } }
.pdx-pf-thumb.is-current .pdx-pf-thumb-img { box-shadow: 0 0 0 2px var(--pdx-cyan); }
.pdx-pf-thumb:not(:disabled):hover .pdx-pf-thumb-img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--pdx-blue), 0 8px 16px -8px rgba(23, 46, 75, .5); }
.pdx-pf-thumb[data-level]:not([data-level=""])::after { content: ""; position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border: 2px solid var(--pdx-surface); border-radius: 50%; background: var(--pdx-ok); }
.pdx-pf-thumb[data-level="warn"]:not([data-level=""])::after { background: #E0A100; }
.pdx-pf-thumb[data-level="error"]:not([data-level=""])::after { background: var(--pdx-err); }

.pdx-pf-issues { padding: 0 18px; }
.pdx-pf-issues:empty { display: none; }
.pdx-pf-issuelist { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pdx-pf-issue { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-radius: 8px; background: var(--pdx-paper); }
.pdx-pf-issue.is-error { background: #FEF3F2; }
.pdx-pf-issue.is-warn { background: #FFF8EA; }
.pdx-pf-issue-icon .pdx-icon { width: 17px; height: 17px; margin-top: 1px; }
.pdx-pf-issue.is-error .pdx-pf-issue-icon { color: var(--pdx-err); }
.pdx-pf-issue.is-warn .pdx-pf-issue-icon { color: #A36A00; }
.pdx-pf-issue.is-info .pdx-pf-issue-icon { color: var(--pdx-blue-deep); }
.pdx-pf-issue.is-ok .pdx-pf-issue-icon { color: var(--pdx-ok); }
.pdx-pf-issue-body p { margin: 0; line-height: 1.5; }
.pdx-pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pdx-pf-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1.5px solid var(--pdx-line-strong); border-radius: 999px; background: var(--pdx-surface); color: var(--pdx-ink); font: 600 .75rem/1 var(--pdx-body); cursor: zoom-in; font-variant-numeric: tabular-nums; }
.pdx-pf-chip:hover { border-color: var(--pdx-ink); background: var(--pdx-ink); color: var(--pdx-paper); }
.pdx-pf-chip.is-more { cursor: default; border-style: dashed; }
.pdx-pf-chip.is-more:hover { background: var(--pdx-surface); color: var(--pdx-ink); border-color: var(--pdx-line-strong); }
.pdx-pf-fix { margin-top: 8px; }
.pdx-pf-fix summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--pdx-blue-deep); font-weight: 600; cursor: pointer; list-style: none; }
.pdx-pf-fix summary::-webkit-details-marker { display: none; }
.pdx-pf-fix summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--pdx-ease); }
.pdx-pf-fix[open] summary::before { transform: rotate(45deg); }
.pdx-pf-fixbody { margin-top: 6px; padding: 10px 12px; border-left: 3px solid var(--pdx-blue); border-radius: 0 6px 6px 0; background: var(--pdx-surface); line-height: 1.5; animation: pdx-fade .2s; }
.pdx-pf-fixbody p { margin: 0 0 6px; }
.pdx-pf-fixbody ul { margin: 0 0 6px; padding-left: 18px; }
.pdx-pf-fixbody li { margin: 2px 0; }
.pdx-pf-fixbody > :last-child { margin-bottom: 0; }
.pdx-pf-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 18px; border-top: 1px solid var(--pdx-line); background: var(--pdx-paper); font-size: .75rem; line-height: 1.45; color: var(--pdx-ink-soft); }
.pdx-pf-note .pdx-icon { width: 15px; height: 15px; margin-top: 1px; }

@container (max-width: 560px) {
  .pdx-pf-head { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; }
  .pdx-pf-ring, .pdx-pf-ringsvg { width: 56px; height: 56px; }
  .pdx-pf-actions { grid-column: 1 / -1; flex-direction: row; }
  .pdx-pf-actions .pdx-btn { flex: 1; }
  .pdx-pf-main { grid-template-columns: 1fr; padding: 14px; }
  .pdx-pf-hero { max-width: 200px; justify-self: center; width: 100%; }
  .pdx-pf-check-value { white-space: normal; font-size: .8125rem; }
  .pdx-pf-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdx-pf-strip-wrap, .pdx-pf-issues { padding-left: 14px; padding-right: 14px; }
  .pdx-pf-note { padding: 12px 14px; }
}
@container (min-width: 561px) and (max-width: 640px) {
  .pdx-pf-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .pdx-pf-check:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .pdx-pf, .pdx-pf-check, .pdx-pf-ov .pdx-ov-mark, .pdx-pf-thumb-img img { animation: none !important; }
  .pdx-pf.is-pending .pdx-pf-scan { animation: none; opacity: 0; }
  .pdx-pf.is-pending .pdx-pf-ringsvg { animation-duration: 8s; }
}
.pdx-stage-own { display: flex; width: max-content; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 9px 4px 7px; border-radius: 999px; background: #E3F2E9; color: var(--pdx-ok); font-size: .75rem; font-weight: 600; }
.pdx-stage-own .pdx-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.pdx-userart { image-rendering: auto; }

/* ---------- print file check in the cart ---------- */
.pdx-cc { margin-top: 10px; }
.pdx-cc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 12px; border: 1px solid var(--pdx-line); border-radius: 8px; background: var(--pdx-paper); font-size: .8125rem; }
.pdx-cc.is-ok .pdx-cc-bar { border-color: #B9DEC8; background: #EEF7F1; }
.pdx-cc.is-warn .pdx-cc-bar { border-color: #EBC873; background: #FFF8EA; }
.pdx-cc.is-error .pdx-cc-bar { border-color: #E5A49F; background: #FEF3F2; }
.pdx-cc-status { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--pdx-ink); }
.pdx-cc-status .pdx-icon { width: 17px; height: 17px; }
.pdx-cc.is-ok .pdx-cc-status .pdx-icon { color: var(--pdx-ok); }
.pdx-cc.is-warn .pdx-cc-status .pdx-icon { color: #A36A00; }
.pdx-cc.is-error .pdx-cc-status .pdx-icon { color: var(--pdx-err); }
.pdx-cc-status .pdx-spinner { width: 16px; height: 16px; border-width: 2px; }
.pdx-cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pdx-cc-actions .pdx-btn { min-height: 36px; padding: 0 12px; font-size: .8125rem; }
.pdx-cc-actions .pdx-link { font-size: .8125rem; }
.pdx-cc-panel[hidden] { display: none; }
.pdx-cc-panel .pdx-pf { margin-top: 10px; }
.pdx-cc-summary { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; font-size: .8125rem; line-height: 1.45; }
.pdx-cc-summary .pdx-icon { width: 17px; height: 17px; margin-top: 1px; }
.pdx-cc-summary.is-ok { background: #EEF7F1; color: var(--pdx-ink); }
.pdx-cc-summary.is-ok .pdx-icon { color: var(--pdx-ok); }
.pdx-cc-summary.is-warn { background: #FFF8EA; color: var(--pdx-ink); }
.pdx-cc-summary.is-warn .pdx-icon { color: #A36A00; }

/* ---------- mobile price bar ---------- */
.pdx-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--pdx-ink); color: var(--pdx-paper); box-shadow: 0 -10px 30px -12px rgba(23, 46, 75, .5); transform: translateY(0); transition: transform .25s var(--pdx-ease); }
.pdx-bar[hidden] { display: flex; transform: translateY(110%); visibility: hidden; }
.pdx-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--pdx-cyan) 0 20%, var(--pdx-magenta) 20% 40%, var(--pdx-yellow) 40% 60%, var(--pdx-paper) 60% 80%, var(--pdx-orange) 80%); }
.pdx-bar-text { display: grid; min-width: 0; }
.pdx-bar-price { font: 800 1.125rem/1.1 var(--pdx-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.pdx-bar-meta { font-size: .8125rem; color: #C3CDD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-bar-btn { min-height: 46px; flex: none; }
.pdx-bar-btn:hover { background: var(--pdx-paper); color: var(--pdx-ink); border-color: var(--pdx-paper); }
html.pdx-has-bar body { padding-bottom: 76px; }
@media (min-width: 900px) { .pdx-bar { display: none !important; } }

/* ---------- header search button ---------- */
.pdx-search-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 12px; border: 1.5px solid var(--pdx-line-strong); border-radius: var(--r-md, 6px); background: var(--pdx-surface); color: var(--pdx-ink-soft); font: 500 .875rem/1 var(--pdx-body); cursor: pointer; transition: border-color .2s, color .2s; }
.pdx-search-btn:hover { border-color: var(--pdx-ink); color: var(--pdx-ink); }
.pdx-search-label { min-width: 70px; text-align: left; }
.pdx-kbd, .pdx-palette kbd { display: inline-block; padding: 3px 6px; border: 1px solid var(--pdx-line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--pdx-paper); color: var(--pdx-ink-soft); font: 600 .6875rem/1 var(--pdx-body); }
.pdx-search-label, .pdx-search-btn .pdx-kbd { display: none; }
@media all { .pdx-search-label, .pdx-search-btn .pdx-kbd { display: none; } .pdx-search-btn { width: 44px; padding: 0; justify-content: center; border-color: var(--pdx-line-strong); } }
@media (pointer: coarse) { .pdx-search-btn .pdx-kbd { display: none; } }

/* ---------- search palette ---------- */
html.pdx-palette-open { overflow: hidden; }
.pdx-palette { position: fixed; inset: 0; z-index: 1000; display: grid; justify-items: center; align-items: start; padding: min(12vh, 110px) 16px 16px; }
.pdx-palette[hidden] { display: none; }
.pdx-palette-backdrop { position: absolute; inset: 0; background: rgba(23, 46, 75, .45); backdrop-filter: blur(4px); animation: pdx-fade .18s ease-out; }
.pdx-palette-panel { position: relative; width: min(680px, 100%); max-height: min(70vh, 640px); display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--pdx-surface); box-shadow: 0 30px 80px -20px rgba(10, 20, 35, .55); animation: pdx-rise .22s var(--pdx-ease); }
.pdx-palette-panel::before { content: ""; height: 4px; flex: none; background: linear-gradient(90deg, var(--pdx-cyan) 0 20%, var(--pdx-magenta) 20% 40%, var(--pdx-yellow) 40% 60%, var(--pdx-ink) 60% 80%, var(--pdx-orange) 80%); }
@keyframes pdx-fade { from { opacity: 0; } }
@keyframes pdx-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.pdx-palette-field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--pdx-line); color: var(--pdx-ink-soft); }
.pdx-palette-field .pdx-icon { width: 20px; height: 20px; }
.pdx-palette-input { flex: 1; min-width: 0; height: 62px; border: 0; outline: 0; background: transparent; color: var(--pdx-ink); font: 500 1.0625rem/1 var(--pdx-body); }
.pdx-palette-input::-webkit-search-cancel-button { display: none; }
.pdx-palette-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--pdx-ink-soft); cursor: pointer; }
.pdx-palette-close:hover { background: var(--pdx-paper); color: var(--pdx-ink); }
.pdx-palette-list { margin: 0; padding: 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.pdx-palette-heading { padding: 10px 12px 6px; font: 600 .6875rem/1 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-ink-soft); }
.pdx-palette-item { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 10px; cursor: pointer; color: var(--pdx-ink); }
.pdx-palette-item[aria-selected="true"] { background: var(--pdx-blue-tint); }
.pdx-palette-item > .pdx-icon { margin-left: auto; color: var(--pdx-blue-deep); opacity: 0; transform: translateX(-4px); transition: all .15s; }
.pdx-palette-item[aria-selected="true"] > .pdx-icon { opacity: 1; transform: none; }
.pdx-palette-media { display: grid; place-items: center; width: 46px; height: 46px; flex: none; overflow: hidden; border-radius: 8px; background: var(--pdx-paper); color: var(--pdx-blue-deep); }
.pdx-palette-media img { width: 100%; height: 100%; object-fit: cover; }
.pdx-palette-text { display: grid; min-width: 0; }
.pdx-palette-title { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-palette-sub { font-size: .8125rem; color: var(--pdx-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-palette-empty { padding: 28px 16px; text-align: center; color: var(--pdx-ink-soft); }
.pdx-palette-foot { display: flex; gap: 18px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--pdx-line); background: var(--pdx-paper); font-size: .75rem; color: var(--pdx-ink-soft); }
.pdx-palette-foot kbd { margin-right: 3px; }
@media (max-width: 640px) {
  .pdx-palette { padding: 0; align-items: stretch; }
  .pdx-palette-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .pdx-palette-foot { display: none; }
}

/* ---------- recent ---------- */
.pdx-recent { margin: 0 auto; }
.pdx-recent[hidden] { display: none; }
.pdx-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pdx-recent-title { margin: 0; }
.pdx-recent-lead { margin: 6px 0 20px; color: var(--pdx-ink-soft); }
.pdx-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pdx-recent-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); color: var(--pdx-ink); text-decoration: none; box-shadow: var(--pdx-shadow); transition: transform .2s var(--pdx-ease), box-shadow .2s var(--pdx-ease); }
.pdx-recent-card:hover { transform: translateY(-2px); box-shadow: var(--pdx-shadow-lg); color: var(--pdx-ink); }
.pdx-recent-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--pdx-paper); }
.pdx-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.pdx-recent-body { display: grid; gap: 2px; min-width: 0; }
.pdx-recent-name { font: 700 1rem/1.2 var(--pdx-display); font-stretch: 112%; }
.pdx-recent-sum, .pdx-recent-when { font-size: .8125rem; color: var(--pdx-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-recent-meta { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- guides ---------- */
.pdx-guide { display: grid; gap: clamp(48px, 7vw, 88px); }
.pdx-guide-head { max-width: 680px; margin-bottom: 24px; }
.pdx-guide-head h2 { margin-bottom: .35em; }
.pdx-guide-head p { margin: 0; color: var(--pdx-ink-soft); }
.pdx-f-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.pdx-f-stage { padding: 24px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background:
  linear-gradient(var(--pdx-line) 1px, transparent 1px) 0 0 / 20px 20px,
  linear-gradient(90deg, var(--pdx-line) 1px, transparent 1px) 0 0 / 20px 20px, var(--pdx-surface); position: sticky; top: calc(var(--header-h, 72px) + 16px); }
.pdx-f-svg { display: block; width: 100%; height: auto; max-height: 70vh; overflow: visible; }
.pdx-f-rect { fill: rgba(48, 149, 180, .04); stroke: rgba(23, 46, 75, .3); stroke-width: .8; transition: fill .25s, stroke .25s; }
.pdx-f-rect.is-on { fill: rgba(241, 103, 33, .14); stroke: var(--pdx-orange-deep); stroke-width: 2; }
.pdx-f-label { fill: var(--pdx-orange-deep); font-family: var(--pdx-body); font-weight: 700; }
.pdx-f-ref { fill: rgba(255, 255, 255, .55); stroke: rgba(23, 46, 75, .4); stroke-width: 1; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.pdx-f-ref-label { fill: var(--pdx-ink-soft); font-family: var(--pdx-display); font-weight: 700; font-stretch: 118%; }
.pdx-f-rect.is-on { vector-effect: non-scaling-stroke; animation: pdx-grow .45s var(--pdx-ease); transform-origin: 0 100%; transform-box: fill-box; }
@keyframes pdx-grow { from { transform: scale(.94); opacity: .4; } }
.pdx-f-group + .pdx-f-group { margin-top: 16px; }
.pdx-f-group-label { margin: 0 0 8px; font: 600 .6875rem/1 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-ink-soft); }
.pdx-f-group-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pdx-m-card[hidden] { display: none; }
.pdx-m-more { margin-top: 16px; }
.pdx-f-chips { display: block; }
.pdx-chip { display: grid; gap: 2px; padding: 8px 12px; border: 1.5px solid var(--pdx-line-strong); border-radius: 8px; background: var(--pdx-surface); color: var(--pdx-ink); font: 400 .75rem/1.2 var(--pdx-body); text-align: left; cursor: pointer; transition: all .15s; }
.pdx-chip strong { font-size: .875rem; }
.pdx-chip span { color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; }
.pdx-chip:hover { border-color: var(--pdx-ink); }
.pdx-chip[aria-pressed="true"] { border-color: var(--pdx-ink); background: var(--pdx-ink); color: var(--pdx-paper); }
.pdx-chip[aria-pressed="true"] span { color: #C3CDD8; }
.pdx-f-detail { margin-top: 24px; padding: 22px; border-radius: var(--pdx-r); background: var(--pdx-surface); border: 1px solid var(--pdx-line); box-shadow: var(--pdx-shadow); }
.pdx-f-detail h3 { margin: 0 0 4px; }
.pdx-f-dims { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdx-f-bleed { margin: 2px 0 16px; color: var(--pdx-ink-soft); font-size: .875rem; }
.pdx-f-sub { margin: 0 0 8px; font: 600 .6875rem/1 var(--pdx-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-ink-soft); }
.pdx-f-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pdx-f-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--pdx-blue-tint); color: var(--pdx-blue-deep); font-weight: 600; font-size: .875rem; text-decoration: none; }
.pdx-f-cats a:hover { background: var(--pdx-ink); color: var(--pdx-paper); }
.pdx-f-cats .pdx-icon { width: 14px; height: 14px; }
.pdx-w-scale { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pdx-line); }
.pdx-w-scale li { display: grid; grid-template-columns: 56px 110px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--pdx-line); }
.pdx-w-sheet { display: block; height: var(--t); width: 48px; border-radius: 1px; background: linear-gradient(#fff, #E8E4DA); box-shadow: 0 1px 0 rgba(23, 46, 75, .25), 0 3px 6px -3px rgba(23, 46, 75, .35); }
.pdx-w-scale strong { font-variant-numeric: tabular-nums; }
.pdx-w-use { color: var(--pdx-ink-soft); font-size: .875rem; }
.pdx-w-cats { font-size: .875rem; }
.pdx-m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pdx-m-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); }
.pdx-m-swatch { width: 56px; height: 56px; border-radius: 4px; border: 1px solid var(--pdx-line); background: #FBFAF6; box-shadow: inset 0 0 0 1px #fff; }
.pdx-m-swatch.is-glans { background: linear-gradient(135deg, #fff 0 35%, #EEF2F5 45%, #fff 55% 100%); }
.pdx-m-swatch.is-zijdeglans { background: linear-gradient(135deg, #FDFDFB, #F1F1EC); }
.pdx-m-swatch.is-mat { background: #F6F5F0; }
.pdx-m-swatch.is-naturel { background: #EFE8D8 radial-gradient(rgba(120, 100, 70, .14) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.pdx-m-swatch.is-karton { background: #E7E1D2; }
.pdx-m-text { display: grid; gap: 2px; min-width: 0; }
.pdx-m-fin { font: 600 .6875rem/1.2 var(--pdx-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pdx-blue-deep); }
.pdx-m-cats { font-size: .8125rem; color: var(--pdx-ink-soft); }
@media (max-width: 900px) {
  .pdx-f-layout { grid-template-columns: 1fr; }
  .pdx-f-stage { position: static; }
  .pdx-w-scale li { grid-template-columns: 48px 1fr; gap: 4px 12px; }
  .pdx-w-use, .pdx-w-cats { grid-column: 2; }
}

/* bleed demo */
.pdx-bd-stage { --dx: 0; --dy: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 40px); padding: clamp(20px, 4vw, 40px); border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-paper-2); }
.pdx-bd-card { margin: 0; text-align: center; }
.pdx-bd-card figcaption { margin-top: 14px; font-weight: 600; }
.pdx-bd-sheet { position: relative; aspect-ratio: 148 / 210; max-width: 260px; margin: 0 auto; background: #fff; box-shadow: var(--pdx-shadow-lg); overflow: hidden; --mm: calc(100% / 148); }
.pdx-bd-art { position: absolute; background: linear-gradient(160deg, var(--pdx-blue) 0 55%, var(--pdx-ink) 55% 100%); }
.pdx-bd-card[data-mode="bleed"] .pdx-bd-art { inset: 0; }
.pdx-bd-card[data-mode="none"] .pdx-bd-art { inset: 2.1%; }
.pdx-bd-sheet::after { content: ""; position: absolute; inset: 2.1%; border: 1.5px dashed var(--pdx-magenta); transition: opacity .3s; }
.pdx-bd-stage.is-cut .pdx-bd-sheet::after { opacity: 0; }
.pdx-bd-stage.is-cut .pdx-bd-sheet { clip-path: inset(calc(2.1% + var(--dy) * 1.4%) calc(2.1% - var(--dx) * 1.4%) calc(2.1% - var(--dy) * 1.4%) calc(2.1% + var(--dx) * 1.4%)); transition: clip-path .5s var(--pdx-ease); }
.pdx-bd-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.pdx-bd-note { flex: 1 1 280px; margin: 0; color: var(--pdx-ink-soft); font-size: .9375rem; }

/* template + check forms */
.pdx-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.pdx-field { display: grid; gap: 6px; }
.pdx-field[hidden] { display: none; }
.pdx-field--pair { grid-template-columns: auto auto; gap: 6px 10px; }
.pdx-field--pair label { grid-row: 1; }
.pdx-field label { font: 600 .8125rem/1.2 var(--pdx-body); color: var(--pdx-ink); }
.pdx-field select, .pdx-field input { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--pdx-line-strong); border-radius: var(--r-md, 6px); background: var(--pdx-surface); color: var(--pdx-ink); font: 500 .9375rem/1 var(--pdx-body); }
.pdx-field input { width: 110px; }
.pdx-form-note { margin: 12px 0 0; font-size: .8125rem; color: var(--pdx-ink-soft); }
.pdx-check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pdx-check-grid .pdx-form { flex-direction: column; align-items: stretch; }
.pdx-drop { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 200px; padding: 24px; border: 2px dashed var(--pdx-line-strong); border-radius: var(--pdx-r); background: var(--pdx-surface); text-align: center; cursor: pointer; transition: all .15s; }
.pdx-drop:hover, .pdx-drop.is-over { border-color: var(--pdx-blue-deep); background: var(--pdx-blue-tint); }
.pdx-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pdx-drop .pdx-icon { width: 30px; height: 30px; color: var(--pdx-blue-deep); transform: rotate(180deg); }
.pdx-drop-title { font-weight: 700; color: var(--pdx-ink); }
.pdx-drop-hint { font-size: .8125rem; color: var(--pdx-ink-soft); }
.pdx-check-result:empty { display: none; }
.pdx-check-result .pdx-preflight { margin-top: 20px; }
@media (max-width: 720px) { .pdx-check-grid, .pdx-bd-stage { grid-template-columns: 1fr; } .pdx-bd-sheet { max-width: 200px; } }

@media (prefers-reduced-motion: reduce) {
  .pdx-live::before, .pdx-preflight.is-pending .pdx-icon { animation: none; }
  .pdx-palette-backdrop, .pdx-palette-panel { animation: none; }
  .pdx-bd-stage.is-cut .pdx-bd-sheet, .pdx-bar, .pdx-sheet { transition: none; }
}

/* Long delivery dates may wrap on phones, so the matrix fits its card. */
@media (max-width: 480px) {
  .pdx-matrix th.prindustry-price-dlv { white-space: normal; min-width: 92px; }
  .pdx-matrix .prindustry-price-dlv-date { display: block; white-space: normal; }
}
.pdx-recent:not(.pdx-recent--band) { margin-bottom: clamp(32px, 5vw, 56px); }
.pdx-recent--band { padding-block: clamp(40px, 6vw, 72px) !important; }
.pdx-palette-input:focus, .pdx-palette-input:focus-visible { outline: none; box-shadow: none; }
.pdx-palette-field:focus-within { box-shadow: inset 0 -2px 0 var(--pdx-blue-deep); }
.pdx-recent-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pdx-recent-meta { white-space: nowrap; }

/* ---------- cart feedback ---------- */
.prindustry-cart-item { position: relative; transition: box-shadow .4s var(--pdx-ease); }
.prindustry-cart-item.pdx-busy > :not(.pdx-row-veil) { opacity: .45; transition: opacity .2s; }
.pdx-row-veil { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: inherit; background: rgba(255, 255, 255, .55); backdrop-filter: blur(1.5px); color: var(--pdx-ink); font: 600 .9375rem/1.3 var(--pdx-body); text-align: center; }
.pdx-spinner { width: 22px; height: 22px; flex: none; border: 2.5px solid var(--pdx-line); border-top-color: var(--pdx-orange); border-radius: 50%; animation: pdx-spin .8s linear infinite; }
.pdx-row-error { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--pdx-err); border-radius: 0 6px 6px 0; background: #FCEDEC; color: var(--pdx-ink); font-size: .875rem; line-height: 1.45; }
.pdx-row-error .pdx-icon { color: var(--pdx-err); width: 16px; height: 16px; margin-top: 2px; }
.prindustry-cart-item.pdx-flash { box-shadow: 0 0 0 2px var(--pdx-ok), var(--pdx-shadow); }
.pdx-toast { position: fixed; z-index: 1001; right: 20px; bottom: 20px; display: flex; gap: 12px; align-items: flex-start; width: min(380px, calc(100vw - 32px)); padding: 16px 14px 16px 16px; border-radius: 10px; background: var(--pdx-ink); color: var(--pdx-paper); box-shadow: 0 20px 50px -18px rgba(10, 20, 35, .6); transform: translateY(16px); opacity: 0; transition: transform .3s var(--pdx-ease), opacity .3s; overflow: hidden; }
.pdx-toast::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--pdx-cyan) 0 20%, var(--pdx-magenta) 20% 40%, var(--pdx-yellow) 40% 60%, var(--pdx-paper) 60% 80%, var(--pdx-orange) 80%); }
.pdx-toast.is-in { transform: none; opacity: 1; }
.pdx-toast > .pdx-icon { width: 22px; height: 22px; color: #7FD3A6; flex: none; }
.pdx-toast div { display: grid; gap: 2px; flex: 1; font-size: .875rem; line-height: 1.4; color: #C3CDD8; }
.pdx-toast strong { color: var(--pdx-paper); font-size: .9375rem; }
.pdx-toast button { display: grid; place-items: center; width: 30px; height: 30px; margin: -6px -4px 0 0; border: 0; border-radius: 6px; background: transparent; color: #C3CDD8; cursor: pointer; }
.pdx-toast button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 640px) { .pdx-toast { left: 16px; right: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .pdx-spinner { animation-duration: 2s; } .pdx-toast { transition: none; } }

/* ---------- account dashboard ---------- */
.pdx-acc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pdx-acc-side { position: sticky; top: calc(var(--header-h, 72px) + 24px); display: grid; gap: 16px; }
.pdx-acc-me { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); }
.pdx-acc-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--pdx-ink); color: var(--pdx-paper); font: 800 1.125rem/1 var(--pdx-display); font-stretch: 116%; box-shadow: inset 0 -3px 0 var(--pdx-orange); }
.pdx-acc-me-text { display: grid; min-width: 0; font-size: .8125rem; color: var(--pdx-ink-soft); }
.pdx-acc-me-text strong { color: var(--pdx-ink); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-acc-me-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-acc-nav { padding: 8px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); }
.pdx-acc-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pdx-acc-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px; color: var(--pdx-ink); font: 500 .9375rem/1 var(--pdx-body); text-decoration: none; transition: background-color .15s; }
.pdx-acc-nav a:hover { background: var(--pdx-paper); }
.pdx-acc-nav a[aria-selected="true"] { background: var(--pdx-ink); color: var(--pdx-paper); font-weight: 600; }
.pdx-acc-nav a[aria-selected="true"]::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pdx-orange); }
.pdx-acc-nav .pdx-icon { width: 19px; height: 19px; }
.pdx-acc-count { margin-left: auto; min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--pdx-paper-2); color: var(--pdx-ink); font: 700 .6875rem/1 var(--pdx-body); text-align: center; }
.pdx-acc-nav a[aria-selected="true"] .pdx-acc-count { background: var(--pdx-orange); color: var(--pdx-ink); }
.pdx-acc-logout { margin-top: 6px; border-top: 1px solid var(--pdx-line); border-radius: 0 0 8px 8px !important; color: var(--pdx-ink-soft) !important; }
.pdx-acc-panel[hidden] { display: none; }
.pdx-acc-panel { animation: pdx-panel .25s var(--pdx-ease); }
@keyframes pdx-panel { from { opacity: 0; transform: translateY(6px); } }
.pdx-acc-head { margin-bottom: 24px; }
.pdx-acc-head h2 { margin: 0 0 .3em; font-size: var(--fs-2xl, 2rem); }
.pdx-acc-head p:not(.pd-eyebrow) { margin: 0; max-width: 62ch; color: var(--pdx-ink-soft); }
.pdx-acc-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid #E0A100; border-radius: 0 6px 6px 0; background: #FFF6DB; font-size: .875rem; }
.pdx-acc-notice .pdx-icon { color: var(--pdx-warn); margin-top: 1px; }
.pdx-acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pdx-acc-stat { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); color: var(--pdx-ink-soft); text-decoration: none; font-size: .875rem; transition: transform .2s var(--pdx-ease), box-shadow .2s; }
.pdx-acc-stat:hover { transform: translateY(-2px); box-shadow: var(--pdx-shadow); color: var(--pdx-ink-soft); }
.pdx-acc-stat-n { font: 800 2rem/1 var(--pdx-display); font-stretch: 116%; color: var(--pdx-ink); font-variant-numeric: tabular-nums; }
.pdx-acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pdx-acc-card { padding: 22px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); }
.pdx-acc .pdx-acc-card :is(h2, h3), .pdx-acc .pdx-acc-section :is(h2, h3) { margin: 0 0 12px !important; font-size: var(--fs-lg, 1.25rem) !important; letter-spacing: -.01em; }
.pdx-acc-order-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; }
.pdx-acc-muted { margin: 0 0 16px; color: var(--pdx-ink-soft); font-size: .875rem; }
.pdx-acc-quick { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pdx-acc-quick a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 6px; color: var(--pdx-ink); font-weight: 500; text-decoration: none; }
.pdx-acc-quick a:hover { background: var(--pdx-paper); }
.pdx-acc-quick .pdx-icon { color: var(--pdx-blue-deep); }
.pdx-acc-section { margin-top: 32px; }
.pdx-acc-empty { display: grid; justify-items: start; gap: 12px; padding: 28px; border: 1.5px dashed var(--pdx-line-strong); border-radius: var(--pdx-r); background: var(--pdx-surface); color: var(--pdx-ink-soft); }
.pdx-acc-empty > .pdx-icon { width: 28px; height: 28px; color: var(--pdx-blue-deep); }
.pdx-acc-empty p { margin: 0; max-width: 56ch; }
.pdx-acc-empty strong { color: var(--pdx-ink); }
.pdx-acc-qlist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pdx-acc-q { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--pdx-line); border-radius: var(--pdx-r); background: var(--pdx-surface); transition: opacity .2s; }
.pdx-acc-q.is-removing, .pdx-acc-saved.is-removing { opacity: .4; pointer-events: none; }
.pdx-acc-q img, .pdx-acc-q-ph { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--pdx-paper); display: grid; place-items: center; color: var(--pdx-blue-deep); }
.pdx-acc-q-main { min-width: 0; }
.pdx-acc-q-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.pdx-acc-q-title span { color: var(--pdx-ink-soft); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pdx-acc-q-spec { margin: 2px 0; color: var(--pdx-ink-soft); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-acc-q-meta { margin: 0; font-size: .8125rem; color: var(--pdx-ink); }
.pdx-acc-q-price { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.pdx-acc-q-price strong { font: 800 1.125rem/1.1 var(--pdx-display); font-stretch: 112%; }
.pdx-acc-q-price span { font-size: .75rem; color: var(--pdx-ink-soft); }
.pdx-acc-q-actions { display: grid; justify-items: center; gap: 6px; }
.pdx-acc-q-actions .pdx-btn { min-height: 40px; }
.pdx-acc-saved { display: grid; gap: 6px; justify-items: end; }
.pdx-acc-saved .pdx-recent-card { width: 100%; }
/* the plugin's page inside the tabs: its own greeting/logout/orders card/continue link are ours now */
.pdx-acc-plugin .prindustry-account-header, .pdx-acc-plugin .prindustry-account-continue, .pdx-acc-plugin .prindustry-account-card:has(a[href*="/orders"]) { display: none; }
.pdx-acc-plugin .prindustry-account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (max-width: 1099px) {
  .pdx-acc { grid-template-columns: minmax(0, 1fr); }
  .pdx-acc-side { position: static; }
  .pdx-acc-me { display: none; }
  .pdx-acc-nav { position: sticky; top: var(--header-h, 64px); z-index: 5; display: flex; padding: 6px; overflow-x: auto; scrollbar-width: none; box-shadow: var(--pdx-shadow); }
  .pdx-acc-nav::-webkit-scrollbar { display: none; }
  .pdx-acc-nav ul { display: flex; gap: 4px; }
  .pdx-acc-nav a { min-height: 42px; white-space: nowrap; padding: 0 12px; }
  .pdx-acc-nav a[aria-selected="true"]::before { display: none; }
  .pdx-acc-logout { margin: 0 0 0 4px; border-top: 0; border-left: 1px solid var(--pdx-line); border-radius: 0 8px 8px 0 !important; white-space: nowrap; }
  .pdx-acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 700px) {
  .pdx-acc-stat { padding: 14px; }
  .pdx-acc-stat-n { font-size: 1.6rem; }
  .pdx-acc-grid { grid-template-columns: minmax(0, 1fr); }
  .pdx-acc-q { grid-template-columns: 52px minmax(0, 1fr); }
  .pdx-acc-q img, .pdx-acc-q-ph { width: 52px; height: 52px; }
  .pdx-acc-q-price { grid-column: 2; text-align: left; }
  .pdx-acc-q-actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 16px; }
}
.pdx-card-note { font: 600 .75rem/1 var(--pdx-body); color: var(--pdx-ink-soft); }

/* ---------- proof viewer ---------- */

html.pdx-proof-open { overflow: hidden; }
.pdx-proof { position: fixed; inset: 0; z-index: 100003; display: grid; place-items: stretch; padding: clamp(8px, 2vw, 28px); }
.pdx-proof[hidden] { display: none; }
.pdx-proof-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, .72); backdrop-filter: blur(3px); }
.pdx-proof-panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--pdx-surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: pdx-rise .22s var(--pdx-ease); }
.pdx-proof-head { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--pdx-line); }
.pdx-proof-title { display: grid; min-width: 0; margin-right: auto; }
.pdx-proof-title strong { font: 700 .95rem/1.2 var(--pdx-display); font-stretch: 112%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-proof-sub { font-size: .75rem; color: var(--pdx-ink-soft); }
.pdx-proof-layers { display: flex; flex-wrap: wrap; gap: 6px; }
.pdx-proof-layer { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1.5px solid var(--pdx-line-strong); border-radius: 999px; background: var(--pdx-surface); color: var(--pdx-ink-soft); font: 600 .75rem/1 var(--pdx-body); cursor: pointer; }
.pdx-proof-layer[aria-pressed="true"] { color: var(--pdx-ink); border-color: var(--pdx-ink); }
.pdx-proof-layer[aria-pressed="false"] { opacity: .6; }
.pdx-proof-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.pdx-proof-layer--bleed .pdx-proof-swatch { background: rgba(229, 0, 126, .25); }
.pdx-proof-layer--trim .pdx-proof-swatch { background: transparent; border: 1.5px solid var(--pdx-magenta); }
.pdx-proof-layer--safe .pdx-proof-swatch { background: transparent; border: 1.5px dashed var(--pdx-cyan); }
.pdx-proof-layer--marks .pdx-proof-swatch { background: transparent; border: 2px solid var(--pdx-orange-deep); }
.pdx-proof-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--pdx-ink-soft); cursor: pointer; }
.pdx-proof-close:hover { background: var(--pdx-paper); color: var(--pdx-ink); }
.pdx-proof-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.pdx-proof-panel.has-rail .pdx-proof-body { grid-template-columns: 112px minmax(0, 1fr); }
.pdx-proof-rail { overflow-y: auto; padding: 12px 10px; border-right: 1px solid var(--pdx-line); background: var(--pdx-paper); scrollbar-width: thin; }
.pdx-proof-rail[hidden] { display: none; }
.pdx-proof-rail ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pdx-proof-rail button { position: relative; display: grid; gap: 4px; justify-items: center; width: 100%; padding: 4px; border: 0; border-radius: 8px; background: none; font: 600 .6875rem/1 var(--pdx-body); color: var(--pdx-ink-soft); cursor: pointer; }
.pdx-proof-rail img, .pdx-proof-railph { display: block; width: 100%; max-height: 120px; object-fit: contain; background: #fff; box-shadow: 0 1px 3px rgba(23, 46, 75, .25); }
.pdx-proof-railph { aspect-ratio: .7071; background: var(--pdx-paper-2); }
.pdx-proof-rail button:hover { background: var(--pdx-paper-2); }
.pdx-proof-rail button.is-on { background: var(--pdx-surface); color: var(--pdx-ink); box-shadow: 0 0 0 2px var(--pdx-blue); }
.pdx-proof-rail button::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border: 2px solid var(--pdx-paper); border-radius: 50%; background: var(--pdx-ok); }
.pdx-proof-rail button[data-level="warn"]::after { background: #E0A100; }
.pdx-proof-rail button[data-level="error"]::after { background: var(--pdx-err); }
.pdx-proof-stage { position: relative; overflow: auto; background: #5a6472 repeating-conic-gradient(#596070 0 25%, #626a79 0 50%) 0 0 / 24px 24px; display: grid; place-items: start; padding: 24px; min-height: 0; cursor: grab; }
.pdx-proof-stage.is-grabbing { cursor: grabbing; }
.pdx-proof-canvaswrap { position: relative; margin: auto; box-shadow: 0 6px 24px -6px rgba(0, 0, 0, .5); }
.pdx-proof-canvas { display: block; }
.pdx-proof-overlay { position: absolute; inset: 0; pointer-events: none; }
.pdx-proof-overlay { overflow: hidden; }
.pdx-proof-overlay svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.pdx-ov-bleed { fill: rgba(229, 0, 126, .2); }
.pdx-ov-trim { fill: none; stroke: #E5007E; stroke-width: 1.5; }
.pdx-ov-safe { fill: none; stroke: #00A0E3; stroke-width: 1.2; stroke-dasharray: 6 4; }
.pdx-ov-mark { fill: rgba(241, 103, 33, .12); stroke: var(--pdx-orange-deep); stroke-width: 1.5; }
.pdx-ov-lowres { fill: rgba(179, 38, 30, .16); stroke: #B3261E; }
.pdx-ov-lowres-warn { fill: rgba(241, 103, 33, .14); stroke: #C2410C; }
.pdx-ov-text-edge { fill: rgba(224, 161, 0, .18); stroke: #B07A00; }
.pdx-ov-text-small { fill: rgba(124, 58, 237, .14); stroke: #6D28D9; }
.pdx-ov-bleed-gap, .pdx-ov-edge-art { fill: rgba(179, 38, 30, .22); stroke: #B3261E; stroke-dasharray: 4 3; }
.pdx-ov-mark.is-focus { stroke-width: 3; animation: pdx-focus 1.1s ease-in-out 3; }
@keyframes pdx-focus { 50% { stroke-opacity: .25; fill-opacity: .1; } }
.pdx-ov-label { fill: #fff; font: 700 11px var(--pdx-body); paint-order: stroke; stroke: rgba(23, 46, 75, .8); stroke-width: 3px; }
.pdx-proof-foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--pdx-line); }
.pdx-proof-pager, .pdx-proof-zoom { display: inline-flex; align-items: center; gap: 4px; }
.pdx-proof-pager button, .pdx-proof-zoom button { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1.5px solid var(--pdx-line-strong); border-radius: 8px; background: var(--pdx-surface); color: var(--pdx-ink); font: 600 .8125rem/1 var(--pdx-body); cursor: pointer; }
.pdx-proof-pager button:hover, .pdx-proof-zoom button:hover { border-color: var(--pdx-ink); }
.pdx-proof-pageno { min-width: 54px; text-align: center; font: 600 .8125rem/1 var(--pdx-body); font-variant-numeric: tabular-nums; }
.pdx-proof-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; margin: 0 0 0 auto; font-size: .8125rem; color: var(--pdx-ink-soft); font-variant-numeric: tabular-nums; }
.pdx-proof-legend .is-clean { display: inline-flex; align-items: center; gap: 5px; color: var(--pdx-ok); font-weight: 600; }
.pdx-proof-legend .is-clean .pdx-icon { width: 15px; height: 15px; }
.pdx-proof-mk { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1.5px solid var(--pdx-line-strong); border-radius: 999px; background: var(--pdx-surface); color: var(--pdx-ink); font: 600 .75rem/1 var(--pdx-body); cursor: zoom-in; }
.pdx-proof-mk:hover { border-color: var(--pdx-ink); }
.pdx-proof-mk i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid #B3261E; background: rgba(179, 38, 30, .2); }
.pdx-proof-mk--lowres-warn i { border-color: #C2410C; background: rgba(241, 103, 33, .2); }
.pdx-proof-mk--text-edge i { border-color: #B07A00; background: rgba(224, 161, 0, .25); }
.pdx-proof-mk--text-small i { border-color: #6D28D9; background: rgba(124, 58, 237, .2); }
@media (max-width: 720px) {
  .pdx-proof { padding: 0; }
  .pdx-proof-panel { border-radius: 0; }
  .pdx-proof-head { flex-wrap: wrap; }
  .pdx-proof-layers { order: 3; width: 100%; }
  .pdx-proof-panel.has-rail .pdx-proof-body { grid-template-columns: minmax(0, 1fr); }
  .pdx-proof-rail { display: none; }
  .pdx-proof-foot { flex-wrap: wrap; }
  .pdx-proof-legend { width: 100%; justify-content: flex-start; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .pdx-proof-panel { animation: none; } }

/* ---------- preview flat/3D toggle ---------- */
.pdx-view-toggle { display: inline-flex; margin-left: auto; margin-right: 10px; padding: 3px; border-radius: 999px; background: var(--pdx-paper-2); }
.pdx-view-toggle button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--pdx-ink-soft); font: 600 .75rem/1 var(--pdx-body); cursor: pointer; }
.pdx-view-toggle button[aria-pressed="true"] { background: var(--pdx-surface); color: var(--pdx-ink); box-shadow: 0 1px 3px rgba(23, 46, 75, .18); }
.pdx-stage-wrap { position: relative; }
.pdx-preview.is-3d .pdx-stage { perspective: 1400px; perspective-origin: 50% 40%; background: none; padding-bottom: 40px; }
.pdx-preview.is-3d .pdx-stage::before { content: none; }
.pdx-preview.is-3d .pdx-stage .pdx-svg {
  transform: rotateX(14deg) rotateY(-24deg) rotateZ(1deg);
  transform-origin: 50% 60%;
  transition: transform .5s var(--ease, cubic-bezier(.2, .7, .2, 1));
  filter: drop-shadow(14px 22px 16px rgba(23, 46, 75, .32));
}
.pdx-preview.is-3d .pdx-stage .pdx-dim,
.pdx-preview.is-3d .pdx-stage .pdx-dim-label,
.pdx-preview.is-3d .pdx-stage .pdx-ref,
.pdx-preview.is-3d .pdx-stage .pdx-ref-label { opacity: 0; transition: opacity .3s; }
.pdx-preview.is-3d .pdx-stage .pdx-sheet { stroke: rgba(23, 46, 75, .28); }
@media (prefers-reduced-motion: reduce) {
  .pdx-preview.is-3d .pdx-stage .pdx-svg { transition: none; }
}

/* ---------- 3D product (WebGL) ---------- */
.pdx-preview.is-gl .pdx-stage { display: block; height: 380px; min-height: 0; padding: 0; background: radial-gradient(120% 90% at 50% 38%, #fff 0%, var(--pdx-paper) 70%, var(--pdx-paper-2) 100%); }
.pdx-preview.is-gl .pdx-stage::before { content: none; }
.pdx-3d { position: relative; width: 100%; height: 100%; }
.pdx-3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; outline: none; }
.pdx-3d.is-grabbing .pdx-3d-canvas { cursor: grabbing; }
.pdx-3d-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: 0 1px 3px rgba(23, 46, 75, .12); color: var(--pdx-ink-soft); font: 500 .75rem/1.25 var(--pdx-body); text-align: center; width: max-content; max-width: calc(100% - 24px); pointer-events: none; backdrop-filter: blur(4px); }
.pdx-3d-hint:empty { display: none; }
@media (max-width: 600px) { .pdx-preview.is-gl .pdx-stage { height: 310px; } }
