/* ===========================================================================
   Inventory page (/inventory/, the old /profile/; public/profile/) — the page head ("Inventory" + the copies held,
   Withdraw / Deposit), text tabs, then the chosen section: items (+ the selection tray), transfers, history,
   settings; and the withdraw modals (the deposit-items window is the deposit sheet's Items tab: shell.css). Page-owned;
   builds on app.css + shell.css tokens.
   Borderless (owner rule): surfaces separate by tone (--surface-1/2/3) and soft shadow only. The only lines
   are --hairline dividers inside lists, the focus ring, the selected ring on item tiles and the item tile's
   rarity bottom edge. No mascot motion, no decorative glows, no count-ups; a section switch is one soft fade.
   =========================================================================== */

.pf-page { padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; min-height: 80vh; }
/* the tray floats over the page foot: the last row of cards (and the footer) clears it */
body.pf-has-selbar { padding-bottom: 110px; }

/* shared bits */
.pf-page .btn > span:not(.glare), .pf-modal .btn > span:not(.glare), .pf-selbar .btn > span:not(.glare) { display: inline-flex; align-items: center; gap: 7px; }
.pf-page .btn svg, .pf-modal .btn svg, .pf-selbar .btn svg { flex: none; }
/* .pf-btn-soft, .pf-done-actions, .pf-swap-in, .pf-thumbs / .pf-tchip, .pf-gem: shell.css (the deposit sheet's Items tab uses them on every page) */
.pf-page .btn-primary:active, .pf-modal .btn-primary:active { transform: scale(.97); }
.pf-card { position: relative; min-width: 0; border-radius: 18px; padding: 18px; background: var(--surface-1); box-shadow: var(--shadow-card); }
.pf-card-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.pf-page input[type="search"]::-webkit-search-cancel-button, .pf-modal input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.pf-pill-accent { background: rgba(139, 92, 246, .18) !important; color: #c9b8ff !important; }
.pf-inline { display: inline-flex; align-items: center; gap: 7px; }
/* PetSwap values (value icon, never $) */
.pf-v { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-v .vicon { width: 13px; height: 13px; }
.pf-sign { font-style: normal; margin-right: -1px; }
.pf-skel-text, .pf-skel-block { background: linear-gradient(100deg, #10131a 30%, #181c28 50%, #10131a 70%); background-size: 300% 100%; animation: skel-sweep 1.4s linear 600ms infinite; }
.pf-skel-text { display: inline-block; height: .8em; border-radius: 6px; vertical-align: middle; max-width: 100%; }
.pf-skel-block { border-radius: 14px; }

/* ---------------------------------------------------------------- page head
   "Inventory" + the copies held (a quiet number on the title's baseline, not a capsule; its skeleton has a two-digit
   number's width) and the page's two actions, 44px, no shine (rule 1): on the right, centred on the title; <= 560px
   two equal halves under it. On hold, ONE line under the title is the support link. No account card (the header has
   the account), no $ total. */
.pf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "h h"; align-items: center; column-gap: 16px; row-gap: 0; margin-bottom: 0; }
.pf-head .page-title { grid-area: t; min-width: 0; line-height: 1.15; }
.pf-count { margin-left: .2em; font-size: .5em; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .4); font-variant-numeric: tabular-nums; vertical-align: baseline; }
.pf-count-skel { width: 1.3em; height: .9em; vertical-align: baseline; }
.pf-head-btns { grid-area: b; display: flex; gap: 8px; }
.pf-head-btns .btn { height: 44px; padding: 0 18px; font-weight: 600; }
.pf-hold { grid-area: h; margin: 6px 0 0; min-width: 0; font-size: 14px; }
.pf-hold[hidden] { display: none; }
.pf-hold-a { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 6px; max-width: 100%; font-weight: 600; color: #ff8587; } /* "Contact support" takes a second line only on the smallest phones */
.pf-hold-a > span { white-space: nowrap; }
.pf-hold-a svg { flex: none; }
.pf-hold-dot { color: rgba(255, 133, 135, .55); }
.pf-hold-cta { color: #ffc2c3; text-decoration: underline; text-underline-offset: 2px; }
.pf-hold-a:hover, .pf-hold-a:hover .pf-hold-cta { color: #ffadae; }
/* signed out: the head says "Inventory" only (the "Log in" card is the section) */
.pf-page.is-out .pf-count, .pf-page.is-out .pf-head-btns, .pf-page.is-out .pf-hold, .pf-page.is-out .pf-nav { display: none; }
.pf-gate { max-width: 560px; margin: 18px auto 0; }
.pf-gate .empty-state { padding: 28px 12px 24px; }
.pf-gate .empty-state .btn { height: 44px; margin-top: 8px; padding: 0 20px; font-weight: 600; }

/* ---------------------------------------------------------------- section tabs (text + accent underline)
   >= 561px the first tab's text starts on the title's left edge (the row starts 14px left of the column, one tab
   padding), like the market's tab row */
.pf-nav { position: relative; display: flex; gap: 4px; margin: 8px 0 16px -14px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.pf-nav::-webkit-scrollbar { display: none; }
/* the row scrolls sideways only when the tabs don't fit (a 320px phone): a soft edge fade on the side that has more
   (profile.js keeps the active tab in view) */
.pf-nav.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.pf-nav.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
.pf-nav.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.pf-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.pf-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.pf-tab.on { color: #fff; }
.pf-tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(139, 92, 246, .6);
  opacity: 0; transform: scaleX(.4); transition: opacity 160ms var(--ease-out), transform 240ms var(--ease-out-quart); }
.pf-tab.on::after { opacity: 1; transform: none; }
/* the tab the page opens on is set before the first frame: no underline slide on arrival */
.pf-nav:not(.pf-ready) .pf-tab, .pf-nav:not(.pf-ready) .pf-tab::after { transition: none; }
.pf-tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(248, 183, 77, .16); color: #f8c46d; }
.pf-content { min-width: 0; }
.pf-content.pf-in { animation: pf-fade 200ms var(--ease-out) both; }

/* ---------------------------------------------------------------- quiet switch + sub headings */
.pf-seg { display: inline-flex; gap: 2px; max-width: 100%; margin-bottom: 14px; padding: 4px; border-radius: 14px; background: var(--surface-1); overflow-x: auto; scrollbar-width: none; }
.pf-seg::-webkit-scrollbar { display: none; }
.pf-seg button { height: 34px; padding: 0 15px; border-radius: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap; transition: color 160ms, background-color 160ms; }
.pf-seg button:hover { color: #fff; }
.pf-seg button:active { transform: scale(.97); }
.pf-seg button.on { color: #fff; background: rgba(139, 92, 246, .22); }
.pf-sub { margin: 22px 0 10px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.pf-content > .pf-sub:first-child { margin-top: 2px; }
.pf-seg + .pf-sub { margin-top: 6px; }
.pf-mini-empty { display: flex; align-items: center; gap: 10px; padding: 16px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- items */
.pf-inv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-gtabs .gt { height: 40px; cursor: pointer; }
.pf-gtabs .gt:active, .pf-pref .gt:active { transform: scale(.97); }
.pf-gt-n { font-style: normal; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .42); font-variant-numeric: tabular-nums; }
.gt.on .pf-gt-n { color: rgba(255, 255, 255, .8); }
.pf-inv-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--muted); }
.pf-inv-sum[hidden] { display: none; }
.pf-gems-card { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; padding: 20px; }
.pf-gems-art { flex: none; width: 80px; height: 80px; object-fit: contain; }
.pf-gems-main { flex: 1; min-width: 0; }
.pf-gems-main h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.pf-gems-main > p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pf-gems-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 0; }
.pf-gems-stats dt { color: var(--muted); font-size: 11px; }
.pf-gems-stats dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-gems-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 320px; }
.pf-gems-actions .btn, .pf-gems-manage { min-height: 40px; }
.pf-gems-manage { display: inline-flex; align-items: center; padding: 0 8px; color: var(--accent); font-size: 12px; }
@media (max-width: 640px) {
  .pf-gems-card { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px; }
  .pf-gems-art { width: 56px; height: 56px; }
  .pf-gems-main { flex: 1 1 calc(100% - 68px); }
  .pf-gems-stats { gap: 10px 20px; }
  .pf-gems-actions { width: 100%; max-width: none; }
  .pf-gems-actions .btn { flex: 1 1 115px; }
}
.pf-inv-sum b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-inv-sum .vicon { width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.pf-inv-sum > * { white-space: nowrap; }
.pf-cred { color: var(--muted); transition: color 150ms; }
.pf-cred:hover { color: #fff; }
/* the toolbar is ONE row at every width: search (it takes the room) + the status dropdown at its own width */
.pf-inv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf-search { flex: 1 1 auto; min-width: 0; max-width: 360px; }
.pf-search .input { height: 40px; }
.pf-inv-f { flex: none; display: inline-flex; min-width: 0; }
/* the section fades as one; cards don't rise one by one */
.pf-inv-grid .icard { animation: none; }
/* the art box keeps its aspect-ratio size when the image arrives (min-height:auto let it grow ~11px per row) */
.pf-inv-grid .ic-art { min-height: 0; }
/* names get two lines (the market grid's clamp: no "MYTHIC BLIZZARD D…"), and the cards of a row share its lines
   (subgrid rows: art · label · name · price line), so their prices and values end level whatever wraps; without
   subgrid the strip fills the card and the price line keeps the row's common bottom edge */
.pf-inv-grid .ic-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow-wrap: break-word; }
.pf-inv-grid .ic-strip { flex: 1 0 auto; }
.pf-inv-grid .ic-meta { flex-wrap: wrap; column-gap: 8px; row-gap: 1px; margin-top: auto; padding-top: 3px; }
@supports (grid-template-rows: subgrid) {
  .pf-inv-grid > .icard { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .pf-inv-grid .ic-strip { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; row-gap: 1px; }
  .pf-inv-grid .ic-meta { margin-top: 0; align-self: start; }
}
/* a card's ONE tag over the art (tone on a dark scrim, no outline): On hold > Withdrawing > Listed / On auction >
   Withdraw only; available copies carry none */
.pf-st { position: absolute; z-index: 3; left: 8px; bottom: 2px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(6, 8, 13, .76); color: #c9b8ff; font-variant-numeric: tabular-nums; }
.pf-st-hold { color: #ff9a9c; }
.pf-st-withdrawing { color: #f8c46d; }
.pf-st-locked { color: #9cc7ff; }
.pf-psv { display: inline-flex; align-items: center; gap: 4px; }
.pf-psv .vicon { width: 11px; height: 11px; }
.pf-psv.is-none { color: rgba(255, 255, 255, .3); }
.pf-inv-more, .pf-list-more { display: flex; justify-content: center; margin-top: 14px; }
.pf-inv-more:empty, .pf-list-more:empty { display: none; }
.pf-grid-empty { grid-column: 1 / -1; }
.pf-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.pf-empty-acts .btn { height: 44px; padding: 0 18px; font-weight: 600; }
/* small phones: the two actions stacked full width (two centred buttons of different widths read ragged) */
@media (max-width: 440px) {
  .pf-empty-acts { align-self: stretch; }
  .pf-empty-acts .btn { flex: 1 1 100%; }
}
/* "No MM2 items yet" while another game holds some: one quiet link to them (profile.js, that game's tab) */
.pf-inv-empty .pf-empty-alt { margin: 4px 0 0; font-size: 13px; }
.pf-empty-alt .link-btn { min-height: 40px; padding: 0 8px; }
/* picking: a tap ticks an available or Withdraw only card (no select mode); while something is picked the other
   pickable cards show their empty box and the rest dim. Hover-capable screens show the box on hover. */
.pf-inv-grid .icard[data-pick="1"] .ic-sel svg { transition: opacity 160ms, transform 220ms var(--ease-out-quart); }
.has-sel .icard[data-pick="1"]:not(.selected) .ic-sel { opacity: 1; transform: none; background: rgba(6, 8, 13, .62); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.has-sel .icard[data-pick="1"]:not(.selected) .ic-sel svg { opacity: 0; transform: scale(.4); }
@media (hover: hover) {
  .pf-inv-grid .icard[data-pick="1"]:not(.selected):hover .ic-sel { opacity: 1; transform: none; background: rgba(6, 8, 13, .62); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
  .pf-inv-grid .icard[data-pick="1"]:not(.selected):hover .ic-sel svg { opacity: 0; transform: scale(.4); }
}
.pf-inv-grid .icard.selected .ic-sel { background: var(--accent); box-shadow: 0 0 12px rgba(139, 92, 246, .8); }
.has-sel .icard[data-pick="0"] { opacity: .42; filter: saturate(.5); }
/* picking doesn't move a card (the grid stays still under the finger or the pointer): no lift on hover or press, a
   selected card's art rests; touch screens never get the hover effects (shell.css) */
.pf-inv-grid .icard.clickable:hover, .pf-inv-grid .icard.clickable:active, .pf-inv-grid .icard.selected:hover { transform: none; }
.pf-inv-grid .icard.selected .ic-art img, .pf-inv-grid .icard.selected:hover .ic-art img { transform: none; }
.icard.pf-tap { animation: pf-tap 280ms var(--ease-out-quart); }

/* the tray: [thumbs + "N selected" / value] Select all · Clear [Sell] [Withdraw]. Every label is fixed (the long
   forms "Sell on market" / "Withdraw to Roblox" from 700px), so nothing in it changes width while you pick. */
.pf-selbar { position: fixed; z-index: 55; left: 50%; bottom: 20px; width: min(900px, calc(100% - 32px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 20px;
  background: rgba(17, 20, 29, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-pop), 0 0 44px rgba(139, 92, 246, .18);
  animation: pf-bar-in 320ms var(--ease-out-quart) both; }
.pf-selbar.out { animation: pf-bar-out 200ms var(--ease-out) both; }
.psb-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.psb-thumbs { display: flex; align-items: center; flex: none; }
.psb-th, .psb-empty, .psb-more { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); box-shadow: -4px 0 10px rgba(0, 0, 0, .45); margin-left: -12px; }
.psb-thumbs > :first-child { margin-left: 0; }
.psb-th { object-fit: contain; padding: 3px; }
.psb-empty { display: grid; place-items: center; color: var(--accent-hover); background: rgba(139, 92, 246, .15); }
.psb-more { display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--accent); }
.psb-text { display: flex; flex-direction: column; min-width: 0; }
.psb-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.psb-text > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.psb-text .vicon { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; }
.psb-all, .psb-clear { flex: none; }
.psb-all:disabled { opacity: .4; }
.psb-actions { display: flex; gap: 8px; flex: none; }
.psb-actions .btn { height: 42px; font-weight: 600; }
.psb-sell.is-off { opacity: .45; pointer-events: none; }
.psb-sell.is-locked { opacity: .5; }
.psb-long { display: none; }
@media (min-width: 700px) { .psb-long { display: inline; } }

/* ---------------------------------------------------------------- modals (shared) */
.pf-mh-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(139, 92, 246, .16); color: var(--accent-hover); }
.pf-m-lead { margin: -4px 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.pf-m-lead b { color: #fff; }
.pf-modal .pr-label { display: inline-flex; align-items: center; gap: 6px; }
.pf-modal .pr-val { word-break: normal; overflow-wrap: anywhere; }
.pf-hint { margin: 7px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pf-how { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.pf-fine { margin: 10px 0 0; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.pf-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 6px; }
.pf-done .pc-check { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 18px; display: grid; place-items: center; background: rgba(5, 202, 98, .14); color: #3ee48b; }
.pf-done .pc-check svg { width: 30px; height: 30px; }
.pf-done h3 { font-size: 21px; }
.pf-done p { margin: 6px 0 14px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.pf-done p b { color: #fff; }
/* single-column grids must not grow to their nowrap content's min-content width */
.pf-xcards, .pf-xlist, .pf-swaps, .pf-mlist, .pf-wd-items, .pf-modal .pay-rows { grid-template-columns: minmax(0, 1fr); }

/* withdraw modal */
.pf-wd-modal { width: min(480px, 100%); }
.pf-wd-items { display: grid; gap: 6px; max-height: 236px; overflow-y: auto; padding-right: 2px; }
.pf-mini { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 10px; border-radius: 12px; background: linear-gradient(90deg, rgba(var(--rc), .16), transparent 55%), var(--surface-2); }
/* the art sits in its own small tile (like the transfer thumbs), inset from the row's edges */
.pf-mini-th { width: 38px; height: 38px; flex: none; padding: 3px; border-radius: 10px; object-fit: contain; background: rgba(255, 255, 255, .05); }
.pf-mini-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-mini-main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mini-badges { display: flex; gap: 3px; }
.pf-mini-badges:empty { display: none; }
.pf-mini-v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* the same side padding as the rows above (+ the list's 2px scroll gutter): the total shares the values' right edge */
.pf-wd-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0 10px; font-size: 13px; color: var(--muted); }
.pf-wd-total b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.pf-bot { margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(139, 92, 246, .09); }
.pf-bot .pay-row { background: rgba(0, 0, 0, .22); }
#wd-go { margin-top: 14px; }

/* the deposit-items window (the deposit sheet's Items tab, ui/itemdeposit.js) and its numbered steps: shell.css */

/* ---------------------------------------------------------------- transfers */
.pf-xcards { display: grid; gap: 10px; }
.pf-xcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 18px; background: var(--surface-1); box-shadow: var(--shadow-card); }
.pf-xcard.out { animation: pf-row-out 200ms var(--ease-out) forwards; }
.pxc-top { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pxc-main { display: flex; flex-direction: column; min-width: 0; }
/* "Withdrawal" + [code + copy]: the code and its copy button wrap together under the word on a narrow phone
   instead of spilling out of the card */
.pxc-main b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; white-space: nowrap; }
.pxc-code { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pxc-main b .mono { font-size: 14px; letter-spacing: .03em; }
/* game · items · time: wraps between whole parts (a 320px phone puts the time on line 2 instead of cutting it); the
   "·" in front of a part that starts a line hangs in the inner row's negative margin and is clipped, so no line
   starts or ends with a dot */
.pxc-meta { overflow: hidden; font-size: 12.5px; color: var(--muted); }
.pxc-meta-in { display: flex; flex-wrap: wrap; margin-left: -15px; }
.pxc-meta-in > span { position: relative; margin-left: 15px; white-space: nowrap; }
.pxc-meta-in > span::before { content: '·'; content: '·' / ''; position: absolute; left: -15px; width: 15px; text-align: center; }
.pxc-copy { width: 32px; height: 32px; }
.pxc-items { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pxc-items .pf-thumbs { flex: none; flex-wrap: nowrap; }
.pxc-names { min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxc-guide { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.pxc-bot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pxc-bot > svg { flex: none; color: var(--accent-hover); }
.pxc-wait { flex: 1 1 0; min-width: 0; } /* no bot yet: the line wraps beside its icon, not under it */
.pxc-bot b { color: #fff; }
.pxc-to { margin-left: auto; }
.pxc-guide p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.pxc-guide p b { color: #fff; }
.pxc-guide .pxc-readiness { padding-top: 6px; color: var(--foreground); }
.pf-withdraw-queue + .pf-withdraw-queue { margin-top: 10px; }
.pf-withdraw-queue .pf-withdraw-steps { max-width: none; margin: 12px 0; }
.pf-queue-title { display: flex; align-items: center; gap: 8px; }
.pf-queue-spin { flex: none; width: 16px; height: 16px; border: 2px solid rgba(139, 92, 246, .2); border-top-color: var(--accent); border-radius: 50%; animation: bd-spin .8s linear infinite; }
.pxc-friend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0; }
.pxc-friend small { flex: 1 1 220px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.pxc-friend-status { font-size: 12px; color: var(--muted); }
.pxc-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.pxc-note svg { flex: none; margin-top: 1px; color: #c4b5fd; }
.pxc-actions { display: flex; justify-content: flex-end; }
.pxc-actions .btn { min-height: 40px; }
.pf-xlist { display: grid; gap: 6px; }
.pf-xrow { display: grid; grid-template-columns: 38px minmax(0, 1.25fr) minmax(0, 1fr) auto; grid-template-areas: "ic main items status" "ic note note note"; align-items: center; column-gap: 12px; row-gap: 4px;
  min-width: 0; padding: 12px 14px; border-radius: 15px; background: var(--surface-1); box-shadow: var(--shadow-card); }
.pxr-ic { grid-area: ic; align-self: start; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(5, 202, 98, .1); color: #3ee48b; }
.pxr-ic.is-out { background: rgba(139, 92, 246, .14); color: #c9b8ff; }
.pxc-top .pxr-ic { grid-area: auto; align-self: center; }
.pxr-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.pxr-main b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxr-main > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxr-items { grid-area: items; min-width: 0; }
.pxr-items .pf-tchip { width: 32px; height: 32px; }
.pxr-items .pf-tchip-th { width: 26px; height: 26px; }
/* a past row's "+N" for the width shown (profile.js itemThumbs: five chips, three on small phones) */
.pxr-items .pf-tnarrow { display: none; }
/* small phones: the thumbnails share their row with the status pill (~123px at 320) — three smaller chips and the
   "+N" on ONE line, never 3 + 1 or a "+N" alone under them */
@media (max-width: 400px) {
  .pxr-items .pf-thumbs { flex-wrap: nowrap; gap: 4px; }
  .pxr-items .pf-tchip { width: 28px; height: 28px; }
  .pxr-items .pf-tchip-th { width: 22px; height: 22px; }
  .pxr-items .pf-twide { display: none; }
  .pxr-items .pf-tnarrow { display: inline; }
  .pxr-items .pf-tmore { padding: 0 2px; }
}
.pxr-status { grid-area: status; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pxr-sub { font-size: 11px; color: var(--muted); }
/* the speech-bubble icon keeps its size and sits on the first line when the note wraps */
.pxr-note { grid-area: note; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.pxr-note svg { flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- history */
.pf-swaps, .pf-mlist { display: grid; gap: 6px; }
.pf-swap { min-width: 0; padding: 12px 14px 14px; border-radius: 16px; background: var(--surface-1); box-shadow: var(--shadow-card); }
/* game, #id, time: whole pieces that wrap (a 320px phone puts the time on its own line, right-aligned) — never
   "Adopt / Me" or a cut swap id */
.psw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.psw-game { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.psw-time { margin-left: auto; white-space: nowrap; }
.psw-id { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psw-body { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 132px; align-items: center; gap: 12px; }
.psw-side { min-width: 0; }
.psw-lbl { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.psw-lbl .vicon { width: 11px; height: 11px; }
.psw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.psw-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 34px; padding: 0 10px 0 4px; border-radius: 10px; font-size: 12px; background: var(--surface-2); }
.psw-chip b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.psw-chip em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #c9b8ff; }
.psw-th { width: 26px; height: 26px; flex: none; object-fit: contain; }
.psw-credit { background: rgba(248, 183, 77, .1); padding-left: 10px; }
.psw-credit .vicon { width: 14px; height: 14px; }
.psw-credit.is-legacy { background: var(--surface-2); color: rgba(255, 255, 255, .7); }
.psw-credit.is-legacy svg { flex: none; color: rgba(255, 255, 255, .5); }
.psw-more { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.psw-arrow { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .55); }
.psw-net { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; min-width: 0; }
.psw-net > span { font-size: 11px; color: var(--muted); }
.psw-net b { font-size: 16px; font-variant-numeric: tabular-nums; }
.psw-net b .vicon { width: 14px; height: 14px; }
.psw-net.pos b { color: var(--success); }
.psw-net.neg b { color: #ff8587; }
.psw-net small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.psw-net small .pf-v { color: rgba(255, 255, 255, .85); font-weight: 600; }
.psw-net small .vicon { width: 11px; height: 11px; }
.psw-net.is-legacy b { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pf-mrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 64px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: 15px; background: var(--surface-1); box-shadow: var(--shadow-card); }
.pf-mrow-art { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: radial-gradient(circle at 50% 62%, rgba(var(--rc), .32), rgba(var(--rc), .07) 72%); }
.pf-mrow-th { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.pf-act-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); color: #c4b5fd; }
.pf-act-main { display: flex; flex-direction: column; min-width: 0; }
.pf-act-main b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-act-main > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-mrow-name { display: flex; align-items: center; gap: 6px; }
.pf-mrow-name > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mrow-badges { display: inline-flex; gap: 3px; flex: none; }
.pf-mrow-hl { color: rgba(255, 255, 255, .88); font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-mrow-sub .neg { font-variant-numeric: tabular-nums; }
.pf-act-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pf-act-amt { min-width: 76px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- settings */
.pf-set { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: stretch; } /* the two cards share the row's height */
.pf-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.pf-set-row:last-of-type { border-bottom: 0; }
.pf-set-l { flex: none; color: var(--muted); }
.pf-set-v { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; font-weight: 600; text-align: right; }
.pf-set-v .pr-copy { width: 32px; height: 32px; }
.pf-set-v .link-btn { font-size: 13px; }
.pf-acct { min-width: 0; }
.pf-acct img, .pf-acct-fb { width: 24px; height: 24px; flex: none; border-radius: 7px; object-fit: cover; }
.pf-acct-fb { display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #262040; }
.pf-acct b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pf-ext { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); transition: background-color 150ms, color 150ms; }
.pf-ext:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pf-set-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pf-set-note svg { flex: none; margin-top: 1px; color: var(--accent-hover); }
.pf-set-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; } /* Staff console · Log out · Sign out everywhere: wraps on phones */
.pf-set-actions .btn { height: 42px; font-weight: 600; }
.pf-logout:hover { color: #ff8587; }
.pf-set-hint { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.pf-pref { display: flex; width: 100%; }
.pf-pref .gt { flex: 1; justify-content: center; height: 40px; cursor: pointer; }
/* "Show the tour again" (ui/tutorial.js): one row under the game row, under a hairline (not pushed to the card's foot:
   that left an empty band between the two where the Account card beside it is taller) */
.pf-set > .pf-card:last-child { display: flex; flex-direction: column; }
.pf-set .pf-pref { margin-bottom: 18px; }
.pf-set-tour { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.pf-set-tour .btn { height: 40px; font-weight: 600; }

/* header mode (rule 21): Transfers, History and Settings list every game at once, so the header's Games button names
   none there — "Games" over a grid glyph, no game's icon (ui/chrome.js inserts the glyph; the button is shell.css's) */
.hgs-any { display: none; color: rgba(255, 255, 255, .75); }
.hgs-btn.is-any .hgs-any { display: block; }
.hgs-btn.is-any img.hgs-ico { display: none; }
/* header mode, signed out (the "Log in" card): no game to pick, so the Games button steps aside (shell.css) — and so do
   the fits rule 12 makes room for it with, which shell.css keys on the button being in the group: the spacer and, at
   901–1040px, the Discord chip are back (the header of a page without it; market.css does the same for My listings) */
:root:has(#pf-main.is-out) .site-header .bar > .header-spacer { display: block; }
:root:has(#pf-main.is-out) .site-header .bar > .header-actions { margin-left: 0; }
@media (min-width: 900.02px) and (max-width: 1040px) { :root:has(#pf-main.is-out) .header-actions .discord-chip { display: inline-flex; } }

/* ---------------------------------------------------------------- keyframes */
@keyframes pf-fade { from { opacity: 0; } }
@keyframes pf-pop { 0% { transform: scale(1); } 35% { transform: scale(.93); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes pf-tap { 40% { transform: scale(.95); } }
@keyframes pf-bump { 50% { transform: scale(1.025); background: #20263a; } }
@keyframes pf-bump-text { 50% { transform: scale(1.1); color: #c4b5fd; } }
@keyframes pf-row-add { from { opacity: 0; transform: translateX(16px); background: rgba(139, 92, 246, .32); } }
@keyframes pf-row-out { to { opacity: 0; transform: translateX(-16px) scale(.97); } }
@keyframes pf-bar-in { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes pf-bar-out { to { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .pf-page { padding-top: calc(var(--header-h) + 20px); }
  .pf-selbar { bottom: calc(56px + env(safe-area-inset-bottom) + 10px); width: min(900px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  /* the tab bar's room + the tray's */
  body.pf-has-selbar { padding-bottom: 170px; }
  .pf-set { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pf-nav { margin-top: 6px; margin-bottom: 12px; gap: 2px; }
  .pf-tab { padding: 0 12px; font-size: 14px; }
  .pf-tab::after { left: 12px; right: 12px; }
  .pf-nav { margin-left: -12px; }

  .pf-mrow { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic main amt" "ic main time"; row-gap: 0; column-gap: 10px; }
  .pf-mrow .pf-act-ic, .pf-mrow .pf-mrow-art { grid-area: ic; }
  .pf-mrow .pf-act-main { grid-area: main; }
  .pf-mrow .pf-act-amt { grid-area: amt; min-width: 0; align-self: end; }
  .pf-mrow .pf-act-time { grid-area: time; align-self: start; text-align: right; font-size: 11px; }
  .pf-mrow .pf-mrow-sub { white-space: normal; line-height: 1.45; }
  /* the title line gets the full width (the transfer code users quote to support is never cut); the status pill
     sits at the end of the thumbnails line */
  .pf-xrow { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: "ic main main" "ic items status" "ic note note"; row-gap: 8px; }
  .pxr-status { align-self: center; }
  .psw-body { grid-template-columns: 1fr; gap: 8px; }
  .psw-arrow { transform: rotate(90deg); width: 26px; height: 26px; margin: -2px 0; }
  .psw-net { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "s s"; align-items: center; column-gap: 10px; padding-top: 8px; border-top: 1px solid var(--hairline); text-align: left; }
  .psw-net > span { grid-area: l; }
  .psw-net b { grid-area: v; justify-self: end; }
  .psw-net small { grid-area: s; }
  .pxc-to { margin-left: 0; }
  .pxc-actions .btn { width: 100%; }
  .pf-selbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "info all clear" "act act act"; gap: 8px 4px; padding: 10px; }
  .psb-info { grid-area: info; gap: 10px; }
  .psb-all { grid-area: all; padding: 0 8px; }
  .psb-clear { grid-area: clear; padding: 0 8px; }
  .psb-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; }
  .psb-th, .psb-empty, .psb-more { width: 34px; height: 34px; }
  .psb-thumbs > :nth-child(n+3):not(.psb-more) { display: none; }
}
@media (max-width: 640px) {
  .pf-inv-top { gap: 10px; }
  .pf-gtabs { display: flex; width: 100%; }
  .pf-gtabs .gt { flex: 1; justify-content: center; padding: 0 8px; gap: 6px; }
  /* still one row: the search shrinks, the status dropdown keeps its own width */
  .pf-search { flex: 1 1 0; max-width: none; }
  .pf-card { padding: 14px; border-radius: 16px; }
  .pxc-top { grid-template-columns: 38px minmax(0, 1fr); }
  .pxc-top .pill { grid-column: 2; justify-self: start; }
  /* the Account rows keep one pattern on phones too (label left, value right; a long name ellipsizes) */
  .pf-set-row { gap: 10px; }
  .pf-modal .modal-close { width: 40px; height: 40px; }
}
@media (max-width: 899px), (pointer: coarse) {
  /* touch widths (tablets too, and a touch screen wider than that): every tap target >= 40px */
  .pf-seg button { height: 40px; }
  .pxc-copy, .pf-set-v .pr-copy, .pf-ext { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  /* the head's two actions: equal halves under the title; the tabs start at the column's edge and share the row */
  .pf-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "h" "b"; }
  .pf-head-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .pf-head-btns .btn { padding: 0 12px; }
  .pf-nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .pf-seg button { padding: 0 12px; }
  .pf-gtabs .gt { padding: 0 6px; gap: 5px; font-size: 13px; }
  .pf-gtabs .gt img { width: 17px; height: 17px; }
  .pf-tab { padding: 0 10px; }
  .pf-tab::after { left: 10px; right: 10px; }
}
@media (max-width: 380px) {
  /* all four tabs fit at 360px, with a two-digit Transfers count too */
  .pf-tab { padding: 0 8px; }
  .pf-tab::after { left: 8px; right: 8px; }
  /* Settings → Roblox account: the header's account chip has the avatar; the @name gets the room */
  .pf-acct img, .pf-acct .pf-acct-fb { display: none; }
}
@media (max-width: 359px) {
  /* the four tabs still fit at 320 (the row scrolls with an edge fade if a long count doesn't) */
  .pf-tab { gap: 5px; padding: 0 6px; font-size: 13.5px; }
  .pf-tab::after { left: 6px; right: 6px; }
  .pf-tab-n { min-width: 18px; height: 18px; padding: 0 5px; }
}
@media (max-width: 899px), (pointer: coarse) {
  .pf-selbar .btn-sm { height: 40px; min-height: 40px; }
  /* the hold link keeps its line height; an invisible ::after makes it a 40px tap target */
  .pf-hold-a::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 40px; margin-top: -20px; }
  /* the swap-credit text link keeps its size; an invisible ::after grows the hit area to 40px */
  .pf-cred { position: relative; }
  .pf-cred::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 40px; margin-top: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-page *, .pf-page *::before, .pf-page *::after, .pf-page .pf-content, .pf-selbar, .pf-selbar *, .pf-modal, .pf-modal * {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important;
  }
}

/* ---------------------------------------------------------------- five games (Oct 13: + BGSI, BGS)
   Items tabs and the Default game row stay one calm row at every width (the deposit window's game tiles: shell.css).
   Items: phones (<= 640px) share the row by content with labels only (the counts say where the items are); from 440px
   down only the chosen game shows its count. Every tap target stays >= 40px. */
@media (max-width: 640px) {
  .pf-gtabs .gt { flex: 1 1 auto; min-width: 40px; padding: 0 8px; gap: 5px; }
  .pf-gtabs .gt img { display: none; }
  /* a game that isn't live (app.css game states): its "Soon" / "Paused" capsule is a 6px dot where the row is shared */
  .pf-gtabs { --gs-dot-w: 6px; --gs-dot-h: 6px; --gs-dot-pad: 0; --gs-dot-fs: 0; --gs-dot-bg: rgba(255, 255, 255, .42); --gs-dot-bg-on: #fff; --gs-dot-pos: absolute; --gs-dot-top: 6px; --gs-dot-right: 5px; }
}
@media (max-width: 440px) {
  /* another game's count steps aside, but a tab that holds items keeps a 6px accent dot at its bottom-right (the
     top-right corner is the Soon / Paused dot's), so "Inventory 1" above an empty tab says where the item is */
  .pf-gtabs .gt { position: relative; }
  .pf-gtabs .gt:not(.on) .pf-gt-n { position: absolute; right: 5px; bottom: 6px; width: 6px; min-width: 0; height: 6px; padding: 0; border-radius: 50%; font-size: 0; background: var(--accent); }
}
@media (max-width: 359px) {
  .pf-gtabs .gt { padding: 0 5px; }
}
.pf-pref .gt { flex: 1 1 auto; min-width: 40px; padding: 0 10px; }
/* a game that isn't live: the 6px corner dot of the game states (app.css; the row has no counts to give way), its title says why */
.pf-pref { --gs-dot-w: 6px; --gs-dot-h: 6px; --gs-dot-pad: 0; --gs-dot-fs: 0; --gs-dot-bg: rgba(255, 255, 255, .42); --gs-dot-bg-on: #fff; --gs-dot-pos: absolute; --gs-dot-top: 6px; --gs-dot-right: 5px; }
@media (max-width: 1100px) {
  .pf-pref .gt img { display: none; }
}
@media (max-width: 900px) {
  .pf-pref .gt img { display: inline; }
}
@media (max-width: 600px) {
  .pf-pref .gt { padding: 0 6px; }
  .pf-pref .gt img { display: none; }
}

/* ---------------------------------------------------------------- PS99 trade bots (Oct 14): Diamonds, live deposits,
   bot withdrawals. Diamonds always carry the small gem (.pf-gem), never the value coin and never $. Same rules as the
   rest of the page: tone + shadow, no outlines, no idle motion. The Diamonds are a part of the PS99 items' summary
   line (#inv-sum): gem + amount + a small Withdraw. */
.pf-gfig[hidden] { display: none; }
.pf-g { display: inline-flex; align-items: center; gap: 10px; }
.pf-gem-v { display: inline-flex; align-items: center; gap: 5px; }
.pf-gem-v .pf-gem { flex: none; }
.pf-gem-wd { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1; color: #c9b8ff; background: rgba(139, 92, 246, .14);
  transition: background-color 150ms, color 150ms; }
.pf-gem-wd:hover { color: #fff; background: rgba(139, 92, 246, .24); }
.pf-gem-wd:active { transform: scale(.96); }
.pf-gem-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: #bae6fd; background: rgba(56, 189, 248, .1); font-variant-numeric: tabular-nums; }

/* withdraw: bot-held pets and other items go separately */
.pf-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pf-split-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.pf-split-row .pf-thumbs { flex: none; flex-wrap: nowrap; }
.pf-split-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-split-main b { font-size: 14px; }
.pf-split-main span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pf-split-go { flex: none; height: 40px; padding: 0 14px; font-weight: 600; }

/* PS99 withdraw sheet: the Diamonds field (keeps what was typed; the line under it reads it back) */
.pf-gems-f { margin-top: 14px; }
.pf-gems-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 13px; }
.pf-gems-top label { font-weight: 600; }
.pf-gems-bal { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-gems-in { position: relative; display: flex; align-items: center; border-radius: var(--radius-xl); }
.pf-gems-in > .pf-gem { position: absolute; left: 13px; pointer-events: none; }
.pf-gems-in .input { height: 48px; padding: 0 70px 0 40px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-gems-in:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.pf-gems-in:focus-within .input { box-shadow: none; }
.pf-gems-in.is-bad .input { background: rgba(219, 59, 62, .1); }
.pf-gems-max { position: absolute; right: 7px; height: 34px; padding: 0 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #c9b8ff; background: rgba(139, 92, 246, .16);
  transition: background-color 150ms, color 150ms; }
.pf-gems-max:hover { color: #fff; background: rgba(139, 92, 246, .26); }
.pf-gems-note { min-height: 18px; margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-gems-note.is-bad { color: #ff8587; }
.pf-bw #wd-go { margin-top: 12px; }

/* PS99 withdraw result: the bot, each job's status (Cancel while queued) */
.pf-bw-bot { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 16px; background: rgba(139, 92, 246, .09); }
.pf-bw-av { position: relative; width: 44px; height: 44px; flex: none; }
.pf-bw-av img, .pf-bw-av-fb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; object-fit: cover; background: var(--surface-3); color: rgba(255, 255, 255, .4); }
.pf-bw-av img { position: absolute; inset: 0; }
.pf-bw-av:has(img:not([hidden])) .pf-bw-av-fb { visibility: hidden; }
.pf-bw-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #16141f; }
.pf-bw-dot.is-off { background: #6b7280; }
.pf-bw-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-bw-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bw-who span { font-size: 12px; font-weight: 600; color: #8ee8b2; }
.pf-bw-av:has(.is-off) + .pf-bw-who span { color: var(--muted); }
.pf-bw-join { flex: none; height: 40px; padding: 0 14px; font-weight: 600; }
.pf-bw-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.pf-bw-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--surface-2); }
.pf-bw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-bw-main b { font-size: 13px; letter-spacing: .03em; }
.pf-bw-main span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bw-main .pf-bw-block { margin-top: 5px; white-space: normal; overflow: visible; line-height: 1.45; color: var(--foreground); }
.pf-bw-cancel { flex: none; min-height: 34px; }
.pf-bw-hint { margin: 10px 2px 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); text-wrap: pretty; }

/* Transfers: bot rows */
.pxr-items { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pf-bd-what > span:not(.pf-gem-chip) { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.pxc-join { position: relative; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-weight: 700; color: var(--accent-hover); }
.pxc-join:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .pf-split-row .pf-tchip:nth-child(n+3), .pf-split-row .pf-tmore { display: none; }
  .pf-bw-join .pf-long { display: none; }
}
@media (max-width: 899px) {
  .pf-gem-wd::after { content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 40px; margin-top: -20px; }
  /* Join server: a 40px tall link (rule 11) whose negative margin keeps the bot line's height */
  .pxc-join { min-height: 40px; padding: 0 6px; margin: -10px -6px -10px auto; }
  /* the result card's Cancel (PS99 and MM2) is a 40px tap target on touch widths (its 52px row has the room) */
  .pf-bw-cancel { min-height: 40px; }
}

/* ---------------------------------------------------------------- MM2 trade bots (Oct 15): live deposits, bot
   withdrawals. The same result card and Transfers rows as PS99 (the deposit window: shell.css); MM2 items stack (a
   count beside the name: "x2"), and one trade takes at most 4 different items. Tone + shadow only, no outlines, no idle motion. */
.pf-mini-x { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.35; color: #c9b8ff; background: rgba(139, 92, 246, .16);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the withdraw sheet's one note: a request is split into trades of up to 4 different items */
.pf-bw-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 2px 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); text-wrap: pretty; }
.pf-bw-note svg { flex: none; margin-top: 1px; color: var(--accent-hover); }

/* ---------------------------------------------------------------- BGSI trade bots (Oct 16): an open withdrawal's
   verification phrase — the three quick chats the real bot sends in its trade (ui/cards.js quickChats; the block's own
   look is in shell.css .qc): on a line of its own under the result card's row, and inside a Transfers card's guide on
   the guide's tone. */
.pf-bw-row.has-qc { flex-wrap: wrap; }
.pf-bw-qc { flex: 1 0 100%; min-width: 0; padding-bottom: 2px; }
.pxc-guide .qc { margin-top: 10px; padding: 0; background: none; }
