.pc-filter{margin:16px 0;padding:16px;border:1px solid var(--line,#ded6ef);border-radius:18px;background:var(--bg,#faf7ff)}.pc-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.pc-strip{display:flex;gap:12px;overflow-x:auto;padding:4px}.pc-filter button,.pc-dialog button{font:inherit;color:inherit;cursor:pointer;border:1px solid #a78bfa66;border-radius:12px;padding:10px;background:transparent}.pc-strip .pc-card{display:flex;align-items:center;gap:12px;min-width:220px;text-align:left;transition:transform .2s,box-shadow .2s}.pc-card img{width:65px;height:92px;object-fit:contain;border-radius:6px}.pc-card span{display:grid;gap:5px}.pc-card small{font-size:11px}.pc-strip button[aria-pressed=true]{border-color:#8b3dff;background:#8b3dff15;box-shadow:0 0 0 2px #8b3dff22}.pc-card:hover{transform:translateY(-2px)}.pc-dialog{width:min(760px,calc(100vw - 24px));max-height:88dvh;border:1px solid #a78bfa55;border-radius:20px;background:var(--bg,#faf7ff);color:var(--text,#211636);padding:20px;box-sizing:border-box;box-shadow:0 24px 80px #0005}.pc-dialog::backdrop{background:#10082099;backdrop-filter:blur(6px)}.pc-dialog header,.pc-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.pc-dialog header button{font-size:24px;padding:4px 12px}.pc-hero{display:flex;gap:20px;align-items:center;margin:14px 0}.pc-hero img{width:90px;height:128px;object-fit:contain}.pc-hero h3,.pc-hero p{margin:0 0 8px}.pc-dialog input[type=search]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #a78bfa66;border-radius:12px;background:transparent;color:inherit;font:inherit}.pc-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:40dvh;overflow:auto;margin:12px 0;padding:2px}.pc-choice{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #a78bfa44;border-radius:10px;cursor:pointer;flex-wrap:wrap}.pc-choice:has(input:checked){background:#8b3dff18;border-color:#8b3dff}.pc-choice img{width:42px;height:42px;object-fit:cover;border-radius:6px}.pc-choice small{font-size:11px;margin-left:auto}.pc-choice input{accent-color:#7c3aed;width:18px;height:18px}.pc-dialog .pc-save{background:#7c3aed;color:white;padding:12px 24px}.pc-dialog button:disabled{opacity:.5;cursor:wait}.pc-dialog>p{color:#b54d47}.pc-filter[hidden],.pc-filter [hidden]{display:none!important}@media(max-width:520px){.pc-choices{grid-template-columns:1fr}.pc-heading{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:no-preference){.pc-dialog[open]{animation:pc-enter .2s ease-out}@keyframes pc-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}@media(prefers-reduced-motion:reduce){.pc-card{transition:none!important;transform:none!important}}

#area .pc-managed-product{position:relative}#area .pc-product-manage{position:absolute;top:10px;right:10px;z-index:2;border:1px solid #ffffff66;border-radius:10px;padding:9px 12px;background:#251044e8;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 3px 14px #0004;backdrop-filter:blur(8px);transition:background .18s,transform .18s}#area .pc-product-manage:hover{background:#7c3aed;transform:translateY(-1px)}#area .pc-product-manage:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}@media(prefers-reduced-motion:reduce){#area .pc-product-manage{transition:none;transform:none}}

#area .pc-product-manage{display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:10px}#area .pc-product-manage svg{display:block;pointer-events:none}

/* Assigned player cards, visible to every storefront visitor. */
#stock #area button.card{position:relative}
#stock #area .pc-product-badges{position:absolute;top:8px;left:8px;z-index:3;display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:3px;max-width:calc(100% - 56px);pointer-events:none}
#stock #area .pc-product-badges img{display:block;flex:0 0 24px;width:24px;height:24px;aspect-ratio:1/1;min-height:0;max-height:none;object-fit:contain;border:0;border-radius:3px;background:#21133c;box-shadow:0 0 3px 1px rgba(0,0,0,.9),0 3px 7px rgba(0,0,0,.8)}

/* Pencil button based on the supplied gradient design. */
#area .pc-product-manage.peb{--ease:cubic-bezier(.2,.8,.2,1);width:40px;height:40px;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:13px;color:#fff;background:linear-gradient(135deg,#9b5cf6,#6d28d9);box-shadow:0 8px 18px -10px #7c3aed70,inset 0 1px 0 #ffffff40;backdrop-filter:none;isolation:isolate;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:transform .2s var(--ease),box-shadow .3s}
#area .pc-product-manage.peb::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 35%,#ffffff59 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s var(--ease)}
#area .pc-product-manage.peb svg{width:18px;height:18px;overflow:visible}
#area .pc-product-manage.peb .pn{transform-box:fill-box;transform-origin:0 100%}
#area .pc-product-manage.peb .ln{stroke-dasharray:14;stroke-dashoffset:14;transition:stroke-dashoffset .45s var(--ease) .05s}
#area .pc-product-manage.peb:is(:hover,:focus-visible){box-shadow:0 12px 24px -10px #7c3aed70,inset 0 1px 0 #ffffff40;transform:translateY(-1px)}
#area .pc-product-manage.peb:is(:hover,:focus-visible)::after{transform:translateX(120%)}
#area .pc-product-manage.peb:is(:hover,:focus-visible) .pn{animation:pc-pencil-write .7s var(--ease)}
#area .pc-product-manage.peb:is(:hover,:focus-visible) .ln{stroke-dashoffset:0}
#area .pc-product-manage.peb:active{transform:scale(.92)}
@keyframes pc-pencil-write{0%,100%{transform:rotate(0)}30%{transform:rotate(-14deg) translate(-1px,1px)}55%{transform:rotate(6deg)}80%{transform:rotate(-4deg)}}
@media(pointer:coarse){#area .pc-product-manage.peb{width:44px;height:44px;min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){#area .pc-product-manage.peb,#area .pc-product-manage.peb::after,#area .pc-product-manage.peb *{animation:none!important;transition:none!important}#area .pc-product-manage.peb{transform:none}}


#area .pc-product-delete.peb{right:58px;background:linear-gradient(135deg,#fb7185,#dc2626);box-shadow:0 8px 18px -10px #dc262670,inset 0 1px 0 #ffffff40}
#area .pc-product-delete.peb:is(:hover,:focus-visible){box-shadow:0 12px 24px -10px #dc262670,inset 0 1px 0 #ffffff40}
#area .pc-product-delete.peb:focus-visible{outline-color:#fda4af}
#area .pc-product-delete .trash-lid{transform-origin:18px 6px;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
#area .pc-product-delete:is(:hover,:focus-visible) .trash-lid{transform:translateY(-2px) rotate( -12deg)}
#area .pc-product-delete:disabled{opacity:.6;cursor:wait}
#stock #area .pc-managed-product .pc-product-badges{max-width:calc(100% - 112px)}
@media(pointer:coarse){#area .pc-product-delete.peb{right:62px}}
@media(prefers-reduced-motion:reduce){#area .pc-product-delete .trash-lid{transform:none!important}}


/* Leave the NEW ribbon clear; ordinary cards keep their original badge position. */
#stock #area .card:has(.nwb-rib:not([hidden])) .pc-product-badges{top:78px}

#stock #area .pc-product-badges img[src$="-square.png"],#stock #area .pc-product-badges img[src$="-square-thumb.webp"]{height:24px;aspect-ratio:1/1}

/* Icon-only storefront actions retain their touch targets. */
#area .pc-product-manage.peb,#area .pc-product-manage.peb:is(:hover,:focus-visible,:active){background:transparent;box-shadow:none;border:0;backdrop-filter:none;color:#fff}
#area .pc-product-manage.peb::after{display:none}
#area .pc-product-delete.peb{color:#fb7185}

/* Subtle contrast over product artwork, without button backgrounds. */
#area .pc-product-manage.peb svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.75))}
