/* Bundle Builder "Pick & Fill" (1.5.552: one filtered grid loaded page by page, board "Category loading" concept 4). Markup: page-bundle-builder.php; behaviour: assets/mrc-pickfill.js.
   Solid surfaces over the Aurora background (Blair: cards/filters must not be see-through). */
.mpf {
  --pf-bg: #0a0a0a; --pf-panel: #141418; --pf-panel2: #1b1b21; --pf-panel3: #24242c; --pf-line: #2c2c36; --pf-line2: #3a3a46;
  --pf-ink: #f5f5f7; --pf-mute: #b3b3bf; --pf-dim: #8b8b98; --pf-green: var(--accent, #39ff14); --pf-green-ink: var(--accent-ink, #062600);
  --pf-orange: #ff7b54; --pf-amber: #ffb547; --pf-gutter: clamp(14px, 3vw, 40px); --pf-top: 0px; --pf-bar: 76px;
  padding-bottom: 40px; color: var(--pf-ink);
}
html:has(.mpf), html:has(.mpf) body { overflow-x: clip !important; }
html:has(.mpf) .site-header { position: relative !important; top: 0 !important; }
html.mpf-lock, html.mpf-lock body { overflow: hidden !important; }
.mpf [hidden] { display: none !important; }
.mpf button { font: inherit; color: inherit; cursor: pointer; }
.mpf-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding-left: var(--pf-gutter); padding-right: var(--pf-gutter); box-sizing: border-box; }

