/* Catalog owner: SELP proportions, one shared baseline for name, price and action. */
.fusion-shell[data-page=shop]{--muted:var(--color-text-secondary)}
.fusion-shell .shop-intro{margin-bottom:16px;align-items:center}
.fusion-shell .simple-shop-filters{display:grid;grid-template-columns:minmax(0,1fr) 154px 146px;gap:8px;margin-bottom:16px;align-items:start}
.fusion-shell .simple-shop-filters input{height:40px;font-size:var(--type-label);border-radius:10px}
.fusion-shell .simple-shop-filters .shop-filter-details{grid-column:auto;position:relative;z-index:5;margin:0;border-radius:10px}
.fusion-shell .shop-filter-details summary{padding:10px 12px;font-size:var(--type-label);min-height:38px;box-sizing:border-box}
.fusion-shell .shop-filter-details .details-content{position:absolute;right:0;top:calc(100% + 6px);width:280px;padding:12px;display:grid;gap:10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--panel);box-shadow:0 12px 32px #0005}
.fusion-shell .shop-filter-details select{width:100%;height:38px;font-size:var(--type-label)}
.fusion-shell .shop-layout{grid-template-columns:minmax(0,1fr) 264px;gap:20px;align-items:start}
.fusion-shell .shop-result-count{height:30px;margin:0;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;font-size:var(--type-label);color:var(--muted)}
.fusion-shell .shop-result-count span{font-size:var(--type-caption)}
.fusion-shell .shop-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;align-items:stretch}
.fusion-shell .shop-card{--item-tone:188,65,107;border:1px solid #343037;border-radius:16px;background:linear-gradient(180deg,rgba(var(--item-tone),.1),transparent 65%),#19181c;overflow:hidden;box-shadow:none;display:flex;flex-direction:column}
.fusion-shell .shop-card[data-tone=purple]{--item-tone:132,93,179}
.fusion-shell .shop-card[data-tone=orange]{--item-tone:182,135,72}
.fusion-shell .shop-card .skin-art{height:140px;padding:28px 16px 4px;background:transparent;flex:none;content-visibility:auto}
.fusion-shell .shop-more{display:block;margin:18px auto 0}
.fusion-shell .shop-more[hidden]{display:none}
.fusion-shell .shop-card .skin-art:after{display:none}
.fusion-shell .shop-card .skin-art img{height:108px;max-width:210px;width:100%;object-fit:contain;filter:drop-shadow(0 5px 5px #0005)}
.fusion-shell .shop-card .skin-art .wear-code{left:12px;right:auto;top:12px;padding:2px 5px;font-size:var(--type-micro);line-height:16px;border:0;border-radius:5px;background:#10101288;color:#bab4be}
.fusion-shell .shop-card .skin-art .pill{top:12px;right:12px;bottom:auto;padding:2px 0;font-size:var(--type-micro);line-height:16px;color:#a19da5;background:transparent;border:0;box-shadow:none}
.fusion-shell .shop-card .skin-card-content{padding:8px 14px 14px;background:transparent;display:flex;flex-direction:column;flex:1;gap:0}
.fusion-shell .shop-card .skin-card-content h3{display:block;-webkit-line-clamp:unset;height:auto;min-height:38px;margin:0;color:#e4dfe8;font-size:var(--type-body);line-height:19px;font-weight:500;overflow:visible;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.15px}
.fusion-shell .shop-card .skin-card-content h3 span{color:#aaa3b1;font-weight:400;display:block;font-size:var(--type-caption);line-height:15px;margin-bottom:2px}
.fusion-shell .shop-card .skin-card-content>small{display:block;height:auto;min-height:16px;font-size:var(--type-caption);line-height:16px;white-space:normal;margin-top:3px;color:#a19da5}
.fusion-shell .shop-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}
.fusion-shell .shop-card-bottom .item-price{font-size:19px;font-weight:550;line-height:24px;letter-spacing:-.4px;color:#f0eaf2;white-space:nowrap;font-variant-numeric:tabular-nums}
.fusion-shell .shop-card-bottom .item-price small{font-size:var(--type-micro);font-weight:400;letter-spacing:0;color:#b1aab8}
.fusion-shell .shop-card-bottom button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:36px;width:auto;min-height:36px;height:36px;margin:0;padding:0 7px;border-radius:9px;border:1px solid #4b3b47;background:#30242c;color:#e7b5c8;font-size:var(--type-label);flex:none;box-shadow:none}
.fusion-shell .shop-card.in-cart{border-color:var(--skin-selected-border);background:var(--skin-selected-surface);box-shadow:var(--skin-selected-shadow)}
.fusion-shell .shop-card.in-cart .shop-card-bottom button{background:#bc416b;color:white;border-color:#cf6789}
.fusion-shell .shop-card.in-cart :is(.skin-card-content h3 span,.skin-card-content>small,.skin-art .pill){color:#e0c3d0}
.fusion-shell .shop-cart{margin-top:30px;position:sticky;top:16px;padding:18px;border:1px solid #302c33;border-radius:16px;box-shadow:none;background:#19181c}
.fusion-shell .shop-cart h2{font-size:var(--type-subhead);line-height:24px;font-weight:500;margin:0}
.fusion-shell .shop-cart .count{font-size:var(--type-caption);padding:2px 5px;vertical-align:middle}
.fusion-shell .shop-cart .text-btn{font-size:var(--type-caption);padding:0;color:#d792ac}
.fusion-shell .shop-cart .cart-rows{max-height:min(350px,42vh)}
.fusion-shell .shop-cart .cart-row{grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding:14px 0;align-items:center}
.fusion-shell .shop-cart .cart-row img{width:44px;height:44px}
.fusion-shell .shop-cart .cart-row strong{font-size:var(--type-label);line-height:17px;font-weight:500}
.fusion-shell .shop-cart .cart-row small{font-size:var(--type-micro);line-height:15px;color:var(--muted);margin:2px 0}
.fusion-shell .shop-cart .cart-price{font-size:var(--type-label);white-space:nowrap;font-variant-numeric:tabular-nums}
.fusion-shell .shop-cart .cart-stepper{gap:9px;min-height:28px}
.fusion-shell .shop-cart .cart-stepper button{width:28px;height:28px;border-radius:7px;background:#252128;border-color:#413846;color:#ddd2e3}
.fusion-shell .shop-cart .shop-totals{padding:12px 0;margin:0;border:0}
.fusion-shell .shop-cart .kv{font-size:var(--type-label);gap:8px;margin:0;padding:7px 0}
.fusion-shell .shop-cart .order-total{font-size:22px;line-height:28px;font-weight:500;white-space:nowrap}
.fusion-shell .shop-cart .order-total small{font-size:var(--type-micro)}
.fusion-shell .shop-cart>.brand-btn{min-height:42px;padding:10px 8px;font-size:var(--type-label);line-height:20px;border-radius:10px}
.fusion-shell .shop-cart .order-foot{font-size:var(--type-micro);line-height:16px;margin:10px 0 0;text-align:left;color:var(--muted)}
.fusion-shell .shop-cart .empty-state{min-height:0;padding:24px 0;text-align:left}
.fusion-shell .shop-cart .empty-state h3{font-size:var(--type-label);line-height:19px;margin:0 0 8px}
.fusion-shell .shop-cart .empty-state p{font-size:var(--type-label);line-height:18px}
@media(hover:hover) and (pointer:fine){
 .fusion-shell .shop-card:hover{border-color:#695161;box-shadow:0 5px 16px #0002}
 .fusion-shell .shop-card.in-cart:hover{border-color:#f1a4c1}
 .fusion-shell .shop-card-bottom button:hover:not(:disabled){background:#bc416b;color:white;border-color:#d97d9c}
}
@media(max-width:1050px){.fusion-shell .shop-layout{grid-template-columns:minmax(0,1fr) 236px;gap:14px}.fusion-shell .shop-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.fusion-shell .shop-card .skin-card-content{padding-inline:12px}.fusion-shell .shop-cart{padding:14px}}
@media(max-width:800px){.fusion-shell .shop-layout{grid-template-columns:1fr}.fusion-shell .shop-cart{position:static;margin-top:8px}.fusion-shell .simple-shop-filters{grid-template-columns:minmax(0,1fr) 134px 136px}}
@media(max-width:640px){
 .fusion-shell .simple-shop-filters{grid-template-columns:minmax(0,1fr) 136px;gap:8px;margin-bottom:12px}
 .fusion-shell .simple-shop-filters #shop-search{grid-column:1/-1}
 .fusion-shell .simple-shop-filters #shop-max{font-size:var(--type-label)}
 .fusion-shell .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .fusion-shell .shop-card{border-radius:14px}
 .fusion-shell .shop-card .skin-art{height:128px;padding:26px 8px 0}
 .fusion-shell .shop-card .skin-art img{height:100px}
 .fusion-shell .shop-card .skin-card-content{padding:8px 11px 12px}
 .fusion-shell .shop-card .skin-card-content h3{font-size:var(--type-label);line-height:18px;min-height:36px}
 .fusion-shell .shop-card-bottom{padding-top:10px;gap:4px}
 .fusion-shell .shop-card-bottom .item-price{font-size:17px}
 .fusion-shell .shop-card-bottom button{min-width:34px;height:36px;padding:0 5px}
 .fusion-shell .shop-card-bottom .item-price small{font-size:var(--type-micro)}
 .fusion-shell .shop-result-count span{font-size:var(--type-micro)}
}

/* Inventory follows the same image / title / value rhythm. */
.fusion-shell .cards{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.fusion-shell .inventory-card{border:1px solid #343037;border-radius:16px;overflow:hidden}
.fusion-shell .inventory-card .skin-card-content{display:flex;flex-direction:column;padding:12px;gap:0}
.fusion-shell .inventory-card .skin-card-content>small{font-size:var(--type-caption);line-height:16px;height:32px}
.fusion-shell .inventory-card .skin-card-content h3{white-space:normal;height:auto;min-height:38px;overflow:visible;display:block;font-size:var(--type-body);line-height:19px;margin:2px 0 8px}
.fusion-shell .inventory-card .item-price{font-size:19px;line-height:26px;font-weight:550;margin-top:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.fusion-shell .inventory-card .item-price small{font-size:var(--type-micro);font-weight:400;color:var(--muted)}
.fusion-shell .inventory-card .mini-buttons{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fusion-shell .inventory-card .mini-buttons button{margin:0;min-height:36px;font-size:var(--type-caption);padding:8px 2px}
.fusion-shell .inventory-card .skin-card-content>button{margin-top:10px;font-size:var(--type-caption);line-height:16px;min-height:36px}
@media(max-width:640px){.fusion-shell .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fusion-shell .inventory-card{border-radius:14px}}
/* Reserve the action row even for unavailable items: all prices stay aligned. */
.fusion-shell .inventory-card .skin-card-content{display:grid;grid-template-rows:32px 38px 26px 44px;gap:8px}
.fusion-shell .inventory-card .skin-card-content h3{margin:0}
.fusion-shell .inventory-card .item-price{margin:0}
.fusion-shell .inventory-card .mini-buttons{margin:0;min-height:44px;height:44px}
.fusion-shell .inventory-card .mini-buttons button,.fusion-shell .inventory-card .skin-card-content>button{margin:0;min-height:44px;height:44px}
.fusion-shell .shop-intro{justify-content:flex-end}

/* Inventory is a responsive gallery, with no empty auto-fill tracks. */
body .fusion-shell[data-page=inventory]{display:flex;flex-direction:column;min-height:calc(100dvh - 70px)}
[data-page=inventory]>.footer{margin-top:auto;padding-top:16px}
#inventory-content{margin-bottom:20px}
.fusion-shell[data-page=inventory] .cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-content:start;gap:14px}
.fusion-shell .inventory-card{--inventory-glow:188,65,107;background:#171619;box-shadow:inset 0 1px 0 #ffffff04;transition:border-color 220ms ease,box-shadow 220ms ease}
.fusion-shell .inventory-card[data-tone=orange]{--inventory-glow:209,138,65}
.fusion-shell .inventory-card[data-tone=purple]{--inventory-glow:144,109,196}
.fusion-shell .inventory-card .skin-art{height:auto;aspect-ratio:1.75;min-height:128px;max-height:200px;background:radial-gradient(ellipse at 50% 62%,rgba(var(--inventory-glow),.2),transparent 72%),linear-gradient(155deg,#ffffff03,transparent);border-bottom:1px solid rgba(var(--inventory-glow),.18)}
.fusion-shell .inventory-card .skin-art img{width:82%;max-width:290px;height:85%;max-height:none;object-fit:contain;filter:drop-shadow(0 10px 12px #0006);transition:transform 300ms cubic-bezier(.2,.7,.25,1)}
.fusion-shell .inventory-card .skin-card-content{padding:16px;grid-template-rows:32px minmax(24px,auto) 30px 44px;gap:8px}
.fusion-shell .inventory-card .skin-card-content h3{min-height:24px;font-size:var(--type-subhead);line-height:24px;color:#e5e0e7}
.fusion-shell .inventory-card .skin-card-content>small{font-size:var(--type-label);line-height:16px}
.fusion-shell .inventory-card .item-price{font-size:22px;line-height:30px}
.fusion-shell .inventory-card .mini-buttons button{font-size:var(--type-label)}
.fusion-shell .inventory-card .mini-buttons [data-action=use-item]{background:rgba(var(--inventory-glow),.14);border-color:rgba(var(--inventory-glow),.28)}
.fusion-shell .inventory-card[data-status=withdrawn] .skin-art{background:radial-gradient(ellipse at 50% 62%,rgba(var(--inventory-glow),.07),transparent 72%)}
.fusion-shell .inventory-card[data-status=withdrawn] .skin-art img{opacity:.6}
@media(hover:hover){
 .fusion-shell .inventory-card:hover{border-color:rgba(var(--inventory-glow),.55);box-shadow:0 6px 24px #0002,inset 0 1px 0 #ffffff06}
 .fusion-shell .inventory-card:hover .skin-art img{transform:translateY(-3px) scale(1.035)}
}
@media(min-width:1000px){
 .fusion-shell[data-page=inventory] .cards:has(.inventory-card:last-child:nth-child(-n+3)){grid-template-columns:repeat(auto-fit,minmax(330px,1fr))}
 .fusion-shell[data-page=inventory] .cards:has(.inventory-card:last-child:nth-child(-n+3)) .inventory-card{display:grid;grid-template-columns:minmax(120px,42%) minmax(0,1fr)}
 .fusion-shell[data-page=inventory] .cards:has(.inventory-card:last-child:nth-child(-n+3)) .skin-art{height:100%;aspect-ratio:auto;min-height:208px;max-height:none;border-bottom:0;border-right:1px solid rgba(var(--inventory-glow),.16)}
}
@media(max-width:640px){
 body .fusion-shell[data-page=inventory]{min-height:calc(100dvh - 54px)}
 .fusion-shell[data-page=inventory] .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .fusion-shell .inventory-card .skin-art{height:126px;min-height:126px;aspect-ratio:auto}
 .fusion-shell .inventory-card .skin-card-content{padding:10px;grid-template-rows:32px minmax(38px,auto) 26px 44px;gap:6px}
 .fusion-shell .inventory-card .skin-card-content h3{font-size:var(--type-body);line-height:19px}
 .fusion-shell .inventory-card .skin-card-content>small{font-size:var(--type-micro);line-height:15px}
 .fusion-shell .inventory-card .item-price{font-size:19px;line-height:26px}
 .fusion-shell .inventory-card .mini-buttons button{font-size:var(--type-micro)}
}
@media(prefers-reduced-motion:reduce){.fusion-shell .inventory-card,.fusion-shell .inventory-card .skin-art img{transition:none}.fusion-shell .inventory-card:hover .skin-art img{transform:none}}

@media(min-width:1000px){
 .fusion-shell[data-page=inventory] .cards:has(.inventory-card:only-child){grid-template-columns:minmax(0,780px)}
}
