/* Workbench pictures (wb-visual-v1, 12 Nov 2026, G: "the locker view to select rather than the names ... easy for all users",
   "previously the locker had a library vibe"). Built on beanville.css variables; the Bean Locker's rack look. */

/* the BEAN shelf: one row of pictures (scrolls sideways on phones), with an A / B / ✓ tag on the picked ones */
.wb-shelf { display: flex !important; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.wb-shelf .wb-bean { flex: 0 0 96px; position: relative; scroll-snap-align: start; border-width: 3px; }
.wb-shelf .wb-bean .m { padding: 4px 6px 6px; border-top-width: 2px; }
.wb-shelf .wb-bean .m b { font-size: 12px; }
.wb-shelf .wb-bean[aria-pressed="true"] { outline: 4px solid var(--accent); outline-offset: -4px; transform: translateY(-3px); }
.wb-bean[data-tag]:not([data-tag=""])::after { content: attr(data-tag); position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: #fff; font: 800 14px/1 var(--f-display, inherit); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
@media (min-width: 900px) { .wb-shelf .wb-bean { flex-basis: 112px; } }

/* a picture slot */
.wb-th { display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 3px solid var(--edge); }
.wb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-th.loading img { filter: grayscale(.6) brightness(.8); }
.wb-th.loading { position: relative; }
.wb-th.loading::after { content: "Trying it on…"; position: absolute; inset: auto 0 0 0; padding: 4px; font-size: 11px; text-align: center; background: rgba(0,0,0,.55); color: #fff; }
.wb-th.wb-icon { display: grid; place-items: center; font-size: 42px; }

/* Swap: one card per layer, two pictures and a big ⇄ */
.wb-rackhead { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 10px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.wb-rackhead span:last-child { grid-column: 3; text-align: right; }
.wb-rack { display: grid; gap: 12px; }
.wb-layer { border: 2px solid var(--line); border-radius: var(--r-md, 16px); background: var(--surface-2); padding: 10px; }
.wb-layer.swapped { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.wb-layer.off { opacity: .62; }
.wb-lh { font-weight: 800; margin: 0 0 8px; }
.wb-lh small { font-weight: 600; color: var(--muted); }
.wb-lh .wb-ok { color: var(--accent); }
.wb-pair { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.wb-side { display: grid; gap: 6px; min-width: 0; }
.wb-side .wb-th { max-width: 220px; justify-self: center; }
.wb-cap { font-size: 13px; line-height: 1.35; text-align: center; }
.wb-cap span { font-weight: 800; }
.wb-had { font-size: 11px; color: var(--muted); text-align: center; }
.wb-swap { width: 64px !important; height: 64px !important; border-radius: 50% !important; font-size: 26px !important; display: grid !important; place-items: center; line-height: 1; padding: 0 !important; }
.wb-swap small { font-size: 10px; font-weight: 800; margin-top: -10px; }
.wb-swap[aria-pressed="true"] { background: var(--accent) !important; color: #fff !important; }
@media (max-width: 420px) { .wb-pair { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 6px; } .wb-swap { width: 54px !important; height: 54px !important; } }

/* Take off, The Roaster, Bean Locker: a rack of picture tiles (like My Bean Locker) */
.bm-list.wb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.bm-list.wb-tiles > li.wb-tile { display: grid; gap: 8px; align-content: start; justify-content: stretch; padding: 8px; cursor: pointer; }
.bm-list.wb-tiles > li.hint { grid-column: 1 / -1; }
.wb-tile .wb-pic { position: relative; }
.wb-tile .who { text-align: center; justify-items: center; }
.wb-tile .who b { font-size: 14px; }
.wb-tile .who small { font-size: 12px; }
.wb-tile .btn { width: 100%; }
.wb-tile[aria-selected="true"] { outline: 4px solid var(--accent); outline-offset: -4px; }
.wb-gone { position: absolute; right: 8px; bottom: 8px; font-size: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.wb-ctabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; }
.wb-ctabs button { flex: 0 0 auto; border: 2px solid var(--line); background: var(--surface-2); color: inherit; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.wb-ctabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Prices: folded under the tools */
.wb-prices > summary { cursor: pointer; list-style: none; }
.wb-prices > summary::-webkit-details-marker { display: none; }
.wb-prices > summary::before { content: "▸ "; }
.wb-prices[open] > summary::before { content: "▾ "; }
.wb-tile .btn { font-size: 14px; padding: 8px 6px; white-space: nowrap; }
.wb-rack, .wb-rackhead { max-width: 820px; }
@media (min-width: 700px) { .bm-list.wb-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
