/* Shape picker. Cells have a width floor: a 7-column minmax(0,1fr) grid
   shrunk every thumb and its 9px label with the panel, so hits overlapped. */
.bfx-shape-closed{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border-radius:10px;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:inherit;font:inherit;text-align:left;cursor:pointer}
.bfx-shape-closed b{flex:1;font-size:13px;font-weight:650}
.bfx-shape-closed img,.bfx-shape-closed .bfx-ph,.bfx-shape-closed .bfx-mask{width:36px;height:36px;flex:0 0 36px}
.bfx-shape-pop{margin-top:6px}
.bfx-shapes{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
.bfx-shapes .bfx-card{padding:8px 6px 8px;text-align:center;min-height:72px}
.bfx-shapes .bfx-card>span{display:flex;flex-direction:column;align-items:center;width:100%;min-height:28px}
.bfx-shapes img,.bfx-shapes .bfx-ph,.bfx-shapes .bfx-mask{width:40px;height:40px;max-width:100%;object-fit:contain;display:block;margin:0 auto 4px}
.bfx-mask{display:block;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.bfx-shapes b{font-size:13px;font-weight:650;line-height:1.25}
.bfx-shapes .bfx-ph,.bfx-shape-closed .bfx-ph{border-radius:6px;background:
  radial-gradient(circle at 50% 45%, #fff 0 28%, transparent 30%)}
.bfx-lib-png{display:flex;align-items:center;gap:8px;margin-top:8px}
.bfx-lib-png img{width:36px;height:36px;object-fit:contain;border-radius:6px;background:#111}
.bfx-moves{display:flex;flex-wrap:wrap;gap:8px}
.bfx-moves button{font:inherit;font-size:13px;line-height:1.2;min-height:28px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:transparent;color:inherit;cursor:pointer}
.bfx-moves button.on{border-color:rgba(255,255,255,.7);background:rgba(255,255,255,.12)}
.bfx-fold{margin-top:8px}
.bfx-fold summary{cursor:pointer;font-size:12.5px;font-weight:650}
.bfx-plain-stub .bfx-cap{margin:0}
