/* G1 — customer selling (/me/listings, /me/auctions, /me/buybacks, the
 * sell-offer builder on /buybacks/{uuid}). Every class is sf-selling-*.
 * Tokens are theme-v2's (--v2-*); shared kit lives in pages.css. */

/* ---------- Page bits ---------- */
.sf-selling-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sf-selling-bar .sf-tabs { margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.sf-selling-search { display: flex; align-items: center; gap: 8px; min-width: min(300px, 100%); position: relative; }
.sf-selling-search .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--v2-muted); pointer-events: none; }
.sf-selling-search .sf-input { padding-left: 36px; }
.sf-selling-back { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--v2-muted); margin-bottom: 16px; }
.sf-selling-back:hover { color: var(--v2-accent); }
.sf-selling-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.sf-selling-empty { padding: 50px 20px; text-align: center; }
.sf-selling-empty .icon { width: 40px; height: 40px; color: var(--v2-accent); opacity: .7; }
.sf-selling-empty h3 { font-size: 15px; margin: 12px 0 6px; }
.sf-selling-empty p { font-size: 12px; color: var(--v2-muted); margin-bottom: 16px; }
.sf-selling-muted { color: var(--v2-muted); font-size: 12px; }
.sf-selling-num { font-family: var(--v2-mono); }
.sf-selling-flash { margin: 0 0 16px; }
.sf-selling-flash.is-ok { border-color: #3ee8a066; background: #3ee8a00d; color: #8ff5c7; }
.sf-selling-flash.is-bad { border-color: #ff006e66; background: #ff006e0d; color: #ff8fbb; }
.icon.sf-selling-i { width: 15px; height: 15px; }

/* ---------- Tables (desktop) → cards (phone) ---------- */
.sf-selling-table-wrap { overflow-x: auto; }
.sf-selling-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sf-selling-table th { text-align: left; font: 400 10px var(--v2-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--v2-muted); padding: 8px 10px; border-bottom: 1px solid #ffffff24; white-space: nowrap; }
.sf-selling-table td { padding: 12px 10px; border-bottom: 1px solid var(--v2-line); vertical-align: middle; }
.sf-selling-table tr:hover td { background: #ffffff04; }
.sf-selling-table .is-num { text-align: right; font-family: var(--v2-mono); white-space: nowrap; }
.sf-selling-table .is-center { text-align: center; }
.sf-selling-sort { display: inline-flex; gap: 4px; align-items: center; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.sf-selling-sort:hover, .sf-selling-sort.is-on { color: var(--v2-accent); }
.sf-selling-sort i { font-style: normal; opacity: .8; }
.sf-selling-thumb { width: 52px; height: 72px; object-fit: contain; background: #0d0719; border: 1px solid #ffffff14; display: grid; place-items: center; }
.sf-selling-thumb .icon { width: 18px; height: 18px; color: var(--v2-muted); }
.sf-selling-name { font-weight: 700; line-height: 1.4; display: block; }
.sf-selling-name.is-off { color: var(--v2-muted); text-decoration: line-through; text-decoration-color: #ffffff44; }
a.sf-selling-name:hover { color: var(--v2-accent); }
.sf-selling-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--v2-muted); margin-top: 3px; }
.sf-selling-meta b { color: var(--v2-text); font-weight: 600; }
.sf-selling-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sf-selling-mini a, .sf-selling-mini span { width: 30px; height: 40px; border: 1px solid #ffffff1f; background: #0d0719; overflow: hidden; }
.sf-selling-mini img { width: 100%; height: 100%; object-fit: cover; }
.sf-selling-note { font-size: 11px; color: #d9d0e6; margin-top: 6px; padding: 6px 8px; border-left: 2px solid var(--v2-accent); background: #00f0ff08; }
.sf-selling-price { font: 700 14px var(--v2-mono); color: var(--v2-accent); white-space: nowrap; }
.sf-selling-price.is-off { color: var(--v2-muted); }
.sf-selling-acts { display: flex; gap: 4px; justify-content: flex-end; }
.sf-selling-iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #ffffff1f; color: #d9d0e6; background: transparent; cursor: pointer; }
.sf-selling-iconbtn:hover { border-color: var(--v2-accent); color: var(--v2-accent); }
.sf-selling-iconbtn.is-danger:hover { border-color: #ff006e99; color: #ff5c9d; }
.sf-selling-iconbtn .icon { width: 15px; height: 15px; }
.sf-selling-switch { position: relative; width: 42px; height: 22px; border: 1px solid #ffffff33; background: #ffffff0d; cursor: pointer; transition: background .2s, border-color .2s; }
.sf-selling-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--v2-muted); transition: transform .2s, background .2s; }
.sf-selling-switch.is-on { background: #00f0ff26; border-color: var(--v2-accent); }
.sf-selling-switch.is-on::after { transform: translateX(20px); background: var(--v2-accent); }
.sf-selling-switch:disabled { opacity: .5; cursor: wait; }
.sf-selling-table-wrap.is-loading { opacity: .55; transition: opacity .15s; }

/* ---------- Row lists (auctions / buybacks) ---------- */
.sf-selling-rows { display: grid; gap: 10px; }
.sf-selling-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--v2-surface); border: 1px solid #ffffff1a; }
a.sf-selling-row:hover { border-color: #00f0ff55; }
.sf-selling-row > img, .sf-selling-row > .sf-selling-thumb { width: 56px; height: 78px; object-fit: contain; background: #0d0719; }
.sf-selling-row h3 { font-size: 14px; font-weight: 700; line-height: 1.4; }
.sf-selling-row .sf-selling-end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.sf-selling-row .sf-selling-end small { font-size: 11px; color: var(--v2-muted); }
.sf-selling-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sf-selling-chips span { font-size: 11px; padding: 3px 7px; background: #ffffff08; border: 1px solid #ffffff14; }
.sf-selling-chips b { color: var(--v2-accent); font-family: var(--v2-mono); font-weight: 700; }

/* ---------- Forms ---------- */
.sf-selling-form { display: grid; gap: 18px; }
.sf-selling-form .sf-panel + .sf-panel { margin-top: 0; }
.sf-selling-form .sf-field > label, .sf-selling-label { display: block; font-size: 12px; color: var(--v2-muted); margin-bottom: 6px; }
.sf-selling-form .sf-field .sf-input, .sf-selling-form .sf-field .sf-select { width: 100%; min-height: 46px; font-size: 14px; }
.sf-selling-form .sf-select { width: 100%; }
.sf-selling-req { color: #ff5c9d; }
.sf-selling-form .sf-hint { display: block; font-size: 11px; line-height: 1.6; color: var(--v2-muted); margin-top: 5px; }
.sf-selling-locked { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 8px 12px; border: 1px dashed #ffffff2e; color: var(--v2-muted); font-size: 13px; }
.sf-selling-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.sf-selling-type button { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid #ffffff24; font-size: 13px; font-weight: 600; color: #c7bdd6; text-align: left; }
.sf-selling-type button::before { content: ''; flex: 0 0 14px; height: 14px; border: 2px solid #ffffff44; border-radius: 50%; }
.sf-selling-type button.is-on { border-color: var(--v2-accent); color: var(--v2-accent); background: #00f0ff0d; }
.sf-selling-type button.is-on::before { border-color: var(--v2-accent); background: radial-gradient(circle, var(--v2-accent) 45%, transparent 50%); }
.sf-selling-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.sf-selling-actions .button { min-height: 48px; }
.sf-selling-actions .sf-selling-spacer { margin-right: auto; }
.sf-selling-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.sf-selling-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sf-selling-total { font: 700 12px var(--v2-mono); color: var(--v2-accent); padding: 5px 9px; border: 1px solid #00f0ff55; }
.sf-panel h2 .sf-selling-total, .sf-panel h2 .sf-selling-muted { margin-left: auto; text-transform: none; letter-spacing: 0; }

/* card picker */
.sf-selling-picked { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid #00f0ff55; background: #00f0ff0a; }
.sf-selling-picked img { width: 44px; height: 61px; object-fit: contain; }
.sf-selling-picked b { display: block; font-size: 14px; line-height: 1.35; }
.sf-selling-picked small { font: 11px var(--v2-mono); color: var(--v2-muted); }
.sf-selling-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 470px; overflow-y: auto; margin-top: 10px; padding: 2px 4px 2px 0; scrollbar-width: thin; scrollbar-color: #00f0ff55 transparent; }
.sf-selling-pick.is-loading { opacity: .5; }
.sf-selling-pick button, .sf-selling-pickcard > button { display: grid; gap: 6px; padding: 8px; border: 1px solid #ffffff1a; background: #0d0719; text-align: left; transition: border-color .15s, transform .15s; }
.sf-selling-pick button:hover { border-color: var(--v2-accent); transform: translateY(-2px); }
.sf-selling-pick img { width: 100%; aspect-ratio: 600 / 838; object-fit: contain; }
.sf-selling-pick b { font: 700 10px var(--v2-mono); color: var(--v2-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-selling-pick span { font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-selling-pick .sf-note { grid-column: 1 / -1; padding: 30px 10px; text-align: center; }
.sf-selling-pick.is-products img { aspect-ratio: 1; }
.sf-selling-pickcard { position: relative; display: grid; }
.sf-selling-zoom { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; background: #05000ccc; border: 1px solid #ffffff2e; color: #d9d0e6; opacity: .85; transition: opacity .15s, border-color .15s, color .15s; }
.sf-selling-zoom:hover, .sf-selling-zoom:focus-visible { opacity: 1; border-color: var(--v2-accent); color: var(--v2-accent); }
.sf-selling-zoom .icon { width: 15px; height: 15px; }
.sf-selling-picked a { display: block; cursor: zoom-in; }
.sf-selling-locked-logo { height: 26px; width: auto; max-width: 72px; object-fit: contain; }

/* picker trigger + tile dialogs (game / series) */
.sf-selling-trigger { width: 100%; min-height: 46px; display: flex; gap: 10px; align-items: center; padding: 6px 12px; border: 1px solid #ffffff2e; background: #0d0719; color: var(--v2-text); font-size: 14px; text-align: left; transition: border-color .15s; }
.sf-selling-trigger:hover:not(:disabled), .sf-selling-trigger:focus-visible { border-color: var(--v2-accent); }
.sf-selling-trigger:disabled { opacity: .45; cursor: not-allowed; }
.sf-selling-trigger img { height: 28px; width: auto; max-width: 76px; object-fit: contain; flex: 0 0 auto; }
.sf-selling-trigger span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-selling-trigger span.is-empty { color: var(--v2-muted); }
.sf-selling-trigger .icon { width: 16px; height: 16px; color: var(--v2-muted); flex: 0 0 auto; }
.sf-selling-dlg { width: min(860px, calc(100% - 24px)); max-height: calc(100vh - 40px); display: none; }
.sf-selling-dlg[open] { display: flex; flex-direction: column; }
.sf-selling-dlg .sf-dialog-body { flex: 1 1 auto; min-height: 0; padding-top: 14px; }
.sf-selling-dlg .sf-dialog-head button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--v2-muted); }
.sf-selling-dlg .sf-dialog-head button:hover { color: var(--v2-pink); }
.sf-selling-dlg .sf-dialog-head .icon { width: 18px; height: 18px; }
.sf-selling-dlg-q { width: 100%; max-width: 440px; margin-bottom: 14px; }
.sf-selling-dlg-q .sf-input { width: 100%; }
.sf-selling-dlg-q .icon { top: 50%; margin-top: -8px; }
.sf-selling-dlg-none { padding: 26px 8px; text-align: center; grid-column: 1 / -1; }
.sf-selling-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sf-selling-tiles.is-series { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sf-selling-tiles[hidden], .sf-selling-tile[hidden], .sf-selling-dlg-none[hidden] { display: none; }
.sf-selling-tile { position: relative; display: grid; grid-template-rows: 78px auto auto; gap: 6px; align-content: start; padding: 10px; border: 1px solid #ffffff1a; background: #0d0719; text-align: center; transition: border-color .15s, transform .15s, background .15s; }
.sf-selling-tile:hover { border-color: var(--v2-accent); transform: translateY(-2px); }
.sf-selling-tile.is-on { border-color: var(--v2-accent); background: #00f0ff12; box-shadow: inset 0 0 0 1px var(--v2-accent); }
.sf-selling-tile-art { display: grid; place-items: center; overflow: hidden; }
.sf-selling-tile-art img { max-width: 100%; max-height: 78px; object-fit: contain; }
.sf-selling-tile-art .icon { width: 30px; height: 30px; color: var(--v2-muted); }
.sf-selling-tile b { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-selling-tile small { display: inline-flex; gap: 4px; align-items: center; justify-content: center; font: 700 10px var(--v2-mono); color: var(--v2-accent); letter-spacing: 1px; }
.sf-selling-tile small .icon { width: 12px; height: 12px; }
.sf-selling-tile.is-group { border-style: dashed; }
.sf-selling-tile.is-back { border-style: dashed; color: var(--v2-muted); }
.sf-selling-tile.is-back small { color: var(--v2-muted); letter-spacing: 0; font-family: inherit; font-weight: 400; }
.sf-selling-tile-flag { position: absolute; top: 6px; left: 6px; width: 20px; height: 14px; object-fit: cover; border: 1px solid #0006; }
.sf-selling-tiles.is-series .sf-selling-tile { grid-template-rows: 96px auto; }
.sf-selling-tiles.is-series .sf-selling-tile-art img { max-height: 96px; }
.sf-selling-money { display: block; }

/* photo uploader (Livewire forms) */
.sf-selling-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-selling-photo { position: relative; width: 96px; height: 128px; border: 1px solid #ffffff24; background: #0d0719; }
.sf-selling-photo.is-new { border-color: #00f0ff66; }
.sf-selling-photo img { width: 100%; height: 100%; object-fit: cover; }
.sf-selling-photo button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; background: #ff006e; color: #fff; }
.sf-selling-photo button .icon { width: 12px; height: 12px; }
.sf-selling-photo em { position: absolute; left: 4px; bottom: 4px; font: 700 9px/1 var(--v2-mono); font-style: normal; padding: 4px 5px; background: var(--v2-accent); color: var(--v2-bg); }
.sf-selling-drop { width: 96px; height: 128px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 8px; border: 1px dashed #ffffff44; color: var(--v2-muted); font-size: 11px; text-align: center; cursor: pointer; }
.sf-selling-drop:hover, .sf-selling-drop.is-over { border-color: var(--v2-accent); color: var(--v2-accent); background: #00f0ff08; }
.sf-selling-drop .icon { width: 22px; height: 22px; }
.sf-selling-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sf-selling-count { font: 700 11px var(--v2-mono); color: var(--v2-muted); }

/* tier rows (buyback create / edit) */
.sf-selling-tierrows { display: grid; gap: 10px; }
.sf-selling-tierrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .7fr) 40px; gap: 10px; align-items: end; padding: 12px; border: 1px solid #ffffff14; background: #ffffff04; }
.sf-selling-tierrow.is-fixed { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); }
.sf-selling-tierrow .sf-field > label { font-size: 11px; margin-bottom: 4px; }
.sf-selling-tierrow .sf-input, .sf-selling-tierrow .sf-select { min-height: 42px !important; font-size: 13px !important; }
.sf-selling-tierrow .sf-selling-iconbtn { width: 42px; height: 42px; }
.sf-selling-tierrow .sf-input:disabled { opacity: .45; }

/* ---------- Auction / buyback detail (owner) ---------- */
.sf-selling-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.sf-selling-detail .sf-gallery { top: 150px; }
.sf-selling-detail .sf-gallery-stage { padding: 22px; }
.sf-selling-detail .sf-gallery-stage img { width: min(100%, 250px); }
.sf-selling-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.sf-selling-stats div { padding: 12px; background: #ffffff05; border: 1px solid var(--v2-line); }
.sf-selling-stats small { display: block; font-size: 11px; color: var(--v2-muted); }
.sf-selling-stats b { font: 700 17px var(--v2-mono); }
.sf-selling-bids { display: grid; }
.sf-selling-bid { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--v2-line); font-size: 13px; }
.sf-selling-bid:last-child { border-bottom: 0; }
.sf-selling-bid .sf-shop-logo { width: 34px; height: 34px; font-size: 13px; }
.sf-selling-bid small { display: block; font-size: 11px; color: var(--v2-muted); }
.sf-selling-bid b { font-family: var(--v2-mono); color: var(--v2-accent); }
.sf-selling-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sf-selling-btnrow form { display: contents; }
.sf-selling-btnrow .button { min-height: 40px; padding: 0 16px; font-size: 12px; }
.sf-selling-batch { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--v2-line); }
.sf-selling-batch:last-child { border-bottom: 0; }
.sf-selling-batch:hover { color: var(--v2-accent); }
.sf-selling-batch .sf-shop-logo { width: 40px; height: 40px; font-size: 15px; }
.sf-selling-batch .icon { width: 16px; height: 16px; color: var(--v2-muted); }
.sf-selling-batch .sf-selling-end { display: grid; gap: 4px; justify-items: end; }

/* offers review (buyer side) */
.sf-selling-who { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.sf-selling-who > div { display: flex; gap: 12px; align-items: center; }
.sf-selling-who .sf-shop-logo { width: 46px; height: 46px; }
.sf-selling-who b { font-size: 15px; }
.sf-selling-who .sf-selling-sum { text-align: right; }
.sf-selling-who .sf-selling-sum b { display: block; font: 700 24px var(--v2-mono); color: var(--v2-accent); }
.sf-selling-check { width: 18px; height: 18px; accent-color: var(--v2-accent); }
.sf-selling-bulk { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding: 12px; background: var(--v2-surface); border: 1px solid #00f0ff55; box-shadow: 0 -12px 30px #0009; }
.sf-selling-bulk .sf-input { flex: 1 1 240px; }
.sf-selling-bulk .button { min-height: 44px; padding: 0 16px; font-size: 12px; }
.sf-selling-bulk .button:disabled { opacity: .4; cursor: not-allowed; }
.sf-selling-bulk > span { font-size: 12px; color: var(--v2-muted); }
.sf-selling-bulk > span b { color: var(--v2-accent); font-family: var(--v2-mono); }

/* ---------- Public buyback page: offer builder ---------- */
.sf-selling-fav { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: #c7bdd6; }
.sf-selling-fav .icon { width: 17px; height: 17px; }
.sf-selling-fav[aria-pressed="true"] { color: #ff5c9d; }
.sf-selling-fav[aria-pressed="true"] .icon { fill: currentColor; }
.sf-selling-fav:hover { color: var(--v2-accent); }
.sf-selling-offer-tiers { display: grid; gap: 10px; }
.sf-selling-offer-tiers.is-error { outline: 1px solid #ff006e; outline-offset: 4px; }
.sf-selling-otier { border: 1px solid #ffffff1f; background: #ffffff04; transition: border-color .15s; }
.sf-selling-otier.is-on { border-color: var(--v2-accent); background: #00f0ff08; }
.sf-selling-otier-top { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 0; }
.sf-selling-otier-head { flex: 1; min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0 12px 14px; text-align: left; }
.sf-selling-otier-head > i { width: 20px; height: 20px; border: 2px solid #ffffff44; display: grid; place-items: center; font-style: normal; font-size: 12px; color: transparent; }
.sf-selling-otier.is-on .sf-selling-otier-head > i { border-color: var(--v2-accent); background: var(--v2-accent); color: var(--v2-bg); }
.sf-selling-otier-head b { display: block; font-size: 14px; }
.sf-selling-otier-head small { font-size: 11px; color: var(--v2-muted); }
.sf-selling-otier-head strong { font: 700 16px var(--v2-mono); color: var(--v2-accent); white-space: nowrap; }
.sf-selling-otier-head strong small { font: 400 10px 'Noto Sans Thai', sans-serif; margin-left: 4px; }
.sf-selling-otier .sf-qty { height: 36px; flex: 0 0 auto; }
.sf-selling-otier .sf-qty button { width: 32px; }
.sf-selling-otier .sf-qty output { min-width: 28px; text-align: center; font: 700 13px var(--v2-mono); }
.sf-selling-otier-one { font: 700 11px var(--v2-mono); color: var(--v2-muted); white-space: nowrap; }
.sf-selling-slots { display: grid; gap: 12px; padding: 0 14px 14px; }
/* One card's slot (buybacks/_offer-form): what to shoot → dropzone / thumbs → note. Files dropped anywhere
   on it count (pkg-selling.js adds .is-over while dragging, .has-pics once it holds a photo). */
.sf-selling-slot { padding: 14px; border: 1px solid #ffffff1f; background: #0a001480; transition: border-color .2s, box-shadow .2s; }
.sf-selling-slot.is-over { border-color: var(--v2-accent); box-shadow: 0 0 0 3px #00f0ff1f, inset 0 0 50px #00f0ff10; }
.sf-selling-slot.is-error { border-color: #ff006e; box-shadow: 0 0 0 3px #ff006e1f; }
.sf-selling-slot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sf-selling-slot-title { font-size: 13px; font-weight: 700; }
.sf-selling-slot-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--v2-muted); }
.sf-selling-slot-count .icon { width: 14px; height: 14px; }
.sf-selling-slot-count b { font-size: 14px; }
.sf-selling-slot.has-pics .sf-selling-slot-count b { color: var(--v2-accent); }
.sf-selling-slot.is-error .sf-selling-slot-count b { color: #ff5c9d; }
.sf-selling-tips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; color: var(--v2-muted); }
.sf-selling-tips > span { margin-right: 2px; }
.sf-selling-tips em { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-style: normal; color: var(--v2-text); background: #ffffff08; border: 1px solid #ffffff1a; }
.sf-selling-tips .icon { width: 11px; height: 11px; color: #3ee8a0; }

.sf-selling-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sf-selling-pic { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--v2-surface-2); border: 1px solid #ffffff24; transition: border-color .15s; animation: sf-selling-in .25s ease-out; }
.sf-selling-pic:hover { border-color: #00f0ff66; }
.sf-selling-pic-zoom { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; }
.sf-selling-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.sf-selling-pic:hover img { transform: scale(1.05); }
.sf-selling-pic figcaption { position: absolute; left: 0; bottom: 0; padding: 3px 7px; font-size: 10px; font-weight: 700; color: var(--v2-accent); background: #0a0014cc; pointer-events: none; }
.sf-selling-pic-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: #0a0014d9; border: 1px solid #ffffff2e; transition: background-color .15s, border-color .15s; }
.sf-selling-pic-x:hover { background: var(--v2-pink); border-color: var(--v2-pink); }
.sf-selling-pic-x .icon { width: 13px; height: 13px; }
@keyframes sf-selling-in { from { opacity: 0; transform: scale(.92); } }

/* Dropzone: the claim form's look (pkg-orders sf-pb-drop) while the slot is empty… */
.sf-selling-up { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 20px 22px; text-align: left; color: var(--v2-text); cursor: pointer; border: 1.5px dashed #00f0ff4d; background: radial-gradient(ellipse at 0% 50%, #00f0ff12, transparent 55%), repeating-linear-gradient(135deg, #ffffff03 0 10px, transparent 10px 20px); transition: border-color .2s, background-color .2s; }
.sf-selling-up[hidden] { display: none; }
.sf-selling-up-ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; color: var(--v2-accent); background: #00f0ff0f; border: 1px solid #00f0ff66; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: background-color .2s, color .2s; }
.sf-selling-up-ic .icon { width: 24px; height: 24px; }
.sf-selling-up-text { display: grid; gap: 6px; min-width: 0; }
.sf-selling-up-text b { font-size: 14px; font-weight: 600; }
.sf-selling-up-text u { color: var(--v2-accent); text-decoration: none; border-bottom: 1px solid #00f0ff80; }
.sf-selling-up-text small { font-size: 10px; letter-spacing: .4px; line-height: 1.6; color: var(--v2-muted); }
.sf-selling-up-more { display: none; }
.sf-selling-up:hover, .sf-selling-slot.is-over .sf-selling-up { border-color: var(--v2-accent); background-color: #00f0ff0a; }
.sf-selling-up:hover .sf-selling-up-ic, .sf-selling-slot.is-over .sf-selling-up-ic { background: var(--v2-accent); color: var(--v2-bg); }
.sf-selling-up:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
.sf-selling-slot.is-error .sf-selling-up { border-color: #ff006e99; }
/* …and an "add" tile after the thumbs once it has a photo. */
.sf-selling-slot.has-pics .sf-selling-up { grid-column: auto; aspect-ratio: 3 / 4; min-height: 0; padding: 8px; justify-content: center; text-align: center; background: #00f0ff08; }
.sf-selling-slot.has-pics .sf-selling-up-ic, .sf-selling-slot.has-pics .sf-selling-up-text { display: none; }
.sf-selling-slot.has-pics .sf-selling-up-more { display: grid; justify-items: center; gap: 4px; }
.sf-selling-up-more .icon { width: 22px; height: 22px; color: var(--v2-accent); }
.sf-selling-up-more b { font-size: 12px; font-weight: 600; }
.sf-selling-up-more small { font-size: 10px; line-height: 1.4; color: var(--v2-muted); }

.sf-selling-slot textarea { margin-top: 12px; min-height: 64px; resize: vertical; width: 100%; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .sf-selling-pic { animation: none; }
  .sf-selling-pic:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sf-selling-detail { grid-template-columns: 1fr; }
  .sf-selling-detail .sf-gallery { position: static; max-width: 320px; }
}
@media (max-width: 760px) {
  .sf-selling-dlg { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; }
  .sf-selling-tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .sf-selling-tiles.is-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-selling-tile { grid-template-rows: 62px auto auto; padding: 8px; }
  .sf-selling-tile-art img { max-height: 62px; }
  .sf-selling-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-selling-grid3 { grid-template-columns: 1fr; }
  .sf-selling-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-selling-tierrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-selling-tierrow > :last-child { grid-column: 1 / -1; justify-self: end; }
  .sf-selling-tierrow.is-fixed { grid-template-columns: 1fr 1fr; }
  .sf-selling-tierrow.is-fixed > :first-child { grid-column: 1 / -1; }
  .sf-selling-tierrow.is-fixed > :last-child { grid-column: auto; justify-self: stretch; }
  .sf-selling-search { width: 100%; }
  .sf-selling-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .sf-selling-row > img, .sf-selling-row > .sf-selling-thumb { width: 48px; height: 66px; grid-row: span 2; }
  .sf-selling-row .sf-selling-end { justify-items: start; text-align: left; grid-template-columns: auto auto; gap: 4px 10px; align-items: center; }
  .sf-selling-row > .sf-status { justify-self: start; }
  /* table → stacked cards; each td carries data-label */
  .sf-selling-table thead { display: none; }
  .sf-selling-table, .sf-selling-table tbody, .sf-selling-table tr, .sf-selling-table td { display: block; width: 100%; }
  .sf-selling-table tr { position: relative; padding: 12px 12px 12px 76px; margin-bottom: 10px; min-height: 100px; background: var(--v2-surface); border: 1px solid #ffffff1a; }
  .sf-selling-table td { padding: 3px 0; border: 0; text-align: left !important; }
  .sf-selling-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 64px; margin-right: 8px; font: 400 10px var(--v2-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--v2-muted); }
  .sf-selling-table td.is-thumb { position: absolute; left: 12px; top: 12px; width: 52px; padding: 0; }
  .sf-selling-table td.is-thumb::before { display: none; }
  .sf-selling-table td.is-acts { margin-top: 6px; }
  .sf-selling-table td.is-acts .sf-selling-acts { justify-content: flex-start; }
  .sf-selling-table tr:hover td { background: none; }
  .sf-selling-table tr.is-empty { padding: 0; min-height: 0; }
  .sf-selling-table.is-plain tr { padding-left: 12px; min-height: 0; }
  .sf-selling-table-wrap { overflow: visible; }
  .sf-selling-bulk { position: static; }
  .sf-selling-bulk .button { flex: 1 1 140px; }
  .sf-selling-otier-head { grid-template-columns: 22px minmax(0, 1fr); }
  .sf-selling-otier-head strong { grid-column: 2; }
  .sf-selling-who .sf-selling-sum { text-align: left; }
  .sf-selling-batch { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .sf-selling-batch .sf-selling-end { grid-column: 2; justify-items: start; }
  .sf-selling-batch > .icon { grid-row: 1; grid-column: 3; }
  .sf-selling-up { flex-direction: column; justify-content: center; gap: 12px; padding: 20px 14px; text-align: center; }
  .sf-selling-up-desk { display: none; }
  .sf-selling-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* Livewire port (2026-09-27): lists dim while a tab / page loads in place. */
.sf-selling-rows { transition: opacity .15s; }
.sf-selling-rows.is-loading { opacity: .55; pointer-events: none; }
