.pb-export {
  box-sizing:border-box;width:min(100% - 24px,540px);max-height:calc(100dvh - 24px);
  margin:auto;padding:clamp(16px,4vw,28px);overflow:auto;overscroll-behavior:contain;
  border:1px solid #171716;border-radius:8px;color:#171716;background:#f7f3eb;
  font:500 16px/1.35 system-ui,sans-serif;box-shadow:0 18px 80px #0005;
}
.pb-export::backdrop{background:#111b}
.pb-export *{box-sizing:border-box}
.pb-export header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid;padding:0 0 12px}
.pb-export h2{font:700 clamp(23px,6vw,32px)/1 Georgia,serif;margin:0}
.pb-export button,.pb-export select,.pb-export a{font:inherit;color:inherit}
.pb-export button,.pb-export select,.pb-export a[download]{min-height:44px;padding:9px 12px;border:1px solid #77736a;background:transparent;border-radius:5px;cursor:pointer}
.pb-export button:focus-visible,.pb-export select:focus-visible,.pb-export a:focus-visible{outline:3px solid #356384;outline-offset:2px}
.pb-export header button{font-size:23px;width:44px;padding:0}
.pb-export .pb-picks,.pb-export .pb-acts,.pb-export .pb-downloads{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.pb-export label{flex:1;min-width:118px;font-size:13px;font-weight:700}
.pb-export select{width:100%;display:block;margin-top:4px;font-weight:600;font-size:15px}
.pb-export .pb-previews{display:flex;gap:8px;align-items:center;justify-content:center;min-height:84px;padding:12px 0;background:#e8e4dc;margin-top:14px}
.pb-previews canvas{object-fit:contain;width:auto;max-width:92%;height:auto;max-height:min(30dvh,270px);border:1px solid #0003}
.pb-previews canvas:nth-last-child(2),.pb-previews canvas:nth-child(2){max-width:45%}
.pb-export .pb-acts button:first-child{background:#dcf302;color:#10110a;border-color:#111;font-weight:750}
.pb-export button:disabled{opacity:.45;cursor:wait}
.pb-export .pb-downloads a{display:inline-flex;align-items:center;text-decoration:underline;font-size:14px;min-height:44px}
.pb-export output{display:block;font-size:14px;margin-top:10px}
.pb-editions{border:0;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.pb-editions legend{padding:0;margin-bottom:4px;font-size:13px;font-weight:700}
.pb-editions label{position:relative;flex:1 1 auto;min-width:0}
.pb-editions input{position:absolute;opacity:0;width:1px;height:1px}
.pb-editions span{min-height:44px;border:1px solid #817d74;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px;cursor:pointer}
.pb-editions input:focus-visible+span{outline:3px solid #356384;outline-offset:2px}
.pb-editions input:checked+span{border:2px solid #242821;background:#e8e6dc;padding:5px}
.pb-editions span:before{display:inline-block;content:'';width:14px;height:14px;border-radius:50%;border:1px solid #0005;flex:none}
.pb-edition-original:before{background:linear-gradient(135deg,#171716 50%,#dcf302 51%)}
.pb-edition-tinta:before{background:linear-gradient(135deg,#225159 50%,#ec8f74 51%)}
.pb-edition-metal:before{background:linear-gradient(135deg,#4e6256,#eff4e8 48%,#a5b7a8 50%,#d4ff32)}
