/* Sell workspace retains the legacy inventory and checkout contracts. */
#inventory {
  --sell-surface: color-mix(in srgb, var(--bg-card) 85%, var(--bg-dark));
  --sell-tint: color-mix(in srgb, var(--primary) 9%, var(--bg-card));
  --sell-border: color-mix(in srgb, var(--primary) 20%, var(--line));
  --sell-shadow: 0 16px 35px color-mix(in srgb, var(--bg-dark) 70%, transparent);
  --warn: #ff3b3b;
  --warn-line: color-mix(in srgb, var(--warn) 72%, var(--line));
  --warn-tint: color-mix(in srgb, var(--warn) 16%, var(--sell-surface));
  max-width: 1600px; padding: 2rem 1.5rem 3rem; scroll-margin-top: 90px;
  font-family: 'Manrope', sans-serif;
}
#inventory :not(i) { letter-spacing: 0; }
#inventory .section-header { display: flex; align-items: center; justify-content: flex-start; gap: 2.25rem; text-align: left; margin-bottom: 1.75rem; }
#inventory .section-header-copy { flex: 0 1 auto; min-width: 0; }
#inventory .section-header h2 { font-family: 'Sora', sans-serif; font-size: 2rem; margin-bottom: .4rem; }
#inventory .section-header p { margin: 0; max-width: 58ch; font-size: .85rem; color: var(--text-gray); }
#inventory .inventory-container { grid-template-columns: minmax(0,1fr) 300px !important; gap: 1rem; }
#inventory .inventory-grid-area { min-width: 0; }
#inventory.not-signed-in .inventory-container { grid-template-columns: minmax(0,1fr) !important; }
#inventory .sh-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 60px; padding: .75rem .85rem; margin-bottom: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--sell-surface); }
#inventory .sell-inventory-title { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .88rem; color: var(--text-white); }
#inventory .sell-inventory-title i { color: var(--primary); }
#inventory .sh-select, #inventory .sh-dd-btn { background: var(--sell-surface); border: 1px solid var(--line); border-radius: 6px; color: var(--text-white); font-size: .73rem; }
/* Game switcher: CS2 / Rust as brand badges with a sliding pill */
#inventory .sh-games {
  --game-cs2: #2e2e82;
  --game-rust: #c8360a;
  --game: var(--game-cs2);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-dark) 72%, var(--sell-surface));
  box-shadow: inset 0 1px 0 var(--line), inset 0 -8px 18px color-mix(in srgb, var(--bg-dark) 60%, transparent);
}
#inventory .sh-games[data-active="rust"] { --game: var(--game-rust); }
#inventory .sh-games::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: var(--pill-x, 4px);
  width: var(--pill-w, 82px);
  border-radius: 9px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--game) 34%, transparent), color-mix(in srgb, var(--game) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--bg-dark) 72%, transparent), 0 0 16px color-mix(in srgb, var(--primary) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.09);
  transition: left .3s cubic-bezier(.34,.9,.32,1), width .3s cubic-bezier(.34,.9,.32,1), background .3s, border-color .3s, box-shadow .3s;
}
#inventory .sh-games[data-active="rust"]::before { transform: none; }
#inventory .sh-game {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 78px;
  padding: 0 .8rem;
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#inventory .sh-game img {
  display: block;
  border-radius: 5px;
  opacity: .5;
  filter: grayscale(.7) brightness(.8);
  transition: opacity .22s, filter .22s, transform .22s;
}
#inventory .sh-game[data-sh-game="cs2"] img { height: 29px; width: 29px; border-radius: 4px; }
#inventory .sh-game[data-sh-game="rust"] img { height: 29px; width: 29px; }
#inventory .sh-game:hover img { opacity: .82; filter: grayscale(.25) brightness(1); transform: translateY(-1px); }
#inventory .sh-game.active img { opacity: 1; filter: none; }
#inventory .sh-game:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
#inventory .sh-game:active img { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  #inventory .sh-games::before, #inventory .sh-game img { transition: none; }
}
#inventory .sell-limit { font-size: .7rem; color: var(--text-gray); margin: 0 0 .75rem; }
#inventory #sh-inv-grid { grid-template-columns: repeat(5,minmax(0,1fr)) !important; gap: .55rem !important; padding: 2px 2px 12px; }
#inventory #sh-inv-grid .skin-item { min-width: 0; min-height: 228px; padding: .7rem !important; border-radius: 8px !important; background: linear-gradient(155deg,var(--sell-tint),var(--sell-surface) 65%) !important; border: 1px solid var(--line) !important; border-bottom: 2px solid color-mix(in srgb,var(--glow) 50%,var(--line)) !important; box-shadow: inset 0 1px 0 var(--line) !important; }
#inventory #sh-inv-grid .skin-item::before { display: none; }
#inventory #sh-inv-grid .skin-item:hover { transform: translateY(-2px); border-color: var(--sell-border) !important; box-shadow: var(--sell-shadow) !important; }
#inventory #sh-inv-grid .skin-item.selected { border-color: var(--primary) !important; background: linear-gradient(155deg,var(--sell-tint),var(--sell-surface)) !important; box-shadow: inset 0 0 0 1px var(--primary),0 8px 24px var(--primary-glow) !important; }
#inventory .sh-c-wear { background: none; padding: 0; color: var(--text-gray); font-size: .62rem; }
#inventory .sh-c-check { width: 18px; height: 18px; border-radius: 4px; border-color: var(--glass-border); }
#inventory .selected .sh-c-check { background: var(--primary); border-color: var(--primary); color: var(--bg-dark); }
#inventory #sh-inv-grid .skin-img-wrapper { height: 100px !important; margin: .25rem 0 .5rem; }
#inventory #sh-inv-grid .skin-img-wrapper img { filter: drop-shadow(0 8px 8px var(--bg-dark)); }
#inventory .skin-info-wrapper { display: flex; flex: 1; flex-direction: column; min-width: 0; }
#inventory .sh-c-weapon { font-size: .63rem; color: var(--text-gray); }
#inventory #sh-inv-grid .skin-name { font-size: .75rem !important; line-height: 1.35; min-height: 2.7em; color: var(--text-white); display: block; overflow: visible; overflow-wrap: anywhere; }
#inventory .sh-c-foot { flex-wrap: wrap; margin-top: auto; padding-top: .6rem; border: 0; }
#inventory .sh-c-foot .skin-price { color: var(--text-white) !important; font-size: 1rem !important; }
#inventory .sh-c-foot .manual-wear-badge { background: none !important; padding: 0 !important; }
#inventory #checkout-section { top: 98px; min-width: 0; }
#inventory .inventory-basket { background: var(--sell-surface) !important; border: 1px solid var(--sell-border) !important; border-radius: 8px; padding: 1rem !important; box-shadow: var(--sell-shadow); }
#inventory .inventory-basket h3 { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin: 0 0 1rem; }
#inventory .inventory-basket h3 i { color: var(--primary); }
#inventory .basket-items { max-height: 330px; overflow-y: auto; scrollbar-color: var(--sell-border) transparent; }
#inventory .basket-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .65rem 0 !important; }
#inventory .bi-thumb { background: var(--sell-tint); border-radius: 5px; }
#inventory .bi-text .basket-item-name { white-space: normal; overflow-wrap: anywhere; font-size: .7rem; }
#inventory .bi-price { color: var(--text-white); font-size: .8rem; }
#inventory .remove-basket-item { border-radius: 5px; color: var(--text-gray); border-color: var(--line); }
#inventory .sh-aff-basket { border-color: var(--line); padding-top: .8rem; }
#inventory .sh-aff-brow { gap: .35rem; }
#inventory .premium-input { min-width: 0; background: var(--bg-dark); color: var(--text-white); border-color: var(--line); border-radius: 6px; font-size: .73rem; }
#inventory .premium-apply-btn { border-radius: 6px; font-size: .68rem; padding: .6rem; }
#inventory .payout-box { margin: 1rem 0; padding: 1rem .5rem; border-radius: 6px; border: 1px solid var(--sell-border); background: var(--sell-tint); }
#inventory .payout-title, #inventory .payout-factor { color: var(--text-gray); font-size: .7rem; letter-spacing: 0; }
#inventory .payout-amount { font-family: 'Sora',sans-serif; font-size: 1.85rem !important; }
#inventory .swish-notice { font-size: .7rem; color: var(--text-gray); line-height: 1.6; }
#inventory .sh-cashout { border-radius: 6px !important; padding: .85rem !important; font-size: .85rem !important; letter-spacing: 0; }
#inventory .offer-match { position: relative; flex: 0 0 auto; width: 380px; max-width: 46%; display: flex; gap: .85rem; align-items: flex-start; padding: 1.05rem 1.15rem 1.05rem 1.35rem; border-radius: 10px; text-decoration: none; background: linear-gradient(155deg, var(--warn-tint), var(--sell-surface) 74%); border: 2px solid var(--warn-line); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--warn) 25%, transparent), 0 16px 38px color-mix(in srgb, var(--warn) 24%, transparent); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; overflow: hidden; }
#inventory .offer-match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: repeating-linear-gradient(-45deg, var(--warn) 0 7px, color-mix(in srgb, var(--warn) 32%, var(--bg-dark)) 7px 14px); }
#inventory .offer-match::after { content: ""; position: absolute; inset: -2px; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 55%, transparent); animation: sh-offer-pulse 2.6s ease-in-out infinite; }
@keyframes sh-offer-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 42%, transparent); } 50% { box-shadow: 0 0 26px 3px color-mix(in srgb, var(--warn) 34%, transparent); } }
#inventory .offer-match:hover { transform: translateY(-2px); border-color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent), 0 20px 46px color-mix(in srgb, var(--warn) 34%, transparent); }
#inventory .offer-match-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--warn) 26%, var(--bg-dark)); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); font-size: 1.15rem; }
#inventory .offer-match-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
#inventory .offer-match-chip { align-self: flex-start; padding: .12rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--warn) 22%, var(--bg-dark)); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); color: var(--warn); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
#inventory .offer-match-title { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-white); line-height: 1.3; }
#inventory .offer-match-text { font-size: .85rem; color: color-mix(in srgb, var(--text-white) 80%, var(--text-gray)); line-height: 1.55; }
#inventory .offer-match-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .2rem; font-size: .85rem; font-weight: 700; color: var(--warn); }
#inventory .offer-match-cta i { font-size: .75rem; transition: transform .2s ease; }
#inventory .offer-match:hover .offer-match-cta i { transform: translateX(3px); }
@media (max-width:1150px) { #inventory .offer-match { width: 330px; max-width: 44%; } #inventory .offer-match-text { font-size: .78rem; } #inventory .offer-match-title { font-size: .95rem; } }
@media (max-width:960px) { #inventory .section-header { flex-direction: column; align-items: stretch; gap: 1rem; } #inventory .offer-match { width: auto; max-width: none; } }
@media (prefers-reduced-motion:reduce) { #inventory .offer-match::after { animation: none; } #inventory .offer-match, #inventory .offer-match-cta i { transition: none; } }
#inventory .sh-gate { border-radius: 8px; background: linear-gradient(155deg,var(--sell-tint),var(--sell-surface) 65%); border: 1px dashed var(--sell-border); }
#inventory .sh-gate-btn { border-radius: 6px; color: var(--bg-dark); }
@media (min-width:1450px) { #inventory #sh-inv-grid { grid-template-columns: repeat(6,minmax(0,1fr)) !important; } }
@media (max-width:1150px) { #inventory #sh-inv-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; } }
@media (max-width:960px) { #inventory .inventory-container { grid-template-columns: minmax(0,1fr) !important; } #inventory #checkout-section { position: static; } }
@media (max-width:600px) { #inventory { padding: 1.5rem .85rem 2rem; } #inventory .section-header h2 { font-size: 1.6rem; } #inventory #sh-inv-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } #inventory .sh-toolbar { flex-wrap: wrap; } #inventory .sh-gate { padding: 2rem 1rem; } #inventory .sh-gate h3 { font-size: 1.2rem; } }
@media (prefers-reduced-motion:reduce) { #inventory #sh-inv-grid .skin-item, #inventory #sh-inv-grid .skin-img-wrapper img { transition: none; } }
.sh-insp { font-size: .68rem; line-height: 1.3; color: var(--muted, #9fb3a8); margin: .2rem 0; font-variant-numeric: tabular-nums; }
.sh-insp b { color: #02F895; font-weight: 700; }

/* Staplade likadana föremål (t.ex. cases) */
.sh-stack-n{position:absolute;top:8px;right:34px;padding:2px 8px;border-radius:999px;background:hsl(155 98% 49% / .16);color:#02F895;font-weight:800;font-size:12px;border:1px solid hsl(155 98% 49% / .4)}
.sh-qty{display:flex;align-items:center;gap:4px;margin-top:8px;font-size:12px;color:hsl(0 0% 75%)}
.sh-qty button{min-width:28px;height:28px;border-radius:8px;border:1px solid hsl(155 98% 49% / .35);background:hsl(155 98% 49% / .08);color:#02F895;font-weight:800;cursor:pointer}
.sh-qty button[data-q="all"],.sh-qty .sh-qty-all{padding:0 8px;font-size:11px}
.sh-qty input{width:44px;height:28px;text-align:center;border-radius:8px;border:1px solid hsl(0 0% 100% / .15);background:hsl(0 0% 0% / .35);color:inherit;font-weight:700;-moz-appearance:textfield}
.sh-qty input::-webkit-inner-spin-button{display:none}
#sh-inv-grid .skin-item{position:relative}

/* First-sale promotion, in the same selling workspace on desktop and mobile. */
#inventory .first-sale-offer { display:flex; align-items:center; gap:1.5rem; padding:1.25rem 1.5rem; margin:0 0 1.25rem; border:1px solid var(--sell-border); border-radius:8px; background:var(--sell-surface); box-shadow:var(--sell-shadow); }
#inventory .first-sale-offer-copy { flex:1; min-width:0; }
#inventory .first-sale-offer-eyebrow { display:block; color:var(--primary); font-weight:800; font-size:.7rem; margin-bottom:.45rem; }
#inventory .first-sale-offer h3 { font-family:'Sora',sans-serif; color:var(--text-white); font-size:1.25rem; line-height:1.4; margin:0 0 .4rem; }
#inventory .first-sale-offer p { color:var(--text-gray); font-size:.8rem; margin:0; }
#inventory .first-sale-offer img { width:180px; height:100px; object-fit:contain; flex-shrink:0; }
#inventory .first-sale-offer button { flex-shrink:0; max-width:100%; white-space:normal; min-height:44px; }
#inventory .first-sale-offer button:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:700px) {
  #inventory .first-sale-offer { display:grid; grid-template-columns:minmax(0,1fr) 90px; gap:1rem .5rem; padding:1rem; }
  #inventory .first-sale-offer h3 { font-size:1.1rem; }
  #inventory .first-sale-offer img { width:90px; height:90px; }
  #inventory .first-sale-offer button { grid-column:1/-1; width:100%; }
}

/* SKINHAJP sell desk: promotion rail, item workspace, persistent summary. */
#inventory { --sell-preview-mask: linear-gradient(180deg, transparent, var(--bg-dark) 48%, transparent); }
#inventory .section-header { justify-content:space-between; gap:2rem; padding-bottom:1.6rem; border-bottom:1px solid var(--line); }
#inventory .section-header h2 { font-size:2.35rem; font-weight:800; line-height:1.2; }
#inventory .inventory-container,
#inventory.not-signed-in .inventory-container,
#inventory .inventory-container:has(.checkout-hidden) { display:grid; grid-template-columns:174px minmax(0,1fr) 290px !important; gap:1rem; align-items:start; }
#inventory .first-sale-offer { position:sticky; top:98px; display:flex; flex-direction:column; align-items:stretch; gap:1rem; padding:1.1rem; margin:0; background:linear-gradient(165deg,var(--sell-tint),var(--bg-dark)); border-color:var(--line); }
#inventory .first-sale-offer h3 { font-size:1.35rem; line-height:1.25; font-weight:800; }
#inventory .first-sale-offer-eyebrow { font-size:.62rem; margin-bottom:.8rem; }
#inventory .first-sale-offer img { width:100%; height:90px; order:1; }
#inventory .first-sale-offer-copy { display:contents; }
#inventory .first-sale-offer p { order:2; font-size:.72rem; line-height:1.65; }
#inventory .first-sale-offer button { order:3; font-size:.75rem; padding:.8rem .5rem; border-radius:6px; }
#inventory.not-signed-in #checkout-section { display:block !important; }
#inventory .inventory-basket { padding:1.1rem !important; border-color:var(--line) !important; background:linear-gradient(170deg,var(--sell-surface),var(--bg-dark)) !important; }
#inventory .inventory-basket h3 { padding-bottom:1rem; border-bottom:1px solid var(--line); }
#inventory .sell-count { display:inline-grid; place-items:center; min-width:24px; height:24px; margin-left:auto; border-radius:5px; font-size:.7rem; font-variant-numeric:tabular-nums; background:var(--sell-tint); color:var(--primary); }
#inventory .basket-items:has(.empty-text) { min-height:100px; display:grid; place-items:center; border-bottom:1px solid var(--line); }
#inventory .basket-items .empty-text { font-size:.78rem; }
#inventory .payout-box { border:0; background:transparent; padding:1.2rem 0 .6rem; text-align:left; margin:.5rem 0; }
#inventory .payout-amount { color:var(--primary); font-size:2.15rem !important; font-weight:800; line-height:1.4; }
#inventory .payout-title { font-size:.8rem; }
#inventory .payout-factor { font-size:.68rem; }
#inventory .sell-payment-overview { display:grid; margin:.8rem 0 1rem; border-top:1px solid var(--line); }
#inventory .sell-payment-row { display:flex; gap:.75rem; align-items:center; min-height:68px; padding:.85rem 0; border-bottom:1px solid var(--line); }
#inventory .sell-payment-row[hidden] { display:none; }
#inventory .sell-payment-row>i:first-child { width:30px; text-align:center; font-size:1.35rem; color:var(--primary); }
#inventory .sell-payment-row>img { object-fit:contain; flex-shrink:0; }
#inventory .sell-payment-row div { flex:1; min-width:0; }
#inventory .sell-payment-row strong { display:block; font-size:.78rem; color:var(--text-white); }
#inventory .sell-payment-row span { display:block; font-size:.64rem; margin-top:.2rem; color:var(--text-gray); line-height:1.5; }
#inventory .sell-payment-row>i:last-child { color:var(--primary); font-size:.9rem; }
#inventory .swish-notice { display:flex; gap:.6rem; margin:0 0 1rem; font-size:.68rem; }
#inventory .swish-notice i { color:var(--primary); margin-top:.2rem; }
#inventory .sh-aff-brow>i { color:var(--text-gray); }
#inventory .sh-gate { position:relative; min-height:490px; border:0; padding:0; display:grid; align-items:center; overflow:hidden; background:transparent; }
#inventory .sell-preview-grid { position:absolute; inset:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,1fr); gap:.65rem; pointer-events:none; }
#inventory .sell-preview-item { display:grid; place-items:center; border-radius:8px; border:1px solid var(--line); background:linear-gradient(150deg,var(--sell-tint),var(--bg-dark)); overflow:hidden; }
#inventory .sell-preview-item img { width:100%; height:125px; object-fit:contain; opacity:.65; filter:drop-shadow(0 10px 15px var(--bg-dark)); }
#inventory .sell-gate-content { position:relative; z-index:1; width:100%; padding:2.5rem 1rem; text-align:center; background:var(--sell-preview-mask); }
#inventory .sh-gate h3 { max-width:26ch; margin:0 auto .7rem; font-size:1.55rem; line-height:1.3; font-weight:800; text-wrap:balance; }
#inventory .sh-gate p { max-width:35ch; margin:0 auto 1.2rem; font-size:.8rem; }
#inventory .sh-gate-icon { height:48px; width:48px; margin-bottom:.8rem; border-radius:8px; font-size:1.4rem; background:var(--sell-surface); }
#inventory .sh-gate-btn { padding:.9rem 1.2rem; font-size:.8rem; text-transform:none; }
#inventory .sell-gate-trust { display:flex; align-items:center; justify-content:center; gap:.5rem; margin:1.2rem auto 0; color:var(--text-gray); text-decoration:none; font-size:.68rem; }
#inventory .sell-gate-trust img { object-fit:contain; width:76px; height:20px; }
#inventory .sell-gate-trust:hover { color:var(--text-white); }
#inventory #sh-inv-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:.7rem !important; }
#inventory #sh-inv-grid .skin-item { min-height:220px; background:linear-gradient(165deg,color-mix(in srgb,var(--glow) 8%,var(--sell-surface)),var(--bg-dark)) !important; }
#inventory #sh-inv-grid .skin-item:hover { border-color:color-mix(in srgb,var(--glow) 50%,var(--line)) !important; }
#inventory .sh-toolbar { background:transparent; border:0; border-bottom:1px solid var(--line); padding:.25rem 0 .9rem; border-radius:0; }
@media(min-width:1400px) { #inventory #sh-inv-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; } }
@media(max-width:1050px) {
 #inventory .inventory-container,#inventory.not-signed-in .inventory-container,#inventory .inventory-container:has(.checkout-hidden) { grid-template-columns:minmax(0,1fr) 280px !important; }
 #inventory .first-sale-offer { position:static; grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) 110px 190px; align-items:center; gap:.4rem 1rem; }
 #inventory .first-sale-offer-copy { display:block; }
 #inventory .first-sale-offer h3 { font-size:1.15rem; }
 #inventory .first-sale-offer-eyebrow { margin-bottom:.35rem; }
 #inventory .first-sale-offer img { height:85px; }
 #inventory .first-sale-offer p { margin-top:.4rem; }
 #inventory .first-sale-offer button { order:initial; }
}
@media(max-width:760px) {
 #inventory .inventory-container,#inventory.not-signed-in .inventory-container,#inventory .inventory-container:has(.checkout-hidden) { grid-template-columns:minmax(0,1fr) !important; }
 #inventory .section-header h2 { font-size:1.8rem; }
 #inventory .first-sale-offer { grid-template-columns:minmax(0,1fr) 90px; padding:1rem; }
 #inventory .first-sale-offer img { width:90px; height:90px; }
 #inventory .first-sale-offer button { grid-column:1/-1; }
 #inventory .first-sale-offer h3 { font-size:1.2rem; }
 #inventory .sh-gate { min-height:400px; }
 #inventory .sell-preview-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #inventory .sell-preview-item img { height:100px; opacity:.45; }
 #inventory .sh-gate h3 { font-size:1.35rem; }
 #inventory #checkout-section { position:static; }
 #inventory #sh-inv-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 #inventory .inventory-basket { padding:1.15rem !important; }
}
@media(prefers-reduced-motion:reduce) { #inventory .sell-preview-item img { transition:none; } }

@media(max-width:1050px) {
 #inventory .first-sale-offer-copy { grid-column:1; grid-row:1; }
 #inventory .first-sale-offer img { grid-column:2; grid-row:1; }
 #inventory .first-sale-offer button { grid-column:3; grid-row:1; }
}
@media(max-width:760px) {
 #inventory { scroll-margin-top:140px; }
 #inventory .first-sale-offer button { grid-column:1/-1; grid-row:2; }
 #inventory .section-header { gap:.85rem; padding-bottom:1.1rem; margin-bottom:1.1rem; }
 #inventory .offer-match { padding:.9rem 1rem .9rem 1.2rem; }
 #inventory .offer-match-text { font-size:.74rem; }
 #inventory .offer-match-title { font-size:.9rem; }
}

/* ===== Refined layer (v8): calm depth, no hard glow boxes ===== */
#inventory .sh-toolbar, #inventory .inventory-basket { background: var(--sell-surface) !important; border: 1px solid color-mix(in srgb, var(--text-white) 7%, transparent) !important; border-radius: 12px !important; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-white) 4%, transparent) !important; }
#inventory #sh-inv-grid .skin-item { border-radius: 12px !important; overflow: hidden; border: 1px solid color-mix(in srgb, var(--text-white) 6%, transparent) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text-white) 3%, var(--bg-card)), var(--sell-surface)) !important; box-shadow: none !important; transition: transform .2s ease, border-color .2s ease; }
#inventory #sh-inv-grid .skin-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, transparent) !important; box-shadow: none !important; }
#inventory #sh-inv-grid .skin-img-wrapper img { transition: transform .25s ease; filter: drop-shadow(0 8px 10px var(--bg-dark)); }
#inventory #sh-inv-grid .skin-item:hover .skin-img-wrapper img { transform: scale(1.04); }
#inventory #sh-inv-grid .skin-item.selected { border-color: var(--primary) !important; box-shadow: inset 0 0 0 1px var(--primary) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--bg-card)), var(--sell-surface)) !important; }
#inventory .payout-box { border-radius: 10px; border: 0; background: color-mix(in srgb, var(--text-white) 3%, var(--bg-dark)); }
#inventory .payout-amount { color: var(--primary); text-shadow: none; }
#inventory .sh-cashout { border-radius: 10px !important; box-shadow: none !important; }
/* Selected list hidden: selection is visible in the grid */
#inventory #basket-items { display: none !important; }
#inventory .inventory-basket h3 { margin-bottom: .5rem; }

/* Welcome bonus */
#inventory .first-sale-offer { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, var(--bg-card)), var(--sell-surface)); box-shadow: none; }
#inventory .first-sale-offer-eyebrow { color: var(--primary); font-size:.65rem; font-weight:800; }
#inventory .first-sale-offer h3 { font-weight: 800; }
#inventory .first-sale-offer img { filter: drop-shadow(0 8px 12px var(--bg-dark)); }
#inventory .first-sale-offer button { border-radius: 8px; font-weight: 800; }
@media (min-width:961px) {
  #inventory .first-sale-offer { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1.1rem; margin: 0; position: sticky; top: 98px; }
  #inventory .first-sale-offer h3 { font-size: 1.3rem; line-height: 1.25; }
  #inventory .first-sale-offer img { width: 100%; height: 90px; order: -1; }
  #inventory .first-sale-offer button { width: 100%; padding: 0 .6rem; }
}
/* v9: no boxed panels inside the workspace */
#inventory .payout-box { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: .75rem 0 !important; margin: .5rem 0 !important; }
#inventory .sh-toolbar { background: transparent !important; border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--text-white) 7%, transparent) !important; border-radius: 0 !important; box-shadow: none !important; padding: .5rem 0 !important; }
#inventory .sh-games { background: transparent; border-color: transparent; box-shadow: none; }
#inventory .sh-games::before { box-shadow: none; background: color-mix(in srgb, var(--text-white) 6%, transparent); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
#inventory #payout-bonus-note { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; color: var(--primary); font-size: .72rem; font-weight: 700; }
#inventory .swish-notice { background: none !important; border: 0 !important; padding: .25rem 0 !important; }

.sell-fee-section { max-width:1200px; margin:0 auto; padding:0 20px; font-family:Manrope,sans-serif; }
/* Live SEK offer; competitor deductions are illustrations only. */
.sell-fee-section .sell-fee-comparison { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr); align-items:center; gap:3rem; padding:3rem 0; margin-bottom:2rem; border-bottom:1px solid var(--line); }
.sell-fee-section .sell-fee-copy h3 { font-family:'Sora',sans-serif; font-size:2.8rem; font-weight:900; line-height:1.12; margin:0 0 1.2rem; text-transform:uppercase; letter-spacing:-.01em; -webkit-text-stroke:.6px currentColor; }
.sell-fee-section .sell-fee-copy h3 span,.sell-fee-section .sell-fee-copy h3 em { display:block; letter-spacing:0; }
.sell-fee-section .sell-fee-copy h3 em { color:var(--primary); font-style:normal; }
.sell-fee-section .sell-fee-copy p { color:var(--text-gray); font-size:.95rem; font-weight:600; line-height:1.7; margin:0; max-width:37ch; }
.sell-fee-section .sell-fee-zero { display:flex; align-items:baseline; gap:.5rem; font-family:'Sora',sans-serif; font-size:4.5rem; font-weight:900; line-height:1.3; color:var(--primary); margin-top:.75rem; -webkit-text-stroke:.6px currentColor; }
.sell-fee-section .sell-fee-zero span { font-size:1.5rem; }
.sell-fee-section .sell-fee-copy small,.sell-fee-section .sell-fee-disclaimer { display:block; color:var(--text-gray); font-size:.7rem; line-height:1.6; }
.sell-fee-section .sell-fee-visual { min-width:0; }
.sell-fee-section .sell-fee-row { display:grid; grid-template-columns:190px minmax(0,1fr); align-items:center; gap:1rem; min-height:200px; }
.sell-fee-section .sell-fee-skin { height:185px; display:grid; place-items:center; }
.sell-fee-section .sell-fee-skin img { height:185px; width:215px; max-width:115%; object-fit:contain; animation:fee-skin-float 6s ease-in-out infinite; }
.sell-fee-section .sell-fee-lane { min-width:0; }
.sell-fee-section .sell-fee-row-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; }
.sell-fee-section .sell-fee-logo { width:145px; height:34px; object-fit:contain; }
.sell-fee-section .sell-fee-row-heading strong { font-family:'Sora',sans-serif; font-size:1.05rem; font-weight:900; }
.sell-fee-section .sell-fee-row-heading span { font-size:.7rem; color:var(--text-gray); }
.sell-fee-section .sell-fee-track { position:relative; height:7px; margin:1rem 0 1.2rem; background:var(--line); }
.sell-fee-section .sell-fee-progress { width:100%; height:100%; background:var(--primary); }
.sell-fee-section .sell-fee-ours .sell-fee-progress { transform-origin:left; animation:fee-fill 6s ease-in-out infinite; }
.sell-fee-section .sell-fee-track i { position:absolute; right:-1px; top:-7px; font-size:1.15rem; color:var(--primary); background:var(--bg-dark); padding-left:8px; }
.sell-fee-section .sell-fee-amount { color:var(--primary); font-family:'Sora',sans-serif; font-size:2.7rem; font-weight:900; font-variant-numeric:tabular-nums; white-space:nowrap; line-height:1.2; -webkit-text-stroke:.5px currentColor; }
.sell-fee-section .sell-fee-result { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.sell-fee-section .sell-fee-result>span { color:var(--text-gray); font-weight:700; font-size:1.05rem; white-space:nowrap; }
.sell-fee-section .sell-fee-others { border-top:1px solid var(--line); }
.sell-fee-section .sell-fee-others .sell-fee-skin img { filter:grayscale(1); opacity:.5; animation-delay:-3s; }
.sell-fee-section .sell-fee-others .sell-fee-amount { color:var(--text-gray); }
.sell-fee-section .sell-fee-others .sell-fee-progress { background:var(--text-gray); transition:width 1s ease; }
.sell-fee-section .sell-fee-disclaimer { margin-top:.8rem; text-align:right; }
@keyframes fee-skin-float { 0%,100% { transform:translateY(4px) rotate(-6deg); } 50% { transform:translateY(-7px) rotate(3deg); } }
@keyframes fee-fill { 0%,8% { transform:scaleX(.1); } 35%,100% { transform:scaleX(1); } }
@media(max-width:1000px) { .sell-fee-section .sell-fee-comparison { gap:1.5rem; } .sell-fee-section .sell-fee-copy h3 { font-size:2rem; } .sell-fee-section .sell-fee-row { grid-template-columns:130px minmax(0,1fr); } .sell-fee-section .sell-fee-skin img { width:150px; } .sell-fee-section .sell-fee-amount { font-size:2.1rem; } }
@media(max-width:700px) {
 .sell-fee-section .sell-fee-comparison { grid-template-columns:minmax(0,1fr); padding:1.75rem 0; gap:1rem; }
 .sell-fee-section .sell-fee-copy h3 { font-size:2rem; }
 .sell-fee-section .sell-fee-zero { font-size:3rem; }
 .sell-fee-section .sell-fee-zero span { font-size:1.1rem; }
 .sell-fee-section .sell-fee-row { grid-template-columns:100px minmax(0,1fr); gap:.65rem; min-height:160px; }
 .sell-fee-section .sell-fee-skin,.sell-fee-section .sell-fee-skin img { height:135px; }
 .sell-fee-section .sell-fee-skin img { width:115px; }
 .sell-fee-section .sell-fee-amount { font-size:1.8rem; }
 .sell-fee-section .sell-fee-logo { width:115px; height:28px; }
 .sell-fee-section .sell-fee-row-heading { gap:.35rem; }
 .sell-fee-section .sell-fee-row-heading strong { font-size:.9rem; }
 .sell-fee-section .sell-fee-disclaimer { text-align:left; }
}
@media(prefers-reduced-motion:reduce) { .sell-fee-section .sell-fee-skin img,.sell-fee-section .sell-fee-ours .sell-fee-progress { animation:none; } .sell-fee-section .sell-fee-others .sell-fee-progress { transition:none; } }