/* head */
.mpf-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 32px; padding-top: clamp(18px, 2.6vw, 30px); padding-bottom: 16px; }
.mpf-kicker { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pf-green); }
.mpf-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 10px var(--pf-green); }
.mpf-title { margin: 8px 0 0; font: 400 clamp(40px, 5vw, 66px)/.92 var(--font-hero); text-transform: uppercase; color: #fff; }
.mpf-title span { background: var(--rainbow, linear-gradient(90deg, #ff2ec4, #ffd166 35%, #39ff14 65%, #2e9cff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mpf-how { margin: 0 0 6px; max-width: 470px; font: 500 15px/1.45 var(--font-body); color: var(--pf-mute); }
.mpf-how__phone { display: none; }
.mpf-fbar, .mpf-szpick { display: none; }
.mpf-phone-sizes { display: none; }
.mpf .mrc-mp-builder-note, .mpf .mrc-mp-note { margin-bottom: 14px; }

/* sticky search bar */
.mpf-barwrap { position: sticky; top: var(--pf-top); z-index: 40; }
.mpf-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--pf-line); border-radius: 18px; background: var(--pf-panel); box-shadow: 0 12px 30px -12px #000; }
.mpf-bar__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mpf-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 2px solid var(--pf-line2); border-radius: 14px; background: #0f0f13; color: var(--pf-mute); }
.mpf-search:focus-within { border-color: #2e9cff; box-shadow: 0 0 0 3px #2e9cff33; }
.mpf .mpf-search input:focus, .mpf .mpf-search input:focus-visible { outline: none !important; box-shadow: none !important; }
.mpf-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--pf-ink); font: 600 16px/1 var(--font-body); }
.mpf-search input::-webkit-search-cancel-button { filter: invert(1); }
.mpf-search kbd { font: 700 11px/1 var(--font-mono); padding: 3px 6px; border: 1px solid var(--pf-line2); border-bottom-width: 2px; border-radius: 6px; background: var(--pf-panel2); color: var(--pf-mute); }
.mpf-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.mpf-swatch { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; }
.mpf-swatch .mrc-swatch { width: 24px; height: 24px; box-shadow: 0 0 0 1px var(--pf-line2); }
.mpf-swatch.is-on .mrc-swatch { box-shadow: 0 0 0 3px var(--pf-panel), 0 0 0 5px var(--pf-green); }
.mpf-filterbtn { position: relative; display: none; place-items: center; flex: none; width: 50px; height: 50px; border: 1px solid var(--pf-line2); border-radius: 14px; background: var(--pf-panel2); }
.mpf-filterbtn i { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--pf-green); }
.mpf-colsheet { padding: 4px 2px 2px; }
.mpf-colsheet p { margin: 0 0 8px; font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pf-dim); }
.mpf-swatches.is-sheet .mpf-swatch { width: 44px; height: 44px; }
.mpf-swatches.is-sheet .mpf-swatch .mrc-swatch { width: 30px; height: 30px; }
.mpf-chips { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; scroll-padding-inline: 12px; }
.mpf-chips::-webkit-scrollbar { display: none; }
.mpf-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 5px; border: 1px solid var(--pf-line2); border-radius: 999px; background: var(--pf-panel2); font: 700 14px/1 var(--font-body); white-space: nowrap; }
.mpf-chip.is-active { border-color: var(--pf-orange); background: #2a1607; box-shadow: 0 0 0 1px var(--pf-orange); }
.mpf-chip.is-more { padding: 0 12px 0 14px; color: var(--pf-green); }
.mpf-chip.is-zero:not(.is-active) { opacity: .45; }
.mpf-sheetthemes { display: flex; flex-wrap: wrap; gap: 6px; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.mpf-colsheet p + .mpf-sheetthemes, .mpf-swatches.is-sheet + p { margin-top: 12px; }

/* emblems (category icons + collection badges, sized for this page) */
.mpf .mrc-catnav__icon, .mpf .mrc-catnav__badge, .mpf .mrc-mega__qicon, .mpf .mrc-emoji { flex: none; width: 30px; height: 30px; border-radius: 9px; }
.mpf .mrc-catnav__icon svg, .mpf .mrc-mega__qicon svg { width: 18px; height: 18px; }
.mpf .mrc-catnav__badge img { width: 24px; height: 24px; }
.mpf-chip .mrc-catnav__icon, .mpf-chip .mrc-catnav__badge, .mpf-chip .mrc-mega__qicon, .mpf-chip .mrc-emoji { width: 30px; height: 30px; border-radius: 50%; }

/* layout */
.mpf-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 350px; gap: 18px; align-items: start; margin-top: 16px; }
.mpf-rail, .mpf-tray { position: sticky; top: calc(var(--pf-top) + var(--pf-bar) + 14px); max-height: calc(100vh - var(--pf-top) - var(--pf-bar) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.mpf-rail { display: flex; flex-direction: column; gap: 1px; padding: 8px; border: 1px solid var(--pf-line); border-radius: 18px; background: var(--pf-panel); }
.mpf-rail__item { flex: none; height: auto; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 42px; padding: 4px 8px 4px 5px; border: 0; border-radius: 11px; background: none; font: 700 13.5px/1.2 var(--font-body); text-align: left; }
.mpf-rail__item span { flex: 1; min-width: 0; }
.mpf-rail__item small { font: 600 11px/1 var(--font-mono); color: var(--pf-dim); }
.mpf-rail__item:hover { background: var(--pf-panel2); }
.mpf-rail__item.is-active { background: var(--pf-panel2); box-shadow: inset 0 0 0 1px var(--pf-orange); }
.mpf-rail__item.is-all.is-active { background: var(--pf-orange); box-shadow: none; color: #1a0a00; }
.mpf-rail__item.is-all.is-active small { color: #1a0a00; }
.mpf-rail__item.is-zero:not(.is-active) { opacity: .45; }
.mpf-rail__item.is-extra { display: none; }
.mpf-rail.is-all .mpf-rail__item.is-extra, .mpf-rail__item.is-extra.is-active { display: flex; }
.mpf-rail__h { margin: 10px 8px 4px; font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pf-dim); }
.mpf-cb { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--pf-line2); border-radius: 5px; box-sizing: border-box; color: transparent; }
.mpf-rail__item.is-active .mpf-cb { border-color: var(--pf-orange); background: var(--pf-orange); color: #1a0a00; }
.mpf-rail__more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 8px 4px; padding: 6px 0; border: 0; background: none; font: 800 13px/1 var(--font-body); color: var(--pf-green); }

/* wall */
.mpf-wall { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mpf-sec { padding: 14px; border: 1px solid var(--pf-line); border-radius: 18px; background: var(--pf-panel); scroll-margin-top: calc(var(--pf-top) + var(--pf-bar) + 14px); }
.mpf-sec__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-width: 0; }
.mpf-sec__emb:empty { display: none; }
.mpf-sec__t { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.mpf-sec__t h2 { margin: 0; font: 600 23px/1.1 var(--font-display); color: #fff; }
.mpf-sec__n { font: 600 12px/1 var(--font-mono); color: var(--pf-dim); }
.mpf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 14px; border: 1px solid var(--pf-line2); border-radius: 12px; background: var(--pf-panel2); font: 700 14px/1 var(--font-body); white-space: nowrap; color: var(--pf-ink); text-decoration: none; }
.mpf-btn:hover { border-color: #5a5a68; color: #fff; }
.mpf-btn--sm { height: 38px; font-size: 13px; border-radius: 10px; }
/* results header: count, chosen themes, stock, sort, random */
.mpf-res__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; min-width: 0; }
.mpf-res__n { margin: 0 4px 0 0; font: 600 23px/1.1 var(--font-display); color: #fff; white-space: nowrap; }
.mpf-res__sel { display: contents; }
.mpf-res__sp { flex: 1; }
.mpf-chip.is-sel { height: 38px; padding: 0 12px 0 4px; border-color: var(--pf-orange); background: var(--pf-orange); color: #1a0a00 !important; box-shadow: none; }
.mpf-chip.is-sel .mrc-catnav__icon, .mpf-chip.is-sel .mrc-catnav__badge, .mpf-chip.is-sel .mrc-mega__qicon, .mpf-chip.is-sel .mrc-emoji { width: 28px; height: 28px; }
.mpf-chip.is-toggle { height: 38px; padding: 0 13px; font-size: 13px; color: var(--pf-mute); }
.mpf-chip.is-toggle svg { opacity: .35; }
.mpf-chip.is-toggle.is-active { border-color: var(--pf-green); background: #0f2a08; box-shadow: none; color: var(--pf-green); }
.mpf-chip.is-toggle.is-active svg { opacity: 1; }
.mpf-sort { position: relative; display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--pf-line2); border-radius: 999px; background: var(--pf-panel2); color: var(--pf-ink); }
.mpf-sort select { height: 100%; padding: 0 32px 0 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: 700 13px/1 var(--font-body); -webkit-appearance: none; appearance: none; cursor: pointer; }
.mpf-sort select:focus-visible { outline: 3px solid #2e9cff; outline-offset: 2px; }
.mpf-sort option { background: #141418; color: #f5f5f7; }
.mpf-sort svg { position: absolute; right: 11px; pointer-events: none; }
.mpf-more { margin: 14px 0 2px; font: 600 13px/1.4 var(--font-mono); color: var(--pf-dim); text-align: center; }
.mpf.is-loading .mpf-grid { opacity: .45; transition: opacity .2s .15s; }
.mpf-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mpf-tile, .mpf-skel { position: relative; aspect-ratio: 1; min-width: 0; border-radius: 14px; }
.mpf-tile { display: block; padding: 5px; border: 3px solid transparent; background: #fff; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform .12s, box-shadow .15s; }
.mpf-tile img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; pointer-events: none; }
.mpf-tile:active { transform: scale(.95); }
.mpf-tile:focus-visible { outline: 3px solid #2e9cff; outline-offset: 2px; }
.mpf-tile.is-on { border-color: var(--pf-green); box-shadow: inset 0 0 0 2px #0a0a0a; }
.mpf-tile__minus { position: absolute; top: -8px; left: -8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--pf-panel); border-radius: 50%; background: #ff5c8a; color: #1a0008; box-sizing: border-box; cursor: pointer; }
.mpf-tile__minus:hover { background: #ff86a8; }
.mpf-tile__q { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border: 3px solid var(--pf-panel); border-radius: 999px; background: var(--pf-green); color: var(--pf-green-ink); font: 700 14px/1 var(--font-display); box-sizing: border-box; }
.mpf-tile__bo { position: absolute; left: 7px; bottom: 7px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--pf-amber); }
.mpf-tile__name { position: absolute; left: -6px; right: -6px; top: calc(100% + 6px); z-index: 6; display: none; padding: 6px 8px; border: 1px solid var(--pf-line2); border-radius: 8px; background: #0a0a0a; color: #fff; font: 700 12.5px/1.25 var(--font-body); text-align: left; pointer-events: none; }
@media (hover: hover) {
  .mpf-tile:hover { border-color: #fff; box-shadow: 0 0 0 3px var(--pf-green); z-index: 6; }
  .mpf-tile:hover .mpf-tile__name, .mpf-tile:focus-visible .mpf-tile__name { display: block; }
}
.mpf-skel { background: #1e1e26; }
.mpf-empty { margin: 16px 0 8px; font: 600 14px/1.4 var(--font-body); color: var(--pf-mute); text-align: center; }
.mpf-link { padding: 4px 0; border: 0; background: none; font: 700 13px/1 var(--font-body); color: var(--pf-mute); text-decoration: underline; text-underline-offset: 3px; }
.mpf-link.is-centre { align-self: center; }
.mpf.is-filling .mpf-fill, .mpf.is-filling [data-pf-fill-quick] { opacity: .6; pointer-events: none; }

/* tray (desktop) */
.mpf-tray > * { flex: none; }
.mpf-tray { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--pf-line2); border-radius: 20px; background: var(--pf-panel); box-shadow: 0 16px 40px -20px #000; }
.mpf-tray__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mpf-tray__h > span { font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pf-mute); }
.mpf-tray__h b { font: 600 40px/1 var(--font-display); color: var(--pf-green); }
.mpf-tray__h small { font-size: 18px; color: var(--pf-mute); }
.mpf-tray__deal { margin: -4px 0 0; font: 500 14px/1.4 var(--font-body); color: var(--pf-mute); }
.mpf-tray__deal b { color: var(--pf-orange); }
.mpf-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mpf-size { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 2px; border: 1px solid var(--pf-line2); border-radius: 12px; background: var(--pf-panel2); line-height: 1.05; }
.mpf-size b { font: 700 21px/1 var(--font-display); color: var(--t); }
.mpf-size span { font: 800 12px/1 var(--font-body); color: var(--pf-ink); }
.mpf-size.is-on { border-color: var(--t); background: var(--t); }
.mpf-size.is-on b, .mpf-size.is-on span { color: #0a0a0a; }
.mpf-moresizes summary { cursor: pointer; font: 700 12.5px/1 var(--font-body); color: var(--pf-dim); list-style: none; }
.mpf-moresizes summary::-webkit-details-marker { display: none; }
.mpf-moresizes .mpf-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.mpf-slots { --cols: 6; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 7px; max-height: 268px; overflow-y: auto; padding: 10px; border: 1px solid var(--pf-line); border-radius: 16px; background: #0e0e12; scrollbar-width: thin; }
.mpf-slot { position: relative; min-width: 0; min-height: 0; width: 100%; height: auto; box-sizing: border-box; display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #1e1e26; box-shadow: inset 0 3px 7px #000c; }
.mpf-slot.is-on { background: #fff; box-shadow: 0 0 0 2px var(--pf-green); }
.mpf-slot.is-on img { width: 84%; height: 84%; object-fit: contain; border-radius: 50%; }
.mpf-slot.is-on:hover { box-shadow: 0 0 0 2px #ff5c8a; }
/* every charm in the tray shows its own remove button (tapping the slot takes that one out, with Undo) */
.mpf-slot__x { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #0e0e12; border-radius: 50%; background: #2a2a33; color: #fff; box-sizing: border-box; pointer-events: none; }
.mpf-slot.is-on:hover .mpf-slot__x, .mpf-slot.is-on:focus-visible .mpf-slot__x { background: #ff5c8a; color: #1a0008; }
.mpf-sheet .mpf-slot__x { width: 22px; height: 22px; }
.mpf-slot.is-next { background: transparent; border: 2px dashed var(--pf-green); box-shadow: 0 0 12px #39ff1455; }
.mpf-tray__left { display: flex; justify-content: space-between; align-items: center; font: 700 14px/1 var(--font-body); }
.mpf-tray__left b { color: var(--pf-orange); }
.mpf.is-ready .mpf-tray__left b { color: var(--pf-green); }
.mpf-fill { padding: 12px; border: 1px solid #5a3a20; border-radius: 14px; background: #1a1410; }
.mpf-fill__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--pf-amber); font: 500 14px/1.2 var(--font-body); }
.mpf-fill__h b { color: var(--pf-ink); }
.mpf-fill__b { display: flex; flex-wrap: wrap; gap: 6px; }
.mpf-fillbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--pf-line2); border-radius: 12px; background: var(--pf-panel2); font: 700 13px/1.15 var(--font-body); text-align: left; }
.mpf-fillbtn.is-any { padding: 0 13px; border-color: var(--pf-amber); background: var(--pf-amber); color: #2a1a00 !important; }
.mpf-fillbtn .mrc-catnav__icon, .mpf-fillbtn .mrc-catnav__badge, .mpf-fillbtn .mrc-mega__qicon, .mpf-fillbtn .mrc-emoji { width: 30px; height: 30px; }
.mpf-fill__note { margin: 8px 0 0; font: 500 12px/1.3 var(--font-body); color: var(--pf-dim); }
.mpf-track { display: flex; gap: 3px; height: 20px; }
.mpf-track__seg { position: relative; overflow: hidden; border-radius: 5px; background: #26262f; }
.mpf-track__seg i { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .3s; }
.mpf-track__seg b { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 11px/1 var(--font-mono); color: #8b8b98; }
.mpf-track__seg.is-full b { color: #0a0a0a; }
.mpf-track__seg.is-goal { box-shadow: 0 0 0 1px #fff; }
.mpf-track__seg.is-minor b { display: none; }
.mpf-ship { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 13px/1.3 var(--font-body); color: var(--pf-mute); }
.mpf-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 8px 14px; border: 0; border-radius: 13px; background: #2a2a33; color: var(--pf-ink) !important; font: 800 15px/1.2 var(--font-body); text-align: center; }
.mpf-cta.is-ready { background: var(--pf-green); color: var(--pf-green-ink) !important; box-shadow: 0 10px 26px -10px var(--pf-green); }
.mpf-cta:disabled { opacity: .7; cursor: progress; }
.mpf-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #3a1018; color: #ffd0d8; font: 600 13px/1.35 var(--font-body); }

/* dock, toast, sheet, preview (phones; the toast also shows on desktop) */
.mpf-dock { position: fixed; left: 50%; bottom: 18px; z-index: 9990; width: min(420px, calc(100% - 16px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mpf-dock > * { pointer-events: auto; }
.mpf-dock__in { display: none; }
.mpf-dock > .mpf-toast { pointer-events: none; }
.mpf-toast button { pointer-events: auto; }
.mpf-toast { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 13px; background: #f5f5f7; color: #0a0a0a; font: 700 14px/1.25 var(--font-body); box-shadow: 0 10px 28px #000a; }
.mpf-toast img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #ddd; background: #fff; object-fit: contain; }
.mpf-toast span { flex: 1; min-width: 0; padding-left: 4px; }
.mpf-toast button { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: #0a0a0a; color: #fff !important; font: 800 13px/1 var(--font-body); }
/* above the site header (z-index 10040) so sheets are never tucked under it */
.mpf-scrim { position: fixed; inset: 0; z-index: 10060; background: #000c; }
.mpf-x { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--pf-line2); border-radius: 50%; background: var(--pf-panel2); }
.mpf-peek { position: fixed; left: 50%; top: 50%; z-index: 10061; width: min(360px, calc(100% - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; transform: translate(-50%, -50%); padding: 12px; border: 1px solid var(--pf-line2); border-radius: 22px; background: var(--pf-panel); box-shadow: 0 20px 60px #000; box-sizing: border-box; }
.mpf-peek__img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; }
.mpf-peek__b { display: flex; flex-direction: column; gap: 7px; padding: 12px 4px 2px; }
.mpf-peek__c { font: 700 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pf-orange); }
.mpf-peek__b > b { font: 600 21px/1.2 var(--font-display); color: #fff; }
.mpf-peek__p { font: 500 13px/1.35 var(--font-body); color: var(--pf-mute); }
.mpf-peek__q { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px; border: 1px solid var(--pf-line2); border-radius: 14px; background: #0f0f13; }
.mpf-peek__q button { display: grid; place-items: center; width: 48px; height: 42px; border: 0; border-radius: 10px; background: var(--pf-panel3); }
.mpf-peek__q b { font: 600 20px/1 var(--font-display); }
.mpf-peek__a { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mpf-peek__a .mpf-cta { background: var(--pf-green); color: var(--pf-green-ink) !important; }
.mpf-peek__a .mpf-btn { height: 50px; }

/* phone tray sheet (1.5.543, design board "Phone tray sheet — New"): pinned head and add button, scrolling middle */
.mpf-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10061; display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; border-top: 1px solid var(--pf-line2); border-radius: 24px 24px 0 0; background: var(--pf-panel); box-shadow: 0 -20px 60px #000; box-sizing: border-box; overflow: hidden; }
.mpf-sheet__top { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 12px; border-bottom: 1px solid var(--pf-line); }
.mpf-sheet__grab { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #444; }
.mpf-sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mpf-sheet__kick { display: block; margin-bottom: 6px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pf-mute); }
.mpf-sheet__big { font: 600 38px/1 var(--font-display); color: var(--pf-green); }
.mpf-sheet__big small { font: 600 17px/1 var(--font-body); color: var(--pf-mute); }
.mpf-sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; padding: 14px 16px 10px; }
.mpf-sheet__foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pf-line); background: var(--pf-panel); box-shadow: 0 -10px 24px -12px #000; }
.mpf-sheet__foot .mpf-cta { min-height: 54px; }
.mpf-sheet__foot .mpf-error { width: 100%; box-sizing: border-box; }
.mpf-prog { --t: var(--pf-orange); padding: 14px; border: 1px solid var(--t); border-radius: 16px; background: var(--pf-panel2); box-shadow: inset 0 0 0 1px var(--t); }
.mpf-prog__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 600 14px/1.3 var(--font-body); color: var(--pf-mute); }
.mpf-prog__row > b { font: 400 21px/1.05 var(--font-chunky); color: #fff; text-align: right; }
.mpf-prog__name { font: 700 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.mpf-prog__row.is-sub { font-size: 13.5px; }
.mpf-prog__togo { font: 800 15px/1 var(--font-body); color: var(--t); }
.mpf.is-ready .mpf-prog__togo { color: var(--pf-green); }
.mpf-prog__bar { height: 14px; margin: 12px 0 10px; overflow: hidden; border-radius: 999px; background: #2a2a33; }
.mpf-prog__bar i { display: block; height: 100%; min-width: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--pf-green), var(--t)); transition: width .3s; }
.mpf-prog__ship { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--pf-line); font: 600 13.5px/1.3 var(--font-body); color: #d6d6de; }
.mpf-ssec h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; font: 600 18px/1.15 var(--font-display); color: #fff; }
.mpf-ssec h3 > span { font: 600 12.5px/1.2 var(--font-body); color: var(--pf-dim); text-align: right; }
.mpf-ssec h3.is-text { display: block; }
.mpf-ssec h3 > .mpf-ssec__n, .mpf-ssec h3 > b { font: inherit; color: inherit; }
.mpf-slots.is-compact { max-height: none; gap: 5px; padding: 8px; }
/* tray pop-up breakdown: summary chips + one row per charm */
.mpf-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.mpf-sum span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid var(--pf-line2); border-radius: 999px; background: var(--pf-panel2); font: 700 13px/1 var(--font-body); color: var(--pf-ink); }
.mpf-sum span.is-left { border-color: var(--pf-orange); color: var(--pf-orange); }
.mpf-sum span.is-full { border-color: var(--pf-green); color: var(--pf-green); }
.mpf-sum span.is-back { border-color: #7a5a1a; color: var(--pf-amber); }
.mpf-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--pf-line); border-radius: 16px; background: #0e0e12; overflow: hidden; }
.mpf-list:empty { display: none; }
.mpf-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--pf-line); }
.mpf-li:first-child { border-top: 0; }
.mpf-li img { flex: none; width: 48px; height: 48px; padding: 3px; border-radius: 10px; background: #fff; object-fit: contain; box-sizing: border-box; }
.mpf-li__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mpf-li__t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 14px/1.25 var(--font-body); color: #fff; }
.mpf-li__t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.2 var(--font-body); color: var(--pf-dim); }
.mpf-li__t span.is-back { color: var(--pf-amber); }
.mpf-li__q { flex: none; display: flex; align-items: center; height: 40px; border: 1px solid var(--pf-line2); border-radius: 12px; background: var(--pf-panel2); }
.mpf-li__q button { display: grid; place-items: center; width: 36px; height: 38px; padding: 0; border: 0; background: none; color: var(--pf-ink); }
.mpf-li__q button:disabled { opacity: .3; cursor: default; }
.mpf-li__q b { min-width: 18px; font: 600 17px/1 var(--font-display); text-align: center; color: var(--pf-green); }
.mpf-li__rm { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--pf-line2); border-radius: 12px; background: var(--pf-panel2); color: #ff8aa8; }
.mpf-li__rm:hover { border-color: #ff5c8a; background: #3a1018; }
.mpf-surprise { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--pf-amber); color: #2a1a00 !important; font: 800 16px/1.2 var(--font-body); }
.mpf-ssec__or { margin: 12px 0 8px; font: 600 13px/1.2 var(--font-body); color: var(--pf-dim); }
.mpf-themegrid { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; grid-template-rows: repeat(2, auto); gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
.mpf-themegrid::-webkit-scrollbar { display: none; }
.mpf-themetile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; min-height: 86px; padding: 10px 4px 8px; border: 1px solid var(--pf-line2); border-radius: 14px; background: var(--pf-panel2); font: 700 12px/1.15 var(--font-body); text-align: center; overflow-wrap: anywhere; }
.mpf .mpf-themetile .mrc-catnav__icon, .mpf .mpf-themetile .mrc-catnav__badge, .mpf .mpf-themetile .mrc-mega__qicon, .mpf .mpf-themetile .mrc-emoji { width: 36px; height: 36px; border-radius: 11px; }
.mpf .mpf-themetile .mrc-catnav__badge img { width: 30px; height: 30px; }
.mpf-deals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mpf-deal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 12px 3px 10px; border: 1px solid var(--pf-line2); border-radius: 14px; background: var(--pf-panel2); line-height: 1.1; overflow: hidden; }
.mpf-deal b { font: 700 24px/1 var(--font-display); color: var(--t); }
.mpf-deal__p { font: 800 13px/1.1 var(--font-body); color: #fff; }
.mpf-deal__e { font: 600 11px/1.15 var(--font-body); color: #9a9aa8; text-align: center; }
.mpf-deal__tick { display: none; position: absolute; top: 0; left: 0; right: 0; padding: 4px 0; background: var(--t); color: #0a0a0a; font: 800 10.5px/1 var(--font-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.mpf-deal.is-on { padding-top: 22px; border: 2px solid var(--t); background: color-mix(in srgb, var(--t) 16%, #141418); }
.mpf-deal.is-on .mpf-deal__tick { display: block; }
.mpf-nudge { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #6a2a70; border-radius: 12px; background: #2a1030; font: 600 13.5px/1.35 var(--font-body); color: #f0d6f5; }
.mpf-nudge b { color: #ff8be8; }

/* narrower desktops */
@media (max-width: 1280px) {
  .mpf-body { grid-template-columns: 222px minmax(0, 1fr) 320px; gap: 14px; }
  .mpf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .mpf-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .mpf-rail { display: none; }
  .mpf-chips { display: flex; }
}

/* phones and tablets: one column, dock + tray sheet */
@media (max-width: 900px) {
  .mpf { padding-bottom: 150px; --pf-gutter: 10px; }
  .mpf-body { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .mpf-tray { display: none; }
  /* compact header (board "Bundle builder phone", concept C): one line, tray size in a button, charms on the first screen */
  .mpf { display: flex; flex-direction: column; }
  .mpf-notewrap { order: 3; margin-top: 16px; }
  .mpf-head { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .mpf-head .mpf-kicker, .mpf-how, .mpf-phone-sizes { display: none; }
  .mpf-title { margin: 0; font-size: 34px; }
  .mpf-chips, .mpf .mpf-filterbtn, .mpf-colsheet, .mpf-res__h .is-toggle, .mpf-res__h .mpf-sort { display: none !important; }
  .mpf-res__sel { display: flex; order: 10; flex: 0 0 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .mpf-res__sel:empty { display: none; }
  .mpf-res__sel::-webkit-scrollbar { display: none; }
  .mpf-res__sel .mpf-chip { flex: none; }
  /* filter bar, floating just above the tray dock */
  .mpf-fbar { display: flex; align-self: center; gap: 2px; max-width: 100%; padding: 4px; border: 1px solid var(--pf-line2); border-radius: 999px; background: #0b0b0e; box-shadow: 0 10px 30px #000c; box-sizing: border-box; }
  .mpf-fbar button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--pf-ink); font: 800 14px/1 var(--font-body); white-space: nowrap; }
  .mpf-fbar button.is-on { background: var(--pf-orange); color: #1a0a00 !important; }
  .mpf-fbar__n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #1a0a00; color: var(--pf-orange); font: 800 11px/1 var(--font-body); box-sizing: border-box; }
  .mpf-fbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); }
  .mpf-fbar button.is-on .mpf-fbar__dot { background: #1a0a00; }
  /* filter sheet */
  .mpf-fsheet { height: 88vh; height: 88dvh; }
  .mpf-fsheet__t { font: 600 22px/1.1 var(--font-display); color: #fff; }
  .mpf-ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 2px -16px 0; padding: 0 16px; }
  .mpf-ftabs::-webkit-scrollbar { display: none; }
  .mpf-ftabs button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--pf-line2); border-radius: 999px; background: var(--pf-panel2); font: 700 14px/1 var(--font-body); white-space: nowrap; }
  .mpf-ftabs button.is-on { border-color: #fff; background: #fff; color: #0a0a0a !important; }
  .mpf-fsheet__body { gap: 4px; padding-top: 10px; }
  .mpf-fsearch { height: 46px; margin-bottom: 6px; }
  .mpf-fgh { margin: 10px 4px 4px; font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pf-dim); }
  .mpf-flist { display: flex; flex-direction: column; gap: 2px; }
  .mpf-frow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 4px 8px; border: 0; border-radius: 12px; background: none; font: 700 15px/1.2 var(--font-body); text-align: left; }
  .mpf-frow > span { flex: 1; min-width: 0; }
  .mpf-frow small { font: 600 12px/1 var(--font-mono); color: var(--pf-dim); }
  .mpf-frow em { display: block; margin-top: 2px; font: 600 12.5px/1.3 var(--font-body); font-style: normal; color: var(--pf-dim); }
  .mpf-frow.is-on { background: var(--pf-panel2); }
  .mpf-frow.is-zero:not(.is-on) { opacity: .45; }
  .mpf-frow .mpf-cb { width: 24px; height: 24px; border-radius: 7px; }
  .mpf-frow.is-on .mpf-cb { border-color: var(--pf-orange); background: var(--pf-orange); color: #1a0a00; }
  .mpf-radio { flex: none; width: 22px; height: 22px; border: 2px solid var(--pf-line2); border-radius: 50%; box-sizing: border-box; }
  .mpf-frow.is-on .mpf-radio { border: 7px solid var(--pf-orange); }
  .mpf-fnote { margin: 10px 4px 0; font: 600 13px/1.4 var(--font-body); color: var(--pf-mute); }
  .mpf-fsheet__foot { flex-direction: row; }
  .mpf-fsheet__foot .mpf-btn { height: 54px; }
  .mpf-fsheet__foot .mpf-cta { flex: 1; min-height: 54px; font-size: 16px; }
  .mpf-fsheet__foot .mpf-cta:disabled { background: #2a2a33; color: var(--pf-mute) !important; box-shadow: none; cursor: default; }
  .mpf-bar { padding: 8px; border-radius: 16px; gap: 8px; }
  .mpf-bar__row > .mpf-swatches { display: none; }
  .mpf-filterbtn { display: grid; }
  .mpf-search { height: 48px; }
  .mpf-search kbd { display: none; }
  .mpf-chips { margin: 0 -8px; padding: 0 8px; }
  .mpf-sec { padding: 10px; border-radius: 16px; }
  .mpf-sec__h { flex-wrap: wrap; }
  .mpf-sec__t h2 { font-size: 20px; }
  .mpf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .mpf-tile { padding: 3px; border-width: 2px; border-radius: 12px; }
  .mpf-tile__q { top: -6px; right: -6px; min-width: 24px; height: 24px; font-size: 12px; border-width: 2px; }
  .mpf-tile__minus { top: -7px; left: -7px; width: 28px; height: 28px; border-width: 2px; }
  .mpf-res__n { font-size: 20px; }
  .mpf-res__h .mpf-btn--sm span { display: none; }
  .mpf-res__h .mpf-btn--sm { flex: none; width: 42px; padding: 0; }
  .mpf-dock { bottom: 8px; }
  .mpf-dock__in { display: flex; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid var(--pf-line2); border-radius: 18px; background: #121216; box-shadow: 0 -10px 30px #000c; }
  .mpf-dock__top { display: flex; align-items: center; gap: 8px; }
  /* bundle size button + picker (board "Bundle size", option B): always on screen in the dock */
  .mpf-dock__size { --t: var(--pf-orange); flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 48px; padding: 6px 10px 6px 9px; border: 1.5px solid var(--t); border-radius: 13px; background: #24242c; line-height: 1; text-align: left; }
  .mpf-dock__size small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pf-mute); }
  .mpf-dock__size > span { display: flex; align-items: center; gap: 6px; max-width: 100%; font: 800 14px/1 var(--font-body); white-space: nowrap; }
  .mpf-dock__size > span > b { font: 600 24px/1 var(--font-display); color: var(--pf-green); }
  .mpf-dock__size > span > b i { font-style: normal; font-size: 15px; color: var(--pf-mute); }
  .mpf-szpick { flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--pf-line2); border-radius: 20px; background: var(--pf-panel); box-shadow: 0 -10px 50px #000; box-sizing: border-box; }
  .mpf-szpick:not([hidden]) { display: flex; }
  .mpf-szpick__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mpf-szpick__h b { font: 600 21px/1.1 var(--font-display); color: #fff; }
  .mpf-szpick__sub { margin: -4px 0 2px; font: 600 13px/1.35 var(--font-body); color: var(--pf-mute); }
  .mpf-szpick .mpf-nudge { margin: 2px 0 0; }
  .mpf.is-picking .mpf-dock { z-index: 10062; }
  .mpf.is-picking .mpf-fbar, .mpf.is-picking .mpf-toast { display: none; }
  /* with the tray sheet open, its Removed/Undo message shows above the sheet's buttons */
  .mpf.is-sheet .mpf-dock { z-index: 10062; bottom: 150px; }
  .mpf.is-sheet .mpf-dock__in, .mpf.is-sheet .mpf-fbar { display: none; }
  .mpf-dock__fill, .mpf-dock__tray { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border: 0; border-radius: 13px; font: 800 15px/1 var(--font-body); }
  .mpf-dock__fill { background: var(--pf-amber); color: #2a1a00 !important; }
  .mpf-dock__tray { background: var(--pf-green); color: var(--pf-green-ink) !important; }
  .mpf-pips { --n: 10; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
  .mpf-pips i { height: 8px; border-radius: 3px; background: #2a2a33; }
  .mpf-pips i.on { background: var(--pf-green); }
  .mpf-pips i.nx { background: transparent; box-shadow: inset 0 0 0 1px var(--pf-green); }
  .mpf-pips.is-bar { display: block; height: 8px; border-radius: 4px; background: #2a2a33; overflow: hidden; }
  .mpf-pips.is-bar i { display: block; height: 100%; border-radius: 0; background: var(--pf-green); }
  .mpf.is-ready .mpf-dock__tray { box-shadow: 0 0 0 3px #39ff1455; }
}
@media (min-width: 901px) {
  .mpf-sheet, .mpf-dock__in, .mpf-fbar, .mpf-szpick { display: none !important; }
}
@media (max-width: 520px) {
  .mpf .mpf-sec__h .mpf-btn--sm span { display: none !important; }
  .mpf .mpf-sec__h .mpf-btn--sm { flex: none; width: 42px; padding: 0; }
  .mpf-sec__h { flex-wrap: nowrap; }
}
@media (max-width: 380px) {
  .mpf-phone-sizes .mpf-size span { font-size: 11px; }
  .mpf-dock__fill, .mpf-dock__tray { padding: 0 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mpf-tile, .mpf-track__seg i { transition: none; }
}
